wp/wp-includes/js/dist/components.js
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   140 module.exports = deepmerge_1;
   140 module.exports = deepmerge_1;
   141 
   141 
   142 
   142 
   143 /***/ }),
   143 /***/ }),
   144 
   144 
   145 /***/ 2287:
   145 /***/ 83:
   146 /***/ ((__unused_webpack_module, exports) => {
   146 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
   147 
   147 
   148 "use strict";
   148 "use strict";
   149 var __webpack_unused_export__;
   149 /**
   150 /** @license React v17.0.2
   150  * @license React
   151  * react-is.production.min.js
   151  * use-sync-external-store-shim.production.js
   152  *
   152  *
   153  * Copyright (c) Facebook, Inc. and its affiliates.
   153  * Copyright (c) Meta Platforms, Inc. and affiliates.
   154  *
   154  *
   155  * This source code is licensed under the MIT license found in the
   155  * This source code is licensed under the MIT license found in the
   156  * LICENSE file in the root directory of this source tree.
   156  * LICENSE file in the root directory of this source tree.
   157  */
   157  */
   158 var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;
   158 
   159 if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element");c=x("react.portal");d=x("react.fragment");e=x("react.strict_mode");f=x("react.profiler");g=x("react.provider");h=x("react.context");k=x("react.forward_ref");l=x("react.suspense");m=x("react.suspense_list");n=x("react.memo");p=x("react.lazy");q=x("react.block");r=x("react.server.block");u=x("react.fundamental");v=x("react.debug_trace_mode");w=x("react.legacy_hidden")}
   159 
   160 function y(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;__webpack_unused_export__=h;__webpack_unused_export__=z;__webpack_unused_export__=A;__webpack_unused_export__=B;__webpack_unused_export__=C;__webpack_unused_export__=D;__webpack_unused_export__=E;__webpack_unused_export__=F;__webpack_unused_export__=G;__webpack_unused_export__=H;
   160 var React = __webpack_require__(1609);
   161 __webpack_unused_export__=I;__webpack_unused_export__=function(){return!1};__webpack_unused_export__=function(){return!1};__webpack_unused_export__=function(a){return y(a)===h};__webpack_unused_export__=function(a){return y(a)===g};__webpack_unused_export__=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};__webpack_unused_export__=function(a){return y(a)===k};__webpack_unused_export__=function(a){return y(a)===d};__webpack_unused_export__=function(a){return y(a)===p};__webpack_unused_export__=function(a){return y(a)===n};
   161 function is(x, y) {
   162 __webpack_unused_export__=function(a){return y(a)===c};__webpack_unused_export__=function(a){return y(a)===f};__webpack_unused_export__=function(a){return y(a)===e};__webpack_unused_export__=function(a){return y(a)===l};__webpack_unused_export__=function(a){return"string"===typeof a||"function"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1};
   162   return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
   163 __webpack_unused_export__=y;
   163 }
       
   164 var objectIs = "function" === typeof Object.is ? Object.is : is,
       
   165   useState = React.useState,
       
   166   useEffect = React.useEffect,
       
   167   useLayoutEffect = React.useLayoutEffect,
       
   168   useDebugValue = React.useDebugValue;
       
   169 function useSyncExternalStore$2(subscribe, getSnapshot) {
       
   170   var value = getSnapshot(),
       
   171     _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
       
   172     inst = _useState[0].inst,
       
   173     forceUpdate = _useState[1];
       
   174   useLayoutEffect(
       
   175     function () {
       
   176       inst.value = value;
       
   177       inst.getSnapshot = getSnapshot;
       
   178       checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
       
   179     },
       
   180     [subscribe, value, getSnapshot]
       
   181   );
       
   182   useEffect(
       
   183     function () {
       
   184       checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
       
   185       return subscribe(function () {
       
   186         checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
       
   187       });
       
   188     },
       
   189     [subscribe]
       
   190   );
       
   191   useDebugValue(value);
       
   192   return value;
       
   193 }
       
   194 function checkIfSnapshotChanged(inst) {
       
   195   var latestGetSnapshot = inst.getSnapshot;
       
   196   inst = inst.value;
       
   197   try {
       
   198     var nextValue = latestGetSnapshot();
       
   199     return !objectIs(inst, nextValue);
       
   200   } catch (error) {
       
   201     return !0;
       
   202   }
       
   203 }
       
   204 function useSyncExternalStore$1(subscribe, getSnapshot) {
       
   205   return getSnapshot();
       
   206 }
       
   207 var shim =
       
   208   "undefined" === typeof window ||
       
   209   "undefined" === typeof window.document ||
       
   210   "undefined" === typeof window.document.createElement
       
   211     ? useSyncExternalStore$1
       
   212     : useSyncExternalStore$2;
       
   213 exports.useSyncExternalStore =
       
   214   void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
   164 
   215 
   165 
   216 
   166 /***/ }),
   217 /***/ }),
   167 
   218 
   168 /***/ 1915:
   219 /***/ 422:
   169 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
   220 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
   170 
   221 
   171 "use strict";
   222 "use strict";
   172 
   223 
   173 
   224 
   174 if (true) {
   225 if (true) {
   175   /* unused reexport */ __webpack_require__(2287);
   226   module.exports = __webpack_require__(83);
   176 } else {}
   227 } else {}
       
   228 
       
   229 
       
   230 /***/ }),
       
   231 
       
   232 /***/ 1178:
       
   233 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
       
   234 
       
   235 "use strict";
       
   236 
       
   237 
       
   238 if (true) {
       
   239   module.exports = __webpack_require__(2950);
       
   240 } else {}
       
   241 
       
   242 
       
   243 /***/ }),
       
   244 
       
   245 /***/ 1609:
       
   246 /***/ ((module) => {
       
   247 
       
   248 "use strict";
       
   249 module.exports = window["React"];
       
   250 
       
   251 /***/ }),
       
   252 
       
   253 /***/ 1880:
       
   254 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
       
   255 
       
   256 "use strict";
       
   257 
       
   258 
       
   259 var reactIs = __webpack_require__(1178);
       
   260 
       
   261 /**
       
   262  * Copyright 2015, Yahoo! Inc.
       
   263  * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
       
   264  */
       
   265 var REACT_STATICS = {
       
   266   childContextTypes: true,
       
   267   contextType: true,
       
   268   contextTypes: true,
       
   269   defaultProps: true,
       
   270   displayName: true,
       
   271   getDefaultProps: true,
       
   272   getDerivedStateFromError: true,
       
   273   getDerivedStateFromProps: true,
       
   274   mixins: true,
       
   275   propTypes: true,
       
   276   type: true
       
   277 };
       
   278 var KNOWN_STATICS = {
       
   279   name: true,
       
   280   length: true,
       
   281   prototype: true,
       
   282   caller: true,
       
   283   callee: true,
       
   284   arguments: true,
       
   285   arity: true
       
   286 };
       
   287 var FORWARD_REF_STATICS = {
       
   288   '$$typeof': true,
       
   289   render: true,
       
   290   defaultProps: true,
       
   291   displayName: true,
       
   292   propTypes: true
       
   293 };
       
   294 var MEMO_STATICS = {
       
   295   '$$typeof': true,
       
   296   compare: true,
       
   297   defaultProps: true,
       
   298   displayName: true,
       
   299   propTypes: true,
       
   300   type: true
       
   301 };
       
   302 var TYPE_STATICS = {};
       
   303 TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
       
   304 TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
       
   305 
       
   306 function getStatics(component) {
       
   307   // React v16.11 and below
       
   308   if (reactIs.isMemo(component)) {
       
   309     return MEMO_STATICS;
       
   310   } // React v16.12 and above
       
   311 
       
   312 
       
   313   return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
       
   314 }
       
   315 
       
   316 var defineProperty = Object.defineProperty;
       
   317 var getOwnPropertyNames = Object.getOwnPropertyNames;
       
   318 var getOwnPropertySymbols = Object.getOwnPropertySymbols;
       
   319 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
       
   320 var getPrototypeOf = Object.getPrototypeOf;
       
   321 var objectPrototype = Object.prototype;
       
   322 function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
       
   323   if (typeof sourceComponent !== 'string') {
       
   324     // don't hoist over string (html) components
       
   325     if (objectPrototype) {
       
   326       var inheritedComponent = getPrototypeOf(sourceComponent);
       
   327 
       
   328       if (inheritedComponent && inheritedComponent !== objectPrototype) {
       
   329         hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
       
   330       }
       
   331     }
       
   332 
       
   333     var keys = getOwnPropertyNames(sourceComponent);
       
   334 
       
   335     if (getOwnPropertySymbols) {
       
   336       keys = keys.concat(getOwnPropertySymbols(sourceComponent));
       
   337     }
       
   338 
       
   339     var targetStatics = getStatics(targetComponent);
       
   340     var sourceStatics = getStatics(sourceComponent);
       
   341 
       
   342     for (var i = 0; i < keys.length; ++i) {
       
   343       var key = keys[i];
       
   344 
       
   345       if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
       
   346         var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
       
   347 
       
   348         try {
       
   349           // Avoid failures from read-only properties
       
   350           defineProperty(targetComponent, key, descriptor);
       
   351         } catch (e) {}
       
   352       }
       
   353     }
       
   354   }
       
   355 
       
   356   return targetComponent;
       
   357 }
       
   358 
       
   359 module.exports = hoistNonReactStatics;
       
   360 
       
   361 
       
   362 /***/ }),
       
   363 
       
   364 /***/ 2950:
       
   365 /***/ ((__unused_webpack_module, exports) => {
       
   366 
       
   367 "use strict";
       
   368 /** @license React v16.13.1
       
   369  * react-is.production.min.js
       
   370  *
       
   371  * Copyright (c) Facebook, Inc. and its affiliates.
       
   372  *
       
   373  * This source code is licensed under the MIT license found in the
       
   374  * LICENSE file in the root directory of this source tree.
       
   375  */
       
   376 
       
   377 var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
       
   378 Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
       
   379 function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
       
   380 exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
       
   381 exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
       
   382 exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;
   177 
   383 
   178 
   384 
   179 /***/ }),
   385 /***/ }),
   180 
   386 
   181 /***/ 7734:
   387 /***/ 7734:
   860 	  return string.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
  1066 	  return string.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
   861 	}
  1067 	}
   862 
  1068 
   863 /***/ })
  1069 /***/ })
   864 /******/ ]);
  1070 /******/ ]);
   865 
       
   866 
       
   867 /***/ }),
       
   868 
       
   869 /***/ 1880:
       
   870 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
       
   871 
       
   872 "use strict";
       
   873 
       
   874 
       
   875 var reactIs = __webpack_require__(1178);
       
   876 
       
   877 /**
       
   878  * Copyright 2015, Yahoo! Inc.
       
   879  * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
       
   880  */
       
   881 var REACT_STATICS = {
       
   882   childContextTypes: true,
       
   883   contextType: true,
       
   884   contextTypes: true,
       
   885   defaultProps: true,
       
   886   displayName: true,
       
   887   getDefaultProps: true,
       
   888   getDerivedStateFromError: true,
       
   889   getDerivedStateFromProps: true,
       
   890   mixins: true,
       
   891   propTypes: true,
       
   892   type: true
       
   893 };
       
   894 var KNOWN_STATICS = {
       
   895   name: true,
       
   896   length: true,
       
   897   prototype: true,
       
   898   caller: true,
       
   899   callee: true,
       
   900   arguments: true,
       
   901   arity: true
       
   902 };
       
   903 var FORWARD_REF_STATICS = {
       
   904   '$$typeof': true,
       
   905   render: true,
       
   906   defaultProps: true,
       
   907   displayName: true,
       
   908   propTypes: true
       
   909 };
       
   910 var MEMO_STATICS = {
       
   911   '$$typeof': true,
       
   912   compare: true,
       
   913   defaultProps: true,
       
   914   displayName: true,
       
   915   propTypes: true,
       
   916   type: true
       
   917 };
       
   918 var TYPE_STATICS = {};
       
   919 TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
       
   920 TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
       
   921 
       
   922 function getStatics(component) {
       
   923   // React v16.11 and below
       
   924   if (reactIs.isMemo(component)) {
       
   925     return MEMO_STATICS;
       
   926   } // React v16.12 and above
       
   927 
       
   928 
       
   929   return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
       
   930 }
       
   931 
       
   932 var defineProperty = Object.defineProperty;
       
   933 var getOwnPropertyNames = Object.getOwnPropertyNames;
       
   934 var getOwnPropertySymbols = Object.getOwnPropertySymbols;
       
   935 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
       
   936 var getPrototypeOf = Object.getPrototypeOf;
       
   937 var objectPrototype = Object.prototype;
       
   938 function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
       
   939   if (typeof sourceComponent !== 'string') {
       
   940     // don't hoist over string (html) components
       
   941     if (objectPrototype) {
       
   942       var inheritedComponent = getPrototypeOf(sourceComponent);
       
   943 
       
   944       if (inheritedComponent && inheritedComponent !== objectPrototype) {
       
   945         hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
       
   946       }
       
   947     }
       
   948 
       
   949     var keys = getOwnPropertyNames(sourceComponent);
       
   950 
       
   951     if (getOwnPropertySymbols) {
       
   952       keys = keys.concat(getOwnPropertySymbols(sourceComponent));
       
   953     }
       
   954 
       
   955     var targetStatics = getStatics(targetComponent);
       
   956     var sourceStatics = getStatics(sourceComponent);
       
   957 
       
   958     for (var i = 0; i < keys.length; ++i) {
       
   959       var key = keys[i];
       
   960 
       
   961       if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
       
   962         var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
       
   963 
       
   964         try {
       
   965           // Avoid failures from read-only properties
       
   966           defineProperty(targetComponent, key, descriptor);
       
   967         } catch (e) {}
       
   968       }
       
   969     }
       
   970   }
       
   971 
       
   972   return targetComponent;
       
   973 }
       
   974 
       
   975 module.exports = hoistNonReactStatics;
       
   976 
       
   977 
       
   978 /***/ }),
       
   979 
       
   980 /***/ 2950:
       
   981 /***/ ((__unused_webpack_module, exports) => {
       
   982 
       
   983 "use strict";
       
   984 /** @license React v16.13.1
       
   985  * react-is.production.min.js
       
   986  *
       
   987  * Copyright (c) Facebook, Inc. and its affiliates.
       
   988  *
       
   989  * This source code is licensed under the MIT license found in the
       
   990  * LICENSE file in the root directory of this source tree.
       
   991  */
       
   992 
       
   993 var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
       
   994 Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
       
   995 function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
       
   996 exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
       
   997 exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
       
   998 exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;
       
   999 
       
  1000 
       
  1001 /***/ }),
       
  1002 
       
  1003 /***/ 1178:
       
  1004 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
       
  1005 
       
  1006 "use strict";
       
  1007 
       
  1008 
       
  1009 if (true) {
       
  1010   module.exports = __webpack_require__(2950);
       
  1011 } else {}
       
  1012 
       
  1013 
       
  1014 /***/ }),
       
  1015 
       
  1016 /***/ 628:
       
  1017 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
       
  1018 
       
  1019 "use strict";
       
  1020 /**
       
  1021  * Copyright (c) 2013-present, Facebook, Inc.
       
  1022  *
       
  1023  * This source code is licensed under the MIT license found in the
       
  1024  * LICENSE file in the root directory of this source tree.
       
  1025  */
       
  1026 
       
  1027 
       
  1028 
       
  1029 var ReactPropTypesSecret = __webpack_require__(4067);
       
  1030 
       
  1031 function emptyFunction() {}
       
  1032 function emptyFunctionWithReset() {}
       
  1033 emptyFunctionWithReset.resetWarningCache = emptyFunction;
       
  1034 
       
  1035 module.exports = function() {
       
  1036   function shim(props, propName, componentName, location, propFullName, secret) {
       
  1037     if (secret === ReactPropTypesSecret) {
       
  1038       // It is still safe when called from React.
       
  1039       return;
       
  1040     }
       
  1041     var err = new Error(
       
  1042       'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
       
  1043       'Use PropTypes.checkPropTypes() to call them. ' +
       
  1044       'Read more at http://fb.me/use-check-prop-types'
       
  1045     );
       
  1046     err.name = 'Invariant Violation';
       
  1047     throw err;
       
  1048   };
       
  1049   shim.isRequired = shim;
       
  1050   function getShim() {
       
  1051     return shim;
       
  1052   };
       
  1053   // Important!
       
  1054   // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
       
  1055   var ReactPropTypes = {
       
  1056     array: shim,
       
  1057     bigint: shim,
       
  1058     bool: shim,
       
  1059     func: shim,
       
  1060     number: shim,
       
  1061     object: shim,
       
  1062     string: shim,
       
  1063     symbol: shim,
       
  1064 
       
  1065     any: shim,
       
  1066     arrayOf: getShim,
       
  1067     element: shim,
       
  1068     elementType: shim,
       
  1069     instanceOf: getShim,
       
  1070     node: shim,
       
  1071     objectOf: getShim,
       
  1072     oneOf: getShim,
       
  1073     oneOfType: getShim,
       
  1074     shape: getShim,
       
  1075     exact: getShim,
       
  1076 
       
  1077     checkPropTypes: emptyFunctionWithReset,
       
  1078     resetWarningCache: emptyFunction
       
  1079   };
       
  1080 
       
  1081   ReactPropTypes.PropTypes = ReactPropTypes;
       
  1082 
       
  1083   return ReactPropTypes;
       
  1084 };
       
  1085 
       
  1086 
       
  1087 /***/ }),
       
  1088 
       
  1089 /***/ 5826:
       
  1090 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
       
  1091 
       
  1092 /**
       
  1093  * Copyright (c) 2013-present, Facebook, Inc.
       
  1094  *
       
  1095  * This source code is licensed under the MIT license found in the
       
  1096  * LICENSE file in the root directory of this source tree.
       
  1097  */
       
  1098 
       
  1099 if (false) { var throwOnDirectAccess, ReactIs; } else {
       
  1100   // By explicitly using `prop-types` you are opting into new production behavior.
       
  1101   // http://fb.me/prop-types-in-prod
       
  1102   module.exports = __webpack_require__(628)();
       
  1103 }
       
  1104 
       
  1105 
       
  1106 /***/ }),
       
  1107 
       
  1108 /***/ 4067:
       
  1109 /***/ ((module) => {
       
  1110 
       
  1111 "use strict";
       
  1112 /**
       
  1113  * Copyright (c) 2013-present, Facebook, Inc.
       
  1114  *
       
  1115  * This source code is licensed under the MIT license found in the
       
  1116  * LICENSE file in the root directory of this source tree.
       
  1117  */
       
  1118 
       
  1119 
       
  1120 
       
  1121 var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
       
  1122 
       
  1123 module.exports = ReactPropTypesSecret;
       
  1124 
  1071 
  1125 
  1072 
  1126 /***/ }),
  1073 /***/ }),
  1127 
  1074 
  1128 /***/ 9681:
  1075 /***/ 9681:
  1609 module.exports = removeAccents;
  1556 module.exports = removeAccents;
  1610 module.exports.has = hasAccents;
  1557 module.exports.has = hasAccents;
  1611 module.exports.remove = removeAccents;
  1558 module.exports.remove = removeAccents;
  1612 
  1559 
  1613 
  1560 
  1614 /***/ }),
       
  1615 
       
  1616 /***/ 8477:
       
  1617 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
       
  1618 
       
  1619 "use strict";
       
  1620 /**
       
  1621  * @license React
       
  1622  * use-sync-external-store-shim.production.min.js
       
  1623  *
       
  1624  * Copyright (c) Facebook, Inc. and its affiliates.
       
  1625  *
       
  1626  * This source code is licensed under the MIT license found in the
       
  1627  * LICENSE file in the root directory of this source tree.
       
  1628  */
       
  1629 var e=__webpack_require__(1609);function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c})},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c})})},[a]);p(d);return d}
       
  1630 function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
       
  1631 
       
  1632 
       
  1633 /***/ }),
       
  1634 
       
  1635 /***/ 422:
       
  1636 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
       
  1637 
       
  1638 "use strict";
       
  1639 
       
  1640 
       
  1641 if (true) {
       
  1642   module.exports = __webpack_require__(8477);
       
  1643 } else {}
       
  1644 
       
  1645 
       
  1646 /***/ }),
       
  1647 
       
  1648 /***/ 1609:
       
  1649 /***/ ((module) => {
       
  1650 
       
  1651 "use strict";
       
  1652 module.exports = window["React"];
       
  1653 
       
  1654 /***/ })
  1561 /***/ })
  1655 
  1562 
  1656 /******/ 	});
  1563 /******/ 	});
  1657 /************************************************************************/
  1564 /************************************************************************/
  1658 /******/ 	// The module cache
  1565 /******/ 	// The module cache
  1755 /******/ 		__webpack_require__.nc = undefined;
  1662 /******/ 		__webpack_require__.nc = undefined;
  1756 /******/ 	})();
  1663 /******/ 	})();
  1757 /******/ 	
  1664 /******/ 	
  1758 /************************************************************************/
  1665 /************************************************************************/
  1759 var __webpack_exports__ = {};
  1666 var __webpack_exports__ = {};
  1760 // This entry need to be wrapped in an IIFE because it need to be in strict mode.
  1667 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
  1761 (() => {
  1668 (() => {
  1762 "use strict";
  1669 "use strict";
  1763 // ESM COMPAT FLAG
  1670 // ESM COMPAT FLAG
  1764 __webpack_require__.r(__webpack_exports__);
  1671 __webpack_require__.r(__webpack_exports__);
  1765 
  1672 
  1766 // EXPORTS
  1673 // EXPORTS
  1767 __webpack_require__.d(__webpack_exports__, {
  1674 __webpack_require__.d(__webpack_exports__, {
       
  1675   AlignmentMatrixControl: () => (/* reexport */ alignment_matrix_control),
  1768   AnglePickerControl: () => (/* reexport */ angle_picker_control),
  1676   AnglePickerControl: () => (/* reexport */ angle_picker_control),
  1769   Animate: () => (/* reexport */ animate),
  1677   Animate: () => (/* reexport */ animate),
  1770   Autocomplete: () => (/* reexport */ Autocomplete),
  1678   Autocomplete: () => (/* reexport */ Autocomplete),
  1771   BaseControl: () => (/* reexport */ base_control),
  1679   BaseControl: () => (/* reexport */ base_control),
  1772   BlockQuotation: () => (/* reexport */ external_wp_primitives_namespaceObject.BlockQuotation),
  1680   BlockQuotation: () => (/* reexport */ external_wp_primitives_namespaceObject.BlockQuotation),
       
  1681   BorderBoxControl: () => (/* reexport */ border_box_control_component),
       
  1682   BorderControl: () => (/* reexport */ border_control_component),
       
  1683   BoxControl: () => (/* reexport */ box_control),
  1773   Button: () => (/* reexport */ build_module_button),
  1684   Button: () => (/* reexport */ build_module_button),
  1774   ButtonGroup: () => (/* reexport */ button_group),
  1685   ButtonGroup: () => (/* reexport */ button_group),
  1775   Card: () => (/* reexport */ card_component),
  1686   Card: () => (/* reexport */ card_component),
  1776   CardBody: () => (/* reexport */ card_body_component),
  1687   CardBody: () => (/* reexport */ card_body_component),
  1777   CardDivider: () => (/* reexport */ card_divider_component),
  1688   CardDivider: () => (/* reexport */ card_divider_component),
  1783   ClipboardButton: () => (/* reexport */ ClipboardButton),
  1694   ClipboardButton: () => (/* reexport */ ClipboardButton),
  1784   ColorIndicator: () => (/* reexport */ color_indicator),
  1695   ColorIndicator: () => (/* reexport */ color_indicator),
  1785   ColorPalette: () => (/* reexport */ color_palette),
  1696   ColorPalette: () => (/* reexport */ color_palette),
  1786   ColorPicker: () => (/* reexport */ LegacyAdapter),
  1697   ColorPicker: () => (/* reexport */ LegacyAdapter),
  1787   ComboboxControl: () => (/* reexport */ combobox_control),
  1698   ComboboxControl: () => (/* reexport */ combobox_control),
       
  1699   Composite: () => (/* reexport */ Composite),
  1788   CustomGradientPicker: () => (/* reexport */ custom_gradient_picker),
  1700   CustomGradientPicker: () => (/* reexport */ custom_gradient_picker),
  1789   CustomSelectControl: () => (/* reexport */ StableCustomSelectControl),
  1701   CustomSelectControl: () => (/* reexport */ custom_select_control),
  1790   Dashicon: () => (/* reexport */ dashicon),
  1702   Dashicon: () => (/* reexport */ dashicon),
  1791   DatePicker: () => (/* reexport */ date),
  1703   DatePicker: () => (/* reexport */ date),
  1792   DateTimePicker: () => (/* reexport */ build_module_date_time),
  1704   DateTimePicker: () => (/* reexport */ build_module_date_time),
  1793   Disabled: () => (/* reexport */ disabled),
  1705   Disabled: () => (/* reexport */ disabled),
  1794   Draggable: () => (/* reexport */ draggable),
  1706   Draggable: () => (/* reexport */ draggable),
  1823   MenuGroup: () => (/* reexport */ menu_group),
  1735   MenuGroup: () => (/* reexport */ menu_group),
  1824   MenuItem: () => (/* reexport */ menu_item),
  1736   MenuItem: () => (/* reexport */ menu_item),
  1825   MenuItemsChoice: () => (/* reexport */ menu_items_choice),
  1737   MenuItemsChoice: () => (/* reexport */ menu_items_choice),
  1826   Modal: () => (/* reexport */ modal),
  1738   Modal: () => (/* reexport */ modal),
  1827   NavigableMenu: () => (/* reexport */ navigable_container_menu),
  1739   NavigableMenu: () => (/* reexport */ navigable_container_menu),
       
  1740   Navigator: () => (/* reexport */ navigator_Navigator),
  1828   Notice: () => (/* reexport */ build_module_notice),
  1741   Notice: () => (/* reexport */ build_module_notice),
  1829   NoticeList: () => (/* reexport */ list),
  1742   NoticeList: () => (/* reexport */ list),
  1830   Panel: () => (/* reexport */ panel),
  1743   Panel: () => (/* reexport */ panel),
  1831   PanelBody: () => (/* reexport */ body),
  1744   PanelBody: () => (/* reexport */ body),
  1832   PanelHeader: () => (/* reexport */ panel_header),
  1745   PanelHeader: () => (/* reexport */ panel_header),
  1892   __experimentalNavigation: () => (/* reexport */ navigation),
  1805   __experimentalNavigation: () => (/* reexport */ navigation),
  1893   __experimentalNavigationBackButton: () => (/* reexport */ back_button),
  1806   __experimentalNavigationBackButton: () => (/* reexport */ back_button),
  1894   __experimentalNavigationGroup: () => (/* reexport */ group),
  1807   __experimentalNavigationGroup: () => (/* reexport */ group),
  1895   __experimentalNavigationItem: () => (/* reexport */ navigation_item),
  1808   __experimentalNavigationItem: () => (/* reexport */ navigation_item),
  1896   __experimentalNavigationMenu: () => (/* reexport */ navigation_menu),
  1809   __experimentalNavigationMenu: () => (/* reexport */ navigation_menu),
  1897   __experimentalNavigatorBackButton: () => (/* reexport */ navigator_back_button_component),
  1810   __experimentalNavigatorBackButton: () => (/* reexport */ legacy_NavigatorBackButton),
  1898   __experimentalNavigatorButton: () => (/* reexport */ navigator_button_component),
  1811   __experimentalNavigatorButton: () => (/* reexport */ legacy_NavigatorButton),
  1899   __experimentalNavigatorProvider: () => (/* reexport */ navigator_provider_component),
  1812   __experimentalNavigatorProvider: () => (/* reexport */ NavigatorProvider),
  1900   __experimentalNavigatorScreen: () => (/* reexport */ navigator_screen_component),
  1813   __experimentalNavigatorScreen: () => (/* reexport */ legacy_NavigatorScreen),
  1901   __experimentalNavigatorToParentButton: () => (/* reexport */ navigator_to_parent_button_component),
  1814   __experimentalNavigatorToParentButton: () => (/* reexport */ legacy_NavigatorToParentButton),
  1902   __experimentalNumberControl: () => (/* reexport */ number_control),
  1815   __experimentalNumberControl: () => (/* reexport */ number_control),
  1903   __experimentalPaletteEdit: () => (/* reexport */ palette_edit),
  1816   __experimentalPaletteEdit: () => (/* reexport */ palette_edit),
  1904   __experimentalParseQuantityAndUnitFromRawValue: () => (/* reexport */ parseQuantityAndUnitFromRawValue),
  1817   __experimentalParseQuantityAndUnitFromRawValue: () => (/* reexport */ parseQuantityAndUnitFromRawValue),
  1905   __experimentalRadio: () => (/* reexport */ radio_group_radio),
  1818   __experimentalRadio: () => (/* reexport */ radio_group_radio),
  1906   __experimentalRadioGroup: () => (/* reexport */ radio_group),
  1819   __experimentalRadioGroup: () => (/* reexport */ radio_group),
  1921   __experimentalTreeGridItem: () => (/* reexport */ tree_grid_item),
  1834   __experimentalTreeGridItem: () => (/* reexport */ tree_grid_item),
  1922   __experimentalTreeGridRow: () => (/* reexport */ tree_grid_row),
  1835   __experimentalTreeGridRow: () => (/* reexport */ tree_grid_row),
  1923   __experimentalTruncate: () => (/* reexport */ truncate_component),
  1836   __experimentalTruncate: () => (/* reexport */ truncate_component),
  1924   __experimentalUnitControl: () => (/* reexport */ unit_control),
  1837   __experimentalUnitControl: () => (/* reexport */ unit_control),
  1925   __experimentalUseCustomUnits: () => (/* reexport */ useCustomUnits),
  1838   __experimentalUseCustomUnits: () => (/* reexport */ useCustomUnits),
  1926   __experimentalUseNavigator: () => (/* reexport */ use_navigator),
  1839   __experimentalUseNavigator: () => (/* reexport */ useNavigator),
  1927   __experimentalUseSlot: () => (/* reexport */ useSlot),
  1840   __experimentalUseSlot: () => (/* reexport */ useSlot),
  1928   __experimentalUseSlotFills: () => (/* reexport */ useSlotFills),
  1841   __experimentalUseSlotFills: () => (/* reexport */ useSlotFills),
  1929   __experimentalVStack: () => (/* reexport */ v_stack_component),
  1842   __experimentalVStack: () => (/* reexport */ v_stack_component),
  1930   __experimentalView: () => (/* reexport */ component),
  1843   __experimentalView: () => (/* reexport */ component),
  1931   __experimentalZStack: () => (/* reexport */ z_stack_component),
  1844   __experimentalZStack: () => (/* reexport */ z_stack_component),
  1934   __unstableCompositeGroup: () => (/* reexport */ legacy_CompositeGroup),
  1847   __unstableCompositeGroup: () => (/* reexport */ legacy_CompositeGroup),
  1935   __unstableCompositeItem: () => (/* reexport */ legacy_CompositeItem),
  1848   __unstableCompositeItem: () => (/* reexport */ legacy_CompositeItem),
  1936   __unstableDisclosureContent: () => (/* reexport */ disclosure_DisclosureContent),
  1849   __unstableDisclosureContent: () => (/* reexport */ disclosure_DisclosureContent),
  1937   __unstableGetAnimateClassName: () => (/* reexport */ getAnimateClassName),
  1850   __unstableGetAnimateClassName: () => (/* reexport */ getAnimateClassName),
  1938   __unstableMotion: () => (/* reexport */ motion),
  1851   __unstableMotion: () => (/* reexport */ motion),
  1939   __unstableMotionContext: () => (/* reexport */ MotionContext),
       
  1940   __unstableUseAutocompleteProps: () => (/* reexport */ useAutocompleteProps),
  1852   __unstableUseAutocompleteProps: () => (/* reexport */ useAutocompleteProps),
  1941   __unstableUseCompositeState: () => (/* reexport */ useCompositeState),
  1853   __unstableUseCompositeState: () => (/* reexport */ useCompositeState),
  1942   __unstableUseNavigateRegions: () => (/* reexport */ useNavigateRegions),
  1854   __unstableUseNavigateRegions: () => (/* reexport */ useNavigateRegions),
  1943   createSlotFill: () => (/* reexport */ createSlotFill),
  1855   createSlotFill: () => (/* reexport */ createSlotFill),
  1944   navigateRegions: () => (/* reexport */ navigate_regions),
  1856   navigateRegions: () => (/* reexport */ navigate_regions),
  1945   privateApis: () => (/* reexport */ privateApis),
  1857   privateApis: () => (/* reexport */ privateApis),
  1946   useBaseControlProps: () => (/* reexport */ useBaseControlProps),
  1858   useBaseControlProps: () => (/* reexport */ useBaseControlProps),
       
  1859   useNavigator: () => (/* reexport */ useNavigator),
  1947   withConstrainedTabbing: () => (/* reexport */ with_constrained_tabbing),
  1860   withConstrainedTabbing: () => (/* reexport */ with_constrained_tabbing),
  1948   withFallbackStyles: () => (/* reexport */ with_fallback_styles),
  1861   withFallbackStyles: () => (/* reexport */ with_fallback_styles),
  1949   withFilters: () => (/* reexport */ withFilters),
  1862   withFilters: () => (/* reexport */ withFilters),
  1950   withFocusOutside: () => (/* reexport */ with_focus_outside),
  1863   withFocusOutside: () => (/* reexport */ with_focus_outside),
  1951   withFocusReturn: () => (/* reexport */ with_focus_return),
  1864   withFocusReturn: () => (/* reexport */ with_focus_return),
  1968 
  1881 
  1969 // NAMESPACE OBJECT: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-base/styles.js
  1882 // NAMESPACE OBJECT: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-base/styles.js
  1970 var toggle_group_control_option_base_styles_namespaceObject = {};
  1883 var toggle_group_control_option_base_styles_namespaceObject = {};
  1971 __webpack_require__.r(toggle_group_control_option_base_styles_namespaceObject);
  1884 __webpack_require__.r(toggle_group_control_option_base_styles_namespaceObject);
  1972 __webpack_require__.d(toggle_group_control_option_base_styles_namespaceObject, {
  1885 __webpack_require__.d(toggle_group_control_option_base_styles_namespaceObject, {
  1973   ButtonContentView: () => (ButtonContentView),
  1886   Rp: () => (ButtonContentView),
  1974   LabelView: () => (LabelView),
  1887   y0: () => (LabelView),
  1975   ou: () => (backdropView),
       
  1976   uG: () => (buttonView),
  1888   uG: () => (buttonView),
  1977   eh: () => (labelBlock)
  1889   eh: () => (labelBlock)
  1978 });
  1890 });
  1979 
  1891 
  1980 ;// CONCATENATED MODULE: external ["wp","primitives"]
  1892 ;// external ["wp","primitives"]
  1981 const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
  1893 const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
  1982 ;// CONCATENATED MODULE: ./node_modules/clsx/dist/clsx.mjs
  1894 ;// ./node_modules/clsx/dist/clsx.mjs
  1983 function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
  1895 function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = (clsx);
  1984 ;// CONCATENATED MODULE: external ["wp","i18n"]
  1896 ;// external ["wp","i18n"]
  1985 const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
  1897 const external_wp_i18n_namespaceObject = window["wp"]["i18n"];
  1986 ;// CONCATENATED MODULE: external ["wp","compose"]
  1898 ;// external ["wp","compose"]
  1987 const external_wp_compose_namespaceObject = window["wp"]["compose"];
  1899 const external_wp_compose_namespaceObject = window["wp"]["compose"];
  1988 // EXTERNAL MODULE: external "React"
  1900 ;// external ["wp","element"]
  1989 var external_React_ = __webpack_require__(1609);
  1901 const external_wp_element_namespaceObject = window["wp"]["element"];
  1990 var external_React_namespaceObject = /*#__PURE__*/__webpack_require__.t(external_React_, 2);
  1902 ;// ./node_modules/@ariakit/react-core/esm/__chunks/3YLGPPWQ.js
  1991 var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
       
  1992 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/SHA3WOPI.js
       
  1993 "use client";
       
  1994 
       
  1995 // src/focusable/focusable-context.ts
       
  1996 
       
  1997 var FocusableContext = (0,external_React_.createContext)(true);
       
  1998 
       
  1999 
       
  2000 
       
  2001 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4R3V3JGP.js
       
  2002 "use client";
  1903 "use client";
  2003 var __defProp = Object.defineProperty;
  1904 var __defProp = Object.defineProperty;
  2004 var __defProps = Object.defineProperties;
  1905 var __defProps = Object.defineProperties;
  2005 var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
  1906 var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
  2006 var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  1907 var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  2007 var __hasOwnProp = Object.prototype.hasOwnProperty;
  1908 var __hasOwnProp = Object.prototype.hasOwnProperty;
  2008 var __propIsEnum = Object.prototype.propertyIsEnumerable;
  1909 var __propIsEnum = Object.prototype.propertyIsEnumerable;
  2009 var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  1910 var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  2010 var _4R3V3JGP_spreadValues = (a, b) => {
  1911 var _3YLGPPWQ_spreadValues = (a, b) => {
  2011   for (var prop in b || (b = {}))
  1912   for (var prop in b || (b = {}))
  2012     if (__hasOwnProp.call(b, prop))
  1913     if (__hasOwnProp.call(b, prop))
  2013       __defNormalProp(a, prop, b[prop]);
  1914       __defNormalProp(a, prop, b[prop]);
  2014   if (__getOwnPropSymbols)
  1915   if (__getOwnPropSymbols)
  2015     for (var prop of __getOwnPropSymbols(b)) {
  1916     for (var prop of __getOwnPropSymbols(b)) {
  2016       if (__propIsEnum.call(b, prop))
  1917       if (__propIsEnum.call(b, prop))
  2017         __defNormalProp(a, prop, b[prop]);
  1918         __defNormalProp(a, prop, b[prop]);
  2018     }
  1919     }
  2019   return a;
  1920   return a;
  2020 };
  1921 };
  2021 var _4R3V3JGP_spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
  1922 var _3YLGPPWQ_spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
  2022 var __objRest = (source, exclude) => {
  1923 var __objRest = (source, exclude) => {
  2023   var target = {};
  1924   var target = {};
  2024   for (var prop in source)
  1925   for (var prop in source)
  2025     if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
  1926     if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
  2026       target[prop] = source[prop];
  1927       target[prop] = source[prop];
  2032   return target;
  1933   return target;
  2033 };
  1934 };
  2034 
  1935 
  2035 
  1936 
  2036 
  1937 
  2037 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/4R3V3JGP.js
  1938 ;// ./node_modules/@ariakit/core/esm/__chunks/3YLGPPWQ.js
  2038 "use client";
  1939 "use client";
  2039 var _4R3V3JGP_defProp = Object.defineProperty;
  1940 var _3YLGPPWQ_defProp = Object.defineProperty;
  2040 var _4R3V3JGP_defProps = Object.defineProperties;
  1941 var _3YLGPPWQ_defProps = Object.defineProperties;
  2041 var _4R3V3JGP_getOwnPropDescs = Object.getOwnPropertyDescriptors;
  1942 var _3YLGPPWQ_getOwnPropDescs = Object.getOwnPropertyDescriptors;
  2042 var _4R3V3JGP_getOwnPropSymbols = Object.getOwnPropertySymbols;
  1943 var _3YLGPPWQ_getOwnPropSymbols = Object.getOwnPropertySymbols;
  2043 var _4R3V3JGP_hasOwnProp = Object.prototype.hasOwnProperty;
  1944 var _3YLGPPWQ_hasOwnProp = Object.prototype.hasOwnProperty;
  2044 var _4R3V3JGP_propIsEnum = Object.prototype.propertyIsEnumerable;
  1945 var _3YLGPPWQ_propIsEnum = Object.prototype.propertyIsEnumerable;
  2045 var _4R3V3JGP_defNormalProp = (obj, key, value) => key in obj ? _4R3V3JGP_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  1946 var _3YLGPPWQ_defNormalProp = (obj, key, value) => key in obj ? _3YLGPPWQ_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  2046 var _chunks_4R3V3JGP_spreadValues = (a, b) => {
  1947 var _chunks_3YLGPPWQ_spreadValues = (a, b) => {
  2047   for (var prop in b || (b = {}))
  1948   for (var prop in b || (b = {}))
  2048     if (_4R3V3JGP_hasOwnProp.call(b, prop))
  1949     if (_3YLGPPWQ_hasOwnProp.call(b, prop))
  2049       _4R3V3JGP_defNormalProp(a, prop, b[prop]);
  1950       _3YLGPPWQ_defNormalProp(a, prop, b[prop]);
  2050   if (_4R3V3JGP_getOwnPropSymbols)
  1951   if (_3YLGPPWQ_getOwnPropSymbols)
  2051     for (var prop of _4R3V3JGP_getOwnPropSymbols(b)) {
  1952     for (var prop of _3YLGPPWQ_getOwnPropSymbols(b)) {
  2052       if (_4R3V3JGP_propIsEnum.call(b, prop))
  1953       if (_3YLGPPWQ_propIsEnum.call(b, prop))
  2053         _4R3V3JGP_defNormalProp(a, prop, b[prop]);
  1954         _3YLGPPWQ_defNormalProp(a, prop, b[prop]);
  2054     }
  1955     }
  2055   return a;
  1956   return a;
  2056 };
  1957 };
  2057 var _chunks_4R3V3JGP_spreadProps = (a, b) => _4R3V3JGP_defProps(a, _4R3V3JGP_getOwnPropDescs(b));
  1958 var _chunks_3YLGPPWQ_spreadProps = (a, b) => _3YLGPPWQ_defProps(a, _3YLGPPWQ_getOwnPropDescs(b));
  2058 var _4R3V3JGP_objRest = (source, exclude) => {
  1959 var _3YLGPPWQ_objRest = (source, exclude) => {
  2059   var target = {};
  1960   var target = {};
  2060   for (var prop in source)
  1961   for (var prop in source)
  2061     if (_4R3V3JGP_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
  1962     if (_3YLGPPWQ_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
  2062       target[prop] = source[prop];
  1963       target[prop] = source[prop];
  2063   if (source != null && _4R3V3JGP_getOwnPropSymbols)
  1964   if (source != null && _3YLGPPWQ_getOwnPropSymbols)
  2064     for (var prop of _4R3V3JGP_getOwnPropSymbols(source)) {
  1965     for (var prop of _3YLGPPWQ_getOwnPropSymbols(source)) {
  2065       if (exclude.indexOf(prop) < 0 && _4R3V3JGP_propIsEnum.call(source, prop))
  1966       if (exclude.indexOf(prop) < 0 && _3YLGPPWQ_propIsEnum.call(source, prop))
  2066         target[prop] = source[prop];
  1967         target[prop] = source[prop];
  2067     }
  1968     }
  2068   return target;
  1969   return target;
  2069 };
  1970 };
  2070 
  1971 
  2071 
  1972 
  2072 
  1973 
  2073 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/Y3OOHFCN.js
  1974 ;// ./node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js
  2074 "use client";
  1975 "use client";
  2075 
  1976 
  2076 
  1977 
  2077 // src/utils/misc.ts
  1978 // src/utils/misc.ts
  2078 function noop(..._) {
  1979 function noop(..._) {
  2079 }
  1980 }
  2080 function shallowEqual(a, b) {
  1981 function shallowEqual(a, b) {
  2081   if (a === b)
  1982   if (a === b) return true;
  2082     return true;
  1983   if (!a) return false;
  2083   if (!a)
  1984   if (!b) return false;
  2084     return false;
  1985   if (typeof a !== "object") return false;
  2085   if (!b)
  1986   if (typeof b !== "object") return false;
  2086     return false;
       
  2087   if (typeof a !== "object")
       
  2088     return false;
       
  2089   if (typeof b !== "object")
       
  2090     return false;
       
  2091   const aKeys = Object.keys(a);
  1987   const aKeys = Object.keys(a);
  2092   const bKeys = Object.keys(b);
  1988   const bKeys = Object.keys(b);
  2093   const { length } = aKeys;
  1989   const { length } = aKeys;
  2094   if (bKeys.length !== length)
  1990   if (bKeys.length !== length) return false;
  2095     return false;
       
  2096   for (const key of aKeys) {
  1991   for (const key of aKeys) {
  2097     if (a[key] !== b[key]) {
  1992     if (a[key] !== b[key]) {
  2098       return false;
  1993       return false;
  2099     }
  1994     }
  2100   }
  1995   }
  2101   return true;
  1996   return true;
  2102 }
  1997 }
  2103 function Y3OOHFCN_applyState(argument, currentValue) {
  1998 function applyState(argument, currentValue) {
  2104   if (isUpdater(argument)) {
  1999   if (isUpdater(argument)) {
  2105     const value = isLazyValue(currentValue) ? currentValue() : currentValue;
  2000     const value = isLazyValue(currentValue) ? currentValue() : currentValue;
  2106     return argument(value);
  2001     return argument(value);
  2107   }
  2002   }
  2108   return argument;
  2003   return argument;
  2115 }
  2010 }
  2116 function isObject(arg) {
  2011 function isObject(arg) {
  2117   return typeof arg === "object" && arg != null;
  2012   return typeof arg === "object" && arg != null;
  2118 }
  2013 }
  2119 function isEmpty(arg) {
  2014 function isEmpty(arg) {
  2120   if (Array.isArray(arg))
  2015   if (Array.isArray(arg)) return !arg.length;
  2121     return !arg.length;
  2016   if (isObject(arg)) return !Object.keys(arg).length;
  2122   if (isObject(arg))
  2017   if (arg == null) return true;
  2123     return !Object.keys(arg).length;
  2018   if (arg === "") return true;
  2124   if (arg == null)
       
  2125     return true;
       
  2126   if (arg === "")
       
  2127     return true;
       
  2128   return false;
  2019   return false;
  2129 }
  2020 }
  2130 function isInteger(arg) {
  2021 function isInteger(arg) {
  2131   if (typeof arg === "number") {
  2022   if (typeof arg === "number") {
  2132     return Math.floor(arg) === arg;
  2023     return Math.floor(arg) === arg;
  2133   }
  2024   }
  2134   return String(Math.floor(Number(arg))) === arg;
  2025   return String(Math.floor(Number(arg))) === arg;
  2135 }
  2026 }
  2136 function Y3OOHFCN_hasOwnProperty(object, prop) {
  2027 function PBFD2E7P_hasOwnProperty(object, prop) {
  2137   if (typeof Object.hasOwn === "function") {
  2028   if (typeof Object.hasOwn === "function") {
  2138     return Object.hasOwn(object, prop);
  2029     return Object.hasOwn(object, prop);
  2139   }
  2030   }
  2140   return Object.prototype.hasOwnProperty.call(object, prop);
  2031   return Object.prototype.hasOwnProperty.call(object, prop);
  2141 }
  2032 }
  2153 }
  2044 }
  2154 function normalizeString(str) {
  2045 function normalizeString(str) {
  2155   return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
  2046   return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
  2156 }
  2047 }
  2157 function omit(object, keys) {
  2048 function omit(object, keys) {
  2158   const result = _chunks_4R3V3JGP_spreadValues({}, object);
  2049   const result = _chunks_3YLGPPWQ_spreadValues({}, object);
  2159   for (const key of keys) {
  2050   for (const key of keys) {
  2160     if (Y3OOHFCN_hasOwnProperty(result, key)) {
  2051     if (PBFD2E7P_hasOwnProperty(result, key)) {
  2161       delete result[key];
  2052       delete result[key];
  2162     }
  2053     }
  2163   }
  2054   }
  2164   return result;
  2055   return result;
  2165 }
  2056 }
  2166 function pick(object, paths) {
  2057 function pick(object, paths) {
  2167   const result = {};
  2058   const result = {};
  2168   for (const key of paths) {
  2059   for (const key of paths) {
  2169     if (Y3OOHFCN_hasOwnProperty(object, key)) {
  2060     if (PBFD2E7P_hasOwnProperty(object, key)) {
  2170       result[key] = object[key];
  2061       result[key] = object[key];
  2171     }
  2062     }
  2172   }
  2063   }
  2173   return result;
  2064   return result;
  2174 }
  2065 }
  2184     raf = requestAnimationFrame(cb);
  2075     raf = requestAnimationFrame(cb);
  2185   });
  2076   });
  2186   return () => cancelAnimationFrame(raf);
  2077   return () => cancelAnimationFrame(raf);
  2187 }
  2078 }
  2188 function invariant(condition, message) {
  2079 function invariant(condition, message) {
  2189   if (condition)
  2080   if (condition) return;
  2190     return;
  2081   if (typeof message !== "string") throw new Error("Invariant failed");
  2191   if (typeof message !== "string")
       
  2192     throw new Error("Invariant failed");
       
  2193   throw new Error(message);
  2082   throw new Error(message);
  2194 }
  2083 }
  2195 function getKeys(obj) {
  2084 function getKeys(obj) {
  2196   return Object.keys(obj);
  2085   return Object.keys(obj);
  2197 }
  2086 }
  2198 function isFalsyBooleanCallback(booleanOrCallback, ...args) {
  2087 function isFalsyBooleanCallback(booleanOrCallback, ...args) {
  2199   const result = typeof booleanOrCallback === "function" ? booleanOrCallback(...args) : booleanOrCallback;
  2088   const result = typeof booleanOrCallback === "function" ? booleanOrCallback(...args) : booleanOrCallback;
  2200   if (result == null)
  2089   if (result == null) return false;
  2201     return false;
       
  2202   return !result;
  2090   return !result;
  2203 }
  2091 }
  2204 function disabledFromProps(props) {
  2092 function disabledFromProps(props) {
  2205   return props.disabled || props["aria-disabled"] === true || props["aria-disabled"] === "true";
  2093   return props.disabled || props["aria-disabled"] === true || props["aria-disabled"] === "true";
  2206 }
  2094 }
       
  2095 function removeUndefinedValues(obj) {
       
  2096   const result = {};
       
  2097   for (const key in obj) {
       
  2098     if (obj[key] !== void 0) {
       
  2099       result[key] = obj[key];
       
  2100     }
       
  2101   }
       
  2102   return result;
       
  2103 }
  2207 function defaultValue(...values) {
  2104 function defaultValue(...values) {
  2208   for (const value of values) {
  2105   for (const value of values) {
  2209     if (value !== void 0)
  2106     if (value !== void 0) return value;
  2210       return value;
       
  2211   }
  2107   }
  2212   return void 0;
  2108   return void 0;
  2213 }
  2109 }
  2214 
  2110 
  2215 
  2111 
  2216 
  2112 
  2217 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/XM66DUTO.js
  2113 // EXTERNAL MODULE: external "React"
       
  2114 var external_React_ = __webpack_require__(1609);
       
  2115 var external_React_namespaceObject = /*#__PURE__*/__webpack_require__.t(external_React_, 2);
       
  2116 var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
       
  2117 ;// ./node_modules/@ariakit/react-core/esm/__chunks/SK3NAZA3.js
  2218 "use client";
  2118 "use client";
  2219 
  2119 
  2220 
  2120 
  2221 // src/utils/misc.ts
  2121 // src/utils/misc.ts
  2222 
  2122 
  2227   } else if (ref) {
  2127   } else if (ref) {
  2228     ref.current = value;
  2128     ref.current = value;
  2229   }
  2129   }
  2230 }
  2130 }
  2231 function isValidElementWithRef(element) {
  2131 function isValidElementWithRef(element) {
  2232   if (!element)
  2132   if (!element) return false;
  2233     return false;
  2133   if (!(0,external_React_.isValidElement)(element)) return false;
  2234   if (!(0,external_React_.isValidElement)(element))
  2134   if ("ref" in element.props) return true;
  2235     return false;
  2135   if ("ref" in element) return true;
  2236   if (!("ref" in element))
  2136   return false;
  2237     return false;
       
  2238   return true;
       
  2239 }
  2137 }
  2240 function getRefProperty(element) {
  2138 function getRefProperty(element) {
  2241   if (!isValidElementWithRef(element))
  2139   if (!isValidElementWithRef(element)) return null;
  2242     return null;
  2140   const props = _3YLGPPWQ_spreadValues({}, element.props);
  2243   return element.ref;
  2141   return props.ref || element.ref;
  2244 }
  2142 }
  2245 function mergeProps(base, overrides) {
  2143 function mergeProps(base, overrides) {
  2246   const props = _4R3V3JGP_spreadValues({}, base);
  2144   const props = _3YLGPPWQ_spreadValues({}, base);
  2247   for (const key in overrides) {
  2145   for (const key in overrides) {
  2248     if (!Y3OOHFCN_hasOwnProperty(overrides, key))
  2146     if (!PBFD2E7P_hasOwnProperty(overrides, key)) continue;
  2249       continue;
       
  2250     if (key === "className") {
  2147     if (key === "className") {
  2251       const prop = "className";
  2148       const prop = "className";
  2252       props[prop] = base[prop] ? `${base[prop]} ${overrides[prop]}` : overrides[prop];
  2149       props[prop] = base[prop] ? `${base[prop]} ${overrides[prop]}` : overrides[prop];
  2253       continue;
  2150       continue;
  2254     }
  2151     }
  2255     if (key === "style") {
  2152     if (key === "style") {
  2256       const prop = "style";
  2153       const prop = "style";
  2257       props[prop] = base[prop] ? _4R3V3JGP_spreadValues(_4R3V3JGP_spreadValues({}, base[prop]), overrides[prop]) : overrides[prop];
  2154       props[prop] = base[prop] ? _3YLGPPWQ_spreadValues(_3YLGPPWQ_spreadValues({}, base[prop]), overrides[prop]) : overrides[prop];
  2258       continue;
  2155       continue;
  2259     }
  2156     }
  2260     const overrideValue = overrides[key];
  2157     const overrideValue = overrides[key];
  2261     if (typeof overrideValue === "function" && key.startsWith("on")) {
  2158     if (typeof overrideValue === "function" && key.startsWith("on")) {
  2262       const baseValue = base[key];
  2159       const baseValue = base[key];
  2273   return props;
  2170   return props;
  2274 }
  2171 }
  2275 
  2172 
  2276 
  2173 
  2277 
  2174 
  2278 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/DLOEKDPY.js
  2175 ;// ./node_modules/@ariakit/core/esm/__chunks/DTR5TSDJ.js
  2279 "use client";
  2176 "use client";
  2280 
  2177 
  2281 // src/utils/dom.ts
  2178 // src/utils/dom.ts
  2282 var canUseDOM = checkIsBrowser();
  2179 var canUseDOM = checkIsBrowser();
  2283 function checkIsBrowser() {
  2180 function checkIsBrowser() {
  2284   var _a;
  2181   var _a;
  2285   return typeof window !== "undefined" && !!((_a = window.document) == null ? void 0 : _a.createElement);
  2182   return typeof window !== "undefined" && !!((_a = window.document) == null ? void 0 : _a.createElement);
  2286 }
  2183 }
  2287 function DLOEKDPY_getDocument(node) {
  2184 function getDocument(node) {
  2288   return node ? node.ownerDocument || node : document;
  2185   if (!node) return document;
       
  2186   if ("self" in node) return node.document;
       
  2187   return node.ownerDocument || document;
  2289 }
  2188 }
  2290 function getWindow(node) {
  2189 function getWindow(node) {
  2291   return DLOEKDPY_getDocument(node).defaultView || window;
  2190   if (!node) return self;
       
  2191   if ("self" in node) return node.self;
       
  2192   return getDocument(node).defaultView || window;
  2292 }
  2193 }
  2293 function getActiveElement(node, activeDescendant = false) {
  2194 function getActiveElement(node, activeDescendant = false) {
  2294   const { activeElement } = DLOEKDPY_getDocument(node);
  2195   const { activeElement } = getDocument(node);
  2295   if (!(activeElement == null ? void 0 : activeElement.nodeName)) {
  2196   if (!(activeElement == null ? void 0 : activeElement.nodeName)) {
  2296     return null;
  2197     return null;
  2297   }
  2198   }
  2298   if (isFrame(activeElement) && activeElement.contentDocument) {
  2199   if (isFrame(activeElement) && activeElement.contentDocument) {
  2299     return getActiveElement(
  2200     return getActiveElement(
  2302     );
  2203     );
  2303   }
  2204   }
  2304   if (activeDescendant) {
  2205   if (activeDescendant) {
  2305     const id = activeElement.getAttribute("aria-activedescendant");
  2206     const id = activeElement.getAttribute("aria-activedescendant");
  2306     if (id) {
  2207     if (id) {
  2307       const element = DLOEKDPY_getDocument(activeElement).getElementById(id);
  2208       const element = getDocument(activeElement).getElementById(id);
  2308       if (element) {
  2209       if (element) {
  2309         return element;
  2210         return element;
  2310       }
  2211       }
  2311     }
  2212     }
  2312   }
  2213   }
  2318 function isFrame(element) {
  2219 function isFrame(element) {
  2319   return element.tagName === "IFRAME";
  2220   return element.tagName === "IFRAME";
  2320 }
  2221 }
  2321 function isButton(element) {
  2222 function isButton(element) {
  2322   const tagName = element.tagName.toLowerCase();
  2223   const tagName = element.tagName.toLowerCase();
  2323   if (tagName === "button")
  2224   if (tagName === "button") return true;
  2324     return true;
       
  2325   if (tagName === "input" && element.type) {
  2225   if (tagName === "input" && element.type) {
  2326     return buttonInputTypes.indexOf(element.type) !== -1;
  2226     return buttonInputTypes.indexOf(element.type) !== -1;
  2327   }
  2227   }
  2328   return false;
  2228   return false;
  2329 }
  2229 }
  2333   "file",
  2233   "file",
  2334   "image",
  2234   "image",
  2335   "reset",
  2235   "reset",
  2336   "submit"
  2236   "submit"
  2337 ];
  2237 ];
  2338 function matches(element, selectors) {
       
  2339   if ("matches" in element) {
       
  2340     return element.matches(selectors);
       
  2341   }
       
  2342   if ("msMatchesSelector" in element) {
       
  2343     return element.msMatchesSelector(selectors);
       
  2344   }
       
  2345   return element.webkitMatchesSelector(selectors);
       
  2346 }
       
  2347 function isVisible(element) {
  2238 function isVisible(element) {
       
  2239   if (typeof element.checkVisibility === "function") {
       
  2240     return element.checkVisibility();
       
  2241   }
  2348   const htmlElement = element;
  2242   const htmlElement = element;
  2349   return htmlElement.offsetWidth > 0 || htmlElement.offsetHeight > 0 || element.getClientRects().length > 0;
  2243   return htmlElement.offsetWidth > 0 || htmlElement.offsetHeight > 0 || element.getClientRects().length > 0;
  2350 }
  2244 }
  2351 function DLOEKDPY_closest(element, selectors) {
  2245 function isTextField(element) {
  2352   if ("closest" in element)
       
  2353     return element.closest(selectors);
       
  2354   do {
       
  2355     if (matches(element, selectors))
       
  2356       return element;
       
  2357     element = element.parentElement || element.parentNode;
       
  2358   } while (element !== null && element.nodeType === 1);
       
  2359   return null;
       
  2360 }
       
  2361 function DLOEKDPY_isTextField(element) {
       
  2362   try {
  2246   try {
  2363     const isTextInput = element instanceof HTMLInputElement && element.selectionStart !== null;
  2247     const isTextInput = element instanceof HTMLInputElement && element.selectionStart !== null;
  2364     const isTextArea = element.tagName === "TEXTAREA";
  2248     const isTextArea = element.tagName === "TEXTAREA";
  2365     return isTextInput || isTextArea || false;
  2249     return isTextInput || isTextArea || false;
  2366   } catch (error) {
  2250   } catch (error) {
  2367     return false;
  2251     return false;
  2368   }
  2252   }
  2369 }
  2253 }
  2370 function getPopupRole(element, fallback) {
  2254 function isTextbox(element) {
  2371   const allowedPopupRoles = ["dialog", "menu", "listbox", "tree", "grid"];
  2255   return element.isContentEditable || isTextField(element);
  2372   const role = element == null ? void 0 : element.getAttribute("role");
  2256 }
  2373   if (role && allowedPopupRoles.indexOf(role) !== -1) {
  2257 function getTextboxValue(element) {
  2374     return role;
  2258   if (isTextField(element)) {
  2375   }
  2259     return element.value;
  2376   return fallback;
  2260   }
  2377 }
  2261   if (element.isContentEditable) {
  2378 function getPopupItemRole(element, fallback) {
  2262     const range = getDocument(element).createRange();
  2379   var _a;
  2263     range.selectNodeContents(element);
  2380   const itemRoleByPopupRole = {
  2264     return range.toString();
  2381     menu: "menuitem",
  2265   }
  2382     listbox: "option",
  2266   return "";
  2383     tree: "treeitem",
       
  2384     grid: "gridcell"
       
  2385   };
       
  2386   const popupRole = getPopupRole(element);
       
  2387   if (!popupRole)
       
  2388     return fallback;
       
  2389   const key = popupRole;
       
  2390   return (_a = itemRoleByPopupRole[key]) != null ? _a : fallback;
       
  2391 }
  2267 }
  2392 function getTextboxSelection(element) {
  2268 function getTextboxSelection(element) {
  2393   let start = 0;
  2269   let start = 0;
  2394   let end = 0;
  2270   let end = 0;
  2395   if (DLOEKDPY_isTextField(element)) {
  2271   if (isTextField(element)) {
  2396     start = element.selectionStart || 0;
  2272     start = element.selectionStart || 0;
  2397     end = element.selectionEnd || 0;
  2273     end = element.selectionEnd || 0;
  2398   } else if (element.isContentEditable) {
  2274   } else if (element.isContentEditable) {
  2399     const selection = DLOEKDPY_getDocument(element).getSelection();
  2275     const selection = getDocument(element).getSelection();
  2400     if ((selection == null ? void 0 : selection.rangeCount) && selection.anchorNode && contains(element, selection.anchorNode) && selection.focusNode && contains(element, selection.focusNode)) {
  2276     if ((selection == null ? void 0 : selection.rangeCount) && selection.anchorNode && contains(element, selection.anchorNode) && selection.focusNode && contains(element, selection.focusNode)) {
  2401       const range = selection.getRangeAt(0);
  2277       const range = selection.getRangeAt(0);
  2402       const nextRange = range.cloneRange();
  2278       const nextRange = range.cloneRange();
  2403       nextRange.selectNodeContents(element);
  2279       nextRange.selectNodeContents(element);
  2404       nextRange.setEnd(range.startContainer, range.startOffset);
  2280       nextRange.setEnd(range.startContainer, range.startOffset);
  2407       end = nextRange.toString().length;
  2283       end = nextRange.toString().length;
  2408     }
  2284     }
  2409   }
  2285   }
  2410   return { start, end };
  2286   return { start, end };
  2411 }
  2287 }
       
  2288 function getPopupRole(element, fallback) {
       
  2289   const allowedPopupRoles = ["dialog", "menu", "listbox", "tree", "grid"];
       
  2290   const role = element == null ? void 0 : element.getAttribute("role");
       
  2291   if (role && allowedPopupRoles.indexOf(role) !== -1) {
       
  2292     return role;
       
  2293   }
       
  2294   return fallback;
       
  2295 }
       
  2296 function getPopupItemRole(element, fallback) {
       
  2297   var _a;
       
  2298   const itemRoleByPopupRole = {
       
  2299     menu: "menuitem",
       
  2300     listbox: "option",
       
  2301     tree: "treeitem"
       
  2302   };
       
  2303   const popupRole = getPopupRole(element);
       
  2304   if (!popupRole) return fallback;
       
  2305   const key = popupRole;
       
  2306   return (_a = itemRoleByPopupRole[key]) != null ? _a : fallback;
       
  2307 }
  2412 function scrollIntoViewIfNeeded(element, arg) {
  2308 function scrollIntoViewIfNeeded(element, arg) {
  2413   if (isPartiallyHidden(element) && "scrollIntoView" in element) {
  2309   if (isPartiallyHidden(element) && "scrollIntoView" in element) {
  2414     element.scrollIntoView(arg);
  2310     element.scrollIntoView(arg);
  2415   }
  2311   }
  2416 }
  2312 }
  2417 function getScrollingElement(element) {
  2313 function getScrollingElement(element) {
  2418   if (!element)
  2314   if (!element) return null;
  2419     return null;
  2315   const isScrollableOverflow = (overflow) => {
       
  2316     if (overflow === "auto") return true;
       
  2317     if (overflow === "scroll") return true;
       
  2318     return false;
       
  2319   };
  2420   if (element.clientHeight && element.scrollHeight > element.clientHeight) {
  2320   if (element.clientHeight && element.scrollHeight > element.clientHeight) {
  2421     const { overflowY } = getComputedStyle(element);
  2321     const { overflowY } = getComputedStyle(element);
  2422     const isScrollable = overflowY !== "visible" && overflowY !== "hidden";
  2322     if (isScrollableOverflow(overflowY)) return element;
  2423     if (isScrollable)
       
  2424       return element;
       
  2425   } else if (element.clientWidth && element.scrollWidth > element.clientWidth) {
  2323   } else if (element.clientWidth && element.scrollWidth > element.clientWidth) {
  2426     const { overflowX } = getComputedStyle(element);
  2324     const { overflowX } = getComputedStyle(element);
  2427     const isScrollable = overflowX !== "visible" && overflowX !== "hidden";
  2325     if (isScrollableOverflow(overflowX)) return element;
  2428     if (isScrollable)
       
  2429       return element;
       
  2430   }
  2326   }
  2431   return getScrollingElement(element.parentElement) || document.scrollingElement || document.body;
  2327   return getScrollingElement(element.parentElement) || document.scrollingElement || document.body;
  2432 }
  2328 }
  2433 function isPartiallyHidden(element) {
  2329 function isPartiallyHidden(element) {
  2434   const elementRect = element.getBoundingClientRect();
  2330   const elementRect = element.getBoundingClientRect();
  2435   const scroller = getScrollingElement(element);
  2331   const scroller = getScrollingElement(element);
  2436   if (!scroller)
  2332   if (!scroller) return false;
  2437     return false;
       
  2438   const scrollerRect = scroller.getBoundingClientRect();
  2333   const scrollerRect = scroller.getBoundingClientRect();
  2439   const isHTML = scroller.tagName === "HTML";
  2334   const isHTML = scroller.tagName === "HTML";
  2440   const scrollerTop = isHTML ? scrollerRect.top + scroller.scrollTop : scrollerRect.top;
  2335   const scrollerTop = isHTML ? scrollerRect.top + scroller.scrollTop : scrollerRect.top;
  2441   const scrollerBottom = isHTML ? scroller.clientHeight : scrollerRect.bottom;
  2336   const scrollerBottom = isHTML ? scroller.clientHeight : scrollerRect.bottom;
  2442   const scrollerLeft = isHTML ? scrollerRect.left + scroller.scrollLeft : scrollerRect.left;
  2337   const scrollerLeft = isHTML ? scrollerRect.left + scroller.scrollLeft : scrollerRect.left;
  2450 function setSelectionRange(element, ...args) {
  2345 function setSelectionRange(element, ...args) {
  2451   if (/text|search|password|tel|url/i.test(element.type)) {
  2346   if (/text|search|password|tel|url/i.test(element.type)) {
  2452     element.setSelectionRange(...args);
  2347     element.setSelectionRange(...args);
  2453   }
  2348   }
  2454 }
  2349 }
  2455 
  2350 function sortBasedOnDOMPosition(items, getElement) {
  2456 
  2351   const pairs = items.map((item, index) => [index, item]);
  2457 
  2352   let isOrderDifferent = false;
  2458 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/MHPO2BXA.js
  2353   pairs.sort(([indexA, a], [indexB, b]) => {
       
  2354     const elementA = getElement(a);
       
  2355     const elementB = getElement(b);
       
  2356     if (elementA === elementB) return 0;
       
  2357     if (!elementA || !elementB) return 0;
       
  2358     if (isElementPreceding(elementA, elementB)) {
       
  2359       if (indexA > indexB) {
       
  2360         isOrderDifferent = true;
       
  2361       }
       
  2362       return -1;
       
  2363     }
       
  2364     if (indexA < indexB) {
       
  2365       isOrderDifferent = true;
       
  2366     }
       
  2367     return 1;
       
  2368   });
       
  2369   if (isOrderDifferent) {
       
  2370     return pairs.map(([_, item]) => item);
       
  2371   }
       
  2372   return items;
       
  2373 }
       
  2374 function isElementPreceding(a, b) {
       
  2375   return Boolean(
       
  2376     b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING
       
  2377   );
       
  2378 }
       
  2379 
       
  2380 
       
  2381 
       
  2382 ;// ./node_modules/@ariakit/core/esm/__chunks/QAGXQEUG.js
  2459 "use client";
  2383 "use client";
  2460 
  2384 
  2461 
  2385 
  2462 // src/utils/platform.ts
  2386 // src/utils/platform.ts
  2463 function isTouchDevice() {
  2387 function isTouchDevice() {
  2464   return canUseDOM && !!navigator.maxTouchPoints;
  2388   return canUseDOM && !!navigator.maxTouchPoints;
  2465 }
  2389 }
  2466 function isApple() {
  2390 function isApple() {
  2467   if (!canUseDOM)
  2391   if (!canUseDOM) return false;
  2468     return false;
       
  2469   return /mac|iphone|ipad|ipod/i.test(navigator.platform);
  2392   return /mac|iphone|ipad|ipod/i.test(navigator.platform);
  2470 }
  2393 }
  2471 function isSafari() {
  2394 function isSafari() {
  2472   return canUseDOM && isApple() && /apple/i.test(navigator.vendor);
  2395   return canUseDOM && isApple() && /apple/i.test(navigator.vendor);
  2473 }
  2396 }
  2478   return canUseDOM && navigator.platform.startsWith("Mac") && !isTouchDevice();
  2401   return canUseDOM && navigator.platform.startsWith("Mac") && !isTouchDevice();
  2479 }
  2402 }
  2480 
  2403 
  2481 
  2404 
  2482 
  2405 
  2483 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/utils/events.js
  2406 ;// ./node_modules/@ariakit/core/esm/utils/events.js
  2484 "use client";
  2407 "use client";
  2485 
  2408 
  2486 
  2409 
  2487 
  2410 
  2488 
  2411 
  2495 function isSelfTarget(event) {
  2418 function isSelfTarget(event) {
  2496   return event.target === event.currentTarget;
  2419   return event.target === event.currentTarget;
  2497 }
  2420 }
  2498 function isOpeningInNewTab(event) {
  2421 function isOpeningInNewTab(event) {
  2499   const element = event.currentTarget;
  2422   const element = event.currentTarget;
  2500   if (!element)
  2423   if (!element) return false;
  2501     return false;
       
  2502   const isAppleDevice = isApple();
  2424   const isAppleDevice = isApple();
  2503   if (isAppleDevice && !event.metaKey)
  2425   if (isAppleDevice && !event.metaKey) return false;
  2504     return false;
  2426   if (!isAppleDevice && !event.ctrlKey) return false;
  2505   if (!isAppleDevice && !event.ctrlKey)
       
  2506     return false;
       
  2507   const tagName = element.tagName.toLowerCase();
  2427   const tagName = element.tagName.toLowerCase();
  2508   if (tagName === "a")
  2428   if (tagName === "a") return true;
  2509     return true;
  2429   if (tagName === "button" && element.type === "submit") return true;
  2510   if (tagName === "button" && element.type === "submit")
  2430   if (tagName === "input" && element.type === "submit") return true;
  2511     return true;
       
  2512   if (tagName === "input" && element.type === "submit")
       
  2513     return true;
       
  2514   return false;
  2431   return false;
  2515 }
  2432 }
  2516 function isDownloading(event) {
  2433 function isDownloading(event) {
  2517   const element = event.currentTarget;
  2434   const element = event.currentTarget;
  2518   if (!element)
  2435   if (!element) return false;
  2519     return false;
       
  2520   const tagName = element.tagName.toLowerCase();
  2436   const tagName = element.tagName.toLowerCase();
  2521   if (!event.altKey)
  2437   if (!event.altKey) return false;
  2522     return false;
  2438   if (tagName === "a") return true;
  2523   if (tagName === "a")
  2439   if (tagName === "button" && element.type === "submit") return true;
  2524     return true;
  2440   if (tagName === "input" && element.type === "submit") return true;
  2525   if (tagName === "button" && element.type === "submit")
       
  2526     return true;
       
  2527   if (tagName === "input" && element.type === "submit")
       
  2528     return true;
       
  2529   return false;
  2441   return false;
  2530 }
  2442 }
  2531 function fireEvent(element, type, eventInit) {
  2443 function fireEvent(element, type, eventInit) {
  2532   const event = new Event(type, eventInit);
  2444   const event = new Event(type, eventInit);
  2533   return element.dispatchEvent(event);
  2445   return element.dispatchEvent(event);
  2534 }
  2446 }
  2535 function fireBlurEvent(element, eventInit) {
  2447 function fireBlurEvent(element, eventInit) {
  2536   const event = new FocusEvent("blur", eventInit);
  2448   const event = new FocusEvent("blur", eventInit);
  2537   const defaultAllowed = element.dispatchEvent(event);
  2449   const defaultAllowed = element.dispatchEvent(event);
  2538   const bubbleInit = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, eventInit), { bubbles: true });
  2450   const bubbleInit = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, eventInit), { bubbles: true });
  2539   element.dispatchEvent(new FocusEvent("focusout", bubbleInit));
  2451   element.dispatchEvent(new FocusEvent("focusout", bubbleInit));
  2540   return defaultAllowed;
  2452   return defaultAllowed;
  2541 }
  2453 }
  2542 function fireFocusEvent(element, eventInit) {
  2454 function fireFocusEvent(element, eventInit) {
  2543   const event = new FocusEvent("focus", eventInit);
  2455   const event = new FocusEvent("focus", eventInit);
  2557 function isFocusEventOutside(event, container) {
  2469 function isFocusEventOutside(event, container) {
  2558   const containerElement = container || event.currentTarget;
  2470   const containerElement = container || event.currentTarget;
  2559   const relatedTarget = event.relatedTarget;
  2471   const relatedTarget = event.relatedTarget;
  2560   return !relatedTarget || !contains(containerElement, relatedTarget);
  2472   return !relatedTarget || !contains(containerElement, relatedTarget);
  2561 }
  2473 }
  2562 function queueBeforeEvent(element, type, callback) {
  2474 function getInputType(event) {
  2563   const raf = requestAnimationFrame(() => {
  2475   const nativeEvent = "nativeEvent" in event ? event.nativeEvent : event;
  2564     element.removeEventListener(type, callImmediately, true);
  2476   if (!nativeEvent) return;
       
  2477   if (!("inputType" in nativeEvent)) return;
       
  2478   if (typeof nativeEvent.inputType !== "string") return;
       
  2479   return nativeEvent.inputType;
       
  2480 }
       
  2481 function queueBeforeEvent(element, type, callback, timeout) {
       
  2482   const createTimer = (callback2) => {
       
  2483     if (timeout) {
       
  2484       const timerId2 = setTimeout(callback2, timeout);
       
  2485       return () => clearTimeout(timerId2);
       
  2486     }
       
  2487     const timerId = requestAnimationFrame(callback2);
       
  2488     return () => cancelAnimationFrame(timerId);
       
  2489   };
       
  2490   const cancelTimer = createTimer(() => {
       
  2491     element.removeEventListener(type, callSync, true);
  2565     callback();
  2492     callback();
  2566   });
  2493   });
  2567   const callImmediately = () => {
  2494   const callSync = () => {
  2568     cancelAnimationFrame(raf);
  2495     cancelTimer();
  2569     callback();
  2496     callback();
  2570   };
  2497   };
  2571   element.addEventListener(type, callImmediately, {
  2498   element.addEventListener(type, callSync, { once: true, capture: true });
  2572     once: true,
  2499   return cancelTimer;
  2573     capture: true
       
  2574   });
       
  2575   return raf;
       
  2576 }
  2500 }
  2577 function addGlobalEventListener(type, listener, options, scope = window) {
  2501 function addGlobalEventListener(type, listener, options, scope = window) {
  2578   const children = [];
  2502   const children = [];
  2579   try {
  2503   try {
  2580     scope.document.addEventListener(type, listener, options);
  2504     scope.document.addEventListener(type, listener, options);
  2586   const removeEventListener = () => {
  2510   const removeEventListener = () => {
  2587     try {
  2511     try {
  2588       scope.document.removeEventListener(type, listener, options);
  2512       scope.document.removeEventListener(type, listener, options);
  2589     } catch (e) {
  2513     } catch (e) {
  2590     }
  2514     }
  2591     children.forEach((remove) => remove());
  2515     for (const remove of children) {
       
  2516       remove();
       
  2517     }
  2592   };
  2518   };
  2593   return removeEventListener;
  2519   return removeEventListener;
  2594 }
  2520 }
  2595 
  2521 
  2596 
  2522 
  2597 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/6O5OEQGF.js
  2523 ;// ./node_modules/@ariakit/react-core/esm/__chunks/ABQUS43J.js
  2598 "use client";
  2524 "use client";
  2599 
  2525 
  2600 
  2526 
  2601 
  2527 
  2602 // src/utils/hooks.ts
  2528 // src/utils/hooks.ts
  2603 
  2529 
  2604 
  2530 
  2605 
  2531 
  2606 
  2532 
  2607 
  2533 var _React = _3YLGPPWQ_spreadValues({}, external_React_namespaceObject);
  2608 var _React = _4R3V3JGP_spreadValues({}, external_React_namespaceObject);
       
  2609 var useReactId = _React.useId;
  2534 var useReactId = _React.useId;
  2610 var useReactDeferredValue = _React.useDeferredValue;
  2535 var useReactDeferredValue = _React.useDeferredValue;
  2611 var useReactInsertionEffect = _React.useInsertionEffect;
  2536 var useReactInsertionEffect = _React.useInsertionEffect;
  2612 var useSafeLayoutEffect = canUseDOM ? external_React_.useLayoutEffect : external_React_.useEffect;
  2537 var useSafeLayoutEffect = canUseDOM ? external_React_.useLayoutEffect : external_React_.useEffect;
  2613 function useInitialValue(value) {
  2538 function useInitialValue(value) {
  2649   return (0,external_React_.useCallback)((...args) => {
  2574   return (0,external_React_.useCallback)((...args) => {
  2650     var _a;
  2575     var _a;
  2651     return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);
  2576     return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);
  2652   }, []);
  2577   }, []);
  2653 }
  2578 }
       
  2579 function useTransactionState(callback) {
       
  2580   const [state, setState] = (0,external_React_.useState)(null);
       
  2581   useSafeLayoutEffect(() => {
       
  2582     if (state == null) return;
       
  2583     if (!callback) return;
       
  2584     let prevState = null;
       
  2585     callback((prev) => {
       
  2586       prevState = prev;
       
  2587       return state;
       
  2588     });
       
  2589     return () => {
       
  2590       callback(prevState);
       
  2591     };
       
  2592   }, [state, callback]);
       
  2593   return [state, setState];
       
  2594 }
  2654 function useMergeRefs(...refs) {
  2595 function useMergeRefs(...refs) {
  2655   return (0,external_React_.useMemo)(() => {
  2596   return (0,external_React_.useMemo)(() => {
  2656     if (!refs.some(Boolean))
  2597     if (!refs.some(Boolean)) return;
  2657       return;
       
  2658     return (value) => {
  2598     return (value) => {
  2659       refs.forEach((ref) => setRef(ref, value));
  2599       for (const ref of refs) {
       
  2600         setRef(ref, value);
       
  2601       }
  2660     };
  2602     };
  2661   }, refs);
  2603   }, refs);
  2662 }
       
  2663 function useRefId(ref, deps) {
       
  2664   const [id, setId] = useState(void 0);
       
  2665   useSafeLayoutEffect(() => {
       
  2666     var _a;
       
  2667     setId((_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.id);
       
  2668   }, deps);
       
  2669   return id;
       
  2670 }
  2604 }
  2671 function useId(defaultId) {
  2605 function useId(defaultId) {
  2672   if (useReactId) {
  2606   if (useReactId) {
  2673     const reactId = useReactId();
  2607     const reactId = useReactId();
  2674     if (defaultId)
  2608     if (defaultId) return defaultId;
  2675       return defaultId;
       
  2676     return reactId;
  2609     return reactId;
  2677   }
  2610   }
  2678   const [id, setId] = (0,external_React_.useState)(defaultId);
  2611   const [id, setId] = (0,external_React_.useState)(defaultId);
  2679   useSafeLayoutEffect(() => {
  2612   useSafeLayoutEffect(() => {
  2680     if (defaultId || id)
  2613     if (defaultId || id) return;
  2681       return;
  2614     const random = Math.random().toString(36).slice(2, 8);
  2682     const random = Math.random().toString(36).substr(2, 6);
       
  2683     setId(`id-${random}`);
  2615     setId(`id-${random}`);
  2684   }, [defaultId, id]);
  2616   }, [defaultId, id]);
  2685   return defaultId || id;
  2617   return defaultId || id;
  2686 }
  2618 }
  2687 function useDeferredValue(value) {
  2619 function useDeferredValue(value) {
  2695   }, [value]);
  2627   }, [value]);
  2696   return deferredValue;
  2628   return deferredValue;
  2697 }
  2629 }
  2698 function useTagName(refOrElement, type) {
  2630 function useTagName(refOrElement, type) {
  2699   const stringOrUndefined = (type2) => {
  2631   const stringOrUndefined = (type2) => {
  2700     if (typeof type2 !== "string")
  2632     if (typeof type2 !== "string") return;
  2701       return;
       
  2702     return type2;
  2633     return type2;
  2703   };
  2634   };
  2704   const [tagName, setTagName] = (0,external_React_.useState)(() => stringOrUndefined(type));
  2635   const [tagName, setTagName] = (0,external_React_.useState)(() => stringOrUndefined(type));
  2705   useSafeLayoutEffect(() => {
  2636   useSafeLayoutEffect(() => {
  2706     const element = refOrElement && "current" in refOrElement ? refOrElement.current : refOrElement;
  2637     const element = refOrElement && "current" in refOrElement ? refOrElement.current : refOrElement;
  2707     setTagName((element == null ? void 0 : element.tagName.toLowerCase()) || stringOrUndefined(type));
  2638     setTagName((element == null ? void 0 : element.tagName.toLowerCase()) || stringOrUndefined(type));
  2708   }, [refOrElement, type]);
  2639   }, [refOrElement, type]);
  2709   return tagName;
  2640   return tagName;
  2710 }
  2641 }
  2711 function useAttribute(refOrElement, attributeName, defaultValue) {
  2642 function useAttribute(refOrElement, attributeName, defaultValue) {
  2712   const [attribute, setAttribute] = useState(defaultValue);
  2643   const initialValue = useInitialValue(defaultValue);
  2713   useSafeLayoutEffect(() => {
  2644   const [attribute, setAttribute] = (0,external_React_.useState)(initialValue);
       
  2645   (0,external_React_.useEffect)(() => {
  2714     const element = refOrElement && "current" in refOrElement ? refOrElement.current : refOrElement;
  2646     const element = refOrElement && "current" in refOrElement ? refOrElement.current : refOrElement;
  2715     const value = element == null ? void 0 : element.getAttribute(attributeName);
  2647     if (!element) return;
  2716     if (value == null)
  2648     const callback = () => {
  2717       return;
  2649       const value = element.getAttribute(attributeName);
  2718     setAttribute(value);
  2650       setAttribute(value == null ? initialValue : value);
  2719   }, [refOrElement, attributeName]);
  2651     };
       
  2652     const observer = new MutationObserver(callback);
       
  2653     observer.observe(element, { attributeFilter: [attributeName] });
       
  2654     callback();
       
  2655     return () => observer.disconnect();
       
  2656   }, [refOrElement, attributeName, initialValue]);
  2720   return attribute;
  2657   return attribute;
  2721 }
  2658 }
  2722 function useUpdateEffect(effect, deps) {
  2659 function useUpdateEffect(effect, deps) {
  2723   const mounted = (0,external_React_.useRef)(false);
  2660   const mounted = (0,external_React_.useRef)(false);
  2724   (0,external_React_.useEffect)(() => {
  2661   (0,external_React_.useEffect)(() => {
  2746     () => () => {
  2683     () => () => {
  2747       mounted.current = false;
  2684       mounted.current = false;
  2748     },
  2685     },
  2749     []
  2686     []
  2750   );
  2687   );
  2751 }
       
  2752 function useControlledState(defaultState, state, setState) {
       
  2753   const [localState, setLocalState] = useState(defaultState);
       
  2754   const nextState = state !== void 0 ? state : localState;
       
  2755   const stateRef = useLiveRef(state);
       
  2756   const setStateRef = useLiveRef(setState);
       
  2757   const nextStateRef = useLiveRef(nextState);
       
  2758   const setNextState = useCallback((prevValue) => {
       
  2759     const setStateProp = setStateRef.current;
       
  2760     if (setStateProp) {
       
  2761       if (isSetNextState(setStateProp)) {
       
  2762         setStateProp(prevValue);
       
  2763       } else {
       
  2764         const nextValue = applyState(prevValue, nextStateRef.current);
       
  2765         nextStateRef.current = nextValue;
       
  2766         setStateProp(nextValue);
       
  2767       }
       
  2768     }
       
  2769     if (stateRef.current === void 0) {
       
  2770       setLocalState(prevValue);
       
  2771     }
       
  2772   }, []);
       
  2773   defineSetNextState(setNextState);
       
  2774   return [nextState, setNextState];
       
  2775 }
       
  2776 var SET_NEXT_STATE = Symbol("setNextState");
       
  2777 function isSetNextState(arg) {
       
  2778   return arg[SET_NEXT_STATE] === true;
       
  2779 }
       
  2780 function defineSetNextState(arg) {
       
  2781   if (!isSetNextState(arg)) {
       
  2782     Object.defineProperty(arg, SET_NEXT_STATE, { value: true });
       
  2783   }
       
  2784 }
  2688 }
  2785 function useForceUpdate() {
  2689 function useForceUpdate() {
  2786   return (0,external_React_.useReducer)(() => [], []);
  2690   return (0,external_React_.useReducer)(() => [], []);
  2787 }
  2691 }
  2788 function useBooleanEvent(booleanOrCallback) {
  2692 function useBooleanEvent(booleanOrCallback) {
  2798       }
  2702       }
  2799       return callback(element);
  2703       return callback(element);
  2800     },
  2704     },
  2801     [...deps, props.wrapElement]
  2705     [...deps, props.wrapElement]
  2802   );
  2706   );
  2803   return _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { wrapElement });
  2707   return _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { wrapElement });
  2804 }
  2708 }
  2805 function usePortalRef(portalProp = false, portalRefProp) {
  2709 function usePortalRef(portalProp = false, portalRefProp) {
  2806   const [portalNode, setPortalNode] = (0,external_React_.useState)(null);
  2710   const [portalNode, setPortalNode] = (0,external_React_.useState)(null);
  2807   const portalRef = useMergeRefs(setPortalNode, portalRefProp);
  2711   const portalRef = useMergeRefs(setPortalNode, portalRefProp);
  2808   const domReady = !portalProp || portalNode;
  2712   const domReady = !portalProp || portalNode;
  2810 }
  2714 }
  2811 function useMetadataProps(props, key, value) {
  2715 function useMetadataProps(props, key, value) {
  2812   const parent = props.onLoadedMetadataCapture;
  2716   const parent = props.onLoadedMetadataCapture;
  2813   const onLoadedMetadataCapture = (0,external_React_.useMemo)(() => {
  2717   const onLoadedMetadataCapture = (0,external_React_.useMemo)(() => {
  2814     return Object.assign(() => {
  2718     return Object.assign(() => {
  2815     }, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, parent), { [key]: value }));
  2719     }, _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, parent), { [key]: value }));
  2816   }, [parent, key, value]);
  2720   }, [parent, key, value]);
  2817   return [parent == null ? void 0 : parent[key], { onLoadedMetadataCapture }];
  2721   return [parent == null ? void 0 : parent[key], { onLoadedMetadataCapture }];
  2818 }
  2722 }
  2819 function useIsMouseMoving() {
  2723 function useIsMouseMoving() {
  2820   (0,external_React_.useEffect)(() => {
  2724   (0,external_React_.useEffect)(() => {
  2836   previousScreenX = event.screenX;
  2740   previousScreenX = event.screenX;
  2837   previousScreenY = event.screenY;
  2741   previousScreenY = event.screenY;
  2838   return movementX || movementY || "production" === "test";
  2742   return movementX || movementY || "production" === "test";
  2839 }
  2743 }
  2840 function setMouseMoving(event) {
  2744 function setMouseMoving(event) {
  2841   if (!hasMouseMovement(event))
  2745   if (!hasMouseMovement(event)) return;
  2842     return;
       
  2843   mouseMoving = true;
  2746   mouseMoving = true;
  2844 }
  2747 }
  2845 function resetMouseMoving() {
  2748 function resetMouseMoving() {
  2846   mouseMoving = false;
  2749   mouseMoving = false;
  2847 }
  2750 }
  2848 
  2751 
  2849 
  2752 
  2850 
  2753 
  2851 ;// CONCATENATED MODULE: external "ReactJSXRuntime"
  2754 ;// ./node_modules/@ariakit/core/esm/__chunks/BCALMBPZ.js
       
  2755 "use client";
       
  2756 
       
  2757 
       
  2758 
       
  2759 // src/utils/store.ts
       
  2760 function getInternal(store, key) {
       
  2761   const internals = store.__unstableInternals;
       
  2762   invariant(internals, "Invalid store");
       
  2763   return internals[key];
       
  2764 }
       
  2765 function createStore(initialState, ...stores) {
       
  2766   let state = initialState;
       
  2767   let prevStateBatch = state;
       
  2768   let lastUpdate = Symbol();
       
  2769   let destroy = noop;
       
  2770   const instances = /* @__PURE__ */ new Set();
       
  2771   const updatedKeys = /* @__PURE__ */ new Set();
       
  2772   const setups = /* @__PURE__ */ new Set();
       
  2773   const listeners = /* @__PURE__ */ new Set();
       
  2774   const batchListeners = /* @__PURE__ */ new Set();
       
  2775   const disposables = /* @__PURE__ */ new WeakMap();
       
  2776   const listenerKeys = /* @__PURE__ */ new WeakMap();
       
  2777   const storeSetup = (callback) => {
       
  2778     setups.add(callback);
       
  2779     return () => setups.delete(callback);
       
  2780   };
       
  2781   const storeInit = () => {
       
  2782     const initialized = instances.size;
       
  2783     const instance = Symbol();
       
  2784     instances.add(instance);
       
  2785     const maybeDestroy = () => {
       
  2786       instances.delete(instance);
       
  2787       if (instances.size) return;
       
  2788       destroy();
       
  2789     };
       
  2790     if (initialized) return maybeDestroy;
       
  2791     const desyncs = getKeys(state).map(
       
  2792       (key) => chain(
       
  2793         ...stores.map((store) => {
       
  2794           var _a;
       
  2795           const storeState = (_a = store == null ? void 0 : store.getState) == null ? void 0 : _a.call(store);
       
  2796           if (!storeState) return;
       
  2797           if (!PBFD2E7P_hasOwnProperty(storeState, key)) return;
       
  2798           return sync(store, [key], (state2) => {
       
  2799             setState(
       
  2800               key,
       
  2801               state2[key],
       
  2802               // @ts-expect-error - Not public API. This is just to prevent
       
  2803               // infinite loops.
       
  2804               true
       
  2805             );
       
  2806           });
       
  2807         })
       
  2808       )
       
  2809     );
       
  2810     const teardowns = [];
       
  2811     for (const setup2 of setups) {
       
  2812       teardowns.push(setup2());
       
  2813     }
       
  2814     const cleanups = stores.map(init);
       
  2815     destroy = chain(...desyncs, ...teardowns, ...cleanups);
       
  2816     return maybeDestroy;
       
  2817   };
       
  2818   const sub = (keys, listener, set = listeners) => {
       
  2819     set.add(listener);
       
  2820     listenerKeys.set(listener, keys);
       
  2821     return () => {
       
  2822       var _a;
       
  2823       (_a = disposables.get(listener)) == null ? void 0 : _a();
       
  2824       disposables.delete(listener);
       
  2825       listenerKeys.delete(listener);
       
  2826       set.delete(listener);
       
  2827     };
       
  2828   };
       
  2829   const storeSubscribe = (keys, listener) => sub(keys, listener);
       
  2830   const storeSync = (keys, listener) => {
       
  2831     disposables.set(listener, listener(state, state));
       
  2832     return sub(keys, listener);
       
  2833   };
       
  2834   const storeBatch = (keys, listener) => {
       
  2835     disposables.set(listener, listener(state, prevStateBatch));
       
  2836     return sub(keys, listener, batchListeners);
       
  2837   };
       
  2838   const storePick = (keys) => createStore(pick(state, keys), finalStore);
       
  2839   const storeOmit = (keys) => createStore(omit(state, keys), finalStore);
       
  2840   const getState = () => state;
       
  2841   const setState = (key, value, fromStores = false) => {
       
  2842     var _a;
       
  2843     if (!PBFD2E7P_hasOwnProperty(state, key)) return;
       
  2844     const nextValue = applyState(value, state[key]);
       
  2845     if (nextValue === state[key]) return;
       
  2846     if (!fromStores) {
       
  2847       for (const store of stores) {
       
  2848         (_a = store == null ? void 0 : store.setState) == null ? void 0 : _a.call(store, key, nextValue);
       
  2849       }
       
  2850     }
       
  2851     const prevState = state;
       
  2852     state = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, state), { [key]: nextValue });
       
  2853     const thisUpdate = Symbol();
       
  2854     lastUpdate = thisUpdate;
       
  2855     updatedKeys.add(key);
       
  2856     const run = (listener, prev, uKeys) => {
       
  2857       var _a2;
       
  2858       const keys = listenerKeys.get(listener);
       
  2859       const updated = (k) => uKeys ? uKeys.has(k) : k === key;
       
  2860       if (!keys || keys.some(updated)) {
       
  2861         (_a2 = disposables.get(listener)) == null ? void 0 : _a2();
       
  2862         disposables.set(listener, listener(state, prev));
       
  2863       }
       
  2864     };
       
  2865     for (const listener of listeners) {
       
  2866       run(listener, prevState);
       
  2867     }
       
  2868     queueMicrotask(() => {
       
  2869       if (lastUpdate !== thisUpdate) return;
       
  2870       const snapshot = state;
       
  2871       for (const listener of batchListeners) {
       
  2872         run(listener, prevStateBatch, updatedKeys);
       
  2873       }
       
  2874       prevStateBatch = snapshot;
       
  2875       updatedKeys.clear();
       
  2876     });
       
  2877   };
       
  2878   const finalStore = {
       
  2879     getState,
       
  2880     setState,
       
  2881     __unstableInternals: {
       
  2882       setup: storeSetup,
       
  2883       init: storeInit,
       
  2884       subscribe: storeSubscribe,
       
  2885       sync: storeSync,
       
  2886       batch: storeBatch,
       
  2887       pick: storePick,
       
  2888       omit: storeOmit
       
  2889     }
       
  2890   };
       
  2891   return finalStore;
       
  2892 }
       
  2893 function setup(store, ...args) {
       
  2894   if (!store) return;
       
  2895   return getInternal(store, "setup")(...args);
       
  2896 }
       
  2897 function init(store, ...args) {
       
  2898   if (!store) return;
       
  2899   return getInternal(store, "init")(...args);
       
  2900 }
       
  2901 function subscribe(store, ...args) {
       
  2902   if (!store) return;
       
  2903   return getInternal(store, "subscribe")(...args);
       
  2904 }
       
  2905 function sync(store, ...args) {
       
  2906   if (!store) return;
       
  2907   return getInternal(store, "sync")(...args);
       
  2908 }
       
  2909 function batch(store, ...args) {
       
  2910   if (!store) return;
       
  2911   return getInternal(store, "batch")(...args);
       
  2912 }
       
  2913 function omit2(store, ...args) {
       
  2914   if (!store) return;
       
  2915   return getInternal(store, "omit")(...args);
       
  2916 }
       
  2917 function pick2(store, ...args) {
       
  2918   if (!store) return;
       
  2919   return getInternal(store, "pick")(...args);
       
  2920 }
       
  2921 function mergeStore(...stores) {
       
  2922   const initialState = stores.reduce((state, store2) => {
       
  2923     var _a;
       
  2924     const nextState = (_a = store2 == null ? void 0 : store2.getState) == null ? void 0 : _a.call(store2);
       
  2925     if (!nextState) return state;
       
  2926     return Object.assign(state, nextState);
       
  2927   }, {});
       
  2928   const store = createStore(initialState, ...stores);
       
  2929   return Object.assign({}, ...stores, store);
       
  2930 }
       
  2931 function throwOnConflictingProps(props, store) {
       
  2932   if (true) return;
       
  2933   if (!store) return;
       
  2934   const defaultKeys = Object.entries(props).filter(([key, value]) => key.startsWith("default") && value !== void 0).map(([key]) => {
       
  2935     var _a;
       
  2936     const stateKey = key.replace("default", "");
       
  2937     return `${((_a = stateKey[0]) == null ? void 0 : _a.toLowerCase()) || ""}${stateKey.slice(1)}`;
       
  2938   });
       
  2939   if (!defaultKeys.length) return;
       
  2940   const storeState = store.getState();
       
  2941   const conflictingProps = defaultKeys.filter(
       
  2942     (key) => PBFD2E7P_hasOwnProperty(storeState, key)
       
  2943   );
       
  2944   if (!conflictingProps.length) return;
       
  2945   throw new Error(
       
  2946     `Passing a store prop in conjunction with a default state is not supported.
       
  2947 
       
  2948 const store = useSelectStore();
       
  2949 <SelectProvider store={store} defaultValue="Apple" />
       
  2950                 ^             ^
       
  2951 
       
  2952 Instead, pass the default state to the topmost store:
       
  2953 
       
  2954 const store = useSelectStore({ defaultValue: "Apple" });
       
  2955 <SelectProvider store={store} />
       
  2956 
       
  2957 See https://github.com/ariakit/ariakit/pull/2745 for more details.
       
  2958 
       
  2959 If there's a particular need for this, please submit a feature request at https://github.com/ariakit/ariakit
       
  2960 `
       
  2961   );
       
  2962 }
       
  2963 
       
  2964 
       
  2965 
       
  2966 // EXTERNAL MODULE: ./node_modules/use-sync-external-store/shim/index.js
       
  2967 var shim = __webpack_require__(422);
       
  2968 ;// ./node_modules/@ariakit/react-core/esm/__chunks/YV4JVR4I.js
       
  2969 "use client";
       
  2970 
       
  2971 
       
  2972 
       
  2973 // src/utils/store.tsx
       
  2974 
       
  2975 
       
  2976 
       
  2977 
       
  2978 var { useSyncExternalStore } = shim;
       
  2979 var noopSubscribe = () => () => {
       
  2980 };
       
  2981 function useStoreState(store, keyOrSelector = identity) {
       
  2982   const storeSubscribe = external_React_.useCallback(
       
  2983     (callback) => {
       
  2984       if (!store) return noopSubscribe();
       
  2985       return subscribe(store, null, callback);
       
  2986     },
       
  2987     [store]
       
  2988   );
       
  2989   const getSnapshot = () => {
       
  2990     const key = typeof keyOrSelector === "string" ? keyOrSelector : null;
       
  2991     const selector = typeof keyOrSelector === "function" ? keyOrSelector : null;
       
  2992     const state = store == null ? void 0 : store.getState();
       
  2993     if (selector) return selector(state);
       
  2994     if (!state) return;
       
  2995     if (!key) return;
       
  2996     if (!PBFD2E7P_hasOwnProperty(state, key)) return;
       
  2997     return state[key];
       
  2998   };
       
  2999   return useSyncExternalStore(storeSubscribe, getSnapshot, getSnapshot);
       
  3000 }
       
  3001 function useStoreStateObject(store, object) {
       
  3002   const objRef = external_React_.useRef(
       
  3003     {}
       
  3004   );
       
  3005   const storeSubscribe = external_React_.useCallback(
       
  3006     (callback) => {
       
  3007       if (!store) return noopSubscribe();
       
  3008       return subscribe(store, null, callback);
       
  3009     },
       
  3010     [store]
       
  3011   );
       
  3012   const getSnapshot = () => {
       
  3013     const state = store == null ? void 0 : store.getState();
       
  3014     let updated = false;
       
  3015     const obj = objRef.current;
       
  3016     for (const prop in object) {
       
  3017       const keyOrSelector = object[prop];
       
  3018       if (typeof keyOrSelector === "function") {
       
  3019         const value = keyOrSelector(state);
       
  3020         if (value !== obj[prop]) {
       
  3021           obj[prop] = value;
       
  3022           updated = true;
       
  3023         }
       
  3024       }
       
  3025       if (typeof keyOrSelector === "string") {
       
  3026         if (!state) continue;
       
  3027         if (!PBFD2E7P_hasOwnProperty(state, keyOrSelector)) continue;
       
  3028         const value = state[keyOrSelector];
       
  3029         if (value !== obj[prop]) {
       
  3030           obj[prop] = value;
       
  3031           updated = true;
       
  3032         }
       
  3033       }
       
  3034     }
       
  3035     if (updated) {
       
  3036       objRef.current = _3YLGPPWQ_spreadValues({}, obj);
       
  3037     }
       
  3038     return objRef.current;
       
  3039   };
       
  3040   return useSyncExternalStore(storeSubscribe, getSnapshot, getSnapshot);
       
  3041 }
       
  3042 function useStoreProps(store, props, key, setKey) {
       
  3043   const value = PBFD2E7P_hasOwnProperty(props, key) ? props[key] : void 0;
       
  3044   const setValue = setKey ? props[setKey] : void 0;
       
  3045   const propsRef = useLiveRef({ value, setValue });
       
  3046   useSafeLayoutEffect(() => {
       
  3047     return sync(store, [key], (state, prev) => {
       
  3048       const { value: value2, setValue: setValue2 } = propsRef.current;
       
  3049       if (!setValue2) return;
       
  3050       if (state[key] === prev[key]) return;
       
  3051       if (state[key] === value2) return;
       
  3052       setValue2(state[key]);
       
  3053     });
       
  3054   }, [store, key]);
       
  3055   useSafeLayoutEffect(() => {
       
  3056     if (value === void 0) return;
       
  3057     store.setState(key, value);
       
  3058     return batch(store, [key], () => {
       
  3059       if (value === void 0) return;
       
  3060       store.setState(key, value);
       
  3061     });
       
  3062   });
       
  3063 }
       
  3064 function YV4JVR4I_useStore(createStore, props) {
       
  3065   const [store, setStore] = external_React_.useState(() => createStore(props));
       
  3066   useSafeLayoutEffect(() => init(store), [store]);
       
  3067   const useState2 = external_React_.useCallback(
       
  3068     (keyOrSelector) => useStoreState(store, keyOrSelector),
       
  3069     [store]
       
  3070   );
       
  3071   const memoizedStore = external_React_.useMemo(
       
  3072     () => _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, store), { useState: useState2 }),
       
  3073     [store, useState2]
       
  3074   );
       
  3075   const updateStore = useEvent(() => {
       
  3076     setStore((store2) => createStore(_3YLGPPWQ_spreadValues(_3YLGPPWQ_spreadValues({}, props), store2.getState())));
       
  3077   });
       
  3078   return [memoizedStore, updateStore];
       
  3079 }
       
  3080 
       
  3081 
       
  3082 
       
  3083 ;// ./node_modules/@ariakit/react-core/esm/__chunks/C3IKGW5T.js
       
  3084 "use client";
       
  3085 
       
  3086 
       
  3087 
       
  3088 // src/collection/collection-store.ts
       
  3089 
       
  3090 function useCollectionStoreProps(store, update, props) {
       
  3091   useUpdateEffect(update, [props.store]);
       
  3092   useStoreProps(store, props, "items", "setItems");
       
  3093   return store;
       
  3094 }
       
  3095 function useCollectionStore(props = {}) {
       
  3096   const [store, update] = useStore(Core.createCollectionStore, props);
       
  3097   return useCollectionStoreProps(store, update, props);
       
  3098 }
       
  3099 
       
  3100 
       
  3101 
       
  3102 ;// ./node_modules/@ariakit/core/esm/__chunks/CYQWQL4J.js
       
  3103 "use client";
       
  3104 
       
  3105 
       
  3106 
       
  3107 
       
  3108 
       
  3109 // src/collection/collection-store.ts
       
  3110 function getCommonParent(items) {
       
  3111   var _a;
       
  3112   const firstItem = items.find((item) => !!item.element);
       
  3113   const lastItem = [...items].reverse().find((item) => !!item.element);
       
  3114   let parentElement = (_a = firstItem == null ? void 0 : firstItem.element) == null ? void 0 : _a.parentElement;
       
  3115   while (parentElement && (lastItem == null ? void 0 : lastItem.element)) {
       
  3116     const parent = parentElement;
       
  3117     if (lastItem && parent.contains(lastItem.element)) {
       
  3118       return parentElement;
       
  3119     }
       
  3120     parentElement = parentElement.parentElement;
       
  3121   }
       
  3122   return getDocument(parentElement).body;
       
  3123 }
       
  3124 function getPrivateStore(store) {
       
  3125   return store == null ? void 0 : store.__unstablePrivateStore;
       
  3126 }
       
  3127 function createCollectionStore(props = {}) {
       
  3128   var _a;
       
  3129   throwOnConflictingProps(props, props.store);
       
  3130   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
       
  3131   const items = defaultValue(
       
  3132     props.items,
       
  3133     syncState == null ? void 0 : syncState.items,
       
  3134     props.defaultItems,
       
  3135     []
       
  3136   );
       
  3137   const itemsMap = new Map(items.map((item) => [item.id, item]));
       
  3138   const initialState = {
       
  3139     items,
       
  3140     renderedItems: defaultValue(syncState == null ? void 0 : syncState.renderedItems, [])
       
  3141   };
       
  3142   const syncPrivateStore = getPrivateStore(props.store);
       
  3143   const privateStore = createStore(
       
  3144     { items, renderedItems: initialState.renderedItems },
       
  3145     syncPrivateStore
       
  3146   );
       
  3147   const collection = createStore(initialState, props.store);
       
  3148   const sortItems = (renderedItems) => {
       
  3149     const sortedItems = sortBasedOnDOMPosition(renderedItems, (i) => i.element);
       
  3150     privateStore.setState("renderedItems", sortedItems);
       
  3151     collection.setState("renderedItems", sortedItems);
       
  3152   };
       
  3153   setup(collection, () => init(privateStore));
       
  3154   setup(privateStore, () => {
       
  3155     return batch(privateStore, ["items"], (state) => {
       
  3156       collection.setState("items", state.items);
       
  3157     });
       
  3158   });
       
  3159   setup(privateStore, () => {
       
  3160     return batch(privateStore, ["renderedItems"], (state) => {
       
  3161       let firstRun = true;
       
  3162       let raf = requestAnimationFrame(() => {
       
  3163         const { renderedItems } = collection.getState();
       
  3164         if (state.renderedItems === renderedItems) return;
       
  3165         sortItems(state.renderedItems);
       
  3166       });
       
  3167       if (typeof IntersectionObserver !== "function") {
       
  3168         return () => cancelAnimationFrame(raf);
       
  3169       }
       
  3170       const ioCallback = () => {
       
  3171         if (firstRun) {
       
  3172           firstRun = false;
       
  3173           return;
       
  3174         }
       
  3175         cancelAnimationFrame(raf);
       
  3176         raf = requestAnimationFrame(() => sortItems(state.renderedItems));
       
  3177       };
       
  3178       const root = getCommonParent(state.renderedItems);
       
  3179       const observer = new IntersectionObserver(ioCallback, { root });
       
  3180       for (const item of state.renderedItems) {
       
  3181         if (!item.element) continue;
       
  3182         observer.observe(item.element);
       
  3183       }
       
  3184       return () => {
       
  3185         cancelAnimationFrame(raf);
       
  3186         observer.disconnect();
       
  3187       };
       
  3188     });
       
  3189   });
       
  3190   const mergeItem = (item, setItems, canDeleteFromMap = false) => {
       
  3191     let prevItem;
       
  3192     setItems((items2) => {
       
  3193       const index = items2.findIndex(({ id }) => id === item.id);
       
  3194       const nextItems = items2.slice();
       
  3195       if (index !== -1) {
       
  3196         prevItem = items2[index];
       
  3197         const nextItem = _chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, prevItem), item);
       
  3198         nextItems[index] = nextItem;
       
  3199         itemsMap.set(item.id, nextItem);
       
  3200       } else {
       
  3201         nextItems.push(item);
       
  3202         itemsMap.set(item.id, item);
       
  3203       }
       
  3204       return nextItems;
       
  3205     });
       
  3206     const unmergeItem = () => {
       
  3207       setItems((items2) => {
       
  3208         if (!prevItem) {
       
  3209           if (canDeleteFromMap) {
       
  3210             itemsMap.delete(item.id);
       
  3211           }
       
  3212           return items2.filter(({ id }) => id !== item.id);
       
  3213         }
       
  3214         const index = items2.findIndex(({ id }) => id === item.id);
       
  3215         if (index === -1) return items2;
       
  3216         const nextItems = items2.slice();
       
  3217         nextItems[index] = prevItem;
       
  3218         itemsMap.set(item.id, prevItem);
       
  3219         return nextItems;
       
  3220       });
       
  3221     };
       
  3222     return unmergeItem;
       
  3223   };
       
  3224   const registerItem = (item) => mergeItem(
       
  3225     item,
       
  3226     (getItems) => privateStore.setState("items", getItems),
       
  3227     true
       
  3228   );
       
  3229   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, collection), {
       
  3230     registerItem,
       
  3231     renderItem: (item) => chain(
       
  3232       registerItem(item),
       
  3233       mergeItem(
       
  3234         item,
       
  3235         (getItems) => privateStore.setState("renderedItems", getItems)
       
  3236       )
       
  3237     ),
       
  3238     item: (id) => {
       
  3239       if (!id) return null;
       
  3240       let item = itemsMap.get(id);
       
  3241       if (!item) {
       
  3242         const { items: items2 } = privateStore.getState();
       
  3243         item = items2.find((item2) => item2.id === id);
       
  3244         if (item) {
       
  3245           itemsMap.set(id, item);
       
  3246         }
       
  3247       }
       
  3248       return item || null;
       
  3249     },
       
  3250     // @ts-expect-error Internal
       
  3251     __unstablePrivateStore: privateStore
       
  3252   });
       
  3253 }
       
  3254 
       
  3255 
       
  3256 
       
  3257 ;// ./node_modules/@ariakit/core/esm/__chunks/7PRQYBBV.js
       
  3258 "use client";
       
  3259 
       
  3260 // src/utils/array.ts
       
  3261 function toArray(arg) {
       
  3262   if (Array.isArray(arg)) {
       
  3263     return arg;
       
  3264   }
       
  3265   return typeof arg !== "undefined" ? [arg] : [];
       
  3266 }
       
  3267 function addItemToArray(array, item, index = -1) {
       
  3268   if (!(index in array)) {
       
  3269     return [...array, item];
       
  3270   }
       
  3271   return [...array.slice(0, index), item, ...array.slice(index)];
       
  3272 }
       
  3273 function flatten2DArray(array) {
       
  3274   const flattened = [];
       
  3275   for (const row of array) {
       
  3276     flattened.push(...row);
       
  3277   }
       
  3278   return flattened;
       
  3279 }
       
  3280 function reverseArray(array) {
       
  3281   return array.slice().reverse();
       
  3282 }
       
  3283 
       
  3284 
       
  3285 
       
  3286 ;// ./node_modules/@ariakit/core/esm/__chunks/AJZ4BYF3.js
       
  3287 "use client";
       
  3288 
       
  3289 
       
  3290 
       
  3291 
       
  3292 
       
  3293 
       
  3294 // src/composite/composite-store.ts
       
  3295 var NULL_ITEM = { id: null };
       
  3296 function findFirstEnabledItem(items, excludeId) {
       
  3297   return items.find((item) => {
       
  3298     if (excludeId) {
       
  3299       return !item.disabled && item.id !== excludeId;
       
  3300     }
       
  3301     return !item.disabled;
       
  3302   });
       
  3303 }
       
  3304 function getEnabledItems(items, excludeId) {
       
  3305   return items.filter((item) => {
       
  3306     if (excludeId) {
       
  3307       return !item.disabled && item.id !== excludeId;
       
  3308     }
       
  3309     return !item.disabled;
       
  3310   });
       
  3311 }
       
  3312 function getItemsInRow(items, rowId) {
       
  3313   return items.filter((item) => item.rowId === rowId);
       
  3314 }
       
  3315 function flipItems(items, activeId, shouldInsertNullItem = false) {
       
  3316   const index = items.findIndex((item) => item.id === activeId);
       
  3317   return [
       
  3318     ...items.slice(index + 1),
       
  3319     ...shouldInsertNullItem ? [NULL_ITEM] : [],
       
  3320     ...items.slice(0, index)
       
  3321   ];
       
  3322 }
       
  3323 function groupItemsByRows(items) {
       
  3324   const rows = [];
       
  3325   for (const item of items) {
       
  3326     const row = rows.find((currentRow) => {
       
  3327       var _a;
       
  3328       return ((_a = currentRow[0]) == null ? void 0 : _a.rowId) === item.rowId;
       
  3329     });
       
  3330     if (row) {
       
  3331       row.push(item);
       
  3332     } else {
       
  3333       rows.push([item]);
       
  3334     }
       
  3335   }
       
  3336   return rows;
       
  3337 }
       
  3338 function getMaxRowLength(array) {
       
  3339   let maxLength = 0;
       
  3340   for (const { length } of array) {
       
  3341     if (length > maxLength) {
       
  3342       maxLength = length;
       
  3343     }
       
  3344   }
       
  3345   return maxLength;
       
  3346 }
       
  3347 function createEmptyItem(rowId) {
       
  3348   return {
       
  3349     id: "__EMPTY_ITEM__",
       
  3350     disabled: true,
       
  3351     rowId
       
  3352   };
       
  3353 }
       
  3354 function normalizeRows(rows, activeId, focusShift) {
       
  3355   const maxLength = getMaxRowLength(rows);
       
  3356   for (const row of rows) {
       
  3357     for (let i = 0; i < maxLength; i += 1) {
       
  3358       const item = row[i];
       
  3359       if (!item || focusShift && item.disabled) {
       
  3360         const isFirst = i === 0;
       
  3361         const previousItem = isFirst && focusShift ? findFirstEnabledItem(row) : row[i - 1];
       
  3362         row[i] = previousItem && activeId !== previousItem.id && focusShift ? previousItem : createEmptyItem(previousItem == null ? void 0 : previousItem.rowId);
       
  3363       }
       
  3364     }
       
  3365   }
       
  3366   return rows;
       
  3367 }
       
  3368 function verticalizeItems(items) {
       
  3369   const rows = groupItemsByRows(items);
       
  3370   const maxLength = getMaxRowLength(rows);
       
  3371   const verticalized = [];
       
  3372   for (let i = 0; i < maxLength; i += 1) {
       
  3373     for (const row of rows) {
       
  3374       const item = row[i];
       
  3375       if (item) {
       
  3376         verticalized.push(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, item), {
       
  3377           // If there's no rowId, it means that it's not a grid composite, but
       
  3378           // a single row instead. So, instead of verticalizing it, that is,
       
  3379           // assigning a different rowId based on the column index, we keep it
       
  3380           // undefined so they will be part of the same row. This is useful
       
  3381           // when using up/down on one-dimensional composites.
       
  3382           rowId: item.rowId ? `${i}` : void 0
       
  3383         }));
       
  3384       }
       
  3385     }
       
  3386   }
       
  3387   return verticalized;
       
  3388 }
       
  3389 function createCompositeStore(props = {}) {
       
  3390   var _a;
       
  3391   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
       
  3392   const collection = createCollectionStore(props);
       
  3393   const activeId = defaultValue(
       
  3394     props.activeId,
       
  3395     syncState == null ? void 0 : syncState.activeId,
       
  3396     props.defaultActiveId
       
  3397   );
       
  3398   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, collection.getState()), {
       
  3399     id: defaultValue(
       
  3400       props.id,
       
  3401       syncState == null ? void 0 : syncState.id,
       
  3402       `id-${Math.random().toString(36).slice(2, 8)}`
       
  3403     ),
       
  3404     activeId,
       
  3405     baseElement: defaultValue(syncState == null ? void 0 : syncState.baseElement, null),
       
  3406     includesBaseElement: defaultValue(
       
  3407       props.includesBaseElement,
       
  3408       syncState == null ? void 0 : syncState.includesBaseElement,
       
  3409       activeId === null
       
  3410     ),
       
  3411     moves: defaultValue(syncState == null ? void 0 : syncState.moves, 0),
       
  3412     orientation: defaultValue(
       
  3413       props.orientation,
       
  3414       syncState == null ? void 0 : syncState.orientation,
       
  3415       "both"
       
  3416     ),
       
  3417     rtl: defaultValue(props.rtl, syncState == null ? void 0 : syncState.rtl, false),
       
  3418     virtualFocus: defaultValue(
       
  3419       props.virtualFocus,
       
  3420       syncState == null ? void 0 : syncState.virtualFocus,
       
  3421       false
       
  3422     ),
       
  3423     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, false),
       
  3424     focusWrap: defaultValue(props.focusWrap, syncState == null ? void 0 : syncState.focusWrap, false),
       
  3425     focusShift: defaultValue(props.focusShift, syncState == null ? void 0 : syncState.focusShift, false)
       
  3426   });
       
  3427   const composite = createStore(initialState, collection, props.store);
       
  3428   setup(
       
  3429     composite,
       
  3430     () => sync(composite, ["renderedItems", "activeId"], (state) => {
       
  3431       composite.setState("activeId", (activeId2) => {
       
  3432         var _a2;
       
  3433         if (activeId2 !== void 0) return activeId2;
       
  3434         return (_a2 = findFirstEnabledItem(state.renderedItems)) == null ? void 0 : _a2.id;
       
  3435       });
       
  3436     })
       
  3437   );
       
  3438   const getNextId = (direction = "next", options = {}) => {
       
  3439     var _a2, _b;
       
  3440     const defaultState = composite.getState();
       
  3441     const {
       
  3442       skip = 0,
       
  3443       activeId: activeId2 = defaultState.activeId,
       
  3444       focusShift = defaultState.focusShift,
       
  3445       focusLoop = defaultState.focusLoop,
       
  3446       focusWrap = defaultState.focusWrap,
       
  3447       includesBaseElement = defaultState.includesBaseElement,
       
  3448       renderedItems = defaultState.renderedItems,
       
  3449       rtl = defaultState.rtl
       
  3450     } = options;
       
  3451     const isVerticalDirection = direction === "up" || direction === "down";
       
  3452     const isNextDirection = direction === "next" || direction === "down";
       
  3453     const canReverse = isNextDirection ? rtl && !isVerticalDirection : !rtl || isVerticalDirection;
       
  3454     const canShift = focusShift && !skip;
       
  3455     let items = !isVerticalDirection ? renderedItems : flatten2DArray(
       
  3456       normalizeRows(groupItemsByRows(renderedItems), activeId2, canShift)
       
  3457     );
       
  3458     items = canReverse ? reverseArray(items) : items;
       
  3459     items = isVerticalDirection ? verticalizeItems(items) : items;
       
  3460     if (activeId2 == null) {
       
  3461       return (_a2 = findFirstEnabledItem(items)) == null ? void 0 : _a2.id;
       
  3462     }
       
  3463     const activeItem = items.find((item) => item.id === activeId2);
       
  3464     if (!activeItem) {
       
  3465       return (_b = findFirstEnabledItem(items)) == null ? void 0 : _b.id;
       
  3466     }
       
  3467     const isGrid = items.some((item) => item.rowId);
       
  3468     const activeIndex = items.indexOf(activeItem);
       
  3469     const nextItems = items.slice(activeIndex + 1);
       
  3470     const nextItemsInRow = getItemsInRow(nextItems, activeItem.rowId);
       
  3471     if (skip) {
       
  3472       const nextEnabledItemsInRow = getEnabledItems(nextItemsInRow, activeId2);
       
  3473       const nextItem2 = nextEnabledItemsInRow.slice(skip)[0] || // If we can't find an item, just return the last one.
       
  3474       nextEnabledItemsInRow[nextEnabledItemsInRow.length - 1];
       
  3475       return nextItem2 == null ? void 0 : nextItem2.id;
       
  3476     }
       
  3477     const canLoop = focusLoop && (isVerticalDirection ? focusLoop !== "horizontal" : focusLoop !== "vertical");
       
  3478     const canWrap = isGrid && focusWrap && (isVerticalDirection ? focusWrap !== "horizontal" : focusWrap !== "vertical");
       
  3479     const hasNullItem = isNextDirection ? (!isGrid || isVerticalDirection) && canLoop && includesBaseElement : isVerticalDirection ? includesBaseElement : false;
       
  3480     if (canLoop) {
       
  3481       const loopItems = canWrap && !hasNullItem ? items : getItemsInRow(items, activeItem.rowId);
       
  3482       const sortedItems = flipItems(loopItems, activeId2, hasNullItem);
       
  3483       const nextItem2 = findFirstEnabledItem(sortedItems, activeId2);
       
  3484       return nextItem2 == null ? void 0 : nextItem2.id;
       
  3485     }
       
  3486     if (canWrap) {
       
  3487       const nextItem2 = findFirstEnabledItem(
       
  3488         // We can use nextItems, which contains all the next items, including
       
  3489         // items from other rows, to wrap between rows. However, if there is a
       
  3490         // null item (the composite container), we'll only use the next items in
       
  3491         // the row. So moving next from the last item will focus on the
       
  3492         // composite container. On grid composites, horizontal navigation never
       
  3493         // focuses on the composite container, only vertical.
       
  3494         hasNullItem ? nextItemsInRow : nextItems,
       
  3495         activeId2
       
  3496       );
       
  3497       const nextId = hasNullItem ? (nextItem2 == null ? void 0 : nextItem2.id) || null : nextItem2 == null ? void 0 : nextItem2.id;
       
  3498       return nextId;
       
  3499     }
       
  3500     const nextItem = findFirstEnabledItem(nextItemsInRow, activeId2);
       
  3501     if (!nextItem && hasNullItem) {
       
  3502       return null;
       
  3503     }
       
  3504     return nextItem == null ? void 0 : nextItem.id;
       
  3505   };
       
  3506   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, collection), composite), {
       
  3507     setBaseElement: (element) => composite.setState("baseElement", element),
       
  3508     setActiveId: (id) => composite.setState("activeId", id),
       
  3509     move: (id) => {
       
  3510       if (id === void 0) return;
       
  3511       composite.setState("activeId", id);
       
  3512       composite.setState("moves", (moves) => moves + 1);
       
  3513     },
       
  3514     first: () => {
       
  3515       var _a2;
       
  3516       return (_a2 = findFirstEnabledItem(composite.getState().renderedItems)) == null ? void 0 : _a2.id;
       
  3517     },
       
  3518     last: () => {
       
  3519       var _a2;
       
  3520       return (_a2 = findFirstEnabledItem(reverseArray(composite.getState().renderedItems))) == null ? void 0 : _a2.id;
       
  3521     },
       
  3522     next: (options) => {
       
  3523       if (options !== void 0 && typeof options === "number") {
       
  3524         options = { skip: options };
       
  3525       }
       
  3526       return getNextId("next", options);
       
  3527     },
       
  3528     previous: (options) => {
       
  3529       if (options !== void 0 && typeof options === "number") {
       
  3530         options = { skip: options };
       
  3531       }
       
  3532       return getNextId("previous", options);
       
  3533     },
       
  3534     down: (options) => {
       
  3535       if (options !== void 0 && typeof options === "number") {
       
  3536         options = { skip: options };
       
  3537       }
       
  3538       return getNextId("down", options);
       
  3539     },
       
  3540     up: (options) => {
       
  3541       if (options !== void 0 && typeof options === "number") {
       
  3542         options = { skip: options };
       
  3543       }
       
  3544       return getNextId("up", options);
       
  3545     }
       
  3546   });
       
  3547 }
       
  3548 
       
  3549 
       
  3550 
       
  3551 ;// ./node_modules/@ariakit/react-core/esm/__chunks/4CMBR7SL.js
       
  3552 "use client";
       
  3553 
       
  3554 
       
  3555 
       
  3556 
       
  3557 
       
  3558 // src/composite/composite-store.ts
       
  3559 
       
  3560 function useCompositeStoreOptions(props) {
       
  3561   const id = useId(props.id);
       
  3562   return _3YLGPPWQ_spreadValues({ id }, props);
       
  3563 }
       
  3564 function useCompositeStoreProps(store, update, props) {
       
  3565   store = useCollectionStoreProps(store, update, props);
       
  3566   useStoreProps(store, props, "activeId", "setActiveId");
       
  3567   useStoreProps(store, props, "includesBaseElement");
       
  3568   useStoreProps(store, props, "virtualFocus");
       
  3569   useStoreProps(store, props, "orientation");
       
  3570   useStoreProps(store, props, "rtl");
       
  3571   useStoreProps(store, props, "focusLoop");
       
  3572   useStoreProps(store, props, "focusWrap");
       
  3573   useStoreProps(store, props, "focusShift");
       
  3574   return store;
       
  3575 }
       
  3576 function useCompositeStore(props = {}) {
       
  3577   props = useCompositeStoreOptions(props);
       
  3578   const [store, update] = YV4JVR4I_useStore(createCompositeStore, props);
       
  3579   return useCompositeStoreProps(store, update, props);
       
  3580 }
       
  3581 
       
  3582 
       
  3583 
       
  3584 ;// ./node_modules/@ariakit/react-core/esm/__chunks/5VQZOHHZ.js
       
  3585 "use client";
       
  3586 
       
  3587 // src/composite/utils.ts
       
  3588 
       
  3589 var _5VQZOHHZ_NULL_ITEM = { id: null };
       
  3590 function _5VQZOHHZ_flipItems(items, activeId, shouldInsertNullItem = false) {
       
  3591   const index = items.findIndex((item) => item.id === activeId);
       
  3592   return [
       
  3593     ...items.slice(index + 1),
       
  3594     ...shouldInsertNullItem ? [_5VQZOHHZ_NULL_ITEM] : [],
       
  3595     ...items.slice(0, index)
       
  3596   ];
       
  3597 }
       
  3598 function _5VQZOHHZ_findFirstEnabledItem(items, excludeId) {
       
  3599   return items.find((item) => {
       
  3600     if (excludeId) {
       
  3601       return !item.disabled && item.id !== excludeId;
       
  3602     }
       
  3603     return !item.disabled;
       
  3604   });
       
  3605 }
       
  3606 function getEnabledItem(store, id) {
       
  3607   if (!id) return null;
       
  3608   return store.item(id) || null;
       
  3609 }
       
  3610 function _5VQZOHHZ_groupItemsByRows(items) {
       
  3611   const rows = [];
       
  3612   for (const item of items) {
       
  3613     const row = rows.find((currentRow) => {
       
  3614       var _a;
       
  3615       return ((_a = currentRow[0]) == null ? void 0 : _a.rowId) === item.rowId;
       
  3616     });
       
  3617     if (row) {
       
  3618       row.push(item);
       
  3619     } else {
       
  3620       rows.push([item]);
       
  3621     }
       
  3622   }
       
  3623   return rows;
       
  3624 }
       
  3625 function selectTextField(element, collapseToEnd = false) {
       
  3626   if (isTextField(element)) {
       
  3627     element.setSelectionRange(
       
  3628       collapseToEnd ? element.value.length : 0,
       
  3629       element.value.length
       
  3630     );
       
  3631   } else if (element.isContentEditable) {
       
  3632     const selection = getDocument(element).getSelection();
       
  3633     selection == null ? void 0 : selection.selectAllChildren(element);
       
  3634     if (collapseToEnd) {
       
  3635       selection == null ? void 0 : selection.collapseToEnd();
       
  3636     }
       
  3637   }
       
  3638 }
       
  3639 var FOCUS_SILENTLY = Symbol("FOCUS_SILENTLY");
       
  3640 function focusSilently(element) {
       
  3641   element[FOCUS_SILENTLY] = true;
       
  3642   element.focus({ preventScroll: true });
       
  3643 }
       
  3644 function silentlyFocused(element) {
       
  3645   const isSilentlyFocused = element[FOCUS_SILENTLY];
       
  3646   delete element[FOCUS_SILENTLY];
       
  3647   return isSilentlyFocused;
       
  3648 }
       
  3649 function isItem(store, element, exclude) {
       
  3650   if (!element) return false;
       
  3651   if (element === exclude) return false;
       
  3652   const item = store.item(element.id);
       
  3653   if (!item) return false;
       
  3654   if (exclude && item.element === exclude) return false;
       
  3655   return true;
       
  3656 }
       
  3657 
       
  3658 
       
  3659 
       
  3660 ;// external "ReactJSXRuntime"
  2852 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
  3661 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
  2853 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3ORBWXWF.js
  3662 ;// ./node_modules/@ariakit/react-core/esm/__chunks/LMDWO4NN.js
  2854 "use client";
  3663 "use client";
  2855 
  3664 
  2856 
  3665 
  2857 
  3666 
  2858 
  3667 
  2859 // src/utils/system.tsx
  3668 // src/utils/system.tsx
  2860 
  3669 
  2861 
  3670 
  2862 
       
  2863 function isRenderProp(children) {
       
  2864   return typeof children === "function";
       
  2865 }
       
  2866 function forwardRef2(render) {
  3671 function forwardRef2(render) {
  2867   const Role = React.forwardRef((props, ref) => render(__spreadProps(__spreadValues({}, props), { ref })));
  3672   const Role = external_React_.forwardRef((props, ref) => render(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { ref })));
  2868   Role.displayName = render.displayName || render.name;
  3673   Role.displayName = render.displayName || render.name;
  2869   return Role;
  3674   return Role;
  2870 }
  3675 }
  2871 function memo2(Component, propsAreEqual) {
  3676 function memo2(Component, propsAreEqual) {
  2872   const Role = React.memo(Component, propsAreEqual);
  3677   return external_React_.memo(Component, propsAreEqual);
  2873   Role.displayName = Component.displayName || Component.name;
  3678 }
  2874   return Role;
  3679 function LMDWO4NN_createElement(Type, props) {
  2875 }
  3680   const _a = props, { wrapElement, render } = _a, rest = __objRest(_a, ["wrapElement", "render"]);
  2876 function createComponent(render) {
  3681   const mergedRef = useMergeRefs(props.ref, getRefProperty(render));
  2877   const Role = (props, ref) => render(_4R3V3JGP_spreadValues({ ref }, props));
       
  2878   return external_React_.forwardRef(Role);
       
  2879 }
       
  2880 function createMemoComponent(render) {
       
  2881   const Role = createComponent(render);
       
  2882   return external_React_.memo(Role);
       
  2883 }
       
  2884 function _3ORBWXWF_createElement(Type, props) {
       
  2885   const _a = props, { as: As, wrapElement, render } = _a, rest = __objRest(_a, ["as", "wrapElement", "render"]);
       
  2886   let element;
  3682   let element;
  2887   const mergedRef = useMergeRefs(props.ref, getRefProperty(render));
  3683   if (external_React_.isValidElement(render)) {
  2888   if (false) {}
  3684     const renderProps = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, render.props), { ref: mergedRef });
  2889   if (As && typeof As !== "string") {
       
  2890     element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(As, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, rest), { render }));
       
  2891   } else if (external_React_.isValidElement(render)) {
       
  2892     const renderProps = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, render.props), { ref: mergedRef });
       
  2893     element = external_React_.cloneElement(render, mergeProps(rest, renderProps));
  3685     element = external_React_.cloneElement(render, mergeProps(rest, renderProps));
  2894   } else if (render) {
  3686   } else if (render) {
  2895     element = render(rest);
  3687     element = render(rest);
  2896   } else if (isRenderProp(props.children)) {
       
  2897     if (false) {}
       
  2898     const _b = rest, { children } = _b, otherProps = __objRest(_b, ["children"]);
       
  2899     element = props.children(otherProps);
       
  2900   } else if (As) {
       
  2901     element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(As, _4R3V3JGP_spreadValues({}, rest));
       
  2902   } else {
  3688   } else {
  2903     element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Type, _4R3V3JGP_spreadValues({}, rest));
  3689     element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Type, _3YLGPPWQ_spreadValues({}, rest));
  2904   }
  3690   }
  2905   if (wrapElement) {
  3691   if (wrapElement) {
  2906     return wrapElement(element);
  3692     return wrapElement(element);
  2907   }
  3693   }
  2908   return element;
  3694   return element;
  2909 }
  3695 }
  2910 function createHook(useProps) {
  3696 function createHook(useProps) {
  2911   const useRole = (props = {}) => {
  3697   const useRole = (props = {}) => {
  2912     const htmlProps = useProps(props);
  3698     return useProps(props);
  2913     const copy = {};
       
  2914     for (const prop in htmlProps) {
       
  2915       if (Y3OOHFCN_hasOwnProperty(htmlProps, prop) && htmlProps[prop] !== void 0) {
       
  2916         copy[prop] = htmlProps[prop];
       
  2917       }
       
  2918     }
       
  2919     return copy;
       
  2920   };
  3699   };
       
  3700   useRole.displayName = useProps.name;
  2921   return useRole;
  3701   return useRole;
  2922 }
  3702 }
  2923 function createStoreContext(providers = [], scopedProviders = []) {
  3703 function createStoreContext(providers = [], scopedProviders = []) {
  2924   const context = external_React_.createContext(void 0);
  3704   const context = external_React_.createContext(void 0);
  2925   const scopedContext = external_React_.createContext(void 0);
  3705   const scopedContext = external_React_.createContext(void 0);
  2926   const useContext2 = () => external_React_.useContext(context);
  3706   const useContext2 = () => external_React_.useContext(context);
  2927   const useScopedContext = (onlyScoped = false) => {
  3707   const useScopedContext = (onlyScoped = false) => {
  2928     const scoped = external_React_.useContext(scopedContext);
  3708     const scoped = external_React_.useContext(scopedContext);
  2929     const store = useContext2();
  3709     const store = useContext2();
  2930     if (onlyScoped)
  3710     if (onlyScoped) return scoped;
  2931       return scoped;
       
  2932     return scoped || store;
  3711     return scoped || store;
  2933   };
  3712   };
  2934   const useProviderContext = () => {
  3713   const useProviderContext = () => {
  2935     const scoped = external_React_.useContext(scopedContext);
  3714     const scoped = external_React_.useContext(scopedContext);
  2936     const store = useContext2();
  3715     const store = useContext2();
  2937     if (scoped && scoped === store)
  3716     if (scoped && scoped === store) return;
  2938       return;
       
  2939     return store;
  3717     return store;
  2940   };
  3718   };
  2941   const ContextProvider = (props) => {
  3719   const ContextProvider = (props) => {
  2942     return providers.reduceRight(
  3720     return providers.reduceRight(
  2943       (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
  3721       (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { children })),
  2944       /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Provider, _4R3V3JGP_spreadValues({}, props))
  3722       /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Provider, _3YLGPPWQ_spreadValues({}, props))
  2945     );
  3723     );
  2946   };
  3724   };
  2947   const ScopedContextProvider = (props) => {
  3725   const ScopedContextProvider = (props) => {
  2948     return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextProvider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children: scopedProviders.reduceRight(
  3726     return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextProvider, _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { children: scopedProviders.reduceRight(
  2949       (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { children })),
  3727       (children, Provider) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Provider, _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { children })),
  2950       /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(scopedContext.Provider, _4R3V3JGP_spreadValues({}, props))
  3728       /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(scopedContext.Provider, _3YLGPPWQ_spreadValues({}, props))
  2951     ) }));
  3729     ) }));
  2952   };
  3730   };
  2953   return {
  3731   return {
  2954     context,
  3732     context,
  2955     scopedContext,
  3733     scopedContext,
  2961   };
  3739   };
  2962 }
  3740 }
  2963 
  3741 
  2964 
  3742 
  2965 
  3743 
  2966 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/utils/focus.js
  3744 ;// ./node_modules/@ariakit/react-core/esm/__chunks/VDHZ5F7K.js
  2967 "use client";
  3745 "use client";
  2968 
  3746 
  2969 
  3747 
       
  3748 // src/collection/collection-context.tsx
       
  3749 var ctx = createStoreContext();
       
  3750 var useCollectionContext = ctx.useContext;
       
  3751 var useCollectionScopedContext = ctx.useScopedContext;
       
  3752 var useCollectionProviderContext = ctx.useProviderContext;
       
  3753 var CollectionContextProvider = ctx.ContextProvider;
       
  3754 var CollectionScopedContextProvider = ctx.ScopedContextProvider;
       
  3755 
       
  3756 
       
  3757 
       
  3758 ;// ./node_modules/@ariakit/react-core/esm/__chunks/P7GR5CS5.js
       
  3759 "use client";
       
  3760 
       
  3761 
       
  3762 
       
  3763 // src/composite/composite-context.tsx
       
  3764 
       
  3765 var P7GR5CS5_ctx = createStoreContext(
       
  3766   [CollectionContextProvider],
       
  3767   [CollectionScopedContextProvider]
       
  3768 );
       
  3769 var useCompositeContext = P7GR5CS5_ctx.useContext;
       
  3770 var useCompositeScopedContext = P7GR5CS5_ctx.useScopedContext;
       
  3771 var useCompositeProviderContext = P7GR5CS5_ctx.useProviderContext;
       
  3772 var CompositeContextProvider = P7GR5CS5_ctx.ContextProvider;
       
  3773 var CompositeScopedContextProvider = P7GR5CS5_ctx.ScopedContextProvider;
       
  3774 var CompositeItemContext = (0,external_React_.createContext)(
       
  3775   void 0
       
  3776 );
       
  3777 var CompositeRowContext = (0,external_React_.createContext)(
       
  3778   void 0
       
  3779 );
       
  3780 
       
  3781 
       
  3782 
       
  3783 ;// ./node_modules/@ariakit/react-core/esm/__chunks/SWN3JYXT.js
       
  3784 "use client";
       
  3785 
       
  3786 // src/focusable/focusable-context.tsx
       
  3787 
       
  3788 var FocusableContext = (0,external_React_.createContext)(true);
       
  3789 
       
  3790 
       
  3791 
       
  3792 ;// ./node_modules/@ariakit/core/esm/utils/focus.js
       
  3793 "use client";
       
  3794 
       
  3795 
  2970 
  3796 
  2971 // src/utils/focus.ts
  3797 // src/utils/focus.ts
  2972 var selector = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
  3798 var selector = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
  2973 function hasNegativeTabIndex(element) {
  3799 function hasNegativeTabIndex(element) {
  2974   const tabIndex = parseInt(element.getAttribute("tabindex") || "0", 10);
  3800   const tabIndex = Number.parseInt(element.getAttribute("tabindex") || "0", 10);
  2975   return tabIndex < 0;
  3801   return tabIndex < 0;
  2976 }
  3802 }
  2977 function isFocusable(element) {
  3803 function isFocusable(element) {
  2978   if (!matches(element, selector))
  3804   if (!element.matches(selector)) return false;
  2979     return false;
  3805   if (!isVisible(element)) return false;
  2980   if (!isVisible(element))
  3806   if (element.closest("[inert]")) return false;
  2981     return false;
       
  2982   if (DLOEKDPY_closest(element, "[inert]"))
       
  2983     return false;
       
  2984   return true;
  3807   return true;
  2985 }
  3808 }
  2986 function isTabbable(element) {
  3809 function isTabbable(element) {
  2987   if (!isFocusable(element))
  3810   if (!isFocusable(element)) return false;
  2988     return false;
  3811   if (hasNegativeTabIndex(element)) return false;
  2989   if (hasNegativeTabIndex(element))
  3812   if (!("form" in element)) return true;
  2990     return false;
  3813   if (!element.form) return true;
  2991   if (!("form" in element))
  3814   if (element.checked) return true;
  2992     return true;
  3815   if (element.type !== "radio") return true;
  2993   if (!element.form)
       
  2994     return true;
       
  2995   if (element.checked)
       
  2996     return true;
       
  2997   if (element.type !== "radio")
       
  2998     return true;
       
  2999   const radioGroup = element.form.elements.namedItem(element.name);
  3816   const radioGroup = element.form.elements.namedItem(element.name);
  3000   if (!radioGroup)
  3817   if (!radioGroup) return true;
  3001     return true;
  3818   if (!("length" in radioGroup)) return true;
  3002   if (!("length" in radioGroup))
       
  3003     return true;
       
  3004   const activeElement = getActiveElement(element);
  3819   const activeElement = getActiveElement(element);
  3005   if (!activeElement)
  3820   if (!activeElement) return true;
  3006     return true;
  3821   if (activeElement === element) return true;
  3007   if (activeElement === element)
  3822   if (!("form" in activeElement)) return true;
  3008     return true;
  3823   if (activeElement.form !== element.form) return true;
  3009   if (!("form" in activeElement))
  3824   if (activeElement.name !== element.name) return true;
  3010     return true;
       
  3011   if (activeElement.form !== element.form)
       
  3012     return true;
       
  3013   if (activeElement.name !== element.name)
       
  3014     return true;
       
  3015   return false;
  3825   return false;
  3016 }
  3826 }
  3017 function getAllFocusableIn(container, includeContainer) {
  3827 function getAllFocusableIn(container, includeContainer) {
  3018   const elements = Array.from(
  3828   const elements = Array.from(
  3019     container.querySelectorAll(selector)
  3829     container.querySelectorAll(selector)
  3119     fallbackToFocusable
  3929     fallbackToFocusable
  3120   );
  3930   );
  3121 }
  3931 }
  3122 function getClosestFocusable(element) {
  3932 function getClosestFocusable(element) {
  3123   while (element && !isFocusable(element)) {
  3933   while (element && !isFocusable(element)) {
  3124     element = closest(element, selector);
  3934     element = element.closest(selector);
  3125   }
  3935   }
  3126   return element || null;
  3936   return element || null;
  3127 }
  3937 }
  3128 function hasFocus(element) {
  3938 function hasFocus(element) {
  3129   const activeElement = getActiveElement(element);
  3939   const activeElement = getActiveElement(element);
  3130   if (!activeElement)
  3940   if (!activeElement) return false;
  3131     return false;
  3941   if (activeElement === element) return true;
  3132   if (activeElement === element)
       
  3133     return true;
       
  3134   const activeDescendant = activeElement.getAttribute("aria-activedescendant");
  3942   const activeDescendant = activeElement.getAttribute("aria-activedescendant");
  3135   if (!activeDescendant)
  3943   if (!activeDescendant) return false;
  3136     return false;
       
  3137   return activeDescendant === element.id;
  3944   return activeDescendant === element.id;
  3138 }
  3945 }
  3139 function hasFocusWithin(element) {
  3946 function hasFocusWithin(element) {
  3140   const activeElement = getActiveElement(element);
  3947   const activeElement = getActiveElement(element);
  3141   if (!activeElement)
  3948   if (!activeElement) return false;
  3142     return false;
  3949   if (contains(element, activeElement)) return true;
  3143   if (contains(element, activeElement))
       
  3144     return true;
       
  3145   const activeDescendant = activeElement.getAttribute("aria-activedescendant");
  3950   const activeDescendant = activeElement.getAttribute("aria-activedescendant");
  3146   if (!activeDescendant)
  3951   if (!activeDescendant) return false;
  3147     return false;
  3952   if (!("id" in element)) return false;
  3148   if (!("id" in element))
  3953   if (activeDescendant === element.id) return true;
  3149     return false;
       
  3150   if (activeDescendant === element.id)
       
  3151     return true;
       
  3152   return !!element.querySelector(`#${CSS.escape(activeDescendant)}`);
  3954   return !!element.querySelector(`#${CSS.escape(activeDescendant)}`);
  3153 }
  3955 }
  3154 function focusIfNeeded(element) {
  3956 function focusIfNeeded(element) {
  3155   if (!hasFocusWithin(element) && isFocusable(element)) {
  3957   if (!hasFocusWithin(element) && isFocusable(element)) {
  3156     element.focus();
  3958     element.focus();
  3162   element.setAttribute("data-tabindex", currentTabindex);
  3964   element.setAttribute("data-tabindex", currentTabindex);
  3163   element.setAttribute("tabindex", "-1");
  3965   element.setAttribute("tabindex", "-1");
  3164 }
  3966 }
  3165 function disableFocusIn(container, includeContainer) {
  3967 function disableFocusIn(container, includeContainer) {
  3166   const tabbableElements = getAllTabbableIn(container, includeContainer);
  3968   const tabbableElements = getAllTabbableIn(container, includeContainer);
  3167   tabbableElements.forEach(disableFocus);
  3969   for (const element of tabbableElements) {
       
  3970     disableFocus(element);
       
  3971   }
  3168 }
  3972 }
  3169 function restoreFocusIn(container) {
  3973 function restoreFocusIn(container) {
  3170   const elements = container.querySelectorAll("[data-tabindex]");
  3974   const elements = container.querySelectorAll("[data-tabindex]");
  3171   const restoreTabIndex = (element) => {
  3975   const restoreTabIndex = (element) => {
  3172     const tabindex = element.getAttribute("data-tabindex");
  3976     const tabindex = element.getAttribute("data-tabindex");
  3178     }
  3982     }
  3179   };
  3983   };
  3180   if (container.hasAttribute("data-tabindex")) {
  3984   if (container.hasAttribute("data-tabindex")) {
  3181     restoreTabIndex(container);
  3985     restoreTabIndex(container);
  3182   }
  3986   }
  3183   elements.forEach(restoreTabIndex);
  3987   for (const element of elements) {
       
  3988     restoreTabIndex(element);
       
  3989   }
  3184 }
  3990 }
  3185 function focusIntoView(element, options) {
  3991 function focusIntoView(element, options) {
  3186   if (!("scrollIntoView" in element)) {
  3992   if (!("scrollIntoView" in element)) {
  3187     element.focus();
  3993     element.focus();
  3188   } else {
  3994   } else {
  3189     element.focus({ preventScroll: true });
  3995     element.focus({ preventScroll: true });
  3190     element.scrollIntoView(_chunks_4R3V3JGP_spreadValues({ block: "nearest", inline: "nearest" }, options));
  3996     element.scrollIntoView(_chunks_3YLGPPWQ_spreadValues({ block: "nearest", inline: "nearest" }, options));
  3191   }
  3997   }
  3192 }
  3998 }
  3193 
  3999 
  3194 
  4000 
  3195 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/KK7H3W2B.js
  4001 ;// ./node_modules/@ariakit/react-core/esm/__chunks/LVA2YJMS.js
  3196 "use client";
  4002 "use client";
  3197 
  4003 
  3198 
  4004 
  3199 
  4005 
  3200 
  4006 
  3201 
  4007 
  3202 // src/focusable/focusable.ts
  4008 // src/focusable/focusable.tsx
  3203 
  4009 
  3204 
  4010 
  3205 
  4011 
  3206 
  4012 
  3207 
  4013 
  3208 
  4014 
       
  4015 var TagName = "div";
  3209 var isSafariBrowser = isSafari();
  4016 var isSafariBrowser = isSafari();
  3210 var alwaysFocusVisibleInputTypes = [
  4017 var alwaysFocusVisibleInputTypes = [
  3211   "text",
  4018   "text",
  3212   "search",
  4019   "search",
  3213   "url",
  4020   "url",
  3220   "week",
  4027   "week",
  3221   "time",
  4028   "time",
  3222   "datetime",
  4029   "datetime",
  3223   "datetime-local"
  4030   "datetime-local"
  3224 ];
  4031 ];
       
  4032 var safariFocusAncestorSymbol = Symbol("safariFocusAncestor");
       
  4033 function isSafariFocusAncestor(element) {
       
  4034   if (!element) return false;
       
  4035   return !!element[safariFocusAncestorSymbol];
       
  4036 }
       
  4037 function markSafariFocusAncestor(element, value) {
       
  4038   if (!element) return;
       
  4039   element[safariFocusAncestorSymbol] = value;
       
  4040 }
  3225 function isAlwaysFocusVisible(element) {
  4041 function isAlwaysFocusVisible(element) {
  3226   const { tagName, readOnly, type } = element;
  4042   const { tagName, readOnly, type } = element;
  3227   if (tagName === "TEXTAREA" && !readOnly)
  4043   if (tagName === "TEXTAREA" && !readOnly) return true;
  3228     return true;
  4044   if (tagName === "SELECT" && !readOnly) return true;
  3229   if (tagName === "SELECT" && !readOnly)
       
  3230     return true;
       
  3231   if (tagName === "INPUT" && !readOnly) {
  4045   if (tagName === "INPUT" && !readOnly) {
  3232     return alwaysFocusVisibleInputTypes.includes(type);
  4046     return alwaysFocusVisibleInputTypes.includes(type);
  3233   }
  4047   }
  3234   if (element.isContentEditable)
  4048   if (element.isContentEditable) return true;
       
  4049   const role = element.getAttribute("role");
       
  4050   if (role === "combobox" && element.dataset.name) {
  3235     return true;
  4051     return true;
       
  4052   }
  3236   return false;
  4053   return false;
  3237 }
       
  3238 function isAlwaysFocusVisibleDelayed(element) {
       
  3239   const role = element.getAttribute("role");
       
  3240   if (role !== "combobox")
       
  3241     return false;
       
  3242   return !!element.dataset.name;
       
  3243 }
  4054 }
  3244 function getLabels(element) {
  4055 function getLabels(element) {
  3245   if ("labels" in element) {
  4056   if ("labels" in element) {
  3246     return element.labels;
  4057     return element.labels;
  3247   }
  4058   }
  3253     return element.type === "radio" || element.type === "checkbox";
  4064     return element.type === "radio" || element.type === "checkbox";
  3254   }
  4065   }
  3255   return false;
  4066   return false;
  3256 }
  4067 }
  3257 function isNativeTabbable(tagName) {
  4068 function isNativeTabbable(tagName) {
  3258   if (!tagName)
  4069   if (!tagName) return true;
  3259     return true;
  4070   return tagName === "button" || tagName === "summary" || tagName === "input" || tagName === "select" || tagName === "textarea" || tagName === "a";
  3260   return tagName === "button" || tagName === "input" || tagName === "select" || tagName === "textarea" || tagName === "a";
       
  3261 }
  4071 }
  3262 function supportsDisabledAttribute(tagName) {
  4072 function supportsDisabledAttribute(tagName) {
  3263   if (!tagName)
  4073   if (!tagName) return true;
  3264     return true;
       
  3265   return tagName === "button" || tagName === "input" || tagName === "select" || tagName === "textarea";
  4074   return tagName === "button" || tagName === "input" || tagName === "select" || tagName === "textarea";
  3266 }
  4075 }
  3267 function getTabIndex(focusable, trulyDisabled, nativeTabbable, supportsDisabled, tabIndexProp) {
  4076 function getTabIndex(focusable, trulyDisabled, nativeTabbable, supportsDisabled, tabIndexProp) {
  3268   if (!focusable) {
  4077   if (!focusable) {
  3269     return tabIndexProp;
  4078     return tabIndexProp;
  3280   return tabIndexProp || 0;
  4089   return tabIndexProp || 0;
  3281 }
  4090 }
  3282 function useDisableEvent(onEvent, disabled) {
  4091 function useDisableEvent(onEvent, disabled) {
  3283   return useEvent((event) => {
  4092   return useEvent((event) => {
  3284     onEvent == null ? void 0 : onEvent(event);
  4093     onEvent == null ? void 0 : onEvent(event);
  3285     if (event.defaultPrevented)
  4094     if (event.defaultPrevented) return;
  3286       return;
       
  3287     if (disabled) {
  4095     if (disabled) {
  3288       event.stopPropagation();
  4096       event.stopPropagation();
  3289       event.preventDefault();
  4097       event.preventDefault();
  3290     }
  4098     }
  3291   });
  4099   });
  3298       isKeyboardModality = false;
  4106       isKeyboardModality = false;
  3299     }
  4107     }
  3300   }
  4108   }
  3301 }
  4109 }
  3302 function onGlobalKeyDown(event) {
  4110 function onGlobalKeyDown(event) {
  3303   if (event.metaKey)
  4111   if (event.metaKey) return;
  3304     return;
  4112   if (event.ctrlKey) return;
  3305   if (event.ctrlKey)
  4113   if (event.altKey) return;
  3306     return;
       
  3307   if (event.altKey)
       
  3308     return;
       
  3309   isKeyboardModality = true;
  4114   isKeyboardModality = true;
  3310 }
  4115 }
  3311 var useFocusable = createHook(
  4116 var useFocusable = createHook(
  3312   (_a) => {
  4117   function useFocusable2(_a) {
  3313     var _b = _a, {
  4118     var _b = _a, {
  3314       focusable = true,
  4119       focusable = true,
  3315       accessibleWhenDisabled,
  4120       accessibleWhenDisabled,
  3316       autoFocus,
  4121       autoFocus,
  3317       onFocusVisible
  4122       onFocusVisible
  3321       "autoFocus",
  4126       "autoFocus",
  3322       "onFocusVisible"
  4127       "onFocusVisible"
  3323     ]);
  4128     ]);
  3324     const ref = (0,external_React_.useRef)(null);
  4129     const ref = (0,external_React_.useRef)(null);
  3325     (0,external_React_.useEffect)(() => {
  4130     (0,external_React_.useEffect)(() => {
  3326       if (!focusable)
  4131       if (!focusable) return;
  3327         return;
       
  3328       addGlobalEventListener("mousedown", onGlobalMouseDown, true);
  4132       addGlobalEventListener("mousedown", onGlobalMouseDown, true);
  3329       addGlobalEventListener("keydown", onGlobalKeyDown, true);
  4133       addGlobalEventListener("keydown", onGlobalKeyDown, true);
  3330     }, [focusable]);
  4134     }, [focusable]);
  3331     if (isSafariBrowser) {
  4135     if (isSafariBrowser) {
  3332       (0,external_React_.useEffect)(() => {
  4136       (0,external_React_.useEffect)(() => {
  3333         if (!focusable)
  4137         if (!focusable) return;
  3334           return;
       
  3335         const element = ref.current;
  4138         const element = ref.current;
  3336         if (!element)
  4139         if (!element) return;
  3337           return;
  4140         if (!isNativeCheckboxOrRadio(element)) return;
  3338         if (!isNativeCheckboxOrRadio(element))
       
  3339           return;
       
  3340         const labels = getLabels(element);
  4141         const labels = getLabels(element);
  3341         if (!labels)
  4142         if (!labels) return;
  3342           return;
       
  3343         const onMouseUp = () => queueMicrotask(() => element.focus());
  4143         const onMouseUp = () => queueMicrotask(() => element.focus());
  3344         labels.forEach((label) => label.addEventListener("mouseup", onMouseUp));
  4144         for (const label of labels) {
       
  4145           label.addEventListener("mouseup", onMouseUp);
       
  4146         }
  3345         return () => {
  4147         return () => {
  3346           labels.forEach(
  4148           for (const label of labels) {
  3347             (label) => label.removeEventListener("mouseup", onMouseUp)
  4149             label.removeEventListener("mouseup", onMouseUp);
  3348           );
  4150           }
  3349         };
  4151         };
  3350       }, [focusable]);
  4152       }, [focusable]);
  3351     }
  4153     }
  3352     const disabled = focusable && disabledFromProps(props);
  4154     const disabled = focusable && disabledFromProps(props);
  3353     const trulyDisabled = !!disabled && !accessibleWhenDisabled;
  4155     const trulyDisabled = !!disabled && !accessibleWhenDisabled;
  3354     const [focusVisible, setFocusVisible] = (0,external_React_.useState)(false);
  4156     const [focusVisible, setFocusVisible] = (0,external_React_.useState)(false);
  3355     (0,external_React_.useEffect)(() => {
  4157     (0,external_React_.useEffect)(() => {
  3356       if (!focusable)
  4158       if (!focusable) return;
  3357         return;
       
  3358       if (trulyDisabled && focusVisible) {
  4159       if (trulyDisabled && focusVisible) {
  3359         setFocusVisible(false);
  4160         setFocusVisible(false);
  3360       }
  4161       }
  3361     }, [focusable, trulyDisabled, focusVisible]);
  4162     }, [focusable, trulyDisabled, focusVisible]);
  3362     (0,external_React_.useEffect)(() => {
  4163     (0,external_React_.useEffect)(() => {
  3363       if (!focusable)
  4164       if (!focusable) return;
  3364         return;
  4165       if (!focusVisible) return;
  3365       if (!focusVisible)
       
  3366         return;
       
  3367       const element = ref.current;
  4166       const element = ref.current;
  3368       if (!element)
  4167       if (!element) return;
  3369         return;
  4168       if (typeof IntersectionObserver === "undefined") return;
  3370       if (typeof IntersectionObserver === "undefined")
       
  3371         return;
       
  3372       const observer = new IntersectionObserver(() => {
  4169       const observer = new IntersectionObserver(() => {
  3373         if (!isFocusable(element)) {
  4170         if (!isFocusable(element)) {
  3374           setFocusVisible(false);
  4171           setFocusVisible(false);
  3375         }
  4172         }
  3376       });
  4173       });
  3387     );
  4184     );
  3388     const onClickCapture = useDisableEvent(props.onClickCapture, disabled);
  4185     const onClickCapture = useDisableEvent(props.onClickCapture, disabled);
  3389     const onMouseDownProp = props.onMouseDown;
  4186     const onMouseDownProp = props.onMouseDown;
  3390     const onMouseDown = useEvent((event) => {
  4187     const onMouseDown = useEvent((event) => {
  3391       onMouseDownProp == null ? void 0 : onMouseDownProp(event);
  4188       onMouseDownProp == null ? void 0 : onMouseDownProp(event);
  3392       if (event.defaultPrevented)
  4189       if (event.defaultPrevented) return;
  3393         return;
  4190       if (!focusable) return;
  3394       if (!focusable)
       
  3395         return;
       
  3396       const element = event.currentTarget;
  4191       const element = event.currentTarget;
  3397       if (!isSafariBrowser)
  4192       if (!isSafariBrowser) return;
  3398         return;
  4193       if (isPortalEvent(event)) return;
  3399       if (isPortalEvent(event))
  4194       if (!isButton(element) && !isNativeCheckboxOrRadio(element)) return;
  3400         return;
       
  3401       if (!isButton(element) && !isNativeCheckboxOrRadio(element))
       
  3402         return;
       
  3403       let receivedFocus = false;
  4195       let receivedFocus = false;
  3404       const onFocus = () => {
  4196       const onFocus = () => {
  3405         receivedFocus = true;
  4197         receivedFocus = true;
  3406       };
  4198       };
  3407       const options = { capture: true, once: true };
  4199       const options = { capture: true, once: true };
  3408       element.addEventListener("focusin", onFocus, options);
  4200       element.addEventListener("focusin", onFocus, options);
       
  4201       const focusableContainer = getClosestFocusable(element.parentElement);
       
  4202       markSafariFocusAncestor(focusableContainer, true);
  3409       queueBeforeEvent(element, "mouseup", () => {
  4203       queueBeforeEvent(element, "mouseup", () => {
  3410         element.removeEventListener("focusin", onFocus, true);
  4204         element.removeEventListener("focusin", onFocus, true);
  3411         if (receivedFocus)
  4205         markSafariFocusAncestor(focusableContainer, false);
  3412           return;
  4206         if (receivedFocus) return;
  3413         focusIfNeeded(element);
  4207         focusIfNeeded(element);
  3414       });
  4208       });
  3415     });
  4209     });
  3416     const handleFocusVisible = (event, currentTarget) => {
  4210     const handleFocusVisible = (event, currentTarget) => {
  3417       if (currentTarget) {
  4211       if (currentTarget) {
  3418         event.currentTarget = currentTarget;
  4212         event.currentTarget = currentTarget;
  3419       }
  4213       }
  3420       if (!focusable)
  4214       if (!focusable) return;
  3421         return;
       
  3422       const element = event.currentTarget;
  4215       const element = event.currentTarget;
  3423       if (!element)
  4216       if (!element) return;
  3424         return;
  4217       if (!hasFocus(element)) return;
  3425       if (!hasFocus(element))
       
  3426         return;
       
  3427       onFocusVisible == null ? void 0 : onFocusVisible(event);
  4218       onFocusVisible == null ? void 0 : onFocusVisible(event);
  3428       if (event.defaultPrevented)
  4219       if (event.defaultPrevented) return;
  3429         return;
  4220       element.dataset.focusVisible = "true";
  3430       setFocusVisible(true);
  4221       setFocusVisible(true);
  3431     };
  4222     };
  3432     const onKeyDownCaptureProp = props.onKeyDownCapture;
  4223     const onKeyDownCaptureProp = props.onKeyDownCapture;
  3433     const onKeyDownCapture = useEvent(
  4224     const onKeyDownCapture = useEvent((event) => {
  3434       (event) => {
  4225       onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
  3435         onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
  4226       if (event.defaultPrevented) return;
  3436         if (event.defaultPrevented)
  4227       if (!focusable) return;
  3437           return;
  4228       if (focusVisible) return;
  3438         if (!focusable)
  4229       if (event.metaKey) return;
  3439           return;
  4230       if (event.altKey) return;
  3440         if (focusVisible)
  4231       if (event.ctrlKey) return;
  3441           return;
  4232       if (!isSelfTarget(event)) return;
  3442         if (event.metaKey)
  4233       const element = event.currentTarget;
  3443           return;
  4234       const applyFocusVisible = () => handleFocusVisible(event, element);
  3444         if (event.altKey)
  4235       queueBeforeEvent(element, "focusout", applyFocusVisible);
  3445           return;
  4236     });
  3446         if (event.ctrlKey)
       
  3447           return;
       
  3448         if (!isSelfTarget(event))
       
  3449           return;
       
  3450         const element = event.currentTarget;
       
  3451         queueMicrotask(() => handleFocusVisible(event, element));
       
  3452       }
       
  3453     );
       
  3454     const onFocusCaptureProp = props.onFocusCapture;
  4237     const onFocusCaptureProp = props.onFocusCapture;
  3455     const onFocusCapture = useEvent((event) => {
  4238     const onFocusCapture = useEvent((event) => {
  3456       onFocusCaptureProp == null ? void 0 : onFocusCaptureProp(event);
  4239       onFocusCaptureProp == null ? void 0 : onFocusCaptureProp(event);
  3457       if (event.defaultPrevented)
  4240       if (event.defaultPrevented) return;
  3458         return;
  4241       if (!focusable) return;
  3459       if (!focusable)
       
  3460         return;
       
  3461       if (!isSelfTarget(event)) {
  4242       if (!isSelfTarget(event)) {
  3462         setFocusVisible(false);
  4243         setFocusVisible(false);
  3463         return;
  4244         return;
  3464       }
  4245       }
  3465       const element = event.currentTarget;
  4246       const element = event.currentTarget;
  3466       const applyFocusVisible = () => handleFocusVisible(event, element);
  4247       const applyFocusVisible = () => handleFocusVisible(event, element);
  3467       if (isKeyboardModality || isAlwaysFocusVisible(event.target)) {
  4248       if (isKeyboardModality || isAlwaysFocusVisible(event.target)) {
  3468         queueMicrotask(applyFocusVisible);
       
  3469       } else if (isAlwaysFocusVisibleDelayed(event.target)) {
       
  3470         queueBeforeEvent(event.target, "focusout", applyFocusVisible);
  4249         queueBeforeEvent(event.target, "focusout", applyFocusVisible);
  3471       } else {
  4250       } else {
  3472         setFocusVisible(false);
  4251         setFocusVisible(false);
  3473       }
  4252       }
  3474     });
  4253     });
  3475     const onBlurProp = props.onBlur;
  4254     const onBlurProp = props.onBlur;
  3476     const onBlur = useEvent((event) => {
  4255     const onBlur = useEvent((event) => {
  3477       onBlurProp == null ? void 0 : onBlurProp(event);
  4256       onBlurProp == null ? void 0 : onBlurProp(event);
  3478       if (!focusable)
  4257       if (!focusable) return;
  3479         return;
  4258       if (!isFocusEventOutside(event)) return;
  3480       if (!isFocusEventOutside(event))
       
  3481         return;
       
  3482       setFocusVisible(false);
  4259       setFocusVisible(false);
  3483     });
  4260     });
  3484     const autoFocusOnShow = (0,external_React_.useContext)(FocusableContext);
  4261     const autoFocusOnShow = (0,external_React_.useContext)(FocusableContext);
  3485     const autoFocusRef = useEvent((element) => {
  4262     const autoFocusRef = useEvent((element) => {
  3486       if (!focusable)
  4263       if (!focusable) return;
  3487         return;
  4264       if (!autoFocus) return;
  3488       if (!autoFocus)
  4265       if (!element) return;
  3489         return;
  4266       if (!autoFocusOnShow) return;
  3490       if (!element)
       
  3491         return;
       
  3492       if (!autoFocusOnShow)
       
  3493         return;
       
  3494       queueMicrotask(() => {
  4267       queueMicrotask(() => {
  3495         if (hasFocus(element))
  4268         if (hasFocus(element)) return;
  3496           return;
  4269         if (!isFocusable(element)) return;
  3497         if (!isFocusable(element))
       
  3498           return;
       
  3499         element.focus();
  4270         element.focus();
  3500       });
  4271       });
  3501     });
  4272     });
  3502     const tagName = useTagName(ref, props.as);
  4273     const tagName = useTagName(ref);
  3503     const nativeTabbable = focusable && isNativeTabbable(tagName);
  4274     const nativeTabbable = focusable && isNativeTabbable(tagName);
  3504     const supportsDisabled = focusable && supportsDisabledAttribute(tagName);
  4275     const supportsDisabled = focusable && supportsDisabledAttribute(tagName);
  3505     const style = trulyDisabled ? _4R3V3JGP_spreadValues({ pointerEvents: "none" }, props.style) : props.style;
  4276     const styleProp = props.style;
  3506     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
  4277     const style = (0,external_React_.useMemo)(() => {
  3507       "data-focus-visible": focusable && focusVisible ? "" : void 0,
  4278       if (trulyDisabled) {
  3508       "data-autofocus": autoFocus ? true : void 0,
  4279         return _3YLGPPWQ_spreadValues({ pointerEvents: "none" }, styleProp);
  3509       "aria-disabled": disabled ? true : void 0
  4280       }
       
  4281       return styleProp;
       
  4282     }, [trulyDisabled, styleProp]);
       
  4283     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
  4284       "data-focus-visible": focusable && focusVisible || void 0,
       
  4285       "data-autofocus": autoFocus || void 0,
       
  4286       "aria-disabled": disabled || void 0
  3510     }, props), {
  4287     }, props), {
  3511       ref: useMergeRefs(ref, autoFocusRef, props.ref),
  4288       ref: useMergeRefs(ref, autoFocusRef, props.ref),
  3512       style,
  4289       style,
  3513       tabIndex: getTabIndex(
  4290       tabIndex: getTabIndex(
  3514         focusable,
  4291         focusable,
  3526       onMouseDown,
  4303       onMouseDown,
  3527       onKeyDownCapture,
  4304       onKeyDownCapture,
  3528       onFocusCapture,
  4305       onFocusCapture,
  3529       onBlur
  4306       onBlur
  3530     });
  4307     });
       
  4308     return removeUndefinedValues(props);
       
  4309   }
       
  4310 );
       
  4311 var Focusable = forwardRef2(function Focusable2(props) {
       
  4312   const htmlProps = useFocusable(props);
       
  4313   return LMDWO4NN_createElement(TagName, htmlProps);
       
  4314 });
       
  4315 
       
  4316 
       
  4317 
       
  4318 ;// ./node_modules/@ariakit/react-core/esm/__chunks/ITI7HKP4.js
       
  4319 "use client";
       
  4320 
       
  4321 
       
  4322 
       
  4323 
       
  4324 
       
  4325 
       
  4326 
       
  4327 // src/composite/composite.tsx
       
  4328 
       
  4329 
       
  4330 
       
  4331 
       
  4332 
       
  4333 
       
  4334 
       
  4335 var ITI7HKP4_TagName = "div";
       
  4336 function isGrid(items) {
       
  4337   return items.some((item) => !!item.rowId);
       
  4338 }
       
  4339 function isPrintableKey(event) {
       
  4340   const target = event.target;
       
  4341   if (target && !isTextField(target)) return false;
       
  4342   return event.key.length === 1 && !event.ctrlKey && !event.metaKey;
       
  4343 }
       
  4344 function isModifierKey(event) {
       
  4345   return event.key === "Shift" || event.key === "Control" || event.key === "Alt" || event.key === "Meta";
       
  4346 }
       
  4347 function useKeyboardEventProxy(store, onKeyboardEvent, previousElementRef) {
       
  4348   return useEvent((event) => {
       
  4349     var _a;
       
  4350     onKeyboardEvent == null ? void 0 : onKeyboardEvent(event);
       
  4351     if (event.defaultPrevented) return;
       
  4352     if (event.isPropagationStopped()) return;
       
  4353     if (!isSelfTarget(event)) return;
       
  4354     if (isModifierKey(event)) return;
       
  4355     if (isPrintableKey(event)) return;
       
  4356     const state = store.getState();
       
  4357     const activeElement = (_a = getEnabledItem(store, state.activeId)) == null ? void 0 : _a.element;
       
  4358     if (!activeElement) return;
       
  4359     const _b = event, { view } = _b, eventInit = __objRest(_b, ["view"]);
       
  4360     const previousElement = previousElementRef == null ? void 0 : previousElementRef.current;
       
  4361     if (activeElement !== previousElement) {
       
  4362       activeElement.focus();
       
  4363     }
       
  4364     if (!fireKeyboardEvent(activeElement, event.type, eventInit)) {
       
  4365       event.preventDefault();
       
  4366     }
       
  4367     if (event.currentTarget.contains(activeElement)) {
       
  4368       event.stopPropagation();
       
  4369     }
       
  4370   });
       
  4371 }
       
  4372 function findFirstEnabledItemInTheLastRow(items) {
       
  4373   return _5VQZOHHZ_findFirstEnabledItem(
       
  4374     flatten2DArray(reverseArray(_5VQZOHHZ_groupItemsByRows(items)))
       
  4375   );
       
  4376 }
       
  4377 function useScheduleFocus(store) {
       
  4378   const [scheduled, setScheduled] = (0,external_React_.useState)(false);
       
  4379   const schedule = (0,external_React_.useCallback)(() => setScheduled(true), []);
       
  4380   const activeItem = store.useState(
       
  4381     (state) => getEnabledItem(store, state.activeId)
       
  4382   );
       
  4383   (0,external_React_.useEffect)(() => {
       
  4384     const activeElement = activeItem == null ? void 0 : activeItem.element;
       
  4385     if (!scheduled) return;
       
  4386     if (!activeElement) return;
       
  4387     setScheduled(false);
       
  4388     activeElement.focus({ preventScroll: true });
       
  4389   }, [activeItem, scheduled]);
       
  4390   return schedule;
       
  4391 }
       
  4392 var useComposite = createHook(
       
  4393   function useComposite2(_a) {
       
  4394     var _b = _a, {
       
  4395       store,
       
  4396       composite = true,
       
  4397       focusOnMove = composite,
       
  4398       moveOnKeyPress = true
       
  4399     } = _b, props = __objRest(_b, [
       
  4400       "store",
       
  4401       "composite",
       
  4402       "focusOnMove",
       
  4403       "moveOnKeyPress"
       
  4404     ]);
       
  4405     const context = useCompositeProviderContext();
       
  4406     store = store || context;
       
  4407     invariant(
       
  4408       store,
       
  4409        false && 0
       
  4410     );
       
  4411     const ref = (0,external_React_.useRef)(null);
       
  4412     const previousElementRef = (0,external_React_.useRef)(null);
       
  4413     const scheduleFocus = useScheduleFocus(store);
       
  4414     const moves = store.useState("moves");
       
  4415     const [, setBaseElement] = useTransactionState(
       
  4416       composite ? store.setBaseElement : null
       
  4417     );
       
  4418     (0,external_React_.useEffect)(() => {
       
  4419       var _a2;
       
  4420       if (!store) return;
       
  4421       if (!moves) return;
       
  4422       if (!composite) return;
       
  4423       if (!focusOnMove) return;
       
  4424       const { activeId: activeId2 } = store.getState();
       
  4425       const itemElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
       
  4426       if (!itemElement) return;
       
  4427       focusIntoView(itemElement);
       
  4428     }, [store, moves, composite, focusOnMove]);
       
  4429     useSafeLayoutEffect(() => {
       
  4430       if (!store) return;
       
  4431       if (!moves) return;
       
  4432       if (!composite) return;
       
  4433       const { baseElement, activeId: activeId2 } = store.getState();
       
  4434       const isSelfAcive = activeId2 === null;
       
  4435       if (!isSelfAcive) return;
       
  4436       if (!baseElement) return;
       
  4437       const previousElement = previousElementRef.current;
       
  4438       previousElementRef.current = null;
       
  4439       if (previousElement) {
       
  4440         fireBlurEvent(previousElement, { relatedTarget: baseElement });
       
  4441       }
       
  4442       if (!hasFocus(baseElement)) {
       
  4443         baseElement.focus();
       
  4444       }
       
  4445     }, [store, moves, composite]);
       
  4446     const activeId = store.useState("activeId");
       
  4447     const virtualFocus = store.useState("virtualFocus");
       
  4448     useSafeLayoutEffect(() => {
       
  4449       var _a2;
       
  4450       if (!store) return;
       
  4451       if (!composite) return;
       
  4452       if (!virtualFocus) return;
       
  4453       const previousElement = previousElementRef.current;
       
  4454       previousElementRef.current = null;
       
  4455       if (!previousElement) return;
       
  4456       const activeElement = (_a2 = getEnabledItem(store, activeId)) == null ? void 0 : _a2.element;
       
  4457       const relatedTarget = activeElement || getActiveElement(previousElement);
       
  4458       if (relatedTarget === previousElement) return;
       
  4459       fireBlurEvent(previousElement, { relatedTarget });
       
  4460     }, [store, activeId, virtualFocus, composite]);
       
  4461     const onKeyDownCapture = useKeyboardEventProxy(
       
  4462       store,
       
  4463       props.onKeyDownCapture,
       
  4464       previousElementRef
       
  4465     );
       
  4466     const onKeyUpCapture = useKeyboardEventProxy(
       
  4467       store,
       
  4468       props.onKeyUpCapture,
       
  4469       previousElementRef
       
  4470     );
       
  4471     const onFocusCaptureProp = props.onFocusCapture;
       
  4472     const onFocusCapture = useEvent((event) => {
       
  4473       onFocusCaptureProp == null ? void 0 : onFocusCaptureProp(event);
       
  4474       if (event.defaultPrevented) return;
       
  4475       if (!store) return;
       
  4476       const { virtualFocus: virtualFocus2 } = store.getState();
       
  4477       if (!virtualFocus2) return;
       
  4478       const previousActiveElement = event.relatedTarget;
       
  4479       const isSilentlyFocused = silentlyFocused(event.currentTarget);
       
  4480       if (isSelfTarget(event) && isSilentlyFocused) {
       
  4481         event.stopPropagation();
       
  4482         previousElementRef.current = previousActiveElement;
       
  4483       }
       
  4484     });
       
  4485     const onFocusProp = props.onFocus;
       
  4486     const onFocus = useEvent((event) => {
       
  4487       onFocusProp == null ? void 0 : onFocusProp(event);
       
  4488       if (event.defaultPrevented) return;
       
  4489       if (!composite) return;
       
  4490       if (!store) return;
       
  4491       const { relatedTarget } = event;
       
  4492       const { virtualFocus: virtualFocus2 } = store.getState();
       
  4493       if (virtualFocus2) {
       
  4494         if (isSelfTarget(event) && !isItem(store, relatedTarget)) {
       
  4495           queueMicrotask(scheduleFocus);
       
  4496         }
       
  4497       } else if (isSelfTarget(event)) {
       
  4498         store.setActiveId(null);
       
  4499       }
       
  4500     });
       
  4501     const onBlurCaptureProp = props.onBlurCapture;
       
  4502     const onBlurCapture = useEvent((event) => {
       
  4503       var _a2;
       
  4504       onBlurCaptureProp == null ? void 0 : onBlurCaptureProp(event);
       
  4505       if (event.defaultPrevented) return;
       
  4506       if (!store) return;
       
  4507       const { virtualFocus: virtualFocus2, activeId: activeId2 } = store.getState();
       
  4508       if (!virtualFocus2) return;
       
  4509       const activeElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
       
  4510       const nextActiveElement = event.relatedTarget;
       
  4511       const nextActiveElementIsItem = isItem(store, nextActiveElement);
       
  4512       const previousElement = previousElementRef.current;
       
  4513       previousElementRef.current = null;
       
  4514       if (isSelfTarget(event) && nextActiveElementIsItem) {
       
  4515         if (nextActiveElement === activeElement) {
       
  4516           if (previousElement && previousElement !== nextActiveElement) {
       
  4517             fireBlurEvent(previousElement, event);
       
  4518           }
       
  4519         } else if (activeElement) {
       
  4520           fireBlurEvent(activeElement, event);
       
  4521         } else if (previousElement) {
       
  4522           fireBlurEvent(previousElement, event);
       
  4523         }
       
  4524         event.stopPropagation();
       
  4525       } else {
       
  4526         const targetIsItem = isItem(store, event.target);
       
  4527         if (!targetIsItem && activeElement) {
       
  4528           fireBlurEvent(activeElement, event);
       
  4529         }
       
  4530       }
       
  4531     });
       
  4532     const onKeyDownProp = props.onKeyDown;
       
  4533     const moveOnKeyPressProp = useBooleanEvent(moveOnKeyPress);
       
  4534     const onKeyDown = useEvent((event) => {
       
  4535       var _a2;
       
  4536       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
  4537       if (event.defaultPrevented) return;
       
  4538       if (!store) return;
       
  4539       if (!isSelfTarget(event)) return;
       
  4540       const { orientation, renderedItems, activeId: activeId2 } = store.getState();
       
  4541       const activeItem = getEnabledItem(store, activeId2);
       
  4542       if ((_a2 = activeItem == null ? void 0 : activeItem.element) == null ? void 0 : _a2.isConnected) return;
       
  4543       const isVertical = orientation !== "horizontal";
       
  4544       const isHorizontal = orientation !== "vertical";
       
  4545       const grid = isGrid(renderedItems);
       
  4546       const isHorizontalKey = event.key === "ArrowLeft" || event.key === "ArrowRight" || event.key === "Home" || event.key === "End";
       
  4547       if (isHorizontalKey && isTextField(event.currentTarget)) return;
       
  4548       const up = () => {
       
  4549         if (grid) {
       
  4550           const item = findFirstEnabledItemInTheLastRow(renderedItems);
       
  4551           return item == null ? void 0 : item.id;
       
  4552         }
       
  4553         return store == null ? void 0 : store.last();
       
  4554       };
       
  4555       const keyMap = {
       
  4556         ArrowUp: (grid || isVertical) && up,
       
  4557         ArrowRight: (grid || isHorizontal) && store.first,
       
  4558         ArrowDown: (grid || isVertical) && store.first,
       
  4559         ArrowLeft: (grid || isHorizontal) && store.last,
       
  4560         Home: store.first,
       
  4561         End: store.last,
       
  4562         PageUp: store.first,
       
  4563         PageDown: store.last
       
  4564       };
       
  4565       const action = keyMap[event.key];
       
  4566       if (action) {
       
  4567         const id = action();
       
  4568         if (id !== void 0) {
       
  4569           if (!moveOnKeyPressProp(event)) return;
       
  4570           event.preventDefault();
       
  4571           store.move(id);
       
  4572         }
       
  4573       }
       
  4574     });
       
  4575     props = useWrapElement(
       
  4576       props,
       
  4577       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeContextProvider, { value: store, children: element }),
       
  4578       [store]
       
  4579     );
       
  4580     const activeDescendant = store.useState((state) => {
       
  4581       var _a2;
       
  4582       if (!store) return;
       
  4583       if (!composite) return;
       
  4584       if (!state.virtualFocus) return;
       
  4585       return (_a2 = getEnabledItem(store, state.activeId)) == null ? void 0 : _a2.id;
       
  4586     });
       
  4587     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
  4588       "aria-activedescendant": activeDescendant
       
  4589     }, props), {
       
  4590       ref: useMergeRefs(ref, setBaseElement, props.ref),
       
  4591       onKeyDownCapture,
       
  4592       onKeyUpCapture,
       
  4593       onFocusCapture,
       
  4594       onFocus,
       
  4595       onBlurCapture,
       
  4596       onKeyDown
       
  4597     });
       
  4598     const focusable = store.useState(
       
  4599       (state) => composite && (state.virtualFocus || state.activeId === null)
       
  4600     );
       
  4601     props = useFocusable(_3YLGPPWQ_spreadValues({ focusable }, props));
  3531     return props;
  4602     return props;
  3532   }
  4603   }
  3533 );
  4604 );
  3534 var Focusable = createComponent((props) => {
  4605 var ITI7HKP4_Composite = forwardRef2(function Composite2(props) {
  3535   props = useFocusable(props);
  4606   const htmlProps = useComposite(props);
  3536   return _3ORBWXWF_createElement("div", props);
  4607   return LMDWO4NN_createElement(ITI7HKP4_TagName, htmlProps);
  3537 });
  4608 });
  3538 if (false) {}
  4609 
  3539 
  4610 
  3540 
  4611 
  3541 
  4612 ;// ./node_modules/@wordpress/components/build-module/composite/context.js
  3542 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/NWCBQ4CV.js
  4613 /**
       
  4614  * WordPress dependencies
       
  4615  */
       
  4616 
       
  4617 
       
  4618 /**
       
  4619  * Internal dependencies
       
  4620  */
       
  4621 
       
  4622 const CompositeContext = (0,external_wp_element_namespaceObject.createContext)({});
       
  4623 const context_useCompositeContext = () => (0,external_wp_element_namespaceObject.useContext)(CompositeContext);
       
  4624 
       
  4625 ;// ./node_modules/@ariakit/react-core/esm/__chunks/7HVFURXT.js
  3543 "use client";
  4626 "use client";
  3544 
  4627 
  3545 
  4628 // src/group/group-label-context.tsx
  3546 
  4629 
  3547 
  4630 var GroupLabelContext = (0,external_React_.createContext)(void 0);
  3548 
  4631 
  3549 // src/command/command.ts
  4632 
  3550 
  4633 
  3551 
  4634 ;// ./node_modules/@ariakit/react-core/esm/__chunks/36LIF33V.js
  3552 
  4635 "use client";
  3553 
  4636 
  3554 
  4637 
       
  4638 
       
  4639 
       
  4640 
       
  4641 // src/group/group.tsx
       
  4642 
       
  4643 
       
  4644 
       
  4645 var _36LIF33V_TagName = "div";
       
  4646 var useGroup = createHook(
       
  4647   function useGroup2(props) {
       
  4648     const [labelId, setLabelId] = (0,external_React_.useState)();
       
  4649     props = useWrapElement(
       
  4650       props,
       
  4651       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(GroupLabelContext.Provider, { value: setLabelId, children: element }),
       
  4652       []
       
  4653     );
       
  4654     props = _3YLGPPWQ_spreadValues({
       
  4655       role: "group",
       
  4656       "aria-labelledby": labelId
       
  4657     }, props);
       
  4658     return removeUndefinedValues(props);
       
  4659   }
       
  4660 );
       
  4661 var Group = forwardRef2(function Group2(props) {
       
  4662   const htmlProps = useGroup(props);
       
  4663   return LMDWO4NN_createElement(_36LIF33V_TagName, htmlProps);
       
  4664 });
       
  4665 
       
  4666 
       
  4667 
       
  4668 ;// ./node_modules/@ariakit/react-core/esm/__chunks/YORGHBM4.js
       
  4669 "use client";
       
  4670 
       
  4671 
       
  4672 
       
  4673 
       
  4674 // src/composite/composite-group.tsx
       
  4675 var YORGHBM4_TagName = "div";
       
  4676 var useCompositeGroup = createHook(
       
  4677   function useCompositeGroup2(_a) {
       
  4678     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
  4679     props = useGroup(props);
       
  4680     return props;
       
  4681   }
       
  4682 );
       
  4683 var YORGHBM4_CompositeGroup = forwardRef2(function CompositeGroup2(props) {
       
  4684   const htmlProps = useCompositeGroup(props);
       
  4685   return LMDWO4NN_createElement(YORGHBM4_TagName, htmlProps);
       
  4686 });
       
  4687 
       
  4688 
       
  4689 
       
  4690 ;// ./node_modules/@wordpress/components/build-module/composite/group.js
       
  4691 /**
       
  4692  * External dependencies
       
  4693  */
       
  4694 
       
  4695 
       
  4696 /**
       
  4697  * WordPress dependencies
       
  4698  */
       
  4699 
       
  4700 
       
  4701 /**
       
  4702  * Internal dependencies
       
  4703  */
       
  4704 
       
  4705 
       
  4706 
       
  4707 const CompositeGroup = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeGroup(props, ref) {
       
  4708   var _props$store;
       
  4709   const context = context_useCompositeContext();
       
  4710 
       
  4711   // @ts-expect-error The store prop is undocumented and only used by the
       
  4712   // legacy compat layer. The `store` prop is documented, but its type is
       
  4713   // obfuscated to discourage its use outside of the component's internals.
       
  4714   const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
       
  4715   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(YORGHBM4_CompositeGroup, {
       
  4716     store: store,
       
  4717     ...props,
       
  4718     ref: ref
       
  4719   });
       
  4720 });
       
  4721 
       
  4722 ;// ./node_modules/@ariakit/react-core/esm/__chunks/YUOJWFSO.js
       
  4723 "use client";
       
  4724 
       
  4725 
       
  4726 
       
  4727 
       
  4728 
       
  4729 // src/group/group-label.tsx
       
  4730 
       
  4731 
       
  4732 var YUOJWFSO_TagName = "div";
       
  4733 var useGroupLabel = createHook(
       
  4734   function useGroupLabel2(props) {
       
  4735     const setLabelId = (0,external_React_.useContext)(GroupLabelContext);
       
  4736     const id = useId(props.id);
       
  4737     useSafeLayoutEffect(() => {
       
  4738       setLabelId == null ? void 0 : setLabelId(id);
       
  4739       return () => setLabelId == null ? void 0 : setLabelId(void 0);
       
  4740     }, [setLabelId, id]);
       
  4741     props = _3YLGPPWQ_spreadValues({
       
  4742       id,
       
  4743       "aria-hidden": true
       
  4744     }, props);
       
  4745     return removeUndefinedValues(props);
       
  4746   }
       
  4747 );
       
  4748 var GroupLabel = forwardRef2(function GroupLabel2(props) {
       
  4749   const htmlProps = useGroupLabel(props);
       
  4750   return LMDWO4NN_createElement(YUOJWFSO_TagName, htmlProps);
       
  4751 });
       
  4752 
       
  4753 
       
  4754 
       
  4755 ;// ./node_modules/@ariakit/react-core/esm/__chunks/SWSPTQMT.js
       
  4756 "use client";
       
  4757 
       
  4758 
       
  4759 
       
  4760 
       
  4761 // src/composite/composite-group-label.tsx
       
  4762 var SWSPTQMT_TagName = "div";
       
  4763 var useCompositeGroupLabel = createHook(function useCompositeGroupLabel2(_a) {
       
  4764   var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
  4765   props = useGroupLabel(props);
       
  4766   return props;
       
  4767 });
       
  4768 var SWSPTQMT_CompositeGroupLabel = forwardRef2(function CompositeGroupLabel2(props) {
       
  4769   const htmlProps = useCompositeGroupLabel(props);
       
  4770   return LMDWO4NN_createElement(SWSPTQMT_TagName, htmlProps);
       
  4771 });
       
  4772 
       
  4773 
       
  4774 
       
  4775 ;// ./node_modules/@wordpress/components/build-module/composite/group-label.js
       
  4776 /**
       
  4777  * External dependencies
       
  4778  */
       
  4779 
       
  4780 
       
  4781 /**
       
  4782  * WordPress dependencies
       
  4783  */
       
  4784 
       
  4785 
       
  4786 /**
       
  4787  * Internal dependencies
       
  4788  */
       
  4789 
       
  4790 
       
  4791 
       
  4792 const CompositeGroupLabel = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeGroupLabel(props, ref) {
       
  4793   var _props$store;
       
  4794   const context = context_useCompositeContext();
       
  4795 
       
  4796   // @ts-expect-error The store prop is undocumented and only used by the
       
  4797   // legacy compat layer. The `store` prop is documented, but its type is
       
  4798   // obfuscated to discourage its use outside of the component's internals.
       
  4799   const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
       
  4800   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SWSPTQMT_CompositeGroupLabel, {
       
  4801     store: store,
       
  4802     ...props,
       
  4803     ref: ref
       
  4804   });
       
  4805 });
       
  4806 
       
  4807 ;// ./node_modules/@ariakit/react-core/esm/__chunks/UQQRIHDV.js
       
  4808 "use client";
       
  4809 
       
  4810 
       
  4811 
       
  4812 
       
  4813 
       
  4814 // src/composite/composite-hover.tsx
       
  4815 
       
  4816 
       
  4817 
       
  4818 
       
  4819 var UQQRIHDV_TagName = "div";
       
  4820 function getMouseDestination(event) {
       
  4821   const relatedTarget = event.relatedTarget;
       
  4822   if ((relatedTarget == null ? void 0 : relatedTarget.nodeType) === Node.ELEMENT_NODE) {
       
  4823     return relatedTarget;
       
  4824   }
       
  4825   return null;
       
  4826 }
       
  4827 function hoveringInside(event) {
       
  4828   const nextElement = getMouseDestination(event);
       
  4829   if (!nextElement) return false;
       
  4830   return contains(event.currentTarget, nextElement);
       
  4831 }
       
  4832 var symbol = Symbol("composite-hover");
       
  4833 function movingToAnotherItem(event) {
       
  4834   let dest = getMouseDestination(event);
       
  4835   if (!dest) return false;
       
  4836   do {
       
  4837     if (PBFD2E7P_hasOwnProperty(dest, symbol) && dest[symbol]) return true;
       
  4838     dest = dest.parentElement;
       
  4839   } while (dest);
       
  4840   return false;
       
  4841 }
       
  4842 var useCompositeHover = createHook(
       
  4843   function useCompositeHover2(_a) {
       
  4844     var _b = _a, {
       
  4845       store,
       
  4846       focusOnHover = true,
       
  4847       blurOnHoverEnd = !!focusOnHover
       
  4848     } = _b, props = __objRest(_b, [
       
  4849       "store",
       
  4850       "focusOnHover",
       
  4851       "blurOnHoverEnd"
       
  4852     ]);
       
  4853     const context = useCompositeContext();
       
  4854     store = store || context;
       
  4855     invariant(
       
  4856       store,
       
  4857        false && 0
       
  4858     );
       
  4859     const isMouseMoving = useIsMouseMoving();
       
  4860     const onMouseMoveProp = props.onMouseMove;
       
  4861     const focusOnHoverProp = useBooleanEvent(focusOnHover);
       
  4862     const onMouseMove = useEvent((event) => {
       
  4863       onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
       
  4864       if (event.defaultPrevented) return;
       
  4865       if (!isMouseMoving()) return;
       
  4866       if (!focusOnHoverProp(event)) return;
       
  4867       if (!hasFocusWithin(event.currentTarget)) {
       
  4868         const baseElement = store == null ? void 0 : store.getState().baseElement;
       
  4869         if (baseElement && !hasFocus(baseElement)) {
       
  4870           baseElement.focus();
       
  4871         }
       
  4872       }
       
  4873       store == null ? void 0 : store.setActiveId(event.currentTarget.id);
       
  4874     });
       
  4875     const onMouseLeaveProp = props.onMouseLeave;
       
  4876     const blurOnHoverEndProp = useBooleanEvent(blurOnHoverEnd);
       
  4877     const onMouseLeave = useEvent((event) => {
       
  4878       var _a2;
       
  4879       onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);
       
  4880       if (event.defaultPrevented) return;
       
  4881       if (!isMouseMoving()) return;
       
  4882       if (hoveringInside(event)) return;
       
  4883       if (movingToAnotherItem(event)) return;
       
  4884       if (!focusOnHoverProp(event)) return;
       
  4885       if (!blurOnHoverEndProp(event)) return;
       
  4886       store == null ? void 0 : store.setActiveId(null);
       
  4887       (_a2 = store == null ? void 0 : store.getState().baseElement) == null ? void 0 : _a2.focus();
       
  4888     });
       
  4889     const ref = (0,external_React_.useCallback)((element) => {
       
  4890       if (!element) return;
       
  4891       element[symbol] = true;
       
  4892     }, []);
       
  4893     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
  4894       ref: useMergeRefs(ref, props.ref),
       
  4895       onMouseMove,
       
  4896       onMouseLeave
       
  4897     });
       
  4898     return removeUndefinedValues(props);
       
  4899   }
       
  4900 );
       
  4901 var UQQRIHDV_CompositeHover = memo2(
       
  4902   forwardRef2(function CompositeHover2(props) {
       
  4903     const htmlProps = useCompositeHover(props);
       
  4904     return LMDWO4NN_createElement(UQQRIHDV_TagName, htmlProps);
       
  4905   })
       
  4906 );
       
  4907 
       
  4908 
       
  4909 
       
  4910 ;// ./node_modules/@wordpress/components/build-module/composite/hover.js
       
  4911 /**
       
  4912  * External dependencies
       
  4913  */
       
  4914 
       
  4915 
       
  4916 /**
       
  4917  * WordPress dependencies
       
  4918  */
       
  4919 
       
  4920 
       
  4921 /**
       
  4922  * Internal dependencies
       
  4923  */
       
  4924 
       
  4925 
       
  4926 
       
  4927 const CompositeHover = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeHover(props, ref) {
       
  4928   var _props$store;
       
  4929   const context = context_useCompositeContext();
       
  4930 
       
  4931   // @ts-expect-error The store prop is undocumented and only used by the
       
  4932   // legacy compat layer. The `store` prop is documented, but its type is
       
  4933   // obfuscated to discourage its use outside of the component's internals.
       
  4934   const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
       
  4935   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(UQQRIHDV_CompositeHover, {
       
  4936     store: store,
       
  4937     ...props,
       
  4938     ref: ref
       
  4939   });
       
  4940 });
       
  4941 
       
  4942 ;// ./node_modules/@ariakit/react-core/esm/__chunks/RZ4GPYOB.js
       
  4943 "use client";
       
  4944 
       
  4945 
       
  4946 
       
  4947 
       
  4948 
       
  4949 // src/collection/collection-item.tsx
       
  4950 
       
  4951 
       
  4952 var RZ4GPYOB_TagName = "div";
       
  4953 var useCollectionItem = createHook(
       
  4954   function useCollectionItem2(_a) {
       
  4955     var _b = _a, {
       
  4956       store,
       
  4957       shouldRegisterItem = true,
       
  4958       getItem = identity,
       
  4959       element: element
       
  4960     } = _b, props = __objRest(_b, [
       
  4961       "store",
       
  4962       "shouldRegisterItem",
       
  4963       "getItem",
       
  4964       // @ts-expect-error This prop may come from a collection renderer.
       
  4965       "element"
       
  4966     ]);
       
  4967     const context = useCollectionContext();
       
  4968     store = store || context;
       
  4969     const id = useId(props.id);
       
  4970     const ref = (0,external_React_.useRef)(element);
       
  4971     (0,external_React_.useEffect)(() => {
       
  4972       const element2 = ref.current;
       
  4973       if (!id) return;
       
  4974       if (!element2) return;
       
  4975       if (!shouldRegisterItem) return;
       
  4976       const item = getItem({ id, element: element2 });
       
  4977       return store == null ? void 0 : store.renderItem(item);
       
  4978     }, [id, shouldRegisterItem, getItem, store]);
       
  4979     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
  4980       ref: useMergeRefs(ref, props.ref)
       
  4981     });
       
  4982     return removeUndefinedValues(props);
       
  4983   }
       
  4984 );
       
  4985 var CollectionItem = forwardRef2(function CollectionItem2(props) {
       
  4986   const htmlProps = useCollectionItem(props);
       
  4987   return LMDWO4NN_createElement(RZ4GPYOB_TagName, htmlProps);
       
  4988 });
       
  4989 
       
  4990 
       
  4991 
       
  4992 ;// ./node_modules/@ariakit/react-core/esm/__chunks/KUU7WJ55.js
       
  4993 "use client";
       
  4994 
       
  4995 
       
  4996 
       
  4997 
       
  4998 
       
  4999 // src/command/command.tsx
       
  5000 
       
  5001 
       
  5002 
       
  5003 
       
  5004 
       
  5005 var KUU7WJ55_TagName = "button";
  3555 function isNativeClick(event) {
  5006 function isNativeClick(event) {
  3556   if (!event.isTrusted)
  5007   if (!event.isTrusted) return false;
  3557     return false;
       
  3558   const element = event.currentTarget;
  5008   const element = event.currentTarget;
  3559   if (event.key === "Enter") {
  5009   if (event.key === "Enter") {
  3560     return isButton(element) || element.tagName === "SUMMARY" || element.tagName === "A";
  5010     return isButton(element) || element.tagName === "SUMMARY" || element.tagName === "A";
  3561   }
  5011   }
  3562   if (event.key === " ") {
  5012   if (event.key === " ") {
  3563     return isButton(element) || element.tagName === "SUMMARY" || element.tagName === "INPUT" || element.tagName === "SELECT";
  5013     return isButton(element) || element.tagName === "SUMMARY" || element.tagName === "INPUT" || element.tagName === "SELECT";
  3564   }
  5014   }
  3565   return false;
  5015   return false;
  3566 }
  5016 }
  3567 var symbol = Symbol("command");
  5017 var KUU7WJ55_symbol = Symbol("command");
  3568 var useCommand = createHook(
  5018 var useCommand = createHook(
  3569   (_a) => {
  5019   function useCommand2(_a) {
  3570     var _b = _a, { clickOnEnter = true, clickOnSpace = true } = _b, props = __objRest(_b, ["clickOnEnter", "clickOnSpace"]);
  5020     var _b = _a, { clickOnEnter = true, clickOnSpace = true } = _b, props = __objRest(_b, ["clickOnEnter", "clickOnSpace"]);
  3571     const ref = (0,external_React_.useRef)(null);
  5021     const ref = (0,external_React_.useRef)(null);
  3572     const tagName = useTagName(ref, props.as);
  5022     const [isNativeButton, setIsNativeButton] = (0,external_React_.useState)(false);
  3573     const type = props.type;
       
  3574     const [isNativeButton, setIsNativeButton] = (0,external_React_.useState)(
       
  3575       () => !!tagName && isButton({ tagName, type })
       
  3576     );
       
  3577     (0,external_React_.useEffect)(() => {
  5023     (0,external_React_.useEffect)(() => {
  3578       if (!ref.current)
  5024       if (!ref.current) return;
  3579         return;
       
  3580       setIsNativeButton(isButton(ref.current));
  5025       setIsNativeButton(isButton(ref.current));
  3581     }, []);
  5026     }, []);
  3582     const [active, setActive] = (0,external_React_.useState)(false);
  5027     const [active, setActive] = (0,external_React_.useState)(false);
  3583     const activeRef = (0,external_React_.useRef)(false);
  5028     const activeRef = (0,external_React_.useRef)(false);
  3584     const disabled = disabledFromProps(props);
  5029     const disabled = disabledFromProps(props);
  3585     const [isDuplicate, metadataProps] = useMetadataProps(props, symbol, true);
  5030     const [isDuplicate, metadataProps] = useMetadataProps(props, KUU7WJ55_symbol, true);
  3586     const onKeyDownProp = props.onKeyDown;
  5031     const onKeyDownProp = props.onKeyDown;
  3587     const onKeyDown = useEvent((event) => {
  5032     const onKeyDown = useEvent((event) => {
  3588       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
  5033       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
  3589       const element = event.currentTarget;
  5034       const element = event.currentTarget;
  3590       if (event.defaultPrevented)
  5035       if (event.defaultPrevented) return;
  3591         return;
  5036       if (isDuplicate) return;
  3592       if (isDuplicate)
  5037       if (disabled) return;
  3593         return;
  5038       if (!isSelfTarget(event)) return;
  3594       if (disabled)
  5039       if (isTextField(element)) return;
  3595         return;
  5040       if (element.isContentEditable) return;
  3596       if (!isSelfTarget(event))
       
  3597         return;
       
  3598       if (DLOEKDPY_isTextField(element))
       
  3599         return;
       
  3600       if (element.isContentEditable)
       
  3601         return;
       
  3602       const isEnter = clickOnEnter && event.key === "Enter";
  5041       const isEnter = clickOnEnter && event.key === "Enter";
  3603       const isSpace = clickOnSpace && event.key === " ";
  5042       const isSpace = clickOnSpace && event.key === " ";
  3604       const shouldPreventEnter = event.key === "Enter" && !clickOnEnter;
  5043       const shouldPreventEnter = event.key === "Enter" && !clickOnEnter;
  3605       const shouldPreventSpace = event.key === " " && !clickOnSpace;
  5044       const shouldPreventSpace = event.key === " " && !clickOnSpace;
  3606       if (shouldPreventEnter || shouldPreventSpace) {
  5045       if (shouldPreventEnter || shouldPreventSpace) {
  3630       }
  5069       }
  3631     });
  5070     });
  3632     const onKeyUpProp = props.onKeyUp;
  5071     const onKeyUpProp = props.onKeyUp;
  3633     const onKeyUp = useEvent((event) => {
  5072     const onKeyUp = useEvent((event) => {
  3634       onKeyUpProp == null ? void 0 : onKeyUpProp(event);
  5073       onKeyUpProp == null ? void 0 : onKeyUpProp(event);
  3635       if (event.defaultPrevented)
  5074       if (event.defaultPrevented) return;
  3636         return;
  5075       if (isDuplicate) return;
  3637       if (isDuplicate)
  5076       if (disabled) return;
  3638         return;
  5077       if (event.metaKey) return;
  3639       if (disabled)
       
  3640         return;
       
  3641       if (event.metaKey)
       
  3642         return;
       
  3643       const isSpace = clickOnSpace && event.key === " ";
  5078       const isSpace = clickOnSpace && event.key === " ";
  3644       if (activeRef.current && isSpace) {
  5079       if (activeRef.current && isSpace) {
  3645         activeRef.current = false;
  5080         activeRef.current = false;
  3646         if (!isNativeClick(event)) {
  5081         if (!isNativeClick(event)) {
  3647           event.preventDefault();
  5082           event.preventDefault();
  3650           const _a2 = event, { view } = _a2, eventInit = __objRest(_a2, ["view"]);
  5085           const _a2 = event, { view } = _a2, eventInit = __objRest(_a2, ["view"]);
  3651           queueMicrotask(() => fireClickEvent(element, eventInit));
  5086           queueMicrotask(() => fireClickEvent(element, eventInit));
  3652         }
  5087         }
  3653       }
  5088       }
  3654     });
  5089     });
  3655     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues(_4R3V3JGP_spreadValues({
  5090     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues(_3YLGPPWQ_spreadValues({
  3656       "data-active": active ? "" : void 0,
  5091       "data-active": active || void 0,
  3657       type: isNativeButton ? "button" : void 0
  5092       type: isNativeButton ? "button" : void 0
  3658     }, metadataProps), props), {
  5093     }, metadataProps), props), {
  3659       ref: useMergeRefs(ref, props.ref),
  5094       ref: useMergeRefs(ref, props.ref),
  3660       onKeyDown,
  5095       onKeyDown,
  3661       onKeyUp
  5096       onKeyUp
  3662     });
  5097     });
  3663     props = useFocusable(props);
  5098     props = useFocusable(props);
  3664     return props;
  5099     return props;
  3665   }
  5100   }
  3666 );
  5101 );
  3667 var Command = createComponent((props) => {
  5102 var Command = forwardRef2(function Command2(props) {
  3668   props = useCommand(props);
  5103   const htmlProps = useCommand(props);
  3669   return _3ORBWXWF_createElement("button", props);
  5104   return LMDWO4NN_createElement(KUU7WJ55_TagName, htmlProps);
  3670 });
  5105 });
  3671 if (false) {}
  5106 
  3672 
  5107 
  3673 
  5108 
  3674 
  5109 ;// ./node_modules/@ariakit/react-core/esm/__chunks/P2CTZE2T.js
  3675 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4UUKJZ4V.js
       
  3676 "use client";
  5110 "use client";
  3677 
  5111 
  3678 
  5112 
  3679 // src/collection/collection-context.tsx
       
  3680 var ctx = createStoreContext();
       
  3681 var useCollectionContext = ctx.useContext;
       
  3682 var useCollectionScopedContext = ctx.useScopedContext;
       
  3683 var useCollectionProviderContext = ctx.useProviderContext;
       
  3684 var CollectionContextProvider = ctx.ContextProvider;
       
  3685 var CollectionScopedContextProvider = ctx.ScopedContextProvider;
       
  3686 
       
  3687 
       
  3688 
       
  3689 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/UH3I23HL.js
       
  3690 "use client";
       
  3691 
       
  3692 
       
  3693 
       
  3694 
       
  3695 
       
  3696 // src/collection/collection-item.ts
       
  3697 
       
  3698 
       
  3699 var useCollectionItem = createHook(
       
  3700   (_a) => {
       
  3701     var _b = _a, {
       
  3702       store,
       
  3703       shouldRegisterItem = true,
       
  3704       getItem = identity,
       
  3705       element: element
       
  3706     } = _b, props = __objRest(_b, [
       
  3707       "store",
       
  3708       "shouldRegisterItem",
       
  3709       "getItem",
       
  3710       // @ts-expect-error This prop may come from a collection renderer.
       
  3711       "element"
       
  3712     ]);
       
  3713     const context = useCollectionContext();
       
  3714     store = store || context;
       
  3715     const id = useId(props.id);
       
  3716     const ref = (0,external_React_.useRef)(element);
       
  3717     (0,external_React_.useEffect)(() => {
       
  3718       const element2 = ref.current;
       
  3719       if (!id)
       
  3720         return;
       
  3721       if (!element2)
       
  3722         return;
       
  3723       if (!shouldRegisterItem)
       
  3724         return;
       
  3725       const item = getItem({ id, element: element2 });
       
  3726       return store == null ? void 0 : store.renderItem(item);
       
  3727     }, [id, shouldRegisterItem, getItem, store]);
       
  3728     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
  3729       ref: useMergeRefs(ref, props.ref)
       
  3730     });
       
  3731     return props;
       
  3732   }
       
  3733 );
       
  3734 var CollectionItem = createComponent(
       
  3735   (props) => {
       
  3736     const htmlProps = useCollectionItem(props);
       
  3737     return _3ORBWXWF_createElement("div", htmlProps);
       
  3738   }
       
  3739 );
       
  3740 if (false) {}
       
  3741 
       
  3742 
       
  3743 
       
  3744 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3IEDWLST.js
       
  3745 "use client";
       
  3746 
       
  3747 // src/composite/utils.ts
       
  3748 
       
  3749 var NULL_ITEM = { id: null };
       
  3750 function flipItems(items, activeId, shouldInsertNullItem = false) {
       
  3751   const index = items.findIndex((item) => item.id === activeId);
       
  3752   return [
       
  3753     ...items.slice(index + 1),
       
  3754     ...shouldInsertNullItem ? [NULL_ITEM] : [],
       
  3755     ...items.slice(0, index)
       
  3756   ];
       
  3757 }
       
  3758 function findFirstEnabledItem(items, excludeId) {
       
  3759   return items.find((item) => {
       
  3760     if (excludeId) {
       
  3761       return !item.disabled && item.id !== excludeId;
       
  3762     }
       
  3763     return !item.disabled;
       
  3764   });
       
  3765 }
       
  3766 function getEnabledItem(store, id) {
       
  3767   if (!id)
       
  3768     return null;
       
  3769   return store.item(id) || null;
       
  3770 }
       
  3771 function groupItemsByRows(items) {
       
  3772   const rows = [];
       
  3773   for (const item of items) {
       
  3774     const row = rows.find((currentRow) => {
       
  3775       var _a;
       
  3776       return ((_a = currentRow[0]) == null ? void 0 : _a.rowId) === item.rowId;
       
  3777     });
       
  3778     if (row) {
       
  3779       row.push(item);
       
  3780     } else {
       
  3781       rows.push([item]);
       
  3782     }
       
  3783   }
       
  3784   return rows;
       
  3785 }
       
  3786 function selectTextField(element, collapseToEnd = false) {
       
  3787   if (isTextField(element)) {
       
  3788     element.setSelectionRange(
       
  3789       collapseToEnd ? element.value.length : 0,
       
  3790       element.value.length
       
  3791     );
       
  3792   } else if (element.isContentEditable) {
       
  3793     const selection = getDocument(element).getSelection();
       
  3794     selection == null ? void 0 : selection.selectAllChildren(element);
       
  3795     if (collapseToEnd) {
       
  3796       selection == null ? void 0 : selection.collapseToEnd();
       
  3797     }
       
  3798   }
       
  3799 }
       
  3800 var FOCUS_SILENTLY = Symbol("FOCUS_SILENTLY");
       
  3801 function focusSilently(element) {
       
  3802   element[FOCUS_SILENTLY] = true;
       
  3803   element.focus({ preventScroll: true });
       
  3804 }
       
  3805 function silentlyFocused(element) {
       
  3806   const isSilentlyFocused = element[FOCUS_SILENTLY];
       
  3807   delete element[FOCUS_SILENTLY];
       
  3808   return isSilentlyFocused;
       
  3809 }
       
  3810 function isItem(store, element, exclude) {
       
  3811   if (!element)
       
  3812     return false;
       
  3813   if (element === exclude)
       
  3814     return false;
       
  3815   const item = store.item(element.id);
       
  3816   if (!item)
       
  3817     return false;
       
  3818   if (exclude && item.element === exclude)
       
  3819     return false;
       
  3820   return true;
       
  3821 }
       
  3822 
       
  3823 
       
  3824 
       
  3825 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/IB7YUKH5.js
       
  3826 "use client";
       
  3827 
       
  3828 
       
  3829 
       
  3830 // src/composite/composite-context.tsx
       
  3831 
       
  3832 var IB7YUKH5_ctx = createStoreContext(
       
  3833   [CollectionContextProvider],
       
  3834   [CollectionScopedContextProvider]
       
  3835 );
       
  3836 var useCompositeContext = IB7YUKH5_ctx.useContext;
       
  3837 var useCompositeScopedContext = IB7YUKH5_ctx.useScopedContext;
       
  3838 var useCompositeProviderContext = IB7YUKH5_ctx.useProviderContext;
       
  3839 var CompositeContextProvider = IB7YUKH5_ctx.ContextProvider;
       
  3840 var CompositeScopedContextProvider = IB7YUKH5_ctx.ScopedContextProvider;
       
  3841 var CompositeItemContext = (0,external_React_.createContext)(
       
  3842   void 0
       
  3843 );
       
  3844 var CompositeRowContext = (0,external_React_.createContext)(
       
  3845   void 0
       
  3846 );
       
  3847 
       
  3848 
       
  3849 
       
  3850 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/EAHJFCU4.js
       
  3851 "use client";
       
  3852 
       
  3853 
       
  3854 
       
  3855 // src/utils/store.ts
       
  3856 function getInternal(store, key) {
       
  3857   const internals = store.__unstableInternals;
       
  3858   invariant(internals, "Invalid store");
       
  3859   return internals[key];
       
  3860 }
       
  3861 function createStore(initialState, ...stores) {
       
  3862   let state = initialState;
       
  3863   let prevStateBatch = state;
       
  3864   let lastUpdate = Symbol();
       
  3865   let destroy = noop;
       
  3866   const instances = /* @__PURE__ */ new Set();
       
  3867   const updatedKeys = /* @__PURE__ */ new Set();
       
  3868   const setups = /* @__PURE__ */ new Set();
       
  3869   const listeners = /* @__PURE__ */ new Set();
       
  3870   const batchListeners = /* @__PURE__ */ new Set();
       
  3871   const disposables = /* @__PURE__ */ new WeakMap();
       
  3872   const listenerKeys = /* @__PURE__ */ new WeakMap();
       
  3873   const storeSetup = (callback) => {
       
  3874     setups.add(callback);
       
  3875     return () => setups.delete(callback);
       
  3876   };
       
  3877   const storeInit = () => {
       
  3878     const initialized = instances.size;
       
  3879     const instance = Symbol();
       
  3880     instances.add(instance);
       
  3881     const maybeDestroy = () => {
       
  3882       instances.delete(instance);
       
  3883       if (instances.size)
       
  3884         return;
       
  3885       destroy();
       
  3886     };
       
  3887     if (initialized)
       
  3888       return maybeDestroy;
       
  3889     const desyncs = getKeys(state).map(
       
  3890       (key) => chain(
       
  3891         ...stores.map((store) => {
       
  3892           var _a;
       
  3893           const storeState = (_a = store == null ? void 0 : store.getState) == null ? void 0 : _a.call(store);
       
  3894           if (!storeState)
       
  3895             return;
       
  3896           if (!Y3OOHFCN_hasOwnProperty(storeState, key))
       
  3897             return;
       
  3898           return sync(store, [key], (state2) => {
       
  3899             setState(
       
  3900               key,
       
  3901               state2[key],
       
  3902               // @ts-expect-error - Not public API. This is just to prevent
       
  3903               // infinite loops.
       
  3904               true
       
  3905             );
       
  3906           });
       
  3907         })
       
  3908       )
       
  3909     );
       
  3910     const teardowns = [];
       
  3911     setups.forEach((setup2) => teardowns.push(setup2()));
       
  3912     const cleanups = stores.map(init);
       
  3913     destroy = chain(...desyncs, ...teardowns, ...cleanups);
       
  3914     return maybeDestroy;
       
  3915   };
       
  3916   const sub = (keys, listener, set = listeners) => {
       
  3917     set.add(listener);
       
  3918     listenerKeys.set(listener, keys);
       
  3919     return () => {
       
  3920       var _a;
       
  3921       (_a = disposables.get(listener)) == null ? void 0 : _a();
       
  3922       disposables.delete(listener);
       
  3923       listenerKeys.delete(listener);
       
  3924       set.delete(listener);
       
  3925     };
       
  3926   };
       
  3927   const storeSubscribe = (keys, listener) => sub(keys, listener);
       
  3928   const storeSync = (keys, listener) => {
       
  3929     disposables.set(listener, listener(state, state));
       
  3930     return sub(keys, listener);
       
  3931   };
       
  3932   const storeBatch = (keys, listener) => {
       
  3933     disposables.set(listener, listener(state, prevStateBatch));
       
  3934     return sub(keys, listener, batchListeners);
       
  3935   };
       
  3936   const storePick = (keys) => createStore(pick(state, keys), finalStore);
       
  3937   const storeOmit = (keys) => createStore(omit(state, keys), finalStore);
       
  3938   const getState = () => state;
       
  3939   const setState = (key, value, fromStores = false) => {
       
  3940     if (!Y3OOHFCN_hasOwnProperty(state, key))
       
  3941       return;
       
  3942     const nextValue = Y3OOHFCN_applyState(value, state[key]);
       
  3943     if (nextValue === state[key])
       
  3944       return;
       
  3945     if (!fromStores) {
       
  3946       stores.forEach((store) => {
       
  3947         var _a;
       
  3948         (_a = store == null ? void 0 : store.setState) == null ? void 0 : _a.call(store, key, nextValue);
       
  3949       });
       
  3950     }
       
  3951     const prevState = state;
       
  3952     state = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, state), { [key]: nextValue });
       
  3953     const thisUpdate = Symbol();
       
  3954     lastUpdate = thisUpdate;
       
  3955     updatedKeys.add(key);
       
  3956     const run = (listener, prev, uKeys) => {
       
  3957       var _a;
       
  3958       const keys = listenerKeys.get(listener);
       
  3959       const updated = (k) => uKeys ? uKeys.has(k) : k === key;
       
  3960       if (!keys || keys.some(updated)) {
       
  3961         (_a = disposables.get(listener)) == null ? void 0 : _a();
       
  3962         disposables.set(listener, listener(state, prev));
       
  3963       }
       
  3964     };
       
  3965     listeners.forEach((listener) => {
       
  3966       run(listener, prevState);
       
  3967     });
       
  3968     queueMicrotask(() => {
       
  3969       if (lastUpdate !== thisUpdate)
       
  3970         return;
       
  3971       const snapshot = state;
       
  3972       batchListeners.forEach((listener) => {
       
  3973         run(listener, prevStateBatch, updatedKeys);
       
  3974       });
       
  3975       prevStateBatch = snapshot;
       
  3976       updatedKeys.clear();
       
  3977     });
       
  3978   };
       
  3979   const finalStore = {
       
  3980     getState,
       
  3981     setState,
       
  3982     __unstableInternals: {
       
  3983       setup: storeSetup,
       
  3984       init: storeInit,
       
  3985       subscribe: storeSubscribe,
       
  3986       sync: storeSync,
       
  3987       batch: storeBatch,
       
  3988       pick: storePick,
       
  3989       omit: storeOmit
       
  3990     }
       
  3991   };
       
  3992   return finalStore;
       
  3993 }
       
  3994 function setup(store, ...args) {
       
  3995   if (!store)
       
  3996     return;
       
  3997   return getInternal(store, "setup")(...args);
       
  3998 }
       
  3999 function init(store, ...args) {
       
  4000   if (!store)
       
  4001     return;
       
  4002   return getInternal(store, "init")(...args);
       
  4003 }
       
  4004 function subscribe(store, ...args) {
       
  4005   if (!store)
       
  4006     return;
       
  4007   return getInternal(store, "subscribe")(...args);
       
  4008 }
       
  4009 function sync(store, ...args) {
       
  4010   if (!store)
       
  4011     return;
       
  4012   return getInternal(store, "sync")(...args);
       
  4013 }
       
  4014 function batch(store, ...args) {
       
  4015   if (!store)
       
  4016     return;
       
  4017   return getInternal(store, "batch")(...args);
       
  4018 }
       
  4019 function omit2(store, ...args) {
       
  4020   if (!store)
       
  4021     return;
       
  4022   return getInternal(store, "omit")(...args);
       
  4023 }
       
  4024 function pick2(store, ...args) {
       
  4025   if (!store)
       
  4026     return;
       
  4027   return getInternal(store, "pick")(...args);
       
  4028 }
       
  4029 function mergeStore(...stores) {
       
  4030   const initialState = stores.reduce((state, store2) => {
       
  4031     var _a;
       
  4032     const nextState = (_a = store2 == null ? void 0 : store2.getState) == null ? void 0 : _a.call(store2);
       
  4033     if (!nextState)
       
  4034       return state;
       
  4035     return _chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, state), nextState);
       
  4036   }, {});
       
  4037   const store = createStore(initialState, ...stores);
       
  4038   return store;
       
  4039 }
       
  4040 function throwOnConflictingProps(props, store) {
       
  4041   if (true)
       
  4042     return;
       
  4043   if (!store)
       
  4044     return;
       
  4045   const defaultKeys = Object.entries(props).filter(([key, value]) => key.startsWith("default") && value !== void 0).map(([key]) => {
       
  4046     var _a;
       
  4047     const stateKey = key.replace("default", "");
       
  4048     return `${((_a = stateKey[0]) == null ? void 0 : _a.toLowerCase()) || ""}${stateKey.slice(1)}`;
       
  4049   });
       
  4050   if (!defaultKeys.length)
       
  4051     return;
       
  4052   const storeState = store.getState();
       
  4053   const conflictingProps = defaultKeys.filter(
       
  4054     (key) => Y3OOHFCN_hasOwnProperty(storeState, key)
       
  4055   );
       
  4056   if (!conflictingProps.length)
       
  4057     return;
       
  4058   throw new Error(
       
  4059     `Passing a store prop in conjunction with a default state is not supported.
       
  4060 
       
  4061 const store = useSelectStore();
       
  4062 <SelectProvider store={store} defaultValue="Apple" />
       
  4063                 ^             ^
       
  4064 
       
  4065 Instead, pass the default state to the topmost store:
       
  4066 
       
  4067 const store = useSelectStore({ defaultValue: "Apple" });
       
  4068 <SelectProvider store={store} />
       
  4069 
       
  4070 See https://github.com/ariakit/ariakit/pull/2745 for more details.
       
  4071 
       
  4072 If there's a particular need for this, please submit a feature request at https://github.com/ariakit/ariakit
       
  4073 `
       
  4074   );
       
  4075 }
       
  4076 
       
  4077 
       
  4078 
       
  4079 // EXTERNAL MODULE: ./node_modules/use-sync-external-store/shim/index.js
       
  4080 var shim = __webpack_require__(422);
       
  4081 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/EKQEJRUF.js
       
  4082 "use client";
       
  4083 
       
  4084 
       
  4085 
       
  4086 // src/utils/store.tsx
       
  4087 
       
  4088 
       
  4089 
       
  4090 
       
  4091 var { useSyncExternalStore } = shim;
       
  4092 var noopSubscribe = () => () => {
       
  4093 };
       
  4094 function useStoreState(store, keyOrSelector = identity) {
       
  4095   const storeSubscribe = external_React_.useCallback(
       
  4096     (callback) => {
       
  4097       if (!store)
       
  4098         return noopSubscribe();
       
  4099       return subscribe(store, null, callback);
       
  4100     },
       
  4101     [store]
       
  4102   );
       
  4103   const getSnapshot = () => {
       
  4104     const key = typeof keyOrSelector === "string" ? keyOrSelector : null;
       
  4105     const selector = typeof keyOrSelector === "function" ? keyOrSelector : null;
       
  4106     const state = store == null ? void 0 : store.getState();
       
  4107     if (selector)
       
  4108       return selector(state);
       
  4109     if (!state)
       
  4110       return;
       
  4111     if (!key)
       
  4112       return;
       
  4113     if (!Y3OOHFCN_hasOwnProperty(state, key))
       
  4114       return;
       
  4115     return state[key];
       
  4116   };
       
  4117   return useSyncExternalStore(storeSubscribe, getSnapshot, getSnapshot);
       
  4118 }
       
  4119 function useStoreProps(store, props, key, setKey) {
       
  4120   const value = Y3OOHFCN_hasOwnProperty(props, key) ? props[key] : void 0;
       
  4121   const setValue = setKey ? props[setKey] : void 0;
       
  4122   const propsRef = useLiveRef({ value, setValue });
       
  4123   useSafeLayoutEffect(() => {
       
  4124     return sync(store, [key], (state, prev) => {
       
  4125       const { value: value2, setValue: setValue2 } = propsRef.current;
       
  4126       if (!setValue2)
       
  4127         return;
       
  4128       if (state[key] === prev[key])
       
  4129         return;
       
  4130       if (state[key] === value2)
       
  4131         return;
       
  4132       setValue2(state[key]);
       
  4133     });
       
  4134   }, [store, key]);
       
  4135   useSafeLayoutEffect(() => {
       
  4136     if (value === void 0)
       
  4137       return;
       
  4138     store.setState(key, value);
       
  4139     return batch(store, [key], () => {
       
  4140       if (value === void 0)
       
  4141         return;
       
  4142       store.setState(key, value);
       
  4143     });
       
  4144   });
       
  4145 }
       
  4146 function EKQEJRUF_useStore(createStore, props) {
       
  4147   const [store, setStore] = external_React_.useState(() => createStore(props));
       
  4148   useSafeLayoutEffect(() => init(store), [store]);
       
  4149   const useState2 = external_React_.useCallback(
       
  4150     (keyOrSelector) => useStoreState(store, keyOrSelector),
       
  4151     [store]
       
  4152   );
       
  4153   const memoizedStore = external_React_.useMemo(
       
  4154     () => _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, store), { useState: useState2 }),
       
  4155     [store, useState2]
       
  4156   );
       
  4157   const updateStore = useEvent(() => {
       
  4158     setStore((store2) => createStore(_4R3V3JGP_spreadValues(_4R3V3JGP_spreadValues({}, props), store2.getState())));
       
  4159   });
       
  4160   return [memoizedStore, updateStore];
       
  4161 }
       
  4162 
       
  4163 
       
  4164 
       
  4165 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/QZLXIDNP.js
       
  4166 "use client";
       
  4167 
       
  4168 
       
  4169 
  5113 
  4170 
  5114 
  4171 
  5115 
  4172 
  5116 
  4173 
  5117 
  4177 
  5121 
  4178 
  5122 
  4179 
  5123 
  4180 
  5124 
  4181 
  5125 
       
  5126 
       
  5127 var P2CTZE2T_TagName = "button";
  4182 function isEditableElement(element) {
  5128 function isEditableElement(element) {
  4183   if (element.isContentEditable)
  5129   if (isTextbox(element)) return true;
  4184     return true;
       
  4185   if (DLOEKDPY_isTextField(element))
       
  4186     return true;
       
  4187   return element.tagName === "INPUT" && !isButton(element);
  5130   return element.tagName === "INPUT" && !isButton(element);
  4188 }
  5131 }
  4189 function getNextPageOffset(scrollingElement, pageUp = false) {
  5132 function getNextPageOffset(scrollingElement, pageUp = false) {
  4190   const height = scrollingElement.clientHeight;
  5133   const height = scrollingElement.clientHeight;
  4191   const { top } = scrollingElement.getBoundingClientRect();
  5134   const { top } = scrollingElement.getBoundingClientRect();
  4203   }
  5146   }
  4204   return top;
  5147   return top;
  4205 }
  5148 }
  4206 function findNextPageItemId(element, store, next, pageUp = false) {
  5149 function findNextPageItemId(element, store, next, pageUp = false) {
  4207   var _a;
  5150   var _a;
  4208   if (!store)
  5151   if (!store) return;
  4209     return;
  5152   if (!next) return;
  4210   if (!next)
       
  4211     return;
       
  4212   const { renderedItems } = store.getState();
  5153   const { renderedItems } = store.getState();
  4213   const scrollingElement = getScrollingElement(element);
  5154   const scrollingElement = getScrollingElement(element);
  4214   if (!scrollingElement)
  5155   if (!scrollingElement) return;
  4215     return;
       
  4216   const nextPageOffset = getNextPageOffset(scrollingElement, pageUp);
  5156   const nextPageOffset = getNextPageOffset(scrollingElement, pageUp);
  4217   let id;
  5157   let id;
  4218   let prevDifference;
  5158   let prevDifference;
  4219   for (let i = 0; i < renderedItems.length; i += 1) {
  5159   for (let i = 0; i < renderedItems.length; i += 1) {
  4220     const previousId = id;
  5160     const previousId = id;
  4221     id = next(i);
  5161     id = next(i);
  4222     if (!id)
  5162     if (!id) break;
  4223       break;
  5163     if (id === previousId) continue;
  4224     if (id === previousId)
       
  4225       continue;
       
  4226     const itemElement = (_a = getEnabledItem(store, id)) == null ? void 0 : _a.element;
  5164     const itemElement = (_a = getEnabledItem(store, id)) == null ? void 0 : _a.element;
  4227     if (!itemElement)
  5165     if (!itemElement) continue;
  4228       continue;
       
  4229     const itemOffset = getItemOffset(itemElement, pageUp);
  5166     const itemOffset = getItemOffset(itemElement, pageUp);
  4230     const difference = itemOffset - nextPageOffset;
  5167     const difference = itemOffset - nextPageOffset;
  4231     const absDifference = Math.abs(difference);
  5168     const absDifference = Math.abs(difference);
  4232     if (pageUp && difference <= 0 || !pageUp && difference >= 0) {
  5169     if (pageUp && difference <= 0 || !pageUp && difference >= 0) {
  4233       if (prevDifference !== void 0 && prevDifference < absDifference) {
  5170       if (prevDifference !== void 0 && prevDifference < absDifference) {
  4238     prevDifference = absDifference;
  5175     prevDifference = absDifference;
  4239   }
  5176   }
  4240   return id;
  5177   return id;
  4241 }
  5178 }
  4242 function targetIsAnotherItem(event, store) {
  5179 function targetIsAnotherItem(event, store) {
  4243   if (isSelfTarget(event))
  5180   if (isSelfTarget(event)) return false;
  4244     return false;
       
  4245   return isItem(store, event.target);
  5181   return isItem(store, event.target);
  4246 }
  5182 }
  4247 function useRole(ref, props) {
       
  4248   const roleProp = props.role;
       
  4249   const [role, setRole] = (0,external_React_.useState)(roleProp);
       
  4250   useSafeLayoutEffect(() => {
       
  4251     const element = ref.current;
       
  4252     if (!element)
       
  4253       return;
       
  4254     setRole(element.getAttribute("role") || roleProp);
       
  4255   }, [roleProp]);
       
  4256   return role;
       
  4257 }
       
  4258 function requiresAriaSelected(role) {
       
  4259   return role === "option" || role === "treeitem";
       
  4260 }
       
  4261 function supportsAriaSelected(role) {
       
  4262   if (role === "option")
       
  4263     return true;
       
  4264   if (role === "tab")
       
  4265     return true;
       
  4266   if (role === "treeitem")
       
  4267     return true;
       
  4268   if (role === "gridcell")
       
  4269     return true;
       
  4270   if (role === "row")
       
  4271     return true;
       
  4272   if (role === "columnheader")
       
  4273     return true;
       
  4274   if (role === "rowheader")
       
  4275     return true;
       
  4276   return false;
       
  4277 }
       
  4278 var useCompositeItem = createHook(
  5183 var useCompositeItem = createHook(
  4279   (_a) => {
  5184   function useCompositeItem2(_a) {
  4280     var _b = _a, {
  5185     var _b = _a, {
  4281       store,
  5186       store,
  4282       rowId: rowIdProp,
  5187       rowId: rowIdProp,
  4283       preventScrollOnKeyDown = false,
  5188       preventScrollOnKeyDown = false,
  4284       moveOnKeyPress = true,
  5189       moveOnKeyPress = true,
  4299     const context = useCompositeContext();
  5204     const context = useCompositeContext();
  4300     store = store || context;
  5205     store = store || context;
  4301     const id = useId(props.id);
  5206     const id = useId(props.id);
  4302     const ref = (0,external_React_.useRef)(null);
  5207     const ref = (0,external_React_.useRef)(null);
  4303     const row = (0,external_React_.useContext)(CompositeRowContext);
  5208     const row = (0,external_React_.useContext)(CompositeRowContext);
  4304     const rowId = useStoreState(store, (state) => {
       
  4305       if (rowIdProp)
       
  4306         return rowIdProp;
       
  4307       if (!state)
       
  4308         return;
       
  4309       if (!(row == null ? void 0 : row.baseElement))
       
  4310         return;
       
  4311       if (row.baseElement !== state.baseElement)
       
  4312         return;
       
  4313       return row.id;
       
  4314     });
       
  4315     const disabled = disabledFromProps(props);
  5209     const disabled = disabledFromProps(props);
  4316     const trulyDisabled = disabled && !props.accessibleWhenDisabled;
  5210     const trulyDisabled = disabled && !props.accessibleWhenDisabled;
       
  5211     const {
       
  5212       rowId,
       
  5213       baseElement,
       
  5214       isActiveItem,
       
  5215       ariaSetSize,
       
  5216       ariaPosInSet,
       
  5217       isTabbable
       
  5218     } = useStoreStateObject(store, {
       
  5219       rowId(state) {
       
  5220         if (rowIdProp) return rowIdProp;
       
  5221         if (!state) return;
       
  5222         if (!(row == null ? void 0 : row.baseElement)) return;
       
  5223         if (row.baseElement !== state.baseElement) return;
       
  5224         return row.id;
       
  5225       },
       
  5226       baseElement(state) {
       
  5227         return (state == null ? void 0 : state.baseElement) || void 0;
       
  5228       },
       
  5229       isActiveItem(state) {
       
  5230         return !!state && state.activeId === id;
       
  5231       },
       
  5232       ariaSetSize(state) {
       
  5233         if (ariaSetSizeProp != null) return ariaSetSizeProp;
       
  5234         if (!state) return;
       
  5235         if (!(row == null ? void 0 : row.ariaSetSize)) return;
       
  5236         if (row.baseElement !== state.baseElement) return;
       
  5237         return row.ariaSetSize;
       
  5238       },
       
  5239       ariaPosInSet(state) {
       
  5240         if (ariaPosInSetProp != null) return ariaPosInSetProp;
       
  5241         if (!state) return;
       
  5242         if (!(row == null ? void 0 : row.ariaPosInSet)) return;
       
  5243         if (row.baseElement !== state.baseElement) return;
       
  5244         const itemsInRow = state.renderedItems.filter(
       
  5245           (item) => item.rowId === rowId
       
  5246         );
       
  5247         return row.ariaPosInSet + itemsInRow.findIndex((item) => item.id === id);
       
  5248       },
       
  5249       isTabbable(state) {
       
  5250         if (!(state == null ? void 0 : state.renderedItems.length)) return true;
       
  5251         if (state.virtualFocus) return false;
       
  5252         if (tabbable) return true;
       
  5253         if (state.activeId === null) return false;
       
  5254         const item = store == null ? void 0 : store.item(state.activeId);
       
  5255         if (item == null ? void 0 : item.disabled) return true;
       
  5256         if (!(item == null ? void 0 : item.element)) return true;
       
  5257         return state.activeId === id;
       
  5258       }
       
  5259     });
  4317     const getItem = (0,external_React_.useCallback)(
  5260     const getItem = (0,external_React_.useCallback)(
  4318       (item) => {
  5261       (item) => {
  4319         const nextItem = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, item), {
  5262         var _a2;
       
  5263         const nextItem = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, item), {
  4320           id: id || item.id,
  5264           id: id || item.id,
  4321           rowId,
  5265           rowId,
  4322           disabled: !!trulyDisabled
  5266           disabled: !!trulyDisabled,
       
  5267           children: (_a2 = item.element) == null ? void 0 : _a2.textContent
  4323         });
  5268         });
  4324         if (getItemProp) {
  5269         if (getItemProp) {
  4325           return getItemProp(nextItem);
  5270           return getItemProp(nextItem);
  4326         }
  5271         }
  4327         return nextItem;
  5272         return nextItem;
  4330     );
  5275     );
  4331     const onFocusProp = props.onFocus;
  5276     const onFocusProp = props.onFocus;
  4332     const hasFocusedComposite = (0,external_React_.useRef)(false);
  5277     const hasFocusedComposite = (0,external_React_.useRef)(false);
  4333     const onFocus = useEvent((event) => {
  5278     const onFocus = useEvent((event) => {
  4334       onFocusProp == null ? void 0 : onFocusProp(event);
  5279       onFocusProp == null ? void 0 : onFocusProp(event);
  4335       if (event.defaultPrevented)
  5280       if (event.defaultPrevented) return;
  4336         return;
  5281       if (isPortalEvent(event)) return;
  4337       if (isPortalEvent(event))
  5282       if (!id) return;
  4338         return;
  5283       if (!store) return;
  4339       if (!id)
  5284       if (targetIsAnotherItem(event, store)) return;
  4340         return;
  5285       const { virtualFocus, baseElement: baseElement2 } = store.getState();
  4341       if (!store)
  5286       store.setActiveId(id);
  4342         return;
  5287       if (isTextbox(event.currentTarget)) {
  4343       const { activeId, virtualFocus: virtualFocus2, baseElement: baseElement2 } = store.getState();
  5288         selectTextField(event.currentTarget);
  4344       if (targetIsAnotherItem(event, store))
       
  4345         return;
       
  4346       if (activeId !== id) {
       
  4347         store.setActiveId(id);
       
  4348       }
  5289       }
  4349       if (!virtualFocus2)
  5290       if (!virtualFocus) return;
  4350         return;
  5291       if (!isSelfTarget(event)) return;
  4351       if (!isSelfTarget(event))
  5292       if (isEditableElement(event.currentTarget)) return;
  4352         return;
  5293       if (!(baseElement2 == null ? void 0 : baseElement2.isConnected)) return;
  4353       if (isEditableElement(event.currentTarget))
  5294       if (isSafari() && event.currentTarget.hasAttribute("data-autofocus")) {
  4354         return;
  5295         event.currentTarget.scrollIntoView({
  4355       if (!(baseElement2 == null ? void 0 : baseElement2.isConnected))
  5296           block: "nearest",
  4356         return;
  5297           inline: "nearest"
       
  5298         });
       
  5299       }
  4357       hasFocusedComposite.current = true;
  5300       hasFocusedComposite.current = true;
  4358       const fromComposite = event.relatedTarget === baseElement2 || isItem(store, event.relatedTarget);
  5301       const fromComposite = event.relatedTarget === baseElement2 || isItem(store, event.relatedTarget);
  4359       if (fromComposite) {
  5302       if (fromComposite) {
  4360         focusSilently(baseElement2);
  5303         focusSilently(baseElement2);
  4361       } else {
  5304       } else {
  4363       }
  5306       }
  4364     });
  5307     });
  4365     const onBlurCaptureProp = props.onBlurCapture;
  5308     const onBlurCaptureProp = props.onBlurCapture;
  4366     const onBlurCapture = useEvent((event) => {
  5309     const onBlurCapture = useEvent((event) => {
  4367       onBlurCaptureProp == null ? void 0 : onBlurCaptureProp(event);
  5310       onBlurCaptureProp == null ? void 0 : onBlurCaptureProp(event);
  4368       if (event.defaultPrevented)
  5311       if (event.defaultPrevented) return;
  4369         return;
       
  4370       const state = store == null ? void 0 : store.getState();
  5312       const state = store == null ? void 0 : store.getState();
  4371       if ((state == null ? void 0 : state.virtualFocus) && hasFocusedComposite.current) {
  5313       if ((state == null ? void 0 : state.virtualFocus) && hasFocusedComposite.current) {
  4372         hasFocusedComposite.current = false;
  5314         hasFocusedComposite.current = false;
  4373         event.preventDefault();
  5315         event.preventDefault();
  4374         event.stopPropagation();
  5316         event.stopPropagation();
  4377     const onKeyDownProp = props.onKeyDown;
  5319     const onKeyDownProp = props.onKeyDown;
  4378     const preventScrollOnKeyDownProp = useBooleanEvent(preventScrollOnKeyDown);
  5320     const preventScrollOnKeyDownProp = useBooleanEvent(preventScrollOnKeyDown);
  4379     const moveOnKeyPressProp = useBooleanEvent(moveOnKeyPress);
  5321     const moveOnKeyPressProp = useBooleanEvent(moveOnKeyPress);
  4380     const onKeyDown = useEvent((event) => {
  5322     const onKeyDown = useEvent((event) => {
  4381       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
  5323       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
  4382       if (event.defaultPrevented)
  5324       if (event.defaultPrevented) return;
  4383         return;
  5325       if (!isSelfTarget(event)) return;
  4384       if (!isSelfTarget(event))
  5326       if (!store) return;
  4385         return;
       
  4386       if (!store)
       
  4387         return;
       
  4388       const { currentTarget } = event;
  5327       const { currentTarget } = event;
  4389       const state = store.getState();
  5328       const state = store.getState();
  4390       const item = store.item(id);
  5329       const item = store.item(id);
  4391       const isGrid = !!(item == null ? void 0 : item.rowId);
  5330       const isGrid = !!(item == null ? void 0 : item.rowId);
  4392       const isVertical = state.orientation !== "horizontal";
  5331       const isVertical = state.orientation !== "horizontal";
  4393       const isHorizontal = state.orientation !== "vertical";
  5332       const isHorizontal = state.orientation !== "vertical";
  4394       const canHomeEnd = () => {
  5333       const canHomeEnd = () => {
  4395         if (isGrid)
  5334         if (isGrid) return true;
  4396           return true;
  5335         if (isHorizontal) return true;
  4397         if (isHorizontal)
  5336         if (!state.baseElement) return true;
  4398           return true;
  5337         if (!isTextField(state.baseElement)) return true;
  4399         if (!state.baseElement)
       
  4400           return true;
       
  4401         if (!DLOEKDPY_isTextField(state.baseElement))
       
  4402           return true;
       
  4403         return false;
  5338         return false;
  4404       };
  5339       };
  4405       const keyMap = {
  5340       const keyMap = {
  4406         ArrowUp: (isGrid || isVertical) && store.up,
  5341         ArrowUp: (isGrid || isVertical) && store.up,
  4407         ArrowRight: (isGrid || isHorizontal) && store.next,
  5342         ArrowRight: (isGrid || isHorizontal) && store.next,
  4408         ArrowDown: (isGrid || isVertical) && store.down,
  5343         ArrowDown: (isGrid || isVertical) && store.down,
  4409         ArrowLeft: (isGrid || isHorizontal) && store.previous,
  5344         ArrowLeft: (isGrid || isHorizontal) && store.previous,
  4410         Home: () => {
  5345         Home: () => {
  4411           if (!canHomeEnd())
  5346           if (!canHomeEnd()) return;
  4412             return;
       
  4413           if (!isGrid || event.ctrlKey) {
  5347           if (!isGrid || event.ctrlKey) {
  4414             return store == null ? void 0 : store.first();
  5348             return store == null ? void 0 : store.first();
  4415           }
  5349           }
  4416           return store == null ? void 0 : store.previous(-1);
  5350           return store == null ? void 0 : store.previous(-1);
  4417         },
  5351         },
  4418         End: () => {
  5352         End: () => {
  4419           if (!canHomeEnd())
  5353           if (!canHomeEnd()) return;
  4420             return;
       
  4421           if (!isGrid || event.ctrlKey) {
  5354           if (!isGrid || event.ctrlKey) {
  4422             return store == null ? void 0 : store.last();
  5355             return store == null ? void 0 : store.last();
  4423           }
  5356           }
  4424           return store == null ? void 0 : store.next(-1);
  5357           return store == null ? void 0 : store.next(-1);
  4425         },
  5358         },
  4430           return findNextPageItemId(currentTarget, store, store == null ? void 0 : store.down);
  5363           return findNextPageItemId(currentTarget, store, store == null ? void 0 : store.down);
  4431         }
  5364         }
  4432       };
  5365       };
  4433       const action = keyMap[event.key];
  5366       const action = keyMap[event.key];
  4434       if (action) {
  5367       if (action) {
       
  5368         if (isTextbox(currentTarget)) {
       
  5369           const selection = getTextboxSelection(currentTarget);
       
  5370           const isLeft = isHorizontal && event.key === "ArrowLeft";
       
  5371           const isRight = isHorizontal && event.key === "ArrowRight";
       
  5372           const isUp = isVertical && event.key === "ArrowUp";
       
  5373           const isDown = isVertical && event.key === "ArrowDown";
       
  5374           if (isRight || isDown) {
       
  5375             const { length: valueLength } = getTextboxValue(currentTarget);
       
  5376             if (selection.end !== valueLength) return;
       
  5377           } else if ((isLeft || isUp) && selection.start !== 0) return;
       
  5378         }
  4435         const nextId = action();
  5379         const nextId = action();
  4436         if (preventScrollOnKeyDownProp(event) || nextId !== void 0) {
  5380         if (preventScrollOnKeyDownProp(event) || nextId !== void 0) {
  4437           if (!moveOnKeyPressProp(event))
  5381           if (!moveOnKeyPressProp(event)) return;
  4438             return;
       
  4439           event.preventDefault();
  5382           event.preventDefault();
  4440           store.move(nextId);
  5383           store.move(nextId);
  4441         }
  5384         }
  4442       }
  5385       }
  4443     });
  5386     });
  4444     const baseElement = useStoreState(
       
  4445       store,
       
  4446       (state) => (state == null ? void 0 : state.baseElement) || void 0
       
  4447     );
       
  4448     const providerValue = (0,external_React_.useMemo)(
  5387     const providerValue = (0,external_React_.useMemo)(
  4449       () => ({ id, baseElement }),
  5388       () => ({ id, baseElement }),
  4450       [id, baseElement]
  5389       [id, baseElement]
  4451     );
  5390     );
  4452     props = useWrapElement(
  5391     props = useWrapElement(
  4453       props,
  5392       props,
  4454       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItemContext.Provider, { value: providerValue, children: element }),
  5393       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItemContext.Provider, { value: providerValue, children: element }),
  4455       [providerValue]
  5394       [providerValue]
  4456     );
  5395     );
  4457     const isActiveItem = useStoreState(
  5396     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  4458       store,
       
  4459       (state) => !!state && state.activeId === id
       
  4460     );
       
  4461     const virtualFocus = useStoreState(store, "virtualFocus");
       
  4462     const role = useRole(ref, props);
       
  4463     let ariaSelected;
       
  4464     if (isActiveItem) {
       
  4465       if (requiresAriaSelected(role)) {
       
  4466         ariaSelected = true;
       
  4467       } else if (virtualFocus && supportsAriaSelected(role)) {
       
  4468         ariaSelected = true;
       
  4469       }
       
  4470     }
       
  4471     const ariaSetSize = useStoreState(store, (state) => {
       
  4472       if (ariaSetSizeProp != null)
       
  4473         return ariaSetSizeProp;
       
  4474       if (!state)
       
  4475         return;
       
  4476       if (!(row == null ? void 0 : row.ariaSetSize))
       
  4477         return;
       
  4478       if (row.baseElement !== state.baseElement)
       
  4479         return;
       
  4480       return row.ariaSetSize;
       
  4481     });
       
  4482     const ariaPosInSet = useStoreState(store, (state) => {
       
  4483       if (ariaPosInSetProp != null)
       
  4484         return ariaPosInSetProp;
       
  4485       if (!state)
       
  4486         return;
       
  4487       if (!(row == null ? void 0 : row.ariaPosInSet))
       
  4488         return;
       
  4489       if (row.baseElement !== state.baseElement)
       
  4490         return;
       
  4491       const itemsInRow = state.renderedItems.filter(
       
  4492         (item) => item.rowId === rowId
       
  4493       );
       
  4494       return row.ariaPosInSet + itemsInRow.findIndex((item) => item.id === id);
       
  4495     });
       
  4496     const isTabbable = useStoreState(store, (state) => {
       
  4497       if (!(state == null ? void 0 : state.renderedItems.length))
       
  4498         return true;
       
  4499       if (state.virtualFocus)
       
  4500         return false;
       
  4501       if (tabbable)
       
  4502         return true;
       
  4503       return state.activeId === id;
       
  4504     });
       
  4505     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
  4506       id,
  5397       id,
  4507       "aria-selected": ariaSelected,
  5398       "data-active-item": isActiveItem || void 0
  4508       "data-active-item": isActiveItem ? "" : void 0
       
  4509     }, props), {
  5399     }, props), {
  4510       ref: useMergeRefs(ref, props.ref),
  5400       ref: useMergeRefs(ref, props.ref),
  4511       tabIndex: isTabbable ? props.tabIndex : -1,
  5401       tabIndex: isTabbable ? props.tabIndex : -1,
  4512       onFocus,
  5402       onFocus,
  4513       onBlurCapture,
  5403       onBlurCapture,
  4514       onKeyDown
  5404       onKeyDown
  4515     });
  5405     });
  4516     props = useCommand(props);
  5406     props = useCommand(props);
  4517     props = useCollectionItem(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
  5407     props = useCollectionItem(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  4518       store
  5408       store
  4519     }, props), {
  5409     }, props), {
  4520       getItem,
  5410       getItem,
  4521       shouldRegisterItem: !!id ? props.shouldRegisterItem : false
  5411       shouldRegisterItem: id ? props.shouldRegisterItem : false
  4522     }));
  5412     }));
  4523     return _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
  5413     return removeUndefinedValues(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  4524       "aria-setsize": ariaSetSize,
  5414       "aria-setsize": ariaSetSize,
  4525       "aria-posinset": ariaPosInSet
  5415       "aria-posinset": ariaPosInSet
  4526     });
  5416     }));
  4527   }
  5417   }
  4528 );
  5418 );
  4529 var CompositeItem = createMemoComponent(
  5419 var P2CTZE2T_CompositeItem = memo2(
  4530   (props) => {
  5420   forwardRef2(function CompositeItem2(props) {
  4531     const htmlProps = useCompositeItem(props);
  5421     const htmlProps = useCompositeItem(props);
  4532     return _3ORBWXWF_createElement("button", htmlProps);
  5422     return LMDWO4NN_createElement(P2CTZE2T_TagName, htmlProps);
  4533   }
  5423   })
  4534 );
  5424 );
  4535 if (false) {}
  5425 
  4536 
  5426 
  4537 
  5427 
  4538 
  5428 ;// ./node_modules/@wordpress/components/build-module/composite/item.js
  4539 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/Z5IGYIPT.js
  5429 /**
       
  5430  * External dependencies
       
  5431  */
       
  5432 
       
  5433 
       
  5434 /**
       
  5435  * WordPress dependencies
       
  5436  */
       
  5437 
       
  5438 
       
  5439 /**
       
  5440  * Internal dependencies
       
  5441  */
       
  5442 
       
  5443 
       
  5444 
       
  5445 const CompositeItem = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeItem(props, ref) {
       
  5446   var _props$store;
       
  5447   const context = context_useCompositeContext();
       
  5448 
       
  5449   // @ts-expect-error The store prop is undocumented and only used by the
       
  5450   // legacy compat layer. The `store` prop is documented, but its type is
       
  5451   // obfuscated to discourage its use outside of the component's internals.
       
  5452   const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
       
  5453   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(P2CTZE2T_CompositeItem, {
       
  5454     store: store,
       
  5455     ...props,
       
  5456     ref: ref
       
  5457   });
       
  5458 });
       
  5459 
       
  5460 ;// ./node_modules/@ariakit/react-core/esm/__chunks/J2LQO3EC.js
       
  5461 "use client";
       
  5462 
       
  5463 
       
  5464 
       
  5465 
       
  5466 
       
  5467 // src/composite/composite-row.tsx
       
  5468 
       
  5469 
       
  5470 
       
  5471 var J2LQO3EC_TagName = "div";
       
  5472 var useCompositeRow = createHook(
       
  5473   function useCompositeRow2(_a) {
       
  5474     var _b = _a, {
       
  5475       store,
       
  5476       "aria-setsize": ariaSetSize,
       
  5477       "aria-posinset": ariaPosInSet
       
  5478     } = _b, props = __objRest(_b, [
       
  5479       "store",
       
  5480       "aria-setsize",
       
  5481       "aria-posinset"
       
  5482     ]);
       
  5483     const context = useCompositeContext();
       
  5484     store = store || context;
       
  5485     invariant(
       
  5486       store,
       
  5487        false && 0
       
  5488     );
       
  5489     const id = useId(props.id);
       
  5490     const baseElement = store.useState(
       
  5491       (state) => state.baseElement || void 0
       
  5492     );
       
  5493     const providerValue = (0,external_React_.useMemo)(
       
  5494       () => ({ id, baseElement, ariaSetSize, ariaPosInSet }),
       
  5495       [id, baseElement, ariaSetSize, ariaPosInSet]
       
  5496     );
       
  5497     props = useWrapElement(
       
  5498       props,
       
  5499       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeRowContext.Provider, { value: providerValue, children: element }),
       
  5500       [providerValue]
       
  5501     );
       
  5502     props = _3YLGPPWQ_spreadValues({ id }, props);
       
  5503     return removeUndefinedValues(props);
       
  5504   }
       
  5505 );
       
  5506 var J2LQO3EC_CompositeRow = forwardRef2(function CompositeRow2(props) {
       
  5507   const htmlProps = useCompositeRow(props);
       
  5508   return LMDWO4NN_createElement(J2LQO3EC_TagName, htmlProps);
       
  5509 });
       
  5510 
       
  5511 
       
  5512 
       
  5513 ;// ./node_modules/@wordpress/components/build-module/composite/row.js
       
  5514 /**
       
  5515  * External dependencies
       
  5516  */
       
  5517 
       
  5518 
       
  5519 /**
       
  5520  * WordPress dependencies
       
  5521  */
       
  5522 
       
  5523 
       
  5524 /**
       
  5525  * Internal dependencies
       
  5526  */
       
  5527 
       
  5528 
       
  5529 
       
  5530 const CompositeRow = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeRow(props, ref) {
       
  5531   var _props$store;
       
  5532   const context = context_useCompositeContext();
       
  5533 
       
  5534   // @ts-expect-error The store prop is undocumented and only used by the
       
  5535   // legacy compat layer. The `store` prop is documented, but its type is
       
  5536   // obfuscated to discourage its use outside of the component's internals.
       
  5537   const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
       
  5538   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(J2LQO3EC_CompositeRow, {
       
  5539     store: store,
       
  5540     ...props,
       
  5541     ref: ref
       
  5542   });
       
  5543 });
       
  5544 
       
  5545 ;// ./node_modules/@ariakit/react-core/esm/__chunks/T7VMP3TM.js
       
  5546 "use client";
       
  5547 
       
  5548 
       
  5549 
       
  5550 
       
  5551 
       
  5552 
       
  5553 // src/composite/composite-typeahead.tsx
       
  5554 
       
  5555 
       
  5556 
       
  5557 
       
  5558 var T7VMP3TM_TagName = "div";
       
  5559 var chars = "";
       
  5560 function clearChars() {
       
  5561   chars = "";
       
  5562 }
       
  5563 function isValidTypeaheadEvent(event) {
       
  5564   const target = event.target;
       
  5565   if (target && isTextField(target)) return false;
       
  5566   if (event.key === " " && chars.length) return true;
       
  5567   return event.key.length === 1 && !event.ctrlKey && !event.altKey && !event.metaKey && /^[\p{Letter}\p{Number}]$/u.test(event.key);
       
  5568 }
       
  5569 function isSelfTargetOrItem(event, items) {
       
  5570   if (isSelfTarget(event)) return true;
       
  5571   const target = event.target;
       
  5572   if (!target) return false;
       
  5573   const isItem = items.some((item) => item.element === target);
       
  5574   return isItem;
       
  5575 }
       
  5576 function T7VMP3TM_getEnabledItems(items) {
       
  5577   return items.filter((item) => !item.disabled);
       
  5578 }
       
  5579 function itemTextStartsWith(item, text) {
       
  5580   var _a;
       
  5581   const itemText = ((_a = item.element) == null ? void 0 : _a.textContent) || item.children || // The composite item object itself doesn't include a value property, but
       
  5582   // other components like Select do. Since CompositeTypeahead is a generic
       
  5583   // component that can be used with those as well, we also consider the value
       
  5584   // property as a fallback for the typeahead text content.
       
  5585   "value" in item && item.value;
       
  5586   if (!itemText) return false;
       
  5587   return normalizeString(itemText).trim().toLowerCase().startsWith(text.toLowerCase());
       
  5588 }
       
  5589 function getSameInitialItems(items, char, activeId) {
       
  5590   if (!activeId) return items;
       
  5591   const activeItem = items.find((item) => item.id === activeId);
       
  5592   if (!activeItem) return items;
       
  5593   if (!itemTextStartsWith(activeItem, char)) return items;
       
  5594   if (chars !== char && itemTextStartsWith(activeItem, chars)) return items;
       
  5595   chars = char;
       
  5596   return _5VQZOHHZ_flipItems(
       
  5597     items.filter((item) => itemTextStartsWith(item, chars)),
       
  5598     activeId
       
  5599   ).filter((item) => item.id !== activeId);
       
  5600 }
       
  5601 var useCompositeTypeahead = createHook(function useCompositeTypeahead2(_a) {
       
  5602   var _b = _a, { store, typeahead = true } = _b, props = __objRest(_b, ["store", "typeahead"]);
       
  5603   const context = useCompositeContext();
       
  5604   store = store || context;
       
  5605   invariant(
       
  5606     store,
       
  5607      false && 0
       
  5608   );
       
  5609   const onKeyDownCaptureProp = props.onKeyDownCapture;
       
  5610   const cleanupTimeoutRef = (0,external_React_.useRef)(0);
       
  5611   const onKeyDownCapture = useEvent((event) => {
       
  5612     onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
       
  5613     if (event.defaultPrevented) return;
       
  5614     if (!typeahead) return;
       
  5615     if (!store) return;
       
  5616     if (!isValidTypeaheadEvent(event)) {
       
  5617       return clearChars();
       
  5618     }
       
  5619     const { renderedItems, items, activeId, id } = store.getState();
       
  5620     let enabledItems = T7VMP3TM_getEnabledItems(
       
  5621       items.length > renderedItems.length ? items : renderedItems
       
  5622     );
       
  5623     const document = getDocument(event.currentTarget);
       
  5624     const selector = `[data-offscreen-id="${id}"]`;
       
  5625     const offscreenItems = document.querySelectorAll(selector);
       
  5626     for (const element of offscreenItems) {
       
  5627       const disabled = element.ariaDisabled === "true" || "disabled" in element && !!element.disabled;
       
  5628       enabledItems.push({ id: element.id, element, disabled });
       
  5629     }
       
  5630     if (offscreenItems.length) {
       
  5631       enabledItems = sortBasedOnDOMPosition(enabledItems, (i) => i.element);
       
  5632     }
       
  5633     if (!isSelfTargetOrItem(event, enabledItems)) return clearChars();
       
  5634     event.preventDefault();
       
  5635     window.clearTimeout(cleanupTimeoutRef.current);
       
  5636     cleanupTimeoutRef.current = window.setTimeout(() => {
       
  5637       chars = "";
       
  5638     }, 500);
       
  5639     const char = event.key.toLowerCase();
       
  5640     chars += char;
       
  5641     enabledItems = getSameInitialItems(enabledItems, char, activeId);
       
  5642     const item = enabledItems.find((item2) => itemTextStartsWith(item2, chars));
       
  5643     if (item) {
       
  5644       store.move(item.id);
       
  5645     } else {
       
  5646       clearChars();
       
  5647     }
       
  5648   });
       
  5649   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
  5650     onKeyDownCapture
       
  5651   });
       
  5652   return removeUndefinedValues(props);
       
  5653 });
       
  5654 var T7VMP3TM_CompositeTypeahead = forwardRef2(function CompositeTypeahead2(props) {
       
  5655   const htmlProps = useCompositeTypeahead(props);
       
  5656   return LMDWO4NN_createElement(T7VMP3TM_TagName, htmlProps);
       
  5657 });
       
  5658 
       
  5659 
       
  5660 
       
  5661 ;// ./node_modules/@wordpress/components/build-module/composite/typeahead.js
       
  5662 /**
       
  5663  * External dependencies
       
  5664  */
       
  5665 
       
  5666 
       
  5667 /**
       
  5668  * WordPress dependencies
       
  5669  */
       
  5670 
       
  5671 
       
  5672 /**
       
  5673  * Internal dependencies
       
  5674  */
       
  5675 
       
  5676 
       
  5677 
       
  5678 const CompositeTypeahead = (0,external_wp_element_namespaceObject.forwardRef)(function CompositeTypeahead(props, ref) {
       
  5679   var _props$store;
       
  5680   const context = context_useCompositeContext();
       
  5681 
       
  5682   // @ts-expect-error The store prop is undocumented and only used by the
       
  5683   // legacy compat layer. The `store` prop is documented, but its type is
       
  5684   // obfuscated to discourage its use outside of the component's internals.
       
  5685   const store = (_props$store = props.store) !== null && _props$store !== void 0 ? _props$store : context.store;
       
  5686   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(T7VMP3TM_CompositeTypeahead, {
       
  5687     store: store,
       
  5688     ...props,
       
  5689     ref: ref
       
  5690   });
       
  5691 });
       
  5692 
       
  5693 ;// ./node_modules/@wordpress/components/build-module/composite/index.js
       
  5694 /**
       
  5695  * Composite is a component that may contain navigable items represented by
       
  5696  * Composite.Item. It's inspired by the WAI-ARIA Composite Role and implements
       
  5697  * all the keyboard navigation mechanisms to ensure that there's only one
       
  5698  * tab stop for the whole Composite element. This means that it can behave as
       
  5699  * a roving tabindex or aria-activedescendant container.
       
  5700  *
       
  5701  * @see https://ariakit.org/components/composite
       
  5702  */
       
  5703 
       
  5704 /**
       
  5705  * External dependencies
       
  5706  */
       
  5707 
       
  5708 
       
  5709 /**
       
  5710  * WordPress dependencies
       
  5711  */
       
  5712 
       
  5713 
       
  5714 
       
  5715 /**
       
  5716  * Internal dependencies
       
  5717  */
       
  5718 
       
  5719 
       
  5720 
       
  5721 
       
  5722 
       
  5723 
       
  5724 
       
  5725 
       
  5726 
       
  5727 /**
       
  5728  * Renders a widget based on the WAI-ARIA [`composite`](https://w3c.github.io/aria/#composite)
       
  5729  * role, which provides a single tab stop on the page and arrow key navigation
       
  5730  * through the focusable descendants.
       
  5731  *
       
  5732  * @example
       
  5733  * ```jsx
       
  5734  * import { Composite } from '@wordpress/components';
       
  5735  *
       
  5736  * <Composite>
       
  5737  *   <Composite.Item>Item 1</Composite.Item>
       
  5738  *   <Composite.Item>Item 2</Composite.Item>
       
  5739  * </Composite>
       
  5740  * ```
       
  5741  */
       
  5742 const Composite = Object.assign((0,external_wp_element_namespaceObject.forwardRef)(function Composite({
       
  5743   // Composite store props
       
  5744   activeId,
       
  5745   defaultActiveId,
       
  5746   setActiveId,
       
  5747   focusLoop = false,
       
  5748   focusWrap = false,
       
  5749   focusShift = false,
       
  5750   virtualFocus = false,
       
  5751   orientation = 'both',
       
  5752   rtl = (0,external_wp_i18n_namespaceObject.isRTL)(),
       
  5753   // Composite component props
       
  5754   children,
       
  5755   disabled = false,
       
  5756   // Rest props
       
  5757   ...props
       
  5758 }, ref) {
       
  5759   // @ts-expect-error The store prop is undocumented and only used by the
       
  5760   // legacy compat layer.
       
  5761   const storeProp = props.store;
       
  5762   const internalStore = useCompositeStore({
       
  5763     activeId,
       
  5764     defaultActiveId,
       
  5765     setActiveId,
       
  5766     focusLoop,
       
  5767     focusWrap,
       
  5768     focusShift,
       
  5769     virtualFocus,
       
  5770     orientation,
       
  5771     rtl
       
  5772   });
       
  5773   const store = storeProp !== null && storeProp !== void 0 ? storeProp : internalStore;
       
  5774   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
       
  5775     store
       
  5776   }), [store]);
       
  5777   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ITI7HKP4_Composite, {
       
  5778     disabled: disabled,
       
  5779     store: store,
       
  5780     ...props,
       
  5781     ref: ref,
       
  5782     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeContext.Provider, {
       
  5783       value: contextValue,
       
  5784       children: children
       
  5785     })
       
  5786   });
       
  5787 }), {
       
  5788   /**
       
  5789    * Renders a group element for composite items.
       
  5790    *
       
  5791    * @example
       
  5792    * ```jsx
       
  5793    * import { Composite } from '@wordpress/components';
       
  5794    *
       
  5795    * <Composite>
       
  5796    *   <Composite.Group>
       
  5797    *     <Composite.GroupLabel>Label</Composite.GroupLabel>
       
  5798    *     <Composite.Item>Item 1</Composite.Item>
       
  5799    *     <Composite.Item>Item 2</Composite.Item>
       
  5800    *   </CompositeGroup>
       
  5801    * </Composite>
       
  5802    * ```
       
  5803    */
       
  5804   Group: Object.assign(CompositeGroup, {
       
  5805     displayName: 'Composite.Group'
       
  5806   }),
       
  5807   /**
       
  5808    * Renders a label in a composite group. This component must be wrapped with
       
  5809    * `Composite.Group` so the `aria-labelledby` prop is properly set on the
       
  5810    * composite group element.
       
  5811    *
       
  5812    * @example
       
  5813    * ```jsx
       
  5814    * import { Composite } from '@wordpress/components';
       
  5815    *
       
  5816    * <Composite>
       
  5817    *   <Composite.Group>
       
  5818    *     <Composite.GroupLabel>Label</Composite.GroupLabel>
       
  5819    *     <Composite.Item>Item 1</Composite.Item>
       
  5820    *     <Composite.Item>Item 2</Composite.Item>
       
  5821    *   </CompositeGroup>
       
  5822    * </Composite>
       
  5823    * ```
       
  5824    */
       
  5825   GroupLabel: Object.assign(CompositeGroupLabel, {
       
  5826     displayName: 'Composite.GroupLabel'
       
  5827   }),
       
  5828   /**
       
  5829    * Renders a composite item.
       
  5830    *
       
  5831    * @example
       
  5832    * ```jsx
       
  5833    * import { Composite } from '@wordpress/components';
       
  5834    *
       
  5835    * <Composite>
       
  5836    *   <Composite.Item>Item 1</Composite.Item>
       
  5837    *   <Composite.Item>Item 2</Composite.Item>
       
  5838    *   <Composite.Item>Item 3</Composite.Item>
       
  5839    * </Composite>
       
  5840    * ```
       
  5841    */
       
  5842   Item: Object.assign(CompositeItem, {
       
  5843     displayName: 'Composite.Item'
       
  5844   }),
       
  5845   /**
       
  5846    * Renders a composite row. Wrapping `Composite.Item` elements within
       
  5847    * `Composite.Row` will create a two-dimensional composite widget, such as a
       
  5848    * grid.
       
  5849    *
       
  5850    * @example
       
  5851    * ```jsx
       
  5852    * import { Composite } from '@wordpress/components';
       
  5853    *
       
  5854    * <Composite>
       
  5855    *   <Composite.Row>
       
  5856    *     <Composite.Item>Item 1.1</Composite.Item>
       
  5857    *     <Composite.Item>Item 1.2</Composite.Item>
       
  5858    *     <Composite.Item>Item 1.3</Composite.Item>
       
  5859    *   </Composite.Row>
       
  5860    *   <Composite.Row>
       
  5861    *     <Composite.Item>Item 2.1</Composite.Item>
       
  5862    *     <Composite.Item>Item 2.2</Composite.Item>
       
  5863    *     <Composite.Item>Item 2.3</Composite.Item>
       
  5864    *   </Composite.Row>
       
  5865    * </Composite>
       
  5866    * ```
       
  5867    */
       
  5868   Row: Object.assign(CompositeRow, {
       
  5869     displayName: 'Composite.Row'
       
  5870   }),
       
  5871   /**
       
  5872    * Renders an element in a composite widget that receives focus on mouse move
       
  5873    * and loses focus to the composite base element on mouse leave. This should
       
  5874    * be combined with the `Composite.Item` component.
       
  5875    *
       
  5876    * @example
       
  5877    * ```jsx
       
  5878    * import { Composite } from '@wordpress/components';
       
  5879    *
       
  5880    * <Composite>
       
  5881    *   <Composite.Hover render={ <Composite.Item /> }>
       
  5882    *     Item 1
       
  5883    *   </Composite.Hover>
       
  5884    *   <Composite.Hover render={ <Composite.Item /> }>
       
  5885    *     Item 2
       
  5886    *   </Composite.Hover>
       
  5887    * </Composite>
       
  5888    * ```
       
  5889    */
       
  5890   Hover: Object.assign(CompositeHover, {
       
  5891     displayName: 'Composite.Hover'
       
  5892   }),
       
  5893   /**
       
  5894    * Renders a component that adds typeahead functionality to composite
       
  5895    * components. Hitting printable character keys will move focus to the next
       
  5896    * composite item that begins with the input characters.
       
  5897    *
       
  5898    * @example
       
  5899    * ```jsx
       
  5900    * import { Composite } from '@wordpress/components';
       
  5901    *
       
  5902    * <Composite render={ <CompositeTypeahead /> }>
       
  5903    *   <Composite.Item>Item 1</Composite.Item>
       
  5904    *   <Composite.Item>Item 2</Composite.Item>
       
  5905    * </Composite>
       
  5906    * ```
       
  5907    */
       
  5908   Typeahead: Object.assign(CompositeTypeahead, {
       
  5909     displayName: 'Composite.Typeahead'
       
  5910   }),
       
  5911   /**
       
  5912    * The React context used by the composite components. It can be used by
       
  5913    * to access the composite store, and to forward the context when composite
       
  5914    * sub-components are rendered across portals (ie. `SlotFill` components)
       
  5915    * that would not otherwise forward the context to the `Fill` children.
       
  5916    *
       
  5917    * @example
       
  5918    * ```jsx
       
  5919    * import { Composite } from '@wordpress/components';
       
  5920    * import { useContext } from '@wordpress/element';
       
  5921    *
       
  5922    * const compositeContext = useContext( Composite.Context );
       
  5923    * ```
       
  5924    */
       
  5925   Context: Object.assign(CompositeContext, {
       
  5926     displayName: 'Composite.Context'
       
  5927   })
       
  5928 });
       
  5929 
       
  5930 ;// ./node_modules/@ariakit/core/esm/__chunks/RCQ5P4YE.js
  4540 "use client";
  5931 "use client";
  4541 
  5932 
  4542 
  5933 
  4543 
  5934 
  4544 
  5935 
  4567   };
  5958   };
  4568   const disclosure = createStore(initialState, store);
  5959   const disclosure = createStore(initialState, store);
  4569   setup(
  5960   setup(
  4570     disclosure,
  5961     disclosure,
  4571     () => sync(disclosure, ["animated", "animating"], (state) => {
  5962     () => sync(disclosure, ["animated", "animating"], (state) => {
  4572       if (state.animated)
  5963       if (state.animated) return;
  4573         return;
       
  4574       disclosure.setState("animating", false);
  5964       disclosure.setState("animating", false);
  4575     })
  5965     })
  4576   );
  5966   );
  4577   setup(
  5967   setup(
  4578     disclosure,
  5968     disclosure,
  4579     () => subscribe(disclosure, ["open"], () => {
  5969     () => subscribe(disclosure, ["open"], () => {
  4580       if (!disclosure.getState().animated)
  5970       if (!disclosure.getState().animated) return;
  4581         return;
       
  4582       disclosure.setState("animating", true);
  5971       disclosure.setState("animating", true);
  4583     })
  5972     })
  4584   );
  5973   );
  4585   setup(
  5974   setup(
  4586     disclosure,
  5975     disclosure,
  4587     () => sync(disclosure, ["open", "animating"], (state) => {
  5976     () => sync(disclosure, ["open", "animating"], (state) => {
  4588       disclosure.setState("mounted", state.open || state.animating);
  5977       disclosure.setState("mounted", state.open || state.animating);
  4589     })
  5978     })
  4590   );
  5979   );
  4591   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, disclosure), {
  5980   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, disclosure), {
       
  5981     disclosure: props.disclosure,
  4592     setOpen: (value) => disclosure.setState("open", value),
  5982     setOpen: (value) => disclosure.setState("open", value),
  4593     show: () => disclosure.setState("open", true),
  5983     show: () => disclosure.setState("open", true),
  4594     hide: () => disclosure.setState("open", false),
  5984     hide: () => disclosure.setState("open", false),
  4595     toggle: () => disclosure.setState("open", (open2) => !open2),
  5985     toggle: () => disclosure.setState("open", (open2) => !open2),
  4596     stopAnimation: () => disclosure.setState("animating", false),
  5986     stopAnimation: () => disclosure.setState("animating", false),
  4599   });
  5989   });
  4600 }
  5990 }
  4601 
  5991 
  4602 
  5992 
  4603 
  5993 
  4604 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/SFCBA2JZ.js
  5994 ;// ./node_modules/@ariakit/react-core/esm/__chunks/WYCIER3C.js
  4605 "use client";
  5995 "use client";
  4606 
  5996 
  4607 
  5997 
  4608 
  5998 
  4609 // src/disclosure/disclosure-store.ts
  5999 // src/disclosure/disclosure-store.ts
  4611 function useDisclosureStoreProps(store, update, props) {
  6001 function useDisclosureStoreProps(store, update, props) {
  4612   useUpdateEffect(update, [props.store, props.disclosure]);
  6002   useUpdateEffect(update, [props.store, props.disclosure]);
  4613   useStoreProps(store, props, "open", "setOpen");
  6003   useStoreProps(store, props, "open", "setOpen");
  4614   useStoreProps(store, props, "mounted", "setMounted");
  6004   useStoreProps(store, props, "mounted", "setMounted");
  4615   useStoreProps(store, props, "animated");
  6005   useStoreProps(store, props, "animated");
  4616   return store;
  6006   return Object.assign(store, { disclosure: props.disclosure });
  4617 }
  6007 }
  4618 function useDisclosureStore(props = {}) {
  6008 function useDisclosureStore(props = {}) {
  4619   const [store, update] = EKQEJRUF_useStore(createDisclosureStore, props);
  6009   const [store, update] = YV4JVR4I_useStore(createDisclosureStore, props);
  4620   return useDisclosureStoreProps(store, update, props);
  6010   return useDisclosureStoreProps(store, update, props);
  4621 }
  6011 }
  4622 
  6012 
  4623 
  6013 
  4624 
  6014 
  4625 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/SX2XFD6A.js
  6015 ;// ./node_modules/@ariakit/core/esm/__chunks/FZZ2AVHF.js
  4626 "use client";
  6016 "use client";
  4627 
  6017 
  4628 
  6018 
  4629 // src/dialog/dialog-store.ts
  6019 // src/dialog/dialog-store.ts
  4630 function createDialogStore(props = {}) {
  6020 function createDialogStore(props = {}) {
  4631   return createDisclosureStore(props);
  6021   return createDisclosureStore(props);
  4632 }
  6022 }
  4633 
  6023 
  4634 
  6024 
  4635 
  6025 
  4636 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/ZSELSBRM.js
  6026 ;// ./node_modules/@ariakit/react-core/esm/__chunks/BM6PGYQY.js
  4637 "use client";
  6027 "use client";
  4638 
  6028 
  4639 
  6029 
  4640 
  6030 
  4641 // src/dialog/dialog-store.ts
  6031 // src/dialog/dialog-store.ts
  4642 
  6032 
  4643 function useDialogStoreProps(store, update, props) {
  6033 function useDialogStoreProps(store, update, props) {
  4644   return useDisclosureStoreProps(store, update, props);
  6034   return useDisclosureStoreProps(store, update, props);
  4645 }
  6035 }
  4646 function useDialogStore(props = {}) {
  6036 function useDialogStore(props = {}) {
  4647   const [store, update] = EKQEJRUF_useStore(createDialogStore, props);
  6037   const [store, update] = YV4JVR4I_useStore(createDialogStore, props);
  4648   return useDialogStoreProps(store, update, props);
  6038   return useDialogStoreProps(store, update, props);
  4649 }
  6039 }
  4650 
  6040 
  4651 
  6041 
  4652 
  6042 
  4653 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/MG4P3223.js
  6043 ;// ./node_modules/@ariakit/react-core/esm/__chunks/O2PQ2652.js
  4654 "use client";
  6044 "use client";
  4655 
  6045 
  4656 
  6046 
  4657 
  6047 
  4658 
  6048 
  4659 // src/popover/popover-store.ts
  6049 // src/popover/popover-store.ts
  4660 
  6050 
  4661 function usePopoverStoreProps(store, update, props) {
  6051 function usePopoverStoreProps(store, update, props) {
  4662   useUpdateEffect(update, [props.popover]);
  6052   useUpdateEffect(update, [props.popover]);
  4663   store = useDialogStoreProps(store, update, props);
       
  4664   useStoreProps(store, props, "placement");
  6053   useStoreProps(store, props, "placement");
  4665   return store;
  6054   return useDialogStoreProps(store, update, props);
  4666 }
  6055 }
  4667 function usePopoverStore(props = {}) {
  6056 function usePopoverStore(props = {}) {
  4668   const [store, update] = useStore(Core.createPopoverStore, props);
  6057   const [store, update] = useStore(Core.createPopoverStore, props);
  4669   return usePopoverStoreProps(store, update, props);
  6058   return usePopoverStoreProps(store, update, props);
  4670 }
  6059 }
  4671 
  6060 
  4672 
  6061 
  4673 
  6062 
  4674 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/ZU7LQC5V.js
  6063 ;// ./node_modules/@ariakit/react-core/esm/__chunks/FTXTWCCT.js
  4675 "use client";
  6064 "use client";
  4676 
  6065 
  4677 
  6066 
  4678 
  6067 
  4679 // src/hovercard/hovercard-store.ts
  6068 // src/hovercard/hovercard-store.ts
  4680 
  6069 
  4681 function useHovercardStoreProps(store, update, props) {
  6070 function useHovercardStoreProps(store, update, props) {
  4682   store = usePopoverStoreProps(store, update, props);
       
  4683   useStoreProps(store, props, "timeout");
  6071   useStoreProps(store, props, "timeout");
  4684   useStoreProps(store, props, "showTimeout");
  6072   useStoreProps(store, props, "showTimeout");
  4685   useStoreProps(store, props, "hideTimeout");
  6073   useStoreProps(store, props, "hideTimeout");
  4686   return store;
  6074   return usePopoverStoreProps(store, update, props);
  4687 }
  6075 }
  4688 function useHovercardStore(props = {}) {
  6076 function useHovercardStore(props = {}) {
  4689   const [store, update] = useStore(Core.createHovercardStore, props);
  6077   const [store, update] = useStore(Core.createHovercardStore, props);
  4690   return useHovercardStoreProps(store, update, props);
  6078   return useHovercardStoreProps(store, update, props);
  4691 }
  6079 }
  4692 
  6080 
  4693 
  6081 
  4694 
  6082 
  4695 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/AF6IUUFN.js
  6083 ;// ./node_modules/@ariakit/core/esm/__chunks/ME2CUF3F.js
  4696 "use client";
  6084 "use client";
  4697 
  6085 
  4698 
  6086 
  4699 
  6087 
  4700 
  6088 
  4701 
  6089 
  4702 // src/popover/popover-store.ts
  6090 // src/popover/popover-store.ts
  4703 function createPopoverStore(_a = {}) {
  6091 function createPopoverStore(_a = {}) {
  4704   var _b = _a, {
  6092   var _b = _a, {
  4705     popover: otherPopover
  6093     popover: otherPopover
  4706   } = _b, props = _4R3V3JGP_objRest(_b, [
  6094   } = _b, props = _3YLGPPWQ_objRest(_b, [
  4707     "popover"
  6095     "popover"
  4708   ]);
  6096   ]);
  4709   const store = mergeStore(
  6097   const store = mergeStore(
  4710     props.store,
  6098     props.store,
  4711     omit2(otherPopover, [
  6099     omit2(otherPopover, [
  4716       "disclosureElement"
  6104       "disclosureElement"
  4717     ])
  6105     ])
  4718   );
  6106   );
  4719   throwOnConflictingProps(props, store);
  6107   throwOnConflictingProps(props, store);
  4720   const syncState = store == null ? void 0 : store.getState();
  6108   const syncState = store == null ? void 0 : store.getState();
  4721   const dialog = createDialogStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), { store }));
  6109   const dialog = createDialogStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), { store }));
  4722   const placement = defaultValue(
  6110   const placement = defaultValue(
  4723     props.placement,
  6111     props.placement,
  4724     syncState == null ? void 0 : syncState.placement,
  6112     syncState == null ? void 0 : syncState.placement,
  4725     "bottom"
  6113     "bottom"
  4726   );
  6114   );
  4727   const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, dialog.getState()), {
  6115   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, dialog.getState()), {
  4728     placement,
  6116     placement,
  4729     currentPlacement: placement,
  6117     currentPlacement: placement,
  4730     anchorElement: defaultValue(syncState == null ? void 0 : syncState.anchorElement, null),
  6118     anchorElement: defaultValue(syncState == null ? void 0 : syncState.anchorElement, null),
  4731     popoverElement: defaultValue(syncState == null ? void 0 : syncState.popoverElement, null),
  6119     popoverElement: defaultValue(syncState == null ? void 0 : syncState.popoverElement, null),
  4732     arrowElement: defaultValue(syncState == null ? void 0 : syncState.arrowElement, null),
  6120     arrowElement: defaultValue(syncState == null ? void 0 : syncState.arrowElement, null),
  4733     rendered: Symbol("rendered")
  6121     rendered: Symbol("rendered")
  4734   });
  6122   });
  4735   const popover = createStore(initialState, dialog, store);
  6123   const popover = createStore(initialState, dialog, store);
  4736   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, dialog), popover), {
  6124   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, dialog), popover), {
  4737     setAnchorElement: (element) => popover.setState("anchorElement", element),
  6125     setAnchorElement: (element) => popover.setState("anchorElement", element),
  4738     setPopoverElement: (element) => popover.setState("popoverElement", element),
  6126     setPopoverElement: (element) => popover.setState("popoverElement", element),
  4739     setArrowElement: (element) => popover.setState("arrowElement", element),
  6127     setArrowElement: (element) => popover.setState("arrowElement", element),
  4740     render: () => popover.setState("rendered", Symbol("rendered"))
  6128     render: () => popover.setState("rendered", Symbol("rendered"))
  4741   });
  6129   });
  4742 }
  6130 }
  4743 
  6131 
  4744 
  6132 
  4745 
  6133 
  4746 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/SOLWE6E5.js
  6134 ;// ./node_modules/@ariakit/core/esm/__chunks/JTLIIJ4U.js
  4747 "use client";
  6135 "use client";
  4748 
  6136 
  4749 
  6137 
  4750 
  6138 
  4751 
  6139 
  4752 
  6140 
  4753 // src/hovercard/hovercard-store.ts
  6141 // src/hovercard/hovercard-store.ts
  4754 function createHovercardStore(props = {}) {
  6142 function createHovercardStore(props = {}) {
  4755   var _a;
  6143   var _a;
  4756   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
  6144   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
  4757   const popover = createPopoverStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
  6145   const popover = createPopoverStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
  4758     placement: defaultValue(
  6146     placement: defaultValue(
  4759       props.placement,
  6147       props.placement,
  4760       syncState == null ? void 0 : syncState.placement,
  6148       syncState == null ? void 0 : syncState.placement,
  4761       "bottom"
  6149       "bottom"
  4762     )
  6150     )
  4763   }));
  6151   }));
  4764   const timeout = defaultValue(props.timeout, syncState == null ? void 0 : syncState.timeout, 500);
  6152   const timeout = defaultValue(props.timeout, syncState == null ? void 0 : syncState.timeout, 500);
  4765   const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, popover.getState()), {
  6153   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, popover.getState()), {
  4766     timeout,
  6154     timeout,
  4767     showTimeout: defaultValue(props.showTimeout, syncState == null ? void 0 : syncState.showTimeout),
  6155     showTimeout: defaultValue(props.showTimeout, syncState == null ? void 0 : syncState.showTimeout),
  4768     hideTimeout: defaultValue(props.hideTimeout, syncState == null ? void 0 : syncState.hideTimeout),
  6156     hideTimeout: defaultValue(props.hideTimeout, syncState == null ? void 0 : syncState.hideTimeout),
  4769     autoFocusOnShow: defaultValue(syncState == null ? void 0 : syncState.autoFocusOnShow, false)
  6157     autoFocusOnShow: defaultValue(syncState == null ? void 0 : syncState.autoFocusOnShow, false)
  4770   });
  6158   });
  4771   const hovercard = createStore(initialState, popover, props.store);
  6159   const hovercard = createStore(initialState, popover, props.store);
  4772   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, popover), hovercard), {
  6160   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, popover), hovercard), {
  4773     setAutoFocusOnShow: (value) => hovercard.setState("autoFocusOnShow", value)
  6161     setAutoFocusOnShow: (value) => hovercard.setState("autoFocusOnShow", value)
  4774   });
  6162   });
  4775 }
  6163 }
  4776 
  6164 
  4777 
  6165 
  4778 
  6166 
  4779 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/tooltip/tooltip-store.js
  6167 ;// ./node_modules/@ariakit/core/esm/tooltip/tooltip-store.js
  4780 "use client";
  6168 "use client";
  4781 
  6169 
  4782 
  6170 
  4783 
  6171 
  4784 
  6172 
  4787 
  6175 
  4788 
  6176 
  4789 // src/tooltip/tooltip-store.ts
  6177 // src/tooltip/tooltip-store.ts
  4790 function createTooltipStore(props = {}) {
  6178 function createTooltipStore(props = {}) {
  4791   var _a;
  6179   var _a;
       
  6180   if (false) {}
  4792   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
  6181   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
  4793   const hovercard = createHovercardStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
  6182   const hovercard = createHovercardStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
  4794     placement: defaultValue(
  6183     placement: defaultValue(
  4795       props.placement,
  6184       props.placement,
  4796       syncState == null ? void 0 : syncState.placement,
  6185       syncState == null ? void 0 : syncState.placement,
  4797       "top"
  6186       "top"
  4798     ),
  6187     ),
  4799     hideTimeout: defaultValue(props.hideTimeout, syncState == null ? void 0 : syncState.hideTimeout, 0)
  6188     hideTimeout: defaultValue(props.hideTimeout, syncState == null ? void 0 : syncState.hideTimeout, 0)
  4800   }));
  6189   }));
  4801   const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, hovercard.getState()), {
  6190   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, hovercard.getState()), {
  4802     type: defaultValue(props.type, syncState == null ? void 0 : syncState.type, "description"),
  6191     type: defaultValue(props.type, syncState == null ? void 0 : syncState.type, "description"),
  4803     skipTimeout: defaultValue(props.skipTimeout, syncState == null ? void 0 : syncState.skipTimeout, 300)
  6192     skipTimeout: defaultValue(props.skipTimeout, syncState == null ? void 0 : syncState.skipTimeout, 300)
  4804   });
  6193   });
  4805   const tooltip = createStore(initialState, hovercard, props.store);
  6194   const tooltip = createStore(initialState, hovercard, props.store);
  4806   return _chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, hovercard), tooltip);
  6195   return _chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, hovercard), tooltip);
  4807 }
  6196 }
  4808 
  6197 
  4809 
  6198 
  4810 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/2QMN5E6B.js
  6199 ;// ./node_modules/@ariakit/react-core/esm/__chunks/YTDK2NGG.js
  4811 "use client";
  6200 "use client";
  4812 
  6201 
  4813 
  6202 
  4814 
  6203 
  4815 // src/tooltip/tooltip-store.ts
  6204 // src/tooltip/tooltip-store.ts
  4816 
  6205 
  4817 function useTooltipStoreProps(store, update, props) {
  6206 function useTooltipStoreProps(store, update, props) {
  4818   store = useHovercardStoreProps(store, update, props);
       
  4819   useStoreProps(store, props, "type");
  6207   useStoreProps(store, props, "type");
  4820   useStoreProps(store, props, "skipTimeout");
  6208   useStoreProps(store, props, "skipTimeout");
  4821   return store;
  6209   return useHovercardStoreProps(store, update, props);
  4822 }
  6210 }
  4823 function useTooltipStore(props = {}) {
  6211 function useTooltipStore(props = {}) {
  4824   const [store, update] = EKQEJRUF_useStore(createTooltipStore, props);
  6212   const [store, update] = YV4JVR4I_useStore(createTooltipStore, props);
  4825   return useTooltipStoreProps(store, update, props);
  6213   return useTooltipStoreProps(store, update, props);
  4826 }
  6214 }
  4827 
  6215 
  4828 
  6216 
  4829 
  6217 
  4830 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/FSFPRQFR.js
  6218 ;// ./node_modules/@ariakit/react-core/esm/__chunks/XL7CSKGW.js
  4831 "use client";
  6219 "use client";
  4832 
  6220 
  4833 
  6221 
  4834 // src/role/role.ts
  6222 // src/role/role.tsx
  4835 var FSFPRQFR_elements = [
  6223 var XL7CSKGW_TagName = "div";
       
  6224 var XL7CSKGW_elements = [
  4836   "a",
  6225   "a",
  4837   "button",
  6226   "button",
  4838   "details",
  6227   "details",
  4839   "dialog",
  6228   "dialog",
  4840   "div",
  6229   "div",
  4854   "ol",
  6243   "ol",
  4855   "p",
  6244   "p",
  4856   "section",
  6245   "section",
  4857   "select",
  6246   "select",
  4858   "span",
  6247   "span",
       
  6248   "summary",
  4859   "textarea",
  6249   "textarea",
  4860   "ul",
  6250   "ul",
  4861   "svg"
  6251   "svg"
  4862 ];
  6252 ];
  4863 var FSFPRQFR_useRole = createHook((props) => {
  6253 var useRole = createHook(
  4864   return props;
  6254   function useRole2(props) {
  4865 });
  6255     return props;
  4866 var Role = createComponent((props) => {
  6256   }
  4867   return _3ORBWXWF_createElement("div", props);
  6257 );
  4868 });
  6258 var Role = forwardRef2(
  4869 if (false) {}
  6259   // @ts-expect-error
       
  6260   function Role2(props) {
       
  6261     return LMDWO4NN_createElement(XL7CSKGW_TagName, props);
       
  6262   }
       
  6263 );
  4870 Object.assign(
  6264 Object.assign(
  4871   Role,
  6265   Role,
  4872   FSFPRQFR_elements.reduce((acc, element) => {
  6266   XL7CSKGW_elements.reduce((acc, element) => {
  4873     acc[element] = createComponent((props) => {
  6267     acc[element] = forwardRef2(function Role3(props) {
  4874       return _3ORBWXWF_createElement(element, props);
  6268       return LMDWO4NN_createElement(element, props);
  4875     });
  6269     });
  4876     return acc;
  6270     return acc;
  4877   }, {})
  6271   }, {})
  4878 );
  6272 );
  4879 
  6273 
  4880 
  6274 
  4881 
  6275 
  4882 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/OAYFXAQ2.js
  6276 ;// ./node_modules/@ariakit/react-core/esm/__chunks/S6EF7IVO.js
  4883 "use client";
  6277 "use client";
  4884 
  6278 
  4885 
  6279 
  4886 // src/disclosure/disclosure-context.tsx
  6280 // src/disclosure/disclosure-context.tsx
  4887 var OAYFXAQ2_ctx = createStoreContext();
  6281 var S6EF7IVO_ctx = createStoreContext();
  4888 var useDisclosureContext = OAYFXAQ2_ctx.useContext;
  6282 var useDisclosureContext = S6EF7IVO_ctx.useContext;
  4889 var useDisclosureScopedContext = OAYFXAQ2_ctx.useScopedContext;
  6283 var useDisclosureScopedContext = S6EF7IVO_ctx.useScopedContext;
  4890 var useDisclosureProviderContext = OAYFXAQ2_ctx.useProviderContext;
  6284 var useDisclosureProviderContext = S6EF7IVO_ctx.useProviderContext;
  4891 var DisclosureContextProvider = OAYFXAQ2_ctx.ContextProvider;
  6285 var DisclosureContextProvider = S6EF7IVO_ctx.ContextProvider;
  4892 var DisclosureScopedContextProvider = OAYFXAQ2_ctx.ScopedContextProvider;
  6286 var DisclosureScopedContextProvider = S6EF7IVO_ctx.ScopedContextProvider;
  4893 
  6287 
  4894 
  6288 
  4895 
  6289 
  4896 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/G6BJYYBK.js
  6290 ;// ./node_modules/@ariakit/react-core/esm/__chunks/RS7LB2H4.js
  4897 "use client";
  6291 "use client";
  4898 
  6292 
  4899 
  6293 
  4900 
  6294 
  4901 // src/dialog/dialog-context.tsx
  6295 // src/dialog/dialog-context.tsx
  4902 
  6296 
  4903 var G6BJYYBK_ctx = createStoreContext(
  6297 var RS7LB2H4_ctx = createStoreContext(
  4904   [DisclosureContextProvider],
  6298   [DisclosureContextProvider],
  4905   [DisclosureScopedContextProvider]
  6299   [DisclosureScopedContextProvider]
  4906 );
  6300 );
  4907 var useDialogContext = G6BJYYBK_ctx.useContext;
  6301 var useDialogContext = RS7LB2H4_ctx.useContext;
  4908 var useDialogScopedContext = G6BJYYBK_ctx.useScopedContext;
  6302 var useDialogScopedContext = RS7LB2H4_ctx.useScopedContext;
  4909 var useDialogProviderContext = G6BJYYBK_ctx.useProviderContext;
  6303 var useDialogProviderContext = RS7LB2H4_ctx.useProviderContext;
  4910 var DialogContextProvider = G6BJYYBK_ctx.ContextProvider;
  6304 var DialogContextProvider = RS7LB2H4_ctx.ContextProvider;
  4911 var DialogScopedContextProvider = G6BJYYBK_ctx.ScopedContextProvider;
  6305 var DialogScopedContextProvider = RS7LB2H4_ctx.ScopedContextProvider;
  4912 var DialogHeadingContext = (0,external_React_.createContext)(void 0);
  6306 var DialogHeadingContext = (0,external_React_.createContext)(void 0);
  4913 var DialogDescriptionContext = (0,external_React_.createContext)(void 0);
  6307 var DialogDescriptionContext = (0,external_React_.createContext)(void 0);
  4914 
  6308 
  4915 
  6309 
  4916 
  6310 
  4917 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7H5KSHHF.js
  6311 ;// ./node_modules/@ariakit/react-core/esm/__chunks/MTZPJQMC.js
  4918 "use client";
  6312 "use client";
  4919 
  6313 
  4920 
  6314 
  4921 
  6315 
  4922 // src/popover/popover-context.tsx
  6316 // src/popover/popover-context.tsx
  4923 var _7H5KSHHF_ctx = createStoreContext(
  6317 var MTZPJQMC_ctx = createStoreContext(
  4924   [DialogContextProvider],
  6318   [DialogContextProvider],
  4925   [DialogScopedContextProvider]
  6319   [DialogScopedContextProvider]
  4926 );
  6320 );
  4927 var usePopoverContext = _7H5KSHHF_ctx.useContext;
  6321 var usePopoverContext = MTZPJQMC_ctx.useContext;
  4928 var usePopoverScopedContext = _7H5KSHHF_ctx.useScopedContext;
  6322 var usePopoverScopedContext = MTZPJQMC_ctx.useScopedContext;
  4929 var usePopoverProviderContext = _7H5KSHHF_ctx.useProviderContext;
  6323 var usePopoverProviderContext = MTZPJQMC_ctx.useProviderContext;
  4930 var PopoverContextProvider = _7H5KSHHF_ctx.ContextProvider;
  6324 var PopoverContextProvider = MTZPJQMC_ctx.ContextProvider;
  4931 var PopoverScopedContextProvider = _7H5KSHHF_ctx.ScopedContextProvider;
  6325 var PopoverScopedContextProvider = MTZPJQMC_ctx.ScopedContextProvider;
  4932 
  6326 
  4933 
  6327 
  4934 
  6328 
  4935 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/TI7CMBHW.js
  6329 ;// ./node_modules/@ariakit/react-core/esm/__chunks/EM5CXX6A.js
  4936 "use client";
  6330 "use client";
  4937 
  6331 
  4938 
  6332 
  4939 
  6333 
  4940 // src/hovercard/hovercard-context.tsx
  6334 // src/hovercard/hovercard-context.tsx
  4941 var TI7CMBHW_ctx = createStoreContext(
  6335 var EM5CXX6A_ctx = createStoreContext(
  4942   [PopoverContextProvider],
  6336   [PopoverContextProvider],
  4943   [PopoverScopedContextProvider]
  6337   [PopoverScopedContextProvider]
  4944 );
  6338 );
  4945 var useHovercardContext = TI7CMBHW_ctx.useContext;
  6339 var useHovercardContext = EM5CXX6A_ctx.useContext;
  4946 var useHovercardScopedContext = TI7CMBHW_ctx.useScopedContext;
  6340 var useHovercardScopedContext = EM5CXX6A_ctx.useScopedContext;
  4947 var useHovercardProviderContext = TI7CMBHW_ctx.useProviderContext;
  6341 var useHovercardProviderContext = EM5CXX6A_ctx.useProviderContext;
  4948 var HovercardContextProvider = TI7CMBHW_ctx.ContextProvider;
  6342 var HovercardContextProvider = EM5CXX6A_ctx.ContextProvider;
  4949 var HovercardScopedContextProvider = TI7CMBHW_ctx.ScopedContextProvider;
  6343 var HovercardScopedContextProvider = EM5CXX6A_ctx.ScopedContextProvider;
  4950 
  6344 
  4951 
  6345 
  4952 
  6346 
  4953 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7X4DYKYU.js
  6347 ;// ./node_modules/@ariakit/react-core/esm/__chunks/BYC7LY2E.js
  4954 "use client";
  6348 "use client";
  4955 
  6349 
  4956 
  6350 
  4957 
  6351 
  4958 
  6352 
  4959 
  6353 
  4960 
  6354 
  4961 // src/hovercard/hovercard-anchor.ts
  6355 // src/hovercard/hovercard-anchor.tsx
  4962 
  6356 
  4963 
  6357 
  4964 
  6358 
       
  6359 var BYC7LY2E_TagName = "a";
  4965 var useHovercardAnchor = createHook(
  6360 var useHovercardAnchor = createHook(
  4966   (_a) => {
  6361   function useHovercardAnchor2(_a) {
  4967     var _b = _a, { store, showOnHover = true } = _b, props = __objRest(_b, ["store", "showOnHover"]);
  6362     var _b = _a, { store, showOnHover = true } = _b, props = __objRest(_b, ["store", "showOnHover"]);
  4968     const context = useHovercardProviderContext();
  6363     const context = useHovercardProviderContext();
  4969     store = store || context;
  6364     store = store || context;
  4970     invariant(
  6365     invariant(
  4971       store,
  6366       store,
  4974     const disabled = disabledFromProps(props);
  6369     const disabled = disabledFromProps(props);
  4975     const showTimeoutRef = (0,external_React_.useRef)(0);
  6370     const showTimeoutRef = (0,external_React_.useRef)(0);
  4976     (0,external_React_.useEffect)(() => () => window.clearTimeout(showTimeoutRef.current), []);
  6371     (0,external_React_.useEffect)(() => () => window.clearTimeout(showTimeoutRef.current), []);
  4977     (0,external_React_.useEffect)(() => {
  6372     (0,external_React_.useEffect)(() => {
  4978       const onMouseLeave = (event) => {
  6373       const onMouseLeave = (event) => {
  4979         if (!store)
  6374         if (!store) return;
  4980           return;
       
  4981         const { anchorElement } = store.getState();
  6375         const { anchorElement } = store.getState();
  4982         if (!anchorElement)
  6376         if (!anchorElement) return;
  4983           return;
  6377         if (event.target !== anchorElement) return;
  4984         if (event.target !== anchorElement)
       
  4985           return;
       
  4986         window.clearTimeout(showTimeoutRef.current);
  6378         window.clearTimeout(showTimeoutRef.current);
  4987         showTimeoutRef.current = 0;
  6379         showTimeoutRef.current = 0;
  4988       };
  6380       };
  4989       return addGlobalEventListener("mouseleave", onMouseLeave, true);
  6381       return addGlobalEventListener("mouseleave", onMouseLeave, true);
  4990     }, [store]);
  6382     }, [store]);
  4991     const onMouseMoveProp = props.onMouseMove;
  6383     const onMouseMoveProp = props.onMouseMove;
  4992     const showOnHoverProp = useBooleanEvent(showOnHover);
  6384     const showOnHoverProp = useBooleanEvent(showOnHover);
  4993     const isMouseMoving = useIsMouseMoving();
  6385     const isMouseMoving = useIsMouseMoving();
  4994     const onMouseMove = useEvent(
  6386     const onMouseMove = useEvent((event) => {
  4995       (event) => {
  6387       onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
  4996         onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
  6388       if (disabled) return;
  4997         if (disabled)
  6389       if (!store) return;
  4998           return;
  6390       if (event.defaultPrevented) return;
  4999         if (!store)
  6391       if (showTimeoutRef.current) return;
  5000           return;
  6392       if (!isMouseMoving()) return;
  5001         if (event.defaultPrevented)
  6393       if (!showOnHoverProp(event)) return;
  5002           return;
  6394       const element = event.currentTarget;
  5003         if (showTimeoutRef.current)
  6395       store.setAnchorElement(element);
  5004           return;
  6396       store.setDisclosureElement(element);
  5005         if (!isMouseMoving())
  6397       const { showTimeout, timeout } = store.getState();
  5006           return;
  6398       const showHovercard = () => {
  5007         if (!showOnHoverProp(event))
  6399         showTimeoutRef.current = 0;
  5008           return;
  6400         if (!isMouseMoving()) return;
  5009         const element = event.currentTarget;
  6401         store == null ? void 0 : store.setAnchorElement(element);
  5010         store.setAnchorElement(element);
  6402         store == null ? void 0 : store.show();
  5011         store.setDisclosureElement(element);
  6403         queueMicrotask(() => {
  5012         const { showTimeout, timeout } = store.getState();
  6404           store == null ? void 0 : store.setDisclosureElement(element);
  5013         const showHovercard = () => {
  6405         });
  5014           showTimeoutRef.current = 0;
  6406       };
  5015           if (!isMouseMoving())
  6407       const timeoutMs = showTimeout != null ? showTimeout : timeout;
  5016             return;
  6408       if (timeoutMs === 0) {
  5017           store == null ? void 0 : store.setAnchorElement(element);
  6409         showHovercard();
  5018           store == null ? void 0 : store.show();
  6410       } else {
  5019           queueMicrotask(() => {
  6411         showTimeoutRef.current = window.setTimeout(showHovercard, timeoutMs);
  5020             store == null ? void 0 : store.setDisclosureElement(element);
       
  5021           });
       
  5022         };
       
  5023         const timeoutMs = showTimeout != null ? showTimeout : timeout;
       
  5024         if (timeoutMs === 0) {
       
  5025           showHovercard();
       
  5026         } else {
       
  5027           showTimeoutRef.current = window.setTimeout(showHovercard, timeoutMs);
       
  5028         }
       
  5029       }
  6412       }
  5030     );
  6413     });
       
  6414     const onClickProp = props.onClick;
       
  6415     const onClick = useEvent((event) => {
       
  6416       onClickProp == null ? void 0 : onClickProp(event);
       
  6417       if (!store) return;
       
  6418       window.clearTimeout(showTimeoutRef.current);
       
  6419       showTimeoutRef.current = 0;
       
  6420     });
  5031     const ref = (0,external_React_.useCallback)(
  6421     const ref = (0,external_React_.useCallback)(
  5032       (element) => {
  6422       (element) => {
  5033         if (!store)
  6423         if (!store) return;
  5034           return;
       
  5035         const { anchorElement } = store.getState();
  6424         const { anchorElement } = store.getState();
  5036         if (anchorElement == null ? void 0 : anchorElement.isConnected)
  6425         if (anchorElement == null ? void 0 : anchorElement.isConnected) return;
  5037           return;
       
  5038         store.setAnchorElement(element);
  6426         store.setAnchorElement(element);
  5039       },
  6427       },
  5040       [store]
  6428       [store]
  5041     );
  6429     );
  5042     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
  6430     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  5043       ref: useMergeRefs(ref, props.ref),
  6431       ref: useMergeRefs(ref, props.ref),
  5044       onMouseMove
  6432       onMouseMove,
       
  6433       onClick
  5045     });
  6434     });
  5046     props = useFocusable(props);
  6435     props = useFocusable(props);
  5047     return props;
  6436     return props;
  5048   }
  6437   }
  5049 );
  6438 );
  5050 var HovercardAnchor = createComponent(
  6439 var HovercardAnchor = forwardRef2(function HovercardAnchor2(props) {
  5051   (props) => {
  6440   const htmlProps = useHovercardAnchor(props);
  5052     const htmlProps = useHovercardAnchor(props);
  6441   return LMDWO4NN_createElement(BYC7LY2E_TagName, htmlProps);
  5053     return _3ORBWXWF_createElement("a", htmlProps);
  6442 });
  5054   }
  6443 
  5055 );
  6444 
  5056 if (false) {}
  6445 
  5057 
  6446 ;// ./node_modules/@ariakit/react-core/esm/__chunks/F4IYJ42G.js
  5058 
       
  5059 
       
  5060 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/MNFF5YOJ.js
       
  5061 "use client";
  6447 "use client";
  5062 
  6448 
  5063 
  6449 
  5064 
  6450 
  5065 // src/tooltip/tooltip-context.tsx
  6451 // src/tooltip/tooltip-context.tsx
  5066 var MNFF5YOJ_ctx = createStoreContext(
  6452 var F4IYJ42G_ctx = createStoreContext(
  5067   [HovercardContextProvider],
  6453   [HovercardContextProvider],
  5068   [HovercardScopedContextProvider]
  6454   [HovercardScopedContextProvider]
  5069 );
  6455 );
  5070 var useTooltipContext = MNFF5YOJ_ctx.useContext;
  6456 var useTooltipContext = F4IYJ42G_ctx.useContext;
  5071 var useTooltipScopedContext = MNFF5YOJ_ctx.useScopedContext;
  6457 var useTooltipScopedContext = F4IYJ42G_ctx.useScopedContext;
  5072 var useTooltipProviderContext = MNFF5YOJ_ctx.useProviderContext;
  6458 var useTooltipProviderContext = F4IYJ42G_ctx.useProviderContext;
  5073 var TooltipContextProvider = MNFF5YOJ_ctx.ContextProvider;
  6459 var TooltipContextProvider = F4IYJ42G_ctx.ContextProvider;
  5074 var TooltipScopedContextProvider = MNFF5YOJ_ctx.ScopedContextProvider;
  6460 var TooltipScopedContextProvider = F4IYJ42G_ctx.ScopedContextProvider;
  5075 
  6461 
  5076 
  6462 
  5077 
  6463 
  5078 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tooltip/tooltip-anchor.js
  6464 ;// ./node_modules/@ariakit/react-core/esm/tooltip/tooltip-anchor.js
  5079 "use client";
  6465 "use client";
  5080 
  6466 
  5081 
  6467 
  5082 
  6468 
  5083 
  6469 
  5088 
  6474 
  5089 
  6475 
  5090 
  6476 
  5091 
  6477 
  5092 
  6478 
  5093 // src/tooltip/tooltip-anchor.ts
  6479 // src/tooltip/tooltip-anchor.tsx
  5094 
  6480 
  5095 
  6481 
  5096 
  6482 
       
  6483 var tooltip_anchor_TagName = "div";
  5097 var globalStore = createStore({
  6484 var globalStore = createStore({
  5098   activeStore: null
  6485   activeStore: null
  5099 });
  6486 });
       
  6487 function createRemoveStoreCallback(store) {
       
  6488   return () => {
       
  6489     const { activeStore } = globalStore.getState();
       
  6490     if (activeStore !== store) return;
       
  6491     globalStore.setState("activeStore", null);
       
  6492   };
       
  6493 }
  5100 var useTooltipAnchor = createHook(
  6494 var useTooltipAnchor = createHook(
  5101   (_a) => {
  6495   function useTooltipAnchor2(_a) {
  5102     var _b = _a, { store, showOnHover = true } = _b, props = __objRest(_b, ["store", "showOnHover"]);
  6496     var _b = _a, { store, showOnHover = true } = _b, props = __objRest(_b, ["store", "showOnHover"]);
  5103     const context = useTooltipProviderContext();
  6497     const context = useTooltipProviderContext();
  5104     store = store || context;
  6498     store = store || context;
  5105     invariant(
  6499     invariant(
  5106       store,
  6500       store,
  5107        false && 0
  6501        false && 0
  5108     );
  6502     );
  5109     const canShowOnHoverRef = (0,external_React_.useRef)(false);
  6503     const canShowOnHoverRef = (0,external_React_.useRef)(false);
  5110     (0,external_React_.useEffect)(() => {
  6504     (0,external_React_.useEffect)(() => {
  5111       return sync(store, ["mounted"], (state) => {
  6505       return sync(store, ["mounted"], (state) => {
  5112         if (state.mounted)
  6506         if (state.mounted) return;
  5113           return;
       
  5114         canShowOnHoverRef.current = false;
  6507         canShowOnHoverRef.current = false;
  5115       });
  6508       });
  5116     }, [store]);
  6509     }, [store]);
  5117     (0,external_React_.useEffect)(() => {
  6510     (0,external_React_.useEffect)(() => {
  5118       return sync(store, ["mounted", "skipTimeout"], (state) => {
  6511       if (!store) return;
  5119         if (!store)
  6512       return chain(
  5120           return;
  6513         // Immediately remove the current store from the global store when
  5121         if (state.mounted) {
  6514         // the component unmounts. This is useful, for example, to avoid
  5122           const { activeStore } = globalStore.getState();
  6515         // showing tooltips immediately on serial tests.
  5123           if (activeStore !== store) {
  6516         createRemoveStoreCallback(store),
  5124             activeStore == null ? void 0 : activeStore.hide();
  6517         sync(store, ["mounted", "skipTimeout"], (state) => {
       
  6518           if (!store) return;
       
  6519           if (state.mounted) {
       
  6520             const { activeStore } = globalStore.getState();
       
  6521             if (activeStore !== store) {
       
  6522               activeStore == null ? void 0 : activeStore.hide();
       
  6523             }
       
  6524             return globalStore.setState("activeStore", store);
  5125           }
  6525           }
  5126           return globalStore.setState("activeStore", store);
  6526           const id = setTimeout(
  5127         }
  6527             createRemoveStoreCallback(store),
  5128         const id = setTimeout(() => {
  6528             state.skipTimeout
  5129           const { activeStore } = globalStore.getState();
  6529           );
  5130           if (activeStore !== store)
  6530           return () => clearTimeout(id);
  5131             return;
  6531         })
  5132           globalStore.setState("activeStore", null);
  6532       );
  5133         }, state.skipTimeout);
       
  5134         return () => clearTimeout(id);
       
  5135       });
       
  5136     }, [store]);
  6533     }, [store]);
  5137     const onMouseEnterProp = props.onMouseEnter;
  6534     const onMouseEnterProp = props.onMouseEnter;
  5138     const onMouseEnter = useEvent((event) => {
  6535     const onMouseEnter = useEvent((event) => {
  5139       onMouseEnterProp == null ? void 0 : onMouseEnterProp(event);
  6536       onMouseEnterProp == null ? void 0 : onMouseEnterProp(event);
  5140       canShowOnHoverRef.current = true;
  6537       canShowOnHoverRef.current = true;
  5141     });
  6538     });
  5142     const onFocusVisibleProp = props.onFocusVisible;
  6539     const onFocusVisibleProp = props.onFocusVisible;
  5143     const onFocusVisible = useEvent((event) => {
  6540     const onFocusVisible = useEvent((event) => {
  5144       onFocusVisibleProp == null ? void 0 : onFocusVisibleProp(event);
  6541       onFocusVisibleProp == null ? void 0 : onFocusVisibleProp(event);
  5145       if (event.defaultPrevented)
  6542       if (event.defaultPrevented) return;
  5146         return;
       
  5147       store == null ? void 0 : store.setAnchorElement(event.currentTarget);
  6543       store == null ? void 0 : store.setAnchorElement(event.currentTarget);
  5148       store == null ? void 0 : store.show();
  6544       store == null ? void 0 : store.show();
  5149     });
  6545     });
  5150     const onBlurProp = props.onBlur;
  6546     const onBlurProp = props.onBlur;
  5151     const onBlur = useEvent((event) => {
  6547     const onBlur = useEvent((event) => {
  5152       onBlurProp == null ? void 0 : onBlurProp(event);
  6548       onBlurProp == null ? void 0 : onBlurProp(event);
  5153       if (event.defaultPrevented)
  6549       if (event.defaultPrevented) return;
  5154         return;
       
  5155       const { activeStore } = globalStore.getState();
  6550       const { activeStore } = globalStore.getState();
       
  6551       canShowOnHoverRef.current = false;
  5156       if (activeStore === store) {
  6552       if (activeStore === store) {
  5157         globalStore.setState("activeStore", null);
  6553         globalStore.setState("activeStore", null);
  5158       }
  6554       }
  5159     });
  6555     });
  5160     const type = store.useState("type");
  6556     const type = store.useState("type");
  5161     const contentId = store.useState((state) => {
  6557     const contentId = store.useState((state) => {
  5162       var _a2;
  6558       var _a2;
  5163       return (_a2 = state.contentElement) == null ? void 0 : _a2.id;
  6559       return (_a2 = state.contentElement) == null ? void 0 : _a2.id;
  5164     });
  6560     });
  5165     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
  6561     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  5166       "aria-labelledby": type === "label" ? contentId : void 0,
  6562       "aria-labelledby": type === "label" ? contentId : void 0
  5167       "aria-describedby": type === "description" ? contentId : void 0
       
  5168     }, props), {
  6563     }, props), {
  5169       onMouseEnter,
  6564       onMouseEnter,
  5170       onFocusVisible,
  6565       onFocusVisible,
  5171       onBlur
  6566       onBlur
  5172     });
  6567     });
  5173     props = useHovercardAnchor(_4R3V3JGP_spreadValues({
  6568     props = useHovercardAnchor(_3YLGPPWQ_spreadValues({
  5174       store,
  6569       store,
  5175       showOnHover: (event) => {
  6570       showOnHover(event) {
  5176         if (!canShowOnHoverRef.current)
  6571         if (!canShowOnHoverRef.current) return false;
  5177           return false;
  6572         if (isFalsyBooleanCallback(showOnHover, event)) return false;
  5178         if (isFalsyBooleanCallback(showOnHover, event))
       
  5179           return false;
       
  5180         const { activeStore } = globalStore.getState();
  6573         const { activeStore } = globalStore.getState();
  5181         if (!activeStore)
  6574         if (!activeStore) return true;
  5182           return true;
       
  5183         store == null ? void 0 : store.show();
  6575         store == null ? void 0 : store.show();
  5184         return false;
  6576         return false;
  5185       }
  6577       }
  5186     }, props));
  6578     }, props));
  5187     return props;
  6579     return props;
  5188   }
  6580   }
  5189 );
  6581 );
  5190 var TooltipAnchor = createComponent((props) => {
  6582 var TooltipAnchor = forwardRef2(function TooltipAnchor2(props) {
  5191   const htmlProps = useTooltipAnchor(props);
  6583   const htmlProps = useTooltipAnchor(props);
  5192   return _3ORBWXWF_createElement("div", htmlProps);
  6584   return LMDWO4NN_createElement(tooltip_anchor_TagName, htmlProps);
  5193 });
  6585 });
  5194 if (false) {}
  6586 
  5195 
  6587 
  5196 
  6588 ;// ./node_modules/@ariakit/react-core/esm/__chunks/X7QOZUD3.js
  5197 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/YMV43K4F.js
       
  5198 "use client";
  6589 "use client";
  5199 
  6590 
  5200 // src/hovercard/utils/polygon.ts
  6591 // src/hovercard/utils/polygon.ts
  5201 function getEventPoint(event) {
  6592 function getEventPoint(event) {
  5202   return [event.clientX, event.clientY];
  6593   return [event.clientX, event.clientY];
  5210     const [xj, yj] = polygon[j];
  6601     const [xj, yj] = polygon[j];
  5211     const [, vy] = polygon[j === 0 ? l - 1 : j - 1] || [0, 0];
  6602     const [, vy] = polygon[j === 0 ? l - 1 : j - 1] || [0, 0];
  5212     const where = (yi - yj) * (x - xi) - (xi - xj) * (y - yi);
  6603     const where = (yi - yj) * (x - xi) - (xi - xj) * (y - yi);
  5213     if (yj < yi) {
  6604     if (yj < yi) {
  5214       if (y >= yj && y < yi) {
  6605       if (y >= yj && y < yi) {
  5215         if (where === 0)
  6606         if (where === 0) return true;
  5216           return true;
       
  5217         if (where > 0) {
  6607         if (where > 0) {
  5218           if (y === yj) {
  6608           if (y === yj) {
  5219             if (y > vy) {
  6609             if (y > vy) {
  5220               inside = !inside;
  6610               inside = !inside;
  5221             }
  6611             }
  5224           }
  6614           }
  5225         }
  6615         }
  5226       }
  6616       }
  5227     } else if (yi < yj) {
  6617     } else if (yi < yj) {
  5228       if (y > yi && y <= yj) {
  6618       if (y > yi && y <= yj) {
  5229         if (where === 0)
  6619         if (where === 0) return true;
  5230           return true;
       
  5231         if (where < 0) {
  6620         if (where < 0) {
  5232           if (y === yj) {
  6621           if (y === yj) {
  5233             if (y < vy) {
  6622             if (y < vy) {
  5234               inside = !inside;
  6623               inside = !inside;
  5235             }
  6624             }
  5236           } else {
  6625           } else {
  5237             inside = !inside;
  6626             inside = !inside;
  5238           }
  6627           }
  5239         }
  6628         }
  5240       }
  6629       }
  5241     } else if (y == yi && (x >= xj && x <= xi || x >= xi && x <= xj)) {
  6630     } else if (y === yi && (x >= xj && x <= xi || x >= xi && x <= xj)) {
  5242       return true;
  6631       return true;
  5243     }
  6632     }
  5244   }
  6633   }
  5245   return inside;
  6634   return inside;
  5246 }
  6635 }
  5279   return polygon;
  6668   return polygon;
  5280 }
  6669 }
  5281 
  6670 
  5282 
  6671 
  5283 
  6672 
  5284 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/MKDDWKFK.js
  6673 ;// ./node_modules/@ariakit/react-core/esm/__chunks/63XF7ACK.js
  5285 "use client";
  6674 "use client";
  5286 
  6675 
  5287 // src/dialog/utils/is-backdrop.ts
  6676 // src/dialog/utils/is-backdrop.ts
  5288 function MKDDWKFK_isBackdrop(element, ...ids) {
  6677 function _63XF7ACK_isBackdrop(element, ...ids) {
  5289   if (!element)
  6678   if (!element) return false;
  5290     return false;
       
  5291   const backdrop = element.getAttribute("data-backdrop");
  6679   const backdrop = element.getAttribute("data-backdrop");
  5292   if (backdrop == null)
  6680   if (backdrop == null) return false;
  5293     return false;
  6681   if (backdrop === "") return true;
  5294   if (backdrop === "")
  6682   if (backdrop === "true") return true;
  5295     return true;
  6683   if (!ids.length) return true;
  5296   if (backdrop === "true")
       
  5297     return true;
       
  5298   if (!ids.length)
       
  5299     return true;
       
  5300   return ids.some((id) => backdrop === id);
  6684   return ids.some((id) => backdrop === id);
  5301 }
  6685 }
  5302 
  6686 
  5303 
  6687 
  5304 
  6688 
  5305 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/X6WIMZJE.js
  6689 ;// ./node_modules/@ariakit/react-core/esm/__chunks/K2ZF5NU7.js
  5306 "use client";
  6690 "use client";
  5307 
  6691 
  5308 // src/dialog/utils/orchestrate.ts
  6692 // src/dialog/utils/orchestrate.ts
  5309 var cleanups = /* @__PURE__ */ new WeakMap();
  6693 var cleanups = /* @__PURE__ */ new WeakMap();
  5310 function orchestrate(element, key, setup) {
  6694 function orchestrate(element, key, setup) {
  5328     elementCleanups.delete(key);
  6712     elementCleanups.delete(key);
  5329   };
  6713   };
  5330   elementCleanups.set(key, nextCleanup);
  6714   elementCleanups.set(key, nextCleanup);
  5331   return () => {
  6715   return () => {
  5332     const isCurrent = elementCleanups.get(key) === nextCleanup;
  6716     const isCurrent = elementCleanups.get(key) === nextCleanup;
  5333     if (!isCurrent)
  6717     if (!isCurrent) return;
  5334       return;
       
  5335     cleanup();
  6718     cleanup();
  5336     elementCleanups.set(key, prevCleanup);
  6719     elementCleanups.set(key, prevCleanup);
  5337   };
  6720   };
  5338 }
  6721 }
  5339 function setAttribute(element, attr, value) {
  6722 function setAttribute(element, attr, value) {
  5364     };
  6747     };
  5365   };
  6748   };
  5366   return orchestrate(element, property, setup);
  6749   return orchestrate(element, property, setup);
  5367 }
  6750 }
  5368 function assignStyle(element, style) {
  6751 function assignStyle(element, style) {
  5369   if (!element)
  6752   if (!element) return () => {
  5370     return () => {
  6753   };
  5371     };
       
  5372   const setup = () => {
  6754   const setup = () => {
  5373     const prevStyle = element.style.cssText;
  6755     const prevStyle = element.style.cssText;
  5374     Object.assign(element.style, style);
  6756     Object.assign(element.style, style);
  5375     return () => {
  6757     return () => {
  5376       element.style.cssText = prevStyle;
  6758       element.style.cssText = prevStyle;
  5377     };
  6759     };
  5378   };
  6760   };
  5379   return orchestrate(element, "style", setup);
  6761   return orchestrate(element, "style", setup);
  5380 }
  6762 }
  5381 function setCSSProperty(element, property, value) {
  6763 function setCSSProperty(element, property, value) {
  5382   if (!element)
  6764   if (!element) return () => {
  5383     return () => {
  6765   };
  5384     };
       
  5385   const setup = () => {
  6766   const setup = () => {
  5386     const previousValue = element.style.getPropertyValue(property);
  6767     const previousValue = element.style.getPropertyValue(property);
  5387     element.style.setProperty(property, value);
  6768     element.style.setProperty(property, value);
  5388     return () => {
  6769     return () => {
  5389       if (previousValue) {
  6770       if (previousValue) {
  5396   return orchestrate(element, property, setup);
  6777   return orchestrate(element, property, setup);
  5397 }
  6778 }
  5398 
  6779 
  5399 
  6780 
  5400 
  6781 
  5401 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/72E5EPFF.js
  6782 ;// ./node_modules/@ariakit/react-core/esm/__chunks/AOUGVQZ3.js
  5402 "use client";
  6783 "use client";
  5403 
  6784 
  5404 
  6785 
  5405 // src/dialog/utils/walk-tree-outside.ts
  6786 // src/dialog/utils/walk-tree-outside.ts
  5406 
  6787 
  5408 var ignoreTags = ["SCRIPT", "STYLE"];
  6789 var ignoreTags = ["SCRIPT", "STYLE"];
  5409 function getSnapshotPropertyName(id) {
  6790 function getSnapshotPropertyName(id) {
  5410   return `__ariakit-dialog-snapshot-${id}`;
  6791   return `__ariakit-dialog-snapshot-${id}`;
  5411 }
  6792 }
  5412 function inSnapshot(id, element) {
  6793 function inSnapshot(id, element) {
  5413   const doc = DLOEKDPY_getDocument(element);
  6794   const doc = getDocument(element);
  5414   const propertyName = getSnapshotPropertyName(id);
  6795   const propertyName = getSnapshotPropertyName(id);
  5415   if (!doc.body[propertyName])
  6796   if (!doc.body[propertyName]) return true;
  5416     return true;
       
  5417   do {
  6797   do {
  5418     if (element === doc.body)
  6798     if (element === doc.body) return false;
  5419       return false;
  6799     if (element[propertyName]) return true;
  5420     if (!!element[propertyName])
  6800     if (!element.parentElement) return false;
  5421       return true;
       
  5422     if (!element.parentElement)
       
  5423       return false;
       
  5424     element = element.parentElement;
  6801     element = element.parentElement;
  5425   } while (true);
  6802   } while (true);
  5426 }
  6803 }
  5427 function isValidElement(id, element, ignoredElements) {
  6804 function isValidElement(id, element, ignoredElements) {
  5428   if (ignoreTags.includes(element.tagName))
  6805   if (ignoreTags.includes(element.tagName)) return false;
  5429     return false;
  6806   if (!inSnapshot(id, element)) return false;
  5430   if (!inSnapshot(id, element))
       
  5431     return false;
       
  5432   return !ignoredElements.some(
  6807   return !ignoredElements.some(
  5433     (enabledElement) => enabledElement && contains(element, enabledElement)
  6808     (enabledElement) => enabledElement && contains(element, enabledElement)
  5434   );
  6809   );
  5435 }
  6810 }
  5436 function _72E5EPFF_walkTreeOutside(id, elements, callback, ancestorCallback) {
  6811 function AOUGVQZ3_walkTreeOutside(id, elements, callback, ancestorCallback) {
  5437   for (let element of elements) {
  6812   for (let element of elements) {
  5438     if (!(element == null ? void 0 : element.isConnected))
  6813     if (!(element == null ? void 0 : element.isConnected)) continue;
  5439       continue;
       
  5440     const hasAncestorAlready = elements.some((maybeAncestor) => {
  6814     const hasAncestorAlready = elements.some((maybeAncestor) => {
  5441       if (!maybeAncestor)
  6815       if (!maybeAncestor) return false;
  5442         return false;
  6816       if (maybeAncestor === element) return false;
  5443       if (maybeAncestor === element)
       
  5444         return false;
       
  5445       return maybeAncestor.contains(element);
  6817       return maybeAncestor.contains(element);
  5446     });
  6818     });
  5447     const doc = DLOEKDPY_getDocument(element);
  6819     const doc = getDocument(element);
  5448     const originalElement = element;
  6820     const originalElement = element;
  5449     while (element.parentElement && element !== doc.body) {
  6821     while (element.parentElement && element !== doc.body) {
  5450       ancestorCallback == null ? void 0 : ancestorCallback(element.parentElement, originalElement);
  6822       ancestorCallback == null ? void 0 : ancestorCallback(element.parentElement, originalElement);
  5451       if (!hasAncestorAlready) {
  6823       if (!hasAncestorAlready) {
  5452         for (const child of element.parentElement.children) {
  6824         for (const child of element.parentElement.children) {
  5458       element = element.parentElement;
  6830       element = element.parentElement;
  5459     }
  6831     }
  5460   }
  6832   }
  5461 }
  6833 }
  5462 function createWalkTreeSnapshot(id, elements) {
  6834 function createWalkTreeSnapshot(id, elements) {
  5463   const { body } = DLOEKDPY_getDocument(elements[0]);
  6835   const { body } = getDocument(elements[0]);
  5464   const cleanups = [];
  6836   const cleanups = [];
  5465   const markElement = (element) => {
  6837   const markElement = (element) => {
  5466     cleanups.push(setProperty(element, getSnapshotPropertyName(id), true));
  6838     cleanups.push(setProperty(element, getSnapshotPropertyName(id), true));
  5467   };
  6839   };
  5468   _72E5EPFF_walkTreeOutside(id, elements, markElement);
  6840   AOUGVQZ3_walkTreeOutside(id, elements, markElement);
  5469   return chain(
  6841   return chain(setProperty(body, getSnapshotPropertyName(id), true), () => {
  5470     setProperty(body, getSnapshotPropertyName(id), true),
  6842     for (const cleanup of cleanups) {
  5471     () => cleanups.forEach((fn) => fn())
  6843       cleanup();
  5472   );
  6844     }
  5473 }
  6845   });
  5474 
  6846 }
  5475 
  6847 
  5476 
  6848 
  5477 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/TL67WVI6.js
  6849 
       
  6850 ;// ./node_modules/@ariakit/react-core/esm/__chunks/2PGBN2Y4.js
  5478 "use client";
  6851 "use client";
  5479 
  6852 
  5480 
  6853 
  5481 
  6854 
  5482 
  6855 
  5497     setProperty(element, getPropertyName(id, true), true)
  6870     setProperty(element, getPropertyName(id, true), true)
  5498   );
  6871   );
  5499 }
  6872 }
  5500 function isElementMarked(element, id) {
  6873 function isElementMarked(element, id) {
  5501   const ancestorProperty = getPropertyName(id, true);
  6874   const ancestorProperty = getPropertyName(id, true);
  5502   if (element[ancestorProperty])
  6875   if (element[ancestorProperty]) return true;
  5503     return true;
       
  5504   const elementProperty = getPropertyName(id);
  6876   const elementProperty = getPropertyName(id);
  5505   do {
  6877   do {
  5506     if (element[elementProperty])
  6878     if (element[elementProperty]) return true;
  5507       return true;
  6879     if (!element.parentElement) return false;
  5508     if (!element.parentElement)
       
  5509       return false;
       
  5510     element = element.parentElement;
  6880     element = element.parentElement;
  5511   } while (true);
  6881   } while (true);
  5512 }
  6882 }
  5513 function markTreeOutside(id, elements) {
  6883 function markTreeOutside(id, elements) {
  5514   const cleanups = [];
  6884   const cleanups = [];
  5515   const ids = elements.map((el) => el == null ? void 0 : el.id);
  6885   const ids = elements.map((el) => el == null ? void 0 : el.id);
  5516   _72E5EPFF_walkTreeOutside(
  6886   AOUGVQZ3_walkTreeOutside(
  5517     id,
  6887     id,
  5518     elements,
  6888     elements,
  5519     (element) => {
  6889     (element) => {
  5520       if (MKDDWKFK_isBackdrop(element, ...ids))
  6890       if (_63XF7ACK_isBackdrop(element, ...ids)) return;
  5521         return;
       
  5522       cleanups.unshift(markElement(element, id));
  6891       cleanups.unshift(markElement(element, id));
  5523     },
  6892     },
  5524     (ancestor, element) => {
  6893     (ancestor, element) => {
  5525       const isAnotherDialogAncestor = element.hasAttribute("data-dialog") && element.id !== id;
  6894       const isAnotherDialogAncestor = element.hasAttribute("data-dialog") && element.id !== id;
  5526       if (isAnotherDialogAncestor)
  6895       if (isAnotherDialogAncestor) return;
  5527         return;
       
  5528       cleanups.unshift(markAncestor(ancestor, id));
  6896       cleanups.unshift(markAncestor(ancestor, id));
  5529     }
  6897     }
  5530   );
  6898   );
  5531   const restoreAccessibilityTree = () => {
  6899   const restoreAccessibilityTree = () => {
  5532     cleanups.forEach((fn) => fn());
  6900     for (const cleanup of cleanups) {
       
  6901       cleanup();
       
  6902     }
  5533   };
  6903   };
  5534   return restoreAccessibilityTree;
  6904   return restoreAccessibilityTree;
  5535 }
  6905 }
  5536 
  6906 
  5537 
  6907 
  5538 
  6908 
  5539 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/CLE7NTOY.js
  6909 ;// external "ReactDOM"
       
  6910 const external_ReactDOM_namespaceObject = window["ReactDOM"];
       
  6911 ;// ./node_modules/@ariakit/react-core/esm/__chunks/VGCJ63VH.js
  5540 "use client";
  6912 "use client";
  5541 
  6913 
  5542 
  6914 
  5543 
  6915 
  5544 
  6916 
  5547 
  6919 
  5548 // src/disclosure/disclosure-content.tsx
  6920 // src/disclosure/disclosure-content.tsx
  5549 
  6921 
  5550 
  6922 
  5551 
  6923 
       
  6924 
       
  6925 var VGCJ63VH_TagName = "div";
  5552 function afterTimeout(timeoutMs, cb) {
  6926 function afterTimeout(timeoutMs, cb) {
  5553   const timeoutId = setTimeout(cb, timeoutMs);
  6927   const timeoutId = setTimeout(cb, timeoutMs);
  5554   return () => clearTimeout(timeoutId);
  6928   return () => clearTimeout(timeoutId);
  5555 }
  6929 }
  5556 function CLE7NTOY_afterPaint(cb) {
  6930 function VGCJ63VH_afterPaint(cb) {
  5557   let raf = requestAnimationFrame(() => {
  6931   let raf = requestAnimationFrame(() => {
  5558     raf = requestAnimationFrame(cb);
  6932     raf = requestAnimationFrame(cb);
  5559   });
  6933   });
  5560   return () => cancelAnimationFrame(raf);
  6934   return () => cancelAnimationFrame(raf);
  5561 }
  6935 }
  5562 function parseCSSTime(...times) {
  6936 function parseCSSTime(...times) {
  5563   return times.join(", ").split(", ").reduce((longestTime, currentTimeString) => {
  6937   return times.join(", ").split(", ").reduce((longestTime, currentTimeString) => {
  5564     const currentTime = parseFloat(currentTimeString || "0s") * 1e3;
  6938     const multiplier = currentTimeString.endsWith("ms") ? 1 : 1e3;
  5565     if (currentTime > longestTime)
  6939     const currentTime = Number.parseFloat(currentTimeString || "0s") * multiplier;
  5566       return currentTime;
  6940     if (currentTime > longestTime) return currentTime;
  5567     return longestTime;
  6941     return longestTime;
  5568   }, 0);
  6942   }, 0);
  5569 }
  6943 }
  5570 function isHidden(mounted, hidden, alwaysVisible) {
  6944 function isHidden(mounted, hidden, alwaysVisible) {
  5571   return !alwaysVisible && hidden !== false && (!mounted || !!hidden);
  6945   return !alwaysVisible && hidden !== false && (!mounted || !!hidden);
  5572 }
  6946 }
  5573 var useDisclosureContent = createHook(
  6947 var useDisclosureContent = createHook(function useDisclosureContent2(_a) {
  5574   (_a) => {
  6948   var _b = _a, { store, alwaysVisible } = _b, props = __objRest(_b, ["store", "alwaysVisible"]);
  5575     var _b = _a, { store, alwaysVisible } = _b, props = __objRest(_b, ["store", "alwaysVisible"]);
  6949   const context = useDisclosureProviderContext();
  5576     const context = useDisclosureProviderContext();
  6950   store = store || context;
  5577     store = store || context;
  6951   invariant(
  5578     invariant(
  6952     store,
  5579       store,
  6953      false && 0
  5580        false && 0
  6954   );
       
  6955   const ref = (0,external_React_.useRef)(null);
       
  6956   const id = useId(props.id);
       
  6957   const [transition, setTransition] = (0,external_React_.useState)(null);
       
  6958   const open = store.useState("open");
       
  6959   const mounted = store.useState("mounted");
       
  6960   const animated = store.useState("animated");
       
  6961   const contentElement = store.useState("contentElement");
       
  6962   const otherElement = useStoreState(store.disclosure, "contentElement");
       
  6963   useSafeLayoutEffect(() => {
       
  6964     if (!ref.current) return;
       
  6965     store == null ? void 0 : store.setContentElement(ref.current);
       
  6966   }, [store]);
       
  6967   useSafeLayoutEffect(() => {
       
  6968     let previousAnimated;
       
  6969     store == null ? void 0 : store.setState("animated", (animated2) => {
       
  6970       previousAnimated = animated2;
       
  6971       return true;
       
  6972     });
       
  6973     return () => {
       
  6974       if (previousAnimated === void 0) return;
       
  6975       store == null ? void 0 : store.setState("animated", previousAnimated);
       
  6976     };
       
  6977   }, [store]);
       
  6978   useSafeLayoutEffect(() => {
       
  6979     if (!animated) return;
       
  6980     if (!(contentElement == null ? void 0 : contentElement.isConnected)) {
       
  6981       setTransition(null);
       
  6982       return;
       
  6983     }
       
  6984     return VGCJ63VH_afterPaint(() => {
       
  6985       setTransition(open ? "enter" : mounted ? "leave" : null);
       
  6986     });
       
  6987   }, [animated, contentElement, open, mounted]);
       
  6988   useSafeLayoutEffect(() => {
       
  6989     if (!store) return;
       
  6990     if (!animated) return;
       
  6991     if (!transition) return;
       
  6992     if (!contentElement) return;
       
  6993     const stopAnimation = () => store == null ? void 0 : store.setState("animating", false);
       
  6994     const stopAnimationSync = () => (0,external_ReactDOM_namespaceObject.flushSync)(stopAnimation);
       
  6995     if (transition === "leave" && open) return;
       
  6996     if (transition === "enter" && !open) return;
       
  6997     if (typeof animated === "number") {
       
  6998       const timeout2 = animated;
       
  6999       return afterTimeout(timeout2, stopAnimationSync);
       
  7000     }
       
  7001     const {
       
  7002       transitionDuration,
       
  7003       animationDuration,
       
  7004       transitionDelay,
       
  7005       animationDelay
       
  7006     } = getComputedStyle(contentElement);
       
  7007     const {
       
  7008       transitionDuration: transitionDuration2 = "0",
       
  7009       animationDuration: animationDuration2 = "0",
       
  7010       transitionDelay: transitionDelay2 = "0",
       
  7011       animationDelay: animationDelay2 = "0"
       
  7012     } = otherElement ? getComputedStyle(otherElement) : {};
       
  7013     const delay = parseCSSTime(
       
  7014       transitionDelay,
       
  7015       animationDelay,
       
  7016       transitionDelay2,
       
  7017       animationDelay2
  5581     );
  7018     );
  5582     const id = useId(props.id);
  7019     const duration = parseCSSTime(
  5583     const [transition, setTransition] = (0,external_React_.useState)(null);
  7020       transitionDuration,
  5584     const open = store.useState("open");
  7021       animationDuration,
  5585     const mounted = store.useState("mounted");
  7022       transitionDuration2,
  5586     const animated = store.useState("animated");
  7023       animationDuration2
  5587     const contentElement = store.useState("contentElement");
  7024     );
  5588     useSafeLayoutEffect(() => {
  7025     const timeout = delay + duration;
  5589       if (!animated)
  7026     if (!timeout) {
  5590         return;
  7027       if (transition === "enter") {
  5591       if (!(contentElement == null ? void 0 : contentElement.isConnected)) {
  7028         store.setState("animated", false);
  5592         setTransition(null);
       
  5593         return;
       
  5594       }
  7029       }
  5595       return CLE7NTOY_afterPaint(() => {
  7030       stopAnimation();
  5596         setTransition(open ? "enter" : "leave");
  7031       return;
  5597       });
  7032     }
  5598     }, [animated, contentElement, open]);
  7033     const frameRate = 1e3 / 60;
  5599     useSafeLayoutEffect(() => {
  7034     const maxTimeout = Math.max(timeout - frameRate, 0);
  5600       if (!store)
  7035     return afterTimeout(maxTimeout, stopAnimationSync);
  5601         return;
  7036   }, [store, animated, contentElement, otherElement, open, transition]);
  5602       if (!animated)
  7037   props = useWrapElement(
  5603         return;
  7038     props,
  5604       if (!contentElement)
  7039     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: element }),
  5605         return;
  7040     [store]
  5606       if (!transition)
  7041   );
  5607         return;
  7042   const hidden = isHidden(mounted, props.hidden, alwaysVisible);
  5608       if (transition === "enter" && !open)
  7043   const styleProp = props.style;
  5609         return;
  7044   const style = (0,external_React_.useMemo)(() => {
  5610       if (transition === "leave" && open)
  7045     if (hidden) {
  5611         return;
  7046       return _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, styleProp), { display: "none" });
  5612       if (typeof animated === "number") {
  7047     }
  5613         const timeoutMs2 = animated;
  7048     return styleProp;
  5614         return afterTimeout(timeoutMs2, store.stopAnimation);
  7049   }, [hidden, styleProp]);
  5615       }
  7050   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  5616       const {
  7051     id,
  5617         transitionDuration,
  7052     "data-open": open || void 0,
  5618         animationDuration,
  7053     "data-enter": transition === "enter" || void 0,
  5619         transitionDelay,
  7054     "data-leave": transition === "leave" || void 0,
  5620         animationDelay
  7055     hidden
  5621       } = getComputedStyle(contentElement);
  7056   }, props), {
  5622       const delay = parseCSSTime(transitionDelay, animationDelay);
  7057     ref: useMergeRefs(id ? store.setContentElement : null, ref, props.ref),
  5623       const duration = parseCSSTime(transitionDuration, animationDuration);
  7058     style
  5624       const timeoutMs = delay + duration;
  7059   });
  5625       if (!timeoutMs)
  7060   return removeUndefinedValues(props);
  5626         return;
  7061 });
  5627       return afterTimeout(timeoutMs, store.stopAnimation);
  7062 var DisclosureContentImpl = forwardRef2(function DisclosureContentImpl2(props) {
  5628     }, [store, animated, contentElement, open, transition]);
  7063   const htmlProps = useDisclosureContent(props);
  5629     props = useWrapElement(
  7064   return LMDWO4NN_createElement(VGCJ63VH_TagName, htmlProps);
  5630       props,
  7065 });
  5631       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: element }),
  7066 var DisclosureContent = forwardRef2(function DisclosureContent2(_a) {
  5632       [store]
  7067   var _b = _a, {
  5633     );
  7068     unmountOnHide
  5634     const hidden = isHidden(mounted, props.hidden, alwaysVisible);
  7069   } = _b, props = __objRest(_b, [
  5635     const style = hidden ? _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props.style), { display: "none" }) : props.style;
  7070     "unmountOnHide"
  5636     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
  7071   ]);
  5637       id,
  7072   const context = useDisclosureProviderContext();
  5638       "data-enter": transition === "enter" ? "" : void 0,
  7073   const store = props.store || context;
  5639       "data-leave": transition === "leave" ? "" : void 0,
  7074   const mounted = useStoreState(
  5640       hidden
  7075     store,
  5641     }, props), {
  7076     (state) => !unmountOnHide || (state == null ? void 0 : state.mounted)
  5642       ref: useMergeRefs(id ? store.setContentElement : null, props.ref),
  7077   );
  5643       style
  7078   if (mounted === false) return null;
  5644     });
  7079   return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DisclosureContentImpl, _3YLGPPWQ_spreadValues({}, props));
  5645     return props;
  7080 });
  5646   }
  7081 
  5647 );
  7082 
  5648 var DisclosureContentImpl = createComponent(
  7083 
  5649   (props) => {
  7084 ;// ./node_modules/@ariakit/react-core/esm/__chunks/63FEHJZV.js
  5650     const htmlProps = useDisclosureContent(props);
       
  5651     return _3ORBWXWF_createElement("div", htmlProps);
       
  5652   }
       
  5653 );
       
  5654 var DisclosureContent = createComponent(
       
  5655   (_a) => {
       
  5656     var _b = _a, { unmountOnHide } = _b, props = __objRest(_b, ["unmountOnHide"]);
       
  5657     const context = useDisclosureProviderContext();
       
  5658     const store = props.store || context;
       
  5659     const mounted = useStoreState(
       
  5660       store,
       
  5661       (state) => !unmountOnHide || (state == null ? void 0 : state.mounted)
       
  5662     );
       
  5663     if (mounted === false)
       
  5664       return null;
       
  5665     return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DisclosureContentImpl, _4R3V3JGP_spreadValues({}, props));
       
  5666   }
       
  5667 );
       
  5668 if (false) {}
       
  5669 
       
  5670 
       
  5671 
       
  5672 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/LWHPHW7Q.js
       
  5673 "use client";
  7085 "use client";
       
  7086 
  5674 
  7087 
  5675 
  7088 
  5676 
  7089 
  5677 
  7090 
  5678 
  7091 
  5682 
  7095 
  5683 
  7096 
  5684 function DialogBackdrop({
  7097 function DialogBackdrop({
  5685   store,
  7098   store,
  5686   backdrop,
  7099   backdrop,
  5687   backdropProps,
       
  5688   alwaysVisible,
  7100   alwaysVisible,
  5689   hidden
  7101   hidden
  5690 }) {
  7102 }) {
  5691   const ref = (0,external_React_.useRef)(null);
  7103   const ref = (0,external_React_.useRef)(null);
  5692   const disclosure = useDisclosureStore({ disclosure: store });
  7104   const disclosure = useDisclosureStore({ disclosure: store });
  5693   const contentElement = store.useState("contentElement");
  7105   const contentElement = useStoreState(store, "contentElement");
  5694   useSafeLayoutEffect(() => {
  7106   (0,external_React_.useEffect)(() => {
  5695     const backdrop2 = ref.current;
  7107     const backdrop2 = ref.current;
  5696     const dialog = contentElement;
  7108     const dialog = contentElement;
  5697     if (!backdrop2)
  7109     if (!backdrop2) return;
  5698       return;
  7110     if (!dialog) return;
  5699     if (!dialog)
       
  5700       return;
       
  5701     backdrop2.style.zIndex = getComputedStyle(dialog).zIndex;
  7111     backdrop2.style.zIndex = getComputedStyle(dialog).zIndex;
  5702   }, [contentElement]);
  7112   }, [contentElement]);
  5703   useSafeLayoutEffect(() => {
  7113   useSafeLayoutEffect(() => {
  5704     const id = contentElement == null ? void 0 : contentElement.id;
  7114     const id = contentElement == null ? void 0 : contentElement.id;
  5705     if (!id)
  7115     if (!id) return;
  5706       return;
       
  5707     const backdrop2 = ref.current;
  7116     const backdrop2 = ref.current;
  5708     if (!backdrop2)
  7117     if (!backdrop2) return;
  5709       return;
       
  5710     return markAncestor(backdrop2, id);
  7118     return markAncestor(backdrop2, id);
  5711   }, [contentElement]);
  7119   }, [contentElement]);
  5712   if (hidden != null) {
  7120   const props = useDisclosureContent({
  5713     backdropProps = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, backdropProps), { hidden });
  7121     ref,
  5714   }
       
  5715   const props = useDisclosureContent(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
  5716     store: disclosure,
  7122     store: disclosure,
  5717     role: "presentation",
  7123     role: "presentation",
  5718     "data-backdrop": (contentElement == null ? void 0 : contentElement.id) || "",
  7124     "data-backdrop": (contentElement == null ? void 0 : contentElement.id) || "",
  5719     alwaysVisible
  7125     alwaysVisible,
  5720   }, backdropProps), {
  7126     hidden: hidden != null ? hidden : void 0,
  5721     ref: useMergeRefs(backdropProps == null ? void 0 : backdropProps.ref, ref),
  7127     style: {
  5722     style: _4R3V3JGP_spreadValues({
       
  5723       position: "fixed",
  7128       position: "fixed",
  5724       top: 0,
  7129       top: 0,
  5725       right: 0,
  7130       right: 0,
  5726       bottom: 0,
  7131       bottom: 0,
  5727       left: 0
  7132       left: 0
  5728     }, backdropProps == null ? void 0 : backdropProps.style)
  7133     }
  5729   }));
  7134   });
  5730   if (!backdrop)
  7135   if (!backdrop) return null;
  5731     return null;
       
  5732   if ((0,external_React_.isValidElement)(backdrop)) {
  7136   if ((0,external_React_.isValidElement)(backdrop)) {
  5733     return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { render: backdrop }));
  7137     return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { render: backdrop }));
  5734   }
  7138   }
  5735   const Component = typeof backdrop !== "boolean" ? backdrop : "div";
  7139   const Component = typeof backdrop !== "boolean" ? backdrop : "div";
  5736   return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { render: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {}) }));
  7140   return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { render: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {}) }));
  5737 }
  7141 }
  5738 
  7142 
  5739 
  7143 
  5740 
  7144 
  5741 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/BULCTPRV.js
  7145 ;// ./node_modules/@ariakit/react-core/esm/__chunks/IGR4SXG2.js
       
  7146 "use client";
       
  7147 
       
  7148 // src/dialog/utils/is-focus-trap.ts
       
  7149 function isFocusTrap(element, ...ids) {
       
  7150   if (!element) return false;
       
  7151   const attr = element.getAttribute("data-focus-trap");
       
  7152   if (attr == null) return false;
       
  7153   if (!ids.length) return true;
       
  7154   if (attr === "") return false;
       
  7155   return ids.some((id) => attr === id);
       
  7156 }
       
  7157 
       
  7158 
       
  7159 
       
  7160 ;// ./node_modules/@ariakit/react-core/esm/__chunks/ESSM74HH.js
  5742 "use client";
  7161 "use client";
  5743 
  7162 
  5744 
  7163 
  5745 
  7164 
  5746 
  7165 
  5750 }
  7169 }
  5751 function disableAccessibilityTreeOutside(id, elements) {
  7170 function disableAccessibilityTreeOutside(id, elements) {
  5752   const cleanups = [];
  7171   const cleanups = [];
  5753   const ids = elements.map((el) => el == null ? void 0 : el.id);
  7172   const ids = elements.map((el) => el == null ? void 0 : el.id);
  5754   walkTreeOutside(id, elements, (element) => {
  7173   walkTreeOutside(id, elements, (element) => {
  5755     if (isBackdrop(element, ...ids))
  7174     if (isBackdrop(element, ...ids)) return;
  5756       return;
       
  5757     cleanups.unshift(hideElementFromAccessibilityTree(element));
  7175     cleanups.unshift(hideElementFromAccessibilityTree(element));
  5758   });
  7176   });
  5759   const restoreAccessibilityTree = () => {
  7177   const restoreAccessibilityTree = () => {
  5760     cleanups.forEach((fn) => fn());
  7178     for (const cleanup of cleanups) {
       
  7179       cleanup();
       
  7180     }
  5761   };
  7181   };
  5762   return restoreAccessibilityTree;
  7182   return restoreAccessibilityTree;
  5763 }
  7183 }
  5764 
  7184 
  5765 
  7185 
  5766 
  7186 
  5767 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/677M2CI3.js
  7187 ;// ./node_modules/@ariakit/react-core/esm/__chunks/677M2CI3.js
  5768 "use client";
  7188 "use client";
  5769 
  7189 
  5770 // src/dialog/utils/supports-inert.ts
  7190 // src/dialog/utils/supports-inert.ts
  5771 function supportsInert() {
  7191 function supportsInert() {
  5772   return "inert" in HTMLElement.prototype;
  7192   return "inert" in HTMLElement.prototype;
  5773 }
  7193 }
  5774 
  7194 
  5775 
  7195 
  5776 
  7196 
  5777 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/TQYOGOE2.js
  7197 ;// ./node_modules/@ariakit/react-core/esm/__chunks/KZAQFFOU.js
  5778 "use client";
  7198 "use client";
  5779 
  7199 
  5780 
  7200 
  5781 
  7201 
  5782 
  7202 
  5783 
  7203 
  5784 
  7204 
       
  7205 
  5785 // src/dialog/utils/disable-tree.ts
  7206 // src/dialog/utils/disable-tree.ts
  5786 
  7207 
  5787 
  7208 
  5788 
  7209 
  5789 function disableTree(element, ignoredElements) {
  7210 function disableTree(element, ignoredElements) {
  5790   if (!("style" in element))
  7211   if (!("style" in element)) return noop;
  5791     return noop;
       
  5792   if (supportsInert()) {
  7212   if (supportsInert()) {
  5793     return setProperty(element, "inert", true);
  7213     return setProperty(element, "inert", true);
  5794   }
  7214   }
  5795   const tabbableElements = getAllTabbableIn(element, true);
  7215   const tabbableElements = getAllTabbableIn(element, true);
  5796   const enableElements = tabbableElements.map((element2) => {
  7216   const enableElements = tabbableElements.map((element2) => {
  5797     if (ignoredElements == null ? void 0 : ignoredElements.some((el) => el && contains(el, element2)))
  7217     if (ignoredElements == null ? void 0 : ignoredElements.some((el) => el && contains(el, element2))) return noop;
  5798       return noop;
  7218     const restoreFocusMethod = orchestrate(element2, "focus", () => {
  5799     return setAttribute(element2, "tabindex", "-1");
  7219       element2.focus = noop;
       
  7220       return () => {
       
  7221         delete element2.focus;
       
  7222       };
       
  7223     });
       
  7224     return chain(setAttribute(element2, "tabindex", "-1"), restoreFocusMethod);
  5800   });
  7225   });
  5801   return chain(
  7226   return chain(
  5802     ...enableElements,
  7227     ...enableElements,
  5803     hideElementFromAccessibilityTree(element),
  7228     hideElementFromAccessibilityTree(element),
  5804     assignStyle(element, {
  7229     assignStyle(element, {
  5809   );
  7234   );
  5810 }
  7235 }
  5811 function disableTreeOutside(id, elements) {
  7236 function disableTreeOutside(id, elements) {
  5812   const cleanups = [];
  7237   const cleanups = [];
  5813   const ids = elements.map((el) => el == null ? void 0 : el.id);
  7238   const ids = elements.map((el) => el == null ? void 0 : el.id);
  5814   _72E5EPFF_walkTreeOutside(id, elements, (element) => {
  7239   AOUGVQZ3_walkTreeOutside(
  5815     if (MKDDWKFK_isBackdrop(element, ...ids))
  7240     id,
  5816       return;
  7241     elements,
  5817     cleanups.unshift(disableTree(element, elements));
  7242     (element) => {
  5818   });
  7243       if (_63XF7ACK_isBackdrop(element, ...ids)) return;
       
  7244       if (isFocusTrap(element, ...ids)) return;
       
  7245       cleanups.unshift(disableTree(element, elements));
       
  7246     },
       
  7247     (element) => {
       
  7248       if (!element.hasAttribute("role")) return;
       
  7249       if (elements.some((el) => el && contains(el, element))) return;
       
  7250       cleanups.unshift(setAttribute(element, "role", "none"));
       
  7251     }
       
  7252   );
  5819   const restoreTreeOutside = () => {
  7253   const restoreTreeOutside = () => {
  5820     cleanups.forEach((fn) => fn());
  7254     for (const cleanup of cleanups) {
       
  7255       cleanup();
       
  7256     }
  5821   };
  7257   };
  5822   return restoreTreeOutside;
  7258   return restoreTreeOutside;
  5823 }
  7259 }
  5824 
  7260 
  5825 
  7261 
  5826 
  7262 
  5827 ;// CONCATENATED MODULE: external "ReactDOM"
  7263 ;// ./node_modules/@ariakit/react-core/esm/__chunks/YKJECYU7.js
  5828 const external_ReactDOM_namespaceObject = window["ReactDOM"];
       
  5829 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/CS347UVZ.js
       
  5830 "use client";
  7264 "use client";
  5831 
  7265 
  5832 
  7266 
  5833 // src/dialog/utils/use-root-dialog.ts
  7267 // src/dialog/utils/use-root-dialog.ts
  5834 
  7268 
  5840   contentElement,
  7274   contentElement,
  5841   enabled
  7275   enabled
  5842 }) {
  7276 }) {
  5843   const [updated, retry] = useForceUpdate();
  7277   const [updated, retry] = useForceUpdate();
  5844   const isRootDialog = (0,external_React_.useCallback)(() => {
  7278   const isRootDialog = (0,external_React_.useCallback)(() => {
  5845     if (!enabled)
  7279     if (!enabled) return false;
  5846       return false;
  7280     if (!contentElement) return false;
  5847     if (!contentElement)
  7281     const { body } = getDocument(contentElement);
  5848       return false;
       
  5849     const { body } = DLOEKDPY_getDocument(contentElement);
       
  5850     const id = body.getAttribute(attribute);
  7282     const id = body.getAttribute(attribute);
  5851     return !id || id === contentId;
  7283     return !id || id === contentId;
  5852   }, [updated, enabled, contentElement, attribute, contentId]);
  7284   }, [updated, enabled, contentElement, attribute, contentId]);
  5853   (0,external_React_.useEffect)(() => {
  7285   (0,external_React_.useEffect)(() => {
  5854     if (!enabled)
  7286     if (!enabled) return;
  5855       return;
  7287     if (!contentId) return;
  5856     if (!contentId)
  7288     if (!contentElement) return;
  5857       return;
  7289     const { body } = getDocument(contentElement);
  5858     if (!contentElement)
       
  5859       return;
       
  5860     const { body } = DLOEKDPY_getDocument(contentElement);
       
  5861     if (isRootDialog()) {
  7290     if (isRootDialog()) {
  5862       body.setAttribute(attribute, contentId);
  7291       body.setAttribute(attribute, contentId);
  5863       return () => body.removeAttribute(attribute);
  7292       return () => body.removeAttribute(attribute);
  5864     }
  7293     }
  5865     const observer = new MutationObserver(() => (0,external_ReactDOM_namespaceObject.flushSync)(retry));
  7294     const observer = new MutationObserver(() => (0,external_ReactDOM_namespaceObject.flushSync)(retry));
  5869   return isRootDialog;
  7298   return isRootDialog;
  5870 }
  7299 }
  5871 
  7300 
  5872 
  7301 
  5873 
  7302 
  5874 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/6BJGLK2C.js
  7303 ;// ./node_modules/@ariakit/react-core/esm/__chunks/BGQ3KQ5M.js
  5875 "use client";
  7304 "use client";
  5876 
  7305 
  5877 
  7306 
  5878 
  7307 
  5879 // src/dialog/utils/use-prevent-body-scroll.ts
  7308 // src/dialog/utils/use-prevent-body-scroll.ts
  5892     contentElement,
  7321     contentElement,
  5893     contentId,
  7322     contentId,
  5894     enabled
  7323     enabled
  5895   });
  7324   });
  5896   (0,external_React_.useEffect)(() => {
  7325   (0,external_React_.useEffect)(() => {
  5897     if (!isRootDialog())
  7326     if (!isRootDialog()) return;
  5898       return;
  7327     if (!contentElement) return;
  5899     if (!contentElement)
  7328     const doc = getDocument(contentElement);
  5900       return;
       
  5901     const doc = DLOEKDPY_getDocument(contentElement);
       
  5902     const win = getWindow(contentElement);
  7329     const win = getWindow(contentElement);
  5903     const { documentElement, body } = doc;
  7330     const { documentElement, body } = doc;
  5904     const cssScrollbarWidth = documentElement.style.getPropertyValue("--scrollbar-width");
  7331     const cssScrollbarWidth = documentElement.style.getPropertyValue("--scrollbar-width");
  5905     const scrollbarWidth = cssScrollbarWidth ? parseInt(cssScrollbarWidth) : win.innerWidth - documentElement.clientWidth;
  7332     const scrollbarWidth = cssScrollbarWidth ? Number.parseInt(cssScrollbarWidth) : win.innerWidth - documentElement.clientWidth;
  5906     const setScrollbarWidthProperty = () => setCSSProperty(
  7333     const setScrollbarWidthProperty = () => setCSSProperty(
  5907       documentElement,
  7334       documentElement,
  5908       "--scrollbar-width",
  7335       "--scrollbar-width",
  5909       `${scrollbarWidth}px`
  7336       `${scrollbarWidth}px`
  5910     );
  7337     );
  5927         [paddingProperty]: `${scrollbarWidth}px`
  7354         [paddingProperty]: `${scrollbarWidth}px`
  5928       });
  7355       });
  5929       return () => {
  7356       return () => {
  5930         restoreStyle();
  7357         restoreStyle();
  5931         if (true) {
  7358         if (true) {
  5932           win.scrollTo(scrollX, scrollY);
  7359           win.scrollTo({ left: scrollX, top: scrollY, behavior: "instant" });
  5933         }
  7360         }
  5934       };
  7361       };
  5935     };
  7362     };
  5936     const isIOS = isApple() && !isMac();
  7363     const isIOS = isApple() && !isMac();
  5937     return chain(
  7364     return chain(
  5941   }, [isRootDialog, contentElement]);
  7368   }, [isRootDialog, contentElement]);
  5942 }
  7369 }
  5943 
  7370 
  5944 
  7371 
  5945 
  7372 
  5946 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/IUB2BTEK.js
  7373 ;// ./node_modules/@ariakit/react-core/esm/__chunks/TOU75OXH.js
  5947 "use client";
  7374 "use client";
  5948 
  7375 
  5949 
  7376 
  5950 // src/dialog/utils/use-nested-dialogs.tsx
  7377 // src/dialog/utils/use-nested-dialogs.tsx
  5951 
  7378 
  5967     [context]
  7394     [context]
  5968   );
  7395   );
  5969   useSafeLayoutEffect(() => {
  7396   useSafeLayoutEffect(() => {
  5970     return sync(store, ["open", "contentElement"], (state) => {
  7397     return sync(store, ["open", "contentElement"], (state) => {
  5971       var _a;
  7398       var _a;
  5972       if (!state.open)
  7399       if (!state.open) return;
  5973         return;
  7400       if (!state.contentElement) return;
  5974       if (!state.contentElement)
       
  5975         return;
       
  5976       return (_a = context.add) == null ? void 0 : _a.call(context, store);
  7401       return (_a = context.add) == null ? void 0 : _a.call(context, store);
  5977     });
  7402     });
  5978   }, [store, context]);
  7403   }, [store, context]);
  5979   const providerValue = (0,external_React_.useMemo)(() => ({ store, add }), [store, add]);
  7404   const providerValue = (0,external_React_.useMemo)(() => ({ store, add }), [store, add]);
  5980   const wrapElement = (0,external_React_.useCallback)(
  7405   const wrapElement = (0,external_React_.useCallback)(
  5984   return { wrapElement, nestedDialogs: dialogs };
  7409   return { wrapElement, nestedDialogs: dialogs };
  5985 }
  7410 }
  5986 
  7411 
  5987 
  7412 
  5988 
  7413 
  5989 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/OOBDFMJL.js
  7414 ;// ./node_modules/@ariakit/react-core/esm/__chunks/HLTQOHKZ.js
  5990 "use client";
  7415 "use client";
  5991 
  7416 
  5992 // src/dialog/utils/use-previous-mouse-down-ref.ts
  7417 // src/dialog/utils/use-previous-mouse-down-ref.ts
  5993 
  7418 
  5994 
  7419 
  6007   return previousMouseDownRef;
  7432   return previousMouseDownRef;
  6008 }
  7433 }
  6009 
  7434 
  6010 
  7435 
  6011 
  7436 
  6012 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/XHJGS6Z5.js
  7437 ;// ./node_modules/@ariakit/react-core/esm/__chunks/WBDYNH73.js
  6013 "use client";
  7438 "use client";
  6014 
  7439 
  6015 
  7440 
  6016 
  7441 
  6017 
  7442 
  6018 
  7443 
       
  7444 
       
  7445 
  6019 // src/dialog/utils/use-hide-on-interact-outside.ts
  7446 // src/dialog/utils/use-hide-on-interact-outside.ts
  6020 
  7447 
  6021 
  7448 
  6022 
  7449 
  6023 function isInDocument(target) {
  7450 function isInDocument(target) {
  6024   if (target.tagName === "HTML")
  7451   if (target.tagName === "HTML") return true;
  6025     return true;
  7452   return contains(getDocument(target).body, target);
  6026   return contains(DLOEKDPY_getDocument(target).body, target);
       
  6027 }
  7453 }
  6028 function isDisclosure(disclosure, target) {
  7454 function isDisclosure(disclosure, target) {
  6029   if (!disclosure)
  7455   if (!disclosure) return false;
  6030     return false;
  7456   if (contains(disclosure, target)) return true;
  6031   if (contains(disclosure, target))
       
  6032     return true;
       
  6033   const activeId = target.getAttribute("aria-activedescendant");
  7457   const activeId = target.getAttribute("aria-activedescendant");
  6034   if (activeId) {
  7458   if (activeId) {
  6035     const activeElement = DLOEKDPY_getDocument(disclosure).getElementById(activeId);
  7459     const activeElement = getDocument(disclosure).getElementById(activeId);
  6036     if (activeElement) {
  7460     if (activeElement) {
  6037       return contains(disclosure, activeElement);
  7461       return contains(disclosure, activeElement);
  6038     }
  7462     }
  6039   }
  7463   }
  6040   return false;
  7464   return false;
  6041 }
  7465 }
  6042 function isMouseEventOnDialog(event, dialog) {
  7466 function isMouseEventOnDialog(event, dialog) {
  6043   if (!("clientY" in event))
  7467   if (!("clientY" in event)) return false;
  6044     return false;
       
  6045   const rect = dialog.getBoundingClientRect();
  7468   const rect = dialog.getBoundingClientRect();
  6046   if (rect.width === 0 || rect.height === 0)
  7469   if (rect.width === 0 || rect.height === 0) return false;
  6047     return false;
       
  6048   return rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width;
  7470   return rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width;
  6049 }
  7471 }
  6050 function useEventOutside({
  7472 function useEventOutside({
  6051   store,
  7473   store,
  6052   type,
  7474   type,
  6053   listener,
  7475   listener,
  6054   capture,
  7476   capture,
  6055   domReady
  7477   domReady
  6056 }) {
  7478 }) {
  6057   const callListener = useEvent(listener);
  7479   const callListener = useEvent(listener);
  6058   const open = store.useState("open");
  7480   const open = useStoreState(store, "open");
  6059   const focusedRef = (0,external_React_.useRef)(false);
  7481   const focusedRef = (0,external_React_.useRef)(false);
  6060   useSafeLayoutEffect(() => {
  7482   useSafeLayoutEffect(() => {
  6061     if (!open)
  7483     if (!open) return;
  6062       return;
  7484     if (!domReady) return;
  6063     if (!domReady)
       
  6064       return;
       
  6065     const { contentElement } = store.getState();
  7485     const { contentElement } = store.getState();
  6066     if (!contentElement)
  7486     if (!contentElement) return;
  6067       return;
       
  6068     const onFocus = () => {
  7487     const onFocus = () => {
  6069       focusedRef.current = true;
  7488       focusedRef.current = true;
  6070     };
  7489     };
  6071     contentElement.addEventListener("focusin", onFocus, true);
  7490     contentElement.addEventListener("focusin", onFocus, true);
  6072     return () => contentElement.removeEventListener("focusin", onFocus, true);
  7491     return () => contentElement.removeEventListener("focusin", onFocus, true);
  6073   }, [store, open, domReady]);
  7492   }, [store, open, domReady]);
  6074   (0,external_React_.useEffect)(() => {
  7493   (0,external_React_.useEffect)(() => {
  6075     if (!open)
  7494     if (!open) return;
  6076       return;
       
  6077     const onEvent = (event) => {
  7495     const onEvent = (event) => {
  6078       const { contentElement, disclosureElement } = store.getState();
  7496       const { contentElement, disclosureElement } = store.getState();
  6079       const target = event.target;
  7497       const target = event.target;
  6080       if (!contentElement)
  7498       if (!contentElement) return;
  6081         return;
  7499       if (!target) return;
  6082       if (!target)
  7500       if (!isInDocument(target)) return;
  6083         return;
  7501       if (contains(contentElement, target)) return;
  6084       if (!isInDocument(target))
  7502       if (isDisclosure(disclosureElement, target)) return;
  6085         return;
  7503       if (target.hasAttribute("data-focus-trap")) return;
  6086       if (contains(contentElement, target))
  7504       if (isMouseEventOnDialog(event, contentElement)) return;
  6087         return;
       
  6088       if (isDisclosure(disclosureElement, target))
       
  6089         return;
       
  6090       if (target.hasAttribute("data-focus-trap"))
       
  6091         return;
       
  6092       if (isMouseEventOnDialog(event, contentElement))
       
  6093         return;
       
  6094       const focused = focusedRef.current;
  7505       const focused = focusedRef.current;
  6095       if (focused && !isElementMarked(target, contentElement.id))
  7506       if (focused && !isElementMarked(target, contentElement.id)) return;
  6096         return;
  7507       if (isSafariFocusAncestor(target)) return;
  6097       callListener(event);
  7508       callListener(event);
  6098     };
  7509     };
  6099     return addGlobalEventListener(type, onEvent, capture);
  7510     return addGlobalEventListener(type, onEvent, capture);
  6100   }, [open, capture]);
  7511   }, [open, capture]);
  6101 }
  7512 }
  6104     return hideOnInteractOutside(event);
  7515     return hideOnInteractOutside(event);
  6105   }
  7516   }
  6106   return !!hideOnInteractOutside;
  7517   return !!hideOnInteractOutside;
  6107 }
  7518 }
  6108 function useHideOnInteractOutside(store, hideOnInteractOutside, domReady) {
  7519 function useHideOnInteractOutside(store, hideOnInteractOutside, domReady) {
  6109   const open = store.useState("open");
  7520   const open = useStoreState(store, "open");
  6110   const previousMouseDownRef = usePreviousMouseDownRef(open);
  7521   const previousMouseDownRef = usePreviousMouseDownRef(open);
  6111   const props = { store, domReady, capture: true };
  7522   const props = { store, domReady, capture: true };
  6112   useEventOutside(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
  7523   useEventOutside(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  6113     type: "click",
  7524     type: "click",
  6114     listener: (event) => {
  7525     listener: (event) => {
  6115       const { contentElement } = store.getState();
  7526       const { contentElement } = store.getState();
  6116       const previousMouseDown = previousMouseDownRef.current;
  7527       const previousMouseDown = previousMouseDownRef.current;
  6117       if (!previousMouseDown)
  7528       if (!previousMouseDown) return;
  6118         return;
  7529       if (!isVisible(previousMouseDown)) return;
  6119       if (!isVisible(previousMouseDown))
  7530       if (!isElementMarked(previousMouseDown, contentElement == null ? void 0 : contentElement.id)) return;
  6120         return;
  7531       if (!shouldHideOnInteractOutside(hideOnInteractOutside, event)) return;
  6121       if (!isElementMarked(previousMouseDown, contentElement == null ? void 0 : contentElement.id))
       
  6122         return;
       
  6123       if (!shouldHideOnInteractOutside(hideOnInteractOutside, event))
       
  6124         return;
       
  6125       store.hide();
  7532       store.hide();
  6126     }
  7533     }
  6127   }));
  7534   }));
  6128   useEventOutside(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
  7535   useEventOutside(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  6129     type: "focusin",
  7536     type: "focusin",
  6130     listener: (event) => {
  7537     listener: (event) => {
  6131       const { contentElement } = store.getState();
  7538       const { contentElement } = store.getState();
  6132       if (!contentElement)
  7539       if (!contentElement) return;
  6133         return;
  7540       if (event.target === getDocument(contentElement)) return;
  6134       if (event.target === DLOEKDPY_getDocument(contentElement))
  7541       if (!shouldHideOnInteractOutside(hideOnInteractOutside, event)) return;
  6135         return;
       
  6136       if (!shouldHideOnInteractOutside(hideOnInteractOutside, event))
       
  6137         return;
       
  6138       store.hide();
  7542       store.hide();
  6139     }
  7543     }
  6140   }));
  7544   }));
  6141   useEventOutside(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
  7545   useEventOutside(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  6142     type: "contextmenu",
  7546     type: "contextmenu",
  6143     listener: (event) => {
  7547     listener: (event) => {
  6144       if (!shouldHideOnInteractOutside(hideOnInteractOutside, event))
  7548       if (!shouldHideOnInteractOutside(hideOnInteractOutside, event)) return;
  6145         return;
       
  6146       store.hide();
  7549       store.hide();
  6147     }
  7550     }
  6148   }));
  7551   }));
  6149 }
  7552 }
  6150 
  7553 
  6151 
  7554 
  6152 
  7555 
  6153 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/6GXEOXGT.js
  7556 ;// ./node_modules/@ariakit/react-core/esm/__chunks/6GXEOXGT.js
  6154 "use client";
  7557 "use client";
  6155 
  7558 
  6156 // src/dialog/utils/prepend-hidden-dismiss.ts
  7559 // src/dialog/utils/prepend-hidden-dismiss.ts
  6157 
  7560 
  6158 function prependHiddenDismiss(container, onClick) {
  7561 function prependHiddenDismiss(container, onClick) {
  6159   const document = DLOEKDPY_getDocument(container);
  7562   const document = getDocument(container);
  6160   const button = document.createElement("button");
  7563   const button = document.createElement("button");
  6161   button.type = "button";
  7564   button.type = "button";
  6162   button.tabIndex = -1;
  7565   button.tabIndex = -1;
  6163   button.textContent = "Dismiss popup";
  7566   button.textContent = "Dismiss popup";
  6164   Object.assign(button.style, {
  7567   Object.assign(button.style, {
  6181   return removeHiddenDismiss;
  7584   return removeHiddenDismiss;
  6182 }
  7585 }
  6183 
  7586 
  6184 
  7587 
  6185 
  7588 
  6186 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/HPP6CWMY.js
  7589 ;// ./node_modules/@ariakit/react-core/esm/__chunks/ZWYATQFU.js
  6187 "use client";
  7590 "use client";
  6188 
  7591 
  6189 
  7592 
  6190 
  7593 
  6191 
  7594 
  6192 
  7595 
  6193 // src/focusable/focusable-container.tsx
  7596 // src/focusable/focusable-container.tsx
  6194 
  7597 
  6195 var useFocusableContainer = createHook(
  7598 var ZWYATQFU_TagName = "div";
  6196   (_a) => {
  7599 var useFocusableContainer = createHook(function useFocusableContainer2(_a) {
  6197     var _b = _a, { autoFocusOnShow = true } = _b, props = __objRest(_b, ["autoFocusOnShow"]);
  7600   var _b = _a, { autoFocusOnShow = true } = _b, props = __objRest(_b, ["autoFocusOnShow"]);
  6198     props = useWrapElement(
  7601   props = useWrapElement(
  6199       props,
  7602     props,
  6200       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(FocusableContext.Provider, { value: autoFocusOnShow, children: element }),
  7603     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(FocusableContext.Provider, { value: autoFocusOnShow, children: element }),
  6201       [autoFocusOnShow]
  7604     [autoFocusOnShow]
  6202     );
  7605   );
  6203     return props;
  7606   return props;
  6204   }
  7607 });
  6205 );
  7608 var FocusableContainer = forwardRef2(function FocusableContainer2(props) {
  6206 var FocusableContainer = createComponent(
  7609   const htmlProps = useFocusableContainer(props);
  6207   (props) => {
  7610   return LMDWO4NN_createElement(ZWYATQFU_TagName, htmlProps);
  6208     const htmlProps = useFocusableContainer(props);
  7611 });
  6209     return _3ORBWXWF_createElement("div", htmlProps);
  7612 
  6210   }
  7613 
  6211 );
  7614 
  6212 if (false) {}
  7615 ;// ./node_modules/@ariakit/react-core/esm/__chunks/CZ4GFWYL.js
  6213 
       
  6214 
       
  6215 
       
  6216 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/XPF5GU3Q.js
       
  6217 "use client";
  7616 "use client";
  6218 
  7617 
  6219 // src/heading/heading-context.ts
  7618 // src/heading/heading-context.tsx
  6220 
  7619 
  6221 var HeadingContext = (0,external_React_.createContext)(0);
  7620 var HeadingContext = (0,external_React_.createContext)(0);
  6222 
  7621 
  6223 
  7622 
  6224 
  7623 
  6225 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/UYRJLDVS.js
  7624 ;// ./node_modules/@ariakit/react-core/esm/__chunks/5M6RIVE2.js
  6226 "use client";
  7625 "use client";
  6227 
  7626 
  6228 
  7627 
  6229 // src/heading/heading-level.tsx
  7628 // src/heading/heading-level.tsx
  6230 
  7629 
  6238   return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingContext.Provider, { value: nextLevel, children });
  7637   return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingContext.Provider, { value: nextLevel, children });
  6239 }
  7638 }
  6240 
  7639 
  6241 
  7640 
  6242 
  7641 
  6243 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/BG6HZDS7.js
  7642 ;// ./node_modules/@ariakit/react-core/esm/__chunks/XX67R432.js
  6244 "use client";
  7643 "use client";
  6245 
  7644 
  6246 
  7645 
  6247 
  7646 
  6248 // src/visually-hidden/visually-hidden.ts
  7647 // src/visually-hidden/visually-hidden.tsx
  6249 var useVisuallyHidden = createHook((props) => {
  7648 var XX67R432_TagName = "span";
  6250   props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
  7649 var useVisuallyHidden = createHook(
  6251     style: _4R3V3JGP_spreadValues({
  7650   function useVisuallyHidden2(props) {
  6252       border: 0,
  7651     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  6253       clip: "rect(0 0 0 0)",
  7652       style: _3YLGPPWQ_spreadValues({
  6254       height: "1px",
  7653         border: 0,
  6255       margin: "-1px",
  7654         clip: "rect(0 0 0 0)",
  6256       overflow: "hidden",
  7655         height: "1px",
  6257       padding: 0,
  7656         margin: "-1px",
  6258       position: "absolute",
  7657         overflow: "hidden",
  6259       whiteSpace: "nowrap",
  7658         padding: 0,
  6260       width: "1px"
  7659         position: "absolute",
  6261     }, props.style)
  7660         whiteSpace: "nowrap",
  6262   });
  7661         width: "1px"
  6263   return props;
  7662       }, props.style)
       
  7663     });
       
  7664     return props;
       
  7665   }
       
  7666 );
       
  7667 var VisuallyHidden = forwardRef2(function VisuallyHidden2(props) {
       
  7668   const htmlProps = useVisuallyHidden(props);
       
  7669   return LMDWO4NN_createElement(XX67R432_TagName, htmlProps);
  6264 });
  7670 });
  6265 var VisuallyHidden = createComponent(
  7671 
  6266   (props) => {
  7672 
  6267     const htmlProps = useVisuallyHidden(props);
  7673 
  6268     return _3ORBWXWF_createElement("span", htmlProps);
  7674 ;// ./node_modules/@ariakit/react-core/esm/__chunks/W3VI7GFU.js
       
  7675 "use client";
       
  7676 
       
  7677 
       
  7678 
       
  7679 
       
  7680 // src/focus-trap/focus-trap.tsx
       
  7681 var W3VI7GFU_TagName = "span";
       
  7682 var useFocusTrap = createHook(
       
  7683   function useFocusTrap2(props) {
       
  7684     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
  7685       "data-focus-trap": "",
       
  7686       tabIndex: 0,
       
  7687       "aria-hidden": true
       
  7688     }, props), {
       
  7689       style: _3YLGPPWQ_spreadValues({
       
  7690         // Prevents unintended scroll jumps.
       
  7691         position: "fixed",
       
  7692         top: 0,
       
  7693         left: 0
       
  7694       }, props.style)
       
  7695     });
       
  7696     props = useVisuallyHidden(props);
       
  7697     return props;
  6269   }
  7698   }
  6270 );
  7699 );
  6271 if (false) {}
  7700 var FocusTrap = forwardRef2(function FocusTrap2(props) {
  6272 
  7701   const htmlProps = useFocusTrap(props);
  6273 
  7702   return LMDWO4NN_createElement(W3VI7GFU_TagName, htmlProps);
  6274 
  7703 });
  6275 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/CHKJ74UC.js
  7704 
       
  7705 
       
  7706 
       
  7707 ;// ./node_modules/@ariakit/react-core/esm/__chunks/AOQQTIBO.js
  6276 "use client";
  7708 "use client";
  6277 
  7709 
  6278 
  7710 // src/portal/portal-context.tsx
  6279 
  7711 
  6280 
  7712 var PortalContext = (0,external_React_.createContext)(null);
  6281 // src/focus-trap/focus-trap.ts
  7713 
  6282 var useFocusTrap = createHook((props) => {
  7714 
  6283   props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
  7715 
  6284     "data-focus-trap": "",
  7716 ;// ./node_modules/@ariakit/react-core/esm/__chunks/O37CNYMR.js
  6285     tabIndex: 0,
       
  6286     "aria-hidden": true
       
  6287   }, props), {
       
  6288     style: _4R3V3JGP_spreadValues({
       
  6289       // Prevents unintended scroll jumps.
       
  6290       position: "fixed",
       
  6291       top: 0,
       
  6292       left: 0
       
  6293     }, props.style)
       
  6294   });
       
  6295   props = useVisuallyHidden(props);
       
  6296   return props;
       
  6297 });
       
  6298 var FocusTrap = createComponent((props) => {
       
  6299   const htmlProps = useFocusTrap(props);
       
  6300   return _3ORBWXWF_createElement("span", htmlProps);
       
  6301 });
       
  6302 if (false) {}
       
  6303 
       
  6304 
       
  6305 
       
  6306 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7452U3HH.js
       
  6307 "use client";
  7717 "use client";
  6308 
  7718 
  6309 // src/portal/portal-context.ts
       
  6310 
       
  6311 var PortalContext = (0,external_React_.createContext)(null);
       
  6312 
       
  6313 
       
  6314 
       
  6315 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/JPXNJYSO.js
       
  6316 "use client";
       
  6317 
       
  6318 
  7719 
  6319 
  7720 
  6320 
  7721 
  6321 
  7722 
  6322 
  7723 
  6326 
  7727 
  6327 
  7728 
  6328 
  7729 
  6329 
  7730 
  6330 
  7731 
       
  7732 var O37CNYMR_TagName = "div";
  6331 function getRootElement(element) {
  7733 function getRootElement(element) {
  6332   return DLOEKDPY_getDocument(element).body;
  7734   return getDocument(element).body;
  6333 }
  7735 }
  6334 function getPortalElement(element, portalElement) {
  7736 function getPortalElement(element, portalElement) {
  6335   if (!portalElement) {
  7737   if (!portalElement) {
  6336     return DLOEKDPY_getDocument(element).createElement("div");
  7738     return getDocument(element).createElement("div");
  6337   }
  7739   }
  6338   if (typeof portalElement === "function") {
  7740   if (typeof portalElement === "function") {
  6339     return portalElement(element);
  7741     return portalElement(element);
  6340   }
  7742   }
  6341   return portalElement;
  7743   return portalElement;
  6342 }
  7744 }
  6343 function getRandomId(prefix = "id") {
  7745 function getRandomId(prefix = "id") {
  6344   return `${prefix ? `${prefix}-` : ""}${Math.random().toString(36).substr(2, 6)}`;
  7746   return `${prefix ? `${prefix}-` : ""}${Math.random().toString(36).slice(2, 8)}`;
  6345 }
  7747 }
  6346 function queueFocus(element) {
  7748 function queueFocus(element) {
  6347   queueMicrotask(() => {
  7749   queueMicrotask(() => {
  6348     element == null ? void 0 : element.focus();
  7750     element == null ? void 0 : element.focus();
  6349   });
  7751   });
  6350 }
  7752 }
  6351 var usePortal = createHook(
  7753 var usePortal = createHook(function usePortal2(_a) {
  6352   (_a) => {
  7754   var _b = _a, {
  6353     var _b = _a, {
  7755     preserveTabOrder,
  6354       preserveTabOrder,
  7756     preserveTabOrderAnchor,
  6355       preserveTabOrderAnchor,
  7757     portalElement,
  6356       portalElement,
  7758     portalRef,
  6357       portalRef,
  7759     portal = true
  6358       portal = true
  7760   } = _b, props = __objRest(_b, [
  6359     } = _b, props = __objRest(_b, [
  7761     "preserveTabOrder",
  6360       "preserveTabOrder",
  7762     "preserveTabOrderAnchor",
  6361       "preserveTabOrderAnchor",
  7763     "portalElement",
  6362       "portalElement",
  7764     "portalRef",
  6363       "portalRef",
  7765     "portal"
  6364       "portal"
  7766   ]);
  6365     ]);
  7767   const ref = (0,external_React_.useRef)(null);
  6366     const ref = (0,external_React_.useRef)(null);
  7768   const refProp = useMergeRefs(ref, props.ref);
  6367     const refProp = useMergeRefs(ref, props.ref);
  7769   const context = (0,external_React_.useContext)(PortalContext);
  6368     const context = (0,external_React_.useContext)(PortalContext);
  7770   const [portalNode, setPortalNode] = (0,external_React_.useState)(null);
  6369     const [portalNode, setPortalNode] = (0,external_React_.useState)(null);
  7771   const [anchorPortalNode, setAnchorPortalNode] = (0,external_React_.useState)(
  6370     const [anchorPortalNode, setAnchorPortalNode] = (0,external_React_.useState)(null);
  7772     null
  6371     const outerBeforeRef = (0,external_React_.useRef)(null);
  7773   );
  6372     const innerBeforeRef = (0,external_React_.useRef)(null);
  7774   const outerBeforeRef = (0,external_React_.useRef)(null);
  6373     const innerAfterRef = (0,external_React_.useRef)(null);
  7775   const innerBeforeRef = (0,external_React_.useRef)(null);
  6374     const outerAfterRef = (0,external_React_.useRef)(null);
  7776   const innerAfterRef = (0,external_React_.useRef)(null);
  6375     useSafeLayoutEffect(() => {
  7777   const outerAfterRef = (0,external_React_.useRef)(null);
  6376       const element = ref.current;
  7778   useSafeLayoutEffect(() => {
  6377       if (!element || !portal) {
  7779     const element = ref.current;
  6378         setPortalNode(null);
  7780     if (!element || !portal) {
       
  7781       setPortalNode(null);
       
  7782       return;
       
  7783     }
       
  7784     const portalEl = getPortalElement(element, portalElement);
       
  7785     if (!portalEl) {
       
  7786       setPortalNode(null);
       
  7787       return;
       
  7788     }
       
  7789     const isPortalInDocument = portalEl.isConnected;
       
  7790     if (!isPortalInDocument) {
       
  7791       const rootElement = context || getRootElement(element);
       
  7792       rootElement.appendChild(portalEl);
       
  7793     }
       
  7794     if (!portalEl.id) {
       
  7795       portalEl.id = element.id ? `portal/${element.id}` : getRandomId();
       
  7796     }
       
  7797     setPortalNode(portalEl);
       
  7798     setRef(portalRef, portalEl);
       
  7799     if (isPortalInDocument) return;
       
  7800     return () => {
       
  7801       portalEl.remove();
       
  7802       setRef(portalRef, null);
       
  7803     };
       
  7804   }, [portal, portalElement, context, portalRef]);
       
  7805   useSafeLayoutEffect(() => {
       
  7806     if (!portal) return;
       
  7807     if (!preserveTabOrder) return;
       
  7808     if (!preserveTabOrderAnchor) return;
       
  7809     const doc = getDocument(preserveTabOrderAnchor);
       
  7810     const element = doc.createElement("span");
       
  7811     element.style.position = "fixed";
       
  7812     preserveTabOrderAnchor.insertAdjacentElement("afterend", element);
       
  7813     setAnchorPortalNode(element);
       
  7814     return () => {
       
  7815       element.remove();
       
  7816       setAnchorPortalNode(null);
       
  7817     };
       
  7818   }, [portal, preserveTabOrder, preserveTabOrderAnchor]);
       
  7819   (0,external_React_.useEffect)(() => {
       
  7820     if (!portalNode) return;
       
  7821     if (!preserveTabOrder) return;
       
  7822     let raf = 0;
       
  7823     const onFocus = (event) => {
       
  7824       if (!isFocusEventOutside(event)) return;
       
  7825       const focusing = event.type === "focusin";
       
  7826       cancelAnimationFrame(raf);
       
  7827       if (focusing) {
       
  7828         return restoreFocusIn(portalNode);
       
  7829       }
       
  7830       raf = requestAnimationFrame(() => {
       
  7831         disableFocusIn(portalNode, true);
       
  7832       });
       
  7833     };
       
  7834     portalNode.addEventListener("focusin", onFocus, true);
       
  7835     portalNode.addEventListener("focusout", onFocus, true);
       
  7836     return () => {
       
  7837       cancelAnimationFrame(raf);
       
  7838       portalNode.removeEventListener("focusin", onFocus, true);
       
  7839       portalNode.removeEventListener("focusout", onFocus, true);
       
  7840     };
       
  7841   }, [portalNode, preserveTabOrder]);
       
  7842   props = useWrapElement(
       
  7843     props,
       
  7844     (element) => {
       
  7845       element = // While the portal node is not in the DOM, we need to pass the
       
  7846       // current context to the portal context, otherwise it's going to
       
  7847       // reset to the body element on nested portals.
       
  7848       /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PortalContext.Provider, { value: portalNode || context, children: element });
       
  7849       if (!portal) return element;
       
  7850       if (!portalNode) {
       
  7851         return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  7852           "span",
       
  7853           {
       
  7854             ref: refProp,
       
  7855             id: props.id,
       
  7856             style: { position: "fixed" },
       
  7857             hidden: true
       
  7858           }
       
  7859         );
       
  7860       }
       
  7861       element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
  7862         preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  7863           FocusTrap,
       
  7864           {
       
  7865             ref: innerBeforeRef,
       
  7866             "data-focus-trap": props.id,
       
  7867             className: "__focus-trap-inner-before",
       
  7868             onFocus: (event) => {
       
  7869               if (isFocusEventOutside(event, portalNode)) {
       
  7870                 queueFocus(getNextTabbable());
       
  7871               } else {
       
  7872                 queueFocus(outerBeforeRef.current);
       
  7873               }
       
  7874             }
       
  7875           }
       
  7876         ),
       
  7877         element,
       
  7878         preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  7879           FocusTrap,
       
  7880           {
       
  7881             ref: innerAfterRef,
       
  7882             "data-focus-trap": props.id,
       
  7883             className: "__focus-trap-inner-after",
       
  7884             onFocus: (event) => {
       
  7885               if (isFocusEventOutside(event, portalNode)) {
       
  7886                 queueFocus(getPreviousTabbable());
       
  7887               } else {
       
  7888                 queueFocus(outerAfterRef.current);
       
  7889               }
       
  7890             }
       
  7891           }
       
  7892         )
       
  7893       ] });
       
  7894       if (portalNode) {
       
  7895         element = (0,external_ReactDOM_namespaceObject.createPortal)(element, portalNode);
       
  7896       }
       
  7897       let preserveTabOrderElement = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
  7898         preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  7899           FocusTrap,
       
  7900           {
       
  7901             ref: outerBeforeRef,
       
  7902             "data-focus-trap": props.id,
       
  7903             className: "__focus-trap-outer-before",
       
  7904             onFocus: (event) => {
       
  7905               const fromOuter = event.relatedTarget === outerAfterRef.current;
       
  7906               if (!fromOuter && isFocusEventOutside(event, portalNode)) {
       
  7907                 queueFocus(innerBeforeRef.current);
       
  7908               } else {
       
  7909                 queueFocus(getPreviousTabbable());
       
  7910               }
       
  7911             }
       
  7912           }
       
  7913         ),
       
  7914         preserveTabOrder && // We're using position: fixed here so that the browser doesn't
       
  7915         // add margin to the element when setting gap on a parent element.
       
  7916         /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { "aria-owns": portalNode == null ? void 0 : portalNode.id, style: { position: "fixed" } }),
       
  7917         preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  7918           FocusTrap,
       
  7919           {
       
  7920             ref: outerAfterRef,
       
  7921             "data-focus-trap": props.id,
       
  7922             className: "__focus-trap-outer-after",
       
  7923             onFocus: (event) => {
       
  7924               if (isFocusEventOutside(event, portalNode)) {
       
  7925                 queueFocus(innerAfterRef.current);
       
  7926               } else {
       
  7927                 const nextTabbable = getNextTabbable();
       
  7928                 if (nextTabbable === innerBeforeRef.current) {
       
  7929                   requestAnimationFrame(() => {
       
  7930                     var _a2;
       
  7931                     return (_a2 = getNextTabbable()) == null ? void 0 : _a2.focus();
       
  7932                   });
       
  7933                   return;
       
  7934                 }
       
  7935                 queueFocus(nextTabbable);
       
  7936               }
       
  7937             }
       
  7938           }
       
  7939         )
       
  7940       ] });
       
  7941       if (anchorPortalNode && preserveTabOrder) {
       
  7942         preserveTabOrderElement = (0,external_ReactDOM_namespaceObject.createPortal)(
       
  7943           preserveTabOrderElement,
       
  7944           anchorPortalNode
       
  7945         );
       
  7946       }
       
  7947       return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
  7948         preserveTabOrderElement,
       
  7949         element
       
  7950       ] });
       
  7951     },
       
  7952     [portalNode, context, portal, props.id, preserveTabOrder, anchorPortalNode]
       
  7953   );
       
  7954   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
  7955     ref: refProp
       
  7956   });
       
  7957   return props;
       
  7958 });
       
  7959 var Portal = forwardRef2(function Portal2(props) {
       
  7960   const htmlProps = usePortal(props);
       
  7961   return LMDWO4NN_createElement(O37CNYMR_TagName, htmlProps);
       
  7962 });
       
  7963 
       
  7964 
       
  7965 
       
  7966 ;// ./node_modules/@ariakit/react-core/esm/__chunks/JC64G2H7.js
       
  7967 "use client";
       
  7968 
       
  7969 
       
  7970 
       
  7971 
       
  7972 
       
  7973 
       
  7974 
       
  7975 
       
  7976 
       
  7977 
       
  7978 
       
  7979 
       
  7980 
       
  7981 
       
  7982 
       
  7983 
       
  7984 
       
  7985 
       
  7986 
       
  7987 
       
  7988 
       
  7989 // src/dialog/dialog.tsx
       
  7990 
       
  7991 
       
  7992 
       
  7993 
       
  7994 
       
  7995 
       
  7996 
       
  7997 var JC64G2H7_TagName = "div";
       
  7998 var JC64G2H7_isSafariBrowser = isSafari();
       
  7999 function isAlreadyFocusingAnotherElement(dialog) {
       
  8000   const activeElement = getActiveElement();
       
  8001   if (!activeElement) return false;
       
  8002   if (dialog && contains(dialog, activeElement)) return false;
       
  8003   if (isFocusable(activeElement)) return true;
       
  8004   return false;
       
  8005 }
       
  8006 function getElementFromProp(prop, focusable = false) {
       
  8007   if (!prop) return null;
       
  8008   const element = "current" in prop ? prop.current : prop;
       
  8009   if (!element) return null;
       
  8010   if (focusable) return isFocusable(element) ? element : null;
       
  8011   return element;
       
  8012 }
       
  8013 var useDialog = createHook(function useDialog2(_a) {
       
  8014   var _b = _a, {
       
  8015     store: storeProp,
       
  8016     open: openProp,
       
  8017     onClose,
       
  8018     focusable = true,
       
  8019     modal = true,
       
  8020     portal = !!modal,
       
  8021     backdrop = !!modal,
       
  8022     hideOnEscape = true,
       
  8023     hideOnInteractOutside = true,
       
  8024     getPersistentElements,
       
  8025     preventBodyScroll = !!modal,
       
  8026     autoFocusOnShow = true,
       
  8027     autoFocusOnHide = true,
       
  8028     initialFocus,
       
  8029     finalFocus,
       
  8030     unmountOnHide,
       
  8031     unstable_treeSnapshotKey
       
  8032   } = _b, props = __objRest(_b, [
       
  8033     "store",
       
  8034     "open",
       
  8035     "onClose",
       
  8036     "focusable",
       
  8037     "modal",
       
  8038     "portal",
       
  8039     "backdrop",
       
  8040     "hideOnEscape",
       
  8041     "hideOnInteractOutside",
       
  8042     "getPersistentElements",
       
  8043     "preventBodyScroll",
       
  8044     "autoFocusOnShow",
       
  8045     "autoFocusOnHide",
       
  8046     "initialFocus",
       
  8047     "finalFocus",
       
  8048     "unmountOnHide",
       
  8049     "unstable_treeSnapshotKey"
       
  8050   ]);
       
  8051   const context = useDialogProviderContext();
       
  8052   const ref = (0,external_React_.useRef)(null);
       
  8053   const store = useDialogStore({
       
  8054     store: storeProp || context,
       
  8055     open: openProp,
       
  8056     setOpen(open2) {
       
  8057       if (open2) return;
       
  8058       const dialog = ref.current;
       
  8059       if (!dialog) return;
       
  8060       const event = new Event("close", { bubbles: false, cancelable: true });
       
  8061       if (onClose) {
       
  8062         dialog.addEventListener("close", onClose, { once: true });
       
  8063       }
       
  8064       dialog.dispatchEvent(event);
       
  8065       if (!event.defaultPrevented) return;
       
  8066       store.setOpen(true);
       
  8067     }
       
  8068   });
       
  8069   const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
       
  8070   const preserveTabOrderProp = props.preserveTabOrder;
       
  8071   const preserveTabOrder = useStoreState(
       
  8072     store,
       
  8073     (state) => preserveTabOrderProp && !modal && state.mounted
       
  8074   );
       
  8075   const id = useId(props.id);
       
  8076   const open = useStoreState(store, "open");
       
  8077   const mounted = useStoreState(store, "mounted");
       
  8078   const contentElement = useStoreState(store, "contentElement");
       
  8079   const hidden = isHidden(mounted, props.hidden, props.alwaysVisible);
       
  8080   usePreventBodyScroll(contentElement, id, preventBodyScroll && !hidden);
       
  8081   useHideOnInteractOutside(store, hideOnInteractOutside, domReady);
       
  8082   const { wrapElement, nestedDialogs } = useNestedDialogs(store);
       
  8083   props = useWrapElement(props, wrapElement, [wrapElement]);
       
  8084   useSafeLayoutEffect(() => {
       
  8085     if (!open) return;
       
  8086     const dialog = ref.current;
       
  8087     const activeElement = getActiveElement(dialog, true);
       
  8088     if (!activeElement) return;
       
  8089     if (activeElement.tagName === "BODY") return;
       
  8090     if (dialog && contains(dialog, activeElement)) return;
       
  8091     store.setDisclosureElement(activeElement);
       
  8092   }, [store, open]);
       
  8093   if (JC64G2H7_isSafariBrowser) {
       
  8094     (0,external_React_.useEffect)(() => {
       
  8095       if (!mounted) return;
       
  8096       const { disclosureElement } = store.getState();
       
  8097       if (!disclosureElement) return;
       
  8098       if (!isButton(disclosureElement)) return;
       
  8099       const onMouseDown = () => {
       
  8100         let receivedFocus = false;
       
  8101         const onFocus = () => {
       
  8102           receivedFocus = true;
       
  8103         };
       
  8104         const options = { capture: true, once: true };
       
  8105         disclosureElement.addEventListener("focusin", onFocus, options);
       
  8106         queueBeforeEvent(disclosureElement, "mouseup", () => {
       
  8107           disclosureElement.removeEventListener("focusin", onFocus, true);
       
  8108           if (receivedFocus) return;
       
  8109           focusIfNeeded(disclosureElement);
       
  8110         });
       
  8111       };
       
  8112       disclosureElement.addEventListener("mousedown", onMouseDown);
       
  8113       return () => {
       
  8114         disclosureElement.removeEventListener("mousedown", onMouseDown);
       
  8115       };
       
  8116     }, [store, mounted]);
       
  8117   }
       
  8118   (0,external_React_.useEffect)(() => {
       
  8119     if (!mounted) return;
       
  8120     if (!domReady) return;
       
  8121     const dialog = ref.current;
       
  8122     if (!dialog) return;
       
  8123     const win = getWindow(dialog);
       
  8124     const viewport = win.visualViewport || win;
       
  8125     const setViewportHeight = () => {
       
  8126       var _a2, _b2;
       
  8127       const height = (_b2 = (_a2 = win.visualViewport) == null ? void 0 : _a2.height) != null ? _b2 : win.innerHeight;
       
  8128       dialog.style.setProperty("--dialog-viewport-height", `${height}px`);
       
  8129     };
       
  8130     setViewportHeight();
       
  8131     viewport.addEventListener("resize", setViewportHeight);
       
  8132     return () => {
       
  8133       viewport.removeEventListener("resize", setViewportHeight);
       
  8134     };
       
  8135   }, [mounted, domReady]);
       
  8136   (0,external_React_.useEffect)(() => {
       
  8137     if (!modal) return;
       
  8138     if (!mounted) return;
       
  8139     if (!domReady) return;
       
  8140     const dialog = ref.current;
       
  8141     if (!dialog) return;
       
  8142     const existingDismiss = dialog.querySelector("[data-dialog-dismiss]");
       
  8143     if (existingDismiss) return;
       
  8144     return prependHiddenDismiss(dialog, store.hide);
       
  8145   }, [store, modal, mounted, domReady]);
       
  8146   useSafeLayoutEffect(() => {
       
  8147     if (!supportsInert()) return;
       
  8148     if (open) return;
       
  8149     if (!mounted) return;
       
  8150     if (!domReady) return;
       
  8151     const dialog = ref.current;
       
  8152     if (!dialog) return;
       
  8153     return disableTree(dialog);
       
  8154   }, [open, mounted, domReady]);
       
  8155   const canTakeTreeSnapshot = open && domReady;
       
  8156   useSafeLayoutEffect(() => {
       
  8157     if (!id) return;
       
  8158     if (!canTakeTreeSnapshot) return;
       
  8159     const dialog = ref.current;
       
  8160     return createWalkTreeSnapshot(id, [dialog]);
       
  8161   }, [id, canTakeTreeSnapshot, unstable_treeSnapshotKey]);
       
  8162   const getPersistentElementsProp = useEvent(getPersistentElements);
       
  8163   useSafeLayoutEffect(() => {
       
  8164     if (!id) return;
       
  8165     if (!canTakeTreeSnapshot) return;
       
  8166     const { disclosureElement } = store.getState();
       
  8167     const dialog = ref.current;
       
  8168     const persistentElements = getPersistentElementsProp() || [];
       
  8169     const allElements = [
       
  8170       dialog,
       
  8171       ...persistentElements,
       
  8172       ...nestedDialogs.map((dialog2) => dialog2.getState().contentElement)
       
  8173     ];
       
  8174     if (modal) {
       
  8175       return chain(
       
  8176         markTreeOutside(id, allElements),
       
  8177         disableTreeOutside(id, allElements)
       
  8178       );
       
  8179     }
       
  8180     return markTreeOutside(id, [disclosureElement, ...allElements]);
       
  8181   }, [
       
  8182     id,
       
  8183     store,
       
  8184     canTakeTreeSnapshot,
       
  8185     getPersistentElementsProp,
       
  8186     nestedDialogs,
       
  8187     modal,
       
  8188     unstable_treeSnapshotKey
       
  8189   ]);
       
  8190   const mayAutoFocusOnShow = !!autoFocusOnShow;
       
  8191   const autoFocusOnShowProp = useBooleanEvent(autoFocusOnShow);
       
  8192   const [autoFocusEnabled, setAutoFocusEnabled] = (0,external_React_.useState)(false);
       
  8193   (0,external_React_.useEffect)(() => {
       
  8194     if (!open) return;
       
  8195     if (!mayAutoFocusOnShow) return;
       
  8196     if (!domReady) return;
       
  8197     if (!(contentElement == null ? void 0 : contentElement.isConnected)) return;
       
  8198     const element = getElementFromProp(initialFocus, true) || // If no initial focus is specified, we try to focus the first element
       
  8199     // with the autofocus attribute. If it's an Ariakit component, the
       
  8200     // Focusable component will consume the autoFocus prop and add the
       
  8201     // data-autofocus attribute to the element instead.
       
  8202     contentElement.querySelector(
       
  8203       "[data-autofocus=true],[autofocus]"
       
  8204     ) || // We have to fallback to the first focusable element otherwise portaled
       
  8205     // dialogs with preserveTabOrder set to true will not receive focus
       
  8206     // properly because the elements aren't tabbable until the dialog receives
       
  8207     // focus.
       
  8208     getFirstTabbableIn(contentElement, true, portal && preserveTabOrder) || // Finally, we fallback to the dialog element itself.
       
  8209     contentElement;
       
  8210     const isElementFocusable = isFocusable(element);
       
  8211     if (!autoFocusOnShowProp(isElementFocusable ? element : null)) return;
       
  8212     setAutoFocusEnabled(true);
       
  8213     queueMicrotask(() => {
       
  8214       element.focus();
       
  8215       if (!JC64G2H7_isSafariBrowser) return;
       
  8216       element.scrollIntoView({ block: "nearest", inline: "nearest" });
       
  8217     });
       
  8218   }, [
       
  8219     open,
       
  8220     mayAutoFocusOnShow,
       
  8221     domReady,
       
  8222     contentElement,
       
  8223     initialFocus,
       
  8224     portal,
       
  8225     preserveTabOrder,
       
  8226     autoFocusOnShowProp
       
  8227   ]);
       
  8228   const mayAutoFocusOnHide = !!autoFocusOnHide;
       
  8229   const autoFocusOnHideProp = useBooleanEvent(autoFocusOnHide);
       
  8230   const [hasOpened, setHasOpened] = (0,external_React_.useState)(false);
       
  8231   (0,external_React_.useEffect)(() => {
       
  8232     if (!open) return;
       
  8233     setHasOpened(true);
       
  8234     return () => setHasOpened(false);
       
  8235   }, [open]);
       
  8236   const focusOnHide = (0,external_React_.useCallback)(
       
  8237     (dialog, retry = true) => {
       
  8238       const { disclosureElement } = store.getState();
       
  8239       if (isAlreadyFocusingAnotherElement(dialog)) return;
       
  8240       let element = getElementFromProp(finalFocus) || disclosureElement;
       
  8241       if (element == null ? void 0 : element.id) {
       
  8242         const doc = getDocument(element);
       
  8243         const selector = `[aria-activedescendant="${element.id}"]`;
       
  8244         const composite = doc.querySelector(selector);
       
  8245         if (composite) {
       
  8246           element = composite;
       
  8247         }
       
  8248       }
       
  8249       if (element && !isFocusable(element)) {
       
  8250         const maybeParentDialog = element.closest("[data-dialog]");
       
  8251         if (maybeParentDialog == null ? void 0 : maybeParentDialog.id) {
       
  8252           const doc = getDocument(maybeParentDialog);
       
  8253           const selector = `[aria-controls~="${maybeParentDialog.id}"]`;
       
  8254           const control = doc.querySelector(selector);
       
  8255           if (control) {
       
  8256             element = control;
       
  8257           }
       
  8258         }
       
  8259       }
       
  8260       const isElementFocusable = element && isFocusable(element);
       
  8261       if (!isElementFocusable && retry) {
       
  8262         requestAnimationFrame(() => focusOnHide(dialog, false));
  6379         return;
  8263         return;
  6380       }
  8264       }
  6381       const portalEl = getPortalElement(element, portalElement);
  8265       if (!autoFocusOnHideProp(isElementFocusable ? element : null)) return;
  6382       if (!portalEl) {
  8266       if (!isElementFocusable) return;
  6383         setPortalNode(null);
  8267       element == null ? void 0 : element.focus();
       
  8268     },
       
  8269     [store, finalFocus, autoFocusOnHideProp]
       
  8270   );
       
  8271   const focusedOnHideRef = (0,external_React_.useRef)(false);
       
  8272   useSafeLayoutEffect(() => {
       
  8273     if (open) return;
       
  8274     if (!hasOpened) return;
       
  8275     if (!mayAutoFocusOnHide) return;
       
  8276     const dialog = ref.current;
       
  8277     focusedOnHideRef.current = true;
       
  8278     focusOnHide(dialog);
       
  8279   }, [open, hasOpened, domReady, mayAutoFocusOnHide, focusOnHide]);
       
  8280   (0,external_React_.useEffect)(() => {
       
  8281     if (!hasOpened) return;
       
  8282     if (!mayAutoFocusOnHide) return;
       
  8283     const dialog = ref.current;
       
  8284     return () => {
       
  8285       if (focusedOnHideRef.current) {
       
  8286         focusedOnHideRef.current = false;
  6384         return;
  8287         return;
  6385       }
  8288       }
  6386       const isPortalInDocument = portalEl.isConnected;
  8289       focusOnHide(dialog);
  6387       if (!isPortalInDocument) {
  8290     };
  6388         const rootElement = context || getRootElement(element);
  8291   }, [hasOpened, mayAutoFocusOnHide, focusOnHide]);
  6389         rootElement.appendChild(portalEl);
  8292   const hideOnEscapeProp = useBooleanEvent(hideOnEscape);
  6390       }
  8293   (0,external_React_.useEffect)(() => {
  6391       if (!portalEl.id) {
  8294     if (!domReady) return;
  6392         portalEl.id = element.id ? `portal/${element.id}` : getRandomId();
  8295     if (!mounted) return;
  6393       }
  8296     const onKeyDown = (event) => {
  6394       setPortalNode(portalEl);
  8297       if (event.key !== "Escape") return;
  6395       setRef(portalRef, portalEl);
  8298       if (event.defaultPrevented) return;
  6396       if (isPortalInDocument)
  8299       const dialog = ref.current;
  6397         return;
  8300       if (!dialog) return;
  6398       return () => {
  8301       if (isElementMarked(dialog)) return;
  6399         portalEl.remove();
  8302       const target = event.target;
  6400         setRef(portalRef, null);
  8303       if (!target) return;
       
  8304       const { disclosureElement } = store.getState();
       
  8305       const isValidTarget = () => {
       
  8306         if (target.tagName === "BODY") return true;
       
  8307         if (contains(dialog, target)) return true;
       
  8308         if (!disclosureElement) return true;
       
  8309         if (contains(disclosureElement, target)) return true;
       
  8310         return false;
  6401       };
  8311       };
  6402     }, [portal, portalElement, context, portalRef]);
  8312       if (!isValidTarget()) return;
  6403     useSafeLayoutEffect(() => {
  8313       if (!hideOnEscapeProp(event)) return;
  6404       if (!preserveTabOrder)
  8314       store.hide();
  6405         return;
  8315     };
  6406       if (!preserveTabOrderAnchor)
  8316     return addGlobalEventListener("keydown", onKeyDown, true);
  6407         return;
  8317   }, [store, domReady, mounted, hideOnEscapeProp]);
  6408       const doc = DLOEKDPY_getDocument(preserveTabOrderAnchor);
  8318   props = useWrapElement(
  6409       const element = doc.createElement("span");
  8319     props,
  6410       element.style.position = "fixed";
  8320     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingLevel, { level: modal ? 1 : void 0, children: element }),
  6411       preserveTabOrderAnchor.insertAdjacentElement("afterend", element);
  8321     [modal]
  6412       setAnchorPortalNode(element);
  8322   );
  6413       return () => {
  8323   const hiddenProp = props.hidden;
  6414         element.remove();
  8324   const alwaysVisible = props.alwaysVisible;
  6415         setAnchorPortalNode(null);
  8325   props = useWrapElement(
  6416       };
  8326     props,
  6417     }, [preserveTabOrder, preserveTabOrderAnchor]);
  8327     (element) => {
  6418     (0,external_React_.useEffect)(() => {
  8328       if (!backdrop) return element;
  6419       if (!portalNode)
  8329       return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
  6420         return;
  8330         /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
  6421       if (!preserveTabOrder)
  8331           DialogBackdrop,
  6422         return;
  8332           {
  6423       let raf = 0;
  8333             store,
  6424       const onFocus = (event) => {
  8334             backdrop,
  6425         if (!isFocusEventOutside(event))
  8335             hidden: hiddenProp,
  6426           return;
  8336             alwaysVisible
  6427         const focusing = event.type === "focusin";
  8337           }
  6428         cancelAnimationFrame(raf);
  8338         ),
  6429         if (focusing) {
  8339         element
  6430           return restoreFocusIn(portalNode);
  8340       ] });
  6431         }
  8341     },
  6432         raf = requestAnimationFrame(() => {
  8342     [store, backdrop, hiddenProp, alwaysVisible]
  6433           disableFocusIn(portalNode, true);
  8343   );
  6434         });
  8344   const [headingId, setHeadingId] = (0,external_React_.useState)();
  6435       };
  8345   const [descriptionId, setDescriptionId] = (0,external_React_.useState)();
  6436       portalNode.addEventListener("focusin", onFocus, true);
  8346   props = useWrapElement(
  6437       portalNode.addEventListener("focusout", onFocus, true);
  8347     props,
  6438       return () => {
  8348     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogHeadingContext.Provider, { value: setHeadingId, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogDescriptionContext.Provider, { value: setDescriptionId, children: element }) }) }),
  6439         cancelAnimationFrame(raf);
  8349     [store]
  6440         portalNode.removeEventListener("focusin", onFocus, true);
  8350   );
  6441         portalNode.removeEventListener("focusout", onFocus, true);
  8351   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  6442       };
  8352     id,
  6443     }, [portalNode, preserveTabOrder]);
  8353     "data-dialog": "",
  6444     props = useWrapElement(
  8354     role: "dialog",
  6445       props,
  8355     tabIndex: focusable ? -1 : void 0,
  6446       (element) => {
  8356     "aria-labelledby": headingId,
  6447         element = // While the portal node is not in the DOM, we need to pass the
  8357     "aria-describedby": descriptionId
  6448         // current context to the portal context, otherwise it's going to
  8358   }, props), {
  6449         // reset to the body element on nested portals.
  8359     ref: useMergeRefs(ref, props.ref)
  6450         /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PortalContext.Provider, { value: portalNode || context, children: element });
  8360   });
  6451         if (!portal)
  8361   props = useFocusableContainer(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  6452           return element;
  8362     autoFocusOnShow: autoFocusEnabled
  6453         if (!portalNode) {
  8363   }));
  6454           return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
  8364   props = useDisclosureContent(_3YLGPPWQ_spreadValues({ store }, props));
  6455             "span",
  8365   props = useFocusable(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { focusable }));
  6456             {
  8366   props = usePortal(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({ portal }, props), { portalRef, preserveTabOrder }));
  6457               ref: refProp,
  8367   return props;
  6458               id: props.id,
       
  6459               style: { position: "fixed" },
       
  6460               hidden: true
       
  6461             }
       
  6462           );
       
  6463         }
       
  6464         element = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
  6465           preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  6466             FocusTrap,
       
  6467             {
       
  6468               ref: innerBeforeRef,
       
  6469               className: "__focus-trap-inner-before",
       
  6470               onFocus: (event) => {
       
  6471                 if (isFocusEventOutside(event, portalNode)) {
       
  6472                   queueFocus(getNextTabbable());
       
  6473                 } else {
       
  6474                   queueFocus(outerBeforeRef.current);
       
  6475                 }
       
  6476               }
       
  6477             }
       
  6478           ),
       
  6479           element,
       
  6480           preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  6481             FocusTrap,
       
  6482             {
       
  6483               ref: innerAfterRef,
       
  6484               className: "__focus-trap-inner-after",
       
  6485               onFocus: (event) => {
       
  6486                 if (isFocusEventOutside(event, portalNode)) {
       
  6487                   queueFocus(getPreviousTabbable());
       
  6488                 } else {
       
  6489                   queueFocus(outerAfterRef.current);
       
  6490                 }
       
  6491               }
       
  6492             }
       
  6493           )
       
  6494         ] });
       
  6495         if (portalNode) {
       
  6496           element = (0,external_ReactDOM_namespaceObject.createPortal)(element, portalNode);
       
  6497         }
       
  6498         let preserveTabOrderElement = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
  6499           preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  6500             FocusTrap,
       
  6501             {
       
  6502               ref: outerBeforeRef,
       
  6503               className: "__focus-trap-outer-before",
       
  6504               onFocus: (event) => {
       
  6505                 const fromOuter = event.relatedTarget === outerAfterRef.current;
       
  6506                 if (!fromOuter && isFocusEventOutside(event, portalNode)) {
       
  6507                   queueFocus(innerBeforeRef.current);
       
  6508                 } else {
       
  6509                   queueFocus(getPreviousTabbable());
       
  6510                 }
       
  6511               }
       
  6512             }
       
  6513           ),
       
  6514           preserveTabOrder && // We're using position: fixed here so that the browser doesn't
       
  6515           // add margin to the element when setting gap on a parent element.
       
  6516           /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("span", { "aria-owns": portalNode == null ? void 0 : portalNode.id, style: { position: "fixed" } }),
       
  6517           preserveTabOrder && portalNode && /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  6518             FocusTrap,
       
  6519             {
       
  6520               ref: outerAfterRef,
       
  6521               className: "__focus-trap-outer-after",
       
  6522               onFocus: (event) => {
       
  6523                 if (isFocusEventOutside(event, portalNode)) {
       
  6524                   queueFocus(innerAfterRef.current);
       
  6525                 } else {
       
  6526                   const nextTabbable = getNextTabbable();
       
  6527                   if (nextTabbable === innerBeforeRef.current) {
       
  6528                     requestAnimationFrame(() => {
       
  6529                       var _a2;
       
  6530                       return (_a2 = getNextTabbable()) == null ? void 0 : _a2.focus();
       
  6531                     });
       
  6532                     return;
       
  6533                   }
       
  6534                   queueFocus(nextTabbable);
       
  6535                 }
       
  6536               }
       
  6537             }
       
  6538           )
       
  6539         ] });
       
  6540         if (anchorPortalNode && preserveTabOrder) {
       
  6541           preserveTabOrderElement = (0,external_ReactDOM_namespaceObject.createPortal)(
       
  6542             preserveTabOrderElement,
       
  6543             anchorPortalNode
       
  6544           );
       
  6545         }
       
  6546         return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
  6547           preserveTabOrderElement,
       
  6548           element
       
  6549         ] });
       
  6550       },
       
  6551       [
       
  6552         portalNode,
       
  6553         context,
       
  6554         portal,
       
  6555         props.id,
       
  6556         preserveTabOrder,
       
  6557         anchorPortalNode
       
  6558       ]
       
  6559     );
       
  6560     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
  6561       ref: refProp
       
  6562     });
       
  6563     return props;
       
  6564   }
       
  6565 );
       
  6566 var Portal = createComponent((props) => {
       
  6567   const htmlProps = usePortal(props);
       
  6568   return _3ORBWXWF_createElement("div", htmlProps);
       
  6569 });
  8368 });
  6570 if (false) {}
       
  6571 
       
  6572 
       
  6573 
       
  6574 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/NERBASET.js
       
  6575 "use client";
       
  6576 
       
  6577 
       
  6578 
       
  6579 
       
  6580 
       
  6581 
       
  6582 
       
  6583 
       
  6584 
       
  6585 
       
  6586 
       
  6587 
       
  6588 
       
  6589 
       
  6590 
       
  6591 
       
  6592 
       
  6593 
       
  6594 
       
  6595 
       
  6596 // src/dialog/dialog.tsx
       
  6597 
       
  6598 
       
  6599 
       
  6600 
       
  6601 
       
  6602 
       
  6603 
       
  6604 var NERBASET_isSafariBrowser = isSafari();
       
  6605 function isAlreadyFocusingAnotherElement(dialog) {
       
  6606   const activeElement = getActiveElement();
       
  6607   if (!activeElement)
       
  6608     return false;
       
  6609   if (dialog && contains(dialog, activeElement))
       
  6610     return false;
       
  6611   if (isFocusable(activeElement))
       
  6612     return true;
       
  6613   return false;
       
  6614 }
       
  6615 function getElementFromProp(prop, focusable = false) {
       
  6616   if (!prop)
       
  6617     return null;
       
  6618   const element = "current" in prop ? prop.current : prop;
       
  6619   if (!element)
       
  6620     return null;
       
  6621   if (focusable)
       
  6622     return isFocusable(element) ? element : null;
       
  6623   return element;
       
  6624 }
       
  6625 var useDialog = createHook(
       
  6626   (_a) => {
       
  6627     var _b = _a, {
       
  6628       store: storeProp,
       
  6629       open: openProp,
       
  6630       onClose,
       
  6631       focusable = true,
       
  6632       modal = true,
       
  6633       portal = !!modal,
       
  6634       backdrop = !!modal,
       
  6635       backdropProps,
       
  6636       hideOnEscape = true,
       
  6637       hideOnInteractOutside = true,
       
  6638       getPersistentElements,
       
  6639       preventBodyScroll = !!modal,
       
  6640       autoFocusOnShow = true,
       
  6641       autoFocusOnHide = true,
       
  6642       initialFocus,
       
  6643       finalFocus,
       
  6644       unmountOnHide
       
  6645     } = _b, props = __objRest(_b, [
       
  6646       "store",
       
  6647       "open",
       
  6648       "onClose",
       
  6649       "focusable",
       
  6650       "modal",
       
  6651       "portal",
       
  6652       "backdrop",
       
  6653       "backdropProps",
       
  6654       "hideOnEscape",
       
  6655       "hideOnInteractOutside",
       
  6656       "getPersistentElements",
       
  6657       "preventBodyScroll",
       
  6658       "autoFocusOnShow",
       
  6659       "autoFocusOnHide",
       
  6660       "initialFocus",
       
  6661       "finalFocus",
       
  6662       "unmountOnHide"
       
  6663     ]);
       
  6664     const context = useDialogProviderContext();
       
  6665     const ref = (0,external_React_.useRef)(null);
       
  6666     const store = useDialogStore({
       
  6667       store: storeProp || context,
       
  6668       open: openProp,
       
  6669       setOpen(open2) {
       
  6670         if (open2)
       
  6671           return;
       
  6672         const dialog = ref.current;
       
  6673         if (!dialog)
       
  6674           return;
       
  6675         const event = new Event("close", { bubbles: false, cancelable: true });
       
  6676         if (onClose) {
       
  6677           dialog.addEventListener("close", onClose, { once: true });
       
  6678         }
       
  6679         dialog.dispatchEvent(event);
       
  6680         if (!event.defaultPrevented)
       
  6681           return;
       
  6682         store.setOpen(true);
       
  6683       }
       
  6684     });
       
  6685     const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
       
  6686     const preserveTabOrderProp = props.preserveTabOrder;
       
  6687     const preserveTabOrder = store.useState(
       
  6688       (state) => preserveTabOrderProp && !modal && state.mounted
       
  6689     );
       
  6690     const id = useId(props.id);
       
  6691     const open = store.useState("open");
       
  6692     const mounted = store.useState("mounted");
       
  6693     const contentElement = store.useState("contentElement");
       
  6694     const hidden = isHidden(mounted, props.hidden, props.alwaysVisible);
       
  6695     usePreventBodyScroll(contentElement, id, preventBodyScroll && !hidden);
       
  6696     useHideOnInteractOutside(store, hideOnInteractOutside, domReady);
       
  6697     const { wrapElement, nestedDialogs } = useNestedDialogs(store);
       
  6698     props = useWrapElement(props, wrapElement, [wrapElement]);
       
  6699     if (false) {}
       
  6700     useSafeLayoutEffect(() => {
       
  6701       if (!open)
       
  6702         return;
       
  6703       const dialog = ref.current;
       
  6704       const activeElement = getActiveElement(dialog, true);
       
  6705       if (!activeElement)
       
  6706         return;
       
  6707       if (activeElement.tagName === "BODY")
       
  6708         return;
       
  6709       if (dialog && contains(dialog, activeElement))
       
  6710         return;
       
  6711       store.setDisclosureElement(activeElement);
       
  6712     }, [store, open]);
       
  6713     if (NERBASET_isSafariBrowser) {
       
  6714       (0,external_React_.useEffect)(() => {
       
  6715         if (!mounted)
       
  6716           return;
       
  6717         const { disclosureElement } = store.getState();
       
  6718         if (!disclosureElement)
       
  6719           return;
       
  6720         if (!isButton(disclosureElement))
       
  6721           return;
       
  6722         const onMouseDown = () => {
       
  6723           let receivedFocus = false;
       
  6724           const onFocus = () => {
       
  6725             receivedFocus = true;
       
  6726           };
       
  6727           const options = { capture: true, once: true };
       
  6728           disclosureElement.addEventListener("focusin", onFocus, options);
       
  6729           queueBeforeEvent(disclosureElement, "mouseup", () => {
       
  6730             disclosureElement.removeEventListener("focusin", onFocus, true);
       
  6731             if (receivedFocus)
       
  6732               return;
       
  6733             focusIfNeeded(disclosureElement);
       
  6734           });
       
  6735         };
       
  6736         disclosureElement.addEventListener("mousedown", onMouseDown);
       
  6737         return () => {
       
  6738           disclosureElement.removeEventListener("mousedown", onMouseDown);
       
  6739         };
       
  6740       }, [store, mounted]);
       
  6741     }
       
  6742     (0,external_React_.useEffect)(() => {
       
  6743       if (!modal)
       
  6744         return;
       
  6745       if (!mounted)
       
  6746         return;
       
  6747       if (!domReady)
       
  6748         return;
       
  6749       const dialog = ref.current;
       
  6750       if (!dialog)
       
  6751         return;
       
  6752       const existingDismiss = dialog.querySelector("[data-dialog-dismiss]");
       
  6753       if (existingDismiss)
       
  6754         return;
       
  6755       return prependHiddenDismiss(dialog, store.hide);
       
  6756     }, [store, modal, mounted, domReady]);
       
  6757     useSafeLayoutEffect(() => {
       
  6758       if (open)
       
  6759         return;
       
  6760       if (!mounted)
       
  6761         return;
       
  6762       if (!domReady)
       
  6763         return;
       
  6764       const dialog = ref.current;
       
  6765       if (!dialog)
       
  6766         return;
       
  6767       return disableTree(dialog);
       
  6768     }, [open, mounted, domReady]);
       
  6769     const canTakeTreeSnapshot = open && domReady;
       
  6770     useSafeLayoutEffect(() => {
       
  6771       if (!id)
       
  6772         return;
       
  6773       if (!canTakeTreeSnapshot)
       
  6774         return;
       
  6775       const dialog = ref.current;
       
  6776       return createWalkTreeSnapshot(id, [dialog]);
       
  6777     }, [id, canTakeTreeSnapshot]);
       
  6778     const getPersistentElementsProp = useEvent(getPersistentElements);
       
  6779     useSafeLayoutEffect(() => {
       
  6780       if (!id)
       
  6781         return;
       
  6782       if (!canTakeTreeSnapshot)
       
  6783         return;
       
  6784       const { disclosureElement } = store.getState();
       
  6785       const dialog = ref.current;
       
  6786       const persistentElements = getPersistentElementsProp() || [];
       
  6787       const allElements = [
       
  6788         dialog,
       
  6789         ...persistentElements,
       
  6790         ...nestedDialogs.map((dialog2) => dialog2.getState().contentElement)
       
  6791       ];
       
  6792       if (modal) {
       
  6793         return chain(
       
  6794           markTreeOutside(id, allElements),
       
  6795           disableTreeOutside(id, allElements)
       
  6796         );
       
  6797       }
       
  6798       return markTreeOutside(id, [disclosureElement, ...allElements]);
       
  6799     }, [
       
  6800       id,
       
  6801       store,
       
  6802       canTakeTreeSnapshot,
       
  6803       getPersistentElementsProp,
       
  6804       nestedDialogs,
       
  6805       modal
       
  6806     ]);
       
  6807     const mayAutoFocusOnShow = !!autoFocusOnShow;
       
  6808     const autoFocusOnShowProp = useBooleanEvent(autoFocusOnShow);
       
  6809     const [autoFocusEnabled, setAutoFocusEnabled] = (0,external_React_.useState)(false);
       
  6810     (0,external_React_.useEffect)(() => {
       
  6811       if (!open)
       
  6812         return;
       
  6813       if (!mayAutoFocusOnShow)
       
  6814         return;
       
  6815       if (!domReady)
       
  6816         return;
       
  6817       if (!(contentElement == null ? void 0 : contentElement.isConnected))
       
  6818         return;
       
  6819       const element = getElementFromProp(initialFocus, true) || // If no initial focus is specified, we try to focus the first element
       
  6820       // with the autofocus attribute. If it's an Ariakit component, the
       
  6821       // Focusable component will consume the autoFocus prop and add the
       
  6822       // data-autofocus attribute to the element instead.
       
  6823       contentElement.querySelector(
       
  6824         "[data-autofocus=true],[autofocus]"
       
  6825       ) || // We have to fallback to the first focusable element otherwise portaled
       
  6826       // dialogs with preserveTabOrder set to true will not receive focus
       
  6827       // properly because the elements aren't tabbable until the dialog
       
  6828       // receives focus.
       
  6829       getFirstTabbableIn(contentElement, true, portal && preserveTabOrder) || // Finally, we fallback to the dialog element itself.
       
  6830       contentElement;
       
  6831       const isElementFocusable = isFocusable(element);
       
  6832       if (!autoFocusOnShowProp(isElementFocusable ? element : null))
       
  6833         return;
       
  6834       setAutoFocusEnabled(true);
       
  6835       queueMicrotask(() => {
       
  6836         element.focus();
       
  6837         if (!NERBASET_isSafariBrowser)
       
  6838           return;
       
  6839         element.scrollIntoView({ block: "nearest", inline: "nearest" });
       
  6840       });
       
  6841     }, [
       
  6842       open,
       
  6843       mayAutoFocusOnShow,
       
  6844       domReady,
       
  6845       contentElement,
       
  6846       initialFocus,
       
  6847       portal,
       
  6848       preserveTabOrder,
       
  6849       autoFocusOnShowProp
       
  6850     ]);
       
  6851     const mayAutoFocusOnHide = !!autoFocusOnHide;
       
  6852     const autoFocusOnHideProp = useBooleanEvent(autoFocusOnHide);
       
  6853     const [hasOpened, setHasOpened] = (0,external_React_.useState)(false);
       
  6854     (0,external_React_.useEffect)(() => {
       
  6855       if (!open)
       
  6856         return;
       
  6857       setHasOpened(true);
       
  6858       return () => setHasOpened(false);
       
  6859     }, [open]);
       
  6860     const focusOnHide = (0,external_React_.useCallback)(
       
  6861       (dialog, retry = true) => {
       
  6862         const { disclosureElement } = store.getState();
       
  6863         if (isAlreadyFocusingAnotherElement(dialog))
       
  6864           return;
       
  6865         let element = getElementFromProp(finalFocus) || disclosureElement;
       
  6866         if (element == null ? void 0 : element.id) {
       
  6867           const doc = DLOEKDPY_getDocument(element);
       
  6868           const selector = `[aria-activedescendant="${element.id}"]`;
       
  6869           const composite = doc.querySelector(selector);
       
  6870           if (composite) {
       
  6871             element = composite;
       
  6872           }
       
  6873         }
       
  6874         if (element && !isFocusable(element)) {
       
  6875           const maybeParentDialog = DLOEKDPY_closest(element, "[data-dialog]");
       
  6876           if (maybeParentDialog && maybeParentDialog.id) {
       
  6877             const doc = DLOEKDPY_getDocument(maybeParentDialog);
       
  6878             const selector = `[aria-controls~="${maybeParentDialog.id}"]`;
       
  6879             const control = doc.querySelector(selector);
       
  6880             if (control) {
       
  6881               element = control;
       
  6882             }
       
  6883           }
       
  6884         }
       
  6885         const isElementFocusable = element && isFocusable(element);
       
  6886         if (!isElementFocusable && retry) {
       
  6887           requestAnimationFrame(() => focusOnHide(dialog, false));
       
  6888           return;
       
  6889         }
       
  6890         if (!autoFocusOnHideProp(isElementFocusable ? element : null))
       
  6891           return;
       
  6892         if (!isElementFocusable)
       
  6893           return;
       
  6894         element == null ? void 0 : element.focus();
       
  6895       },
       
  6896       [store, finalFocus, autoFocusOnHideProp]
       
  6897     );
       
  6898     useSafeLayoutEffect(() => {
       
  6899       if (open)
       
  6900         return;
       
  6901       if (!hasOpened)
       
  6902         return;
       
  6903       if (!mayAutoFocusOnHide)
       
  6904         return;
       
  6905       const dialog = ref.current;
       
  6906       focusOnHide(dialog);
       
  6907     }, [open, hasOpened, domReady, mayAutoFocusOnHide, focusOnHide]);
       
  6908     (0,external_React_.useEffect)(() => {
       
  6909       if (!hasOpened)
       
  6910         return;
       
  6911       if (!mayAutoFocusOnHide)
       
  6912         return;
       
  6913       const dialog = ref.current;
       
  6914       return () => focusOnHide(dialog);
       
  6915     }, [hasOpened, mayAutoFocusOnHide, focusOnHide]);
       
  6916     const hideOnEscapeProp = useBooleanEvent(hideOnEscape);
       
  6917     (0,external_React_.useEffect)(() => {
       
  6918       if (!domReady)
       
  6919         return;
       
  6920       if (!mounted)
       
  6921         return;
       
  6922       const onKeyDown = (event) => {
       
  6923         if (event.key !== "Escape")
       
  6924           return;
       
  6925         if (event.defaultPrevented)
       
  6926           return;
       
  6927         const dialog = ref.current;
       
  6928         if (!dialog)
       
  6929           return;
       
  6930         if (isElementMarked(dialog))
       
  6931           return;
       
  6932         const target = event.target;
       
  6933         if (!target)
       
  6934           return;
       
  6935         const { disclosureElement } = store.getState();
       
  6936         const isValidTarget = () => {
       
  6937           if (target.tagName === "BODY")
       
  6938             return true;
       
  6939           if (contains(dialog, target))
       
  6940             return true;
       
  6941           if (!disclosureElement)
       
  6942             return true;
       
  6943           if (contains(disclosureElement, target))
       
  6944             return true;
       
  6945           return false;
       
  6946         };
       
  6947         if (!isValidTarget())
       
  6948           return;
       
  6949         if (!hideOnEscapeProp(event))
       
  6950           return;
       
  6951         store.hide();
       
  6952       };
       
  6953       return addGlobalEventListener("keydown", onKeyDown, true);
       
  6954     }, [store, domReady, mounted, hideOnEscapeProp]);
       
  6955     props = useWrapElement(
       
  6956       props,
       
  6957       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HeadingLevel, { level: modal ? 1 : void 0, children: element }),
       
  6958       [modal]
       
  6959     );
       
  6960     const hiddenProp = props.hidden;
       
  6961     const alwaysVisible = props.alwaysVisible;
       
  6962     props = useWrapElement(
       
  6963       props,
       
  6964       (element) => {
       
  6965         if (!backdrop)
       
  6966           return element;
       
  6967         return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
  6968           /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
  6969             DialogBackdrop,
       
  6970             {
       
  6971               store,
       
  6972               backdrop,
       
  6973               backdropProps,
       
  6974               hidden: hiddenProp,
       
  6975               alwaysVisible
       
  6976             }
       
  6977           ),
       
  6978           element
       
  6979         ] });
       
  6980       },
       
  6981       [store, backdrop, backdropProps, hiddenProp, alwaysVisible]
       
  6982     );
       
  6983     const [headingId, setHeadingId] = (0,external_React_.useState)();
       
  6984     const [descriptionId, setDescriptionId] = (0,external_React_.useState)();
       
  6985     props = useWrapElement(
       
  6986       props,
       
  6987       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogHeadingContext.Provider, { value: setHeadingId, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(DialogDescriptionContext.Provider, { value: setDescriptionId, children: element }) }) }),
       
  6988       [store]
       
  6989     );
       
  6990     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
  6991       id,
       
  6992       "data-dialog": "",
       
  6993       role: "dialog",
       
  6994       tabIndex: focusable ? -1 : void 0,
       
  6995       "aria-labelledby": headingId,
       
  6996       "aria-describedby": descriptionId
       
  6997     }, props), {
       
  6998       ref: useMergeRefs(ref, props.ref)
       
  6999     });
       
  7000     props = useFocusableContainer(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
  7001       autoFocusOnShow: autoFocusEnabled
       
  7002     }));
       
  7003     props = useDisclosureContent(_4R3V3JGP_spreadValues({ store }, props));
       
  7004     props = useFocusable(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { focusable }));
       
  7005     props = usePortal(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({ portal }, props), { portalRef, preserveTabOrder }));
       
  7006     return props;
       
  7007   }
       
  7008 );
       
  7009 function createDialogComponent(Component, useProviderContext = useDialogProviderContext) {
  8369 function createDialogComponent(Component, useProviderContext = useDialogProviderContext) {
  7010   return createComponent((props) => {
  8370   return forwardRef2(function DialogComponent(props) {
  7011     const context = useProviderContext();
  8371     const context = useProviderContext();
  7012     const store = props.store || context;
  8372     const store = props.store || context;
  7013     const mounted = useStoreState(
  8373     const mounted = useStoreState(
  7014       store,
  8374       store,
  7015       (state) => !props.unmountOnHide || (state == null ? void 0 : state.mounted) || !!props.open
  8375       (state) => !props.unmountOnHide || (state == null ? void 0 : state.mounted) || !!props.open
  7016     );
  8376     );
  7017     if (!mounted)
  8377     if (!mounted) return null;
  7018       return null;
  8378     return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, _3YLGPPWQ_spreadValues({}, props));
  7019     return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, _4R3V3JGP_spreadValues({}, props));
       
  7020   });
  8379   });
  7021 }
  8380 }
  7022 var Dialog = createDialogComponent(
  8381 var Dialog = createDialogComponent(
  7023   createComponent((props) => {
  8382   forwardRef2(function Dialog2(props) {
  7024     const htmlProps = useDialog(props);
  8383     const htmlProps = useDialog(props);
  7025     return _3ORBWXWF_createElement("div", htmlProps);
  8384     return LMDWO4NN_createElement(JC64G2H7_TagName, htmlProps);
  7026   }),
  8385   }),
  7027   useDialogProviderContext
  8386   useDialogProviderContext
  7028 );
  8387 );
  7029 if (false) {}
  8388 
  7030 
  8389 
  7031 
  8390 
  7032 
  8391 ;// ./node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
  7033 ;// CONCATENATED MODULE: ./node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
       
  7034 const floating_ui_utils_sides = (/* unused pure expression or super */ null && (['top', 'right', 'bottom', 'left']));
  8392 const floating_ui_utils_sides = (/* unused pure expression or super */ null && (['top', 'right', 'bottom', 'left']));
  7035 const alignments = (/* unused pure expression or super */ null && (['start', 'end']));
  8393 const alignments = (/* unused pure expression or super */ null && (['start', 'end']));
  7036 const floating_ui_utils_placements = /*#__PURE__*/(/* unused pure expression or super */ null && (floating_ui_utils_sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), [])));
  8394 const floating_ui_utils_placements = /*#__PURE__*/(/* unused pure expression or super */ null && (floating_ui_utils_sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), [])));
  7037 const floating_ui_utils_min = Math.min;
  8395 const floating_ui_utils_min = Math.min;
  7038 const floating_ui_utils_max = Math.max;
  8396 const floating_ui_utils_max = Math.max;
  7154   };
  8512   };
  7155 }
  8513 }
  7156 
  8514 
  7157 
  8515 
  7158 
  8516 
  7159 ;// CONCATENATED MODULE: ./node_modules/@floating-ui/core/dist/floating-ui.core.mjs
  8517 ;// ./node_modules/@floating-ui/core/dist/floating-ui.core.mjs
  7160 
  8518 
  7161 
  8519 
  7162 
  8520 
  7163 function computeCoordsFromPlacement(_ref, placement, rtl) {
  8521 function computeCoordsFromPlacement(_ref, placement, rtl) {
  7164   let {
  8522   let {
  8167   };
  9525   };
  8168 };
  9526 };
  8169 
  9527 
  8170 
  9528 
  8171 
  9529 
  8172 ;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
  9530 ;// ./node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
  8173 /**
  9531 /**
  8174  * Custom positioning reference element.
  9532  * Custom positioning reference element.
  8175  * @see https://floating-ui.com/docs/virtual-elements
  9533  * @see https://floating-ui.com/docs/virtual-elements
  8176  */
  9534  */
  8177 
  9535 
  8287     bottom: padding,
  9645     bottom: padding,
  8288     left: padding
  9646     left: padding
  8289   };
  9647   };
  8290 }
  9648 }
  8291 function dist_floating_ui_utils_rectToClientRect(rect) {
  9649 function dist_floating_ui_utils_rectToClientRect(rect) {
       
  9650   const {
       
  9651     x,
       
  9652     y,
       
  9653     width,
       
  9654     height
       
  9655   } = rect;
  8292   return {
  9656   return {
  8293     ...rect,
  9657     width,
  8294     top: rect.y,
  9658     height,
  8295     left: rect.x,
  9659     top: y,
  8296     right: rect.x + rect.width,
  9660     left: x,
  8297     bottom: rect.y + rect.height
  9661     right: x + width,
       
  9662     bottom: y + height,
       
  9663     x,
       
  9664     y
  8298   };
  9665   };
  8299 }
  9666 }
  8300 
  9667 
  8301 
  9668 
  8302 
  9669 
  8303 ;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
  9670 ;// ./node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
       
  9671 function hasWindow() {
       
  9672   return typeof window !== 'undefined';
       
  9673 }
  8304 function getNodeName(node) {
  9674 function getNodeName(node) {
  8305   if (isNode(node)) {
  9675   if (isNode(node)) {
  8306     return (node.nodeName || '').toLowerCase();
  9676     return (node.nodeName || '').toLowerCase();
  8307   }
  9677   }
  8308   // Mocked nodes in testing environments may not be instances of Node. By
  9678   // Mocked nodes in testing environments may not be instances of Node. By
  8317 function getDocumentElement(node) {
  9687 function getDocumentElement(node) {
  8318   var _ref;
  9688   var _ref;
  8319   return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
  9689   return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
  8320 }
  9690 }
  8321 function isNode(value) {
  9691 function isNode(value) {
       
  9692   if (!hasWindow()) {
       
  9693     return false;
       
  9694   }
  8322   return value instanceof Node || value instanceof floating_ui_utils_dom_getWindow(value).Node;
  9695   return value instanceof Node || value instanceof floating_ui_utils_dom_getWindow(value).Node;
  8323 }
  9696 }
  8324 function isElement(value) {
  9697 function isElement(value) {
       
  9698   if (!hasWindow()) {
       
  9699     return false;
       
  9700   }
  8325   return value instanceof Element || value instanceof floating_ui_utils_dom_getWindow(value).Element;
  9701   return value instanceof Element || value instanceof floating_ui_utils_dom_getWindow(value).Element;
  8326 }
  9702 }
  8327 function isHTMLElement(value) {
  9703 function isHTMLElement(value) {
       
  9704   if (!hasWindow()) {
       
  9705     return false;
       
  9706   }
  8328   return value instanceof HTMLElement || value instanceof floating_ui_utils_dom_getWindow(value).HTMLElement;
  9707   return value instanceof HTMLElement || value instanceof floating_ui_utils_dom_getWindow(value).HTMLElement;
  8329 }
  9708 }
  8330 function isShadowRoot(value) {
  9709 function isShadowRoot(value) {
  8331   // Browsers without `ShadowRoot` support.
  9710   if (!hasWindow() || typeof ShadowRoot === 'undefined') {
  8332   if (typeof ShadowRoot === 'undefined') {
       
  8333     return false;
  9711     return false;
  8334   }
  9712   }
  8335   return value instanceof ShadowRoot || value instanceof floating_ui_utils_dom_getWindow(value).ShadowRoot;
  9713   return value instanceof ShadowRoot || value instanceof floating_ui_utils_dom_getWindow(value).ShadowRoot;
  8336 }
  9714 }
  8337 function isOverflowElement(element) {
  9715 function isOverflowElement(element) {
  8344   return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
  9722   return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
  8345 }
  9723 }
  8346 function isTableElement(element) {
  9724 function isTableElement(element) {
  8347   return ['table', 'td', 'th'].includes(getNodeName(element));
  9725   return ['table', 'td', 'th'].includes(getNodeName(element));
  8348 }
  9726 }
  8349 function isContainingBlock(element) {
  9727 function isTopLayer(element) {
       
  9728   return [':popover-open', ':modal'].some(selector => {
       
  9729     try {
       
  9730       return element.matches(selector);
       
  9731     } catch (e) {
       
  9732       return false;
       
  9733     }
       
  9734   });
       
  9735 }
       
  9736 function isContainingBlock(elementOrCss) {
  8350   const webkit = isWebKit();
  9737   const webkit = isWebKit();
  8351   const css = floating_ui_utils_dom_getComputedStyle(element);
  9738   const css = isElement(elementOrCss) ? floating_ui_utils_dom_getComputedStyle(elementOrCss) : elementOrCss;
  8352 
  9739 
  8353   // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
  9740   // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
  8354   return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
  9741   // https://drafts.csswg.org/css-transforms-2/#individual-transforms
       
  9742   return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
  8355 }
  9743 }
  8356 function getContainingBlock(element) {
  9744 function getContainingBlock(element) {
  8357   let currentNode = getParentNode(element);
  9745   let currentNode = getParentNode(element);
  8358   while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
  9746   while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
  8359     if (isContainingBlock(currentNode)) {
  9747     if (isContainingBlock(currentNode)) {
  8360       return currentNode;
  9748       return currentNode;
  8361     } else {
  9749     } else if (isTopLayer(currentNode)) {
  8362       currentNode = getParentNode(currentNode);
  9750       return null;
  8363     }
  9751     }
       
  9752     currentNode = getParentNode(currentNode);
  8364   }
  9753   }
  8365   return null;
  9754   return null;
  8366 }
  9755 }
  8367 function isWebKit() {
  9756 function isWebKit() {
  8368   if (typeof CSS === 'undefined' || !CSS.supports) return false;
  9757   if (typeof CSS === 'undefined' || !CSS.supports) return false;
  8380       scrollLeft: element.scrollLeft,
  9769       scrollLeft: element.scrollLeft,
  8381       scrollTop: element.scrollTop
  9770       scrollTop: element.scrollTop
  8382     };
  9771     };
  8383   }
  9772   }
  8384   return {
  9773   return {
  8385     scrollLeft: element.pageXOffset,
  9774     scrollLeft: element.scrollX,
  8386     scrollTop: element.pageYOffset
  9775     scrollTop: element.scrollY
  8387   };
  9776   };
  8388 }
  9777 }
  8389 function getParentNode(node) {
  9778 function getParentNode(node) {
  8390   if (getNodeName(node) === 'html') {
  9779   if (getNodeName(node) === 'html') {
  8391     return node;
  9780     return node;
  8421   }
  9810   }
  8422   const scrollableAncestor = getNearestOverflowAncestor(node);
  9811   const scrollableAncestor = getNearestOverflowAncestor(node);
  8423   const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
  9812   const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
  8424   const win = floating_ui_utils_dom_getWindow(scrollableAncestor);
  9813   const win = floating_ui_utils_dom_getWindow(scrollableAncestor);
  8425   if (isBody) {
  9814   if (isBody) {
  8426     return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
  9815     const frameElement = getFrameElement(win);
       
  9816     return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
  8427   }
  9817   }
  8428   return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
  9818   return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
  8429 }
  9819 }
  8430 
  9820 function getFrameElement(win) {
  8431 
  9821   return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
  8432 
  9822 }
  8433 ;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
  9823 
       
  9824 
       
  9825 
       
  9826 ;// ./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
  8434 
  9827 
  8435 
  9828 
  8436 
  9829 
  8437 
  9830 
  8438 
  9831 
  8563     y
  9956     y
  8564   });
  9957   });
  8565 }
  9958 }
  8566 
  9959 
  8567 const topLayerSelectors = [':popover-open', ':modal'];
  9960 const topLayerSelectors = [':popover-open', ':modal'];
  8568 function isTopLayer(floating) {
  9961 function floating_ui_dom_isTopLayer(floating) {
  8569   return topLayerSelectors.some(selector => {
  9962   return topLayerSelectors.some(selector => {
  8570     try {
  9963     try {
  8571       return floating.matches(selector);
  9964       return floating.matches(selector);
  8572     } catch (e) {
  9965     } catch (e) {
  8573       return false;
  9966       return false;
  8582     offsetParent,
  9975     offsetParent,
  8583     strategy
  9976     strategy
  8584   } = _ref;
  9977   } = _ref;
  8585   const isFixed = strategy === 'fixed';
  9978   const isFixed = strategy === 'fixed';
  8586   const documentElement = getDocumentElement(offsetParent);
  9979   const documentElement = getDocumentElement(offsetParent);
  8587   const topLayer = elements ? isTopLayer(elements.floating) : false;
  9980   const topLayer = elements ? floating_ui_dom_isTopLayer(elements.floating) : false;
  8588   if (offsetParent === documentElement || topLayer && isFixed) {
  9981   if (offsetParent === documentElement || topLayer && isFixed) {
  8589     return rect;
  9982     return rect;
  8590   }
  9983   }
  8591   let scroll = {
  9984   let scroll = {
  8592     scrollLeft: 0,
  9985     scrollLeft: 0,
  8830 
 10223 
  8831 // Gets the closest ancestor positioned element. Handles some edge cases,
 10224 // Gets the closest ancestor positioned element. Handles some edge cases,
  8832 // such as table ancestors and cross browser bugs.
 10225 // such as table ancestors and cross browser bugs.
  8833 function getOffsetParent(element, polyfill) {
 10226 function getOffsetParent(element, polyfill) {
  8834   const window = floating_ui_utils_dom_getWindow(element);
 10227   const window = floating_ui_utils_dom_getWindow(element);
  8835   if (!isHTMLElement(element) || isTopLayer(element)) {
 10228   if (!isHTMLElement(element) || floating_ui_dom_isTopLayer(element)) {
  8836     return window;
 10229     return window;
  8837   }
 10230   }
  8838   let offsetParent = getTrueOffsetParent(element, polyfill);
 10231   let offsetParent = getTrueOffsetParent(element, polyfill);
  8839   while (offsetParent && isTableElement(offsetParent) && floating_ui_utils_dom_getComputedStyle(offsetParent).position === 'static') {
 10232   while (offsetParent && isTableElement(offsetParent) && floating_ui_utils_dom_getComputedStyle(offsetParent).position === 'static') {
  8840     offsetParent = getTrueOffsetParent(offsetParent, polyfill);
 10233     offsetParent = getTrueOffsetParent(offsetParent, polyfill);
  9109   });
 10502   });
  9110 };
 10503 };
  9111 
 10504 
  9112 
 10505 
  9113 
 10506 
  9114 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/IRX7SFUJ.js
 10507 ;// ./node_modules/@ariakit/react-core/esm/__chunks/T6C2RYFI.js
  9115 "use client";
 10508 "use client";
  9116 
 10509 
  9117 
 10510 
  9118 
 10511 
  9119 
 10512 
  9122 // src/popover/popover.tsx
 10515 // src/popover/popover.tsx
  9123 
 10516 
  9124 
 10517 
  9125 
 10518 
  9126 
 10519 
       
 10520 var T6C2RYFI_TagName = "div";
  9127 function createDOMRect(x = 0, y = 0, width = 0, height = 0) {
 10521 function createDOMRect(x = 0, y = 0, width = 0, height = 0) {
  9128   if (typeof DOMRect === "function") {
 10522   if (typeof DOMRect === "function") {
  9129     return new DOMRect(x, y, width, height);
 10523     return new DOMRect(x, y, width, height);
  9130   }
 10524   }
  9131   const rect = {
 10525   const rect = {
  9136     top: y,
 10530     top: y,
  9137     right: x + width,
 10531     right: x + width,
  9138     bottom: y + height,
 10532     bottom: y + height,
  9139     left: x
 10533     left: x
  9140   };
 10534   };
  9141   return _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, rect), { toJSON: () => rect });
 10535   return _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, rect), { toJSON: () => rect });
  9142 }
 10536 }
  9143 function getDOMRect(anchorRect) {
 10537 function getDOMRect(anchorRect) {
  9144   if (!anchorRect)
 10538   if (!anchorRect) return createDOMRect();
  9145     return createDOMRect();
       
  9146   const { x, y, width, height } = anchorRect;
 10539   const { x, y, width, height } = anchorRect;
  9147   return createDOMRect(x, y, width, height);
 10540   return createDOMRect(x, y, width, height);
  9148 }
 10541 }
  9149 function getAnchorElement(anchorElement, getAnchorRect) {
 10542 function getAnchorElement(anchorElement, getAnchorRect) {
  9150   const contextElement = anchorElement || void 0;
 10543   const contextElement = anchorElement || void 0;
  9179       alignmentAxis: props.shift
 10572       alignmentAxis: props.shift
  9180     };
 10573     };
  9181   });
 10574   });
  9182 }
 10575 }
  9183 function getFlipMiddleware(props) {
 10576 function getFlipMiddleware(props) {
  9184   if (props.flip === false)
 10577   if (props.flip === false) return;
  9185     return;
       
  9186   const fallbackPlacements = typeof props.flip === "string" ? props.flip.split(" ") : void 0;
 10578   const fallbackPlacements = typeof props.flip === "string" ? props.flip.split(" ") : void 0;
  9187   invariant(
 10579   invariant(
  9188     !fallbackPlacements || fallbackPlacements.every(isValidPlacement),
 10580     !fallbackPlacements || fallbackPlacements.every(isValidPlacement),
  9189      false && 0
 10581      false && 0
  9190   );
 10582   );
  9192     padding: props.overflowPadding,
 10584     padding: props.overflowPadding,
  9193     fallbackPlacements
 10585     fallbackPlacements
  9194   });
 10586   });
  9195 }
 10587 }
  9196 function getShiftMiddleware(props) {
 10588 function getShiftMiddleware(props) {
  9197   if (!props.slide && !props.overlap)
 10589   if (!props.slide && !props.overlap) return;
  9198     return;
       
  9199   return floating_ui_dom_shift({
 10590   return floating_ui_dom_shift({
  9200     mainAxis: props.slide,
 10591     mainAxis: props.slide,
  9201     crossAxis: props.overlap,
 10592     crossAxis: props.overlap,
  9202     padding: props.overflowPadding,
 10593     padding: props.overflowPadding,
  9203     limiter: floating_ui_dom_limitShift()
 10594     limiter: floating_ui_dom_limitShift()
  9232       }
 10623       }
  9233     }
 10624     }
  9234   });
 10625   });
  9235 }
 10626 }
  9236 function getArrowMiddleware(arrowElement, props) {
 10627 function getArrowMiddleware(arrowElement, props) {
  9237   if (!arrowElement)
 10628   if (!arrowElement) return;
  9238     return;
       
  9239   return floating_ui_dom_arrow({
 10629   return floating_ui_dom_arrow({
  9240     element: arrowElement,
 10630     element: arrowElement,
  9241     padding: props.arrowPadding
 10631     padding: props.arrowPadding
  9242   });
 10632   });
  9243 }
 10633 }
  9244 var usePopover = createHook(
 10634 var usePopover = createHook(
  9245   (_a) => {
 10635   function usePopover2(_a) {
  9246     var _b = _a, {
 10636     var _b = _a, {
  9247       store,
 10637       store,
  9248       modal = false,
 10638       modal = false,
  9249       portal = !!modal,
 10639       portal = !!modal,
  9250       preserveTabOrder = true,
 10640       preserveTabOrder = true,
  9294     const popoverElement = store.useState("popoverElement");
 10684     const popoverElement = store.useState("popoverElement");
  9295     const contentElement = store.useState("contentElement");
 10685     const contentElement = store.useState("contentElement");
  9296     const placement = store.useState("placement");
 10686     const placement = store.useState("placement");
  9297     const mounted = store.useState("mounted");
 10687     const mounted = store.useState("mounted");
  9298     const rendered = store.useState("rendered");
 10688     const rendered = store.useState("rendered");
       
 10689     const defaultArrowElementRef = (0,external_React_.useRef)(null);
  9299     const [positioned, setPositioned] = (0,external_React_.useState)(false);
 10690     const [positioned, setPositioned] = (0,external_React_.useState)(false);
  9300     const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
 10691     const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
  9301     const getAnchorRectProp = useEvent(getAnchorRect);
 10692     const getAnchorRectProp = useEvent(getAnchorRect);
  9302     const updatePositionProp = useEvent(updatePosition);
 10693     const updatePositionProp = useEvent(updatePosition);
  9303     const hasCustomUpdatePosition = !!updatePosition;
 10694     const hasCustomUpdatePosition = !!updatePosition;
  9304     useSafeLayoutEffect(() => {
 10695     useSafeLayoutEffect(() => {
  9305       if (!(popoverElement == null ? void 0 : popoverElement.isConnected))
 10696       if (!(popoverElement == null ? void 0 : popoverElement.isConnected)) return;
  9306         return;
       
  9307       popoverElement.style.setProperty(
 10697       popoverElement.style.setProperty(
  9308         "--popover-overflow-padding",
 10698         "--popover-overflow-padding",
  9309         `${overflowPadding}px`
 10699         `${overflowPadding}px`
  9310       );
 10700       );
  9311       const anchor = getAnchorElement(anchorElement, getAnchorRectProp);
 10701       const anchor = getAnchorElement(anchorElement, getAnchorRectProp);
  9312       const updatePosition2 = async () => {
 10702       const updatePosition2 = async () => {
  9313         if (!mounted)
 10703         if (!mounted) return;
  9314           return;
 10704         if (!arrowElement) {
       
 10705           defaultArrowElementRef.current = defaultArrowElementRef.current || document.createElement("div");
       
 10706         }
       
 10707         const arrow2 = arrowElement || defaultArrowElementRef.current;
  9315         const middleware = [
 10708         const middleware = [
  9316           getOffsetMiddleware(arrowElement, { gutter, shift: shift2 }),
 10709           getOffsetMiddleware(arrow2, { gutter, shift: shift2 }),
  9317           getFlipMiddleware({ flip: flip2, overflowPadding }),
 10710           getFlipMiddleware({ flip: flip2, overflowPadding }),
  9318           getShiftMiddleware({ slide, shift: shift2, overlap, overflowPadding }),
 10711           getShiftMiddleware({ slide, shift: shift2, overlap, overflowPadding }),
  9319           getArrowMiddleware(arrowElement, { arrowPadding }),
 10712           getArrowMiddleware(arrow2, { arrowPadding }),
  9320           getSizeMiddleware({
 10713           getSizeMiddleware({
  9321             sameWidth,
 10714             sameWidth,
  9322             fitViewport,
 10715             fitViewport,
  9323             overflowPadding
 10716             overflowPadding
  9324           })
 10717           })
  9335         Object.assign(popoverElement.style, {
 10728         Object.assign(popoverElement.style, {
  9336           top: "0",
 10729           top: "0",
  9337           left: "0",
 10730           left: "0",
  9338           transform: `translate3d(${x}px,${y}px,0)`
 10731           transform: `translate3d(${x}px,${y}px,0)`
  9339         });
 10732         });
  9340         if (arrowElement && pos.middlewareData.arrow) {
 10733         if (arrow2 && pos.middlewareData.arrow) {
  9341           const { x: arrowX, y: arrowY } = pos.middlewareData.arrow;
 10734           const { x: arrowX, y: arrowY } = pos.middlewareData.arrow;
  9342           const dir = pos.placement.split("-")[0];
 10735           const side = pos.placement.split("-")[0];
  9343           Object.assign(arrowElement.style, {
 10736           const centerX = arrow2.clientWidth / 2;
       
 10737           const centerY = arrow2.clientHeight / 2;
       
 10738           const originX = arrowX != null ? arrowX + centerX : -centerX;
       
 10739           const originY = arrowY != null ? arrowY + centerY : -centerY;
       
 10740           popoverElement.style.setProperty(
       
 10741             "--popover-transform-origin",
       
 10742             {
       
 10743               top: `${originX}px calc(100% + ${centerY}px)`,
       
 10744               bottom: `${originX}px ${-centerY}px`,
       
 10745               left: `calc(100% + ${centerX}px) ${originY}px`,
       
 10746               right: `${-centerX}px ${originY}px`
       
 10747             }[side]
       
 10748           );
       
 10749           Object.assign(arrow2.style, {
  9344             left: arrowX != null ? `${arrowX}px` : "",
 10750             left: arrowX != null ? `${arrowX}px` : "",
  9345             top: arrowY != null ? `${arrowY}px` : "",
 10751             top: arrowY != null ? `${arrowY}px` : "",
  9346             [dir]: "100%"
 10752             [side]: "100%"
  9347           });
 10753           });
  9348         }
 10754         }
  9349       };
 10755       };
  9350       const update = async () => {
 10756       const update = async () => {
  9351         if (hasCustomUpdatePosition) {
 10757         if (hasCustomUpdatePosition) {
  9386       getAnchorRectProp,
 10792       getAnchorRectProp,
  9387       hasCustomUpdatePosition,
 10793       hasCustomUpdatePosition,
  9388       updatePositionProp
 10794       updatePositionProp
  9389     ]);
 10795     ]);
  9390     useSafeLayoutEffect(() => {
 10796     useSafeLayoutEffect(() => {
  9391       if (!mounted)
 10797       if (!mounted) return;
  9392         return;
 10798       if (!domReady) return;
  9393       if (!domReady)
 10799       if (!(popoverElement == null ? void 0 : popoverElement.isConnected)) return;
  9394         return;
 10800       if (!(contentElement == null ? void 0 : contentElement.isConnected)) return;
  9395       if (!(popoverElement == null ? void 0 : popoverElement.isConnected))
       
  9396         return;
       
  9397       if (!(contentElement == null ? void 0 : contentElement.isConnected))
       
  9398         return;
       
  9399       const applyZIndex = () => {
 10801       const applyZIndex = () => {
  9400         popoverElement.style.zIndex = getComputedStyle(contentElement).zIndex;
 10802         popoverElement.style.zIndex = getComputedStyle(contentElement).zIndex;
  9401       };
 10803       };
  9402       applyZIndex();
 10804       applyZIndex();
  9403       let raf = requestAnimationFrame(() => {
 10805       let raf = requestAnimationFrame(() => {
  9408     const position = fixed ? "fixed" : "absolute";
 10810     const position = fixed ? "fixed" : "absolute";
  9409     props = useWrapElement(
 10811     props = useWrapElement(
  9410       props,
 10812       props,
  9411       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
 10813       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
  9412         "div",
 10814         "div",
  9413         _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 10815         _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, wrapperProps), {
  9414           role: "presentation"
 10816           style: _3YLGPPWQ_spreadValues({
  9415         }, wrapperProps), {
       
  9416           style: _4R3V3JGP_spreadValues({
       
  9417             // https://floating-ui.com/docs/computeposition#initial-layout
 10817             // https://floating-ui.com/docs/computeposition#initial-layout
  9418             position,
 10818             position,
  9419             top: 0,
 10819             top: 0,
  9420             left: 0,
 10820             left: 0,
  9421             width: "max-content"
 10821             width: "max-content"
  9429     props = useWrapElement(
 10829     props = useWrapElement(
  9430       props,
 10830       props,
  9431       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
 10831       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
  9432       [store]
 10832       [store]
  9433     );
 10833     );
  9434     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 10834     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  9435       // data-placing is not part of the public API. We're setting this here so
 10835       // data-placing is not part of the public API. We're setting this here so
  9436       // we can wait for the popover to be positioned before other components
 10836       // we can wait for the popover to be positioned before other components
  9437       // move focus into it. For example, this attribute is observed by the
 10837       // move focus into it. For example, this attribute is observed by the
  9438       // Combobox component with the autoSelect behavior.
 10838       // Combobox component with the autoSelect behavior.
  9439       "data-placing": !positioned ? "" : void 0
 10839       "data-placing": !positioned || void 0
  9440     }, props), {
 10840     }, props), {
  9441       style: _4R3V3JGP_spreadValues({
 10841       style: _3YLGPPWQ_spreadValues({
  9442         position: "relative"
 10842         position: "relative"
  9443       }, props.style)
 10843       }, props.style)
  9444     });
 10844     });
  9445     props = useDialog(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 10845     props = useDialog(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  9446       store,
 10846       store,
  9447       modal,
 10847       modal,
  9448       portal,
 10848       portal,
  9449       preserveTabOrder,
 10849       preserveTabOrder,
  9450       preserveTabOrderAnchor: disclosureElement || anchorElement,
 10850       preserveTabOrderAnchor: disclosureElement || anchorElement,
  9454     }));
 10854     }));
  9455     return props;
 10855     return props;
  9456   }
 10856   }
  9457 );
 10857 );
  9458 var Popover = createDialogComponent(
 10858 var Popover = createDialogComponent(
  9459   createComponent((props) => {
 10859   forwardRef2(function Popover2(props) {
  9460     const htmlProps = usePopover(props);
 10860     const htmlProps = usePopover(props);
  9461     return _3ORBWXWF_createElement("div", htmlProps);
 10861     return LMDWO4NN_createElement(T6C2RYFI_TagName, htmlProps);
  9462   }),
 10862   }),
  9463   usePopoverProviderContext
 10863   usePopoverProviderContext
  9464 );
 10864 );
  9465 if (false) {}
 10865 
  9466 
 10866 
  9467 
 10867 
  9468 
 10868 ;// ./node_modules/@ariakit/react-core/esm/__chunks/KQKDTOT4.js
  9469 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/QWSZGSIG.js
       
  9470 "use client";
 10869 "use client";
  9471 
 10870 
  9472 
 10871 
  9473 
 10872 
  9474 
 10873 
  9482 
 10881 
  9483 
 10882 
  9484 
 10883 
  9485 
 10884 
  9486 
 10885 
       
 10886 var KQKDTOT4_TagName = "div";
  9487 function isMovingOnHovercard(target, card, anchor, nested) {
 10887 function isMovingOnHovercard(target, card, anchor, nested) {
  9488   if (hasFocusWithin(card))
 10888   if (hasFocusWithin(card)) return true;
  9489     return true;
 10889   if (!target) return false;
  9490   if (!target)
 10890   if (contains(card, target)) return true;
  9491     return false;
 10891   if (anchor && contains(anchor, target)) return true;
  9492   if (contains(card, target))
       
  9493     return true;
       
  9494   if (anchor && contains(anchor, target))
       
  9495     return true;
       
  9496   if (nested == null ? void 0 : nested.some((card2) => isMovingOnHovercard(target, card2, anchor))) {
 10892   if (nested == null ? void 0 : nested.some((card2) => isMovingOnHovercard(target, card2, anchor))) {
  9497     return true;
 10893     return true;
  9498   }
 10894   }
  9499   return false;
 10895   return false;
  9500 }
 10896 }
  9512     }
 10908     }
  9513   }, [mounted]);
 10909   }, [mounted]);
  9514   const onFocusProp = props.onFocus;
 10910   const onFocusProp = props.onFocus;
  9515   const onFocus = useEvent((event) => {
 10911   const onFocus = useEvent((event) => {
  9516     onFocusProp == null ? void 0 : onFocusProp(event);
 10912     onFocusProp == null ? void 0 : onFocusProp(event);
  9517     if (event.defaultPrevented)
 10913     if (event.defaultPrevented) return;
  9518       return;
       
  9519     setAutoFocusOnHide(true);
 10914     setAutoFocusOnHide(true);
  9520   });
 10915   });
  9521   const finalFocusRef = (0,external_React_.useRef)(null);
 10916   const finalFocusRef = (0,external_React_.useRef)(null);
  9522   (0,external_React_.useEffect)(() => {
 10917   (0,external_React_.useEffect)(() => {
  9523     return sync(store, ["anchorElement"], (state) => {
 10918     return sync(store, ["anchorElement"], (state) => {
  9524       finalFocusRef.current = state.anchorElement;
 10919       finalFocusRef.current = state.anchorElement;
  9525     });
 10920     });
  9526   }, []);
 10921   }, []);
  9527   props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 10922   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  9528     autoFocusOnHide,
 10923     autoFocusOnHide,
  9529     finalFocus: finalFocusRef
 10924     finalFocus: finalFocusRef
  9530   }, props), {
 10925   }, props), {
  9531     onFocus
 10926     onFocus
  9532   });
 10927   });
  9533   return props;
 10928   return props;
  9534 }
 10929 }
  9535 var NestedHovercardContext = (0,external_React_.createContext)(null);
 10930 var NestedHovercardContext = (0,external_React_.createContext)(null);
  9536 var useHovercard = createHook(
 10931 var useHovercard = createHook(
  9537   (_a) => {
 10932   function useHovercard2(_a) {
  9538     var _b = _a, {
 10933     var _b = _a, {
  9539       store,
 10934       store,
  9540       modal = false,
 10935       modal = false,
  9541       portal = !!modal,
 10936       portal = !!modal,
  9542       hideOnEscape = true,
 10937       hideOnEscape = true,
  9559     const ref = (0,external_React_.useRef)(null);
 10954     const ref = (0,external_React_.useRef)(null);
  9560     const [nestedHovercards, setNestedHovercards] = (0,external_React_.useState)([]);
 10955     const [nestedHovercards, setNestedHovercards] = (0,external_React_.useState)([]);
  9561     const hideTimeoutRef = (0,external_React_.useRef)(0);
 10956     const hideTimeoutRef = (0,external_React_.useRef)(0);
  9562     const enterPointRef = (0,external_React_.useRef)(null);
 10957     const enterPointRef = (0,external_React_.useRef)(null);
  9563     const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
 10958     const { portalRef, domReady } = usePortalRef(portal, props.portalRef);
       
 10959     const isMouseMoving = useIsMouseMoving();
  9564     const mayHideOnHoverOutside = !!hideOnHoverOutside;
 10960     const mayHideOnHoverOutside = !!hideOnHoverOutside;
  9565     const hideOnHoverOutsideProp = useBooleanEvent(hideOnHoverOutside);
 10961     const hideOnHoverOutsideProp = useBooleanEvent(hideOnHoverOutside);
  9566     const mayDisablePointerEvents = !!disablePointerEventsOnApproach;
 10962     const mayDisablePointerEvents = !!disablePointerEventsOnApproach;
  9567     const disablePointerEventsProp = useBooleanEvent(
 10963     const disablePointerEventsProp = useBooleanEvent(
  9568       disablePointerEventsOnApproach
 10964       disablePointerEventsOnApproach
  9569     );
 10965     );
  9570     const open = store.useState("open");
 10966     const open = store.useState("open");
  9571     const mounted = store.useState("mounted");
 10967     const mounted = store.useState("mounted");
  9572     (0,external_React_.useEffect)(() => {
 10968     (0,external_React_.useEffect)(() => {
  9573       if (!domReady)
 10969       if (!domReady) return;
  9574         return;
 10970       if (!mounted) return;
  9575       if (!mounted)
 10971       if (!mayHideOnHoverOutside && !mayDisablePointerEvents) return;
  9576         return;
       
  9577       if (!mayHideOnHoverOutside && !mayDisablePointerEvents)
       
  9578         return;
       
  9579       const element = ref.current;
 10972       const element = ref.current;
  9580       if (!element)
 10973       if (!element) return;
  9581         return;
       
  9582       const onMouseMove = (event) => {
 10974       const onMouseMove = (event) => {
  9583         if (!store)
 10975         if (!store) return;
  9584           return;
 10976         if (!isMouseMoving()) return;
  9585         const { anchorElement, hideTimeout, timeout } = store.getState();
 10977         const { anchorElement, hideTimeout, timeout } = store.getState();
  9586         const enterPoint = enterPointRef.current;
 10978         const enterPoint = enterPointRef.current;
  9587         const [target] = event.composedPath();
 10979         const [target] = event.composedPath();
  9588         const anchor = anchorElement;
 10980         const anchor = anchorElement;
  9589         if (isMovingOnHovercard(target, element, anchor, nestedHovercards)) {
 10981         if (isMovingOnHovercard(target, element, anchor, nestedHovercards)) {
  9590           enterPointRef.current = target && anchor && contains(anchor, target) ? getEventPoint(event) : null;
 10982           enterPointRef.current = target && anchor && contains(anchor, target) ? getEventPoint(event) : null;
  9591           window.clearTimeout(hideTimeoutRef.current);
 10983           window.clearTimeout(hideTimeoutRef.current);
  9592           hideTimeoutRef.current = 0;
 10984           hideTimeoutRef.current = 0;
  9593           return;
 10985           return;
  9594         }
 10986         }
  9595         if (hideTimeoutRef.current)
 10987         if (hideTimeoutRef.current) return;
  9596           return;
       
  9597         if (enterPoint) {
 10988         if (enterPoint) {
  9598           const currentPoint = getEventPoint(event);
 10989           const currentPoint = getEventPoint(event);
  9599           const polygon = getElementPolygon(element, enterPoint);
 10990           const polygon = getElementPolygon(element, enterPoint);
  9600           if (isPointInPolygon(currentPoint, polygon)) {
 10991           if (isPointInPolygon(currentPoint, polygon)) {
  9601             enterPointRef.current = currentPoint;
 10992             enterPointRef.current = currentPoint;
  9602             if (!disablePointerEventsProp(event))
 10993             if (!disablePointerEventsProp(event)) return;
  9603               return;
       
  9604             event.preventDefault();
 10994             event.preventDefault();
  9605             event.stopPropagation();
 10995             event.stopPropagation();
  9606             return;
 10996             return;
  9607           }
 10997           }
  9608         }
 10998         }
  9609         if (!hideOnHoverOutsideProp(event))
 10999         if (!hideOnHoverOutsideProp(event)) return;
  9610           return;
       
  9611         hideTimeoutRef.current = window.setTimeout(() => {
 11000         hideTimeoutRef.current = window.setTimeout(() => {
  9612           hideTimeoutRef.current = 0;
 11001           hideTimeoutRef.current = 0;
  9613           store == null ? void 0 : store.hide();
 11002           store == null ? void 0 : store.hide();
  9614         }, hideTimeout != null ? hideTimeout : timeout);
 11003         }, hideTimeout != null ? hideTimeout : timeout);
  9615       };
 11004       };
  9617         addGlobalEventListener("mousemove", onMouseMove, true),
 11006         addGlobalEventListener("mousemove", onMouseMove, true),
  9618         () => clearTimeout(hideTimeoutRef.current)
 11007         () => clearTimeout(hideTimeoutRef.current)
  9619       );
 11008       );
  9620     }, [
 11009     }, [
  9621       store,
 11010       store,
       
 11011       isMouseMoving,
  9622       domReady,
 11012       domReady,
  9623       mounted,
 11013       mounted,
  9624       mayHideOnHoverOutside,
 11014       mayHideOnHoverOutside,
  9625       mayDisablePointerEvents,
 11015       mayDisablePointerEvents,
  9626       nestedHovercards,
 11016       nestedHovercards,
  9627       disablePointerEventsProp,
 11017       disablePointerEventsProp,
  9628       hideOnHoverOutsideProp
 11018       hideOnHoverOutsideProp
  9629     ]);
 11019     ]);
  9630     (0,external_React_.useEffect)(() => {
 11020     (0,external_React_.useEffect)(() => {
  9631       if (!domReady)
 11021       if (!domReady) return;
  9632         return;
 11022       if (!mounted) return;
  9633       if (!mounted)
 11023       if (!mayDisablePointerEvents) return;
  9634         return;
       
  9635       if (!mayDisablePointerEvents)
       
  9636         return;
       
  9637       const disableEvent = (event) => {
 11024       const disableEvent = (event) => {
  9638         const element = ref.current;
 11025         const element = ref.current;
  9639         if (!element)
 11026         if (!element) return;
  9640           return;
       
  9641         const enterPoint = enterPointRef.current;
 11027         const enterPoint = enterPointRef.current;
  9642         if (!enterPoint)
 11028         if (!enterPoint) return;
  9643           return;
       
  9644         const polygon = getElementPolygon(element, enterPoint);
 11029         const polygon = getElementPolygon(element, enterPoint);
  9645         if (isPointInPolygon(getEventPoint(event), polygon)) {
 11030         if (isPointInPolygon(getEventPoint(event), polygon)) {
  9646           if (!disablePointerEventsProp(event))
 11031           if (!disablePointerEventsProp(event)) return;
  9647             return;
       
  9648           event.preventDefault();
 11032           event.preventDefault();
  9649           event.stopPropagation();
 11033           event.stopPropagation();
  9650         }
 11034         }
  9651       };
 11035       };
  9652       return chain(
 11036       return chain(
  9656         addGlobalEventListener("mouseout", disableEvent, true),
 11040         addGlobalEventListener("mouseout", disableEvent, true),
  9657         addGlobalEventListener("mouseleave", disableEvent, true)
 11041         addGlobalEventListener("mouseleave", disableEvent, true)
  9658       );
 11042       );
  9659     }, [domReady, mounted, mayDisablePointerEvents, disablePointerEventsProp]);
 11043     }, [domReady, mounted, mayDisablePointerEvents, disablePointerEventsProp]);
  9660     (0,external_React_.useEffect)(() => {
 11044     (0,external_React_.useEffect)(() => {
  9661       if (!domReady)
 11045       if (!domReady) return;
  9662         return;
 11046       if (open) return;
  9663       if (open)
       
  9664         return;
       
  9665       store == null ? void 0 : store.setAutoFocusOnShow(false);
 11047       store == null ? void 0 : store.setAutoFocusOnShow(false);
  9666     }, [store, domReady, open]);
 11048     }, [store, domReady, open]);
  9667     const openRef = useLiveRef(open);
 11049     const openRef = useLiveRef(open);
  9668     (0,external_React_.useEffect)(() => {
 11050     (0,external_React_.useEffect)(() => {
  9669       if (!domReady)
 11051       if (!domReady) return;
  9670         return;
       
  9671       return () => {
 11052       return () => {
  9672         if (!openRef.current) {
 11053         if (!openRef.current) {
  9673           store == null ? void 0 : store.setAutoFocusOnShow(false);
 11054           store == null ? void 0 : store.setAutoFocusOnShow(false);
  9674         }
 11055         }
  9675       };
 11056       };
  9676     }, [store, domReady]);
 11057     }, [store, domReady]);
  9677     const registerOnParent = (0,external_React_.useContext)(NestedHovercardContext);
 11058     const registerOnParent = (0,external_React_.useContext)(NestedHovercardContext);
  9678     useSafeLayoutEffect(() => {
 11059     useSafeLayoutEffect(() => {
  9679       if (modal)
 11060       if (modal) return;
  9680         return;
 11061       if (!portal) return;
  9681       if (!portal)
 11062       if (!mounted) return;
  9682         return;
 11063       if (!domReady) return;
  9683       if (!mounted)
       
  9684         return;
       
  9685       if (!domReady)
       
  9686         return;
       
  9687       const element = ref.current;
 11064       const element = ref.current;
  9688       if (!element)
 11065       if (!element) return;
  9689         return;
       
  9690       return registerOnParent == null ? void 0 : registerOnParent(element);
 11066       return registerOnParent == null ? void 0 : registerOnParent(element);
  9691     }, [modal, portal, mounted, domReady]);
 11067     }, [modal, portal, mounted, domReady]);
  9692     const registerNestedHovercard = (0,external_React_.useCallback)(
 11068     const registerNestedHovercard = (0,external_React_.useCallback)(
  9693       (element) => {
 11069       (element) => {
  9694         setNestedHovercards((prevElements) => [...prevElements, element]);
 11070         setNestedHovercards((prevElements) => [...prevElements, element]);
  9705     props = useWrapElement(
 11081     props = useWrapElement(
  9706       props,
 11082       props,
  9707       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HovercardScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(NestedHovercardContext.Provider, { value: registerNestedHovercard, children: element }) }),
 11083       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(HovercardScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(NestedHovercardContext.Provider, { value: registerNestedHovercard, children: element }) }),
  9708       [store, registerNestedHovercard]
 11084       [store, registerNestedHovercard]
  9709     );
 11085     );
  9710     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
 11086     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  9711       ref: useMergeRefs(ref, props.ref)
 11087       ref: useMergeRefs(ref, props.ref)
  9712     });
 11088     });
  9713     props = useAutoFocusOnHide(_4R3V3JGP_spreadValues({ store }, props));
 11089     props = useAutoFocusOnHide(_3YLGPPWQ_spreadValues({ store }, props));
  9714     const autoFocusOnShow = store.useState(
 11090     const autoFocusOnShow = store.useState(
  9715       (state) => modal || state.autoFocusOnShow
 11091       (state) => modal || state.autoFocusOnShow
  9716     );
 11092     );
  9717     props = usePopover(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 11093     props = usePopover(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
  9718       store,
 11094       store,
  9719       modal,
 11095       modal,
  9720       portal,
 11096       portal,
  9721       autoFocusOnShow
 11097       autoFocusOnShow
  9722     }, props), {
 11098     }, props), {
  9723       portalRef,
 11099       portalRef,
  9724       hideOnEscape(event) {
 11100       hideOnEscape(event) {
  9725         if (isFalsyBooleanCallback(hideOnEscape, event))
 11101         if (isFalsyBooleanCallback(hideOnEscape, event)) return false;
  9726           return false;
       
  9727         requestAnimationFrame(() => {
 11102         requestAnimationFrame(() => {
  9728           requestAnimationFrame(() => {
 11103           requestAnimationFrame(() => {
  9729             store == null ? void 0 : store.hide();
 11104             store == null ? void 0 : store.hide();
  9730           });
 11105           });
  9731         });
 11106         });
  9734     }));
 11109     }));
  9735     return props;
 11110     return props;
  9736   }
 11111   }
  9737 );
 11112 );
  9738 var Hovercard = createDialogComponent(
 11113 var Hovercard = createDialogComponent(
  9739   createComponent((props) => {
 11114   forwardRef2(function Hovercard2(props) {
  9740     const htmlProps = useHovercard(props);
 11115     const htmlProps = useHovercard(props);
  9741     return _3ORBWXWF_createElement("div", htmlProps);
 11116     return LMDWO4NN_createElement(KQKDTOT4_TagName, htmlProps);
  9742   }),
 11117   }),
  9743   useHovercardProviderContext
 11118   useHovercardProviderContext
  9744 );
 11119 );
  9745 if (false) {}
 11120 
  9746 
 11121 
  9747 
 11122 
  9748 
 11123 ;// ./node_modules/@ariakit/react-core/esm/tooltip/tooltip.js
  9749 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tooltip/tooltip.js
       
  9750 "use client";
 11124 "use client";
  9751 
 11125 
  9752 
 11126 
  9753 
 11127 
  9754 
 11128 
  9788 
 11162 
  9789 
 11163 
  9790 
 11164 
  9791 
 11165 
  9792 
 11166 
       
 11167 
  9793 // src/tooltip/tooltip.tsx
 11168 // src/tooltip/tooltip.tsx
  9794 
 11169 
  9795 
 11170 
  9796 
 11171 
       
 11172 var tooltip_TagName = "div";
  9797 var useTooltip = createHook(
 11173 var useTooltip = createHook(
  9798   (_a) => {
 11174   function useTooltip2(_a) {
  9799     var _b = _a, {
 11175     var _b = _a, {
  9800       store,
 11176       store,
  9801       portal = true,
 11177       portal = true,
  9802       gutter = 8,
 11178       gutter = 8,
  9803       preserveTabOrder = false,
 11179       preserveTabOrder = false,
  9823       [store]
 11199       [store]
  9824     );
 11200     );
  9825     const role = store.useState(
 11201     const role = store.useState(
  9826       (state) => state.type === "description" ? "tooltip" : "none"
 11202       (state) => state.type === "description" ? "tooltip" : "none"
  9827     );
 11203     );
  9828     props = _4R3V3JGP_spreadValues({ role }, props);
 11204     props = _3YLGPPWQ_spreadValues({ role }, props);
  9829     props = useHovercard(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
 11205     props = useHovercard(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
  9830       store,
 11206       store,
  9831       portal,
 11207       portal,
  9832       gutter,
 11208       gutter,
  9833       preserveTabOrder,
 11209       preserveTabOrder,
  9834       hideOnHoverOutside: (event) => {
 11210       hideOnHoverOutside(event) {
  9835         if (isFalsyBooleanCallback(hideOnHoverOutside, event))
 11211         if (isFalsyBooleanCallback(hideOnHoverOutside, event)) return false;
  9836           return false;
       
  9837         const anchorElement = store == null ? void 0 : store.getState().anchorElement;
 11212         const anchorElement = store == null ? void 0 : store.getState().anchorElement;
  9838         if (!anchorElement)
 11213         if (!anchorElement) return true;
  9839           return true;
 11214         if ("focusVisible" in anchorElement.dataset) return false;
  9840         if ("focusVisible" in anchorElement.dataset)
       
  9841           return false;
       
  9842         return true;
 11215         return true;
  9843       },
 11216       },
  9844       hideOnInteractOutside: (event) => {
 11217       hideOnInteractOutside: (event) => {
  9845         if (isFalsyBooleanCallback(hideOnInteractOutside, event))
 11218         if (isFalsyBooleanCallback(hideOnInteractOutside, event)) return false;
  9846           return false;
       
  9847         const anchorElement = store == null ? void 0 : store.getState().anchorElement;
 11219         const anchorElement = store == null ? void 0 : store.getState().anchorElement;
  9848         if (!anchorElement)
 11220         if (!anchorElement) return true;
  9849           return true;
 11221         if (contains(anchorElement, event.target)) return false;
  9850         if (contains(anchorElement, event.target))
       
  9851           return false;
       
  9852         return true;
 11222         return true;
  9853       }
 11223       }
  9854     }));
 11224     }));
  9855     return props;
 11225     return props;
  9856   }
 11226   }
  9857 );
 11227 );
  9858 var Tooltip = createDialogComponent(
 11228 var Tooltip = createDialogComponent(
  9859   createComponent((props) => {
 11229   forwardRef2(function Tooltip2(props) {
  9860     const htmlProps = useTooltip(props);
 11230     const htmlProps = useTooltip(props);
  9861     return _3ORBWXWF_createElement("div", htmlProps);
 11231     return LMDWO4NN_createElement(tooltip_TagName, htmlProps);
  9862   }),
 11232   }),
  9863   useTooltipProviderContext
 11233   useTooltipProviderContext
  9864 );
 11234 );
  9865 if (false) {}
 11235 
  9866 
 11236 
  9867 
 11237 ;// external ["wp","deprecated"]
  9868 ;// CONCATENATED MODULE: external ["wp","element"]
       
  9869 const external_wp_element_namespaceObject = window["wp"]["element"];
       
  9870 ;// CONCATENATED MODULE: external ["wp","deprecated"]
       
  9871 const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
 11238 const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
  9872 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
 11239 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
  9873 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/shortcut/index.js
 11240 ;// ./node_modules/@wordpress/components/build-module/shortcut/index.js
  9874 
 11241 
  9875 /**
 11242 /**
  9876  * Internal dependencies
 11243  * Internal dependencies
  9877  */
 11244  */
  9878 
 11245 
  9912     children: displayText
 11279     children: displayText
  9913   });
 11280   });
  9914 }
 11281 }
  9915 /* harmony default export */ const build_module_shortcut = (Shortcut);
 11282 /* harmony default export */ const build_module_shortcut = (Shortcut);
  9916 
 11283 
  9917 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/utils.js
 11284 ;// ./node_modules/@wordpress/components/build-module/popover/utils.js
  9918 /**
 11285 /**
  9919  * External dependencies
 11286  * External dependencies
  9920  */
 11287  */
  9921 // eslint-disable-next-line no-restricted-imports
       
  9922 
 11288 
  9923 /**
 11289 /**
  9924  * Internal dependencies
 11290  * Internal dependencies
  9925  */
 11291  */
  9926 
 11292 
 10162  * @return The coordinate's value to be used for inline styles. An `undefined`
 11528  * @return The coordinate's value to be used for inline styles. An `undefined`
 10163  *         return value means "no style set" for this coordinate.
 11529  *         return value means "no style set" for this coordinate.
 10164  */
 11530  */
 10165 const computePopoverPosition = c => c === null || Number.isNaN(c) ? undefined : Math.round(c);
 11531 const computePopoverPosition = c => c === null || Number.isNaN(c) ? undefined : Math.round(c);
 10166 
 11532 
 10167 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tooltip/index.js
 11533 ;// ./node_modules/@wordpress/components/build-module/tooltip/index.js
 10168 /**
 11534 /**
 10169  * External dependencies
 11535  * External dependencies
 10170  */
 11536  */
 10171 // eslint-disable-next-line no-restricted-imports
 11537 
 10172 
 11538 
 10173 
 11539 
 10174 /**
 11540 /**
 10175  * WordPress dependencies
 11541  * WordPress dependencies
 10176  */
 11542  */
 10179 
 11545 
 10180 
 11546 
 10181 /**
 11547 /**
 10182  * Internal dependencies
 11548  * Internal dependencies
 10183  */
 11549  */
 10184 
       
 10185 
 11550 
 10186 
 11551 
 10187 
 11552 
 10188 
 11553 
 10189 const TooltipInternalContext = (0,external_wp_element_namespaceObject.createContext)({
 11554 const TooltipInternalContext = (0,external_wp_element_namespaceObject.createContext)({
 10198   isNestedInTooltip: true
 11563   isNestedInTooltip: true
 10199 };
 11564 };
 10200 function UnforwardedTooltip(props, ref) {
 11565 function UnforwardedTooltip(props, ref) {
 10201   const {
 11566   const {
 10202     children,
 11567     children,
       
 11568     className,
 10203     delay = TOOLTIP_DELAY,
 11569     delay = TOOLTIP_DELAY,
 10204     hideOnClick = true,
 11570     hideOnClick = true,
 10205     placement,
 11571     placement,
 10206     position,
 11572     position,
 10207     shortcut,
 11573     shortcut,
 10236   computedPlacement = computedPlacement || 'bottom';
 11602   computedPlacement = computedPlacement || 'bottom';
 10237   const tooltipStore = useTooltipStore({
 11603   const tooltipStore = useTooltipStore({
 10238     placement: computedPlacement,
 11604     placement: computedPlacement,
 10239     showTimeout: delay
 11605     showTimeout: delay
 10240   });
 11606   });
       
 11607   const mounted = useStoreState(tooltipStore, 'mounted');
 10241   if (isNestedInTooltip) {
 11608   if (isNestedInTooltip) {
 10242     return isOnlyChild ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, {
 11609     return isOnlyChild ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Role, {
 10243       ...restProps,
 11610       ...restProps,
 10244       render: children
 11611       render: children
 10245     }) : children;
 11612     }) : children;
 10246   }
 11613   }
       
 11614 
       
 11615   // TODO: this is a temporary workaround to minimize the effects of the
       
 11616   // Ariakit upgrade. Ariakit doesn't pass the `aria-describedby` prop to
       
 11617   // the tooltip anchor anymore since 0.4.0, so we need to add it manually.
       
 11618   // The `aria-describedby` attribute is added only if the anchor doesn't have
       
 11619   // one already, and if the tooltip text is not the same as the anchor's
       
 11620   // `aria-label`
       
 11621   // See: https://github.com/WordPress/gutenberg/pull/64066
       
 11622   // See: https://github.com/WordPress/gutenberg/pull/65989
       
 11623   function addDescribedById(element) {
       
 11624     return describedById && mounted && element.props['aria-describedby'] === undefined && element.props['aria-label'] !== text ? (0,external_wp_element_namespaceObject.cloneElement)(element, {
       
 11625       'aria-describedby': describedById
       
 11626     }) : element;
       
 11627   }
 10247   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TooltipInternalContext.Provider, {
 11628   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TooltipInternalContext.Provider, {
 10248     value: CONTEXT_VALUE,
 11629     value: CONTEXT_VALUE,
 10249     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TooltipAnchor, {
 11630     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TooltipAnchor, {
 10250       onClick: hideOnClick ? tooltipStore.hide : undefined,
 11631       onClick: hideOnClick ? tooltipStore.hide : undefined,
 10251       store: tooltipStore,
 11632       store: tooltipStore,
 10252       render: isOnlyChild ? children : undefined,
 11633       render: isOnlyChild ? addDescribedById(children) : undefined,
 10253       ref: ref,
 11634       ref: ref,
 10254       children: isOnlyChild ? undefined : children
 11635       children: isOnlyChild ? undefined : children
 10255     }), isOnlyChild && (text || shortcut) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tooltip, {
 11636     }), isOnlyChild && (text || shortcut) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Tooltip, {
 10256       ...restProps,
 11637       ...restProps,
 10257       className: "components-tooltip",
 11638       className: dist_clsx('components-tooltip', className),
 10258       unmountOnHide: true,
 11639       unmountOnHide: true,
 10259       gutter: 4,
 11640       gutter: 4,
 10260       id: describedById,
 11641       id: describedById,
 10261       overflowPadding: 0.5,
 11642       overflowPadding: 0.5,
 10262       store: tooltipStore,
 11643       store: tooltipStore,
 10268   });
 11649   });
 10269 }
 11650 }
 10270 const tooltip_Tooltip = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTooltip);
 11651 const tooltip_Tooltip = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTooltip);
 10271 /* harmony default export */ const tooltip = (tooltip_Tooltip);
 11652 /* harmony default export */ const tooltip = (tooltip_Tooltip);
 10272 
 11653 
 10273 ;// CONCATENATED MODULE: external ["wp","warning"]
 11654 ;// external ["wp","warning"]
 10274 const external_wp_warning_namespaceObject = window["wp"]["warning"];
 11655 const external_wp_warning_namespaceObject = window["wp"]["warning"];
 10275 var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject);
 11656 var external_wp_warning_default = /*#__PURE__*/__webpack_require__.n(external_wp_warning_namespaceObject);
 10276 // EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
 11657 // EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
 10277 var cjs = __webpack_require__(66);
 11658 var cjs = __webpack_require__(66);
 10278 var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
 11659 var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
 10279 // EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js
 11660 // EXTERNAL MODULE: ./node_modules/fast-deep-equal/es6/index.js
 10280 var es6 = __webpack_require__(7734);
 11661 var es6 = __webpack_require__(7734);
 10281 var es6_default = /*#__PURE__*/__webpack_require__.n(es6);
 11662 var es6_default = /*#__PURE__*/__webpack_require__.n(es6);
 10282 ;// CONCATENATED MODULE: ./node_modules/is-plain-object/dist/is-plain-object.mjs
 11663 ;// ./node_modules/is-plain-object/dist/is-plain-object.mjs
 10283 /*!
 11664 /*!
 10284  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 11665  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 10285  *
 11666  *
 10286  * Copyright (c) 2014-2017, Jon Schlinkert.
 11667  * Copyright (c) 2014-2017, Jon Schlinkert.
 10287  * Released under the MIT License.
 11668  * Released under the MIT License.
 10313   return true;
 11694   return true;
 10314 }
 11695 }
 10315 
 11696 
 10316 
 11697 
 10317 
 11698 
 10318 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.js
 11699 ;// ./node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.js
 10319 /**
 11700 /**
 10320  * WordPress dependencies
 11701  * WordPress dependencies
 10321  */
 11702  */
 10322 
 11703 
 10323 
 11704 
 10324 /**
 11705 /**
 10325  * A `React.useEffect` that will not run on the first render.
 11706  * A `React.useEffect` that will not run on the first render.
 10326  * Source:
 11707  * Source:
 10327  * https://github.com/ariakit/ariakit/blob/reakit/packages/reakit-utils/src/useUpdateEffect.ts
 11708  * https://github.com/ariakit/ariakit/blob/main/packages/ariakit-react-core/src/utils/hooks.ts
 10328  *
 11709  *
 10329  * @param {import('react').EffectCallback} effect
 11710  * @param {import('react').EffectCallback} effect
 10330  * @param {import('react').DependencyList} deps
 11711  * @param {import('react').DependencyList} deps
 10331  */
 11712  */
 10332 function use_update_effect_useUpdateEffect(effect, deps) {
 11713 function use_update_effect_useUpdateEffect(effect, deps) {
 10333   const mounted = (0,external_wp_element_namespaceObject.useRef)(false);
 11714   const mountedRef = (0,external_wp_element_namespaceObject.useRef)(false);
 10334   (0,external_wp_element_namespaceObject.useEffect)(() => {
 11715   (0,external_wp_element_namespaceObject.useEffect)(() => {
 10335     if (mounted.current) {
 11716     if (mountedRef.current) {
 10336       return effect();
 11717       return effect();
 10337     }
 11718     }
 10338     mounted.current = true;
 11719     mountedRef.current = true;
 10339     return undefined;
 11720     return undefined;
 10340     // Disable reasons:
       
 10341     // 1. This hook needs to pass a dep list that isn't an array literal
 11721     // 1. This hook needs to pass a dep list that isn't an array literal
 10342     // 2. `effect` is missing from the array, and will need to be added carefully to avoid additional warnings
 11722     // 2. `effect` is missing from the array, and will need to be added carefully to avoid additional warnings
 10343     // see https://github.com/WordPress/gutenberg/pull/41166
 11723     // see https://github.com/WordPress/gutenberg/pull/41166
 10344     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 10345   }, deps);
 11724   }, deps);
       
 11725   (0,external_wp_element_namespaceObject.useEffect)(() => () => {
       
 11726     mountedRef.current = false;
       
 11727   }, []);
 10346 }
 11728 }
 10347 /* harmony default export */ const use_update_effect = (use_update_effect_useUpdateEffect);
 11729 /* harmony default export */ const use_update_effect = (use_update_effect_useUpdateEffect);
 10348 
 11730 
 10349 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/context-system-provider.js
 11731 ;// ./node_modules/@wordpress/components/build-module/context/context-system-provider.js
 10350 /**
 11732 /**
 10351  * External dependencies
 11733  * External dependencies
 10352  */
 11734  */
 10353 
 11735 
 10354 
 11736 
 10363 /**
 11745 /**
 10364  * Internal dependencies
 11746  * Internal dependencies
 10365  */
 11747  */
 10366 
 11748 
 10367 
 11749 
 10368 const ComponentsContext = (0,external_wp_element_namespaceObject.createContext)( /** @type {Record<string, any>} */{});
 11750 const ComponentsContext = (0,external_wp_element_namespaceObject.createContext)(/** @type {Record<string, any>} */{});
 10369 const useComponentsContext = () => (0,external_wp_element_namespaceObject.useContext)(ComponentsContext);
 11751 const useComponentsContext = () => (0,external_wp_element_namespaceObject.useContext)(ComponentsContext);
 10370 
 11752 
 10371 /**
 11753 /**
 10372  * Consolidates incoming ContextSystem values with a (potential) parent ContextSystem value.
 11754  * Consolidates incoming ContextSystem values with a (potential) parent ContextSystem value.
 10373  *
 11755  *
 10442     children: children
 11824     children: children
 10443   });
 11825   });
 10444 };
 11826 };
 10445 const ContextSystemProvider = (0,external_wp_element_namespaceObject.memo)(BaseContextSystemProvider);
 11827 const ContextSystemProvider = (0,external_wp_element_namespaceObject.memo)(BaseContextSystemProvider);
 10446 
 11828 
 10447 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/constants.js
 11829 ;// ./node_modules/@wordpress/components/build-module/context/constants.js
 10448 const COMPONENT_NAMESPACE = 'data-wp-component';
 11830 const COMPONENT_NAMESPACE = 'data-wp-component';
 10449 const CONNECTED_NAMESPACE = 'data-wp-c16t';
 11831 const CONNECTED_NAMESPACE = 'data-wp-c16t';
 10450 
 11832 
 10451 /**
 11833 /**
 10452  * Special key where the connected namespaces are stored.
 11834  * Special key where the connected namespaces are stored.
 10453  * This is attached to Context connected components as a static property.
 11835  * This is attached to Context connected components as a static property.
 10454  */
 11836  */
 10455 const CONNECT_STATIC_NAMESPACE = '__contextSystemKey__';
 11837 const CONNECT_STATIC_NAMESPACE = '__contextSystemKey__';
 10456 
 11838 
 10457 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/utils.js
 11839 ;// ./node_modules/@wordpress/components/build-module/context/utils.js
 10458 /**
 11840 /**
 10459  * Internal dependencies
 11841  * Internal dependencies
 10460  */
 11842  */
 10461 
 11843 
 10462 
 11844 
 10493   return {
 11875   return {
 10494     [CONNECTED_NAMESPACE]: true
 11876     [CONNECTED_NAMESPACE]: true
 10495   };
 11877   };
 10496 }
 11878 }
 10497 
 11879 
 10498 ;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
 11880 ;// ./node_modules/tslib/tslib.es6.mjs
 10499 /******************************************************************************
 11881 /******************************************************************************
 10500 Copyright (c) Microsoft Corporation.
 11882 Copyright (c) Microsoft Corporation.
 10501 
 11883 
 10502 Permission to use, copy, modify, and/or distribute this software for any
 11884 Permission to use, copy, modify, and/or distribute this software for any
 10503 purpose with or without fee is hereby granted.
 11885 purpose with or without fee is hereby granted.
 10508 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 11890 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 10509 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 11891 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 10510 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 11892 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 10511 PERFORMANCE OF THIS SOFTWARE.
 11893 PERFORMANCE OF THIS SOFTWARE.
 10512 ***************************************************************************** */
 11894 ***************************************************************************** */
 10513 /* global Reflect, Promise, SuppressedError, Symbol */
 11895 /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
 10514 
 11896 
 10515 var extendStatics = function(d, b) {
 11897 var extendStatics = function(d, b) {
 10516   extendStatics = Object.setPrototypeOf ||
 11898   extendStatics = Object.setPrototypeOf ||
 10517       ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
 11899       ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
 10518       function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
 11900       function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
 10619       step((generator = generator.apply(thisArg, _arguments || [])).next());
 12001       step((generator = generator.apply(thisArg, _arguments || [])).next());
 10620   });
 12002   });
 10621 }
 12003 }
 10622 
 12004 
 10623 function __generator(thisArg, body) {
 12005 function __generator(thisArg, body) {
 10624   var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
 12006   var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
 10625   return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
 12007   return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
 10626   function verb(n) { return function (v) { return step([n, v]); }; }
 12008   function verb(n) { return function (v) { return step([n, v]); }; }
 10627   function step(op) {
 12009   function step(op) {
 10628       if (f) throw new TypeError("Generator is already executing.");
 12010       if (f) throw new TypeError("Generator is already executing.");
 10629       while (g && (g = 0, op[0] && (_ = 0)), _) try {
 12011       while (g && (g = 0, op[0] && (_ = 0)), _) try {
 10630           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;
 12012           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;
 10724 }
 12106 }
 10725 
 12107 
 10726 function __asyncGenerator(thisArg, _arguments, generator) {
 12108 function __asyncGenerator(thisArg, _arguments, generator) {
 10727   if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
 12109   if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
 10728   var g = generator.apply(thisArg, _arguments || []), i, q = [];
 12110   var g = generator.apply(thisArg, _arguments || []), i, q = [];
 10729   return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
 12111   return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
 10730   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); }); }; }
 12112   function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
       
 12113   function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
 10731   function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
 12114   function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
 10732   function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
 12115   function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
 10733   function fulfill(value) { resume("next", value); }
 12116   function fulfill(value) { resume("next", value); }
 10734   function reject(value) { resume("throw", value); }
 12117   function reject(value) { resume("throw", value); }
 10735   function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
 12118   function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
 10758   Object.defineProperty(o, "default", { enumerable: true, value: v });
 12141   Object.defineProperty(o, "default", { enumerable: true, value: v });
 10759 }) : function(o, v) {
 12142 }) : function(o, v) {
 10760   o["default"] = v;
 12143   o["default"] = v;
 10761 };
 12144 };
 10762 
 12145 
       
 12146 var ownKeys = function(o) {
       
 12147   ownKeys = Object.getOwnPropertyNames || function (o) {
       
 12148     var ar = [];
       
 12149     for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
       
 12150     return ar;
       
 12151   };
       
 12152   return ownKeys(o);
       
 12153 };
       
 12154 
 10763 function __importStar(mod) {
 12155 function __importStar(mod) {
 10764   if (mod && mod.__esModule) return mod;
 12156   if (mod && mod.__esModule) return mod;
 10765   var result = {};
 12157   var result = {};
 10766   if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 12158   if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
 10767   __setModuleDefault(result, mod);
 12159   __setModuleDefault(result, mod);
 10768   return result;
 12160   return result;
 10769 }
 12161 }
 10770 
 12162 
 10771 function __importDefault(mod) {
 12163 function __importDefault(mod) {
 10791 }
 12183 }
 10792 
 12184 
 10793 function __addDisposableResource(env, value, async) {
 12185 function __addDisposableResource(env, value, async) {
 10794   if (value !== null && value !== void 0) {
 12186   if (value !== null && value !== void 0) {
 10795     if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
 12187     if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
 10796     var dispose;
 12188     var dispose, inner;
 10797     if (async) {
 12189     if (async) {
 10798         if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
 12190       if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
 10799         dispose = value[Symbol.asyncDispose];
 12191       dispose = value[Symbol.asyncDispose];
 10800     }
 12192     }
 10801     if (dispose === void 0) {
 12193     if (dispose === void 0) {
 10802         if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
 12194       if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
 10803         dispose = value[Symbol.dispose];
 12195       dispose = value[Symbol.dispose];
       
 12196       if (async) inner = dispose;
 10804     }
 12197     }
 10805     if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
 12198     if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
       
 12199     if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
 10806     env.stack.push({ value: value, dispose: dispose, async: async });
 12200     env.stack.push({ value: value, dispose: dispose, async: async });
 10807   }
 12201   }
 10808   else if (async) {
 12202   else if (async) {
 10809     env.stack.push({ async: true });
 12203     env.stack.push({ async: true });
 10810   }
 12204   }
 10819 function __disposeResources(env) {
 12213 function __disposeResources(env) {
 10820   function fail(e) {
 12214   function fail(e) {
 10821     env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
 12215     env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
 10822     env.hasError = true;
 12216     env.hasError = true;
 10823   }
 12217   }
       
 12218   var r, s = 0;
 10824   function next() {
 12219   function next() {
 10825     while (env.stack.length) {
 12220     while (r = env.stack.pop()) {
 10826       var rec = env.stack.pop();
       
 10827       try {
 12221       try {
 10828         var result = rec.dispose && rec.dispose.call(rec.value);
 12222         if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
 10829         if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
 12223         if (r.dispose) {
       
 12224           var result = r.dispose.call(r.value);
       
 12225           if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
       
 12226         }
       
 12227         else s |= 1;
 10830       }
 12228       }
 10831       catch (e) {
 12229       catch (e) {
 10832           fail(e);
 12230         fail(e);
 10833       }
 12231       }
 10834     }
 12232     }
       
 12233     if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
 10835     if (env.hasError) throw env.error;
 12234     if (env.hasError) throw env.error;
 10836   }
 12235   }
 10837   return next();
 12236   return next();
       
 12237 }
       
 12238 
       
 12239 function __rewriteRelativeImportExtension(path, preserveJsx) {
       
 12240   if (typeof path === "string" && /^\.\.?\//.test(path)) {
       
 12241       return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
       
 12242           return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
       
 12243       });
       
 12244   }
       
 12245   return path;
 10838 }
 12246 }
 10839 
 12247 
 10840 /* harmony default export */ const tslib_es6 = ({
 12248 /* harmony default export */ const tslib_es6 = ({
 10841   __extends,
 12249   __extends,
 10842   __assign,
 12250   __assign,
 10843   __rest,
 12251   __rest,
 10844   __decorate,
 12252   __decorate,
 10845   __param,
 12253   __param,
       
 12254   __esDecorate,
       
 12255   __runInitializers,
       
 12256   __propKey,
       
 12257   __setFunctionName,
 10846   __metadata,
 12258   __metadata,
 10847   __awaiter,
 12259   __awaiter,
 10848   __generator,
 12260   __generator,
 10849   __createBinding,
 12261   __createBinding,
 10850   __exportStar,
 12262   __exportStar,
 10863   __classPrivateFieldGet,
 12275   __classPrivateFieldGet,
 10864   __classPrivateFieldSet,
 12276   __classPrivateFieldSet,
 10865   __classPrivateFieldIn,
 12277   __classPrivateFieldIn,
 10866   __addDisposableResource,
 12278   __addDisposableResource,
 10867   __disposeResources,
 12279   __disposeResources,
       
 12280   __rewriteRelativeImportExtension,
 10868 });
 12281 });
 10869 
 12282 
 10870 ;// CONCATENATED MODULE: ./node_modules/lower-case/dist.es2015/index.js
 12283 ;// ./node_modules/lower-case/dist.es2015/index.js
 10871 /**
 12284 /**
 10872  * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
 12285  * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
 10873  */
 12286  */
 10874 var SUPPORTED_LOCALE = {
 12287 var SUPPORTED_LOCALE = {
 10875     tr: {
 12288     tr: {
 10914  */
 12327  */
 10915 function lowerCase(str) {
 12328 function lowerCase(str) {
 10916     return str.toLowerCase();
 12329     return str.toLowerCase();
 10917 }
 12330 }
 10918 
 12331 
 10919 ;// CONCATENATED MODULE: ./node_modules/no-case/dist.es2015/index.js
 12332 ;// ./node_modules/no-case/dist.es2015/index.js
 10920 
 12333 
 10921 // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
 12334 // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
 10922 var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
 12335 var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
 10923 // Remove all non-word characters.
 12336 // Remove all non-word characters.
 10924 var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
 12337 var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
 10946     if (re instanceof RegExp)
 12359     if (re instanceof RegExp)
 10947         return input.replace(re, value);
 12360         return input.replace(re, value);
 10948     return re.reduce(function (input, re) { return input.replace(re, value); }, input);
 12361     return re.reduce(function (input, re) { return input.replace(re, value); }, input);
 10949 }
 12362 }
 10950 
 12363 
 10951 ;// CONCATENATED MODULE: ./node_modules/dot-case/dist.es2015/index.js
 12364 ;// ./node_modules/dot-case/dist.es2015/index.js
 10952 
 12365 
 10953 
 12366 
 10954 function dotCase(input, options) {
 12367 function dotCase(input, options) {
 10955     if (options === void 0) { options = {}; }
 12368     if (options === void 0) { options = {}; }
 10956     return noCase(input, __assign({ delimiter: "." }, options));
 12369     return noCase(input, __assign({ delimiter: "." }, options));
 10957 }
 12370 }
 10958 
 12371 
 10959 ;// CONCATENATED MODULE: ./node_modules/param-case/dist.es2015/index.js
 12372 ;// ./node_modules/param-case/dist.es2015/index.js
 10960 
 12373 
 10961 
 12374 
 10962 function paramCase(input, options) {
 12375 function paramCase(input, options) {
 10963     if (options === void 0) { options = {}; }
 12376     if (options === void 0) { options = {}; }
 10964     return dotCase(input, __assign({ delimiter: "-" }, options));
 12377     return dotCase(input, __assign({ delimiter: "-" }, options));
 10965 }
 12378 }
 10966 
 12379 
 10967 ;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js
 12380 ;// ./node_modules/memize/dist/index.js
 10968 /**
 12381 /**
 10969  * Memize options object.
 12382  * Memize options object.
 10970  *
 12383  *
 10971  * @typedef MemizeOptions
 12384  * @typedef MemizeOptions
 10972  *
 12385  *
 11124 	return memoized;
 12537 	return memoized;
 11125 }
 12538 }
 11126 
 12539 
 11127 
 12540 
 11128 
 12541 
 11129 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.js
 12542 ;// ./node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.js
 11130 /**
 12543 /**
 11131  * External dependencies
 12544  * External dependencies
 11132  */
 12545  */
 11133 
 12546 
 11134 
 12547 
 11143   const kebab = paramCase(namespace);
 12556   const kebab = paramCase(namespace);
 11144   return `components-${kebab}`;
 12557   return `components-${kebab}`;
 11145 }
 12558 }
 11146 const getStyledClassNameFromKey = memize(getStyledClassName);
 12559 const getStyledClassNameFromKey = memize(getStyledClassName);
 11147 
 12560 
 11148 ;// CONCATENATED MODULE: ./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
 12561 ;// ./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
 11149 /*
 12562 /*
 11150 
 12563 
 11151 Based off glamor's StyleSheet, thanks Sunil ❤️
 12564 Based off glamor's StyleSheet, thanks Sunil ❤️
 11152 
 12565 
 11153 high performance StyleSheet for css-in-js systems
 12566 high performance StyleSheet for css-in-js systems
 11285   return StyleSheet;
 12698   return StyleSheet;
 11286 }();
 12699 }();
 11287 
 12700 
 11288 
 12701 
 11289 
 12702 
 11290 ;// CONCATENATED MODULE: ./node_modules/stylis/src/Utility.js
 12703 ;// ./node_modules/stylis/src/Utility.js
 11291 /**
 12704 /**
 11292  * @param {number}
 12705  * @param {number}
 11293  * @return {number}
 12706  * @return {number}
 11294  */
 12707  */
 11295 var abs = Math.abs
 12708 var abs = Math.abs
 11402  */
 12815  */
 11403 function Utility_combine (array, callback) {
 12816 function Utility_combine (array, callback) {
 11404 	return array.map(callback).join('')
 12817 	return array.map(callback).join('')
 11405 }
 12818 }
 11406 
 12819 
 11407 ;// CONCATENATED MODULE: ./node_modules/stylis/src/Tokenizer.js
 12820 ;// ./node_modules/stylis/src/Tokenizer.js
 11408 
 12821 
 11409 
 12822 
 11410 var line = 1
 12823 var line = 1
 11411 var column = 1
 12824 var column = 1
 11412 var Tokenizer_length = 0
 12825 var Tokenizer_length = 0
 11650 		next()
 13063 		next()
 11651 
 13064 
 11652 	return slice(index, position)
 13065 	return slice(index, position)
 11653 }
 13066 }
 11654 
 13067 
 11655 ;// CONCATENATED MODULE: ./node_modules/stylis/src/Enum.js
 13068 ;// ./node_modules/stylis/src/Enum.js
 11656 var Enum_MS = '-ms-'
 13069 var Enum_MS = '-ms-'
 11657 var Enum_MOZ = '-moz-'
 13070 var Enum_MOZ = '-moz-'
 11658 var Enum_WEBKIT = '-webkit-'
 13071 var Enum_WEBKIT = '-webkit-'
 11659 
 13072 
 11660 var COMMENT = 'comm'
 13073 var COMMENT = 'comm'
 11672 var Enum_KEYFRAMES = '@keyframes'
 13085 var Enum_KEYFRAMES = '@keyframes'
 11673 var FONT_FACE = '@font-face'
 13086 var FONT_FACE = '@font-face'
 11674 var COUNTER_STYLE = '@counter-style'
 13087 var COUNTER_STYLE = '@counter-style'
 11675 var FONT_FEATURE_VALUES = '@font-feature-values'
 13088 var FONT_FEATURE_VALUES = '@font-feature-values'
 11676 
 13089 
 11677 ;// CONCATENATED MODULE: ./node_modules/stylis/src/Serializer.js
 13090 ;// ./node_modules/stylis/src/Serializer.js
 11678 
 13091 
 11679 
 13092 
 11680 
 13093 
 11681 /**
 13094 /**
 11682  * @param {object[]} children
 13095  * @param {object[]} children
 11709 	}
 13122 	}
 11710 
 13123 
 11711 	return Utility_strlen(children = Serializer_serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
 13124 	return Utility_strlen(children = Serializer_serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
 11712 }
 13125 }
 11713 
 13126 
 11714 ;// CONCATENATED MODULE: ./node_modules/stylis/src/Middleware.js
 13127 ;// ./node_modules/stylis/src/Middleware.js
 11715 
 13128 
 11716 
 13129 
 11717 
 13130 
 11718 
 13131 
 11719 
 13132 
 11819 				})
 13232 				})
 11820 			})
 13233 			})
 11821 	}
 13234 	}
 11822 }
 13235 }
 11823 
 13236 
 11824 ;// CONCATENATED MODULE: ./node_modules/stylis/src/Parser.js
 13237 ;// ./node_modules/stylis/src/Parser.js
 11825 
 13238 
 11826 
 13239 
 11827 
 13240 
 11828 
 13241 
 11829 /**
 13242 /**
 12012  */
 13425  */
 12013 function declaration (value, root, parent, length) {
 13426 function declaration (value, root, parent, length) {
 12014 	return node(value, root, parent, Enum_DECLARATION, Utility_substr(value, 0, length), Utility_substr(value, length + 1, -1), length)
 13427 	return node(value, root, parent, Enum_DECLARATION, Utility_substr(value, 0, length), Utility_substr(value, length + 1, -1), length)
 12015 }
 13428 }
 12016 
 13429 
 12017 ;// CONCATENATED MODULE: ./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
 13430 ;// ./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
 12018 
 13431 
 12019 
 13432 
 12020 
 13433 
 12021 
 13434 
 12022 
 13435 
 12567   return cache;
 13980   return cache;
 12568 };
 13981 };
 12569 
 13982 
 12570 /* harmony default export */ const emotion_cache_browser_esm = (createCache);
 13983 /* harmony default export */ const emotion_cache_browser_esm = (createCache);
 12571 
 13984 
 12572 ;// CONCATENATED MODULE: ./node_modules/@emotion/hash/dist/emotion-hash.esm.js
 13985 ;// ./node_modules/@emotion/hash/dist/emotion-hash.esm.js
 12573 /* eslint-disable */
 13986 /* eslint-disable */
 12574 // Inspired by https://github.com/garycourt/murmurhash-js
 13987 // Inspired by https://github.com/garycourt/murmurhash-js
 12575 // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
 13988 // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
 12576 function murmur2(str) {
 13989 function murmur2(str) {
 12577   // 'm' and 'r' are mixing constants generated offline.
 13990   // 'm' and 'r' are mixing constants generated offline.
 12624   return ((h ^ h >>> 15) >>> 0).toString(36);
 14037   return ((h ^ h >>> 15) >>> 0).toString(36);
 12625 }
 14038 }
 12626 
 14039 
 12627 /* harmony default export */ const emotion_hash_esm = (murmur2);
 14040 /* harmony default export */ const emotion_hash_esm = (murmur2);
 12628 
 14041 
 12629 ;// CONCATENATED MODULE: ./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
 14042 ;// ./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
 12630 var unitlessKeys = {
 14043 var unitlessKeys = {
 12631   animationIterationCount: 1,
 14044   animationIterationCount: 1,
 12632   borderImageOutset: 1,
 14045   borderImageOutset: 1,
 12633   borderImageSlice: 1,
 14046   borderImageSlice: 1,
 12634   borderImageWidth: 1,
 14047   borderImageWidth: 1,
 12676   strokeWidth: 1
 14089   strokeWidth: 1
 12677 };
 14090 };
 12678 
 14091 
 12679 /* harmony default export */ const emotion_unitless_esm = (unitlessKeys);
 14092 /* harmony default export */ const emotion_unitless_esm = (unitlessKeys);
 12680 
 14093 
 12681 ;// CONCATENATED MODULE: ./node_modules/@emotion/serialize/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
 14094 ;// ./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
 12682 function memoize(fn) {
 14095 function memoize(fn) {
 12683   var cache = Object.create(null);
 14096   var cache = Object.create(null);
 12684   return function (arg) {
 14097   return function (arg) {
 12685     if (cache[arg] === undefined) cache[arg] = fn(arg);
 14098     if (cache[arg] === undefined) cache[arg] = fn(arg);
 12686     return cache[arg];
 14099     return cache[arg];
 12687   };
 14100   };
 12688 }
 14101 }
 12689 
 14102 
 12690 
 14103 
 12691 
 14104 
 12692 ;// CONCATENATED MODULE: ./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
 14105 ;// ./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
 12693 
 14106 
 12694 
 14107 
 12695 
 14108 
 12696 
 14109 
 12697 var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
 14110 var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
 12936   };
 14349   };
 12937 };
 14350 };
 12938 
 14351 
 12939 
 14352 
 12940 
 14353 
 12941 ;// CONCATENATED MODULE: ./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
 14354 ;// ./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
 12942 
 14355 
 12943 
 14356 
 12944 
 14357 
 12945 var syncFallback = function syncFallback(create) {
 14358 var syncFallback = function syncFallback(create) {
 12946   return create();
 14359   return create();
 12950 var emotion_use_insertion_effect_with_fallbacks_browser_esm_useInsertionEffectAlwaysWithSyncFallback =  useInsertionEffect || syncFallback;
 14363 var emotion_use_insertion_effect_with_fallbacks_browser_esm_useInsertionEffectAlwaysWithSyncFallback =  useInsertionEffect || syncFallback;
 12951 var emotion_use_insertion_effect_with_fallbacks_browser_esm_useInsertionEffectWithLayoutFallback = (/* unused pure expression or super */ null && (useInsertionEffect || useLayoutEffect));
 14364 var emotion_use_insertion_effect_with_fallbacks_browser_esm_useInsertionEffectWithLayoutFallback = (/* unused pure expression or super */ null && (useInsertionEffect || useLayoutEffect));
 12952 
 14365 
 12953 
 14366 
 12954 
 14367 
 12955 ;// CONCATENATED MODULE: ./node_modules/@emotion/react/dist/emotion-element-6a883da9.browser.esm.js
 14368 ;// ./node_modules/@emotion/react/dist/emotion-element-6a883da9.browser.esm.js
 12956 
 14369 
 12957 
 14370 
 12958 
 14371 
 12959 
 14372 
 12960 
 14373 
 13164 
 14577 
 13165 if (false) {}
 14578 if (false) {}
 13166 
 14579 
 13167 
 14580 
 13168 
 14581 
 13169 ;// CONCATENATED MODULE: ./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
 14582 ;// ./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
 13170 var isBrowser = "object" !== 'undefined';
 14583 var isBrowser = "object" !== 'undefined';
 13171 function emotion_utils_browser_esm_getRegisteredStyles(registered, registeredStyles, classNames) {
 14584 function emotion_utils_browser_esm_getRegisteredStyles(registered, registeredStyles, classNames) {
 13172   var rawClassName = '';
 14585   var rawClassName = '';
 13173   classNames.split(' ').forEach(function (className) {
 14586   classNames.split(' ').forEach(function (className) {
 13174     if (registered[className] !== undefined) {
 14587     if (registered[className] !== undefined) {
 13210   }
 14623   }
 13211 };
 14624 };
 13212 
 14625 
 13213 
 14626 
 13214 
 14627 
 13215 ;// CONCATENATED MODULE: ./node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
 14628 ;// ./node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
 13216 
 14629 
 13217 
 14630 
 13218 
 14631 
 13219 
 14632 
 13220 function insertWithoutScoping(cache, serialized) {
 14633 function insertWithoutScoping(cache, serialized) {
 13354   return cls;
 14767   return cls;
 13355 };
 14768 };
 13356 
 14769 
 13357 /* harmony default export */ const emotion_css_create_instance_esm = (createEmotion);
 14770 /* harmony default export */ const emotion_css_create_instance_esm = (createEmotion);
 13358 
 14771 
 13359 ;// CONCATENATED MODULE: ./node_modules/@emotion/css/dist/emotion-css.esm.js
 14772 ;// ./node_modules/@emotion/css/dist/emotion-css.esm.js
 13360 
 14773 
 13361 
 14774 
 13362 
 14775 
 13363 
 14776 
 13364 
 14777 
 13376     sheet = _createEmotion.sheet,
 14789     sheet = _createEmotion.sheet,
 13377     cache = _createEmotion.cache;
 14790     cache = _createEmotion.cache;
 13378 
 14791 
 13379 
 14792 
 13380 
 14793 
 13381 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js
 14794 ;// ./node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js
 13382 /**
 14795 /**
 13383  * External dependencies
 14796  * External dependencies
 13384  */
 14797  */
 13385 
 14798 
 13386 
 14799 
 13432     }));
 14845     }));
 13433   }, [cache]);
 14846   }, [cache]);
 13434   return cx;
 14847   return cx;
 13435 };
 14848 };
 13436 
 14849 
 13437 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/use-context-system.js
 14850 ;// ./node_modules/@wordpress/components/build-module/context/use-context-system.js
 13438 /**
 14851 /**
 13439  * WordPress dependencies
 14852  * WordPress dependencies
 13440  */
 14853  */
 13441 
 14854 
 13442 
 14855 
 13505   }
 14918   }
 13506   finalComponentProps.className = classes;
 14919   finalComponentProps.className = classes;
 13507   return finalComponentProps;
 14920   return finalComponentProps;
 13508 }
 14921 }
 13509 
 14922 
 13510 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/context/context-connect.js
 14923 ;// ./node_modules/@wordpress/components/build-module/context/context-connect.js
 13511 /**
 14924 /**
 13512  * External dependencies
 14925  * External dependencies
 13513  */
 14926  */
 13514 
 14927 
 13515 /**
 14928 /**
 13623     return match.some(result => getConnectNamespace(Component).includes(result));
 15036     return match.some(result => getConnectNamespace(Component).includes(result));
 13624   }
 15037   }
 13625   return false;
 15038   return false;
 13626 }
 15039 }
 13627 
 15040 
 13628 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/visually-hidden/styles.js
 15041 ;// ./node_modules/@wordpress/components/build-module/visually-hidden/styles.js
 13629 /**
 15042 /**
 13630  * External dependencies
 15043  * External dependencies
 13631  */
 15044  */
 13632 
 15045 
 13633 const visuallyHidden = {
 15046 const visuallyHidden = {
 13642   position: 'absolute',
 15055   position: 'absolute',
 13643   width: '1px',
 15056   width: '1px',
 13644   wordWrap: 'normal'
 15057   wordWrap: 'normal'
 13645 };
 15058 };
 13646 
 15059 
 13647 ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
 15060 ;// ./node_modules/@babel/runtime/helpers/esm/extends.js
 13648 function extends_extends() {
 15061 function extends_extends() {
 13649   extends_extends = Object.assign ? Object.assign.bind() : function (target) {
 15062   return extends_extends = Object.assign ? Object.assign.bind() : function (n) {
 13650     for (var i = 1; i < arguments.length; i++) {
 15063     for (var e = 1; e < arguments.length; e++) {
 13651       var source = arguments[i];
 15064       var t = arguments[e];
 13652       for (var key in source) {
 15065       for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
 13653         if (Object.prototype.hasOwnProperty.call(source, key)) {
 15066     }
 13654           target[key] = source[key];
 15067     return n;
 13655         }
 15068   }, extends_extends.apply(null, arguments);
 13656       }
 15069 }
 13657     }
 15070 
 13658     return target;
 15071 ;// ./node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
 13659   };
       
 13660   return extends_extends.apply(this, arguments);
       
 13661 }
       
 13662 ;// CONCATENATED MODULE: ./node_modules/@emotion/styled/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
       
 13663 function emotion_memoize_esm_memoize(fn) {
       
 13664   var cache = Object.create(null);
       
 13665   return function (arg) {
       
 13666     if (cache[arg] === undefined) cache[arg] = fn(arg);
       
 13667     return cache[arg];
       
 13668   };
       
 13669 }
       
 13670 
       
 13671 
       
 13672 
       
 13673 ;// CONCATENATED MODULE: ./node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
       
 13674 
 15072 
 13675 
 15073 
 13676 var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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
 15074 var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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
 13677 
 15075 
 13678 var isPropValid = /* #__PURE__ */emotion_memoize_esm_memoize(function (prop) {
 15076 var isPropValid = /* #__PURE__ */memoize(function (prop) {
 13679   return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
 15077   return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
 13680   /* o */
 15078   /* o */
 13681   && prop.charCodeAt(1) === 110
 15079   && prop.charCodeAt(1) === 110
 13682   /* n */
 15080   /* n */
 13683   && prop.charCodeAt(2) < 91;
 15081   && prop.charCodeAt(2) < 91;
 13685 /* Z+1 */
 15083 /* Z+1 */
 13686 );
 15084 );
 13687 
 15085 
 13688 
 15086 
 13689 
 15087 
 13690 ;// CONCATENATED MODULE: ./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
 15088 ;// ./node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
 13691 
 15089 
 13692 
 15090 
 13693 
 15091 
 13694 
 15092 
 13695 
 15093 
 13854   };
 15252   };
 13855 };
 15253 };
 13856 
 15254 
 13857 /* harmony default export */ const emotion_styled_base_browser_esm = (createStyled);
 15255 /* harmony default export */ const emotion_styled_base_browser_esm = (createStyled);
 13858 
 15256 
 13859 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/view/component.js
 15257 ;// ./node_modules/@wordpress/components/build-module/view/component.js
 13860 
 15258 
 13861 /**
 15259 /**
 13862  * External dependencies
 15260  * External dependencies
 13863  */
 15261  */
 13864 
 15262 
 13904 const View = Object.assign((0,external_wp_element_namespaceObject.forwardRef)(UnforwardedView), {
 15302 const View = Object.assign((0,external_wp_element_namespaceObject.forwardRef)(UnforwardedView), {
 13905   selector: '.components-view'
 15303   selector: '.components-view'
 13906 });
 15304 });
 13907 /* harmony default export */ const component = (View);
 15305 /* harmony default export */ const component = (View);
 13908 
 15306 
 13909 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/visually-hidden/component.js
 15307 ;// ./node_modules/@wordpress/components/build-module/visually-hidden/component.js
 13910 /**
 15308 /**
 13911  * External dependencies
 15309  * External dependencies
 13912  */
 15310  */
 13913 
 15311 
 13914 /**
 15312 /**
 13951  * ```
 15349  * ```
 13952  */
 15350  */
 13953 const component_VisuallyHidden = contextConnect(UnconnectedVisuallyHidden, 'VisuallyHidden');
 15351 const component_VisuallyHidden = contextConnect(UnconnectedVisuallyHidden, 'VisuallyHidden');
 13954 /* harmony default export */ const visually_hidden_component = (component_VisuallyHidden);
 15352 /* harmony default export */ const visually_hidden_component = (component_VisuallyHidden);
 13955 
 15353 
 13956 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/utils.js
 15354 ;// ./node_modules/@wordpress/components/build-module/alignment-matrix-control/utils.js
 13957 /**
 15355 /**
 13958  * WordPress dependencies
 15356  * WordPress dependencies
 13959  */
 15357  */
 13960 
 15358 
 13961 
 15359 
 14044   return index > -1 ? index : undefined;
 15442   return index > -1 ? index : undefined;
 14045 }
 15443 }
 14046 
 15444 
 14047 // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
 15445 // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
 14048 var hoist_non_react_statics_cjs = __webpack_require__(1880);
 15446 var hoist_non_react_statics_cjs = __webpack_require__(1880);
 14049 ;// CONCATENATED MODULE: ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js
 15447 ;// ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js
 14050 
 15448 
 14051 
 15449 
 14052 
 15450 
 14053 
 15451 
 14054 
 15452 
 14411 
 15809 
 14412 if (false) { var globalKey, globalContext, isTestEnv, emotion_react_browser_esm_isBrowser; }
 15810 if (false) { var globalKey, globalContext, isTestEnv, emotion_react_browser_esm_isBrowser; }
 14413 
 15811 
 14414 
 15812 
 14415 
 15813 
 14416 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/colors-values.js
 15814 ;// ./node_modules/@wordpress/components/build-module/utils/space.js
       
 15815 /**
       
 15816  * The argument value for the `space()` utility function.
       
 15817  *
       
 15818  * When this is a number or a numeric string, it will be interpreted as a
       
 15819  * multiplier for the grid base value (4px). For example, `space( 2 )` will be 8px.
       
 15820  *
       
 15821  * Otherwise, it will be interpreted as a literal CSS length value. For example,
       
 15822  * `space( 'auto' )` will be 'auto', and `space( '2px' )` will be 2px.
       
 15823  */
       
 15824 
       
 15825 const GRID_BASE = '4px';
       
 15826 
       
 15827 /**
       
 15828  * A function that handles numbers, numeric strings, and unit values.
       
 15829  *
       
 15830  * When given a number or a numeric string, it will return the grid-based
       
 15831  * value as a factor of GRID_BASE, defined above.
       
 15832  *
       
 15833  * When given a unit value or one of the named CSS values like `auto`,
       
 15834  * it will simply return the value back.
       
 15835  *
       
 15836  * @param value A number, numeric string, or a unit value.
       
 15837  */
       
 15838 function space(value) {
       
 15839   if (typeof value === 'undefined') {
       
 15840     return undefined;
       
 15841   }
       
 15842 
       
 15843   // Handle empty strings, if it's the number 0 this still works.
       
 15844   if (!value) {
       
 15845     return '0';
       
 15846   }
       
 15847   const asInt = typeof value === 'number' ? value : Number(value);
       
 15848 
       
 15849   // Test if the input has a unit, was NaN, or was one of the named CSS values (like `auto`), in which case just use that value.
       
 15850   if (typeof window !== 'undefined' && window.CSS?.supports?.('margin', value.toString()) || Number.isNaN(asInt)) {
       
 15851     return value.toString();
       
 15852   }
       
 15853   return `calc(${GRID_BASE} * ${value})`;
       
 15854 }
       
 15855 
       
 15856 ;// ./node_modules/@wordpress/components/build-module/utils/colors-values.js
 14417 /**
 15857 /**
 14418  * Internal dependencies
 15858  * Internal dependencies
 14419  */
 15859  */
 14420 const white = '#fff';
 15860 const white = '#fff';
 14421 
 15861 
 14484    *
 15924    *
 14485    * @deprecated Use semantic aliases in `COLORS.ui` or theme-ready variables in `COLORS.theme.gray`.
 15925    * @deprecated Use semantic aliases in `COLORS.ui` or theme-ready variables in `COLORS.theme.gray`.
 14486    */
 15926    */
 14487   gray: GRAY,
 15927   gray: GRAY,
 14488   // TODO: Stop exporting this when everything is migrated to `theme` or `ui`
 15928   // TODO: Stop exporting this when everything is migrated to `theme` or `ui`
       
 15929   /**
       
 15930    * @deprecated Prefer theme-ready variables in `COLORS.theme`.
       
 15931    */
 14489   white,
 15932   white,
 14490   alert: ALERT,
 15933   alert: ALERT,
 14491   /**
 15934   /**
 14492    * Theme-ready variables with fallbacks.
 15935    * Theme-ready variables with fallbacks.
 14493    *
 15936    *
 14499    */
 15942    */
 14500   ui: UI
 15943   ui: UI
 14501 });
 15944 });
 14502 /* harmony default export */ const colors_values = ((/* unused pure expression or super */ null && (COLORS)));
 15945 /* harmony default export */ const colors_values = ((/* unused pure expression or super */ null && (COLORS)));
 14503 
 15946 
 14504 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js
 15947 ;// ./node_modules/@wordpress/components/build-module/utils/config-values.js
       
 15948 /**
       
 15949  * Internal dependencies
       
 15950  */
       
 15951 
       
 15952 
       
 15953 const CONTROL_HEIGHT = '36px';
       
 15954 const CONTROL_PROPS = {
       
 15955   // These values should be shared with TextControl.
       
 15956   controlPaddingX: 12,
       
 15957   controlPaddingXSmall: 8,
       
 15958   controlPaddingXLarge: 12 * 1.3334,
       
 15959   // TODO: Deprecate
       
 15960 
       
 15961   controlBoxShadowFocus: `0 0 0 0.5px ${COLORS.theme.accent}`,
       
 15962   controlHeight: CONTROL_HEIGHT,
       
 15963   controlHeightXSmall: `calc( ${CONTROL_HEIGHT} * 0.6 )`,
       
 15964   controlHeightSmall: `calc( ${CONTROL_HEIGHT} * 0.8 )`,
       
 15965   controlHeightLarge: `calc( ${CONTROL_HEIGHT} * 1.2 )`,
       
 15966   controlHeightXLarge: `calc( ${CONTROL_HEIGHT} * 1.4 )`
       
 15967 };
       
 15968 
       
 15969 // Using Object.assign to avoid creating circular references when emitting
       
 15970 // TypeScript type declarations.
       
 15971 /* harmony default export */ const config_values = (Object.assign({}, CONTROL_PROPS, {
       
 15972   colorDivider: 'rgba(0, 0, 0, 0.1)',
       
 15973   colorScrollbarThumb: 'rgba(0, 0, 0, 0.2)',
       
 15974   colorScrollbarThumbHover: 'rgba(0, 0, 0, 0.5)',
       
 15975   colorScrollbarTrack: 'rgba(0, 0, 0, 0.04)',
       
 15976   elevationIntensity: 1,
       
 15977   radiusXSmall: '1px',
       
 15978   radiusSmall: '2px',
       
 15979   radiusMedium: '4px',
       
 15980   radiusLarge: '8px',
       
 15981   radiusFull: '9999px',
       
 15982   radiusRound: '50%',
       
 15983   borderWidth: '1px',
       
 15984   borderWidthFocus: '1.5px',
       
 15985   borderWidthTab: '4px',
       
 15986   spinnerSize: 16,
       
 15987   fontSize: '13px',
       
 15988   fontSizeH1: 'calc(2.44 * 13px)',
       
 15989   fontSizeH2: 'calc(1.95 * 13px)',
       
 15990   fontSizeH3: 'calc(1.56 * 13px)',
       
 15991   fontSizeH4: 'calc(1.25 * 13px)',
       
 15992   fontSizeH5: '13px',
       
 15993   fontSizeH6: 'calc(0.8 * 13px)',
       
 15994   fontSizeInputMobile: '16px',
       
 15995   fontSizeMobile: '15px',
       
 15996   fontSizeSmall: 'calc(0.92 * 13px)',
       
 15997   fontSizeXSmall: 'calc(0.75 * 13px)',
       
 15998   fontLineHeightBase: '1.4',
       
 15999   fontWeight: 'normal',
       
 16000   fontWeightHeading: '600',
       
 16001   gridBase: '4px',
       
 16002   cardPaddingXSmall: `${space(2)}`,
       
 16003   cardPaddingSmall: `${space(4)}`,
       
 16004   cardPaddingMedium: `${space(4)} ${space(6)}`,
       
 16005   cardPaddingLarge: `${space(6)} ${space(8)}`,
       
 16006   elevationXSmall: `0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)`,
       
 16007   elevationSmall: `0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)`,
       
 16008   elevationMedium: `0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)`,
       
 16009   elevationLarge: `0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)`,
       
 16010   surfaceBackgroundColor: COLORS.white,
       
 16011   surfaceBackgroundSubtleColor: '#F3F3F3',
       
 16012   surfaceBackgroundTintColor: '#F5F5F5',
       
 16013   surfaceBorderColor: 'rgba(0, 0, 0, 0.1)',
       
 16014   surfaceBorderBoldColor: 'rgba(0, 0, 0, 0.15)',
       
 16015   surfaceBorderSubtleColor: 'rgba(0, 0, 0, 0.05)',
       
 16016   surfaceBackgroundTertiaryColor: COLORS.white,
       
 16017   surfaceColor: COLORS.white,
       
 16018   transitionDuration: '200ms',
       
 16019   transitionDurationFast: '160ms',
       
 16020   transitionDurationFaster: '120ms',
       
 16021   transitionDurationFastest: '100ms',
       
 16022   transitionTimingFunction: 'cubic-bezier(0.08, 0.52, 0.52, 1)',
       
 16023   transitionTimingFunctionControl: 'cubic-bezier(0.12, 0.8, 0.32, 1)'
       
 16024 }));
       
 16025 
       
 16026 ;// ./node_modules/@wordpress/components/build-module/alignment-matrix-control/styles.js
 14505 
 16027 
 14506 function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 16028 function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 14507 /**
 16029 /**
 14508  * External dependencies
 16030  * External dependencies
 14509  */
 16031  */
 14512 
 16034 
 14513 /**
 16035 /**
 14514  * Internal dependencies
 16036  * Internal dependencies
 14515  */
 16037  */
 14516 
 16038 
       
 16039 // Grid structure
       
 16040 
       
 16041 const rootBase = ({
       
 16042   size = 92
       
 16043 }) => /*#__PURE__*/emotion_react_browser_esm_css("direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );grid-template-rows:repeat( 3, 1fr );box-sizing:border-box;width:", size, "px;aspect-ratio:1;border-radius:", config_values.radiusMedium, ";outline:none;" + ( true ? "" : 0),  true ? "" : 0);
 14517 var _ref =  true ? {
 16044 var _ref =  true ? {
 14518   name: "93uojk",
 16045   name: "e0dnmk",
 14519   styles: "border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"
 16046   styles: "cursor:pointer"
 14520 } : 0;
 16047 } : 0;
 14521 const rootBase = () => {
 16048 const GridContainer = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 14522   return _ref;
 16049   target: "e1r95csn3"
 14523 };
 16050 } : 0)(rootBase, " border:1px solid transparent;", props => props.disablePointerEvents ? /*#__PURE__*/emotion_react_browser_esm_css( true ? "" : 0,  true ? "" : 0) : _ref, ";" + ( true ? "" : 0));
 14524 const rootSize = ({
 16051 const GridRow = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 14525   size = 92
 16052   target: "e1r95csn2"
 14526 }) => {
       
 14527   return /*#__PURE__*/emotion_react_browser_esm_css("grid-template-rows:repeat( 3, calc( ", size, "px / 3 ) );width:", size, "px;" + ( true ? "" : 0),  true ? "" : 0);
       
 14528 };
       
 14529 const Root = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 14530   target: "ecapk1j3"
       
 14531 } : 0)(rootBase, ";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;", rootSize, ";" + ( true ? "" : 0));
       
 14532 const Row = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 14533   target: "ecapk1j2"
       
 14534 } : 0)( true ? {
 16053 } : 0)( true ? {
 14535   name: "1x5gbbj",
 16054   name: "1fbxn64",
 14536   styles: "box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"
 16055   styles: "grid-column:1/-1;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"
 14537 } : 0);
 16056 } : 0);
 14538 const pointActive = ({
 16057 
 14539   isActive
 16058 // Cell
 14540 }) => {
 16059 const Cell = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 14541   const boxShadow = isActive ? `0 0 0 2px ${COLORS.gray[900]}` : null;
 16060   target: "e1r95csn1"
 14542   const pointColor = isActive ? COLORS.gray[900] : COLORS.gray[400];
 16061 } : 0)( true ? {
 14543   const pointColorHover = isActive ? COLORS.gray[900] : COLORS.theme.accent;
 16062   name: "e2kws5",
 14544   return /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:", boxShadow, ";color:", pointColor, ";*:hover>&{color:", pointColorHover, ";}" + ( true ? "" : 0),  true ? "" : 0);
 16063   styles: "position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;padding:0;appearance:none;border:none;outline:none"
 14545 };
 16064 } : 0);
 14546 const pointBase = props => {
 16065 const POINT_SIZE = 6;
 14547   return /*#__PURE__*/emotion_react_browser_esm_css("background:currentColor;box-sizing:border-box;display:grid;margin:auto;@media not ( prefers-reduced-motion ){transition:all 120ms linear;}", pointActive(props), ";" + ( true ? "" : 0),  true ? "" : 0);
       
 14548 };
       
 14549 const Point = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 16066 const Point = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 14550   target: "ecapk1j1"
 16067   target: "e1r95csn0"
 14551 } : 0)("height:6px;width:6px;", pointBase, ";" + ( true ? "" : 0));
 16068 } : 0)("display:block;contain:strict;box-sizing:border-box;width:", POINT_SIZE, "px;aspect-ratio:1;margin:auto;color:", COLORS.theme.gray[400], ";border:", POINT_SIZE / 2, "px solid currentColor;", Cell, "[data-active-item] &{color:", COLORS.gray[900], ";transform:scale( calc( 5 / 3 ) );}", Cell, ":not([data-active-item]):hover &{color:", COLORS.theme.accent, ";}", Cell, "[data-focus-visible] &{outline:1px solid ", COLORS.theme.accent, ";outline-offset:1px;}@media not ( prefers-reduced-motion ){transition-property:color,transform;transition-duration:120ms;transition-timing-function:linear;}" + ( true ? "" : 0));
 14552 const Cell = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 16069 
 14553   target: "ecapk1j0"
 16070 ;// ./node_modules/@wordpress/components/build-module/alignment-matrix-control/cell.js
 14554 } : 0)( true ? {
       
 14555   name: "rjf3ub",
       
 14556   styles: "appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"
       
 14557 } : 0);
       
 14558 
       
 14559 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/cell.js
       
 14560 /**
 16071 /**
 14561  * Internal dependencies
 16072  * Internal dependencies
 14562  */
 16073  */
 14563 
 16074 
 14564 
 16075 
 14565 
 16076 
 14566 
 16077 
 14567 /**
 16078 /**
 14568  * Internal dependencies
 16079  * Internal dependencies
 14569  */
 16080  */
 14570 
       
 14571 
 16081 
 14572 
 16082 
 14573 
 16083 
 14574 function cell_Cell({
 16084 function cell_Cell({
 14575   id,
 16085   id,
 14576   isActive = false,
       
 14577   value,
 16086   value,
 14578   ...props
 16087   ...props
 14579 }) {
 16088 }) {
 14580   const tooltipText = ALIGNMENT_LABEL[value];
       
 14581   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 16089   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 14582     text: tooltipText,
 16090     text: ALIGNMENT_LABEL[value],
 14583     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CompositeItem, {
 16091     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Composite.Item, {
 14584       id: id,
 16092       id: id,
 14585       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Cell, {
 16093       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Cell, {
 14586         ...props,
 16094         ...props,
 14587         role: "gridcell"
 16095         role: "gridcell"
 14588       }),
 16096       }),
 14589       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 16097       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 14590         children: value
 16098         children: value
 14591       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Point, {
 16099       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Point, {
 14592         isActive: isActive,
       
 14593         role: "presentation"
 16100         role: "presentation"
 14594       })]
 16101       })]
 14595     })
 16102     })
 14596   });
 16103   });
 14597 }
 16104 }
 14598 
 16105 
 14599 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/Y6GYTNQ2.js
 16106 ;// ./node_modules/@wordpress/components/build-module/alignment-matrix-control/icon.js
 14600 "use client";
       
 14601 
       
 14602 
       
 14603 
       
 14604 // src/collection/collection-store.ts
       
 14605 
       
 14606 function useCollectionStoreProps(store, update, props) {
       
 14607   useUpdateEffect(update, [props.store]);
       
 14608   useStoreProps(store, props, "items", "setItems");
       
 14609   return store;
       
 14610 }
       
 14611 function useCollectionStore(props = {}) {
       
 14612   const [store, update] = useStore(Core.createCollectionStore, props);
       
 14613   return useCollectionStoreProps(store, update, props);
       
 14614 }
       
 14615 
       
 14616 
       
 14617 
       
 14618 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/22K762VQ.js
       
 14619 "use client";
       
 14620 
       
 14621 
       
 14622 
       
 14623 
       
 14624 
       
 14625 // src/collection/collection-store.ts
       
 14626 function isElementPreceding(a, b) {
       
 14627   return Boolean(
       
 14628     b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING
       
 14629   );
       
 14630 }
       
 14631 function sortBasedOnDOMPosition(items) {
       
 14632   const pairs = items.map((item, index) => [index, item]);
       
 14633   let isOrderDifferent = false;
       
 14634   pairs.sort(([indexA, a], [indexB, b]) => {
       
 14635     const elementA = a.element;
       
 14636     const elementB = b.element;
       
 14637     if (elementA === elementB)
       
 14638       return 0;
       
 14639     if (!elementA || !elementB)
       
 14640       return 0;
       
 14641     if (isElementPreceding(elementA, elementB)) {
       
 14642       if (indexA > indexB) {
       
 14643         isOrderDifferent = true;
       
 14644       }
       
 14645       return -1;
       
 14646     }
       
 14647     if (indexA < indexB) {
       
 14648       isOrderDifferent = true;
       
 14649     }
       
 14650     return 1;
       
 14651   });
       
 14652   if (isOrderDifferent) {
       
 14653     return pairs.map(([_, item]) => item);
       
 14654   }
       
 14655   return items;
       
 14656 }
       
 14657 function getCommonParent(items) {
       
 14658   var _a;
       
 14659   const firstItem = items.find((item) => !!item.element);
       
 14660   const lastItem = [...items].reverse().find((item) => !!item.element);
       
 14661   let parentElement = (_a = firstItem == null ? void 0 : firstItem.element) == null ? void 0 : _a.parentElement;
       
 14662   while (parentElement && (lastItem == null ? void 0 : lastItem.element)) {
       
 14663     const parent = parentElement;
       
 14664     if (lastItem && parent.contains(lastItem.element)) {
       
 14665       return parentElement;
       
 14666     }
       
 14667     parentElement = parentElement.parentElement;
       
 14668   }
       
 14669   return DLOEKDPY_getDocument(parentElement).body;
       
 14670 }
       
 14671 function getPrivateStore(store) {
       
 14672   return store == null ? void 0 : store.__unstablePrivateStore;
       
 14673 }
       
 14674 function createCollectionStore(props = {}) {
       
 14675   var _a;
       
 14676   throwOnConflictingProps(props, props.store);
       
 14677   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
       
 14678   const items = defaultValue(
       
 14679     props.items,
       
 14680     syncState == null ? void 0 : syncState.items,
       
 14681     props.defaultItems,
       
 14682     []
       
 14683   );
       
 14684   const itemsMap = new Map(items.map((item) => [item.id, item]));
       
 14685   const initialState = {
       
 14686     items,
       
 14687     renderedItems: defaultValue(syncState == null ? void 0 : syncState.renderedItems, [])
       
 14688   };
       
 14689   const syncPrivateStore = getPrivateStore(props.store);
       
 14690   const privateStore = createStore(
       
 14691     { items, renderedItems: initialState.renderedItems },
       
 14692     syncPrivateStore
       
 14693   );
       
 14694   const collection = createStore(initialState, props.store);
       
 14695   const sortItems = (renderedItems) => {
       
 14696     const sortedItems = sortBasedOnDOMPosition(renderedItems);
       
 14697     privateStore.setState("renderedItems", sortedItems);
       
 14698     collection.setState("renderedItems", sortedItems);
       
 14699   };
       
 14700   setup(collection, () => init(privateStore));
       
 14701   setup(privateStore, () => {
       
 14702     return batch(privateStore, ["items"], (state) => {
       
 14703       collection.setState("items", state.items);
       
 14704     });
       
 14705   });
       
 14706   setup(privateStore, () => {
       
 14707     return batch(privateStore, ["renderedItems"], (state) => {
       
 14708       let firstRun = true;
       
 14709       let raf = requestAnimationFrame(() => {
       
 14710         const { renderedItems } = collection.getState();
       
 14711         if (state.renderedItems === renderedItems)
       
 14712           return;
       
 14713         sortItems(state.renderedItems);
       
 14714       });
       
 14715       if (typeof IntersectionObserver !== "function") {
       
 14716         return () => cancelAnimationFrame(raf);
       
 14717       }
       
 14718       const ioCallback = () => {
       
 14719         if (firstRun) {
       
 14720           firstRun = false;
       
 14721           return;
       
 14722         }
       
 14723         cancelAnimationFrame(raf);
       
 14724         raf = requestAnimationFrame(() => sortItems(state.renderedItems));
       
 14725       };
       
 14726       const root = getCommonParent(state.renderedItems);
       
 14727       const observer = new IntersectionObserver(ioCallback, { root });
       
 14728       for (const item of state.renderedItems) {
       
 14729         if (!item.element)
       
 14730           continue;
       
 14731         observer.observe(item.element);
       
 14732       }
       
 14733       return () => {
       
 14734         cancelAnimationFrame(raf);
       
 14735         observer.disconnect();
       
 14736       };
       
 14737     });
       
 14738   });
       
 14739   const mergeItem = (item, setItems, canDeleteFromMap = false) => {
       
 14740     let prevItem;
       
 14741     setItems((items2) => {
       
 14742       const index = items2.findIndex(({ id }) => id === item.id);
       
 14743       const nextItems = items2.slice();
       
 14744       if (index !== -1) {
       
 14745         prevItem = items2[index];
       
 14746         const nextItem = _chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, prevItem), item);
       
 14747         nextItems[index] = nextItem;
       
 14748         itemsMap.set(item.id, nextItem);
       
 14749       } else {
       
 14750         nextItems.push(item);
       
 14751         itemsMap.set(item.id, item);
       
 14752       }
       
 14753       return nextItems;
       
 14754     });
       
 14755     const unmergeItem = () => {
       
 14756       setItems((items2) => {
       
 14757         if (!prevItem) {
       
 14758           if (canDeleteFromMap) {
       
 14759             itemsMap.delete(item.id);
       
 14760           }
       
 14761           return items2.filter(({ id }) => id !== item.id);
       
 14762         }
       
 14763         const index = items2.findIndex(({ id }) => id === item.id);
       
 14764         if (index === -1)
       
 14765           return items2;
       
 14766         const nextItems = items2.slice();
       
 14767         nextItems[index] = prevItem;
       
 14768         itemsMap.set(item.id, prevItem);
       
 14769         return nextItems;
       
 14770       });
       
 14771     };
       
 14772     return unmergeItem;
       
 14773   };
       
 14774   const registerItem = (item) => mergeItem(
       
 14775     item,
       
 14776     (getItems) => privateStore.setState("items", getItems),
       
 14777     true
       
 14778   );
       
 14779   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, collection), {
       
 14780     registerItem,
       
 14781     renderItem: (item) => chain(
       
 14782       registerItem(item),
       
 14783       mergeItem(
       
 14784         item,
       
 14785         (getItems) => privateStore.setState("renderedItems", getItems)
       
 14786       )
       
 14787     ),
       
 14788     item: (id) => {
       
 14789       if (!id)
       
 14790         return null;
       
 14791       let item = itemsMap.get(id);
       
 14792       if (!item) {
       
 14793         const { items: items2 } = collection.getState();
       
 14794         item = items2.find((item2) => item2.id === id);
       
 14795         if (item) {
       
 14796           itemsMap.set(id, item);
       
 14797         }
       
 14798       }
       
 14799       return item || null;
       
 14800     },
       
 14801     // @ts-expect-error Internal
       
 14802     __unstablePrivateStore: privateStore
       
 14803   });
       
 14804 }
       
 14805 
       
 14806 
       
 14807 
       
 14808 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/7PRQYBBV.js
       
 14809 "use client";
       
 14810 
       
 14811 // src/utils/array.ts
       
 14812 function toArray(arg) {
       
 14813   if (Array.isArray(arg)) {
       
 14814     return arg;
       
 14815   }
       
 14816   return typeof arg !== "undefined" ? [arg] : [];
       
 14817 }
       
 14818 function addItemToArray(array, item, index = -1) {
       
 14819   if (!(index in array)) {
       
 14820     return [...array, item];
       
 14821   }
       
 14822   return [...array.slice(0, index), item, ...array.slice(index)];
       
 14823 }
       
 14824 function flatten2DArray(array) {
       
 14825   const flattened = [];
       
 14826   for (const row of array) {
       
 14827     flattened.push(...row);
       
 14828   }
       
 14829   return flattened;
       
 14830 }
       
 14831 function reverseArray(array) {
       
 14832   return array.slice().reverse();
       
 14833 }
       
 14834 
       
 14835 
       
 14836 
       
 14837 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/__chunks/IERTEJ3A.js
       
 14838 "use client";
       
 14839 
       
 14840 
       
 14841 
       
 14842 
       
 14843 
       
 14844 
       
 14845 // src/composite/composite-store.ts
       
 14846 var IERTEJ3A_NULL_ITEM = { id: null };
       
 14847 function IERTEJ3A_findFirstEnabledItem(items, excludeId) {
       
 14848   return items.find((item) => {
       
 14849     if (excludeId) {
       
 14850       return !item.disabled && item.id !== excludeId;
       
 14851     }
       
 14852     return !item.disabled;
       
 14853   });
       
 14854 }
       
 14855 function getEnabledItems(items, excludeId) {
       
 14856   return items.filter((item) => {
       
 14857     if (excludeId) {
       
 14858       return !item.disabled && item.id !== excludeId;
       
 14859     }
       
 14860     return !item.disabled;
       
 14861   });
       
 14862 }
       
 14863 function getOppositeOrientation(orientation) {
       
 14864   if (orientation === "vertical")
       
 14865     return "horizontal";
       
 14866   if (orientation === "horizontal")
       
 14867     return "vertical";
       
 14868   return;
       
 14869 }
       
 14870 function getItemsInRow(items, rowId) {
       
 14871   return items.filter((item) => item.rowId === rowId);
       
 14872 }
       
 14873 function IERTEJ3A_flipItems(items, activeId, shouldInsertNullItem = false) {
       
 14874   const index = items.findIndex((item) => item.id === activeId);
       
 14875   return [
       
 14876     ...items.slice(index + 1),
       
 14877     ...shouldInsertNullItem ? [IERTEJ3A_NULL_ITEM] : [],
       
 14878     ...items.slice(0, index)
       
 14879   ];
       
 14880 }
       
 14881 function IERTEJ3A_groupItemsByRows(items) {
       
 14882   const rows = [];
       
 14883   for (const item of items) {
       
 14884     const row = rows.find((currentRow) => {
       
 14885       var _a;
       
 14886       return ((_a = currentRow[0]) == null ? void 0 : _a.rowId) === item.rowId;
       
 14887     });
       
 14888     if (row) {
       
 14889       row.push(item);
       
 14890     } else {
       
 14891       rows.push([item]);
       
 14892     }
       
 14893   }
       
 14894   return rows;
       
 14895 }
       
 14896 function getMaxRowLength(array) {
       
 14897   let maxLength = 0;
       
 14898   for (const { length } of array) {
       
 14899     if (length > maxLength) {
       
 14900       maxLength = length;
       
 14901     }
       
 14902   }
       
 14903   return maxLength;
       
 14904 }
       
 14905 function createEmptyItem(rowId) {
       
 14906   return {
       
 14907     id: "__EMPTY_ITEM__",
       
 14908     disabled: true,
       
 14909     rowId
       
 14910   };
       
 14911 }
       
 14912 function normalizeRows(rows, activeId, focusShift) {
       
 14913   const maxLength = getMaxRowLength(rows);
       
 14914   for (const row of rows) {
       
 14915     for (let i = 0; i < maxLength; i += 1) {
       
 14916       const item = row[i];
       
 14917       if (!item || focusShift && item.disabled) {
       
 14918         const isFirst = i === 0;
       
 14919         const previousItem = isFirst && focusShift ? IERTEJ3A_findFirstEnabledItem(row) : row[i - 1];
       
 14920         row[i] = previousItem && activeId !== previousItem.id && focusShift ? previousItem : createEmptyItem(previousItem == null ? void 0 : previousItem.rowId);
       
 14921       }
       
 14922     }
       
 14923   }
       
 14924   return rows;
       
 14925 }
       
 14926 function verticalizeItems(items) {
       
 14927   const rows = IERTEJ3A_groupItemsByRows(items);
       
 14928   const maxLength = getMaxRowLength(rows);
       
 14929   const verticalized = [];
       
 14930   for (let i = 0; i < maxLength; i += 1) {
       
 14931     for (const row of rows) {
       
 14932       const item = row[i];
       
 14933       if (item) {
       
 14934         verticalized.push(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, item), {
       
 14935           // If there's no rowId, it means that it's not a grid composite, but
       
 14936           // a single row instead. So, instead of verticalizing it, that is,
       
 14937           // assigning a different rowId based on the column index, we keep it
       
 14938           // undefined so they will be part of the same row. This is useful
       
 14939           // when using up/down on one-dimensional composites.
       
 14940           rowId: item.rowId ? `${i}` : void 0
       
 14941         }));
       
 14942       }
       
 14943     }
       
 14944   }
       
 14945   return verticalized;
       
 14946 }
       
 14947 function createCompositeStore(props = {}) {
       
 14948   var _a;
       
 14949   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
       
 14950   const collection = createCollectionStore(props);
       
 14951   const activeId = defaultValue(
       
 14952     props.activeId,
       
 14953     syncState == null ? void 0 : syncState.activeId,
       
 14954     props.defaultActiveId
       
 14955   );
       
 14956   const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, collection.getState()), {
       
 14957     activeId,
       
 14958     baseElement: defaultValue(syncState == null ? void 0 : syncState.baseElement, null),
       
 14959     includesBaseElement: defaultValue(
       
 14960       props.includesBaseElement,
       
 14961       syncState == null ? void 0 : syncState.includesBaseElement,
       
 14962       activeId === null
       
 14963     ),
       
 14964     moves: defaultValue(syncState == null ? void 0 : syncState.moves, 0),
       
 14965     orientation: defaultValue(
       
 14966       props.orientation,
       
 14967       syncState == null ? void 0 : syncState.orientation,
       
 14968       "both"
       
 14969     ),
       
 14970     rtl: defaultValue(props.rtl, syncState == null ? void 0 : syncState.rtl, false),
       
 14971     virtualFocus: defaultValue(
       
 14972       props.virtualFocus,
       
 14973       syncState == null ? void 0 : syncState.virtualFocus,
       
 14974       false
       
 14975     ),
       
 14976     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, false),
       
 14977     focusWrap: defaultValue(props.focusWrap, syncState == null ? void 0 : syncState.focusWrap, false),
       
 14978     focusShift: defaultValue(props.focusShift, syncState == null ? void 0 : syncState.focusShift, false)
       
 14979   });
       
 14980   const composite = createStore(initialState, collection, props.store);
       
 14981   setup(
       
 14982     composite,
       
 14983     () => sync(composite, ["renderedItems", "activeId"], (state) => {
       
 14984       composite.setState("activeId", (activeId2) => {
       
 14985         var _a2;
       
 14986         if (activeId2 !== void 0)
       
 14987           return activeId2;
       
 14988         return (_a2 = IERTEJ3A_findFirstEnabledItem(state.renderedItems)) == null ? void 0 : _a2.id;
       
 14989       });
       
 14990     })
       
 14991   );
       
 14992   const getNextId = (items, orientation, hasNullItem, skip) => {
       
 14993     var _a2, _b;
       
 14994     const { activeId: activeId2, rtl, focusLoop, focusWrap, includesBaseElement } = composite.getState();
       
 14995     const isHorizontal = orientation !== "vertical";
       
 14996     const isRTL = rtl && isHorizontal;
       
 14997     const allItems = isRTL ? reverseArray(items) : items;
       
 14998     if (activeId2 == null) {
       
 14999       return (_a2 = IERTEJ3A_findFirstEnabledItem(allItems)) == null ? void 0 : _a2.id;
       
 15000     }
       
 15001     const activeItem = allItems.find((item) => item.id === activeId2);
       
 15002     if (!activeItem) {
       
 15003       return (_b = IERTEJ3A_findFirstEnabledItem(allItems)) == null ? void 0 : _b.id;
       
 15004     }
       
 15005     const isGrid = !!activeItem.rowId;
       
 15006     const activeIndex = allItems.indexOf(activeItem);
       
 15007     const nextItems = allItems.slice(activeIndex + 1);
       
 15008     const nextItemsInRow = getItemsInRow(nextItems, activeItem.rowId);
       
 15009     if (skip !== void 0) {
       
 15010       const nextEnabledItemsInRow = getEnabledItems(nextItemsInRow, activeId2);
       
 15011       const nextItem2 = nextEnabledItemsInRow.slice(skip)[0] || // If we can't find an item, just return the last one.
       
 15012       nextEnabledItemsInRow[nextEnabledItemsInRow.length - 1];
       
 15013       return nextItem2 == null ? void 0 : nextItem2.id;
       
 15014     }
       
 15015     const oppositeOrientation = getOppositeOrientation(
       
 15016       // If it's a grid and orientation is not set, it's a next/previous call,
       
 15017       // which is inherently horizontal. up/down will call next with orientation
       
 15018       // set to vertical by default (see below on up/down methods).
       
 15019       isGrid ? orientation || "horizontal" : orientation
       
 15020     );
       
 15021     const canLoop = focusLoop && focusLoop !== oppositeOrientation;
       
 15022     const canWrap = isGrid && focusWrap && focusWrap !== oppositeOrientation;
       
 15023     hasNullItem = hasNullItem || !isGrid && canLoop && includesBaseElement;
       
 15024     if (canLoop) {
       
 15025       const loopItems = canWrap && !hasNullItem ? allItems : getItemsInRow(allItems, activeItem.rowId);
       
 15026       const sortedItems = IERTEJ3A_flipItems(loopItems, activeId2, hasNullItem);
       
 15027       const nextItem2 = IERTEJ3A_findFirstEnabledItem(sortedItems, activeId2);
       
 15028       return nextItem2 == null ? void 0 : nextItem2.id;
       
 15029     }
       
 15030     if (canWrap) {
       
 15031       const nextItem2 = IERTEJ3A_findFirstEnabledItem(
       
 15032         // We can use nextItems, which contains all the next items, including
       
 15033         // items from other rows, to wrap between rows. However, if there is a
       
 15034         // null item (the composite container), we'll only use the next items in
       
 15035         // the row. So moving next from the last item will focus on the
       
 15036         // composite container. On grid composites, horizontal navigation never
       
 15037         // focuses on the composite container, only vertical.
       
 15038         hasNullItem ? nextItemsInRow : nextItems,
       
 15039         activeId2
       
 15040       );
       
 15041       const nextId = hasNullItem ? (nextItem2 == null ? void 0 : nextItem2.id) || null : nextItem2 == null ? void 0 : nextItem2.id;
       
 15042       return nextId;
       
 15043     }
       
 15044     const nextItem = IERTEJ3A_findFirstEnabledItem(nextItemsInRow, activeId2);
       
 15045     if (!nextItem && hasNullItem) {
       
 15046       return null;
       
 15047     }
       
 15048     return nextItem == null ? void 0 : nextItem.id;
       
 15049   };
       
 15050   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, collection), composite), {
       
 15051     setBaseElement: (element) => composite.setState("baseElement", element),
       
 15052     setActiveId: (id) => composite.setState("activeId", id),
       
 15053     move: (id) => {
       
 15054       if (id === void 0)
       
 15055         return;
       
 15056       composite.setState("activeId", id);
       
 15057       composite.setState("moves", (moves) => moves + 1);
       
 15058     },
       
 15059     first: () => {
       
 15060       var _a2;
       
 15061       return (_a2 = IERTEJ3A_findFirstEnabledItem(composite.getState().renderedItems)) == null ? void 0 : _a2.id;
       
 15062     },
       
 15063     last: () => {
       
 15064       var _a2;
       
 15065       return (_a2 = IERTEJ3A_findFirstEnabledItem(reverseArray(composite.getState().renderedItems))) == null ? void 0 : _a2.id;
       
 15066     },
       
 15067     next: (skip) => {
       
 15068       const { renderedItems, orientation } = composite.getState();
       
 15069       return getNextId(renderedItems, orientation, false, skip);
       
 15070     },
       
 15071     previous: (skip) => {
       
 15072       var _a2;
       
 15073       const { renderedItems, orientation, includesBaseElement } = composite.getState();
       
 15074       const isGrid = !!((_a2 = IERTEJ3A_findFirstEnabledItem(renderedItems)) == null ? void 0 : _a2.rowId);
       
 15075       const hasNullItem = !isGrid && includesBaseElement;
       
 15076       return getNextId(
       
 15077         reverseArray(renderedItems),
       
 15078         orientation,
       
 15079         hasNullItem,
       
 15080         skip
       
 15081       );
       
 15082     },
       
 15083     down: (skip) => {
       
 15084       const {
       
 15085         activeId: activeId2,
       
 15086         renderedItems,
       
 15087         focusShift,
       
 15088         focusLoop,
       
 15089         includesBaseElement
       
 15090       } = composite.getState();
       
 15091       const shouldShift = focusShift && !skip;
       
 15092       const verticalItems = verticalizeItems(
       
 15093         flatten2DArray(
       
 15094           normalizeRows(IERTEJ3A_groupItemsByRows(renderedItems), activeId2, shouldShift)
       
 15095         )
       
 15096       );
       
 15097       const canLoop = focusLoop && focusLoop !== "horizontal";
       
 15098       const hasNullItem = canLoop && includesBaseElement;
       
 15099       return getNextId(verticalItems, "vertical", hasNullItem, skip);
       
 15100     },
       
 15101     up: (skip) => {
       
 15102       const { activeId: activeId2, renderedItems, focusShift, includesBaseElement } = composite.getState();
       
 15103       const shouldShift = focusShift && !skip;
       
 15104       const verticalItems = verticalizeItems(
       
 15105         reverseArray(
       
 15106           flatten2DArray(
       
 15107             normalizeRows(
       
 15108               IERTEJ3A_groupItemsByRows(renderedItems),
       
 15109               activeId2,
       
 15110               shouldShift
       
 15111             )
       
 15112           )
       
 15113         )
       
 15114       );
       
 15115       const hasNullItem = includesBaseElement;
       
 15116       return getNextId(verticalItems, "vertical", hasNullItem, skip);
       
 15117     }
       
 15118   });
       
 15119 }
       
 15120 
       
 15121 
       
 15122 
       
 15123 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7GBW5FLS.js
       
 15124 "use client";
       
 15125 
       
 15126 
       
 15127 
       
 15128 // src/composite/composite-store.ts
       
 15129 
       
 15130 function useCompositeStoreProps(store, update, props) {
       
 15131   store = useCollectionStoreProps(store, update, props);
       
 15132   useStoreProps(store, props, "activeId", "setActiveId");
       
 15133   useStoreProps(store, props, "includesBaseElement");
       
 15134   useStoreProps(store, props, "virtualFocus");
       
 15135   useStoreProps(store, props, "orientation");
       
 15136   useStoreProps(store, props, "rtl");
       
 15137   useStoreProps(store, props, "focusLoop");
       
 15138   useStoreProps(store, props, "focusWrap");
       
 15139   useStoreProps(store, props, "focusShift");
       
 15140   return store;
       
 15141 }
       
 15142 function useCompositeStore(props = {}) {
       
 15143   const [store, update] = EKQEJRUF_useStore(createCompositeStore, props);
       
 15144   return useCompositeStoreProps(store, update, props);
       
 15145 }
       
 15146 
       
 15147 
       
 15148 
       
 15149 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7QTPYGNZ.js
       
 15150 "use client";
       
 15151 
       
 15152 
       
 15153 
       
 15154 
       
 15155 
       
 15156 
       
 15157 
       
 15158 // src/composite/composite.tsx
       
 15159 
       
 15160 
       
 15161 
       
 15162 
       
 15163 
       
 15164 
       
 15165 
       
 15166 function isGrid(items) {
       
 15167   return items.some((item) => !!item.rowId);
       
 15168 }
       
 15169 function isPrintableKey(event) {
       
 15170   const target = event.target;
       
 15171   if (target && !DLOEKDPY_isTextField(target))
       
 15172     return false;
       
 15173   return event.key.length === 1 && !event.ctrlKey && !event.metaKey;
       
 15174 }
       
 15175 function isModifierKey(event) {
       
 15176   return event.key === "Shift" || event.key === "Control" || event.key === "Alt" || event.key === "Meta";
       
 15177 }
       
 15178 function useKeyboardEventProxy(store, onKeyboardEvent, previousElementRef) {
       
 15179   return useEvent((event) => {
       
 15180     var _a;
       
 15181     onKeyboardEvent == null ? void 0 : onKeyboardEvent(event);
       
 15182     if (event.defaultPrevented)
       
 15183       return;
       
 15184     if (event.isPropagationStopped())
       
 15185       return;
       
 15186     if (!isSelfTarget(event))
       
 15187       return;
       
 15188     if (isModifierKey(event))
       
 15189       return;
       
 15190     if (isPrintableKey(event))
       
 15191       return;
       
 15192     const state = store.getState();
       
 15193     const activeElement = (_a = getEnabledItem(store, state.activeId)) == null ? void 0 : _a.element;
       
 15194     if (!activeElement)
       
 15195       return;
       
 15196     const _b = event, { view } = _b, eventInit = __objRest(_b, ["view"]);
       
 15197     const previousElement = previousElementRef == null ? void 0 : previousElementRef.current;
       
 15198     if (activeElement !== previousElement) {
       
 15199       activeElement.focus();
       
 15200     }
       
 15201     if (!fireKeyboardEvent(activeElement, event.type, eventInit)) {
       
 15202       event.preventDefault();
       
 15203     }
       
 15204     if (event.currentTarget.contains(activeElement)) {
       
 15205       event.stopPropagation();
       
 15206     }
       
 15207   });
       
 15208 }
       
 15209 function findFirstEnabledItemInTheLastRow(items) {
       
 15210   return findFirstEnabledItem(
       
 15211     flatten2DArray(reverseArray(groupItemsByRows(items)))
       
 15212   );
       
 15213 }
       
 15214 function useScheduleFocus(store) {
       
 15215   const [scheduled, setScheduled] = (0,external_React_.useState)(false);
       
 15216   const schedule = (0,external_React_.useCallback)(() => setScheduled(true), []);
       
 15217   const activeItem = store.useState(
       
 15218     (state) => getEnabledItem(store, state.activeId)
       
 15219   );
       
 15220   (0,external_React_.useEffect)(() => {
       
 15221     const activeElement = activeItem == null ? void 0 : activeItem.element;
       
 15222     if (!scheduled)
       
 15223       return;
       
 15224     if (!activeElement)
       
 15225       return;
       
 15226     setScheduled(false);
       
 15227     activeElement.focus({ preventScroll: true });
       
 15228   }, [activeItem, scheduled]);
       
 15229   return schedule;
       
 15230 }
       
 15231 var useComposite = createHook(
       
 15232   (_a) => {
       
 15233     var _b = _a, {
       
 15234       store,
       
 15235       composite = true,
       
 15236       focusOnMove = composite,
       
 15237       moveOnKeyPress = true
       
 15238     } = _b, props = __objRest(_b, [
       
 15239       "store",
       
 15240       "composite",
       
 15241       "focusOnMove",
       
 15242       "moveOnKeyPress"
       
 15243     ]);
       
 15244     const context = useCompositeProviderContext();
       
 15245     store = store || context;
       
 15246     invariant(
       
 15247       store,
       
 15248        false && 0
       
 15249     );
       
 15250     const previousElementRef = (0,external_React_.useRef)(null);
       
 15251     const scheduleFocus = useScheduleFocus(store);
       
 15252     const moves = store.useState("moves");
       
 15253     (0,external_React_.useEffect)(() => {
       
 15254       var _a2;
       
 15255       if (!store)
       
 15256         return;
       
 15257       if (!moves)
       
 15258         return;
       
 15259       if (!composite)
       
 15260         return;
       
 15261       if (!focusOnMove)
       
 15262         return;
       
 15263       const { activeId: activeId2 } = store.getState();
       
 15264       const itemElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
       
 15265       if (!itemElement)
       
 15266         return;
       
 15267       focusIntoView(itemElement);
       
 15268     }, [store, moves, composite, focusOnMove]);
       
 15269     useSafeLayoutEffect(() => {
       
 15270       if (!store)
       
 15271         return;
       
 15272       if (!moves)
       
 15273         return;
       
 15274       if (!composite)
       
 15275         return;
       
 15276       const { baseElement, activeId: activeId2 } = store.getState();
       
 15277       const isSelfAcive = activeId2 === null;
       
 15278       if (!isSelfAcive)
       
 15279         return;
       
 15280       if (!baseElement)
       
 15281         return;
       
 15282       const previousElement = previousElementRef.current;
       
 15283       previousElementRef.current = null;
       
 15284       if (previousElement) {
       
 15285         fireBlurEvent(previousElement, { relatedTarget: baseElement });
       
 15286       }
       
 15287       if (!hasFocus(baseElement)) {
       
 15288         baseElement.focus();
       
 15289       }
       
 15290     }, [store, moves, composite]);
       
 15291     const activeId = store.useState("activeId");
       
 15292     const virtualFocus = store.useState("virtualFocus");
       
 15293     useSafeLayoutEffect(() => {
       
 15294       var _a2;
       
 15295       if (!store)
       
 15296         return;
       
 15297       if (!composite)
       
 15298         return;
       
 15299       if (!virtualFocus)
       
 15300         return;
       
 15301       const previousElement = previousElementRef.current;
       
 15302       previousElementRef.current = null;
       
 15303       if (!previousElement)
       
 15304         return;
       
 15305       const activeElement = (_a2 = getEnabledItem(store, activeId)) == null ? void 0 : _a2.element;
       
 15306       const relatedTarget = activeElement || getActiveElement(previousElement);
       
 15307       if (relatedTarget === previousElement)
       
 15308         return;
       
 15309       fireBlurEvent(previousElement, { relatedTarget });
       
 15310     }, [store, activeId, virtualFocus, composite]);
       
 15311     const onKeyDownCapture = useKeyboardEventProxy(
       
 15312       store,
       
 15313       props.onKeyDownCapture,
       
 15314       previousElementRef
       
 15315     );
       
 15316     const onKeyUpCapture = useKeyboardEventProxy(
       
 15317       store,
       
 15318       props.onKeyUpCapture,
       
 15319       previousElementRef
       
 15320     );
       
 15321     const onFocusCaptureProp = props.onFocusCapture;
       
 15322     const onFocusCapture = useEvent((event) => {
       
 15323       onFocusCaptureProp == null ? void 0 : onFocusCaptureProp(event);
       
 15324       if (event.defaultPrevented)
       
 15325         return;
       
 15326       if (!store)
       
 15327         return;
       
 15328       const { virtualFocus: virtualFocus2 } = store.getState();
       
 15329       if (!virtualFocus2)
       
 15330         return;
       
 15331       const previousActiveElement = event.relatedTarget;
       
 15332       const isSilentlyFocused = silentlyFocused(event.currentTarget);
       
 15333       if (isSelfTarget(event) && isSilentlyFocused) {
       
 15334         event.stopPropagation();
       
 15335         previousElementRef.current = previousActiveElement;
       
 15336       }
       
 15337     });
       
 15338     const onFocusProp = props.onFocus;
       
 15339     const onFocus = useEvent((event) => {
       
 15340       onFocusProp == null ? void 0 : onFocusProp(event);
       
 15341       if (event.defaultPrevented)
       
 15342         return;
       
 15343       if (!composite)
       
 15344         return;
       
 15345       if (!store)
       
 15346         return;
       
 15347       const { relatedTarget } = event;
       
 15348       const { virtualFocus: virtualFocus2 } = store.getState();
       
 15349       if (virtualFocus2) {
       
 15350         if (isSelfTarget(event) && !isItem(store, relatedTarget)) {
       
 15351           queueMicrotask(scheduleFocus);
       
 15352         }
       
 15353       } else if (isSelfTarget(event)) {
       
 15354         store.setActiveId(null);
       
 15355       }
       
 15356     });
       
 15357     const onBlurCaptureProp = props.onBlurCapture;
       
 15358     const onBlurCapture = useEvent((event) => {
       
 15359       var _a2;
       
 15360       onBlurCaptureProp == null ? void 0 : onBlurCaptureProp(event);
       
 15361       if (event.defaultPrevented)
       
 15362         return;
       
 15363       if (!store)
       
 15364         return;
       
 15365       const { virtualFocus: virtualFocus2, activeId: activeId2 } = store.getState();
       
 15366       if (!virtualFocus2)
       
 15367         return;
       
 15368       const activeElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
       
 15369       const nextActiveElement = event.relatedTarget;
       
 15370       const nextActiveElementIsItem = isItem(store, nextActiveElement);
       
 15371       const previousElement = previousElementRef.current;
       
 15372       previousElementRef.current = null;
       
 15373       if (isSelfTarget(event) && nextActiveElementIsItem) {
       
 15374         if (nextActiveElement === activeElement) {
       
 15375           if (previousElement && previousElement !== nextActiveElement) {
       
 15376             fireBlurEvent(previousElement, event);
       
 15377           }
       
 15378         } else if (activeElement) {
       
 15379           fireBlurEvent(activeElement, event);
       
 15380         } else if (previousElement) {
       
 15381           fireBlurEvent(previousElement, event);
       
 15382         }
       
 15383         event.stopPropagation();
       
 15384       } else {
       
 15385         const targetIsItem = isItem(store, event.target);
       
 15386         if (!targetIsItem && activeElement) {
       
 15387           fireBlurEvent(activeElement, event);
       
 15388         }
       
 15389       }
       
 15390     });
       
 15391     const onKeyDownProp = props.onKeyDown;
       
 15392     const moveOnKeyPressProp = useBooleanEvent(moveOnKeyPress);
       
 15393     const onKeyDown = useEvent((event) => {
       
 15394       var _a2;
       
 15395       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 15396       if (event.defaultPrevented)
       
 15397         return;
       
 15398       if (!store)
       
 15399         return;
       
 15400       if (!isSelfTarget(event))
       
 15401         return;
       
 15402       const { orientation, items, renderedItems, activeId: activeId2 } = store.getState();
       
 15403       const activeItem = getEnabledItem(store, activeId2);
       
 15404       if ((_a2 = activeItem == null ? void 0 : activeItem.element) == null ? void 0 : _a2.isConnected)
       
 15405         return;
       
 15406       const isVertical = orientation !== "horizontal";
       
 15407       const isHorizontal = orientation !== "vertical";
       
 15408       const grid = isGrid(renderedItems);
       
 15409       const isHorizontalKey = event.key === "ArrowLeft" || event.key === "ArrowRight" || event.key === "Home" || event.key === "End";
       
 15410       if (isHorizontalKey && DLOEKDPY_isTextField(event.currentTarget))
       
 15411         return;
       
 15412       const up = () => {
       
 15413         if (grid) {
       
 15414           const item = items && findFirstEnabledItemInTheLastRow(items);
       
 15415           return item == null ? void 0 : item.id;
       
 15416         }
       
 15417         return store == null ? void 0 : store.last();
       
 15418       };
       
 15419       const keyMap = {
       
 15420         ArrowUp: (grid || isVertical) && up,
       
 15421         ArrowRight: (grid || isHorizontal) && store.first,
       
 15422         ArrowDown: (grid || isVertical) && store.first,
       
 15423         ArrowLeft: (grid || isHorizontal) && store.last,
       
 15424         Home: store.first,
       
 15425         End: store.last,
       
 15426         PageUp: store.first,
       
 15427         PageDown: store.last
       
 15428       };
       
 15429       const action = keyMap[event.key];
       
 15430       if (action) {
       
 15431         const id = action();
       
 15432         if (id !== void 0) {
       
 15433           if (!moveOnKeyPressProp(event))
       
 15434             return;
       
 15435           event.preventDefault();
       
 15436           store.move(id);
       
 15437         }
       
 15438       }
       
 15439     });
       
 15440     props = useWrapElement(
       
 15441       props,
       
 15442       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeContextProvider, { value: store, children: element }),
       
 15443       [store]
       
 15444     );
       
 15445     const activeDescendant = store.useState((state) => {
       
 15446       var _a2;
       
 15447       if (!store)
       
 15448         return;
       
 15449       if (!composite)
       
 15450         return;
       
 15451       if (!state.virtualFocus)
       
 15452         return;
       
 15453       return (_a2 = getEnabledItem(store, state.activeId)) == null ? void 0 : _a2.id;
       
 15454     });
       
 15455     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 15456       "aria-activedescendant": activeDescendant
       
 15457     }, props), {
       
 15458       ref: useMergeRefs(composite ? store.setBaseElement : null, props.ref),
       
 15459       onKeyDownCapture,
       
 15460       onKeyUpCapture,
       
 15461       onFocusCapture,
       
 15462       onFocus,
       
 15463       onBlurCapture,
       
 15464       onKeyDown
       
 15465     });
       
 15466     const focusable = store.useState(
       
 15467       (state) => composite && (state.virtualFocus || state.activeId === null)
       
 15468     );
       
 15469     props = useFocusable(_4R3V3JGP_spreadValues({ focusable }, props));
       
 15470     return props;
       
 15471   }
       
 15472 );
       
 15473 var Composite = createComponent((props) => {
       
 15474   const htmlProps = useComposite(props);
       
 15475   return _3ORBWXWF_createElement("div", htmlProps);
       
 15476 });
       
 15477 if (false) {}
       
 15478 
       
 15479 
       
 15480 
       
 15481 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/BNUFNEVY.js
       
 15482 "use client";
       
 15483 
       
 15484 
       
 15485 
       
 15486 
       
 15487 
       
 15488 // src/composite/composite-row.tsx
       
 15489 
       
 15490 
       
 15491 
       
 15492 var useCompositeRow = createHook(
       
 15493   (_a) => {
       
 15494     var _b = _a, {
       
 15495       store,
       
 15496       "aria-setsize": ariaSetSize,
       
 15497       "aria-posinset": ariaPosInSet
       
 15498     } = _b, props = __objRest(_b, [
       
 15499       "store",
       
 15500       "aria-setsize",
       
 15501       "aria-posinset"
       
 15502     ]);
       
 15503     const context = useCompositeContext();
       
 15504     store = store || context;
       
 15505     invariant(
       
 15506       store,
       
 15507        false && 0
       
 15508     );
       
 15509     const id = useId(props.id);
       
 15510     const baseElement = store.useState(
       
 15511       (state) => state.baseElement || void 0
       
 15512     );
       
 15513     const providerValue = (0,external_React_.useMemo)(
       
 15514       () => ({ id, baseElement, ariaSetSize, ariaPosInSet }),
       
 15515       [id, baseElement, ariaSetSize, ariaPosInSet]
       
 15516     );
       
 15517     props = useWrapElement(
       
 15518       props,
       
 15519       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeRowContext.Provider, { value: providerValue, children: element }),
       
 15520       [providerValue]
       
 15521     );
       
 15522     props = _4R3V3JGP_spreadValues({ id }, props);
       
 15523     return props;
       
 15524   }
       
 15525 );
       
 15526 var CompositeRow = createComponent((props) => {
       
 15527   const htmlProps = useCompositeRow(props);
       
 15528   return _3ORBWXWF_createElement("div", htmlProps);
       
 15529 });
       
 15530 if (false) {}
       
 15531 
       
 15532 
       
 15533 
       
 15534 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js
       
 15535 
       
 15536 function alignment_matrix_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 15537 /**
 16107 /**
 15538  * External dependencies
 16108  * External dependencies
 15539  */
 16109  */
 15540 
 16110 
 15541 
 16111 
       
 16112 /**
       
 16113  * WordPress dependencies
       
 16114  */
       
 16115 
 15542 
 16116 
 15543 /**
 16117 /**
 15544  * Internal dependencies
 16118  * Internal dependencies
 15545  */
 16119  */
 15546 
 16120 
 15547 const alignment_matrix_control_icon_styles_rootSize = () => {
       
 15548   const padding = 1.5;
       
 15549   const size = 24;
       
 15550   return /*#__PURE__*/emotion_react_browser_esm_css({
       
 15551     gridTemplateRows: `repeat( 3, calc( ${size - padding * 2}px / 3))`,
       
 15552     padding,
       
 15553     maxHeight: size,
       
 15554     maxWidth: size
       
 15555   },  true ? "" : 0,  true ? "" : 0);
       
 15556 };
       
 15557 const rootPointerEvents = ({
       
 15558   disablePointerEvents
       
 15559 }) => {
       
 15560   return /*#__PURE__*/emotion_react_browser_esm_css({
       
 15561     pointerEvents: disablePointerEvents ? 'none' : undefined
       
 15562   },  true ? "" : 0,  true ? "" : 0);
       
 15563 };
       
 15564 const Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 15565   target: "erowt52"
       
 15566 } : 0)( true ? {
       
 15567   name: "ogl07i",
       
 15568   styles: "box-sizing:border-box;padding:2px"
       
 15569 } : 0);
       
 15570 const alignment_matrix_control_icon_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 15571   target: "erowt51"
       
 15572 } : 0)("transform-origin:top left;height:100%;width:100%;", rootBase, ";", alignment_matrix_control_icon_styles_rootSize, ";", rootPointerEvents, ";" + ( true ? "" : 0));
       
 15573 const alignment_matrix_control_icon_styles_pointActive = ({
       
 15574   isActive
       
 15575 }) => {
       
 15576   const boxShadow = isActive ? `0 0 0 1px currentColor` : null;
       
 15577   return /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:", boxShadow, ";color:currentColor;*:hover>&{color:currentColor;}" + ( true ? "" : 0),  true ? "" : 0);
       
 15578 };
       
 15579 const alignment_matrix_control_icon_styles_Point = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
       
 15580   target: "erowt50"
       
 15581 } : 0)("height:2px;width:2px;", pointBase, ";", alignment_matrix_control_icon_styles_pointActive, ";" + ( true ? "" : 0));
       
 15582 const alignment_matrix_control_icon_styles_Cell = Cell;
       
 15583 
       
 15584 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/icon.js
       
 15585 /**
       
 15586  * External dependencies
       
 15587  */
       
 15588 
       
 15589 
       
 15590 /**
       
 15591  * Internal dependencies
       
 15592  */
       
 15593 
       
 15594 
       
 15595 
 16121 
 15596 const BASE_SIZE = 24;
 16122 const BASE_SIZE = 24;
       
 16123 const GRID_CELL_SIZE = 7;
       
 16124 const GRID_PADDING = (BASE_SIZE - 3 * GRID_CELL_SIZE) / 2;
       
 16125 const DOT_SIZE = 2;
       
 16126 const DOT_SIZE_SELECTED = 4;
 15597 function AlignmentMatrixControlIcon({
 16127 function AlignmentMatrixControlIcon({
 15598   className,
 16128   className,
 15599   disablePointerEvents = true,
 16129   disablePointerEvents = true,
 15600   size = BASE_SIZE,
 16130   size,
       
 16131   width,
       
 16132   height,
 15601   style = {},
 16133   style = {},
 15602   value = 'center',
 16134   value = 'center',
 15603   ...props
 16135   ...props
 15604 }) {
 16136 }) {
 15605   const alignIndex = getAlignmentIndex(value);
 16137   var _ref, _ref2;
 15606   const scale = (size / BASE_SIZE).toFixed(2);
 16138   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
 15607   const classes = dist_clsx('component-alignment-matrix-control-icon', className);
 16139     xmlns: "http://www.w3.org/2000/svg",
 15608   const styles = {
 16140     viewBox: `0 0 ${BASE_SIZE} ${BASE_SIZE}`,
 15609     ...style,
 16141     width: (_ref = size !== null && size !== void 0 ? size : width) !== null && _ref !== void 0 ? _ref : BASE_SIZE,
 15610     transform: `scale(${scale})`
 16142     height: (_ref2 = size !== null && size !== void 0 ? size : height) !== null && _ref2 !== void 0 ? _ref2 : BASE_SIZE,
 15611   };
 16143     role: "presentation",
 15612   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_matrix_control_icon_styles_Root, {
 16144     className: dist_clsx('component-alignment-matrix-control-icon', className),
       
 16145     style: {
       
 16146       pointerEvents: disablePointerEvents ? 'none' : undefined,
       
 16147       ...style
       
 16148     },
 15613     ...props,
 16149     ...props,
 15614     className: classes,
       
 15615     disablePointerEvents: disablePointerEvents,
       
 15616     role: "presentation",
       
 15617     style: styles,
       
 15618     children: ALIGNMENTS.map((align, index) => {
 16150     children: ALIGNMENTS.map((align, index) => {
 15619       const isActive = alignIndex === index;
 16151       const dotSize = getAlignmentIndex(value) === index ? DOT_SIZE_SELECTED : DOT_SIZE;
 15620       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_matrix_control_icon_styles_Cell, {
 16152       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Rect, {
 15621         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(alignment_matrix_control_icon_styles_Point, {
 16153         x: GRID_PADDING + index % 3 * GRID_CELL_SIZE + (GRID_CELL_SIZE - dotSize) / 2,
 15622           isActive: isActive
 16154         y: GRID_PADDING + Math.floor(index / 3) * GRID_CELL_SIZE + (GRID_CELL_SIZE - dotSize) / 2,
 15623         })
 16155         width: dotSize,
       
 16156         height: dotSize,
       
 16157         fill: "currentColor"
 15624       }, align);
 16158       }, align);
 15625     })
 16159     })
 15626   });
 16160   });
 15627 }
 16161 }
 15628 /* harmony default export */ const icon = (AlignmentMatrixControlIcon);
 16162 /* harmony default export */ const icon = (AlignmentMatrixControlIcon);
 15629 
 16163 
 15630 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/alignment-matrix-control/index.js
 16164 ;// ./node_modules/@wordpress/components/build-module/alignment-matrix-control/index.js
 15631 /**
 16165 /**
 15632  * External dependencies
 16166  * External dependencies
 15633  */
 16167  */
 15634 
 16168 
 15635 
 16169 
 15637  * WordPress dependencies
 16171  * WordPress dependencies
 15638  */
 16172  */
 15639 
 16173 
 15640 
 16174 
 15641 
 16175 
       
 16176 
 15642 /**
 16177 /**
 15643  * Internal dependencies
 16178  * Internal dependencies
 15644  */
 16179  */
 15645 
 16180 
 15646 
 16181 
 15647 
 16182 
 15648 
 16183 
 15649 
 16184 
 15650 
 16185 
 15651 /**
 16186 function UnforwardedAlignmentMatrixControl({
 15652  *
       
 15653  * AlignmentMatrixControl components enable adjustments to horizontal and vertical alignments for UI.
       
 15654  *
       
 15655  * ```jsx
       
 15656  * import { __experimentalAlignmentMatrixControl as AlignmentMatrixControl } from '@wordpress/components';
       
 15657  * import { useState } from '@wordpress/element';
       
 15658  *
       
 15659  * const Example = () => {
       
 15660  * 	const [ alignment, setAlignment ] = useState( 'center center' );
       
 15661  *
       
 15662  * 	return (
       
 15663  * 		<AlignmentMatrixControl
       
 15664  * 			value={ alignment }
       
 15665  * 			onChange={ setAlignment }
       
 15666  * 		/>
       
 15667  * 	);
       
 15668  * };
       
 15669  * ```
       
 15670  */
       
 15671 function AlignmentMatrixControl({
       
 15672   className,
 16187   className,
 15673   id,
 16188   id,
 15674   label = (0,external_wp_i18n_namespaceObject.__)('Alignment Matrix Control'),
 16189   label = (0,external_wp_i18n_namespaceObject.__)('Alignment Matrix Control'),
 15675   defaultValue = 'center center',
 16190   defaultValue = 'center center',
 15676   value,
 16191   value,
 15677   onChange,
 16192   onChange,
 15678   width = 92,
 16193   width = 92,
 15679   ...props
 16194   ...props
 15680 }) {
 16195 }) {
 15681   const baseId = (0,external_wp_compose_namespaceObject.useInstanceId)(AlignmentMatrixControl, 'alignment-matrix-control', id);
 16196   const baseId = (0,external_wp_compose_namespaceObject.useInstanceId)(UnforwardedAlignmentMatrixControl, 'alignment-matrix-control', id);
 15682   const compositeStore = useCompositeStore({
 16197   const setActiveId = (0,external_wp_element_namespaceObject.useCallback)(nextActiveId => {
       
 16198     const nextValue = getItemValue(baseId, nextActiveId);
       
 16199     if (nextValue) {
       
 16200       onChange?.(nextValue);
       
 16201     }
       
 16202   }, [baseId, onChange]);
       
 16203   const classes = dist_clsx('component-alignment-matrix-control', className);
       
 16204   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
 15683     defaultActiveId: getItemId(baseId, defaultValue),
 16205     defaultActiveId: getItemId(baseId, defaultValue),
 15684     activeId: getItemId(baseId, value),
 16206     activeId: getItemId(baseId, value),
 15685     setActiveId: nextActiveId => {
 16207     setActiveId: setActiveId,
 15686       const nextValue = getItemValue(baseId, nextActiveId);
 16208     rtl: (0,external_wp_i18n_namespaceObject.isRTL)(),
 15687       if (nextValue) {
 16209     render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridContainer, {
 15688         onChange?.(nextValue);
       
 15689       }
       
 15690     },
       
 15691     rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
       
 15692   });
       
 15693   const activeId = compositeStore.useState('activeId');
       
 15694   const classes = dist_clsx('component-alignment-matrix-control', className);
       
 15695   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
       
 15696     store: compositeStore,
       
 15697     render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Root, {
       
 15698       ...props,
 16210       ...props,
 15699       "aria-label": label,
 16211       "aria-label": label,
 15700       className: classes,
 16212       className: classes,
 15701       id: baseId,
 16213       id: baseId,
 15702       role: "grid",
 16214       role: "grid",
 15703       size: width
 16215       size: width
 15704     }),
 16216     }),
 15705     children: GRID.map((cells, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeRow, {
 16217     children: GRID.map((cells, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite.Row, {
 15706       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Row, {
 16218       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(GridRow, {
 15707         role: "row"
 16219         role: "row"
 15708       }),
 16220       }),
 15709       children: cells.map(cell => {
 16221       children: cells.map(cell => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cell_Cell, {
 15710         const cellId = getItemId(baseId, cell);
 16222         id: getItemId(baseId, cell),
 15711         const isActive = cellId === activeId;
 16223         value: cell
 15712         return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cell_Cell, {
 16224       }, cell))
 15713           id: cellId,
       
 15714           isActive: isActive,
       
 15715           value: cell
       
 15716         }, cell);
       
 15717       })
       
 15718     }, index))
 16225     }, index))
 15719   });
 16226   });
 15720 }
 16227 }
 15721 AlignmentMatrixControl.Icon = icon;
 16228 
       
 16229 /**
       
 16230  * AlignmentMatrixControl components enable adjustments to horizontal and vertical alignments for UI.
       
 16231  *
       
 16232  * ```jsx
       
 16233  * import { AlignmentMatrixControl } from '@wordpress/components';
       
 16234  * import { useState } from '@wordpress/element';
       
 16235  *
       
 16236  * const Example = () => {
       
 16237  * 	const [ alignment, setAlignment ] = useState( 'center center' );
       
 16238  *
       
 16239  * 	return (
       
 16240  * 		<AlignmentMatrixControl
       
 16241  * 			value={ alignment }
       
 16242  * 			onChange={ setAlignment }
       
 16243  * 		/>
       
 16244  * 	);
       
 16245  * };
       
 16246  * ```
       
 16247  */
       
 16248 const AlignmentMatrixControl = Object.assign(UnforwardedAlignmentMatrixControl, {
       
 16249   /**
       
 16250    * Render an alignment matrix as an icon.
       
 16251    *
       
 16252    * ```jsx
       
 16253    * import { AlignmentMatrixControl } from '@wordpress/components';
       
 16254    *
       
 16255    * <Icon icon={<AlignmentMatrixControl.Icon value="top left" />} />
       
 16256    * ```
       
 16257    */
       
 16258   Icon: Object.assign(icon, {
       
 16259     displayName: 'AlignmentMatrixControl.Icon'
       
 16260   })
       
 16261 });
 15722 /* harmony default export */ const alignment_matrix_control = (AlignmentMatrixControl);
 16262 /* harmony default export */ const alignment_matrix_control = (AlignmentMatrixControl);
 15723 
 16263 
 15724 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js
 16264 ;// ./node_modules/@wordpress/components/build-module/animate/index.js
 15725 /**
 16265 /**
 15726  * External dependencies
 16266  * External dependencies
 15727  */
 16267  */
 15728 
 16268 
 15729 
 16269 
 15794     })
 16334     })
 15795   });
 16335   });
 15796 }
 16336 }
 15797 /* harmony default export */ const animate = (Animate);
 16337 /* harmony default export */ const animate = (Animate);
 15798 
 16338 
 15799 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
 16339 ;// ./node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
 15800 
 16340 
 15801 
 16341 
 15802 /**
 16342 /**
 15803  * @public
 16343  * @public
 15804  */
 16344  */
 15808     reducedMotion: "never",
 16348     reducedMotion: "never",
 15809 });
 16349 });
 15810 
 16350 
 15811 
 16351 
 15812 
 16352 
 15813 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
 16353 ;// ./node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
 15814 
 16354 
 15815 
 16355 
 15816 const MotionContext = (0,external_React_.createContext)({});
 16356 const MotionContext = (0,external_React_.createContext)({});
 15817 
 16357 
 15818 
 16358 
 15819 
 16359 
 15820 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/PresenceContext.mjs
 16360 ;// ./node_modules/framer-motion/dist/es/context/PresenceContext.mjs
 15821 
 16361 
 15822 
 16362 
 15823 /**
 16363 /**
 15824  * @public
 16364  * @public
 15825  */
 16365  */
 15826 const PresenceContext_PresenceContext = (0,external_React_.createContext)(null);
 16366 const PresenceContext_PresenceContext = (0,external_React_.createContext)(null);
 15827 
 16367 
 15828 
 16368 
 15829 
 16369 
 15830 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-browser.mjs
 16370 ;// ./node_modules/framer-motion/dist/es/utils/is-browser.mjs
 15831 const is_browser_isBrowser = typeof document !== "undefined";
 16371 const is_browser_isBrowser = typeof document !== "undefined";
 15832 
 16372 
 15833 
 16373 
 15834 
 16374 
 15835 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
 16375 ;// ./node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
 15836 
 16376 
 15837 
 16377 
 15838 
 16378 
 15839 const useIsomorphicLayoutEffect = is_browser_isBrowser ? external_React_.useLayoutEffect : external_React_.useEffect;
 16379 const useIsomorphicLayoutEffect = is_browser_isBrowser ? external_React_.useLayoutEffect : external_React_.useEffect;
 15840 
 16380 
 15841 
 16381 
 15842 
 16382 
 15843 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LazyContext.mjs
 16383 ;// ./node_modules/framer-motion/dist/es/context/LazyContext.mjs
 15844 
 16384 
 15845 
 16385 
 15846 const LazyContext = (0,external_React_.createContext)({ strict: false });
 16386 const LazyContext = (0,external_React_.createContext)({ strict: false });
 15847 
 16387 
 15848 
 16388 
 15849 
 16389 
 15850 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs
 16390 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs
 15851 /**
 16391 /**
 15852  * Convert camelCase to dash-case properties.
 16392  * Convert camelCase to dash-case properties.
 15853  */
 16393  */
 15854 const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase();
 16394 const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase();
 15855 
 16395 
 15856 
 16396 
 15857 
 16397 
 15858 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs
 16398 ;// ./node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs
 15859 
 16399 
 15860 
 16400 
 15861 const optimizedAppearDataId = "framerAppearId";
 16401 const optimizedAppearDataId = "framerAppearId";
 15862 const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
 16402 const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
 15863 
 16403 
 15864 
 16404 
 15865 
 16405 
 15866 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs
 16406 ;// ./node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs
 15867 const MotionGlobalConfig = {
 16407 const MotionGlobalConfig = {
 15868     skipAnimations: false,
 16408     skipAnimations: false,
 15869     useManualTiming: false,
 16409     useManualTiming: false,
 15870 };
 16410 };
 15871 
 16411 
 15872 
 16412 
 15873 
 16413 
 15874 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/render-step.mjs
 16414 ;// ./node_modules/framer-motion/dist/es/frameloop/render-step.mjs
 15875 class Queue {
 16415 class Queue {
 15876     constructor() {
 16416     constructor() {
 15877         this.order = [];
 16417         this.order = [];
 15878         this.scheduled = new Set();
 16418         this.scheduled = new Set();
 15879     }
 16419     }
 15975     return step;
 16515     return step;
 15976 }
 16516 }
 15977 
 16517 
 15978 
 16518 
 15979 
 16519 
 15980 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/batcher.mjs
 16520 ;// ./node_modules/framer-motion/dist/es/frameloop/batcher.mjs
 15981 
 16521 
 15982 
 16522 
 15983 
 16523 
 15984 const stepsOrder = [
 16524 const stepsOrder = [
 15985     "read", // Read
 16525     "read", // Read
 16042     return { schedule, cancel, state, steps };
 16582     return { schedule, cancel, state, steps };
 16043 }
 16583 }
 16044 
 16584 
 16045 
 16585 
 16046 
 16586 
 16047 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/microtask.mjs
 16587 ;// ./node_modules/framer-motion/dist/es/frameloop/microtask.mjs
 16048 
 16588 
 16049 
 16589 
 16050 const { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, false);
 16590 const { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, false);
 16051 
 16591 
 16052 
 16592 
 16053 
 16593 
 16054 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
 16594 ;// ./node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
 16055 
 16595 
 16056 
 16596 
 16057 
 16597 
 16058 
 16598 
 16059 
 16599 
 16127     return visualElement;
 16667     return visualElement;
 16128 }
 16668 }
 16129 
 16669 
 16130 
 16670 
 16131 
 16671 
 16132 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
 16672 ;// ./node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
 16133 function isRefObject(ref) {
 16673 function isRefObject(ref) {
 16134     return (ref &&
 16674     return (ref &&
 16135         typeof ref === "object" &&
 16675         typeof ref === "object" &&
 16136         Object.prototype.hasOwnProperty.call(ref, "current"));
 16676         Object.prototype.hasOwnProperty.call(ref, "current"));
 16137 }
 16677 }
 16138 
 16678 
 16139 
 16679 
 16140 
 16680 
 16141 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
 16681 ;// ./node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
 16142 
 16682 
 16143 
 16683 
 16144 
 16684 
 16145 /**
 16685 /**
 16146  * Creates a ref function that, when called, hydrates the provided
 16686  * Creates a ref function that, when called, hydrates the provided
 16171     [visualElement]);
 16711     [visualElement]);
 16172 }
 16712 }
 16173 
 16713 
 16174 
 16714 
 16175 
 16715 
 16176 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs
 16716 ;// ./node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs
 16177 /**
 16717 /**
 16178  * Decides if the supplied variable is variant label
 16718  * Decides if the supplied variable is variant label
 16179  */
 16719  */
 16180 function isVariantLabel(v) {
 16720 function isVariantLabel(v) {
 16181     return typeof v === "string" || Array.isArray(v);
 16721     return typeof v === "string" || Array.isArray(v);
 16182 }
 16722 }
 16183 
 16723 
 16184 
 16724 
 16185 
 16725 
 16186 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs
 16726 ;// ./node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs
 16187 function isAnimationControls(v) {
 16727 function isAnimationControls(v) {
 16188     return (v !== null &&
 16728     return (v !== null &&
 16189         typeof v === "object" &&
 16729         typeof v === "object" &&
 16190         typeof v.start === "function");
 16730         typeof v.start === "function");
 16191 }
 16731 }
 16192 
 16732 
 16193 
 16733 
 16194 
 16734 
 16195 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/variant-props.mjs
 16735 ;// ./node_modules/framer-motion/dist/es/render/utils/variant-props.mjs
 16196 const variantPriorityOrder = [
 16736 const variantPriorityOrder = [
 16197     "animate",
 16737     "animate",
 16198     "whileInView",
 16738     "whileInView",
 16199     "whileFocus",
 16739     "whileFocus",
 16200     "whileHover",
 16740     "whileHover",
 16204 ];
 16744 ];
 16205 const variantProps = ["initial", ...variantPriorityOrder];
 16745 const variantProps = ["initial", ...variantPriorityOrder];
 16206 
 16746 
 16207 
 16747 
 16208 
 16748 
 16209 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs
 16749 ;// ./node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs
 16210 
 16750 
 16211 
 16751 
 16212 
 16752 
 16213 
 16753 
 16214 function isControllingVariants(props) {
 16754 function isControllingVariants(props) {
 16219     return Boolean(isControllingVariants(props) || props.variants);
 16759     return Boolean(isControllingVariants(props) || props.variants);
 16220 }
 16760 }
 16221 
 16761 
 16222 
 16762 
 16223 
 16763 
 16224 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
 16764 ;// ./node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
 16225 
 16765 
 16226 
 16766 
 16227 
 16767 
 16228 function getCurrentTreeVariants(props, context) {
 16768 function getCurrentTreeVariants(props, context) {
 16229     if (isControllingVariants(props)) {
 16769     if (isControllingVariants(props)) {
 16238     return props.inherit !== false ? context : {};
 16778     return props.inherit !== false ? context : {};
 16239 }
 16779 }
 16240 
 16780 
 16241 
 16781 
 16242 
 16782 
 16243 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
 16783 ;// ./node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
 16244 
 16784 
 16245 
 16785 
 16246 
 16786 
 16247 
 16787 
 16248 function useCreateMotionContext(props) {
 16788 function useCreateMotionContext(props) {
 16253     return Array.isArray(prop) ? prop.join(" ") : prop;
 16793     return Array.isArray(prop) ? prop.join(" ") : prop;
 16254 }
 16794 }
 16255 
 16795 
 16256 
 16796 
 16257 
 16797 
 16258 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/definitions.mjs
 16798 ;// ./node_modules/framer-motion/dist/es/motion/features/definitions.mjs
 16259 const featureProps = {
 16799 const featureProps = {
 16260     animation: [
 16800     animation: [
 16261         "animate",
 16801         "animate",
 16262         "variants",
 16802         "variants",
 16263         "whileHover",
 16803         "whileHover",
 16283     };
 16823     };
 16284 }
 16824 }
 16285 
 16825 
 16286 
 16826 
 16287 
 16827 
 16288 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/load-features.mjs
 16828 ;// ./node_modules/framer-motion/dist/es/motion/features/load-features.mjs
 16289 
 16829 
 16290 
 16830 
 16291 function loadFeatures(features) {
 16831 function loadFeatures(features) {
 16292     for (const key in features) {
 16832     for (const key in features) {
 16293         featureDefinitions[key] = {
 16833         featureDefinitions[key] = {
 16297     }
 16837     }
 16298 }
 16838 }
 16299 
 16839 
 16300 
 16840 
 16301 
 16841 
 16302 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
 16842 ;// ./node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
 16303 
 16843 
 16304 
 16844 
 16305 const LayoutGroupContext = (0,external_React_.createContext)({});
 16845 const LayoutGroupContext = (0,external_React_.createContext)({});
 16306 
 16846 
 16307 
 16847 
 16308 
 16848 
 16309 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
 16849 ;// ./node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
 16310 
 16850 
 16311 
 16851 
 16312 /**
 16852 /**
 16313  * Internal, exported only for usage in Framer
 16853  * Internal, exported only for usage in Framer
 16314  */
 16854  */
 16315 const SwitchLayoutGroupContext = (0,external_React_.createContext)({});
 16855 const SwitchLayoutGroupContext = (0,external_React_.createContext)({});
 16316 
 16856 
 16317 
 16857 
 16318 
 16858 
 16319 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/symbol.mjs
 16859 ;// ./node_modules/framer-motion/dist/es/motion/utils/symbol.mjs
 16320 const motionComponentSymbol = Symbol.for("motionComponentSymbol");
 16860 const motionComponentSymbol = Symbol.for("motionComponentSymbol");
 16321 
 16861 
 16322 
 16862 
 16323 
 16863 
 16324 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/index.mjs
 16864 ;// ./node_modules/framer-motion/dist/es/motion/index.mjs
 16325 
 16865 
 16326 
 16866 
 16327 
 16867 
 16328 
 16868 
 16329 
 16869 
 16398         : layoutId;
 16938         : layoutId;
 16399 }
 16939 }
 16400 
 16940 
 16401 
 16941 
 16402 
 16942 
 16403 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs
 16943 ;// ./node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs
 16404 
 16944 
 16405 
 16945 
 16406 /**
 16946 /**
 16407  * Convert any React component into a `motion` component. The provided component
 16947  * Convert any React component into a `motion` component. The provided component
 16408  * **must** use `React.forwardRef` to the underlying DOM component you want to animate.
 16948  * **must** use `React.forwardRef` to the underlying DOM component you want to animate.
 16447     });
 16987     });
 16448 }
 16988 }
 16449 
 16989 
 16450 
 16990 
 16451 
 16991 
 16452 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
 16992 ;// ./node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
 16453 /**
 16993 /**
 16454  * We keep these listed seperately as we use the lowercase tag names as part
 16994  * We keep these listed seperately as we use the lowercase tag names as part
 16455  * of the runtime bundle to detect SVG components
 16995  * of the runtime bundle to detect SVG components
 16456  */
 16996  */
 16457 const lowercaseSVGElements = [
 16997 const lowercaseSVGElements = [
 16482     "view",
 17022     "view",
 16483 ];
 17023 ];
 16484 
 17024 
 16485 
 17025 
 16486 
 17026 
 16487 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
 17027 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
 16488 
 17028 
 16489 
 17029 
 16490 function isSVGComponent(Component) {
 17030 function isSVGComponent(Component) {
 16491     if (
 17031     if (
 16492     /**
 17032     /**
 16514     return false;
 17054     return false;
 16515 }
 17055 }
 16516 
 17056 
 16517 
 17057 
 16518 
 17058 
 16519 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs
 17059 ;// ./node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs
 16520 const scaleCorrectors = {};
 17060 const scaleCorrectors = {};
 16521 function addScaleCorrector(correctors) {
 17061 function addScaleCorrector(correctors) {
 16522     Object.assign(scaleCorrectors, correctors);
 17062     Object.assign(scaleCorrectors, correctors);
 16523 }
 17063 }
 16524 
 17064 
 16525 
 17065 
 16526 
 17066 
 16527 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/transform.mjs
 17067 ;// ./node_modules/framer-motion/dist/es/render/html/utils/transform.mjs
 16528 /**
 17068 /**
 16529  * Generate a list of every possible transform key.
 17069  * Generate a list of every possible transform key.
 16530  */
 17070  */
 16531 const transformPropOrder = [
 17071 const transformPropOrder = [
 16532     "transformPerspective",
 17072     "transformPerspective",
 16552  */
 17092  */
 16553 const transformProps = new Set(transformPropOrder);
 17093 const transformProps = new Set(transformPropOrder);
 16554 
 17094 
 16555 
 17095 
 16556 
 17096 
 16557 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs
 17097 ;// ./node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs
 16558 
 17098 
 16559 
 17099 
 16560 
 17100 
 16561 function isForcedMotionValue(key, { layout, layoutId }) {
 17101 function isForcedMotionValue(key, { layout, layoutId }) {
 16562     return (transformProps.has(key) ||
 17102     return (transformProps.has(key) ||
 16565             (!!scaleCorrectors[key] || key === "opacity")));
 17105             (!!scaleCorrectors[key] || key === "opacity")));
 16566 }
 17106 }
 16567 
 17107 
 16568 
 17108 
 16569 
 17109 
 16570 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs
 17110 ;// ./node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs
 16571 const isMotionValue = (value) => Boolean(value && value.getVelocity);
 17111 const isMotionValue = (value) => Boolean(value && value.getVelocity);
 16572 
 17112 
 16573 
 17113 
 16574 
 17114 
 16575 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs
 17115 ;// ./node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs
 16576 
 17116 
 16577 
 17117 
 16578 const translateAlias = {
 17118 const translateAlias = {
 16579     x: "translateX",
 17119     x: "translateX",
 16580     y: "translateY",
 17120     y: "translateY",
 16617     return transformString;
 17157     return transformString;
 16618 }
 17158 }
 16619 
 17159 
 16620 
 17160 
 16621 
 17161 
 16622 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs
 17162 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs
 16623 const checkStringStartsWith = (token) => (key) => typeof key === "string" && key.startsWith(token);
 17163 const checkStringStartsWith = (token) => (key) => typeof key === "string" && key.startsWith(token);
 16624 const isCSSVariableName = checkStringStartsWith("--");
 17164 const isCSSVariableName = checkStringStartsWith("--");
 16625 const startsAsVariableToken = checkStringStartsWith("var(--");
 17165 const startsAsVariableToken = checkStringStartsWith("var(--");
 16626 const isCSSVariableToken = (value) => {
 17166 const isCSSVariableToken = (value) => {
 16627     const startsWithToken = startsAsVariableToken(value);
 17167     const startsWithToken = startsAsVariableToken(value);
 16632 };
 17172 };
 16633 const singleCssVariableRegex = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
 17173 const singleCssVariableRegex = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
 16634 
 17174 
 16635 
 17175 
 16636 
 17176 
 16637 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs
 17177 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs
 16638 /**
 17178 /**
 16639  * Provided a value and a ValueType, returns the value as that value type.
 17179  * Provided a value and a ValueType, returns the value as that value type.
 16640  */
 17180  */
 16641 const getValueAsType = (value, type) => {
 17181 const getValueAsType = (value, type) => {
 16642     return type && typeof value === "number"
 17182     return type && typeof value === "number"
 16644         : value;
 17184         : value;
 16645 };
 17185 };
 16646 
 17186 
 16647 
 17187 
 16648 
 17188 
 16649 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/clamp.mjs
 17189 ;// ./node_modules/framer-motion/dist/es/utils/clamp.mjs
 16650 const clamp_clamp = (min, max, v) => {
 17190 const clamp_clamp = (min, max, v) => {
 16651     if (v > max)
 17191     if (v > max)
 16652         return max;
 17192         return max;
 16653     if (v < min)
 17193     if (v < min)
 16654         return min;
 17194         return min;
 16655     return v;
 17195     return v;
 16656 };
 17196 };
 16657 
 17197 
 16658 
 17198 
 16659 
 17199 
 16660 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/numbers/index.mjs
 17200 ;// ./node_modules/framer-motion/dist/es/value/types/numbers/index.mjs
 16661 
 17201 
 16662 
 17202 
 16663 const number = {
 17203 const number = {
 16664     test: (v) => typeof v === "number",
 17204     test: (v) => typeof v === "number",
 16665     parse: parseFloat,
 17205     parse: parseFloat,
 16674     default: 1,
 17214     default: 1,
 16675 };
 17215 };
 16676 
 17216 
 16677 
 17217 
 16678 
 17218 
 16679 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/utils.mjs
 17219 ;// ./node_modules/framer-motion/dist/es/value/types/utils.mjs
 16680 /**
 17220 /**
 16681  * TODO: When we move from string as a source of truth to data models
 17221  * TODO: When we move from string as a source of truth to data models
 16682  * everything in this folder should probably be referred to as models vs types
 17222  * everything in this folder should probably be referred to as models vs types
 16683  */
 17223  */
 16684 // If this number is a decimal, make it just five decimal places
 17224 // If this number is a decimal, make it just five decimal places
 16691     return typeof v === "string";
 17231     return typeof v === "string";
 16692 }
 17232 }
 16693 
 17233 
 16694 
 17234 
 16695 
 17235 
 16696 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/numbers/units.mjs
 17236 ;// ./node_modules/framer-motion/dist/es/value/types/numbers/units.mjs
 16697 
 17237 
 16698 
 17238 
 16699 const createUnitType = (unit) => ({
 17239 const createUnitType = (unit) => ({
 16700     test: (v) => isString(v) && v.endsWith(unit) && v.split(" ").length === 1,
 17240     test: (v) => isString(v) && v.endsWith(unit) && v.split(" ").length === 1,
 16701     parse: parseFloat,
 17241     parse: parseFloat,
 16712     transform: (v) => percent.transform(v * 100),
 17252     transform: (v) => percent.transform(v * 100),
 16713 };
 17253 };
 16714 
 17254 
 16715 
 17255 
 16716 
 17256 
 16717 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs
 17257 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs
 16718 
 17258 
 16719 
 17259 
 16720 const type_int_int = {
 17260 const type_int_int = {
 16721     ...number,
 17261     ...number,
 16722     transform: Math.round,
 17262     transform: Math.round,
 16723 };
 17263 };
 16724 
 17264 
 16725 
 17265 
 16726 
 17266 
 16727 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs
 17267 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs
 16728 
 17268 
 16729 
 17269 
 16730 
 17270 
 16731 
 17271 
 16732 const numberValueTypes = {
 17272 const numberValueTypes = {
 16798     numOctaves: type_int_int,
 17338     numOctaves: type_int_int,
 16799 };
 17339 };
 16800 
 17340 
 16801 
 17341 
 16802 
 17342 
 16803 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs
 17343 ;// ./node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs
 16804 
 17344 
 16805 
 17345 
 16806 
 17346 
 16807 
 17347 
 16808 
 17348 
 16874     }
 17414     }
 16875 }
 17415 }
 16876 
 17416 
 16877 
 17417 
 16878 
 17418 
 16879 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
 17419 ;// ./node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
 16880 const createHtmlRenderState = () => ({
 17420 const createHtmlRenderState = () => ({
 16881     style: {},
 17421     style: {},
 16882     transform: {},
 17422     transform: {},
 16883     transformOrigin: {},
 17423     transformOrigin: {},
 16884     vars: {},
 17424     vars: {},
 16885 });
 17425 });
 16886 
 17426 
 16887 
 17427 
 16888 
 17428 
 16889 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/use-props.mjs
 17429 ;// ./node_modules/framer-motion/dist/es/render/html/use-props.mjs
 16890 
 17430 
 16891 
 17431 
 16892 
 17432 
 16893 
 17433 
 16894 
 17434 
 16943     return htmlProps;
 17483     return htmlProps;
 16944 }
 17484 }
 16945 
 17485 
 16946 
 17486 
 16947 
 17487 
 16948 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
 17488 ;// ./node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
 16949 /**
 17489 /**
 16950  * A list of all valid MotionProps.
 17490  * A list of all valid MotionProps.
 16951  *
 17491  *
 16952  * @privateRemarks
 17492  * @privateRemarks
 16953  * This doesn't throw if a `MotionProp` name is missing - it should.
 17493  * This doesn't throw if a `MotionProp` name is missing - it should.
 17002         validMotionProps.has(key));
 17542         validMotionProps.has(key));
 17003 }
 17543 }
 17004 
 17544 
 17005 
 17545 
 17006 
 17546 
 17007 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
 17547 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
 17008 
 17548 
 17009 
 17549 
 17010 let shouldForward = (key) => !isValidMotionProp(key);
 17550 let shouldForward = (key) => !isValidMotionProp(key);
 17011 function loadExternalIsValidProp(isValidProp) {
 17551 function loadExternalIsValidProp(isValidProp) {
 17012     if (!isValidProp)
 17552     if (!isValidProp)
 17063     return filteredProps;
 17603     return filteredProps;
 17064 }
 17604 }
 17065 
 17605 
 17066 
 17606 
 17067 
 17607 
 17068 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs
 17608 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs
 17069 
 17609 
 17070 
 17610 
 17071 function calcOrigin(origin, offset, size) {
 17611 function calcOrigin(origin, offset, size) {
 17072     return typeof origin === "string"
 17612     return typeof origin === "string"
 17073         ? origin
 17613         ? origin
 17083     return `${pxOriginX} ${pxOriginY}`;
 17623     return `${pxOriginX} ${pxOriginY}`;
 17084 }
 17624 }
 17085 
 17625 
 17086 
 17626 
 17087 
 17627 
 17088 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/path.mjs
 17628 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/path.mjs
 17089 
 17629 
 17090 
 17630 
 17091 const dashKeys = {
 17631 const dashKeys = {
 17092     offset: "stroke-dashoffset",
 17632     offset: "stroke-dashoffset",
 17093     array: "stroke-dasharray",
 17633     array: "stroke-dasharray",
 17117     attrs[keys.array] = `${pathLength} ${pathSpacing}`;
 17657     attrs[keys.array] = `${pathLength} ${pathSpacing}`;
 17118 }
 17658 }
 17119 
 17659 
 17120 
 17660 
 17121 
 17661 
 17122 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs
 17662 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs
 17123 
 17663 
 17124 
 17664 
 17125 
 17665 
 17126 
 17666 
 17127 /**
 17667 /**
 17171     }
 17711     }
 17172 }
 17712 }
 17173 
 17713 
 17174 
 17714 
 17175 
 17715 
 17176 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
 17716 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
 17177 
 17717 
 17178 
 17718 
 17179 const createSvgRenderState = () => ({
 17719 const createSvgRenderState = () => ({
 17180     ...createHtmlRenderState(),
 17720     ...createHtmlRenderState(),
 17181     attrs: {},
 17721     attrs: {},
 17182 });
 17722 });
 17183 
 17723 
 17184 
 17724 
 17185 
 17725 
 17186 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs
 17726 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs
 17187 const isSVGTag = (tag) => typeof tag === "string" && tag.toLowerCase() === "svg";
 17727 const isSVGTag = (tag) => typeof tag === "string" && tag.toLowerCase() === "svg";
 17188 
 17728 
 17189 
 17729 
 17190 
 17730 
 17191 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/use-props.mjs
 17731 ;// ./node_modules/framer-motion/dist/es/render/svg/use-props.mjs
 17192 
 17732 
 17193 
 17733 
 17194 
 17734 
 17195 
 17735 
 17196 
 17736 
 17212     return visualProps;
 17752     return visualProps;
 17213 }
 17753 }
 17214 
 17754 
 17215 
 17755 
 17216 
 17756 
 17217 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/use-render.mjs
 17757 ;// ./node_modules/framer-motion/dist/es/render/dom/use-render.mjs
 17218 
 17758 
 17219 
 17759 
 17220 
 17760 
 17221 
 17761 
 17222 
 17762 
 17247     return useRender;
 17787     return useRender;
 17248 }
 17788 }
 17249 
 17789 
 17250 
 17790 
 17251 
 17791 
 17252 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/render.mjs
 17792 ;// ./node_modules/framer-motion/dist/es/render/html/utils/render.mjs
 17253 function renderHTML(element, { style, vars }, styleProp, projection) {
 17793 function renderHTML(element, { style, vars }, styleProp, projection) {
 17254     Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));
 17794     Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));
 17255     // Loop over any CSS variables and assign those.
 17795     // Loop over any CSS variables and assign those.
 17256     for (const key in vars) {
 17796     for (const key in vars) {
 17257         element.style.setProperty(key, vars[key]);
 17797         element.style.setProperty(key, vars[key]);
 17258     }
 17798     }
 17259 }
 17799 }
 17260 
 17800 
 17261 
 17801 
 17262 
 17802 
 17263 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs
 17803 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs
 17264 /**
 17804 /**
 17265  * A set of attribute names that are always read/written as camel case.
 17805  * A set of attribute names that are always read/written as camel case.
 17266  */
 17806  */
 17267 const camelCaseAttributes = new Set([
 17807 const camelCaseAttributes = new Set([
 17268     "baseFrequency",
 17808     "baseFrequency",
 17290     "lengthAdjust",
 17830     "lengthAdjust",
 17291 ]);
 17831 ]);
 17292 
 17832 
 17293 
 17833 
 17294 
 17834 
 17295 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/render.mjs
 17835 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/render.mjs
 17296 
 17836 
 17297 
 17837 
 17298 
 17838 
 17299 
 17839 
 17300 function renderSVG(element, renderState, _styleProp, projection) {
 17840 function renderSVG(element, renderState, _styleProp, projection) {
 17304     }
 17844     }
 17305 }
 17845 }
 17306 
 17846 
 17307 
 17847 
 17308 
 17848 
 17309 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs
 17849 ;// ./node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs
 17310 
 17850 
 17311 
 17851 
 17312 
 17852 
 17313 function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
 17853 function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
 17314     var _a;
 17854     var _a;
 17326     return newValues;
 17866     return newValues;
 17327 }
 17867 }
 17328 
 17868 
 17329 
 17869 
 17330 
 17870 
 17331 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs
 17871 ;// ./node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs
 17332 
 17872 
 17333 
 17873 
 17334 
 17874 
 17335 
 17875 
 17336 function scrape_motion_values_scrapeMotionValuesFromProps(props, prevProps, visualElement) {
 17876 function scrape_motion_values_scrapeMotionValuesFromProps(props, prevProps, visualElement) {
 17347     return newValues;
 17887     return newValues;
 17348 }
 17888 }
 17349 
 17889 
 17350 
 17890 
 17351 
 17891 
 17352 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs
 17892 ;// ./node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs
 17353 function getValueState(visualElement) {
 17893 function getValueState(visualElement) {
 17354     const state = [{}, {}];
 17894     const state = [{}, {}];
 17355     visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key) => {
 17895     visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key) => {
 17356         state[0][key] = value.get();
 17896         state[0][key] = value.get();
 17357         state[1][key] = value.getVelocity();
 17897         state[1][key] = value.getVelocity();
 17385     return definition;
 17925     return definition;
 17386 }
 17926 }
 17387 
 17927 
 17388 
 17928 
 17389 
 17929 
 17390 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-constant.mjs
 17930 ;// ./node_modules/framer-motion/dist/es/utils/use-constant.mjs
 17391 
 17931 
 17392 
 17932 
 17393 /**
 17933 /**
 17394  * Creates a constant value over the lifecycle of a component.
 17934  * Creates a constant value over the lifecycle of a component.
 17395  *
 17935  *
 17405     return ref.current;
 17945     return ref.current;
 17406 }
 17946 }
 17407 
 17947 
 17408 
 17948 
 17409 
 17949 
 17410 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs
 17950 ;// ./node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs
 17411 const isKeyframesTarget = (v) => {
 17951 const isKeyframesTarget = (v) => {
 17412     return Array.isArray(v);
 17952     return Array.isArray(v);
 17413 };
 17953 };
 17414 
 17954 
 17415 
 17955 
 17416 
 17956 
 17417 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/resolve-value.mjs
 17957 ;// ./node_modules/framer-motion/dist/es/utils/resolve-value.mjs
 17418 
 17958 
 17419 
 17959 
 17420 const isCustomValue = (v) => {
 17960 const isCustomValue = (v) => {
 17421     return Boolean(v && typeof v === "object" && v.mix && v.toValue);
 17961     return Boolean(v && typeof v === "object" && v.mix && v.toValue);
 17422 };
 17962 };
 17425     return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;
 17965     return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;
 17426 };
 17966 };
 17427 
 17967 
 17428 
 17968 
 17429 
 17969 
 17430 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs
 17970 ;// ./node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs
 17431 
 17971 
 17432 
 17972 
 17433 
 17973 
 17434 /**
 17974 /**
 17435  * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
 17975  * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
 17443         : unwrappedValue;
 17983         : unwrappedValue;
 17444 }
 17984 }
 17445 
 17985 
 17446 
 17986 
 17447 
 17987 
 17448 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
 17988 ;// ./node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
 17449 
 17989 
 17450 
 17990 
 17451 
 17991 
 17452 
 17992 
 17453 
 17993 
 17526     return values;
 18066     return values;
 17527 }
 18067 }
 17528 
 18068 
 17529 
 18069 
 17530 
 18070 
 17531 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/noop.mjs
 18071 ;// ./node_modules/framer-motion/dist/es/utils/noop.mjs
 17532 const noop_noop = (any) => any;
 18072 const noop_noop = (any) => any;
 17533 
 18073 
 17534 
 18074 
 17535 
 18075 
 17536 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/frame.mjs
 18076 ;// ./node_modules/framer-motion/dist/es/frameloop/frame.mjs
 17537 
 18077 
 17538 
 18078 
 17539 
 18079 
 17540 const { schedule: frame_frame, cancel: cancelFrame, state: frameData, steps, } = createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop_noop, true);
 18080 const { schedule: frame_frame, cancel: cancelFrame, state: frameData, steps, } = createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop_noop, true);
 17541 
 18081 
 17542 
 18082 
 17543 
 18083 
 17544 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/config-motion.mjs
 18084 ;// ./node_modules/framer-motion/dist/es/render/svg/config-motion.mjs
 17545 
 18085 
 17546 
 18086 
 17547 
 18087 
 17548 
 18088 
 17549 
 18089 
 17581     }),
 18121     }),
 17582 };
 18122 };
 17583 
 18123 
 17584 
 18124 
 17585 
 18125 
 17586 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/config-motion.mjs
 18126 ;// ./node_modules/framer-motion/dist/es/render/html/config-motion.mjs
 17587 
 18127 
 17588 
 18128 
 17589 
 18129 
 17590 
 18130 
 17591 const htmlMotionConfig = {
 18131 const htmlMotionConfig = {
 17595     }),
 18135     }),
 17596 };
 18136 };
 17597 
 18137 
 17598 
 18138 
 17599 
 18139 
 17600 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs
 18140 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs
 17601 
 18141 
 17602 
 18142 
 17603 
 18143 
 17604 
 18144 
 17605 
 18145 
 17616     };
 18156     };
 17617 }
 18157 }
 17618 
 18158 
 17619 
 18159 
 17620 
 18160 
 17621 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/add-dom-event.mjs
 18161 ;// ./node_modules/framer-motion/dist/es/events/add-dom-event.mjs
 17622 function addDomEvent(target, eventName, handler, options = { passive: true }) {
 18162 function addDomEvent(target, eventName, handler, options = { passive: true }) {
 17623     target.addEventListener(eventName, handler, options);
 18163     target.addEventListener(eventName, handler, options);
 17624     return () => target.removeEventListener(eventName, handler);
 18164     return () => target.removeEventListener(eventName, handler);
 17625 }
 18165 }
 17626 
 18166 
 17627 
 18167 
 17628 
 18168 
 17629 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.mjs
 18169 ;// ./node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.mjs
 17630 const isPrimaryPointer = (event) => {
 18170 const isPrimaryPointer = (event) => {
 17631     if (event.pointerType === "mouse") {
 18171     if (event.pointerType === "mouse") {
 17632         return typeof event.button !== "number" || event.button <= 0;
 18172         return typeof event.button !== "number" || event.button <= 0;
 17633     }
 18173     }
 17634     else {
 18174     else {
 17644     }
 18184     }
 17645 };
 18185 };
 17646 
 18186 
 17647 
 18187 
 17648 
 18188 
 17649 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/event-info.mjs
 18189 ;// ./node_modules/framer-motion/dist/es/events/event-info.mjs
 17650 
 18190 
 17651 
 18191 
 17652 function extractEventInfo(event, pointType = "page") {
 18192 function extractEventInfo(event, pointType = "page") {
 17653     return {
 18193     return {
 17654         point: {
 18194         point: {
 17661     return (event) => isPrimaryPointer(event) && handler(event, extractEventInfo(event));
 18201     return (event) => isPrimaryPointer(event) && handler(event, extractEventInfo(event));
 17662 };
 18202 };
 17663 
 18203 
 17664 
 18204 
 17665 
 18205 
 17666 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
 18206 ;// ./node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
 17667 
 18207 
 17668 
 18208 
 17669 
 18209 
 17670 function addPointerEvent(target, eventName, handler, options) {
 18210 function addPointerEvent(target, eventName, handler, options) {
 17671     return addDomEvent(target, eventName, addPointerInfo(handler), options);
 18211     return addDomEvent(target, eventName, addPointerInfo(handler), options);
 17672 }
 18212 }
 17673 
 18213 
 17674 
 18214 
 17675 
 18215 
 17676 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/pipe.mjs
 18216 ;// ./node_modules/framer-motion/dist/es/utils/pipe.mjs
 17677 /**
 18217 /**
 17678  * Pipe
 18218  * Pipe
 17679  * Compose other transformers to run linearily
 18219  * Compose other transformers to run linearily
 17680  * pipe(min(20), max(40))
 18220  * pipe(min(20), max(40))
 17681  * @param  {...functions} transformers
 18221  * @param  {...functions} transformers
 17684 const combineFunctions = (a, b) => (v) => b(a(v));
 18224 const combineFunctions = (a, b) => (v) => b(a(v));
 17685 const pipe = (...transformers) => transformers.reduce(combineFunctions);
 18225 const pipe = (...transformers) => transformers.reduce(combineFunctions);
 17686 
 18226 
 17687 
 18227 
 17688 
 18228 
 17689 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs
 18229 ;// ./node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs
 17690 function createLock(name) {
 18230 function createLock(name) {
 17691     let lock = null;
 18231     let lock = null;
 17692     return () => {
 18232     return () => {
 17693         const openLock = () => {
 18233         const openLock = () => {
 17694             lock = null;
 18234             lock = null;
 17739     return false;
 18279     return false;
 17740 }
 18280 }
 17741 
 18281 
 17742 
 18282 
 17743 
 18283 
 17744 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/Feature.mjs
 18284 ;// ./node_modules/framer-motion/dist/es/motion/features/Feature.mjs
 17745 class Feature {
 18285 class Feature {
 17746     constructor(node) {
 18286     constructor(node) {
 17747         this.isMounted = false;
 18287         this.isMounted = false;
 17748         this.node = node;
 18288         this.node = node;
 17749     }
 18289     }
 17750     update() { }
 18290     update() { }
 17751 }
 18291 }
 17752 
 18292 
 17753 
 18293 
 17754 
 18294 
 17755 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/hover.mjs
 18295 ;// ./node_modules/framer-motion/dist/es/gestures/hover.mjs
 17756 
 18296 
 17757 
 18297 
 17758 
 18298 
 17759 
 18299 
 17760 
 18300 
 17785     unmount() { }
 18325     unmount() { }
 17786 }
 18326 }
 17787 
 18327 
 17788 
 18328 
 17789 
 18329 
 17790 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/focus.mjs
 18330 ;// ./node_modules/framer-motion/dist/es/gestures/focus.mjs
 17791 
 18331 
 17792 
 18332 
 17793 
 18333 
 17794 
 18334 
 17795 class FocusGesture extends Feature {
 18335 class FocusGesture extends Feature {
 17828     unmount() { }
 18368     unmount() { }
 17829 }
 18369 }
 17830 
 18370 
 17831 
 18371 
 17832 
 18372 
 17833 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs
 18373 ;// ./node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs
 17834 /**
 18374 /**
 17835  * Recursively traverse up the tree to check whether the provided child node
 18375  * Recursively traverse up the tree to check whether the provided child node
 17836  * is the parent or a descendant of it.
 18376  * is the parent or a descendant of it.
 17837  *
 18377  *
 17838  * @param parent - Element to find
 18378  * @param parent - Element to find
 17850     }
 18390     }
 17851 };
 18391 };
 17852 
 18392 
 17853 
 18393 
 17854 
 18394 
 17855 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/press.mjs
 18395 ;// ./node_modules/framer-motion/dist/es/gestures/press.mjs
 17856 
 18396 
 17857 
 18397 
 17858 
 18398 
 17859 
 18399 
 17860 
 18400 
 17982     }
 18522     }
 17983 }
 18523 }
 17984 
 18524 
 17985 
 18525 
 17986 
 18526 
 17987 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs
 18527 ;// ./node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs
 17988 /**
 18528 /**
 17989  * Map an IntersectionHandler callback to an element. We only ever make one handler for one
 18529  * Map an IntersectionHandler callback to an element. We only ever make one handler for one
 17990  * element, so even though these handlers might all be triggered by different
 18530  * element, so even though these handlers might all be triggered by different
 17991  * observers, we can keep them in the same map.
 18531  * observers, we can keep them in the same map.
 17992  */
 18532  */
 18033     };
 18573     };
 18034 }
 18574 }
 18035 
 18575 
 18036 
 18576 
 18037 
 18577 
 18038 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
 18578 ;// ./node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
 18039 
 18579 
 18040 
 18580 
 18041 
 18581 
 18042 const thresholdNames = {
 18582 const thresholdNames = {
 18043     some: 0,
 18583     some: 0,
 18107     return (name) => viewport[name] !== prevViewport[name];
 18647     return (name) => viewport[name] !== prevViewport[name];
 18108 }
 18648 }
 18109 
 18649 
 18110 
 18650 
 18111 
 18651 
 18112 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/gestures.mjs
 18652 ;// ./node_modules/framer-motion/dist/es/motion/features/gestures.mjs
 18113 
 18653 
 18114 
 18654 
 18115 
 18655 
 18116 
 18656 
 18117 
 18657 
 18130     },
 18670     },
 18131 };
 18671 };
 18132 
 18672 
 18133 
 18673 
 18134 
 18674 
 18135 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/shallow-compare.mjs
 18675 ;// ./node_modules/framer-motion/dist/es/utils/shallow-compare.mjs
 18136 function shallowCompare(next, prev) {
 18676 function shallowCompare(next, prev) {
 18137     if (!Array.isArray(prev))
 18677     if (!Array.isArray(prev))
 18138         return false;
 18678         return false;
 18139     const prevLength = prev.length;
 18679     const prevLength = prev.length;
 18140     if (prevLength !== next.length)
 18680     if (prevLength !== next.length)
 18146     return true;
 18686     return true;
 18147 }
 18687 }
 18148 
 18688 
 18149 
 18689 
 18150 
 18690 
 18151 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs
 18691 ;// ./node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs
 18152 
 18692 
 18153 
 18693 
 18154 function resolveVariant(visualElement, definition, custom) {
 18694 function resolveVariant(visualElement, definition, custom) {
 18155     const props = visualElement.getProps();
 18695     const props = visualElement.getProps();
 18156     return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);
 18696     return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);
 18157 }
 18697 }
 18158 
 18698 
 18159 
 18699 
 18160 
 18700 
 18161 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/time-conversion.mjs
 18701 ;// ./node_modules/framer-motion/dist/es/utils/time-conversion.mjs
 18162 /**
 18702 /**
 18163  * Converts seconds to milliseconds
 18703  * Converts seconds to milliseconds
 18164  *
 18704  *
 18165  * @param seconds - Time in seconds.
 18705  * @param seconds - Time in seconds.
 18166  * @return milliseconds - Converted time in milliseconds.
 18706  * @return milliseconds - Converted time in milliseconds.
 18168 const secondsToMilliseconds = (seconds) => seconds * 1000;
 18708 const secondsToMilliseconds = (seconds) => seconds * 1000;
 18169 const millisecondsToSeconds = (milliseconds) => milliseconds / 1000;
 18709 const millisecondsToSeconds = (milliseconds) => milliseconds / 1000;
 18170 
 18710 
 18171 
 18711 
 18172 
 18712 
 18173 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs
 18713 ;// ./node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs
 18174 
 18714 
 18175 
 18715 
 18176 const underDampedSpring = {
 18716 const underDampedSpring = {
 18177     type: "spring",
 18717     type: "spring",
 18178     stiffness: 500,
 18718     stiffness: 500,
 18210     return ease;
 18750     return ease;
 18211 };
 18751 };
 18212 
 18752 
 18213 
 18753 
 18214 
 18754 
 18215 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/transitions.mjs
 18755 ;// ./node_modules/framer-motion/dist/es/animation/utils/transitions.mjs
 18216 /**
 18756 /**
 18217  * Decide whether a transition is defined on a given Transition.
 18757  * Decide whether a transition is defined on a given Transition.
 18218  * This filters out orchestration options and returns true
 18758  * This filters out orchestration options and returns true
 18219  * if any options are left.
 18759  * if any options are left.
 18220  */
 18760  */
 18227         transition);
 18767         transition);
 18228 }
 18768 }
 18229 
 18769 
 18230 
 18770 
 18231 
 18771 
 18232 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs
 18772 ;// ./node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs
 18233 const instantAnimationState = {
 18773 const instantAnimationState = {
 18234     current: false,
 18774     current: false,
 18235 };
 18775 };
 18236 
 18776 
 18237 
 18777 
 18238 
 18778 
 18239 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs
 18779 ;// ./node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs
 18240 const isNotNull = (value) => value !== null;
 18780 const isNotNull = (value) => value !== null;
 18241 function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe) {
 18781 function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe) {
 18242     const resolvedKeyframes = keyframes.filter(isNotNull);
 18782     const resolvedKeyframes = keyframes.filter(isNotNull);
 18243     const index = repeat && repeatType !== "loop" && repeat % 2 === 1
 18783     const index = repeat && repeatType !== "loop" && repeat % 2 === 1
 18244         ? 0
 18784         ? 0
 18248         : finalKeyframe;
 18788         : finalKeyframe;
 18249 }
 18789 }
 18250 
 18790 
 18251 
 18791 
 18252 
 18792 
 18253 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/sync-time.mjs
 18793 ;// ./node_modules/framer-motion/dist/es/frameloop/sync-time.mjs
 18254 
 18794 
 18255 
 18795 
 18256 
 18796 
 18257 let now;
 18797 let now;
 18258 function clearTime() {
 18798 function clearTime() {
 18281     },
 18821     },
 18282 };
 18822 };
 18283 
 18823 
 18284 
 18824 
 18285 
 18825 
 18286 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs
 18826 ;// ./node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs
 18287 /**
 18827 /**
 18288  * Check if the value is a zero value string like "0px" or "0%"
 18828  * Check if the value is a zero value string like "0px" or "0%"
 18289  */
 18829  */
 18290 const isZeroValueString = (v) => /^0[^.\s]+$/u.test(v);
 18830 const isZeroValueString = (v) => /^0[^.\s]+$/u.test(v);
 18291 
 18831 
 18292 
 18832 
 18293 
 18833 
 18294 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-none.mjs
 18834 ;// ./node_modules/framer-motion/dist/es/animation/utils/is-none.mjs
 18295 
 18835 
 18296 
 18836 
 18297 function isNone(value) {
 18837 function isNone(value) {
 18298     if (typeof value === "number") {
 18838     if (typeof value === "number") {
 18299         return value === 0;
 18839         return value === 0;
 18306     }
 18846     }
 18307 }
 18847 }
 18308 
 18848 
 18309 
 18849 
 18310 
 18850 
 18311 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/errors.mjs
 18851 ;// ./node_modules/framer-motion/dist/es/utils/errors.mjs
 18312 
 18852 
 18313 
 18853 
 18314 let warning = noop_noop;
 18854 let warning = noop_noop;
 18315 let errors_invariant = noop_noop;
 18855 let errors_invariant = noop_noop;
 18316 if (false) {}
 18856 if (false) {}
 18317 
 18857 
 18318 
 18858 
 18319 
 18859 
 18320 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs
 18860 ;// ./node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs
 18321 /**
 18861 /**
 18322  * Check if value is a numerical string, ie a string that is purely a number eg "100" or "-100.1"
 18862  * Check if value is a numerical string, ie a string that is purely a number eg "100" or "-100.1"
 18323  */
 18863  */
 18324 const isNumericalString = (v) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(v);
 18864 const isNumericalString = (v) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(v);
 18325 
 18865 
 18326 
 18866 
 18327 
 18867 
 18328 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs
 18868 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs
 18329 
 18869 
 18330 
 18870 
 18331 
 18871 
 18332 
 18872 
 18333 /**
 18873 /**
 18367         : fallback;
 18907         : fallback;
 18368 }
 18908 }
 18369 
 18909 
 18370 
 18910 
 18371 
 18911 
 18372 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs
 18912 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs
 18373 
 18913 
 18374 
 18914 
 18375 
 18915 
 18376 
 18916 
 18377 const positionalKeys = new Set([
 18917 const positionalKeys = new Set([
 18434 positionalValues.translateX = positionalValues.x;
 18974 positionalValues.translateX = positionalValues.x;
 18435 positionalValues.translateY = positionalValues.y;
 18975 positionalValues.translateY = positionalValues.y;
 18436 
 18976 
 18437 
 18977 
 18438 
 18978 
 18439 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs
 18979 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs
 18440 /**
 18980 /**
 18441  * Tests a provided value against a ValueType
 18981  * Tests a provided value against a ValueType
 18442  */
 18982  */
 18443 const testValueType = (v) => (type) => type.test(v);
 18983 const testValueType = (v) => (type) => type.test(v);
 18444 
 18984 
 18445 
 18985 
 18446 
 18986 
 18447 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs
 18987 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs
 18448 /**
 18988 /**
 18449  * ValueType for "auto"
 18989  * ValueType for "auto"
 18450  */
 18990  */
 18451 const auto = {
 18991 const auto = {
 18452     test: (v) => v === "auto",
 18992     test: (v) => v === "auto",
 18453     parse: (v) => v,
 18993     parse: (v) => v,
 18454 };
 18994 };
 18455 
 18995 
 18456 
 18996 
 18457 
 18997 
 18458 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs
 18998 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs
 18459 
 18999 
 18460 
 19000 
 18461 
 19001 
 18462 
 19002 
 18463 
 19003 
 18470  */
 19010  */
 18471 const findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));
 19011 const findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));
 18472 
 19012 
 18473 
 19013 
 18474 
 19014 
 18475 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs
 19015 ;// ./node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs
 18476 
 19016 
 18477 
 19017 
 18478 
 19018 
 18479 const toResolve = new Set();
 19019 const toResolve = new Set();
 18480 let isScheduled = false;
 19020 let isScheduled = false;
 18636     }
 19176     }
 18637 }
 19177 }
 18638 
 19178 
 18639 
 19179 
 18640 
 19180 
 18641 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/color/utils.mjs
 19181 ;// ./node_modules/framer-motion/dist/es/value/types/color/utils.mjs
 18642 
 19182 
 18643 
 19183 
 18644 /**
 19184 /**
 18645  * Returns true if the provided string is a color, ie rgba(0,0,0,0) or #000,
 19185  * Returns true if the provided string is a color, ie rgba(0,0,0,0) or #000,
 18646  * but false if a number or multiple colors
 19186  * but false if a number or multiple colors
 18661     };
 19201     };
 18662 };
 19202 };
 18663 
 19203 
 18664 
 19204 
 18665 
 19205 
 18666 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/color/rgba.mjs
 19206 ;// ./node_modules/framer-motion/dist/es/value/types/color/rgba.mjs
 18667 
 19207 
 18668 
 19208 
 18669 
 19209 
 18670 
 19210 
 18671 
 19211 
 18688         ")",
 19228         ")",
 18689 };
 19229 };
 18690 
 19230 
 18691 
 19231 
 18692 
 19232 
 18693 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/color/hex.mjs
 19233 ;// ./node_modules/framer-motion/dist/es/value/types/color/hex.mjs
 18694 
 19234 
 18695 
 19235 
 18696 
 19236 
 18697 function parseHex(v) {
 19237 function parseHex(v) {
 18698     let r = "";
 19238     let r = "";
 18730     transform: rgba.transform,
 19270     transform: rgba.transform,
 18731 };
 19271 };
 18732 
 19272 
 18733 
 19273 
 18734 
 19274 
 18735 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/color/hsla.mjs
 19275 ;// ./node_modules/framer-motion/dist/es/value/types/color/hsla.mjs
 18736 
 19276 
 18737 
 19277 
 18738 
 19278 
 18739 
 19279 
 18740 
 19280 
 18754     },
 19294     },
 18755 };
 19295 };
 18756 
 19296 
 18757 
 19297 
 18758 
 19298 
 18759 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/color/index.mjs
 19299 ;// ./node_modules/framer-motion/dist/es/value/types/color/index.mjs
 18760 
 19300 
 18761 
 19301 
 18762 
 19302 
 18763 
 19303 
 18764 
 19304 
 18784     },
 19324     },
 18785 };
 19325 };
 18786 
 19326 
 18787 
 19327 
 18788 
 19328 
 18789 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/complex/index.mjs
 19329 ;// ./node_modules/framer-motion/dist/es/value/types/complex/index.mjs
 18790 
 19330 
 18791 
 19331 
 18792 
 19332 
 18793 function test(v) {
 19333 function test(v) {
 18794     var _a, _b;
 19334     var _a, _b;
 18876     getAnimatableNone,
 19416     getAnimatableNone,
 18877 };
 19417 };
 18878 
 19418 
 18879 
 19419 
 18880 
 19420 
 18881 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/types/complex/filter.mjs
 19421 ;// ./node_modules/framer-motion/dist/es/value/types/complex/filter.mjs
 18882 
 19422 
 18883 
 19423 
 18884 
 19424 
 18885 /**
 19425 /**
 18886  * Properties that should default to 1 or 100%
 19426  * Properties that should default to 1 or 100%
 18908     },
 19448     },
 18909 };
 19449 };
 18910 
 19450 
 18911 
 19451 
 18912 
 19452 
 18913 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs
 19453 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs
 18914 
 19454 
 18915 
 19455 
 18916 
 19456 
 18917 
 19457 
 18918 /**
 19458 /**
 18940  */
 19480  */
 18941 const getDefaultValueType = (key) => defaultValueTypes[key];
 19481 const getDefaultValueType = (key) => defaultValueTypes[key];
 18942 
 19482 
 18943 
 19483 
 18944 
 19484 
 18945 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs
 19485 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs
 18946 
 19486 
 18947 
 19487 
 18948 
 19488 
 18949 
 19489 
 18950 function animatable_none_getAnimatableNone(key, value) {
 19490 function animatable_none_getAnimatableNone(key, value) {
 18957         : undefined;
 19497         : undefined;
 18958 }
 19498 }
 18959 
 19499 
 18960 
 19500 
 18961 
 19501 
 18962 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs
 19502 ;// ./node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs
 18963 
 19503 
 18964 
 19504 
 18965 
 19505 
 18966 /**
 19506 /**
 18967  * If we encounter keyframes like "none" or "0" and we also have keyframes like
 19507  * If we encounter keyframes like "none" or "0" and we also have keyframes like
 18989     }
 19529     }
 18990 }
 19530 }
 18991 
 19531 
 18992 
 19532 
 18993 
 19533 
 18994 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs
 19534 ;// ./node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs
 18995 
 19535 
 18996 
 19536 
 18997 
 19537 
 18998 
 19538 
 18999 
 19539 
 19118     }
 19658     }
 19119 }
 19659 }
 19120 
 19660 
 19121 
 19661 
 19122 
 19662 
 19123 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/memo.mjs
 19663 ;// ./node_modules/framer-motion/dist/es/utils/memo.mjs
 19124 function memo(callback) {
 19664 function memo(callback) {
 19125     let result;
 19665     let result;
 19126     return () => {
 19666     return () => {
 19127         if (result === undefined)
 19667         if (result === undefined)
 19128             result = callback();
 19668             result = callback();
 19130     };
 19670     };
 19131 }
 19671 }
 19132 
 19672 
 19133 
 19673 
 19134 
 19674 
 19135 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs
 19675 ;// ./node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs
 19136 
 19676 
 19137 
 19677 
 19138 /**
 19678 /**
 19139  * Check if a value is animatable. Examples:
 19679  * Check if a value is animatable. Examples:
 19140  *
 19680  *
 19162     return false;
 19702     return false;
 19163 };
 19703 };
 19164 
 19704 
 19165 
 19705 
 19166 
 19706 
 19167 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.mjs
 19707 ;// ./node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.mjs
 19168 
 19708 
 19169 
 19709 
 19170 
 19710 
 19171 function hasKeyframesChanged(keyframes) {
 19711 function hasKeyframesChanged(keyframes) {
 19172     const current = keyframes[0];
 19712     const current = keyframes[0];
 19204     return hasKeyframesChanged(keyframes) || (type === "spring" && velocity);
 19744     return hasKeyframesChanged(keyframes) || (type === "spring" && velocity);
 19205 }
 19745 }
 19206 
 19746 
 19207 
 19747 
 19208 
 19748 
 19209 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.mjs
 19749 ;// ./node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.mjs
 19210 
 19750 
 19211 
 19751 
 19212 
 19752 
 19213 
 19753 
 19214 
 19754 
 19290     }
 19830     }
 19291 }
 19831 }
 19292 
 19832 
 19293 
 19833 
 19294 
 19834 
 19295 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs
 19835 ;// ./node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs
 19296 /*
 19836 /*
 19297   Convert velocity into velocity per second
 19837   Convert velocity into velocity per second
 19298 
 19838 
 19299   @param [number]: Unit per frame
 19839   @param [number]: Unit per frame
 19300   @param [number]: Frame duration in ms
 19840   @param [number]: Frame duration in ms
 19303     return frameDuration ? velocity * (1000 / frameDuration) : 0;
 19843     return frameDuration ? velocity * (1000 / frameDuration) : 0;
 19304 }
 19844 }
 19305 
 19845 
 19306 
 19846 
 19307 
 19847 
 19308 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs
 19848 ;// ./node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs
 19309 
 19849 
 19310 
 19850 
 19311 const velocitySampleDuration = 5; // ms
 19851 const velocitySampleDuration = 5; // ms
 19312 function calcGeneratorVelocity(resolveValue, t, current) {
 19852 function calcGeneratorVelocity(resolveValue, t, current) {
 19313     const prevT = Math.max(t - velocitySampleDuration, 0);
 19853     const prevT = Math.max(t - velocitySampleDuration, 0);
 19314     return velocityPerSecond(current - resolveValue(prevT), t - prevT);
 19854     return velocityPerSecond(current - resolveValue(prevT), t - prevT);
 19315 }
 19855 }
 19316 
 19856 
 19317 
 19857 
 19318 
 19858 
 19319 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs
 19859 ;// ./node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs
 19320 
 19860 
 19321 
 19861 
 19322 
 19862 
 19323 
 19863 
 19324 const safeMin = 0.001;
 19864 const safeMin = 0.001;
 19405     return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
 19945     return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
 19406 }
 19946 }
 19407 
 19947 
 19408 
 19948 
 19409 
 19949 
 19410 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs
 19950 ;// ./node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs
 19411 
 19951 
 19412 
 19952 
 19413 
 19953 
 19414 
 19954 
 19415 const durationKeys = ["duration", "bounce"];
 19955 const durationKeys = ["duration", "bounce"];
 19538     };
 20078     };
 19539 }
 20079 }
 19540 
 20080 
 19541 
 20081 
 19542 
 20082 
 19543 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/inertia.mjs
 20083 ;// ./node_modules/framer-motion/dist/es/animation/generators/inertia.mjs
 19544 
 20084 
 19545 
 20085 
 19546 
 20086 
 19547 function inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {
 20087 function inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {
 19548     const origin = keyframes[0];
 20088     const origin = keyframes[0];
 19627     };
 20167     };
 19628 }
 20168 }
 19629 
 20169 
 19630 
 20170 
 19631 
 20171 
 19632 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs
 20172 ;// ./node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs
 19633 
 20173 
 19634 
 20174 
 19635 /*
 20175 /*
 19636   Bezier function generator
 20176   Bezier function generator
 19637   This has been modified from Gaëtan Renaudeau's BezierEasing
 20177   This has been modified from Gaëtan Renaudeau's BezierEasing
 19680     return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
 20220     return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
 19681 }
 20221 }
 19682 
 20222 
 19683 
 20223 
 19684 
 20224 
 19685 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/ease.mjs
 20225 ;// ./node_modules/framer-motion/dist/es/easing/ease.mjs
 19686 
 20226 
 19687 
 20227 
 19688 const easeIn = cubicBezier(0.42, 0, 1, 1);
 20228 const easeIn = cubicBezier(0.42, 0, 1, 1);
 19689 const easeOut = cubicBezier(0, 0, 0.58, 1);
 20229 const easeOut = cubicBezier(0, 0, 0.58, 1);
 19690 const easeInOut = cubicBezier(0.42, 0, 0.58, 1);
 20230 const easeInOut = cubicBezier(0.42, 0, 0.58, 1);
 19691 
 20231 
 19692 
 20232 
 19693 
 20233 
 19694 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs
 20234 ;// ./node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs
 19695 const isEasingArray = (ease) => {
 20235 const isEasingArray = (ease) => {
 19696     return Array.isArray(ease) && typeof ease[0] !== "number";
 20236     return Array.isArray(ease) && typeof ease[0] !== "number";
 19697 };
 20237 };
 19698 
 20238 
 19699 
 20239 
 19700 
 20240 
 19701 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs
 20241 ;// ./node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs
 19702 // Accepts an easing function and returns a new one that outputs mirrored values for
 20242 // Accepts an easing function and returns a new one that outputs mirrored values for
 19703 // the second half of the animation. Turns easeIn into easeInOut.
 20243 // the second half of the animation. Turns easeIn into easeInOut.
 19704 const mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
 20244 const mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
 19705 
 20245 
 19706 
 20246 
 19707 
 20247 
 19708 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs
 20248 ;// ./node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs
 19709 // Accepts an easing function and returns a new one that outputs reversed values.
 20249 // Accepts an easing function and returns a new one that outputs reversed values.
 19710 // Turns easeIn into easeOut.
 20250 // Turns easeIn into easeOut.
 19711 const reverseEasing = (easing) => (p) => 1 - easing(1 - p);
 20251 const reverseEasing = (easing) => (p) => 1 - easing(1 - p);
 19712 
 20252 
 19713 
 20253 
 19714 
 20254 
 19715 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/circ.mjs
 20255 ;// ./node_modules/framer-motion/dist/es/easing/circ.mjs
 19716 
 20256 
 19717 
 20257 
 19718 
 20258 
 19719 const circIn = (p) => 1 - Math.sin(Math.acos(p));
 20259 const circIn = (p) => 1 - Math.sin(Math.acos(p));
 19720 const circOut = reverseEasing(circIn);
 20260 const circOut = reverseEasing(circIn);
 19721 const circInOut = mirrorEasing(circIn);
 20261 const circInOut = mirrorEasing(circIn);
 19722 
 20262 
 19723 
 20263 
 19724 
 20264 
 19725 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/back.mjs
 20265 ;// ./node_modules/framer-motion/dist/es/easing/back.mjs
 19726 
 20266 
 19727 
 20267 
 19728 
 20268 
 19729 
 20269 
 19730 const backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);
 20270 const backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);
 19731 const backIn = reverseEasing(backOut);
 20271 const backIn = reverseEasing(backOut);
 19732 const backInOut = mirrorEasing(backIn);
 20272 const backInOut = mirrorEasing(backIn);
 19733 
 20273 
 19734 
 20274 
 19735 
 20275 
 19736 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/anticipate.mjs
 20276 ;// ./node_modules/framer-motion/dist/es/easing/anticipate.mjs
 19737 
 20277 
 19738 
 20278 
 19739 const anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
 20279 const anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
 19740 
 20280 
 19741 
 20281 
 19742 
 20282 
 19743 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/map.mjs
 20283 ;// ./node_modules/framer-motion/dist/es/easing/utils/map.mjs
 19744 
 20284 
 19745 
 20285 
 19746 
 20286 
 19747 
 20287 
 19748 
 20288 
 19777     return definition;
 20317     return definition;
 19778 };
 20318 };
 19779 
 20319 
 19780 
 20320 
 19781 
 20321 
 19782 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/progress.mjs
 20322 ;// ./node_modules/framer-motion/dist/es/utils/progress.mjs
 19783 /*
 20323 /*
 19784   Progress within given range
 20324   Progress within given range
 19785 
 20325 
 19786   Given a lower limit and an upper limit, we return the progress
 20326   Given a lower limit and an upper limit, we return the progress
 19787   (expressed as a number 0-1) represented by the given value, and
 20327   (expressed as a number 0-1) represented by the given value, and
 19797     return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
 20337     return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
 19798 };
 20338 };
 19799 
 20339 
 19800 
 20340 
 19801 
 20341 
 19802 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/number.mjs
 20342 ;// ./node_modules/framer-motion/dist/es/utils/mix/number.mjs
 19803 /*
 20343 /*
 19804   Value in range from progress
 20344   Value in range from progress
 19805 
 20345 
 19806   Given a lower limit and an upper limit, we return the value within
 20346   Given a lower limit and an upper limit, we return the value within
 19807   that range as expressed by progress (usually a number from 0 to 1)
 20347   that range as expressed by progress (usually a number from 0 to 1)
 19825     return from + (to - from) * progress;
 20365     return from + (to - from) * progress;
 19826 };
 20366 };
 19827 
 20367 
 19828 
 20368 
 19829 
 20369 
 19830 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs
 20370 ;// ./node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs
 19831 // Adapted from https://gist.github.com/mjackson/5311256
 20371 // Adapted from https://gist.github.com/mjackson/5311256
 19832 function hueToRgb(p, q, t) {
 20372 function hueToRgb(p, q, t) {
 19833     if (t < 0)
 20373     if (t < 0)
 19834         t += 1;
 20374         t += 1;
 19835     if (t > 1)
 20375     if (t > 1)
 19869     };
 20409     };
 19870 }
 20410 }
 19871 
 20411 
 19872 
 20412 
 19873 
 20413 
 19874 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/color.mjs
 20414 ;// ./node_modules/framer-motion/dist/es/utils/mix/color.mjs
 19875 
 20415 
 19876 
 20416 
 19877 
 20417 
 19878 
 20418 
 19879 
 20419 
 19912     };
 20452     };
 19913 };
 20453 };
 19914 
 20454 
 19915 
 20455 
 19916 
 20456 
 19917 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/visibility.mjs
 20457 ;// ./node_modules/framer-motion/dist/es/utils/mix/visibility.mjs
 19918 const invisibleValues = new Set(["none", "hidden"]);
 20458 const invisibleValues = new Set(["none", "hidden"]);
 19919 /**
 20459 /**
 19920  * Returns a function that, when provided a progress value between 0 and 1,
 20460  * Returns a function that, when provided a progress value between 0 and 1,
 19921  * will return the "none" or "hidden" string only when the progress is that of
 20461  * will return the "none" or "hidden" string only when the progress is that of
 19922  * the origin or target.
 20462  * the origin or target.
 19930     }
 20470     }
 19931 }
 20471 }
 19932 
 20472 
 19933 
 20473 
 19934 
 20474 
 19935 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/complex.mjs
 20475 ;// ./node_modules/framer-motion/dist/es/utils/mix/complex.mjs
 19936 
 20476 
 19937 
 20477 
 19938 
 20478 
 19939 
 20479 
 19940 
 20480 
 20028     }
 20568     }
 20029 };
 20569 };
 20030 
 20570 
 20031 
 20571 
 20032 
 20572 
 20033 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/index.mjs
 20573 ;// ./node_modules/framer-motion/dist/es/utils/mix/index.mjs
 20034 
 20574 
 20035 
 20575 
 20036 
 20576 
 20037 function mix(from, to, p) {
 20577 function mix(from, to, p) {
 20038     if (typeof from === "number" &&
 20578     if (typeof from === "number" &&
 20044     return mixer(from, to);
 20584     return mixer(from, to);
 20045 }
 20585 }
 20046 
 20586 
 20047 
 20587 
 20048 
 20588 
 20049 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/interpolate.mjs
 20589 ;// ./node_modules/framer-motion/dist/es/utils/interpolate.mjs
 20050 
 20590 
 20051 
 20591 
 20052 
 20592 
 20053 
 20593 
 20054 
 20594 
 20121         : interpolator;
 20661         : interpolator;
 20122 }
 20662 }
 20123 
 20663 
 20124 
 20664 
 20125 
 20665 
 20126 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/fill.mjs
 20666 ;// ./node_modules/framer-motion/dist/es/utils/offsets/fill.mjs
 20127 
 20667 
 20128 
 20668 
 20129 
 20669 
 20130 function fillOffset(offset, remaining) {
 20670 function fillOffset(offset, remaining) {
 20131     const min = offset[offset.length - 1];
 20671     const min = offset[offset.length - 1];
 20135     }
 20675     }
 20136 }
 20676 }
 20137 
 20677 
 20138 
 20678 
 20139 
 20679 
 20140 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/default.mjs
 20680 ;// ./node_modules/framer-motion/dist/es/utils/offsets/default.mjs
 20141 
 20681 
 20142 
 20682 
 20143 function defaultOffset(arr) {
 20683 function defaultOffset(arr) {
 20144     const offset = [0];
 20684     const offset = [0];
 20145     fillOffset(offset, arr.length - 1);
 20685     fillOffset(offset, arr.length - 1);
 20146     return offset;
 20686     return offset;
 20147 }
 20687 }
 20148 
 20688 
 20149 
 20689 
 20150 
 20690 
 20151 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/offsets/time.mjs
 20691 ;// ./node_modules/framer-motion/dist/es/utils/offsets/time.mjs
 20152 function convertOffsetToTimes(offset, duration) {
 20692 function convertOffsetToTimes(offset, duration) {
 20153     return offset.map((o) => o * duration);
 20693     return offset.map((o) => o * duration);
 20154 }
 20694 }
 20155 
 20695 
 20156 
 20696 
 20157 
 20697 
 20158 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs
 20698 ;// ./node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs
 20159 
 20699 
 20160 
 20700 
 20161 
 20701 
 20162 
 20702 
 20163 
 20703 
 20206     };
 20746     };
 20207 }
 20747 }
 20208 
 20748 
 20209 
 20749 
 20210 
 20750 
 20211 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs
 20751 ;// ./node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs
 20212 /**
 20752 /**
 20213  * Implement a practical max duration for keyframe generation
 20753  * Implement a practical max duration for keyframe generation
 20214  * to prevent infinite loops
 20754  * to prevent infinite loops
 20215  */
 20755  */
 20216 const maxGeneratorDuration = 20000;
 20756 const maxGeneratorDuration = 20000;
 20225     return duration >= maxGeneratorDuration ? Infinity : duration;
 20765     return duration >= maxGeneratorDuration ? Infinity : duration;
 20226 }
 20766 }
 20227 
 20767 
 20228 
 20768 
 20229 
 20769 
 20230 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs
 20770 ;// ./node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs
 20231 
 20771 
 20232 
 20772 
 20233 
 20773 
 20234 const frameloopDriver = (update) => {
 20774 const frameloopDriver = (update) => {
 20235     const passTimestamp = ({ timestamp }) => update(timestamp);
 20775     const passTimestamp = ({ timestamp }) => update(timestamp);
 20244     };
 20784     };
 20245 };
 20785 };
 20246 
 20786 
 20247 
 20787 
 20248 
 20788 
 20249 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs
 20789 ;// ./node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs
 20250 
 20790 
 20251 
 20791 
 20252 
 20792 
 20253 
 20793 
 20254 
 20794 
 20626     return new MainThreadAnimation(options);
 21166     return new MainThreadAnimation(options);
 20627 }
 21167 }
 20628 
 21168 
 20629 
 21169 
 20630 
 21170 
 20631 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs
 21171 ;// ./node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs
 20632 const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === "number";
 21172 const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === "number";
 20633 
 21173 
 20634 
 21174 
 20635 
 21175 
 20636 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs
 21176 ;// ./node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs
 20637 
 21177 
 20638 
 21178 
 20639 function isWaapiSupportedEasing(easing) {
 21179 function isWaapiSupportedEasing(easing) {
 20640     return Boolean(!easing ||
 21180     return Boolean(!easing ||
 20641         (typeof easing === "string" && easing in supportedWaapiEasing) ||
 21181         (typeof easing === "string" && easing in supportedWaapiEasing) ||
 20673     }
 21213     }
 20674 }
 21214 }
 20675 
 21215 
 20676 
 21216 
 20677 
 21217 
 20678 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs
 21218 ;// ./node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs
 20679 
 21219 
 20680 
 21220 
 20681 function animateStyle(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease, times, } = {}) {
 21221 function animateStyle(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = "loop", ease, times, } = {}) {
 20682     const keyframeOptions = { [valueName]: keyframes };
 21222     const keyframeOptions = { [valueName]: keyframes };
 20683     if (times)
 21223     if (times)
 20698     });
 21238     });
 20699 }
 21239 }
 20700 
 21240 
 20701 
 21241 
 20702 
 21242 
 20703 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs
 21243 ;// ./node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs
 20704 
 21244 
 20705 
 21245 
 20706 
 21246 
 20707 
 21247 
 20708 
 21248 
 20995     }
 21535     }
 20996 }
 21536 }
 20997 
 21537 
 20998 
 21538 
 20999 
 21539 
 21000 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs
 21540 ;// ./node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs
 21001 
 21541 
 21002 
 21542 
 21003 
 21543 
 21004 
 21544 
 21005 
 21545 
 21106     }
 21646     }
 21107 };
 21647 };
 21108 
 21648 
 21109 
 21649 
 21110 
 21650 
 21111 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/use-will-change/is.mjs
 21651 ;// ./node_modules/framer-motion/dist/es/value/use-will-change/is.mjs
 21112 
 21652 
 21113 
 21653 
 21114 function isWillChangeMotionValue(value) {
 21654 function isWillChangeMotionValue(value) {
 21115     return Boolean(isMotionValue(value) && value.add);
 21655     return Boolean(isMotionValue(value) && value.add);
 21116 }
 21656 }
 21117 
 21657 
 21118 
 21658 
 21119 
 21659 
 21120 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/array.mjs
 21660 ;// ./node_modules/framer-motion/dist/es/utils/array.mjs
 21121 function addUniqueItem(arr, item) {
 21661 function addUniqueItem(arr, item) {
 21122     if (arr.indexOf(item) === -1)
 21662     if (arr.indexOf(item) === -1)
 21123         arr.push(item);
 21663         arr.push(item);
 21124 }
 21664 }
 21125 function removeItem(arr, item) {
 21665 function removeItem(arr, item) {
 21138     return arr;
 21678     return arr;
 21139 }
 21679 }
 21140 
 21680 
 21141 
 21681 
 21142 
 21682 
 21143 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/subscription-manager.mjs
 21683 ;// ./node_modules/framer-motion/dist/es/utils/subscription-manager.mjs
 21144 
 21684 
 21145 
 21685 
 21146 class SubscriptionManager {
 21686 class SubscriptionManager {
 21147     constructor() {
 21687     constructor() {
 21148         this.subscriptions = [];
 21688         this.subscriptions = [];
 21180     }
 21720     }
 21181 }
 21721 }
 21182 
 21722 
 21183 
 21723 
 21184 
 21724 
 21185 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/index.mjs
 21725 ;// ./node_modules/framer-motion/dist/es/value/index.mjs
 21186 
 21726 
 21187 
 21727 
 21188 
 21728 
 21189 
 21729 
 21190 
 21730 
 21499     return new MotionValue(init, options);
 22039     return new MotionValue(init, options);
 21500 }
 22040 }
 21501 
 22041 
 21502 
 22042 
 21503 
 22043 
 21504 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/setters.mjs
 22044 ;// ./node_modules/framer-motion/dist/es/render/utils/setters.mjs
 21505 
 22045 
 21506 
 22046 
 21507 
 22047 
 21508 
 22048 
 21509 /**
 22049 /**
 21528     }
 22068     }
 21529 }
 22069 }
 21530 
 22070 
 21531 
 22071 
 21532 
 22072 
 21533 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs
 22073 ;// ./node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs
 21534 
 22074 
 21535 
 22075 
 21536 
 22076 
 21537 
 22077 
 21538 
 22078 
 21611     return animations;
 22151     return animations;
 21612 }
 22152 }
 21613 
 22153 
 21614 
 22154 
 21615 
 22155 
 21616 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs
 22156 ;// ./node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs
 21617 
 22157 
 21618 
 22158 
 21619 
 22159 
 21620 function animateVariant(visualElement, variant, options = {}) {
 22160 function animateVariant(visualElement, variant, options = {}) {
 21621     var _a;
 22161     var _a;
 21679     return a.sortNodePosition(b);
 22219     return a.sortNodePosition(b);
 21680 }
 22220 }
 21681 
 22221 
 21682 
 22222 
 21683 
 22223 
 21684 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs
 22224 ;// ./node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs
 21685 
 22225 
 21686 
 22226 
 21687 
 22227 
 21688 
 22228 
 21689 
 22229 
 21710     });
 22250     });
 21711 }
 22251 }
 21712 
 22252 
 21713 
 22253 
 21714 
 22254 
 21715 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/animation-state.mjs
 22255 ;// ./node_modules/framer-motion/dist/es/render/utils/animation-state.mjs
 21716 
 22256 
 21717 
 22257 
 21718 
 22258 
 21719 
 22259 
 21720 
 22260 
 22036     };
 22576     };
 22037 }
 22577 }
 22038 
 22578 
 22039 
 22579 
 22040 
 22580 
 22041 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/animation/index.mjs
 22581 ;// ./node_modules/framer-motion/dist/es/motion/features/animation/index.mjs
 22042 
 22582 
 22043 
 22583 
 22044 
 22584 
 22045 
 22585 
 22046 class AnimationFeature extends Feature {
 22586 class AnimationFeature extends Feature {
 22076     unmount() { }
 22616     unmount() { }
 22077 }
 22617 }
 22078 
 22618 
 22079 
 22619 
 22080 
 22620 
 22081 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs
 22621 ;// ./node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs
 22082 
 22622 
 22083 
 22623 
 22084 let id = 0;
 22624 let id = 0;
 22085 class ExitAnimationFeature extends Feature {
 22625 class ExitAnimationFeature extends Feature {
 22086     constructor() {
 22626     constructor() {
 22109     unmount() { }
 22649     unmount() { }
 22110 }
 22650 }
 22111 
 22651 
 22112 
 22652 
 22113 
 22653 
 22114 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/animations.mjs
 22654 ;// ./node_modules/framer-motion/dist/es/motion/features/animations.mjs
 22115 
 22655 
 22116 
 22656 
 22117 
 22657 
 22118 const animations = {
 22658 const animations = {
 22119     animation: {
 22659     animation: {
 22124     },
 22664     },
 22125 };
 22665 };
 22126 
 22666 
 22127 
 22667 
 22128 
 22668 
 22129 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/distance.mjs
 22669 ;// ./node_modules/framer-motion/dist/es/utils/distance.mjs
 22130 const distance = (a, b) => Math.abs(a - b);
 22670 const distance = (a, b) => Math.abs(a - b);
 22131 function distance2D(a, b) {
 22671 function distance2D(a, b) {
 22132     // Multi-dimensional
 22672     // Multi-dimensional
 22133     const xDelta = distance(a.x, b.x);
 22673     const xDelta = distance(a.x, b.x);
 22134     const yDelta = distance(a.y, b.y);
 22674     const yDelta = distance(a.y, b.y);
 22135     return Math.sqrt(xDelta ** 2 + yDelta ** 2);
 22675     return Math.sqrt(xDelta ** 2 + yDelta ** 2);
 22136 }
 22676 }
 22137 
 22677 
 22138 
 22678 
 22139 
 22679 
 22140 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
 22680 ;// ./node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
 22141 
 22681 
 22142 
 22682 
 22143 
 22683 
 22144 
 22684 
 22145 
 22685 
 22293     return currentVelocity;
 22833     return currentVelocity;
 22294 }
 22834 }
 22295 
 22835 
 22296 
 22836 
 22297 
 22837 
 22298 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs
 22838 ;// ./node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs
 22299 
 22839 
 22300 
 22840 
 22301 function calcLength(axis) {
 22841 function calcLength(axis) {
 22302     return axis.max - axis.min;
 22842     return axis.max - axis.min;
 22303 }
 22843 }
 22336     calcRelativeAxisPosition(target.y, layout.y, parent.y);
 22876     calcRelativeAxisPosition(target.y, layout.y, parent.y);
 22337 }
 22877 }
 22338 
 22878 
 22339 
 22879 
 22340 
 22880 
 22341 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
 22881 ;// ./node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
 22342 
 22882 
 22343 
 22883 
 22344 
 22884 
 22345 
 22885 
 22346 
 22886 
 22467         : dragElastic[label] || 0;
 23007         : dragElastic[label] || 0;
 22468 }
 23008 }
 22469 
 23009 
 22470 
 23010 
 22471 
 23011 
 22472 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/geometry/models.mjs
 23012 ;// ./node_modules/framer-motion/dist/es/projection/geometry/models.mjs
 22473 const createAxisDelta = () => ({
 23013 const createAxisDelta = () => ({
 22474     translate: 0,
 23014     translate: 0,
 22475     scale: 1,
 23015     scale: 1,
 22476     origin: 0,
 23016     origin: 0,
 22477     originPoint: 0,
 23017     originPoint: 0,
 22486     y: createAxis(),
 23026     y: createAxis(),
 22487 });
 23027 });
 22488 
 23028 
 22489 
 23029 
 22490 
 23030 
 22491 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs
 23031 ;// ./node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs
 22492 function eachAxis(callback) {
 23032 function eachAxis(callback) {
 22493     return [callback("x"), callback("y")];
 23033     return [callback("x"), callback("y")];
 22494 }
 23034 }
 22495 
 23035 
 22496 
 23036 
 22497 
 23037 
 22498 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs
 23038 ;// ./node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs
 22499 /**
 23039 /**
 22500  * Bounding boxes tend to be defined as top, left, right, bottom. For various operations
 23040  * Bounding boxes tend to be defined as top, left, right, bottom. For various operations
 22501  * it's easier to consider each axis individually. This function returns a bounding box
 23041  * it's easier to consider each axis individually. This function returns a bounding box
 22502  * as a map of single-axis min/max values.
 23042  * as a map of single-axis min/max values.
 22503  */
 23043  */
 22528     };
 23068     };
 22529 }
 23069 }
 22530 
 23070 
 22531 
 23071 
 22532 
 23072 
 22533 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs
 23073 ;// ./node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs
 22534 function isIdentityScale(scale) {
 23074 function isIdentityScale(scale) {
 22535     return scale === undefined || scale === 1;
 23075     return scale === undefined || scale === 1;
 22536 }
 23076 }
 22537 function hasScale({ scale, scaleX, scaleY }) {
 23077 function hasScale({ scale, scaleX, scaleY }) {
 22538     return (!isIdentityScale(scale) ||
 23078     return (!isIdentityScale(scale) ||
 22556     return value && value !== "0%";
 23096     return value && value !== "0%";
 22557 }
 23097 }
 22558 
 23098 
 22559 
 23099 
 22560 
 23100 
 22561 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs
 23101 ;// ./node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs
 22562 
 23102 
 22563 
 23103 
 22564 
 23104 
 22565 /**
 23105 /**
 22566  * Scales a point based on a factor and an originPoint
 23106  * Scales a point based on a factor and an originPoint
 22680     transformAxis(box.y, transform, yKeys);
 23220     transformAxis(box.y, transform, yKeys);
 22681 }
 23221 }
 22682 
 23222 
 22683 
 23223 
 22684 
 23224 
 22685 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/utils/measure.mjs
 23225 ;// ./node_modules/framer-motion/dist/es/projection/utils/measure.mjs
 22686 
 23226 
 22687 
 23227 
 22688 
 23228 
 22689 function measureViewportBox(instance, transformPoint) {
 23229 function measureViewportBox(instance, transformPoint) {
 22690     return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint));
 23230     return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint));
 22699     return viewportBox;
 23239     return viewportBox;
 22700 }
 23240 }
 22701 
 23241 
 22702 
 23242 
 22703 
 23243 
 22704 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/get-context-window.mjs
 23244 ;// ./node_modules/framer-motion/dist/es/utils/get-context-window.mjs
 22705 // Fixes https://github.com/framer/motion/issues/2270
 23245 // Fixes https://github.com/framer/motion/issues/2270
 22706 const getContextWindow = ({ current }) => {
 23246 const getContextWindow = ({ current }) => {
 22707     return current ? current.ownerDocument.defaultView : null;
 23247     return current ? current.ownerDocument.defaultView : null;
 22708 };
 23248 };
 22709 
 23249 
 22710 
 23250 
 22711 
 23251 
 22712 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
 23252 ;// ./node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
 22713 
 23253 
 22714 
 23254 
 22715 
 23255 
 22716 
 23256 
 22717 
 23257 
 23193     return direction;
 23733     return direction;
 23194 }
 23734 }
 23195 
 23735 
 23196 
 23736 
 23197 
 23737 
 23198 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/drag/index.mjs
 23738 ;// ./node_modules/framer-motion/dist/es/gestures/drag/index.mjs
 23199 
 23739 
 23200 
 23740 
 23201 
 23741 
 23202 
 23742 
 23203 class DragGesture extends Feature {
 23743 class DragGesture extends Feature {
 23222     }
 23762     }
 23223 }
 23763 }
 23224 
 23764 
 23225 
 23765 
 23226 
 23766 
 23227 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/pan/index.mjs
 23767 ;// ./node_modules/framer-motion/dist/es/gestures/pan/index.mjs
 23228 
 23768 
 23229 
 23769 
 23230 
 23770 
 23231 
 23771 
 23232 
 23772 
 23274     }
 23814     }
 23275 }
 23815 }
 23276 
 23816 
 23277 
 23817 
 23278 
 23818 
 23279 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
 23819 ;// ./node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
 23280 
 23820 
 23281 
 23821 
 23282 
 23822 
 23283 /**
 23823 /**
 23284  * When a component is the child of `AnimatePresence`, it can use `usePresence`
 23824  * When a component is the child of `AnimatePresence`, it can use `usePresence`
 23342     return context === null ? true : context.isPresent;
 23882     return context === null ? true : context.isPresent;
 23343 }
 23883 }
 23344 
 23884 
 23345 
 23885 
 23346 
 23886 
 23347 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/state.mjs
 23887 ;// ./node_modules/framer-motion/dist/es/projection/node/state.mjs
 23348 /**
 23888 /**
 23349  * This should only ever be modified on the client otherwise it'll
 23889  * This should only ever be modified on the client otherwise it'll
 23350  * persist through server requests. If we need instanced states we
 23890  * persist through server requests. If we need instanced states we
 23351  * could lazy-init via root.
 23891  * could lazy-init via root.
 23352  */
 23892  */
 23363     hasEverUpdated: false,
 23903     hasEverUpdated: false,
 23364 };
 23904 };
 23365 
 23905 
 23366 
 23906 
 23367 
 23907 
 23368 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs
 23908 ;// ./node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs
 23369 
 23909 
 23370 
 23910 
 23371 function pixelsToPercent(pixels, axis) {
 23911 function pixelsToPercent(pixels, axis) {
 23372     if (axis.max === axis.min)
 23912     if (axis.max === axis.min)
 23373         return 0;
 23913         return 0;
 23406     },
 23946     },
 23407 };
 23947 };
 23408 
 23948 
 23409 
 23949 
 23410 
 23950 
 23411 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs
 23951 ;// ./node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs
 23412 
 23952 
 23413 
 23953 
 23414 
 23954 
 23415 const correctBoxShadow = {
 23955 const correctBoxShadow = {
 23416     correct: (latest, { treeScale, projectionDelta }) => {
 23956     correct: (latest, { treeScale, projectionDelta }) => {
 23443     },
 23983     },
 23444 };
 23984 };
 23445 
 23985 
 23446 
 23986 
 23447 
 23987 
 23448 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs
 23988 ;// ./node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs
 23449 
 23989 
 23450 
 23990 
 23451 
 23991 
 23452 
 23992 
 23453 
 23993 
 23578     boxShadow: correctBoxShadow,
 24118     boxShadow: correctBoxShadow,
 23579 };
 24119 };
 23580 
 24120 
 23581 
 24121 
 23582 
 24122 
 23583 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs
 24123 ;// ./node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs
 23584 
 24124 
 23585 
 24125 
 23586 
 24126 
 23587 
 24127 
 23588 
 24128 
 23673     };
 24213     };
 23674 }
 24214 }
 23675 
 24215 
 23676 
 24216 
 23677 
 24217 
 23678 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/geometry/copy.mjs
 24218 ;// ./node_modules/framer-motion/dist/es/projection/geometry/copy.mjs
 23679 /**
 24219 /**
 23680  * Reset an axis to the provided origin box.
 24220  * Reset an axis to the provided origin box.
 23681  *
 24221  *
 23682  * This is a mutative operation.
 24222  * This is a mutative operation.
 23683  */
 24223  */
 23695     copyAxisInto(box.y, originBox.y);
 24235     copyAxisInto(box.y, originBox.y);
 23696 }
 24236 }
 23697 
 24237 
 23698 
 24238 
 23699 
 24239 
 23700 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs
 24240 ;// ./node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs
 23701 
 24241 
 23702 
 24242 
 23703 
 24243 
 23704 
 24244 
 23705 /**
 24245 /**
 23751     removeAxisTransforms(box.y, transforms, delta_remove_yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);
 24291     removeAxisTransforms(box.y, transforms, delta_remove_yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);
 23752 }
 24292 }
 23753 
 24293 
 23754 
 24294 
 23755 
 24295 
 23756 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/geometry/utils.mjs
 24296 ;// ./node_modules/framer-motion/dist/es/projection/geometry/utils.mjs
 23757 
 24297 
 23758 
 24298 
 23759 function isAxisDeltaZero(delta) {
 24299 function isAxisDeltaZero(delta) {
 23760     return delta.translate === 0 && delta.scale === 1;
 24300     return delta.translate === 0 && delta.scale === 1;
 23761 }
 24301 }
 23778     return calcLength(box.x) / calcLength(box.y);
 24318     return calcLength(box.x) / calcLength(box.y);
 23779 }
 24319 }
 23780 
 24320 
 23781 
 24321 
 23782 
 24322 
 23783 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/shared/stack.mjs
 24323 ;// ./node_modules/framer-motion/dist/es/projection/shared/stack.mjs
 23784 
 24324 
 23785 
 24325 
 23786 class NodeStack {
 24326 class NodeStack {
 23787     constructor() {
 24327     constructor() {
 23788         this.members = [];
 24328         this.members = [];
 23892     }
 24432     }
 23893 }
 24433 }
 23894 
 24434 
 23895 
 24435 
 23896 
 24436 
 23897 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/styles/transform.mjs
 24437 ;// ./node_modules/framer-motion/dist/es/projection/styles/transform.mjs
 23898 function buildProjectionTransform(delta, treeScale, latestTransform) {
 24438 function buildProjectionTransform(delta, treeScale, latestTransform) {
 23899     let transform = "";
 24439     let transform = "";
 23900     /**
 24440     /**
 23901      * The translations we use to calculate are always relative to the viewport coordinate space.
 24441      * The translations we use to calculate are always relative to the viewport coordinate space.
 23902      * But when we apply scales, we also scale the coordinate space of an element and its children.
 24442      * But when we apply scales, we also scale the coordinate space of an element and its children.
 23943     return transform || "none";
 24483     return transform || "none";
 23944 }
 24484 }
 23945 
 24485 
 23946 
 24486 
 23947 
 24487 
 23948 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs
 24488 ;// ./node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs
 23949 const compareByDepth = (a, b) => a.depth - b.depth;
 24489 const compareByDepth = (a, b) => a.depth - b.depth;
 23950 
 24490 
 23951 
 24491 
 23952 
 24492 
 23953 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs
 24493 ;// ./node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs
 23954 
 24494 
 23955 
 24495 
 23956 
 24496 
 23957 class FlatTree {
 24497 class FlatTree {
 23958     constructor() {
 24498     constructor() {
 23974     }
 24514     }
 23975 }
 24515 }
 23976 
 24516 
 23977 
 24517 
 23978 
 24518 
 23979 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/delay.mjs
 24519 ;// ./node_modules/framer-motion/dist/es/utils/delay.mjs
 23980 
 24520 
 23981 
 24521 
 23982 
 24522 
 23983 /**
 24523 /**
 23984  * Timeout defined in ms
 24524  * Timeout defined in ms
 23996     return () => cancelFrame(checkElapsed);
 24536     return () => cancelFrame(checkElapsed);
 23997 }
 24537 }
 23998 
 24538 
 23999 
 24539 
 24000 
 24540 
 24001 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/debug/record.mjs
 24541 ;// ./node_modules/framer-motion/dist/es/debug/record.mjs
 24002 function record(data) {
 24542 function record(data) {
 24003     if (window.MotionDebug) {
 24543     if (window.MotionDebug) {
 24004         window.MotionDebug.record(data);
 24544         window.MotionDebug.record(data);
 24005     }
 24545     }
 24006 }
 24546 }
 24007 
 24547 
 24008 
 24548 
 24009 
 24549 
 24010 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs
 24550 ;// ./node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs
 24011 function isSVGElement(element) {
 24551 function isSVGElement(element) {
 24012     return element instanceof SVGElement && element.tagName !== "svg";
 24552     return element instanceof SVGElement && element.tagName !== "svg";
 24013 }
 24553 }
 24014 
 24554 
 24015 
 24555 
 24016 
 24556 
 24017 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/interfaces/single-value.mjs
 24557 ;// ./node_modules/framer-motion/dist/es/animation/interfaces/single-value.mjs
 24018 
 24558 
 24019 
 24559 
 24020 
 24560 
 24021 
 24561 
 24022 function animateSingleValue(value, keyframes, options) {
 24562 function animateSingleValue(value, keyframes, options) {
 24025     return motionValue$1.animation;
 24565     return motionValue$1.animation;
 24026 }
 24566 }
 24027 
 24567 
 24028 
 24568 
 24029 
 24569 
 24030 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs
 24570 ;// ./node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs
 24031 
 24571 
 24032 
 24572 
 24033 
 24573 
 24034 
 24574 
 24035 
 24575 
 25552             !isNear(aspectRatio(snapshot), aspectRatio(layout), 0.2)));
 26092             !isNear(aspectRatio(snapshot), aspectRatio(layout), 0.2)));
 25553 }
 26093 }
 25554 
 26094 
 25555 
 26095 
 25556 
 26096 
 25557 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs
 26097 ;// ./node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs
 25558 
 26098 
 25559 
 26099 
 25560 
 26100 
 25561 const DocumentProjectionNode = createProjectionNode({
 26101 const DocumentProjectionNode = createProjectionNode({
 25562     attachResizeListener: (ref, notify) => addDomEvent(ref, "resize", notify),
 26102     attachResizeListener: (ref, notify) => addDomEvent(ref, "resize", notify),
 25567     checkIsScrollRoot: () => true,
 26107     checkIsScrollRoot: () => true,
 25568 });
 26108 });
 25569 
 26109 
 25570 
 26110 
 25571 
 26111 
 25572 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs
 26112 ;// ./node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs
 25573 
 26113 
 25574 
 26114 
 25575 
 26115 
 25576 const rootProjectionNode = {
 26116 const rootProjectionNode = {
 25577     current: undefined,
 26117     current: undefined,
 25596     checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === "fixed"),
 26136     checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === "fixed"),
 25597 });
 26137 });
 25598 
 26138 
 25599 
 26139 
 25600 
 26140 
 25601 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/drag.mjs
 26141 ;// ./node_modules/framer-motion/dist/es/motion/features/drag.mjs
 25602 
 26142 
 25603 
 26143 
 25604 
 26144 
 25605 
 26145 
 25606 
 26146 
 25615     },
 26155     },
 25616 };
 26156 };
 25617 
 26157 
 25618 
 26158 
 25619 
 26159 
 25620 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs
 26160 ;// ./node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs
 25621 // Does this device prefer reduced motion? Returns `null` server-side.
 26161 // Does this device prefer reduced motion? Returns `null` server-side.
 25622 const prefersReducedMotion = { current: null };
 26162 const prefersReducedMotion = { current: null };
 25623 const hasReducedMotionListener = { current: false };
 26163 const hasReducedMotionListener = { current: false };
 25624 
 26164 
 25625 
 26165 
 25626 
 26166 
 25627 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs
 26167 ;// ./node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs
 25628 
 26168 
 25629 
 26169 
 25630 
 26170 
 25631 function initPrefersReducedMotion() {
 26171 function initPrefersReducedMotion() {
 25632     hasReducedMotionListener.current = true;
 26172     hasReducedMotionListener.current = true;
 25643     }
 26183     }
 25644 }
 26184 }
 25645 
 26185 
 25646 
 26186 
 25647 
 26187 
 25648 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/motion-values.mjs
 26188 ;// ./node_modules/framer-motion/dist/es/render/utils/motion-values.mjs
 25649 
 26189 
 25650 
 26190 
 25651 
 26191 
 25652 
 26192 
 25653 
 26193 
 25710     return next;
 26250     return next;
 25711 }
 26251 }
 25712 
 26252 
 25713 
 26253 
 25714 
 26254 
 25715 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/store.mjs
 26255 ;// ./node_modules/framer-motion/dist/es/render/store.mjs
 25716 const visualElementStore = new WeakMap();
 26256 const visualElementStore = new WeakMap();
 25717 
 26257 
 25718 
 26258 
 25719 
 26259 
 25720 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs
 26260 ;// ./node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs
 25721 
 26261 
 25722 
 26262 
 25723 
 26263 
 25724 
 26264 
 25725 
 26265 
 25732  */
 26272  */
 25733 const findValueType = (v) => valueTypes.find(testValueType(v));
 26273 const findValueType = (v) => valueTypes.find(testValueType(v));
 25734 
 26274 
 25735 
 26275 
 25736 
 26276 
 25737 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/VisualElement.mjs
 26277 ;// ./node_modules/framer-motion/dist/es/render/VisualElement.mjs
 25738 
 26278 
 25739 
 26279 
 25740 
 26280 
 25741 
 26281 
 25742 
 26282 
 26269     }
 26809     }
 26270 }
 26810 }
 26271 
 26811 
 26272 
 26812 
 26273 
 26813 
 26274 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs
 26814 ;// ./node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs
 26275 
 26815 
 26276 
 26816 
 26277 
 26817 
 26278 class DOMVisualElement extends VisualElement {
 26818 class DOMVisualElement extends VisualElement {
 26279     constructor() {
 26819     constructor() {
 26299     }
 26839     }
 26300 }
 26840 }
 26301 
 26841 
 26302 
 26842 
 26303 
 26843 
 26304 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs
 26844 ;// ./node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs
 26305 
 26845 
 26306 
 26846 
 26307 
 26847 
 26308 
 26848 
 26309 
 26849 
 26360     }
 26900     }
 26361 }
 26901 }
 26362 
 26902 
 26363 
 26903 
 26364 
 26904 
 26365 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs
 26905 ;// ./node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs
 26366 
 26906 
 26367 
 26907 
 26368 
 26908 
 26369 
 26909 
 26370 
 26910 
 26409     }
 26949     }
 26410 }
 26950 }
 26411 
 26951 
 26412 
 26952 
 26413 
 26953 
 26414 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
 26954 ;// ./node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
 26415 
 26955 
 26416 
 26956 
 26417 
 26957 
 26418 
 26958 
 26419 
 26959 
 26426         });
 26966         });
 26427 };
 26967 };
 26428 
 26968 
 26429 
 26969 
 26430 
 26970 
 26431 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/layout.mjs
 26971 ;// ./node_modules/framer-motion/dist/es/motion/features/layout.mjs
 26432 
 26972 
 26433 
 26973 
 26434 
 26974 
 26435 const layout = {
 26975 const layout = {
 26436     layout: {
 26976     layout: {
 26439     },
 26979     },
 26440 };
 26980 };
 26441 
 26981 
 26442 
 26982 
 26443 
 26983 
 26444 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/motion.mjs
 26984 ;// ./node_modules/framer-motion/dist/es/render/dom/motion.mjs
 26445 
 26985 
 26446 
 26986 
 26447 
 26987 
 26448 
 26988 
 26449 
 26989 
 26483     return createMotionComponent(createDomMotionConfig(key, { forwardMotionProps: false }, preloadedFeatures, createDomVisualElement));
 27023     return createMotionComponent(createDomMotionConfig(key, { forwardMotionProps: false }, preloadedFeatures, createDomVisualElement));
 26484 }
 27024 }
 26485 
 27025 
 26486 
 27026 
 26487 
 27027 
 26488 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
 27028 ;// ./node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
 26489 
 27029 
 26490 
 27030 
 26491 
 27031 
 26492 function useIsMounted() {
 27032 function useIsMounted() {
 26493     const isMounted = (0,external_React_.useRef)(false);
 27033     const isMounted = (0,external_React_.useRef)(false);
 26500     return isMounted;
 27040     return isMounted;
 26501 }
 27041 }
 26502 
 27042 
 26503 
 27043 
 26504 
 27044 
 26505 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-force-update.mjs
 27045 ;// ./node_modules/framer-motion/dist/es/utils/use-force-update.mjs
 26506 
 27046 
 26507 
 27047 
 26508 
 27048 
 26509 
 27049 
 26510 function use_force_update_useForceUpdate() {
 27050 function use_force_update_useForceUpdate() {
 26521     return [deferredForceRender, forcedRenderCount];
 27061     return [deferredForceRender, forcedRenderCount];
 26522 }
 27062 }
 26523 
 27063 
 26524 
 27064 
 26525 
 27065 
 26526 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
 27066 ;// ./node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
 26527 
 27067 
 26528 
 27068 
 26529 
 27069 
 26530 
 27070 
 26531 
 27071 
 26599     return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: external_React_.cloneElement(children, { ref }) }));
 27139     return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: external_React_.cloneElement(children, { ref }) }));
 26600 }
 27140 }
 26601 
 27141 
 26602 
 27142 
 26603 
 27143 
 26604 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
 27144 ;// ./node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
 26605 
 27145 
 26606 
 27146 
 26607 
 27147 
 26608 
 27148 
 26609 
 27149 
 26658     return new Map();
 27198     return new Map();
 26659 }
 27199 }
 26660 
 27200 
 26661 
 27201 
 26662 
 27202 
 26663 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs
 27203 ;// ./node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs
 26664 
 27204 
 26665 
 27205 
 26666 function useUnmountEffect(callback) {
 27206 function useUnmountEffect(callback) {
 26667     return (0,external_React_.useEffect)(() => () => callback(), []);
 27207     return (0,external_React_.useEffect)(() => () => callback(), []);
 26668 }
 27208 }
 26669 
 27209 
 26670 
 27210 
 26671 
 27211 
 26672 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
 27212 ;// ./node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
 26673 
 27213 
 26674 
 27214 
 26675 
 27215 
 26676 
 27216 
 26677 
 27217 
 26834             : childrenToRender.map((child) => (0,external_React_.cloneElement)(child)) }));
 27374             : childrenToRender.map((child) => (0,external_React_.cloneElement)(child)) }));
 26835 };
 27375 };
 26836 
 27376 
 26837 
 27377 
 26838 
 27378 
 26839 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/use-responsive-value.js
 27379 ;// ./node_modules/@wordpress/components/build-module/utils/use-responsive-value.js
 26840 /**
 27380 /**
 26841  * WordPress dependencies
 27381  * WordPress dependencies
 26842  */
 27382  */
 26843 
 27383 
 26844 const breakpoints = ['40em', '52em', '64em'];
 27384 const breakpoints = ['40em', '52em', '64em'];
 26886   /* eslint-disable jsdoc/no-undefined-types */
 27426   /* eslint-disable jsdoc/no-undefined-types */
 26887   return /** @type {T[]} */array[/* eslint-enable jsdoc/no-undefined-types */
 27427   return /** @type {T[]} */array[/* eslint-enable jsdoc/no-undefined-types */
 26888   index >= array.length ? array.length - 1 : index];
 27428   index >= array.length ? array.length - 1 : index];
 26889 }
 27429 }
 26890 
 27430 
 26891 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/space.js
 27431 ;// ./node_modules/@wordpress/components/build-module/flex/styles.js
 26892 /**
       
 26893  * The argument value for the `space()` utility function.
       
 26894  *
       
 26895  * When this is a number or a numeric string, it will be interpreted as a
       
 26896  * multiplier for the grid base value (4px). For example, `space( 2 )` will be 8px.
       
 26897  *
       
 26898  * Otherwise, it will be interpreted as a literal CSS length value. For example,
       
 26899  * `space( 'auto' )` will be 'auto', and `space( '2px' )` will be 2px.
       
 26900  */
       
 26901 
       
 26902 const GRID_BASE = '4px';
       
 26903 
       
 26904 /**
       
 26905  * A function that handles numbers, numeric strings, and unit values.
       
 26906  *
       
 26907  * When given a number or a numeric string, it will return the grid-based
       
 26908  * value as a factor of GRID_BASE, defined above.
       
 26909  *
       
 26910  * When given a unit value or one of the named CSS values like `auto`,
       
 26911  * it will simply return the value back.
       
 26912  *
       
 26913  * @param value A number, numeric string, or a unit value.
       
 26914  */
       
 26915 function space(value) {
       
 26916   if (typeof value === 'undefined') {
       
 26917     return undefined;
       
 26918   }
       
 26919 
       
 26920   // Handle empty strings, if it's the number 0 this still works.
       
 26921   if (!value) {
       
 26922     return '0';
       
 26923   }
       
 26924   const asInt = typeof value === 'number' ? value : Number(value);
       
 26925 
       
 26926   // Test if the input has a unit, was NaN, or was one of the named CSS values (like `auto`), in which case just use that value.
       
 26927   if (typeof window !== 'undefined' && window.CSS?.supports?.('margin', value.toString()) || Number.isNaN(asInt)) {
       
 26928     return value.toString();
       
 26929   }
       
 26930   return `calc(${GRID_BASE} * ${value})`;
       
 26931 }
       
 26932 
       
 26933 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/styles.js
       
 26934 function styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 27432 function styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 26935 /**
 27433 /**
 26936  * External dependencies
 27434  * External dependencies
 26937  */
 27435  */
 26938 
 27436 
 26968 const ItemsRow =  true ? {
 27466 const ItemsRow =  true ? {
 26969   name: "1pwxzk4",
 27467   name: "1pwxzk4",
 26970   styles: ">*{min-width:0;}"
 27468   styles: ">*{min-width:0;}"
 26971 } : 0;
 27469 } : 0;
 26972 
 27470 
 26973 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex/hook.js
 27471 ;// ./node_modules/@wordpress/components/build-module/flex/flex/hook.js
 26974 /**
 27472 /**
 26975  * External dependencies
 27473  * External dependencies
 26976  */
 27474  */
 26977 
 27475 
 26978 
 27476 
 27040     className: classes,
 27538     className: classes,
 27041     isColumn
 27539     isColumn
 27042   };
 27540   };
 27043 }
 27541 }
 27044 
 27542 
 27045 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/context.js
 27543 ;// ./node_modules/@wordpress/components/build-module/flex/context.js
 27046 /**
 27544 /**
 27047  * WordPress dependencies
 27545  * WordPress dependencies
 27048  */
 27546  */
 27049 
 27547 
 27050 const FlexContext = (0,external_wp_element_namespaceObject.createContext)({
 27548 const FlexContext = (0,external_wp_element_namespaceObject.createContext)({
 27051   flexItemDisplay: undefined
 27549   flexItemDisplay: undefined
 27052 });
 27550 });
 27053 const useFlexContext = () => (0,external_wp_element_namespaceObject.useContext)(FlexContext);
 27551 const useFlexContext = () => (0,external_wp_element_namespaceObject.useContext)(FlexContext);
 27054 
 27552 
 27055 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex/component.js
 27553 ;// ./node_modules/@wordpress/components/build-module/flex/flex/component.js
 27056 /**
 27554 /**
 27057  * External dependencies
 27555  * External dependencies
 27058  */
 27556  */
 27059 
 27557 
 27060 /**
 27558 /**
 27110  * ```
 27608  * ```
 27111  */
 27609  */
 27112 const component_Flex = contextConnect(UnconnectedFlex, 'Flex');
 27610 const component_Flex = contextConnect(UnconnectedFlex, 'Flex');
 27113 /* harmony default export */ const flex_component = (component_Flex);
 27611 /* harmony default export */ const flex_component = (component_Flex);
 27114 
 27612 
 27115 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex-item/hook.js
 27613 ;// ./node_modules/@wordpress/components/build-module/flex/flex-item/hook.js
 27116 /**
 27614 /**
 27117  * External dependencies
 27615  * External dependencies
 27118  */
 27616  */
 27119 
 27617 
 27120 
 27618 
 27145     ...otherProps,
 27643     ...otherProps,
 27146     className: classes
 27644     className: classes
 27147   };
 27645   };
 27148 }
 27646 }
 27149 
 27647 
 27150 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex-block/hook.js
 27648 ;// ./node_modules/@wordpress/components/build-module/flex/flex-block/hook.js
 27151 /**
 27649 /**
 27152  * Internal dependencies
 27650  * Internal dependencies
 27153  */
 27651  */
 27154 
 27652 
 27155 
 27653 
 27161     ...otherProps
 27659     ...otherProps
 27162   });
 27660   });
 27163   return flexItemProps;
 27661   return flexItemProps;
 27164 }
 27662 }
 27165 
 27663 
 27166 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex-block/component.js
 27664 ;// ./node_modules/@wordpress/components/build-module/flex/flex-block/component.js
 27167 /**
 27665 /**
 27168  * External dependencies
 27666  * External dependencies
 27169  */
 27667  */
 27170 
 27668 
 27171 /**
 27669 /**
 27201  * ```
 27699  * ```
 27202  */
 27700  */
 27203 const FlexBlock = contextConnect(UnconnectedFlexBlock, 'FlexBlock');
 27701 const FlexBlock = contextConnect(UnconnectedFlexBlock, 'FlexBlock');
 27204 /* harmony default export */ const flex_block_component = (FlexBlock);
 27702 /* harmony default export */ const flex_block_component = (FlexBlock);
 27205 
 27703 
 27206 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/rtl.js
 27704 ;// ./node_modules/@wordpress/components/build-module/utils/rtl.js
 27207 /**
 27705 /**
 27208  * External dependencies
 27706  * External dependencies
 27209  */
 27707  */
 27210 
 27708 
 27211 
 27709 
 27290  *   `;
 27788  *   `;
 27291  * }, [ rtl.watch() ] );
 27789  * }, [ rtl.watch() ] );
 27292  */
 27790  */
 27293 rtl.watch = () => (0,external_wp_i18n_namespaceObject.isRTL)();
 27791 rtl.watch = () => (0,external_wp_i18n_namespaceObject.isRTL)();
 27294 
 27792 
 27295 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spacer/hook.js
 27793 ;// ./node_modules/@wordpress/components/build-module/spacer/hook.js
 27296 /**
 27794 /**
 27297  * External dependencies
 27795  * External dependencies
 27298  */
 27796  */
 27299 
 27797 
 27300 
 27798 
 27303  */
 27801  */
 27304 
 27802 
 27305 
 27803 
 27306 
 27804 
 27307 
 27805 
 27308 const isDefined = o => typeof o !== 'undefined' && o !== null;
 27806 function isDefined(o) {
       
 27807   return typeof o !== 'undefined' && o !== null;
       
 27808 }
 27309 function useSpacer(props) {
 27809 function useSpacer(props) {
 27310   const {
 27810   const {
 27311     className,
 27811     className,
 27312     margin,
 27812     margin,
 27313     marginBottom = 2,
 27813     marginBottom = 2,
 27339     ...otherProps,
 27839     ...otherProps,
 27340     className: classes
 27840     className: classes
 27341   };
 27841   };
 27342 }
 27842 }
 27343 
 27843 
 27344 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spacer/component.js
 27844 ;// ./node_modules/@wordpress/components/build-module/spacer/component.js
 27345 /**
 27845 /**
 27346  * External dependencies
 27846  * External dependencies
 27347  */
 27847  */
 27348 
 27848 
 27349 /**
 27849 /**
 27387  * ```
 27887  * ```
 27388  */
 27888  */
 27389 const Spacer = contextConnect(UnconnectedSpacer, 'Spacer');
 27889 const Spacer = contextConnect(UnconnectedSpacer, 'Spacer');
 27390 /* harmony default export */ const spacer_component = (Spacer);
 27890 /* harmony default export */ const spacer_component = (Spacer);
 27391 
 27891 
 27392 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js
 27892 ;// ./node_modules/@wordpress/icons/build-module/library/plus.js
 27393 /**
 27893 /**
 27394  * WordPress dependencies
 27894  * WordPress dependencies
 27395  */
 27895  */
 27396 
 27896 
 27397 
 27897 
 27402     d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
 27902     d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
 27403   })
 27903   })
 27404 });
 27904 });
 27405 /* harmony default export */ const library_plus = (plus);
 27905 /* harmony default export */ const library_plus = (plus);
 27406 
 27906 
 27407 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/reset.js
 27907 ;// ./node_modules/@wordpress/icons/build-module/library/reset.js
 27408 /**
 27908 /**
 27409  * WordPress dependencies
 27909  * WordPress dependencies
 27410  */
 27910  */
 27411 
 27911 
 27412 
 27912 
 27417     d: "M7 11.5h10V13H7z"
 27917     d: "M7 11.5h10V13H7z"
 27418   })
 27918   })
 27419 });
 27919 });
 27420 /* harmony default export */ const library_reset = (reset_reset);
 27920 /* harmony default export */ const library_reset = (reset_reset);
 27421 
 27921 
 27422 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/flex-item/component.js
 27922 ;// ./node_modules/@wordpress/components/build-module/flex/flex-item/component.js
 27423 /**
 27923 /**
 27424  * External dependencies
 27924  * External dependencies
 27425  */
 27925  */
 27426 
 27926 
 27427 /**
 27927 /**
 27457  * ```
 27957  * ```
 27458  */
 27958  */
 27459 const FlexItem = contextConnect(UnconnectedFlexItem, 'FlexItem');
 27959 const FlexItem = contextConnect(UnconnectedFlexItem, 'FlexItem');
 27460 /* harmony default export */ const flex_item_component = (FlexItem);
 27960 /* harmony default export */ const flex_item_component = (FlexItem);
 27461 
 27961 
 27462 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/truncate/styles.js
 27962 ;// ./node_modules/@wordpress/components/build-module/truncate/styles.js
 27463 function truncate_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 27963 function truncate_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 27464 /**
 27964 /**
 27465  * External dependencies
 27965  * External dependencies
 27466  */
 27966  */
 27467 
 27967 
 27468 const Truncate =  true ? {
 27968 const Truncate =  true ? {
 27469   name: "hdknak",
 27969   name: "hdknak",
 27470   styles: "display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
 27970   styles: "display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
 27471 } : 0;
 27971 } : 0;
 27472 
 27972 
 27473 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/values.js
 27973 ;// ./node_modules/@wordpress/components/build-module/utils/values.js
 27474 /* eslint-disable jsdoc/valid-types */
 27974 /* eslint-disable jsdoc/valid-types */
 27475 /**
 27975 /**
 27476  * Determines if a value is null or undefined.
 27976  * Determines if a value is null or undefined.
 27477  *
 27977  *
 27478  * @template T
 27978  * @template T
 27532  */
 28032  */
 27533 const ensureNumber = value => {
 28033 const ensureNumber = value => {
 27534   return typeof value === 'string' ? stringToNumber(value) : value;
 28034   return typeof value === 'string' ? stringToNumber(value) : value;
 27535 };
 28035 };
 27536 
 28036 
 27537 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/truncate/utils.js
 28037 ;// ./node_modules/@wordpress/components/build-module/truncate/utils.js
 27538 /**
 28038 /**
 27539  * Internal dependencies
 28039  * Internal dependencies
 27540  */
 28040  */
 27541 
 28041 
 27542 const TRUNCATE_ELLIPSIS = '…';
 28042 const TRUNCATE_ELLIPSIS = '…';
 27605   }
 28105   }
 27606   const truncatedContent = ellipsizeMode !== TRUNCATE_TYPE.auto ? truncateMiddle(words, truncateHead, truncateTail, ellipsis) : words;
 28106   const truncatedContent = ellipsizeMode !== TRUNCATE_TYPE.auto ? truncateMiddle(words, truncateHead, truncateTail, ellipsis) : words;
 27607   return truncatedContent;
 28107   return truncatedContent;
 27608 }
 28108 }
 27609 
 28109 
 27610 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/truncate/hook.js
 28110 ;// ./node_modules/@wordpress/components/build-module/truncate/hook.js
 27611 /**
 28111 /**
 27612  * External dependencies
 28112  * External dependencies
 27613  */
 28113  */
 27614 
 28114 
 27615 
 28115 
 27662     className: classes,
 28162     className: classes,
 27663     children: truncatedContent
 28163     children: truncatedContent
 27664   };
 28164   };
 27665 }
 28165 }
 27666 
 28166 
 27667 ;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
 28167 ;// ./node_modules/colord/index.mjs
 27668 var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:colord_e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:colord_e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return colord_n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(colord_n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
 28168 var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:colord_e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:colord_e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return colord_n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(colord_n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
 27669 
 28169 
 27670 ;// CONCATENATED MODULE: ./node_modules/colord/plugins/names.mjs
 28170 ;// ./node_modules/colord/plugins/names.mjs
 27671 /* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])}
 28171 /* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])}
 27672 
 28172 
 27673 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/colors.js
 28173 ;// ./node_modules/@wordpress/components/build-module/utils/colors.js
 27674 /**
 28174 /**
 27675  * External dependencies
 28175  * External dependencies
 27676  */
 28176  */
 27677 
 28177 
 27678 
 28178 
 27786 function getOptimalTextShade(backgroundColor) {
 28286 function getOptimalTextShade(backgroundColor) {
 27787   const result = getOptimalTextColor(backgroundColor);
 28287   const result = getOptimalTextColor(backgroundColor);
 27788   return result === '#000000' ? 'dark' : 'light';
 28288   return result === '#000000' ? 'dark' : 'light';
 27789 }
 28289 }
 27790 
 28290 
 27791 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/config-values.js
 28291 ;// ./node_modules/@wordpress/components/build-module/text/styles.js
       
 28292 function text_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 28293 /**
       
 28294  * External dependencies
       
 28295  */
       
 28296 
       
 28297 
 27792 /**
 28298 /**
 27793  * Internal dependencies
 28299  * Internal dependencies
 27794  */
 28300  */
 27795 
 28301 
 27796 
 28302 const Text = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.theme.foreground, ";line-height:", config_values.fontLineHeightBase, ";margin:0;text-wrap:balance;text-wrap:pretty;" + ( true ? "" : 0),  true ? "" : 0);
 27797 const CONTROL_HEIGHT = '36px';
       
 27798 const CONTROL_PADDING_X = '12px';
       
 27799 const CONTROL_PROPS = {
       
 27800   controlSurfaceColor: COLORS.white,
       
 27801   controlTextActiveColor: COLORS.theme.accent,
       
 27802   controlPaddingX: CONTROL_PADDING_X,
       
 27803   controlPaddingXLarge: `calc(${CONTROL_PADDING_X} * 1.3334)`,
       
 27804   controlPaddingXSmall: `calc(${CONTROL_PADDING_X} / 1.3334)`,
       
 27805   controlBackgroundColor: COLORS.white,
       
 27806   controlBorderRadius: '2px',
       
 27807   controlBoxShadow: 'transparent',
       
 27808   controlBoxShadowFocus: `0 0 0 0.5px ${COLORS.theme.accent}`,
       
 27809   controlDestructiveBorderColor: COLORS.alert.red,
       
 27810   controlHeight: CONTROL_HEIGHT,
       
 27811   controlHeightXSmall: `calc( ${CONTROL_HEIGHT} * 0.6 )`,
       
 27812   controlHeightSmall: `calc( ${CONTROL_HEIGHT} * 0.8 )`,
       
 27813   controlHeightLarge: `calc( ${CONTROL_HEIGHT} * 1.2 )`,
       
 27814   controlHeightXLarge: `calc( ${CONTROL_HEIGHT} * 1.4 )`
       
 27815 };
       
 27816 const TOGGLE_GROUP_CONTROL_PROPS = {
       
 27817   toggleGroupControlBackgroundColor: CONTROL_PROPS.controlBackgroundColor,
       
 27818   toggleGroupControlBorderColor: COLORS.ui.border,
       
 27819   toggleGroupControlBackdropBackgroundColor: CONTROL_PROPS.controlSurfaceColor,
       
 27820   toggleGroupControlBackdropBorderColor: COLORS.ui.border,
       
 27821   toggleGroupControlButtonColorActive: CONTROL_PROPS.controlBackgroundColor
       
 27822 };
       
 27823 
       
 27824 // Using Object.assign to avoid creating circular references when emitting
       
 27825 // TypeScript type declarations.
       
 27826 /* harmony default export */ const config_values = (Object.assign({}, CONTROL_PROPS, TOGGLE_GROUP_CONTROL_PROPS, {
       
 27827   colorDivider: 'rgba(0, 0, 0, 0.1)',
       
 27828   colorScrollbarThumb: 'rgba(0, 0, 0, 0.2)',
       
 27829   colorScrollbarThumbHover: 'rgba(0, 0, 0, 0.5)',
       
 27830   colorScrollbarTrack: 'rgba(0, 0, 0, 0.04)',
       
 27831   elevationIntensity: 1,
       
 27832   radiusBlockUi: '2px',
       
 27833   borderWidth: '1px',
       
 27834   borderWidthFocus: '1.5px',
       
 27835   borderWidthTab: '4px',
       
 27836   spinnerSize: 16,
       
 27837   fontSize: '13px',
       
 27838   fontSizeH1: 'calc(2.44 * 13px)',
       
 27839   fontSizeH2: 'calc(1.95 * 13px)',
       
 27840   fontSizeH3: 'calc(1.56 * 13px)',
       
 27841   fontSizeH4: 'calc(1.25 * 13px)',
       
 27842   fontSizeH5: '13px',
       
 27843   fontSizeH6: 'calc(0.8 * 13px)',
       
 27844   fontSizeInputMobile: '16px',
       
 27845   fontSizeMobile: '15px',
       
 27846   fontSizeSmall: 'calc(0.92 * 13px)',
       
 27847   fontSizeXSmall: 'calc(0.75 * 13px)',
       
 27848   fontLineHeightBase: '1.4',
       
 27849   fontWeight: 'normal',
       
 27850   fontWeightHeading: '600',
       
 27851   gridBase: '4px',
       
 27852   cardBorderRadius: '2px',
       
 27853   cardPaddingXSmall: `${space(2)}`,
       
 27854   cardPaddingSmall: `${space(4)}`,
       
 27855   cardPaddingMedium: `${space(4)} ${space(6)}`,
       
 27856   cardPaddingLarge: `${space(6)} ${space(8)}`,
       
 27857   popoverShadow: `0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)`,
       
 27858   surfaceBackgroundColor: COLORS.white,
       
 27859   surfaceBackgroundSubtleColor: '#F3F3F3',
       
 27860   surfaceBackgroundTintColor: '#F5F5F5',
       
 27861   surfaceBorderColor: 'rgba(0, 0, 0, 0.1)',
       
 27862   surfaceBorderBoldColor: 'rgba(0, 0, 0, 0.15)',
       
 27863   surfaceBorderSubtleColor: 'rgba(0, 0, 0, 0.05)',
       
 27864   surfaceBackgroundTertiaryColor: COLORS.white,
       
 27865   surfaceColor: COLORS.white,
       
 27866   transitionDuration: '200ms',
       
 27867   transitionDurationFast: '160ms',
       
 27868   transitionDurationFaster: '120ms',
       
 27869   transitionDurationFastest: '100ms',
       
 27870   transitionTimingFunction: 'cubic-bezier(0.08, 0.52, 0.52, 1)',
       
 27871   transitionTimingFunctionControl: 'cubic-bezier(0.12, 0.8, 0.32, 1)'
       
 27872 }));
       
 27873 
       
 27874 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles.js
       
 27875 function text_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 27876 /**
       
 27877  * External dependencies
       
 27878  */
       
 27879 
       
 27880 
       
 27881 /**
       
 27882  * Internal dependencies
       
 27883  */
       
 27884 
       
 27885 const Text = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";line-height:", config_values.fontLineHeightBase, ";margin:0;text-wrap:balance;text-wrap:pretty;" + ( true ? "" : 0),  true ? "" : 0);
       
 27886 const styles_block =  true ? {
 28303 const styles_block =  true ? {
 27887   name: "4zleql",
 28304   name: "4zleql",
 27888   styles: "display:block"
 28305   styles: "display:block"
 27889 } : 0;
 28306 } : 0;
 27890 const positive = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.alert.green, ";" + ( true ? "" : 0),  true ? "" : 0);
 28307 const positive = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.alert.green, ";" + ( true ? "" : 0),  true ? "" : 0);
 27891 const destructive = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.alert.red, ";" + ( true ? "" : 0),  true ? "" : 0);
 28308 const destructive = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.alert.red, ";" + ( true ? "" : 0),  true ? "" : 0);
 27892 const muted = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[700], ";" + ( true ? "" : 0),  true ? "" : 0);
 28309 const muted = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[700], ";" + ( true ? "" : 0),  true ? "" : 0);
 27893 const highlighterText = /*#__PURE__*/emotion_react_browser_esm_css("mark{background:", COLORS.alert.yellow, ";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}" + ( true ? "" : 0),  true ? "" : 0);
 28310 const highlighterText = /*#__PURE__*/emotion_react_browser_esm_css("mark{background:", COLORS.alert.yellow, ";border-radius:", config_values.radiusSmall, ";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}" + ( true ? "" : 0),  true ? "" : 0);
 27894 const upperCase =  true ? {
 28311 const upperCase =  true ? {
 27895   name: "50zrmy",
 28312   name: "50zrmy",
 27896   styles: "text-transform:uppercase"
 28313   styles: "text-transform:uppercase"
 27897 } : 0;
 28314 } : 0;
 27898 
 28315 
 27899 // EXTERNAL MODULE: ./node_modules/highlight-words-core/dist/index.js
 28316 // EXTERNAL MODULE: ./node_modules/highlight-words-core/dist/index.js
 27900 var dist = __webpack_require__(9664);
 28317 var dist = __webpack_require__(9664);
 27901 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/utils.js
 28318 ;// ./node_modules/@wordpress/components/build-module/text/utils.js
 27902 /**
 28319 /**
 27903  * External dependencies
 28320  * External dependencies
 27904  */
 28321  */
 27905 
 28322 
 27906 
 28323 
 27925  * @property {string}                                                     children                  Children to highlight.
 28342  * @property {string}                                                     children                  Children to highlight.
 27926  * @property {import('highlight-words-core').FindAllArgs['findChunks']}   [findChunks]              Custom `findChunks` function to pass to `highlight-words-core`.
 28343  * @property {import('highlight-words-core').FindAllArgs['findChunks']}   [findChunks]              Custom `findChunks` function to pass to `highlight-words-core`.
 27927  * @property {string | Record<string, unknown>}                           [highlightClassName='']   Classname to apply to highlighted text or a Record of classnames to apply to given text (which should be the key).
 28344  * @property {string | Record<string, unknown>}                           [highlightClassName='']   Classname to apply to highlighted text or a Record of classnames to apply to given text (which should be the key).
 27928  * @property {import('react').AllHTMLAttributes<HTMLDivElement>['style']} [highlightStyle={}]       Styles to apply to highlighted text.
 28345  * @property {import('react').AllHTMLAttributes<HTMLDivElement>['style']} [highlightStyle={}]       Styles to apply to highlighted text.
 27929  * @property {keyof JSX.IntrinsicElements}                                [highlightTag='mark']     Tag to use for the highlighted text.
 28346  * @property {keyof JSX.IntrinsicElements}                                [highlightTag='mark']     Tag to use for the highlighted text.
 27930  * @property {import('highlight-words-core').FindAllArgs['sanitize']}     [sanitize]                Custom `santize` function to pass to `highlight-words-core`.
 28347  * @property {import('highlight-words-core').FindAllArgs['sanitize']}     [sanitize]                Custom `sanitize` function to pass to `highlight-words-core`.
 27931  * @property {string[]}                                                   [searchWords=[]]          Words to search for and highlight.
 28348  * @property {string[]}                                                   [searchWords=[]]          Words to search for and highlight.
 27932  * @property {string}                                                     [unhighlightClassName=''] Classname to apply to unhighlighted text.
 28349  * @property {string}                                                     [unhighlightClassName=''] Classname to apply to unhighlighted text.
 27933  * @property {import('react').AllHTMLAttributes<HTMLDivElement>['style']} [unhighlightStyle]        Style to apply to unhighlighted text.
 28350  * @property {import('react').AllHTMLAttributes<HTMLDivElement>['style']} [unhighlightStyle]        Style to apply to unhighlighted text.
 27934  */
 28351  */
 27935 
 28352 
 28040     });
 28457     });
 28041   });
 28458   });
 28042   return textContent;
 28459   return textContent;
 28043 }
 28460 }
 28044 
 28461 
 28045 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font-size.js
 28462 ;// ./node_modules/@wordpress/components/build-module/utils/font-size.js
 28046 /**
 28463 /**
 28047  * External dependencies
 28464  * External dependencies
 28048  */
 28465  */
 28049 
 28466 
 28050 /**
 28467 /**
 28081   }
 28498   }
 28082   const headingSize = `fontSizeH${size}`;
 28499   const headingSize = `fontSizeH${size}`;
 28083   return config_values[headingSize];
 28500   return config_values[headingSize];
 28084 }
 28501 }
 28085 
 28502 
 28086 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/get-line-height.js
 28503 ;// ./node_modules/@wordpress/components/build-module/text/get-line-height.js
 28087 /**
 28504 /**
 28088  * External dependencies
 28505  * External dependencies
 28089  */
 28506  */
 28090 
 28507 
 28091 /**
 28508 /**
 28116       break;
 28533       break;
 28117   }
 28534   }
 28118   return value;
 28535   return value;
 28119 }
 28536 }
 28120 
 28537 
 28121 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/hook.js
 28538 ;// ./node_modules/@wordpress/components/build-module/text/hook.js
 28122 function hook_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 28539 function hook_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 28123 /**
 28540 /**
 28124  * External dependencies
 28541  * External dependencies
 28125  */
 28542  */
 28126 
 28543 
 28206     },  true ? "" : 0,  true ? "" : 0);
 28623     },  true ? "" : 0,  true ? "" : 0);
 28207     sx.upperCase = hook_ref;
 28624     sx.upperCase = hook_ref;
 28208     sx.optimalTextColor = null;
 28625     sx.optimalTextColor = null;
 28209     if (optimizeReadabilityFor) {
 28626     if (optimizeReadabilityFor) {
 28210       const isOptimalTextColorDark = getOptimalTextShade(optimizeReadabilityFor) === 'dark';
 28627       const isOptimalTextColorDark = getOptimalTextShade(optimizeReadabilityFor) === 'dark';
       
 28628 
       
 28629       // Should not use theme colors
 28211       sx.optimalTextColor = isOptimalTextColorDark ? /*#__PURE__*/emotion_react_browser_esm_css({
 28630       sx.optimalTextColor = isOptimalTextColorDark ? /*#__PURE__*/emotion_react_browser_esm_css({
 28212         color: COLORS.gray[900]
 28631         color: COLORS.gray[900]
 28213       },  true ? "" : 0,  true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css({
 28632       },  true ? "" : 0,  true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css({
 28214         color: COLORS.white
 28633         color: COLORS.white
 28215       },  true ? "" : 0,  true ? "" : 0);
 28634       },  true ? "" : 0,  true ? "" : 0);
 28252     ...truncateProps,
 28671     ...truncateProps,
 28253     children: truncate ? truncateProps.children : content
 28672     children: truncate ? truncateProps.children : content
 28254   };
 28673   };
 28255 }
 28674 }
 28256 
 28675 
 28257 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/component.js
 28676 ;// ./node_modules/@wordpress/components/build-module/text/component.js
 28258 /**
 28677 /**
 28259  * Internal dependencies
 28678  * Internal dependencies
 28260  */
 28679  */
 28261 
 28680 
 28262 
 28681 
 28293  * ```
 28712  * ```
 28294  */
 28713  */
 28295 const component_Text = contextConnect(UnconnectedText, 'Text');
 28714 const component_Text = contextConnect(UnconnectedText, 'Text');
 28296 /* harmony default export */ const text_component = (component_Text);
 28715 /* harmony default export */ const text_component = (component_Text);
 28297 
 28716 
 28298 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/base-label.js
 28717 ;// ./node_modules/@wordpress/components/build-module/utils/base-label.js
 28299 function base_label_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 28718 function base_label_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 28300 /**
 28719 /**
 28301  * External dependencies
 28720  * External dependencies
 28302  */
 28721  */
 28303 
 28722 
 28307 const baseLabelTypography =  true ? {
 28726 const baseLabelTypography =  true ? {
 28308   name: "9amh4a",
 28727   name: "9amh4a",
 28309   styles: "font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"
 28728   styles: "font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"
 28310 } : 0;
 28729 } : 0;
 28311 
 28730 
 28312 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/styles/input-control-styles.js
 28731 ;// ./node_modules/@wordpress/components/build-module/input-control/styles/input-control-styles.js
 28313 
 28732 
 28314 function input_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 28733 function input_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 28315 /**
 28734 /**
 28316  * External dependencies
 28735  * External dependencies
 28317  */
 28736  */
 28323 
 28742 
 28324 
 28743 
 28325 
 28744 
 28326 
 28745 
 28327 
 28746 
 28328 
       
 28329 const Prefix = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 28747 const Prefix = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 28330   target: "em5sgkm7"
 28748   target: "em5sgkm8"
 28331 } : 0)( true ? {
 28749 } : 0)( true ? {
 28332   name: "pvvbxf",
 28750   name: "pvvbxf",
 28333   styles: "box-sizing:border-box;display:block"
 28751   styles: "box-sizing:border-box;display:block"
 28334 } : 0);
 28752 } : 0);
 28335 const Suffix = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 28753 const Suffix = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 28336   target: "em5sgkm6"
 28754   target: "em5sgkm7"
 28337 } : 0)( true ? {
 28755 } : 0)( true ? {
 28338   name: "jgf79h",
 28756   name: "jgf79h",
 28339   styles: "align-items:center;align-self:stretch;box-sizing:border-box;display:flex"
 28757   styles: "align-items:center;align-self:stretch;box-sizing:border-box;display:flex"
 28340 } : 0);
 28758 } : 0);
 28341 const backdropBorderColor = ({
 28759 const backdropBorderColor = ({
 28349     return COLORS.ui.borderDisabled;
 28767     return COLORS.ui.borderDisabled;
 28350   }
 28768   }
 28351   return COLORS.ui.border;
 28769   return COLORS.ui.border;
 28352 };
 28770 };
 28353 const BackdropUI = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 28771 const BackdropUI = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 28354   target: "em5sgkm5"
 28772   target: "em5sgkm6"
 28355 } : 0)("&&&{box-sizing:border-box;border-color:", backdropBorderColor, ";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;", rtl({
 28773 } : 0)("&&&{box-sizing:border-box;border-color:", backdropBorderColor, ";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;", rtl({
 28356   paddingLeft: 2
 28774   paddingLeft: 2
 28357 }), ";}" + ( true ? "" : 0));
 28775 }), ";}" + ( true ? "" : 0));
 28358 const input_control_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 28776 const Root = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 28359   target: "em5sgkm4"
 28777   target: "em5sgkm5"
 28360 } : 0)("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;&:focus-within:not( :has( :is( ", Prefix, ", ", Suffix, " ):focus-within ) ){", BackdropUI, "{border-color:", COLORS.ui.borderFocus, ";box-shadow:", config_values.controlBoxShadowFocus, ";outline:2px solid transparent;outline-offset:-2px;}}" + ( true ? "" : 0));
 28778 } : 0)("box-sizing:border-box;position:relative;border-radius:", config_values.radiusSmall, ";padding-top:0;&:focus-within:not( :has( :is( ", Prefix, ", ", Suffix, " ):focus-within ) ){", BackdropUI, "{border-color:", COLORS.ui.borderFocus, ";box-shadow:", config_values.controlBoxShadowFocus, ";outline:2px solid transparent;outline-offset:-2px;}}" + ( true ? "" : 0));
 28361 const containerDisabledStyles = ({
 28779 const containerDisabledStyles = ({
 28362   disabled
 28780   disabled
 28363 }) => {
 28781 }) => {
 28364   const backgroundColor = disabled ? COLORS.ui.backgroundDisabled : COLORS.ui.background;
 28782   const backgroundColor = disabled ? COLORS.ui.backgroundDisabled : COLORS.ui.background;
 28365   return /*#__PURE__*/emotion_react_browser_esm_css({
 28783   return /*#__PURE__*/emotion_react_browser_esm_css({
 28388   return /*#__PURE__*/emotion_react_browser_esm_css({
 28806   return /*#__PURE__*/emotion_react_browser_esm_css({
 28389     width: __unstableInputWidth
 28807     width: __unstableInputWidth
 28390   },  true ? "" : 0,  true ? "" : 0);
 28808   },  true ? "" : 0,  true ? "" : 0);
 28391 };
 28809 };
 28392 const Container = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 28810 const Container = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 28393   target: "em5sgkm3"
 28811   target: "em5sgkm4"
 28394 } : 0)("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;", containerDisabledStyles, " ", containerWidthStyles, ";" + ( true ? "" : 0));
 28812 } : 0)("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;", containerDisabledStyles, " ", containerWidthStyles, ";" + ( true ? "" : 0));
 28395 const disabledStyles = ({
 28813 const disabledStyles = ({
 28396   disabled
 28814   disabled
 28397 }) => {
 28815 }) => {
 28398   if (!disabled) {
 28816   if (!disabled) {
 28426   const sizes = {
 28844   const sizes = {
 28427     default: {
 28845     default: {
 28428       height: 40,
 28846       height: 40,
 28429       lineHeight: 1,
 28847       lineHeight: 1,
 28430       minHeight: 40,
 28848       minHeight: 40,
 28431       paddingLeft: space(4),
 28849       paddingLeft: config_values.controlPaddingX,
 28432       paddingRight: space(4)
 28850       paddingRight: config_values.controlPaddingX
 28433     },
 28851     },
 28434     small: {
 28852     small: {
 28435       height: 24,
 28853       height: 24,
 28436       lineHeight: 1,
 28854       lineHeight: 1,
 28437       minHeight: 24,
 28855       minHeight: 24,
 28438       paddingLeft: space(2),
 28856       paddingLeft: config_values.controlPaddingXSmall,
 28439       paddingRight: space(2)
 28857       paddingRight: config_values.controlPaddingXSmall
 28440     },
 28858     },
 28441     compact: {
 28859     compact: {
 28442       height: 32,
 28860       height: 32,
 28443       lineHeight: 1,
 28861       lineHeight: 1,
 28444       minHeight: 32,
 28862       minHeight: 32,
 28445       paddingLeft: space(2),
 28863       paddingLeft: config_values.controlPaddingXSmall,
 28446       paddingRight: space(2)
 28864       paddingRight: config_values.controlPaddingXSmall
 28447     },
 28865     },
 28448     '__unstable-large': {
 28866     '__unstable-large': {
 28449       height: 40,
 28867       height: 40,
 28450       lineHeight: 1,
 28868       lineHeight: 1,
 28451       minHeight: 40,
 28869       minHeight: 40,
 28452       paddingLeft: space(4),
 28870       paddingLeft: config_values.controlPaddingX,
 28453       paddingRight: space(4)
 28871       paddingRight: config_values.controlPaddingX
 28454     }
 28872     }
 28455   };
 28873   };
 28456   if (!__next40pxDefaultSize) {
 28874   if (!__next40pxDefaultSize) {
 28457     sizes.default = sizes.compact;
 28875     sizes.default = sizes.compact;
 28458   }
 28876   }
 28487 
 28905 
 28488 // TODO: Resolve need to use &&& to increase specificity
 28906 // TODO: Resolve need to use &&& to increase specificity
 28489 // https://github.com/WordPress/gutenberg/issues/18483
 28907 // https://github.com/WordPress/gutenberg/issues/18483
 28490 
 28908 
 28491 const Input = /*#__PURE__*/emotion_styled_base_browser_esm("input",  true ? {
 28909 const Input = /*#__PURE__*/emotion_styled_base_browser_esm("input",  true ? {
       
 28910   target: "em5sgkm3"
       
 28911 } : 0)("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:", COLORS.theme.foreground, ";display:block;font-family:inherit;margin:0;outline:none;width:100%;", dragStyles, " ", disabledStyles, " ", fontSizeStyles, " ", sizeStyles, " ", customPaddings, " &::-webkit-input-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}&::-moz-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}&:-ms-input-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}&[type='email'],&[type='url']{direction:ltr;}}" + ( true ? "" : 0));
       
 28912 const BaseLabel = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
 28492   target: "em5sgkm2"
 28913   target: "em5sgkm2"
 28493 } : 0)("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:", COLORS.theme.foreground, ";display:block;font-family:inherit;margin:0;outline:none;width:100%;", dragStyles, " ", disabledStyles, " ", fontSizeStyles, " ", sizeStyles, " ", customPaddings, " &::-webkit-input-placeholder{line-height:normal;}}" + ( true ? "" : 0));
       
 28494 const BaseLabel = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
       
 28495   target: "em5sgkm1"
       
 28496 } : 0)("&&&{", baseLabelTypography, ";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}" + ( true ? "" : 0));
 28914 } : 0)("&&&{", baseLabelTypography, ";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}" + ( true ? "" : 0));
 28497 const Label = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BaseLabel, {
 28915 const Label = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BaseLabel, {
 28498   ...props,
 28916   ...props,
 28499   as: "label"
 28917   as: "label"
 28500 });
 28918 });
 28501 const LabelWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_item_component,  true ? {
 28919 const LabelWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_item_component,  true ? {
 28502   target: "em5sgkm0"
 28920   target: "em5sgkm1"
 28503 } : 0)( true ? {
 28921 } : 0)( true ? {
 28504   name: "1b6uupn",
 28922   name: "1b6uupn",
 28505   styles: "max-width:calc( 100% - 10px )"
 28923   styles: "max-width:calc( 100% - 10px )"
 28506 } : 0);
 28924 } : 0);
 28507 
 28925 const prefixSuffixWrapperStyles = ({
 28508 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/backdrop.js
 28926   variant = 'default',
       
 28927   size,
       
 28928   __next40pxDefaultSize,
       
 28929   isPrefix
       
 28930 }) => {
       
 28931   const {
       
 28932     paddingLeft: padding
       
 28933   } = getSizeConfig({
       
 28934     inputSize: size,
       
 28935     __next40pxDefaultSize
       
 28936   });
       
 28937   const paddingProperty = isPrefix ? 'paddingInlineStart' : 'paddingInlineEnd';
       
 28938   if (variant === 'default') {
       
 28939     return /*#__PURE__*/emotion_react_browser_esm_css({
       
 28940       [paddingProperty]: padding
       
 28941     },  true ? "" : 0,  true ? "" : 0);
       
 28942   }
       
 28943 
       
 28944   // If variant is 'icon' or 'control'
       
 28945   return /*#__PURE__*/emotion_react_browser_esm_css({
       
 28946     display: 'flex',
       
 28947     [paddingProperty]: padding - 4
       
 28948   },  true ? "" : 0,  true ? "" : 0);
       
 28949 };
       
 28950 const PrefixSuffixWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 28951   target: "em5sgkm0"
       
 28952 } : 0)(prefixSuffixWrapperStyles, ";" + ( true ? "" : 0));
       
 28953 
       
 28954 ;// ./node_modules/@wordpress/components/build-module/input-control/backdrop.js
 28509 /**
 28955 /**
 28510  * WordPress dependencies
 28956  * WordPress dependencies
 28511  */
 28957  */
 28512 
 28958 
 28513 /**
 28959 /**
 28527   });
 28973   });
 28528 }
 28974 }
 28529 const MemoizedBackdrop = (0,external_wp_element_namespaceObject.memo)(Backdrop);
 28975 const MemoizedBackdrop = (0,external_wp_element_namespaceObject.memo)(Backdrop);
 28530 /* harmony default export */ const backdrop = (MemoizedBackdrop);
 28976 /* harmony default export */ const backdrop = (MemoizedBackdrop);
 28531 
 28977 
 28532 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/label.js
 28978 ;// ./node_modules/@wordpress/components/build-module/input-control/label.js
 28533 /**
 28979 /**
 28534  * Internal dependencies
 28980  * Internal dependencies
 28535  */
 28981  */
 28536 
 28982 
 28537 
 28983 
 28559       children: children
 29005       children: children
 28560     })
 29006     })
 28561   });
 29007   });
 28562 }
 29008 }
 28563 
 29009 
 28564 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/use-deprecated-props.js
 29010 ;// ./node_modules/@wordpress/components/build-module/utils/use-deprecated-props.js
 28565 function useDeprecated36pxDefaultSizeProp(props) {
 29011 function useDeprecated36pxDefaultSizeProp(props) {
 28566   const {
 29012   const {
 28567     __next36pxDefaultSize,
 29013     __next36pxDefaultSize,
 28568     __next40pxDefaultSize,
 29014     __next40pxDefaultSize,
 28569     ...otherProps
 29015     ...otherProps
 28572     ...otherProps,
 29018     ...otherProps,
 28573     __next40pxDefaultSize: __next40pxDefaultSize !== null && __next40pxDefaultSize !== void 0 ? __next40pxDefaultSize : __next36pxDefaultSize
 29019     __next40pxDefaultSize: __next40pxDefaultSize !== null && __next40pxDefaultSize !== void 0 ? __next40pxDefaultSize : __next36pxDefaultSize
 28574   };
 29020   };
 28575 }
 29021 }
 28576 
 29022 
 28577 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-base.js
 29023 ;// ./node_modules/@wordpress/components/build-module/input-control/input-base.js
 28578 /**
 29024 /**
 28579  * External dependencies
 29025  * External dependencies
 28580  */
 29026  */
 28581 
 29027 
 28582 /**
 29028 /**
 28586 
 29032 
 28587 
 29033 
 28588 /**
 29034 /**
 28589  * Internal dependencies
 29035  * Internal dependencies
 28590  */
 29036  */
 28591 
       
 28592 
 29037 
 28593 
 29038 
 28594 
 29039 
 28595 
 29040 
 28596 
 29041 
 28638     suffix,
 29083     suffix,
 28639     ...restProps
 29084     ...restProps
 28640   } = useDeprecated36pxDefaultSizeProp(useContextSystem(props, 'InputBase'));
 29085   } = useDeprecated36pxDefaultSizeProp(useContextSystem(props, 'InputBase'));
 28641   const id = useUniqueId(idProp);
 29086   const id = useUniqueId(idProp);
 28642   const hideLabel = hideLabelFromVision || !label;
 29087   const hideLabel = hideLabelFromVision || !label;
 28643   const {
       
 28644     paddingLeft,
       
 28645     paddingRight
       
 28646   } = getSizeConfig({
       
 28647     inputSize: size,
       
 28648     __next40pxDefaultSize
       
 28649   });
       
 28650   const prefixSuffixContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => {
 29088   const prefixSuffixContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => {
 28651     return {
 29089     return {
 28652       InputControlPrefixWrapper: {
 29090       InputControlPrefixWrapper: {
 28653         paddingLeft
 29091         __next40pxDefaultSize,
       
 29092         size
 28654       },
 29093       },
 28655       InputControlSuffixWrapper: {
 29094       InputControlSuffixWrapper: {
 28656         paddingRight
 29095         __next40pxDefaultSize,
       
 29096         size
 28657       }
 29097       }
 28658     };
 29098     };
 28659   }, [paddingLeft, paddingRight]);
 29099   }, [__next40pxDefaultSize, size]);
 28660   return (
 29100   return (
 28661     /*#__PURE__*/
 29101     /*#__PURE__*/
 28662     // @ts-expect-error The `direction` prop from Flex (FlexDirection) conflicts with legacy SVGAttributes `direction` (string) that come from React intrinsic prop definitions.
 29102     // @ts-expect-error The `direction` prop from Flex (FlexDirection) conflicts with legacy SVGAttributes `direction` (string) that come from React intrinsic prop definitions.
 28663     (0,external_ReactJSXRuntime_namespaceObject.jsxs)(input_control_styles_Root, {
 29103     (0,external_ReactJSXRuntime_namespaceObject.jsxs)(Root, {
 28664       ...restProps,
 29104       ...restProps,
 28665       ...getUIFlexProps(labelPosition),
 29105       ...getUIFlexProps(labelPosition),
 28666       className: className,
 29106       className: className,
 28667       gap: 2,
 29107       gap: 2,
 28668       ref: ref,
 29108       ref: ref,
 28700  * `InputBase` is an internal component used to style the standard borders for an input,
 29140  * `InputBase` is an internal component used to style the standard borders for an input,
 28701  * as well as handle the layout for prefix/suffix elements.
 29141  * as well as handle the layout for prefix/suffix elements.
 28702  */
 29142  */
 28703 /* harmony default export */ const input_base = (contextConnect(InputBase, 'InputBase'));
 29143 /* harmony default export */ const input_base = (contextConnect(InputBase, 'InputBase'));
 28704 
 29144 
 28705 ;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.js
 29145 ;// ./node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.js
 28706 function maths_0ab39ae9_esm_clamp(v, min, max) {
 29146 function maths_0ab39ae9_esm_clamp(v, min, max) {
 28707   return Math.max(min, Math.min(v, max));
 29147   return Math.max(min, Math.min(v, max));
 28708 }
 29148 }
 28709 const V = {
 29149 const V = {
 28710   toVector(v, fallback) {
 29150   toVector(v, fallback) {
 28741   return [rubberbandIfOutOfBounds(Vx, X0, X1, Rx), rubberbandIfOutOfBounds(Vy, Y0, Y1, Ry)];
 29181   return [rubberbandIfOutOfBounds(Vx, X0, X1, Rx), rubberbandIfOutOfBounds(Vy, Y0, Y1, Ry)];
 28742 }
 29182 }
 28743 
 29183 
 28744 
 29184 
 28745 
 29185 
 28746 ;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/actions-fe213e88.esm.js
 29186 ;// ./node_modules/@use-gesture/core/dist/actions-fe213e88.esm.js
 28747 
 29187 
 28748 
 29188 
 28749 function _toPrimitive(input, hint) {
 29189 function _toPrimitive(input, hint) {
 28750   if (typeof input !== "object" || input === null) return input;
 29190   if (typeof input !== "object" || input === null) return input;
 28751   var prim = input[Symbol.toPrimitive];
 29191   var prim = input[Symbol.toPrimitive];
 28775     obj[key] = value;
 29215     obj[key] = value;
 28776   }
 29216   }
 28777   return obj;
 29217   return obj;
 28778 }
 29218 }
 28779 
 29219 
 28780 function ownKeys(e, r) {
 29220 function actions_fe213e88_esm_ownKeys(e, r) {
 28781   var t = Object.keys(e);
 29221   var t = Object.keys(e);
 28782   if (Object.getOwnPropertySymbols) {
 29222   if (Object.getOwnPropertySymbols) {
 28783     var o = Object.getOwnPropertySymbols(e);
 29223     var o = Object.getOwnPropertySymbols(e);
 28784     r && (o = o.filter(function (r) {
 29224     r && (o = o.filter(function (r) {
 28785       return Object.getOwnPropertyDescriptor(e, r).enumerable;
 29225       return Object.getOwnPropertyDescriptor(e, r).enumerable;
 28788   return t;
 29228   return t;
 28789 }
 29229 }
 28790 function _objectSpread2(e) {
 29230 function _objectSpread2(e) {
 28791   for (var r = 1; r < arguments.length; r++) {
 29231   for (var r = 1; r < arguments.length; r++) {
 28792     var t = null != arguments[r] ? arguments[r] : {};
 29232     var t = null != arguments[r] ? arguments[r] : {};
 28793     r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
 29233     r % 2 ? actions_fe213e88_esm_ownKeys(Object(t), !0).forEach(function (r) {
 28794       _defineProperty(e, r, t[r]);
 29234       _defineProperty(e, r, t[r]);
 28795     }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
 29235     }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : actions_fe213e88_esm_ownKeys(Object(t)).forEach(function (r) {
 28796       Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
 29236       Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
 28797     });
 29237     });
 28798   }
 29238   }
 28799   return e;
 29239   return e;
 28800 }
 29240 }
 30141   resolver: wheelConfigResolver
 30581   resolver: wheelConfigResolver
 30142 };
 30582 };
 30143 
 30583 
 30144 
 30584 
 30145 
 30585 
 30146 ;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/use-gesture-core.esm.js
 30586 ;// ./node_modules/@use-gesture/core/dist/use-gesture-core.esm.js
 30147 
 30587 
 30148 
 30588 
 30149 
 30589 
 30150 function _objectWithoutPropertiesLoose(source, excluded) {
 30590 function _objectWithoutPropertiesLoose(source, excluded) {
 30151   if (source == null) return {};
 30591   if (source == null) return {};
 30462   };
 30902   };
 30463 }
 30903 }
 30464 
 30904 
 30465 
 30905 
 30466 
 30906 
 30467 ;// CONCATENATED MODULE: ./node_modules/@use-gesture/react/dist/use-gesture-react.esm.js
 30907 ;// ./node_modules/@use-gesture/react/dist/use-gesture-react.esm.js
 30468 
 30908 
 30469 
 30909 
 30470 
 30910 
 30471 
 30911 
 30472 
 30912 
 30545   return hook(handlers, config || {});
 30985   return hook(handlers, config || {});
 30546 }
 30986 }
 30547 
 30987 
 30548 
 30988 
 30549 
 30989 
 30550 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/utils.js
 30990 ;// ./node_modules/@wordpress/components/build-module/input-control/utils.js
 30551 /**
 30991 /**
 30552  * External dependencies
 30992  * External dependencies
 30553  */
 30993  */
 30554 
 30994 
 30555 /**
 30995 /**
 30601     }
 31041     }
 30602   }, [isDragging, dragCursor]);
 31042   }, [isDragging, dragCursor]);
 30603   return dragCursor;
 31043   return dragCursor;
 30604 }
 31044 }
 30605 function useDraft(props) {
 31045 function useDraft(props) {
 30606   const refPreviousValue = (0,external_wp_element_namespaceObject.useRef)(props.value);
 31046   const previousValueRef = (0,external_wp_element_namespaceObject.useRef)(props.value);
 30607   const [draft, setDraft] = (0,external_wp_element_namespaceObject.useState)({});
 31047   const [draft, setDraft] = (0,external_wp_element_namespaceObject.useState)({});
 30608   const value = draft.value !== undefined ? draft.value : props.value;
 31048   const value = draft.value !== undefined ? draft.value : props.value;
 30609 
 31049 
 30610   // Determines when to discard the draft value to restore controlled status.
 31050   // Determines when to discard the draft value to restore controlled status.
 30611   // To do so, it tracks the previous value and marks the draft value as stale
 31051   // To do so, it tracks the previous value and marks the draft value as stale
 30612   // after each render.
 31052   // after each render.
 30613   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 31053   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 30614     const {
 31054     const {
 30615       current: previousValue
 31055       current: previousValue
 30616     } = refPreviousValue;
 31056     } = previousValueRef;
 30617     refPreviousValue.current = props.value;
 31057     previousValueRef.current = props.value;
 30618     if (draft.value !== undefined && !draft.isStale) {
 31058     if (draft.value !== undefined && !draft.isStale) {
 30619       setDraft({
 31059       setDraft({
 30620         ...draft,
 31060         ...draft,
 30621         isStale: true
 31061         isStale: true
 30622       });
 31062       });
 30641     onBlur,
 31081     onBlur,
 30642     onChange
 31082     onChange
 30643   };
 31083   };
 30644 }
 31084 }
 30645 
 31085 
 30646 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/reducer/state.js
 31086 ;// ./node_modules/@wordpress/components/build-module/input-control/reducer/state.js
 30647 /**
 31087 /**
 30648  * External dependencies
 31088  * External dependencies
 30649  */
 31089  */
 30650 
 31090 
 30651 /**
 31091 /**
 30661   isDragging: false,
 31101   isDragging: false,
 30662   isPressEnterToChange: false,
 31102   isPressEnterToChange: false,
 30663   value: ''
 31103   value: ''
 30664 };
 31104 };
 30665 
 31105 
 30666 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/reducer/actions.js
 31106 ;// ./node_modules/@wordpress/components/build-module/input-control/reducer/actions.js
 30667 /**
 31107 /**
 30668  * External dependencies
 31108  * External dependencies
 30669  */
 31109  */
 30670 
 31110 
 30671 /**
 31111 /**
 30682 const PRESS_DOWN = 'PRESS_DOWN';
 31122 const PRESS_DOWN = 'PRESS_DOWN';
 30683 const PRESS_ENTER = 'PRESS_ENTER';
 31123 const PRESS_ENTER = 'PRESS_ENTER';
 30684 const PRESS_UP = 'PRESS_UP';
 31124 const PRESS_UP = 'PRESS_UP';
 30685 const RESET = 'RESET';
 31125 const RESET = 'RESET';
 30686 
 31126 
 30687 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/reducer/reducer.js
 31127 ;// ./node_modules/@wordpress/components/build-module/input-control/reducer/reducer.js
 30688 /**
 31128 /**
 30689  * External dependencies
 31129  * External dependencies
 30690  */
 31130  */
 30691 
 31131 
 30692 /**
 31132 /**
 30859   const drag = createDragEvent(DRAG);
 31299   const drag = createDragEvent(DRAG);
 30860   const dragEnd = createDragEvent(DRAG_END);
 31300   const dragEnd = createDragEvent(DRAG_END);
 30861   const pressUp = createKeyEvent(PRESS_UP);
 31301   const pressUp = createKeyEvent(PRESS_UP);
 30862   const pressDown = createKeyEvent(PRESS_DOWN);
 31302   const pressDown = createKeyEvent(PRESS_DOWN);
 30863   const pressEnter = createKeyEvent(PRESS_ENTER);
 31303   const pressEnter = createKeyEvent(PRESS_ENTER);
 30864   const currentState = (0,external_wp_element_namespaceObject.useRef)(state);
 31304   const currentStateRef = (0,external_wp_element_namespaceObject.useRef)(state);
 30865   const refProps = (0,external_wp_element_namespaceObject.useRef)({
 31305   const refPropsRef = (0,external_wp_element_namespaceObject.useRef)({
 30866     value: initialState.value,
 31306     value: initialState.value,
 30867     onChangeHandler
 31307     onChangeHandler
 30868   });
 31308   });
 30869 
 31309 
 30870   // Freshens refs to props and state so that subsequent effects have access
 31310   // Freshens refs to props and state so that subsequent effects have access
 30871   // to their latest values without their changes causing effect runs.
 31311   // to their latest values without their changes causing effect runs.
 30872   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 31312   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 30873     currentState.current = state;
 31313     currentStateRef.current = state;
 30874     refProps.current = {
 31314     refPropsRef.current = {
 30875       value: initialState.value,
 31315       value: initialState.value,
 30876       onChangeHandler
 31316       onChangeHandler
 30877     };
 31317     };
 30878   });
 31318   });
 30879 
 31319 
 30880   // Propagates the latest state through onChange.
 31320   // Propagates the latest state through onChange.
 30881   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 31321   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 30882     if (currentState.current._event !== undefined && state.value !== refProps.current.value && !state.isDirty) {
 31322     if (currentStateRef.current._event !== undefined && state.value !== refPropsRef.current.value && !state.isDirty) {
 30883       var _state$value;
 31323       var _state$value;
 30884       refProps.current.onChangeHandler((_state$value = state.value) !== null && _state$value !== void 0 ? _state$value : '', {
 31324       refPropsRef.current.onChangeHandler((_state$value = state.value) !== null && _state$value !== void 0 ? _state$value : '', {
 30885         event: currentState.current._event
 31325         event: currentStateRef.current._event
 30886       });
 31326       });
 30887     }
 31327     }
 30888   }, [state.value, state.isDirty]);
 31328   }, [state.value, state.isDirty]);
 30889 
 31329 
 30890   // Updates the state from props.
 31330   // Updates the state from props.
 30891   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 31331   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 30892     if (initialState.value !== currentState.current.value && !currentState.current.isDirty) {
 31332     if (initialState.value !== currentStateRef.current.value && !currentStateRef.current.isDirty) {
 30893       var _initialState$value;
 31333       var _initialState$value;
 30894       dispatch({
 31334       dispatch({
 30895         type: CONTROL,
 31335         type: CONTROL,
 30896         payload: {
 31336         payload: {
 30897           value: (_initialState$value = initialState.value) !== null && _initialState$value !== void 0 ? _initialState$value : ''
 31337           value: (_initialState$value = initialState.value) !== null && _initialState$value !== void 0 ? _initialState$value : ''
 30913     reset,
 31353     reset,
 30914     state
 31354     state
 30915   };
 31355   };
 30916 }
 31356 }
 30917 
 31357 
 30918 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/with-ignore-ime-events.js
 31358 ;// ./node_modules/@wordpress/components/build-module/utils/with-ignore-ime-events.js
 30919 /**
 31359 /**
 30920  * A higher-order function that wraps a keydown event handler to ensure it is not an IME event.
 31360  * A higher-order function that wraps a keydown event handler to ensure it is not an IME event.
 30921  *
 31361  *
 30922  * In CJK languages, an IME (Input Method Editor) is used to input complex characters.
 31362  * In CJK languages, an IME (Input Method Editor) is used to input complex characters.
 30923  * During an IME composition, keydown events (e.g. Enter or Escape) can be fired
 31363  * During an IME composition, keydown events (e.g. Enter or Escape) can be fired
 30942     }
 31382     }
 30943     keydownHandler(event);
 31383     keydownHandler(event);
 30944   };
 31384   };
 30945 }
 31385 }
 30946 
 31386 
 30947 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-field.js
 31387 ;// ./node_modules/@wordpress/components/build-module/input-control/input-field.js
 30948 /**
 31388 /**
 30949  * External dependencies
 31389  * External dependencies
 30950  */
 31390  */
 30951 
 31391 
 30952 /**
 31392 /**
 31143   });
 31583   });
 31144 }
 31584 }
 31145 const ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(InputField);
 31585 const ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(InputField);
 31146 /* harmony default export */ const input_field = (ForwardedComponent);
 31586 /* harmony default export */ const input_field = (ForwardedComponent);
 31147 
 31587 
 31148 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font-values.js
 31588 ;// ./node_modules/@wordpress/components/build-module/utils/font-values.js
 31149 /* harmony default export */ const font_values = ({
 31589 /* harmony default export */ const font_values = ({
 31150   'default.fontFamily': "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",
 31590   'default.fontFamily': "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",
 31151   'default.fontSize': '13px',
 31591   'default.fontSize': '13px',
 31152   'helpText.fontSize': '12px',
 31592   'helpText.fontSize': '12px',
 31153   mobileTextMinFontSize: '16px'
 31593   mobileTextMinFontSize: '16px'
 31154 });
 31594 });
 31155 
 31595 
 31156 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font.js
 31596 ;// ./node_modules/@wordpress/components/build-module/utils/font.js
 31157 /**
 31597 /**
 31158  * Internal dependencies
 31598  * Internal dependencies
 31159  */
 31599  */
 31160 
 31600 
 31161 
 31601 
 31167 function font(value) {
 31607 function font(value) {
 31168   var _FONT$value;
 31608   var _FONT$value;
 31169   return (_FONT$value = font_values[value]) !== null && _FONT$value !== void 0 ? _FONT$value : '';
 31609   return (_FONT$value = font_values[value]) !== null && _FONT$value !== void 0 ? _FONT$value : '';
 31170 }
 31610 }
 31171 
 31611 
 31172 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/box-sizing.js
 31612 ;// ./node_modules/@wordpress/components/build-module/utils/box-sizing.js
 31173 function box_sizing_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 31613 function box_sizing_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 31174 /**
 31614 /**
 31175  * External dependencies
 31615  * External dependencies
 31176  */
 31616  */
 31177 
 31617 
 31178 const boxSizingReset =  true ? {
 31618 const boxSizingReset =  true ? {
 31179   name: "kv6lnz",
 31619   name: "kv6lnz",
 31180   styles: "box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"
 31620   styles: "box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"
 31181 } : 0;
 31621 } : 0;
 31182 
 31622 
 31183 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/styles/base-control-styles.js
 31623 ;// ./node_modules/@wordpress/components/build-module/base-control/styles/base-control-styles.js
 31184 
 31624 
 31185 function base_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 31625 function base_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 31186 /**
 31626 /**
 31187  * External dependencies
 31627  * External dependencies
 31188  */
 31628  */
 31192 /**
 31632 /**
 31193  * Internal dependencies
 31633  * Internal dependencies
 31194  */
 31634  */
 31195 
 31635 
 31196 
 31636 
 31197 const base_control_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 31637 const Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 31198   target: "ej5x27r4"
 31638   target: "ej5x27r4"
 31199 } : 0)("font-family:", font('default.fontFamily'), ";font-size:", font('default.fontSize'), ";", boxSizingReset, ";" + ( true ? "" : 0));
 31639 } : 0)("font-family:", font('default.fontFamily'), ";font-size:", font('default.fontSize'), ";", boxSizingReset, ";" + ( true ? "" : 0));
 31200 const deprecatedMarginField = ({
 31640 const deprecatedMarginField = ({
 31201   __nextHasNoMarginBottom = false
 31641   __nextHasNoMarginBottom = false
 31202 }) => {
 31642 }) => {
 31203   return !__nextHasNoMarginBottom && /*#__PURE__*/emotion_react_browser_esm_css("margin-bottom:", space(2), ";" + ( true ? "" : 0),  true ? "" : 0);
 31643   return !__nextHasNoMarginBottom && /*#__PURE__*/emotion_react_browser_esm_css("margin-bottom:", space(2), ";" + ( true ? "" : 0),  true ? "" : 0);
 31204 };
 31644 };
 31205 const StyledField = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 31645 const StyledField = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 31206   target: "ej5x27r3"
 31646   target: "ej5x27r3"
 31207 } : 0)(deprecatedMarginField, " .components-panel__row &{margin-bottom:inherit;}" + ( true ? "" : 0));
 31647 } : 0)(deprecatedMarginField, " .components-panel__row &{margin-bottom:inherit;}" + ( true ? "" : 0));
 31208 const labelStyles = /*#__PURE__*/emotion_react_browser_esm_css(baseLabelTypography, ";display:inline-block;margin-bottom:", space(2), ";padding:0;" + ( true ? "" : 0),  true ? "" : 0);
 31648 const labelStyles = /*#__PURE__*/emotion_react_browser_esm_css(baseLabelTypography, ";display:block;margin-bottom:", space(2), ";padding:0;" + ( true ? "" : 0),  true ? "" : 0);
 31209 const StyledLabel = /*#__PURE__*/emotion_styled_base_browser_esm("label",  true ? {
 31649 const StyledLabel = /*#__PURE__*/emotion_styled_base_browser_esm("label",  true ? {
 31210   target: "ej5x27r2"
 31650   target: "ej5x27r2"
 31211 } : 0)(labelStyles, ";" + ( true ? "" : 0));
 31651 } : 0)(labelStyles, ";" + ( true ? "" : 0));
 31212 var base_control_styles_ref =  true ? {
 31652 var base_control_styles_ref =  true ? {
 31213   name: "11yad0w",
 31653   name: "11yad0w",
 31223 } : 0)("margin-top:", space(2), ";margin-bottom:0;font-size:", font('helpText.fontSize'), ";font-style:normal;color:", COLORS.gray[700], ";", deprecatedMarginHelp, ";" + ( true ? "" : 0));
 31663 } : 0)("margin-top:", space(2), ";margin-bottom:0;font-size:", font('helpText.fontSize'), ";font-style:normal;color:", COLORS.gray[700], ";", deprecatedMarginHelp, ";" + ( true ? "" : 0));
 31224 const StyledVisualLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 31664 const StyledVisualLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 31225   target: "ej5x27r0"
 31665   target: "ej5x27r0"
 31226 } : 0)(labelStyles, ";" + ( true ? "" : 0));
 31666 } : 0)(labelStyles, ";" + ( true ? "" : 0));
 31227 
 31667 
 31228 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/index.js
 31668 ;// ./node_modules/@wordpress/components/build-module/base-control/index.js
 31229 /**
 31669 /**
 31230  * External dependencies
 31670  * External dependencies
 31231  */
 31671  */
 31232 
 31672 
       
 31673 /**
       
 31674  * WordPress dependencies
       
 31675  */
       
 31676 
       
 31677 
 31233 
 31678 
 31234 /**
 31679 /**
 31235  * Internal dependencies
 31680  * Internal dependencies
 31236  */
 31681  */
 31237 
 31682 
 31238 
 31683 
 31239 
 31684 
 31240 
 31685 
 31241 
 31686 
 31242 
       
 31243 
       
 31244 /**
       
 31245  * `BaseControl` is a component used to generate labels and help text for components handling user inputs.
       
 31246  *
       
 31247  * ```jsx
       
 31248  * import { BaseControl, useBaseControlProps } from '@wordpress/components';
       
 31249  *
       
 31250  * // Render a `BaseControl` for a textarea input
       
 31251  * const MyCustomTextareaControl = ({ children, ...baseProps }) => (
       
 31252  * 	// `useBaseControlProps` is a convenience hook to get the props for the `BaseControl`
       
 31253  * 	// and the inner control itself. Namely, it takes care of generating a unique `id`,
       
 31254  * 	// properly associating it with the `label` and `help` elements.
       
 31255  * 	const { baseControlProps, controlProps } = useBaseControlProps( baseProps );
       
 31256  *
       
 31257  * 	return (
       
 31258  * 		<BaseControl { ...baseControlProps } __nextHasNoMarginBottom={ true }>
       
 31259  * 			<textarea { ...controlProps }>
       
 31260  * 			  { children }
       
 31261  * 			</textarea>
       
 31262  * 		</BaseControl>
       
 31263  * 	);
       
 31264  * );
       
 31265  * ```
       
 31266  */
       
 31267 const UnconnectedBaseControl = props => {
 31687 const UnconnectedBaseControl = props => {
 31268   const {
 31688   const {
 31269     __nextHasNoMarginBottom = false,
 31689     __nextHasNoMarginBottom = false,
       
 31690     __associatedWPComponentName = 'BaseControl',
 31270     id,
 31691     id,
 31271     label,
 31692     label,
 31272     hideLabelFromVision = false,
 31693     hideLabelFromVision = false,
 31273     help,
 31694     help,
 31274     className,
 31695     className,
 31275     children
 31696     children
 31276   } = useContextSystem(props, 'BaseControl');
 31697   } = useContextSystem(props, 'BaseControl');
 31277   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control_styles_Wrapper, {
 31698   if (!__nextHasNoMarginBottom) {
       
 31699     external_wp_deprecated_default()(`Bottom margin styles for wp.components.${__associatedWPComponentName}`, {
       
 31700       since: '6.7',
       
 31701       version: '7.0',
       
 31702       hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version.'
       
 31703     });
       
 31704   }
       
 31705   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
 31278     className: className,
 31706     className: className,
 31279     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(StyledField, {
 31707     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(StyledField, {
 31280       className: "components-base-control__field"
 31708       className: "components-base-control__field"
 31281       // TODO: Official deprecation for this should start after all internal usages have been migrated
 31709       // TODO: Official deprecation for this should start after all internal usages have been migrated
 31282       ,
 31710       ,
 31301       __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 31729       __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 31302       children: help
 31730       children: help
 31303     })]
 31731     })]
 31304   });
 31732   });
 31305 };
 31733 };
 31306 
 31734 const UnforwardedVisualLabel = (props, ref) => {
 31307 /**
 31735   const {
 31308  * `BaseControl.VisualLabel` is used to render a purely visual label inside a `BaseControl` component.
 31736     className,
 31309  *
 31737     children,
 31310  * It should only be used in cases where the children being rendered inside `BaseControl` are already accessibly labeled,
 31738     ...restProps
 31311  * e.g., a button, but we want an additional visual label for that section equivalent to the labels `BaseControl` would
 31739   } = props;
 31312  * otherwise use if the `label` prop was passed.
       
 31313  *
       
 31314  * @example
       
 31315  * import { BaseControl } from '@wordpress/components';
       
 31316  *
       
 31317  * const MyBaseControl = () => (
       
 31318  * 	<BaseControl help="This button is already accessibly labeled.">
       
 31319  * 		<BaseControl.VisualLabel>Author</BaseControl.VisualLabel>
       
 31320  * 		<Button>Select an author</Button>
       
 31321  * 	</BaseControl>
       
 31322  * );
       
 31323  */
       
 31324 const VisualLabel = ({
       
 31325   className,
       
 31326   children,
       
 31327   ...props
       
 31328 }) => {
       
 31329   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledVisualLabel, {
 31740   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledVisualLabel, {
 31330     ...props,
 31741     ref: ref,
       
 31742     ...restProps,
 31331     className: dist_clsx('components-base-control__label', className),
 31743     className: dist_clsx('components-base-control__label', className),
 31332     children: children
 31744     children: children
 31333   });
 31745   });
 31334 };
 31746 };
       
 31747 const VisualLabel = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedVisualLabel);
       
 31748 
       
 31749 /**
       
 31750  * `BaseControl` is a component used to generate labels and help text for components handling user inputs.
       
 31751  *
       
 31752  * ```jsx
       
 31753  * import { BaseControl, useBaseControlProps } from '@wordpress/components';
       
 31754  *
       
 31755  * // Render a `BaseControl` for a textarea input
       
 31756  * const MyCustomTextareaControl = ({ children, ...baseProps }) => (
       
 31757  * 	// `useBaseControlProps` is a convenience hook to get the props for the `BaseControl`
       
 31758  * 	// and the inner control itself. Namely, it takes care of generating a unique `id`,
       
 31759  * 	// properly associating it with the `label` and `help` elements.
       
 31760  * 	const { baseControlProps, controlProps } = useBaseControlProps( baseProps );
       
 31761  *
       
 31762  * 	return (
       
 31763  * 		<BaseControl { ...baseControlProps } __nextHasNoMarginBottom>
       
 31764  * 			<textarea { ...controlProps }>
       
 31765  * 			  { children }
       
 31766  * 			</textarea>
       
 31767  * 		</BaseControl>
       
 31768  * 	);
       
 31769  * );
       
 31770  * ```
       
 31771  */
 31335 const BaseControl = Object.assign(contextConnectWithoutRef(UnconnectedBaseControl, 'BaseControl'), {
 31772 const BaseControl = Object.assign(contextConnectWithoutRef(UnconnectedBaseControl, 'BaseControl'), {
       
 31773   /**
       
 31774    * `BaseControl.VisualLabel` is used to render a purely visual label inside a `BaseControl` component.
       
 31775    *
       
 31776    * It should only be used in cases where the children being rendered inside `BaseControl` are already accessibly labeled,
       
 31777    * e.g., a button, but we want an additional visual label for that section equivalent to the labels `BaseControl` would
       
 31778    * otherwise use if the `label` prop was passed.
       
 31779    *
       
 31780    * ```jsx
       
 31781    * import { BaseControl } from '@wordpress/components';
       
 31782    *
       
 31783    * const MyBaseControl = () => (
       
 31784    * 	<BaseControl
       
 31785    * 		__nextHasNoMarginBottom
       
 31786    * 		help="This button is already accessibly labeled."
       
 31787    * 	>
       
 31788    * 		<BaseControl.VisualLabel>Author</BaseControl.VisualLabel>
       
 31789    * 		<Button>Select an author</Button>
       
 31790    * 	</BaseControl>
       
 31791    * );
       
 31792    * ```
       
 31793    */
 31336   VisualLabel
 31794   VisualLabel
 31337 });
 31795 });
 31338 /* harmony default export */ const base_control = (BaseControl);
 31796 /* harmony default export */ const base_control = (BaseControl);
 31339 
 31797 
 31340 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/index.js
 31798 ;// ./node_modules/@wordpress/components/build-module/utils/deprecated-36px-size.js
       
 31799 /**
       
 31800  * WordPress dependencies
       
 31801  */
       
 31802 
       
 31803 function maybeWarnDeprecated36pxSize({
       
 31804   componentName,
       
 31805   __next40pxDefaultSize,
       
 31806   size,
       
 31807   __shouldNotWarnDeprecated36pxSize
       
 31808 }) {
       
 31809   if (__shouldNotWarnDeprecated36pxSize || __next40pxDefaultSize || size !== undefined && size !== 'default') {
       
 31810     return;
       
 31811   }
       
 31812   external_wp_deprecated_default()(`36px default size for wp.components.${componentName}`, {
       
 31813     since: '6.8',
       
 31814     version: '7.1',
       
 31815     hint: 'Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version.'
       
 31816   });
       
 31817 }
       
 31818 
       
 31819 ;// ./node_modules/@wordpress/components/build-module/input-control/index.js
 31341 /**
 31820 /**
 31342  * External dependencies
 31821  * External dependencies
 31343  */
 31822  */
 31344 
 31823 
 31345 /**
 31824 /**
 31349 
 31828 
 31350 
 31829 
 31351 /**
 31830 /**
 31352  * Internal dependencies
 31831  * Internal dependencies
 31353  */
 31832  */
       
 31833 
 31354 
 31834 
 31355 
 31835 
 31356 
 31836 
 31357 
 31837 
 31358 
 31838 
 31365   return idProp || id;
 31845   return idProp || id;
 31366 }
 31846 }
 31367 function UnforwardedInputControl(props, ref) {
 31847 function UnforwardedInputControl(props, ref) {
 31368   const {
 31848   const {
 31369     __next40pxDefaultSize,
 31849     __next40pxDefaultSize,
       
 31850     __shouldNotWarnDeprecated36pxSize,
 31370     __unstableStateReducer: stateReducer = state => state,
 31851     __unstableStateReducer: stateReducer = state => state,
 31371     __unstableInputWidth,
 31852     __unstableInputWidth,
 31372     className,
 31853     className,
 31373     disabled = false,
 31854     disabled = false,
 31374     help,
 31855     help,
 31395     onChange
 31876     onChange
 31396   });
 31877   });
 31397   const helpProp = !!help ? {
 31878   const helpProp = !!help ? {
 31398     'aria-describedby': `${id}__help`
 31879     'aria-describedby': `${id}__help`
 31399   } : {};
 31880   } : {};
       
 31881   maybeWarnDeprecated36pxSize({
       
 31882     componentName: 'InputControl',
       
 31883     __next40pxDefaultSize,
       
 31884     size,
       
 31885     __shouldNotWarnDeprecated36pxSize
       
 31886   });
 31400   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 31887   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 31401     className: classes,
 31888     className: classes,
 31402     help: help,
 31889     help: help,
 31403     id: id,
 31890     id: id,
 31404     __nextHasNoMarginBottom: true,
 31891     __nextHasNoMarginBottom: true,
 31424         disabled: disabled,
 31911         disabled: disabled,
 31425         id: id,
 31912         id: id,
 31426         isPressEnterToChange: isPressEnterToChange,
 31913         isPressEnterToChange: isPressEnterToChange,
 31427         onKeyDown: onKeyDown,
 31914         onKeyDown: onKeyDown,
 31428         onValidate: onValidate,
 31915         onValidate: onValidate,
 31429         paddingInlineStart: prefix ? space(2) : undefined,
 31916         paddingInlineStart: prefix ? space(1) : undefined,
 31430         paddingInlineEnd: suffix ? space(2) : undefined,
 31917         paddingInlineEnd: suffix ? space(1) : undefined,
 31431         ref: ref,
 31918         ref: ref,
 31432         size: size,
 31919         size: size,
 31433         stateReducer: stateReducer,
 31920         stateReducer: stateReducer,
 31434         ...draftHookProps
 31921         ...draftHookProps
 31435       })
 31922       })
 31448  * const Example = () => {
 31935  * const Example = () => {
 31449  *   const [ value, setValue ] = useState( '' );
 31936  *   const [ value, setValue ] = useState( '' );
 31450  *
 31937  *
 31451  *   return (
 31938  *   return (
 31452  *  	<InputControl
 31939  *  	<InputControl
       
 31940  * 			__next40pxDefaultSize
 31453  *  		value={ value }
 31941  *  		value={ value }
 31454  *  		onChange={ ( nextValue ) => setValue( nextValue ?? '' ) }
 31942  *  		onChange={ ( nextValue ) => setValue( nextValue ?? '' ) }
 31455  *  	/>
 31943  *  	/>
 31456  *   );
 31944  *   );
 31457  * };
 31945  * };
 31458  * ```
 31946  * ```
 31459  */
 31947  */
 31460 const InputControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedInputControl);
 31948 const InputControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedInputControl);
 31461 /* harmony default export */ const input_control = (InputControl);
 31949 /* harmony default export */ const input_control = (InputControl);
 31462 
 31950 
 31463 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dashicon/index.js
 31951 ;// ./node_modules/@wordpress/components/build-module/dashicon/index.js
 31464 
 31952 
 31465 /**
 31953 /**
 31466  * @typedef OwnProps
 31954  * @typedef OwnProps
 31467  *
 31955  *
 31468  * @property {import('./types').IconKey} icon        Icon name
 31956  * @property {import('./types').IconKey} icon        Icon name
 31502     ...extraProps
 31990     ...extraProps
 31503   });
 31991   });
 31504 }
 31992 }
 31505 /* harmony default export */ const dashicon = (Dashicon);
 31993 /* harmony default export */ const dashicon = (Dashicon);
 31506 
 31994 
 31507 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/icon/index.js
 31995 ;// ./node_modules/@wordpress/components/build-module/icon/index.js
 31508 /**
 31996 /**
 31509  * External dependencies
 31997  * External dependencies
 31510  */
 31998  */
 31511 
 31999 
 31512 /**
 32000 /**
 31518 /**
 32006 /**
 31519  * Internal dependencies
 32007  * Internal dependencies
 31520  */
 32008  */
 31521 
 32009 
 31522 
 32010 
       
 32011 /**
       
 32012  * Renders a raw icon without any initial styling or wrappers.
       
 32013  *
       
 32014  * ```jsx
       
 32015  * import { wordpress } from '@wordpress/icons';
       
 32016  *
       
 32017  * <Icon icon={ wordpress } />
       
 32018  * ```
       
 32019  */
 31523 function Icon({
 32020 function Icon({
 31524   icon = null,
 32021   icon = null,
 31525   size = 'string' === typeof icon ? 20 : 24,
 32022   size = 'string' === typeof icon ? 20 : 24,
 31526   ...additionalProps
 32023   ...additionalProps
 31527 }) {
 32024 }) {
 31563   }
 32060   }
 31564   return icon;
 32061   return icon;
 31565 }
 32062 }
 31566 /* harmony default export */ const build_module_icon = (Icon);
 32063 /* harmony default export */ const build_module_icon = (Icon);
 31567 
 32064 
 31568 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
 32065 ;// ./node_modules/@wordpress/components/build-module/button/index.js
 31569 /**
 32066 /**
 31570  * External dependencies
 32067  * External dependencies
 31571  */
 32068  */
 31572 
 32069 
 31573 /**
 32070 /**
 31578 
 32075 
 31579 
 32076 
 31580 /**
 32077 /**
 31581  * Internal dependencies
 32078  * Internal dependencies
 31582  */
 32079  */
 31583 
       
 31584 
       
 31585 
 32080 
 31586 
 32081 
 31587 
 32082 
 31588 
 32083 
 31589 
 32084 
 31590 const disabledEventsOnDisabledButton = ['onMouseDown', 'onClick'];
 32085 const disabledEventsOnDisabledButton = ['onMouseDown', 'onClick'];
 31591 function button_useDeprecatedProps({
 32086 function button_useDeprecatedProps({
       
 32087   __experimentalIsFocusable,
 31592   isDefault,
 32088   isDefault,
 31593   isPrimary,
 32089   isPrimary,
 31594   isSecondary,
 32090   isSecondary,
 31595   isTertiary,
 32091   isTertiary,
 31596   isLink,
 32092   isLink,
 31597   isPressed,
 32093   isPressed,
 31598   isSmall,
 32094   isSmall,
 31599   size,
 32095   size,
 31600   variant,
 32096   variant,
       
 32097   describedBy,
 31601   ...otherProps
 32098   ...otherProps
 31602 }) {
 32099 }) {
 31603   let computedSize = size;
 32100   let computedSize = size;
 31604   let computedVariant = variant;
 32101   let computedVariant = variant;
 31605   const newProps = {
 32102   const newProps = {
       
 32103     accessibleWhenDisabled: __experimentalIsFocusable,
 31606     // @todo Mark `isPressed` as deprecated
 32104     // @todo Mark `isPressed` as deprecated
 31607     'aria-pressed': isPressed
 32105     'aria-pressed': isPressed,
       
 32106     description: describedBy
 31608   };
 32107   };
 31609   if (isSmall) {
 32108   if (isSmall) {
 31610     var _computedSize;
 32109     var _computedSize;
 31611     (_computedSize = computedSize) !== null && _computedSize !== void 0 ? _computedSize : computedSize = 'small';
 32110     (_computedSize = computedSize) !== null && _computedSize !== void 0 ? _computedSize : computedSize = 'small';
 31612   }
 32111   }
 31642   };
 32141   };
 31643 }
 32142 }
 31644 function UnforwardedButton(props, ref) {
 32143 function UnforwardedButton(props, ref) {
 31645   const {
 32144   const {
 31646     __next40pxDefaultSize,
 32145     __next40pxDefaultSize,
       
 32146     accessibleWhenDisabled,
 31647     isBusy,
 32147     isBusy,
 31648     isDestructive,
 32148     isDestructive,
 31649     className,
 32149     className,
 31650     disabled,
 32150     disabled,
 31651     icon,
 32151     icon,
 31657     label,
 32157     label,
 31658     children,
 32158     children,
 31659     size = 'default',
 32159     size = 'default',
 31660     text,
 32160     text,
 31661     variant,
 32161     variant,
 31662     __experimentalIsFocusable: isFocusable,
 32162     description,
 31663     describedBy,
       
 31664     ...buttonOrAnchorProps
 32163     ...buttonOrAnchorProps
 31665   } = button_useDeprecatedProps(props);
 32164   } = button_useDeprecatedProps(props);
 31666   const {
 32165   const {
 31667     href,
 32166     href,
 31668     target,
 32167     target,
 31693     'is-link': variant === 'link',
 32192     'is-link': variant === 'link',
 31694     'is-destructive': isDestructive,
 32193     'is-destructive': isDestructive,
 31695     'has-text': !!icon && (hasChildren || text),
 32194     'has-text': !!icon && (hasChildren || text),
 31696     'has-icon': !!icon
 32195     'has-icon': !!icon
 31697   });
 32196   });
 31698   const trulyDisabled = disabled && !isFocusable;
 32197   const trulyDisabled = disabled && !accessibleWhenDisabled;
 31699   const Tag = href !== undefined && !trulyDisabled ? 'a' : 'button';
 32198   const Tag = href !== undefined && !disabled ? 'a' : 'button';
 31700   const buttonProps = Tag === 'button' ? {
 32199   const buttonProps = Tag === 'button' ? {
 31701     type: 'button',
 32200     type: 'button',
 31702     disabled: trulyDisabled,
 32201     disabled: trulyDisabled,
 31703     'aria-checked': ariaChecked,
 32202     'aria-checked': ariaChecked,
 31704     'aria-pressed': ariaPressed,
 32203     'aria-pressed': ariaPressed,
 31707   const anchorProps = Tag === 'a' ? {
 32206   const anchorProps = Tag === 'a' ? {
 31708     href,
 32207     href,
 31709     target
 32208     target
 31710   } : {};
 32209   } : {};
 31711   const disableEventProps = {};
 32210   const disableEventProps = {};
 31712   if (disabled && isFocusable) {
 32211   if (disabled && accessibleWhenDisabled) {
 31713     // In this case, the button will be disabled, but still focusable and
 32212     // In this case, the button will be disabled, but still focusable and
 31714     // perceivable by screen reader users.
 32213     // perceivable by screen reader users.
 31715     buttonProps['aria-disabled'] = true;
 32214     buttonProps['aria-disabled'] = true;
 31716     anchorProps['aria-disabled'] = true;
 32215     anchorProps['aria-disabled'] = true;
 31717     for (const disabledEvent of disabledEventsOnDisabledButton) {
 32216     for (const disabledEvent of disabledEventsOnDisabledButton) {
 31734   !!label &&
 32233   !!label &&
 31735   // The children are empty and...
 32234   // The children are empty and...
 31736   !children?.length &&
 32235   !children?.length &&
 31737   // The tooltip is not explicitly disabled.
 32236   // The tooltip is not explicitly disabled.
 31738   false !== showTooltip);
 32237   false !== showTooltip);
 31739   const descriptionId = describedBy ? instanceId : undefined;
 32238   const descriptionId = description ? instanceId : undefined;
 31740   const describedById = additionalProps['aria-describedby'] || descriptionId;
 32239   const describedById = additionalProps['aria-describedby'] || descriptionId;
 31741   const commonProps = {
 32240   const commonProps = {
 31742     className: classes,
 32241     className: classes,
 31743     'aria-label': additionalProps['aria-label'] || label,
 32242     'aria-label': additionalProps['aria-label'] || label,
 31744     'aria-describedby': describedById,
 32243     'aria-describedby': describedById,
 31772   // In order to avoid some React reconciliation issues, we are always rendering
 32271   // In order to avoid some React reconciliation issues, we are always rendering
 31773   // the `Tooltip` component even when `shouldShowTooltip` is `false`.
 32272   // the `Tooltip` component even when `shouldShowTooltip` is `false`.
 31774   // In order to make sure that the tooltip doesn't show when it shouldn't,
 32273   // In order to make sure that the tooltip doesn't show when it shouldn't,
 31775   // we don't pass the props to the `Tooltip` component.
 32274   // we don't pass the props to the `Tooltip` component.
 31776   const tooltipProps = shouldShowTooltip ? {
 32275   const tooltipProps = shouldShowTooltip ? {
 31777     text: children?.length && describedBy ? describedBy : label,
 32276     text: children?.length && description ? description : label,
 31778     shortcut,
 32277     shortcut,
 31779     placement: tooltipPosition &&
 32278     placement: tooltipPosition &&
 31780     // Convert legacy `position` values to be used with the new `placement` prop
 32279     // Convert legacy `position` values to be used with the new `placement` prop
 31781     positionToPlacement(tooltipPosition)
 32280     positionToPlacement(tooltipPosition)
 31782   } : {};
 32281   } : {};
 31783   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 32282   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 31784     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 32283     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 31785       ...tooltipProps,
 32284       ...tooltipProps,
 31786       children: element
 32285       children: element
 31787     }), describedBy && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 32286     }), description && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 31788       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 32287       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 31789         id: descriptionId,
 32288         id: descriptionId,
 31790         children: describedBy
 32289         children: description
 31791       })
 32290       })
 31792     })]
 32291     })]
 31793   });
 32292   });
 31794 }
 32293 }
 31795 
 32294 
 31809  * ```
 32308  * ```
 31810  */
 32309  */
 31811 const Button = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedButton);
 32310 const Button = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedButton);
 31812 /* harmony default export */ const build_module_button = (Button);
 32311 /* harmony default export */ const build_module_button = (Button);
 31813 
 32312 
 31814 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/styles/number-control-styles.js
 32313 ;// ./node_modules/@wordpress/components/build-module/number-control/styles/number-control-styles.js
 31815 
 32314 
 31816 function number_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 32315 function number_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 31817 /**
 32316 /**
 31818  * External dependencies
 32317  * External dependencies
 31819  */
 32318  */
 31846 const smallSpinButtons = /*#__PURE__*/emotion_react_browser_esm_css("width:", space(5), ";min-width:", space(5), ";height:", space(5), ";" + ( true ? "" : 0),  true ? "" : 0);
 32345 const smallSpinButtons = /*#__PURE__*/emotion_react_browser_esm_css("width:", space(5), ";min-width:", space(5), ";height:", space(5), ";" + ( true ? "" : 0),  true ? "" : 0);
 31847 const styles = {
 32346 const styles = {
 31848   smallSpinButtons
 32347   smallSpinButtons
 31849 };
 32348 };
 31850 
 32349 
 31851 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/math.js
 32350 ;// ./node_modules/@wordpress/components/build-module/utils/math.js
 31852 /**
 32351 /**
 31853  * Parses and retrieves a number value.
 32352  * Parses and retrieves a number value.
 31854  *
 32353  *
 31855  * @param {unknown} value The incoming value.
 32354  * @param {unknown} value The incoming value.
 31856  *
 32355  *
 31867  * @param {Array<number|string>} args Values to add together.
 32366  * @param {Array<number|string>} args Values to add together.
 31868  *
 32367  *
 31869  * @return {number} The sum of values.
 32368  * @return {number} The sum of values.
 31870  */
 32369  */
 31871 function add(...args) {
 32370 function add(...args) {
 31872   return args.reduce( /** @type {(sum:number, arg: number|string) => number} */
 32371   return args.reduce(/** @type {(sum:number, arg: number|string) => number} */
 31873   (sum, arg) => sum + getNumber(arg), 0);
 32372   (sum, arg) => sum + getNumber(arg), 0);
 31874 }
 32373 }
 31875 
 32374 
 31876 /**
 32375 /**
 31877  * Safely subtracts 2 values.
 32376  * Safely subtracts 2 values.
 31879  * @param {Array<number|string>} args Values to subtract together.
 32378  * @param {Array<number|string>} args Values to subtract together.
 31880  *
 32379  *
 31881  * @return {number} The difference of the values.
 32380  * @return {number} The difference of the values.
 31882  */
 32381  */
 31883 function subtract(...args) {
 32382 function subtract(...args) {
 31884   return args.reduce( /** @type {(diff:number, arg: number|string, index:number) => number} */
 32383   return args.reduce(/** @type {(diff:number, arg: number|string, index:number) => number} */
 31885   (diff, arg, index) => {
 32384   (diff, arg, index) => {
 31886     const value = getNumber(arg);
 32385     const value = getNumber(arg);
 31887     return index === 0 ? value : diff - value;
 32386     return index === 0 ? value : diff - value;
 31888   }, 0);
 32387   }, 0);
 31889 }
 32388 }
 31931   const rounded = Math.round(baseValue / stepValue) * stepValue;
 32430   const rounded = Math.round(baseValue / stepValue) * stepValue;
 31932   const clampedValue = math_clamp(rounded, min, max);
 32431   const clampedValue = math_clamp(rounded, min, max);
 31933   return precision ? getNumber(clampedValue.toFixed(precision)) : clampedValue;
 32432   return precision ? getNumber(clampedValue.toFixed(precision)) : clampedValue;
 31934 }
 32433 }
 31935 
 32434 
 31936 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/h-stack/utils.js
 32435 ;// ./node_modules/@wordpress/components/build-module/h-stack/utils.js
 31937 /**
 32436 /**
 31938  * External dependencies
 32437  * External dependencies
 31939  */
 32438  */
 31940 
 32439 
 31941 /**
 32440 /**
 32043     align: alignment
 32542     align: alignment
 32044   };
 32543   };
 32045   return alignmentProps;
 32544   return alignmentProps;
 32046 }
 32545 }
 32047 
 32546 
 32048 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/get-valid-children.js
 32547 ;// ./node_modules/@wordpress/components/build-module/utils/get-valid-children.js
 32049 /**
 32548 /**
 32050  * External dependencies
 32549  * External dependencies
 32051  */
 32550  */
 32052 
 32551 
 32053 /**
 32552 /**
 32067     return [children];
 32566     return [children];
 32068   }
 32567   }
 32069   return external_wp_element_namespaceObject.Children.toArray(children).filter(child => (0,external_wp_element_namespaceObject.isValidElement)(child));
 32568   return external_wp_element_namespaceObject.Children.toArray(children).filter(child => (0,external_wp_element_namespaceObject.isValidElement)(child));
 32070 }
 32569 }
 32071 
 32570 
 32072 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/h-stack/hook.js
 32571 ;// ./node_modules/@wordpress/components/build-module/h-stack/hook.js
 32073 /**
 32572 /**
 32074  * External dependencies
 32573  * External dependencies
 32075  */
 32574  */
 32076 
 32575 
 32077 /**
 32576 /**
 32120     ...flexProps
 32619     ...flexProps
 32121   } = useFlex(propsForFlex);
 32620   } = useFlex(propsForFlex);
 32122   return flexProps;
 32621   return flexProps;
 32123 }
 32622 }
 32124 
 32623 
 32125 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/h-stack/component.js
 32624 ;// ./node_modules/@wordpress/components/build-module/h-stack/component.js
 32126 /**
 32625 /**
 32127  * Internal dependencies
 32626  * Internal dependencies
 32128  */
 32627  */
 32129 
 32628 
 32130 
 32629 
 32162  * ```
 32661  * ```
 32163  */
 32662  */
 32164 const HStack = contextConnect(UnconnectedHStack, 'HStack');
 32663 const HStack = contextConnect(UnconnectedHStack, 'HStack');
 32165 /* harmony default export */ const h_stack_component = (HStack);
 32664 /* harmony default export */ const h_stack_component = (HStack);
 32166 
 32665 
 32167 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/number-control/index.js
 32666 ;// ./node_modules/@wordpress/components/build-module/number-control/index.js
 32168 /**
 32667 /**
 32169  * External dependencies
 32668  * External dependencies
 32170  */
 32669  */
 32171 
 32670 
 32172 /**
 32671 /**
 32179 
 32678 
 32180 
 32679 
 32181 /**
 32680 /**
 32182  * Internal dependencies
 32681  * Internal dependencies
 32183  */
 32682  */
 32184 
       
 32185 
 32683 
 32186 
 32684 
 32187 
 32685 
 32188 
 32686 
 32189 
 32687 
 32212     type: typeProp = 'number',
 32710     type: typeProp = 'number',
 32213     value: valueProp,
 32711     value: valueProp,
 32214     size = 'default',
 32712     size = 'default',
 32215     suffix,
 32713     suffix,
 32216     onChange = number_control_noop,
 32714     onChange = number_control_noop,
       
 32715     __shouldNotWarnDeprecated36pxSize,
 32217     ...restProps
 32716     ...restProps
 32218   } = useDeprecated36pxDefaultSizeProp(props);
 32717   } = useDeprecated36pxDefaultSizeProp(props);
       
 32718   maybeWarnDeprecated36pxSize({
       
 32719     componentName: 'NumberControl',
       
 32720     size,
       
 32721     __next40pxDefaultSize: restProps.__next40pxDefaultSize,
       
 32722     __shouldNotWarnDeprecated36pxSize
       
 32723   });
 32219   if (hideHTMLArrows) {
 32724   if (hideHTMLArrows) {
 32220     external_wp_deprecated_default()('wp.components.NumberControl hideHTMLArrows prop ', {
 32725     external_wp_deprecated_default()('wp.components.NumberControl hideHTMLArrows prop ', {
 32221       alternative: 'spinControls="none"',
 32726       alternative: 'spinControls="none"',
 32222       since: '6.2',
 32727       since: '6.2',
 32223       version: '6.3'
 32728       version: '6.3'
 32338     className: classes,
 32843     className: classes,
 32339     dragDirection: dragDirection,
 32844     dragDirection: dragDirection,
 32340     hideHTMLArrows: spinControls !== 'native',
 32845     hideHTMLArrows: spinControls !== 'native',
 32341     isDragEnabled: isDragEnabled,
 32846     isDragEnabled: isDragEnabled,
 32342     label: label,
 32847     label: label,
 32343     max: max,
 32848     max: max === Infinity ? undefined : max,
 32344     min: min,
 32849     min: min === -Infinity ? undefined : min,
 32345     ref: mergedRef,
 32850     ref: mergedRef,
 32346     required: required,
 32851     required: required,
 32347     step: step,
 32852     step: step,
 32348     type: typeProp
 32853     type: typeProp
 32349     // @ts-expect-error TODO: Resolve discrepancy between `value` types in InputControl based components
 32854     // @ts-expect-error TODO: Resolve discrepancy between `value` types in InputControl based components
 32353       var _stateReducerProp;
 32858       var _stateReducerProp;
 32354       const baseState = numberControlStateReducer(state, action);
 32859       const baseState = numberControlStateReducer(state, action);
 32355       return (_stateReducerProp = stateReducerProp?.(baseState, action)) !== null && _stateReducerProp !== void 0 ? _stateReducerProp : baseState;
 32860       return (_stateReducerProp = stateReducerProp?.(baseState, action)) !== null && _stateReducerProp !== void 0 ? _stateReducerProp : baseState;
 32356     },
 32861     },
 32357     size: size,
 32862     size: size,
       
 32863     __shouldNotWarnDeprecated36pxSize: true,
 32358     suffix: spinControls === 'custom' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 32864     suffix: spinControls === 'custom' ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 32359       children: [suffix, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 32865       children: [suffix, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 32360         marginBottom: 0,
 32866         marginBottom: 0,
 32361         marginRight: 2,
 32867         marginRight: 2,
 32362         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 32868         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 32381   });
 32887   });
 32382 }
 32888 }
 32383 const NumberControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedNumberControl);
 32889 const NumberControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedNumberControl);
 32384 /* harmony default export */ const number_control = (NumberControl);
 32890 /* harmony default export */ const number_control = (NumberControl);
 32385 
 32891 
 32386 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/styles/angle-picker-control-styles.js
 32892 ;// ./node_modules/@wordpress/components/build-module/angle-picker-control/styles/angle-picker-control-styles.js
 32387 
 32893 
 32388 function angle_picker_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 32894 function angle_picker_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 32389 /**
 32895 /**
 32390  * External dependencies
 32896  * External dependencies
 32391  */
 32897  */
 32399 
 32905 
 32400 const CIRCLE_SIZE = 32;
 32906 const CIRCLE_SIZE = 32;
 32401 const INNER_CIRCLE_SIZE = 6;
 32907 const INNER_CIRCLE_SIZE = 6;
 32402 const CircleRoot = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 32908 const CircleRoot = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 32403   target: "eln3bjz3"
 32909   target: "eln3bjz3"
 32404 } : 0)("border-radius:50%;border:", config_values.borderWidth, " solid ", COLORS.ui.border, ";box-sizing:border-box;cursor:grab;height:", CIRCLE_SIZE, "px;overflow:hidden;width:", CIRCLE_SIZE, "px;:active{cursor:grabbing;}" + ( true ? "" : 0));
 32910 } : 0)("border-radius:", config_values.radiusRound, ";border:", config_values.borderWidth, " solid ", COLORS.ui.border, ";box-sizing:border-box;cursor:grab;height:", CIRCLE_SIZE, "px;overflow:hidden;width:", CIRCLE_SIZE, "px;:active{cursor:grabbing;}" + ( true ? "" : 0));
 32405 const CircleIndicatorWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 32911 const CircleIndicatorWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 32406   target: "eln3bjz2"
 32912   target: "eln3bjz2"
 32407 } : 0)( true ? {
 32913 } : 0)( true ? {
 32408   name: "1r307gh",
 32914   name: "1r307gh",
 32409   styles: "box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"
 32915   styles: "box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"
 32410 } : 0);
 32916 } : 0);
 32411 const CircleIndicator = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 32917 const CircleIndicator = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 32412   target: "eln3bjz1"
 32918   target: "eln3bjz1"
 32413 } : 0)("background:", COLORS.theme.accent, ";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:", INNER_CIRCLE_SIZE, "px;height:", INNER_CIRCLE_SIZE, "px;" + ( true ? "" : 0));
 32919 } : 0)("background:", COLORS.theme.accent, ";border-radius:", config_values.radiusRound, ";box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:", INNER_CIRCLE_SIZE, "px;height:", INNER_CIRCLE_SIZE, "px;" + ( true ? "" : 0));
 32414 const UnitText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
 32920 const UnitText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
 32415   target: "eln3bjz0"
 32921   target: "eln3bjz0"
 32416 } : 0)("color:", COLORS.theme.accent, ";margin-right:", space(3), ";" + ( true ? "" : 0));
 32922 } : 0)("color:", COLORS.theme.accent, ";margin-right:", space(3), ";" + ( true ? "" : 0));
 32417 
 32923 
 32418 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/angle-circle.js
 32924 ;// ./node_modules/@wordpress/components/build-module/angle-picker-control/angle-circle.js
 32419 /**
 32925 /**
 32420  * WordPress dependencies
 32926  * WordPress dependencies
 32421  */
 32927  */
 32422 
 32928 
 32423 
 32929 
 32431   value,
 32937   value,
 32432   onChange,
 32938   onChange,
 32433   ...props
 32939   ...props
 32434 }) {
 32940 }) {
 32435   const angleCircleRef = (0,external_wp_element_namespaceObject.useRef)(null);
 32941   const angleCircleRef = (0,external_wp_element_namespaceObject.useRef)(null);
 32436   const angleCircleCenter = (0,external_wp_element_namespaceObject.useRef)();
 32942   const angleCircleCenterRef = (0,external_wp_element_namespaceObject.useRef)();
 32437   const previousCursorValue = (0,external_wp_element_namespaceObject.useRef)();
 32943   const previousCursorValueRef = (0,external_wp_element_namespaceObject.useRef)();
 32438   const setAngleCircleCenter = () => {
 32944   const setAngleCircleCenter = () => {
 32439     if (angleCircleRef.current === null) {
 32945     if (angleCircleRef.current === null) {
 32440       return;
 32946       return;
 32441     }
 32947     }
 32442     const rect = angleCircleRef.current.getBoundingClientRect();
 32948     const rect = angleCircleRef.current.getBoundingClientRect();
 32443     angleCircleCenter.current = {
 32949     angleCircleCenterRef.current = {
 32444       x: rect.x + rect.width / 2,
 32950       x: rect.x + rect.width / 2,
 32445       y: rect.y + rect.height / 2
 32951       y: rect.y + rect.height / 2
 32446     };
 32952     };
 32447   };
 32953   };
 32448   const changeAngleToPosition = event => {
 32954   const changeAngleToPosition = event => {
 32453     // Prevent (drag) mouse events from selecting and accidentally
 32959     // Prevent (drag) mouse events from selecting and accidentally
 32454     // triggering actions from other elements.
 32960     // triggering actions from other elements.
 32455     event.preventDefault();
 32961     event.preventDefault();
 32456     // Input control needs to lose focus and by preventDefault above, it doesn't.
 32962     // Input control needs to lose focus and by preventDefault above, it doesn't.
 32457     event.target?.focus();
 32963     event.target?.focus();
 32458     if (angleCircleCenter.current !== undefined && onChange !== undefined) {
 32964     if (angleCircleCenterRef.current !== undefined && onChange !== undefined) {
 32459       const {
 32965       const {
 32460         x: centerX,
 32966         x: centerX,
 32461         y: centerY
 32967         y: centerY
 32462       } = angleCircleCenter.current;
 32968       } = angleCircleCenterRef.current;
 32463       onChange(getAngle(centerX, centerY, event.clientX, event.clientY));
 32969       onChange(getAngle(centerX, centerY, event.clientX, event.clientY));
 32464     }
 32970     }
 32465   };
 32971   };
 32466   const {
 32972   const {
 32467     startDrag,
 32973     startDrag,
 32474     onDragMove: changeAngleToPosition,
 32980     onDragMove: changeAngleToPosition,
 32475     onDragEnd: changeAngleToPosition
 32981     onDragEnd: changeAngleToPosition
 32476   });
 32982   });
 32477   (0,external_wp_element_namespaceObject.useEffect)(() => {
 32983   (0,external_wp_element_namespaceObject.useEffect)(() => {
 32478     if (isDragging) {
 32984     if (isDragging) {
 32479       if (previousCursorValue.current === undefined) {
 32985       if (previousCursorValueRef.current === undefined) {
 32480         previousCursorValue.current = document.body.style.cursor;
 32986         previousCursorValueRef.current = document.body.style.cursor;
 32481       }
 32987       }
 32482       document.body.style.cursor = 'grabbing';
 32988       document.body.style.cursor = 'grabbing';
 32483     } else {
 32989     } else {
 32484       document.body.style.cursor = previousCursorValue.current || '';
 32990       document.body.style.cursor = previousCursorValueRef.current || '';
 32485       previousCursorValue.current = undefined;
 32991       previousCursorValueRef.current = undefined;
 32486     }
 32992     }
 32487   }, [isDragging]);
 32993   }, [isDragging]);
 32488   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CircleRoot, {
 32994   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CircleRoot, {
 32489     ref: angleCircleRef,
 32995     ref: angleCircleRef,
 32490     onMouseDown: startDrag,
 32996     onMouseDown: startDrag,
 32512   }
 33018   }
 32513   return angleInDeg;
 33019   return angleInDeg;
 32514 }
 33020 }
 32515 /* harmony default export */ const angle_circle = (AngleCircle);
 33021 /* harmony default export */ const angle_circle = (AngleCircle);
 32516 
 33022 
 32517 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/angle-picker-control/index.js
 33023 ;// ./node_modules/@wordpress/components/build-module/angle-picker-control/index.js
 32518 /**
 33024 /**
 32519  * External dependencies
 33025  * External dependencies
 32520  */
 33026  */
 32521 
 33027 
 32522 
 33028 
 32528 
 33034 
 32529 
 33035 
 32530 /**
 33036 /**
 32531  * Internal dependencies
 33037  * Internal dependencies
 32532  */
 33038  */
 32533 
       
 32534 
 33039 
 32535 
 33040 
 32536 
 33041 
 32537 
 33042 
 32538 
 33043 
 32562     ref: ref,
 33067     ref: ref,
 32563     className: classes,
 33068     className: classes,
 32564     gap: 2,
 33069     gap: 2,
 32565     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
 33070     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
 32566       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(number_control, {
 33071       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(number_control, {
       
 33072         __next40pxDefaultSize: true,
 32567         label: label,
 33073         label: label,
 32568         className: "components-angle-picker-control__input-field",
 33074         className: "components-angle-picker-control__input-field",
 32569         max: 360,
 33075         max: 360,
 32570         min: 0,
 33076         min: 0,
 32571         onChange: handleOnNumberChange,
 33077         onChange: handleOnNumberChange,
 32572         size: "__unstable-large",
       
 32573         step: "1",
 33078         step: "1",
 32574         value: value,
 33079         value: value,
 32575         spinControls: "none",
 33080         spinControls: "none",
 32576         prefix: prefixedUnitText,
 33081         prefix: prefixedUnitText,
 32577         suffix: suffixedUnitText
 33082         suffix: suffixedUnitText
 32613 /* harmony default export */ const angle_picker_control = (AnglePickerControl);
 33118 /* harmony default export */ const angle_picker_control = (AnglePickerControl);
 32614 
 33119 
 32615 // EXTERNAL MODULE: ./node_modules/remove-accents/index.js
 33120 // EXTERNAL MODULE: ./node_modules/remove-accents/index.js
 32616 var remove_accents = __webpack_require__(9681);
 33121 var remove_accents = __webpack_require__(9681);
 32617 var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
 33122 var remove_accents_default = /*#__PURE__*/__webpack_require__.n(remove_accents);
 32618 ;// CONCATENATED MODULE: external ["wp","richText"]
 33123 ;// external ["wp","richText"]
 32619 const external_wp_richText_namespaceObject = window["wp"]["richText"];
 33124 const external_wp_richText_namespaceObject = window["wp"]["richText"];
 32620 ;// CONCATENATED MODULE: external ["wp","a11y"]
 33125 ;// external ["wp","a11y"]
 32621 const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
 33126 const external_wp_a11y_namespaceObject = window["wp"]["a11y"];
 32622 ;// CONCATENATED MODULE: external ["wp","keycodes"]
 33127 ;// external ["wp","keycodes"]
 32623 const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
 33128 const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
 32624 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/strings.js
 33129 ;// ./node_modules/@wordpress/components/build-module/utils/strings.js
 32625 /**
 33130 /**
 32626  * External dependencies
 33131  * External dependencies
 32627  */
 33132  */
 32628 
 33133 
 32629 
 33134 
 32681  */
 33186  */
 32682 function escapeRegExp(string) {
 33187 function escapeRegExp(string) {
 32683   return string.replace(/[\\^$.*+?()[\]{}|]/g, '\\$&');
 33188   return string.replace(/[\\^$.*+?()[\]{}|]/g, '\\$&');
 32684 }
 33189 }
 32685 
 33190 
 32686 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/get-default-use-items.js
 33191 ;// ./node_modules/@wordpress/components/build-module/autocomplete/get-default-use-items.js
 32687 /**
 33192 /**
 32688  * External dependencies
 33193  * External dependencies
 32689  */
 33194  */
 32690 
 33195 
 32691 
 33196 
 32772     }, [filterValue]);
 33277     }, [filterValue]);
 32773     return [items];
 33278     return [items];
 32774   };
 33279   };
 32775 }
 33280 }
 32776 
 33281 
 32777 ;// CONCATENATED MODULE: ./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
 33282 ;// ./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
 32778 
 33283 
 32779 
 33284 
 32780 
 33285 
 32781 
 33286 
 32782 
 33287 
 33047   }), [data, update, refs, elements, floatingStyles]);
 33552   }), [data, update, refs, elements, floatingStyles]);
 33048 }
 33553 }
 33049 
 33554 
 33050 
 33555 
 33051 
 33556 
 33052 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
 33557 ;// ./node_modules/@wordpress/icons/build-module/library/close.js
 33053 /**
 33558 /**
 33054  * WordPress dependencies
 33559  * WordPress dependencies
 33055  */
 33560  */
 33056 
 33561 
 33057 
 33562 
 33058 const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
 33563 const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
 33059   xmlns: "http://www.w3.org/2000/svg",
 33564   xmlns: "http://www.w3.org/2000/svg",
 33060   viewBox: "0 0 24 24",
 33565   viewBox: "0 0 24 24",
 33061   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
 33566   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
 33062     d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
 33567     d: "m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"
 33063   })
 33568   })
 33064 });
 33569 });
 33065 /* harmony default export */ const library_close = (close_close);
 33570 /* harmony default export */ const library_close = (close_close);
 33066 
 33571 
 33067 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js
 33572 ;// ./node_modules/@wordpress/components/build-module/scroll-lock/index.js
 33068 /**
 33573 /**
 33069  * WordPress dependencies
 33574  * WordPress dependencies
 33070  */
 33575  */
 33071 
 33576 
 33072 
 33577 
 33142   }, []);
 33647   }, []);
 33143   return null;
 33648   return null;
 33144 }
 33649 }
 33145 /* harmony default export */ const scroll_lock = (ScrollLock);
 33650 /* harmony default export */ const scroll_lock = (ScrollLock);
 33146 
 33651 
 33147 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js
 33652 ;// ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js
 33148 /**
 33653 /**
 33149  * WordPress dependencies
 33654  * WordPress dependencies
 33150  */
 33655  */
 33151 
 33656 
 33152 
 33657 
 33170   isDefault: true
 33675   isDefault: true
 33171 };
 33676 };
 33172 const SlotFillContext = (0,external_wp_element_namespaceObject.createContext)(initialContextValue);
 33677 const SlotFillContext = (0,external_wp_element_namespaceObject.createContext)(initialContextValue);
 33173 /* harmony default export */ const slot_fill_context = (SlotFillContext);
 33678 /* harmony default export */ const slot_fill_context = (SlotFillContext);
 33174 
 33679 
 33175 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js
 33680 ;// ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js
 33176 /**
 33681 /**
 33177  * WordPress dependencies
 33682  * WordPress dependencies
 33178  */
 33683  */
 33179 
 33684 
 33180 
 33685 
 33184  */
 33689  */
 33185 
 33690 
 33186 function useSlot(name) {
 33691 function useSlot(name) {
 33187   const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
 33692   const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
 33188   const slot = (0,external_wp_compose_namespaceObject.useObservableValue)(registry.slots, name);
 33693   const slot = (0,external_wp_compose_namespaceObject.useObservableValue)(registry.slots, name);
 33189   const api = (0,external_wp_element_namespaceObject.useMemo)(() => ({
       
 33190     updateSlot: fillProps => registry.updateSlot(name, fillProps),
       
 33191     unregisterSlot: ref => registry.unregisterSlot(name, ref),
       
 33192     registerFill: ref => registry.registerFill(name, ref),
       
 33193     unregisterFill: ref => registry.unregisterFill(name, ref)
       
 33194   }), [name, registry]);
       
 33195   return {
 33694   return {
 33196     ...slot,
 33695     ...slot
 33197     ...api
       
 33198   };
 33696   };
 33199 }
 33697 }
 33200 
 33698 
 33201 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js
 33699 ;// ./node_modules/@wordpress/components/build-module/slot-fill/context.js
 33202 /**
 33700 /**
 33203  * WordPress dependencies
 33701  * WordPress dependencies
 33204  */
 33702  */
 33205 
 33703 
       
 33704 
       
 33705 
 33206 /**
 33706 /**
 33207  * Internal dependencies
 33707  * Internal dependencies
 33208  */
 33708  */
 33209 
 33709 
 33210 const initialValue = {
 33710 const initialValue = {
       
 33711   slots: (0,external_wp_compose_namespaceObject.observableMap)(),
       
 33712   fills: (0,external_wp_compose_namespaceObject.observableMap)(),
 33211   registerSlot: () => {},
 33713   registerSlot: () => {},
 33212   unregisterSlot: () => {},
 33714   unregisterSlot: () => {},
 33213   registerFill: () => {},
 33715   registerFill: () => {},
 33214   unregisterFill: () => {},
 33716   unregisterFill: () => {},
 33215   getSlot: () => undefined,
 33717   updateFill: () => {}
 33216   getFills: () => [],
       
 33217   subscribe: () => () => {}
       
 33218 };
 33718 };
 33219 const context_SlotFillContext = (0,external_wp_element_namespaceObject.createContext)(initialValue);
 33719 const context_SlotFillContext = (0,external_wp_element_namespaceObject.createContext)(initialValue);
 33220 /* harmony default export */ const context = (context_SlotFillContext);
 33720 /* harmony default export */ const context = (context_SlotFillContext);
 33221 
 33721 
 33222 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/use-slot.js
 33722 ;// ./node_modules/@wordpress/components/build-module/slot-fill/fill.js
 33223 /**
 33723 /**
 33224  * WordPress dependencies
 33724  * WordPress dependencies
 33225  */
 33725  */
 33226 
 33726 
 33227 
 33727 
 33228 /**
 33728 /**
 33229  * Internal dependencies
 33729  * Internal dependencies
 33230  */
 33730  */
 33231 
       
 33232 /**
       
 33233  * React hook returning the active slot given a name.
       
 33234  *
       
 33235  * @param name Slot name.
       
 33236  * @return Slot object.
       
 33237  */
       
 33238 const use_slot_useSlot = name => {
       
 33239   const {
       
 33240     getSlot,
       
 33241     subscribe
       
 33242   } = (0,external_wp_element_namespaceObject.useContext)(context);
       
 33243   return (0,external_wp_element_namespaceObject.useSyncExternalStore)(subscribe, () => getSlot(name), () => getSlot(name));
       
 33244 };
       
 33245 /* harmony default export */ const use_slot = (use_slot_useSlot);
       
 33246 
       
 33247 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/fill.js
       
 33248 /**
       
 33249  * WordPress dependencies
       
 33250  */
       
 33251 
       
 33252 
       
 33253 /**
       
 33254  * Internal dependencies
       
 33255  */
       
 33256 
       
 33257 
 33731 
 33258 function Fill({
 33732 function Fill({
 33259   name,
 33733   name,
 33260   children
 33734   children
 33261 }) {
 33735 }) {
 33262   const {
 33736   const registry = (0,external_wp_element_namespaceObject.useContext)(context);
 33263     registerFill,
 33737   const instanceRef = (0,external_wp_element_namespaceObject.useRef)({});
 33264     unregisterFill
 33738   const childrenRef = (0,external_wp_element_namespaceObject.useRef)(children);
 33265   } = (0,external_wp_element_namespaceObject.useContext)(context);
       
 33266   const slot = use_slot(name);
       
 33267   const ref = (0,external_wp_element_namespaceObject.useRef)({
       
 33268     name,
       
 33269     children
       
 33270   });
       
 33271   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33739   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33272     const refValue = ref.current;
 33740     childrenRef.current = children;
 33273     registerFill(name, refValue);
       
 33274     return () => unregisterFill(name, refValue);
       
 33275     // Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior.
       
 33276     // We'll leave them as-is until a more detailed investigation/refactor can be performed.
       
 33277     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 33278   }, []);
       
 33279   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 33280     ref.current.children = children;
       
 33281     if (slot) {
       
 33282       slot.forceUpdate();
       
 33283     }
       
 33284     // Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior.
       
 33285     // We'll leave them as-is until a more detailed investigation/refactor can be performed.
       
 33286     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 33287   }, [children]);
 33741   }, [children]);
 33288   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33742   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33289     if (name === ref.current.name) {
 33743     const instance = instanceRef.current;
 33290       // Ignore initial effect.
 33744     registry.registerFill(name, instance, childrenRef.current);
 33291       return;
 33745     return () => registry.unregisterFill(name, instance);
 33292     }
 33746   }, [registry, name]);
 33293     unregisterFill(ref.current.name, ref.current);
 33747   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33294     ref.current.name = name;
 33748     registry.updateFill(name, instanceRef.current, childrenRef.current);
 33295     registerFill(name, ref.current);
 33749   });
 33296     // Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior.
       
 33297     // We'll leave them as-is until a more detailed investigation/refactor can be performed.
       
 33298     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 33299   }, [name]);
       
 33300   return null;
 33750   return null;
 33301 }
 33751 }
 33302 
 33752 
 33303 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/slot.js
 33753 ;// ./node_modules/@wordpress/components/build-module/slot-fill/slot.js
 33304 /**
 33754 /**
 33305  * External dependencies
 33755  * External dependencies
 33306  */
 33756  */
 33307 
 33757 
 33308 /**
 33758 /**
 33309  * WordPress dependencies
 33759  * WordPress dependencies
 33310  */
 33760  */
 33311 
 33761 
 33312 
 33762 
       
 33763 
 33313 /**
 33764 /**
 33314  * Internal dependencies
 33765  * Internal dependencies
 33315  */
 33766  */
 33316 
       
 33317 
 33767 
 33318 
 33768 
 33319 /**
 33769 /**
 33320  * Whether the argument is a function.
 33770  * Whether the argument is a function.
 33321  *
 33771  *
 33323  * @return True if the argument is a function, false otherwise.
 33773  * @return True if the argument is a function, false otherwise.
 33324  */
 33774  */
 33325 function isFunction(maybeFunc) {
 33775 function isFunction(maybeFunc) {
 33326   return typeof maybeFunc === 'function';
 33776   return typeof maybeFunc === 'function';
 33327 }
 33777 }
 33328 class SlotComponent extends external_wp_element_namespaceObject.Component {
 33778 function addKeysToChildren(children) {
 33329   constructor(props) {
 33779   return external_wp_element_namespaceObject.Children.map(children, (child, childIndex) => {
 33330     super(props);
 33780     if (!child || typeof child === 'string') {
 33331     this.isUnmounted = false;
 33781       return child;
 33332   }
 33782     }
 33333   componentDidMount() {
 33783     let childKey = childIndex;
 33334     const {
 33784     if (typeof child === 'object' && 'key' in child && child?.key) {
 33335       registerSlot
 33785       childKey = child.key;
 33336     } = this.props;
 33786     }
 33337     this.isUnmounted = false;
 33787     return (0,external_wp_element_namespaceObject.cloneElement)(child, {
 33338     registerSlot(this.props.name, this);
 33788       key: childKey
 33339   }
       
 33340   componentWillUnmount() {
       
 33341     const {
       
 33342       unregisterSlot
       
 33343     } = this.props;
       
 33344     this.isUnmounted = true;
       
 33345     unregisterSlot(this.props.name, this);
       
 33346   }
       
 33347   componentDidUpdate(prevProps) {
       
 33348     const {
       
 33349       name,
       
 33350       unregisterSlot,
       
 33351       registerSlot
       
 33352     } = this.props;
       
 33353     if (prevProps.name !== name) {
       
 33354       unregisterSlot(prevProps.name, this);
       
 33355       registerSlot(name, this);
       
 33356     }
       
 33357   }
       
 33358   forceUpdate() {
       
 33359     if (this.isUnmounted) {
       
 33360       return;
       
 33361     }
       
 33362     super.forceUpdate();
       
 33363   }
       
 33364   render() {
       
 33365     var _getFills;
       
 33366     const {
       
 33367       children,
       
 33368       name,
       
 33369       fillProps = {},
       
 33370       getFills
       
 33371     } = this.props;
       
 33372     const fills = ((_getFills = getFills(name, this)) !== null && _getFills !== void 0 ? _getFills : []).map(fill => {
       
 33373       const fillChildren = isFunction(fill.children) ? fill.children(fillProps) : fill.children;
       
 33374       return external_wp_element_namespaceObject.Children.map(fillChildren, (child, childIndex) => {
       
 33375         if (!child || typeof child === 'string') {
       
 33376           return child;
       
 33377         }
       
 33378         let childKey = childIndex;
       
 33379         if (typeof child === 'object' && 'key' in child && child?.key) {
       
 33380           childKey = child.key;
       
 33381         }
       
 33382         return (0,external_wp_element_namespaceObject.cloneElement)(child, {
       
 33383           key: childKey
       
 33384         });
       
 33385       });
       
 33386     }).filter(
       
 33387     // In some cases fills are rendered only when some conditions apply.
       
 33388     // This ensures that we only use non-empty fills when rendering, i.e.,
       
 33389     // it allows us to render wrappers only when the fills are actually present.
       
 33390     element => !(0,external_wp_element_namespaceObject.isEmptyElement)(element));
       
 33391     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 33392       children: isFunction(children) ? children(fills) : fills
       
 33393     });
 33789     });
 33394   }
 33790   });
 33395 }
 33791 }
 33396 const Slot = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Consumer, {
 33792 function Slot(props) {
 33397   children: ({
 33793   var _useObservableValue;
 33398     registerSlot,
 33794   const registry = (0,external_wp_element_namespaceObject.useContext)(context);
 33399     unregisterSlot,
 33795   const instanceRef = (0,external_wp_element_namespaceObject.useRef)({});
 33400     getFills
 33796   const {
 33401   }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SlotComponent, {
 33797     name,
 33402     ...props,
 33798     children,
 33403     registerSlot: registerSlot,
 33799     fillProps = {}
 33404     unregisterSlot: unregisterSlot,
 33800   } = props;
 33405     getFills: getFills
 33801   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33406   })
 33802     const instance = instanceRef.current;
 33407 });
 33803     registry.registerSlot(name, instance);
       
 33804     return () => registry.unregisterSlot(name, instance);
       
 33805   }, [registry, name]);
       
 33806   let fills = (_useObservableValue = (0,external_wp_compose_namespaceObject.useObservableValue)(registry.fills, name)) !== null && _useObservableValue !== void 0 ? _useObservableValue : [];
       
 33807   const currentSlot = (0,external_wp_compose_namespaceObject.useObservableValue)(registry.slots, name);
       
 33808 
       
 33809   // Fills should only be rendered in the currently registered instance of the slot.
       
 33810   if (currentSlot !== instanceRef.current) {
       
 33811     fills = [];
       
 33812   }
       
 33813   const renderedFills = fills.map(fill => {
       
 33814     const fillChildren = isFunction(fill.children) ? fill.children(fillProps) : fill.children;
       
 33815     return addKeysToChildren(fillChildren);
       
 33816   }).filter(
       
 33817   // In some cases fills are rendered only when some conditions apply.
       
 33818   // This ensures that we only use non-empty fills when rendering, i.e.,
       
 33819   // it allows us to render wrappers only when the fills are actually present.
       
 33820   element => !(0,external_wp_element_namespaceObject.isEmptyElement)(element));
       
 33821   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 33822     children: isFunction(children) ? children(renderedFills) : renderedFills
       
 33823   });
       
 33824 }
 33408 /* harmony default export */ const slot = (Slot);
 33825 /* harmony default export */ const slot = (Slot);
 33409 
 33826 
 33410 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
 33827 ;// ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/native.js
 33411 const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
 33828 const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
 33412 /* harmony default export */ const esm_browser_native = ({
 33829 /* harmony default export */ const esm_browser_native = ({
 33413   randomUUID
 33830   randomUUID
 33414 });
 33831 });
 33415 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
 33832 ;// ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js
 33416 // Unique ID creation requires a high quality random # generator. In the browser we therefore
 33833 // Unique ID creation requires a high quality random # generator. In the browser we therefore
 33417 // require the crypto API and do not support built-in fallback to lower quality random number
 33834 // require the crypto API and do not support built-in fallback to lower quality random number
 33418 // generators (like Math.random()).
 33835 // generators (like Math.random()).
 33419 let getRandomValues;
 33836 let getRandomValues;
 33420 const rnds8 = new Uint8Array(16);
 33837 const rnds8 = new Uint8Array(16);
 33429     }
 33846     }
 33430   }
 33847   }
 33431 
 33848 
 33432   return getRandomValues(rnds8);
 33849   return getRandomValues(rnds8);
 33433 }
 33850 }
 33434 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
 33851 ;// ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js
 33435 
 33852 
 33436 /**
 33853 /**
 33437  * Convert array of 16 byte values to UUID string format of the form:
 33854  * Convert array of 16 byte values to UUID string format of the form:
 33438  * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 33855  * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 33439  */
 33856  */
 33463 
 33880 
 33464   return uuid;
 33881   return uuid;
 33465 }
 33882 }
 33466 
 33883 
 33467 /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify_stringify)));
 33884 /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify_stringify)));
 33468 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
 33885 ;// ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js
 33469 
 33886 
 33470 
 33887 
 33471 
 33888 
 33472 
 33889 
 33473 function v4(options, buf, offset) {
 33890 function v4(options, buf, offset) {
 33493 
 33910 
 33494   return unsafeStringify(rnds);
 33911   return unsafeStringify(rnds);
 33495 }
 33912 }
 33496 
 33913 
 33497 /* harmony default export */ const esm_browser_v4 = (v4);
 33914 /* harmony default export */ const esm_browser_v4 = (v4);
 33498 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/style-provider/index.js
 33915 ;// ./node_modules/@wordpress/components/build-module/style-provider/index.js
 33499 /**
 33916 /**
 33500  * External dependencies
 33917  * External dependencies
 33501  */
 33918  */
 33502 
 33919 
 33503 
 33920 
 33544     children: children
 33961     children: children
 33545   });
 33962   });
 33546 }
 33963 }
 33547 /* harmony default export */ const style_provider = (StyleProvider);
 33964 /* harmony default export */ const style_provider = (StyleProvider);
 33548 
 33965 
 33549 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js
 33966 ;// ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js
 33550 /**
 33967 /**
 33551  * WordPress dependencies
 33968  * WordPress dependencies
 33552  */
 33969  */
 33553 
 33970 
 33554 
 33971 
       
 33972 
 33555 /**
 33973 /**
 33556  * Internal dependencies
 33974  * Internal dependencies
 33557  */
 33975  */
 33558 
 33976 
 33559 
 33977 
 33560 
 33978 
 33561 function fill_useForceUpdate() {
 33979 function fill_Fill({
 33562   const [, setState] = (0,external_wp_element_namespaceObject.useState)({});
 33980   name,
 33563   const mounted = (0,external_wp_element_namespaceObject.useRef)(true);
 33981   children
       
 33982 }) {
       
 33983   var _slot$fillProps;
       
 33984   const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
       
 33985   const slot = (0,external_wp_compose_namespaceObject.useObservableValue)(registry.slots, name);
       
 33986   const instanceRef = (0,external_wp_element_namespaceObject.useRef)({});
       
 33987 
       
 33988   // We register fills so we can keep track of their existence.
       
 33989   // Slots can use the `useSlotFills` hook to know if there're already fills
       
 33990   // registered so they can choose to render themselves or not.
 33564   (0,external_wp_element_namespaceObject.useEffect)(() => {
 33991   (0,external_wp_element_namespaceObject.useEffect)(() => {
 33565     mounted.current = true;
 33992     const instance = instanceRef.current;
 33566     return () => {
 33993     registry.registerFill(name, instance);
 33567       mounted.current = false;
 33994     return () => registry.unregisterFill(name, instance);
 33568     };
 33995   }, [registry, name]);
 33569   }, []);
 33996   if (!slot || !slot.ref.current) {
 33570   return () => {
       
 33571     if (mounted.current) {
       
 33572       setState({});
       
 33573     }
       
 33574   };
       
 33575 }
       
 33576 function fill_Fill(props) {
       
 33577   var _slot$fillProps;
       
 33578   const {
       
 33579     name,
       
 33580     children
       
 33581   } = props;
       
 33582   const {
       
 33583     registerFill,
       
 33584     unregisterFill,
       
 33585     ...slot
       
 33586   } = useSlot(name);
       
 33587   const rerender = fill_useForceUpdate();
       
 33588   const ref = (0,external_wp_element_namespaceObject.useRef)({
       
 33589     rerender
       
 33590   });
       
 33591   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
 33592     // We register fills so we can keep track of their existence.
       
 33593     // Some Slot implementations need to know if there're already fills
       
 33594     // registered so they can choose to render themselves or not.
       
 33595     registerFill(ref);
       
 33596     return () => {
       
 33597       unregisterFill(ref);
       
 33598     };
       
 33599   }, [registerFill, unregisterFill]);
       
 33600   if (!slot.ref || !slot.ref.current) {
       
 33601     return null;
 33997     return null;
 33602   }
 33998   }
 33603 
 33999 
 33604   // When using a `Fill`, the `children` will be rendered in the document of the
 34000   // When using a `Fill`, the `children` will be rendered in the document of the
 33605   // `Slot`. This means that we need to wrap the `children` in a `StyleProvider`
 34001   // `Slot`. This means that we need to wrap the `children` in a `StyleProvider`
 33610     children: typeof children === 'function' ? children((_slot$fillProps = slot.fillProps) !== null && _slot$fillProps !== void 0 ? _slot$fillProps : {}) : children
 34006     children: typeof children === 'function' ? children((_slot$fillProps = slot.fillProps) !== null && _slot$fillProps !== void 0 ? _slot$fillProps : {}) : children
 33611   });
 34007   });
 33612   return (0,external_wp_element_namespaceObject.createPortal)(wrappedChildren, slot.ref.current);
 34008   return (0,external_wp_element_namespaceObject.createPortal)(wrappedChildren, slot.ref.current);
 33613 }
 34009 }
 33614 
 34010 
 33615 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js
 34011 ;// ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot.js
 33616 /**
 34012 /**
 33617  * External dependencies
 34013  * External dependencies
 33618  */
 34014  */
 33619 
 34015 
 33620 /**
 34016 /**
 33634     name,
 34030     name,
 33635     fillProps = {},
 34031     fillProps = {},
 33636     as,
 34032     as,
 33637     // `children` is not allowed. However, if it is passed,
 34033     // `children` is not allowed. However, if it is passed,
 33638     // it will be displayed as is, so remove `children`.
 34034     // it will be displayed as is, so remove `children`.
 33639     // @ts-ignore
       
 33640     children,
 34035     children,
 33641     ...restProps
 34036     ...restProps
 33642   } = props;
 34037   } = props;
 33643   const {
 34038   const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
 33644     registerSlot,
       
 33645     unregisterSlot,
       
 33646     ...registry
       
 33647   } = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
       
 33648   const ref = (0,external_wp_element_namespaceObject.useRef)(null);
 34039   const ref = (0,external_wp_element_namespaceObject.useRef)(null);
       
 34040 
       
 34041   // We don't want to unregister and register the slot whenever
       
 34042   // `fillProps` change, which would cause the fill to be re-mounted. Instead,
       
 34043   // we can just update the slot (see hook below).
       
 34044   // For more context, see https://github.com/WordPress/gutenberg/pull/44403#discussion_r994415973
       
 34045   const fillPropsRef = (0,external_wp_element_namespaceObject.useRef)(fillProps);
 33649   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 34046   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33650     registerSlot(name, ref, fillProps);
 34047     fillPropsRef.current = fillProps;
 33651     return () => {
 34048   }, [fillProps]);
 33652       unregisterSlot(name, ref);
       
 33653     };
       
 33654     // Ignore reason: We don't want to unregister and register the slot whenever
       
 33655     // `fillProps` change, which would cause the fill to be re-mounted. Instead,
       
 33656     // we can just update the slot (see hook below).
       
 33657     // For more context, see https://github.com/WordPress/gutenberg/pull/44403#discussion_r994415973
       
 33658     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 33659   }, [registerSlot, unregisterSlot, name]);
       
 33660   // fillProps may be an update that interacts with the layout, so we
       
 33661   // useLayoutEffect.
       
 33662   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 34049   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 33663     registry.updateSlot(name, fillProps);
 34050     registry.registerSlot(name, ref, fillPropsRef.current);
       
 34051     return () => registry.unregisterSlot(name, ref);
       
 34052   }, [registry, name]);
       
 34053   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 34054     registry.updateSlot(name, ref, fillPropsRef.current);
 33664   });
 34055   });
 33665   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 34056   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 33666     as: as,
 34057     as: as,
 33667     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([forwardedRef, ref]),
 34058     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([forwardedRef, ref]),
 33668     ...restProps
 34059     ...restProps
 33669   });
 34060   });
 33670 }
 34061 }
 33671 /* harmony default export */ const bubbles_virtually_slot = ((0,external_wp_element_namespaceObject.forwardRef)(slot_Slot));
 34062 /* harmony default export */ const bubbles_virtually_slot = ((0,external_wp_element_namespaceObject.forwardRef)(slot_Slot));
 33672 
 34063 
 33673 ;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
 34064 ;// external ["wp","isShallowEqual"]
 33674 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
 34065 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
 33675 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
 34066 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
 33676 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js
 34067 ;// ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js
 33677 /**
 34068 /**
 33678  * WordPress dependencies
 34069  * WordPress dependencies
 33679  */
 34070  */
 33680 
 34071 
 33681 
 34072 
 33688 
 34079 
 33689 function createSlotRegistry() {
 34080 function createSlotRegistry() {
 33690   const slots = (0,external_wp_compose_namespaceObject.observableMap)();
 34081   const slots = (0,external_wp_compose_namespaceObject.observableMap)();
 33691   const fills = (0,external_wp_compose_namespaceObject.observableMap)();
 34082   const fills = (0,external_wp_compose_namespaceObject.observableMap)();
 33692   const registerSlot = (name, ref, fillProps) => {
 34083   const registerSlot = (name, ref, fillProps) => {
 33693     const slot = slots.get(name);
       
 33694     slots.set(name, {
 34084     slots.set(name, {
 33695       ...slot,
 34085       ref,
 33696       ref: ref || slot?.ref,
 34086       fillProps
 33697       fillProps: fillProps || slot?.fillProps || {}
       
 33698     });
 34087     });
 33699   };
 34088   };
 33700   const unregisterSlot = (name, ref) => {
 34089   const unregisterSlot = (name, ref) => {
 33701     // Make sure we're not unregistering a slot registered by another element
       
 33702     // See https://github.com/WordPress/gutenberg/pull/19242#issuecomment-590295412
       
 33703     if (slots.get(name)?.ref === ref) {
       
 33704       slots.delete(name);
       
 33705     }
       
 33706   };
       
 33707   const updateSlot = (name, fillProps) => {
       
 33708     const slot = slots.get(name);
 34090     const slot = slots.get(name);
 33709     if (!slot) {
 34091     if (!slot) {
 33710       return;
 34092       return;
 33711     }
 34093     }
       
 34094 
       
 34095     // Make sure we're not unregistering a slot registered by another element
       
 34096     // See https://github.com/WordPress/gutenberg/pull/19242#issuecomment-590295412
       
 34097     if (slot.ref !== ref) {
       
 34098       return;
       
 34099     }
       
 34100     slots.delete(name);
       
 34101   };
       
 34102   const updateSlot = (name, ref, fillProps) => {
       
 34103     const slot = slots.get(name);
       
 34104     if (!slot) {
       
 34105       return;
       
 34106     }
       
 34107     if (slot.ref !== ref) {
       
 34108       return;
       
 34109     }
 33712     if (external_wp_isShallowEqual_default()(slot.fillProps, fillProps)) {
 34110     if (external_wp_isShallowEqual_default()(slot.fillProps, fillProps)) {
 33713       return;
 34111       return;
 33714     }
 34112     }
 33715     slot.fillProps = fillProps;
 34113     slots.set(name, {
 33716     const slotFills = fills.get(name);
 34114       ref,
 33717     if (slotFills) {
 34115       fillProps
 33718       // Force update fills.
 34116     });
 33719       slotFills.forEach(fill => fill.current.rerender());
       
 33720     }
       
 33721   };
 34117   };
 33722   const registerFill = (name, ref) => {
 34118   const registerFill = (name, ref) => {
 33723     fills.set(name, [...(fills.get(name) || []), ref]);
 34119     fills.set(name, [...(fills.get(name) || []), ref]);
 33724   };
 34120   };
 33725   const unregisterFill = (name, ref) => {
 34121   const unregisterFill = (name, ref) => {
 33747     value: registry,
 34143     value: registry,
 33748     children: children
 34144     children: children
 33749   });
 34145   });
 33750 }
 34146 }
 33751 
 34147 
 33752 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/provider.js
 34148 ;// ./node_modules/@wordpress/components/build-module/slot-fill/provider.js
 33753 /**
 34149 /**
 33754  * WordPress dependencies
 34150  * WordPress dependencies
 33755  */
 34151  */
 33756 
 34152 
 33757 
 34153 
 33758 
       
 33759 /**
 34154 /**
 33760  * Internal dependencies
 34155  * Internal dependencies
 33761  */
 34156  */
 33762 
 34157 
 33763 
 34158 
       
 34159 
 33764 function provider_createSlotRegistry() {
 34160 function provider_createSlotRegistry() {
 33765   const slots = {};
 34161   const slots = (0,external_wp_compose_namespaceObject.observableMap)();
 33766   const fills = {};
 34162   const fills = (0,external_wp_compose_namespaceObject.observableMap)();
 33767   let listeners = [];
 34163   function registerSlot(name, instance) {
 33768   function registerSlot(name, slot) {
 34164     slots.set(name, instance);
 33769     const previousSlot = slots[name];
       
 33770     slots[name] = slot;
       
 33771     triggerListeners();
       
 33772 
       
 33773     // Sometimes the fills are registered after the initial render of slot
       
 33774     // But before the registerSlot call, we need to rerender the slot.
       
 33775     forceUpdateSlot(name);
       
 33776 
       
 33777     // If a new instance of a slot is being mounted while another with the
       
 33778     // same name exists, force its update _after_ the new slot has been
       
 33779     // assigned into the instance, such that its own rendering of children
       
 33780     // will be empty (the new Slot will subsume all fills for this name).
       
 33781     if (previousSlot) {
       
 33782       previousSlot.forceUpdate();
       
 33783     }
       
 33784   }
       
 33785   function registerFill(name, instance) {
       
 33786     fills[name] = [...(fills[name] || []), instance];
       
 33787     forceUpdateSlot(name);
       
 33788   }
 34165   }
 33789   function unregisterSlot(name, instance) {
 34166   function unregisterSlot(name, instance) {
 33790     // If a previous instance of a Slot by this name unmounts, do nothing,
 34167     // If a previous instance of a Slot by this name unmounts, do nothing,
 33791     // as the slot and its fills should only be removed for the current
 34168     // as the slot and its fills should only be removed for the current
 33792     // known instance.
 34169     // known instance.
 33793     if (slots[name] !== instance) {
 34170     if (slots.get(name) !== instance) {
 33794       return;
 34171       return;
 33795     }
 34172     }
 33796     delete slots[name];
 34173     slots.delete(name);
 33797     triggerListeners();
 34174   }
       
 34175   function registerFill(name, instance, children) {
       
 34176     fills.set(name, [...(fills.get(name) || []), {
       
 34177       instance,
       
 34178       children
       
 34179     }]);
 33798   }
 34180   }
 33799   function unregisterFill(name, instance) {
 34181   function unregisterFill(name, instance) {
 33800     var _fills$name$filter;
 34182     const fillsForName = fills.get(name);
 33801     fills[name] = (_fills$name$filter = fills[name]?.filter(fill => fill !== instance)) !== null && _fills$name$filter !== void 0 ? _fills$name$filter : [];
 34183     if (!fillsForName) {
 33802     forceUpdateSlot(name);
 34184       return;
 33803   }
 34185     }
 33804   function getSlot(name) {
 34186     fills.set(name, fillsForName.filter(fill => fill.instance !== instance));
 33805     return slots[name];
 34187   }
 33806   }
 34188   function updateFill(name, instance, children) {
 33807   function getFills(name, slotInstance) {
 34189     const fillsForName = fills.get(name);
 33808     // Fills should only be returned for the current instance of the slot
 34190     if (!fillsForName) {
 33809     // in which they occupy.
 34191       return;
 33810     if (slots[name] !== slotInstance) {
 34192     }
 33811       return [];
 34193     const fillForInstance = fillsForName.find(f => f.instance === instance);
 33812     }
 34194     if (!fillForInstance) {
 33813     return fills[name];
 34195       return;
 33814   }
 34196     }
 33815   function forceUpdateSlot(name) {
 34197     if (fillForInstance.children === children) {
 33816     const slot = getSlot(name);
 34198       return;
 33817     if (slot) {
 34199     }
 33818       slot.forceUpdate();
 34200     fills.set(name, fillsForName.map(f => {
 33819     }
 34201       if (f.instance === instance) {
 33820   }
 34202         // Replace with new record with updated `children`.
 33821   function triggerListeners() {
 34203         return {
 33822     listeners.forEach(listener => listener());
 34204           instance,
 33823   }
 34205           children
 33824   function subscribe(listener) {
 34206         };
 33825     listeners.push(listener);
 34207       }
 33826     return () => {
 34208       return f;
 33827       listeners = listeners.filter(l => l !== listener);
 34209     }));
 33828     };
       
 33829   }
 34210   }
 33830   return {
 34211   return {
       
 34212     slots,
       
 34213     fills,
 33831     registerSlot,
 34214     registerSlot,
 33832     unregisterSlot,
 34215     unregisterSlot,
 33833     registerFill,
 34216     registerFill,
 33834     unregisterFill,
 34217     unregisterFill,
 33835     getSlot,
 34218     updateFill
 33836     getFills,
       
 33837     subscribe
       
 33838   };
 34219   };
 33839 }
 34220 }
 33840 function provider_SlotFillProvider({
 34221 function provider_SlotFillProvider({
 33841   children
 34222   children
 33842 }) {
 34223 }) {
 33846     children: children
 34227     children: children
 33847   });
 34228   });
 33848 }
 34229 }
 33849 /* harmony default export */ const provider = (provider_SlotFillProvider);
 34230 /* harmony default export */ const provider = (provider_SlotFillProvider);
 33850 
 34231 
 33851 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js
 34232 ;// ./node_modules/@wordpress/components/build-module/slot-fill/index.js
 33852 /**
 34233 /**
 33853  * External dependencies
 34234  * External dependencies
 33854  */
 34235  */
 33855 
 34236 
 33856 /**
 34237 /**
 33859 
 34240 
 33860 
 34241 
 33861 /**
 34242 /**
 33862  * Internal dependencies
 34243  * Internal dependencies
 33863  */
 34244  */
 33864 
       
 33865 
       
 33866 
 34245 
 33867 
 34246 
 33868 
 34247 
 33869 
 34248 
 33870 
 34249 
 33915     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SlotFillProvider, {
 34294     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SlotFillProvider, {
 33916       children: children
 34295       children: children
 33917     })
 34296     })
 33918   });
 34297   });
 33919 }
 34298 }
       
 34299 Provider.displayName = 'SlotFillProvider';
 33920 function createSlotFill(key) {
 34300 function createSlotFill(key) {
 33921   const baseName = typeof key === 'symbol' ? key.description : key;
 34301   const baseName = typeof key === 'symbol' ? key.description : key;
 33922   const FillComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Fill, {
 34302   const FillComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Fill, {
 33923     name: key,
 34303     name: key,
 33924     ...props
 34304     ...props
 33927   const SlotComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Slot, {
 34307   const SlotComponent = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Slot, {
 33928     name: key,
 34308     name: key,
 33929     ...props
 34309     ...props
 33930   });
 34310   });
 33931   SlotComponent.displayName = `${baseName}Slot`;
 34311   SlotComponent.displayName = `${baseName}Slot`;
       
 34312   /**
       
 34313    * @deprecated 6.8.0
       
 34314    * Please use `slotFill.name` instead of `slotFill.Slot.__unstableName`.
       
 34315    */
 33932   SlotComponent.__unstableName = key;
 34316   SlotComponent.__unstableName = key;
 33933   return {
 34317   return {
       
 34318     name: key,
 33934     Fill: FillComponent,
 34319     Fill: FillComponent,
 33935     Slot: SlotComponent
 34320     Slot: SlotComponent
 33936   };
 34321   };
 33937 }
 34322 }
 33938 const createPrivateSlotFill = name => {
 34323 
 33939   const privateKey = Symbol(name);
 34324 ;// ./node_modules/@wordpress/components/build-module/popover/overlay-middlewares.js
 33940   const privateSlotFill = createSlotFill(privateKey);
       
 33941   return {
       
 33942     privateKey,
       
 33943     ...privateSlotFill
       
 33944   };
       
 33945 };
       
 33946 
       
 33947 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/overlay-middlewares.js
       
 33948 /**
 34325 /**
 33949  * External dependencies
 34326  * External dependencies
 33950  */
 34327  */
 33951 
 34328 
 33952 
 34329 
 33980       });
 34357       });
 33981     }
 34358     }
 33982   })];
 34359   })];
 33983 }
 34360 }
 33984 
 34361 
 33985 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js
 34362 ;// ./node_modules/@wordpress/components/build-module/popover/index.js
 33986 /**
 34363 /**
 33987  * External dependencies
 34364  * External dependencies
 33988  */
 34365  */
 33989 
 34366 
 33990 
 34367 
 33991 
 34368 
 33992 // eslint-disable-next-line no-restricted-imports
       
 33993 
       
 33994 // eslint-disable-next-line no-restricted-imports
       
 33995 
 34369 
 33996 
 34370 
 33997 /**
 34371 /**
 33998  * WordPress dependencies
 34372  * WordPress dependencies
 33999  */
 34373  */
 34001 
 34375 
 34002 
 34376 
 34003 
 34377 
 34004 
 34378 
 34005 
 34379 
       
 34380 
 34006 /**
 34381 /**
 34007  * Internal dependencies
 34382  * Internal dependencies
 34008  */
 34383  */
 34009 
 34384 
 34010 
 34385 
 34017 /**
 34392 /**
 34018  * Name of slot in which popover should fill.
 34393  * Name of slot in which popover should fill.
 34019  *
 34394  *
 34020  * @type {string}
 34395  * @type {string}
 34021  */
 34396  */
 34022 
       
 34023 
       
 34024 
 34397 
 34025 const SLOT_NAME = 'Popover';
 34398 const SLOT_NAME = 'Popover';
 34026 
 34399 
 34027 // An SVG displaying a triangle facing down, filled with a solid
 34400 // An SVG displaying a triangle facing down, filled with a solid
 34028 // color and bordered in such a way to create an arrow-like effect.
 34401 // color and bordered in such a way to create an arrow-like effect.
 34073     flip = true,
 34446     flip = true,
 34074     resize = true,
 34447     resize = true,
 34075     shift = false,
 34448     shift = false,
 34076     inline = false,
 34449     inline = false,
 34077     variant,
 34450     variant,
       
 34451     style: contentStyle,
 34078     // Deprecated props
 34452     // Deprecated props
 34079     __unstableForcePosition,
 34453     __unstableForcePosition,
 34080     anchorRef,
 34454     anchorRef,
 34081     anchorRect,
 34455     anchorRect,
 34082     getAnchorRect,
 34456     getAnchorRect,
 34241     style: motionInlineStyles,
 34615     style: motionInlineStyles,
 34242     ...otherMotionProps
 34616     ...otherMotionProps
 34243   } = (0,external_wp_element_namespaceObject.useMemo)(() => placementToMotionAnimationProps(computedPlacement), [computedPlacement]);
 34617   } = (0,external_wp_element_namespaceObject.useMemo)(() => placementToMotionAnimationProps(computedPlacement), [computedPlacement]);
 34244   const animationProps = shouldAnimate ? {
 34618   const animationProps = shouldAnimate ? {
 34245     style: {
 34619     style: {
       
 34620       ...contentStyle,
 34246       ...motionInlineStyles,
 34621       ...motionInlineStyles,
 34247       ...style
 34622       ...style
 34248     },
 34623     },
 34249     onAnimationComplete: () => setAnimationFinished(true),
 34624     onAnimationComplete: () => setAnimationFinished(true),
 34250     ...otherMotionProps
 34625     ...otherMotionProps
 34251   } : {
 34626   } : {
 34252     animate: false,
 34627     animate: false,
 34253     style
 34628     style: {
       
 34629       ...contentStyle,
       
 34630       ...style
       
 34631     }
 34254   };
 34632   };
 34255 
 34633 
 34256   // When Floating UI has finished positioning and Framer Motion has finished animating
 34634   // When Floating UI has finished positioning and Framer Motion has finished animating
 34257   // the popover, add the `is-positioned` class to signal that all transitions have finished.
 34635   // the popover, add the `is-positioned` class to signal that all transitions have finished.
 34258   const isPositioned = (!shouldAnimate || animationFinished) && x !== null && y !== null;
 34636   const isPositioned = (!shouldAnimate || animationFinished) && x !== null && y !== null;
 34273       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 34651       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 34274         className: "components-popover__header-title",
 34652         className: "components-popover__header-title",
 34275         children: headerTitle
 34653         children: headerTitle
 34276       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 34654       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 34277         className: "components-popover__close",
 34655         className: "components-popover__close",
       
 34656         size: "small",
 34278         icon: library_close,
 34657         icon: library_close,
 34279         onClick: onClose
 34658         onClick: onClose,
       
 34659         label: (0,external_wp_i18n_namespaceObject.__)('Close')
 34280       })]
 34660       })]
 34281     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 34661     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 34282       className: "components-popover__content",
 34662       className: "components-popover__content",
 34283       children: children
 34663       children: children
 34284     }), hasArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 34664     }), hasArrow && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 34297     content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Fill, {
 34677     content = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(slot_fill_Fill, {
 34298       name: slotName,
 34678       name: slotName,
 34299       children: content
 34679       children: content
 34300     });
 34680     });
 34301   } else if (!inline) {
 34681   } else if (!inline) {
 34302     content = (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyleProvider, {
 34682     content = (0,external_wp_element_namespaceObject.createPortal)(/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyleProvider, {
 34303       document: document,
 34683       document: document,
 34304       children: content
 34684       children: content
 34305     }), getPopoverFallbackContainer());
 34685     }), getPopoverFallbackContainer());
 34306   }
 34686   }
 34307   if (hasAnchor) {
 34687   if (hasAnchor) {
 34353 popover_Popover.Slot = (0,external_wp_element_namespaceObject.forwardRef)(PopoverSlot);
 34733 popover_Popover.Slot = (0,external_wp_element_namespaceObject.forwardRef)(PopoverSlot);
 34354 // @ts-expect-error For Legacy Reasons
 34734 // @ts-expect-error For Legacy Reasons
 34355 popover_Popover.__unstableSlotNameProvider = slotNameContext.Provider;
 34735 popover_Popover.__unstableSlotNameProvider = slotNameContext.Provider;
 34356 /* harmony default export */ const popover = (popover_Popover);
 34736 /* harmony default export */ const popover = (popover_Popover);
 34357 
 34737 
 34358 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/autocompleter-ui.js
 34738 ;// ./node_modules/@wordpress/components/build-module/autocomplete/autocompleter-ui.js
 34359 /**
 34739 /**
 34360  * External dependencies
 34740  * External dependencies
 34361  */
 34741  */
 34362 
 34742 
 34363 
 34743 
 34371 
 34751 
 34372 
 34752 
 34373 /**
 34753 /**
 34374  * Internal dependencies
 34754  * Internal dependencies
 34375  */
 34755  */
 34376 
       
 34377 
       
 34378 
 34756 
 34379 
 34757 
 34380 
 34758 
 34381 
 34759 
 34382 
 34760 
 34395     role: "listbox",
 34773     role: "listbox",
 34396     className: "components-autocomplete__results",
 34774     className: "components-autocomplete__results",
 34397     children: items.map((option, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 34775     children: items.map((option, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 34398       id: `components-autocomplete-item-${instanceId}-${option.key}`,
 34776       id: `components-autocomplete-item-${instanceId}-${option.key}`,
 34399       role: "option",
 34777       role: "option",
       
 34778       __next40pxDefaultSize: true,
 34400       "aria-selected": index === selectedIndex,
 34779       "aria-selected": index === selectedIndex,
       
 34780       accessibleWhenDisabled: true,
 34401       disabled: option.isDisabled,
 34781       disabled: option.isDisabled,
 34402       className: dist_clsx('components-autocomplete__result', className, {
 34782       className: dist_clsx('components-autocomplete__result', className, {
       
 34783         // Unused, for backwards compatibility.
 34403         'is-selected': index === selectedIndex
 34784         'is-selected': index === selectedIndex
 34404       }),
 34785       }),
       
 34786       variant: index === selectedIndex ? 'primary' : undefined,
 34405       onClick: () => onSelect(option),
 34787       onClick: () => onSelect(option),
 34406       children: option.label
 34788       children: option.label
 34407     }, option.key))
 34789     }, option.key))
 34408   });
 34790   });
 34409 }
 34791 }
 34445       if (!debouncedSpeak) {
 34827       if (!debouncedSpeak) {
 34446         return;
 34828         return;
 34447       }
 34829       }
 34448       if (!!options.length) {
 34830       if (!!options.length) {
 34449         if (filterValue) {
 34831         if (filterValue) {
 34450           debouncedSpeak((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
 34832           debouncedSpeak((0,external_wp_i18n_namespaceObject.sprintf)(/* translators: %d: number of results. */
 34451           (0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', options.length), options.length), 'assertive');
 34833           (0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', options.length), options.length), 'assertive');
 34452         } else {
 34834         } else {
 34453           debouncedSpeak((0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
 34835           debouncedSpeak((0,external_wp_i18n_namespaceObject.sprintf)(/* translators: %d: number of results. */
 34454           (0,external_wp_i18n_namespaceObject._n)('Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.', 'Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.', options.length), options.length), 'assertive');
 34836           (0,external_wp_i18n_namespaceObject._n)('Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.', 'Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.', options.length), options.length), 'assertive');
 34455         }
 34837         }
 34456       } else {
 34838       } else {
 34457         debouncedSpeak((0,external_wp_i18n_namespaceObject.__)('No results.'), 'assertive');
 34839         debouncedSpeak((0,external_wp_i18n_namespaceObject.__)('No results.'), 'assertive');
 34458       }
 34840       }
 34459     }
 34841     }
 34460     (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 34842     (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 34461       onChangeOptions(items);
 34843       onChangeOptions(items);
 34462       announce(items);
 34844       announce(items);
 34463       // Temporarily disabling exhaustive-deps to avoid introducing unexpected side effecst.
 34845       // We want to avoid introducing unexpected side effects.
 34464       // See https://github.com/WordPress/gutenberg/pull/41820
 34846       // See https://github.com/WordPress/gutenberg/pull/41820
 34465       // eslint-disable-next-line react-hooks/exhaustive-deps
       
 34466     }, [items]);
 34847     }, [items]);
 34467     if (items.length === 0) {
 34848     if (items.length === 0) {
 34468       return null;
 34849       return null;
 34469     }
 34850     }
 34470     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 34851     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 34481           selectedIndex: selectedIndex,
 34862           selectedIndex: selectedIndex,
 34482           instanceId: instanceId,
 34863           instanceId: instanceId,
 34483           listBoxId: listBoxId,
 34864           listBoxId: listBoxId,
 34484           className: className
 34865           className: className
 34485         })
 34866         })
 34486       }), contentRef.current && needsA11yCompat && (0,external_ReactDOM_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListBox, {
 34867       }), contentRef.current && needsA11yCompat && (0,external_ReactDOM_namespaceObject.createPortal)(/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ListBox, {
 34487         items: items,
 34868         items: items,
 34488         onSelect: onSelect,
 34869         onSelect: onSelect,
 34489         selectedIndex: selectedIndex,
 34870         selectedIndex: selectedIndex,
 34490         instanceId: instanceId,
 34871         instanceId: instanceId,
 34491         listBoxId: listBoxId,
 34872         listBoxId: listBoxId,
 34509     document.addEventListener('touchstart', listener);
 34890     document.addEventListener('touchstart', listener);
 34510     return () => {
 34891     return () => {
 34511       document.removeEventListener('mousedown', listener);
 34892       document.removeEventListener('mousedown', listener);
 34512       document.removeEventListener('touchstart', listener);
 34893       document.removeEventListener('touchstart', listener);
 34513     };
 34894     };
 34514     // Disable reason: `ref` is a ref object and should not be included in a
 34895   }, [handler, ref]);
 34515     // hook's dependency list.
 34896 }
 34516     // eslint-disable-next-line react-hooks/exhaustive-deps
 34897 
 34517   }, [handler]);
 34898 ;// ./node_modules/@wordpress/components/build-module/autocomplete/index.js
 34518 }
       
 34519 
       
 34520 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/autocomplete/index.js
       
 34521 /**
 34899 /**
 34522  * External dependencies
 34900  * External dependencies
 34523  */
 34901  */
 34524 
 34902 
 34525 
 34903 
 34533 
 34911 
 34534 
 34912 
 34535 /**
 34913 /**
 34536  * Internal dependencies
 34914  * Internal dependencies
 34537  */
 34915  */
 34538 
       
 34539 
       
 34540 
 34916 
 34541 
 34917 
 34542 
 34918 
 34543 
 34919 
 34544 const getNodeText = node => {
 34920 const getNodeText = node => {
 34567       return '';
 34943       return '';
 34568   }
 34944   }
 34569   return '';
 34945   return '';
 34570 };
 34946 };
 34571 const EMPTY_FILTERED_OPTIONS = [];
 34947 const EMPTY_FILTERED_OPTIONS = [];
       
 34948 
       
 34949 // Used for generating the instance ID
       
 34950 const AUTOCOMPLETE_HOOK_REFERENCE = {};
 34572 function useAutocomplete({
 34951 function useAutocomplete({
 34573   record,
 34952   record,
 34574   onChange,
 34953   onChange,
 34575   onReplace,
 34954   onReplace,
 34576   completers,
 34955   completers,
 34577   contentRef
 34956   contentRef
 34578 }) {
 34957 }) {
 34579   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(useAutocomplete);
 34958   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(AUTOCOMPLETE_HOOK_REFERENCE);
 34580   const [selectedIndex, setSelectedIndex] = (0,external_wp_element_namespaceObject.useState)(0);
 34959   const [selectedIndex, setSelectedIndex] = (0,external_wp_element_namespaceObject.useState)(0);
 34581   const [filteredOptions, setFilteredOptions] = (0,external_wp_element_namespaceObject.useState)(EMPTY_FILTERED_OPTIONS);
 34960   const [filteredOptions, setFilteredOptions] = (0,external_wp_element_namespaceObject.useState)(EMPTY_FILTERED_OPTIONS);
 34582   const [filterValue, setFilterValue] = (0,external_wp_element_namespaceObject.useState)('');
 34961   const [filterValue, setFilterValue] = (0,external_wp_element_namespaceObject.useState)('');
 34583   const [autocompleter, setAutocompleter] = (0,external_wp_element_namespaceObject.useState)(null);
 34962   const [autocompleter, setAutocompleter] = (0,external_wp_element_namespaceObject.useState)(null);
 34584   const [AutocompleterUI, setAutocompleterUI] = (0,external_wp_element_namespaceObject.useState)(null);
 34963   const [AutocompleterUI, setAutocompleterUI] = (0,external_wp_element_namespaceObject.useState)(null);
 34585   const backspacing = (0,external_wp_element_namespaceObject.useRef)(false);
 34964   const backspacingRef = (0,external_wp_element_namespaceObject.useRef)(false);
 34586   function insertCompletion(replacement) {
 34965   function insertCompletion(replacement) {
 34587     if (autocompleter === null) {
 34966     if (autocompleter === null) {
 34588       return;
 34967       return;
 34589     }
 34968     }
 34590     const end = record.start;
 34969     const end = record.start;
 34640   function onChangeOptions(options) {
 35019   function onChangeOptions(options) {
 34641     setSelectedIndex(options.length === filteredOptions.length ? selectedIndex : 0);
 35020     setSelectedIndex(options.length === filteredOptions.length ? selectedIndex : 0);
 34642     setFilteredOptions(options);
 35021     setFilteredOptions(options);
 34643   }
 35022   }
 34644   function handleKeyDown(event) {
 35023   function handleKeyDown(event) {
 34645     backspacing.current = event.key === 'Backspace';
 35024     backspacingRef.current = event.key === 'Backspace';
 34646     if (!autocompleter) {
 35025     if (!autocompleter) {
 34647       return;
 35026       return;
 34648     }
 35027     }
 34649     if (filteredOptions.length === 0) {
 35028     if (filteredOptions.length === 0) {
 34650       return;
 35029       return;
 34755     // us to "escape" a mismatch when backspacing, but still imposing some
 35134     // us to "escape" a mismatch when backspacing, but still imposing some
 34756     // sane limits.
 35135     // sane limits.
 34757     //
 35136     //
 34758     // Ex: "Some text @marcelo sekkkk" <--- "kkkk" caused a mismatch, but
 35137     // Ex: "Some text @marcelo sekkkk" <--- "kkkk" caused a mismatch, but
 34759     // if the user presses backspace here, it will show the completion popup again.
 35138     // if the user presses backspace here, it will show the completion popup again.
 34760     const matchingWhileBackspacing = backspacing.current && wordsFromTrigger.length <= 3;
 35139     const matchingWhileBackspacing = backspacingRef.current && wordsFromTrigger.length <= 3;
 34761     if (mismatch && !(matchingWhileBackspacing || hasOneTriggerWord)) {
 35140     if (mismatch && !(matchingWhileBackspacing || hasOneTriggerWord)) {
 34762       if (autocompleter) {
 35141       if (autocompleter) {
 34763         reset();
 35142         reset();
 34764       }
 35143       }
 34765       return;
 35144       return;
 34788     const match = text.slice(text.lastIndexOf(completer.triggerPrefix)).match(new RegExp(`${safeTrigger}([\u0000-\uFFFF]*)$`));
 35167     const match = text.slice(text.lastIndexOf(completer.triggerPrefix)).match(new RegExp(`${safeTrigger}([\u0000-\uFFFF]*)$`));
 34789     const query = match && match[1];
 35168     const query = match && match[1];
 34790     setAutocompleter(completer);
 35169     setAutocompleter(completer);
 34791     setAutocompleterUI(() => completer !== autocompleter ? getAutoCompleterUI(completer) : AutocompleterUI);
 35170     setAutocompleterUI(() => completer !== autocompleter ? getAutoCompleterUI(completer) : AutocompleterUI);
 34792     setFilterValue(query === null ? '' : query);
 35171     setFilterValue(query === null ? '' : query);
 34793     // Temporarily disabling exhaustive-deps to avoid introducing unexpected side effecst.
 35172     // We want to avoid introducing unexpected side effects.
 34794     // See https://github.com/WordPress/gutenberg/pull/41820
 35173     // See https://github.com/WordPress/gutenberg/pull/41820
 34795     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 34796   }, [textContent]);
 35174   }, [textContent]);
 34797   const {
 35175   const {
 34798     key: selectedKey = ''
 35176     key: selectedKey = ''
 34799   } = filteredOptions[selectedIndex] || {};
 35177   } = filteredOptions[selectedIndex] || {};
 34800   const {
 35178   const {
 34886   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 35264   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 34887     children: [children(props), isSelected && popover]
 35265     children: [children(props), isSelected && popover]
 34888   });
 35266   });
 34889 }
 35267 }
 34890 
 35268 
 34891 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/base-control/hooks.js
 35269 ;// ./node_modules/@wordpress/components/build-module/base-control/hooks.js
 34892 /**
 35270 /**
 34893  * WordPress dependencies
 35271  * WordPress dependencies
 34894  */
 35272  */
 34895 
 35273 
 34896 
 35274 
 34925       } : {})
 35303       } : {})
 34926     }
 35304     }
 34927   };
 35305   };
 34928 }
 35306 }
 34929 
 35307 
 34930 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
 35308 ;// ./node_modules/@wordpress/icons/build-module/library/link.js
 34931 /**
 35309 /**
 34932  * WordPress dependencies
 35310  * WordPress dependencies
 34933  */
 35311  */
 34934 
 35312 
 34935 
 35313 
 34940     d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
 35318     d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
 34941   })
 35319   })
 34942 });
 35320 });
 34943 /* harmony default export */ const library_link = (link_link);
 35321 /* harmony default export */ const library_link = (link_link);
 34944 
 35322 
 34945 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js
 35323 ;// ./node_modules/@wordpress/icons/build-module/library/link-off.js
 34946 /**
 35324 /**
 34947  * WordPress dependencies
 35325  * WordPress dependencies
 34948  */
 35326  */
 34949 
 35327 
 34950 
 35328 
 34955     d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
 35333     d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"
 34956   })
 35334   })
 34957 });
 35335 });
 34958 /* harmony default export */ const link_off = (linkOff);
 35336 /* harmony default export */ const link_off = (linkOff);
 34959 
 35337 
 34960 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/styles.js
 35338 ;// ./node_modules/@wordpress/components/build-module/border-box-control/styles.js
 34961 function border_box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 35339 function border_box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 34962 /**
 35340 /**
 34963  * External dependencies
 35341  * External dependencies
 34964  */
 35342  */
 34965 
 35343 
 35006 } : 0;
 35384 } : 0;
 35007 const rightBorderControl = () => /*#__PURE__*/emotion_react_browser_esm_css(rtl({
 35385 const rightBorderControl = () => /*#__PURE__*/emotion_react_browser_esm_css(rtl({
 35008   marginLeft: 'auto'
 35386   marginLeft: 'auto'
 35009 })(), ";" + ( true ? "" : 0),  true ? "" : 0);
 35387 })(), ";" + ( true ? "" : 0),  true ? "" : 0);
 35010 
 35388 
 35011 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-linked-button/hook.js
 35389 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-linked-button/hook.js
 35012 /**
 35390 /**
 35013  * WordPress dependencies
 35391  * WordPress dependencies
 35014  */
 35392  */
 35015 
 35393 
 35016 
 35394 
 35036     ...otherProps,
 35414     ...otherProps,
 35037     className: classes
 35415     className: classes
 35038   };
 35416   };
 35039 }
 35417 }
 35040 
 35418 
 35041 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-linked-button/component.js
 35419 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-linked-button/component.js
 35042 /**
 35420 /**
 35043  * WordPress dependencies
 35421  * WordPress dependencies
 35044  */
 35422  */
 35045 
 35423 
 35046 
 35424 
 35047 
 35425 
 35048 /**
 35426 /**
 35049  * Internal dependencies
 35427  * Internal dependencies
 35050  */
 35428  */
 35051 
       
 35052 
       
 35053 
 35429 
 35054 
 35430 
 35055 
 35431 
 35056 
 35432 
 35057 const BorderBoxControlLinkedButton = (props, forwardedRef) => {
 35433 const BorderBoxControlLinkedButton = (props, forwardedRef) => {
 35059     className,
 35435     className,
 35060     isLinked,
 35436     isLinked,
 35061     ...buttonProps
 35437     ...buttonProps
 35062   } = useBorderBoxControlLinkedButton(props);
 35438   } = useBorderBoxControlLinkedButton(props);
 35063   const label = isLinked ? (0,external_wp_i18n_namespaceObject.__)('Unlink sides') : (0,external_wp_i18n_namespaceObject.__)('Link sides');
 35439   const label = isLinked ? (0,external_wp_i18n_namespaceObject.__)('Unlink sides') : (0,external_wp_i18n_namespaceObject.__)('Link sides');
 35064   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 35440   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 35065     text: label,
 35441     ...buttonProps,
 35066     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 35442     size: "small",
 35067       className: className,
 35443     icon: isLinked ? library_link : link_off,
 35068       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 35444     iconSize: 24,
 35069         ...buttonProps,
 35445     label: label,
 35070         size: "small",
 35446     ref: forwardedRef,
 35071         icon: isLinked ? library_link : link_off,
 35447     className: className
 35072         iconSize: 24,
       
 35073         "aria-label": label,
       
 35074         ref: forwardedRef
       
 35075       })
       
 35076     })
       
 35077   });
 35448   });
 35078 };
 35449 };
 35079 const ConnectedBorderBoxControlLinkedButton = contextConnect(BorderBoxControlLinkedButton, 'BorderBoxControlLinkedButton');
 35450 const ConnectedBorderBoxControlLinkedButton = contextConnect(BorderBoxControlLinkedButton, 'BorderBoxControlLinkedButton');
 35080 /* harmony default export */ const border_box_control_linked_button_component = (ConnectedBorderBoxControlLinkedButton);
 35451 /* harmony default export */ const border_box_control_linked_button_component = (ConnectedBorderBoxControlLinkedButton);
 35081 
 35452 
 35082 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-visualizer/hook.js
 35453 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-visualizer/hook.js
 35083 /**
 35454 /**
 35084  * WordPress dependencies
 35455  * WordPress dependencies
 35085  */
 35456  */
 35086 
 35457 
 35087 
 35458 
 35109     className: classes,
 35480     className: classes,
 35110     value
 35481     value
 35111   };
 35482   };
 35112 }
 35483 }
 35113 
 35484 
 35114 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-visualizer/component.js
 35485 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-visualizer/component.js
 35115 /**
       
 35116  * WordPress dependencies
       
 35117  */
       
 35118 
       
 35119 /**
 35486 /**
 35120  * Internal dependencies
 35487  * Internal dependencies
 35121  */
 35488  */
 35122 
 35489 
 35123 
 35490 
 35134   });
 35501   });
 35135 };
 35502 };
 35136 const ConnectedBorderBoxControlVisualizer = contextConnect(BorderBoxControlVisualizer, 'BorderBoxControlVisualizer');
 35503 const ConnectedBorderBoxControlVisualizer = contextConnect(BorderBoxControlVisualizer, 'BorderBoxControlVisualizer');
 35137 /* harmony default export */ const border_box_control_visualizer_component = (ConnectedBorderBoxControlVisualizer);
 35504 /* harmony default export */ const border_box_control_visualizer_component = (ConnectedBorderBoxControlVisualizer);
 35138 
 35505 
 35139 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
 35506 ;// ./node_modules/@wordpress/icons/build-module/library/line-solid.js
 35140 /**
       
 35141  * WordPress dependencies
       
 35142  */
       
 35143 
       
 35144 
       
 35145 const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 35146   xmlns: "http://www.w3.org/2000/svg",
       
 35147   viewBox: "0 0 24 24",
       
 35148   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 35149     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"
       
 35150   })
       
 35151 });
       
 35152 /* harmony default export */ const close_small = (closeSmall);
       
 35153 
       
 35154 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/line-solid.js
       
 35155 /**
 35507 /**
 35156  * WordPress dependencies
 35508  * WordPress dependencies
 35157  */
 35509  */
 35158 
 35510 
 35159 
 35511 
 35164     d: "M5 11.25h14v1.5H5z"
 35516     d: "M5 11.25h14v1.5H5z"
 35165   })
 35517   })
 35166 });
 35518 });
 35167 /* harmony default export */ const line_solid = (lineSolid);
 35519 /* harmony default export */ const line_solid = (lineSolid);
 35168 
 35520 
 35169 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/line-dashed.js
 35521 ;// ./node_modules/@wordpress/icons/build-module/library/line-dashed.js
 35170 /**
 35522 /**
 35171  * WordPress dependencies
 35523  * WordPress dependencies
 35172  */
 35524  */
 35173 
 35525 
 35174 
 35526 
 35181     clipRule: "evenodd"
 35533     clipRule: "evenodd"
 35182   })
 35534   })
 35183 });
 35535 });
 35184 /* harmony default export */ const line_dashed = (lineDashed);
 35536 /* harmony default export */ const line_dashed = (lineDashed);
 35185 
 35537 
 35186 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/line-dotted.js
 35538 ;// ./node_modules/@wordpress/icons/build-module/library/line-dotted.js
 35187 /**
 35539 /**
 35188  * WordPress dependencies
 35540  * WordPress dependencies
 35189  */
 35541  */
 35190 
 35542 
 35191 
 35543 
 35198     clipRule: "evenodd"
 35550     clipRule: "evenodd"
 35199   })
 35551   })
 35200 });
 35552 });
 35201 /* harmony default export */ const line_dotted = (lineDotted);
 35553 /* harmony default export */ const line_dotted = (lineDotted);
 35202 
 35554 
 35203 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
 35555 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/styles.js
 35204 
       
 35205 
       
 35206 /**
       
 35207  * Note: Still used by components generated by old versions of Framer
       
 35208  *
       
 35209  * @deprecated
       
 35210  */
       
 35211 const DeprecatedLayoutGroupContext = (0,external_React_.createContext)(null);
       
 35212 
       
 35213 
       
 35214 
       
 35215 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/group.mjs
       
 35216 const notify = (node) => !node.isLayoutDirty && node.willUpdate(false);
       
 35217 function nodeGroup() {
       
 35218     const nodes = new Set();
       
 35219     const subscriptions = new WeakMap();
       
 35220     const dirtyAll = () => nodes.forEach(notify);
       
 35221     return {
       
 35222         add: (node) => {
       
 35223             nodes.add(node);
       
 35224             subscriptions.set(node, node.addEventListener("willUpdate", dirtyAll));
       
 35225         },
       
 35226         remove: (node) => {
       
 35227             nodes.delete(node);
       
 35228             const unsubscribe = subscriptions.get(node);
       
 35229             if (unsubscribe) {
       
 35230                 unsubscribe();
       
 35231                 subscriptions.delete(node);
       
 35232             }
       
 35233             dirtyAll();
       
 35234         },
       
 35235         dirty: dirtyAll,
       
 35236     };
       
 35237 }
       
 35238 
       
 35239 
       
 35240 
       
 35241 ;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs
       
 35242 
       
 35243 
       
 35244 
       
 35245 
       
 35246 
       
 35247 
       
 35248 
       
 35249 const shouldInheritGroup = (inherit) => inherit === true;
       
 35250 const shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === "id";
       
 35251 const LayoutGroup = ({ children, id, inherit = true }) => {
       
 35252     const layoutGroupContext = (0,external_React_.useContext)(LayoutGroupContext);
       
 35253     const deprecatedLayoutGroupContext = (0,external_React_.useContext)(DeprecatedLayoutGroupContext);
       
 35254     const [forceRender, key] = use_force_update_useForceUpdate();
       
 35255     const context = (0,external_React_.useRef)(null);
       
 35256     const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;
       
 35257     if (context.current === null) {
       
 35258         if (shouldInheritId(inherit) && upstreamId) {
       
 35259             id = id ? upstreamId + "-" + id : upstreamId;
       
 35260         }
       
 35261         context.current = {
       
 35262             id,
       
 35263             group: shouldInheritGroup(inherit)
       
 35264                 ? layoutGroupContext.group || nodeGroup()
       
 35265                 : nodeGroup(),
       
 35266         };
       
 35267     }
       
 35268     const memoizedContext = (0,external_React_.useMemo)(() => ({ ...context.current, forceRender }), [key]);
       
 35269     return ((0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutGroupContext.Provider, { value: memoizedContext, children: children }));
       
 35270 };
       
 35271 
       
 35272 
       
 35273 
       
 35274 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/styles.js
       
 35275 
 35556 
 35276 function toggle_group_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 35557 function toggle_group_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 35277 /**
 35558 /**
 35278  * External dependencies
 35559  * External dependencies
 35279  */
 35560  */
 35284 
 35565 
 35285 const toggleGroupControl = ({
 35566 const toggleGroupControl = ({
 35286   isBlock,
 35567   isBlock,
 35287   isDeselectable,
 35568   isDeselectable,
 35288   size
 35569   size
 35289 }) => /*#__PURE__*/emotion_react_browser_esm_css("background:", COLORS.ui.background, ";border:1px solid transparent;border-radius:", config_values.controlBorderRadius, ";display:inline-flex;min-width:0;position:relative;", toggleGroupControlSize(size), " ", !isDeselectable && enclosingBorders(isBlock), ";" + ( true ? "" : 0),  true ? "" : 0);
 35570 }) => /*#__PURE__*/emotion_react_browser_esm_css("background:", COLORS.ui.background, ";border:1px solid transparent;border-radius:", config_values.radiusSmall, ";display:inline-flex;min-width:0;position:relative;", toggleGroupControlSize(size), " ", !isDeselectable && enclosingBorders(isBlock), "@media not ( prefers-reduced-motion ){&[data-indicator-animated]::before{transition-property:transform,border-radius;transition-duration:0.2s;transition-timing-function:ease-out;}}&::before{content:'';position:absolute;pointer-events:none;background:", COLORS.theme.foreground, ";outline:2px solid transparent;outline-offset:-3px;--antialiasing-factor:100;border-radius:calc(\n\t\t\t\t", config_values.radiusXSmall, " /\n\t\t\t\t\t(\n\t\t\t\t\t\tvar( --selected-width, 0 ) /\n\t\t\t\t\t\t\tvar( --antialiasing-factor )\n\t\t\t\t\t)\n\t\t\t)/", config_values.radiusXSmall, ";left:-1px;width:calc( var( --antialiasing-factor ) * 1px );height:calc( var( --selected-height, 0 ) * 1px );transform-origin:left top;transform:translateX( calc( var( --selected-left, 0 ) * 1px ) ) scaleX(\n\t\t\t\tcalc(\n\t\t\t\t\tvar( --selected-width, 0 ) / var( --antialiasing-factor )\n\t\t\t\t)\n\t\t\t);}" + ( true ? "" : 0),  true ? "" : 0);
 35290 const enclosingBorders = isBlock => {
 35571 const enclosingBorders = isBlock => {
 35291   const enclosingBorder = /*#__PURE__*/emotion_react_browser_esm_css("border-color:", COLORS.ui.border, ";" + ( true ? "" : 0),  true ? "" : 0);
 35572   const enclosingBorder = /*#__PURE__*/emotion_react_browser_esm_css("border-color:", COLORS.ui.border, ";" + ( true ? "" : 0),  true ? "" : 0);
 35292   return /*#__PURE__*/emotion_react_browser_esm_css(isBlock && enclosingBorder, " &:hover{border-color:", COLORS.ui.borderHover, ";}&:focus-within{border-color:", COLORS.ui.borderFocus, ";box-shadow:", config_values.controlBoxShadowFocus, ";z-index:1;outline:2px solid transparent;outline-offset:-2px;}" + ( true ? "" : 0),  true ? "" : 0);
 35573   return /*#__PURE__*/emotion_react_browser_esm_css(isBlock && enclosingBorder, " &:hover{border-color:", COLORS.ui.borderHover, ";}&:focus-within{border-color:", COLORS.ui.borderFocus, ";box-shadow:", config_values.controlBoxShadowFocus, ";z-index:1;outline:2px solid transparent;outline-offset:-2px;}" + ( true ? "" : 0),  true ? "" : 0);
 35293 };
 35574 };
 35294 var styles_ref =  true ? {
 35575 var styles_ref =  true ? {
 35315 } : 0)( true ? {
 35596 } : 0)( true ? {
 35316   name: "zjik7",
 35597   name: "zjik7",
 35317   styles: "display:flex"
 35598   styles: "display:flex"
 35318 } : 0);
 35599 } : 0);
 35319 
 35600 
 35320 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/radio/radio-store.js
 35601 ;// ./node_modules/@ariakit/core/esm/radio/radio-store.js
 35321 "use client";
 35602 "use client";
 35322 
 35603 
 35323 
 35604 
 35324 
 35605 
 35325 
 35606 
 35327 
 35608 
 35328 
 35609 
 35329 
 35610 
 35330 // src/radio/radio-store.ts
 35611 // src/radio/radio-store.ts
 35331 function createRadioStore(_a = {}) {
 35612 function createRadioStore(_a = {}) {
 35332   var props = _4R3V3JGP_objRest(_a, []);
 35613   var props = _3YLGPPWQ_objRest(_a, []);
 35333   var _a2;
 35614   var _a2;
 35334   const syncState = (_a2 = props.store) == null ? void 0 : _a2.getState();
 35615   const syncState = (_a2 = props.store) == null ? void 0 : _a2.getState();
 35335   const composite = createCompositeStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
 35616   const composite = createCompositeStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
 35336     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
 35617     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
 35337   }));
 35618   }));
 35338   const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, composite.getState()), {
 35619   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, composite.getState()), {
 35339     value: defaultValue(
 35620     value: defaultValue(
 35340       props.value,
 35621       props.value,
 35341       syncState == null ? void 0 : syncState.value,
 35622       syncState == null ? void 0 : syncState.value,
 35342       props.defaultValue,
 35623       props.defaultValue,
 35343       null
 35624       null
 35344     )
 35625     )
 35345   });
 35626   });
 35346   const radio = createStore(initialState, composite, props.store);
 35627   const radio = createStore(initialState, composite, props.store);
 35347   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, composite), radio), {
 35628   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, composite), radio), {
 35348     setValue: (value) => radio.setState("value", value)
 35629     setValue: (value) => radio.setState("value", value)
 35349   });
 35630   });
 35350 }
 35631 }
 35351 
 35632 
 35352 
 35633 
 35353 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/LEIRFLRL.js
 35634 ;// ./node_modules/@ariakit/react-core/esm/__chunks/4BXJGRNH.js
 35354 "use client";
 35635 "use client";
 35355 
 35636 
 35356 
 35637 
 35357 
 35638 
 35358 // src/radio/radio-store.ts
 35639 // src/radio/radio-store.ts
 35361   store = useCompositeStoreProps(store, update, props);
 35642   store = useCompositeStoreProps(store, update, props);
 35362   useStoreProps(store, props, "value", "setValue");
 35643   useStoreProps(store, props, "value", "setValue");
 35363   return store;
 35644   return store;
 35364 }
 35645 }
 35365 function useRadioStore(props = {}) {
 35646 function useRadioStore(props = {}) {
 35366   const [store, update] = EKQEJRUF_useStore(createRadioStore, props);
 35647   const [store, update] = YV4JVR4I_useStore(createRadioStore, props);
 35367   return useRadioStoreProps(store, update, props);
 35648   return useRadioStoreProps(store, update, props);
 35368 }
 35649 }
 35369 
 35650 
 35370 
 35651 
 35371 
 35652 
 35372 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/XEV62JUQ.js
 35653 ;// ./node_modules/@ariakit/react-core/esm/__chunks/UVUMR3WP.js
 35373 "use client";
 35654 "use client";
 35374 
 35655 
 35375 
 35656 
 35376 
 35657 
 35377 // src/radio/radio-context.tsx
 35658 // src/radio/radio-context.tsx
 35378 var XEV62JUQ_ctx = createStoreContext(
 35659 var UVUMR3WP_ctx = createStoreContext(
 35379   [CompositeContextProvider],
 35660   [CompositeContextProvider],
 35380   [CompositeScopedContextProvider]
 35661   [CompositeScopedContextProvider]
 35381 );
 35662 );
 35382 var useRadioContext = XEV62JUQ_ctx.useContext;
 35663 var useRadioContext = UVUMR3WP_ctx.useContext;
 35383 var useRadioScopedContext = XEV62JUQ_ctx.useScopedContext;
 35664 var useRadioScopedContext = UVUMR3WP_ctx.useScopedContext;
 35384 var useRadioProviderContext = XEV62JUQ_ctx.useProviderContext;
 35665 var useRadioProviderContext = UVUMR3WP_ctx.useProviderContext;
 35385 var RadioContextProvider = XEV62JUQ_ctx.ContextProvider;
 35666 var RadioContextProvider = UVUMR3WP_ctx.ContextProvider;
 35386 var RadioScopedContextProvider = XEV62JUQ_ctx.ScopedContextProvider;
 35667 var RadioScopedContextProvider = UVUMR3WP_ctx.ScopedContextProvider;
 35387 
 35668 
 35388 
 35669 
 35389 
 35670 
 35390 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/radio/radio-group.js
 35671 ;// ./node_modules/@ariakit/react-core/esm/radio/radio-group.js
 35391 "use client";
 35672 "use client";
 35392 
 35673 
 35393 
 35674 
 35394 
 35675 
 35395 
 35676 
 35402 
 35683 
 35403 
 35684 
 35404 // src/radio/radio-group.tsx
 35685 // src/radio/radio-group.tsx
 35405 
 35686 
 35406 
 35687 
       
 35688 var radio_group_TagName = "div";
 35407 var useRadioGroup = createHook(
 35689 var useRadioGroup = createHook(
 35408   (_a) => {
 35690   function useRadioGroup2(_a) {
 35409     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 35691     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 35410     const context = useRadioProviderContext();
 35692     const context = useRadioProviderContext();
 35411     store = store || context;
 35693     store = store || context;
 35412     invariant(
 35694     invariant(
 35413       store,
 35695       store,
 35416     props = useWrapElement(
 35698     props = useWrapElement(
 35417       props,
 35699       props,
 35418       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioScopedContextProvider, { value: store, children: element }),
 35700       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioScopedContextProvider, { value: store, children: element }),
 35419       [store]
 35701       [store]
 35420     );
 35702     );
 35421     props = _4R3V3JGP_spreadValues({
 35703     props = _3YLGPPWQ_spreadValues({
 35422       role: "radiogroup"
 35704       role: "radiogroup"
 35423     }, props);
 35705     }, props);
 35424     props = useComposite(_4R3V3JGP_spreadValues({ store }, props));
 35706     props = useComposite(_3YLGPPWQ_spreadValues({ store }, props));
 35425     return props;
 35707     return props;
 35426   }
 35708   }
 35427 );
 35709 );
 35428 var RadioGroup = createComponent((props) => {
 35710 var RadioGroup = forwardRef2(function RadioGroup2(props) {
 35429   const htmlProps = useRadioGroup(props);
 35711   const htmlProps = useRadioGroup(props);
 35430   return _3ORBWXWF_createElement("div", htmlProps);
 35712   return LMDWO4NN_createElement(radio_group_TagName, htmlProps);
 35431 });
 35713 });
 35432 if (false) {}
 35714 
 35433 
 35715 
 35434 
 35716 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/context.js
 35435 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/context.js
       
 35436 /**
 35717 /**
 35437  * WordPress dependencies
 35718  * WordPress dependencies
 35438  */
 35719  */
 35439 
 35720 
 35440 
 35721 
 35444 
 35725 
 35445 const ToggleGroupControlContext = (0,external_wp_element_namespaceObject.createContext)({});
 35726 const ToggleGroupControlContext = (0,external_wp_element_namespaceObject.createContext)({});
 35446 const useToggleGroupControlContext = () => (0,external_wp_element_namespaceObject.useContext)(ToggleGroupControlContext);
 35727 const useToggleGroupControlContext = () => (0,external_wp_element_namespaceObject.useContext)(ToggleGroupControlContext);
 35447 /* harmony default export */ const toggle_group_control_context = (ToggleGroupControlContext);
 35728 /* harmony default export */ const toggle_group_control_context = (ToggleGroupControlContext);
 35448 
 35729 
 35449 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/utils.js
 35730 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/utils.js
 35450 /**
 35731 /**
 35451  * WordPress dependencies
 35732  * WordPress dependencies
 35452  */
 35733  */
 35453 
 35734 
 35454 
 35735 
 35463  * used in uncontrolled mode, or as an "empty" value for controlled mode.
 35744  * used in uncontrolled mode, or as an "empty" value for controlled mode.
 35464  *
 35745  *
 35465  * @param valueProp The received `value`
 35746  * @param valueProp The received `value`
 35466  */
 35747  */
 35467 function useComputeControlledOrUncontrolledValue(valueProp) {
 35748 function useComputeControlledOrUncontrolledValue(valueProp) {
 35468   const isInitialRender = (0,external_wp_element_namespaceObject.useRef)(true);
 35749   const isInitialRenderRef = (0,external_wp_element_namespaceObject.useRef)(true);
 35469   const prevValueProp = (0,external_wp_compose_namespaceObject.usePrevious)(valueProp);
 35750   const prevValueProp = (0,external_wp_compose_namespaceObject.usePrevious)(valueProp);
 35470   const prevIsControlled = (0,external_wp_element_namespaceObject.useRef)(false);
 35751   const prevIsControlledRef = (0,external_wp_element_namespaceObject.useRef)(false);
 35471   (0,external_wp_element_namespaceObject.useEffect)(() => {
 35752   (0,external_wp_element_namespaceObject.useEffect)(() => {
 35472     if (isInitialRender.current) {
 35753     if (isInitialRenderRef.current) {
 35473       isInitialRender.current = false;
 35754       isInitialRenderRef.current = false;
 35474     }
 35755     }
 35475   }, []);
 35756   }, []);
 35476 
 35757 
 35477   // Assume the component is being used in controlled mode on the first re-render
 35758   // Assume the component is being used in controlled mode on the first re-render
 35478   // that has a different `valueProp` from the previous render.
 35759   // that has a different `valueProp` from the previous render.
 35479   const isControlled = prevIsControlled.current || !isInitialRender.current && prevValueProp !== valueProp;
 35760   const isControlled = prevIsControlledRef.current || !isInitialRenderRef.current && prevValueProp !== valueProp;
 35480   (0,external_wp_element_namespaceObject.useEffect)(() => {
 35761   (0,external_wp_element_namespaceObject.useEffect)(() => {
 35481     prevIsControlled.current = isControlled;
 35762     prevIsControlledRef.current = isControlled;
 35482   }, [isControlled]);
 35763   }, [isControlled]);
 35483   if (isControlled) {
 35764   if (isControlled) {
 35484     // When in controlled mode, use `''` instead of `undefined`
 35765     // When in controlled mode, use `''` instead of `undefined`
 35485     return {
 35766     return {
 35486       value: valueProp !== null && valueProp !== void 0 ? valueProp : '',
 35767       value: valueProp !== null && valueProp !== void 0 ? valueProp : '',
 35493     value: undefined,
 35774     value: undefined,
 35494     defaultValue: valueProp
 35775     defaultValue: valueProp
 35495   };
 35776   };
 35496 }
 35777 }
 35497 
 35778 
 35498 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/as-radio-group.js
 35779 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/as-radio-group.js
 35499 /**
 35780 /**
 35500  * External dependencies
 35781  * External dependencies
 35501  */
 35782  */
 35502 
 35783 
 35503 // eslint-disable-next-line no-restricted-imports
       
 35504 
 35784 
 35505 
 35785 
 35506 /**
 35786 /**
 35507  * WordPress dependencies
 35787  * WordPress dependencies
 35508  */
 35788  */
       
 35789 
 35509 
 35790 
 35510 
 35791 
 35511 
 35792 
 35512 /**
 35793 /**
 35513  * Internal dependencies
 35794  * Internal dependencies
 35522   label,
 35803   label,
 35523   onChange: onChangeProp,
 35804   onChange: onChangeProp,
 35524   size,
 35805   size,
 35525   value: valueProp,
 35806   value: valueProp,
 35526   id: idProp,
 35807   id: idProp,
       
 35808   setSelectedElement,
 35527   ...otherProps
 35809   ...otherProps
 35528 }, forwardedRef) {
 35810 }, forwardedRef) {
 35529   const generatedId = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControlAsRadioGroup, 'toggle-group-control-as-radio-group');
 35811   const generatedId = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControlAsRadioGroup, 'toggle-group-control-as-radio-group');
 35530   const baseId = idProp || generatedId;
 35812   const baseId = idProp || generatedId;
 35531 
 35813 
 35544     onChangeProp(v !== null && v !== void 0 ? v : undefined);
 35826     onChangeProp(v !== null && v !== void 0 ? v : undefined);
 35545   } : undefined;
 35827   } : undefined;
 35546   const radio = useRadioStore({
 35828   const radio = useRadioStore({
 35547     defaultValue,
 35829     defaultValue,
 35548     value,
 35830     value,
 35549     setValue: wrappedOnChangeProp
 35831     setValue: wrappedOnChangeProp,
       
 35832     rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
 35550   });
 35833   });
 35551   const selectedValue = radio.useState('value');
 35834   const selectedValue = useStoreState(radio, 'value');
 35552   const setValue = radio.setValue;
 35835   const setValue = radio.setValue;
       
 35836 
       
 35837   // Ensures that the active id is also reset after the value is "reset" by the consumer.
       
 35838   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
 35839     if (selectedValue === '') {
       
 35840       radio.setActiveId(undefined);
       
 35841     }
       
 35842   }, [radio, selectedValue]);
 35553   const groupContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 35843   const groupContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
       
 35844     activeItemIsNotFirstItem: () => radio.getState().activeId !== radio.first(),
 35554     baseId,
 35845     baseId,
 35555     isBlock: !isAdaptiveWidth,
 35846     isBlock: !isAdaptiveWidth,
 35556     size,
 35847     size,
       
 35848     // @ts-expect-error - This is wrong and we should fix it.
 35557     value: selectedValue,
 35849     value: selectedValue,
 35558     setValue
 35850     // @ts-expect-error - This is wrong and we should fix it.
 35559   }), [baseId, isAdaptiveWidth, size, selectedValue, setValue]);
 35851     setValue,
       
 35852     setSelectedElement
       
 35853   }), [baseId, isAdaptiveWidth, radio, selectedValue, setSelectedElement, setValue, size]);
 35560   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_context.Provider, {
 35854   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_context.Provider, {
 35561     value: groupContextValue,
 35855     value: groupContextValue,
 35562     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroup, {
 35856     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroup, {
 35563       store: radio,
 35857       store: radio,
 35564       "aria-label": label,
 35858       "aria-label": label,
 35570     })
 35864     })
 35571   });
 35865   });
 35572 }
 35866 }
 35573 const ToggleGroupControlAsRadioGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlAsRadioGroup);
 35867 const ToggleGroupControlAsRadioGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlAsRadioGroup);
 35574 
 35868 
 35575 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-controlled-value.js
 35869 ;// ./node_modules/@wordpress/components/build-module/utils/hooks/use-controlled-value.js
 35576 /**
 35870 /**
 35577  * WordPress dependencies
 35871  * WordPress dependencies
 35578  */
 35872  */
 35579 
 35873 
 35580 /**
 35874 /**
 35607     setValue = setState;
 35901     setValue = setState;
 35608   }
 35902   }
 35609   return [value, setValue];
 35903   return [value, setValue];
 35610 }
 35904 }
 35611 
 35905 
 35612 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/as-button-group.js
 35906 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/as-button-group.js
 35613 /**
 35907 /**
 35614  * WordPress dependencies
 35908  * WordPress dependencies
 35615  */
 35909  */
 35616 
 35910 
 35617 
 35911 
 35630   label,
 35924   label,
 35631   onChange,
 35925   onChange,
 35632   size,
 35926   size,
 35633   value: valueProp,
 35927   value: valueProp,
 35634   id: idProp,
 35928   id: idProp,
       
 35929   setSelectedElement,
 35635   ...otherProps
 35930   ...otherProps
 35636 }, forwardedRef) {
 35931 }, forwardedRef) {
 35637   const generatedId = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControlAsButtonGroup, 'toggle-group-control-as-button-group');
 35932   const generatedId = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControlAsButtonGroup, 'toggle-group-control-as-button-group');
 35638   const baseId = idProp || generatedId;
 35933   const baseId = idProp || generatedId;
 35639 
 35934 
 35654     baseId,
 35949     baseId,
 35655     value: selectedValue,
 35950     value: selectedValue,
 35656     setValue: setSelectedValue,
 35951     setValue: setSelectedValue,
 35657     isBlock: !isAdaptiveWidth,
 35952     isBlock: !isAdaptiveWidth,
 35658     isDeselectable: true,
 35953     isDeselectable: true,
 35659     size
 35954     size,
 35660   }), [baseId, selectedValue, setSelectedValue, isAdaptiveWidth, size]);
 35955     setSelectedElement
       
 35956   }), [baseId, selectedValue, setSelectedValue, isAdaptiveWidth, size, setSelectedElement]);
 35661   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_context.Provider, {
 35957   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_context.Provider, {
 35662     value: groupContextValue,
 35958     value: groupContextValue,
 35663     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 35959     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 35664       "aria-label": label,
 35960       "aria-label": label,
 35665       ...otherProps,
 35961       ...otherProps,
 35669     })
 35965     })
 35670   });
 35966   });
 35671 }
 35967 }
 35672 const ToggleGroupControlAsButtonGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlAsButtonGroup);
 35968 const ToggleGroupControlAsButtonGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlAsButtonGroup);
 35673 
 35969 
 35674 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/component.js
 35970 ;// ./node_modules/@wordpress/components/build-module/utils/element-rect.js
       
 35971 /* eslint-disable jsdoc/require-param */
       
 35972 /**
       
 35973  * WordPress dependencies
       
 35974  */
       
 35975 
       
 35976 
       
 35977 
       
 35978 /**
       
 35979  * The position and dimensions of an element, relative to its offset parent.
       
 35980  */
       
 35981 
       
 35982 /**
       
 35983  * An `ElementOffsetRect` object with all values set to zero.
       
 35984  */
       
 35985 const NULL_ELEMENT_OFFSET_RECT = {
       
 35986   element: undefined,
       
 35987   top: 0,
       
 35988   right: 0,
       
 35989   bottom: 0,
       
 35990   left: 0,
       
 35991   width: 0,
       
 35992   height: 0
       
 35993 };
       
 35994 
       
 35995 /**
       
 35996  * Returns the position and dimensions of an element, relative to its offset
       
 35997  * parent, with subpixel precision. Values reflect the real measures before any
       
 35998  * potential scaling distortions along the X and Y axes.
       
 35999  *
       
 36000  * Useful in contexts where plain `getBoundingClientRect` calls or `ResizeObserver`
       
 36001  * entries are not suitable, such as when the element is transformed, and when
       
 36002  * `element.offset<Top|Left|Width|Height>` methods are not precise enough.
       
 36003  *
       
 36004  * **Note:** in some contexts, like when the scale is 0, this method will fail
       
 36005  * because it's impossible to calculate a scaling ratio. When that happens, it
       
 36006  * will return `undefined`.
       
 36007  */
       
 36008 function getElementOffsetRect(element) {
       
 36009   var _offsetParent$getBoun, _offsetParent$scrollL, _offsetParent$scrollT;
       
 36010   // Position and dimension values computed with `getBoundingClientRect` have
       
 36011   // subpixel precision, but are affected by distortions since they represent
       
 36012   // the "real" measures, or in other words, the actual final values as rendered
       
 36013   // by the browser.
       
 36014   const rect = element.getBoundingClientRect();
       
 36015   if (rect.width === 0 || rect.height === 0) {
       
 36016     return;
       
 36017   }
       
 36018   const offsetParent = element.offsetParent;
       
 36019   const offsetParentRect = (_offsetParent$getBoun = offsetParent?.getBoundingClientRect()) !== null && _offsetParent$getBoun !== void 0 ? _offsetParent$getBoun : NULL_ELEMENT_OFFSET_RECT;
       
 36020   const offsetParentScrollX = (_offsetParent$scrollL = offsetParent?.scrollLeft) !== null && _offsetParent$scrollL !== void 0 ? _offsetParent$scrollL : 0;
       
 36021   const offsetParentScrollY = (_offsetParent$scrollT = offsetParent?.scrollTop) !== null && _offsetParent$scrollT !== void 0 ? _offsetParent$scrollT : 0;
       
 36022 
       
 36023   // Computed widths and heights have subpixel precision, and are not affected
       
 36024   // by distortions.
       
 36025   const computedWidth = parseFloat(getComputedStyle(element).width);
       
 36026   const computedHeight = parseFloat(getComputedStyle(element).height);
       
 36027 
       
 36028   // We can obtain the current scale factor for the element by comparing "computed"
       
 36029   // dimensions with the "real" ones.
       
 36030   const scaleX = computedWidth / rect.width;
       
 36031   const scaleY = computedHeight / rect.height;
       
 36032   return {
       
 36033     element,
       
 36034     // To obtain the adjusted values for the position:
       
 36035     // 1. Compute the element's position relative to the offset parent.
       
 36036     // 2. Correct for the scale factor.
       
 36037     // 3. Adjust for the scroll position of the offset parent.
       
 36038     top: (rect.top - offsetParentRect?.top) * scaleY + offsetParentScrollY,
       
 36039     right: (offsetParentRect?.right - rect.right) * scaleX - offsetParentScrollX,
       
 36040     bottom: (offsetParentRect?.bottom - rect.bottom) * scaleY - offsetParentScrollY,
       
 36041     left: (rect.left - offsetParentRect?.left) * scaleX + offsetParentScrollX,
       
 36042     // Computed dimensions don't need any adjustments.
       
 36043     width: computedWidth,
       
 36044     height: computedHeight
       
 36045   };
       
 36046 }
       
 36047 const POLL_RATE = 100;
       
 36048 
       
 36049 /**
       
 36050  * Tracks the position and dimensions of an element, relative to its offset
       
 36051  * parent. The element can be changed dynamically.
       
 36052  *
       
 36053  * When no element is provided (`null` or `undefined`), the hook will return
       
 36054  * a "null" rect, in which all values are `0` and `element` is `undefined`.
       
 36055  *
       
 36056  * **Note:** sometimes, the measurement will fail (see `getElementOffsetRect`'s
       
 36057  * documentation for more details). When that happens, this hook will attempt
       
 36058  * to measure again after a frame, and if that fails, it will poll every 100
       
 36059  * milliseconds until it succeeds.
       
 36060  */
       
 36061 function useTrackElementOffsetRect(targetElement, deps = []) {
       
 36062   const [indicatorPosition, setIndicatorPosition] = (0,external_wp_element_namespaceObject.useState)(NULL_ELEMENT_OFFSET_RECT);
       
 36063   const intervalRef = (0,external_wp_element_namespaceObject.useRef)();
       
 36064   const measure = (0,external_wp_compose_namespaceObject.useEvent)(() => {
       
 36065     // Check that the targetElement is still attached to the DOM, in case
       
 36066     // it was removed since the last `measure` call.
       
 36067     if (targetElement && targetElement.isConnected) {
       
 36068       const elementOffsetRect = getElementOffsetRect(targetElement);
       
 36069       if (elementOffsetRect) {
       
 36070         setIndicatorPosition(elementOffsetRect);
       
 36071         clearInterval(intervalRef.current);
       
 36072         return true;
       
 36073       }
       
 36074     } else {
       
 36075       clearInterval(intervalRef.current);
       
 36076     }
       
 36077     return false;
       
 36078   });
       
 36079   const setElement = (0,external_wp_compose_namespaceObject.useResizeObserver)(() => {
       
 36080     if (!measure()) {
       
 36081       requestAnimationFrame(() => {
       
 36082         if (!measure()) {
       
 36083           intervalRef.current = setInterval(measure, POLL_RATE);
       
 36084         }
       
 36085       });
       
 36086     }
       
 36087   });
       
 36088   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 36089     setElement(targetElement);
       
 36090     if (!targetElement) {
       
 36091       setIndicatorPosition(NULL_ELEMENT_OFFSET_RECT);
       
 36092     }
       
 36093   }, [setElement, targetElement]);
       
 36094 
       
 36095   // Escape hatch to force a remeasurement when something else changes rather
       
 36096   // than the target elements' ref or size (for example, the target element
       
 36097   // can change its position within the tablist).
       
 36098   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 36099     measure();
       
 36100     // `measure` is a stable function, so it's safe to omit it from the deps array.
       
 36101     // deps can't be statically analyzed by ESLint
       
 36102   }, deps);
       
 36103   return indicatorPosition;
       
 36104 }
       
 36105 
       
 36106 /* eslint-enable jsdoc/require-param */
       
 36107 
       
 36108 ;// ./node_modules/@wordpress/components/build-module/utils/hooks/use-on-value-update.js
       
 36109 /* eslint-disable jsdoc/require-param */
       
 36110 /**
       
 36111  * WordPress dependencies
       
 36112  */
       
 36113 
       
 36114 
       
 36115 
       
 36116 /**
       
 36117  * Context object for the `onUpdate` callback of `useOnValueUpdate`.
       
 36118  */
       
 36119 
       
 36120 /**
       
 36121  * Calls the `onUpdate` callback when the `value` changes.
       
 36122  */
       
 36123 function useOnValueUpdate(
       
 36124 /**
       
 36125  * The value to watch for changes.
       
 36126  */
       
 36127 value,
       
 36128 /**
       
 36129  * Callback to fire when the value changes.
       
 36130  */
       
 36131 onUpdate) {
       
 36132   const previousValueRef = (0,external_wp_element_namespaceObject.useRef)(value);
       
 36133   const updateCallbackEvent = (0,external_wp_compose_namespaceObject.useEvent)(onUpdate);
       
 36134   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 36135     if (previousValueRef.current !== value) {
       
 36136       updateCallbackEvent({
       
 36137         previousValue: previousValueRef.current
       
 36138       });
       
 36139       previousValueRef.current = value;
       
 36140     }
       
 36141   }, [updateCallbackEvent, value]);
       
 36142 }
       
 36143 /* eslint-enable jsdoc/require-param */
       
 36144 
       
 36145 ;// ./node_modules/@wordpress/components/build-module/utils/hooks/use-animated-offset-rect.js
       
 36146 /* eslint-disable jsdoc/require-param */
       
 36147 
       
 36148 /**
       
 36149  * WordPress dependencies
       
 36150  */
       
 36151 
       
 36152 
       
 36153 /**
       
 36154  * Internal dependencies
       
 36155  */
       
 36156 
       
 36157 
       
 36158 
       
 36159 /**
       
 36160  * A utility used to animate something in a container component based on the "offset
       
 36161  * rect" (position relative to the container and size) of a subelement. For example,
       
 36162  * this is useful to render an indicator for the selected option of a component, and
       
 36163  * to animate it when the selected option changes.
       
 36164  *
       
 36165  * Takes in a container element and the up-to-date "offset rect" of the target
       
 36166  * subelement, obtained with `useTrackElementOffsetRect`. Then it does the following:
       
 36167  *
       
 36168  * - Adds CSS variables with rect information to the container, so that the indicator
       
 36169  *   can be rendered and animated with them. These are kept up-to-date, enabling CSS
       
 36170  *   transitions on change.
       
 36171  * - Sets an attribute (`data-subelement-animated` by default) when the tracked
       
 36172  *   element changes, so that the target (e.g. the indicator) can be animated to its
       
 36173  *   new size and position.
       
 36174  * - Removes the attribute when the animation is done.
       
 36175  *
       
 36176  * The need for the attribute is due to the fact that the rect might update in
       
 36177  * situations other than when the tracked element changes, e.g. the tracked element
       
 36178  * might be resized. In such cases, there is no need to animate the indicator, and
       
 36179  * the change in size or position of the indicator needs to be reflected immediately.
       
 36180  */
       
 36181 function useAnimatedOffsetRect(
       
 36182 /**
       
 36183  * The container element.
       
 36184  */
       
 36185 container,
       
 36186 /**
       
 36187  * The rect of the tracked element.
       
 36188  */
       
 36189 rect, {
       
 36190   prefix = 'subelement',
       
 36191   dataAttribute = `${prefix}-animated`,
       
 36192   transitionEndFilter = () => true,
       
 36193   roundRect = false
       
 36194 } = {}) {
       
 36195   const setProperties = (0,external_wp_compose_namespaceObject.useEvent)(() => {
       
 36196     Object.keys(rect).forEach(property => property !== 'element' && container?.style.setProperty(`--${prefix}-${property}`, String(roundRect ? Math.floor(rect[property]) : rect[property])));
       
 36197   });
       
 36198   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 36199     setProperties();
       
 36200   }, [rect, setProperties]);
       
 36201   useOnValueUpdate(rect.element, ({
       
 36202     previousValue
       
 36203   }) => {
       
 36204     // Only enable the animation when moving from one element to another.
       
 36205     if (rect.element && previousValue) {
       
 36206       container?.setAttribute(`data-${dataAttribute}`, '');
       
 36207     }
       
 36208   });
       
 36209   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 36210     function onTransitionEnd(event) {
       
 36211       if (transitionEndFilter(event)) {
       
 36212         container?.removeAttribute(`data-${dataAttribute}`);
       
 36213       }
       
 36214     }
       
 36215     container?.addEventListener('transitionend', onTransitionEnd);
       
 36216     return () => container?.removeEventListener('transitionend', onTransitionEnd);
       
 36217   }, [dataAttribute, container, transitionEndFilter]);
       
 36218 }
       
 36219 /* eslint-enable jsdoc/require-param */
       
 36220 
       
 36221 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/component.js
 35675 /**
 36222 /**
 35676  * External dependencies
 36223  * External dependencies
 35677  */
 36224  */
 35678 
 36225 
 35679 // eslint-disable-next-line no-restricted-imports
       
 35680 
       
 35681 
       
 35682 /**
 36226 /**
 35683  * WordPress dependencies
 36227  * WordPress dependencies
 35684  */
 36228  */
 35685 
 36229 
 35686 
 36230 
 35687 
       
 35688 /**
 36231 /**
 35689  * Internal dependencies
 36232  * Internal dependencies
 35690  */
 36233  */
       
 36234 
       
 36235 
       
 36236 
 35691 
 36237 
 35692 
 36238 
 35693 
 36239 
 35694 
 36240 
 35695 
 36241 
 35700 
 36246 
 35701 function UnconnectedToggleGroupControl(props, forwardedRef) {
 36247 function UnconnectedToggleGroupControl(props, forwardedRef) {
 35702   const {
 36248   const {
 35703     __nextHasNoMarginBottom = false,
 36249     __nextHasNoMarginBottom = false,
 35704     __next40pxDefaultSize = false,
 36250     __next40pxDefaultSize = false,
       
 36251     __shouldNotWarnDeprecated36pxSize,
 35705     className,
 36252     className,
 35706     isAdaptiveWidth = false,
 36253     isAdaptiveWidth = false,
 35707     isBlock = false,
 36254     isBlock = false,
 35708     isDeselectable = false,
 36255     isDeselectable = false,
 35709     label,
 36256     label,
 35713     size = 'default',
 36260     size = 'default',
 35714     value,
 36261     value,
 35715     children,
 36262     children,
 35716     ...otherProps
 36263     ...otherProps
 35717   } = useContextSystem(props, 'ToggleGroupControl');
 36264   } = useContextSystem(props, 'ToggleGroupControl');
 35718   const baseId = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControl, 'toggle-group-control');
       
 35719   const normalizedSize = __next40pxDefaultSize && size === 'default' ? '__unstable-large' : size;
 36265   const normalizedSize = __next40pxDefaultSize && size === 'default' ? '__unstable-large' : size;
       
 36266   const [selectedElement, setSelectedElement] = (0,external_wp_element_namespaceObject.useState)();
       
 36267   const [controlElement, setControlElement] = (0,external_wp_element_namespaceObject.useState)();
       
 36268   const refs = (0,external_wp_compose_namespaceObject.useMergeRefs)([setControlElement, forwardedRef]);
       
 36269   const selectedRect = useTrackElementOffsetRect(value !== null && value !== undefined ? selectedElement : undefined);
       
 36270   useAnimatedOffsetRect(controlElement, selectedRect, {
       
 36271     prefix: 'selected',
       
 36272     dataAttribute: 'indicator-animated',
       
 36273     transitionEndFilter: event => event.pseudoElement === '::before',
       
 36274     roundRect: true
       
 36275   });
 35720   const cx = useCx();
 36276   const cx = useCx();
 35721   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx(toggleGroupControl({
 36277   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx(toggleGroupControl({
 35722     isBlock,
 36278     isBlock,
 35723     isDeselectable,
 36279     isDeselectable,
 35724     size: normalizedSize
 36280     size: normalizedSize
 35725   }), isBlock && toggle_group_control_styles_block, className), [className, cx, isBlock, isDeselectable, normalizedSize]);
 36281   }), isBlock && toggle_group_control_styles_block, className), [className, cx, isBlock, isDeselectable, normalizedSize]);
 35726   const MainControl = isDeselectable ? ToggleGroupControlAsButtonGroup : ToggleGroupControlAsRadioGroup;
 36282   const MainControl = isDeselectable ? ToggleGroupControlAsButtonGroup : ToggleGroupControlAsRadioGroup;
       
 36283   maybeWarnDeprecated36pxSize({
       
 36284     componentName: 'ToggleGroupControl',
       
 36285     size,
       
 36286     __next40pxDefaultSize,
       
 36287     __shouldNotWarnDeprecated36pxSize
       
 36288   });
 35727   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control, {
 36289   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control, {
 35728     help: help,
 36290     help: help,
 35729     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 36291     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
       
 36292     __associatedWPComponentName: "ToggleGroupControl",
 35730     children: [!hideLabelFromVision && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(VisualLabelWrapper, {
 36293     children: [!hideLabelFromVision && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(VisualLabelWrapper, {
 35731       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
 36294       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
 35732         children: label
 36295         children: label
 35733       })
 36296       })
 35734     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MainControl, {
 36297     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MainControl, {
 35735       ...otherProps,
 36298       ...otherProps,
       
 36299       setSelectedElement: setSelectedElement,
 35736       className: classes,
 36300       className: classes,
 35737       isAdaptiveWidth: isAdaptiveWidth,
 36301       isAdaptiveWidth: isAdaptiveWidth,
 35738       label: label,
 36302       label: label,
 35739       onChange: onChange,
 36303       onChange: onChange,
 35740       ref: forwardedRef,
 36304       ref: refs,
 35741       size: normalizedSize,
 36305       size: normalizedSize,
 35742       value: value,
 36306       value: value,
 35743       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LayoutGroup, {
 36307       children: children
 35744         id: baseId,
       
 35745         children: children
       
 35746       })
       
 35747     })]
 36308     })]
 35748   });
 36309   });
 35749 }
 36310 }
 35750 
 36311 
 35751 /**
 36312 /**
 35767  *   __experimentalToggleGroupControlOption as ToggleGroupControlOption,
 36328  *   __experimentalToggleGroupControlOption as ToggleGroupControlOption,
 35768  * } from '@wordpress/components';
 36329  * } from '@wordpress/components';
 35769  *
 36330  *
 35770  * function Example() {
 36331  * function Example() {
 35771  *   return (
 36332  *   return (
 35772  *     <ToggleGroupControl label="my label" value="vertical" isBlock>
 36333  *     <ToggleGroupControl
       
 36334  *       label="my label"
       
 36335  *       value="vertical"
       
 36336  *       isBlock
       
 36337  *       __nextHasNoMarginBottom
       
 36338  *       __next40pxDefaultSize
       
 36339  *     >
 35773  *       <ToggleGroupControlOption value="horizontal" label="Horizontal" />
 36340  *       <ToggleGroupControlOption value="horizontal" label="Horizontal" />
 35774  *       <ToggleGroupControlOption value="vertical" label="Vertical" />
 36341  *       <ToggleGroupControlOption value="vertical" label="Vertical" />
 35775  *     </ToggleGroupControl>
 36342  *     </ToggleGroupControl>
 35776  *   );
 36343  *   );
 35777  * }
 36344  * }
 35778  * ```
 36345  * ```
 35779  */
 36346  */
 35780 const ToggleGroupControl = contextConnect(UnconnectedToggleGroupControl, 'ToggleGroupControl');
 36347 const ToggleGroupControl = contextConnect(UnconnectedToggleGroupControl, 'ToggleGroupControl');
 35781 /* harmony default export */ const toggle_group_control_component = (ToggleGroupControl);
 36348 /* harmony default export */ const toggle_group_control_component = (ToggleGroupControl);
 35782 
 36349 
 35783 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/JL6IRDFK.js
 36350 ;// ./node_modules/@ariakit/react-core/esm/__chunks/NLEBE274.js
 35784 "use client";
 36351 "use client";
 35785 
 36352 
 35786 
 36353 
 35787 
 36354 
 35788 
 36355 
 35789 
 36356 
 35790 
 36357 
 35791 
 36358 
 35792 // src/radio/radio.ts
 36359 // src/radio/radio.tsx
 35793 
 36360 
 35794 
 36361 
       
 36362 var NLEBE274_TagName = "input";
 35795 function getIsChecked(value, storeValue) {
 36363 function getIsChecked(value, storeValue) {
 35796   if (storeValue === void 0)
 36364   if (storeValue === void 0) return;
 35797     return;
       
 35798   if (value != null && storeValue != null) {
 36365   if (value != null && storeValue != null) {
 35799     return storeValue === value;
 36366     return storeValue === value;
 35800   }
 36367   }
 35801   return !!storeValue;
 36368   return !!storeValue;
 35802 }
 36369 }
 35803 function isNativeRadio(tagName, type) {
 36370 function isNativeRadio(tagName, type) {
 35804   return tagName === "input" && (!type || type === "radio");
 36371   return tagName === "input" && (!type || type === "radio");
 35805 }
 36372 }
 35806 var useRadio = createHook(
 36373 var useRadio = createHook(function useRadio2(_a) {
 35807   (_a) => {
 36374   var _b = _a, {
 35808     var _b = _a, { store, name, value, checked } = _b, props = __objRest(_b, ["store", "name", "value", "checked"]);
 36375     store,
 35809     const context = useRadioContext();
 36376     name,
 35810     store = store || context;
 36377     value,
 35811     const id = useId(props.id);
 36378     checked
 35812     const ref = (0,external_React_.useRef)(null);
 36379   } = _b, props = __objRest(_b, [
 35813     const isChecked = useStoreState(
 36380     "store",
 35814       store,
 36381     "name",
 35815       (state) => checked != null ? checked : getIsChecked(value, state == null ? void 0 : state.value)
 36382     "value",
 35816     );
 36383     "checked"
 35817     (0,external_React_.useEffect)(() => {
 36384   ]);
 35818       if (!id)
 36385   const context = useRadioContext();
 35819         return;
 36386   store = store || context;
 35820       if (!isChecked)
 36387   const id = useId(props.id);
 35821         return;
 36388   const ref = (0,external_React_.useRef)(null);
 35822       const isActiveItem = (store == null ? void 0 : store.getState().activeId) === id;
 36389   const isChecked = useStoreState(
 35823       if (isActiveItem)
 36390     store,
 35824         return;
 36391     (state) => checked != null ? checked : getIsChecked(value, state == null ? void 0 : state.value)
 35825       store == null ? void 0 : store.setActiveId(id);
 36392   );
 35826     }, [store, isChecked, id]);
 36393   (0,external_React_.useEffect)(() => {
 35827     const onChangeProp = props.onChange;
 36394     if (!id) return;
 35828     const tagName = useTagName(ref, props.as || "input");
 36395     if (!isChecked) return;
 35829     const nativeRadio = isNativeRadio(tagName, props.type);
 36396     const isActiveItem = (store == null ? void 0 : store.getState().activeId) === id;
 35830     const disabled = disabledFromProps(props);
 36397     if (isActiveItem) return;
 35831     const [propertyUpdated, schedulePropertyUpdate] = useForceUpdate();
 36398     store == null ? void 0 : store.setActiveId(id);
 35832     (0,external_React_.useEffect)(() => {
 36399   }, [store, isChecked, id]);
 35833       const element = ref.current;
 36400   const onChangeProp = props.onChange;
 35834       if (!element)
 36401   const tagName = useTagName(ref, NLEBE274_TagName);
 35835         return;
 36402   const nativeRadio = isNativeRadio(tagName, props.type);
 35836       if (nativeRadio)
 36403   const disabled = disabledFromProps(props);
 35837         return;
 36404   const [propertyUpdated, schedulePropertyUpdate] = useForceUpdate();
 35838       if (isChecked !== void 0) {
 36405   (0,external_React_.useEffect)(() => {
 35839         element.checked = isChecked;
 36406     const element = ref.current;
 35840       }
 36407     if (!element) return;
 35841       if (name !== void 0) {
 36408     if (nativeRadio) return;
 35842         element.name = name;
 36409     if (isChecked !== void 0) {
 35843       }
 36410       element.checked = isChecked;
 35844       if (value !== void 0) {
 36411     }
 35845         element.value = `${value}`;
 36412     if (name !== void 0) {
 35846       }
 36413       element.name = name;
 35847     }, [propertyUpdated, nativeRadio, isChecked, name, value]);
 36414     }
 35848     const onChange = useEvent((event) => {
 36415     if (value !== void 0) {
 35849       if (disabled) {
 36416       element.value = `${value}`;
 35850         event.preventDefault();
 36417     }
 35851         event.stopPropagation();
 36418   }, [propertyUpdated, nativeRadio, isChecked, name, value]);
 35852         return;
 36419   const onChange = useEvent((event) => {
 35853       }
 36420     if (disabled) {
 35854       if (!nativeRadio) {
 36421       event.preventDefault();
 35855         event.currentTarget.checked = true;
 36422       event.stopPropagation();
 35856         schedulePropertyUpdate();
 36423       return;
 35857       }
 36424     }
 35858       onChangeProp == null ? void 0 : onChangeProp(event);
 36425     if ((store == null ? void 0 : store.getState().value) === value) return;
 35859       if (event.defaultPrevented)
 36426     if (!nativeRadio) {
 35860         return;
 36427       event.currentTarget.checked = true;
 35861       store == null ? void 0 : store.setValue(value);
 36428       schedulePropertyUpdate();
 35862     });
 36429     }
 35863     const onClickProp = props.onClick;
 36430     onChangeProp == null ? void 0 : onChangeProp(event);
 35864     const onClick = useEvent((event) => {
 36431     if (event.defaultPrevented) return;
 35865       onClickProp == null ? void 0 : onClickProp(event);
 36432     store == null ? void 0 : store.setValue(value);
 35866       if (event.defaultPrevented)
 36433   });
 35867         return;
 36434   const onClickProp = props.onClick;
 35868       if (nativeRadio)
 36435   const onClick = useEvent((event) => {
 35869         return;
 36436     onClickProp == null ? void 0 : onClickProp(event);
 35870       onChange(event);
 36437     if (event.defaultPrevented) return;
 35871     });
 36438     if (nativeRadio) return;
 35872     const onFocusProp = props.onFocus;
 36439     onChange(event);
 35873     const onFocus = useEvent((event) => {
 36440   });
 35874       onFocusProp == null ? void 0 : onFocusProp(event);
 36441   const onFocusProp = props.onFocus;
 35875       if (event.defaultPrevented)
 36442   const onFocus = useEvent((event) => {
 35876         return;
 36443     onFocusProp == null ? void 0 : onFocusProp(event);
 35877       if (!nativeRadio)
 36444     if (event.defaultPrevented) return;
 35878         return;
 36445     if (!nativeRadio) return;
 35879       if (!store)
 36446     if (!store) return;
 35880         return;
 36447     const { moves, activeId } = store.getState();
 35881       const { moves, activeId } = store.getState();
 36448     if (!moves) return;
 35882       if (!moves)
 36449     if (id && activeId !== id) return;
 35883         return;
 36450     onChange(event);
 35884       if (id && activeId !== id)
 36451   });
 35885         return;
 36452   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
 35886       onChange(event);
 36453     id,
 35887     });
 36454     role: !nativeRadio ? "radio" : void 0,
 35888     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 36455     type: nativeRadio ? "radio" : void 0,
 35889       id,
 36456     "aria-checked": isChecked
 35890       role: !nativeRadio ? "radio" : void 0,
 36457   }, props), {
 35891       type: nativeRadio ? "radio" : void 0,
 36458     ref: useMergeRefs(ref, props.ref),
 35892       "aria-checked": isChecked
 36459     onChange,
 35893     }, props), {
 36460     onClick,
 35894       ref: useMergeRefs(ref, props.ref),
 36461     onFocus
 35895       onChange,
 36462   });
 35896       onClick,
 36463   props = useCompositeItem(_3YLGPPWQ_spreadValues({
 35897       onFocus
 36464     store,
 35898     });
 36465     clickOnEnter: !nativeRadio
 35899     props = useCompositeItem(_4R3V3JGP_spreadValues({ store, clickOnEnter: !nativeRadio }, props));
 36466   }, props));
 35900     return _4R3V3JGP_spreadValues({
 36467   return removeUndefinedValues(_3YLGPPWQ_spreadValues({
 35901       name: nativeRadio ? name : void 0,
 36468     name: nativeRadio ? name : void 0,
 35902       value: nativeRadio ? value : void 0,
 36469     value: nativeRadio ? value : void 0,
 35903       checked: isChecked
 36470     checked: isChecked
 35904     }, props);
 36471   }, props));
 35905   }
 36472 });
       
 36473 var Radio = memo2(
       
 36474   forwardRef2(function Radio2(props) {
       
 36475     const htmlProps = useRadio(props);
       
 36476     return LMDWO4NN_createElement(NLEBE274_TagName, htmlProps);
       
 36477   })
 35906 );
 36478 );
 35907 var Radio = createMemoComponent((props) => {
 36479 
 35908   const htmlProps = useRadio(props);
 36480 
 35909   return _3ORBWXWF_createElement("input", htmlProps);
 36481 
 35910 });
 36482 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-base/styles.js
 35911 if (false) {}
       
 35912 
       
 35913 
       
 35914 
       
 35915 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-base/styles.js
       
 35916 
 36483 
 35917 function toggle_group_control_option_base_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 36484 function toggle_group_control_option_base_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 35918 /**
 36485 /**
 35919  * External dependencies
 36486  * External dependencies
 35920  */
 36487  */
 35936 const buttonView = ({
 36503 const buttonView = ({
 35937   isDeselectable,
 36504   isDeselectable,
 35938   isIcon,
 36505   isIcon,
 35939   isPressed,
 36506   isPressed,
 35940   size
 36507   size
 35941 }) => /*#__PURE__*/emotion_react_browser_esm_css("align-items:center;appearance:none;background:transparent;border:none;border-radius:", config_values.controlBorderRadius, ";color:", COLORS.gray[700], ";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ", config_values.transitionDurationFast, " linear,color ", config_values.transitionDurationFast, " linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:", config_values.toggleGroupControlBackgroundColor, ";}", isDeselectable && deselectable, " ", isIcon && isIconStyles({
 36508 }) => /*#__PURE__*/emotion_react_browser_esm_css("align-items:center;appearance:none;background:transparent;border:none;border-radius:", config_values.radiusXSmall, ";color:", COLORS.theme.gray[700], ";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ", config_values.transitionDurationFast, " linear,color ", config_values.transitionDurationFast, " linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&[disabled]{opacity:0.4;cursor:default;}&:active{background:", COLORS.ui.background, ";}", isDeselectable && deselectable, " ", isIcon && isIconStyles({
 35942   size
 36509   size
 35943 }), " ", isPressed && pressed, ";" + ( true ? "" : 0),  true ? "" : 0);
 36510 }), " ", isPressed && pressed, ";" + ( true ? "" : 0),  true ? "" : 0);
 35944 const pressed = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.white, ";&:active{background:transparent;}" + ( true ? "" : 0),  true ? "" : 0);
 36511 const pressed = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.theme.foregroundInverted, ";&:active{background:transparent;}" + ( true ? "" : 0),  true ? "" : 0);
 35945 const deselectable = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";&:focus{box-shadow:inset 0 0 0 1px ", COLORS.white, ",0 0 0 ", config_values.borderWidthFocus, " ", COLORS.theme.accent, ";outline:2px solid transparent;}" + ( true ? "" : 0),  true ? "" : 0);
 36512 const deselectable = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.theme.foreground, ";&:focus{box-shadow:inset 0 0 0 1px ", COLORS.ui.background, ",0 0 0 ", config_values.borderWidthFocus, " ", COLORS.theme.accent, ";outline:2px solid transparent;}" + ( true ? "" : 0),  true ? "" : 0);
 35946 const ButtonContentView = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 36513 const ButtonContentView = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 35947   target: "et6ln9s0"
 36514   target: "et6ln9s0"
 35948 } : 0)("display:flex;font-size:", config_values.fontSize, ";line-height:1;" + ( true ? "" : 0));
 36515 } : 0)("display:flex;font-size:", config_values.fontSize, ";line-height:1;" + ( true ? "" : 0));
 35949 const isIconStyles = ({
 36516 const isIconStyles = ({
 35950   size = 'default'
 36517   size = 'default'
 35951 }) => {
 36518 }) => {
 35952   const iconButtonSizes = {
 36519   const iconButtonSizes = {
 35953     default: '30px',
 36520     default: '30px',
 35954     '__unstable-large': '32px'
 36521     '__unstable-large': '32px'
 35955   };
 36522   };
 35956   return /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";height:", iconButtonSizes[size], ";aspect-ratio:1;padding-left:0;padding-right:0;" + ( true ? "" : 0),  true ? "" : 0);
 36523   return /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.theme.foreground, ";height:", iconButtonSizes[size], ";aspect-ratio:1;padding-left:0;padding-right:0;" + ( true ? "" : 0),  true ? "" : 0);
 35957 };
 36524 };
 35958 const backdropView = /*#__PURE__*/emotion_react_browser_esm_css("background:", COLORS.gray[900], ";border-radius:", config_values.controlBorderRadius, ";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;" + ( true ? "" : 0),  true ? "" : 0);
 36525 
 35959 
 36526 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-base/component.js
 35960 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-base/component.js
       
 35961 /**
 36527 /**
 35962  * External dependencies
 36528  * External dependencies
 35963  */
 36529  */
 35964 
 36530 
 35965 // eslint-disable-next-line no-restricted-imports
       
 35966 
       
 35967 // eslint-disable-next-line no-restricted-imports
       
 35968 
 36531 
 35969 
 36532 
 35970 /**
 36533 /**
 35971  * WordPress dependencies
 36534  * WordPress dependencies
 35972  */
 36535  */
 35981 
 36544 
 35982 
 36545 
 35983 
 36546 
 35984 
 36547 
 35985 
 36548 
 35986 
       
 35987 
       
 35988 const {
 36549 const {
 35989   ButtonContentView: component_ButtonContentView,
 36550   /* ButtonContentView */ "Rp": component_ButtonContentView,
 35990   LabelView: component_LabelView
 36551   /* LabelView */ "y0": component_LabelView
 35991 } = toggle_group_control_option_base_styles_namespaceObject;
 36552 } = toggle_group_control_option_base_styles_namespaceObject;
 35992 const REDUCED_MOTION_TRANSITION_CONFIG = {
       
 35993   duration: 0
       
 35994 };
       
 35995 const LAYOUT_ID = 'toggle-group-backdrop-shared-layout-id';
       
 35996 const WithToolTip = ({
 36553 const WithToolTip = ({
 35997   showTooltip,
 36554   showTooltip,
 35998   text,
 36555   text,
 35999   children
 36556   children
 36000 }) => {
 36557 }) => {
 36008   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 36565   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 36009     children: children
 36566     children: children
 36010   });
 36567   });
 36011 };
 36568 };
 36012 function ToggleGroupControlOptionBase(props, forwardedRef) {
 36569 function ToggleGroupControlOptionBase(props, forwardedRef) {
 36013   const shouldReduceMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
       
 36014   const toggleGroupControlContext = useToggleGroupControlContext();
 36570   const toggleGroupControlContext = useToggleGroupControlContext();
 36015   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControlOptionBase, toggleGroupControlContext.baseId || 'toggle-group-control-option-base');
 36571   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(ToggleGroupControlOptionBase, toggleGroupControlContext.baseId || 'toggle-group-control-option-base');
 36016   const buttonProps = useContextSystem({
 36572   const buttonProps = useContextSystem({
 36017     ...props,
 36573     ...props,
 36018     id
 36574     id
 36026     className,
 36582     className,
 36027     isIcon = false,
 36583     isIcon = false,
 36028     value,
 36584     value,
 36029     children,
 36585     children,
 36030     showTooltip = false,
 36586     showTooltip = false,
 36031     onFocus: onFocusProp,
 36587     disabled,
 36032     ...otherButtonProps
 36588     ...otherButtonProps
 36033   } = buttonProps;
 36589   } = buttonProps;
 36034   const isPressed = toggleGroupControlContext.value === value;
 36590   const isPressed = toggleGroupControlContext.value === value;
 36035   const cx = useCx();
 36591   const cx = useCx();
 36036   const labelViewClasses = (0,external_wp_element_namespaceObject.useMemo)(() => cx(isBlock && labelBlock), [cx, isBlock]);
 36592   const labelViewClasses = (0,external_wp_element_namespaceObject.useMemo)(() => cx(isBlock && labelBlock), [cx, isBlock]);
 36038     isDeselectable,
 36594     isDeselectable,
 36039     isIcon,
 36595     isIcon,
 36040     isPressed,
 36596     isPressed,
 36041     size
 36597     size
 36042   }), className), [cx, isDeselectable, isIcon, isPressed, size, className]);
 36598   }), className), [cx, isDeselectable, isIcon, isPressed, size, className]);
 36043   const backdropClasses = (0,external_wp_element_namespaceObject.useMemo)(() => cx(backdropView), [cx]);
       
 36044   const buttonOnClick = () => {
 36599   const buttonOnClick = () => {
 36045     if (isDeselectable && isPressed) {
 36600     if (isDeselectable && isPressed) {
 36046       toggleGroupControlContext.setValue(undefined);
 36601       toggleGroupControlContext.setValue(undefined);
 36047     } else {
 36602     } else {
 36048       toggleGroupControlContext.setValue(value);
 36603       toggleGroupControlContext.setValue(value);
 36052     ...otherButtonProps,
 36607     ...otherButtonProps,
 36053     className: itemClasses,
 36608     className: itemClasses,
 36054     'data-value': value,
 36609     'data-value': value,
 36055     ref: forwardedRef
 36610     ref: forwardedRef
 36056   };
 36611   };
 36057   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(component_LabelView, {
 36612   const labelRef = (0,external_wp_element_namespaceObject.useRef)(null);
       
 36613   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 36614     if (isPressed && labelRef.current) {
       
 36615       toggleGroupControlContext.setSelectedElement(labelRef.current);
       
 36616     }
       
 36617   }, [isPressed, toggleGroupControlContext]);
       
 36618   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_LabelView, {
       
 36619     ref: labelRef,
 36058     className: labelViewClasses,
 36620     className: labelViewClasses,
 36059     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WithToolTip, {
 36621     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WithToolTip, {
 36060       showTooltip: showTooltip,
 36622       showTooltip: showTooltip,
 36061       text: otherButtonProps['aria-label'],
 36623       text: otherButtonProps['aria-label'],
 36062       children: isDeselectable ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
 36624       children: isDeselectable ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
 36063         ...commonProps,
 36625         ...commonProps,
 36064         onFocus: onFocusProp,
 36626         disabled: disabled,
 36065         "aria-pressed": isPressed,
 36627         "aria-pressed": isPressed,
 36066         type: "button",
 36628         type: "button",
 36067         onClick: buttonOnClick,
 36629         onClick: buttonOnClick,
 36068         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_ButtonContentView, {
 36630         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_ButtonContentView, {
 36069           children: children
 36631           children: children
 36070         })
 36632         })
 36071       }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Radio, {
 36633       }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Radio, {
       
 36634         disabled: disabled,
       
 36635         onFocusVisible: () => {
       
 36636           const selectedValueIsEmpty = toggleGroupControlContext.value === null || toggleGroupControlContext.value === '';
       
 36637 
       
 36638           // Conditions ensure that the first visible focus to a radio group
       
 36639           // without a selected option will not automatically select the option.
       
 36640           if (!selectedValueIsEmpty || toggleGroupControlContext.activeItemIsNotFirstItem?.()) {
       
 36641             toggleGroupControlContext.setValue(value);
       
 36642           }
       
 36643         },
 36072         render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
 36644         render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("button", {
 36073           type: "button",
 36645           type: "button",
 36074           ...commonProps,
 36646           ...commonProps
 36075           onFocus: event => {
       
 36076             onFocusProp?.(event);
       
 36077             if (event.defaultPrevented) {
       
 36078               return;
       
 36079             }
       
 36080             toggleGroupControlContext.setValue(value);
       
 36081           }
       
 36082         }),
 36647         }),
 36083         value: value,
 36648         value: value,
 36084         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_ButtonContentView, {
 36649         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component_ButtonContentView, {
 36085           children: children
 36650           children: children
 36086         })
 36651         })
 36087       })
 36652       })
 36088     }), isPressed ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(motion.div, {
 36653     })
 36089       layout: true,
       
 36090       layoutRoot: true,
       
 36091       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(motion.div, {
       
 36092         className: backdropClasses,
       
 36093         transition: shouldReduceMotion ? REDUCED_MOTION_TRANSITION_CONFIG : undefined,
       
 36094         role: "presentation",
       
 36095         layoutId: LAYOUT_ID
       
 36096       })
       
 36097     }) : null]
       
 36098   });
 36654   });
 36099 }
 36655 }
 36100 
 36656 
 36101 /**
 36657 /**
 36102  * `ToggleGroupControlOptionBase` is a form component and is meant to be used as an internal,
 36658  * `ToggleGroupControlOptionBase` is a form component and is meant to be used as an internal,
 36120  * ```
 36676  * ```
 36121  */
 36677  */
 36122 const ConnectedToggleGroupControlOptionBase = contextConnect(ToggleGroupControlOptionBase, 'ToggleGroupControlOptionBase');
 36678 const ConnectedToggleGroupControlOptionBase = contextConnect(ToggleGroupControlOptionBase, 'ToggleGroupControlOptionBase');
 36123 /* harmony default export */ const toggle_group_control_option_base_component = (ConnectedToggleGroupControlOptionBase);
 36679 /* harmony default export */ const toggle_group_control_option_base_component = (ConnectedToggleGroupControlOptionBase);
 36124 
 36680 
 36125 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-icon/component.js
 36681 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option-icon/component.js
 36126 /**
 36682 /**
 36127  * External dependencies
 36683  * External dependencies
 36128  */
 36684  */
 36129 
 36685 
 36130 /**
 36686 /**
 36168  *	__experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,
 36724  *	__experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,
 36169  * from '@wordpress/components';
 36725  * from '@wordpress/components';
 36170  * import { formatLowercase, formatUppercase } from '@wordpress/icons';
 36726  * import { formatLowercase, formatUppercase } from '@wordpress/icons';
 36171  *
 36727  *
 36172  * function Example() {
 36728  * function Example() {
 36173  *	return (
 36729  *  return (
 36174  *		<ToggleGroupControl>
 36730  *    <ToggleGroupControl __nextHasNoMarginBottom __next40pxDefaultSize>
 36175  *			<ToggleGroupControlOptionIcon
 36731  *      <ToggleGroupControlOptionIcon
 36176  *				value="uppercase"
 36732  *        value="uppercase"
 36177  *				label="Uppercase"
 36733  *        label="Uppercase"
 36178  *				icon={ formatUppercase }
 36734  *        icon={ formatUppercase }
 36179  *			/>
 36735  *      />
 36180  *			<ToggleGroupControlOptionIcon
 36736  *      <ToggleGroupControlOptionIcon
 36181  *				value="lowercase"
 36737  *        value="lowercase"
 36182  *				label="Lowercase"
 36738  *        label="Lowercase"
 36183  *				icon={ formatLowercase }
 36739  *        icon={ formatLowercase }
 36184  *			/>
 36740  *      />
 36185  *		</ToggleGroupControl>
 36741  *    </ToggleGroupControl>
 36186  *	);
 36742  *  );
 36187  * }
 36743  * }
 36188  * ```
 36744  * ```
 36189  */
 36745  */
 36190 const ToggleGroupControlOptionIcon = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlOptionIcon);
 36746 const ToggleGroupControlOptionIcon = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlOptionIcon);
 36191 /* harmony default export */ const toggle_group_control_option_icon_component = (ToggleGroupControlOptionIcon);
 36747 /* harmony default export */ const toggle_group_control_option_icon_component = (ToggleGroupControlOptionIcon);
 36192 
 36748 
 36193 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control-style-picker/component.js
 36749 ;// ./node_modules/@wordpress/components/build-module/border-control/border-control-style-picker/component.js
 36194 /**
 36750 /**
 36195  * WordPress dependencies
 36751  * WordPress dependencies
 36196  */
 36752  */
 36197 
 36753 
 36198 
 36754 
 36237   });
 36793   });
 36238 }
 36794 }
 36239 const BorderControlStylePicker = contextConnect(UnconnectedBorderControlStylePicker, 'BorderControlStylePicker');
 36795 const BorderControlStylePicker = contextConnect(UnconnectedBorderControlStylePicker, 'BorderControlStylePicker');
 36240 /* harmony default export */ const border_control_style_picker_component = (BorderControlStylePicker);
 36796 /* harmony default export */ const border_control_style_picker_component = (BorderControlStylePicker);
 36241 
 36797 
 36242 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-indicator/index.js
 36798 ;// ./node_modules/@wordpress/components/build-module/color-indicator/index.js
 36243 /**
 36799 /**
 36244  * External dependencies
 36800  * External dependencies
 36245  */
 36801  */
 36246 
 36802 
 36247 /**
 36803 /**
 36281  * ```
 36837  * ```
 36282  */
 36838  */
 36283 const ColorIndicator = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedColorIndicator);
 36839 const ColorIndicator = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedColorIndicator);
 36284 /* harmony default export */ const color_indicator = (ColorIndicator);
 36840 /* harmony default export */ const color_indicator = (ColorIndicator);
 36285 
 36841 
 36286 ;// CONCATENATED MODULE: ./node_modules/colord/plugins/a11y.mjs
 36842 ;// ./node_modules/colord/plugins/a11y.mjs
 36287 var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}}
 36843 var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}}
 36288 
 36844 
 36289 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/index.js
 36845 ;// ./node_modules/@wordpress/components/build-module/dropdown/index.js
 36290 /**
 36846 /**
 36291  * External dependencies
 36847  * External dependencies
 36292  */
 36848  */
 36293 
 36849 
 36294 /**
 36850 /**
 36299 
 36855 
 36300 
 36856 
 36301 /**
 36857 /**
 36302  * Internal dependencies
 36858  * Internal dependencies
 36303  */
 36859  */
 36304 
       
 36305 
 36860 
 36306 
 36861 
 36307 
 36862 
 36308 
 36863 
 36309 const UnconnectedDropdown = (props, forwardedRef) => {
 36864 const UnconnectedDropdown = (props, forwardedRef) => {
 36430  * ```
 36985  * ```
 36431  */
 36986  */
 36432 const Dropdown = contextConnect(UnconnectedDropdown, 'Dropdown');
 36987 const Dropdown = contextConnect(UnconnectedDropdown, 'Dropdown');
 36433 /* harmony default export */ const dropdown = (Dropdown);
 36988 /* harmony default export */ const dropdown = (Dropdown);
 36434 
 36989 
 36435 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-suffix-wrapper.js
 36990 ;// ./node_modules/@wordpress/components/build-module/input-control/input-suffix-wrapper.js
 36436 /**
 36991 /**
 36437  * External dependencies
 36992  * External dependencies
 36438  */
 36993  */
 36439 
 36994 
 36440 /**
 36995 /**
 36441  * Internal dependencies
 36996  * Internal dependencies
 36442  */
 36997  */
       
 36998 
 36443 
 36999 
 36444 
 37000 
 36445 
 37001 
 36446 function UnconnectedInputControlSuffixWrapper(props, forwardedRef) {
 37002 function UnconnectedInputControlSuffixWrapper(props, forwardedRef) {
 36447   const derivedProps = useContextSystem(props, 'InputControlSuffixWrapper');
 37003   const derivedProps = useContextSystem(props, 'InputControlSuffixWrapper');
 36448   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 37004   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrefixSuffixWrapper, {
 36449     marginBottom: 0,
       
 36450     ...derivedProps,
 37005     ...derivedProps,
 36451     ref: forwardedRef
 37006     ref: forwardedRef
 36452   });
 37007   });
 36453 }
 37008 }
 36454 
 37009 
 36468  * ```
 37023  * ```
 36469  */
 37024  */
 36470 const InputControlSuffixWrapper = contextConnect(UnconnectedInputControlSuffixWrapper, 'InputControlSuffixWrapper');
 37025 const InputControlSuffixWrapper = contextConnect(UnconnectedInputControlSuffixWrapper, 'InputControlSuffixWrapper');
 36471 /* harmony default export */ const input_suffix_wrapper = (InputControlSuffixWrapper);
 37026 /* harmony default export */ const input_suffix_wrapper = (InputControlSuffixWrapper);
 36472 
 37027 
 36473 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/styles/select-control-styles.js
 37028 ;// ./node_modules/@wordpress/components/build-module/select-control/styles/select-control-styles.js
 36474 
 37029 
       
 37030 function select_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 36475 /**
 37031 /**
 36476  * External dependencies
 37032  * External dependencies
 36477  */
 37033  */
 36478 
 37034 
 36479 /**
 37035 /**
 36480  * Internal dependencies
 37036  * Internal dependencies
 36481  */
 37037  */
       
 37038 
 36482 
 37039 
 36483 
 37040 
 36484 
 37041 
 36485 
 37042 
 36486 const select_control_styles_disabledStyles = ({
 37043 const select_control_styles_disabledStyles = ({
 36487   disabled
 37044   disabled
 36488 }) => {
 37045 }) => {
 36489   if (!disabled) {
 37046   if (!disabled) {
 36490     return '';
 37047     return '';
 36491   }
 37048   }
 36492   return /*#__PURE__*/emotion_react_browser_esm_css({
 37049   return /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.ui.textDisabled, ";cursor:default;" + ( true ? "" : 0),  true ? "" : 0);
 36493     color: COLORS.ui.textDisabled
       
 36494   },  true ? "" : 0,  true ? "" : 0);
       
 36495 };
 37050 };
       
 37051 var select_control_styles_ref2 =  true ? {
       
 37052   name: "1lv1yo7",
       
 37053   styles: "display:inline-flex"
       
 37054 } : 0;
       
 37055 const inputBaseVariantStyles = ({
       
 37056   variant
       
 37057 }) => {
       
 37058   if (variant === 'minimal') {
       
 37059     return select_control_styles_ref2;
       
 37060   }
       
 37061   return '';
       
 37062 };
       
 37063 const StyledInputBase = /*#__PURE__*/emotion_styled_base_browser_esm(input_base,  true ? {
       
 37064   target: "e1mv6sxx3"
       
 37065 } : 0)("color:", COLORS.theme.foreground, ";cursor:pointer;", select_control_styles_disabledStyles, " ", inputBaseVariantStyles, ";" + ( true ? "" : 0));
 36496 const select_control_styles_sizeStyles = ({
 37066 const select_control_styles_sizeStyles = ({
 36497   __next40pxDefaultSize,
 37067   __next40pxDefaultSize,
 36498   multiple,
 37068   multiple,
 36499   selectSize = 'default'
 37069   selectSize = 'default'
 36500 }) => {
 37070 }) => {
 36540   __next40pxDefaultSize,
 37110   __next40pxDefaultSize,
 36541   multiple,
 37111   multiple,
 36542   selectSize = 'default'
 37112   selectSize = 'default'
 36543 }) => {
 37113 }) => {
 36544   const padding = {
 37114   const padding = {
 36545     default: 16,
 37115     default: config_values.controlPaddingX,
 36546     small: 8,
 37116     small: config_values.controlPaddingXSmall,
 36547     compact: 8,
 37117     compact: config_values.controlPaddingXSmall,
 36548     '__unstable-large': 16
 37118     '__unstable-large': config_values.controlPaddingX
 36549   };
 37119   };
 36550   if (!__next40pxDefaultSize) {
 37120   if (!__next40pxDefaultSize) {
 36551     padding.default = padding.compact;
 37121     padding.default = padding.compact;
 36552   }
 37122   }
 36553   const selectedPadding = padding[selectSize] || padding.default;
 37123   const selectedPadding = padding[selectSize] || padding.default;
 36565 }) => {
 37135 }) => {
 36566   return {
 37136   return {
 36567     overflow: multiple ? 'auto' : 'hidden'
 37137     overflow: multiple ? 'auto' : 'hidden'
 36568   };
 37138   };
 36569 };
 37139 };
       
 37140 var select_control_styles_ref =  true ? {
       
 37141   name: "n1jncc",
       
 37142   styles: "field-sizing:content"
       
 37143 } : 0;
       
 37144 const variantStyles = ({
       
 37145   variant
       
 37146 }) => {
       
 37147   if (variant === 'minimal') {
       
 37148     return select_control_styles_ref;
       
 37149   }
       
 37150   return '';
       
 37151 };
 36570 
 37152 
 36571 // TODO: Resolve need to use &&& to increase specificity
 37153 // TODO: Resolve need to use &&& to increase specificity
 36572 // https://github.com/WordPress/gutenberg/issues/18483
 37154 // https://github.com/WordPress/gutenberg/issues/18483
 36573 
 37155 
 36574 const Select = /*#__PURE__*/emotion_styled_base_browser_esm("select",  true ? {
 37156 const Select = /*#__PURE__*/emotion_styled_base_browser_esm("select",  true ? {
 36575   target: "e1mv6sxx2"
 37157   target: "e1mv6sxx2"
 36576 } : 0)("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:", COLORS.gray[900], ";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;", select_control_styles_disabledStyles, ";", fontSizeStyles, ";", select_control_styles_sizeStyles, ";", sizePaddings, ";", overflowStyles, ";}" + ( true ? "" : 0));
 37158 } : 0)("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;", fontSizeStyles, ";", select_control_styles_sizeStyles, ";", sizePaddings, ";", overflowStyles, " ", variantStyles, ";}" + ( true ? "" : 0));
 36577 const DownArrowWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 37159 const DownArrowWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 36578   target: "e1mv6sxx1"
 37160   target: "e1mv6sxx1"
 36579 } : 0)("margin-inline-end:", space(-1), ";line-height:0;" + ( true ? "" : 0));
 37161 } : 0)("margin-inline-end:", space(-1), ";line-height:0;path{fill:currentColor;}" + ( true ? "" : 0));
 36580 const InputControlSuffixWrapperWithClickThrough = /*#__PURE__*/emotion_styled_base_browser_esm(input_suffix_wrapper,  true ? {
 37162 const InputControlSuffixWrapperWithClickThrough = /*#__PURE__*/emotion_styled_base_browser_esm(input_suffix_wrapper,  true ? {
 36581   target: "e1mv6sxx0"
 37163   target: "e1mv6sxx0"
 36582 } : 0)("position:absolute;pointer-events:none;", rtl({
 37164 } : 0)("position:absolute;pointer-events:none;", rtl({
 36583   right: 0
 37165   right: 0
 36584 }), ";" + ( true ? "" : 0));
 37166 }), ";" + ( true ? "" : 0));
 36585 
 37167 
 36586 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
 37168 ;// ./node_modules/@wordpress/icons/build-module/icon/index.js
 36587 /**
 37169 /**
 36588  * WordPress dependencies
 37170  * WordPress dependencies
 36589  */
 37171  */
 36590 
 37172 
 36591 
 37173 
 36593 
 37175 
 36594 /**
 37176 /**
 36595  * Return an SVG icon.
 37177  * Return an SVG icon.
 36596  *
 37178  *
 36597  * @param {IconProps}                                 props icon is the SVG component to render
 37179  * @param {IconProps}                                 props icon is the SVG component to render
 36598  *                                                          size is a number specifiying the icon size in pixels
 37180  *                                                          size is a number specifying the icon size in pixels
 36599  *                                                          Other props will be passed to wrapped SVG component
 37181  *                                                          Other props will be passed to wrapped SVG component
 36600  * @param {import('react').ForwardedRef<HTMLElement>} ref   The forwarded ref to the SVG element.
 37182  * @param {import('react').ForwardedRef<HTMLElement>} ref   The forwarded ref to the SVG element.
 36601  *
 37183  *
 36602  * @return {JSX.Element}  Icon component
 37184  * @return {JSX.Element}  Icon component
 36603  */
 37185  */
 36613     ref
 37195     ref
 36614   });
 37196   });
 36615 }
 37197 }
 36616 /* harmony default export */ const icons_build_module_icon = ((0,external_wp_element_namespaceObject.forwardRef)(icon_Icon));
 37198 /* harmony default export */ const icons_build_module_icon = ((0,external_wp_element_namespaceObject.forwardRef)(icon_Icon));
 36617 
 37199 
 36618 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
 37200 ;// ./node_modules/@wordpress/icons/build-module/library/chevron-down.js
 36619 /**
 37201 /**
 36620  * WordPress dependencies
 37202  * WordPress dependencies
 36621  */
 37203  */
 36622 
 37204 
 36623 
 37205 
 36628     d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
 37210     d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
 36629   })
 37211   })
 36630 });
 37212 });
 36631 /* harmony default export */ const chevron_down = (chevronDown);
 37213 /* harmony default export */ const chevron_down = (chevronDown);
 36632 
 37214 
 36633 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/chevron-down.js
 37215 ;// ./node_modules/@wordpress/components/build-module/select-control/chevron-down.js
 36634 /**
 37216 /**
 36635  * WordPress dependencies
 37217  * WordPress dependencies
 36636  */
 37218  */
 36637 
 37219 
 36638 
 37220 
 36651     })
 37233     })
 36652   });
 37234   });
 36653 };
 37235 };
 36654 /* harmony default export */ const select_control_chevron_down = (SelectControlChevronDown);
 37236 /* harmony default export */ const select_control_chevron_down = (SelectControlChevronDown);
 36655 
 37237 
 36656 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/index.js
 37238 ;// ./node_modules/@wordpress/components/build-module/select-control/index.js
 36657 /**
 37239 /**
 36658  * External dependencies
 37240  * External dependencies
 36659  */
 37241  */
 36660 
 37242 
 36661 
 37243 
 36676 
 37258 
 36677 function select_control_useUniqueId(idProp) {
 37259 function select_control_useUniqueId(idProp) {
 36678   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(SelectControl);
 37260   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(SelectControl);
 36679   const id = `inspector-select-control-${instanceId}`;
 37261   const id = `inspector-select-control-${instanceId}`;
 36680   return idProp || id;
 37262   return idProp || id;
       
 37263 }
       
 37264 function SelectOptions({
       
 37265   options
       
 37266 }) {
       
 37267   return options.map(({
       
 37268     id,
       
 37269     label,
       
 37270     value,
       
 37271     ...optionProps
       
 37272   }, index) => {
       
 37273     const key = id || `${label}-${value}-${index}`;
       
 37274     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("option", {
       
 37275       value: value,
       
 37276       ...optionProps,
       
 37277       children: label
       
 37278     }, key);
       
 37279   });
 36681 }
 37280 }
 36682 function UnforwardedSelectControl(props, ref) {
 37281 function UnforwardedSelectControl(props, ref) {
 36683   const {
 37282   const {
 36684     className,
 37283     className,
 36685     disabled = false,
 37284     disabled = false,
 36694     value: valueProp,
 37293     value: valueProp,
 36695     labelPosition = 'top',
 37294     labelPosition = 'top',
 36696     children,
 37295     children,
 36697     prefix,
 37296     prefix,
 36698     suffix,
 37297     suffix,
       
 37298     variant = 'default',
 36699     __next40pxDefaultSize = false,
 37299     __next40pxDefaultSize = false,
 36700     __nextHasNoMarginBottom = false,
 37300     __nextHasNoMarginBottom = false,
       
 37301     __shouldNotWarnDeprecated36pxSize,
 36701     ...restProps
 37302     ...restProps
 36702   } = useDeprecated36pxDefaultSizeProp(props);
 37303   } = useDeprecated36pxDefaultSizeProp(props);
 36703   const id = select_control_useUniqueId(idProp);
 37304   const id = select_control_useUniqueId(idProp);
 36704   const helpId = help ? `${id}__help` : undefined;
 37305   const helpId = help ? `${id}__help` : undefined;
 36705 
 37306 
 36723     props.onChange?.(event.target.value, {
 37324     props.onChange?.(event.target.value, {
 36724       event
 37325       event
 36725     });
 37326     });
 36726   };
 37327   };
 36727   const classes = dist_clsx('components-select-control', className);
 37328   const classes = dist_clsx('components-select-control', className);
       
 37329   maybeWarnDeprecated36pxSize({
       
 37330     componentName: 'SelectControl',
       
 37331     __next40pxDefaultSize,
       
 37332     size,
       
 37333     __shouldNotWarnDeprecated36pxSize
       
 37334   });
 36728   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 37335   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 36729     help: help,
 37336     help: help,
 36730     id: id,
 37337     id: id,
 36731     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 37338     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 36732     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(input_base, {
 37339     __associatedWPComponentName: "SelectControl",
       
 37340     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledInputBase, {
 36733       className: classes,
 37341       className: classes,
 36734       disabled: disabled,
 37342       disabled: disabled,
 36735       hideLabelFromVision: hideLabelFromVision,
 37343       hideLabelFromVision: hideLabelFromVision,
 36736       id: id,
 37344       id: id,
       
 37345       isBorderless: variant === 'minimal',
 36737       label: label,
 37346       label: label,
 36738       size: size,
 37347       size: size,
 36739       suffix: suffix || !multiple && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control_chevron_down, {}),
 37348       suffix: suffix || !multiple && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control_chevron_down, {}),
 36740       prefix: prefix,
 37349       prefix: prefix,
 36741       labelPosition: labelPosition,
 37350       labelPosition: labelPosition,
       
 37351       __unstableInputWidth: variant === 'minimal' ? 'auto' : undefined,
       
 37352       variant: variant,
 36742       __next40pxDefaultSize: __next40pxDefaultSize,
 37353       __next40pxDefaultSize: __next40pxDefaultSize,
 36743       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Select, {
 37354       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Select, {
 36744         ...restProps,
 37355         ...restProps,
 36745         __next40pxDefaultSize: __next40pxDefaultSize,
 37356         __next40pxDefaultSize: __next40pxDefaultSize,
 36746         "aria-describedby": helpId,
 37357         "aria-describedby": helpId,
 36750         multiple: multiple,
 37361         multiple: multiple,
 36751         onChange: handleOnChange,
 37362         onChange: handleOnChange,
 36752         ref: ref,
 37363         ref: ref,
 36753         selectSize: size,
 37364         selectSize: size,
 36754         value: valueProp,
 37365         value: valueProp,
 36755         children: children || options.map((option, index) => {
 37366         variant: variant,
 36756           const key = option.id || `${option.label}-${option.value}-${index}`;
 37367         children: children || /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectOptions, {
 36757           return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("option", {
 37368           options: options
 36758             value: option.value,
       
 36759             disabled: option.disabled,
       
 36760             hidden: option.hidden,
       
 36761             children: option.label
       
 36762           }, key);
       
 36763         })
 37369         })
 36764       })
 37370       })
 36765     })
 37371     })
 36766   });
 37372   });
 36767 }
 37373 }
 36777  * const MySelectControl = () => {
 37383  * const MySelectControl = () => {
 36778  *   const [ size, setSize ] = useState( '50%' );
 37384  *   const [ size, setSize ] = useState( '50%' );
 36779  *
 37385  *
 36780  *   return (
 37386  *   return (
 36781  *     <SelectControl
 37387  *     <SelectControl
       
 37388  *       __next40pxDefaultSize
       
 37389  *       __nextHasNoMarginBottom
 36782  *       label="Size"
 37390  *       label="Size"
 36783  *       value={ size }
 37391  *       value={ size }
 36784  *       options={ [
 37392  *       options={ [
 36785  *         { label: 'Big', value: '100%' },
 37393  *         { label: 'Big', value: '100%' },
 36786  *         { label: 'Medium', value: '50%' },
 37394  *         { label: 'Medium', value: '50%' },
 36793  * ```
 37401  * ```
 36794  */
 37402  */
 36795 const SelectControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSelectControl);
 37403 const SelectControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSelectControl);
 36796 /* harmony default export */ const select_control = (SelectControl);
 37404 /* harmony default export */ const select_control = (SelectControl);
 36797 
 37405 
 36798 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/hooks/use-controlled-state.js
 37406 ;// ./node_modules/@wordpress/components/build-module/utils/hooks/use-controlled-state.js
 36799 /**
 37407 /**
 36800  * WordPress dependencies
 37408  * WordPress dependencies
 36801  */
 37409  */
 36802 
 37410 
 36803 
 37411 
 36844  * @param {T | undefined} currentState             The current value.
 37452  * @param {T | undefined} currentState             The current value.
 36845  * @param {Options<T>}    [options=defaultOptions] Additional options for the hook.
 37453  * @param {Options<T>}    [options=defaultOptions] Additional options for the hook.
 36846  *
 37454  *
 36847  * @return {[T | "", (nextState: T) => void]} The controlled value and the value setter.
 37455  * @return {[T | "", (nextState: T) => void]} The controlled value and the value setter.
 36848  */
 37456  */
 36849 function use_controlled_state_useControlledState(currentState, options = defaultOptions) {
 37457 function useControlledState(currentState, options = defaultOptions) {
 36850   const {
 37458   const {
 36851     initial,
 37459     initial,
 36852     fallback
 37460     fallback
 36853   } = {
 37461   } = {
 36854     ...defaultOptions,
 37462     ...defaultOptions,
 36876   }, [hasCurrentState]);
 37484   }, [hasCurrentState]);
 36877   /* eslint-enable jsdoc/no-undefined-types */
 37485   /* eslint-enable jsdoc/no-undefined-types */
 36878 
 37486 
 36879   return [state, setState];
 37487   return [state, setState];
 36880 }
 37488 }
 36881 /* harmony default export */ const use_controlled_state = (use_controlled_state_useControlledState);
 37489 /* harmony default export */ const use_controlled_state = (useControlledState);
 36882 
 37490 
 36883 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/utils.js
 37491 ;// ./node_modules/@wordpress/components/build-module/range-control/utils.js
 36884 /**
 37492 /**
 36885  * WordPress dependencies
 37493  * WordPress dependencies
 36886  */
 37494  */
 36887 
 37495 
 36888 
 37496 
 36935   // `state` can't be an empty string because we specified a fallback value of
 37543   // `state` can't be an empty string because we specified a fallback value of
 36936   // `null` in `useControlledState`
 37544   // `null` in `useControlledState`
 36937   return [state, setState];
 37545   return [state, setState];
 36938 }
 37546 }
 36939 
 37547 
 36940 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/styles/range-control-styles.js
 37548 ;// ./node_modules/@wordpress/components/build-module/range-control/styles/range-control-styles.js
 36941 
 37549 
 36942 function range_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 37550 function range_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 36943 /**
 37551 /**
 36944  * External dependencies
 37552  * External dependencies
 36945  */
 37553  */
 36979       marginBottom: marks ? 16 : undefined
 37587       marginBottom: marks ? 16 : undefined
 36980     },  true ? "" : 0,  true ? "" : 0);
 37588     },  true ? "" : 0,  true ? "" : 0);
 36981   }
 37589   }
 36982   return '';
 37590   return '';
 36983 };
 37591 };
 36984 const range_control_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 37592 const range_control_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm('div',  true ? {
       
 37593   shouldForwardProp: prop => !['color', '__nextHasNoMarginBottom', 'marks'].includes(prop),
 36985   target: "e1epgpqk13"
 37594   target: "e1epgpqk13"
 36986 } : 0)("display:block;flex:1;position:relative;width:100%;", wrapperColor, ";", rangeHeight, ";", wrapperMargin, ";" + ( true ? "" : 0));
 37595 } : 0)("display:block;flex:1;position:relative;width:100%;", wrapperColor, ";", rangeHeight, ";", wrapperMargin, ";" + ( true ? "" : 0));
 36987 const BeforeIconWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37596 const BeforeIconWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 36988   target: "e1epgpqk12"
 37597   target: "e1epgpqk12"
 36989 } : 0)("display:flex;margin-top:", railHeight, "px;", rtl({
 37598 } : 0)("display:flex;margin-top:", railHeight, "px;", rtl({
 37006     background
 37615     background
 37007   },  true ? "" : 0,  true ? "" : 0);
 37616   },  true ? "" : 0,  true ? "" : 0);
 37008 };
 37617 };
 37009 const Rail = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37618 const Rail = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37010   target: "e1epgpqk10"
 37619   target: "e1epgpqk10"
 37011 } : 0)("background-color:", COLORS.gray[300], ";left:0;pointer-events:none;right:0;display:block;height:", railHeight, "px;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;border-radius:", railHeight, "px;", railBackgroundColor, ";" + ( true ? "" : 0));
 37620 } : 0)("background-color:", COLORS.gray[300], ";left:0;pointer-events:none;right:0;display:block;height:", railHeight, "px;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;border-radius:", config_values.radiusFull, ";", railBackgroundColor, ";" + ( true ? "" : 0));
 37012 const trackBackgroundColor = ({
 37621 const trackBackgroundColor = ({
 37013   disabled,
 37622   disabled,
 37014   trackColor
 37623   trackColor
 37015 }) => {
 37624 }) => {
 37016   let background = trackColor || 'currentColor';
 37625   let background = trackColor || 'currentColor';
 37021     background
 37630     background
 37022   },  true ? "" : 0,  true ? "" : 0);
 37631   },  true ? "" : 0,  true ? "" : 0);
 37023 };
 37632 };
 37024 const Track = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37633 const Track = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37025   target: "e1epgpqk9"
 37634   target: "e1epgpqk9"
 37026 } : 0)("background-color:currentColor;border-radius:", railHeight, "px;height:", railHeight, "px;pointer-events:none;display:block;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;", trackBackgroundColor, ";" + ( true ? "" : 0));
 37635 } : 0)("background-color:currentColor;border-radius:", config_values.radiusFull, ";height:", railHeight, "px;pointer-events:none;display:block;position:absolute;margin-top:", (rangeHeightValue - railHeight) / 2, "px;top:0;.is-marked &{@media not ( prefers-reduced-motion ){transition:width ease 0.1s;}}", trackBackgroundColor, ";" + ( true ? "" : 0));
 37027 const MarksWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37636 const MarksWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37028   target: "e1epgpqk8"
 37637   target: "e1epgpqk8"
 37029 } : 0)( true ? {
 37638 } : 0)( true ? {
 37030   name: "l7tjj5",
 37639   name: "g5kg28",
 37031   styles: "display:block;pointer-events:none;position:relative;width:100%;user-select:none"
 37640   styles: "display:block;pointer-events:none;position:relative;width:100%;user-select:none;margin-top:17px"
 37032 } : 0);
 37641 } : 0);
 37033 const markFill = ({
       
 37034   disabled,
       
 37035   isFilled
       
 37036 }) => {
       
 37037   let backgroundColor = isFilled ? 'currentColor' : COLORS.gray[300];
       
 37038   if (disabled) {
       
 37039     backgroundColor = COLORS.gray[400];
       
 37040   }
       
 37041   return /*#__PURE__*/emotion_react_browser_esm_css({
       
 37042     backgroundColor
       
 37043   },  true ? "" : 0,  true ? "" : 0);
       
 37044 };
       
 37045 const Mark = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37642 const Mark = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37046   target: "e1epgpqk7"
 37643   target: "e1epgpqk7"
 37047 } : 0)("height:", thumbSize, "px;left:0;position:absolute;top:-4px;width:1px;", markFill, ";" + ( true ? "" : 0));
 37644 } : 0)("position:absolute;left:0;top:-4px;height:4px;width:2px;transform:translateX( -50% );background-color:", COLORS.ui.background, ";z-index:1;" + ( true ? "" : 0));
 37048 const markLabelFill = ({
 37645 const markLabelFill = ({
 37049   isFilled
 37646   isFilled
 37050 }) => {
 37647 }) => {
 37051   return /*#__PURE__*/emotion_react_browser_esm_css({
 37648   return /*#__PURE__*/emotion_react_browser_esm_css({
 37052     color: isFilled ? COLORS.gray[700] : COLORS.gray[300]
 37649     color: isFilled ? COLORS.gray[700] : COLORS.gray[300]
 37053   },  true ? "" : 0,  true ? "" : 0);
 37650   },  true ? "" : 0,  true ? "" : 0);
 37054 };
 37651 };
 37055 const MarkLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37652 const MarkLabel = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37056   target: "e1epgpqk6"
 37653   target: "e1epgpqk6"
 37057 } : 0)("color:", COLORS.gray[300], ";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;", markLabelFill, ";" + ( true ? "" : 0));
 37654 } : 0)("color:", COLORS.gray[300], ";font-size:11px;position:absolute;top:8px;white-space:nowrap;", rtl({
       
 37655   left: 0
       
 37656 }), ";", rtl({
       
 37657   transform: 'translateX( -50% )'
       
 37658 }, {
       
 37659   transform: 'translateX( 50% )'
       
 37660 }), ";", markLabelFill, ";" + ( true ? "" : 0));
 37058 const thumbColor = ({
 37661 const thumbColor = ({
 37059   disabled
 37662   disabled
 37060 }) => disabled ? /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.gray[400], ";" + ( true ? "" : 0),  true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.theme.accent, ";" + ( true ? "" : 0),  true ? "" : 0);
 37663 }) => disabled ? /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.gray[400], ";" + ( true ? "" : 0),  true ? "" : 0) : /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.theme.accent, ";" + ( true ? "" : 0),  true ? "" : 0);
 37061 const ThumbWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37664 const ThumbWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37062   target: "e1epgpqk5"
 37665   target: "e1epgpqk5"
 37063 } : 0)("align-items:center;display:flex;height:", thumbSize, "px;justify-content:center;margin-top:", (rangeHeightValue - thumbSize) / 2, "px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:", thumbSize, "px;border-radius:50%;", thumbColor, ";", rtl({
 37666 } : 0)("align-items:center;display:flex;height:", thumbSize, "px;justify-content:center;margin-top:", (rangeHeightValue - thumbSize) / 2, "px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:", thumbSize, "px;border-radius:", config_values.radiusRound, ";z-index:3;.is-marked &{@media not ( prefers-reduced-motion ){transition:left ease 0.1s;}}", thumbColor, ";", rtl({
 37064   marginLeft: -10
 37667   marginLeft: -10
 37065 }), ";", rtl({
 37668 }), ";", rtl({
 37066   transform: 'translateX( 4.5px )'
 37669   transform: 'translateX( 4.5px )'
 37067 }, {
 37670 }, {
 37068   transform: 'translateX( -4.5px )'
 37671   transform: 'translateX( -4.5px )'
 37069 }), ";" + ( true ? "" : 0));
 37672 }), ";" + ( true ? "" : 0));
 37070 const thumbFocus = ({
 37673 const thumbFocus = ({
 37071   isFocused
 37674   isFocused
 37072 }) => {
 37675 }) => {
 37073   return isFocused ? /*#__PURE__*/emotion_react_browser_esm_css("&::before{content:' ';position:absolute;background-color:", COLORS.theme.accent, ";opacity:0.4;border-radius:50%;height:", thumbSize + 8, "px;width:", thumbSize + 8, "px;top:-4px;left:-4px;}" + ( true ? "" : 0),  true ? "" : 0) : '';
 37676   return isFocused ? /*#__PURE__*/emotion_react_browser_esm_css("&::before{content:' ';position:absolute;background-color:", COLORS.theme.accent, ";opacity:0.4;border-radius:", config_values.radiusRound, ";height:", thumbSize + 8, "px;width:", thumbSize + 8, "px;top:-4px;left:-4px;}" + ( true ? "" : 0),  true ? "" : 0) : '';
 37074 };
 37677 };
 37075 const Thumb = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37678 const Thumb = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37076   target: "e1epgpqk4"
 37679   target: "e1epgpqk4"
 37077 } : 0)("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;", thumbColor, ";", thumbFocus, ";" + ( true ? "" : 0));
 37680 } : 0)("align-items:center;border-radius:", config_values.radiusRound, ";height:100%;outline:0;position:absolute;user-select:none;width:100%;box-shadow:", config_values.elevationXSmall, ";", thumbColor, ";", thumbFocus, ";" + ( true ? "" : 0));
 37078 const InputRange = /*#__PURE__*/emotion_styled_base_browser_esm("input",  true ? {
 37681 const InputRange = /*#__PURE__*/emotion_styled_base_browser_esm("input",  true ? {
 37079   target: "e1epgpqk3"
 37682   target: "e1epgpqk3"
 37080 } : 0)("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -", thumbSize / 2, "px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ", thumbSize, "px );" + ( true ? "" : 0));
 37683 } : 0)("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -", thumbSize / 2, "px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ", thumbSize, "px );" + ( true ? "" : 0));
 37081 const tooltipShow = ({
 37684 const tooltipShow = ({
 37082   show
 37685   show
 37083 }) => {
 37686 }) => {
 37084   return /*#__PURE__*/emotion_react_browser_esm_css({
 37687   return /*#__PURE__*/emotion_react_browser_esm_css("display:", show ? 'inline-block' : 'none', ";opacity:", show ? 1 : 0, ";@media not ( prefers-reduced-motion ){transition:opacity 120ms ease,display 120ms ease allow-discrete;}@starting-style{opacity:0;}" + ( true ? "" : 0),  true ? "" : 0);
 37085     opacity: show ? 1 : 0
       
 37086   },  true ? "" : 0,  true ? "" : 0);
       
 37087 };
 37688 };
 37088 var range_control_styles_ref =  true ? {
 37689 var range_control_styles_ref =  true ? {
 37089   name: "1cypxip",
 37690   name: "1cypxip",
 37090   styles: "top:-80%"
 37691   styles: "top:-80%"
 37091 } : 0;
 37692 } : 0;
 37102   }
 37703   }
 37103   return range_control_styles_ref;
 37704   return range_control_styles_ref;
 37104 };
 37705 };
 37105 const range_control_styles_Tooltip = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37706 const range_control_styles_Tooltip = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 37106   target: "e1epgpqk2"
 37707   target: "e1epgpqk2"
 37107 } : 0)("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}", tooltipShow, ";", tooltipPosition, ";", rtl({
 37708 } : 0)("background:rgba( 0, 0, 0, 0.8 );border-radius:", config_values.radiusSmall, ";color:white;font-size:12px;min-width:32px;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;", tooltipShow, ";", tooltipPosition, ";", rtl({
 37108   transform: 'translateX(-50%)'
 37709   transform: 'translateX(-50%)'
 37109 }, {
 37710 }, {
 37110   transform: 'translateX(50%)'
 37711   transform: 'translateX(50%)'
 37111 }), ";" + ( true ? "" : 0));
 37712 }), ";" + ( true ? "" : 0));
 37112 
 37713 
 37121   target: "e1epgpqk0"
 37722   target: "e1epgpqk0"
 37122 } : 0)("display:block;margin-top:0;button,button.is-small{margin-left:0;", rangeHeight, ";}", rtl({
 37723 } : 0)("display:block;margin-top:0;button,button.is-small{margin-left:0;", rangeHeight, ";}", rtl({
 37123   marginLeft: 8
 37724   marginLeft: 8
 37124 }), ";" + ( true ? "" : 0));
 37725 }), ";" + ( true ? "" : 0));
 37125 
 37726 
 37126 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/input-range.js
 37727 ;// ./node_modules/@wordpress/components/build-module/range-control/input-range.js
 37127 /**
 37728 /**
 37128  * WordPress dependencies
 37729  * WordPress dependencies
 37129  */
 37730  */
 37130 
 37731 
 37131 
 37732 
 37153   });
 37754   });
 37154 }
 37755 }
 37155 const input_range_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(input_range_InputRange);
 37756 const input_range_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(input_range_InputRange);
 37156 /* harmony default export */ const input_range = (input_range_ForwardedComponent);
 37757 /* harmony default export */ const input_range = (input_range_ForwardedComponent);
 37157 
 37758 
 37158 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/mark.js
 37759 ;// ./node_modules/@wordpress/components/build-module/range-control/mark.js
 37159 /**
 37760 /**
 37160  * External dependencies
 37761  * External dependencies
 37161  */
 37762  */
 37162 
 37763 
 37163 
 37764 
 37164 /**
 37765 /**
 37165  * Internal dependencies
 37766  * Internal dependencies
 37166  */
 37767  */
 37167 
       
 37168 
       
 37169 
 37768 
 37170 
 37769 
 37171 function RangeMark(props) {
 37770 function RangeMark(props) {
 37172   const {
 37771   const {
 37173     className,
 37772     className,
 37181   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 37780   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 37182     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Mark, {
 37781     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Mark, {
 37183       ...otherProps,
 37782       ...otherProps,
 37184       "aria-hidden": "true",
 37783       "aria-hidden": "true",
 37185       className: classes,
 37784       className: classes,
 37186       isFilled: isFilled,
       
 37187       style: style
 37785       style: style
 37188     }), label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MarkLabel, {
 37786     }), label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MarkLabel, {
 37189       "aria-hidden": "true",
 37787       "aria-hidden": "true",
 37190       className: labelClasses,
 37788       className: labelClasses,
 37191       isFilled: isFilled,
 37789       isFilled: isFilled,
 37193       children: label
 37791       children: label
 37194     })]
 37792     })]
 37195   });
 37793   });
 37196 }
 37794 }
 37197 
 37795 
 37198 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/rail.js
 37796 ;// ./node_modules/@wordpress/components/build-module/range-control/rail.js
 37199 /**
 37797 /**
 37200  * WordPress dependencies
 37798  * WordPress dependencies
 37201  */
 37799  */
 37202 
 37800 
 37203 
 37801 
 37204 /**
 37802 /**
 37205  * Internal dependencies
 37803  * Internal dependencies
 37206  */
 37804  */
 37207 
       
 37208 
       
 37209 
 37805 
 37210 
 37806 
 37211 
 37807 
 37212 
 37808 
 37213 function RangeRail(props) {
 37809 function RangeRail(props) {
 37299     });
 37895     });
 37300   });
 37896   });
 37301   return placedMarks;
 37897   return placedMarks;
 37302 }
 37898 }
 37303 
 37899 
 37304 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/tooltip.js
 37900 ;// ./node_modules/@wordpress/components/build-module/range-control/tooltip.js
 37305 /**
 37901 /**
 37306  * External dependencies
 37902  * External dependencies
 37307  */
 37903  */
 37308 
 37904 
 37309 
 37905 
 37338     ...style,
 37934     ...style,
 37339     zIndex
 37935     zIndex
 37340   };
 37936   };
 37341   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control_styles_Tooltip, {
 37937   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control_styles_Tooltip, {
 37342     ...restProps,
 37938     ...restProps,
 37343     "aria-hidden": show,
 37939     "aria-hidden": "false",
 37344     className: classes,
 37940     className: classes,
 37345     position: position,
 37941     position: position,
 37346     show: show,
 37942     show: show,
 37347     role: "tooltip",
 37943     role: "tooltip",
 37348     style: styles,
 37944     style: styles,
 37369     };
 37965     };
 37370   });
 37966   });
 37371   return position;
 37967   return position;
 37372 }
 37968 }
 37373 
 37969 
 37374 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/index.js
 37970 ;// ./node_modules/@wordpress/components/build-module/range-control/index.js
 37375 /**
 37971 /**
 37376  * External dependencies
 37972  * External dependencies
 37377  */
 37973  */
 37378 
 37974 
 37379 /**
 37975 /**
 37398 
 37994 
 37399 
 37995 
 37400 
 37996 
 37401 
 37997 
 37402 const range_control_noop = () => {};
 37998 const range_control_noop = () => {};
       
 37999 
       
 38000 /**
       
 38001  * Computes the value that `RangeControl` should reset to when pressing
       
 38002  * the reset button.
       
 38003  */
       
 38004 function computeResetValue({
       
 38005   resetFallbackValue,
       
 38006   initialPosition
       
 38007 }) {
       
 38008   if (resetFallbackValue !== undefined) {
       
 38009     return !Number.isNaN(resetFallbackValue) ? resetFallbackValue : null;
       
 38010   }
       
 38011   if (initialPosition !== undefined) {
       
 38012     return !Number.isNaN(initialPosition) ? initialPosition : null;
       
 38013   }
       
 38014   return null;
       
 38015 }
 37403 function UnforwardedRangeControl(props, forwardedRef) {
 38016 function UnforwardedRangeControl(props, forwardedRef) {
 37404   const {
 38017   const {
 37405     __nextHasNoMarginBottom = false,
 38018     __nextHasNoMarginBottom = false,
 37406     afterIcon,
 38019     afterIcon,
 37407     allowReset = false,
 38020     allowReset = false,
 37431     showTooltip: showTooltipProp,
 38044     showTooltip: showTooltipProp,
 37432     step = 1,
 38045     step = 1,
 37433     trackColor,
 38046     trackColor,
 37434     value: valueProp,
 38047     value: valueProp,
 37435     withInputField = true,
 38048     withInputField = true,
       
 38049     __shouldNotWarnDeprecated36pxSize,
 37436     ...otherProps
 38050     ...otherProps
 37437   } = props;
 38051   } = props;
 37438   const [value, setValue] = useControlledRangeValue({
 38052   const [value, setValue] = useControlledRangeValue({
 37439     min,
 38053     min,
 37440     max,
 38054     max,
 37496       handleOnReset();
 38110       handleOnReset();
 37497       isResetPendent.current = false;
 38111       isResetPendent.current = false;
 37498     }
 38112     }
 37499   };
 38113   };
 37500   const handleOnReset = () => {
 38114   const handleOnReset = () => {
 37501     let resetValue = parseFloat(`${resetFallbackValue}`);
 38115     // Reset to `resetFallbackValue` if defined, otherwise set internal value
 37502     let onChangeResetValue = resetValue;
 38116     // to `null` — which, if propagated to the `value` prop, will cause
 37503     if (isNaN(resetValue)) {
 38117     // the value to be reset to the `initialPosition` prop if defined.
 37504       resetValue = null;
 38118     const resetValue = Number.isNaN(resetFallbackValue) ? null : resetFallbackValue !== null && resetFallbackValue !== void 0 ? resetFallbackValue : null;
 37505       onChangeResetValue = undefined;
       
 37506     }
       
 37507     setValue(resetValue);
 38119     setValue(resetValue);
 37508 
 38120 
 37509     /**
 38121     /**
 37510      * Previously, this callback would always receive undefined as
 38122      * Previously, this callback would always receive undefined as
 37511      * an argument. This behavior is unexpected, specifically
 38123      * an argument. This behavior is unexpected, specifically
 37517      *
 38129      *
 37518      * For now, to minimize unexpected regressions, we're going to
 38130      * For now, to minimize unexpected regressions, we're going to
 37519      * preserve the undefined callback argument, except when a
 38131      * preserve the undefined callback argument, except when a
 37520      * resetFallbackValue is defined.
 38132      * resetFallbackValue is defined.
 37521      */
 38133      */
 37522     onChange(onChangeResetValue);
 38134     onChange(resetValue !== null && resetValue !== void 0 ? resetValue : undefined);
 37523   };
 38135   };
 37524   const handleShowTooltip = () => setShowTooltip(true);
 38136   const handleShowTooltip = () => setShowTooltip(true);
 37525   const handleHideTooltip = () => setShowTooltip(false);
 38137   const handleHideTooltip = () => setShowTooltip(false);
 37526   const handleOnBlur = event => {
 38138   const handleOnBlur = event => {
 37527     onBlur(event);
 38139     onBlur(event);
 37534     handleShowTooltip();
 38146     handleShowTooltip();
 37535   };
 38147   };
 37536   const offsetStyle = {
 38148   const offsetStyle = {
 37537     [(0,external_wp_i18n_namespaceObject.isRTL)() ? 'right' : 'left']: fillValueOffset
 38149     [(0,external_wp_i18n_namespaceObject.isRTL)() ? 'right' : 'left']: fillValueOffset
 37538   };
 38150   };
       
 38151 
       
 38152   // Add default size deprecation warning.
       
 38153   maybeWarnDeprecated36pxSize({
       
 38154     componentName: 'RangeControl',
       
 38155     __next40pxDefaultSize,
       
 38156     size: undefined,
       
 38157     __shouldNotWarnDeprecated36pxSize
       
 38158   });
 37539   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 38159   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 37540     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 38160     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
       
 38161     __associatedWPComponentName: "RangeControl",
 37541     className: classes,
 38162     className: classes,
 37542     label: label,
 38163     label: label,
 37543     hideLabelFromVision: hideLabelFromVision,
 38164     hideLabelFromVision: hideLabelFromVision,
 37544     id: `${id}`,
 38165     id: `${id}`,
 37545     help: help,
 38166     help: help,
 37625         size: __next40pxDefaultSize ? '__unstable-large' : 'default',
 38246         size: __next40pxDefaultSize ? '__unstable-large' : 'default',
 37626         __unstableInputWidth: __next40pxDefaultSize ? space(20) : space(16),
 38247         __unstableInputWidth: __next40pxDefaultSize ? space(20) : space(16),
 37627         step: step
 38248         step: step
 37628         // @ts-expect-error TODO: Investigate if the `null` value is necessary
 38249         // @ts-expect-error TODO: Investigate if the `null` value is necessary
 37629         ,
 38250         ,
 37630         value: inputSliderValue
 38251         value: inputSliderValue,
       
 38252         __shouldNotWarnDeprecated36pxSize: true
 37631       }), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionRightWrapper, {
 38253       }), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ActionRightWrapper, {
 37632         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 38254         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 37633           className: "components-range-control__reset",
 38255           className: "components-range-control__reset"
 37634           disabled: disabled || value === undefined,
 38256           // If the RangeControl itself is disabled, the reset button shouldn't be in the tab sequence.
       
 38257           ,
       
 38258           accessibleWhenDisabled: !disabled
       
 38259           // The reset button should be disabled if RangeControl itself is disabled,
       
 38260           // or if the current `value` is equal to the value that would be currently
       
 38261           // assigned when clicking the button.
       
 38262           ,
       
 38263           disabled: disabled || value === computeResetValue({
       
 38264             resetFallbackValue,
       
 38265             initialPosition
       
 38266           }),
 37635           variant: "secondary",
 38267           variant: "secondary",
 37636           size: "small",
 38268           size: "small",
 37637           onClick: handleOnReset,
 38269           onClick: handleOnReset,
 37638           children: (0,external_wp_i18n_namespaceObject.__)('Reset')
 38270           children: (0,external_wp_i18n_namespaceObject.__)('Reset')
 37639         })
 38271         })
 37651  *
 38283  *
 37652  * const MyRangeControl = () => {
 38284  * const MyRangeControl = () => {
 37653  *   const [ isChecked, setChecked ] = useState( true );
 38285  *   const [ isChecked, setChecked ] = useState( true );
 37654  *   return (
 38286  *   return (
 37655  *     <RangeControl
 38287  *     <RangeControl
       
 38288  *       __nextHasNoMarginBottom
       
 38289  *       __next40pxDefaultSize
 37656  *       help="Please select how transparent you would like this."
 38290  *       help="Please select how transparent you would like this."
 37657  *       initialPosition={50}
 38291  *       initialPosition={50}
 37658  *       label="Opacity"
 38292  *       label="Opacity"
 37659  *       max={100}
 38293  *       max={100}
 37660  *       min={0}
 38294  *       min={0}
 37665  * ```
 38299  * ```
 37666  */
 38300  */
 37667 const RangeControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedRangeControl);
 38301 const RangeControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedRangeControl);
 37668 /* harmony default export */ const range_control = (RangeControl);
 38302 /* harmony default export */ const range_control = (RangeControl);
 37669 
 38303 
 37670 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/styles.js
 38304 ;// ./node_modules/@wordpress/components/build-module/color-picker/styles.js
 37671 
 38305 
 37672 /**
 38306 /**
 37673  * External dependencies
 38307  * External dependencies
 37674  */
 38308  */
 37675 
 38309 
 37682 
 38316 
 37683 
 38317 
 37684 
 38318 
 37685 
 38319 
 37686 
 38320 
 37687 
       
 37688 const NumberControlWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(number_control,  true ? {
 38321 const NumberControlWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(number_control,  true ? {
 37689   target: "ez9hsf47"
 38322   target: "ez9hsf46"
 37690 } : 0)("width:", space(24), ";" + ( true ? "" : 0));
 38323 } : 0)("width:", space(24), ";" + ( true ? "" : 0));
 37691 const styles_SelectControl = /*#__PURE__*/emotion_styled_base_browser_esm(select_control,  true ? {
 38324 const styles_SelectControl = /*#__PURE__*/emotion_styled_base_browser_esm(select_control,  true ? {
 37692   target: "ez9hsf46"
 38325   target: "ez9hsf45"
 37693 } : 0)("margin-left:", space(-2), ";width:5em;" + ( true ? "" : 0));
 38326 } : 0)("margin-left:", space(-2), ";" + ( true ? "" : 0));
 37694 const styles_RangeControl = /*#__PURE__*/emotion_styled_base_browser_esm(range_control,  true ? {
 38327 const styles_RangeControl = /*#__PURE__*/emotion_styled_base_browser_esm(range_control,  true ? {
 37695   target: "ez9hsf45"
 38328   target: "ez9hsf44"
 37696 } : 0)("flex:1;margin-right:", space(2), ";" + ( true ? "" : 0));
 38329 } : 0)("flex:1;margin-right:", space(2), ";" + ( true ? "" : 0));
 37697 
 38330 
 37698 // Make the Hue circle picker not go out of the bar.
 38331 // Make the Hue circle picker not go out of the bar.
 37699 const interactiveHueStyles = `
 38332 const interactiveHueStyles = `
 37700 .react-colorful__interactive {
 38333 .react-colorful__interactive {
 37701 	width: calc( 100% - ${space(2)} );
 38334 	width: calc( 100% - ${space(2)} );
 37702 	margin-left: ${space(1)};
 38335 	margin-left: ${space(1)};
 37703 }`;
 38336 }`;
 37704 const AuxiliaryColorArtefactWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 38337 const AuxiliaryColorArtefactWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 37705   target: "ez9hsf44"
 38338   target: "ez9hsf43"
 37706 } : 0)("padding-top:", space(2), ";padding-right:0;padding-left:0;padding-bottom:0;" + ( true ? "" : 0));
 38339 } : 0)("padding-top:", space(2), ";padding-right:0;padding-left:0;padding-bottom:0;" + ( true ? "" : 0));
 37707 const AuxiliaryColorArtefactHStackHeader = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
 38340 const AuxiliaryColorArtefactHStackHeader = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
 37708   target: "ez9hsf43"
 38341   target: "ez9hsf42"
 37709 } : 0)("padding-left:", space(4), ";padding-right:", space(4), ";" + ( true ? "" : 0));
 38342 } : 0)("padding-left:", space(4), ";padding-right:", space(4), ";" + ( true ? "" : 0));
 37710 const ColorInputWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 38343 const ColorInputWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 37711   target: "ez9hsf42"
 38344   target: "ez9hsf41"
 37712 } : 0)("padding-top:", space(4), ";padding-left:", space(4), ";padding-right:", space(3), ";padding-bottom:", space(5), ";" + ( true ? "" : 0));
 38345 } : 0)("padding-top:", space(4), ";padding-left:", space(4), ";padding-right:", space(3), ";padding-bottom:", space(5), ";" + ( true ? "" : 0));
 37713 const ColorfulWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 38346 const ColorfulWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 37714   target: "ez9hsf41"
       
 37715 } : 0)(boxSizingReset, ";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:", space(4), ";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:", space(2), ";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ", config_values.borderWidthFocus, " #fff;}", interactiveHueStyles, ";" + ( true ? "" : 0));
       
 37716 const CopyButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
       
 37717   target: "ez9hsf40"
 38347   target: "ez9hsf40"
 37718 } : 0)("&&&&&{min-width:", space(6), ";padding:0;>svg{margin-right:0;}}" + ( true ? "" : 0));
 38348 } : 0)(boxSizingReset, ";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:", space(4), ";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:", config_values.radiusFull, ";margin-bottom:", space(2), ";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ", config_values.borderWidthFocus, " #fff;}", interactiveHueStyles, ";" + ( true ? "" : 0));
 37719 
 38349 
 37720 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/copy.js
 38350 ;// ./node_modules/@wordpress/icons/build-module/library/copy.js
 37721 /**
 38351 /**
 37722  * WordPress dependencies
 38352  * WordPress dependencies
 37723  */
 38353  */
 37724 
 38354 
 37725 
 38355 
 37732     d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
 38362     d: "M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"
 37733   })
 38363   })
 37734 });
 38364 });
 37735 /* harmony default export */ const library_copy = (copy_copy);
 38365 /* harmony default export */ const library_copy = (copy_copy);
 37736 
 38366 
 37737 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/color-copy-button.js
 38367 ;// ./node_modules/@wordpress/components/build-module/color-picker/color-copy-button.js
 37738 /**
 38368 /**
 37739  * WordPress dependencies
 38369  * WordPress dependencies
 37740  */
 38370  */
 37741 
 38371 
 37742 
 38372 
 37753   const {
 38383   const {
 37754     color,
 38384     color,
 37755     colorType
 38385     colorType
 37756   } = props;
 38386   } = props;
 37757   const [copiedColor, setCopiedColor] = (0,external_wp_element_namespaceObject.useState)(null);
 38387   const [copiedColor, setCopiedColor] = (0,external_wp_element_namespaceObject.useState)(null);
 37758   const copyTimer = (0,external_wp_element_namespaceObject.useRef)();
 38388   const copyTimerRef = (0,external_wp_element_namespaceObject.useRef)();
 37759   const copyRef = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => {
 38389   const copyRef = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(() => {
 37760     switch (colorType) {
 38390     switch (colorType) {
 37761       case 'hsl':
 38391       case 'hsl':
 37762         {
 38392         {
 37763           return color.toHslString();
 38393           return color.toHslString();
 37771         {
 38401         {
 37772           return color.toHex();
 38402           return color.toHex();
 37773         }
 38403         }
 37774     }
 38404     }
 37775   }, () => {
 38405   }, () => {
 37776     if (copyTimer.current) {
 38406     if (copyTimerRef.current) {
 37777       clearTimeout(copyTimer.current);
 38407       clearTimeout(copyTimerRef.current);
 37778     }
 38408     }
 37779     setCopiedColor(color.toHex());
 38409     setCopiedColor(color.toHex());
 37780     copyTimer.current = setTimeout(() => {
 38410     copyTimerRef.current = setTimeout(() => {
 37781       setCopiedColor(null);
 38411       setCopiedColor(null);
 37782       copyTimer.current = undefined;
 38412       copyTimerRef.current = undefined;
 37783     }, 3000);
 38413     }, 3000);
 37784   });
 38414   });
 37785   (0,external_wp_element_namespaceObject.useEffect)(() => {
 38415   (0,external_wp_element_namespaceObject.useEffect)(() => {
 37786     // Clear copyTimer on component unmount.
 38416     // Clear copyTimerRef on component unmount.
 37787     return () => {
 38417     return () => {
 37788       if (copyTimer.current) {
 38418       if (copyTimerRef.current) {
 37789         clearTimeout(copyTimer.current);
 38419         clearTimeout(copyTimerRef.current);
 37790       }
 38420       }
 37791     };
 38421     };
 37792   }, []);
 38422   }, []);
       
 38423   const label = copiedColor === color.toHex() ? (0,external_wp_i18n_namespaceObject.__)('Copied!') : (0,external_wp_i18n_namespaceObject.__)('Copy');
 37793   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 38424   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 37794     delay: 0,
 38425     delay: 0,
 37795     hideOnClick: false,
 38426     hideOnClick: false,
 37796     text: copiedColor === color.toHex() ? (0,external_wp_i18n_namespaceObject.__)('Copied!') : (0,external_wp_i18n_namespaceObject.__)('Copy'),
 38427     text: label,
 37797     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CopyButton, {
 38428     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Button, {
 37798       size: "small",
 38429       size: "compact",
       
 38430       "aria-label": label,
 37799       ref: copyRef,
 38431       ref: copyRef,
 37800       icon: library_copy,
 38432       icon: library_copy,
 37801       showTooltip: false
 38433       showTooltip: false
 37802     })
 38434     })
 37803   });
 38435   });
 37804 };
 38436 };
 37805 
 38437 
 37806 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/input-with-slider.js
 38438 ;// ./node_modules/@wordpress/components/build-module/input-control/input-prefix-wrapper.js
       
 38439 /**
       
 38440  * External dependencies
       
 38441  */
       
 38442 
 37807 /**
 38443 /**
 37808  * Internal dependencies
 38444  * Internal dependencies
 37809  */
 38445  */
 37810 
 38446 
 37811 
 38447 
       
 38448 
       
 38449 
       
 38450 function UnconnectedInputControlPrefixWrapper(props, forwardedRef) {
       
 38451   const derivedProps = useContextSystem(props, 'InputControlPrefixWrapper');
       
 38452   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrefixSuffixWrapper, {
       
 38453     ...derivedProps,
       
 38454     isPrefix: true,
       
 38455     ref: forwardedRef
       
 38456   });
       
 38457 }
       
 38458 
       
 38459 /**
       
 38460  * A convenience wrapper for the `prefix` when you want to apply
       
 38461  * standard padding in accordance with the size variant.
       
 38462  *
       
 38463  * ```jsx
       
 38464  * import {
       
 38465  *   __experimentalInputControl as InputControl,
       
 38466  *   __experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,
       
 38467  * } from '@wordpress/components';
       
 38468  *
       
 38469  * <InputControl
       
 38470  *   prefix={<InputControlPrefixWrapper>@</InputControlPrefixWrapper>}
       
 38471  * />
       
 38472  * ```
       
 38473  */
       
 38474 const InputControlPrefixWrapper = contextConnect(UnconnectedInputControlPrefixWrapper, 'InputControlPrefixWrapper');
       
 38475 /* harmony default export */ const input_prefix_wrapper = (InputControlPrefixWrapper);
       
 38476 
       
 38477 ;// ./node_modules/@wordpress/components/build-module/color-picker/input-with-slider.js
       
 38478 /**
       
 38479  * Internal dependencies
       
 38480  */
 37812 
 38481 
 37813 
 38482 
 37814 
 38483 
 37815 
 38484 
 37816 
 38485 
 37835     onChange(newValue);
 38504     onChange(newValue);
 37836   };
 38505   };
 37837   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 38506   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 37838     spacing: 4,
 38507     spacing: 4,
 37839     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NumberControlWrapper, {
 38508     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NumberControlWrapper, {
       
 38509       __next40pxDefaultSize: true,
 37840       min: min,
 38510       min: min,
 37841       max: max,
 38511       max: max,
 37842       label: label,
 38512       label: label,
 37843       hideLabelFromVision: true,
 38513       hideLabelFromVision: true,
 37844       value: value,
 38514       value: value,
 37845       onChange: onNumberControlChange,
 38515       onChange: onNumberControlChange,
 37846       prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 38516       prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(input_prefix_wrapper, {
 37847         as: text_component,
 38517         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(text_component, {
 37848         paddingLeft: space(4),
 38518           color: COLORS.theme.accent,
 37849         color: COLORS.theme.accent,
 38519           lineHeight: 1,
 37850         lineHeight: 1,
 38520           children: abbreviation
 37851         children: abbreviation
 38521         })
 37852       }),
 38522       }),
 37853       spinControls: "none",
 38523       spinControls: "none"
 37854       size: "__unstable-large"
       
 37855     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_RangeControl, {
 38524     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_RangeControl, {
 37856       __nextHasNoMarginBottom: true,
 38525       __nextHasNoMarginBottom: true,
       
 38526       __next40pxDefaultSize: true,
 37857       label: label,
 38527       label: label,
 37858       hideLabelFromVision: true,
 38528       hideLabelFromVision: true,
 37859       min: min,
 38529       min: min,
 37860       max: max,
 38530       max: max,
 37861       value: value
 38531       value: value
 37866       withInputField: false
 38536       withInputField: false
 37867     })]
 38537     })]
 37868   });
 38538   });
 37869 };
 38539 };
 37870 
 38540 
 37871 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/rgb-input.js
 38541 ;// ./node_modules/@wordpress/components/build-module/color-picker/rgb-input.js
 37872 /**
 38542 /**
 37873  * External dependencies
 38543  * External dependencies
 37874  */
 38544  */
 37875 
 38545 
 37876 
 38546 
 37877 /**
 38547 /**
 37878  * Internal dependencies
 38548  * Internal dependencies
 37879  */
 38549  */
 37880 
       
 37881 
       
 37882 
 38550 
 37883 
 38551 
 37884 const RgbInput = ({
 38552 const RgbInput = ({
 37885   color,
 38553   color,
 37886   onChange,
 38554   onChange,
 37943       }))
 38611       }))
 37944     })]
 38612     })]
 37945   });
 38613   });
 37946 };
 38614 };
 37947 
 38615 
 37948 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/hsl-input.js
 38616 ;// ./node_modules/@wordpress/components/build-module/color-picker/hsl-input.js
 37949 /**
 38617 /**
 37950  * External dependencies
 38618  * External dependencies
 37951  */
 38619  */
 37952 
 38620 
 37953 
 38621 
 37957 
 38625 
 37958 
 38626 
 37959 /**
 38627 /**
 37960  * Internal dependencies
 38628  * Internal dependencies
 37961  */
 38629  */
 37962 
       
 37963 
       
 37964 
 38630 
 37965 
 38631 
 37966 const HslInput = ({
 38632 const HslInput = ({
 37967   color,
 38633   color,
 37968   onChange,
 38634   onChange,
 38050       }
 38716       }
 38051     })]
 38717     })]
 38052   });
 38718   });
 38053 };
 38719 };
 38054 
 38720 
 38055 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/hex-input.js
 38721 ;// ./node_modules/@wordpress/components/build-module/color-picker/hex-input.js
 38056 /**
 38722 /**
 38057  * External dependencies
 38723  * External dependencies
 38058  */
 38724  */
 38059 
 38725 
 38060 
 38726 
 38064 
 38730 
 38065 
 38731 
 38066 /**
 38732 /**
 38067  * Internal dependencies
 38733  * Internal dependencies
 38068  */
 38734  */
 38069 
       
 38070 
 38735 
 38071 
 38736 
 38072 
 38737 
 38073 
 38738 
 38074 
 38739 
 38096       ...state,
 38761       ...state,
 38097       value
 38762       value
 38098     };
 38763     };
 38099   };
 38764   };
 38100   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputControl, {
 38765   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputControl, {
 38101     prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 38766     prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(input_prefix_wrapper, {
 38102       as: text_component,
 38767       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(text_component, {
 38103       marginLeft: space(4),
 38768         color: COLORS.theme.accent,
 38104       color: COLORS.theme.accent,
 38769         lineHeight: 1,
 38105       lineHeight: 1,
 38770         children: "#"
 38106       children: "#"
 38771       })
 38107     }),
 38772     }),
 38108     value: color.toHex().slice(1).toUpperCase(),
 38773     value: color.toHex().slice(1).toUpperCase(),
 38109     onChange: handleChange,
 38774     onChange: handleChange,
 38110     maxLength: enableAlpha ? 9 : 7,
 38775     maxLength: enableAlpha ? 9 : 7,
 38111     label: (0,external_wp_i18n_namespaceObject.__)('Hex color'),
 38776     label: (0,external_wp_i18n_namespaceObject.__)('Hex color'),
 38114     __unstableStateReducer: stateReducer,
 38779     __unstableStateReducer: stateReducer,
 38115     __unstableInputWidth: "9em"
 38780     __unstableInputWidth: "9em"
 38116   });
 38781   });
 38117 };
 38782 };
 38118 
 38783 
 38119 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/color-input.js
 38784 ;// ./node_modules/@wordpress/components/build-module/color-picker/color-input.js
 38120 /**
 38785 /**
 38121  * Internal dependencies
 38786  * Internal dependencies
 38122  */
 38787  */
 38123 
 38788 
 38124 
 38789 
 38150         ...props
 38815         ...props
 38151       });
 38816       });
 38152   }
 38817   }
 38153 };
 38818 };
 38154 
 38819 
 38155 ;// CONCATENATED MODULE: ./node_modules/react-colorful/dist/index.mjs
 38820 ;// ./node_modules/react-colorful/dist/index.mjs
 38156 function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function dist_c(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},dist_f=function(e){return"touches"in e},dist_v=function(e){return e&&e.ownerDocument.defaultView||self},dist_d=function(e,r,t){var n=e.getBoundingClientRect(),o=dist_f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return{left:dist_s((o.pageX-(n.left+dist_v(e).pageXOffset))/n.width),top:dist_s((o.pageY-(n.top+dist_v(e).pageYOffset))/n.height)}},dist_h=function(e){!dist_f(e)&&e.preventDefault()},dist_m=external_React_.memo(function(o){var a=o.onMove,l=o.onKey,s=dist_c(o,["onMove","onKey"]),m=(0,external_React_.useRef)(null),g=dist_i(a),p=dist_i(l),b=(0,external_React_.useRef)(null),_=(0,external_React_.useRef)(!1),x=(0,external_React_.useMemo)(function(){var e=function(e){dist_h(e),(dist_f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(dist_b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return R||( true?__webpack_require__.nc:0)},G=function(e){R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:O,fromHsva:function(e){var r=A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};
 38821 function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function dist_c(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},dist_f=function(e){return"touches"in e},dist_v=function(e){return e&&e.ownerDocument.defaultView||self},dist_d=function(e,r,t){var n=e.getBoundingClientRect(),o=dist_f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return{left:dist_s((o.pageX-(n.left+dist_v(e).pageXOffset))/n.width),top:dist_s((o.pageY-(n.top+dist_v(e).pageYOffset))/n.height)}},dist_h=function(e){!dist_f(e)&&e.preventDefault()},dist_m=external_React_.memo(function(o){var a=o.onMove,l=o.onKey,s=dist_c(o,["onMove","onKey"]),m=(0,external_React_.useRef)(null),g=dist_i(a),p=dist_i(l),b=(0,external_React_.useRef)(null),_=(0,external_React_.useRef)(!1),x=(0,external_React_.useMemo)(function(){var e=function(e){dist_h(e),(dist_f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(dist_b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return R||( true?__webpack_require__.nc:0)},G=function(e){R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:O,fromHsva:function(e){var r=A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};
 38157 //# sourceMappingURL=index.module.js.map
 38822 //# sourceMappingURL=index.module.js.map
 38158 
 38823 
 38159 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/picker.js
 38824 ;// ./node_modules/@wordpress/components/build-module/color-picker/picker.js
 38160 /**
 38825 /**
 38161  * External dependencies
 38826  * External dependencies
 38162  */
 38827  */
 38163 
 38828 
 38164 
 38829 
 38201       currentTarget.releasePointerCapture(pointerId);
 38866       currentTarget.releasePointerCapture(pointerId);
 38202     }
 38867     }
 38203   });
 38868   });
 38204 };
 38869 };
 38205 
 38870 
 38206 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/component.js
 38871 ;// ./node_modules/@wordpress/components/build-module/color-picker/component.js
 38207 /**
 38872 /**
 38208  * External dependencies
 38873  * External dependencies
 38209  */
 38874  */
 38210 
 38875 
 38211 
 38876 
 38219 
 38884 
 38220 
 38885 
 38221 /**
 38886 /**
 38222  * Internal dependencies
 38887  * Internal dependencies
 38223  */
 38888  */
 38224 
       
 38225 
 38889 
 38226 
 38890 
 38227 
 38891 
 38228 
 38892 
 38229 
 38893 
 38238   value: 'hsl'
 38902   value: 'hsl'
 38239 }, {
 38903 }, {
 38240   label: 'Hex',
 38904   label: 'Hex',
 38241   value: 'hex'
 38905   value: 'hex'
 38242 }];
 38906 }];
 38243 
       
 38244 // `isBorderless` is still experimental and not a public prop for InputControl yet.
       
 38245 const BORDERLESS_SELECT_CONTROL_CONTEXT = {
       
 38246   InputBase: {
       
 38247     isBorderless: true
       
 38248   }
       
 38249 };
       
 38250 const UnconnectedColorPicker = (props, forwardedRef) => {
 38907 const UnconnectedColorPicker = (props, forwardedRef) => {
 38251   const {
 38908   const {
 38252     enableAlpha = false,
 38909     enableAlpha = false,
 38253     color: colorProp,
 38910     color: colorProp,
 38254     onChange,
 38911     onChange,
 38279       color: safeColordColor,
 38936       color: safeColordColor,
 38280       enableAlpha: enableAlpha
 38937       enableAlpha: enableAlpha
 38281     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactWrapper, {
 38938     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactWrapper, {
 38282       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactHStackHeader, {
 38939       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(AuxiliaryColorArtefactHStackHeader, {
 38283         justify: "space-between",
 38940         justify: "space-between",
 38284         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
 38941         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_SelectControl, {
 38285           value: BORDERLESS_SELECT_CONTROL_CONTEXT,
 38942           __nextHasNoMarginBottom: true,
 38286           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_SelectControl, {
 38943           size: "compact",
 38287             __nextHasNoMarginBottom: true,
 38944           options: options,
 38288             options: options,
 38945           value: colorType,
 38289             value: colorType,
 38946           onChange: nextColorType => setColorType(nextColorType),
 38290             onChange: nextColorType => setColorType(nextColorType),
 38947           label: (0,external_wp_i18n_namespaceObject.__)('Color format'),
 38291             label: (0,external_wp_i18n_namespaceObject.__)('Color format'),
 38948           hideLabelFromVision: true,
 38292             hideLabelFromVision: true
 38949           variant: "minimal"
 38293           })
       
 38294         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorCopyButton, {
 38950         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorCopyButton, {
 38295           color: safeColordColor,
 38951           color: safeColordColor,
 38296           colorType: copyFormat || colorType
 38952           colorType: copyFormat || colorType
 38297         })]
 38953         })]
 38298       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorInputWrapper, {
 38954       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ColorInputWrapper, {
 38309   });
 38965   });
 38310 };
 38966 };
 38311 const ColorPicker = contextConnect(UnconnectedColorPicker, 'ColorPicker');
 38967 const ColorPicker = contextConnect(UnconnectedColorPicker, 'ColorPicker');
 38312 /* harmony default export */ const color_picker_component = (ColorPicker);
 38968 /* harmony default export */ const color_picker_component = (ColorPicker);
 38313 
 38969 
 38314 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/use-deprecated-props.js
 38970 ;// ./node_modules/@wordpress/components/build-module/color-picker/use-deprecated-props.js
 38315 /**
 38971 /**
 38316  * External dependencies
 38972  * External dependencies
 38317  */
 38973  */
 38318 
 38974 
 38319 
 38975 
 38377     enableAlpha: props.enableAlpha,
 39033     enableAlpha: props.enableAlpha,
 38378     onChange: props.onChange
 39034     onChange: props.onChange
 38379   };
 39035   };
 38380 }
 39036 }
 38381 
 39037 
 38382 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/legacy-adapter.js
 39038 ;// ./node_modules/@wordpress/components/build-module/color-picker/legacy-adapter.js
 38383 /**
 39039 /**
 38384  * Internal dependencies
 39040  * Internal dependencies
 38385  */
 39041  */
 38386 
 39042 
 38387 
 39043 
 38390   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_picker_component, {
 39046   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_picker_component, {
 38391     ...use_deprecated_props_useDeprecatedProps(props)
 39047     ...use_deprecated_props_useDeprecatedProps(props)
 38392   });
 39048   });
 38393 };
 39049 };
 38394 
 39050 
 38395 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-context.js
 39051 ;// ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-context.js
 38396 /**
 39052 /**
 38397  * WordPress dependencies
 39053  * WordPress dependencies
 38398  */
 39054  */
 38399 
 39055 
 38400 
 39056 
 38402  * Internal dependencies
 39058  * Internal dependencies
 38403  */
 39059  */
 38404 
 39060 
 38405 const CircularOptionPickerContext = (0,external_wp_element_namespaceObject.createContext)({});
 39061 const CircularOptionPickerContext = (0,external_wp_element_namespaceObject.createContext)({});
 38406 
 39062 
 38407 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
 39063 ;// ./node_modules/@wordpress/icons/build-module/library/check.js
 38408 /**
 39064 /**
 38409  * WordPress dependencies
 39065  * WordPress dependencies
 38410  */
 39066  */
 38411 
 39067 
 38412 
 39068 
 38417     d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
 39073     d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
 38418   })
 39074   })
 38419 });
 39075 });
 38420 /* harmony default export */ const library_check = (check);
 39076 /* harmony default export */ const library_check = (check);
 38421 
 39077 
 38422 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-option.js
 39078 ;// ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-option.js
 38423 /**
 39079 /**
 38424  * External dependencies
 39080  * External dependencies
 38425  */
 39081  */
 38426 
 39082 
 38427 /**
 39083 /**
 38432 
 39088 
 38433 
 39089 
 38434 /**
 39090 /**
 38435  * Internal dependencies
 39091  * Internal dependencies
 38436  */
 39092  */
 38437 
       
 38438 
       
 38439 
 39093 
 38440 
 39094 
 38441 
 39095 
 38442 
 39096 
 38443 function UnforwardedOptionAsButton(props, forwardedRef) {
 39097 function UnforwardedOptionAsButton(props, forwardedRef) {
 38444   const {
 39098   const {
 38445     isPressed,
 39099     isPressed,
       
 39100     label,
 38446     ...additionalProps
 39101     ...additionalProps
 38447   } = props;
 39102   } = props;
 38448   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 39103   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 38449     ...additionalProps,
 39104     ...additionalProps,
 38450     "aria-pressed": isPressed,
 39105     "aria-pressed": isPressed,
 38451     ref: forwardedRef
 39106     ref: forwardedRef,
       
 39107     label: label
 38452   });
 39108   });
 38453 }
 39109 }
 38454 const OptionAsButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedOptionAsButton);
 39110 const OptionAsButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedOptionAsButton);
 38455 function UnforwardedOptionAsOption(props, forwardedRef) {
 39111 function UnforwardedOptionAsOption(props, forwardedRef) {
 38456   const {
 39112   const {
 38457     id,
 39113     id,
 38458     isSelected,
 39114     isSelected,
 38459     compositeStore,
 39115     label,
 38460     ...additionalProps
 39116     ...additionalProps
 38461   } = props;
 39117   } = props;
 38462   const activeId = compositeStore.useState('activeId');
 39118   const {
 38463   if (isSelected && !activeId) {
 39119     setActiveId,
 38464     compositeStore.setActiveId(id);
 39120     activeId
 38465   }
 39121   } = (0,external_wp_element_namespaceObject.useContext)(CircularOptionPickerContext);
 38466   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CompositeItem, {
 39122   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
 39123     if (isSelected && !activeId) {
       
 39124       // The setTimeout call is necessary to make sure that this update
       
 39125       // doesn't get overridden by `Composite`'s internal logic, which picks
       
 39126       // an initial active item if one is not specifically set.
       
 39127       window.setTimeout(() => setActiveId?.(id), 0);
       
 39128     }
       
 39129   }, [isSelected, setActiveId, activeId, id]);
       
 39130   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite.Item, {
 38467     render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 39131     render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 38468       ...additionalProps,
 39132       ...additionalProps,
 38469       role: "option",
 39133       role: "option",
 38470       "aria-selected": !!isSelected,
 39134       "aria-selected": !!isSelected,
 38471       ref: forwardedRef
 39135       ref: forwardedRef,
       
 39136       label: label
 38472     }),
 39137     }),
 38473     store: compositeStore,
       
 38474     id: id
 39138     id: id
 38475   });
 39139   });
 38476 }
 39140 }
 38477 const OptionAsOption = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedOptionAsOption);
 39141 const OptionAsOption = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedOptionAsOption);
 38478 function Option({
 39142 function Option({
 38482   tooltipText,
 39146   tooltipText,
 38483   ...additionalProps
 39147   ...additionalProps
 38484 }) {
 39148 }) {
 38485   const {
 39149   const {
 38486     baseId,
 39150     baseId,
 38487     compositeStore
 39151     setActiveId
 38488   } = (0,external_wp_element_namespaceObject.useContext)(CircularOptionPickerContext);
 39152   } = (0,external_wp_element_namespaceObject.useContext)(CircularOptionPickerContext);
 38489   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(Option, baseId || 'components-circular-option-picker__option');
 39153   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(Option, baseId || 'components-circular-option-picker__option');
 38490   const commonProps = {
 39154   const commonProps = {
 38491     id,
 39155     id,
 38492     className: 'components-circular-option-picker__option',
 39156     className: 'components-circular-option-picker__option',
       
 39157     __next40pxDefaultSize: true,
 38493     ...additionalProps
 39158     ...additionalProps
 38494   };
 39159   };
 38495   const optionControl = compositeStore ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsOption, {
 39160   const isListbox = setActiveId !== undefined;
       
 39161   const optionControl = isListbox ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsOption, {
 38496     ...commonProps,
 39162     ...commonProps,
 38497     compositeStore: compositeStore,
 39163     label: tooltipText,
 38498     isSelected: isSelected
 39164     isSelected: isSelected
 38499   }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsButton, {
 39165   }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OptionAsButton, {
 38500     ...commonProps,
 39166     ...commonProps,
       
 39167     label: tooltipText,
 38501     isPressed: isSelected
 39168     isPressed: isSelected
 38502   });
 39169   });
 38503   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 39170   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 38504     className: dist_clsx(className, 'components-circular-option-picker__option-wrapper'),
 39171     className: dist_clsx(className, 'components-circular-option-picker__option-wrapper'),
 38505     children: [tooltipText ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 39172     children: [optionControl, isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
 38506       text: tooltipText,
       
 38507       children: optionControl
       
 38508     }) : optionControl, isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
       
 38509       icon: library_check,
 39173       icon: library_check,
 38510       ...selectedIconProps
 39174       ...selectedIconProps
 38511     })]
 39175     })]
 38512   });
 39176   });
 38513 }
 39177 }
 38514 
 39178 
 38515 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-option-group.js
 39179 ;// ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-option-group.js
 38516 /**
 39180 /**
 38517  * External dependencies
 39181  * External dependencies
 38518  */
 39182  */
 38519 
 39183 
 38520 
 39184 
 38534     className: dist_clsx('components-circular-option-picker__option-group', 'components-circular-option-picker__swatches', className),
 39198     className: dist_clsx('components-circular-option-picker__option-group', 'components-circular-option-picker__swatches', className),
 38535     children: options
 39199     children: options
 38536   });
 39200   });
 38537 }
 39201 }
 38538 
 39202 
 38539 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-actions.js
 39203 ;// ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker-actions.js
 38540 /**
 39204 /**
 38541  * External dependencies
 39205  * External dependencies
 38542  */
 39206  */
 38543 
 39207 
 38544 
 39208 
 38574   className,
 39238   className,
 38575   children,
 39239   children,
 38576   ...additionalProps
 39240   ...additionalProps
 38577 }) {
 39241 }) {
 38578   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 39242   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 39243     __next40pxDefaultSize: true,
 38579     className: dist_clsx('components-circular-option-picker__clear', className),
 39244     className: dist_clsx('components-circular-option-picker__clear', className),
 38580     variant: "tertiary",
 39245     variant: "tertiary",
 38581     ...additionalProps,
 39246     ...additionalProps,
 38582     children: children
 39247     children: children
 38583   });
 39248   });
 38584 }
 39249 }
 38585 
 39250 
 38586 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker.js
 39251 ;// ./node_modules/@wordpress/components/build-module/circular-option-picker/circular-option-picker.js
 38587 /**
 39252 /**
 38588  * External dependencies
 39253  * External dependencies
 38589  */
 39254  */
 38590 
 39255 
 38591 
 39256 
 38592 /**
 39257 /**
 38593  * WordPress dependencies
 39258  * WordPress dependencies
 38594  */
 39259  */
       
 39260 
 38595 
 39261 
 38596 
 39262 
 38597 
 39263 
 38598 /**
 39264 /**
 38599  * Internal dependencies
 39265  * Internal dependencies
 38626  * 						key={ `${ color }-${ index }` }
 39292  * 						key={ `${ color }-${ index }` }
 38627  * 						tooltipText={ name }
 39293  * 						tooltipText={ name }
 38628  * 						style={ { backgroundColor: color, color } }
 39294  * 						style={ { backgroundColor: color, color } }
 38629  * 						isSelected={ index === currentColor }
 39295  * 						isSelected={ index === currentColor }
 38630  * 						onClick={ () => setCurrentColor( index ) }
 39296  * 						onClick={ () => setCurrentColor( index ) }
 38631  * 						aria-label={ name }
       
 38632  * 					/>
 39297  * 					/>
 38633  * 				);
 39298  * 				);
 38634  * 			} ) }
 39299  * 			} ) }
 38635  * 		</>
 39300  * 		</>
 38636  * 	);
 39301  * 	);
 38648  * 	);
 39313  * 	);
 38649  * };
 39314  * };
 38650  * ```
 39315  * ```
 38651  */
 39316  */
 38652 
 39317 
 38653 
       
 38654 function ListboxCircularOptionPicker(props) {
 39318 function ListboxCircularOptionPicker(props) {
 38655   const {
 39319   const {
 38656     actions,
 39320     actions,
 38657     options,
 39321     options,
 38658     baseId,
 39322     baseId,
 38659     className,
 39323     className,
 38660     loop = true,
 39324     loop = true,
 38661     children,
 39325     children,
 38662     ...additionalProps
 39326     ...additionalProps
 38663   } = props;
 39327   } = props;
 38664   const compositeStore = useCompositeStore({
 39328   const [activeId, setActiveId] = (0,external_wp_element_namespaceObject.useState)(undefined);
 38665     focusLoop: loop,
 39329   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 38666     rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
       
 38667   });
       
 38668   const compositeContext = {
       
 38669     baseId,
 39330     baseId,
 38670     compositeStore
 39331     activeId,
 38671   };
 39332     setActiveId
       
 39333   }), [baseId, activeId, setActiveId]);
 38672   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 39334   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 38673     className: className,
 39335     className: className,
 38674     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CircularOptionPickerContext.Provider, {
 39336     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CircularOptionPickerContext.Provider, {
 38675       value: compositeContext,
 39337       value: contextValue,
 38676       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
 39338       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Composite, {
 38677         ...additionalProps,
 39339         ...additionalProps,
 38678         id: baseId,
 39340         id: baseId,
 38679         store: compositeStore,
 39341         focusLoop: loop,
       
 39342         rtl: (0,external_wp_i18n_namespaceObject.isRTL)(),
 38680         role: "listbox",
 39343         role: "listbox",
       
 39344         activeId: activeId,
       
 39345         setActiveId: setActiveId,
 38681         children: options
 39346         children: options
 38682       }), children, actions]
 39347       }), children, actions]
 38683     })
 39348     })
 38684   });
 39349   });
 38685 }
 39350 }
 38689     options,
 39354     options,
 38690     children,
 39355     children,
 38691     baseId,
 39356     baseId,
 38692     ...additionalProps
 39357     ...additionalProps
 38693   } = props;
 39358   } = props;
       
 39359   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
       
 39360     baseId
       
 39361   }), [baseId]);
 38694   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 39362   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 38695     ...additionalProps,
 39363     ...additionalProps,
       
 39364     role: "group",
 38696     id: baseId,
 39365     id: baseId,
 38697     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CircularOptionPickerContext.Provider, {
 39366     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(CircularOptionPickerContext.Provider, {
 38698       value: {
 39367       value: contextValue,
 38699         baseId
       
 38700       },
       
 38701       children: [options, children, actions]
 39368       children: [options, children, actions]
 38702     })
 39369     })
 38703   });
 39370   });
 38704 }
 39371 }
 38705 function CircularOptionPicker(props) {
 39372 function CircularOptionPicker(props) {
 38734 CircularOptionPicker.OptionGroup = OptionGroup;
 39401 CircularOptionPicker.OptionGroup = OptionGroup;
 38735 CircularOptionPicker.ButtonAction = ButtonAction;
 39402 CircularOptionPicker.ButtonAction = ButtonAction;
 38736 CircularOptionPicker.DropdownLinkAction = DropdownLinkAction;
 39403 CircularOptionPicker.DropdownLinkAction = DropdownLinkAction;
 38737 /* harmony default export */ const circular_option_picker = (CircularOptionPicker);
 39404 /* harmony default export */ const circular_option_picker = (CircularOptionPicker);
 38738 
 39405 
 38739 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/circular-option-picker/index.js
 39406 ;// ./node_modules/@wordpress/components/build-module/circular-option-picker/index.js
 38740 /**
 39407 /**
 38741  * Internal dependencies
 39408  * Internal dependencies
 38742  */
 39409  */
 38743 
 39410 
 38744 
 39411 
 38745 
 39412 
 38746 
 39413 
       
 39414 
 38747 /* harmony default export */ const build_module_circular_option_picker = (circular_option_picker);
 39415 /* harmony default export */ const build_module_circular_option_picker = (circular_option_picker);
 38748 
 39416 
 38749 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/v-stack/hook.js
 39417 ;// ./node_modules/@wordpress/components/build-module/circular-option-picker/utils.js
       
 39418 /**
       
 39419  * WordPress dependencies
       
 39420  */
       
 39421 
       
 39422 
       
 39423 /**
       
 39424  * Computes the common props for the CircularOptionPicker.
       
 39425  */
       
 39426 function getComputeCircularOptionPickerCommonProps(asButtons, loop, ariaLabel, ariaLabelledby) {
       
 39427   const metaProps = asButtons ? {
       
 39428     asButtons: true
       
 39429   } : {
       
 39430     asButtons: false,
       
 39431     loop
       
 39432   };
       
 39433   const labelProps = {
       
 39434     'aria-labelledby': ariaLabelledby,
       
 39435     'aria-label': ariaLabelledby ? undefined : ariaLabel || (0,external_wp_i18n_namespaceObject.__)('Custom color picker')
       
 39436   };
       
 39437   return {
       
 39438     metaProps,
       
 39439     labelProps
       
 39440   };
       
 39441 }
       
 39442 
       
 39443 ;// ./node_modules/@wordpress/components/build-module/v-stack/hook.js
 38750 /**
 39444 /**
 38751  * Internal dependencies
 39445  * Internal dependencies
 38752  */
 39446  */
 38753 
 39447 
 38754 
 39448 
 38766     ...otherProps
 39460     ...otherProps
 38767   });
 39461   });
 38768   return hStackProps;
 39462   return hStackProps;
 38769 }
 39463 }
 38770 
 39464 
 38771 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/v-stack/component.js
 39465 ;// ./node_modules/@wordpress/components/build-module/v-stack/component.js
 38772 /**
 39466 /**
 38773  * External dependencies
 39467  * External dependencies
 38774  */
 39468  */
 38775 
 39469 
 38776 /**
 39470 /**
 38813  * ```
 39507  * ```
 38814  */
 39508  */
 38815 const VStack = contextConnect(UnconnectedVStack, 'VStack');
 39509 const VStack = contextConnect(UnconnectedVStack, 'VStack');
 38816 /* harmony default export */ const v_stack_component = (VStack);
 39510 /* harmony default export */ const v_stack_component = (VStack);
 38817 
 39511 
 38818 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/truncate/component.js
 39512 ;// ./node_modules/@wordpress/components/build-module/truncate/component.js
 38819 /**
 39513 /**
 38820  * External dependencies
 39514  * External dependencies
 38821  */
 39515  */
 38822 
 39516 
 38823 /**
 39517 /**
 38858  * ```
 39552  * ```
 38859  */
 39553  */
 38860 const component_Truncate = contextConnect(UnconnectedTruncate, 'Truncate');
 39554 const component_Truncate = contextConnect(UnconnectedTruncate, 'Truncate');
 38861 /* harmony default export */ const truncate_component = (component_Truncate);
 39555 /* harmony default export */ const truncate_component = (component_Truncate);
 38862 
 39556 
 38863 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/heading/hook.js
 39557 ;// ./node_modules/@wordpress/components/build-module/heading/hook.js
 38864 /**
 39558 /**
 38865  * Internal dependencies
 39559  * Internal dependencies
 38866  */
 39560  */
 38867 
 39561 
 38868 
 39562 
 38871 
 39565 
 38872 function useHeading(props) {
 39566 function useHeading(props) {
 38873   const {
 39567   const {
 38874     as: asProp,
 39568     as: asProp,
 38875     level = 2,
 39569     level = 2,
 38876     color = COLORS.gray[900],
 39570     color = COLORS.theme.foreground,
 38877     isBlock = true,
 39571     isBlock = true,
 38878     weight = config_values.fontWeightHeading,
 39572     weight = config_values.fontWeightHeading,
 38879     ...otherProps
 39573     ...otherProps
 38880   } = useContextSystem(props, 'Heading');
 39574   } = useContextSystem(props, 'Heading');
 38881   const as = asProp || `h${level}`;
 39575   const as = asProp || `h${level}`;
 38897     ...a11yProps,
 39591     ...a11yProps,
 38898     as
 39592     as
 38899   };
 39593   };
 38900 }
 39594 }
 38901 
 39595 
 38902 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/heading/component.js
 39596 ;// ./node_modules/@wordpress/components/build-module/heading/component.js
 38903 /**
 39597 /**
 38904  * External dependencies
 39598  * External dependencies
 38905  */
 39599  */
 38906 
 39600 
 38907 /**
 39601 /**
 38932  * ```
 39626  * ```
 38933  */
 39627  */
 38934 const Heading = contextConnect(UnconnectedHeading, 'Heading');
 39628 const Heading = contextConnect(UnconnectedHeading, 'Heading');
 38935 /* harmony default export */ const heading_component = (Heading);
 39629 /* harmony default export */ const heading_component = (Heading);
 38936 
 39630 
 38937 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-palette/styles.js
 39631 ;// ./node_modules/@wordpress/components/build-module/color-palette/styles.js
 38938 
 39632 
 38939 function color_palette_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 39633 function color_palette_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 38940 /**
 39634 /**
 38941  * External dependencies
 39635  * External dependencies
 38942  */
 39636  */
 38950 } : 0)( true ? {
 39644 } : 0)( true ? {
 38951   name: "13lxv2o",
 39645   name: "13lxv2o",
 38952   styles: "text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"
 39646   styles: "text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"
 38953 } : 0);
 39647 } : 0);
 38954 
 39648 
 38955 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/styles.js
 39649 ;// ./node_modules/@wordpress/components/build-module/dropdown/styles.js
 38956 
 39650 
 38957 /**
 39651 /**
 38958  * External dependencies
 39652  * External dependencies
 38959  */
 39653  */
 38960 
 39654 
 38976 };
 39670 };
 38977 const DropdownContentWrapperDiv = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 39671 const DropdownContentWrapperDiv = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 38978   target: "eovvns30"
 39672   target: "eovvns30"
 38979 } : 0)("margin-left:", space(-2), ";margin-right:", space(-2), ";&:first-of-type{margin-top:", space(-2), ";}&:last-of-type{margin-bottom:", space(-2), ";}", padding, ";" + ( true ? "" : 0));
 39673 } : 0)("margin-left:", space(-2), ";margin-right:", space(-2), ";&:first-of-type{margin-top:", space(-2), ";}&:last-of-type{margin-bottom:", space(-2), ";}", padding, ";" + ( true ? "" : 0));
 38980 
 39674 
 38981 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/dropdown-content-wrapper.js
 39675 ;// ./node_modules/@wordpress/components/build-module/dropdown/dropdown-content-wrapper.js
 38982 /**
 39676 /**
 38983  * External dependencies
 39677  * External dependencies
 38984  */
 39678  */
 38985 
 39679 
 38986 /**
 39680 /**
 39022  * ```
 39716  * ```
 39023  */
 39717  */
 39024 const DropdownContentWrapper = contextConnect(UnconnectedDropdownContentWrapper, 'DropdownContentWrapper');
 39718 const DropdownContentWrapper = contextConnect(UnconnectedDropdownContentWrapper, 'DropdownContentWrapper');
 39025 /* harmony default export */ const dropdown_content_wrapper = (DropdownContentWrapper);
 39719 /* harmony default export */ const dropdown_content_wrapper = (DropdownContentWrapper);
 39026 
 39720 
 39027 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-palette/utils.js
 39721 ;// ./node_modules/@wordpress/components/build-module/color-palette/utils.js
 39028 /**
 39722 /**
 39029  * External dependencies
 39723  * External dependencies
 39030  */
 39724  */
 39031 
 39725 
 39032 
 39726 
 39040 /**
 39734 /**
 39041  * Internal dependencies
 39735  * Internal dependencies
 39042  */
 39736  */
 39043 
 39737 
 39044 k([names, a11y]);
 39738 k([names, a11y]);
       
 39739 
       
 39740 /**
       
 39741  * Checks if a color value is a simple CSS color.
       
 39742  *
       
 39743  * @param value The color value to check.
       
 39744  * @return A boolean indicating whether the color value is a simple CSS color.
       
 39745  */
       
 39746 const isSimpleCSSColor = value => {
       
 39747   const valueIsCssVariable = /var\(/.test(value !== null && value !== void 0 ? value : '');
       
 39748   const valueIsColorMix = /color-mix\(/.test(value !== null && value !== void 0 ? value : '');
       
 39749   return !valueIsCssVariable && !valueIsColorMix;
       
 39750 };
 39045 const extractColorNameFromCurrentValue = (currentValue, colors = [], showMultiplePalettes = false) => {
 39751 const extractColorNameFromCurrentValue = (currentValue, colors = [], showMultiplePalettes = false) => {
 39046   if (!currentValue) {
 39752   if (!currentValue) {
 39047     return '';
 39753     return '';
 39048   }
 39754   }
 39049   const currentValueIsCssVariable = /^var\(/.test(currentValue);
 39755   const currentValueIsSimpleColor = currentValue ? isSimpleCSSColor(currentValue) : false;
 39050   const normalizedCurrentValue = currentValueIsCssVariable ? currentValue : w(currentValue).toHex();
 39756   const normalizedCurrentValue = currentValueIsSimpleColor ? w(currentValue).toHex() : currentValue;
 39051 
 39757 
 39052   // Normalize format of `colors` to simplify the following loop
 39758   // Normalize format of `colors` to simplify the following loop
 39053 
 39759 
 39054   const colorPalettes = showMultiplePalettes ? colors : [{
 39760   const colorPalettes = showMultiplePalettes ? colors : [{
 39055     colors: colors
 39761     colors: colors
 39059   } of colorPalettes) {
 39765   } of colorPalettes) {
 39060     for (const {
 39766     for (const {
 39061       name: colorName,
 39767       name: colorName,
 39062       color: colorValue
 39768       color: colorValue
 39063     } of paletteColors) {
 39769     } of paletteColors) {
 39064       const normalizedColorValue = currentValueIsCssVariable ? colorValue : w(colorValue).toHex();
 39770       const normalizedColorValue = currentValueIsSimpleColor ? w(colorValue).toHex() : colorValue;
 39065       if (normalizedCurrentValue === normalizedColorValue) {
 39771       if (normalizedCurrentValue === normalizedColorValue) {
 39066         return colorName;
 39772         return colorName;
 39067       }
 39773       }
 39068     }
 39774     }
 39069   }
 39775   }
 39085  * @param value   The color value that may be a CSS variable.
 39791  * @param value   The color value that may be a CSS variable.
 39086  * @param element The element for which to get the computed style.
 39792  * @param element The element for which to get the computed style.
 39087  * @return The background color value computed from a element.
 39793  * @return The background color value computed from a element.
 39088  */
 39794  */
 39089 const normalizeColorValue = (value, element) => {
 39795 const normalizeColorValue = (value, element) => {
 39090   const currentValueIsCssVariable = /^var\(/.test(value !== null && value !== void 0 ? value : '');
 39796   if (!value || !element || isSimpleCSSColor(value)) {
 39091   if (!currentValueIsCssVariable || element === null) {
       
 39092     return value;
 39797     return value;
 39093   }
 39798   }
 39094   const {
 39799   const {
 39095     ownerDocument
 39800     ownerDocument
 39096   } = element;
 39801   } = element;
 39099   } = ownerDocument;
 39804   } = ownerDocument;
 39100   const computedBackgroundColor = defaultView?.getComputedStyle(element).backgroundColor;
 39805   const computedBackgroundColor = defaultView?.getComputedStyle(element).backgroundColor;
 39101   return computedBackgroundColor ? w(computedBackgroundColor).toHex() : value;
 39806   return computedBackgroundColor ? w(computedBackgroundColor).toHex() : value;
 39102 };
 39807 };
 39103 
 39808 
 39104 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-palette/index.js
 39809 ;// ./node_modules/@wordpress/components/build-module/color-palette/index.js
 39105 /**
 39810 /**
 39106  * External dependencies
 39811  * External dependencies
 39107  */
 39812  */
 39108 
 39813 
 39109 
 39814 
 39119 
 39824 
 39120 
 39825 
 39121 /**
 39826 /**
 39122  * Internal dependencies
 39827  * Internal dependencies
 39123  */
 39828  */
 39124 
       
 39125 
 39829 
 39126 
 39830 
 39127 
 39831 
 39128 
 39832 
 39129 
 39833 
 39157         (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Color code: %s'), color),
 39861         (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Color code: %s'), color),
 39158         style: {
 39862         style: {
 39159           backgroundColor: color,
 39863           backgroundColor: color,
 39160           color
 39864           color
 39161         },
 39865         },
 39162         onClick: isSelected ? clearColor : () => onChange(color, index),
 39866         onClick: isSelected ? clearColor : () => onChange(color, index)
 39163         "aria-label": name ?
       
 39164         // translators: %s: The name of the color e.g: "vivid red".
       
 39165         (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Color: %s'), name) :
       
 39166         // translators: %s: color hex code e.g: "#f00".
       
 39167         (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Color code: %s'), color)
       
 39168       }, `${color}-${index}`);
 39867       }, `${color}-${index}`);
 39169     });
 39868     });
 39170   }, [colors, value, onChange, clearColor]);
 39869   }, [colors, value, onChange, clearColor]);
 39171   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.OptionGroup, {
 39870   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.OptionGroup, {
 39172     className: className,
 39871     className: className,
 39274   const isHex = value?.startsWith('#');
 39973   const isHex = value?.startsWith('#');
 39275 
 39974 
 39276   // Leave hex values as-is. Remove the `var()` wrapper from CSS vars.
 39975   // Leave hex values as-is. Remove the `var()` wrapper from CSS vars.
 39277   const displayValue = value?.replace(/^var\((.+)\)$/, '$1');
 39976   const displayValue = value?.replace(/^var\((.+)\)$/, '$1');
 39278   const customColorAccessibleLabel = !!displayValue ? (0,external_wp_i18n_namespaceObject.sprintf)(
 39977   const customColorAccessibleLabel = !!displayValue ? (0,external_wp_i18n_namespaceObject.sprintf)(
 39279   // translators: %1$s: The name of the color e.g: "vivid red". %2$s: The color's hex code e.g: "#f00".
 39978   // translators: 1: The name of the color e.g: "vivid red". 2: The color's hex code e.g: "#f00".
 39280   (0,external_wp_i18n_namespaceObject.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), buttonLabelName, displayValue) : (0,external_wp_i18n_namespaceObject.__)('Custom color picker.');
 39979   (0,external_wp_i18n_namespaceObject.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), buttonLabelName, displayValue) : (0,external_wp_i18n_namespaceObject.__)('Custom color picker');
 39281   const paletteCommonProps = {
 39980   const paletteCommonProps = {
 39282     clearColor,
 39981     clearColor,
 39283     onChange,
 39982     onChange,
 39284     value
 39983     value
 39285   };
 39984   };
 39286   const actions = !!clearable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
 39985   const actions = !!clearable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
 39287     onClick: clearColor,
 39986     onClick: clearColor,
       
 39987     accessibleWhenDisabled: true,
       
 39988     disabled: !value,
 39288     children: (0,external_wp_i18n_namespaceObject.__)('Clear')
 39989     children: (0,external_wp_i18n_namespaceObject.__)('Clear')
 39289   });
 39990   });
 39290   let metaProps;
 39991   const {
 39291   if (asButtons) {
 39992     metaProps,
 39292     metaProps = {
 39993     labelProps
 39293       asButtons: true
 39994   } = getComputeCircularOptionPickerCommonProps(asButtons, loop, ariaLabel, ariaLabelledby);
 39294     };
       
 39295   } else {
       
 39296     const _metaProps = {
       
 39297       asButtons: false,
       
 39298       loop
       
 39299     };
       
 39300     if (ariaLabel) {
       
 39301       metaProps = {
       
 39302         ..._metaProps,
       
 39303         'aria-label': ariaLabel
       
 39304       };
       
 39305     } else if (ariaLabelledby) {
       
 39306       metaProps = {
       
 39307         ..._metaProps,
       
 39308         'aria-labelledby': ariaLabelledby
       
 39309       };
       
 39310     } else {
       
 39311       metaProps = {
       
 39312         ..._metaProps,
       
 39313         'aria-label': (0,external_wp_i18n_namespaceObject.__)('Custom color picker.')
       
 39314       };
       
 39315     }
       
 39316   }
       
 39317   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 39995   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 39318     spacing: 3,
 39996     spacing: 3,
 39319     ref: forwardedRef,
 39997     ref: forwardedRef,
 39320     ...additionalProps,
 39998     ...additionalProps,
 39321     children: [!disableCustomColors && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomColorPickerDropdown, {
 39999     children: [!disableCustomColors && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomColorPickerDropdown, {
 39350             }),
 40028             }),
 39351             children: displayValue
 40029             children: displayValue
 39352           })]
 40030           })]
 39353         })]
 40031         })]
 39354       })
 40032       })
 39355     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
 40033     }), (colors.length > 0 || actions) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
 39356       ...metaProps,
 40034       ...metaProps,
       
 40035       ...labelProps,
 39357       actions: actions,
 40036       actions: actions,
 39358       options: hasMultipleColorOrigins ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MultiplePalettes, {
 40037       options: hasMultipleColorOrigins ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MultiplePalettes, {
 39359         ...paletteCommonProps,
 40038         ...paletteCommonProps,
 39360         headingLevel: headingLevel,
 40039         headingLevel: headingLevel,
 39361         colors: colors,
 40040         colors: colors,
 39394  * ```
 40073  * ```
 39395  */
 40074  */
 39396 const ColorPalette = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedColorPalette);
 40075 const ColorPalette = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedColorPalette);
 39397 /* harmony default export */ const color_palette = (ColorPalette);
 40076 /* harmony default export */ const color_palette = (ColorPalette);
 39398 
 40077 
 39399 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/styles/unit-control-styles.js
 40078 ;// ./node_modules/@wordpress/components/build-module/unit-control/styles/unit-control-styles.js
 39400 
 40079 
 39401 /**
 40080 /**
 39402  * External dependencies
 40081  * External dependencies
 39403  */
 40082  */
 39404 
 40083 
 39421 } : 0)("&&&{input{display:block;width:100%;}", BackdropUI, "{transition:box-shadow 0.1s linear;}}" + ( true ? "" : 0));
 40100 } : 0)("&&&{input{display:block;width:100%;}", BackdropUI, "{transition:box-shadow 0.1s linear;}}" + ( true ? "" : 0));
 39422 const baseUnitLabelStyles = ({
 40101 const baseUnitLabelStyles = ({
 39423   selectSize
 40102   selectSize
 39424 }) => {
 40103 }) => {
 39425   const sizes = {
 40104   const sizes = {
 39426     small: /*#__PURE__*/emotion_react_browser_esm_css("box-sizing:border-box;padding:2px 1px;width:20px;color:", COLORS.gray[800], ";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;" + ( true ? "" : 0),  true ? "" : 0),
 40105     small: /*#__PURE__*/emotion_react_browser_esm_css("box-sizing:border-box;padding:2px 1px;width:20px;font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;&:not( :disabled ){color:", COLORS.gray[800], ";}" + ( true ? "" : 0),  true ? "" : 0),
 39427     default: /*#__PURE__*/emotion_react_browser_esm_css("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:", space(2), ";padding:", space(1), ";color:", COLORS.theme.accent, ";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" + ( true ? "" : 0),  true ? "" : 0)
 40106     default: /*#__PURE__*/emotion_react_browser_esm_css("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:", space(2), ";padding:", space(1), ";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;field-sizing:content;&:not( :disabled ){color:", COLORS.theme.accent, ";}" + ( true ? "" : 0),  true ? "" : 0)
 39428   };
 40107   };
 39429   return sizes[selectSize];
 40108   return sizes[selectSize];
 39430 };
 40109 };
 39431 const UnitLabel = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 40110 const UnitLabel = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 39432   target: "e1bagdl31"
 40111   target: "e1bagdl31"
 39437   const sizes = {
 40116   const sizes = {
 39438     small: /*#__PURE__*/emotion_react_browser_esm_css("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;", rtl({
 40117     small: /*#__PURE__*/emotion_react_browser_esm_css("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;", rtl({
 39439       borderTopLeftRadius: 0,
 40118       borderTopLeftRadius: 0,
 39440       borderBottomLeftRadius: 0
 40119       borderBottomLeftRadius: 0
 39441     })(), " &:not(:disabled):hover{background-color:", COLORS.gray[100], ";}&:focus{border:1px solid ", COLORS.ui.borderFocus, ";box-shadow:inset 0 0 0 ", config_values.borderWidth + ' ' + COLORS.ui.borderFocus, ";outline-offset:0;outline:2px solid transparent;z-index:1;}" + ( true ? "" : 0),  true ? "" : 0),
 40120     })(), " &:not(:disabled):hover{background-color:", COLORS.gray[100], ";}&:focus{border:1px solid ", COLORS.ui.borderFocus, ";box-shadow:inset 0 0 0 ", config_values.borderWidth + ' ' + COLORS.ui.borderFocus, ";outline-offset:0;outline:2px solid transparent;z-index:1;}" + ( true ? "" : 0),  true ? "" : 0),
 39442     default: /*#__PURE__*/emotion_react_browser_esm_css("display:flex;justify-content:center;align-items:center;&:hover{color:", COLORS.ui.borderFocus, ";box-shadow:inset 0 0 0 ", config_values.borderWidth + ' ' + COLORS.ui.borderFocus, ";outline:", config_values.borderWidth, " solid transparent;}&:focus{box-shadow:0 0 0 ", config_values.borderWidthFocus + ' ' + COLORS.ui.borderFocus, ";outline:", config_values.borderWidthFocus, " solid transparent;}" + ( true ? "" : 0),  true ? "" : 0)
 40121     default: /*#__PURE__*/emotion_react_browser_esm_css("display:flex;justify-content:center;align-items:center;&:where( :not( :disabled ) ):hover{box-shadow:0 0 0 ", config_values.borderWidth + ' ' + COLORS.ui.borderFocus, ";outline:", config_values.borderWidth, " solid transparent;}&:focus{box-shadow:0 0 0 ", config_values.borderWidthFocus + ' ' + COLORS.ui.borderFocus, ";outline:", config_values.borderWidthFocus, " solid transparent;}" + ( true ? "" : 0),  true ? "" : 0)
 39443   };
 40122   };
 39444   return sizes[selectSize];
 40123   return sizes[selectSize];
 39445 };
 40124 };
 39446 const UnitSelect = /*#__PURE__*/emotion_styled_base_browser_esm("select",  true ? {
 40125 const UnitSelect = /*#__PURE__*/emotion_styled_base_browser_esm("select",  true ? {
 39447   target: "e1bagdl30"
 40126   target: "e1bagdl30"
 39448 } : 0)("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;", baseUnitLabelStyles, ";", unitSelectSizes, ";&:not( :disabled ){cursor:pointer;}}" + ( true ? "" : 0));
 40127 } : 0)("&&&{appearance:none;background:transparent;border-radius:", config_values.radiusXSmall, ";border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;", baseUnitLabelStyles, ";", unitSelectSizes, ";&:not( :disabled ){cursor:pointer;}}" + ( true ? "" : 0));
 39449 
 40128 
 39450 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/styles.js
 40129 ;// ./node_modules/@wordpress/components/build-module/border-control/styles.js
 39451 function border_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 40130 function border_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 39452 /**
 40131 /**
 39453  * External dependencies
 40132  * External dependencies
 39454  */
 40133  */
 39455 
 40134 
 39459  */
 40138  */
 39460 
 40139 
 39461 
 40140 
 39462 
 40141 
 39463 
 40142 
 39464 const styles_labelStyles =  true ? {
       
 39465   name: "f3vz0n",
       
 39466   styles: "font-weight:500"
       
 39467 } : 0;
       
 39468 const focusBoxShadow = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:inset ", config_values.controlBoxShadowFocus, ";" + ( true ? "" : 0),  true ? "" : 0);
 40143 const focusBoxShadow = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:inset ", config_values.controlBoxShadowFocus, ";" + ( true ? "" : 0),  true ? "" : 0);
 39469 const borderControl = /*#__PURE__*/emotion_react_browser_esm_css("border:0;padding:0;margin:0;", boxSizingReset, ";" + ( true ? "" : 0),  true ? "" : 0);
 40144 const borderControl = /*#__PURE__*/emotion_react_browser_esm_css("border:0;padding:0;margin:0;", boxSizingReset, ";" + ( true ? "" : 0),  true ? "" : 0);
 39470 const innerWrapper = () => /*#__PURE__*/emotion_react_browser_esm_css(ValueInput, "{flex:1 1 40%;}&& ", UnitSelect, "{min-height:0;}" + ( true ? "" : 0),  true ? "" : 0);
 40145 const innerWrapper = () => /*#__PURE__*/emotion_react_browser_esm_css(ValueInput, "{flex:1 1 40%;}&& ", UnitSelect, "{min-height:0;}" + ( true ? "" : 0),  true ? "" : 0);
 39471 
 40146 
 39472 /*
 40147 /*
 39493 };
 40168 };
 39494 const colorIndicatorWrapper = (border, size) => {
 40169 const colorIndicatorWrapper = (border, size) => {
 39495   const {
 40170   const {
 39496     style
 40171     style
 39497   } = border || {};
 40172   } = border || {};
 39498   return /*#__PURE__*/emotion_react_browser_esm_css("border-radius:9999px;border:2px solid transparent;", style ? colorIndicatorBorder(border) : undefined, " width:", size === '__unstable-large' ? '24px' : '22px', ";height:", size === '__unstable-large' ? '24px' : '22px', ";padding:", size === '__unstable-large' ? '2px' : '1px', ";&>span{height:", space(4), ";width:", space(4), ";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}" + ( true ? "" : 0),  true ? "" : 0);
 40173   return /*#__PURE__*/emotion_react_browser_esm_css("border-radius:", config_values.radiusFull, ";border:2px solid transparent;", style ? colorIndicatorBorder(border) : undefined, " width:", size === '__unstable-large' ? '24px' : '22px', ";height:", size === '__unstable-large' ? '24px' : '22px', ";padding:", size === '__unstable-large' ? '2px' : '1px', ";&>span{height:", space(4), ";width:", space(4), ";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}" + ( true ? "" : 0),  true ? "" : 0);
 39499 };
 40174 };
 39500 
 40175 
 39501 // Must equal $color-palette-circle-size from:
 40176 // Must equal $color-palette-circle-size from:
 39502 // @wordpress/components/src/circular-option-picker/style.scss
 40177 // @wordpress/components/src/circular-option-picker/style.scss
 39503 const swatchSize = 28;
 40178 const swatchSize = 28;
 39504 const swatchGap = 12;
 40179 const swatchGap = 12;
 39505 const borderControlPopoverControls = /*#__PURE__*/emotion_react_browser_esm_css("width:", swatchSize * 6 + swatchGap * 5, "px;>div:first-of-type>", StyledLabel, "{margin-bottom:0;", styles_labelStyles, ";}&& ", StyledLabel, "+button:not( .has-text ){min-width:24px;padding:0;}" + ( true ? "" : 0),  true ? "" : 0);
 40180 const borderControlPopoverControls = /*#__PURE__*/emotion_react_browser_esm_css("width:", swatchSize * 6 + swatchGap * 5, "px;>div:first-of-type>", StyledLabel, "{margin-bottom:0;}&& ", StyledLabel, "+button:not( .has-text ){min-width:24px;padding:0;}" + ( true ? "" : 0),  true ? "" : 0);
 39506 const borderControlPopoverContent = /*#__PURE__*/emotion_react_browser_esm_css( true ? "" : 0,  true ? "" : 0);
 40181 const borderControlPopoverContent = /*#__PURE__*/emotion_react_browser_esm_css( true ? "" : 0,  true ? "" : 0);
 39507 const borderColorIndicator = /*#__PURE__*/emotion_react_browser_esm_css( true ? "" : 0,  true ? "" : 0);
 40182 const borderColorIndicator = /*#__PURE__*/emotion_react_browser_esm_css( true ? "" : 0,  true ? "" : 0);
 39508 const resetButton = /*#__PURE__*/emotion_react_browser_esm_css("justify-content:center;width:100%;&&{border-top:", config_values.borderWidth, " solid ", COLORS.gray[400], ";border-top-left-radius:0;border-top-right-radius:0;height:40px;}" + ( true ? "" : 0),  true ? "" : 0);
 40183 const resetButtonWrapper =  true ? {
       
 40184   name: "1ghe26v",
       
 40185   styles: "display:flex;justify-content:flex-end;margin-top:12px"
       
 40186 } : 0;
 39509 const borderSlider = () => /*#__PURE__*/emotion_react_browser_esm_css("flex:1 1 60%;", rtl({
 40187 const borderSlider = () => /*#__PURE__*/emotion_react_browser_esm_css("flex:1 1 60%;", rtl({
 39510   marginRight: space(3)
 40188   marginRight: space(3)
 39511 })(), ";" + ( true ? "" : 0),  true ? "" : 0);
 40189 })(), ";" + ( true ? "" : 0),  true ? "" : 0);
 39512 
 40190 
 39513 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/utils.js
 40191 ;// ./node_modules/@wordpress/components/build-module/unit-control/utils.js
 39514 /**
 40192 /**
 39515  * WordPress dependencies
 40193  * WordPress dependencies
 39516  */
 40194  */
 39517 
 40195 
 39518 
 40196 
 39905     }
 40583     }
 39906   }
 40584   }
 39907   return unitsToReturn;
 40585   return unitsToReturn;
 39908 }
 40586 }
 39909 
 40587 
 39910 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control-dropdown/hook.js
 40588 ;// ./node_modules/@wordpress/components/build-module/border-control/border-control-dropdown/hook.js
 39911 /**
 40589 /**
 39912  * WordPress dependencies
 40590  * WordPress dependencies
 39913  */
 40591  */
 39914 
 40592 
 39915 
 40593 
 39975     return cx(borderControlPopoverControls);
 40653     return cx(borderControlPopoverControls);
 39976   }, [cx]);
 40654   }, [cx]);
 39977   const popoverContentClassName = (0,external_wp_element_namespaceObject.useMemo)(() => {
 40655   const popoverContentClassName = (0,external_wp_element_namespaceObject.useMemo)(() => {
 39978     return cx(borderControlPopoverContent);
 40656     return cx(borderControlPopoverContent);
 39979   }, [cx]);
 40657   }, [cx]);
 39980   const resetButtonClassName = (0,external_wp_element_namespaceObject.useMemo)(() => {
 40658   const resetButtonWrapperClassName = (0,external_wp_element_namespaceObject.useMemo)(() => {
 39981     return cx(resetButton);
 40659     return cx(resetButtonWrapper);
 39982   }, [cx]);
 40660   }, [cx]);
 39983   return {
 40661   return {
 39984     ...otherProps,
 40662     ...otherProps,
 39985     border,
 40663     border,
 39986     className: classes,
 40664     className: classes,
 39992     onColorChange,
 40670     onColorChange,
 39993     onStyleChange,
 40671     onStyleChange,
 39994     onReset,
 40672     onReset,
 39995     popoverContentClassName,
 40673     popoverContentClassName,
 39996     popoverControlsClassName,
 40674     popoverControlsClassName,
 39997     resetButtonClassName,
 40675     resetButtonWrapperClassName,
 39998     size,
 40676     size,
 39999     __experimentalIsRenderedInSidebar
 40677     __experimentalIsRenderedInSidebar
 40000   };
 40678   };
 40001 }
 40679 }
 40002 
 40680 
 40003 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control-dropdown/component.js
 40681 ;// ./node_modules/@wordpress/components/build-module/border-control/border-control-dropdown/component.js
 40004 /**
 40682 /**
 40005  * External dependencies
 40683  * External dependencies
 40006  */
 40684  */
 40007 
 40685 
 40008 /**
 40686 /**
 40009  * WordPress dependencies
 40687  * WordPress dependencies
 40010  */
 40688  */
 40011 
 40689 
 40012 
 40690 
 40013 
       
 40014 /**
 40691 /**
 40015  * Internal dependencies
 40692  * Internal dependencies
 40016  */
 40693  */
 40017 
       
 40018 
       
 40019 
       
 40020 
       
 40021 
 40694 
 40022 
 40695 
 40023 
 40696 
 40024 
 40697 
 40025 
 40698 
 40056 const getToggleAriaLabel = (colorValue, colorObject, style, isStyleEnabled) => {
 40729 const getToggleAriaLabel = (colorValue, colorObject, style, isStyleEnabled) => {
 40057   if (isStyleEnabled) {
 40730   if (isStyleEnabled) {
 40058     if (colorObject) {
 40731     if (colorObject) {
 40059       const ariaLabelValue = getAriaLabelColorValue(colorObject.color);
 40732       const ariaLabelValue = getAriaLabelColorValue(colorObject.color);
 40060       return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
 40733       return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
 40061       // translators: %1$s: The name of the color e.g. "vivid red". %2$s: The color's hex code e.g.: "#f00:". %3$s: The current border style selection e.g. "solid".
 40734       // translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g.: "#f00:". 3: The current border style selection e.g. "solid".
 40062       'Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".', colorObject.name, ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
 40735       (0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".'), colorObject.name, ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
 40063       // translators: %1$s: The name of the color e.g. "vivid red". %2$s: The color's hex code e.g.: "#f00:".
 40736       // translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g.: "#f00:".
 40064       'Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".', colorObject.name, ariaLabelValue);
 40737       (0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), colorObject.name, ariaLabelValue);
 40065     }
 40738     }
 40066     if (colorValue) {
 40739     if (colorValue) {
 40067       const ariaLabelValue = getAriaLabelColorValue(colorValue);
 40740       const ariaLabelValue = getAriaLabelColorValue(colorValue);
 40068       return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
 40741       return style ? (0,external_wp_i18n_namespaceObject.sprintf)(
 40069       // translators: %1$s: The color's hex code e.g.: "#f00:". %2$s: The current border style selection e.g. "solid".
 40742       // translators: 1: The color's hex code e.g.: "#f00:". 2: The current border style selection e.g. "solid".
 40070       'Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".', ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
 40743       (0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".'), ariaLabelValue, style) : (0,external_wp_i18n_namespaceObject.sprintf)(
 40071       // translators: %1$s: The color's hex code e.g: "#f00".
 40744       // translators: %s: The color's hex code e.g: "#f00".
 40072       'Border color and style picker. The currently selected color has a value of "%1$s".', ariaLabelValue);
 40745       (0,external_wp_i18n_namespaceObject.__)('Border color and style picker. The currently selected color has a value of "%s".'), ariaLabelValue);
 40073     }
 40746     }
 40074     return (0,external_wp_i18n_namespaceObject.__)('Border color and style picker.');
 40747     return (0,external_wp_i18n_namespaceObject.__)('Border color and style picker.');
 40075   }
 40748   }
 40076   if (colorObject) {
 40749   if (colorObject) {
 40077     return (0,external_wp_i18n_namespaceObject.sprintf)(
 40750     return (0,external_wp_i18n_namespaceObject.sprintf)(
 40078     // translators: %1$s: The name of the color e.g. "vivid red". %2$s: The color's hex code e.g: "#f00".
 40751     // translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g: "#f00".
 40079     'Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".', colorObject.name, getAriaLabelColorValue(colorObject.color));
 40752     (0,external_wp_i18n_namespaceObject.__)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'), colorObject.name, getAriaLabelColorValue(colorObject.color));
 40080   }
 40753   }
 40081   if (colorValue) {
 40754   if (colorValue) {
 40082     return (0,external_wp_i18n_namespaceObject.sprintf)(
 40755     return (0,external_wp_i18n_namespaceObject.sprintf)(
 40083     // translators: %1$s: The color's hex code e.g: "#f00".
 40756     // translators: %s: The color's hex code e.g: "#f00".
 40084     'Border color picker. The currently selected color has a value of "%1$s".', getAriaLabelColorValue(colorValue));
 40757     (0,external_wp_i18n_namespaceObject.__)('Border color picker. The currently selected color has a value of "%s".'), getAriaLabelColorValue(colorValue));
 40085   }
 40758   }
 40086   return (0,external_wp_i18n_namespaceObject.__)('Border color picker.');
 40759   return (0,external_wp_i18n_namespaceObject.__)('Border color picker.');
 40087 };
 40760 };
 40088 const BorderControlDropdown = (props, forwardedRef) => {
 40761 const BorderControlDropdown = (props, forwardedRef) => {
 40089   const {
 40762   const {
 40099     onReset,
 40772     onReset,
 40100     onColorChange,
 40773     onColorChange,
 40101     onStyleChange,
 40774     onStyleChange,
 40102     popoverContentClassName,
 40775     popoverContentClassName,
 40103     popoverControlsClassName,
 40776     popoverControlsClassName,
 40104     resetButtonClassName,
 40777     resetButtonWrapperClassName,
 40105     showDropdownHeader,
       
 40106     size,
 40778     size,
 40107     __unstablePopoverProps,
 40779     __unstablePopoverProps,
 40108     ...otherProps
 40780     ...otherProps
 40109   } = useBorderControlDropdown(props);
 40781   } = useBorderControlDropdown(props);
 40110   const {
 40782   const {
 40111     color,
 40783     color,
 40112     style
 40784     style
 40113   } = border || {};
 40785   } = border || {};
 40114   const colorObject = getColorObject(color, colors);
 40786   const colorObject = getColorObject(color, colors);
 40115   const toggleAriaLabel = getToggleAriaLabel(color, colorObject, style, enableStyle);
 40787   const toggleAriaLabel = getToggleAriaLabel(color, colorObject, style, enableStyle);
 40116   const showResetButton = color || style && style !== 'none';
 40788   const enableResetButton = color || style && style !== 'none';
 40117   const dropdownPosition = __experimentalIsRenderedInSidebar ? 'bottom left' : undefined;
 40789   const dropdownPosition = __experimentalIsRenderedInSidebar ? 'bottom left' : undefined;
 40118   const renderToggle = ({
 40790   const renderToggle = ({
 40119     onToggle
 40791     onToggle
 40120   }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 40792   }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 40121     onClick: onToggle,
 40793     onClick: onToggle,
 40122     variant: "tertiary",
 40794     variant: "tertiary",
 40123     "aria-label": toggleAriaLabel,
 40795     "aria-label": toggleAriaLabel,
 40124     tooltipPosition: dropdownPosition,
 40796     tooltipPosition: dropdownPosition,
 40125     label: (0,external_wp_i18n_namespaceObject.__)('Border color and style picker'),
 40797     label: (0,external_wp_i18n_namespaceObject.__)('Border color and style picker'),
 40126     showTooltip: true,
 40798     showTooltip: true,
 40127     __next40pxDefaultSize: size === '__unstable-large' ? true : false,
 40799     __next40pxDefaultSize: size === '__unstable-large',
 40128     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 40800     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 40129       className: indicatorWrapperClassName,
 40801       className: indicatorWrapperClassName,
 40130       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator, {
 40802       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator, {
 40131         className: indicatorClassName,
 40803         className: indicatorClassName,
 40132         colorValue: color
 40804         colorValue: color
 40133       })
 40805       })
 40134     })
 40806     })
 40135   });
 40807   });
 40136   const renderContent = ({
 40808   const renderContent = () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 40137     onClose
 40809     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(dropdown_content_wrapper, {
 40138   }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 40139     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_content_wrapper, {
       
 40140       paddingSize: "medium",
 40810       paddingSize: "medium",
 40141       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 40811       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 40142         className: popoverControlsClassName,
 40812         className: popoverControlsClassName,
 40143         spacing: 6,
 40813         spacing: 6,
 40144         children: [showDropdownHeader ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 40814         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_palette, {
 40145           children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
       
 40146             children: (0,external_wp_i18n_namespaceObject.__)('Border color')
       
 40147           }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 40148             size: "small",
       
 40149             label: (0,external_wp_i18n_namespaceObject.__)('Close border color'),
       
 40150             icon: close_small,
       
 40151             onClick: onClose
       
 40152           })]
       
 40153         }) : undefined, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_palette, {
       
 40154           className: popoverContentClassName,
 40815           className: popoverContentClassName,
 40155           value: color,
 40816           value: color,
 40156           onChange: onColorChange,
 40817           onChange: onColorChange,
 40157           colors,
 40818           colors,
 40158           disableCustomColors,
 40819           disableCustomColors,
 40162         }), enableStyle && isStyleSettable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_style_picker_component, {
 40823         }), enableStyle && isStyleSettable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_style_picker_component, {
 40163           label: (0,external_wp_i18n_namespaceObject.__)('Style'),
 40824           label: (0,external_wp_i18n_namespaceObject.__)('Style'),
 40164           value: style,
 40825           value: style,
 40165           onChange: onStyleChange
 40826           onChange: onStyleChange
 40166         })]
 40827         })]
 40167       })
 40828       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 40168     }), showResetButton && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_content_wrapper, {
 40829         className: resetButtonWrapperClassName,
 40169       paddingSize: "none",
 40830         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 40170       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 40831           variant: "tertiary",
 40171         className: resetButtonClassName,
 40832           onClick: () => {
 40172         variant: "tertiary",
 40833             onReset();
 40173         onClick: () => {
 40834           },
 40174           onReset();
 40835           disabled: !enableResetButton,
 40175           onClose();
 40836           accessibleWhenDisabled: true,
 40176         },
 40837           __next40pxDefaultSize: true,
 40177         children: (0,external_wp_i18n_namespaceObject.__)('Reset')
 40838           children: (0,external_wp_i18n_namespaceObject.__)('Reset')
 40178       })
 40839         })
 40179     })]
 40840       })]
       
 40841     })
 40180   });
 40842   });
 40181   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown, {
 40843   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown, {
 40182     renderToggle: renderToggle,
 40844     renderToggle: renderToggle,
 40183     renderContent: renderContent,
 40845     renderContent: renderContent,
 40184     popoverProps: {
 40846     popoverProps: {
 40189   });
 40851   });
 40190 };
 40852 };
 40191 const ConnectedBorderControlDropdown = contextConnect(BorderControlDropdown, 'BorderControlDropdown');
 40853 const ConnectedBorderControlDropdown = contextConnect(BorderControlDropdown, 'BorderControlDropdown');
 40192 /* harmony default export */ const border_control_dropdown_component = (ConnectedBorderControlDropdown);
 40854 /* harmony default export */ const border_control_dropdown_component = (ConnectedBorderControlDropdown);
 40193 
 40855 
 40194 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/unit-select-control.js
 40856 ;// ./node_modules/@wordpress/components/build-module/unit-control/unit-select-control.js
 40195 /**
 40857 /**
 40196  * External dependencies
 40858  * External dependencies
 40197  */
 40859  */
 40198 
 40860 
 40199 /**
 40861 /**
 40249     }, option.value))
 40911     }, option.value))
 40250   });
 40912   });
 40251 }
 40913 }
 40252 /* harmony default export */ const unit_select_control = ((0,external_wp_element_namespaceObject.forwardRef)(UnitSelectControl));
 40914 /* harmony default export */ const unit_select_control = ((0,external_wp_element_namespaceObject.forwardRef)(UnitSelectControl));
 40253 
 40915 
 40254 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/unit-control/index.js
 40916 ;// ./node_modules/@wordpress/components/build-module/unit-control/index.js
 40255 /**
 40917 /**
 40256  * External dependencies
 40918  * External dependencies
 40257  */
 40919  */
 40258 
 40920 
 40259 
 40921 
 40266 
 40928 
 40267 
 40929 
 40268 /**
 40930 /**
 40269  * Internal dependencies
 40931  * Internal dependencies
 40270  */
 40932  */
       
 40933 
 40271 
 40934 
 40272 
 40935 
 40273 
 40936 
 40274 
 40937 
 40275 
 40938 
 40294     size = 'default',
 40957     size = 'default',
 40295     unit: unitProp,
 40958     unit: unitProp,
 40296     units: unitsProp = CSS_UNITS,
 40959     units: unitsProp = CSS_UNITS,
 40297     value: valueProp,
 40960     value: valueProp,
 40298     onFocus: onFocusProp,
 40961     onFocus: onFocusProp,
       
 40962     __shouldNotWarnDeprecated36pxSize,
 40299     ...props
 40963     ...props
 40300   } = useDeprecated36pxDefaultSizeProp(unitControlProps);
 40964   } = useDeprecated36pxDefaultSizeProp(unitControlProps);
       
 40965   maybeWarnDeprecated36pxSize({
       
 40966     componentName: 'UnitControl',
       
 40967     __next40pxDefaultSize: props.__next40pxDefaultSize,
       
 40968     size,
       
 40969     __shouldNotWarnDeprecated36pxSize
       
 40970   });
 40301   if ('unit' in unitControlProps) {
 40971   if ('unit' in unitControlProps) {
 40302     external_wp_deprecated_default()('UnitControl unit prop', {
 40972     external_wp_deprecated_default()('UnitControl unit prop', {
 40303       since: '5.6',
 40973       since: '5.6',
 40304       hint: 'The unit should be provided within the `value` prop.',
 40974       hint: 'The unit should be provided within the `value` prop.',
 40305       version: '6.2'
 40975       version: '6.2'
 40364   };
 41034   };
 40365   let handleOnKeyDown;
 41035   let handleOnKeyDown;
 40366   if (!disableUnits && isUnitSelectTabbable && units.length) {
 41036   if (!disableUnits && isUnitSelectTabbable && units.length) {
 40367     handleOnKeyDown = event => {
 41037     handleOnKeyDown = event => {
 40368       props.onKeyDown?.(event);
 41038       props.onKeyDown?.(event);
 40369       // Unless the meta key was pressed (to avoid interfering with
 41039       // Unless the meta or ctrl key was pressed (to avoid interfering with
 40370       // shortcuts, e.g. pastes), moves focus to the unit select if a key
 41040       // shortcuts, e.g. pastes), move focus to the unit select if a key
 40371       // matches the first character of a unit.
 41041       // matches the first character of a unit.
 40372       if (!event.metaKey && reFirstCharacterOfUnits.test(event.key)) {
 41042       if (!event.metaKey && !event.ctrlKey && reFirstCharacterOfUnits.test(event.key)) {
 40373         refInputSuffix.current?.focus();
 41043         refInputSuffix.current?.focus();
 40374       }
 41044       }
 40375     };
 41045     };
 40376   }
 41046   }
 40377   const refInputSuffix = (0,external_wp_element_namespaceObject.useRef)(null);
 41047   const refInputSuffix = (0,external_wp_element_namespaceObject.useRef)(null);
 40398     const activeUnit = units.find(option => option.value === unit);
 41068     const activeUnit = units.find(option => option.value === unit);
 40399     step = (_activeUnit$step = activeUnit?.step) !== null && _activeUnit$step !== void 0 ? _activeUnit$step : 1;
 41069     step = (_activeUnit$step = activeUnit?.step) !== null && _activeUnit$step !== void 0 ? _activeUnit$step : 1;
 40400   }
 41070   }
 40401   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ValueInput, {
 41071   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ValueInput, {
 40402     ...props,
 41072     ...props,
       
 41073     __shouldNotWarnDeprecated36pxSize: true,
 40403     autoComplete: autoComplete,
 41074     autoComplete: autoComplete,
 40404     className: classes,
 41075     className: classes,
 40405     disabled: disabled,
 41076     disabled: disabled,
 40406     spinControls: "none",
 41077     spinControls: "none",
 40407     isPressEnterToChange: isPressEnterToChange,
 41078     isPressEnterToChange: isPressEnterToChange,
 40428  * import { useState } from '@wordpress/element';
 41099  * import { useState } from '@wordpress/element';
 40429  *
 41100  *
 40430  * const Example = () => {
 41101  * const Example = () => {
 40431  *   const [ value, setValue ] = useState( '10px' );
 41102  *   const [ value, setValue ] = useState( '10px' );
 40432  *
 41103  *
 40433  *   return <UnitControl onChange={ setValue } value={ value } />;
 41104  *   return <UnitControl __next40pxDefaultSize onChange={ setValue } value={ value } />;
 40434  * };
 41105  * };
 40435  * ```
 41106  * ```
 40436  */
 41107  */
 40437 const UnitControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedUnitControl);
 41108 const UnitControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedUnitControl);
 40438 
 41109 
 40439 /* harmony default export */ const unit_control = (UnitControl);
 41110 /* harmony default export */ const unit_control = (UnitControl);
 40440 
 41111 
 40441 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control/hook.js
 41112 ;// ./node_modules/@wordpress/components/build-module/border-control/border-control/hook.js
 40442 /**
 41113 /**
 40443  * WordPress dependencies
 41114  * WordPress dependencies
 40444  */
 41115  */
 40445 
 41116 
 40446 
 41117 
 40447 /**
 41118 /**
 40448  * Internal dependencies
 41119  * Internal dependencies
 40449  */
 41120  */
       
 41121 
       
 41122 
 40450 
 41123 
 40451 
 41124 
 40452 
 41125 
 40453 
 41126 
 40454 // If either width or color are defined, the border is considered valid
 41127 // If either width or color are defined, the border is considered valid
 40470     size = 'default',
 41143     size = 'default',
 40471     value: border,
 41144     value: border,
 40472     width,
 41145     width,
 40473     __experimentalIsRenderedInSidebar = false,
 41146     __experimentalIsRenderedInSidebar = false,
 40474     __next40pxDefaultSize,
 41147     __next40pxDefaultSize,
       
 41148     __shouldNotWarnDeprecated36pxSize,
 40475     ...otherProps
 41149     ...otherProps
 40476   } = useContextSystem(props, 'BorderControl');
 41150   } = useContextSystem(props, 'BorderControl');
       
 41151   maybeWarnDeprecated36pxSize({
       
 41152     componentName: 'BorderControl',
       
 41153     __next40pxDefaultSize,
       
 41154     size,
       
 41155     __shouldNotWarnDeprecated36pxSize
       
 41156   });
 40477   const computedSize = size === 'default' && __next40pxDefaultSize ? '__unstable-large' : size;
 41157   const computedSize = size === 'default' && __next40pxDefaultSize ? '__unstable-large' : size;
 40478   const [widthValue, originalWidthUnit] = parseQuantityAndUnitFromRawValue(border?.width);
 41158   const [widthValue, originalWidthUnit] = parseQuantityAndUnitFromRawValue(border?.width);
 40479   const widthUnit = originalWidthUnit || 'px';
 41159   const widthUnit = originalWidthUnit || 'px';
 40480   const hadPreviousZeroWidth = widthValue === 0;
 41160   const hadPreviousZeroWidth = widthValue === 0;
 40481   const [colorSelection, setColorSelection] = (0,external_wp_element_namespaceObject.useState)();
 41161   const [colorSelection, setColorSelection] = (0,external_wp_element_namespaceObject.useState)();
 40568     __experimentalIsRenderedInSidebar,
 41248     __experimentalIsRenderedInSidebar,
 40569     __next40pxDefaultSize
 41249     __next40pxDefaultSize
 40570   };
 41250   };
 40571 }
 41251 }
 40572 
 41252 
 40573 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-control/border-control/component.js
 41253 ;// ./node_modules/@wordpress/components/build-module/border-control/border-control/component.js
 40574 /**
 41254 /**
 40575  * WordPress dependencies
 41255  * WordPress dependencies
 40576  */
 41256  */
 40577 
 41257 
 40578 
 41258 
 40644       hideLabelFromVision: hideLabelFromVision
 41324       hideLabelFromVision: hideLabelFromVision
 40645     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 41325     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 40646       spacing: 4,
 41326       spacing: 4,
 40647       className: innerWrapperClassName,
 41327       className: innerWrapperClassName,
 40648       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(unit_control, {
 41328       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(unit_control, {
 40649         prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_dropdown_component, {
 41329         __next40pxDefaultSize: __next40pxDefaultSize,
 40650           border: border,
 41330         __shouldNotWarnDeprecated36pxSize: true,
 40651           colors: colors,
 41331         prefix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 40652           __unstablePopoverProps: __unstablePopoverProps,
 41332           marginRight: 1,
 40653           disableCustomColors: disableCustomColors,
 41333           marginBottom: 0,
 40654           enableAlpha: enableAlpha,
 41334           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_dropdown_component, {
 40655           enableStyle: enableStyle,
 41335             border: border,
 40656           isStyleSettable: isStyleSettable,
 41336             colors: colors,
 40657           onChange: onBorderChange,
 41337             __unstablePopoverProps: __unstablePopoverProps,
 40658           previousStyleSelection: previousStyleSelection,
 41338             disableCustomColors: disableCustomColors,
 40659           showDropdownHeader: showDropdownHeader,
 41339             enableAlpha: enableAlpha,
 40660           __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
 41340             enableStyle: enableStyle,
 40661           size: size
 41341             isStyleSettable: isStyleSettable,
       
 41342             onChange: onBorderChange,
       
 41343             previousStyleSelection: previousStyleSelection,
       
 41344             __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
       
 41345             size: size
       
 41346           })
 40662         }),
 41347         }),
 40663         label: (0,external_wp_i18n_namespaceObject.__)('Border width'),
 41348         label: (0,external_wp_i18n_namespaceObject.__)('Border width'),
 40664         hideLabelFromVision: true,
 41349         hideLabelFromVision: true,
 40665         min: 0,
 41350         min: 0,
 40666         onChange: onWidthChange,
 41351         onChange: onWidthChange,
 40679         min: 0,
 41364         min: 0,
 40680         onChange: onSliderChange,
 41365         onChange: onSliderChange,
 40681         step: ['px', '%'].includes(widthUnit) ? 1 : 0.1,
 41366         step: ['px', '%'].includes(widthUnit) ? 1 : 0.1,
 40682         value: widthValue || undefined,
 41367         value: widthValue || undefined,
 40683         withInputField: false,
 41368         withInputField: false,
 40684         __next40pxDefaultSize: __next40pxDefaultSize
 41369         __next40pxDefaultSize: __next40pxDefaultSize,
       
 41370         __shouldNotWarnDeprecated36pxSize: true
 40685       })]
 41371       })]
 40686     })]
 41372     })]
 40687   });
 41373   });
 40688 };
 41374 };
 40689 
 41375 
 40696  * Border radius is not covered by this control as it may be desired separate to
 41382  * Border radius is not covered by this control as it may be desired separate to
 40697  * color, style, and width. For example, the border radius may be absorbed under
 41383  * color, style, and width. For example, the border radius may be absorbed under
 40698  * a "shape" abstraction.
 41384  * a "shape" abstraction.
 40699  *
 41385  *
 40700  * ```jsx
 41386  * ```jsx
 40701  * import { __experimentalBorderControl as BorderControl } from '@wordpress/components';
 41387  * import { BorderControl } from '@wordpress/components';
 40702  * import { __ } from '@wordpress/i18n';
 41388  * import { __ } from '@wordpress/i18n';
 40703  *
 41389  *
 40704  * const colors = [
 41390  * const colors = [
 40705  * 	{ name: 'Blue 20', color: '#72aee6' },
 41391  * 	{ name: 'Blue 20', color: '#72aee6' },
 40706  * 	// ...
 41392  * 	// ...
 40710  * 	const [ border, setBorder ] = useState();
 41396  * 	const [ border, setBorder ] = useState();
 40711  * 	const onChange = ( newBorder ) => setBorder( newBorder );
 41397  * 	const onChange = ( newBorder ) => setBorder( newBorder );
 40712  *
 41398  *
 40713  * 	return (
 41399  * 	return (
 40714  * 		<BorderControl
 41400  * 		<BorderControl
       
 41401  * 			__next40pxDefaultSize
 40715  * 			colors={ colors }
 41402  * 			colors={ colors }
 40716  * 			label={ __( 'Border' ) }
 41403  * 			label={ __( 'Border' ) }
 40717  * 			onChange={ onChange }
 41404  * 			onChange={ onChange }
 40718  * 			value={ border }
 41405  * 			value={ border }
 40719  * 		/>
 41406  * 		/>
 40722  * ```
 41409  * ```
 40723  */
 41410  */
 40724 const BorderControl = contextConnect(UnconnectedBorderControl, 'BorderControl');
 41411 const BorderControl = contextConnect(UnconnectedBorderControl, 'BorderControl');
 40725 /* harmony default export */ const border_control_component = (BorderControl);
 41412 /* harmony default export */ const border_control_component = (BorderControl);
 40726 
 41413 
 40727 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/grid/utils.js
 41414 ;// ./node_modules/@wordpress/components/build-module/grid/utils.js
 40728 /**
 41415 /**
 40729  * External dependencies
 41416  * External dependencies
 40730  */
 41417  */
 40731 
 41418 
 40732 const utils_ALIGNMENTS = {
 41419 const utils_ALIGNMENTS = {
 40777 function utils_getAlignmentProps(alignment) {
 41464 function utils_getAlignmentProps(alignment) {
 40778   const alignmentProps = alignment ? utils_ALIGNMENTS[alignment] : {};
 41465   const alignmentProps = alignment ? utils_ALIGNMENTS[alignment] : {};
 40779   return alignmentProps;
 41466   return alignmentProps;
 40780 }
 41467 }
 40781 
 41468 
 40782 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/grid/hook.js
 41469 ;// ./node_modules/@wordpress/components/build-module/grid/hook.js
 40783 /**
 41470 /**
 40784  * External dependencies
 41471  * External dependencies
 40785  */
 41472  */
 40786 
 41473 
 40787 
 41474 
 40842     ...otherProps,
 41529     ...otherProps,
 40843     className: classes
 41530     className: classes
 40844   };
 41531   };
 40845 }
 41532 }
 40846 
 41533 
 40847 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/grid/component.js
 41534 ;// ./node_modules/@wordpress/components/build-module/grid/component.js
 40848 /**
 41535 /**
 40849  * External dependencies
 41536  * External dependencies
 40850  */
 41537  */
 40851 
 41538 
 40852 /**
 41539 /**
 40886  * ```
 41573  * ```
 40887  */
 41574  */
 40888 const Grid = contextConnect(UnconnectedGrid, 'Grid');
 41575 const Grid = contextConnect(UnconnectedGrid, 'Grid');
 40889 /* harmony default export */ const grid_component = (Grid);
 41576 /* harmony default export */ const grid_component = (Grid);
 40890 
 41577 
 40891 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-split-controls/hook.js
 41578 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-split-controls/hook.js
 40892 /**
 41579 /**
 40893  * WordPress dependencies
 41580  * WordPress dependencies
 40894  */
 41581  */
 40895 
 41582 
 40896 
 41583 
 40933     size,
 41620     size,
 40934     __experimentalIsRenderedInSidebar
 41621     __experimentalIsRenderedInSidebar
 40935   };
 41622   };
 40936 }
 41623 }
 40937 
 41624 
 40938 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-split-controls/component.js
 41625 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control-split-controls/component.js
 40939 /**
 41626 /**
 40940  * WordPress dependencies
 41627  * WordPress dependencies
 40941  */
 41628  */
 40942 
 41629 
 40943 
 41630 
 40944 
 41631 
 40945 
 41632 
 40946 /**
 41633 /**
 40947  * Internal dependencies
 41634  * Internal dependencies
 40948  */
 41635  */
 40949 
       
 40950 
 41636 
 40951 
 41637 
 40952 
 41638 
 40953 
 41639 
 40954 
 41640 
 40986     disableCustomColors,
 41672     disableCustomColors,
 40987     enableAlpha,
 41673     enableAlpha,
 40988     enableStyle,
 41674     enableStyle,
 40989     isCompact: true,
 41675     isCompact: true,
 40990     __experimentalIsRenderedInSidebar,
 41676     __experimentalIsRenderedInSidebar,
 40991     size
 41677     size,
       
 41678     __shouldNotWarnDeprecated36pxSize: true
 40992   };
 41679   };
 40993   const mergedRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, forwardedRef]);
 41680   const mergedRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, forwardedRef]);
 40994   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(grid_component, {
 41681   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(grid_component, {
 40995     ...otherProps,
 41682     ...otherProps,
 40996     ref: mergedRef,
 41683     ref: mergedRef,
 40997     gap: 4,
 41684     gap: 3,
 40998     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_box_control_visualizer_component, {
 41685     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_box_control_visualizer_component, {
 40999       value: value,
 41686       value: value,
 41000       size: size
 41687       size: size
 41001     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_component, {
 41688     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_control_component, {
 41002       className: centeredClassName,
 41689       className: centeredClassName,
 41033   });
 41720   });
 41034 };
 41721 };
 41035 const ConnectedBorderBoxControlSplitControls = contextConnect(BorderBoxControlSplitControls, 'BorderBoxControlSplitControls');
 41722 const ConnectedBorderBoxControlSplitControls = contextConnect(BorderBoxControlSplitControls, 'BorderBoxControlSplitControls');
 41036 /* harmony default export */ const border_box_control_split_controls_component = (ConnectedBorderBoxControlSplitControls);
 41723 /* harmony default export */ const border_box_control_split_controls_component = (ConnectedBorderBoxControlSplitControls);
 41037 
 41724 
 41038 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/unit-values.js
 41725 ;// ./node_modules/@wordpress/components/build-module/utils/unit-values.js
 41039 const UNITED_VALUE_REGEX = /^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;
 41726 const UNITED_VALUE_REGEX = /^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;
 41040 
 41727 
 41041 /**
 41728 /**
 41042  * Parses a number and unit from a value.
 41729  * Parses a number and unit from a value.
 41043  *
 41730  *
 41067  */
 41754  */
 41068 function createCSSUnitValue(value, unit) {
 41755 function createCSSUnitValue(value, unit) {
 41069   return `${value}${unit}`;
 41756   return `${value}${unit}`;
 41070 }
 41757 }
 41071 
 41758 
 41072 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/utils.js
 41759 ;// ./node_modules/@wordpress/components/build-module/border-box-control/utils.js
 41073 /**
 41760 /**
 41074  * External dependencies
 41761  * External dependencies
 41075  */
 41762  */
 41076 
 41763 
 41077 /**
 41764 /**
 41216     }
 41903     }
 41217   });
 41904   });
 41218   return currentMode;
 41905   return currentMode;
 41219 }
 41906 }
 41220 
 41907 
 41221 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control/hook.js
 41908 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control/hook.js
 41222 /**
 41909 /**
 41223  * WordPress dependencies
 41910  * WordPress dependencies
 41224  */
 41911  */
 41225 
 41912 
 41226 
 41913 
 41227 /**
 41914 /**
 41228  * Internal dependencies
 41915  * Internal dependencies
 41229  */
 41916  */
       
 41917 
 41230 
 41918 
 41231 
 41919 
 41232 
 41920 
 41233 
 41921 
 41234 function useBorderBoxControl(props) {
 41922 function useBorderBoxControl(props) {
 41242     value,
 41930     value,
 41243     __experimentalIsRenderedInSidebar = false,
 41931     __experimentalIsRenderedInSidebar = false,
 41244     __next40pxDefaultSize,
 41932     __next40pxDefaultSize,
 41245     ...otherProps
 41933     ...otherProps
 41246   } = useContextSystem(props, 'BorderBoxControl');
 41934   } = useContextSystem(props, 'BorderBoxControl');
       
 41935   maybeWarnDeprecated36pxSize({
       
 41936     componentName: 'BorderBoxControl',
       
 41937     __next40pxDefaultSize,
       
 41938     size
       
 41939   });
 41247   const computedSize = size === 'default' && __next40pxDefaultSize ? '__unstable-large' : size;
 41940   const computedSize = size === 'default' && __next40pxDefaultSize ? '__unstable-large' : size;
 41248   const mixedBorders = hasMixedBorders(value);
 41941   const mixedBorders = hasMixedBorders(value);
 41249   const splitBorders = hasSplitBorders(value);
 41942   const splitBorders = hasSplitBorders(value);
 41250   const linkedValue = splitBorders ? getCommonBorder(value) : value;
 41943   const linkedValue = splitBorders ? getCommonBorder(value) : value;
 41251   const splitValue = splitBorders ? value : getSplitBorders(value);
 41944   const splitValue = splitBorders ? value : getSplitBorders(value);
 41333     wrapperClassName,
 42026     wrapperClassName,
 41334     __experimentalIsRenderedInSidebar
 42027     __experimentalIsRenderedInSidebar
 41335   };
 42028   };
 41336 }
 42029 }
 41337 
 42030 
 41338 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control/component.js
 42031 ;// ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control/component.js
 41339 /**
 42032 /**
 41340  * WordPress dependencies
 42033  * WordPress dependencies
 41341  */
 42034  */
 41342 
 42035 
 41343 
 42036 
 41344 
 42037 
 41345 
 42038 
 41346 /**
 42039 /**
 41347  * Internal dependencies
 42040  * Internal dependencies
 41348  */
 42041  */
 41349 
       
 41350 
 42042 
 41351 
 42043 
 41352 
 42044 
 41353 
 42045 
 41354 
 42046 
 41432         ,
 42124         ,
 41433         value: linkedValue,
 42125         value: linkedValue,
 41434         withSlider: true,
 42126         withSlider: true,
 41435         width: size === '__unstable-large' ? '116px' : '110px',
 42127         width: size === '__unstable-large' ? '116px' : '110px',
 41436         __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
 42128         __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
       
 42129         __shouldNotWarnDeprecated36pxSize: true,
 41437         size: size
 42130         size: size
 41438       }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_box_control_split_controls_component, {
 42131       }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(border_box_control_split_controls_component, {
 41439         colors: colors,
 42132         colors: colors,
 41440         disableCustomColors: disableCustomColors,
 42133         disableCustomColors: disableCustomColors,
 41441         enableAlpha: enableAlpha,
 42134         enableAlpha: enableAlpha,
 41454     })]
 42147     })]
 41455   });
 42148   });
 41456 };
 42149 };
 41457 
 42150 
 41458 /**
 42151 /**
 41459  * The `BorderBoxControl` effectively has two view states. The first, a "linked"
 42152  * An input control for the color, style, and width of the border of a box. The
 41460  * view, allows configuration of a flat border via a single `BorderControl`.
 42153  * border can be customized as a whole, or individually for each side of the box.
 41461  * The second, a "split" view, contains a `BorderControl` for each side
       
 41462  * as well as a visualizer for the currently selected borders. Each view also
       
 41463  * contains a button to toggle between the two.
       
 41464  *
       
 41465  * When switching from the "split" view to "linked", if the individual side
       
 41466  * borders are not consistent, the "linked" view will display any border
       
 41467  * properties selections that are consistent while showing a mixed state for
       
 41468  * those that aren't. For example, if all borders had the same color and style
       
 41469  * but different widths, then the border dropdown in the "linked" view's
       
 41470  * `BorderControl` would show that consistent color and style but the "linked"
       
 41471  * view's width input would show "Mixed" placeholder text.
       
 41472  *
 42154  *
 41473  * ```jsx
 42155  * ```jsx
 41474  * import { __experimentalBorderBoxControl as BorderBoxControl } from '@wordpress/components';
 42156  * import { BorderBoxControl } from '@wordpress/components';
 41475  * import { __ } from '@wordpress/i18n';
 42157  * import { __ } from '@wordpress/i18n';
 41476  *
 42158  *
 41477  * const colors = [
 42159  * const colors = [
 41478  * 	{ name: 'Blue 20', color: '#72aee6' },
 42160  * 	{ name: 'Blue 20', color: '#72aee6' },
 41479  * 	// ...
 42161  * 	// ...
 41493  * 	} );
 42175  * 	} );
 41494  * 	const onChange = ( newBorders ) => setBorders( newBorders );
 42176  * 	const onChange = ( newBorders ) => setBorders( newBorders );
 41495  *
 42177  *
 41496  * 	return (
 42178  * 	return (
 41497  * 		<BorderBoxControl
 42179  * 		<BorderBoxControl
       
 42180  * 			__next40pxDefaultSize
 41498  * 			colors={ colors }
 42181  * 			colors={ colors }
 41499  * 			label={ __( 'Borders' ) }
 42182  * 			label={ __( 'Borders' ) }
 41500  * 			onChange={ onChange }
 42183  * 			onChange={ onChange }
 41501  * 			value={ borders }
 42184  * 			value={ borders }
 41502  * 		/>
 42185  * 		/>
 41505  * ```
 42188  * ```
 41506  */
 42189  */
 41507 const BorderBoxControl = contextConnect(UnconnectedBorderBoxControl, 'BorderBoxControl');
 42190 const BorderBoxControl = contextConnect(UnconnectedBorderBoxControl, 'BorderBoxControl');
 41508 /* harmony default export */ const border_box_control_component = (BorderBoxControl);
 42191 /* harmony default export */ const border_box_control_component = (BorderBoxControl);
 41509 
 42192 
 41510 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-icon-styles.js
 42193 ;// ./node_modules/@wordpress/icons/build-module/library/settings.js
 41511 
 42194 /**
 41512 function box_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 42195  * WordPress dependencies
 41513 /**
 42196  */
 41514  * External dependencies
 42197 
 41515  */
 42198 
 41516 
 42199 const settings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
 41517 const box_control_icon_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 42200   xmlns: "http://www.w3.org/2000/svg",
 41518   target: "e1j5nr4z8"
 42201   viewBox: "0 0 24 24",
 41519 } : 0)( true ? {
 42202   children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
 41520   name: "1w884gc",
 42203     d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
 41521   styles: "box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"
 42204   }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
 41522 } : 0);
 42205     d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
 41523 const Viewbox = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 42206   })]
 41524   target: "e1j5nr4z7"
 42207 });
 41525 } : 0)( true ? {
 42208 /* harmony default export */ const library_settings = (settings);
 41526   name: "i6vjox",
 42209 
 41527   styles: "box-sizing:border-box;display:block;position:relative;width:100%;height:100%"
 42210 ;// ./node_modules/@wordpress/components/build-module/box-control/utils.js
 41528 } : 0);
 42211 /**
 41529 const strokeFocus = ({
 42212  * WordPress dependencies
 41530   isFocused
 42213  */
 41531 }) => {
 42214 
 41532   return /*#__PURE__*/emotion_react_browser_esm_css({
 42215 
 41533     backgroundColor: 'currentColor',
       
 41534     opacity: isFocused ? 1 : 0.3
       
 41535   },  true ? "" : 0,  true ? "" : 0);
       
 41536 };
       
 41537 const Stroke = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
       
 41538   target: "e1j5nr4z6"
       
 41539 } : 0)("box-sizing:border-box;display:block;pointer-events:none;position:absolute;", strokeFocus, ";" + ( true ? "" : 0));
       
 41540 const VerticalStroke = /*#__PURE__*/emotion_styled_base_browser_esm(Stroke,  true ? {
       
 41541   target: "e1j5nr4z5"
       
 41542 } : 0)( true ? {
       
 41543   name: "1k2w39q",
       
 41544   styles: "bottom:3px;top:3px;width:2px"
       
 41545 } : 0);
       
 41546 const HorizontalStroke = /*#__PURE__*/emotion_styled_base_browser_esm(Stroke,  true ? {
       
 41547   target: "e1j5nr4z4"
       
 41548 } : 0)( true ? {
       
 41549   name: "1q9b07k",
       
 41550   styles: "height:2px;left:3px;right:3px"
       
 41551 } : 0);
       
 41552 const TopStroke = /*#__PURE__*/emotion_styled_base_browser_esm(HorizontalStroke,  true ? {
       
 41553   target: "e1j5nr4z3"
       
 41554 } : 0)( true ? {
       
 41555   name: "abcix4",
       
 41556   styles: "top:0"
       
 41557 } : 0);
       
 41558 const RightStroke = /*#__PURE__*/emotion_styled_base_browser_esm(VerticalStroke,  true ? {
       
 41559   target: "e1j5nr4z2"
       
 41560 } : 0)( true ? {
       
 41561   name: "1wf8jf",
       
 41562   styles: "right:0"
       
 41563 } : 0);
       
 41564 const BottomStroke = /*#__PURE__*/emotion_styled_base_browser_esm(HorizontalStroke,  true ? {
       
 41565   target: "e1j5nr4z1"
       
 41566 } : 0)( true ? {
       
 41567   name: "8tapst",
       
 41568   styles: "bottom:0"
       
 41569 } : 0);
       
 41570 const LeftStroke = /*#__PURE__*/emotion_styled_base_browser_esm(VerticalStroke,  true ? {
       
 41571   target: "e1j5nr4z0"
       
 41572 } : 0)( true ? {
       
 41573   name: "1ode3cm",
       
 41574   styles: "left:0"
       
 41575 } : 0);
       
 41576 
       
 41577 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/icon.js
       
 41578 /**
 42216 /**
 41579  * Internal dependencies
 42217  * Internal dependencies
 41580  */
 42218  */
 41581 
 42219 
 41582 
       
 41583 
       
 41584 
       
 41585 const BASE_ICON_SIZE = 24;
       
 41586 function BoxControlIcon({
       
 41587   size = 24,
       
 41588   side = 'all',
       
 41589   sides,
       
 41590   ...props
       
 41591 }) {
       
 41592   const isSideDisabled = value => sides?.length && !sides.includes(value);
       
 41593   const hasSide = value => {
       
 41594     if (isSideDisabled(value)) {
       
 41595       return false;
       
 41596     }
       
 41597     return side === 'all' || side === value;
       
 41598   };
       
 41599   const top = hasSide('top') || hasSide('vertical');
       
 41600   const right = hasSide('right') || hasSide('horizontal');
       
 41601   const bottom = hasSide('bottom') || hasSide('vertical');
       
 41602   const left = hasSide('left') || hasSide('horizontal');
       
 41603 
       
 41604   // Simulates SVG Icon scaling.
       
 41605   const scale = size / BASE_ICON_SIZE;
       
 41606   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(box_control_icon_styles_Root, {
       
 41607     style: {
       
 41608       transform: `scale(${scale})`
       
 41609     },
       
 41610     ...props,
       
 41611     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Viewbox, {
       
 41612       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TopStroke, {
       
 41613         isFocused: top
       
 41614       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RightStroke, {
       
 41615         isFocused: right
       
 41616       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BottomStroke, {
       
 41617         isFocused: bottom
       
 41618       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LeftStroke, {
       
 41619         isFocused: left
       
 41620       })]
       
 41621     })
       
 41622   });
       
 41623 }
       
 41624 
       
 41625 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-styles.js
       
 41626 
       
 41627 function box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 41628 /**
       
 41629  * External dependencies
       
 41630  */
       
 41631 
       
 41632 /**
       
 41633  * Internal dependencies
       
 41634  */
       
 41635 
       
 41636 
       
 41637 
       
 41638 
       
 41639 
       
 41640 
       
 41641 const StyledUnitControl = /*#__PURE__*/emotion_styled_base_browser_esm(unit_control,  true ? {
       
 41642   target: "e1jovhle5"
       
 41643 } : 0)( true ? {
       
 41644   name: "1ejyr19",
       
 41645   styles: "max-width:90px"
       
 41646 } : 0);
       
 41647 const InputWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
       
 41648   target: "e1jovhle4"
       
 41649 } : 0)( true ? {
       
 41650   name: "1j1lmoi",
       
 41651   styles: "grid-column:1/span 3"
       
 41652 } : 0);
       
 41653 const ResetButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
       
 41654   target: "e1jovhle3"
       
 41655 } : 0)( true ? {
       
 41656   name: "tkya7b",
       
 41657   styles: "grid-area:1/2;justify-self:end"
       
 41658 } : 0);
       
 41659 const LinkedButtonWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 41660   target: "e1jovhle2"
       
 41661 } : 0)( true ? {
       
 41662   name: "1dfa8al",
       
 41663   styles: "grid-area:1/3;justify-self:end"
       
 41664 } : 0);
       
 41665 const FlexedBoxControlIcon = /*#__PURE__*/emotion_styled_base_browser_esm(BoxControlIcon,  true ? {
       
 41666   target: "e1jovhle1"
       
 41667 } : 0)( true ? {
       
 41668   name: "ou8xsw",
       
 41669   styles: "flex:0 0 auto"
       
 41670 } : 0);
       
 41671 const FlexedRangeControl = /*#__PURE__*/emotion_styled_base_browser_esm(range_control,  true ? {
       
 41672   target: "e1jovhle0"
       
 41673 } : 0)("width:100%;margin-inline-end:", space(2), ";" + ( true ? "" : 0));
       
 41674 
       
 41675 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/utils.js
       
 41676 /**
       
 41677  * WordPress dependencies
       
 41678  */
       
 41679 
       
 41680 
       
 41681 /**
       
 41682  * Internal dependencies
       
 41683  */
       
 41684 
 42220 
 41685 const CUSTOM_VALUE_SETTINGS = {
 42221 const CUSTOM_VALUE_SETTINGS = {
 41686   px: {
 42222   px: {
 41687     max: 300,
 42223     max: 300,
 41688     step: 1
 42224     step: 1
 41800   all: (0,external_wp_i18n_namespaceObject.__)('All sides'),
 42336   all: (0,external_wp_i18n_namespaceObject.__)('All sides'),
 41801   top: (0,external_wp_i18n_namespaceObject.__)('Top side'),
 42337   top: (0,external_wp_i18n_namespaceObject.__)('Top side'),
 41802   bottom: (0,external_wp_i18n_namespaceObject.__)('Bottom side'),
 42338   bottom: (0,external_wp_i18n_namespaceObject.__)('Bottom side'),
 41803   left: (0,external_wp_i18n_namespaceObject.__)('Left side'),
 42339   left: (0,external_wp_i18n_namespaceObject.__)('Left side'),
 41804   right: (0,external_wp_i18n_namespaceObject.__)('Right side'),
 42340   right: (0,external_wp_i18n_namespaceObject.__)('Right side'),
 41805   mixed: (0,external_wp_i18n_namespaceObject.__)('Mixed'),
       
 41806   vertical: (0,external_wp_i18n_namespaceObject.__)('Top and bottom sides'),
 42341   vertical: (0,external_wp_i18n_namespaceObject.__)('Top and bottom sides'),
 41807   horizontal: (0,external_wp_i18n_namespaceObject.__)('Left and right sides')
 42342   horizontal: (0,external_wp_i18n_namespaceObject.__)('Left and right sides')
 41808 };
 42343 };
 41809 const DEFAULT_VALUES = {
 42344 const DEFAULT_VALUES = {
 41810   top: undefined,
 42345   top: undefined,
 41824 function utils_mode(arr) {
 42359 function utils_mode(arr) {
 41825   return arr.sort((a, b) => arr.filter(v => v === a).length - arr.filter(v => v === b).length).pop();
 42360   return arr.sort((a, b) => arr.filter(v => v === a).length - arr.filter(v => v === b).length).pop();
 41826 }
 42361 }
 41827 
 42362 
 41828 /**
 42363 /**
 41829  * Gets the 'all' input value and unit from values data.
 42364  * Gets the merged input value and unit from values data.
 41830  *
 42365  *
 41831  * @param values         Box values.
 42366  * @param values         Box values.
 41832  * @param selectedUnits  Box units.
       
 41833  * @param availableSides Available box sides to evaluate.
 42367  * @param availableSides Available box sides to evaluate.
 41834  *
 42368  *
 41835  * @return A value + unit for the 'all' input.
 42369  * @return A value + unit for the 'all' input.
 41836  */
 42370  */
 41837 function getAllValue(values = {}, selectedUnits, availableSides = ALL_SIDES) {
 42371 function getMergedValue(values = {}, availableSides = ALL_SIDES) {
 41838   const sides = normalizeSides(availableSides);
 42372   const sides = normalizeSides(availableSides);
 41839   const parsedQuantitiesAndUnits = sides.map(side => parseQuantityAndUnitFromRawValue(values[side]));
 42373   if (sides.every(side => values[side] === values[sides[0]])) {
 41840   const allParsedQuantities = parsedQuantitiesAndUnits.map(value => {
 42374     return values[sides[0]];
 41841     var _value$;
 42375   }
 41842     return (_value$ = value[0]) !== null && _value$ !== void 0 ? _value$ : '';
 42376   return undefined;
 41843   });
 42377 }
 41844   const allParsedUnits = parsedQuantitiesAndUnits.map(value => value[1]);
 42378 
 41845   const commonQuantity = allParsedQuantities.every(v => v === allParsedQuantities[0]) ? allParsedQuantities[0] : '';
 42379 /**
 41846 
 42380  * Checks if the values are mixed.
 41847   /**
 42381  *
 41848    * The typeof === 'number' check is important. On reset actions, the incoming value
 42382  * @param values         Box values.
 41849    * may be null or an empty string.
 42383  * @param availableSides Available box sides to evaluate.
 41850    *
 42384  * @return Whether the values are mixed.
 41851    * Also, the value may also be zero (0), which is considered a valid unit value.
 42385  */
 41852    *
 42386 function isValueMixed(values = {}, availableSides = ALL_SIDES) {
 41853    * typeof === 'number' is more specific for these cases, rather than relying on a
 42387   const sides = normalizeSides(availableSides);
 41854    * simple truthy check.
 42388   return sides.some(side => values[side] !== values[sides[0]]);
 41855    */
       
 41856   let commonUnit;
       
 41857   if (typeof commonQuantity === 'number') {
       
 41858     commonUnit = utils_mode(allParsedUnits);
       
 41859   } else {
       
 41860     var _getAllUnitFallback;
       
 41861     // Set meaningful unit selection if no commonQuantity and user has previously
       
 41862     // selected units without assigning values while controls were unlinked.
       
 41863     commonUnit = (_getAllUnitFallback = getAllUnitFallback(selectedUnits)) !== null && _getAllUnitFallback !== void 0 ? _getAllUnitFallback : utils_mode(allParsedUnits);
       
 41864   }
       
 41865   return [commonQuantity, commonUnit].join('');
       
 41866 }
 42389 }
 41867 
 42390 
 41868 /**
 42391 /**
 41869  * Determine the most common unit selection to use as a fallback option.
 42392  * Determine the most common unit selection to use as a fallback option.
 41870  *
 42393  *
 41878   const filteredUnits = Object.values(selectedUnits).filter(Boolean);
 42401   const filteredUnits = Object.values(selectedUnits).filter(Boolean);
 41879   return utils_mode(filteredUnits);
 42402   return utils_mode(filteredUnits);
 41880 }
 42403 }
 41881 
 42404 
 41882 /**
 42405 /**
 41883  * Checks to determine if values are mixed.
       
 41884  *
       
 41885  * @param values        Box values.
       
 41886  * @param selectedUnits Box units.
       
 41887  * @param sides         Available box sides to evaluate.
       
 41888  *
       
 41889  * @return Whether values are mixed.
       
 41890  */
       
 41891 function isValuesMixed(values = {}, selectedUnits, sides = ALL_SIDES) {
       
 41892   const allValue = getAllValue(values, selectedUnits, sides);
       
 41893   const isMixed = isNaN(parseFloat(allValue));
       
 41894   return isMixed;
       
 41895 }
       
 41896 
       
 41897 /**
       
 41898  * Checks to determine if values are defined.
 42406  * Checks to determine if values are defined.
 41899  *
 42407  *
 41900  * @param values Box values.
 42408  * @param values Box values.
 41901  *
 42409  *
 41902  * @return  Whether values are mixed.
 42410  * @return  Whether values are mixed.
 41903  */
 42411  */
 41904 function isValuesDefined(values) {
 42412 function isValuesDefined(values) {
 41905   return values !== undefined && Object.values(values).filter(
 42413   return values && Object.values(values).filter(
 41906   // Switching units when input is empty causes values only
 42414   // Switching units when input is empty causes values only
 41907   // containing units. This gives false positive on mixed values
 42415   // containing units. This gives false positive on mixed values
 41908   // unless filtered.
 42416   // unless filtered.
 41909   value => !!value && /\d/.test(value)).length > 0;
 42417   value => !!value && /\d/.test(value)).length > 0;
 41910 }
 42418 }
 41952 
 42460 
 41953 /**
 42461 /**
 41954  * Applies a value to an object representing top, right, bottom and left sides
 42462  * Applies a value to an object representing top, right, bottom and left sides
 41955  * while taking into account any custom side configuration.
 42463  * while taking into account any custom side configuration.
 41956  *
 42464  *
       
 42465  * @deprecated
       
 42466  *
 41957  * @param currentValues The current values for each side.
 42467  * @param currentValues The current values for each side.
 41958  * @param newValue      The value to apply to the sides object.
 42468  * @param newValue      The value to apply to the sides object.
 41959  * @param sides         Array defining valid sides.
 42469  * @param sides         Array defining valid sides.
 41960  *
 42470  *
 41961  * @return Object containing the updated values for each side.
 42471  * @return Object containing the updated values for each side.
 41962  */
 42472  */
 41963 function applyValueToSides(currentValues, newValue, sides) {
 42473 function applyValueToSides(currentValues, newValue, sides) {
       
 42474   external_wp_deprecated_default()('applyValueToSides', {
       
 42475     since: '6.8',
       
 42476     version: '7.0'
       
 42477   });
 41964   const newValues = {
 42478   const newValues = {
 41965     ...currentValues
 42479     ...currentValues
 41966   };
 42480   };
 41967   if (sides?.length) {
 42481   if (sides?.length) {
 41968     sides.forEach(side => {
 42482     sides.forEach(side => {
 41980     ALL_SIDES.forEach(side => newValues[side] = newValue);
 42494     ALL_SIDES.forEach(side => newValues[side] = newValue);
 41981   }
 42495   }
 41982   return newValues;
 42496   return newValues;
 41983 }
 42497 }
 41984 
 42498 
 41985 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/all-input-control.js
 42499 /**
 41986 /**
 42500  * Return the allowed sides based on the sides configuration.
 41987  * WordPress dependencies
 42501  *
 41988  */
 42502  * @param sides Sides configuration.
 41989 
 42503  * @return Allowed sides.
       
 42504  */
       
 42505 function getAllowedSides(sides) {
       
 42506   const allowedSides = new Set(!sides ? ALL_SIDES : []);
       
 42507   sides?.forEach(allowedSide => {
       
 42508     if (allowedSide === 'vertical') {
       
 42509       allowedSides.add('top');
       
 42510       allowedSides.add('bottom');
       
 42511     } else if (allowedSide === 'horizontal') {
       
 42512       allowedSides.add('right');
       
 42513       allowedSides.add('left');
       
 42514     } else {
       
 42515       allowedSides.add(allowedSide);
       
 42516     }
       
 42517   });
       
 42518   return allowedSides;
       
 42519 }
       
 42520 
       
 42521 /**
       
 42522  * Checks if a value is a preset value.
       
 42523  *
       
 42524  * @param value     The value to check.
       
 42525  * @param presetKey The preset key to check against.
       
 42526  * @return Whether the value is a preset value.
       
 42527  */
       
 42528 function isValuePreset(value, presetKey) {
       
 42529   return value.startsWith(`var:preset|${presetKey}|`);
       
 42530 }
       
 42531 
       
 42532 /**
       
 42533  * Returns the index of the preset value in the presets array.
       
 42534  *
       
 42535  * @param value     The value to check.
       
 42536  * @param presetKey The preset key to check against.
       
 42537  * @param presets   The array of presets to search.
       
 42538  * @return The index of the preset value in the presets array.
       
 42539  */
       
 42540 function getPresetIndexFromValue(value, presetKey, presets) {
       
 42541   if (!isValuePreset(value, presetKey)) {
       
 42542     return undefined;
       
 42543   }
       
 42544   const match = value.match(new RegExp(`^var:preset\\|${presetKey}\\|(.+)$`));
       
 42545   if (!match) {
       
 42546     return undefined;
       
 42547   }
       
 42548   const slug = match[1];
       
 42549   const index = presets.findIndex(preset => {
       
 42550     return preset.slug === slug;
       
 42551   });
       
 42552   return index !== -1 ? index : undefined;
       
 42553 }
       
 42554 
       
 42555 /**
       
 42556  * Returns the preset value from the index.
       
 42557  *
       
 42558  * @param index     The index of the preset value in the presets array.
       
 42559  * @param presetKey The preset key to check against.
       
 42560  * @param presets   The array of presets to search.
       
 42561  * @return The preset value from the index.
       
 42562  */
       
 42563 function getPresetValueFromIndex(index, presetKey, presets) {
       
 42564   const preset = presets[index];
       
 42565   return `var:preset|${presetKey}|${preset.slug}`;
       
 42566 }
       
 42567 
       
 42568 ;// ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-icon-styles.js
       
 42569 
       
 42570 function box_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 42571 /**
       
 42572  * External dependencies
       
 42573  */
       
 42574 
       
 42575 const box_control_icon_styles_Root = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
       
 42576   target: "e1j5nr4z8"
       
 42577 } : 0)( true ? {
       
 42578   name: "1w884gc",
       
 42579   styles: "box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"
       
 42580 } : 0);
       
 42581 const Viewbox = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
       
 42582   target: "e1j5nr4z7"
       
 42583 } : 0)( true ? {
       
 42584   name: "i6vjox",
       
 42585   styles: "box-sizing:border-box;display:block;position:relative;width:100%;height:100%"
       
 42586 } : 0);
       
 42587 const strokeFocus = ({
       
 42588   isFocused
       
 42589 }) => {
       
 42590   return /*#__PURE__*/emotion_react_browser_esm_css({
       
 42591     backgroundColor: 'currentColor',
       
 42592     opacity: isFocused ? 1 : 0.3
       
 42593   },  true ? "" : 0,  true ? "" : 0);
       
 42594 };
       
 42595 const Stroke = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
       
 42596   target: "e1j5nr4z6"
       
 42597 } : 0)("box-sizing:border-box;display:block;pointer-events:none;position:absolute;", strokeFocus, ";" + ( true ? "" : 0));
       
 42598 const VerticalStroke = /*#__PURE__*/emotion_styled_base_browser_esm(Stroke,  true ? {
       
 42599   target: "e1j5nr4z5"
       
 42600 } : 0)( true ? {
       
 42601   name: "1k2w39q",
       
 42602   styles: "bottom:3px;top:3px;width:2px"
       
 42603 } : 0);
       
 42604 const HorizontalStroke = /*#__PURE__*/emotion_styled_base_browser_esm(Stroke,  true ? {
       
 42605   target: "e1j5nr4z4"
       
 42606 } : 0)( true ? {
       
 42607   name: "1q9b07k",
       
 42608   styles: "height:2px;left:3px;right:3px"
       
 42609 } : 0);
       
 42610 const TopStroke = /*#__PURE__*/emotion_styled_base_browser_esm(HorizontalStroke,  true ? {
       
 42611   target: "e1j5nr4z3"
       
 42612 } : 0)( true ? {
       
 42613   name: "abcix4",
       
 42614   styles: "top:0"
       
 42615 } : 0);
       
 42616 const RightStroke = /*#__PURE__*/emotion_styled_base_browser_esm(VerticalStroke,  true ? {
       
 42617   target: "e1j5nr4z2"
       
 42618 } : 0)( true ? {
       
 42619   name: "1wf8jf",
       
 42620   styles: "right:0"
       
 42621 } : 0);
       
 42622 const BottomStroke = /*#__PURE__*/emotion_styled_base_browser_esm(HorizontalStroke,  true ? {
       
 42623   target: "e1j5nr4z1"
       
 42624 } : 0)( true ? {
       
 42625   name: "8tapst",
       
 42626   styles: "bottom:0"
       
 42627 } : 0);
       
 42628 const LeftStroke = /*#__PURE__*/emotion_styled_base_browser_esm(VerticalStroke,  true ? {
       
 42629   target: "e1j5nr4z0"
       
 42630 } : 0)( true ? {
       
 42631   name: "1ode3cm",
       
 42632   styles: "left:0"
       
 42633 } : 0);
       
 42634 
       
 42635 ;// ./node_modules/@wordpress/components/build-module/box-control/icon.js
 41990 /**
 42636 /**
 41991  * Internal dependencies
 42637  * Internal dependencies
 41992  */
 42638  */
 41993 
 42639 
 41994 
 42640 
 41995 
 42641 
 41996 
 42642 const BASE_ICON_SIZE = 24;
 41997 
 42643 function BoxControlIcon({
 41998 
 42644   size = 24,
 41999 
 42645   side = 'all',
 42000 const all_input_control_noop = () => {};
       
 42001 function AllInputControl({
       
 42002   __next40pxDefaultSize,
       
 42003   onChange = all_input_control_noop,
       
 42004   onFocus = all_input_control_noop,
       
 42005   values,
       
 42006   sides,
 42646   sides,
 42007   selectedUnits,
       
 42008   setSelectedUnits,
       
 42009   ...props
 42647   ...props
 42010 }) {
 42648 }) {
 42011   var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
 42649   const isSideDisabled = value => sides?.length && !sides.includes(value);
 42012   const inputId = (0,external_wp_compose_namespaceObject.useInstanceId)(AllInputControl, 'box-control-input-all');
 42650   const hasSide = value => {
 42013   const allValue = getAllValue(values, selectedUnits, sides);
 42651     if (isSideDisabled(value)) {
 42014   const hasValues = isValuesDefined(values);
 42652       return false;
 42015   const isMixed = hasValues && isValuesMixed(values, selectedUnits, sides);
 42653     }
 42016   const allPlaceholder = isMixed ? LABELS.mixed : undefined;
 42654     return side === 'all' || side === value;
 42017   const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(allValue);
       
 42018   const handleOnFocus = event => {
       
 42019     onFocus(event, {
       
 42020       side: 'all'
       
 42021     });
       
 42022   };
 42655   };
 42023   const onValueChange = next => {
 42656   const top = hasSide('top') || hasSide('vertical');
 42024     const isNumeric = next !== undefined && !isNaN(parseFloat(next));
 42657   const right = hasSide('right') || hasSide('horizontal');
 42025     const nextValue = isNumeric ? next : undefined;
 42658   const bottom = hasSide('bottom') || hasSide('vertical');
 42026     const nextValues = applyValueToSides(values, nextValue, sides);
 42659   const left = hasSide('left') || hasSide('horizontal');
 42027     onChange(nextValues);
 42660 
 42028   };
 42661   // Simulates SVG Icon scaling.
 42029   const sliderOnChange = next => {
 42662   const scale = size / BASE_ICON_SIZE;
 42030     onValueChange(next !== undefined ? [next, parsedUnit].join('') : undefined);
 42663   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(box_control_icon_styles_Root, {
 42031   };
 42664     style: {
 42032 
 42665       transform: `scale(${scale})`
 42033   // Set selected unit so it can be used as fallback by unlinked controls
 42666     },
 42034   // when individual sides do not have a value containing a unit.
 42667     ...props,
 42035   const handleOnUnitChange = unit => {
 42668     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Viewbox, {
 42036     const newUnits = applyValueToSides(selectedUnits, unit, sides);
 42669       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TopStroke, {
 42037     setSelectedUnits(newUnits);
 42670         isFocused: top
 42038   };
 42671       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RightStroke, {
 42039   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 42672         isFocused: right
 42040     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledUnitControl, {
 42673       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BottomStroke, {
 42041       ...props,
 42674         isFocused: bottom
 42042       __next40pxDefaultSize: __next40pxDefaultSize,
 42675       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LeftStroke, {
 42043       className: "component-box-control__unit-control",
 42676         isFocused: left
 42044       disableUnits: isMixed,
 42677       })]
 42045       id: inputId,
 42678     })
 42046       isPressEnterToChange: true,
       
 42047       value: allValue,
       
 42048       onChange: onValueChange,
       
 42049       onUnitChange: handleOnUnitChange,
       
 42050       onFocus: handleOnFocus,
       
 42051       placeholder: allPlaceholder,
       
 42052       label: LABELS.all,
       
 42053       hideLabelFromVision: true
       
 42054     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
       
 42055       __nextHasNoMarginBottom: true,
       
 42056       __next40pxDefaultSize: __next40pxDefaultSize,
       
 42057       "aria-controls": inputId,
       
 42058       label: LABELS.all,
       
 42059       hideLabelFromVision: true,
       
 42060       onChange: sliderOnChange,
       
 42061       min: 0,
       
 42062       max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
       
 42063       step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[parsedUnit !== null && parsedUnit !== void 0 ? parsedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
       
 42064       value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
       
 42065       withInputField: false
       
 42066     })]
       
 42067   });
 42679   });
 42068 }
 42680 }
 42069 
 42681 
 42070 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/input-controls.js
 42682 ;// ./node_modules/@wordpress/components/build-module/box-control/styles/box-control-styles.js
       
 42683 
       
 42684 function box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 42685 /**
       
 42686  * External dependencies
       
 42687  */
       
 42688 
       
 42689 /**
       
 42690  * Internal dependencies
       
 42691  */
       
 42692 
       
 42693 
       
 42694 
       
 42695 
       
 42696 
       
 42697 
       
 42698 const StyledUnitControl = /*#__PURE__*/emotion_styled_base_browser_esm(unit_control,  true ? {
       
 42699   target: "e1jovhle5"
       
 42700 } : 0)( true ? {
       
 42701   name: "1ejyr19",
       
 42702   styles: "max-width:90px"
       
 42703 } : 0);
       
 42704 const InputWrapper = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
       
 42705   target: "e1jovhle4"
       
 42706 } : 0)( true ? {
       
 42707   name: "1j1lmoi",
       
 42708   styles: "grid-column:1/span 3"
       
 42709 } : 0);
       
 42710 const ResetButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
       
 42711   target: "e1jovhle3"
       
 42712 } : 0)( true ? {
       
 42713   name: "tkya7b",
       
 42714   styles: "grid-area:1/2;justify-self:end"
       
 42715 } : 0);
       
 42716 const LinkedButtonWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 42717   target: "e1jovhle2"
       
 42718 } : 0)( true ? {
       
 42719   name: "1dfa8al",
       
 42720   styles: "grid-area:1/3;justify-self:end"
       
 42721 } : 0);
       
 42722 const FlexedBoxControlIcon = /*#__PURE__*/emotion_styled_base_browser_esm(BoxControlIcon,  true ? {
       
 42723   target: "e1jovhle1"
       
 42724 } : 0)( true ? {
       
 42725   name: "ou8xsw",
       
 42726   styles: "flex:0 0 auto"
       
 42727 } : 0);
       
 42728 const FlexedRangeControl = /*#__PURE__*/emotion_styled_base_browser_esm(range_control,  true ? {
       
 42729   target: "e1jovhle0"
       
 42730 } : 0)("width:100%;margin-inline-end:", space(2), ";" + ( true ? "" : 0));
       
 42731 
       
 42732 ;// ./node_modules/@wordpress/components/build-module/box-control/input-control.js
 42071 /**
 42733 /**
 42072  * WordPress dependencies
 42734  * WordPress dependencies
 42073  */
 42735  */
 42074 
 42736 
       
 42737 
       
 42738 
       
 42739 
       
 42740 
 42075 /**
 42741 /**
 42076  * Internal dependencies
 42742  * Internal dependencies
 42077  */
 42743  */
 42078 
 42744 
 42079 
 42745 
 42080 
 42746 
 42081 
 42747 
 42082 
 42748 
 42083 
 42749 
 42084 
 42750 const box_control_input_control_noop = () => {};
 42085 const input_controls_noop = () => {};
 42751 function getSidesToModify(side, sides, isAlt) {
 42086 function BoxInputControls({
 42752   const allowedSides = getAllowedSides(sides);
       
 42753   let modifiedSides = [];
       
 42754   switch (side) {
       
 42755     case 'all':
       
 42756       modifiedSides = ['top', 'bottom', 'left', 'right'];
       
 42757       break;
       
 42758     case 'horizontal':
       
 42759       modifiedSides = ['left', 'right'];
       
 42760       break;
       
 42761     case 'vertical':
       
 42762       modifiedSides = ['top', 'bottom'];
       
 42763       break;
       
 42764     default:
       
 42765       modifiedSides = [side];
       
 42766   }
       
 42767   if (isAlt) {
       
 42768     switch (side) {
       
 42769       case 'top':
       
 42770         modifiedSides.push('bottom');
       
 42771         break;
       
 42772       case 'bottom':
       
 42773         modifiedSides.push('top');
       
 42774         break;
       
 42775       case 'left':
       
 42776         modifiedSides.push('left');
       
 42777         break;
       
 42778       case 'right':
       
 42779         modifiedSides.push('right');
       
 42780         break;
       
 42781     }
       
 42782   }
       
 42783   return modifiedSides.filter(s => allowedSides.has(s));
       
 42784 }
       
 42785 function BoxInputControl({
 42087   __next40pxDefaultSize,
 42786   __next40pxDefaultSize,
 42088   onChange = input_controls_noop,
 42787   onChange = box_control_input_control_noop,
 42089   onFocus = input_controls_noop,
 42788   onFocus = box_control_input_control_noop,
 42090   values,
 42789   values,
 42091   selectedUnits,
 42790   selectedUnits,
 42092   setSelectedUnits,
 42791   setSelectedUnits,
 42093   sides,
 42792   sides,
       
 42793   side,
       
 42794   min = 0,
       
 42795   presets,
       
 42796   presetKey,
 42094   ...props
 42797   ...props
 42095 }) {
 42798 }) {
 42096   const generatedId = (0,external_wp_compose_namespaceObject.useInstanceId)(BoxInputControls, 'box-control-input');
 42799   var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
 42097   const createHandleOnFocus = side => event => {
 42800   const defaultValuesToModify = getSidesToModify(side, sides);
       
 42801   const handleOnFocus = event => {
 42098     onFocus(event, {
 42802     onFocus(event, {
 42099       side
 42803       side
 42100     });
 42804     });
 42101   };
 42805   };
 42102   const handleOnChange = nextValues => {
 42806   const handleOnChange = nextValues => {
 42103     onChange(nextValues);
 42807     onChange(nextValues);
 42104   };
 42808   };
 42105   const handleOnValueChange = (side, next, extra) => {
 42809   const handleRawOnValueChange = next => {
       
 42810     const nextValues = {
       
 42811       ...values
       
 42812     };
       
 42813     defaultValuesToModify.forEach(modifiedSide => {
       
 42814       nextValues[modifiedSide] = next;
       
 42815     });
       
 42816     handleOnChange(nextValues);
       
 42817   };
       
 42818   const handleOnValueChange = (next, extra) => {
 42106     const nextValues = {
 42819     const nextValues = {
 42107       ...values
 42820       ...values
 42108     };
 42821     };
 42109     const isNumeric = next !== undefined && !isNaN(parseFloat(next));
 42822     const isNumeric = next !== undefined && !isNaN(parseFloat(next));
 42110     const nextValue = isNumeric ? next : undefined;
 42823     const nextValue = isNumeric ? next : undefined;
 42111     nextValues[side] = nextValue;
 42824     const modifiedSides = getSidesToModify(side, sides,
 42112 
       
 42113     /**
 42825     /**
 42114      * Supports changing pair sides. For example, holding the ALT key
 42826      * Supports changing pair sides. For example, holding the ALT key
 42115      * when changing the TOP will also update BOTTOM.
 42827      * when changing the TOP will also update BOTTOM.
 42116      */
 42828      */
 42117     // @ts-expect-error - TODO: event.altKey is only present when the change event was
 42829     // @ts-expect-error - TODO: event.altKey is only present when the change event was
 42118     // triggered by a keyboard event. Should this feature be implemented differently so
 42830     // triggered by a keyboard event. Should this feature be implemented differently so
 42119     // it also works with drag events?
 42831     // it also works with drag events?
 42120     if (extra?.event.altKey) {
 42832     !!extra?.event.altKey);
 42121       switch (side) {
 42833     modifiedSides.forEach(modifiedSide => {
 42122         case 'top':
 42834       nextValues[modifiedSide] = nextValue;
 42123           nextValues.bottom = nextValue;
 42835     });
 42124           break;
       
 42125         case 'bottom':
       
 42126           nextValues.top = nextValue;
       
 42127           break;
       
 42128         case 'left':
       
 42129           nextValues.right = nextValue;
       
 42130           break;
       
 42131         case 'right':
       
 42132           nextValues.left = nextValue;
       
 42133           break;
       
 42134       }
       
 42135     }
       
 42136     handleOnChange(nextValues);
 42836     handleOnChange(nextValues);
 42137   };
 42837   };
 42138   const createHandleOnUnitChange = side => next => {
 42838   const handleOnUnitChange = next => {
 42139     const newUnits = {
 42839     const newUnits = {
 42140       ...selectedUnits
 42840       ...selectedUnits
 42141     };
 42841     };
 42142     newUnits[side] = next;
 42842     defaultValuesToModify.forEach(modifiedSide => {
       
 42843       newUnits[modifiedSide] = next;
       
 42844     });
 42143     setSelectedUnits(newUnits);
 42845     setSelectedUnits(newUnits);
 42144   };
 42846   };
 42145 
 42847   const mergedValue = getMergedValue(values, defaultValuesToModify);
 42146   // Filter sides if custom configuration provided, maintaining default order.
 42848   const hasValues = isValuesDefined(values);
 42147   const filteredSides = sides?.length ? ALL_SIDES.filter(side => sides.includes(side)) : ALL_SIDES;
 42849   const isMixed = hasValues && defaultValuesToModify.length > 1 && isValueMixed(values, defaultValuesToModify);
 42148   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 42850   const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(mergedValue);
 42149     children: filteredSides.map(side => {
 42851   const computedUnit = hasValues ? parsedUnit : selectedUnits[defaultValuesToModify[0]];
 42150       var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
 42852   const generatedId = (0,external_wp_compose_namespaceObject.useInstanceId)(BoxInputControl, 'box-control-input');
 42151       const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(values[side]);
 42853   const inputId = [generatedId, side].join('-');
 42152       const computedUnit = values[side] ? parsedUnit : selectedUnits[side];
 42854   const isMixedUnit = defaultValuesToModify.length > 1 && mergedValue === undefined && defaultValuesToModify.some(s => selectedUnits[s] !== computedUnit);
 42153       const inputId = [generatedId, side].join('-');
 42855   const usedValue = mergedValue === undefined && computedUnit ? computedUnit : mergedValue;
 42154       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapper, {
 42856   const mixedPlaceholder = isMixed || isMixedUnit ? (0,external_wp_i18n_namespaceObject.__)('Mixed') : undefined;
 42155         expanded: true,
 42857   const hasPresets = presets && presets.length > 0 && presetKey;
 42156         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedBoxControlIcon, {
 42858   const hasPresetValue = hasPresets && mergedValue !== undefined && !isMixed && isValuePreset(mergedValue, presetKey);
 42157           side: side,
 42859   const [showCustomValueControl, setShowCustomValueControl] = (0,external_wp_element_namespaceObject.useState)(!hasPresets || !hasPresetValue && !isMixed && mergedValue !== undefined);
 42158           sides: sides
 42860   const presetIndex = hasPresetValue ? getPresetIndexFromValue(mergedValue, presetKey, presets) : undefined;
 42159         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 42861   const marks = hasPresets ? [{
 42160           placement: "top-end",
 42862     value: 0,
 42161           text: LABELS[side],
 42863     label: '',
 42162           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledUnitControl, {
 42864     tooltip: (0,external_wp_i18n_namespaceObject.__)('None')
 42163             ...props,
 42865   }].concat(presets.map((preset, index) => {
 42164             __next40pxDefaultSize: __next40pxDefaultSize,
 42866     var _preset$name;
 42165             className: "component-box-control__unit-control",
 42867     return {
 42166             id: inputId,
 42868       value: index + 1,
 42167             isPressEnterToChange: true,
 42869       label: '',
 42168             value: [parsedQuantity, computedUnit].join(''),
 42870       tooltip: (_preset$name = preset.name) !== null && _preset$name !== void 0 ? _preset$name : preset.slug
 42169             onChange: (nextValue, extra) => handleOnValueChange(side, nextValue, extra),
 42871     };
 42170             onUnitChange: createHandleOnUnitChange(side),
 42872   })) : [];
 42171             onFocus: createHandleOnFocus(side),
 42873   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapper, {
 42172             label: LABELS[side],
 42874     expanded: true,
 42173             hideLabelFromVision: true
 42875     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedBoxControlIcon, {
 42174           })
 42876       side: side,
 42175         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
 42877       sides: sides
 42176           __nextHasNoMarginBottom: true,
 42878     }), showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 42879       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
       
 42880         placement: "top-end",
       
 42881         text: LABELS[side],
       
 42882         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledUnitControl, {
       
 42883           ...props,
       
 42884           min: min,
       
 42885           __shouldNotWarnDeprecated36pxSize: true,
 42177           __next40pxDefaultSize: __next40pxDefaultSize,
 42886           __next40pxDefaultSize: __next40pxDefaultSize,
 42178           "aria-controls": inputId,
 42887           className: "component-box-control__unit-control",
       
 42888           id: inputId,
       
 42889           isPressEnterToChange: true,
       
 42890           disableUnits: isMixed || isMixedUnit,
       
 42891           value: usedValue,
       
 42892           onChange: handleOnValueChange,
       
 42893           onUnitChange: handleOnUnitChange,
       
 42894           onFocus: handleOnFocus,
 42179           label: LABELS[side],
 42895           label: LABELS[side],
 42180           hideLabelFromVision: true,
 42896           placeholder: mixedPlaceholder,
 42181           onChange: newValue => {
 42897           hideLabelFromVision: true
 42182             handleOnValueChange(side, newValue !== undefined ? [newValue, computedUnit].join('') : undefined);
 42898         })
 42183           },
 42899       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
 42184           min: 0,
 42900         __nextHasNoMarginBottom: true,
 42185           max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
 42901         __next40pxDefaultSize: __next40pxDefaultSize,
 42186           step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
 42902         __shouldNotWarnDeprecated36pxSize: true,
 42187           value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
 42903         "aria-controls": inputId,
 42188           withInputField: false
 42904         label: LABELS[side],
 42189         })]
 42905         hideLabelFromVision: true,
 42190       }, `box-control-${side}`);
 42906         onChange: newValue => {
 42191     })
 42907           handleOnValueChange(newValue !== undefined ? [newValue, computedUnit].join('') : undefined);
 42192   });
 42908         },
 42193 }
 42909         min: isFinite(min) ? min : 0,
 42194 
 42910         max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
 42195 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/axial-input-controls.js
 42911         step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[computedUnit !== null && computedUnit !== void 0 ? computedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
       
 42912         value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
       
 42913         withInputField: false
       
 42914       })]
       
 42915     }), hasPresets && !showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
       
 42916       __next40pxDefaultSize: true,
       
 42917       className: "spacing-sizes-control__range-control",
       
 42918       value: presetIndex !== undefined ? presetIndex + 1 : 0,
       
 42919       onChange: newIndex => {
       
 42920         const newValue = newIndex === 0 || newIndex === undefined ? undefined : getPresetValueFromIndex(newIndex - 1, presetKey, presets);
       
 42921         handleRawOnValueChange(newValue);
       
 42922       },
       
 42923       withInputField: false,
       
 42924       "aria-valuenow": presetIndex !== undefined ? presetIndex + 1 : 0,
       
 42925       "aria-valuetext": marks[presetIndex !== undefined ? presetIndex + 1 : 0].tooltip,
       
 42926       renderTooltipContent: index => marks[!index ? 0 : index].tooltip,
       
 42927       min: 0,
       
 42928       max: marks.length - 1,
       
 42929       marks: marks,
       
 42930       label: LABELS[side],
       
 42931       hideLabelFromVision: true,
       
 42932       __nextHasNoMarginBottom: true
       
 42933     }), hasPresets && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 42934       label: showCustomValueControl ? (0,external_wp_i18n_namespaceObject.__)('Use size preset') : (0,external_wp_i18n_namespaceObject.__)('Set custom size'),
       
 42935       icon: library_settings,
       
 42936       onClick: () => {
       
 42937         setShowCustomValueControl(!showCustomValueControl);
       
 42938       },
       
 42939       isPressed: showCustomValueControl,
       
 42940       size: "small",
       
 42941       iconSize: 24
       
 42942     })]
       
 42943   }, `box-control-${side}`);
       
 42944 }
       
 42945 
       
 42946 ;// ./node_modules/@wordpress/components/build-module/box-control/linked-button.js
 42196 /**
 42947 /**
 42197  * WordPress dependencies
 42948  * WordPress dependencies
 42198  */
 42949  */
 42199 
 42950 
       
 42951 
       
 42952 
 42200 /**
 42953 /**
 42201  * Internal dependencies
 42954  * Internal dependencies
 42202  */
 42955  */
 42203 
       
 42204 
       
 42205 
       
 42206 
       
 42207 
       
 42208 
       
 42209 
       
 42210 
       
 42211 const groupedSides = ['vertical', 'horizontal'];
       
 42212 function AxialInputControls({
       
 42213   __next40pxDefaultSize,
       
 42214   onChange,
       
 42215   onFocus,
       
 42216   values,
       
 42217   selectedUnits,
       
 42218   setSelectedUnits,
       
 42219   sides,
       
 42220   ...props
       
 42221 }) {
       
 42222   const generatedId = (0,external_wp_compose_namespaceObject.useInstanceId)(AxialInputControls, `box-control-input`);
       
 42223   const createHandleOnFocus = side => event => {
       
 42224     if (!onFocus) {
       
 42225       return;
       
 42226     }
       
 42227     onFocus(event, {
       
 42228       side
       
 42229     });
       
 42230   };
       
 42231   const handleOnValueChange = (side, next) => {
       
 42232     if (!onChange) {
       
 42233       return;
       
 42234     }
       
 42235     const nextValues = {
       
 42236       ...values
       
 42237     };
       
 42238     const isNumeric = next !== undefined && !isNaN(parseFloat(next));
       
 42239     const nextValue = isNumeric ? next : undefined;
       
 42240     if (side === 'vertical') {
       
 42241       nextValues.top = nextValue;
       
 42242       nextValues.bottom = nextValue;
       
 42243     }
       
 42244     if (side === 'horizontal') {
       
 42245       nextValues.left = nextValue;
       
 42246       nextValues.right = nextValue;
       
 42247     }
       
 42248     onChange(nextValues);
       
 42249   };
       
 42250   const createHandleOnUnitChange = side => next => {
       
 42251     const newUnits = {
       
 42252       ...selectedUnits
       
 42253     };
       
 42254     if (side === 'vertical') {
       
 42255       newUnits.top = next;
       
 42256       newUnits.bottom = next;
       
 42257     }
       
 42258     if (side === 'horizontal') {
       
 42259       newUnits.left = next;
       
 42260       newUnits.right = next;
       
 42261     }
       
 42262     setSelectedUnits(newUnits);
       
 42263   };
       
 42264 
       
 42265   // Filter sides if custom configuration provided, maintaining default order.
       
 42266   const filteredSides = sides?.length ? groupedSides.filter(side => sides.includes(side)) : groupedSides;
       
 42267   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 42268     children: filteredSides.map(side => {
       
 42269       var _CUSTOM_VALUE_SETTING, _CUSTOM_VALUE_SETTING2;
       
 42270       const [parsedQuantity, parsedUnit] = parseQuantityAndUnitFromRawValue(side === 'vertical' ? values.top : values.left);
       
 42271       const selectedUnit = side === 'vertical' ? selectedUnits.top : selectedUnits.left;
       
 42272       const inputId = [generatedId, side].join('-');
       
 42273       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapper, {
       
 42274         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedBoxControlIcon, {
       
 42275           side: side,
       
 42276           sides: sides
       
 42277         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
       
 42278           placement: "top-end",
       
 42279           text: LABELS[side],
       
 42280           children: /*#__PURE__*/(0,external_React_.createElement)(StyledUnitControl, {
       
 42281             ...props,
       
 42282             __next40pxDefaultSize: __next40pxDefaultSize,
       
 42283             className: "component-box-control__unit-control",
       
 42284             id: inputId,
       
 42285             isPressEnterToChange: true,
       
 42286             value: [parsedQuantity, selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : parsedUnit].join(''),
       
 42287             onChange: newValue => handleOnValueChange(side, newValue),
       
 42288             onUnitChange: createHandleOnUnitChange(side),
       
 42289             onFocus: createHandleOnFocus(side),
       
 42290             label: LABELS[side],
       
 42291             hideLabelFromVision: true,
       
 42292             key: side
       
 42293           })
       
 42294         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedRangeControl, {
       
 42295           __nextHasNoMarginBottom: true,
       
 42296           __next40pxDefaultSize: __next40pxDefaultSize,
       
 42297           "aria-controls": inputId,
       
 42298           label: LABELS[side],
       
 42299           hideLabelFromVision: true,
       
 42300           onChange: newValue => handleOnValueChange(side, newValue !== undefined ? [newValue, selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : parsedUnit].join('') : undefined),
       
 42301           min: 0,
       
 42302           max: (_CUSTOM_VALUE_SETTING = CUSTOM_VALUE_SETTINGS[selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : 'px']?.max) !== null && _CUSTOM_VALUE_SETTING !== void 0 ? _CUSTOM_VALUE_SETTING : 10,
       
 42303           step: (_CUSTOM_VALUE_SETTING2 = CUSTOM_VALUE_SETTINGS[selectedUnit !== null && selectedUnit !== void 0 ? selectedUnit : 'px']?.step) !== null && _CUSTOM_VALUE_SETTING2 !== void 0 ? _CUSTOM_VALUE_SETTING2 : 0.1,
       
 42304           value: parsedQuantity !== null && parsedQuantity !== void 0 ? parsedQuantity : 0,
       
 42305           withInputField: false
       
 42306         })]
       
 42307       }, side);
       
 42308     })
       
 42309   });
       
 42310 }
       
 42311 
       
 42312 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/linked-button.js
       
 42313 /**
       
 42314  * WordPress dependencies
       
 42315  */
       
 42316 
       
 42317 
       
 42318 
       
 42319 /**
       
 42320  * Internal dependencies
       
 42321  */
       
 42322 
       
 42323 
 42956 
 42324 
 42957 
 42325 function LinkedButton({
 42958 function LinkedButton({
 42326   isLinked,
 42959   isLinked,
 42327   ...props
 42960   ...props
 42328 }) {
 42961 }) {
 42329   const label = isLinked ? (0,external_wp_i18n_namespaceObject.__)('Unlink sides') : (0,external_wp_i18n_namespaceObject.__)('Link sides');
 42962   const label = isLinked ? (0,external_wp_i18n_namespaceObject.__)('Unlink sides') : (0,external_wp_i18n_namespaceObject.__)('Link sides');
 42330   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tooltip, {
 42963   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 42331     text: label,
 42964     ...props,
 42332     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 42965     className: "component-box-control__linked-button",
 42333       ...props,
 42966     size: "small",
 42334       className: "component-box-control__linked-button",
 42967     icon: isLinked ? library_link : link_off,
 42335       size: "small",
 42968     iconSize: 24,
 42336       icon: isLinked ? library_link : link_off,
 42969     label: label
 42337       iconSize: 24,
       
 42338       "aria-label": label
       
 42339     })
       
 42340   });
 42970   });
 42341 }
 42971 }
 42342 
 42972 
 42343 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/index.js
 42973 ;// ./node_modules/@wordpress/components/build-module/box-control/index.js
 42344 /**
 42974 /**
 42345  * WordPress dependencies
 42975  * WordPress dependencies
 42346  */
 42976  */
 42347 
 42977 
 42348 
 42978 
 42349 
 42979 
 42350 
 42980 
       
 42981 
 42351 /**
 42982 /**
 42352  * Internal dependencies
 42983  * Internal dependencies
 42353  */
 42984  */
 42354 
       
 42355 
       
 42356 
 42985 
 42357 
 42986 
 42358 
 42987 
 42359 
 42988 
 42360 
 42989 
 42371   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(BoxControl, 'inspector-box-control');
 43000   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(BoxControl, 'inspector-box-control');
 42372   return idProp || instanceId;
 43001   return idProp || instanceId;
 42373 }
 43002 }
 42374 
 43003 
 42375 /**
 43004 /**
 42376  * BoxControl components let users set values for Top, Right, Bottom, and Left.
 43005  * A control that lets users set values for top, right, bottom, and left. Can be
 42377  * This can be used as an input control for values like `padding` or `margin`.
 43006  * used as an input control for values like `padding` or `margin`.
 42378  *
 43007  *
 42379  * ```jsx
 43008  * ```jsx
 42380  * import { __experimentalBoxControl as BoxControl } from '@wordpress/components';
 43009  * import { useState } from 'react';
 42381  * import { useState } from '@wordpress/element';
 43010  * import { BoxControl } from '@wordpress/components';
 42382  *
 43011  *
 42383  * const Example = () => {
 43012  * function Example() {
 42384  * 	const [ values, setValues ] = useState( {
 43013  *   const [ values, setValues ] = useState( {
 42385  * 		top: '50px',
 43014  *     top: '50px',
 42386  * 		left: '10%',
 43015  *     left: '10%',
 42387  * 		right: '10%',
 43016  *     right: '10%',
 42388  * 		bottom: '50px',
 43017  *     bottom: '50px',
 42389  * 	} );
 43018  *   } );
 42390  *
 43019  *
 42391  * 	return (
 43020  *   return (
 42392  * 		<BoxControl
 43021  *     <BoxControl
 42393  * 			values={ values }
 43022  *       __next40pxDefaultSize
 42394  * 			onChange={ ( nextValues ) => setValues( nextValues ) }
 43023  *       values={ values }
 42395  * 		/>
 43024  *       onChange={ setValues }
 42396  * 	);
 43025  *     />
       
 43026  *   );
 42397  * };
 43027  * };
 42398  * ```
 43028  * ```
 42399  */
 43029  */
 42400 function BoxControl({
 43030 function BoxControl({
 42401   __next40pxDefaultSize = false,
 43031   __next40pxDefaultSize = false,
 42407   units,
 43037   units,
 42408   sides,
 43038   sides,
 42409   splitOnAxis = false,
 43039   splitOnAxis = false,
 42410   allowReset = true,
 43040   allowReset = true,
 42411   resetValues = DEFAULT_VALUES,
 43041   resetValues = DEFAULT_VALUES,
       
 43042   presets,
       
 43043   presetKey,
 42412   onMouseOver,
 43044   onMouseOver,
 42413   onMouseOut
 43045   onMouseOut
 42414 }) {
 43046 }) {
 42415   const [values, setValues] = use_controlled_state(valuesProp, {
 43047   const [values, setValues] = use_controlled_state(valuesProp, {
 42416     fallback: DEFAULT_VALUES
 43048     fallback: DEFAULT_VALUES
 42417   });
 43049   });
 42418   const inputValues = values || DEFAULT_VALUES;
 43050   const inputValues = values || DEFAULT_VALUES;
 42419   const hasInitialValue = isValuesDefined(valuesProp);
 43051   const hasInitialValue = isValuesDefined(valuesProp);
 42420   const hasOneSide = sides?.length === 1;
 43052   const hasOneSide = sides?.length === 1;
 42421   const [isDirty, setIsDirty] = (0,external_wp_element_namespaceObject.useState)(hasInitialValue);
 43053   const [isDirty, setIsDirty] = (0,external_wp_element_namespaceObject.useState)(hasInitialValue);
 42422   const [isLinked, setIsLinked] = (0,external_wp_element_namespaceObject.useState)(!hasInitialValue || !isValuesMixed(inputValues) || hasOneSide);
 43054   const [isLinked, setIsLinked] = (0,external_wp_element_namespaceObject.useState)(!hasInitialValue || !isValueMixed(inputValues) || hasOneSide);
 42423   const [side, setSide] = (0,external_wp_element_namespaceObject.useState)(getInitialSide(isLinked, splitOnAxis));
 43055   const [side, setSide] = (0,external_wp_element_namespaceObject.useState)(getInitialSide(isLinked, splitOnAxis));
 42424 
 43056 
 42425   // Tracking selected units via internal state allows filtering of CSS unit
 43057   // Tracking selected units via internal state allows filtering of CSS unit
 42426   // only values from being saved while maintaining preexisting unit selection
 43058   // only values from being saved while maintaining preexisting unit selection
 42427   // behaviour. Filtering CSS only values prevents invalid style values.
 43059   // behaviour. Filtering CSS only values prevents invalid style values.
 42452     setValues(resetValues);
 43084     setValues(resetValues);
 42453     setSelectedUnits(resetValues);
 43085     setSelectedUnits(resetValues);
 42454     setIsDirty(false);
 43086     setIsDirty(false);
 42455   };
 43087   };
 42456   const inputControlProps = {
 43088   const inputControlProps = {
       
 43089     onMouseOver,
       
 43090     onMouseOut,
 42457     ...inputProps,
 43091     ...inputProps,
 42458     onChange: handleOnChange,
 43092     onChange: handleOnChange,
 42459     onFocus: handleOnFocus,
 43093     onFocus: handleOnFocus,
 42460     isLinked,
 43094     isLinked,
 42461     units,
 43095     units,
 42462     selectedUnits,
 43096     selectedUnits,
 42463     setSelectedUnits,
 43097     setSelectedUnits,
 42464     sides,
 43098     sides,
 42465     values: inputValues,
 43099     values: inputValues,
 42466     onMouseOver,
 43100     __next40pxDefaultSize,
 42467     onMouseOut,
 43101     presets,
 42468     __next40pxDefaultSize
 43102     presetKey
 42469   };
 43103   };
       
 43104   maybeWarnDeprecated36pxSize({
       
 43105     componentName: 'BoxControl',
       
 43106     __next40pxDefaultSize,
       
 43107     size: undefined
       
 43108   });
       
 43109   const sidesToRender = getAllowedSides(sides);
       
 43110   if (presets && !presetKey || !presets && presetKey) {
       
 43111     const definedProp = presets ? 'presets' : 'presetKey';
       
 43112     const missingProp = presets ? 'presetKey' : 'presets';
       
 43113      true ? external_wp_warning_default()(`wp.components.BoxControl: the '${missingProp}' prop is required when the '${definedProp}' prop is defined.`) : 0;
       
 43114   }
 42470   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(grid_component, {
 43115   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(grid_component, {
 42471     id: id,
 43116     id: id,
 42472     columns: 3,
 43117     columns: 3,
 42473     templateColumns: "1fr min-content min-content",
 43118     templateColumns: "1fr min-content min-content",
 42474     role: "group",
 43119     role: "group",
 42475     "aria-labelledby": headingId,
 43120     "aria-labelledby": headingId,
 42476     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BaseControl.VisualLabel, {
 43121     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BaseControl.VisualLabel, {
 42477       id: headingId,
 43122       id: headingId,
 42478       children: label
 43123       children: label
 42479     }), isLinked && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(InputWrapper, {
 43124     }), isLinked && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InputWrapper, {
 42480       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FlexedBoxControlIcon, {
 43125       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BoxInputControl, {
 42481         side: side,
 43126         side: "all",
 42482         sides: sides
       
 42483       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AllInputControl, {
       
 42484         ...inputControlProps
 43127         ...inputControlProps
 42485       })]
 43128       })
 42486     }), !hasOneSide && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkedButtonWrapper, {
 43129     }), !hasOneSide && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkedButtonWrapper, {
 42487       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkedButton, {
 43130       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(LinkedButton, {
 42488         onClick: toggleLinked,
 43131         onClick: toggleLinked,
 42489         isLinked: isLinked
 43132         isLinked: isLinked
 42490       })
 43133       })
 42491     }), !isLinked && splitOnAxis && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AxialInputControls, {
 43134     }), !isLinked && splitOnAxis && ['vertical', 'horizontal'].map(axis => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BoxInputControl, {
       
 43135       side: axis,
 42492       ...inputControlProps
 43136       ...inputControlProps
 42493     }), !isLinked && !splitOnAxis && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BoxInputControls, {
 43137     }, axis)), !isLinked && !splitOnAxis && Array.from(sidesToRender).map(axis => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BoxInputControl, {
       
 43138       side: axis,
 42494       ...inputControlProps
 43139       ...inputControlProps
 42495     }), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResetButton, {
 43140     }, axis)), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ResetButton, {
 42496       className: "component-box-control__reset-button",
 43141       className: "component-box-control__reset-button",
 42497       variant: "secondary",
 43142       variant: "secondary",
 42498       size: "small",
 43143       size: "small",
 42499       onClick: handleOnReset,
 43144       onClick: handleOnReset,
 42500       disabled: !isDirty,
 43145       disabled: !isDirty,
 42503   });
 43148   });
 42504 }
 43149 }
 42505 
 43150 
 42506 /* harmony default export */ const box_control = (BoxControl);
 43151 /* harmony default export */ const box_control = (BoxControl);
 42507 
 43152 
 42508 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button-group/index.js
 43153 ;// ./node_modules/@wordpress/components/build-module/button-group/index.js
 42509 /**
 43154 /**
 42510  * External dependencies
 43155  * External dependencies
 42511  */
 43156  */
 42512 
 43157 
 42513 /**
 43158 /**
 42514  * WordPress dependencies
 43159  * WordPress dependencies
 42515  */
 43160  */
       
 43161 
 42516 
 43162 
 42517 
 43163 
 42518 /**
 43164 /**
 42519  * Internal dependencies
 43165  * Internal dependencies
 42520  */
 43166  */
 42521 
 43167 
 42522 function UnforwardedButtonGroup(props, ref) {
 43168 function UnforwardedButtonGroup(props, ref) {
 42523   const {
 43169   const {
 42524     className,
 43170     className,
       
 43171     __shouldNotWarnDeprecated,
 42525     ...restProps
 43172     ...restProps
 42526   } = props;
 43173   } = props;
 42527   const classes = dist_clsx('components-button-group', className);
 43174   const classes = dist_clsx('components-button-group', className);
       
 43175   if (!__shouldNotWarnDeprecated) {
       
 43176     external_wp_deprecated_default()('wp.components.ButtonGroup', {
       
 43177       since: '6.8',
       
 43178       alternative: 'wp.components.__experimentalToggleGroupControl'
       
 43179     });
       
 43180   }
 42528   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 43181   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 42529     ref: ref,
 43182     ref: ref,
 42530     role: "group",
 43183     role: "group",
 42531     className: classes,
 43184     className: classes,
 42532     ...restProps
 43185     ...restProps
 42534 }
 43187 }
 42535 
 43188 
 42536 /**
 43189 /**
 42537  * ButtonGroup can be used to group any related buttons together. To emphasize
 43190  * ButtonGroup can be used to group any related buttons together. To emphasize
 42538  * related buttons, a group should share a common container.
 43191  * related buttons, a group should share a common container.
       
 43192  *
       
 43193  * @deprecated Use `ToggleGroupControl` instead.
 42539  *
 43194  *
 42540  * ```jsx
 43195  * ```jsx
 42541  * import { Button, ButtonGroup } from '@wordpress/components';
 43196  * import { Button, ButtonGroup } from '@wordpress/components';
 42542  *
 43197  *
 42543  * const MyButtonGroup = () => (
 43198  * const MyButtonGroup = () => (
 42549  * ```
 43204  * ```
 42550  */
 43205  */
 42551 const ButtonGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedButtonGroup);
 43206 const ButtonGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedButtonGroup);
 42552 /* harmony default export */ const button_group = (ButtonGroup);
 43207 /* harmony default export */ const button_group = (ButtonGroup);
 42553 
 43208 
 42554 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/elevation/styles.js
 43209 ;// ./node_modules/@wordpress/components/build-module/elevation/styles.js
 42555 function elevation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 43210 function elevation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 42556 /**
 43211 /**
 42557  * External dependencies
 43212  * External dependencies
 42558  */
 43213  */
 42559 
 43214 
 42560 const Elevation =  true ? {
 43215 const Elevation =  true ? {
 42561   name: "12ip69d",
 43216   name: "12ip69d",
 42562   styles: "background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"
 43217   styles: "background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"
 42563 } : 0;
 43218 } : 0;
 42564 
 43219 
 42565 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/elevation/hook.js
 43220 ;// ./node_modules/@wordpress/components/build-module/elevation/hook.js
 42566 /**
 43221 /**
 42567  * External dependencies
 43222  * External dependencies
 42568  */
 43223  */
 42569 
 43224 
 42570 
 43225 
 42636     className: classes,
 43291     className: classes,
 42637     'aria-hidden': true
 43292     'aria-hidden': true
 42638   };
 43293   };
 42639 }
 43294 }
 42640 
 43295 
 42641 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/elevation/component.js
 43296 ;// ./node_modules/@wordpress/components/build-module/elevation/component.js
 42642 /**
 43297 /**
 42643  * External dependencies
 43298  * External dependencies
 42644  */
 43299  */
 42645 
 43300 
 42646 /**
 43301 /**
 42683  * ```
 43338  * ```
 42684  */
 43339  */
 42685 const component_Elevation = contextConnect(UnconnectedElevation, 'Elevation');
 43340 const component_Elevation = contextConnect(UnconnectedElevation, 'Elevation');
 42686 /* harmony default export */ const elevation_component = (component_Elevation);
 43341 /* harmony default export */ const elevation_component = (component_Elevation);
 42687 
 43342 
 42688 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/styles.js
 43343 ;// ./node_modules/@wordpress/components/build-module/card/styles.js
 42689 function card_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 43344 function card_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 42690 /**
 43345 /**
 42691  * External dependencies
 43346  * External dependencies
 42692  */
 43347  */
 42693 
 43348 
 42699 
 43354 
 42700 // Since the border for `Card` is rendered via the `box-shadow` property
 43355 // Since the border for `Card` is rendered via the `box-shadow` property
 42701 // (as opposed to the `border` property), the value of the border radius needs
 43356 // (as opposed to the `border` property), the value of the border radius needs
 42702 // to be adjusted by removing 1px (this is because the `box-shadow` renders
 43357 // to be adjusted by removing 1px (this is because the `box-shadow` renders
 42703 // as an "outer radius").
 43358 // as an "outer radius").
 42704 const adjustedBorderRadius = `calc(${config_values.cardBorderRadius} - 1px)`;
 43359 const adjustedBorderRadius = `calc(${config_values.radiusLarge} - 1px)`;
 42705 const Card = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:0 0 0 1px ", config_values.surfaceBorderColor, ";outline:none;" + ( true ? "" : 0),  true ? "" : 0);
 43360 const Card = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:0 0 0 1px ", config_values.surfaceBorderColor, ";outline:none;" + ( true ? "" : 0),  true ? "" : 0);
 42706 const Header =  true ? {
 43361 const Header =  true ? {
 42707   name: "1showjb",
 43362   name: "1showjb",
 42708   styles: "border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"
 43363   styles: "border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"
 42709 } : 0;
 43364 } : 0;
 42748   // are kept for legacy reasons to support older values of the `size` prop.
 43403   // are kept for legacy reasons to support older values of the `size` prop.
 42749   extraSmall: xSmallCardPadding
 43404   extraSmall: xSmallCardPadding
 42750 };
 43405 };
 42751 const shady = /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.ui.backgroundDisabled, ";" + ( true ? "" : 0),  true ? "" : 0);
 43406 const shady = /*#__PURE__*/emotion_react_browser_esm_css("background-color:", COLORS.ui.backgroundDisabled, ";" + ( true ? "" : 0),  true ? "" : 0);
 42752 
 43407 
 42753 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/surface/styles.js
 43408 ;// ./node_modules/@wordpress/components/build-module/surface/styles.js
 42754 /**
 43409 /**
 42755  * External dependencies
 43410  * External dependencies
 42756  */
 43411  */
 42757 
 43412 
 42758 
 43413 
 42813         return tertiary;
 43468         return tertiary;
 42814       }
 43469       }
 42815   }
 43470   }
 42816 };
 43471 };
 42817 
 43472 
 42818 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/surface/hook.js
 43473 ;// ./node_modules/@wordpress/components/build-module/surface/hook.js
 42819 /**
 43474 /**
 42820  * WordPress dependencies
 43475  * WordPress dependencies
 42821  */
 43476  */
 42822 
 43477 
 42823 
 43478 
 42854     ...otherProps,
 43509     ...otherProps,
 42855     className: classes
 43510     className: classes
 42856   };
 43511   };
 42857 }
 43512 }
 42858 
 43513 
 42859 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card/hook.js
 43514 ;// ./node_modules/@wordpress/components/build-module/card/card/hook.js
 42860 /**
 43515 /**
 42861  * WordPress dependencies
 43516  * WordPress dependencies
 42862  */
 43517  */
 42863 
 43518 
 42864 
 43519 
 42920     isRounded,
 43575     isRounded,
 42921     size
 43576     size
 42922   };
 43577   };
 42923 }
 43578 }
 42924 
 43579 
 42925 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card/component.js
 43580 ;// ./node_modules/@wordpress/components/build-module/card/card/component.js
 42926 /**
 43581 /**
 42927  * External dependencies
 43582  * External dependencies
 42928  */
 43583  */
 42929 
 43584 
 42930 /**
 43585 /**
 42933 
 43588 
 42934 
 43589 
 42935 /**
 43590 /**
 42936  * Internal dependencies
 43591  * Internal dependencies
 42937  */
 43592  */
 42938 
       
 42939 
 43593 
 42940 
 43594 
 42941 
 43595 
 42942 
 43596 
 42943 
 43597 
 42952     isBorderless,
 43606     isBorderless,
 42953     isRounded,
 43607     isRounded,
 42954     size,
 43608     size,
 42955     ...otherProps
 43609     ...otherProps
 42956   } = useCard(props);
 43610   } = useCard(props);
 42957   const elevationBorderRadius = isRounded ? config_values.cardBorderRadius : 0;
 43611   const elevationBorderRadius = isRounded ? config_values.radiusLarge : 0;
 42958   const cx = useCx();
 43612   const cx = useCx();
 42959   const elevationClassName = (0,external_wp_element_namespaceObject.useMemo)(() => cx( /*#__PURE__*/emotion_react_browser_esm_css({
 43613   const elevationClassName = (0,external_wp_element_namespaceObject.useMemo)(() => cx(/*#__PURE__*/emotion_react_browser_esm_css({
 42960     borderRadius: elevationBorderRadius
 43614     borderRadius: elevationBorderRadius
 42961   },  true ? "" : 0,  true ? "" : 0)), [cx, elevationBorderRadius]);
 43615   },  true ? "" : 0,  true ? "" : 0)), [cx, elevationBorderRadius]);
 42962   const contextProviderValue = (0,external_wp_element_namespaceObject.useMemo)(() => {
 43616   const contextProviderValue = (0,external_wp_element_namespaceObject.useMemo)(() => {
 42963     const contextProps = {
 43617     const contextProps = {
 42964       size,
 43618       size,
 43024  * ```
 43678  * ```
 43025  */
 43679  */
 43026 const component_Card = contextConnect(UnconnectedCard, 'Card');
 43680 const component_Card = contextConnect(UnconnectedCard, 'Card');
 43027 /* harmony default export */ const card_component = (component_Card);
 43681 /* harmony default export */ const card_component = (component_Card);
 43028 
 43682 
 43029 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scrollable/styles.js
 43683 ;// ./node_modules/@wordpress/components/build-module/scrollable/styles.js
 43030 function scrollable_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 43684 function scrollable_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 43031 /**
 43685 /**
 43032  * External dependencies
 43686  * External dependencies
 43033  */
 43687  */
 43034 
 43688 
 43061 const scrollAuto =  true ? {
 43715 const scrollAuto =  true ? {
 43062   name: "umwchj",
 43716   name: "umwchj",
 43063   styles: "overflow-y:auto"
 43717   styles: "overflow-y:auto"
 43064 } : 0;
 43718 } : 0;
 43065 
 43719 
 43066 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scrollable/hook.js
 43720 ;// ./node_modules/@wordpress/components/build-module/scrollable/hook.js
 43067 /**
 43721 /**
 43068  * WordPress dependencies
 43722  * WordPress dependencies
 43069  */
 43723  */
 43070 
 43724 
 43071 
 43725 
 43089     ...otherProps,
 43743     ...otherProps,
 43090     className: classes
 43744     className: classes
 43091   };
 43745   };
 43092 }
 43746 }
 43093 
 43747 
 43094 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scrollable/component.js
 43748 ;// ./node_modules/@wordpress/components/build-module/scrollable/component.js
 43095 /**
 43749 /**
 43096  * External dependencies
 43750  * External dependencies
 43097  */
 43751  */
 43098 
 43752 
 43099 /**
 43753 /**
 43128  * ```
 43782  * ```
 43129  */
 43783  */
 43130 const component_Scrollable = contextConnect(UnconnectedScrollable, 'Scrollable');
 43784 const component_Scrollable = contextConnect(UnconnectedScrollable, 'Scrollable');
 43131 /* harmony default export */ const scrollable_component = (component_Scrollable);
 43785 /* harmony default export */ const scrollable_component = (component_Scrollable);
 43132 
 43786 
 43133 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-body/hook.js
 43787 ;// ./node_modules/@wordpress/components/build-module/card/card-body/hook.js
 43134 /**
 43788 /**
 43135  * WordPress dependencies
 43789  * WordPress dependencies
 43136  */
 43790  */
 43137 
 43791 
 43138 
 43792 
 43160     className: classes,
 43814     className: classes,
 43161     isScrollable
 43815     isScrollable
 43162   };
 43816   };
 43163 }
 43817 }
 43164 
 43818 
 43165 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-body/component.js
 43819 ;// ./node_modules/@wordpress/components/build-module/card/card-body/component.js
 43166 /**
 43820 /**
 43167  * External dependencies
 43821  * External dependencies
 43168  */
 43822  */
 43169 
 43823 
 43170 /**
 43824 /**
 43208  * ```
 43862  * ```
 43209  */
 43863  */
 43210 const CardBody = contextConnect(UnconnectedCardBody, 'CardBody');
 43864 const CardBody = contextConnect(UnconnectedCardBody, 'CardBody');
 43211 /* harmony default export */ const card_body_component = (CardBody);
 43865 /* harmony default export */ const card_body_component = (CardBody);
 43212 
 43866 
 43213 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/YZEJGRDQ.js
 43867 ;// ./node_modules/@ariakit/react-core/esm/__chunks/A3CZKICO.js
 43214 "use client";
 43868 "use client";
 43215 
 43869 
 43216 
 43870 
 43217 
 43871 
 43218 // src/separator/separator.ts
 43872 // src/separator/separator.tsx
       
 43873 var A3CZKICO_TagName = "hr";
 43219 var useSeparator = createHook(
 43874 var useSeparator = createHook(
 43220   (_a) => {
 43875   function useSeparator2(_a) {
 43221     var _b = _a, { orientation = "horizontal" } = _b, props = __objRest(_b, ["orientation"]);
 43876     var _b = _a, { orientation = "horizontal" } = _b, props = __objRest(_b, ["orientation"]);
 43222     props = _4R3V3JGP_spreadValues({
 43877     props = _3YLGPPWQ_spreadValues({
 43223       role: "separator",
 43878       role: "separator",
 43224       "aria-orientation": orientation
 43879       "aria-orientation": orientation
 43225     }, props);
 43880     }, props);
 43226     return props;
 43881     return props;
 43227   }
 43882   }
 43228 );
 43883 );
 43229 var Separator = createComponent((props) => {
 43884 var Separator = forwardRef2(function Separator2(props) {
 43230   const htmlProps = useSeparator(props);
 43885   const htmlProps = useSeparator(props);
 43231   return _3ORBWXWF_createElement("hr", htmlProps);
 43886   return LMDWO4NN_createElement(A3CZKICO_TagName, htmlProps);
 43232 });
 43887 });
 43233 if (false) {}
 43888 
 43234 
 43889 
 43235 
 43890 
 43236 
 43891 ;// ./node_modules/@wordpress/components/build-module/divider/styles.js
 43237 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/divider/styles.js
       
 43238 
 43892 
 43239 function divider_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 43893 function divider_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 43240 /**
 43894 /**
 43241  * External dependencies
 43895  * External dependencies
 43242  */
 43896  */
 43295 },  true ? "" : 0,  true ? "" : 0);
 43949 },  true ? "" : 0,  true ? "" : 0);
 43296 const DividerView = /*#__PURE__*/emotion_styled_base_browser_esm("hr",  true ? {
 43950 const DividerView = /*#__PURE__*/emotion_styled_base_browser_esm("hr",  true ? {
 43297   target: "e19on6iw0"
 43951   target: "e19on6iw0"
 43298 } : 0)("border:0;margin:0;", renderDisplay, " ", renderBorder, " ", renderSize, " ", renderMargin, ";" + ( true ? "" : 0));
 43952 } : 0)("border:0;margin:0;", renderDisplay, " ", renderBorder, " ", renderSize, " ", renderMargin, ";" + ( true ? "" : 0));
 43299 
 43953 
 43300 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/divider/component.js
 43954 ;// ./node_modules/@wordpress/components/build-module/divider/component.js
 43301 /**
 43955 /**
 43302  * External dependencies
 43956  * External dependencies
 43303  */
 43957  */
 43304 // eslint-disable-next-line no-restricted-imports
       
 43305 
 43958 
 43306 
 43959 
 43307 /**
 43960 /**
 43308  * Internal dependencies
 43961  * Internal dependencies
 43309  */
 43962  */
 43342  * ```
 43995  * ```
 43343  */
 43996  */
 43344 const component_Divider = contextConnect(UnconnectedDivider, 'Divider');
 43997 const component_Divider = contextConnect(UnconnectedDivider, 'Divider');
 43345 /* harmony default export */ const divider_component = (component_Divider);
 43998 /* harmony default export */ const divider_component = (component_Divider);
 43346 
 43999 
 43347 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-divider/hook.js
 44000 ;// ./node_modules/@wordpress/components/build-module/card/card-divider/hook.js
 43348 /**
 44001 /**
 43349  * WordPress dependencies
 44002  * WordPress dependencies
 43350  */
 44003  */
 43351 
 44004 
 43352 
 44005 
 43370     ...otherProps,
 44023     ...otherProps,
 43371     className: classes
 44024     className: classes
 43372   };
 44025   };
 43373 }
 44026 }
 43374 
 44027 
 43375 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-divider/component.js
 44028 ;// ./node_modules/@wordpress/components/build-module/card/card-divider/component.js
 43376 /**
 44029 /**
 43377  * External dependencies
 44030  * External dependencies
 43378  */
 44031  */
 43379 
 44032 
 43380 /**
 44033 /**
 43408  * ```
 44061  * ```
 43409  */
 44062  */
 43410 const CardDivider = contextConnect(UnconnectedCardDivider, 'CardDivider');
 44063 const CardDivider = contextConnect(UnconnectedCardDivider, 'CardDivider');
 43411 /* harmony default export */ const card_divider_component = (CardDivider);
 44064 /* harmony default export */ const card_divider_component = (CardDivider);
 43412 
 44065 
 43413 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-footer/hook.js
 44066 ;// ./node_modules/@wordpress/components/build-module/card/card-footer/hook.js
 43414 /**
 44067 /**
 43415  * WordPress dependencies
 44068  * WordPress dependencies
 43416  */
 44069  */
 43417 
 44070 
 43418 
 44071 
 43441     className: classes,
 44094     className: classes,
 43442     justify
 44095     justify
 43443   };
 44096   };
 43444 }
 44097 }
 43445 
 44098 
 43446 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-footer/component.js
 44099 ;// ./node_modules/@wordpress/components/build-module/card/card-footer/component.js
 43447 /**
 44100 /**
 43448  * External dependencies
 44101  * External dependencies
 43449  */
 44102  */
 43450 
 44103 
 43451 /**
 44104 /**
 43477  * ```
 44130  * ```
 43478  */
 44131  */
 43479 const CardFooter = contextConnect(UnconnectedCardFooter, 'CardFooter');
 44132 const CardFooter = contextConnect(UnconnectedCardFooter, 'CardFooter');
 43480 /* harmony default export */ const card_footer_component = (CardFooter);
 44133 /* harmony default export */ const card_footer_component = (CardFooter);
 43481 
 44134 
 43482 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-header/hook.js
 44135 ;// ./node_modules/@wordpress/components/build-module/card/card-header/hook.js
 43483 /**
 44136 /**
 43484  * WordPress dependencies
 44137  * WordPress dependencies
 43485  */
 44138  */
 43486 
 44139 
 43487 
 44140 
 43508     ...otherProps,
 44161     ...otherProps,
 43509     className: classes
 44162     className: classes
 43510   };
 44163   };
 43511 }
 44164 }
 43512 
 44165 
 43513 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-header/component.js
 44166 ;// ./node_modules/@wordpress/components/build-module/card/card-header/component.js
 43514 /**
 44167 /**
 43515  * External dependencies
 44168  * External dependencies
 43516  */
 44169  */
 43517 
 44170 
 43518 /**
 44171 /**
 43544  * ```
 44197  * ```
 43545  */
 44198  */
 43546 const CardHeader = contextConnect(UnconnectedCardHeader, 'CardHeader');
 44199 const CardHeader = contextConnect(UnconnectedCardHeader, 'CardHeader');
 43547 /* harmony default export */ const card_header_component = (CardHeader);
 44200 /* harmony default export */ const card_header_component = (CardHeader);
 43548 
 44201 
 43549 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-media/hook.js
 44202 ;// ./node_modules/@wordpress/components/build-module/card/card-media/hook.js
 43550 /**
 44203 /**
 43551  * WordPress dependencies
 44204  * WordPress dependencies
 43552  */
 44205  */
 43553 
 44206 
 43554 
 44207 
 43572     ...otherProps,
 44225     ...otherProps,
 43573     className: classes
 44226     className: classes
 43574   };
 44227   };
 43575 }
 44228 }
 43576 
 44229 
 43577 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/card/card-media/component.js
 44230 ;// ./node_modules/@wordpress/components/build-module/card/card-media/component.js
 43578 /**
 44231 /**
 43579  * External dependencies
 44232  * External dependencies
 43580  */
 44233  */
 43581 
 44234 
 43582 /**
 44235 /**
 43614  * ```
 44267  * ```
 43615  */
 44268  */
 43616 const CardMedia = contextConnect(UnconnectedCardMedia, 'CardMedia');
 44269 const CardMedia = contextConnect(UnconnectedCardMedia, 'CardMedia');
 43617 /* harmony default export */ const card_media_component = (CardMedia);
 44270 /* harmony default export */ const card_media_component = (CardMedia);
 43618 
 44271 
 43619 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/checkbox-control/index.js
 44272 ;// ./node_modules/@wordpress/components/build-module/checkbox-control/index.js
 43620 /**
 44273 /**
 43621  * External dependencies
 44274  * External dependencies
 43622  */
 44275  */
 43623 
 44276 
 43624 /**
 44277 /**
 43630 
 44283 
 43631 
 44284 
 43632 /**
 44285 /**
 43633  * Internal dependencies
 44286  * Internal dependencies
 43634  */
 44287  */
 43635 
       
 43636 
 44288 
 43637 
 44289 
 43638 
 44290 
 43639 /**
 44291 /**
 43640  * Checkboxes allow the user to select one or more items from a set.
 44292  * Checkboxes allow the user to select one or more items from a set.
 43645  *
 44297  *
 43646  * const MyCheckboxControl = () => {
 44298  * const MyCheckboxControl = () => {
 43647  *   const [ isChecked, setChecked ] = useState( true );
 44299  *   const [ isChecked, setChecked ] = useState( true );
 43648  *   return (
 44300  *   return (
 43649  *     <CheckboxControl
 44301  *     <CheckboxControl
       
 44302  *       __nextHasNoMarginBottom
 43650  *       label="Is author"
 44303  *       label="Is author"
 43651  *       help="Is the user a author or not?"
 44304  *       help="Is the user a author or not?"
 43652  *       checked={ isChecked }
 44305  *       checked={ isChecked }
 43653  *       onChange={ setChecked }
 44306  *       onChange={ setChecked }
 43654  *     />
 44307  *     />
 43692   }, [checked, indeterminate]);
 44345   }, [checked, indeterminate]);
 43693   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(CheckboxControl, 'inspector-checkbox-control', idProp);
 44346   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(CheckboxControl, 'inspector-checkbox-control', idProp);
 43694   const onChangeValue = event => onChange(event.target.checked);
 44347   const onChangeValue = event => onChange(event.target.checked);
 43695   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 44348   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 43696     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 44349     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
       
 44350     __associatedWPComponentName: "CheckboxControl",
 43697     label: heading,
 44351     label: heading,
 43698     id: id,
 44352     id: id,
 43699     help: help && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 44353     help: help && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 43700       className: "components-checkbox-control__help",
 44354       className: "components-checkbox-control__help",
 43701       children: help
 44355       children: help
 43734     })
 44388     })
 43735   });
 44389   });
 43736 }
 44390 }
 43737 /* harmony default export */ const checkbox_control = (CheckboxControl);
 44391 /* harmony default export */ const checkbox_control = (CheckboxControl);
 43738 
 44392 
 43739 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/clipboard-button/index.js
 44393 ;// ./node_modules/@wordpress/components/build-module/clipboard-button/index.js
 43740 /**
 44394 /**
 43741  * External dependencies
 44395  * External dependencies
 43742  */
 44396  */
 43743 
 44397 
 43744 
 44398 
 43765 }) {
 44419 }) {
 43766   external_wp_deprecated_default()('wp.components.ClipboardButton', {
 44420   external_wp_deprecated_default()('wp.components.ClipboardButton', {
 43767     since: '5.8',
 44421     since: '5.8',
 43768     alternative: 'wp.compose.useCopyToClipboard'
 44422     alternative: 'wp.compose.useCopyToClipboard'
 43769   });
 44423   });
 43770   const timeoutId = (0,external_wp_element_namespaceObject.useRef)();
 44424   const timeoutIdRef = (0,external_wp_element_namespaceObject.useRef)();
 43771   const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text, () => {
 44425   const ref = (0,external_wp_compose_namespaceObject.useCopyToClipboard)(text, () => {
 43772     onCopy();
 44426     onCopy();
 43773     if (timeoutId.current) {
 44427     if (timeoutIdRef.current) {
 43774       clearTimeout(timeoutId.current);
 44428       clearTimeout(timeoutIdRef.current);
 43775     }
 44429     }
 43776     if (onFinishCopy) {
 44430     if (onFinishCopy) {
 43777       timeoutId.current = setTimeout(() => onFinishCopy(), TIMEOUT);
 44431       timeoutIdRef.current = setTimeout(() => onFinishCopy(), TIMEOUT);
 43778     }
 44432     }
 43779   });
 44433   });
 43780   (0,external_wp_element_namespaceObject.useEffect)(() => {
 44434   (0,external_wp_element_namespaceObject.useEffect)(() => {
 43781     if (timeoutId.current) {
 44435     return () => {
 43782       clearTimeout(timeoutId.current);
 44436       if (timeoutIdRef.current) {
 43783     }
 44437         clearTimeout(timeoutIdRef.current);
       
 44438       }
       
 44439     };
 43784   }, []);
 44440   }, []);
 43785   const classes = dist_clsx('components-clipboard-button', className);
 44441   const classes = dist_clsx('components-clipboard-button', className);
 43786 
 44442 
 43787   // Workaround for inconsistent behavior in Safari, where <textarea> is not
 44443   // Workaround for inconsistent behavior in Safari, where <textarea> is not
 43788   // the document.activeElement at the moment when the copy event fires.
 44444   // the document.activeElement at the moment when the copy event fires.
 43800     onCopy: focusOnCopyEventTarget,
 44456     onCopy: focusOnCopyEventTarget,
 43801     children: children
 44457     children: children
 43802   });
 44458   });
 43803 }
 44459 }
 43804 
 44460 
 43805 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
 44461 ;// ./node_modules/@wordpress/icons/build-module/library/more-vertical.js
 43806 /**
 44462 /**
 43807  * WordPress dependencies
 44463  * WordPress dependencies
 43808  */
 44464  */
 43809 
 44465 
 43810 
 44466 
 43815     d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
 44471     d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
 43816   })
 44472   })
 43817 });
 44473 });
 43818 /* harmony default export */ const more_vertical = (moreVertical);
 44474 /* harmony default export */ const more_vertical = (moreVertical);
 43819 
 44475 
 43820 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/styles.js
 44476 ;// ./node_modules/@wordpress/components/build-module/item-group/styles.js
 43821 function item_group_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 44477 function item_group_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 43822 /**
 44478 /**
 43823  * External dependencies
 44479  * External dependencies
 43824  */
 44480  */
 43825 
 44481 
 43839   name: "150ruhm",
 44495   name: "150ruhm",
 43840   styles: "box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"
 44496   styles: "box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"
 43841 } : 0;
 44497 } : 0;
 43842 const bordered = /*#__PURE__*/emotion_react_browser_esm_css("border:1px solid ", config_values.surfaceBorderColor, ";" + ( true ? "" : 0),  true ? "" : 0);
 44498 const bordered = /*#__PURE__*/emotion_react_browser_esm_css("border:1px solid ", config_values.surfaceBorderColor, ";" + ( true ? "" : 0),  true ? "" : 0);
 43843 const separated = /*#__PURE__*/emotion_react_browser_esm_css(">*:not( marquee )>*{border-bottom:1px solid ", config_values.surfaceBorderColor, ";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}" + ( true ? "" : 0),  true ? "" : 0);
 44499 const separated = /*#__PURE__*/emotion_react_browser_esm_css(">*:not( marquee )>*{border-bottom:1px solid ", config_values.surfaceBorderColor, ";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}" + ( true ? "" : 0),  true ? "" : 0);
 43844 const styles_borderRadius = config_values.controlBorderRadius;
 44500 const styles_borderRadius = config_values.radiusSmall;
 43845 const styles_spacedAround = /*#__PURE__*/emotion_react_browser_esm_css("border-radius:", styles_borderRadius, ";" + ( true ? "" : 0),  true ? "" : 0);
 44501 const styles_spacedAround = /*#__PURE__*/emotion_react_browser_esm_css("border-radius:", styles_borderRadius, ";" + ( true ? "" : 0),  true ? "" : 0);
 43846 const styles_rounded = /*#__PURE__*/emotion_react_browser_esm_css("border-radius:", styles_borderRadius, ";>*:first-of-type>*{border-top-left-radius:", styles_borderRadius, ";border-top-right-radius:", styles_borderRadius, ";}>*:last-of-type>*{border-bottom-left-radius:", styles_borderRadius, ";border-bottom-right-radius:", styles_borderRadius, ";}" + ( true ? "" : 0),  true ? "" : 0);
 44502 const styles_rounded = /*#__PURE__*/emotion_react_browser_esm_css("border-radius:", styles_borderRadius, ";>*:first-of-type>*{border-top-left-radius:", styles_borderRadius, ";border-top-right-radius:", styles_borderRadius, ";}>*:last-of-type>*{border-bottom-left-radius:", styles_borderRadius, ";border-bottom-right-radius:", styles_borderRadius, ";}" + ( true ? "" : 0),  true ? "" : 0);
 43847 const baseFontHeight = `calc(${config_values.fontSize} * ${config_values.fontLineHeightBase})`;
 44503 const baseFontHeight = `calc(${config_values.fontSize} * ${config_values.fontLineHeightBase})`;
 43848 
 44504 
 43849 /*
 44505 /*
 43855  */
 44511  */
 43856 const paddingY = `calc((${config_values.controlHeight} - ${baseFontHeight} - 2px) / 2)`;
 44512 const paddingY = `calc((${config_values.controlHeight} - ${baseFontHeight} - 2px) / 2)`;
 43857 const paddingYSmall = `calc((${config_values.controlHeightSmall} - ${baseFontHeight} - 2px) / 2)`;
 44513 const paddingYSmall = `calc((${config_values.controlHeightSmall} - ${baseFontHeight} - 2px) / 2)`;
 43858 const paddingYLarge = `calc((${config_values.controlHeightLarge} - ${baseFontHeight} - 2px) / 2)`;
 44514 const paddingYLarge = `calc((${config_values.controlHeightLarge} - ${baseFontHeight} - 2px) / 2)`;
 43859 const itemSizes = {
 44515 const itemSizes = {
 43860   small: /*#__PURE__*/emotion_react_browser_esm_css("padding:", paddingYSmall, " ", config_values.controlPaddingXSmall, ";" + ( true ? "" : 0),  true ? "" : 0),
 44516   small: /*#__PURE__*/emotion_react_browser_esm_css("padding:", paddingYSmall, " ", config_values.controlPaddingXSmall, "px;" + ( true ? "" : 0),  true ? "" : 0),
 43861   medium: /*#__PURE__*/emotion_react_browser_esm_css("padding:", paddingY, " ", config_values.controlPaddingX, ";" + ( true ? "" : 0),  true ? "" : 0),
 44517   medium: /*#__PURE__*/emotion_react_browser_esm_css("padding:", paddingY, " ", config_values.controlPaddingX, "px;" + ( true ? "" : 0),  true ? "" : 0),
 43862   large: /*#__PURE__*/emotion_react_browser_esm_css("padding:", paddingYLarge, " ", config_values.controlPaddingXLarge, ";" + ( true ? "" : 0),  true ? "" : 0)
 44518   large: /*#__PURE__*/emotion_react_browser_esm_css("padding:", paddingYLarge, " ", config_values.controlPaddingXLarge, "px;" + ( true ? "" : 0),  true ? "" : 0)
 43863 };
 44519 };
 43864 
 44520 
 43865 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item-group/hook.js
 44521 ;// ./node_modules/@wordpress/components/build-module/item-group/context.js
       
 44522 /**
       
 44523  * WordPress dependencies
       
 44524  */
       
 44525 
       
 44526 
       
 44527 /**
       
 44528  * Internal dependencies
       
 44529  */
       
 44530 
       
 44531 const ItemGroupContext = (0,external_wp_element_namespaceObject.createContext)({
       
 44532   size: 'medium'
       
 44533 });
       
 44534 const useItemGroupContext = () => (0,external_wp_element_namespaceObject.useContext)(ItemGroupContext);
       
 44535 
       
 44536 ;// ./node_modules/@wordpress/components/build-module/item-group/item/hook.js
       
 44537 /**
       
 44538  * WordPress dependencies
       
 44539  */
       
 44540 
       
 44541 
       
 44542 /**
       
 44543  * Internal dependencies
       
 44544  */
       
 44545 
       
 44546 
       
 44547 
       
 44548 
       
 44549 
       
 44550 function useItem(props) {
       
 44551   const {
       
 44552     as: asProp,
       
 44553     className,
       
 44554     onClick,
       
 44555     role = 'listitem',
       
 44556     size: sizeProp,
       
 44557     ...otherProps
       
 44558   } = useContextSystem(props, 'Item');
       
 44559   const {
       
 44560     spacedAround,
       
 44561     size: contextSize
       
 44562   } = useItemGroupContext();
       
 44563   const size = sizeProp || contextSize;
       
 44564   const as = asProp || (typeof onClick !== 'undefined' ? 'button' : 'div');
       
 44565   const cx = useCx();
       
 44566   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx((as === 'button' || as === 'a') && unstyledButton(as), itemSizes[size] || itemSizes.medium, item, spacedAround && styles_spacedAround, className), [as, className, cx, size, spacedAround]);
       
 44567   const wrapperClassName = cx(itemWrapper);
       
 44568   return {
       
 44569     as,
       
 44570     className: classes,
       
 44571     onClick,
       
 44572     wrapperClassName,
       
 44573     role,
       
 44574     ...otherProps
       
 44575   };
       
 44576 }
       
 44577 
       
 44578 ;// ./node_modules/@wordpress/components/build-module/item-group/item/component.js
       
 44579 /**
       
 44580  * External dependencies
       
 44581  */
       
 44582 
       
 44583 /**
       
 44584  * Internal dependencies
       
 44585  */
       
 44586 
       
 44587 
       
 44588 
       
 44589 
       
 44590 
       
 44591 function UnconnectedItem(props, forwardedRef) {
       
 44592   const {
       
 44593     role,
       
 44594     wrapperClassName,
       
 44595     ...otherProps
       
 44596   } = useItem(props);
       
 44597   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
       
 44598     role: role,
       
 44599     className: wrapperClassName,
       
 44600     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
       
 44601       ...otherProps,
       
 44602       ref: forwardedRef
       
 44603     })
       
 44604   });
       
 44605 }
       
 44606 
       
 44607 /**
       
 44608  * `Item` is used in combination with `ItemGroup` to display a list of items
       
 44609  * grouped and styled together.
       
 44610  *
       
 44611  * ```jsx
       
 44612  * import {
       
 44613  *   __experimentalItemGroup as ItemGroup,
       
 44614  *   __experimentalItem as Item,
       
 44615  * } from '@wordpress/components';
       
 44616  *
       
 44617  * function Example() {
       
 44618  *   return (
       
 44619  *     <ItemGroup>
       
 44620  *       <Item>Code</Item>
       
 44621  *       <Item>is</Item>
       
 44622  *       <Item>Poetry</Item>
       
 44623  *     </ItemGroup>
       
 44624  *   );
       
 44625  * }
       
 44626  * ```
       
 44627  */
       
 44628 const component_Item = contextConnect(UnconnectedItem, 'Item');
       
 44629 /* harmony default export */ const item_component = (component_Item);
       
 44630 
       
 44631 ;// ./node_modules/@wordpress/components/build-module/item-group/item-group/hook.js
 43866 /**
 44632 /**
 43867  * Internal dependencies
 44633  * Internal dependencies
 43868  */
 44634  */
 43869 
 44635 
 43870 
 44636 
 43892     isSeparated,
 44658     isSeparated,
 43893     ...otherProps
 44659     ...otherProps
 43894   };
 44660   };
 43895 }
 44661 }
 43896 
 44662 
 43897 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/context.js
 44663 ;// ./node_modules/@wordpress/components/build-module/item-group/item-group/component.js
 43898 /**
       
 43899  * WordPress dependencies
       
 43900  */
       
 43901 
       
 43902 
       
 43903 /**
       
 43904  * Internal dependencies
       
 43905  */
       
 43906 
       
 43907 const ItemGroupContext = (0,external_wp_element_namespaceObject.createContext)({
       
 43908   size: 'medium'
       
 43909 });
       
 43910 const useItemGroupContext = () => (0,external_wp_element_namespaceObject.useContext)(ItemGroupContext);
       
 43911 
       
 43912 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item-group/component.js
       
 43913 /**
 44664 /**
 43914  * External dependencies
 44665  * External dependencies
 43915  */
 44666  */
 43916 
 44667 
 43917 /**
 44668 /**
 43969  * ```
 44720  * ```
 43970  */
 44721  */
 43971 const ItemGroup = contextConnect(UnconnectedItemGroup, 'ItemGroup');
 44722 const ItemGroup = contextConnect(UnconnectedItemGroup, 'ItemGroup');
 43972 /* harmony default export */ const item_group_component = (ItemGroup);
 44723 /* harmony default export */ const item_group_component = (ItemGroup);
 43973 
 44724 
 43974 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/constants.js
 44725 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/constants.js
 43975 const GRADIENT_MARKERS_WIDTH = 16;
 44726 const GRADIENT_MARKERS_WIDTH = 16;
 43976 const INSERT_POINT_WIDTH = 16;
 44727 const INSERT_POINT_WIDTH = 16;
 43977 const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10;
 44728 const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10;
 43978 const MINIMUM_DISTANCE_BETWEEN_POINTS = 0;
 44729 const MINIMUM_DISTANCE_BETWEEN_POINTS = 0;
 43979 const MINIMUM_SIGNIFICANT_MOVE = 5;
 44730 const MINIMUM_SIGNIFICANT_MOVE = 5;
 43980 const KEYBOARD_CONTROL_POINT_VARIATION = MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT;
 44731 const KEYBOARD_CONTROL_POINT_VARIATION = MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT;
 43981 const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER = (INSERT_POINT_WIDTH + GRADIENT_MARKERS_WIDTH) / 2;
 44732 const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER = (INSERT_POINT_WIDTH + GRADIENT_MARKERS_WIDTH) / 2;
 43982 
 44733 
 43983 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/utils.js
 44734 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/utils.js
 43984 /**
 44735 /**
 43985  * Internal dependencies
 44736  * Internal dependencies
 43986  */
 44737  */
 43987 
 44738 
 43988 /**
 44739 /**
 44135   } = containerElement.getBoundingClientRect();
 44886   } = containerElement.getBoundingClientRect();
 44136   const absolutePositionValue = mouseXCoordinate - x;
 44887   const absolutePositionValue = mouseXCoordinate - x;
 44137   return Math.round(clampPercent(absolutePositionValue * 100 / width));
 44888   return Math.round(clampPercent(absolutePositionValue * 100 / width));
 44138 }
 44889 }
 44139 
 44890 
 44140 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/control-points.js
 44891 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/control-points.js
 44141 /**
 44892 /**
 44142  * External dependencies
 44893  * External dependencies
 44143  */
 44894  */
 44144 
 44895 
 44145 
 44896 
 44153 
 44904 
 44154 
 44905 
 44155 /**
 44906 /**
 44156  * Internal dependencies
 44907  * Internal dependencies
 44157  */
 44908  */
 44158 
       
 44159 
       
 44160 
 44909 
 44161 
 44910 
 44162 
 44911 
 44163 
 44912 
 44164 
 44913 
 44175   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ControlPointButton);
 44924   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ControlPointButton);
 44176   const descriptionId = `components-custom-gradient-picker__control-point-button-description-${instanceId}`;
 44925   const descriptionId = `components-custom-gradient-picker__control-point-button-description-${instanceId}`;
 44177   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 44926   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 44178     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 44927     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 44179       "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
 44928       "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
 44180       // translators: %1$s: gradient position e.g: 70, %2$s: gradient color code e.g: rgb(52,121,151).
 44929       // translators: 1: gradient position e.g: 70. 2: gradient color code e.g: rgb(52,121,151).
 44181       (0,external_wp_i18n_namespaceObject.__)('Gradient control point at position %1$s%% with color code %2$s.'), position, color),
 44930       (0,external_wp_i18n_namespaceObject.__)('Gradient control point at position %1$s%% with color code %2$s.'), position, color),
 44182       "aria-describedby": descriptionId,
 44931       "aria-describedby": descriptionId,
 44183       "aria-haspopup": "true",
 44932       "aria-haspopup": "true",
 44184       "aria-expanded": isOpen,
 44933       "aria-expanded": isOpen,
       
 44934       __next40pxDefaultSize: true,
 44185       className: dist_clsx('components-custom-gradient-picker__control-point-button', {
 44935       className: dist_clsx('components-custom-gradient-picker__control-point-button', {
 44186         'is-active': isOpen
 44936         'is-active': isOpen
 44187       }),
 44937       }),
 44188       ...additionalProps
 44938       ...additionalProps
 44189     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 44939     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 44223   onChange,
 44973   onChange,
 44224   onStartControlPointChange,
 44974   onStartControlPointChange,
 44225   onStopControlPointChange,
 44975   onStopControlPointChange,
 44226   __experimentalIsRenderedInSidebar
 44976   __experimentalIsRenderedInSidebar
 44227 }) {
 44977 }) {
 44228   const controlPointMoveState = (0,external_wp_element_namespaceObject.useRef)();
 44978   const controlPointMoveStateRef = (0,external_wp_element_namespaceObject.useRef)();
 44229   const onMouseMove = event => {
 44979   const onMouseMove = event => {
 44230     if (controlPointMoveState.current === undefined || gradientPickerDomRef.current === null) {
 44980     if (controlPointMoveStateRef.current === undefined || gradientPickerDomRef.current === null) {
 44231       return;
 44981       return;
 44232     }
 44982     }
 44233     const relativePosition = getHorizontalRelativeGradientPosition(event.clientX, gradientPickerDomRef.current);
 44983     const relativePosition = getHorizontalRelativeGradientPosition(event.clientX, gradientPickerDomRef.current);
 44234     const {
 44984     const {
 44235       initialPosition,
 44985       initialPosition,
 44236       index,
 44986       index,
 44237       significantMoveHappened
 44987       significantMoveHappened
 44238     } = controlPointMoveState.current;
 44988     } = controlPointMoveStateRef.current;
 44239     if (!significantMoveHappened && Math.abs(initialPosition - relativePosition) >= MINIMUM_SIGNIFICANT_MOVE) {
 44989     if (!significantMoveHappened && Math.abs(initialPosition - relativePosition) >= MINIMUM_SIGNIFICANT_MOVE) {
 44240       controlPointMoveState.current.significantMoveHappened = true;
 44990       controlPointMoveStateRef.current.significantMoveHappened = true;
 44241     }
 44991     }
 44242     onChange(updateControlPointPosition(controlPoints, index, relativePosition));
 44992     onChange(updateControlPointPosition(controlPoints, index, relativePosition));
 44243   };
 44993   };
 44244   const cleanEventListeners = () => {
 44994   const cleanEventListeners = () => {
 44245     if (window && window.removeEventListener && controlPointMoveState.current && controlPointMoveState.current.listenersActivated) {
 44995     if (window && window.removeEventListener && controlPointMoveStateRef.current && controlPointMoveStateRef.current.listenersActivated) {
 44246       window.removeEventListener('mousemove', onMouseMove);
 44996       window.removeEventListener('mousemove', onMouseMove);
 44247       window.removeEventListener('mouseup', cleanEventListeners);
 44997       window.removeEventListener('mouseup', cleanEventListeners);
 44248       onStopControlPointChange();
 44998       onStopControlPointChange();
 44249       controlPointMoveState.current.listenersActivated = false;
 44999       controlPointMoveStateRef.current.listenersActivated = false;
 44250     }
 45000     }
 44251   };
 45001   };
 44252 
 45002 
 44253   // Adding `cleanEventListeners` to the dependency array below requires the function itself to be wrapped in a `useCallback`
 45003   // Adding `cleanEventListeners` to the dependency array below requires the function itself to be wrapped in a `useCallback`
 44254   // This memoization would prevent the event listeners from being properly cleaned.
 45004   // This memoization would prevent the event listeners from being properly cleaned.
 44269         renderToggle: ({
 45019         renderToggle: ({
 44270           isOpen,
 45020           isOpen,
 44271           onToggle
 45021           onToggle
 44272         }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ControlPointButton, {
 45022         }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ControlPointButton, {
 44273           onClick: () => {
 45023           onClick: () => {
 44274             if (controlPointMoveState.current && controlPointMoveState.current.significantMoveHappened) {
 45024             if (controlPointMoveStateRef.current && controlPointMoveStateRef.current.significantMoveHappened) {
 44275               return;
 45025               return;
 44276             }
 45026             }
 44277             if (isOpen) {
 45027             if (isOpen) {
 44278               onStopControlPointChange();
 45028               onStopControlPointChange();
 44279             } else {
 45029             } else {
 44281             }
 45031             }
 44282             onToggle();
 45032             onToggle();
 44283           },
 45033           },
 44284           onMouseDown: () => {
 45034           onMouseDown: () => {
 44285             if (window && window.addEventListener) {
 45035             if (window && window.addEventListener) {
 44286               controlPointMoveState.current = {
 45036               controlPointMoveStateRef.current = {
 44287                 initialPosition,
 45037                 initialPosition,
 44288                 index,
 45038                 index,
 44289                 significantMoveHappened: false,
 45039                 significantMoveHappened: false,
 44290                 listenersActivated: true
 45040                 listenersActivated: true
 44291               };
 45041               };
 44360     },
 45110     },
 44361     renderToggle: ({
 45111     renderToggle: ({
 44362       isOpen,
 45112       isOpen,
 44363       onToggle
 45113       onToggle
 44364     }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 45114     }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 45115       __next40pxDefaultSize: true,
 44365       "aria-expanded": isOpen,
 45116       "aria-expanded": isOpen,
 44366       "aria-haspopup": "true",
 45117       "aria-haspopup": "true",
 44367       onClick: () => {
 45118       onClick: () => {
 44368         if (isOpen) {
 45119         if (isOpen) {
 44369           onCloseInserter();
 45120           onCloseInserter();
 44397   });
 45148   });
 44398 }
 45149 }
 44399 ControlPoints.InsertPoint = InsertPoint;
 45150 ControlPoints.InsertPoint = InsertPoint;
 44400 /* harmony default export */ const control_points = (ControlPoints);
 45151 /* harmony default export */ const control_points = (ControlPoints);
 44401 
 45152 
 44402 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/index.js
 45153 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/gradient-bar/index.js
 44403 /**
 45154 /**
 44404  * External dependencies
 45155  * External dependencies
 44405  */
 45156  */
 44406 
 45157 
 44407 
 45158 
 44411 
 45162 
 44412 
 45163 
 44413 /**
 45164 /**
 44414  * Internal dependencies
 45165  * Internal dependencies
 44415  */
 45166  */
 44416 
       
 44417 
 45167 
 44418 
 45168 
 44419 
 45169 
 44420 
 45170 
 44421 const customGradientBarReducer = (state, action) => {
 45171 const customGradientBarReducer = (state, action) => {
 44567   });
 45317   });
 44568 }
 45318 }
 44569 
 45319 
 44570 // EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js
 45320 // EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js
 44571 var build_node = __webpack_require__(8924);
 45321 var build_node = __webpack_require__(8924);
 44572 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/constants.js
 45322 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/constants.js
 44573 /**
 45323 /**
 44574  * WordPress dependencies
 45324  * WordPress dependencies
 44575  */
 45325  */
 44576 
 45326 
 44577 const DEFAULT_GRADIENT = 'linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)';
 45327 const DEFAULT_GRADIENT = 'linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)';
 44600   left: 270,
 45350   left: 270,
 44601   'top left': 315,
 45351   'top left': 315,
 44602   'left top': 315
 45352   'left top': 315
 44603 };
 45353 };
 44604 
 45354 
 44605 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/serializer.js
 45355 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/serializer.js
 44606 /**
 45356 /**
 44607  * External dependencies
 45357  * External dependencies
 44608  */
 45358  */
 44609 
 45359 
 44610 function serializeGradientColor({
 45360 function serializeGradientColor({
 44658     return getNumericStopValue(colorStop1) - getNumericStopValue(colorStop2);
 45408     return getNumericStopValue(colorStop1) - getNumericStopValue(colorStop2);
 44659   }).map(serializeGradientColorStop);
 45409   }).map(serializeGradientColorStop);
 44660   return `${type}(${[serializedOrientation, ...serializedColorStops].filter(Boolean).join(',')})`;
 45410   return `${type}(${[serializedOrientation, ...serializedColorStops].filter(Boolean).join(',')})`;
 44661 }
 45411 }
 44662 
 45412 
 44663 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/utils.js
 45413 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/utils.js
 44664 /**
 45414 /**
 44665  * External dependencies
 45415  * External dependencies
 44666  */
 45416  */
 44667 
 45417 
 44668 
 45418 
 44759       // See https://github.com/rafaelcaricio/gradient-parser#ast.
 45509       // See https://github.com/rafaelcaricio/gradient-parser#ast.
 44760       return 'transparent';
 45510       return 'transparent';
 44761   }
 45511   }
 44762 }
 45512 }
 44763 
 45513 
 44764 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js
 45514 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js
 44765 
 45515 
 44766 function custom_gradient_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 45516 function custom_gradient_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 44767 /**
 45517 /**
 44768  * External dependencies
 45518  * External dependencies
 44769  */
 45519  */
 44783 } : 0)( true ? {
 45533 } : 0)( true ? {
 44784   name: "1gvx10y",
 45534   name: "1gvx10y",
 44785   styles: "flex-grow:5"
 45535   styles: "flex-grow:5"
 44786 } : 0);
 45536 } : 0);
 44787 
 45537 
 44788 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/index.js
 45538 ;// ./node_modules/@wordpress/components/build-module/custom-gradient-picker/index.js
 44789 /**
 45539 /**
 44790  * External dependencies
 45540  * External dependencies
 44791  */
 45541  */
 44792 
 45542 
 44793 /**
 45543 /**
 44796 
 45546 
 44797 
 45547 
 44798 /**
 45548 /**
 44799  * Internal dependencies
 45549  * Internal dependencies
 44800  */
 45550  */
 44801 
       
 44802 
 45551 
 44803 
 45552 
 44804 
 45553 
 44805 
 45554 
 44806 
 45555 
 44897  * ```
 45646  * ```
 44898  */
 45647  */
 44899 function CustomGradientPicker({
 45648 function CustomGradientPicker({
 44900   value,
 45649   value,
 44901   onChange,
 45650   onChange,
       
 45651   enableAlpha = true,
 44902   __experimentalIsRenderedInSidebar = false
 45652   __experimentalIsRenderedInSidebar = false
 44903 }) {
 45653 }) {
 44904   const {
 45654   const {
 44905     gradientAST,
 45655     gradientAST,
 44906     hasGradient
 45656     hasGradient
 44925   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 45675   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 44926     spacing: 4,
 45676     spacing: 4,
 44927     className: "components-custom-gradient-picker",
 45677     className: "components-custom-gradient-picker",
 44928     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomGradientBar, {
 45678     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomGradientBar, {
 44929       __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
 45679       __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
       
 45680       disableAlpha: !enableAlpha,
 44930       background: background,
 45681       background: background,
 44931       hasGradient: hasGradient,
 45682       hasGradient: hasGradient,
 44932       value: controlPoints,
 45683       value: controlPoints,
 44933       onChange: newControlPoints => {
 45684       onChange: newControlPoints => {
 44934         onChange(serializeGradient(getGradientAstWithControlPoints(gradientAST, newControlPoints)));
 45685         onChange(serializeGradient(getGradientAstWithControlPoints(gradientAST, newControlPoints)));
 44952     })]
 45703     })]
 44953   });
 45704   });
 44954 }
 45705 }
 44955 /* harmony default export */ const custom_gradient_picker = (CustomGradientPicker);
 45706 /* harmony default export */ const custom_gradient_picker = (CustomGradientPicker);
 44956 
 45707 
 44957 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/gradient-picker/index.js
 45708 ;// ./node_modules/@wordpress/components/build-module/gradient-picker/index.js
 44958 /**
 45709 /**
 44959  * WordPress dependencies
 45710  * WordPress dependencies
 44960  */
 45711  */
 44961 
 45712 
 44962 
 45713 
 44963 
 45714 
 44964 
 45715 
 44965 /**
 45716 /**
 44966  * Internal dependencies
 45717  * Internal dependencies
 44967  */
 45718  */
 44968 
       
 44969 
 45719 
 44970 
 45720 
 44971 
 45721 
 44972 
 45722 
 44973 
 45723 
 45046         })]
 45796         })]
 45047       }, index);
 45797       }, index);
 45048     })
 45798     })
 45049   });
 45799   });
 45050 }
 45800 }
 45051 function gradient_picker_Component(props) {
 45801 function Component(props) {
 45052   const {
 45802   const {
 45053     asButtons,
 45803     asButtons,
 45054     loop,
 45804     loop,
 45055     actions,
 45805     actions,
 45056     headingLevel,
 45806     headingLevel,
 45062     headingLevel: headingLevel,
 45812     headingLevel: headingLevel,
 45063     ...additionalProps
 45813     ...additionalProps
 45064   }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleOrigin, {
 45814   }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SingleOrigin, {
 45065     ...additionalProps
 45815     ...additionalProps
 45066   });
 45816   });
 45067   let metaProps;
 45817   const {
 45068   if (asButtons) {
 45818     metaProps,
 45069     metaProps = {
 45819     labelProps
 45070       asButtons: true
 45820   } = getComputeCircularOptionPickerCommonProps(asButtons, loop, ariaLabel, ariaLabelledby);
 45071     };
       
 45072   } else {
       
 45073     const _metaProps = {
       
 45074       asButtons: false,
       
 45075       loop
       
 45076     };
       
 45077     if (ariaLabel) {
       
 45078       metaProps = {
       
 45079         ..._metaProps,
       
 45080         'aria-label': ariaLabel
       
 45081       };
       
 45082     } else if (ariaLabelledby) {
       
 45083       metaProps = {
       
 45084         ..._metaProps,
       
 45085         'aria-labelledby': ariaLabelledby
       
 45086       };
       
 45087     } else {
       
 45088       metaProps = {
       
 45089         ..._metaProps,
       
 45090         'aria-label': (0,external_wp_i18n_namespaceObject.__)('Custom color picker.')
       
 45091       };
       
 45092     }
       
 45093   }
       
 45094   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
 45821   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
 45095     ...metaProps,
 45822     ...metaProps,
       
 45823     ...labelProps,
 45096     actions: actions,
 45824     actions: actions,
 45097     options: options
 45825     options: options
 45098   });
 45826   });
 45099 }
 45827 }
 45100 
 45828 
 45101 /**
 45829 /**
 45102  *  GradientPicker is a React component that renders a color gradient picker to
 45830  * GradientPicker is a React component that renders a color gradient picker to
 45103  * define a multi step gradient. There's either a _linear_ or a _radial_ type
 45831  * define a multi step gradient. There's either a _linear_ or a _radial_ type
 45104  * available.
 45832  * available.
 45105  *
 45833  *
 45106  * ```jsx
 45834  * ```jsx
 45107  *import { GradientPicker } from '@wordpress/components';
 45835  * import { useState } from 'react';
 45108  *import { useState } from '@wordpress/element';
 45836  * import { GradientPicker } from '@wordpress/components';
 45109  *
 45837  *
 45110  *const myGradientPicker = () => {
 45838  * const MyGradientPicker = () => {
 45111  *	const [ gradient, setGradient ] = useState( null );
 45839  *   const [ gradient, setGradient ] = useState( null );
 45112  *
 45840  *
 45113  *	return (
 45841  *   return (
 45114  *		<GradientPicker
 45842  *     <GradientPicker
 45115  *			value={ gradient }
 45843  *       value={ gradient }
 45116  *			onChange={ ( currentGradient ) => setGradient( currentGradient ) }
 45844  *       onChange={ ( currentGradient ) => setGradient( currentGradient ) }
 45117  *			gradients={ [
 45845  *       gradients={ [
 45118  *				{
 45846  *         {
 45119  *					name: 'JShine',
 45847  *           name: 'JShine',
 45120  *					gradient:
 45848  *           gradient:
 45121  *						'linear-gradient(135deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)',
 45849  *             'linear-gradient(135deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)',
 45122  *					slug: 'jshine',
 45850  *           slug: 'jshine',
 45123  *				},
 45851  *         },
 45124  *				{
 45852  *         {
 45125  *					name: 'Moonlit Asteroid',
 45853  *           name: 'Moonlit Asteroid',
 45126  *					gradient:
 45854  *           gradient:
 45127  *						'linear-gradient(135deg,#0F2027 0%, #203A43 0%, #2c5364 100%)',
 45855  *             'linear-gradient(135deg,#0F2027 0%, #203A43 0%, #2c5364 100%)',
 45128  *					slug: 'moonlit-asteroid',
 45856  *           slug: 'moonlit-asteroid',
 45129  *				},
 45857  *         },
 45130  *				{
 45858  *         {
 45131  *					name: 'Rastafarie',
 45859  *           name: 'Rastafarie',
 45132  *					gradient:
 45860  *           gradient:
 45133  *						'linear-gradient(135deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)',
 45861  *             'linear-gradient(135deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)',
 45134  *					slug: 'rastafari',
 45862  *           slug: 'rastafari',
 45135  *				},
 45863  *         },
 45136  *			] }
 45864  *       ] }
 45137  *		/>
 45865  *     />
 45138  *	);
 45866  *   );
 45139  *};
 45867  * };
 45140  *```
 45868  *```
 45141  *
 45869  *
 45142  */
 45870  */
 45143 function GradientPicker({
 45871 function GradientPicker({
 45144   className,
 45872   className,
 45145   gradients = [],
 45873   gradients = [],
 45146   onChange,
 45874   onChange,
 45147   value,
 45875   value,
 45148   clearable = true,
 45876   clearable = true,
       
 45877   enableAlpha = true,
 45149   disableCustomGradients = false,
 45878   disableCustomGradients = false,
 45150   __experimentalIsRenderedInSidebar,
 45879   __experimentalIsRenderedInSidebar,
 45151   headingLevel = 2,
 45880   headingLevel = 2,
 45152   ...additionalProps
 45881   ...additionalProps
 45153 }) {
 45882 }) {
 45154   const clearGradient = (0,external_wp_element_namespaceObject.useCallback)(() => onChange(undefined), [onChange]);
 45883   const clearGradient = (0,external_wp_element_namespaceObject.useCallback)(() => onChange(undefined), [onChange]);
 45155   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 45884   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 45156     spacing: gradients.length ? 4 : 0,
 45885     spacing: gradients.length ? 4 : 0,
 45157     children: [!disableCustomGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(custom_gradient_picker, {
 45886     children: [!disableCustomGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(custom_gradient_picker, {
 45158       __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
 45887       __experimentalIsRenderedInSidebar: __experimentalIsRenderedInSidebar,
       
 45888       enableAlpha: enableAlpha,
 45159       value: value,
 45889       value: value,
 45160       onChange: onChange
 45890       onChange: onChange
 45161     }), (gradients.length > 0 || clearable) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(gradient_picker_Component, {
 45891     }), (gradients.length > 0 || clearable) && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
 45162       ...additionalProps,
 45892       ...additionalProps,
 45163       className: className,
 45893       className: className,
 45164       clearGradient: clearGradient,
 45894       clearGradient: clearGradient,
 45165       gradients: gradients,
 45895       gradients: gradients,
 45166       onChange: onChange,
 45896       onChange: onChange,
 45167       value: value,
 45897       value: value,
 45168       actions: clearable && !disableCustomGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
 45898       actions: clearable && !disableCustomGradients && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
 45169         onClick: clearGradient,
 45899         onClick: clearGradient,
       
 45900         accessibleWhenDisabled: true,
       
 45901         disabled: !value,
 45170         children: (0,external_wp_i18n_namespaceObject.__)('Clear')
 45902         children: (0,external_wp_i18n_namespaceObject.__)('Clear')
 45171       }),
 45903       }),
 45172       headingLevel: headingLevel
 45904       headingLevel: headingLevel
 45173     })]
 45905     })]
 45174   });
 45906   });
 45175 }
 45907 }
 45176 /* harmony default export */ const gradient_picker = (GradientPicker);
 45908 /* harmony default export */ const gradient_picker = (GradientPicker);
 45177 
 45909 
 45178 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/menu.js
 45910 ;// ./node_modules/@wordpress/icons/build-module/library/menu.js
 45179 /**
 45911 /**
 45180  * WordPress dependencies
 45912  * WordPress dependencies
 45181  */
 45913  */
 45182 
 45914 
 45183 
 45915 
 45188     d: "M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"
 45920     d: "M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"
 45189   })
 45921   })
 45190 });
 45922 });
 45191 /* harmony default export */ const library_menu = (menu);
 45923 /* harmony default export */ const library_menu = (menu);
 45192 
 45924 
 45193 ;// CONCATENATED MODULE: external ["wp","dom"]
 45925 ;// external ["wp","dom"]
 45194 const external_wp_dom_namespaceObject = window["wp"]["dom"];
 45926 const external_wp_dom_namespaceObject = window["wp"]["dom"];
 45195 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/container.js
 45927 ;// ./node_modules/@wordpress/components/build-module/navigable-container/container.js
 45196 /**
 45928 /**
 45197  * External dependencies
 45929  * External dependencies
 45198  */
 45930  */
 45199 
 45931 
 45200 /**
 45932 /**
 45360   });
 46092   });
 45361 };
 46093 };
 45362 forwardedNavigableContainer.displayName = 'NavigableContainer';
 46094 forwardedNavigableContainer.displayName = 'NavigableContainer';
 45363 /* harmony default export */ const container = ((0,external_wp_element_namespaceObject.forwardRef)(forwardedNavigableContainer));
 46095 /* harmony default export */ const container = ((0,external_wp_element_namespaceObject.forwardRef)(forwardedNavigableContainer));
 45364 
 46096 
 45365 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/menu.js
 46097 ;// ./node_modules/@wordpress/components/build-module/navigable-container/menu.js
 45366 /**
 46098 /**
 45367  * External dependencies
 46099  * External dependencies
 45368  */
 46100  */
 45369 
 46101 
 45370 /**
 46102 /**
 45445  *  ```
 46177  *  ```
 45446  */
 46178  */
 45447 const NavigableMenu = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedNavigableMenu);
 46179 const NavigableMenu = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedNavigableMenu);
 45448 /* harmony default export */ const navigable_container_menu = (NavigableMenu);
 46180 /* harmony default export */ const navigable_container_menu = (NavigableMenu);
 45449 
 46181 
 45450 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown-menu/index.js
 46182 ;// ./node_modules/@wordpress/components/build-module/dropdown-menu/index.js
 45451 /**
 46183 /**
 45452  * External dependencies
 46184  * External dependencies
 45453  */
 46185  */
 45454 
 46186 
 45455 
 46187 
 45459 
 46191 
 45460 
 46192 
 45461 /**
 46193 /**
 45462  * Internal dependencies
 46194  * Internal dependencies
 45463  */
 46195  */
 45464 
       
 45465 
 46196 
 45466 
 46197 
 45467 
 46198 
 45468 
 46199 
 45469 
 46200 
 45577       }, menuProps);
 46308       }, menuProps);
 45578       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(navigable_container_menu, {
 46309       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(navigable_container_menu, {
 45579         ...mergedMenuProps,
 46310         ...mergedMenuProps,
 45580         role: "menu",
 46311         role: "menu",
 45581         children: [dropdown_menu_isFunction(children) ? children(props) : null, controlSets?.flatMap((controlSet, indexOfSet) => controlSet.map((control, indexOfControl) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 46312         children: [dropdown_menu_isFunction(children) ? children(props) : null, controlSets?.flatMap((controlSet, indexOfSet) => controlSet.map((control, indexOfControl) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 46313           __next40pxDefaultSize: true,
 45582           onClick: event => {
 46314           onClick: event => {
 45583             event.stopPropagation();
 46315             event.stopPropagation();
 45584             props.onClose();
 46316             props.onClose();
 45585             if (control.onClick) {
 46317             if (control.onClick) {
 45586               control.onClick();
 46318               control.onClick();
 45593           }),
 46325           }),
 45594           icon: control.icon,
 46326           icon: control.icon,
 45595           label: control.label,
 46327           label: control.label,
 45596           "aria-checked": control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.isActive : undefined,
 46328           "aria-checked": control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.isActive : undefined,
 45597           role: control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.role : 'menuitem',
 46329           role: control.role === 'menuitemcheckbox' || control.role === 'menuitemradio' ? control.role : 'menuitem',
       
 46330           accessibleWhenDisabled: true,
 45598           disabled: control.isDisabled,
 46331           disabled: control.isDisabled,
 45599           children: control.title
 46332           children: control.title
 45600         }, [indexOfSet, indexOfControl].join())))]
 46333         }, [indexOfSet, indexOfControl].join())))]
 45601       });
 46334       });
 45602     },
 46335     },
 45687  *
 46420  *
 45688  */
 46421  */
 45689 const DropdownMenu = contextConnectWithoutRef(UnconnectedDropdownMenu, 'DropdownMenu');
 46422 const DropdownMenu = contextConnectWithoutRef(UnconnectedDropdownMenu, 'DropdownMenu');
 45690 /* harmony default export */ const dropdown_menu = (DropdownMenu);
 46423 /* harmony default export */ const dropdown_menu = (DropdownMenu);
 45691 
 46424 
 45692 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/palette-edit/styles.js
 46425 ;// ./node_modules/@wordpress/components/build-module/palette-edit/styles.js
 45693 
 46426 
 45694 function palette_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 46427 function palette_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 45695 /**
 46428 /**
 45696  * External dependencies
 46429  * External dependencies
 45697  */
 46430  */
 45698 
 46431 
 45699 
       
 45700 
       
 45701 /**
 46432 /**
 45702  * Internal dependencies
 46433  * Internal dependencies
 45703  */
 46434  */
 45704 
 46435 
 45705 
 46436 
 45708 
 46439 
 45709 
 46440 
 45710 
 46441 
 45711 
 46442 
 45712 const IndicatorStyled = /*#__PURE__*/emotion_styled_base_browser_esm(color_indicator,  true ? {
 46443 const IndicatorStyled = /*#__PURE__*/emotion_styled_base_browser_esm(color_indicator,  true ? {
 45713   target: "e1lpqc909"
 46444   target: "e1lpqc908"
 45714 } : 0)("&&{flex-shrink:0;width:", space(6), ";height:", space(6), ";}" + ( true ? "" : 0));
 46445 } : 0)("&&{flex-shrink:0;width:", space(6), ";height:", space(6), ";}" + ( true ? "" : 0));
 45715 const NameInputControl = /*#__PURE__*/emotion_styled_base_browser_esm(input_control,  true ? {
 46446 const NameInputControl = /*#__PURE__*/emotion_styled_base_browser_esm(input_control,  true ? {
 45716   target: "e1lpqc908"
       
 45717 } : 0)(Container, "{background:", COLORS.gray[100], ";border-radius:", config_values.controlBorderRadius, ";", Input, Input, Input, Input, "{height:", space(8), ";}", BackdropUI, BackdropUI, BackdropUI, "{border-color:transparent;box-shadow:none;}}" + ( true ? "" : 0));
       
 45718 const buttonStyleReset = ({
       
 45719   as
       
 45720 }) => {
       
 45721   if (as === 'button') {
       
 45722     return /*#__PURE__*/emotion_react_browser_esm_css("display:flex;align-items:center;width:100%;appearance:none;background:transparent;border:none;border-radius:0;padding:0;cursor:pointer;&:hover{color:", COLORS.theme.accent, ";}" + ( true ? "" : 0),  true ? "" : 0);
       
 45723   }
       
 45724   return null;
       
 45725 };
       
 45726 const PaletteItem = /*#__PURE__*/emotion_styled_base_browser_esm(component,  true ? {
       
 45727   target: "e1lpqc907"
 46447   target: "e1lpqc907"
 45728 } : 0)(buttonStyleReset, " padding-block:3px;padding-inline-start:", space(3), ";border:1px solid ", config_values.surfaceBorderColor, ";border-bottom-color:transparent;font-size:", font('default.fontSize'), ";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:", config_values.controlBorderRadius, ";border-top-right-radius:", config_values.controlBorderRadius, ";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:", config_values.controlBorderRadius, ";border-bottom-right-radius:", config_values.controlBorderRadius, ";border-bottom-color:", config_values.surfaceBorderColor, ";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:", COLORS.theme.accent, ";}" + ( true ? "" : 0));
 46448 } : 0)(Container, "{background:", COLORS.gray[100], ";border-radius:", config_values.radiusXSmall, ";", Input, Input, Input, Input, "{height:", space(8), ";}", BackdropUI, BackdropUI, BackdropUI, "{border-color:transparent;box-shadow:none;}}" + ( true ? "" : 0));
 45729 const NameContainer = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 46449 const NameContainer = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 45730   target: "e1lpqc906"
 46450   target: "e1lpqc906"
 45731 } : 0)("line-height:", space(8), ";margin-left:", space(2), ";margin-right:", space(2), ";white-space:nowrap;overflow:hidden;" + ( true ? "" : 0));
 46451 } : 0)("line-height:", space(8), ";margin-left:", space(2), ";margin-right:", space(2), ";white-space:nowrap;overflow:hidden;" + ( true ? "" : 0));
 45732 const PaletteHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component,  true ? {
 46452 const PaletteHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component,  true ? {
 45733   target: "e1lpqc905"
 46453   target: "e1lpqc905"
 45749 } : 0)("&&{color:", COLORS.theme.accent, ";}" + ( true ? "" : 0));
 46469 } : 0)("&&{color:", COLORS.theme.accent, ";}" + ( true ? "" : 0));
 45750 const RemoveButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
 46470 const RemoveButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
 45751   target: "e1lpqc900"
 46471   target: "e1lpqc900"
 45752 } : 0)("&&{margin-top:", space(1), ";}" + ( true ? "" : 0));
 46472 } : 0)("&&{margin-top:", space(1), ";}" + ( true ? "" : 0));
 45753 
 46473 
 45754 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/palette-edit/index.js
 46474 ;// ./node_modules/@wordpress/components/build-module/palette-edit/index.js
 45755 /**
 46475 /**
 45756  * External dependencies
 46476  * External dependencies
 45757  */
 46477  */
 45758 
 46478 
 45759 
 46479 
 45766 
 46486 
 45767 
 46487 
 45768 /**
 46488 /**
 45769  * Internal dependencies
 46489  * Internal dependencies
 45770  */
 46490  */
 45771 
       
 45772 
       
 45773 
 46491 
 45774 
 46492 
 45775 
 46493 
 45776 
 46494 
 45777 
 46495 
 45791   value,
 46509   value,
 45792   onChange,
 46510   onChange,
 45793   label
 46511   label
 45794 }) {
 46512 }) {
 45795   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NameInputControl, {
 46513   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NameInputControl, {
       
 46514     size: "compact",
 45796     label: label,
 46515     label: label,
 45797     hideLabelFromVision: true,
 46516     hideLabelFromVision: true,
 45798     value: value,
 46517     value: value,
 45799     onChange: onChange
 46518     onChange: onChange
       
 46519   });
       
 46520 }
       
 46521 
       
 46522 /*
       
 46523  * Deduplicates the slugs of the provided elements.
       
 46524  */
       
 46525 function deduplicateElementSlugs(elements) {
       
 46526   const slugCounts = {};
       
 46527   return elements.map(element => {
       
 46528     var _newSlug;
       
 46529     let newSlug;
       
 46530     const {
       
 46531       slug
       
 46532     } = element;
       
 46533     slugCounts[slug] = (slugCounts[slug] || 0) + 1;
       
 46534     if (slugCounts[slug] > 1) {
       
 46535       newSlug = `${slug}-${slugCounts[slug] - 1}`;
       
 46536     }
       
 46537     return {
       
 46538       ...element,
       
 46539       slug: (_newSlug = newSlug) !== null && _newSlug !== void 0 ? _newSlug : slug
       
 46540     };
 45800   });
 46541   });
 45801 }
 46542 }
 45802 
 46543 
 45803 /**
 46544 /**
 45804  * Returns a name and slug for a palette item. The name takes the format "Color + id".
 46545  * Returns a name and slug for a palette item. The name takes the format "Color + id".
 45824       }
 46565       }
 45825     }
 46566     }
 45826     return previousValue;
 46567     return previousValue;
 45827   }, 1);
 46568   }, 1);
 45828   return {
 46569   return {
 45829     name: (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %s: is an id for a custom color */
 46570     name: (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: %s: is an id for a custom color */
 45830     (0,external_wp_i18n_namespaceObject.__)('Color %s'), position),
 46571     (0,external_wp_i18n_namespaceObject.__)('Color %s'), position),
 45831     slug: `${slugPrefix}color-${position}`
 46572     slug: `${slugPrefix}color-${position}`
 45832   };
 46573   };
 45833 }
 46574 }
 45834 function ColorPickerPopover({
 46575 function ColorPickerPopover({
 45894   const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 46635   const popoverProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 45895     ...receivedPopoverProps,
 46636     ...receivedPopoverProps,
 45896     // Use the custom palette color item as the popover anchor.
 46637     // Use the custom palette color item as the popover anchor.
 45897     anchor: popoverAnchor
 46638     anchor: popoverAnchor
 45898   }), [popoverAnchor, receivedPopoverProps]);
 46639   }), [popoverAnchor, receivedPopoverProps]);
 45899   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(PaletteItem, {
 46640   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(item_component, {
 45900     ref: setPopoverAnchor,
 46641     ref: setPopoverAnchor,
 45901     as: "div",
 46642     size: "small",
 45902     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 46643     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 45903       justify: "flex-start",
 46644       justify: "flex-start",
 45904       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 46645       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 46646         size: "small",
 45905         onClick: () => {
 46647         onClick: () => {
 45906           setIsEditingColor(true);
 46648           setIsEditingColor(true);
 45907         },
 46649         },
 45908         "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
 46650         "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(
 45909         // translators: %s is a color or gradient name, e.g. "Red".
 46651         // translators: %s is a color or gradient name, e.g. "Red".
 45954   isGradient,
 46696   isGradient,
 45955   popoverProps,
 46697   popoverProps,
 45956   addColorRef
 46698   addColorRef
 45957 }) {
 46699 }) {
 45958   // When unmounting the component if there are empty elements (the user did not complete the insertion) clean them.
 46700   // When unmounting the component if there are empty elements (the user did not complete the insertion) clean them.
 45959   const elementsReference = (0,external_wp_element_namespaceObject.useRef)();
 46701   const elementsReferenceRef = (0,external_wp_element_namespaceObject.useRef)();
 45960   (0,external_wp_element_namespaceObject.useEffect)(() => {
 46702   (0,external_wp_element_namespaceObject.useEffect)(() => {
 45961     elementsReference.current = elements;
 46703     elementsReferenceRef.current = elements;
 45962   }, [elements]);
 46704   }, [elements]);
 45963   const debounceOnChange = (0,external_wp_compose_namespaceObject.useDebounce)(onChange, 100);
 46705   const debounceOnChange = (0,external_wp_compose_namespaceObject.useDebounce)(updatedElements => onChange(deduplicateElementSlugs(updatedElements)), 100);
 45964   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
 46706   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
 45965     spacing: 3,
 46707     spacing: 3,
 45966     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_group_component, {
 46708     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_group_component, {
 45967       isRounded: true,
 46709       isRounded: true,
       
 46710       isBordered: true,
       
 46711       isSeparated: true,
 45968       children: elements.map((element, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(palette_edit_Option, {
 46712       children: elements.map((element, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(palette_edit_Option, {
 45969         isGradient: isGradient,
 46713         isGradient: isGradient,
 45970         canOnlyChangeValues: canOnlyChangeValues,
 46714         canOnlyChangeValues: canOnlyChangeValues,
 45971         element: element,
 46715         element: element,
 45972         onChange: newElement => {
 46716         onChange: newElement => {
 46096             onClose
 46840             onClose
 46097           }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 46841           }) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 46098             children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(navigable_container_menu, {
 46842             children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(navigable_container_menu, {
 46099               role: "menu",
 46843               role: "menu",
 46100               children: [!isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 46844               children: [!isEditing && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 46845                 __next40pxDefaultSize: true,
 46101                 variant: "tertiary",
 46846                 variant: "tertiary",
 46102                 onClick: () => {
 46847                 onClick: () => {
 46103                   setIsEditing(true);
 46848                   setIsEditing(true);
 46104                   onClose();
 46849                   onClose();
 46105                 },
 46850                 },
 46106                 className: "components-palette-edit__menu-button",
 46851                 className: "components-palette-edit__menu-button",
 46107                 children: (0,external_wp_i18n_namespaceObject.__)('Show details')
 46852                 children: (0,external_wp_i18n_namespaceObject.__)('Show details')
 46108               }), !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 46853               }), !canOnlyChangeValues && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 46854                 __next40pxDefaultSize: true,
 46109                 variant: "tertiary",
 46855                 variant: "tertiary",
 46110                 onClick: () => {
 46856                 onClick: () => {
 46111                   setEditingElement(null);
 46857                   setEditingElement(null);
 46112                   setIsEditing(false);
 46858                   setIsEditing(false);
 46113                   onChange();
 46859                   onChange();
 46114                   onClose();
 46860                   onClose();
 46115                 },
 46861                 },
 46116                 className: "components-palette-edit__menu-button",
 46862                 className: "components-palette-edit__menu-button",
 46117                 children: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Remove all gradients') : (0,external_wp_i18n_namespaceObject.__)('Remove all colors')
 46863                 children: isGradient ? (0,external_wp_i18n_namespaceObject.__)('Remove all gradients') : (0,external_wp_i18n_namespaceObject.__)('Remove all colors')
 46118               }), canReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 46864               }), canReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 46865                 __next40pxDefaultSize: true,
       
 46866                 className: "components-palette-edit__menu-button",
 46119                 variant: "tertiary",
 46867                 variant: "tertiary",
 46120                 onClick: () => {
 46868                 onClick: () => {
 46121                   setEditingElement(null);
 46869                   setEditingElement(null);
 46122                   onChange();
 46870                   onChange();
 46123                   onClose();
 46871                   onClose();
 46170     })]
 46918     })]
 46171   });
 46919   });
 46172 }
 46920 }
 46173 /* harmony default export */ const palette_edit = (PaletteEdit);
 46921 /* harmony default export */ const palette_edit = (PaletteEdit);
 46174 
 46922 
 46175 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/combobox-control/styles.js
 46923 ;// ./node_modules/@wordpress/icons/build-module/library/close-small.js
       
 46924 /**
       
 46925  * WordPress dependencies
       
 46926  */
       
 46927 
       
 46928 
       
 46929 const closeSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 46930   xmlns: "http://www.w3.org/2000/svg",
       
 46931   viewBox: "0 0 24 24",
       
 46932   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 46933     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"
       
 46934   })
       
 46935 });
       
 46936 /* harmony default export */ const close_small = (closeSmall);
       
 46937 
       
 46938 ;// ./node_modules/@wordpress/components/build-module/combobox-control/styles.js
 46176 
 46939 
 46177 /**
 46940 /**
 46178  * External dependencies
 46941  * External dependencies
 46179  */
 46942  */
 46180 
 46943 
 46190 }) => !__next40pxDefaultSize && /*#__PURE__*/emotion_react_browser_esm_css("height:28px;padding-left:", space(1), ";padding-right:", space(1), ";" + ( true ? "" : 0),  true ? "" : 0);
 46953 }) => !__next40pxDefaultSize && /*#__PURE__*/emotion_react_browser_esm_css("height:28px;padding-left:", space(1), ";padding-right:", space(1), ";" + ( true ? "" : 0),  true ? "" : 0);
 46191 const InputWrapperFlex = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 46954 const InputWrapperFlex = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 46192   target: "evuatpg0"
 46955   target: "evuatpg0"
 46193 } : 0)("height:38px;padding-left:", space(2), ";padding-right:", space(2), ";", deprecatedDefaultSize, ";" + ( true ? "" : 0));
 46956 } : 0)("height:38px;padding-left:", space(2), ";padding-right:", space(2), ";", deprecatedDefaultSize, ";" + ( true ? "" : 0));
 46194 
 46957 
 46195 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token-input.js
 46958 ;// ./node_modules/@wordpress/components/build-module/form-token-field/token-input.js
 46196 /**
 46959 /**
 46197  * External dependencies
 46960  * External dependencies
 46198  */
 46961  */
 46199 
 46962 
 46200 /**
 46963 /**
 46261   });
 47024   });
 46262 }
 47025 }
 46263 const TokenInput = (0,external_wp_element_namespaceObject.forwardRef)(UnForwardedTokenInput);
 47026 const TokenInput = (0,external_wp_element_namespaceObject.forwardRef)(UnForwardedTokenInput);
 46264 /* harmony default export */ const token_input = (TokenInput);
 47027 /* harmony default export */ const token_input = (TokenInput);
 46265 
 47028 
 46266 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js
 47029 ;// ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js
 46267 /**
 47030 /**
 46268  * External dependencies
 47031  * External dependencies
 46269  */
 47032  */
 46270 
 47033 
 46271 /**
 47034 /**
 46272  * WordPress dependencies
 47035  * WordPress dependencies
 46273  */
 47036  */
 46274 
 47037 
 46275 
 47038 
       
 47039 
 46276 /**
 47040 /**
 46277  * Internal dependencies
 47041  * Internal dependencies
 46278  */
 47042  */
 46279 
       
 46280 
 47043 
 46281 const handleMouseDown = e => {
 47044 const handleMouseDown = e => {
 46282   // By preventing default here, we will not lose focus of <input> when clicking a suggestion.
 47045   // By preventing default here, we will not lose focus of <input> when clicking a suggestion.
 46283   e.preventDefault();
 47046   e.preventDefault();
 46284 };
 47047 };
 46331       suggestionBeforeMatch: transformedSuggestion.substring(0, indexOfMatch),
 47094       suggestionBeforeMatch: transformedSuggestion.substring(0, indexOfMatch),
 46332       suggestionMatch: transformedSuggestion.substring(indexOfMatch, indexOfMatch + matchText.length),
 47095       suggestionMatch: transformedSuggestion.substring(indexOfMatch, indexOfMatch + matchText.length),
 46333       suggestionAfterMatch: transformedSuggestion.substring(indexOfMatch + matchText.length)
 47096       suggestionAfterMatch: transformedSuggestion.substring(indexOfMatch + matchText.length)
 46334     };
 47097     };
 46335   };
 47098   };
 46336   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
 47099   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("ul", {
 46337     ref: listRef,
 47100     ref: listRef,
 46338     className: "components-form-token-field__suggestions-list",
 47101     className: "components-form-token-field__suggestions-list",
 46339     id: `components-form-token-suggestions-${instanceId}`,
 47102     id: `components-form-token-suggestions-${instanceId}`,
 46340     role: "listbox",
 47103     role: "listbox",
 46341     children: suggestions.map((suggestion, index) => {
 47104     children: [suggestions.map((suggestion, index) => {
 46342       const matchText = computeSuggestionMatch(suggestion);
 47105       const matchText = computeSuggestionMatch(suggestion);
 46343       const isSelected = index === selectedIndex;
 47106       const isSelected = index === selectedIndex;
 46344       const isDisabled = typeof suggestion === 'object' && suggestion?.disabled;
 47107       const isDisabled = typeof suggestion === 'object' && suggestion?.disabled;
 46345       const key = typeof suggestion === 'object' && 'value' in suggestion ? suggestion?.value : displayTransform(suggestion);
 47108       const key = typeof suggestion === 'object' && 'value' in suggestion ? suggestion?.value : displayTransform(suggestion);
 46346       const className = dist_clsx('components-form-token-field__suggestion', {
 47109       const className = dist_clsx('components-form-token-field__suggestion', {
 46374         "aria-selected": index === selectedIndex,
 47137         "aria-selected": index === selectedIndex,
 46375         "aria-disabled": isDisabled,
 47138         "aria-disabled": isDisabled,
 46376         children: output
 47139         children: output
 46377       }, key);
 47140       }, key);
 46378       /* eslint-enable jsx-a11y/click-events-have-key-events */
 47141       /* eslint-enable jsx-a11y/click-events-have-key-events */
 46379     })
 47142     }), suggestions.length === 0 && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
       
 47143       className: "components-form-token-field__suggestion is-empty",
       
 47144       children: (0,external_wp_i18n_namespaceObject.__)('No items found')
       
 47145     })]
 46380   });
 47146   });
 46381 }
 47147 }
 46382 /* harmony default export */ const suggestions_list = (SuggestionsList);
 47148 /* harmony default export */ const suggestions_list = (SuggestionsList);
 46383 
 47149 
 46384 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js
 47150 ;// ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js
 46385 /**
 47151 /**
 46386  * WordPress dependencies
 47152  * WordPress dependencies
 46387  */
 47153  */
 46388 
 47154 
 46389 
 47155 
 46398       ...props
 47164       ...props
 46399     })
 47165     })
 46400   });
 47166   });
 46401 }, 'withFocusOutside'));
 47167 }, 'withFocusOutside'));
 46402 
 47168 
 46403 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/combobox-control/index.js
 47169 ;// ./node_modules/@wordpress/components/build-module/spinner/styles.js
       
 47170 
       
 47171 function spinner_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 46404 /**
 47172 /**
 46405  * External dependencies
 47173  * External dependencies
 46406  */
 47174  */
 46407 
 47175 
 46408 
 47176 
       
 47177 
       
 47178 /**
       
 47179  * Internal dependencies
       
 47180  */
       
 47181 
       
 47182 const spinAnimation = emotion_react_browser_esm_keyframes`
       
 47183 	from {
       
 47184 		transform: rotate(0deg);
       
 47185 	}
       
 47186 	to {
       
 47187 		transform: rotate(360deg);
       
 47188 	}
       
 47189  `;
       
 47190 const StyledSpinner = /*#__PURE__*/emotion_styled_base_browser_esm("svg",  true ? {
       
 47191   target: "ea4tfvq2"
       
 47192 } : 0)("width:", config_values.spinnerSize, "px;height:", config_values.spinnerSize, "px;display:inline-block;margin:5px 11px 0;position:relative;color:", COLORS.theme.accent, ";overflow:visible;opacity:1;background-color:transparent;" + ( true ? "" : 0));
       
 47193 const commonPathProps =  true ? {
       
 47194   name: "9s4963",
       
 47195   styles: "fill:transparent;stroke-width:1.5px"
       
 47196 } : 0;
       
 47197 const SpinnerTrack = /*#__PURE__*/emotion_styled_base_browser_esm("circle",  true ? {
       
 47198   target: "ea4tfvq1"
       
 47199 } : 0)(commonPathProps, ";stroke:", COLORS.gray[300], ";" + ( true ? "" : 0));
       
 47200 const SpinnerIndicator = /*#__PURE__*/emotion_styled_base_browser_esm("path",  true ? {
       
 47201   target: "ea4tfvq0"
       
 47202 } : 0)(commonPathProps, ";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ", spinAnimation, ";" + ( true ? "" : 0));
       
 47203 
       
 47204 ;// ./node_modules/@wordpress/components/build-module/spinner/index.js
       
 47205 /**
       
 47206  * External dependencies
       
 47207  */
       
 47208 
       
 47209 /**
       
 47210  * Internal dependencies
       
 47211  */
       
 47212 
 46409 /**
 47213 /**
 46410  * WordPress dependencies
 47214  * WordPress dependencies
 46411  */
 47215  */
 46412 
 47216 
 46413 
 47217 
       
 47218 function UnforwardedSpinner({
       
 47219   className,
       
 47220   ...props
       
 47221 }, forwardedRef) {
       
 47222   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(StyledSpinner, {
       
 47223     className: dist_clsx('components-spinner', className),
       
 47224     viewBox: "0 0 100 100",
       
 47225     width: "16",
       
 47226     height: "16",
       
 47227     xmlns: "http://www.w3.org/2000/svg",
       
 47228     role: "presentation",
       
 47229     focusable: "false",
       
 47230     ...props,
       
 47231     ref: forwardedRef,
       
 47232     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerTrack, {
       
 47233       cx: "50",
       
 47234       cy: "50",
       
 47235       r: "50",
       
 47236       vectorEffect: "non-scaling-stroke"
       
 47237     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerIndicator, {
       
 47238       d: "m 50 0 a 50 50 0 0 1 50 50",
       
 47239       vectorEffect: "non-scaling-stroke"
       
 47240     })]
       
 47241   });
       
 47242 }
       
 47243 /**
       
 47244  * `Spinner` is a component used to notify users that their action is being processed.
       
 47245  *
       
 47246  * ```js
       
 47247  *   import { Spinner } from '@wordpress/components';
       
 47248  *
       
 47249  *   function Example() {
       
 47250  *     return <Spinner />;
       
 47251  *   }
       
 47252  * ```
       
 47253  */
       
 47254 const Spinner = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSpinner);
       
 47255 /* harmony default export */ const spinner = (Spinner);
       
 47256 
       
 47257 ;// ./node_modules/@wordpress/components/build-module/combobox-control/index.js
       
 47258 /**
       
 47259  * External dependencies
       
 47260  */
       
 47261 
       
 47262 
       
 47263 /**
       
 47264  * WordPress dependencies
       
 47265  */
       
 47266 
       
 47267 
 46414 
 47268 
 46415 
 47269 
 46416 
 47270 
 46417 
 47271 
 46418 /**
 47272 /**
 46419  * Internal dependencies
 47273  * Internal dependencies
 46420  */
 47274  */
       
 47275 
 46421 
 47276 
 46422 
 47277 
 46423 
 47278 
 46424 
 47279 
 46425 
 47280 
 46470  * function MyComboboxControl() {
 47325  * function MyComboboxControl() {
 46471  * 	const [ fontSize, setFontSize ] = useState();
 47326  * 	const [ fontSize, setFontSize ] = useState();
 46472  * 	const [ filteredOptions, setFilteredOptions ] = useState( options );
 47327  * 	const [ filteredOptions, setFilteredOptions ] = useState( options );
 46473  * 	return (
 47328  * 	return (
 46474  * 		<ComboboxControl
 47329  * 		<ComboboxControl
       
 47330  * 			__next40pxDefaultSize
       
 47331  * 			__nextHasNoMarginBottom
 46475  * 			label="Font Size"
 47332  * 			label="Font Size"
 46476  * 			value={ fontSize }
 47333  * 			value={ fontSize }
 46477  * 			onChange={ setFontSize }
 47334  * 			onChange={ setFontSize }
 46478  * 			options={ filteredOptions }
 47335  * 			options={ filteredOptions }
 46479  * 			onFilterValueChange={ ( inputValue ) =>
 47336  * 			onFilterValueChange={ ( inputValue ) =>
 46502     onFilterValueChange = combobox_control_noop,
 47359     onFilterValueChange = combobox_control_noop,
 46503     hideLabelFromVision,
 47360     hideLabelFromVision,
 46504     help,
 47361     help,
 46505     allowReset = true,
 47362     allowReset = true,
 46506     className,
 47363     className,
       
 47364     isLoading = false,
 46507     messages = {
 47365     messages = {
 46508       selected: (0,external_wp_i18n_namespaceObject.__)('Item selected.')
 47366       selected: (0,external_wp_i18n_namespaceObject.__)('Item selected.')
 46509     },
 47367     },
 46510     __experimentalRenderItem,
 47368     __experimentalRenderItem,
 46511     expandOnFocus = true
 47369     expandOnFocus = true,
       
 47370     placeholder
 46512   } = useDeprecated36pxDefaultSizeProp(props);
 47371   } = useDeprecated36pxDefaultSizeProp(props);
 46513   const [value, setValue] = useControlledValue({
 47372   const [value, setValue] = useControlledValue({
 46514     value: valueProp,
 47373     value: valueProp,
 46515     onChange: onChangeProp
 47374     onChange: onChangeProp
 46516   });
 47375   });
 46620   const handleOnReset = () => {
 47479   const handleOnReset = () => {
 46621     setValue(null);
 47480     setValue(null);
 46622     inputContainer.current?.focus();
 47481     inputContainer.current?.focus();
 46623   };
 47482   };
 46624 
 47483 
       
 47484   // Stop propagation of the keydown event when pressing Enter on the Reset
       
 47485   // button to prevent calling the onKeydown callback on the container div
       
 47486   // element which actually sets the selected suggestion.
       
 47487   const handleResetStopPropagation = event => {
       
 47488     event.stopPropagation();
       
 47489   };
       
 47490 
 46625   // Update current selections when the filter input changes.
 47491   // Update current selections when the filter input changes.
 46626   (0,external_wp_element_namespaceObject.useEffect)(() => {
 47492   (0,external_wp_element_namespaceObject.useEffect)(() => {
 46627     const hasMatchingSuggestions = matchingSuggestions.length > 0;
 47493     const hasMatchingSuggestions = matchingSuggestions.length > 0;
 46628     const hasSelectedMatchingSuggestions = getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions) > 0;
 47494     const hasSelectedMatchingSuggestions = getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions) > 0;
 46629     if (hasMatchingSuggestions && !hasSelectedMatchingSuggestions) {
 47495     if (hasMatchingSuggestions && !hasSelectedMatchingSuggestions) {
 46634 
 47500 
 46635   // Announcements.
 47501   // Announcements.
 46636   (0,external_wp_element_namespaceObject.useEffect)(() => {
 47502   (0,external_wp_element_namespaceObject.useEffect)(() => {
 46637     const hasMatchingSuggestions = matchingSuggestions.length > 0;
 47503     const hasMatchingSuggestions = matchingSuggestions.length > 0;
 46638     if (isExpanded) {
 47504     if (isExpanded) {
 46639       const message = hasMatchingSuggestions ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
 47505       const message = hasMatchingSuggestions ? (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: %d: number of results. */
 46640       (0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', matchingSuggestions.length), matchingSuggestions.length) : (0,external_wp_i18n_namespaceObject.__)('No results.');
 47506       (0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', matchingSuggestions.length), matchingSuggestions.length) : (0,external_wp_i18n_namespaceObject.__)('No results.');
 46641       (0,external_wp_a11y_namespaceObject.speak)(message, 'polite');
 47507       (0,external_wp_a11y_namespaceObject.speak)(message, 'polite');
 46642     }
 47508     }
 46643   }, [matchingSuggestions, isExpanded]);
 47509   }, [matchingSuggestions, isExpanded]);
       
 47510   maybeWarnDeprecated36pxSize({
       
 47511     componentName: 'ComboboxControl',
       
 47512     __next40pxDefaultSize,
       
 47513     size: undefined
       
 47514   });
 46644 
 47515 
 46645   // Disable reason: There is no appropriate role which describes the
 47516   // Disable reason: There is no appropriate role which describes the
 46646   // input container intended accessible usability.
 47517   // input container intended accessible usability.
 46647   // TODO: Refactor click detection to use blur to stop propagation.
 47518   // TODO: Refactor click detection to use blur to stop propagation.
 46648   /* eslint-disable jsx-a11y/no-static-element-interactions */
 47519   /* eslint-disable jsx-a11y/no-static-element-interactions */
 46649   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DetectOutside, {
 47520   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DetectOutside, {
 46650     onFocusOutside: onFocusOutside,
 47521     onFocusOutside: onFocusOutside,
 46651     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 47522     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 46652       __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 47523       __nextHasNoMarginBottom: __nextHasNoMarginBottom,
       
 47524       __associatedWPComponentName: "ComboboxControl",
 46653       className: dist_clsx(className, 'components-combobox-control'),
 47525       className: dist_clsx(className, 'components-combobox-control'),
 46654       label: label,
 47526       label: label,
 46655       id: `components-form-token-input-${instanceId}`,
 47527       id: `components-form-token-input-${instanceId}`,
 46656       hideLabelFromVision: hideLabelFromVision,
 47528       hideLabelFromVision: hideLabelFromVision,
 46657       help: help,
 47529       help: help,
 46664           children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
 47536           children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
 46665             children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(token_input, {
 47537             children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(token_input, {
 46666               className: "components-combobox-control__input",
 47538               className: "components-combobox-control__input",
 46667               instanceId: instanceId,
 47539               instanceId: instanceId,
 46668               ref: inputContainer,
 47540               ref: inputContainer,
       
 47541               placeholder: placeholder,
 46669               value: isExpanded ? inputValue : currentLabel,
 47542               value: isExpanded ? inputValue : currentLabel,
 46670               onFocus: onFocus,
 47543               onFocus: onFocus,
 46671               onBlur: onBlur,
 47544               onBlur: onBlur,
 46672               onClick: onClick,
 47545               onClick: onClick,
 46673               isExpanded: isExpanded,
 47546               isExpanded: isExpanded,
 46674               selectedSuggestionIndex: getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions),
 47547               selectedSuggestionIndex: getIndexOfMatchingSuggestion(selectedSuggestion, matchingSuggestions),
 46675               onChange: onInputChange
 47548               onChange: onInputChange
 46676             })
 47549             })
 46677           }), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
 47550           }), isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spinner, {}), allowReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 46678             children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 47551             size: "small",
 46679               className: "components-combobox-control__reset",
 47552             icon: close_small
 46680               icon: close_small,
 47553             // Disable reason: Focus returns to input field when reset is clicked.
 46681               disabled: !value,
 47554             // eslint-disable-next-line no-restricted-syntax
 46682               onClick: handleOnReset,
 47555             ,
 46683               label: (0,external_wp_i18n_namespaceObject.__)('Reset')
 47556             disabled: !value,
 46684             })
 47557             onClick: handleOnReset,
       
 47558             onKeyDown: handleResetStopPropagation,
       
 47559             label: (0,external_wp_i18n_namespaceObject.__)('Reset')
 46685           })]
 47560           })]
 46686         }), isExpanded && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(suggestions_list, {
 47561         }), isExpanded && !isLoading && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(suggestions_list, {
 46687           instanceId: instanceId
 47562           instanceId: instanceId
 46688           // The empty string for `value` here is not actually used, but is
 47563           // The empty string for `value` here is not actually used, but is
 46689           // just a quick way to satisfy the TypeScript requirements of SuggestionsList.
 47564           // just a quick way to satisfy the TypeScript requirements of SuggestionsList.
 46690           // See: https://github.com/WordPress/gutenberg/pull/47581/files#r1091089330
 47565           // See: https://github.com/WordPress/gutenberg/pull/47581/files#r1091089330
 46691           ,
 47566           ,
 46706   });
 47581   });
 46707   /* eslint-enable jsx-a11y/no-static-element-interactions */
 47582   /* eslint-enable jsx-a11y/no-static-element-interactions */
 46708 }
 47583 }
 46709 /* harmony default export */ const combobox_control = (ComboboxControl);
 47584 /* harmony default export */ const combobox_control = (ComboboxControl);
 46710 
 47585 
 46711 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3X3MDQGM.js
 47586 ;// ./node_modules/@wordpress/components/build-module/composite/legacy/index.js
 46712 "use client";
       
 46713 
       
 46714 // src/group/group-label-context.ts
       
 46715 
       
 46716 var GroupLabelContext = (0,external_React_.createContext)(void 0);
       
 46717 
       
 46718 
       
 46719 
       
 46720 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/R2QZ3KXH.js
       
 46721 "use client";
       
 46722 
       
 46723 
       
 46724 
       
 46725 
       
 46726 
       
 46727 // src/group/group.tsx
       
 46728 
       
 46729 
       
 46730 var useGroup = createHook((props) => {
       
 46731   const [labelId, setLabelId] = (0,external_React_.useState)();
       
 46732   props = useWrapElement(
       
 46733     props,
       
 46734     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(GroupLabelContext.Provider, { value: setLabelId, children: element }),
       
 46735     []
       
 46736   );
       
 46737   props = _4R3V3JGP_spreadValues({
       
 46738     role: "group",
       
 46739     "aria-labelledby": labelId
       
 46740   }, props);
       
 46741   return props;
       
 46742 });
       
 46743 var Group = createComponent((props) => {
       
 46744   const htmlProps = useGroup(props);
       
 46745   return _3ORBWXWF_createElement("div", htmlProps);
       
 46746 });
       
 46747 if (false) {}
       
 46748 
       
 46749 
       
 46750 
       
 46751 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/636A7WVS.js
       
 46752 "use client";
       
 46753 
       
 46754 
       
 46755 
       
 46756 
       
 46757 // src/composite/composite-group.ts
       
 46758 var useCompositeGroup = createHook(
       
 46759   (_a) => {
       
 46760     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 46761     props = useGroup(props);
       
 46762     return props;
       
 46763   }
       
 46764 );
       
 46765 var CompositeGroup = createComponent(
       
 46766   (props) => {
       
 46767     const htmlProps = useCompositeGroup(props);
       
 46768     return _3ORBWXWF_createElement("div", htmlProps);
       
 46769   }
       
 46770 );
       
 46771 if (false) {}
       
 46772 
       
 46773 
       
 46774 
       
 46775 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/composite/legacy/index.js
       
 46776 /**
 47587 /**
 46777  * Composite is a component that may contain navigable items represented by
 47588  * Composite is a component that may contain navigable items represented by
 46778  * CompositeItem. It's inspired by the WAI-ARIA Composite Role and implements
 47589  * CompositeItem. It's inspired by the WAI-ARIA Composite Role and implements
 46779  * all the keyboard navigation mechanisms to ensure that there's only one
 47590  * all the keyboard navigation mechanisms to ensure that there's only one
 46780  * tab stop for the whole Composite element. This means that it can behave as
 47591  * tab stop for the whole Composite element. This means that it can behave as
 46781  * a roving tabindex or aria-activedescendant container.
 47592  * a roving tabindex or aria-activedescendant container.
 46782  *
 47593  *
       
 47594  * This file aims at providing components that are as close as possible to the
       
 47595  * original `reakit`-based implementation (which was removed from the codebase),
       
 47596  * although it is recommended that consumers of the package switch to the stable,
       
 47597  * un-prefixed, `ariakit`-based version of `Composite`.
       
 47598  *
 46783  * @see https://ariakit.org/components/composite
 47599  * @see https://ariakit.org/components/composite
 46784  */
 47600  */
 46785 
 47601 
 46786 /**
 47602 /**
       
 47603  * External dependencies
       
 47604  */
       
 47605 
       
 47606 
       
 47607 /**
 46787  * WordPress dependencies
 47608  * WordPress dependencies
 46788  */
 47609  */
 46789 
 47610 
 46790 
 47611 
       
 47612 
       
 47613 
 46791 /**
 47614 /**
 46792  * Internal dependencies
 47615  * Internal dependencies
 46793  */
 47616  */
 46794 
       
 46795 
 47617 
 46796 
 47618 
 46797 // Legacy composite components can either provide state through a
 47619 // Legacy composite components can either provide state through a
 46798 // single `state` prop, or via individual props, usually through
 47620 // single `state` prop, or via individual props, usually through
 46799 // spreading the state generated by `useCompositeState`.
 47621 // spreading the state generated by `useCompositeState`.
 46817       store
 47639       store
 46818     };
 47640     };
 46819   }
 47641   }
 46820   return legacyProps;
 47642   return legacyProps;
 46821 }
 47643 }
       
 47644 const LEGACY_TO_NEW_DISPLAY_NAME = {
       
 47645   __unstableComposite: 'Composite',
       
 47646   __unstableCompositeGroup: 'Composite.Group or Composite.Row',
       
 47647   __unstableCompositeItem: 'Composite.Item',
       
 47648   __unstableUseCompositeState: 'Composite'
       
 47649 };
 46822 function proxyComposite(ProxiedComponent, propMap = {}) {
 47650 function proxyComposite(ProxiedComponent, propMap = {}) {
 46823   const displayName = ProxiedComponent.displayName;
 47651   var _ProxiedComponent$dis;
       
 47652   const displayName = (_ProxiedComponent$dis = ProxiedComponent.displayName) !== null && _ProxiedComponent$dis !== void 0 ? _ProxiedComponent$dis : '';
 46824   const Component = legacyProps => {
 47653   const Component = legacyProps => {
       
 47654     external_wp_deprecated_default()(`wp.components.${displayName}`, {
       
 47655       since: '6.7',
       
 47656       alternative: LEGACY_TO_NEW_DISPLAY_NAME.hasOwnProperty(displayName) ? LEGACY_TO_NEW_DISPLAY_NAME[displayName] : undefined
       
 47657     });
 46825     const {
 47658     const {
 46826       store,
 47659       store,
 46827       ...rest
 47660       ...rest
 46828     } = mapLegacyStatePropsToComponentProps(legacyProps);
 47661     } = mapLegacyStatePropsToComponentProps(legacyProps);
 46829     const props = rest;
 47662     let props = rest;
 46830     props.id = (0,external_wp_compose_namespaceObject.useInstanceId)(store, props.baseId, props.id);
 47663     props = {
       
 47664       ...props,
       
 47665       id: (0,external_wp_compose_namespaceObject.useInstanceId)(store, props.baseId, props.id)
       
 47666     };
 46831     Object.entries(propMap).forEach(([from, to]) => {
 47667     Object.entries(propMap).forEach(([from, to]) => {
 46832       if (props.hasOwnProperty(from)) {
 47668       if (props.hasOwnProperty(from)) {
 46833         Object.assign(props, {
 47669         Object.assign(props, {
 46834           [to]: props[from]
 47670           [to]: props[from]
 46835         });
 47671         });
 46848 
 47684 
 46849 // The old `CompositeGroup` used to behave more like the current
 47685 // The old `CompositeGroup` used to behave more like the current
 46850 // `CompositeRow`, but this has been split into two different
 47686 // `CompositeRow`, but this has been split into two different
 46851 // components. We handle that difference by checking on the
 47687 // components. We handle that difference by checking on the
 46852 // provided role, and returning the appropriate component.
 47688 // provided role, and returning the appropriate component.
 46853 const unproxiedCompositeGroup = (0,external_wp_element_namespaceObject.forwardRef)(({
 47689 const UnproxiedCompositeGroup = (0,external_wp_element_namespaceObject.forwardRef)(({
 46854   role,
 47690   role,
 46855   ...props
 47691   ...props
 46856 }, ref) => {
 47692 }, ref) => {
 46857   const Component = role === 'row' ? CompositeRow : CompositeGroup;
 47693   const Component = role === 'row' ? Composite.Row : Composite.Group;
 46858   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
 47694   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
 46859     ref: ref,
 47695     ref: ref,
 46860     role: role,
 47696     role: role,
 46861     ...props
 47697     ...props
 46862   });
 47698   });
 46863 });
 47699 });
 46864 unproxiedCompositeGroup.displayName = 'CompositeGroup';
 47700 
 46865 const legacy_Composite = proxyComposite(Composite, {
 47701 /**
       
 47702  * _Note: please use the `Composite` component instead._
       
 47703  *
       
 47704  * @deprecated
       
 47705  */
       
 47706 const legacy_Composite = proxyComposite(Object.assign(Composite, {
       
 47707   displayName: '__unstableComposite'
       
 47708 }), {
 46866   baseId: 'id'
 47709   baseId: 'id'
 46867 });
 47710 });
 46868 const legacy_CompositeGroup = proxyComposite(unproxiedCompositeGroup);
 47711 /**
 46869 const legacy_CompositeItem = proxyComposite(CompositeItem, {
 47712  * _Note: please use the `Composite.Row` or `Composite.Group` components instead._
       
 47713  *
       
 47714  * @deprecated
       
 47715  */
       
 47716 const legacy_CompositeGroup = proxyComposite(Object.assign(UnproxiedCompositeGroup, {
       
 47717   displayName: '__unstableCompositeGroup'
       
 47718 }));
       
 47719 /**
       
 47720  * _Note: please use the `Composite.Item` component instead._
       
 47721  *
       
 47722  * @deprecated
       
 47723  */
       
 47724 const legacy_CompositeItem = proxyComposite(Object.assign(Composite.Item, {
       
 47725   displayName: '__unstableCompositeItem'
       
 47726 }), {
 46870   focusable: 'accessibleWhenDisabled'
 47727   focusable: 'accessibleWhenDisabled'
 46871 });
 47728 });
       
 47729 
       
 47730 /**
       
 47731  * _Note: please use the `Composite` component instead._
       
 47732  *
       
 47733  * @deprecated
       
 47734  */
 46872 function useCompositeState(legacyStateOptions = {}) {
 47735 function useCompositeState(legacyStateOptions = {}) {
       
 47736   external_wp_deprecated_default()(`wp.components.__unstableUseCompositeState`, {
       
 47737     since: '6.7',
       
 47738     alternative: LEGACY_TO_NEW_DISPLAY_NAME.__unstableUseCompositeState
       
 47739   });
 46873   const {
 47740   const {
 46874     baseId,
 47741     baseId,
 46875     currentId: defaultActiveId,
 47742     currentId: defaultActiveId,
 46876     orientation,
 47743     orientation,
 46877     rtl = false,
 47744     rtl = false,
 46893       virtualFocus
 47760       virtualFocus
 46894     })
 47761     })
 46895   };
 47762   };
 46896 }
 47763 }
 46897 
 47764 
 46898 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/aria-helper.js
 47765 ;// ./node_modules/@wordpress/components/build-module/modal/aria-helper.js
 46899 const LIVE_REGION_ARIA_ROLES = new Set(['alert', 'status', 'log', 'marquee', 'timer']);
 47766 const LIVE_REGION_ARIA_ROLES = new Set(['alert', 'status', 'log', 'marquee', 'timer']);
 46900 const hiddenElementsByDepth = [];
 47767 const hiddenElementsByDepth = [];
 46901 
 47768 
 46902 /**
 47769 /**
 46903  * Hides all elements in the body element from screen-readers except
 47770  * Hides all elements in the body element from screen-readers except
 46933  *
 47800  *
 46934  * @return Whether the element should not be hidden from screen-readers.
 47801  * @return Whether the element should not be hidden from screen-readers.
 46935  */
 47802  */
 46936 function elementShouldBeHidden(element) {
 47803 function elementShouldBeHidden(element) {
 46937   const role = element.getAttribute('role');
 47804   const role = element.getAttribute('role');
 46938   return !(element.tagName === 'SCRIPT' || element.hasAttribute('aria-hidden') || element.hasAttribute('aria-live') || role && LIVE_REGION_ARIA_ROLES.has(role));
 47805   return !(element.tagName === 'SCRIPT' || element.hasAttribute('hidden') || element.hasAttribute('aria-hidden') || element.hasAttribute('aria-live') || role && LIVE_REGION_ARIA_ROLES.has(role));
 46939 }
 47806 }
 46940 
 47807 
 46941 /**
 47808 /**
 46942  * Accessibly reveals the elements hidden by the latest modal.
 47809  * Accessibly reveals the elements hidden by the latest modal.
 46943  */
 47810  */
 46949   for (const element of hiddenElements) {
 47816   for (const element of hiddenElements) {
 46950     element.removeAttribute('aria-hidden');
 47817     element.removeAttribute('aria-hidden');
 46951   }
 47818   }
 46952 }
 47819 }
 46953 
 47820 
 46954 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/index.js
 47821 ;// ./node_modules/@wordpress/components/build-module/modal/use-modal-exit-animation.js
       
 47822 /**
       
 47823  * WordPress dependencies
       
 47824  */
       
 47825 
       
 47826 
       
 47827 
       
 47828 /**
       
 47829  * Internal dependencies
       
 47830  */
       
 47831 
       
 47832 
       
 47833 
       
 47834 // Animation duration (ms) extracted to JS in order to be used on a setTimeout.
       
 47835 const FRAME_ANIMATION_DURATION = config_values.transitionDuration;
       
 47836 const FRAME_ANIMATION_DURATION_NUMBER = Number.parseInt(config_values.transitionDuration);
       
 47837 const EXIT_ANIMATION_NAME = 'components-modal__disappear-animation';
       
 47838 function useModalExitAnimation() {
       
 47839   const frameRef = (0,external_wp_element_namespaceObject.useRef)();
       
 47840   const [isAnimatingOut, setIsAnimatingOut] = (0,external_wp_element_namespaceObject.useState)(false);
       
 47841   const isReducedMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
       
 47842   const closeModal = (0,external_wp_element_namespaceObject.useCallback)(() => new Promise(closeModalResolve => {
       
 47843     // Grab a "stable" reference of the frame element, since
       
 47844     // the value held by the react ref might change at runtime.
       
 47845     const frameEl = frameRef.current;
       
 47846     if (isReducedMotion) {
       
 47847       closeModalResolve();
       
 47848       return;
       
 47849     }
       
 47850     if (!frameEl) {
       
 47851        true ? external_wp_warning_default()("wp.components.Modal: the Modal component can't be closed with an exit animation because of a missing reference to the modal frame element.") : 0;
       
 47852       closeModalResolve();
       
 47853       return;
       
 47854     }
       
 47855     let handleAnimationEnd;
       
 47856     const startAnimation = () => new Promise(animationResolve => {
       
 47857       handleAnimationEnd = e => {
       
 47858         if (e.animationName === EXIT_ANIMATION_NAME) {
       
 47859           animationResolve();
       
 47860         }
       
 47861       };
       
 47862       frameEl.addEventListener('animationend', handleAnimationEnd);
       
 47863       setIsAnimatingOut(true);
       
 47864     });
       
 47865     const animationTimeout = () => new Promise(timeoutResolve => {
       
 47866       setTimeout(() => timeoutResolve(),
       
 47867       // Allow an extra 20% of the animation duration for the
       
 47868       // animationend event to fire, in case the animation frame is
       
 47869       // slightly delayes by some other events in the event loop.
       
 47870       FRAME_ANIMATION_DURATION_NUMBER * 1.2);
       
 47871     });
       
 47872     Promise.race([startAnimation(), animationTimeout()]).then(() => {
       
 47873       if (handleAnimationEnd) {
       
 47874         frameEl.removeEventListener('animationend', handleAnimationEnd);
       
 47875       }
       
 47876       setIsAnimatingOut(false);
       
 47877       closeModalResolve();
       
 47878     });
       
 47879   }), [isReducedMotion]);
       
 47880   return {
       
 47881     overlayClassname: isAnimatingOut ? 'is-animating-out' : undefined,
       
 47882     frameRef,
       
 47883     frameStyle: {
       
 47884       '--modal-frame-animation-duration': `${FRAME_ANIMATION_DURATION}`
       
 47885     },
       
 47886     closeModal
       
 47887   };
       
 47888 }
       
 47889 
       
 47890 ;// ./node_modules/@wordpress/components/build-module/modal/index.js
 46955 /**
 47891 /**
 46956  * External dependencies
 47892  * External dependencies
 46957  */
 47893  */
 46958 
 47894 
       
 47895 
 46959 /**
 47896 /**
 46960  * WordPress dependencies
 47897  * WordPress dependencies
 46961  */
 47898  */
 46962 
 47899 
 46963 
 47900 
 46971 
 47908 
 46972 
 47909 
 46973 
 47910 
 46974 
 47911 
 46975 
 47912 
       
 47913 
       
 47914 
 46976 // Used to track and dismiss the prior modal when another opens unless nested.
 47915 // Used to track and dismiss the prior modal when another opens unless nested.
 46977 
 47916 
 46978 
 47917 const ModalContext = (0,external_wp_element_namespaceObject.createContext)(new Set());
 46979 const ModalContext = (0,external_wp_element_namespaceObject.createContext)([]);
       
 46980 
 47918 
 46981 // Used to track body class names applied while modals are open.
 47919 // Used to track body class names applied while modals are open.
 46982 const bodyOpenClasses = new Map();
 47920 const bodyOpenClasses = new Map();
 46983 function UnforwardedModal(props, forwardedRef) {
 47921 function UnforwardedModal(props, forwardedRef) {
 46984   const {
 47922   const {
 46997     onRequestClose,
 47935     onRequestClose,
 46998     icon,
 47936     icon,
 46999     closeButtonLabel,
 47937     closeButtonLabel,
 47000     children,
 47938     children,
 47001     style,
 47939     style,
 47002     overlayClassName,
 47940     overlayClassName: overlayClassnameProp,
 47003     className,
 47941     className,
 47004     contentLabel,
 47942     contentLabel,
 47005     onKeyDown,
 47943     onKeyDown,
 47006     isFullScreen = false,
 47944     isFullScreen = false,
 47007     size,
 47945     size,
 47052     modalize(ref.current);
 47990     modalize(ref.current);
 47053     return () => unmodalize();
 47991     return () => unmodalize();
 47054   }, []);
 47992   }, []);
 47055 
 47993 
 47056   // Keeps a fresh ref for the subsequent effect.
 47994   // Keeps a fresh ref for the subsequent effect.
 47057   const refOnRequestClose = (0,external_wp_element_namespaceObject.useRef)();
 47995   const onRequestCloseRef = (0,external_wp_element_namespaceObject.useRef)();
 47058   (0,external_wp_element_namespaceObject.useEffect)(() => {
 47996   (0,external_wp_element_namespaceObject.useEffect)(() => {
 47059     refOnRequestClose.current = onRequestClose;
 47997     onRequestCloseRef.current = onRequestClose;
 47060   }, [onRequestClose]);
 47998   }, [onRequestClose]);
 47061 
 47999 
 47062   // The list of `onRequestClose` callbacks of open (non-nested) Modals. Only
 48000   // The list of `onRequestClose` callbacks of open (non-nested) Modals. Only
 47063   // one should remain open at a time and the list enables closing prior ones.
 48001   // one should remain open at a time and the list enables closing prior ones.
 47064   const dismissers = (0,external_wp_element_namespaceObject.useContext)(ModalContext);
 48002   const dismissers = (0,external_wp_element_namespaceObject.useContext)(ModalContext);
 47065   // Used for the tracking and dismissing any nested modals.
 48003   // Used for the tracking and dismissing any nested modals.
 47066   const nestedDismissers = (0,external_wp_element_namespaceObject.useRef)([]);
 48004   const [nestedDismissers] = (0,external_wp_element_namespaceObject.useState)(() => new Set());
 47067 
 48005 
 47068   // Updates the stack tracking open modals at this level and calls
 48006   // Updates the stack tracking open modals at this level and calls
 47069   // onRequestClose for any prior and/or nested modals as applicable.
 48007   // onRequestClose for any prior and/or nested modals as applicable.
 47070   (0,external_wp_element_namespaceObject.useEffect)(() => {
 48008   (0,external_wp_element_namespaceObject.useEffect)(() => {
 47071     dismissers.push(refOnRequestClose);
 48009     // add this modal instance to the dismissers set
 47072     const [first, second] = dismissers;
 48010     dismissers.add(onRequestCloseRef);
 47073     if (second) {
 48011     // request that all the other modals close themselves
 47074       first?.current?.();
 48012     for (const dismisser of dismissers) {
 47075     }
 48013       if (dismisser !== onRequestCloseRef) {
 47076     const nested = nestedDismissers.current;
 48014         dismisser.current?.();
       
 48015       }
       
 48016     }
 47077     return () => {
 48017     return () => {
 47078       nested[0]?.current?.();
 48018       // request that all the nested modals close themselves
 47079       dismissers.shift();
 48019       for (const dismisser of nestedDismissers) {
       
 48020         dismisser.current?.();
       
 48021       }
       
 48022       // remove this modal instance from the dismissers set
       
 48023       dismissers.delete(onRequestCloseRef);
 47080     };
 48024     };
 47081   }, [dismissers]);
 48025   }, [dismissers, nestedDismissers]);
 47082 
 48026 
 47083   // Adds/removes the value of bodyOpenClassName to body element.
 48027   // Adds/removes the value of bodyOpenClassName to body element.
 47084   (0,external_wp_element_namespaceObject.useEffect)(() => {
 48028   (0,external_wp_element_namespaceObject.useEffect)(() => {
 47085     var _bodyOpenClasses$get;
 48029     var _bodyOpenClasses$get;
 47086     const theClass = bodyOpenClassName;
 48030     const theClass = bodyOpenClassName;
 47095       } else {
 48039       } else {
 47096         bodyOpenClasses.set(theClass, oneLess);
 48040         bodyOpenClasses.set(theClass, oneLess);
 47097       }
 48041       }
 47098     };
 48042     };
 47099   }, [bodyOpenClassName]);
 48043   }, [bodyOpenClassName]);
       
 48044   const {
       
 48045     closeModal,
       
 48046     frameRef,
       
 48047     frameStyle,
       
 48048     overlayClassname
       
 48049   } = useModalExitAnimation();
 47100 
 48050 
 47101   // Calls the isContentScrollable callback when the Modal children container resizes.
 48051   // Calls the isContentScrollable callback when the Modal children container resizes.
 47102   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 48052   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 47103     if (!window.ResizeObserver || !childrenContainerRef.current) {
 48053     if (!window.ResizeObserver || !childrenContainerRef.current) {
 47104       return;
 48054       return;
 47111     };
 48061     };
 47112   }, [isContentScrollable, childrenContainerRef]);
 48062   }, [isContentScrollable, childrenContainerRef]);
 47113   function handleEscapeKeyDown(event) {
 48063   function handleEscapeKeyDown(event) {
 47114     if (shouldCloseOnEsc && (event.code === 'Escape' || event.key === 'Escape') && !event.defaultPrevented) {
 48064     if (shouldCloseOnEsc && (event.code === 'Escape' || event.key === 'Escape') && !event.defaultPrevented) {
 47115       event.preventDefault();
 48065       event.preventDefault();
 47116       if (onRequestClose) {
 48066       closeModal().then(() => onRequestClose(event));
 47117         onRequestClose(event);
       
 47118       }
       
 47119     }
 48067     }
 47120   }
 48068   }
 47121   const onContentContainerScroll = (0,external_wp_element_namespaceObject.useCallback)(e => {
 48069   const onContentContainerScroll = (0,external_wp_element_namespaceObject.useCallback)(e => {
 47122     var _e$currentTarget$scro;
 48070     var _e$currentTarget$scro;
 47123     const scrollY = (_e$currentTarget$scro = e?.currentTarget?.scrollTop) !== null && _e$currentTarget$scro !== void 0 ? _e$currentTarget$scro : -1;
 48071     const scrollY = (_e$currentTarget$scro = e?.currentTarget?.scrollTop) !== null && _e$currentTarget$scro !== void 0 ? _e$currentTarget$scro : -1;
 47147       button
 48095       button
 47148     }) => {
 48096     }) => {
 47149       const isSameTarget = target === pressTarget;
 48097       const isSameTarget = target === pressTarget;
 47150       pressTarget = null;
 48098       pressTarget = null;
 47151       if (button === 0 && isSameTarget) {
 48099       if (button === 0 && isSameTarget) {
 47152         onRequestClose();
 48100         closeModal().then(() => onRequestClose());
 47153       }
 48101       }
 47154     }
 48102     }
 47155   };
 48103   };
 47156   const modal =
 48104   const modal =
 47157   /*#__PURE__*/
 48105   /*#__PURE__*/
 47158   // eslint-disable-next-line jsx-a11y/no-static-element-interactions
 48106   // eslint-disable-next-line jsx-a11y/no-static-element-interactions
 47159   (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 48107   (0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 47160     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, forwardedRef]),
 48108     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, forwardedRef]),
 47161     className: dist_clsx('components-modal__screen-overlay', overlayClassName),
 48109     className: dist_clsx('components-modal__screen-overlay', overlayClassname, overlayClassnameProp),
 47162     onKeyDown: withIgnoreIMEEvents(handleEscapeKeyDown),
 48110     onKeyDown: withIgnoreIMEEvents(handleEscapeKeyDown),
 47163     ...(shouldCloseOnClickOutside ? overlayPressHandlers : {}),
 48111     ...(shouldCloseOnClickOutside ? overlayPressHandlers : {}),
 47164     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_provider, {
 48112     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(style_provider, {
 47165       document: document,
 48113       document: document,
 47166       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 48114       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 47167         className: dist_clsx('components-modal__frame', sizeClass, className),
 48115         className: dist_clsx('components-modal__frame', sizeClass, className),
 47168         style: style,
 48116         style: {
 47169         ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([constrainedTabbingRef, focusReturnRef, focusOnMount !== 'firstContentElement' ? focusOnMountRef : null]),
 48117           ...frameStyle,
       
 48118           ...style
       
 48119         },
       
 48120         ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([frameRef, constrainedTabbingRef, focusReturnRef, focusOnMount !== 'firstContentElement' ? focusOnMountRef : null]),
 47170         role: role,
 48121         role: role,
 47171         "aria-label": contentLabel,
 48122         "aria-label": contentLabel,
 47172         "aria-labelledby": contentLabel ? undefined : headingId,
 48123         "aria-labelledby": contentLabel ? undefined : headingId,
 47173         "aria-describedby": aria.describedby,
 48124         "aria-describedby": aria.describedby,
 47174         tabIndex: -1,
 48125         tabIndex: -1,
 47195               }), title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
 48146               }), title && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h1", {
 47196                 id: headingId,
 48147                 id: headingId,
 47197                 className: "components-modal__header-heading",
 48148                 className: "components-modal__header-heading",
 47198                 children: title
 48149                 children: title
 47199               })]
 48150               })]
 47200             }), headerActions, isDismissible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 48151             }), headerActions, isDismissible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 47201               onClick: onRequestClose,
 48152               children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 47202               icon: library_close,
 48153                 marginBottom: 0,
 47203               label: closeButtonLabel || (0,external_wp_i18n_namespaceObject.__)('Close')
 48154                 marginLeft: 2
       
 48155               }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 48156                 size: "compact",
       
 48157                 onClick: event => closeModal().then(() => onRequestClose(event)),
       
 48158                 icon: library_close,
       
 48159                 label: closeButtonLabel || (0,external_wp_i18n_namespaceObject.__)('Close')
       
 48160               })]
 47204             })]
 48161             })]
 47205           }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 48162           }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 47206             ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([childrenContainerRef, focusOnMount === 'firstContentElement' ? focusOnMountRef : null]),
 48163             ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([childrenContainerRef, focusOnMount === 'firstContentElement' ? focusOnMountRef : null]),
 47207             children: children
 48164             children: children
 47208           })]
 48165           })]
 47209         })
 48166         })
 47210       })
 48167       })
 47211     })
 48168     })
 47212   });
 48169   });
 47213   return (0,external_wp_element_namespaceObject.createPortal)( /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModalContext.Provider, {
 48170   return (0,external_wp_element_namespaceObject.createPortal)(/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ModalContext.Provider, {
 47214     value: nestedDismissers.current,
 48171     value: nestedDismissers,
 47215     children: modal
 48172     children: modal
 47216   }), document.body);
 48173   }), document.body);
 47217 }
 48174 }
 47218 
 48175 
 47219 /**
 48176 /**
 47248  * ```
 48205  * ```
 47249  */
 48206  */
 47250 const Modal = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedModal);
 48207 const Modal = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedModal);
 47251 /* harmony default export */ const modal = (Modal);
 48208 /* harmony default export */ const modal = (Modal);
 47252 
 48209 
 47253 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/confirm-dialog/styles.js
 48210 ;// ./node_modules/@wordpress/components/build-module/confirm-dialog/styles.js
 47254 function confirm_dialog_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 48211 function confirm_dialog_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 47255 /**
 48212 /**
 47256  * External dependencies
 48213  * External dependencies
 47257  */
 48214  */
 47258 
 48215 
 47268 const styles_wrapper =  true ? {
 48225 const styles_wrapper =  true ? {
 47269   name: "7g5ii0",
 48226   name: "7g5ii0",
 47270   styles: "&&{z-index:1000001;}"
 48227   styles: "&&{z-index:1000001;}"
 47271 } : 0;
 48228 } : 0;
 47272 
 48229 
 47273 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/confirm-dialog/component.js
 48230 ;// ./node_modules/@wordpress/components/build-module/confirm-dialog/component.js
 47274 /**
 48231 /**
 47275  * WordPress dependencies
 48232  * WordPress dependencies
 47276  */
 48233  */
 47277 
 48234 
 47278 
 48235 
 47279 
 48236 
 47280 /**
 48237 /**
 47281  * Internal dependencies
 48238  * Internal dependencies
 47282  */
 48239  */
 47283 
       
 47284 
       
 47285 
 48240 
 47286 
 48241 
 47287 
 48242 
 47288 
 48243 
 47289 
 48244 
 47436  * ```
 48391  * ```
 47437  */
 48392  */
 47438 const ConfirmDialog = contextConnect(UnconnectedConfirmDialog, 'ConfirmDialog');
 48393 const ConfirmDialog = contextConnect(UnconnectedConfirmDialog, 'ConfirmDialog');
 47439 /* harmony default export */ const confirm_dialog_component = (ConfirmDialog);
 48394 /* harmony default export */ const confirm_dialog_component = (ConfirmDialog);
 47440 
 48395 
 47441 // EXTERNAL MODULE: ./node_modules/prop-types/index.js
 48396 ;// ./node_modules/@ariakit/react-core/esm/__chunks/VEVQD5MH.js
 47442 var prop_types = __webpack_require__(5826);
 48397 "use client";
 47443 var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
 48398 
 47444 // EXTERNAL MODULE: ./node_modules/downshift/node_modules/react-is/index.js
 48399 
 47445 var react_is = __webpack_require__(1915);
 48400 
 47446 ;// CONCATENATED MODULE: ./node_modules/compute-scroll-into-view/dist/index.mjs
 48401 
 47447 function dist_t(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function dist_e(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function dist_n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return dist_e(r.overflowY,n)||dist_e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function dist_r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}var compute_scroll_into_view_dist_i=function(e,i){var o=window,l=i.scrollMode,d=i.block,f=i.inline,h=i.boundary,u=i.skipOverflowHiddenElements,s="function"==typeof h?h:function(t){return t!==h};if(!dist_t(e))throw new TypeError("Invalid target");for(var a,c,g=document.scrollingElement||document.documentElement,p=[],m=e;dist_t(m)&&s(m);){if((m=null==(c=(a=m).parentElement)?a.getRootNode().host||null:c)===g){p.push(m);break}null!=m&&m===document.body&&dist_n(m)&&!dist_n(document.documentElement)||null!=m&&dist_n(m,u)&&p.push(m)}for(var w=o.visualViewport?o.visualViewport.width:innerWidth,v=o.visualViewport?o.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,H=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,E=b.width,M=b.top,V=b.right,x=b.bottom,I=b.left,C="start"===d||"nearest"===d?M:"end"===d?x:M+y/2,R="center"===f?I+E/2:"end"===f?V:I,T=[],k=0;k<p.length;k++){var B=p[k],D=B.getBoundingClientRect(),O=D.height,X=D.width,Y=D.top,L=D.right,S=D.bottom,j=D.left;if("if-needed"===l&&M>=0&&I>=0&&x<=v&&V<=w&&M>=Y&&x<=S&&I>=j&&V<=L)return T;var N=getComputedStyle(B),q=parseInt(N.borderLeftWidth,10),z=parseInt(N.borderTopWidth,10),A=parseInt(N.borderRightWidth,10),F=parseInt(N.borderBottomWidth,10),G=0,J=0,K="offsetWidth"in B?B.offsetWidth-B.clientWidth-q-A:0,P="offsetHeight"in B?B.offsetHeight-B.clientHeight-z-F:0,Q="offsetWidth"in B?0===B.offsetWidth?0:X/B.offsetWidth:0,U="offsetHeight"in B?0===B.offsetHeight?0:O/B.offsetHeight:0;if(g===B)G="start"===d?C:"end"===d?C-v:"nearest"===d?dist_r(H,H+v,v,z,F,H+C,H+C+y,y):C-v/2,J="start"===f?R:"center"===f?R-w/2:"end"===f?R-w:dist_r(W,W+w,w,q,A,W+R,W+R+E,E),G=Math.max(0,G+H),J=Math.max(0,J+W);else{G="start"===d?C-Y-z:"end"===d?C-S+F+P:"nearest"===d?dist_r(Y,S,O,z,F+P,C,C+y,y):C-(Y+O/2)+P/2,J="start"===f?R-j-q:"center"===f?R-(j+X/2)+K/2:"end"===f?R-L+A+K:dist_r(j,L,X,q,A+K,R,R+E,E);var Z=B.scrollLeft,$=B.scrollTop;C+=$-(G=Math.max(0,Math.min($+G/U,B.scrollHeight-O/U+P))),R+=Z-(J=Math.max(0,Math.min(Z+J/Q,B.scrollWidth-X/Q+K)))}T.push({el:B,top:G,left:J})}return T};
 48402 // src/combobox/combobox-context.tsx
 47448 //# sourceMappingURL=index.mjs.map
 48403 
 47449 
 48404 var ComboboxListRoleContext = (0,external_React_.createContext)(
 47450 ;// CONCATENATED MODULE: ./node_modules/downshift/dist/downshift.esm.js
 48405   void 0
 47451 
 48406 );
 47452 
 48407 var VEVQD5MH_ctx = createStoreContext(
 47453 
 48408   [PopoverContextProvider, CompositeContextProvider],
 47454 
 48409   [PopoverScopedContextProvider, CompositeScopedContextProvider]
 47455 
 48410 );
 47456 
 48411 var useComboboxContext = VEVQD5MH_ctx.useContext;
 47457 let idCounter = 0;
 48412 var useComboboxScopedContext = VEVQD5MH_ctx.useScopedContext;
 47458 /**
 48413 var useComboboxProviderContext = VEVQD5MH_ctx.useProviderContext;
 47459  * Accepts a parameter and returns it if it's a function
 48414 var ComboboxContextProvider = VEVQD5MH_ctx.ContextProvider;
 47460  * or a noop function if it's not. This allows us to
 48415 var ComboboxScopedContextProvider = VEVQD5MH_ctx.ScopedContextProvider;
 47461  * accept a callback, but not worry about it if it's not
 48416 var ComboboxItemValueContext = (0,external_React_.createContext)(
 47462  * passed.
 48417   void 0
 47463  * @param {Function} cb the callback
 48418 );
 47464  * @return {Function} a function
 48419 var ComboboxItemCheckedContext = (0,external_React_.createContext)(false);
 47465  */
 48420 
 47466 
 48421 
 47467 function cbToCb(cb) {
 48422 
 47468   return typeof cb === 'function' ? cb : downshift_esm_noop;
 48423 ;// ./node_modules/@ariakit/core/esm/select/select-store.js
 47469 }
 48424 "use client";
 47470 
 48425 
 47471 function downshift_esm_noop() {}
 48426 
 47472 /**
 48427 
 47473  * Scroll node into view if necessary
 48428 
 47474  * @param {HTMLElement} node the element that should scroll into view
 48429 
 47475  * @param {HTMLElement} menuNode the menu element of the component
 48430 
 47476  */
 48431 
 47477 
 48432 
 47478 
 48433 
 47479 function scrollIntoView(node, menuNode) {
 48434 
 47480   if (!node) {
 48435 
 47481     return;
 48436 // src/select/select-store.ts
 47482   }
 48437 function createSelectStore(_a = {}) {
 47483 
 48438   var _b = _a, {
 47484   const actions = compute_scroll_into_view_dist_i(node, {
 48439     combobox
 47485     boundary: menuNode,
 48440   } = _b, props = _3YLGPPWQ_objRest(_b, [
 47486     block: 'nearest',
 48441     "combobox"
 47487     scrollMode: 'if-needed'
 48442   ]);
       
 48443   const store = mergeStore(
       
 48444     props.store,
       
 48445     omit2(combobox, [
       
 48446       "value",
       
 48447       "items",
       
 48448       "renderedItems",
       
 48449       "baseElement",
       
 48450       "arrowElement",
       
 48451       "anchorElement",
       
 48452       "contentElement",
       
 48453       "popoverElement",
       
 48454       "disclosureElement"
       
 48455     ])
       
 48456   );
       
 48457   throwOnConflictingProps(props, store);
       
 48458   const syncState = store.getState();
       
 48459   const composite = createCompositeStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
       
 48460     store,
       
 48461     virtualFocus: defaultValue(
       
 48462       props.virtualFocus,
       
 48463       syncState.virtualFocus,
       
 48464       true
       
 48465     ),
       
 48466     includesBaseElement: defaultValue(
       
 48467       props.includesBaseElement,
       
 48468       syncState.includesBaseElement,
       
 48469       false
       
 48470     ),
       
 48471     activeId: defaultValue(
       
 48472       props.activeId,
       
 48473       syncState.activeId,
       
 48474       props.defaultActiveId,
       
 48475       null
       
 48476     ),
       
 48477     orientation: defaultValue(
       
 48478       props.orientation,
       
 48479       syncState.orientation,
       
 48480       "vertical"
       
 48481     )
       
 48482   }));
       
 48483   const popover = createPopoverStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
       
 48484     store,
       
 48485     placement: defaultValue(
       
 48486       props.placement,
       
 48487       syncState.placement,
       
 48488       "bottom-start"
       
 48489     )
       
 48490   }));
       
 48491   const initialValue = new String("");
       
 48492   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, composite.getState()), popover.getState()), {
       
 48493     value: defaultValue(
       
 48494       props.value,
       
 48495       syncState.value,
       
 48496       props.defaultValue,
       
 48497       initialValue
       
 48498     ),
       
 48499     setValueOnMove: defaultValue(
       
 48500       props.setValueOnMove,
       
 48501       syncState.setValueOnMove,
       
 48502       false
       
 48503     ),
       
 48504     labelElement: defaultValue(syncState.labelElement, null),
       
 48505     selectElement: defaultValue(syncState.selectElement, null),
       
 48506     listElement: defaultValue(syncState.listElement, null)
 47488   });
 48507   });
 47489   actions.forEach(_ref => {
 48508   const select = createStore(initialState, composite, popover, store);
 47490     let {
 48509   setup(
 47491       el,
 48510     select,
 47492       top,
 48511     () => sync(select, ["value", "items"], (state) => {
 47493       left
 48512       if (state.value !== initialValue) return;
 47494     } = _ref;
 48513       if (!state.items.length) return;
 47495     el.scrollTop = top;
 48514       const item = state.items.find(
 47496     el.scrollLeft = left;
 48515         (item2) => !item2.disabled && item2.value != null
       
 48516       );
       
 48517       if ((item == null ? void 0 : item.value) == null) return;
       
 48518       select.setState("value", item.value);
       
 48519     })
       
 48520   );
       
 48521   setup(
       
 48522     select,
       
 48523     () => sync(select, ["mounted"], (state) => {
       
 48524       if (state.mounted) return;
       
 48525       select.setState("activeId", initialState.activeId);
       
 48526     })
       
 48527   );
       
 48528   setup(
       
 48529     select,
       
 48530     () => sync(select, ["mounted", "items", "value"], (state) => {
       
 48531       if (combobox) return;
       
 48532       if (state.mounted) return;
       
 48533       const values = toArray(state.value);
       
 48534       const lastValue = values[values.length - 1];
       
 48535       if (lastValue == null) return;
       
 48536       const item = state.items.find(
       
 48537         (item2) => !item2.disabled && item2.value === lastValue
       
 48538       );
       
 48539       if (!item) return;
       
 48540       select.setState("activeId", item.id);
       
 48541     })
       
 48542   );
       
 48543   setup(
       
 48544     select,
       
 48545     () => batch(select, ["setValueOnMove", "moves"], (state) => {
       
 48546       const { mounted, value, activeId } = select.getState();
       
 48547       if (!state.setValueOnMove && mounted) return;
       
 48548       if (Array.isArray(value)) return;
       
 48549       if (!state.moves) return;
       
 48550       if (!activeId) return;
       
 48551       const item = composite.item(activeId);
       
 48552       if (!item || item.disabled || item.value == null) return;
       
 48553       select.setState("value", item.value);
       
 48554     })
       
 48555   );
       
 48556   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, composite), popover), select), {
       
 48557     combobox,
       
 48558     setValue: (value) => select.setState("value", value),
       
 48559     setLabelElement: (element) => select.setState("labelElement", element),
       
 48560     setSelectElement: (element) => select.setState("selectElement", element),
       
 48561     setListElement: (element) => select.setState("listElement", element)
 47497   });
 48562   });
 47498 }
 48563 }
 47499 /**
 48564 
 47500  * @param {HTMLElement} parent the parent node
 48565 
 47501  * @param {HTMLElement} child the child node
 48566 ;// ./node_modules/@ariakit/react-core/esm/__chunks/S5WQ44SQ.js
 47502  * @param {Window} environment The window context where downshift renders.
 48567 "use client";
 47503  * @return {Boolean} whether the parent is the child or the child is in the parent
 48568 
 47504  */
 48569 
 47505 
 48570 
 47506 
 48571 
 47507 function isOrContainsNode(parent, child, environment) {
 48572 
 47508   const result = parent === child || child instanceof environment.Node && parent.contains && parent.contains(child);
 48573 
 47509   return result;
 48574 
 47510 }
 48575 // src/select/select-store.ts
 47511 /**
 48576 
 47512  * Simple debounce implementation. Will call the given
 48577 function useSelectStoreOptions(props) {
 47513  * function once after the time given has passed since
 48578   const combobox = useComboboxProviderContext();
 47514  * it was last called.
 48579   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
 47515  * @param {Function} fn the function to call after the time
 48580     combobox: props.combobox !== void 0 ? props.combobox : combobox
 47516  * @param {Number} time the time to wait
 48581   });
 47517  * @return {Function} the debounced function
 48582   return useCompositeStoreOptions(props);
 47518  */
 48583 }
 47519 
 48584 function useSelectStoreProps(store, update, props) {
 47520 
 48585   useUpdateEffect(update, [props.combobox]);
 47521 function debounce(fn, time) {
 48586   useStoreProps(store, props, "value", "setValue");
 47522   let timeoutId;
 48587   useStoreProps(store, props, "setValueOnMove");
 47523 
 48588   return Object.assign(
 47524   function cancel() {
 48589     usePopoverStoreProps(
 47525     if (timeoutId) {
 48590       useCompositeStoreProps(store, update, props),
 47526       clearTimeout(timeoutId);
 48591       update,
 47527     }
 48592       props
 47528   }
 48593     ),
 47529 
 48594     { combobox: props.combobox }
 47530   function wrapper() {
 48595   );
 47531     for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
 48596 }
 47532       args[_key] = arguments[_key];
 48597 function useSelectStore(props = {}) {
 47533     }
 48598   props = useSelectStoreOptions(props);
 47534 
 48599   const [store, update] = YV4JVR4I_useStore(createSelectStore, props);
 47535     cancel();
 48600   return useSelectStoreProps(store, update, props);
 47536     timeoutId = setTimeout(() => {
 48601 }
 47537       timeoutId = null;
 48602 
 47538       fn(...args);
 48603 
 47539     }, time);
 48604 
 47540   }
 48605 ;// ./node_modules/@ariakit/react-core/esm/__chunks/KPEX55MY.js
 47541 
 48606 "use client";
 47542   wrapper.cancel = cancel;
 48607 
 47543   return wrapper;
 48608 
 47544 }
 48609 
 47545 /**
 48610 
 47546  * This is intended to be used to compose event handlers.
 48611 // src/select/select-context.tsx
 47547  * They are executed in order until one of them sets
 48612 
 47548  * `event.preventDownshiftDefault = true`.
 48613 var KPEX55MY_ctx = createStoreContext(
 47549  * @param {...Function} fns the event handler functions
 48614   [PopoverContextProvider, CompositeContextProvider],
 47550  * @return {Function} the event handler to add to an element
 48615   [PopoverScopedContextProvider, CompositeScopedContextProvider]
 47551  */
 48616 );
 47552 
 48617 var useSelectContext = KPEX55MY_ctx.useContext;
 47553 
 48618 var useSelectScopedContext = KPEX55MY_ctx.useScopedContext;
 47554 function callAllEventHandlers() {
 48619 var useSelectProviderContext = KPEX55MY_ctx.useProviderContext;
 47555   for (var _len2 = arguments.length, fns = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
 48620 var SelectContextProvider = KPEX55MY_ctx.ContextProvider;
 47556     fns[_key2] = arguments[_key2];
 48621 var SelectScopedContextProvider = KPEX55MY_ctx.ScopedContextProvider;
 47557   }
 48622 var SelectItemCheckedContext = (0,external_React_.createContext)(false);
 47558 
 48623 var SelectHeadingContext = (0,external_React_.createContext)(null);
 47559   return function (event) {
 48624 
 47560     for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
 48625 
 47561       args[_key3 - 1] = arguments[_key3];
 48626 
 47562     }
 48627 ;// ./node_modules/@ariakit/react-core/esm/select/select-label.js
 47563 
 48628 "use client";
 47564     return fns.some(fn => {
 48629 
 47565       if (fn) {
 48630 
 47566         fn(event, ...args);
 48631 
       
 48632 
       
 48633 
       
 48634 
       
 48635 
       
 48636 
       
 48637 
       
 48638 
       
 48639 
       
 48640 // src/select/select-label.tsx
       
 48641 
       
 48642 var select_label_TagName = "div";
       
 48643 var useSelectLabel = createHook(
       
 48644   function useSelectLabel2(_a) {
       
 48645     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 48646     const context = useSelectProviderContext();
       
 48647     store = store || context;
       
 48648     invariant(
       
 48649       store,
       
 48650        false && 0
       
 48651     );
       
 48652     const id = useId(props.id);
       
 48653     const onClickProp = props.onClick;
       
 48654     const onClick = useEvent((event) => {
       
 48655       onClickProp == null ? void 0 : onClickProp(event);
       
 48656       if (event.defaultPrevented) return;
       
 48657       queueMicrotask(() => {
       
 48658         const select = store == null ? void 0 : store.getState().selectElement;
       
 48659         select == null ? void 0 : select.focus();
       
 48660       });
       
 48661     });
       
 48662     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 48663       id
       
 48664     }, props), {
       
 48665       ref: useMergeRefs(store.setLabelElement, props.ref),
       
 48666       onClick,
       
 48667       style: _3YLGPPWQ_spreadValues({
       
 48668         cursor: "default"
       
 48669       }, props.style)
       
 48670     });
       
 48671     return removeUndefinedValues(props);
       
 48672   }
       
 48673 );
       
 48674 var SelectLabel = memo2(
       
 48675   forwardRef2(function SelectLabel2(props) {
       
 48676     const htmlProps = useSelectLabel(props);
       
 48677     return LMDWO4NN_createElement(select_label_TagName, htmlProps);
       
 48678   })
       
 48679 );
       
 48680 
       
 48681 
       
 48682 ;// ./node_modules/@ariakit/react-core/esm/__chunks/X5NMLKT6.js
       
 48683 "use client";
       
 48684 
       
 48685 
       
 48686 
       
 48687 
       
 48688 
       
 48689 // src/button/button.tsx
       
 48690 
       
 48691 
       
 48692 var X5NMLKT6_TagName = "button";
       
 48693 var useButton = createHook(
       
 48694   function useButton2(props) {
       
 48695     const ref = (0,external_React_.useRef)(null);
       
 48696     const tagName = useTagName(ref, X5NMLKT6_TagName);
       
 48697     const [isNativeButton, setIsNativeButton] = (0,external_React_.useState)(
       
 48698       () => !!tagName && isButton({ tagName, type: props.type })
       
 48699     );
       
 48700     (0,external_React_.useEffect)(() => {
       
 48701       if (!ref.current) return;
       
 48702       setIsNativeButton(isButton(ref.current));
       
 48703     }, []);
       
 48704     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 48705       role: !isNativeButton && tagName !== "a" ? "button" : void 0
       
 48706     }, props), {
       
 48707       ref: useMergeRefs(ref, props.ref)
       
 48708     });
       
 48709     props = useCommand(props);
       
 48710     return props;
       
 48711   }
       
 48712 );
       
 48713 var X5NMLKT6_Button = forwardRef2(function Button2(props) {
       
 48714   const htmlProps = useButton(props);
       
 48715   return LMDWO4NN_createElement(X5NMLKT6_TagName, htmlProps);
       
 48716 });
       
 48717 
       
 48718 
       
 48719 
       
 48720 ;// ./node_modules/@ariakit/react-core/esm/__chunks/P4IRICAX.js
       
 48721 "use client";
       
 48722 
       
 48723 
       
 48724 
       
 48725 
       
 48726 
       
 48727 
       
 48728 // src/disclosure/disclosure.tsx
       
 48729 
       
 48730 
       
 48731 var P4IRICAX_TagName = "button";
       
 48732 var P4IRICAX_symbol = Symbol("disclosure");
       
 48733 var useDisclosure = createHook(
       
 48734   function useDisclosure2(_a) {
       
 48735     var _b = _a, { store, toggleOnClick = true } = _b, props = __objRest(_b, ["store", "toggleOnClick"]);
       
 48736     const context = useDisclosureProviderContext();
       
 48737     store = store || context;
       
 48738     invariant(
       
 48739       store,
       
 48740        false && 0
       
 48741     );
       
 48742     const ref = (0,external_React_.useRef)(null);
       
 48743     const [expanded, setExpanded] = (0,external_React_.useState)(false);
       
 48744     const disclosureElement = store.useState("disclosureElement");
       
 48745     const open = store.useState("open");
       
 48746     (0,external_React_.useEffect)(() => {
       
 48747       let isCurrentDisclosure = disclosureElement === ref.current;
       
 48748       if (!(disclosureElement == null ? void 0 : disclosureElement.isConnected)) {
       
 48749         store == null ? void 0 : store.setDisclosureElement(ref.current);
       
 48750         isCurrentDisclosure = true;
 47567       }
 48751       }
 47568 
 48752       setExpanded(open && isCurrentDisclosure);
 47569       return event.preventDownshiftDefault || event.hasOwnProperty('nativeEvent') && event.nativeEvent.preventDownshiftDefault;
 48753     }, [disclosureElement, store, open]);
       
 48754     const onClickProp = props.onClick;
       
 48755     const toggleOnClickProp = useBooleanEvent(toggleOnClick);
       
 48756     const [isDuplicate, metadataProps] = useMetadataProps(props, P4IRICAX_symbol, true);
       
 48757     const onClick = useEvent((event) => {
       
 48758       onClickProp == null ? void 0 : onClickProp(event);
       
 48759       if (event.defaultPrevented) return;
       
 48760       if (isDuplicate) return;
       
 48761       if (!toggleOnClickProp(event)) return;
       
 48762       store == null ? void 0 : store.setDisclosureElement(event.currentTarget);
       
 48763       store == null ? void 0 : store.toggle();
       
 48764     });
       
 48765     const contentElement = store.useState("contentElement");
       
 48766     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues(_3YLGPPWQ_spreadValues({
       
 48767       "aria-expanded": expanded,
       
 48768       "aria-controls": contentElement == null ? void 0 : contentElement.id
       
 48769     }, metadataProps), props), {
       
 48770       ref: useMergeRefs(ref, props.ref),
       
 48771       onClick
       
 48772     });
       
 48773     props = useButton(props);
       
 48774     return props;
       
 48775   }
       
 48776 );
       
 48777 var Disclosure = forwardRef2(function Disclosure2(props) {
       
 48778   const htmlProps = useDisclosure(props);
       
 48779   return LMDWO4NN_createElement(P4IRICAX_TagName, htmlProps);
       
 48780 });
       
 48781 
       
 48782 
       
 48783 
       
 48784 ;// ./node_modules/@ariakit/react-core/esm/__chunks/AXB53BZF.js
       
 48785 "use client";
       
 48786 
       
 48787 
       
 48788 
       
 48789 
       
 48790 
       
 48791 // src/dialog/dialog-disclosure.tsx
       
 48792 
       
 48793 
       
 48794 var AXB53BZF_TagName = "button";
       
 48795 var useDialogDisclosure = createHook(
       
 48796   function useDialogDisclosure2(_a) {
       
 48797     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 48798     const context = useDialogProviderContext();
       
 48799     store = store || context;
       
 48800     invariant(
       
 48801       store,
       
 48802        false && 0
       
 48803     );
       
 48804     const contentElement = store.useState("contentElement");
       
 48805     props = _3YLGPPWQ_spreadValues({
       
 48806       "aria-haspopup": getPopupRole(contentElement, "dialog")
       
 48807     }, props);
       
 48808     props = useDisclosure(_3YLGPPWQ_spreadValues({ store }, props));
       
 48809     return props;
       
 48810   }
       
 48811 );
       
 48812 var DialogDisclosure = forwardRef2(function DialogDisclosure2(props) {
       
 48813   const htmlProps = useDialogDisclosure(props);
       
 48814   return LMDWO4NN_createElement(AXB53BZF_TagName, htmlProps);
       
 48815 });
       
 48816 
       
 48817 
       
 48818 
       
 48819 ;// ./node_modules/@ariakit/react-core/esm/__chunks/OMU7RWRV.js
       
 48820 "use client";
       
 48821 
       
 48822 
       
 48823 
       
 48824 
       
 48825 
       
 48826 // src/popover/popover-anchor.tsx
       
 48827 var OMU7RWRV_TagName = "div";
       
 48828 var usePopoverAnchor = createHook(
       
 48829   function usePopoverAnchor2(_a) {
       
 48830     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 48831     const context = usePopoverProviderContext();
       
 48832     store = store || context;
       
 48833     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
 48834       ref: useMergeRefs(store == null ? void 0 : store.setAnchorElement, props.ref)
       
 48835     });
       
 48836     return props;
       
 48837   }
       
 48838 );
       
 48839 var PopoverAnchor = forwardRef2(function PopoverAnchor2(props) {
       
 48840   const htmlProps = usePopoverAnchor(props);
       
 48841   return LMDWO4NN_createElement(OMU7RWRV_TagName, htmlProps);
       
 48842 });
       
 48843 
       
 48844 
       
 48845 
       
 48846 ;// ./node_modules/@ariakit/react-core/esm/__chunks/QYJ6MIDR.js
       
 48847 "use client";
       
 48848 
       
 48849 
       
 48850 
       
 48851 
       
 48852 
       
 48853 
       
 48854 
       
 48855 // src/popover/popover-disclosure.tsx
       
 48856 
       
 48857 
       
 48858 var QYJ6MIDR_TagName = "button";
       
 48859 var usePopoverDisclosure = createHook(function usePopoverDisclosure2(_a) {
       
 48860   var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 48861   const context = usePopoverProviderContext();
       
 48862   store = store || context;
       
 48863   invariant(
       
 48864     store,
       
 48865      false && 0
       
 48866   );
       
 48867   const onClickProp = props.onClick;
       
 48868   const onClick = useEvent((event) => {
       
 48869     store == null ? void 0 : store.setAnchorElement(event.currentTarget);
       
 48870     onClickProp == null ? void 0 : onClickProp(event);
       
 48871   });
       
 48872   props = useWrapElement(
       
 48873     props,
       
 48874     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
       
 48875     [store]
       
 48876   );
       
 48877   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
 48878     onClick
       
 48879   });
       
 48880   props = usePopoverAnchor(_3YLGPPWQ_spreadValues({ store }, props));
       
 48881   props = useDialogDisclosure(_3YLGPPWQ_spreadValues({ store }, props));
       
 48882   return props;
       
 48883 });
       
 48884 var PopoverDisclosure = forwardRef2(function PopoverDisclosure2(props) {
       
 48885   const htmlProps = usePopoverDisclosure(props);
       
 48886   return LMDWO4NN_createElement(QYJ6MIDR_TagName, htmlProps);
       
 48887 });
       
 48888 
       
 48889 
       
 48890 
       
 48891 ;// ./node_modules/@ariakit/react-core/esm/__chunks/DR55NYVS.js
       
 48892 "use client";
       
 48893 
       
 48894 
       
 48895 
       
 48896 
       
 48897 // src/popover/popover-disclosure-arrow.tsx
       
 48898 
       
 48899 
       
 48900 
       
 48901 var DR55NYVS_TagName = "span";
       
 48902 var pointsMap = {
       
 48903   top: "4,10 8,6 12,10",
       
 48904   right: "6,4 10,8 6,12",
       
 48905   bottom: "4,6 8,10 12,6",
       
 48906   left: "10,4 6,8 10,12"
       
 48907 };
       
 48908 var usePopoverDisclosureArrow = createHook(function usePopoverDisclosureArrow2(_a) {
       
 48909   var _b = _a, { store, placement } = _b, props = __objRest(_b, ["store", "placement"]);
       
 48910   const context = usePopoverContext();
       
 48911   store = store || context;
       
 48912   invariant(
       
 48913     store,
       
 48914      false && 0
       
 48915   );
       
 48916   const position = store.useState((state) => placement || state.placement);
       
 48917   const dir = position.split("-")[0];
       
 48918   const points = pointsMap[dir];
       
 48919   const children = (0,external_React_.useMemo)(
       
 48920     () => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
 48921       "svg",
       
 48922       {
       
 48923         display: "block",
       
 48924         fill: "none",
       
 48925         stroke: "currentColor",
       
 48926         strokeLinecap: "round",
       
 48927         strokeLinejoin: "round",
       
 48928         strokeWidth: 1.5,
       
 48929         viewBox: "0 0 16 16",
       
 48930         height: "1em",
       
 48931         width: "1em",
       
 48932         children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("polyline", { points })
       
 48933       }
       
 48934     ),
       
 48935     [points]
       
 48936   );
       
 48937   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 48938     children,
       
 48939     "aria-hidden": true
       
 48940   }, props), {
       
 48941     style: _3YLGPPWQ_spreadValues({
       
 48942       width: "1em",
       
 48943       height: "1em",
       
 48944       pointerEvents: "none"
       
 48945     }, props.style)
       
 48946   });
       
 48947   return removeUndefinedValues(props);
       
 48948 });
       
 48949 var PopoverDisclosureArrow = forwardRef2(
       
 48950   function PopoverDisclosureArrow2(props) {
       
 48951     const htmlProps = usePopoverDisclosureArrow(props);
       
 48952     return LMDWO4NN_createElement(DR55NYVS_TagName, htmlProps);
       
 48953   }
       
 48954 );
       
 48955 
       
 48956 
       
 48957 
       
 48958 ;// ./node_modules/@ariakit/react-core/esm/__chunks/UD53QJDV.js
       
 48959 "use client";
       
 48960 
       
 48961 
       
 48962 
       
 48963 
       
 48964 
       
 48965 // src/select/select-arrow.tsx
       
 48966 var UD53QJDV_TagName = "span";
       
 48967 var useSelectArrow = createHook(
       
 48968   function useSelectArrow2(_a) {
       
 48969     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 48970     const context = useSelectContext();
       
 48971     store = store || context;
       
 48972     props = usePopoverDisclosureArrow(_3YLGPPWQ_spreadValues({ store }, props));
       
 48973     return props;
       
 48974   }
       
 48975 );
       
 48976 var SelectArrow = forwardRef2(function SelectArrow2(props) {
       
 48977   const htmlProps = useSelectArrow(props);
       
 48978   return LMDWO4NN_createElement(UD53QJDV_TagName, htmlProps);
       
 48979 });
       
 48980 
       
 48981 
       
 48982 
       
 48983 ;// ./node_modules/@ariakit/react-core/esm/select/select.js
       
 48984 "use client";
       
 48985 
       
 48986 
       
 48987 
       
 48988 
       
 48989 
       
 48990 
       
 48991 
       
 48992 
       
 48993 
       
 48994 
       
 48995 
       
 48996 
       
 48997 
       
 48998 
       
 48999 
       
 49000 
       
 49001 
       
 49002 
       
 49003 
       
 49004 
       
 49005 
       
 49006 
       
 49007 
       
 49008 // src/select/select.tsx
       
 49009 
       
 49010 
       
 49011 
       
 49012 
       
 49013 
       
 49014 
       
 49015 var select_TagName = "button";
       
 49016 function getSelectedValues(select) {
       
 49017   return Array.from(select.selectedOptions).map((option) => option.value);
       
 49018 }
       
 49019 function nextWithValue(store, next) {
       
 49020   return () => {
       
 49021     const nextId = next();
       
 49022     if (!nextId) return;
       
 49023     let i = 0;
       
 49024     let nextItem = store.item(nextId);
       
 49025     const firstItem = nextItem;
       
 49026     while (nextItem && nextItem.value == null) {
       
 49027       const nextId2 = next(++i);
       
 49028       if (!nextId2) return;
       
 49029       nextItem = store.item(nextId2);
       
 49030       if (nextItem === firstItem) break;
       
 49031     }
       
 49032     return nextItem == null ? void 0 : nextItem.id;
       
 49033   };
       
 49034 }
       
 49035 var useSelect = createHook(function useSelect2(_a) {
       
 49036   var _b = _a, {
       
 49037     store,
       
 49038     name,
       
 49039     form,
       
 49040     required,
       
 49041     showOnKeyDown = true,
       
 49042     moveOnKeyDown = true,
       
 49043     toggleOnPress = true,
       
 49044     toggleOnClick = toggleOnPress
       
 49045   } = _b, props = __objRest(_b, [
       
 49046     "store",
       
 49047     "name",
       
 49048     "form",
       
 49049     "required",
       
 49050     "showOnKeyDown",
       
 49051     "moveOnKeyDown",
       
 49052     "toggleOnPress",
       
 49053     "toggleOnClick"
       
 49054   ]);
       
 49055   const context = useSelectProviderContext();
       
 49056   store = store || context;
       
 49057   invariant(
       
 49058     store,
       
 49059      false && 0
       
 49060   );
       
 49061   const onKeyDownProp = props.onKeyDown;
       
 49062   const showOnKeyDownProp = useBooleanEvent(showOnKeyDown);
       
 49063   const moveOnKeyDownProp = useBooleanEvent(moveOnKeyDown);
       
 49064   const placement = store.useState("placement");
       
 49065   const dir = placement.split("-")[0];
       
 49066   const value = store.useState("value");
       
 49067   const multiSelectable = Array.isArray(value);
       
 49068   const onKeyDown = useEvent((event) => {
       
 49069     var _a2;
       
 49070     onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 49071     if (event.defaultPrevented) return;
       
 49072     if (!store) return;
       
 49073     const { orientation, items: items2, activeId } = store.getState();
       
 49074     const isVertical = orientation !== "horizontal";
       
 49075     const isHorizontal = orientation !== "vertical";
       
 49076     const isGrid = !!((_a2 = items2.find((item) => !item.disabled && item.value != null)) == null ? void 0 : _a2.rowId);
       
 49077     const moveKeyMap = {
       
 49078       ArrowUp: (isGrid || isVertical) && nextWithValue(store, store.up),
       
 49079       ArrowRight: (isGrid || isHorizontal) && nextWithValue(store, store.next),
       
 49080       ArrowDown: (isGrid || isVertical) && nextWithValue(store, store.down),
       
 49081       ArrowLeft: (isGrid || isHorizontal) && nextWithValue(store, store.previous)
       
 49082     };
       
 49083     const getId = moveKeyMap[event.key];
       
 49084     if (getId && moveOnKeyDownProp(event)) {
       
 49085       event.preventDefault();
       
 49086       store.move(getId());
       
 49087     }
       
 49088     const isTopOrBottom = dir === "top" || dir === "bottom";
       
 49089     const isLeft = dir === "left";
       
 49090     const isRight = dir === "right";
       
 49091     const canShowKeyMap = {
       
 49092       ArrowDown: isTopOrBottom,
       
 49093       ArrowUp: isTopOrBottom,
       
 49094       ArrowLeft: isLeft,
       
 49095       ArrowRight: isRight
       
 49096     };
       
 49097     const canShow = canShowKeyMap[event.key];
       
 49098     if (canShow && showOnKeyDownProp(event)) {
       
 49099       event.preventDefault();
       
 49100       store.move(activeId);
       
 49101       queueBeforeEvent(event.currentTarget, "keyup", store.show);
       
 49102     }
       
 49103   });
       
 49104   props = useWrapElement(
       
 49105     props,
       
 49106     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectScopedContextProvider, { value: store, children: element }),
       
 49107     [store]
       
 49108   );
       
 49109   const [autofill, setAutofill] = (0,external_React_.useState)(false);
       
 49110   const nativeSelectChangedRef = (0,external_React_.useRef)(false);
       
 49111   (0,external_React_.useEffect)(() => {
       
 49112     const nativeSelectChanged = nativeSelectChangedRef.current;
       
 49113     nativeSelectChangedRef.current = false;
       
 49114     if (nativeSelectChanged) return;
       
 49115     setAutofill(false);
       
 49116   }, [value]);
       
 49117   const labelId = store.useState((state) => {
       
 49118     var _a2;
       
 49119     return (_a2 = state.labelElement) == null ? void 0 : _a2.id;
       
 49120   });
       
 49121   const label = props["aria-label"];
       
 49122   const labelledBy = props["aria-labelledby"] || labelId;
       
 49123   const items = store.useState((state) => {
       
 49124     if (!name) return;
       
 49125     return state.items;
       
 49126   });
       
 49127   const values = (0,external_React_.useMemo)(() => {
       
 49128     return [...new Set(items == null ? void 0 : items.map((i) => i.value).filter((v) => v != null))];
       
 49129   }, [items]);
       
 49130   props = useWrapElement(
       
 49131     props,
       
 49132     (element) => {
       
 49133       if (!name) return element;
       
 49134       return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
 49135         /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(
       
 49136           "select",
       
 49137           {
       
 49138             style: {
       
 49139               border: 0,
       
 49140               clip: "rect(0 0 0 0)",
       
 49141               height: "1px",
       
 49142               margin: "-1px",
       
 49143               overflow: "hidden",
       
 49144               padding: 0,
       
 49145               position: "absolute",
       
 49146               whiteSpace: "nowrap",
       
 49147               width: "1px"
       
 49148             },
       
 49149             tabIndex: -1,
       
 49150             "aria-hidden": true,
       
 49151             "aria-label": label,
       
 49152             "aria-labelledby": labelledBy,
       
 49153             name,
       
 49154             form,
       
 49155             required,
       
 49156             value,
       
 49157             multiple: multiSelectable,
       
 49158             onFocus: () => {
       
 49159               var _a2;
       
 49160               return (_a2 = store == null ? void 0 : store.getState().selectElement) == null ? void 0 : _a2.focus();
       
 49161             },
       
 49162             onChange: (event) => {
       
 49163               nativeSelectChangedRef.current = true;
       
 49164               setAutofill(true);
       
 49165               store == null ? void 0 : store.setValue(
       
 49166                 multiSelectable ? getSelectedValues(event.target) : event.target.value
       
 49167               );
       
 49168             },
       
 49169             children: [
       
 49170               toArray(value).map((value2) => {
       
 49171                 if (value2 == null) return null;
       
 49172                 if (values.includes(value2)) return null;
       
 49173                 return /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("option", { value: value2, children: value2 }, value2);
       
 49174               }),
       
 49175               values.map((value2) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("option", { value: value2, children: value2 }, value2))
       
 49176             ]
       
 49177           }
       
 49178         ),
       
 49179         element
       
 49180       ] });
       
 49181     },
       
 49182     [
       
 49183       store,
       
 49184       label,
       
 49185       labelledBy,
       
 49186       name,
       
 49187       form,
       
 49188       required,
       
 49189       value,
       
 49190       multiSelectable,
       
 49191       values
       
 49192     ]
       
 49193   );
       
 49194   const children = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, { children: [
       
 49195     value,
       
 49196     /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectArrow, {})
       
 49197   ] });
       
 49198   const contentElement = store.useState("contentElement");
       
 49199   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 49200     role: "combobox",
       
 49201     "aria-autocomplete": "none",
       
 49202     "aria-labelledby": labelId,
       
 49203     "aria-haspopup": getPopupRole(contentElement, "listbox"),
       
 49204     "data-autofill": autofill || void 0,
       
 49205     "data-name": name,
       
 49206     children
       
 49207   }, props), {
       
 49208     ref: useMergeRefs(store.setSelectElement, props.ref),
       
 49209     onKeyDown
       
 49210   });
       
 49211   props = usePopoverDisclosure(_3YLGPPWQ_spreadValues({ store, toggleOnClick }, props));
       
 49212   props = useCompositeTypeahead(_3YLGPPWQ_spreadValues({ store }, props));
       
 49213   return props;
       
 49214 });
       
 49215 var select_Select = forwardRef2(function Select2(props) {
       
 49216   const htmlProps = useSelect(props);
       
 49217   return LMDWO4NN_createElement(select_TagName, htmlProps);
       
 49218 });
       
 49219 
       
 49220 
       
 49221 ;// ./node_modules/@ariakit/react-core/esm/__chunks/XRBJGF7I.js
       
 49222 "use client";
       
 49223 
       
 49224 
       
 49225 
       
 49226 
       
 49227 
       
 49228 
       
 49229 
       
 49230 
       
 49231 // src/select/select-list.tsx
       
 49232 
       
 49233 
       
 49234 
       
 49235 
       
 49236 var XRBJGF7I_TagName = "div";
       
 49237 var SelectListContext = (0,external_React_.createContext)(null);
       
 49238 var useSelectList = createHook(
       
 49239   function useSelectList2(_a) {
       
 49240     var _b = _a, {
       
 49241       store,
       
 49242       resetOnEscape = true,
       
 49243       hideOnEnter = true,
       
 49244       focusOnMove = true,
       
 49245       composite,
       
 49246       alwaysVisible
       
 49247     } = _b, props = __objRest(_b, [
       
 49248       "store",
       
 49249       "resetOnEscape",
       
 49250       "hideOnEnter",
       
 49251       "focusOnMove",
       
 49252       "composite",
       
 49253       "alwaysVisible"
       
 49254     ]);
       
 49255     const context = useSelectContext();
       
 49256     store = store || context;
       
 49257     invariant(
       
 49258       store,
       
 49259        false && 0
       
 49260     );
       
 49261     const id = useId(props.id);
       
 49262     const value = store.useState("value");
       
 49263     const multiSelectable = Array.isArray(value);
       
 49264     const [defaultValue, setDefaultValue] = (0,external_React_.useState)(value);
       
 49265     const mounted = store.useState("mounted");
       
 49266     (0,external_React_.useEffect)(() => {
       
 49267       if (mounted) return;
       
 49268       setDefaultValue(value);
       
 49269     }, [mounted, value]);
       
 49270     resetOnEscape = resetOnEscape && !multiSelectable;
       
 49271     const onKeyDownProp = props.onKeyDown;
       
 49272     const resetOnEscapeProp = useBooleanEvent(resetOnEscape);
       
 49273     const hideOnEnterProp = useBooleanEvent(hideOnEnter);
       
 49274     const onKeyDown = useEvent((event) => {
       
 49275       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 49276       if (event.defaultPrevented) return;
       
 49277       if (event.key === "Escape" && resetOnEscapeProp(event)) {
       
 49278         store == null ? void 0 : store.setValue(defaultValue);
       
 49279       }
       
 49280       if (event.key === " " || event.key === "Enter") {
       
 49281         if (isSelfTarget(event) && hideOnEnterProp(event)) {
       
 49282           event.preventDefault();
       
 49283           store == null ? void 0 : store.hide();
       
 49284         }
       
 49285       }
       
 49286     });
       
 49287     const headingContext = (0,external_React_.useContext)(SelectHeadingContext);
       
 49288     const headingState = (0,external_React_.useState)();
       
 49289     const [headingId, setHeadingId] = headingContext || headingState;
       
 49290     const headingContextValue = (0,external_React_.useMemo)(
       
 49291       () => [headingId, setHeadingId],
       
 49292       [headingId]
       
 49293     );
       
 49294     const [childStore, setChildStore] = (0,external_React_.useState)(null);
       
 49295     const setStore = (0,external_React_.useContext)(SelectListContext);
       
 49296     (0,external_React_.useEffect)(() => {
       
 49297       if (!setStore) return;
       
 49298       setStore(store);
       
 49299       return () => setStore(null);
       
 49300     }, [setStore, store]);
       
 49301     props = useWrapElement(
       
 49302       props,
       
 49303       (element2) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectScopedContextProvider, { value: store, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectListContext.Provider, { value: setChildStore, children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectHeadingContext.Provider, { value: headingContextValue, children: element2 }) }) }),
       
 49304       [store, headingContextValue]
       
 49305     );
       
 49306     const hasCombobox = !!store.combobox;
       
 49307     composite = composite != null ? composite : !hasCombobox && childStore !== store;
       
 49308     const [element, setElement] = useTransactionState(
       
 49309       composite ? store.setListElement : null
       
 49310     );
       
 49311     const role = useAttribute(element, "role", props.role);
       
 49312     const isCompositeRole = role === "listbox" || role === "menu" || role === "tree" || role === "grid";
       
 49313     const ariaMultiSelectable = composite || isCompositeRole ? multiSelectable || void 0 : void 0;
       
 49314     const hidden = isHidden(mounted, props.hidden, alwaysVisible);
       
 49315     const style = hidden ? _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props.style), { display: "none" }) : props.style;
       
 49316     if (composite) {
       
 49317       props = _3YLGPPWQ_spreadValues({
       
 49318         role: "listbox",
       
 49319         "aria-multiselectable": ariaMultiSelectable
       
 49320       }, props);
       
 49321     }
       
 49322     const labelId = store.useState(
       
 49323       (state) => {
       
 49324         var _a2;
       
 49325         return headingId || ((_a2 = state.labelElement) == null ? void 0 : _a2.id);
       
 49326       }
       
 49327     );
       
 49328     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 49329       id,
       
 49330       "aria-labelledby": labelId,
       
 49331       hidden
       
 49332     }, props), {
       
 49333       ref: useMergeRefs(setElement, props.ref),
       
 49334       style,
       
 49335       onKeyDown
       
 49336     });
       
 49337     props = useComposite(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({ store }, props), { composite }));
       
 49338     props = useCompositeTypeahead(_3YLGPPWQ_spreadValues({ store, typeahead: !hasCombobox }, props));
       
 49339     return props;
       
 49340   }
       
 49341 );
       
 49342 var SelectList = forwardRef2(function SelectList2(props) {
       
 49343   const htmlProps = useSelectList(props);
       
 49344   return LMDWO4NN_createElement(XRBJGF7I_TagName, htmlProps);
       
 49345 });
       
 49346 
       
 49347 
       
 49348 
       
 49349 ;// ./node_modules/@ariakit/react-core/esm/select/select-popover.js
       
 49350 "use client";
       
 49351 
       
 49352 
       
 49353 
       
 49354 
       
 49355 
       
 49356 
       
 49357 
       
 49358 
       
 49359 
       
 49360 
       
 49361 
       
 49362 
       
 49363 
       
 49364 
       
 49365 
       
 49366 
       
 49367 
       
 49368 
       
 49369 
       
 49370 
       
 49371 
       
 49372 
       
 49373 
       
 49374 
       
 49375 
       
 49376 
       
 49377 
       
 49378 
       
 49379 
       
 49380 
       
 49381 
       
 49382 
       
 49383 
       
 49384 
       
 49385 
       
 49386 
       
 49387 
       
 49388 
       
 49389 
       
 49390 
       
 49391 
       
 49392 
       
 49393 
       
 49394 
       
 49395 
       
 49396 
       
 49397 // src/select/select-popover.tsx
       
 49398 var select_popover_TagName = "div";
       
 49399 var useSelectPopover = createHook(
       
 49400   function useSelectPopover2(_a) {
       
 49401     var _b = _a, { store, alwaysVisible } = _b, props = __objRest(_b, ["store", "alwaysVisible"]);
       
 49402     const context = useSelectProviderContext();
       
 49403     store = store || context;
       
 49404     props = useSelectList(_3YLGPPWQ_spreadValues({ store, alwaysVisible }, props));
       
 49405     props = usePopover(_3YLGPPWQ_spreadValues({ store, alwaysVisible }, props));
       
 49406     return props;
       
 49407   }
       
 49408 );
       
 49409 var SelectPopover = createDialogComponent(
       
 49410   forwardRef2(function SelectPopover2(props) {
       
 49411     const htmlProps = useSelectPopover(props);
       
 49412     return LMDWO4NN_createElement(select_popover_TagName, htmlProps);
       
 49413   }),
       
 49414   useSelectProviderContext
       
 49415 );
       
 49416 
       
 49417 
       
 49418 ;// ./node_modules/@ariakit/react-core/esm/__chunks/YF2ICFG4.js
       
 49419 "use client";
       
 49420 
       
 49421 
       
 49422 
       
 49423 
       
 49424 
       
 49425 
       
 49426 
       
 49427 
       
 49428 // src/select/select-item.tsx
       
 49429 
       
 49430 
       
 49431 
       
 49432 
       
 49433 
       
 49434 var YF2ICFG4_TagName = "div";
       
 49435 function isSelected(storeValue, itemValue) {
       
 49436   if (itemValue == null) return;
       
 49437   if (storeValue == null) return false;
       
 49438   if (Array.isArray(storeValue)) {
       
 49439     return storeValue.includes(itemValue);
       
 49440   }
       
 49441   return storeValue === itemValue;
       
 49442 }
       
 49443 var useSelectItem = createHook(
       
 49444   function useSelectItem2(_a) {
       
 49445     var _b = _a, {
       
 49446       store,
       
 49447       value,
       
 49448       getItem: getItemProp,
       
 49449       hideOnClick,
       
 49450       setValueOnClick = value != null,
       
 49451       preventScrollOnKeyDown = true,
       
 49452       focusOnHover = true
       
 49453     } = _b, props = __objRest(_b, [
       
 49454       "store",
       
 49455       "value",
       
 49456       "getItem",
       
 49457       "hideOnClick",
       
 49458       "setValueOnClick",
       
 49459       "preventScrollOnKeyDown",
       
 49460       "focusOnHover"
       
 49461     ]);
       
 49462     var _a2;
       
 49463     const context = useSelectScopedContext();
       
 49464     store = store || context;
       
 49465     invariant(
       
 49466       store,
       
 49467        false && 0
       
 49468     );
       
 49469     const id = useId(props.id);
       
 49470     const disabled = disabledFromProps(props);
       
 49471     const { listElement, multiSelectable, selected, autoFocus } = useStoreStateObject(store, {
       
 49472       listElement: "listElement",
       
 49473       multiSelectable(state) {
       
 49474         return Array.isArray(state.value);
       
 49475       },
       
 49476       selected(state) {
       
 49477         return isSelected(state.value, value);
       
 49478       },
       
 49479       autoFocus(state) {
       
 49480         if (value == null) return false;
       
 49481         if (state.value == null) return false;
       
 49482         if (state.activeId !== id && (store == null ? void 0 : store.item(state.activeId))) {
       
 49483           return false;
       
 49484         }
       
 49485         if (Array.isArray(state.value)) {
       
 49486           return state.value[state.value.length - 1] === value;
       
 49487         }
       
 49488         return state.value === value;
       
 49489       }
       
 49490     });
       
 49491     const getItem = (0,external_React_.useCallback)(
       
 49492       (item) => {
       
 49493         const nextItem = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, item), {
       
 49494           value: disabled ? void 0 : value,
       
 49495           children: value
       
 49496         });
       
 49497         if (getItemProp) {
       
 49498           return getItemProp(nextItem);
       
 49499         }
       
 49500         return nextItem;
       
 49501       },
       
 49502       [disabled, value, getItemProp]
       
 49503     );
       
 49504     hideOnClick = hideOnClick != null ? hideOnClick : value != null && !multiSelectable;
       
 49505     const onClickProp = props.onClick;
       
 49506     const setValueOnClickProp = useBooleanEvent(setValueOnClick);
       
 49507     const hideOnClickProp = useBooleanEvent(hideOnClick);
       
 49508     const onClick = useEvent((event) => {
       
 49509       onClickProp == null ? void 0 : onClickProp(event);
       
 49510       if (event.defaultPrevented) return;
       
 49511       if (isDownloading(event)) return;
       
 49512       if (isOpeningInNewTab(event)) return;
       
 49513       if (setValueOnClickProp(event) && value != null) {
       
 49514         store == null ? void 0 : store.setValue((prevValue) => {
       
 49515           if (!Array.isArray(prevValue)) return value;
       
 49516           if (prevValue.includes(value)) {
       
 49517             return prevValue.filter((v) => v !== value);
       
 49518           }
       
 49519           return [...prevValue, value];
       
 49520         });
       
 49521       }
       
 49522       if (hideOnClickProp(event)) {
       
 49523         store == null ? void 0 : store.hide();
       
 49524       }
       
 49525     });
       
 49526     props = useWrapElement(
       
 49527       props,
       
 49528       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectItemCheckedContext.Provider, { value: selected != null ? selected : false, children: element }),
       
 49529       [selected]
       
 49530     );
       
 49531     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 49532       id,
       
 49533       role: getPopupItemRole(listElement),
       
 49534       "aria-selected": selected,
       
 49535       children: value
       
 49536     }, props), {
       
 49537       autoFocus: (_a2 = props.autoFocus) != null ? _a2 : autoFocus,
       
 49538       onClick
       
 49539     });
       
 49540     props = useCompositeItem(_3YLGPPWQ_spreadValues({
       
 49541       store,
       
 49542       getItem,
       
 49543       preventScrollOnKeyDown
       
 49544     }, props));
       
 49545     const focusOnHoverProp = useBooleanEvent(focusOnHover);
       
 49546     props = useCompositeHover(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 49547       store
       
 49548     }, props), {
       
 49549       // We have to disable focusOnHover when the popup is closed, otherwise
       
 49550       // the active item will change to null (the container) when the popup is
       
 49551       // closed by clicking on an item.
       
 49552       focusOnHover(event) {
       
 49553         if (!focusOnHoverProp(event)) return false;
       
 49554         const state = store == null ? void 0 : store.getState();
       
 49555         return !!(state == null ? void 0 : state.open);
       
 49556       }
       
 49557     }));
       
 49558     return props;
       
 49559   }
       
 49560 );
       
 49561 var SelectItem = memo2(
       
 49562   forwardRef2(function SelectItem2(props) {
       
 49563     const htmlProps = useSelectItem(props);
       
 49564     return LMDWO4NN_createElement(YF2ICFG4_TagName, htmlProps);
       
 49565   })
       
 49566 );
       
 49567 
       
 49568 
       
 49569 
       
 49570 ;// ./node_modules/@ariakit/react-core/esm/__chunks/EYKMH5G5.js
       
 49571 "use client";
       
 49572 
       
 49573 // src/checkbox/checkbox-checked-context.tsx
       
 49574 
       
 49575 var CheckboxCheckedContext = (0,external_React_.createContext)(false);
       
 49576 
       
 49577 
       
 49578 
       
 49579 ;// ./node_modules/@ariakit/react-core/esm/__chunks/5JCRYSSV.js
       
 49580 "use client";
       
 49581 
       
 49582 
       
 49583 
       
 49584 
       
 49585 // src/checkbox/checkbox-check.tsx
       
 49586 
       
 49587 
       
 49588 
       
 49589 var _5JCRYSSV_TagName = "span";
       
 49590 var checkmark = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
 49591   "svg",
       
 49592   {
       
 49593     display: "block",
       
 49594     fill: "none",
       
 49595     stroke: "currentColor",
       
 49596     strokeLinecap: "round",
       
 49597     strokeLinejoin: "round",
       
 49598     strokeWidth: 1.5,
       
 49599     viewBox: "0 0 16 16",
       
 49600     height: "1em",
       
 49601     width: "1em",
       
 49602     children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("polyline", { points: "4,8 7,12 12,4" })
       
 49603   }
       
 49604 );
       
 49605 function getChildren(props) {
       
 49606   if (props.checked) {
       
 49607     return props.children || checkmark;
       
 49608   }
       
 49609   if (typeof props.children === "function") {
       
 49610     return props.children;
       
 49611   }
       
 49612   return null;
       
 49613 }
       
 49614 var useCheckboxCheck = createHook(
       
 49615   function useCheckboxCheck2(_a) {
       
 49616     var _b = _a, { store, checked } = _b, props = __objRest(_b, ["store", "checked"]);
       
 49617     const context = (0,external_React_.useContext)(CheckboxCheckedContext);
       
 49618     checked = checked != null ? checked : context;
       
 49619     const children = getChildren({ checked, children: props.children });
       
 49620     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 49621       "aria-hidden": true
       
 49622     }, props), {
       
 49623       children,
       
 49624       style: _3YLGPPWQ_spreadValues({
       
 49625         width: "1em",
       
 49626         height: "1em",
       
 49627         pointerEvents: "none"
       
 49628       }, props.style)
       
 49629     });
       
 49630     return removeUndefinedValues(props);
       
 49631   }
       
 49632 );
       
 49633 var CheckboxCheck = forwardRef2(function CheckboxCheck2(props) {
       
 49634   const htmlProps = useCheckboxCheck(props);
       
 49635   return LMDWO4NN_createElement(_5JCRYSSV_TagName, htmlProps);
       
 49636 });
       
 49637 
       
 49638 
       
 49639 
       
 49640 ;// ./node_modules/@ariakit/react-core/esm/select/select-item-check.js
       
 49641 "use client";
       
 49642 
       
 49643 
       
 49644 
       
 49645 
       
 49646 
       
 49647 
       
 49648 
       
 49649 
       
 49650 
       
 49651 
       
 49652 
       
 49653 
       
 49654 
       
 49655 // src/select/select-item-check.tsx
       
 49656 
       
 49657 var select_item_check_TagName = "span";
       
 49658 var useSelectItemCheck = createHook(
       
 49659   function useSelectItemCheck2(_a) {
       
 49660     var _b = _a, { store, checked } = _b, props = __objRest(_b, ["store", "checked"]);
       
 49661     const context = (0,external_React_.useContext)(SelectItemCheckedContext);
       
 49662     checked = checked != null ? checked : context;
       
 49663     props = useCheckboxCheck(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { checked }));
       
 49664     return props;
       
 49665   }
       
 49666 );
       
 49667 var SelectItemCheck = forwardRef2(function SelectItemCheck2(props) {
       
 49668   const htmlProps = useSelectItemCheck(props);
       
 49669   return LMDWO4NN_createElement(select_item_check_TagName, htmlProps);
       
 49670 });
       
 49671 
       
 49672 
       
 49673 ;// ./node_modules/@wordpress/components/build-module/custom-select-control-v2/styles.js
       
 49674 
       
 49675 function custom_select_control_v2_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 49676 /**
       
 49677  * External dependencies
       
 49678  */
       
 49679 
       
 49680 
       
 49681 /**
       
 49682  * Internal dependencies
       
 49683  */
       
 49684 
       
 49685 
       
 49686 
       
 49687 
       
 49688 // TODO: extract to common utils and apply to relevant components
       
 49689 const ANIMATION_PARAMS = {
       
 49690   SLIDE_AMOUNT: '2px',
       
 49691   DURATION: '400ms',
       
 49692   EASING: 'cubic-bezier( 0.16, 1, 0.3, 1 )'
       
 49693 };
       
 49694 const INLINE_PADDING = {
       
 49695   compact: config_values.controlPaddingXSmall,
       
 49696   small: config_values.controlPaddingXSmall,
       
 49697   default: config_values.controlPaddingX
       
 49698 };
       
 49699 const getSelectSize = (size, heightProperty) => {
       
 49700   const sizes = {
       
 49701     compact: {
       
 49702       [heightProperty]: 32,
       
 49703       paddingInlineStart: INLINE_PADDING.compact,
       
 49704       paddingInlineEnd: INLINE_PADDING.compact + chevronIconSize
       
 49705     },
       
 49706     default: {
       
 49707       [heightProperty]: 40,
       
 49708       paddingInlineStart: INLINE_PADDING.default,
       
 49709       paddingInlineEnd: INLINE_PADDING.default + chevronIconSize
       
 49710     },
       
 49711     small: {
       
 49712       [heightProperty]: 24,
       
 49713       paddingInlineStart: INLINE_PADDING.small,
       
 49714       paddingInlineEnd: INLINE_PADDING.small + chevronIconSize
       
 49715     }
       
 49716   };
       
 49717   return sizes[size] || sizes.default;
       
 49718 };
       
 49719 const getSelectItemSize = size => {
       
 49720   // Used to visually align the checkmark with the chevron
       
 49721   const checkmarkCorrection = 6;
       
 49722   const sizes = {
       
 49723     compact: {
       
 49724       paddingInlineStart: INLINE_PADDING.compact,
       
 49725       paddingInlineEnd: INLINE_PADDING.compact - checkmarkCorrection
       
 49726     },
       
 49727     default: {
       
 49728       paddingInlineStart: INLINE_PADDING.default,
       
 49729       paddingInlineEnd: INLINE_PADDING.default - checkmarkCorrection
       
 49730     },
       
 49731     small: {
       
 49732       paddingInlineStart: INLINE_PADDING.small,
       
 49733       paddingInlineEnd: INLINE_PADDING.small - checkmarkCorrection
       
 49734     }
       
 49735   };
       
 49736   return sizes[size] || sizes.default;
       
 49737 };
       
 49738 const styles_Select = /*#__PURE__*/emotion_styled_base_browser_esm(select_Select,  true ? {
       
 49739   // Do not forward `hasCustomRenderProp` to the underlying Ariakit.Select component
       
 49740   shouldForwardProp: prop => prop !== 'hasCustomRenderProp',
       
 49741   target: "e1p3eej77"
       
 49742 } : 0)(({
       
 49743   size,
       
 49744   hasCustomRenderProp
       
 49745 }) => /*#__PURE__*/emotion_react_browser_esm_css("display:block;background-color:", COLORS.theme.background, ";border:none;color:", COLORS.theme.foreground, ";cursor:pointer;font-family:inherit;text-align:start;user-select:none;width:100%;&[data-focus-visible]{outline:none;}", getSelectSize(size, hasCustomRenderProp ? 'minHeight' : 'height'), " ", !hasCustomRenderProp && truncateStyles, " ", fontSizeStyles({
       
 49746   inputSize: size
       
 49747 }), ";" + ( true ? "" : 0),  true ? "" : 0),  true ? "" : 0);
       
 49748 const slideDownAndFade = emotion_react_browser_esm_keyframes({
       
 49749   '0%': {
       
 49750     opacity: 0,
       
 49751     transform: `translateY(-${ANIMATION_PARAMS.SLIDE_AMOUNT})`
       
 49752   },
       
 49753   '100%': {
       
 49754     opacity: 1,
       
 49755     transform: 'translateY(0)'
       
 49756   }
       
 49757 });
       
 49758 const styles_SelectPopover = /*#__PURE__*/emotion_styled_base_browser_esm(SelectPopover,  true ? {
       
 49759   target: "e1p3eej76"
       
 49760 } : 0)("display:flex;flex-direction:column;background-color:", COLORS.theme.background, ";border-radius:", config_values.radiusSmall, ";border:1px solid ", COLORS.theme.foreground, ";box-shadow:", config_values.elevationMedium, ";z-index:1000000;max-height:min( var( --popover-available-height, 400px ), 400px );overflow:auto;overscroll-behavior:contain;min-width:min-content;&[data-open]{@media not ( prefers-reduced-motion ){animation-duration:", ANIMATION_PARAMS.DURATION, ";animation-timing-function:", ANIMATION_PARAMS.EASING, ";animation-name:", slideDownAndFade, ";will-change:transform,opacity;}}&[data-focus-visible]{outline:none;}" + ( true ? "" : 0));
       
 49761 const styles_SelectItem = /*#__PURE__*/emotion_styled_base_browser_esm(SelectItem,  true ? {
       
 49762   target: "e1p3eej75"
       
 49763 } : 0)(({
       
 49764   size
       
 49765 }) => /*#__PURE__*/emotion_react_browser_esm_css("cursor:default;display:flex;align-items:center;justify-content:space-between;font-size:", config_values.fontSize, ";line-height:28px;padding-block:", space(2), ";scroll-margin:", space(1), ";user-select:none;&[aria-disabled='true']{cursor:not-allowed;}&[data-active-item]{background-color:", COLORS.theme.gray[300], ";}", getSelectItemSize(size), ";" + ( true ? "" : 0),  true ? "" : 0),  true ? "" : 0);
       
 49766 const truncateStyles =  true ? {
       
 49767   name: "1h52dri",
       
 49768   styles: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
       
 49769 } : 0;
       
 49770 const SelectedExperimentalHintWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 49771   target: "e1p3eej74"
       
 49772 } : 0)(truncateStyles, ";" + ( true ? "" : 0));
       
 49773 const SelectedExperimentalHintItem = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
       
 49774   target: "e1p3eej73"
       
 49775 } : 0)("color:", COLORS.theme.gray[600], ";margin-inline-start:", space(2), ";" + ( true ? "" : 0));
       
 49776 const WithHintItemWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
       
 49777   target: "e1p3eej72"
       
 49778 } : 0)("display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;flex:1;column-gap:", space(4), ";" + ( true ? "" : 0));
       
 49779 const WithHintItemHint = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
       
 49780   target: "e1p3eej71"
       
 49781 } : 0)("color:", COLORS.theme.gray[600], ";text-align:initial;line-height:", config_values.fontLineHeightBase, ";padding-inline-end:", space(1), ";margin-block:", space(1), ";" + ( true ? "" : 0));
       
 49782 const SelectedItemCheck = /*#__PURE__*/emotion_styled_base_browser_esm(SelectItemCheck,  true ? {
       
 49783   target: "e1p3eej70"
       
 49784 } : 0)("display:flex;align-items:center;margin-inline-start:", space(2), ";align-self:start;margin-block-start:2px;font-size:0;", WithHintItemWrapper, "~&,&:not(:empty){font-size:24px;}" + ( true ? "" : 0));
       
 49785 
       
 49786 ;// ./node_modules/@wordpress/components/build-module/custom-select-control-v2/custom-select.js
       
 49787 /**
       
 49788  * External dependencies
       
 49789  */
       
 49790 
       
 49791 
       
 49792 /**
       
 49793  * WordPress dependencies
       
 49794  */
       
 49795 
       
 49796 
       
 49797 
       
 49798 /**
       
 49799  * Internal dependencies
       
 49800  */
       
 49801 
       
 49802 
       
 49803 
       
 49804 
       
 49805 
       
 49806 
       
 49807 const CustomSelectContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
       
 49808 function defaultRenderSelectedValue(value) {
       
 49809   const isValueEmpty = Array.isArray(value) ? value.length === 0 : value === undefined || value === null;
       
 49810   if (isValueEmpty) {
       
 49811     return (0,external_wp_i18n_namespaceObject.__)('Select an item');
       
 49812   }
       
 49813   if (Array.isArray(value)) {
       
 49814     return value.length === 1 ? value[0] :
       
 49815     // translators: %s: number of items selected (it will always be 2 or more items)
       
 49816     (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('%s items selected'), value.length);
       
 49817   }
       
 49818   return value;
       
 49819 }
       
 49820 const CustomSelectButton = ({
       
 49821   renderSelectedValue,
       
 49822   size = 'default',
       
 49823   store,
       
 49824   ...restProps
       
 49825 }) => {
       
 49826   const {
       
 49827     value: currentValue
       
 49828   } = useStoreState(store);
       
 49829   const computedRenderSelectedValue = (0,external_wp_element_namespaceObject.useMemo)(() => renderSelectedValue !== null && renderSelectedValue !== void 0 ? renderSelectedValue : defaultRenderSelectedValue, [renderSelectedValue]);
       
 49830   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_Select, {
       
 49831     ...restProps,
       
 49832     size: size,
       
 49833     hasCustomRenderProp: !!renderSelectedValue,
       
 49834     store: store,
       
 49835     children: computedRenderSelectedValue(currentValue)
       
 49836   });
       
 49837 };
       
 49838 function _CustomSelect(props) {
       
 49839   const {
       
 49840     children,
       
 49841     hideLabelFromVision = false,
       
 49842     label,
       
 49843     size,
       
 49844     store,
       
 49845     className,
       
 49846     isLegacy = false,
       
 49847     ...restProps
       
 49848   } = props;
       
 49849   const onSelectPopoverKeyDown = (0,external_wp_element_namespaceObject.useCallback)(e => {
       
 49850     if (isLegacy) {
       
 49851       e.stopPropagation();
       
 49852     }
       
 49853   }, [isLegacy]);
       
 49854   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
       
 49855     store,
       
 49856     size
       
 49857   }), [store, size]);
       
 49858   return (
       
 49859     /*#__PURE__*/
       
 49860     // Where should `restProps` be forwarded to?
       
 49861     (0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
       
 49862       className: className,
       
 49863       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectLabel, {
       
 49864         store: store,
       
 49865         render: hideLabelFromVision ?
       
 49866         /*#__PURE__*/
       
 49867         // @ts-expect-error `children` are passed via the render prop
       
 49868         (0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {}) :
       
 49869         /*#__PURE__*/
       
 49870         // @ts-expect-error `children` are passed via the render prop
       
 49871         (0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
       
 49872           as: "div"
       
 49873         }),
       
 49874         children: label
       
 49875       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(input_base, {
       
 49876         __next40pxDefaultSize: true,
       
 49877         size: size,
       
 49878         suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control_chevron_down, {}),
       
 49879         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomSelectButton, {
       
 49880           ...restProps,
       
 49881           size: size,
       
 49882           store: store
       
 49883           // Match legacy behavior (move selection rather than open the popover)
       
 49884           ,
       
 49885           showOnKeyDown: !isLegacy
       
 49886         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_SelectPopover, {
       
 49887           gutter: 12,
       
 49888           store: store,
       
 49889           sameWidth: true,
       
 49890           slide: false,
       
 49891           onKeyDown: onSelectPopoverKeyDown
       
 49892           // Match legacy behavior
       
 49893           ,
       
 49894           flip: !isLegacy,
       
 49895           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomSelectContext.Provider, {
       
 49896             value: contextValue,
       
 49897             children: children
       
 49898           })
       
 49899         })]
       
 49900       })]
       
 49901     })
       
 49902   );
       
 49903 }
       
 49904 /* harmony default export */ const custom_select = (_CustomSelect);
       
 49905 
       
 49906 ;// ./node_modules/@wordpress/components/build-module/custom-select-control-v2/item.js
       
 49907 /**
       
 49908  * WordPress dependencies
       
 49909  */
       
 49910 
       
 49911 
       
 49912 /**
       
 49913  * Internal dependencies
       
 49914  */
       
 49915 
       
 49916 
       
 49917 
       
 49918 
       
 49919 function CustomSelectItem({
       
 49920   children,
       
 49921   ...props
       
 49922 }) {
       
 49923   var _customSelectContext$;
       
 49924   const customSelectContext = (0,external_wp_element_namespaceObject.useContext)(CustomSelectContext);
       
 49925   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_SelectItem, {
       
 49926     store: customSelectContext?.store,
       
 49927     size: (_customSelectContext$ = customSelectContext?.size) !== null && _customSelectContext$ !== void 0 ? _customSelectContext$ : 'default',
       
 49928     ...props,
       
 49929     children: [children !== null && children !== void 0 ? children : props.value, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectedItemCheck, {
       
 49930       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
       
 49931         icon: library_check
       
 49932       })
       
 49933     })]
       
 49934   });
       
 49935 }
       
 49936 CustomSelectItem.displayName = 'CustomSelectControlV2.Item';
       
 49937 /* harmony default export */ const custom_select_control_v2_item = (CustomSelectItem);
       
 49938 
       
 49939 ;// ./node_modules/@wordpress/components/build-module/custom-select-control/index.js
       
 49940 /**
       
 49941  * External dependencies
       
 49942  */
       
 49943 
       
 49944 
       
 49945 
       
 49946 /**
       
 49947  * WordPress dependencies
       
 49948  */
       
 49949 
       
 49950 
       
 49951 
       
 49952 /**
       
 49953  * Internal dependencies
       
 49954  */
       
 49955 
       
 49956 
       
 49957 
       
 49958 
       
 49959 
       
 49960 
       
 49961 function custom_select_control_useDeprecatedProps({
       
 49962   __experimentalShowSelectedHint,
       
 49963   ...otherProps
       
 49964 }) {
       
 49965   return {
       
 49966     showSelectedHint: __experimentalShowSelectedHint,
       
 49967     ...otherProps
       
 49968   };
       
 49969 }
       
 49970 
       
 49971 // The removal of `__experimentalHint` in favour of `hint` doesn't happen in
       
 49972 // the `useDeprecatedProps` hook in order not to break consumers that rely
       
 49973 // on object identity (see https://github.com/WordPress/gutenberg/pull/63248#discussion_r1672213131)
       
 49974 function applyOptionDeprecations({
       
 49975   __experimentalHint,
       
 49976   ...rest
       
 49977 }) {
       
 49978   return {
       
 49979     hint: __experimentalHint,
       
 49980     ...rest
       
 49981   };
       
 49982 }
       
 49983 function getDescribedBy(currentValue, describedBy) {
       
 49984   if (describedBy) {
       
 49985     return describedBy;
       
 49986   }
       
 49987 
       
 49988   // translators: %s: The selected option.
       
 49989   return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Currently selected: %s'), currentValue);
       
 49990 }
       
 49991 function CustomSelectControl(props) {
       
 49992   const {
       
 49993     __next40pxDefaultSize = false,
       
 49994     __shouldNotWarnDeprecated36pxSize,
       
 49995     describedBy,
       
 49996     options,
       
 49997     onChange,
       
 49998     size = 'default',
       
 49999     value,
       
 50000     className: classNameProp,
       
 50001     showSelectedHint = false,
       
 50002     ...restProps
       
 50003   } = custom_select_control_useDeprecatedProps(props);
       
 50004   maybeWarnDeprecated36pxSize({
       
 50005     componentName: 'CustomSelectControl',
       
 50006     __next40pxDefaultSize,
       
 50007     size,
       
 50008     __shouldNotWarnDeprecated36pxSize
       
 50009   });
       
 50010   const descriptionId = (0,external_wp_compose_namespaceObject.useInstanceId)(CustomSelectControl, 'custom-select-control__description');
       
 50011 
       
 50012   // Forward props + store from v2 implementation
       
 50013   const store = useSelectStore({
       
 50014     async setValue(nextValue) {
       
 50015       const nextOption = options.find(item => item.name === nextValue);
       
 50016       if (!onChange || !nextOption) {
       
 50017         return;
       
 50018       }
       
 50019 
       
 50020       // Executes the logic in a microtask after the popup is closed.
       
 50021       // This is simply to ensure the isOpen state matches the one from the
       
 50022       // previous legacy implementation.
       
 50023       await Promise.resolve();
       
 50024       const state = store.getState();
       
 50025       const changeObject = {
       
 50026         highlightedIndex: state.renderedItems.findIndex(item => item.value === nextValue),
       
 50027         inputValue: '',
       
 50028         isOpen: state.open,
       
 50029         selectedItem: nextOption,
       
 50030         type: ''
       
 50031       };
       
 50032       onChange(changeObject);
       
 50033     },
       
 50034     value: value?.name,
       
 50035     // Setting the first option as a default value when no value is provided
       
 50036     // is already done natively by the underlying Ariakit component,
       
 50037     // but doing this explicitly avoids the `onChange` callback from firing
       
 50038     // on initial render, thus making this implementation closer to the v1.
       
 50039     defaultValue: options[0]?.name
       
 50040   });
       
 50041   const children = options.map(applyOptionDeprecations).map(({
       
 50042     name,
       
 50043     key,
       
 50044     hint,
       
 50045     style,
       
 50046     className
       
 50047   }) => {
       
 50048     const withHint = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(WithHintItemWrapper, {
       
 50049       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 50050         children: name
       
 50051       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(WithHintItemHint, {
       
 50052         // Keeping the classname for legacy reasons
       
 50053         className: "components-custom-select-control__item-hint",
       
 50054         children: hint
       
 50055       })]
       
 50056     });
       
 50057     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(custom_select_control_v2_item, {
       
 50058       value: name,
       
 50059       children: hint ? withHint : name,
       
 50060       style: style,
       
 50061       className: dist_clsx(className,
       
 50062       // Keeping the classnames for legacy reasons
       
 50063       'components-custom-select-control__item', {
       
 50064         'has-hint': hint
       
 50065       })
       
 50066     }, key);
       
 50067   });
       
 50068   const currentValue = useStoreState(store, 'value');
       
 50069   const renderSelectedValueHint = () => {
       
 50070     const selectedOptionHint = options?.map(applyOptionDeprecations)?.find(({
       
 50071       name
       
 50072     }) => currentValue === name)?.hint;
       
 50073     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(SelectedExperimentalHintWrapper, {
       
 50074       children: [currentValue, selectedOptionHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectedExperimentalHintItem, {
       
 50075         // Keeping the classname for legacy reasons
       
 50076         className: "components-custom-select-control__hint",
       
 50077         children: selectedOptionHint
       
 50078       })]
 47570     });
 50079     });
 47571   };
 50080   };
 47572 }
 50081   const translatedSize = (() => {
 47573 
 50082     if (__next40pxDefaultSize && size === 'default' || size === '__unstable-large') {
 47574 function handleRefs() {
 50083       return 'default';
 47575   for (var _len4 = arguments.length, refs = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
 50084     }
 47576     refs[_key4] = arguments[_key4];
 50085     if (!__next40pxDefaultSize && size === 'default') {
 47577   }
 50086       return 'compact';
 47578 
 50087     }
 47579   return node => {
 50088     return size;
 47580     refs.forEach(ref => {
 50089   })();
 47581       if (typeof ref === 'function') {
 50090   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 47582         ref(node);
 50091     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(custom_select, {
 47583       } else if (ref) {
 50092       "aria-describedby": descriptionId,
 47584         ref.current = node;
 50093       renderSelectedValue: showSelectedHint ? renderSelectedValueHint : undefined,
 47585       }
 50094       size: translatedSize,
 47586     });
 50095       store: store,
 47587   };
 50096       className: dist_clsx(
 47588 }
 50097       // Keeping the classname for legacy reasons
 47589 /**
 50098       'components-custom-select-control', classNameProp),
 47590  * This generates a unique ID for an instance of Downshift
 50099       isLegacy: true,
 47591  * @return {String} the unique ID
 50100       ...restProps,
 47592  */
 50101       children: children
 47593 
 50102     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 47594 
 50103       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 47595 function generateId() {
 50104         id: descriptionId,
 47596   return String(idCounter++);
 50105         children: getDescribedBy(currentValue, describedBy)
 47597 }
 50106       })
 47598 /**
       
 47599  * Resets idCounter to 0. Used for SSR.
       
 47600  */
       
 47601 
       
 47602 
       
 47603 function resetIdCounter() {
       
 47604   idCounter = 0;
       
 47605 }
       
 47606 /**
       
 47607  * Default implementation for status message. Only added when menu is open.
       
 47608  * Will specify if there are results in the list, and if so, how many,
       
 47609  * and what keys are relevant.
       
 47610  *
       
 47611  * @param {Object} param the downshift state and other relevant properties
       
 47612  * @return {String} the a11y status message
       
 47613  */
       
 47614 
       
 47615 
       
 47616 function getA11yStatusMessage$1(_ref2) {
       
 47617   let {
       
 47618     isOpen,
       
 47619     resultCount,
       
 47620     previousResultCount
       
 47621   } = _ref2;
       
 47622 
       
 47623   if (!isOpen) {
       
 47624     return '';
       
 47625   }
       
 47626 
       
 47627   if (!resultCount) {
       
 47628     return 'No results are available.';
       
 47629   }
       
 47630 
       
 47631   if (resultCount !== previousResultCount) {
       
 47632     return `${resultCount} result${resultCount === 1 ? ' is' : 's are'} available, use up and down arrow keys to navigate. Press Enter key to select.`;
       
 47633   }
       
 47634 
       
 47635   return '';
       
 47636 }
       
 47637 /**
       
 47638  * Takes an argument and if it's an array, returns the first item in the array
       
 47639  * otherwise returns the argument
       
 47640  * @param {*} arg the maybe-array
       
 47641  * @param {*} defaultValue the value if arg is falsey not defined
       
 47642  * @return {*} the arg or it's first item
       
 47643  */
       
 47644 
       
 47645 
       
 47646 function unwrapArray(arg, defaultValue) {
       
 47647   arg = Array.isArray(arg) ?
       
 47648   /* istanbul ignore next (preact) */
       
 47649   arg[0] : arg;
       
 47650 
       
 47651   if (!arg && defaultValue) {
       
 47652     return defaultValue;
       
 47653   } else {
       
 47654     return arg;
       
 47655   }
       
 47656 }
       
 47657 /**
       
 47658  * @param {Object} element (P)react element
       
 47659  * @return {Boolean} whether it's a DOM element
       
 47660  */
       
 47661 
       
 47662 
       
 47663 function isDOMElement(element) {
       
 47664 
       
 47665 
       
 47666   return typeof element.type === 'string';
       
 47667 }
       
 47668 /**
       
 47669  * @param {Object} element (P)react element
       
 47670  * @return {Object} the props
       
 47671  */
       
 47672 
       
 47673 
       
 47674 function getElementProps(element) {
       
 47675 
       
 47676   return element.props;
       
 47677 }
       
 47678 /**
       
 47679  * Throws a helpful error message for required properties. Useful
       
 47680  * to be used as a default in destructuring or object params.
       
 47681  * @param {String} fnName the function name
       
 47682  * @param {String} propName the prop name
       
 47683  */
       
 47684 
       
 47685 
       
 47686 function requiredProp(fnName, propName) {
       
 47687   // eslint-disable-next-line no-console
       
 47688   console.error(`The property "${propName}" is required in "${fnName}"`);
       
 47689 }
       
 47690 
       
 47691 const stateKeys = (/* unused pure expression or super */ null && (['highlightedIndex', 'inputValue', 'isOpen', 'selectedItem', 'type']));
       
 47692 /**
       
 47693  * @param {Object} state the state object
       
 47694  * @return {Object} state that is relevant to downshift
       
 47695  */
       
 47696 
       
 47697 function pickState(state) {
       
 47698   if (state === void 0) {
       
 47699     state = {};
       
 47700   }
       
 47701 
       
 47702   const result = {};
       
 47703   stateKeys.forEach(k => {
       
 47704     if (state.hasOwnProperty(k)) {
       
 47705       result[k] = state[k];
       
 47706     }
       
 47707   });
       
 47708   return result;
       
 47709 }
       
 47710 /**
       
 47711  * This will perform a shallow merge of the given state object
       
 47712  * with the state coming from props
       
 47713  * (for the controlled component scenario)
       
 47714  * This is used in state updater functions so they're referencing
       
 47715  * the right state regardless of where it comes from.
       
 47716  *
       
 47717  * @param {Object} state The state of the component/hook.
       
 47718  * @param {Object} props The props that may contain controlled values.
       
 47719  * @returns {Object} The merged controlled state.
       
 47720  */
       
 47721 
       
 47722 
       
 47723 function getState(state, props) {
       
 47724   return Object.keys(state).reduce((prevState, key) => {
       
 47725     prevState[key] = isControlledProp(props, key) ? props[key] : state[key];
       
 47726     return prevState;
       
 47727   }, {});
       
 47728 }
       
 47729 /**
       
 47730  * This determines whether a prop is a "controlled prop" meaning it is
       
 47731  * state which is controlled by the outside of this component rather
       
 47732  * than within this component.
       
 47733  *
       
 47734  * @param {Object} props The props that may contain controlled values.
       
 47735  * @param {String} key the key to check
       
 47736  * @return {Boolean} whether it is a controlled controlled prop
       
 47737  */
       
 47738 
       
 47739 
       
 47740 function isControlledProp(props, key) {
       
 47741   return props[key] !== undefined;
       
 47742 }
       
 47743 /**
       
 47744  * Normalizes the 'key' property of a KeyboardEvent in IE/Edge
       
 47745  * @param {Object} event a keyboardEvent object
       
 47746  * @return {String} keyboard key
       
 47747  */
       
 47748 
       
 47749 
       
 47750 function normalizeArrowKey(event) {
       
 47751   const {
       
 47752     key,
       
 47753     keyCode
       
 47754   } = event;
       
 47755   /* istanbul ignore next (ie) */
       
 47756 
       
 47757   if (keyCode >= 37 && keyCode <= 40 && key.indexOf('Arrow') !== 0) {
       
 47758     return `Arrow${key}`;
       
 47759   }
       
 47760 
       
 47761   return key;
       
 47762 }
       
 47763 /**
       
 47764  * Simple check if the value passed is object literal
       
 47765  * @param {*} obj any things
       
 47766  * @return {Boolean} whether it's object literal
       
 47767  */
       
 47768 
       
 47769 
       
 47770 function downshift_esm_isPlainObject(obj) {
       
 47771   return Object.prototype.toString.call(obj) === '[object Object]';
       
 47772 }
       
 47773 /**
       
 47774  * Returns the new index in the list, in a circular way. If next value is out of bonds from the total,
       
 47775  * it will wrap to either 0 or itemCount - 1.
       
 47776  *
       
 47777  * @param {number} moveAmount Number of positions to move. Negative to move backwards, positive forwards.
       
 47778  * @param {number} baseIndex The initial position to move from.
       
 47779  * @param {number} itemCount The total number of items.
       
 47780  * @param {Function} getItemNodeFromIndex Used to check if item is disabled.
       
 47781  * @param {boolean} circular Specify if navigation is circular. Default is true.
       
 47782  * @returns {number} The new index after the move.
       
 47783  */
       
 47784 
       
 47785 
       
 47786 function getNextWrappingIndex(moveAmount, baseIndex, itemCount, getItemNodeFromIndex, circular) {
       
 47787   if (circular === void 0) {
       
 47788     circular = true;
       
 47789   }
       
 47790 
       
 47791   if (itemCount === 0) {
       
 47792     return -1;
       
 47793   }
       
 47794 
       
 47795   const itemsLastIndex = itemCount - 1;
       
 47796 
       
 47797   if (typeof baseIndex !== 'number' || baseIndex < 0 || baseIndex >= itemCount) {
       
 47798     baseIndex = moveAmount > 0 ? -1 : itemsLastIndex + 1;
       
 47799   }
       
 47800 
       
 47801   let newIndex = baseIndex + moveAmount;
       
 47802 
       
 47803   if (newIndex < 0) {
       
 47804     newIndex = circular ? itemsLastIndex : 0;
       
 47805   } else if (newIndex > itemsLastIndex) {
       
 47806     newIndex = circular ? 0 : itemsLastIndex;
       
 47807   }
       
 47808 
       
 47809   const nonDisabledNewIndex = getNextNonDisabledIndex(moveAmount, newIndex, itemCount, getItemNodeFromIndex, circular);
       
 47810 
       
 47811   if (nonDisabledNewIndex === -1) {
       
 47812     return baseIndex >= itemCount ? -1 : baseIndex;
       
 47813   }
       
 47814 
       
 47815   return nonDisabledNewIndex;
       
 47816 }
       
 47817 /**
       
 47818  * Returns the next index in the list of an item that is not disabled.
       
 47819  *
       
 47820  * @param {number} moveAmount Number of positions to move. Negative to move backwards, positive forwards.
       
 47821  * @param {number} baseIndex The initial position to move from.
       
 47822  * @param {number} itemCount The total number of items.
       
 47823  * @param {Function} getItemNodeFromIndex Used to check if item is disabled.
       
 47824  * @param {boolean} circular Specify if navigation is circular. Default is true.
       
 47825  * @returns {number} The new index. Returns baseIndex if item is not disabled. Returns next non-disabled item otherwise. If no non-disabled found it will return -1.
       
 47826  */
       
 47827 
       
 47828 
       
 47829 function getNextNonDisabledIndex(moveAmount, baseIndex, itemCount, getItemNodeFromIndex, circular) {
       
 47830   const currentElementNode = getItemNodeFromIndex(baseIndex);
       
 47831 
       
 47832   if (!currentElementNode || !currentElementNode.hasAttribute('disabled')) {
       
 47833     return baseIndex;
       
 47834   }
       
 47835 
       
 47836   if (moveAmount > 0) {
       
 47837     for (let index = baseIndex + 1; index < itemCount; index++) {
       
 47838       if (!getItemNodeFromIndex(index).hasAttribute('disabled')) {
       
 47839         return index;
       
 47840       }
       
 47841     }
       
 47842   } else {
       
 47843     for (let index = baseIndex - 1; index >= 0; index--) {
       
 47844       if (!getItemNodeFromIndex(index).hasAttribute('disabled')) {
       
 47845         return index;
       
 47846       }
       
 47847     }
       
 47848   }
       
 47849 
       
 47850   if (circular) {
       
 47851     return moveAmount > 0 ? getNextNonDisabledIndex(1, 0, itemCount, getItemNodeFromIndex, false) : getNextNonDisabledIndex(-1, itemCount - 1, itemCount, getItemNodeFromIndex, false);
       
 47852   }
       
 47853 
       
 47854   return -1;
       
 47855 }
       
 47856 /**
       
 47857  * Checks if event target is within the downshift elements.
       
 47858  *
       
 47859  * @param {EventTarget} target Target to check.
       
 47860  * @param {HTMLElement[]} downshiftElements The elements that form downshift (list, toggle button etc).
       
 47861  * @param {Window} environment The window context where downshift renders.
       
 47862  * @param {boolean} checkActiveElement Whether to also check activeElement.
       
 47863  *
       
 47864  * @returns {boolean} Whether or not the target is within downshift elements.
       
 47865  */
       
 47866 
       
 47867 
       
 47868 function targetWithinDownshift(target, downshiftElements, environment, checkActiveElement) {
       
 47869   if (checkActiveElement === void 0) {
       
 47870     checkActiveElement = true;
       
 47871   }
       
 47872 
       
 47873   return downshiftElements.some(contextNode => contextNode && (isOrContainsNode(contextNode, target, environment) || checkActiveElement && isOrContainsNode(contextNode, environment.document.activeElement, environment)));
       
 47874 } // eslint-disable-next-line import/no-mutable-exports
       
 47875 
       
 47876 
       
 47877 let validateControlledUnchanged = (/* unused pure expression or super */ null && (downshift_esm_noop));
       
 47878 /* istanbul ignore next */
       
 47879 
       
 47880 if (false) {}
       
 47881 
       
 47882 const cleanupStatus = debounce(documentProp => {
       
 47883   getStatusDiv(documentProp).textContent = '';
       
 47884 }, 500);
       
 47885 /**
       
 47886  * @param {String} status the status message
       
 47887  * @param {Object} documentProp document passed by the user.
       
 47888  */
       
 47889 
       
 47890 function setStatus(status, documentProp) {
       
 47891   const div = getStatusDiv(documentProp);
       
 47892 
       
 47893   if (!status) {
       
 47894     return;
       
 47895   }
       
 47896 
       
 47897   div.textContent = status;
       
 47898   cleanupStatus(documentProp);
       
 47899 }
       
 47900 /**
       
 47901  * Get the status node or create it if it does not already exist.
       
 47902  * @param {Object} documentProp document passed by the user.
       
 47903  * @return {HTMLElement} the status node.
       
 47904  */
       
 47905 
       
 47906 
       
 47907 function getStatusDiv(documentProp) {
       
 47908   if (documentProp === void 0) {
       
 47909     documentProp = document;
       
 47910   }
       
 47911 
       
 47912   let statusDiv = documentProp.getElementById('a11y-status-message');
       
 47913 
       
 47914   if (statusDiv) {
       
 47915     return statusDiv;
       
 47916   }
       
 47917 
       
 47918   statusDiv = documentProp.createElement('div');
       
 47919   statusDiv.setAttribute('id', 'a11y-status-message');
       
 47920   statusDiv.setAttribute('role', 'status');
       
 47921   statusDiv.setAttribute('aria-live', 'polite');
       
 47922   statusDiv.setAttribute('aria-relevant', 'additions text');
       
 47923   Object.assign(statusDiv.style, {
       
 47924     border: '0',
       
 47925     clip: 'rect(0 0 0 0)',
       
 47926     height: '1px',
       
 47927     margin: '-1px',
       
 47928     overflow: 'hidden',
       
 47929     padding: '0',
       
 47930     position: 'absolute',
       
 47931     width: '1px'
       
 47932   });
       
 47933   documentProp.body.appendChild(statusDiv);
       
 47934   return statusDiv;
       
 47935 }
       
 47936 
       
 47937 const unknown =  false ? 0 : 0;
       
 47938 const mouseUp =  false ? 0 : 1;
       
 47939 const itemMouseEnter =  false ? 0 : 2;
       
 47940 const keyDownArrowUp =  false ? 0 : 3;
       
 47941 const keyDownArrowDown =  false ? 0 : 4;
       
 47942 const keyDownEscape =  false ? 0 : 5;
       
 47943 const keyDownEnter =  false ? 0 : 6;
       
 47944 const keyDownHome =  false ? 0 : 7;
       
 47945 const keyDownEnd =  false ? 0 : 8;
       
 47946 const clickItem =  false ? 0 : 9;
       
 47947 const blurInput =  false ? 0 : 10;
       
 47948 const changeInput =  false ? 0 : 11;
       
 47949 const keyDownSpaceButton =  false ? 0 : 12;
       
 47950 const clickButton =  false ? 0 : 13;
       
 47951 const blurButton =  false ? 0 : 14;
       
 47952 const controlledPropUpdatedSelectedItem =  false ? 0 : 15;
       
 47953 const touchEnd =  false ? 0 : 16;
       
 47954 
       
 47955 var stateChangeTypes$3 = /*#__PURE__*/Object.freeze({
       
 47956   __proto__: null,
       
 47957   unknown: unknown,
       
 47958   mouseUp: mouseUp,
       
 47959   itemMouseEnter: itemMouseEnter,
       
 47960   keyDownArrowUp: keyDownArrowUp,
       
 47961   keyDownArrowDown: keyDownArrowDown,
       
 47962   keyDownEscape: keyDownEscape,
       
 47963   keyDownEnter: keyDownEnter,
       
 47964   keyDownHome: keyDownHome,
       
 47965   keyDownEnd: keyDownEnd,
       
 47966   clickItem: clickItem,
       
 47967   blurInput: blurInput,
       
 47968   changeInput: changeInput,
       
 47969   keyDownSpaceButton: keyDownSpaceButton,
       
 47970   clickButton: clickButton,
       
 47971   blurButton: blurButton,
       
 47972   controlledPropUpdatedSelectedItem: controlledPropUpdatedSelectedItem,
       
 47973   touchEnd: touchEnd
       
 47974 });
       
 47975 
       
 47976 /* eslint camelcase:0 */
       
 47977 
       
 47978 const Downshift = /*#__PURE__*/(/* unused pure expression or super */ null && ((() => {
       
 47979   class Downshift extends Component {
       
 47980     constructor(_props) {
       
 47981       var _this;
       
 47982 
       
 47983       super(_props);
       
 47984       _this = this;
       
 47985       this.id = this.props.id || `downshift-${generateId()}`;
       
 47986       this.menuId = this.props.menuId || `${this.id}-menu`;
       
 47987       this.labelId = this.props.labelId || `${this.id}-label`;
       
 47988       this.inputId = this.props.inputId || `${this.id}-input`;
       
 47989 
       
 47990       this.getItemId = this.props.getItemId || (index => `${this.id}-item-${index}`);
       
 47991 
       
 47992       this.input = null;
       
 47993       this.items = [];
       
 47994       this.itemCount = null;
       
 47995       this.previousResultCount = 0;
       
 47996       this.timeoutIds = [];
       
 47997 
       
 47998       this.internalSetTimeout = (fn, time) => {
       
 47999         const id = setTimeout(() => {
       
 48000           this.timeoutIds = this.timeoutIds.filter(i => i !== id);
       
 48001           fn();
       
 48002         }, time);
       
 48003         this.timeoutIds.push(id);
       
 48004       };
       
 48005 
       
 48006       this.setItemCount = count => {
       
 48007         this.itemCount = count;
       
 48008       };
       
 48009 
       
 48010       this.unsetItemCount = () => {
       
 48011         this.itemCount = null;
       
 48012       };
       
 48013 
       
 48014       this.setHighlightedIndex = function (highlightedIndex, otherStateToSet) {
       
 48015         if (highlightedIndex === void 0) {
       
 48016           highlightedIndex = _this.props.defaultHighlightedIndex;
       
 48017         }
       
 48018 
       
 48019         if (otherStateToSet === void 0) {
       
 48020           otherStateToSet = {};
       
 48021         }
       
 48022 
       
 48023         otherStateToSet = pickState(otherStateToSet);
       
 48024 
       
 48025         _this.internalSetState({
       
 48026           highlightedIndex,
       
 48027           ...otherStateToSet
       
 48028         });
       
 48029       };
       
 48030 
       
 48031       this.clearSelection = cb => {
       
 48032         this.internalSetState({
       
 48033           selectedItem: null,
       
 48034           inputValue: '',
       
 48035           highlightedIndex: this.props.defaultHighlightedIndex,
       
 48036           isOpen: this.props.defaultIsOpen
       
 48037         }, cb);
       
 48038       };
       
 48039 
       
 48040       this.selectItem = (item, otherStateToSet, cb) => {
       
 48041         otherStateToSet = pickState(otherStateToSet);
       
 48042         this.internalSetState({
       
 48043           isOpen: this.props.defaultIsOpen,
       
 48044           highlightedIndex: this.props.defaultHighlightedIndex,
       
 48045           selectedItem: item,
       
 48046           inputValue: this.props.itemToString(item),
       
 48047           ...otherStateToSet
       
 48048         }, cb);
       
 48049       };
       
 48050 
       
 48051       this.selectItemAtIndex = (itemIndex, otherStateToSet, cb) => {
       
 48052         const item = this.items[itemIndex];
       
 48053 
       
 48054         if (item == null) {
       
 48055           return;
       
 48056         }
       
 48057 
       
 48058         this.selectItem(item, otherStateToSet, cb);
       
 48059       };
       
 48060 
       
 48061       this.selectHighlightedItem = (otherStateToSet, cb) => {
       
 48062         return this.selectItemAtIndex(this.getState().highlightedIndex, otherStateToSet, cb);
       
 48063       };
       
 48064 
       
 48065       this.internalSetState = (stateToSet, cb) => {
       
 48066         let isItemSelected, onChangeArg;
       
 48067         const onStateChangeArg = {};
       
 48068         const isStateToSetFunction = typeof stateToSet === 'function'; // we want to call `onInputValueChange` before the `setState` call
       
 48069         // so someone controlling the `inputValue` state gets notified of
       
 48070         // the input change as soon as possible. This avoids issues with
       
 48071         // preserving the cursor position.
       
 48072         // See https://github.com/downshift-js/downshift/issues/217 for more info.
       
 48073 
       
 48074         if (!isStateToSetFunction && stateToSet.hasOwnProperty('inputValue')) {
       
 48075           this.props.onInputValueChange(stateToSet.inputValue, { ...this.getStateAndHelpers(),
       
 48076             ...stateToSet
       
 48077           });
       
 48078         }
       
 48079 
       
 48080         return this.setState(state => {
       
 48081           state = this.getState(state);
       
 48082           let newStateToSet = isStateToSetFunction ? stateToSet(state) : stateToSet; // Your own function that could modify the state that will be set.
       
 48083 
       
 48084           newStateToSet = this.props.stateReducer(state, newStateToSet); // checks if an item is selected, regardless of if it's different from
       
 48085           // what was selected before
       
 48086           // used to determine if onSelect and onChange callbacks should be called
       
 48087 
       
 48088           isItemSelected = newStateToSet.hasOwnProperty('selectedItem'); // this keeps track of the object we want to call with setState
       
 48089 
       
 48090           const nextState = {}; // this is just used to tell whether the state changed
       
 48091           // and we're trying to update that state. OR if the selection has changed and we're
       
 48092           // trying to update the selection
       
 48093 
       
 48094           if (isItemSelected && newStateToSet.selectedItem !== state.selectedItem) {
       
 48095             onChangeArg = newStateToSet.selectedItem;
       
 48096           }
       
 48097 
       
 48098           newStateToSet.type = newStateToSet.type || unknown;
       
 48099           Object.keys(newStateToSet).forEach(key => {
       
 48100             // onStateChangeArg should only have the state that is
       
 48101             // actually changing
       
 48102             if (state[key] !== newStateToSet[key]) {
       
 48103               onStateChangeArg[key] = newStateToSet[key];
       
 48104             } // the type is useful for the onStateChangeArg
       
 48105             // but we don't actually want to set it in internal state.
       
 48106             // this is an undocumented feature for now... Not all internalSetState
       
 48107             // calls support it and I'm not certain we want them to yet.
       
 48108             // But it enables users controlling the isOpen state to know when
       
 48109             // the isOpen state changes due to mouseup events which is quite handy.
       
 48110 
       
 48111 
       
 48112             if (key === 'type') {
       
 48113               return;
       
 48114             }
       
 48115 
       
 48116             newStateToSet[key]; // if it's coming from props, then we don't care to set it internally
       
 48117 
       
 48118             if (!isControlledProp(this.props, key)) {
       
 48119               nextState[key] = newStateToSet[key];
       
 48120             }
       
 48121           }); // if stateToSet is a function, then we weren't able to call onInputValueChange
       
 48122           // earlier, so we'll call it now that we know what the inputValue state will be.
       
 48123 
       
 48124           if (isStateToSetFunction && newStateToSet.hasOwnProperty('inputValue')) {
       
 48125             this.props.onInputValueChange(newStateToSet.inputValue, { ...this.getStateAndHelpers(),
       
 48126               ...newStateToSet
       
 48127             });
       
 48128           }
       
 48129 
       
 48130           return nextState;
       
 48131         }, () => {
       
 48132           // call the provided callback if it's a function
       
 48133           cbToCb(cb)(); // only call the onStateChange and onChange callbacks if
       
 48134           // we have relevant information to pass them.
       
 48135 
       
 48136           const hasMoreStateThanType = Object.keys(onStateChangeArg).length > 1;
       
 48137 
       
 48138           if (hasMoreStateThanType) {
       
 48139             this.props.onStateChange(onStateChangeArg, this.getStateAndHelpers());
       
 48140           }
       
 48141 
       
 48142           if (isItemSelected) {
       
 48143             this.props.onSelect(stateToSet.selectedItem, this.getStateAndHelpers());
       
 48144           }
       
 48145 
       
 48146           if (onChangeArg !== undefined) {
       
 48147             this.props.onChange(onChangeArg, this.getStateAndHelpers());
       
 48148           } // this is currently undocumented and therefore subject to change
       
 48149           // We'll try to not break it, but just be warned.
       
 48150 
       
 48151 
       
 48152           this.props.onUserAction(onStateChangeArg, this.getStateAndHelpers());
       
 48153         });
       
 48154       };
       
 48155 
       
 48156       this.rootRef = node => this._rootNode = node;
       
 48157 
       
 48158       this.getRootProps = function (_temp, _temp2) {
       
 48159         let {
       
 48160           refKey = 'ref',
       
 48161           ref,
       
 48162           ...rest
       
 48163         } = _temp === void 0 ? {} : _temp;
       
 48164         let {
       
 48165           suppressRefError = false
       
 48166         } = _temp2 === void 0 ? {} : _temp2;
       
 48167         // this is used in the render to know whether the user has called getRootProps.
       
 48168         // It uses that to know whether to apply the props automatically
       
 48169         _this.getRootProps.called = true;
       
 48170         _this.getRootProps.refKey = refKey;
       
 48171         _this.getRootProps.suppressRefError = suppressRefError;
       
 48172 
       
 48173         const {
       
 48174           isOpen
       
 48175         } = _this.getState();
       
 48176 
       
 48177         return {
       
 48178           [refKey]: handleRefs(ref, _this.rootRef),
       
 48179           role: 'combobox',
       
 48180           'aria-expanded': isOpen,
       
 48181           'aria-haspopup': 'listbox',
       
 48182           'aria-owns': isOpen ? _this.menuId : null,
       
 48183           'aria-labelledby': _this.labelId,
       
 48184           ...rest
       
 48185         };
       
 48186       };
       
 48187 
       
 48188       this.keyDownHandlers = {
       
 48189         ArrowDown(event) {
       
 48190           event.preventDefault();
       
 48191 
       
 48192           if (this.getState().isOpen) {
       
 48193             const amount = event.shiftKey ? 5 : 1;
       
 48194             this.moveHighlightedIndex(amount, {
       
 48195               type: keyDownArrowDown
       
 48196             });
       
 48197           } else {
       
 48198             this.internalSetState({
       
 48199               isOpen: true,
       
 48200               type: keyDownArrowDown
       
 48201             }, () => {
       
 48202               const itemCount = this.getItemCount();
       
 48203 
       
 48204               if (itemCount > 0) {
       
 48205                 const {
       
 48206                   highlightedIndex
       
 48207                 } = this.getState();
       
 48208                 const nextHighlightedIndex = getNextWrappingIndex(1, highlightedIndex, itemCount, index => this.getItemNodeFromIndex(index));
       
 48209                 this.setHighlightedIndex(nextHighlightedIndex, {
       
 48210                   type: keyDownArrowDown
       
 48211                 });
       
 48212               }
       
 48213             });
       
 48214           }
       
 48215         },
       
 48216 
       
 48217         ArrowUp(event) {
       
 48218           event.preventDefault();
       
 48219 
       
 48220           if (this.getState().isOpen) {
       
 48221             const amount = event.shiftKey ? -5 : -1;
       
 48222             this.moveHighlightedIndex(amount, {
       
 48223               type: keyDownArrowUp
       
 48224             });
       
 48225           } else {
       
 48226             this.internalSetState({
       
 48227               isOpen: true,
       
 48228               type: keyDownArrowUp
       
 48229             }, () => {
       
 48230               const itemCount = this.getItemCount();
       
 48231 
       
 48232               if (itemCount > 0) {
       
 48233                 const {
       
 48234                   highlightedIndex
       
 48235                 } = this.getState();
       
 48236                 const nextHighlightedIndex = getNextWrappingIndex(-1, highlightedIndex, itemCount, index => this.getItemNodeFromIndex(index));
       
 48237                 this.setHighlightedIndex(nextHighlightedIndex, {
       
 48238                   type: keyDownArrowUp
       
 48239                 });
       
 48240               }
       
 48241             });
       
 48242           }
       
 48243         },
       
 48244 
       
 48245         Enter(event) {
       
 48246           if (event.which === 229) {
       
 48247             return;
       
 48248           }
       
 48249 
       
 48250           const {
       
 48251             isOpen,
       
 48252             highlightedIndex
       
 48253           } = this.getState();
       
 48254 
       
 48255           if (isOpen && highlightedIndex != null) {
       
 48256             event.preventDefault();
       
 48257             const item = this.items[highlightedIndex];
       
 48258             const itemNode = this.getItemNodeFromIndex(highlightedIndex);
       
 48259 
       
 48260             if (item == null || itemNode && itemNode.hasAttribute('disabled')) {
       
 48261               return;
       
 48262             }
       
 48263 
       
 48264             this.selectHighlightedItem({
       
 48265               type: keyDownEnter
       
 48266             });
       
 48267           }
       
 48268         },
       
 48269 
       
 48270         Escape(event) {
       
 48271           event.preventDefault();
       
 48272           this.reset({
       
 48273             type: keyDownEscape,
       
 48274             ...(!this.state.isOpen && {
       
 48275               selectedItem: null,
       
 48276               inputValue: ''
       
 48277             })
       
 48278           });
       
 48279         }
       
 48280 
       
 48281       };
       
 48282       this.buttonKeyDownHandlers = { ...this.keyDownHandlers,
       
 48283 
       
 48284         ' '(event) {
       
 48285           event.preventDefault();
       
 48286           this.toggleMenu({
       
 48287             type: keyDownSpaceButton
       
 48288           });
       
 48289         }
       
 48290 
       
 48291       };
       
 48292       this.inputKeyDownHandlers = { ...this.keyDownHandlers,
       
 48293 
       
 48294         Home(event) {
       
 48295           const {
       
 48296             isOpen
       
 48297           } = this.getState();
       
 48298 
       
 48299           if (!isOpen) {
       
 48300             return;
       
 48301           }
       
 48302 
       
 48303           event.preventDefault();
       
 48304           const itemCount = this.getItemCount();
       
 48305 
       
 48306           if (itemCount <= 0 || !isOpen) {
       
 48307             return;
       
 48308           } // get next non-disabled starting downwards from 0 if that's disabled.
       
 48309 
       
 48310 
       
 48311           const newHighlightedIndex = getNextNonDisabledIndex(1, 0, itemCount, index => this.getItemNodeFromIndex(index), false);
       
 48312           this.setHighlightedIndex(newHighlightedIndex, {
       
 48313             type: keyDownHome
       
 48314           });
       
 48315         },
       
 48316 
       
 48317         End(event) {
       
 48318           const {
       
 48319             isOpen
       
 48320           } = this.getState();
       
 48321 
       
 48322           if (!isOpen) {
       
 48323             return;
       
 48324           }
       
 48325 
       
 48326           event.preventDefault();
       
 48327           const itemCount = this.getItemCount();
       
 48328 
       
 48329           if (itemCount <= 0 || !isOpen) {
       
 48330             return;
       
 48331           } // get next non-disabled starting upwards from last index if that's disabled.
       
 48332 
       
 48333 
       
 48334           const newHighlightedIndex = getNextNonDisabledIndex(-1, itemCount - 1, itemCount, index => this.getItemNodeFromIndex(index), false);
       
 48335           this.setHighlightedIndex(newHighlightedIndex, {
       
 48336             type: keyDownEnd
       
 48337           });
       
 48338         }
       
 48339 
       
 48340       };
       
 48341 
       
 48342       this.getToggleButtonProps = function (_temp3) {
       
 48343         let {
       
 48344           onClick,
       
 48345           onPress,
       
 48346           onKeyDown,
       
 48347           onKeyUp,
       
 48348           onBlur,
       
 48349           ...rest
       
 48350         } = _temp3 === void 0 ? {} : _temp3;
       
 48351 
       
 48352         const {
       
 48353           isOpen
       
 48354         } = _this.getState();
       
 48355 
       
 48356         const enabledEventHandlers = {
       
 48357           onClick: callAllEventHandlers(onClick, _this.buttonHandleClick),
       
 48358           onKeyDown: callAllEventHandlers(onKeyDown, _this.buttonHandleKeyDown),
       
 48359           onKeyUp: callAllEventHandlers(onKeyUp, _this.buttonHandleKeyUp),
       
 48360           onBlur: callAllEventHandlers(onBlur, _this.buttonHandleBlur)
       
 48361         };
       
 48362         const eventHandlers = rest.disabled ? {} : enabledEventHandlers;
       
 48363         return {
       
 48364           type: 'button',
       
 48365           role: 'button',
       
 48366           'aria-label': isOpen ? 'close menu' : 'open menu',
       
 48367           'aria-haspopup': true,
       
 48368           'data-toggle': true,
       
 48369           ...eventHandlers,
       
 48370           ...rest
       
 48371         };
       
 48372       };
       
 48373 
       
 48374       this.buttonHandleKeyUp = event => {
       
 48375         // Prevent click event from emitting in Firefox
       
 48376         event.preventDefault();
       
 48377       };
       
 48378 
       
 48379       this.buttonHandleKeyDown = event => {
       
 48380         const key = normalizeArrowKey(event);
       
 48381 
       
 48382         if (this.buttonKeyDownHandlers[key]) {
       
 48383           this.buttonKeyDownHandlers[key].call(this, event);
       
 48384         }
       
 48385       };
       
 48386 
       
 48387       this.buttonHandleClick = event => {
       
 48388         event.preventDefault(); // handle odd case for Safari and Firefox which
       
 48389         // don't give the button the focus properly.
       
 48390 
       
 48391         /* istanbul ignore if (can't reasonably test this) */
       
 48392 
       
 48393         if (this.props.environment.document.activeElement === this.props.environment.document.body) {
       
 48394           event.target.focus();
       
 48395         } // to simplify testing components that use downshift, we'll not wrap this in a setTimeout
       
 48396         // if the NODE_ENV is test. With the proper build system, this should be dead code eliminated
       
 48397         // when building for production and should therefore have no impact on production code.
       
 48398 
       
 48399 
       
 48400         if (false) {} else {
       
 48401           // Ensure that toggle of menu occurs after the potential blur event in iOS
       
 48402           this.internalSetTimeout(() => this.toggleMenu({
       
 48403             type: clickButton
       
 48404           }));
       
 48405         }
       
 48406       };
       
 48407 
       
 48408       this.buttonHandleBlur = event => {
       
 48409         const blurTarget = event.target; // Save blur target for comparison with activeElement later
       
 48410         // Need setTimeout, so that when the user presses Tab, the activeElement is the next focused element, not body element
       
 48411 
       
 48412         this.internalSetTimeout(() => {
       
 48413           if (!this.isMouseDown && (this.props.environment.document.activeElement == null || this.props.environment.document.activeElement.id !== this.inputId) && this.props.environment.document.activeElement !== blurTarget // Do nothing if we refocus the same element again (to solve issue in Safari on iOS)
       
 48414           ) {
       
 48415             this.reset({
       
 48416               type: blurButton
       
 48417             });
       
 48418           }
       
 48419         });
       
 48420       };
       
 48421 
       
 48422       this.getLabelProps = props => {
       
 48423         return {
       
 48424           htmlFor: this.inputId,
       
 48425           id: this.labelId,
       
 48426           ...props
       
 48427         };
       
 48428       };
       
 48429 
       
 48430       this.getInputProps = function (_temp4) {
       
 48431         let {
       
 48432           onKeyDown,
       
 48433           onBlur,
       
 48434           onChange,
       
 48435           onInput,
       
 48436           onChangeText,
       
 48437           ...rest
       
 48438         } = _temp4 === void 0 ? {} : _temp4;
       
 48439         let onChangeKey;
       
 48440         let eventHandlers = {};
       
 48441         /* istanbul ignore next (preact) */
       
 48442 
       
 48443         {
       
 48444           onChangeKey = 'onChange';
       
 48445         }
       
 48446 
       
 48447         const {
       
 48448           inputValue,
       
 48449           isOpen,
       
 48450           highlightedIndex
       
 48451         } = _this.getState();
       
 48452 
       
 48453         if (!rest.disabled) {
       
 48454           eventHandlers = {
       
 48455             [onChangeKey]: callAllEventHandlers(onChange, onInput, _this.inputHandleChange),
       
 48456             onKeyDown: callAllEventHandlers(onKeyDown, _this.inputHandleKeyDown),
       
 48457             onBlur: callAllEventHandlers(onBlur, _this.inputHandleBlur)
       
 48458           };
       
 48459         }
       
 48460 
       
 48461         return {
       
 48462           'aria-autocomplete': 'list',
       
 48463           'aria-activedescendant': isOpen && typeof highlightedIndex === 'number' && highlightedIndex >= 0 ? _this.getItemId(highlightedIndex) : null,
       
 48464           'aria-controls': isOpen ? _this.menuId : null,
       
 48465           'aria-labelledby': _this.labelId,
       
 48466           // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
       
 48467           // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
       
 48468           autoComplete: 'off',
       
 48469           value: inputValue,
       
 48470           id: _this.inputId,
       
 48471           ...eventHandlers,
       
 48472           ...rest
       
 48473         };
       
 48474       };
       
 48475 
       
 48476       this.inputHandleKeyDown = event => {
       
 48477         const key = normalizeArrowKey(event);
       
 48478 
       
 48479         if (key && this.inputKeyDownHandlers[key]) {
       
 48480           this.inputKeyDownHandlers[key].call(this, event);
       
 48481         }
       
 48482       };
       
 48483 
       
 48484       this.inputHandleChange = event => {
       
 48485         this.internalSetState({
       
 48486           type: changeInput,
       
 48487           isOpen: true,
       
 48488           inputValue: event.target.value,
       
 48489           highlightedIndex: this.props.defaultHighlightedIndex
       
 48490         });
       
 48491       };
       
 48492 
       
 48493       this.inputHandleBlur = () => {
       
 48494         // Need setTimeout, so that when the user presses Tab, the activeElement is the next focused element, not the body element
       
 48495         this.internalSetTimeout(() => {
       
 48496           const downshiftButtonIsActive = this.props.environment.document && !!this.props.environment.document.activeElement && !!this.props.environment.document.activeElement.dataset && this.props.environment.document.activeElement.dataset.toggle && this._rootNode && this._rootNode.contains(this.props.environment.document.activeElement);
       
 48497 
       
 48498           if (!this.isMouseDown && !downshiftButtonIsActive) {
       
 48499             this.reset({
       
 48500               type: blurInput
       
 48501             });
       
 48502           }
       
 48503         });
       
 48504       };
       
 48505 
       
 48506       this.menuRef = node => {
       
 48507         this._menuNode = node;
       
 48508       };
       
 48509 
       
 48510       this.getMenuProps = function (_temp5, _temp6) {
       
 48511         let {
       
 48512           refKey = 'ref',
       
 48513           ref,
       
 48514           ...props
       
 48515         } = _temp5 === void 0 ? {} : _temp5;
       
 48516         let {
       
 48517           suppressRefError = false
       
 48518         } = _temp6 === void 0 ? {} : _temp6;
       
 48519         _this.getMenuProps.called = true;
       
 48520         _this.getMenuProps.refKey = refKey;
       
 48521         _this.getMenuProps.suppressRefError = suppressRefError;
       
 48522         return {
       
 48523           [refKey]: handleRefs(ref, _this.menuRef),
       
 48524           role: 'listbox',
       
 48525           'aria-labelledby': props && props['aria-label'] ? null : _this.labelId,
       
 48526           id: _this.menuId,
       
 48527           ...props
       
 48528         };
       
 48529       };
       
 48530 
       
 48531       this.getItemProps = function (_temp7) {
       
 48532         let {
       
 48533           onMouseMove,
       
 48534           onMouseDown,
       
 48535           onClick,
       
 48536           onPress,
       
 48537           index,
       
 48538           item =  true ?
       
 48539           /* istanbul ignore next */
       
 48540           undefined : 0,
       
 48541           ...rest
       
 48542         } = _temp7 === void 0 ? {} : _temp7;
       
 48543 
       
 48544         if (index === undefined) {
       
 48545           _this.items.push(item);
       
 48546 
       
 48547           index = _this.items.indexOf(item);
       
 48548         } else {
       
 48549           _this.items[index] = item;
       
 48550         }
       
 48551 
       
 48552         const onSelectKey = 'onClick';
       
 48553         const customClickHandler = onClick;
       
 48554         const enabledEventHandlers = {
       
 48555           // onMouseMove is used over onMouseEnter here. onMouseMove
       
 48556           // is only triggered on actual mouse movement while onMouseEnter
       
 48557           // can fire on DOM changes, interrupting keyboard navigation
       
 48558           onMouseMove: callAllEventHandlers(onMouseMove, () => {
       
 48559             if (index === _this.getState().highlightedIndex) {
       
 48560               return;
       
 48561             }
       
 48562 
       
 48563             _this.setHighlightedIndex(index, {
       
 48564               type: itemMouseEnter
       
 48565             }); // We never want to manually scroll when changing state based
       
 48566             // on `onMouseMove` because we will be moving the element out
       
 48567             // from under the user which is currently scrolling/moving the
       
 48568             // cursor
       
 48569 
       
 48570 
       
 48571             _this.avoidScrolling = true;
       
 48572 
       
 48573             _this.internalSetTimeout(() => _this.avoidScrolling = false, 250);
       
 48574           }),
       
 48575           onMouseDown: callAllEventHandlers(onMouseDown, event => {
       
 48576             // This prevents the activeElement from being changed
       
 48577             // to the item so it can remain with the current activeElement
       
 48578             // which is a more common use case.
       
 48579             event.preventDefault();
       
 48580           }),
       
 48581           [onSelectKey]: callAllEventHandlers(customClickHandler, () => {
       
 48582             _this.selectItemAtIndex(index, {
       
 48583               type: clickItem
       
 48584             });
       
 48585           })
       
 48586         }; // Passing down the onMouseDown handler to prevent redirect
       
 48587         // of the activeElement if clicking on disabled items
       
 48588 
       
 48589         const eventHandlers = rest.disabled ? {
       
 48590           onMouseDown: enabledEventHandlers.onMouseDown
       
 48591         } : enabledEventHandlers;
       
 48592         return {
       
 48593           id: _this.getItemId(index),
       
 48594           role: 'option',
       
 48595           'aria-selected': _this.getState().highlightedIndex === index,
       
 48596           ...eventHandlers,
       
 48597           ...rest
       
 48598         };
       
 48599       };
       
 48600 
       
 48601       this.clearItems = () => {
       
 48602         this.items = [];
       
 48603       };
       
 48604 
       
 48605       this.reset = function (otherStateToSet, cb) {
       
 48606         if (otherStateToSet === void 0) {
       
 48607           otherStateToSet = {};
       
 48608         }
       
 48609 
       
 48610         otherStateToSet = pickState(otherStateToSet);
       
 48611 
       
 48612         _this.internalSetState(_ref => {
       
 48613           let {
       
 48614             selectedItem
       
 48615           } = _ref;
       
 48616           return {
       
 48617             isOpen: _this.props.defaultIsOpen,
       
 48618             highlightedIndex: _this.props.defaultHighlightedIndex,
       
 48619             inputValue: _this.props.itemToString(selectedItem),
       
 48620             ...otherStateToSet
       
 48621           };
       
 48622         }, cb);
       
 48623       };
       
 48624 
       
 48625       this.toggleMenu = function (otherStateToSet, cb) {
       
 48626         if (otherStateToSet === void 0) {
       
 48627           otherStateToSet = {};
       
 48628         }
       
 48629 
       
 48630         otherStateToSet = pickState(otherStateToSet);
       
 48631 
       
 48632         _this.internalSetState(_ref2 => {
       
 48633           let {
       
 48634             isOpen
       
 48635           } = _ref2;
       
 48636           return {
       
 48637             isOpen: !isOpen,
       
 48638             ...(isOpen && {
       
 48639               highlightedIndex: _this.props.defaultHighlightedIndex
       
 48640             }),
       
 48641             ...otherStateToSet
       
 48642           };
       
 48643         }, () => {
       
 48644           const {
       
 48645             isOpen,
       
 48646             highlightedIndex
       
 48647           } = _this.getState();
       
 48648 
       
 48649           if (isOpen) {
       
 48650             if (_this.getItemCount() > 0 && typeof highlightedIndex === 'number') {
       
 48651               _this.setHighlightedIndex(highlightedIndex, otherStateToSet);
       
 48652             }
       
 48653           }
       
 48654 
       
 48655           cbToCb(cb)();
       
 48656         });
       
 48657       };
       
 48658 
       
 48659       this.openMenu = cb => {
       
 48660         this.internalSetState({
       
 48661           isOpen: true
       
 48662         }, cb);
       
 48663       };
       
 48664 
       
 48665       this.closeMenu = cb => {
       
 48666         this.internalSetState({
       
 48667           isOpen: false
       
 48668         }, cb);
       
 48669       };
       
 48670 
       
 48671       this.updateStatus = debounce(() => {
       
 48672         const state = this.getState();
       
 48673         const item = this.items[state.highlightedIndex];
       
 48674         const resultCount = this.getItemCount();
       
 48675         const status = this.props.getA11yStatusMessage({
       
 48676           itemToString: this.props.itemToString,
       
 48677           previousResultCount: this.previousResultCount,
       
 48678           resultCount,
       
 48679           highlightedItem: item,
       
 48680           ...state
       
 48681         });
       
 48682         this.previousResultCount = resultCount;
       
 48683         setStatus(status, this.props.environment.document);
       
 48684       }, 200);
       
 48685       // fancy destructuring + defaults + aliases
       
 48686       // this basically says each value of state should either be set to
       
 48687       // the initial value or the default value if the initial value is not provided
       
 48688       const {
       
 48689         defaultHighlightedIndex,
       
 48690         initialHighlightedIndex: _highlightedIndex = defaultHighlightedIndex,
       
 48691         defaultIsOpen,
       
 48692         initialIsOpen: _isOpen = defaultIsOpen,
       
 48693         initialInputValue: _inputValue = '',
       
 48694         initialSelectedItem: _selectedItem = null
       
 48695       } = this.props;
       
 48696 
       
 48697       const _state = this.getState({
       
 48698         highlightedIndex: _highlightedIndex,
       
 48699         isOpen: _isOpen,
       
 48700         inputValue: _inputValue,
       
 48701         selectedItem: _selectedItem
       
 48702       });
       
 48703 
       
 48704       if (_state.selectedItem != null && this.props.initialInputValue === undefined) {
       
 48705         _state.inputValue = this.props.itemToString(_state.selectedItem);
       
 48706       }
       
 48707 
       
 48708       this.state = _state;
       
 48709     }
       
 48710 
       
 48711     /**
       
 48712      * Clear all running timeouts
       
 48713      */
       
 48714     internalClearTimeouts() {
       
 48715       this.timeoutIds.forEach(id => {
       
 48716         clearTimeout(id);
       
 48717       });
       
 48718       this.timeoutIds = [];
       
 48719     }
       
 48720     /**
       
 48721      * Gets the state based on internal state or props
       
 48722      * If a state value is passed via props, then that
       
 48723      * is the value given, otherwise it's retrieved from
       
 48724      * stateToMerge
       
 48725      *
       
 48726      * @param {Object} stateToMerge defaults to this.state
       
 48727      * @return {Object} the state
       
 48728      */
       
 48729 
       
 48730 
       
 48731     getState(stateToMerge) {
       
 48732       if (stateToMerge === void 0) {
       
 48733         stateToMerge = this.state;
       
 48734       }
       
 48735 
       
 48736       return getState(stateToMerge, this.props);
       
 48737     }
       
 48738 
       
 48739     getItemCount() {
       
 48740       // things read better this way. They're in priority order:
       
 48741       // 1. `this.itemCount`
       
 48742       // 2. `this.props.itemCount`
       
 48743       // 3. `this.items.length`
       
 48744       let itemCount = this.items.length;
       
 48745 
       
 48746       if (this.itemCount != null) {
       
 48747         itemCount = this.itemCount;
       
 48748       } else if (this.props.itemCount !== undefined) {
       
 48749         itemCount = this.props.itemCount;
       
 48750       }
       
 48751 
       
 48752       return itemCount;
       
 48753     }
       
 48754 
       
 48755     getItemNodeFromIndex(index) {
       
 48756       return this.props.environment.document.getElementById(this.getItemId(index));
       
 48757     }
       
 48758 
       
 48759     scrollHighlightedItemIntoView() {
       
 48760       /* istanbul ignore else (react-native) */
       
 48761       {
       
 48762         const node = this.getItemNodeFromIndex(this.getState().highlightedIndex);
       
 48763         this.props.scrollIntoView(node, this._menuNode);
       
 48764       }
       
 48765     }
       
 48766 
       
 48767     moveHighlightedIndex(amount, otherStateToSet) {
       
 48768       const itemCount = this.getItemCount();
       
 48769       const {
       
 48770         highlightedIndex
       
 48771       } = this.getState();
       
 48772 
       
 48773       if (itemCount > 0) {
       
 48774         const nextHighlightedIndex = getNextWrappingIndex(amount, highlightedIndex, itemCount, index => this.getItemNodeFromIndex(index));
       
 48775         this.setHighlightedIndex(nextHighlightedIndex, otherStateToSet);
       
 48776       }
       
 48777     }
       
 48778 
       
 48779     getStateAndHelpers() {
       
 48780       const {
       
 48781         highlightedIndex,
       
 48782         inputValue,
       
 48783         selectedItem,
       
 48784         isOpen
       
 48785       } = this.getState();
       
 48786       const {
       
 48787         itemToString
       
 48788       } = this.props;
       
 48789       const {
       
 48790         id
       
 48791       } = this;
       
 48792       const {
       
 48793         getRootProps,
       
 48794         getToggleButtonProps,
       
 48795         getLabelProps,
       
 48796         getMenuProps,
       
 48797         getInputProps,
       
 48798         getItemProps,
       
 48799         openMenu,
       
 48800         closeMenu,
       
 48801         toggleMenu,
       
 48802         selectItem,
       
 48803         selectItemAtIndex,
       
 48804         selectHighlightedItem,
       
 48805         setHighlightedIndex,
       
 48806         clearSelection,
       
 48807         clearItems,
       
 48808         reset,
       
 48809         setItemCount,
       
 48810         unsetItemCount,
       
 48811         internalSetState: setState
       
 48812       } = this;
       
 48813       return {
       
 48814         // prop getters
       
 48815         getRootProps,
       
 48816         getToggleButtonProps,
       
 48817         getLabelProps,
       
 48818         getMenuProps,
       
 48819         getInputProps,
       
 48820         getItemProps,
       
 48821         // actions
       
 48822         reset,
       
 48823         openMenu,
       
 48824         closeMenu,
       
 48825         toggleMenu,
       
 48826         selectItem,
       
 48827         selectItemAtIndex,
       
 48828         selectHighlightedItem,
       
 48829         setHighlightedIndex,
       
 48830         clearSelection,
       
 48831         clearItems,
       
 48832         setItemCount,
       
 48833         unsetItemCount,
       
 48834         setState,
       
 48835         // props
       
 48836         itemToString,
       
 48837         // derived
       
 48838         id,
       
 48839         // state
       
 48840         highlightedIndex,
       
 48841         inputValue,
       
 48842         isOpen,
       
 48843         selectedItem
       
 48844       };
       
 48845     } //////////////////////////// ROOT
       
 48846 
       
 48847 
       
 48848     componentDidMount() {
       
 48849       /* istanbul ignore if (react-native) */
       
 48850       if (false) {}
       
 48851       /* istanbul ignore if (react-native) */
       
 48852 
       
 48853 
       
 48854       {
       
 48855         // this.isMouseDown helps us track whether the mouse is currently held down.
       
 48856         // This is useful when the user clicks on an item in the list, but holds the mouse
       
 48857         // down long enough for the list to disappear (because the blur event fires on the input)
       
 48858         // this.isMouseDown is used in the blur handler on the input to determine whether the blur event should
       
 48859         // trigger hiding the menu.
       
 48860         const onMouseDown = () => {
       
 48861           this.isMouseDown = true;
       
 48862         };
       
 48863 
       
 48864         const onMouseUp = event => {
       
 48865           this.isMouseDown = false; // if the target element or the activeElement is within a downshift node
       
 48866           // then we don't want to reset downshift
       
 48867 
       
 48868           const contextWithinDownshift = targetWithinDownshift(event.target, [this._rootNode, this._menuNode], this.props.environment);
       
 48869 
       
 48870           if (!contextWithinDownshift && this.getState().isOpen) {
       
 48871             this.reset({
       
 48872               type: mouseUp
       
 48873             }, () => this.props.onOuterClick(this.getStateAndHelpers()));
       
 48874           }
       
 48875         }; // Touching an element in iOS gives focus and hover states, but touching out of
       
 48876         // the element will remove hover, and persist the focus state, resulting in the
       
 48877         // blur event not being triggered.
       
 48878         // this.isTouchMove helps us track whether the user is tapping or swiping on a touch screen.
       
 48879         // If the user taps outside of Downshift, the component should be reset,
       
 48880         // but not if the user is swiping
       
 48881 
       
 48882 
       
 48883         const onTouchStart = () => {
       
 48884           this.isTouchMove = false;
       
 48885         };
       
 48886 
       
 48887         const onTouchMove = () => {
       
 48888           this.isTouchMove = true;
       
 48889         };
       
 48890 
       
 48891         const onTouchEnd = event => {
       
 48892           const contextWithinDownshift = targetWithinDownshift(event.target, [this._rootNode, this._menuNode], this.props.environment, false);
       
 48893 
       
 48894           if (!this.isTouchMove && !contextWithinDownshift && this.getState().isOpen) {
       
 48895             this.reset({
       
 48896               type: touchEnd
       
 48897             }, () => this.props.onOuterClick(this.getStateAndHelpers()));
       
 48898           }
       
 48899         };
       
 48900 
       
 48901         const {
       
 48902           environment
       
 48903         } = this.props;
       
 48904         environment.addEventListener('mousedown', onMouseDown);
       
 48905         environment.addEventListener('mouseup', onMouseUp);
       
 48906         environment.addEventListener('touchstart', onTouchStart);
       
 48907         environment.addEventListener('touchmove', onTouchMove);
       
 48908         environment.addEventListener('touchend', onTouchEnd);
       
 48909 
       
 48910         this.cleanup = () => {
       
 48911           this.internalClearTimeouts();
       
 48912           this.updateStatus.cancel();
       
 48913           environment.removeEventListener('mousedown', onMouseDown);
       
 48914           environment.removeEventListener('mouseup', onMouseUp);
       
 48915           environment.removeEventListener('touchstart', onTouchStart);
       
 48916           environment.removeEventListener('touchmove', onTouchMove);
       
 48917           environment.removeEventListener('touchend', onTouchEnd);
       
 48918         };
       
 48919       }
       
 48920     }
       
 48921 
       
 48922     shouldScroll(prevState, prevProps) {
       
 48923       const {
       
 48924         highlightedIndex: currentHighlightedIndex
       
 48925       } = this.props.highlightedIndex === undefined ? this.getState() : this.props;
       
 48926       const {
       
 48927         highlightedIndex: prevHighlightedIndex
       
 48928       } = prevProps.highlightedIndex === undefined ? prevState : prevProps;
       
 48929       const scrollWhenOpen = currentHighlightedIndex && this.getState().isOpen && !prevState.isOpen;
       
 48930       const scrollWhenNavigating = currentHighlightedIndex !== prevHighlightedIndex;
       
 48931       return scrollWhenOpen || scrollWhenNavigating;
       
 48932     }
       
 48933 
       
 48934     componentDidUpdate(prevProps, prevState) {
       
 48935       if (false) {}
       
 48936 
       
 48937       if (isControlledProp(this.props, 'selectedItem') && this.props.selectedItemChanged(prevProps.selectedItem, this.props.selectedItem)) {
       
 48938         this.internalSetState({
       
 48939           type: controlledPropUpdatedSelectedItem,
       
 48940           inputValue: this.props.itemToString(this.props.selectedItem)
       
 48941         });
       
 48942       }
       
 48943 
       
 48944       if (!this.avoidScrolling && this.shouldScroll(prevState, prevProps)) {
       
 48945         this.scrollHighlightedItemIntoView();
       
 48946       }
       
 48947       /* istanbul ignore else (react-native) */
       
 48948 
       
 48949 
       
 48950       {
       
 48951         this.updateStatus();
       
 48952       }
       
 48953     }
       
 48954 
       
 48955     componentWillUnmount() {
       
 48956       this.cleanup(); // avoids memory leak
       
 48957     }
       
 48958 
       
 48959     render() {
       
 48960       const children = unwrapArray(this.props.children, downshift_esm_noop); // because the items are rerendered every time we call the children
       
 48961       // we clear this out each render and it will be populated again as
       
 48962       // getItemProps is called.
       
 48963 
       
 48964       this.clearItems(); // we reset this so we know whether the user calls getRootProps during
       
 48965       // this render. If they do then we don't need to do anything,
       
 48966       // if they don't then we need to clone the element they return and
       
 48967       // apply the props for them.
       
 48968 
       
 48969       this.getRootProps.called = false;
       
 48970       this.getRootProps.refKey = undefined;
       
 48971       this.getRootProps.suppressRefError = undefined; // we do something similar for getMenuProps
       
 48972 
       
 48973       this.getMenuProps.called = false;
       
 48974       this.getMenuProps.refKey = undefined;
       
 48975       this.getMenuProps.suppressRefError = undefined; // we do something similar for getLabelProps
       
 48976 
       
 48977       this.getLabelProps.called = false; // and something similar for getInputProps
       
 48978 
       
 48979       this.getInputProps.called = false;
       
 48980       const element = unwrapArray(children(this.getStateAndHelpers()));
       
 48981 
       
 48982       if (!element) {
       
 48983         return null;
       
 48984       }
       
 48985 
       
 48986       if (this.getRootProps.called || this.props.suppressRefError) {
       
 48987         if (false) {}
       
 48988 
       
 48989         return element;
       
 48990       } else if (isDOMElement(element)) {
       
 48991         // they didn't apply the root props, but we can clone
       
 48992         // this and apply the props ourselves
       
 48993         return /*#__PURE__*/cloneElement(element, this.getRootProps(getElementProps(element)));
       
 48994       }
       
 48995       /* istanbul ignore else */
       
 48996 
       
 48997 
       
 48998       if (false) {}
       
 48999       /* istanbul ignore next */
       
 49000 
       
 49001 
       
 49002       return undefined;
       
 49003     }
       
 49004 
       
 49005   }
       
 49006 
       
 49007   Downshift.defaultProps = {
       
 49008     defaultHighlightedIndex: null,
       
 49009     defaultIsOpen: false,
       
 49010     getA11yStatusMessage: getA11yStatusMessage$1,
       
 49011     itemToString: i => {
       
 49012       if (i == null) {
       
 49013         return '';
       
 49014       }
       
 49015 
       
 49016       if (false) {}
       
 49017 
       
 49018       return String(i);
       
 49019     },
       
 49020     onStateChange: downshift_esm_noop,
       
 49021     onInputValueChange: downshift_esm_noop,
       
 49022     onUserAction: downshift_esm_noop,
       
 49023     onChange: downshift_esm_noop,
       
 49024     onSelect: downshift_esm_noop,
       
 49025     onOuterClick: downshift_esm_noop,
       
 49026     selectedItemChanged: (prevItem, item) => prevItem !== item,
       
 49027     environment:
       
 49028     /* istanbul ignore next (ssr) */
       
 49029     typeof window === 'undefined' ? {} : window,
       
 49030     stateReducer: (state, stateToSet) => stateToSet,
       
 49031     suppressRefError: false,
       
 49032     scrollIntoView
       
 49033   };
       
 49034   Downshift.stateChangeTypes = stateChangeTypes$3;
       
 49035   return Downshift;
       
 49036 })()));
       
 49037 
       
 49038  false ? 0 : void 0;
       
 49039 var Downshift$1 = (/* unused pure expression or super */ null && (Downshift));
       
 49040 
       
 49041 function validateGetMenuPropsCalledCorrectly(node, _ref3) {
       
 49042   let {
       
 49043     refKey
       
 49044   } = _ref3;
       
 49045 
       
 49046   if (!node) {
       
 49047     // eslint-disable-next-line no-console
       
 49048     console.error(`downshift: The ref prop "${refKey}" from getMenuProps was not applied correctly on your menu element.`);
       
 49049   }
       
 49050 }
       
 49051 
       
 49052 function validateGetRootPropsCalledCorrectly(element, _ref4) {
       
 49053   let {
       
 49054     refKey
       
 49055   } = _ref4;
       
 49056   const refKeySpecified = refKey !== 'ref';
       
 49057   const isComposite = !isDOMElement(element);
       
 49058 
       
 49059   if (isComposite && !refKeySpecified && !isForwardRef(element)) {
       
 49060     // eslint-disable-next-line no-console
       
 49061     console.error('downshift: You returned a non-DOM element. You must specify a refKey in getRootProps');
       
 49062   } else if (!isComposite && refKeySpecified) {
       
 49063     // eslint-disable-next-line no-console
       
 49064     console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${refKey}"`);
       
 49065   }
       
 49066 
       
 49067   if (!isForwardRef(element) && !getElementProps(element)[refKey]) {
       
 49068     // eslint-disable-next-line no-console
       
 49069     console.error(`downshift: You must apply the ref prop "${refKey}" from getRootProps onto your root element.`);
       
 49070   }
       
 49071 }
       
 49072 
       
 49073 const dropdownDefaultStateValues = {
       
 49074   highlightedIndex: -1,
       
 49075   isOpen: false,
       
 49076   selectedItem: null,
       
 49077   inputValue: ''
       
 49078 };
       
 49079 
       
 49080 function callOnChangeProps(action, state, newState) {
       
 49081   const {
       
 49082     props,
       
 49083     type
       
 49084   } = action;
       
 49085   const changes = {};
       
 49086   Object.keys(state).forEach(key => {
       
 49087     invokeOnChangeHandler(key, action, state, newState);
       
 49088 
       
 49089     if (newState[key] !== state[key]) {
       
 49090       changes[key] = newState[key];
       
 49091     }
       
 49092   });
       
 49093 
       
 49094   if (props.onStateChange && Object.keys(changes).length) {
       
 49095     props.onStateChange({
       
 49096       type,
       
 49097       ...changes
       
 49098     });
       
 49099   }
       
 49100 }
       
 49101 
       
 49102 function invokeOnChangeHandler(key, action, state, newState) {
       
 49103   const {
       
 49104     props,
       
 49105     type
       
 49106   } = action;
       
 49107   const handler = `on${capitalizeString(key)}Change`;
       
 49108 
       
 49109   if (props[handler] && newState[key] !== undefined && newState[key] !== state[key]) {
       
 49110     props[handler]({
       
 49111       type,
       
 49112       ...newState
       
 49113     });
       
 49114   }
       
 49115 }
       
 49116 /**
       
 49117  * Default state reducer that returns the changes.
       
 49118  *
       
 49119  * @param {Object} s state.
       
 49120  * @param {Object} a action with changes.
       
 49121  * @returns {Object} changes.
       
 49122  */
       
 49123 
       
 49124 
       
 49125 function stateReducer(s, a) {
       
 49126   return a.changes;
       
 49127 }
       
 49128 /**
       
 49129  * Returns a message to be added to aria-live region when item is selected.
       
 49130  *
       
 49131  * @param {Object} selectionParameters Parameters required to build the message.
       
 49132  * @returns {string} The a11y message.
       
 49133  */
       
 49134 
       
 49135 
       
 49136 function getA11ySelectionMessage(selectionParameters) {
       
 49137   const {
       
 49138     selectedItem,
       
 49139     itemToString: itemToStringLocal
       
 49140   } = selectionParameters;
       
 49141   return selectedItem ? `${itemToStringLocal(selectedItem)} has been selected.` : '';
       
 49142 }
       
 49143 /**
       
 49144  * Debounced call for updating the a11y message.
       
 49145  */
       
 49146 
       
 49147 
       
 49148 const updateA11yStatus = debounce((getA11yMessage, document) => {
       
 49149   setStatus(getA11yMessage(), document);
       
 49150 }, 200); // istanbul ignore next
       
 49151 
       
 49152 const downshift_esm_useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? external_React_.useLayoutEffect : external_React_.useEffect;
       
 49153 
       
 49154 function useElementIds(_ref) {
       
 49155   let {
       
 49156     id = `downshift-${generateId()}`,
       
 49157     labelId,
       
 49158     menuId,
       
 49159     getItemId,
       
 49160     toggleButtonId,
       
 49161     inputId
       
 49162   } = _ref;
       
 49163   const elementIdsRef = (0,external_React_.useRef)({
       
 49164     labelId: labelId || `${id}-label`,
       
 49165     menuId: menuId || `${id}-menu`,
       
 49166     getItemId: getItemId || (index => `${id}-item-${index}`),
       
 49167     toggleButtonId: toggleButtonId || `${id}-toggle-button`,
       
 49168     inputId: inputId || `${id}-input`
       
 49169   });
       
 49170   return elementIdsRef.current;
       
 49171 }
       
 49172 
       
 49173 function getItemIndex(index, item, items) {
       
 49174   if (index !== undefined) {
       
 49175     return index;
       
 49176   }
       
 49177 
       
 49178   if (items.length === 0) {
       
 49179     return -1;
       
 49180   }
       
 49181 
       
 49182   return items.indexOf(item);
       
 49183 }
       
 49184 
       
 49185 function itemToString(item) {
       
 49186   return item ? String(item) : '';
       
 49187 }
       
 49188 
       
 49189 function isAcceptedCharacterKey(key) {
       
 49190   return /^\S{1}$/.test(key);
       
 49191 }
       
 49192 
       
 49193 function capitalizeString(string) {
       
 49194   return `${string.slice(0, 1).toUpperCase()}${string.slice(1)}`;
       
 49195 }
       
 49196 
       
 49197 function downshift_esm_useLatestRef(val) {
       
 49198   const ref = (0,external_React_.useRef)(val); // technically this is not "concurrent mode safe" because we're manipulating
       
 49199   // the value during render (so it's not idempotent). However, the places this
       
 49200   // hook is used is to support memoizing callbacks which will be called
       
 49201   // *during* render, so we need the latest values *during* render.
       
 49202   // If not for this, then we'd probably want to use useLayoutEffect instead.
       
 49203 
       
 49204   ref.current = val;
       
 49205   return ref;
       
 49206 }
       
 49207 /**
       
 49208  * Computes the controlled state using a the previous state, props,
       
 49209  * two reducers, one from downshift and an optional one from the user.
       
 49210  * Also calls the onChange handlers for state values that have changed.
       
 49211  *
       
 49212  * @param {Function} reducer Reducer function from downshift.
       
 49213  * @param {Object} initialState Initial state of the hook.
       
 49214  * @param {Object} props The hook props.
       
 49215  * @returns {Array} An array with the state and an action dispatcher.
       
 49216  */
       
 49217 
       
 49218 
       
 49219 function useEnhancedReducer(reducer, initialState, props) {
       
 49220   const prevStateRef = (0,external_React_.useRef)();
       
 49221   const actionRef = (0,external_React_.useRef)();
       
 49222   const enhancedReducer = (0,external_React_.useCallback)((state, action) => {
       
 49223     actionRef.current = action;
       
 49224     state = getState(state, action.props);
       
 49225     const changes = reducer(state, action);
       
 49226     const newState = action.props.stateReducer(state, { ...action,
       
 49227       changes
       
 49228     });
       
 49229     return newState;
       
 49230   }, [reducer]);
       
 49231   const [state, dispatch] = (0,external_React_.useReducer)(enhancedReducer, initialState);
       
 49232   const propsRef = downshift_esm_useLatestRef(props);
       
 49233   const dispatchWithProps = (0,external_React_.useCallback)(action => dispatch({
       
 49234     props: propsRef.current,
       
 49235     ...action
       
 49236   }), [propsRef]);
       
 49237   const action = actionRef.current;
       
 49238   (0,external_React_.useEffect)(() => {
       
 49239     if (action && prevStateRef.current && prevStateRef.current !== state) {
       
 49240       callOnChangeProps(action, getState(prevStateRef.current, action.props), state);
       
 49241     }
       
 49242 
       
 49243     prevStateRef.current = state;
       
 49244   }, [state, props, action]);
       
 49245   return [state, dispatchWithProps];
       
 49246 }
       
 49247 /**
       
 49248  * Wraps the useEnhancedReducer and applies the controlled prop values before
       
 49249  * returning the new state.
       
 49250  *
       
 49251  * @param {Function} reducer Reducer function from downshift.
       
 49252  * @param {Object} initialState Initial state of the hook.
       
 49253  * @param {Object} props The hook props.
       
 49254  * @returns {Array} An array with the state and an action dispatcher.
       
 49255  */
       
 49256 
       
 49257 
       
 49258 function useControlledReducer$1(reducer, initialState, props) {
       
 49259   const [state, dispatch] = useEnhancedReducer(reducer, initialState, props);
       
 49260   return [getState(state, props), dispatch];
       
 49261 }
       
 49262 
       
 49263 const defaultProps$3 = {
       
 49264   itemToString,
       
 49265   stateReducer,
       
 49266   getA11ySelectionMessage,
       
 49267   scrollIntoView,
       
 49268   circularNavigation: false,
       
 49269   environment:
       
 49270   /* istanbul ignore next (ssr) */
       
 49271   typeof window === 'undefined' ? {} : window
       
 49272 };
       
 49273 
       
 49274 function getDefaultValue$1(props, propKey, defaultStateValues) {
       
 49275   if (defaultStateValues === void 0) {
       
 49276     defaultStateValues = dropdownDefaultStateValues;
       
 49277   }
       
 49278 
       
 49279   const defaultValue = props[`default${capitalizeString(propKey)}`];
       
 49280 
       
 49281   if (defaultValue !== undefined) {
       
 49282     return defaultValue;
       
 49283   }
       
 49284 
       
 49285   return defaultStateValues[propKey];
       
 49286 }
       
 49287 
       
 49288 function getInitialValue$1(props, propKey, defaultStateValues) {
       
 49289   if (defaultStateValues === void 0) {
       
 49290     defaultStateValues = dropdownDefaultStateValues;
       
 49291   }
       
 49292 
       
 49293   const value = props[propKey];
       
 49294 
       
 49295   if (value !== undefined) {
       
 49296     return value;
       
 49297   }
       
 49298 
       
 49299   const initialValue = props[`initial${capitalizeString(propKey)}`];
       
 49300 
       
 49301   if (initialValue !== undefined) {
       
 49302     return initialValue;
       
 49303   }
       
 49304 
       
 49305   return getDefaultValue$1(props, propKey, defaultStateValues);
       
 49306 }
       
 49307 
       
 49308 function getInitialState$2(props) {
       
 49309   const selectedItem = getInitialValue$1(props, 'selectedItem');
       
 49310   const isOpen = getInitialValue$1(props, 'isOpen');
       
 49311   const highlightedIndex = getInitialValue$1(props, 'highlightedIndex');
       
 49312   const inputValue = getInitialValue$1(props, 'inputValue');
       
 49313   return {
       
 49314     highlightedIndex: highlightedIndex < 0 && selectedItem && isOpen ? props.items.indexOf(selectedItem) : highlightedIndex,
       
 49315     isOpen,
       
 49316     selectedItem,
       
 49317     inputValue
       
 49318   };
       
 49319 }
       
 49320 
       
 49321 function getHighlightedIndexOnOpen(props, state, offset, getItemNodeFromIndex) {
       
 49322   const {
       
 49323     items,
       
 49324     initialHighlightedIndex,
       
 49325     defaultHighlightedIndex
       
 49326   } = props;
       
 49327   const {
       
 49328     selectedItem,
       
 49329     highlightedIndex
       
 49330   } = state;
       
 49331 
       
 49332   if (items.length === 0) {
       
 49333     return -1;
       
 49334   } // initialHighlightedIndex will give value to highlightedIndex on initial state only.
       
 49335 
       
 49336 
       
 49337   if (initialHighlightedIndex !== undefined && highlightedIndex === initialHighlightedIndex) {
       
 49338     return initialHighlightedIndex;
       
 49339   }
       
 49340 
       
 49341   if (defaultHighlightedIndex !== undefined) {
       
 49342     return defaultHighlightedIndex;
       
 49343   }
       
 49344 
       
 49345   if (selectedItem) {
       
 49346     if (offset === 0) {
       
 49347       return items.indexOf(selectedItem);
       
 49348     }
       
 49349 
       
 49350     return getNextWrappingIndex(offset, items.indexOf(selectedItem), items.length, getItemNodeFromIndex, false);
       
 49351   }
       
 49352 
       
 49353   if (offset === 0) {
       
 49354     return -1;
       
 49355   }
       
 49356 
       
 49357   return offset < 0 ? items.length - 1 : 0;
       
 49358 }
       
 49359 /**
       
 49360  * Reuse the movement tracking of mouse and touch events.
       
 49361  *
       
 49362  * @param {boolean} isOpen Whether the dropdown is open or not.
       
 49363  * @param {Array<Object>} downshiftElementRefs Downshift element refs to track movement (toggleButton, menu etc.)
       
 49364  * @param {Object} environment Environment where component/hook exists.
       
 49365  * @param {Function} handleBlur Handler on blur from mouse or touch.
       
 49366  * @returns {Object} Ref containing whether mouseDown or touchMove event is happening
       
 49367  */
       
 49368 
       
 49369 
       
 49370 function useMouseAndTouchTracker(isOpen, downshiftElementRefs, environment, handleBlur) {
       
 49371   const mouseAndTouchTrackersRef = (0,external_React_.useRef)({
       
 49372     isMouseDown: false,
       
 49373     isTouchMove: false
       
 49374   });
       
 49375   (0,external_React_.useEffect)(() => {
       
 49376     // The same strategy for checking if a click occurred inside or outside downsift
       
 49377     // as in downshift.js.
       
 49378     const onMouseDown = () => {
       
 49379       mouseAndTouchTrackersRef.current.isMouseDown = true;
       
 49380     };
       
 49381 
       
 49382     const onMouseUp = event => {
       
 49383       mouseAndTouchTrackersRef.current.isMouseDown = false;
       
 49384 
       
 49385       if (isOpen && !targetWithinDownshift(event.target, downshiftElementRefs.map(ref => ref.current), environment)) {
       
 49386         handleBlur();
       
 49387       }
       
 49388     };
       
 49389 
       
 49390     const onTouchStart = () => {
       
 49391       mouseAndTouchTrackersRef.current.isTouchMove = false;
       
 49392     };
       
 49393 
       
 49394     const onTouchMove = () => {
       
 49395       mouseAndTouchTrackersRef.current.isTouchMove = true;
       
 49396     };
       
 49397 
       
 49398     const onTouchEnd = event => {
       
 49399       if (isOpen && !mouseAndTouchTrackersRef.current.isTouchMove && !targetWithinDownshift(event.target, downshiftElementRefs.map(ref => ref.current), environment, false)) {
       
 49400         handleBlur();
       
 49401       }
       
 49402     };
       
 49403 
       
 49404     environment.addEventListener('mousedown', onMouseDown);
       
 49405     environment.addEventListener('mouseup', onMouseUp);
       
 49406     environment.addEventListener('touchstart', onTouchStart);
       
 49407     environment.addEventListener('touchmove', onTouchMove);
       
 49408     environment.addEventListener('touchend', onTouchEnd);
       
 49409     return function cleanup() {
       
 49410       environment.removeEventListener('mousedown', onMouseDown);
       
 49411       environment.removeEventListener('mouseup', onMouseUp);
       
 49412       environment.removeEventListener('touchstart', onTouchStart);
       
 49413       environment.removeEventListener('touchmove', onTouchMove);
       
 49414       environment.removeEventListener('touchend', onTouchEnd);
       
 49415     }; // eslint-disable-next-line react-hooks/exhaustive-deps
       
 49416   }, [isOpen, environment]);
       
 49417   return mouseAndTouchTrackersRef;
       
 49418 }
       
 49419 /* istanbul ignore next */
       
 49420 // eslint-disable-next-line import/no-mutable-exports
       
 49421 
       
 49422 
       
 49423 let useGetterPropsCalledChecker = () => downshift_esm_noop;
       
 49424 /**
       
 49425  * Custom hook that checks if getter props are called correctly.
       
 49426  *
       
 49427  * @param  {...any} propKeys Getter prop names to be handled.
       
 49428  * @returns {Function} Setter function called inside getter props to set call information.
       
 49429  */
       
 49430 
       
 49431 /* istanbul ignore next */
       
 49432 
       
 49433 
       
 49434 if (false) {}
       
 49435 
       
 49436 function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
       
 49437   let {
       
 49438     isInitialMount,
       
 49439     highlightedIndex,
       
 49440     items,
       
 49441     environment,
       
 49442     ...rest
       
 49443   } = _ref2;
       
 49444   // Sets a11y status message on changes in state.
       
 49445   (0,external_React_.useEffect)(() => {
       
 49446     if (isInitialMount || false) {
       
 49447       return;
       
 49448     }
       
 49449 
       
 49450     updateA11yStatus(() => getA11yMessage({
       
 49451       highlightedIndex,
       
 49452       highlightedItem: items[highlightedIndex],
       
 49453       resultCount: items.length,
       
 49454       ...rest
       
 49455     }), environment.document); // eslint-disable-next-line react-hooks/exhaustive-deps
       
 49456   }, dependencyArray);
       
 49457 }
       
 49458 
       
 49459 function useScrollIntoView(_ref3) {
       
 49460   let {
       
 49461     highlightedIndex,
       
 49462     isOpen,
       
 49463     itemRefs,
       
 49464     getItemNodeFromIndex,
       
 49465     menuElement,
       
 49466     scrollIntoView: scrollIntoViewProp
       
 49467   } = _ref3;
       
 49468   // used not to scroll on highlight by mouse.
       
 49469   const shouldScrollRef = (0,external_React_.useRef)(true); // Scroll on highlighted item if change comes from keyboard.
       
 49470 
       
 49471   downshift_esm_useIsomorphicLayoutEffect(() => {
       
 49472     if (highlightedIndex < 0 || !isOpen || !Object.keys(itemRefs.current).length) {
       
 49473       return;
       
 49474     }
       
 49475 
       
 49476     if (shouldScrollRef.current === false) {
       
 49477       shouldScrollRef.current = true;
       
 49478     } else {
       
 49479       scrollIntoViewProp(getItemNodeFromIndex(highlightedIndex), menuElement);
       
 49480     } // eslint-disable-next-line react-hooks/exhaustive-deps
       
 49481 
       
 49482   }, [highlightedIndex]);
       
 49483   return shouldScrollRef;
       
 49484 } // eslint-disable-next-line import/no-mutable-exports
       
 49485 
       
 49486 
       
 49487 let useControlPropsValidator = downshift_esm_noop;
       
 49488 /* istanbul ignore next */
       
 49489 
       
 49490 if (false) {}
       
 49491 
       
 49492 /* eslint-disable complexity */
       
 49493 
       
 49494 function downshiftCommonReducer(state, action, stateChangeTypes) {
       
 49495   const {
       
 49496     type,
       
 49497     props
       
 49498   } = action;
       
 49499   let changes;
       
 49500 
       
 49501   switch (type) {
       
 49502     case stateChangeTypes.ItemMouseMove:
       
 49503       changes = {
       
 49504         highlightedIndex: action.disabled ? -1 : action.index
       
 49505       };
       
 49506       break;
       
 49507 
       
 49508     case stateChangeTypes.MenuMouseLeave:
       
 49509       changes = {
       
 49510         highlightedIndex: -1
       
 49511       };
       
 49512       break;
       
 49513 
       
 49514     case stateChangeTypes.ToggleButtonClick:
       
 49515     case stateChangeTypes.FunctionToggleMenu:
       
 49516       changes = {
       
 49517         isOpen: !state.isOpen,
       
 49518         highlightedIndex: state.isOpen ? -1 : getHighlightedIndexOnOpen(props, state, 0)
       
 49519       };
       
 49520       break;
       
 49521 
       
 49522     case stateChangeTypes.FunctionOpenMenu:
       
 49523       changes = {
       
 49524         isOpen: true,
       
 49525         highlightedIndex: getHighlightedIndexOnOpen(props, state, 0)
       
 49526       };
       
 49527       break;
       
 49528 
       
 49529     case stateChangeTypes.FunctionCloseMenu:
       
 49530       changes = {
       
 49531         isOpen: false
       
 49532       };
       
 49533       break;
       
 49534 
       
 49535     case stateChangeTypes.FunctionSetHighlightedIndex:
       
 49536       changes = {
       
 49537         highlightedIndex: action.highlightedIndex
       
 49538       };
       
 49539       break;
       
 49540 
       
 49541     case stateChangeTypes.FunctionSetInputValue:
       
 49542       changes = {
       
 49543         inputValue: action.inputValue
       
 49544       };
       
 49545       break;
       
 49546 
       
 49547     case stateChangeTypes.FunctionReset:
       
 49548       changes = {
       
 49549         highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
       
 49550         isOpen: getDefaultValue$1(props, 'isOpen'),
       
 49551         selectedItem: getDefaultValue$1(props, 'selectedItem'),
       
 49552         inputValue: getDefaultValue$1(props, 'inputValue')
       
 49553       };
       
 49554       break;
       
 49555 
       
 49556     default:
       
 49557       throw new Error('Reducer called without proper action type.');
       
 49558   }
       
 49559 
       
 49560   return { ...state,
       
 49561     ...changes
       
 49562   };
       
 49563 }
       
 49564 /* eslint-enable complexity */
       
 49565 
       
 49566 function getItemIndexByCharacterKey(_a) {
       
 49567     var keysSoFar = _a.keysSoFar, highlightedIndex = _a.highlightedIndex, items = _a.items, itemToString = _a.itemToString, getItemNodeFromIndex = _a.getItemNodeFromIndex;
       
 49568     var lowerCasedKeysSoFar = keysSoFar.toLowerCase();
       
 49569     for (var index = 0; index < items.length; index++) {
       
 49570         var offsetIndex = (index + highlightedIndex + 1) % items.length;
       
 49571         var item = items[offsetIndex];
       
 49572         if (item !== undefined &&
       
 49573             itemToString(item)
       
 49574                 .toLowerCase()
       
 49575                 .startsWith(lowerCasedKeysSoFar)) {
       
 49576             var element = getItemNodeFromIndex(offsetIndex);
       
 49577             if (!(element === null || element === void 0 ? void 0 : element.hasAttribute('disabled'))) {
       
 49578                 return offsetIndex;
       
 49579             }
       
 49580         }
       
 49581     }
       
 49582     return highlightedIndex;
       
 49583 }
       
 49584 var propTypes$2 = {
       
 49585     items: (prop_types_default()).array.isRequired,
       
 49586     itemToString: (prop_types_default()).func,
       
 49587     getA11yStatusMessage: (prop_types_default()).func,
       
 49588     getA11ySelectionMessage: (prop_types_default()).func,
       
 49589     circularNavigation: (prop_types_default()).bool,
       
 49590     highlightedIndex: (prop_types_default()).number,
       
 49591     defaultHighlightedIndex: (prop_types_default()).number,
       
 49592     initialHighlightedIndex: (prop_types_default()).number,
       
 49593     isOpen: (prop_types_default()).bool,
       
 49594     defaultIsOpen: (prop_types_default()).bool,
       
 49595     initialIsOpen: (prop_types_default()).bool,
       
 49596     selectedItem: (prop_types_default()).any,
       
 49597     initialSelectedItem: (prop_types_default()).any,
       
 49598     defaultSelectedItem: (prop_types_default()).any,
       
 49599     id: (prop_types_default()).string,
       
 49600     labelId: (prop_types_default()).string,
       
 49601     menuId: (prop_types_default()).string,
       
 49602     getItemId: (prop_types_default()).func,
       
 49603     toggleButtonId: (prop_types_default()).string,
       
 49604     stateReducer: (prop_types_default()).func,
       
 49605     onSelectedItemChange: (prop_types_default()).func,
       
 49606     onHighlightedIndexChange: (prop_types_default()).func,
       
 49607     onStateChange: (prop_types_default()).func,
       
 49608     onIsOpenChange: (prop_types_default()).func,
       
 49609     environment: prop_types_default().shape({
       
 49610         addEventListener: (prop_types_default()).func,
       
 49611         removeEventListener: (prop_types_default()).func,
       
 49612         document: prop_types_default().shape({
       
 49613             getElementById: (prop_types_default()).func,
       
 49614             activeElement: (prop_types_default()).any,
       
 49615             body: (prop_types_default()).any
       
 49616         })
       
 49617     })
       
 49618 };
       
 49619 /**
       
 49620  * Default implementation for status message. Only added when menu is open.
       
 49621  * Will specift if there are results in the list, and if so, how many,
       
 49622  * and what keys are relevant.
       
 49623  *
       
 49624  * @param {Object} param the downshift state and other relevant properties
       
 49625  * @return {String} the a11y status message
       
 49626  */
       
 49627 function getA11yStatusMessage(_a) {
       
 49628     var isOpen = _a.isOpen, resultCount = _a.resultCount, previousResultCount = _a.previousResultCount;
       
 49629     if (!isOpen) {
       
 49630         return '';
       
 49631     }
       
 49632     if (!resultCount) {
       
 49633         return 'No results are available.';
       
 49634     }
       
 49635     if (resultCount !== previousResultCount) {
       
 49636         return "".concat(resultCount, " result").concat(resultCount === 1 ? ' is' : 's are', " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.");
       
 49637     }
       
 49638     return '';
       
 49639 }
       
 49640 var defaultProps$2 = __assign(__assign({}, defaultProps$3), { getA11yStatusMessage: getA11yStatusMessage });
       
 49641 // eslint-disable-next-line import/no-mutable-exports
       
 49642 var validatePropTypes$2 = downshift_esm_noop;
       
 49643 /* istanbul ignore next */
       
 49644 if (false) {}
       
 49645 
       
 49646 const MenuKeyDownArrowDown =  false ? 0 : 0;
       
 49647 const MenuKeyDownArrowUp =  false ? 0 : 1;
       
 49648 const MenuKeyDownEscape =  false ? 0 : 2;
       
 49649 const MenuKeyDownHome =  false ? 0 : 3;
       
 49650 const MenuKeyDownEnd =  false ? 0 : 4;
       
 49651 const MenuKeyDownEnter =  false ? 0 : 5;
       
 49652 const MenuKeyDownSpaceButton =  false ? 0 : 6;
       
 49653 const MenuKeyDownCharacter =  false ? 0 : 7;
       
 49654 const MenuBlur =  false ? 0 : 8;
       
 49655 const MenuMouseLeave$1 =  false ? 0 : 9;
       
 49656 const ItemMouseMove$1 =  false ? 0 : 10;
       
 49657 const ItemClick$1 =  false ? 0 : 11;
       
 49658 const ToggleButtonClick$1 =  false ? 0 : 12;
       
 49659 const ToggleButtonKeyDownArrowDown =  false ? 0 : 13;
       
 49660 const ToggleButtonKeyDownArrowUp =  false ? 0 : 14;
       
 49661 const ToggleButtonKeyDownCharacter =  false ? 0 : 15;
       
 49662 const FunctionToggleMenu$1 =  false ? 0 : 16;
       
 49663 const FunctionOpenMenu$1 =  false ? 0 : 17;
       
 49664 const FunctionCloseMenu$1 =  false ? 0 : 18;
       
 49665 const FunctionSetHighlightedIndex$1 =  false ? 0 : 19;
       
 49666 const FunctionSelectItem$1 =  false ? 0 : 20;
       
 49667 const FunctionSetInputValue$1 =  false ? 0 : 21;
       
 49668 const FunctionReset$2 =  false ? 0 : 22;
       
 49669 
       
 49670 var stateChangeTypes$2 = /*#__PURE__*/Object.freeze({
       
 49671   __proto__: null,
       
 49672   MenuKeyDownArrowDown: MenuKeyDownArrowDown,
       
 49673   MenuKeyDownArrowUp: MenuKeyDownArrowUp,
       
 49674   MenuKeyDownEscape: MenuKeyDownEscape,
       
 49675   MenuKeyDownHome: MenuKeyDownHome,
       
 49676   MenuKeyDownEnd: MenuKeyDownEnd,
       
 49677   MenuKeyDownEnter: MenuKeyDownEnter,
       
 49678   MenuKeyDownSpaceButton: MenuKeyDownSpaceButton,
       
 49679   MenuKeyDownCharacter: MenuKeyDownCharacter,
       
 49680   MenuBlur: MenuBlur,
       
 49681   MenuMouseLeave: MenuMouseLeave$1,
       
 49682   ItemMouseMove: ItemMouseMove$1,
       
 49683   ItemClick: ItemClick$1,
       
 49684   ToggleButtonClick: ToggleButtonClick$1,
       
 49685   ToggleButtonKeyDownArrowDown: ToggleButtonKeyDownArrowDown,
       
 49686   ToggleButtonKeyDownArrowUp: ToggleButtonKeyDownArrowUp,
       
 49687   ToggleButtonKeyDownCharacter: ToggleButtonKeyDownCharacter,
       
 49688   FunctionToggleMenu: FunctionToggleMenu$1,
       
 49689   FunctionOpenMenu: FunctionOpenMenu$1,
       
 49690   FunctionCloseMenu: FunctionCloseMenu$1,
       
 49691   FunctionSetHighlightedIndex: FunctionSetHighlightedIndex$1,
       
 49692   FunctionSelectItem: FunctionSelectItem$1,
       
 49693   FunctionSetInputValue: FunctionSetInputValue$1,
       
 49694   FunctionReset: FunctionReset$2
       
 49695 });
       
 49696 
       
 49697 /* eslint-disable complexity */
       
 49698 
       
 49699 function downshiftSelectReducer(state, action) {
       
 49700   const {
       
 49701     type,
       
 49702     props,
       
 49703     shiftKey
       
 49704   } = action;
       
 49705   let changes;
       
 49706 
       
 49707   switch (type) {
       
 49708     case ItemClick$1:
       
 49709       changes = {
       
 49710         isOpen: getDefaultValue$1(props, 'isOpen'),
       
 49711         highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
       
 49712         selectedItem: props.items[action.index]
       
 49713       };
       
 49714       break;
       
 49715 
       
 49716     case ToggleButtonKeyDownCharacter:
       
 49717       {
       
 49718         const lowercasedKey = action.key;
       
 49719         const inputValue = `${state.inputValue}${lowercasedKey}`;
       
 49720         const itemIndex = getItemIndexByCharacterKey({
       
 49721           keysSoFar: inputValue,
       
 49722           highlightedIndex: state.selectedItem ? props.items.indexOf(state.selectedItem) : -1,
       
 49723           items: props.items,
       
 49724           itemToString: props.itemToString,
       
 49725           getItemNodeFromIndex: action.getItemNodeFromIndex
       
 49726         });
       
 49727         changes = {
       
 49728           inputValue,
       
 49729           ...(itemIndex >= 0 && {
       
 49730             selectedItem: props.items[itemIndex]
       
 49731           })
       
 49732         };
       
 49733       }
       
 49734       break;
       
 49735 
       
 49736     case ToggleButtonKeyDownArrowDown:
       
 49737       changes = {
       
 49738         highlightedIndex: getHighlightedIndexOnOpen(props, state, 1, action.getItemNodeFromIndex),
       
 49739         isOpen: true
       
 49740       };
       
 49741       break;
       
 49742 
       
 49743     case ToggleButtonKeyDownArrowUp:
       
 49744       changes = {
       
 49745         highlightedIndex: getHighlightedIndexOnOpen(props, state, -1, action.getItemNodeFromIndex),
       
 49746         isOpen: true
       
 49747       };
       
 49748       break;
       
 49749 
       
 49750     case MenuKeyDownEnter:
       
 49751     case MenuKeyDownSpaceButton:
       
 49752       changes = {
       
 49753         isOpen: getDefaultValue$1(props, 'isOpen'),
       
 49754         highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
       
 49755         ...(state.highlightedIndex >= 0 && {
       
 49756           selectedItem: props.items[state.highlightedIndex]
       
 49757         })
       
 49758       };
       
 49759       break;
       
 49760 
       
 49761     case MenuKeyDownHome:
       
 49762       changes = {
       
 49763         highlightedIndex: getNextNonDisabledIndex(1, 0, props.items.length, action.getItemNodeFromIndex, false)
       
 49764       };
       
 49765       break;
       
 49766 
       
 49767     case MenuKeyDownEnd:
       
 49768       changes = {
       
 49769         highlightedIndex: getNextNonDisabledIndex(-1, props.items.length - 1, props.items.length, action.getItemNodeFromIndex, false)
       
 49770       };
       
 49771       break;
       
 49772 
       
 49773     case MenuKeyDownEscape:
       
 49774       changes = {
       
 49775         isOpen: false,
       
 49776         highlightedIndex: -1
       
 49777       };
       
 49778       break;
       
 49779 
       
 49780     case MenuBlur:
       
 49781       changes = {
       
 49782         isOpen: false,
       
 49783         highlightedIndex: -1
       
 49784       };
       
 49785       break;
       
 49786 
       
 49787     case MenuKeyDownCharacter:
       
 49788       {
       
 49789         const lowercasedKey = action.key;
       
 49790         const inputValue = `${state.inputValue}${lowercasedKey}`;
       
 49791         const highlightedIndex = getItemIndexByCharacterKey({
       
 49792           keysSoFar: inputValue,
       
 49793           highlightedIndex: state.highlightedIndex,
       
 49794           items: props.items,
       
 49795           itemToString: props.itemToString,
       
 49796           getItemNodeFromIndex: action.getItemNodeFromIndex
       
 49797         });
       
 49798         changes = {
       
 49799           inputValue,
       
 49800           ...(highlightedIndex >= 0 && {
       
 49801             highlightedIndex
       
 49802           })
       
 49803         };
       
 49804       }
       
 49805       break;
       
 49806 
       
 49807     case MenuKeyDownArrowDown:
       
 49808       changes = {
       
 49809         highlightedIndex: getNextWrappingIndex(shiftKey ? 5 : 1, state.highlightedIndex, props.items.length, action.getItemNodeFromIndex, props.circularNavigation)
       
 49810       };
       
 49811       break;
       
 49812 
       
 49813     case MenuKeyDownArrowUp:
       
 49814       changes = {
       
 49815         highlightedIndex: getNextWrappingIndex(shiftKey ? -5 : -1, state.highlightedIndex, props.items.length, action.getItemNodeFromIndex, props.circularNavigation)
       
 49816       };
       
 49817       break;
       
 49818 
       
 49819     case FunctionSelectItem$1:
       
 49820       changes = {
       
 49821         selectedItem: action.selectedItem
       
 49822       };
       
 49823       break;
       
 49824 
       
 49825     default:
       
 49826       return downshiftCommonReducer(state, action, stateChangeTypes$2);
       
 49827   }
       
 49828 
       
 49829   return { ...state,
       
 49830     ...changes
       
 49831   };
       
 49832 }
       
 49833 /* eslint-enable complexity */
       
 49834 
       
 49835 /* eslint-disable max-statements */
       
 49836 useSelect.stateChangeTypes = stateChangeTypes$2;
       
 49837 
       
 49838 function useSelect(userProps) {
       
 49839   if (userProps === void 0) {
       
 49840     userProps = {};
       
 49841   }
       
 49842 
       
 49843   validatePropTypes$2(userProps, useSelect); // Props defaults and destructuring.
       
 49844 
       
 49845   const props = { ...defaultProps$2,
       
 49846     ...userProps
       
 49847   };
       
 49848   const {
       
 49849     items,
       
 49850     scrollIntoView,
       
 49851     environment,
       
 49852     initialIsOpen,
       
 49853     defaultIsOpen,
       
 49854     itemToString,
       
 49855     getA11ySelectionMessage,
       
 49856     getA11yStatusMessage
       
 49857   } = props; // Initial state depending on controlled props.
       
 49858 
       
 49859   const initialState = getInitialState$2(props);
       
 49860   const [state, dispatch] = useControlledReducer$1(downshiftSelectReducer, initialState, props);
       
 49861   const {
       
 49862     isOpen,
       
 49863     highlightedIndex,
       
 49864     selectedItem,
       
 49865     inputValue
       
 49866   } = state; // Element efs.
       
 49867 
       
 49868   const toggleButtonRef = (0,external_React_.useRef)(null);
       
 49869   const menuRef = (0,external_React_.useRef)(null);
       
 49870   const itemRefs = (0,external_React_.useRef)({}); // used not to trigger menu blur action in some scenarios.
       
 49871 
       
 49872   const shouldBlurRef = (0,external_React_.useRef)(true); // used to keep the inputValue clearTimeout object between renders.
       
 49873 
       
 49874   const clearTimeoutRef = (0,external_React_.useRef)(null); // prevent id re-generation between renders.
       
 49875 
       
 49876   const elementIds = useElementIds(props); // used to keep track of how many items we had on previous cycle.
       
 49877 
       
 49878   const previousResultCountRef = (0,external_React_.useRef)();
       
 49879   const isInitialMountRef = (0,external_React_.useRef)(true); // utility callback to get item element.
       
 49880 
       
 49881   const latest = downshift_esm_useLatestRef({
       
 49882     state,
       
 49883     props
       
 49884   }); // Some utils.
       
 49885 
       
 49886   const getItemNodeFromIndex = (0,external_React_.useCallback)(index => itemRefs.current[elementIds.getItemId(index)], [elementIds]); // Effects.
       
 49887   // Sets a11y status message on changes in state.
       
 49888 
       
 49889   useA11yMessageSetter(getA11yStatusMessage, [isOpen, highlightedIndex, inputValue, items], {
       
 49890     isInitialMount: isInitialMountRef.current,
       
 49891     previousResultCount: previousResultCountRef.current,
       
 49892     items,
       
 49893     environment,
       
 49894     itemToString,
       
 49895     ...state
       
 49896   }); // Sets a11y status message on changes in selectedItem.
       
 49897 
       
 49898   useA11yMessageSetter(getA11ySelectionMessage, [selectedItem], {
       
 49899     isInitialMount: isInitialMountRef.current,
       
 49900     previousResultCount: previousResultCountRef.current,
       
 49901     items,
       
 49902     environment,
       
 49903     itemToString,
       
 49904     ...state
       
 49905   }); // Scroll on highlighted item if change comes from keyboard.
       
 49906 
       
 49907   const shouldScrollRef = useScrollIntoView({
       
 49908     menuElement: menuRef.current,
       
 49909     highlightedIndex,
       
 49910     isOpen,
       
 49911     itemRefs,
       
 49912     scrollIntoView,
       
 49913     getItemNodeFromIndex
       
 49914   }); // Sets cleanup for the keysSoFar callback, debounded after 500ms.
       
 49915 
       
 49916   (0,external_React_.useEffect)(() => {
       
 49917     // init the clean function here as we need access to dispatch.
       
 49918     clearTimeoutRef.current = debounce(outerDispatch => {
       
 49919       outerDispatch({
       
 49920         type: FunctionSetInputValue$1,
       
 49921         inputValue: ''
       
 49922       });
       
 49923     }, 500); // Cancel any pending debounced calls on mount
       
 49924 
       
 49925     return () => {
       
 49926       clearTimeoutRef.current.cancel();
       
 49927     };
       
 49928   }, []); // Invokes the keysSoFar callback set up above.
       
 49929 
       
 49930   (0,external_React_.useEffect)(() => {
       
 49931     if (!inputValue) {
       
 49932       return;
       
 49933     }
       
 49934 
       
 49935     clearTimeoutRef.current(dispatch);
       
 49936   }, [dispatch, inputValue]);
       
 49937   useControlPropsValidator({
       
 49938     isInitialMount: isInitialMountRef.current,
       
 49939     props,
       
 49940     state
       
 49941   });
       
 49942   /* Controls the focus on the menu or the toggle button. */
       
 49943 
       
 49944   (0,external_React_.useEffect)(() => {
       
 49945     // Don't focus menu on first render.
       
 49946     if (isInitialMountRef.current) {
       
 49947       // Unless it was initialised as open.
       
 49948       if ((initialIsOpen || defaultIsOpen || isOpen) && menuRef.current) {
       
 49949         menuRef.current.focus();
       
 49950       }
       
 49951 
       
 49952       return;
       
 49953     } // Focus menu on open.
       
 49954 
       
 49955 
       
 49956     if (isOpen) {
       
 49957       // istanbul ignore else
       
 49958       if (menuRef.current) {
       
 49959         menuRef.current.focus();
       
 49960       }
       
 49961 
       
 49962       return;
       
 49963     } // Focus toggleButton on close, but not if it was closed with (Shift+)Tab.
       
 49964 
       
 49965 
       
 49966     if (environment.document.activeElement === menuRef.current) {
       
 49967       // istanbul ignore else
       
 49968       if (toggleButtonRef.current) {
       
 49969         shouldBlurRef.current = false;
       
 49970         toggleButtonRef.current.focus();
       
 49971       }
       
 49972     } // eslint-disable-next-line react-hooks/exhaustive-deps
       
 49973 
       
 49974   }, [isOpen]);
       
 49975   (0,external_React_.useEffect)(() => {
       
 49976     if (isInitialMountRef.current) {
       
 49977       return;
       
 49978     }
       
 49979 
       
 49980     previousResultCountRef.current = items.length;
       
 49981   }); // Add mouse/touch events to document.
       
 49982 
       
 49983   const mouseAndTouchTrackersRef = useMouseAndTouchTracker(isOpen, [menuRef, toggleButtonRef], environment, () => {
       
 49984     dispatch({
       
 49985       type: MenuBlur
       
 49986     });
       
 49987   });
       
 49988   const setGetterPropCallInfo = useGetterPropsCalledChecker('getMenuProps', 'getToggleButtonProps'); // Make initial ref false.
       
 49989 
       
 49990   (0,external_React_.useEffect)(() => {
       
 49991     isInitialMountRef.current = false;
       
 49992   }, []); // Reset itemRefs on close.
       
 49993 
       
 49994   (0,external_React_.useEffect)(() => {
       
 49995     if (!isOpen) {
       
 49996       itemRefs.current = {};
       
 49997     }
       
 49998   }, [isOpen]); // Event handler functions.
       
 49999 
       
 50000   const toggleButtonKeyDownHandlers = (0,external_React_.useMemo)(() => ({
       
 50001     ArrowDown(event) {
       
 50002       event.preventDefault();
       
 50003       dispatch({
       
 50004         type: ToggleButtonKeyDownArrowDown,
       
 50005         getItemNodeFromIndex,
       
 50006         shiftKey: event.shiftKey
       
 50007       });
       
 50008     },
       
 50009 
       
 50010     ArrowUp(event) {
       
 50011       event.preventDefault();
       
 50012       dispatch({
       
 50013         type: ToggleButtonKeyDownArrowUp,
       
 50014         getItemNodeFromIndex,
       
 50015         shiftKey: event.shiftKey
       
 50016       });
       
 50017     }
       
 50018 
       
 50019   }), [dispatch, getItemNodeFromIndex]);
       
 50020   const menuKeyDownHandlers = (0,external_React_.useMemo)(() => ({
       
 50021     ArrowDown(event) {
       
 50022       event.preventDefault();
       
 50023       dispatch({
       
 50024         type: MenuKeyDownArrowDown,
       
 50025         getItemNodeFromIndex,
       
 50026         shiftKey: event.shiftKey
       
 50027       });
       
 50028     },
       
 50029 
       
 50030     ArrowUp(event) {
       
 50031       event.preventDefault();
       
 50032       dispatch({
       
 50033         type: MenuKeyDownArrowUp,
       
 50034         getItemNodeFromIndex,
       
 50035         shiftKey: event.shiftKey
       
 50036       });
       
 50037     },
       
 50038 
       
 50039     Home(event) {
       
 50040       event.preventDefault();
       
 50041       dispatch({
       
 50042         type: MenuKeyDownHome,
       
 50043         getItemNodeFromIndex
       
 50044       });
       
 50045     },
       
 50046 
       
 50047     End(event) {
       
 50048       event.preventDefault();
       
 50049       dispatch({
       
 50050         type: MenuKeyDownEnd,
       
 50051         getItemNodeFromIndex
       
 50052       });
       
 50053     },
       
 50054 
       
 50055     Escape() {
       
 50056       dispatch({
       
 50057         type: MenuKeyDownEscape
       
 50058       });
       
 50059     },
       
 50060 
       
 50061     Enter(event) {
       
 50062       event.preventDefault();
       
 50063       dispatch({
       
 50064         type: MenuKeyDownEnter
       
 50065       });
       
 50066     },
       
 50067 
       
 50068     ' '(event) {
       
 50069       event.preventDefault();
       
 50070       dispatch({
       
 50071         type: MenuKeyDownSpaceButton
       
 50072       });
       
 50073     }
       
 50074 
       
 50075   }), [dispatch, getItemNodeFromIndex]); // Action functions.
       
 50076 
       
 50077   const toggleMenu = (0,external_React_.useCallback)(() => {
       
 50078     dispatch({
       
 50079       type: FunctionToggleMenu$1
       
 50080     });
       
 50081   }, [dispatch]);
       
 50082   const closeMenu = (0,external_React_.useCallback)(() => {
       
 50083     dispatch({
       
 50084       type: FunctionCloseMenu$1
       
 50085     });
       
 50086   }, [dispatch]);
       
 50087   const openMenu = (0,external_React_.useCallback)(() => {
       
 50088     dispatch({
       
 50089       type: FunctionOpenMenu$1
       
 50090     });
       
 50091   }, [dispatch]);
       
 50092   const setHighlightedIndex = (0,external_React_.useCallback)(newHighlightedIndex => {
       
 50093     dispatch({
       
 50094       type: FunctionSetHighlightedIndex$1,
       
 50095       highlightedIndex: newHighlightedIndex
       
 50096     });
       
 50097   }, [dispatch]);
       
 50098   const selectItem = (0,external_React_.useCallback)(newSelectedItem => {
       
 50099     dispatch({
       
 50100       type: FunctionSelectItem$1,
       
 50101       selectedItem: newSelectedItem
       
 50102     });
       
 50103   }, [dispatch]);
       
 50104   const reset = (0,external_React_.useCallback)(() => {
       
 50105     dispatch({
       
 50106       type: FunctionReset$2
       
 50107     });
       
 50108   }, [dispatch]);
       
 50109   const setInputValue = (0,external_React_.useCallback)(newInputValue => {
       
 50110     dispatch({
       
 50111       type: FunctionSetInputValue$1,
       
 50112       inputValue: newInputValue
       
 50113     });
       
 50114   }, [dispatch]); // Getter functions.
       
 50115 
       
 50116   const getLabelProps = (0,external_React_.useCallback)(labelProps => ({
       
 50117     id: elementIds.labelId,
       
 50118     htmlFor: elementIds.toggleButtonId,
       
 50119     ...labelProps
       
 50120   }), [elementIds]);
       
 50121   const getMenuProps = (0,external_React_.useCallback)(function (_temp, _temp2) {
       
 50122     let {
       
 50123       onMouseLeave,
       
 50124       refKey = 'ref',
       
 50125       onKeyDown,
       
 50126       onBlur,
       
 50127       ref,
       
 50128       ...rest
       
 50129     } = _temp === void 0 ? {} : _temp;
       
 50130     let {
       
 50131       suppressRefError = false
       
 50132     } = _temp2 === void 0 ? {} : _temp2;
       
 50133     const latestState = latest.current.state;
       
 50134 
       
 50135     const menuHandleKeyDown = event => {
       
 50136       const key = normalizeArrowKey(event);
       
 50137 
       
 50138       if (key && menuKeyDownHandlers[key]) {
       
 50139         menuKeyDownHandlers[key](event);
       
 50140       } else if (isAcceptedCharacterKey(key)) {
       
 50141         dispatch({
       
 50142           type: MenuKeyDownCharacter,
       
 50143           key,
       
 50144           getItemNodeFromIndex
       
 50145         });
       
 50146       }
       
 50147     };
       
 50148 
       
 50149     const menuHandleBlur = () => {
       
 50150       // if the blur was a result of selection, we don't trigger this action.
       
 50151       if (shouldBlurRef.current === false) {
       
 50152         shouldBlurRef.current = true;
       
 50153         return;
       
 50154       }
       
 50155 
       
 50156       const shouldBlur = !mouseAndTouchTrackersRef.current.isMouseDown;
       
 50157       /* istanbul ignore else */
       
 50158 
       
 50159       if (shouldBlur) {
       
 50160         dispatch({
       
 50161           type: MenuBlur
       
 50162         });
       
 50163       }
       
 50164     };
       
 50165 
       
 50166     const menuHandleMouseLeave = () => {
       
 50167       dispatch({
       
 50168         type: MenuMouseLeave$1
       
 50169       });
       
 50170     };
       
 50171 
       
 50172     setGetterPropCallInfo('getMenuProps', suppressRefError, refKey, menuRef);
       
 50173     return {
       
 50174       [refKey]: handleRefs(ref, menuNode => {
       
 50175         menuRef.current = menuNode;
       
 50176       }),
       
 50177       id: elementIds.menuId,
       
 50178       role: 'listbox',
       
 50179       'aria-labelledby': elementIds.labelId,
       
 50180       tabIndex: -1,
       
 50181       ...(latestState.isOpen && latestState.highlightedIndex > -1 && {
       
 50182         'aria-activedescendant': elementIds.getItemId(latestState.highlightedIndex)
       
 50183       }),
       
 50184       onMouseLeave: callAllEventHandlers(onMouseLeave, menuHandleMouseLeave),
       
 50185       onKeyDown: callAllEventHandlers(onKeyDown, menuHandleKeyDown),
       
 50186       onBlur: callAllEventHandlers(onBlur, menuHandleBlur),
       
 50187       ...rest
       
 50188     };
       
 50189   }, [dispatch, latest, menuKeyDownHandlers, mouseAndTouchTrackersRef, setGetterPropCallInfo, elementIds, getItemNodeFromIndex]);
       
 50190   const getToggleButtonProps = (0,external_React_.useCallback)(function (_temp3, _temp4) {
       
 50191     let {
       
 50192       onClick,
       
 50193       onKeyDown,
       
 50194       refKey = 'ref',
       
 50195       ref,
       
 50196       ...rest
       
 50197     } = _temp3 === void 0 ? {} : _temp3;
       
 50198     let {
       
 50199       suppressRefError = false
       
 50200     } = _temp4 === void 0 ? {} : _temp4;
       
 50201 
       
 50202     const toggleButtonHandleClick = () => {
       
 50203       dispatch({
       
 50204         type: ToggleButtonClick$1
       
 50205       });
       
 50206     };
       
 50207 
       
 50208     const toggleButtonHandleKeyDown = event => {
       
 50209       const key = normalizeArrowKey(event);
       
 50210 
       
 50211       if (key && toggleButtonKeyDownHandlers[key]) {
       
 50212         toggleButtonKeyDownHandlers[key](event);
       
 50213       } else if (isAcceptedCharacterKey(key)) {
       
 50214         dispatch({
       
 50215           type: ToggleButtonKeyDownCharacter,
       
 50216           key,
       
 50217           getItemNodeFromIndex
       
 50218         });
       
 50219       }
       
 50220     };
       
 50221 
       
 50222     const toggleProps = {
       
 50223       [refKey]: handleRefs(ref, toggleButtonNode => {
       
 50224         toggleButtonRef.current = toggleButtonNode;
       
 50225       }),
       
 50226       id: elementIds.toggleButtonId,
       
 50227       'aria-haspopup': 'listbox',
       
 50228       'aria-expanded': latest.current.state.isOpen,
       
 50229       'aria-labelledby': `${elementIds.labelId} ${elementIds.toggleButtonId}`,
       
 50230       ...rest
       
 50231     };
       
 50232 
       
 50233     if (!rest.disabled) {
       
 50234       toggleProps.onClick = callAllEventHandlers(onClick, toggleButtonHandleClick);
       
 50235       toggleProps.onKeyDown = callAllEventHandlers(onKeyDown, toggleButtonHandleKeyDown);
       
 50236     }
       
 50237 
       
 50238     setGetterPropCallInfo('getToggleButtonProps', suppressRefError, refKey, toggleButtonRef);
       
 50239     return toggleProps;
       
 50240   }, [dispatch, latest, toggleButtonKeyDownHandlers, setGetterPropCallInfo, elementIds, getItemNodeFromIndex]);
       
 50241   const getItemProps = (0,external_React_.useCallback)(function (_temp5) {
       
 50242     let {
       
 50243       item,
       
 50244       index,
       
 50245       onMouseMove,
       
 50246       onClick,
       
 50247       refKey = 'ref',
       
 50248       ref,
       
 50249       disabled,
       
 50250       ...rest
       
 50251     } = _temp5 === void 0 ? {} : _temp5;
       
 50252     const {
       
 50253       state: latestState,
       
 50254       props: latestProps
       
 50255     } = latest.current;
       
 50256 
       
 50257     const itemHandleMouseMove = () => {
       
 50258       if (index === latestState.highlightedIndex) {
       
 50259         return;
       
 50260       }
       
 50261 
       
 50262       shouldScrollRef.current = false;
       
 50263       dispatch({
       
 50264         type: ItemMouseMove$1,
       
 50265         index,
       
 50266         disabled
       
 50267       });
       
 50268     };
       
 50269 
       
 50270     const itemHandleClick = () => {
       
 50271       dispatch({
       
 50272         type: ItemClick$1,
       
 50273         index
       
 50274       });
       
 50275     };
       
 50276 
       
 50277     const itemIndex = getItemIndex(index, item, latestProps.items);
       
 50278 
       
 50279     if (itemIndex < 0) {
       
 50280       throw new Error('Pass either item or item index in getItemProps!');
       
 50281     }
       
 50282 
       
 50283     const itemProps = {
       
 50284       disabled,
       
 50285       role: 'option',
       
 50286       'aria-selected': `${itemIndex === latestState.highlightedIndex}`,
       
 50287       id: elementIds.getItemId(itemIndex),
       
 50288       [refKey]: handleRefs(ref, itemNode => {
       
 50289         if (itemNode) {
       
 50290           itemRefs.current[elementIds.getItemId(itemIndex)] = itemNode;
       
 50291         }
       
 50292       }),
       
 50293       ...rest
       
 50294     };
       
 50295 
       
 50296     if (!disabled) {
       
 50297       itemProps.onClick = callAllEventHandlers(onClick, itemHandleClick);
       
 50298     }
       
 50299 
       
 50300     itemProps.onMouseMove = callAllEventHandlers(onMouseMove, itemHandleMouseMove);
       
 50301     return itemProps;
       
 50302   }, [dispatch, latest, shouldScrollRef, elementIds]);
       
 50303   return {
       
 50304     // prop getters.
       
 50305     getToggleButtonProps,
       
 50306     getLabelProps,
       
 50307     getMenuProps,
       
 50308     getItemProps,
       
 50309     // actions.
       
 50310     toggleMenu,
       
 50311     openMenu,
       
 50312     closeMenu,
       
 50313     setHighlightedIndex,
       
 50314     selectItem,
       
 50315     reset,
       
 50316     setInputValue,
       
 50317     // state.
       
 50318     highlightedIndex,
       
 50319     isOpen,
       
 50320     selectedItem,
       
 50321     inputValue
       
 50322   };
       
 50323 }
       
 50324 
       
 50325 const InputKeyDownArrowDown =  false ? 0 : 0;
       
 50326 const InputKeyDownArrowUp =  false ? 0 : 1;
       
 50327 const InputKeyDownEscape =  false ? 0 : 2;
       
 50328 const InputKeyDownHome =  false ? 0 : 3;
       
 50329 const InputKeyDownEnd =  false ? 0 : 4;
       
 50330 const InputKeyDownEnter =  false ? 0 : 5;
       
 50331 const InputChange =  false ? 0 : 6;
       
 50332 const InputBlur =  false ? 0 : 7;
       
 50333 const MenuMouseLeave =  false ? 0 : 8;
       
 50334 const ItemMouseMove =  false ? 0 : 9;
       
 50335 const ItemClick =  false ? 0 : 10;
       
 50336 const ToggleButtonClick =  false ? 0 : 11;
       
 50337 const FunctionToggleMenu =  false ? 0 : 12;
       
 50338 const FunctionOpenMenu =  false ? 0 : 13;
       
 50339 const FunctionCloseMenu =  false ? 0 : 14;
       
 50340 const FunctionSetHighlightedIndex =  false ? 0 : 15;
       
 50341 const FunctionSelectItem =  false ? 0 : 16;
       
 50342 const FunctionSetInputValue =  false ? 0 : 17;
       
 50343 const FunctionReset$1 =  false ? 0 : 18;
       
 50344 const ControlledPropUpdatedSelectedItem =  false ? 0 : 19;
       
 50345 
       
 50346 var stateChangeTypes$1 = /*#__PURE__*/Object.freeze({
       
 50347   __proto__: null,
       
 50348   InputKeyDownArrowDown: InputKeyDownArrowDown,
       
 50349   InputKeyDownArrowUp: InputKeyDownArrowUp,
       
 50350   InputKeyDownEscape: InputKeyDownEscape,
       
 50351   InputKeyDownHome: InputKeyDownHome,
       
 50352   InputKeyDownEnd: InputKeyDownEnd,
       
 50353   InputKeyDownEnter: InputKeyDownEnter,
       
 50354   InputChange: InputChange,
       
 50355   InputBlur: InputBlur,
       
 50356   MenuMouseLeave: MenuMouseLeave,
       
 50357   ItemMouseMove: ItemMouseMove,
       
 50358   ItemClick: ItemClick,
       
 50359   ToggleButtonClick: ToggleButtonClick,
       
 50360   FunctionToggleMenu: FunctionToggleMenu,
       
 50361   FunctionOpenMenu: FunctionOpenMenu,
       
 50362   FunctionCloseMenu: FunctionCloseMenu,
       
 50363   FunctionSetHighlightedIndex: FunctionSetHighlightedIndex,
       
 50364   FunctionSelectItem: FunctionSelectItem,
       
 50365   FunctionSetInputValue: FunctionSetInputValue,
       
 50366   FunctionReset: FunctionReset$1,
       
 50367   ControlledPropUpdatedSelectedItem: ControlledPropUpdatedSelectedItem
       
 50368 });
       
 50369 
       
 50370 function getInitialState$1(props) {
       
 50371   const initialState = getInitialState$2(props);
       
 50372   const {
       
 50373     selectedItem
       
 50374   } = initialState;
       
 50375   let {
       
 50376     inputValue
       
 50377   } = initialState;
       
 50378 
       
 50379   if (inputValue === '' && selectedItem && props.defaultInputValue === undefined && props.initialInputValue === undefined && props.inputValue === undefined) {
       
 50380     inputValue = props.itemToString(selectedItem);
       
 50381   }
       
 50382 
       
 50383   return { ...initialState,
       
 50384     inputValue
       
 50385   };
       
 50386 }
       
 50387 
       
 50388 const propTypes$1 = {
       
 50389   items: (prop_types_default()).array.isRequired,
       
 50390   itemToString: (prop_types_default()).func,
       
 50391   getA11yStatusMessage: (prop_types_default()).func,
       
 50392   getA11ySelectionMessage: (prop_types_default()).func,
       
 50393   circularNavigation: (prop_types_default()).bool,
       
 50394   highlightedIndex: (prop_types_default()).number,
       
 50395   defaultHighlightedIndex: (prop_types_default()).number,
       
 50396   initialHighlightedIndex: (prop_types_default()).number,
       
 50397   isOpen: (prop_types_default()).bool,
       
 50398   defaultIsOpen: (prop_types_default()).bool,
       
 50399   initialIsOpen: (prop_types_default()).bool,
       
 50400   selectedItem: (prop_types_default()).any,
       
 50401   initialSelectedItem: (prop_types_default()).any,
       
 50402   defaultSelectedItem: (prop_types_default()).any,
       
 50403   inputValue: (prop_types_default()).string,
       
 50404   defaultInputValue: (prop_types_default()).string,
       
 50405   initialInputValue: (prop_types_default()).string,
       
 50406   id: (prop_types_default()).string,
       
 50407   labelId: (prop_types_default()).string,
       
 50408   menuId: (prop_types_default()).string,
       
 50409   getItemId: (prop_types_default()).func,
       
 50410   inputId: (prop_types_default()).string,
       
 50411   toggleButtonId: (prop_types_default()).string,
       
 50412   stateReducer: (prop_types_default()).func,
       
 50413   onSelectedItemChange: (prop_types_default()).func,
       
 50414   onHighlightedIndexChange: (prop_types_default()).func,
       
 50415   onStateChange: (prop_types_default()).func,
       
 50416   onIsOpenChange: (prop_types_default()).func,
       
 50417   onInputValueChange: (prop_types_default()).func,
       
 50418   environment: prop_types_default().shape({
       
 50419     addEventListener: (prop_types_default()).func,
       
 50420     removeEventListener: (prop_types_default()).func,
       
 50421     document: prop_types_default().shape({
       
 50422       getElementById: (prop_types_default()).func,
       
 50423       activeElement: (prop_types_default()).any,
       
 50424       body: (prop_types_default()).any
       
 50425     })
       
 50426   })
       
 50427 };
       
 50428 /**
       
 50429  * The useCombobox version of useControlledReducer, which also
       
 50430  * checks if the controlled prop selectedItem changed between
       
 50431  * renders. If so, it will also update inputValue with its
       
 50432  * string equivalent. It uses the common useEnhancedReducer to
       
 50433  * compute the rest of the state.
       
 50434  *
       
 50435  * @param {Function} reducer Reducer function from downshift.
       
 50436  * @param {Object} initialState Initial state of the hook.
       
 50437  * @param {Object} props The hook props.
       
 50438  * @returns {Array} An array with the state and an action dispatcher.
       
 50439  */
       
 50440 
       
 50441 function useControlledReducer(reducer, initialState, props) {
       
 50442   const previousSelectedItemRef = (0,external_React_.useRef)();
       
 50443   const [state, dispatch] = useEnhancedReducer(reducer, initialState, props); // ToDo: if needed, make same approach as selectedItemChanged from Downshift.
       
 50444 
       
 50445   (0,external_React_.useEffect)(() => {
       
 50446     if (isControlledProp(props, 'selectedItem')) {
       
 50447       if (previousSelectedItemRef.current !== props.selectedItem) {
       
 50448         dispatch({
       
 50449           type: ControlledPropUpdatedSelectedItem,
       
 50450           inputValue: props.itemToString(props.selectedItem)
       
 50451         });
       
 50452       }
       
 50453 
       
 50454       previousSelectedItemRef.current = state.selectedItem === previousSelectedItemRef.current ? props.selectedItem : state.selectedItem;
       
 50455     }
       
 50456   });
       
 50457   return [getState(state, props), dispatch];
       
 50458 } // eslint-disable-next-line import/no-mutable-exports
       
 50459 
       
 50460 
       
 50461 let validatePropTypes$1 = downshift_esm_noop;
       
 50462 /* istanbul ignore next */
       
 50463 
       
 50464 if (false) {}
       
 50465 
       
 50466 const defaultProps$1 = { ...defaultProps$3,
       
 50467   getA11yStatusMessage: getA11yStatusMessage$1,
       
 50468   circularNavigation: true
       
 50469 };
       
 50470 
       
 50471 /* eslint-disable complexity */
       
 50472 
       
 50473 function downshiftUseComboboxReducer(state, action) {
       
 50474   const {
       
 50475     type,
       
 50476     props,
       
 50477     shiftKey
       
 50478   } = action;
       
 50479   let changes;
       
 50480 
       
 50481   switch (type) {
       
 50482     case ItemClick:
       
 50483       changes = {
       
 50484         isOpen: getDefaultValue$1(props, 'isOpen'),
       
 50485         highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
       
 50486         selectedItem: props.items[action.index],
       
 50487         inputValue: props.itemToString(props.items[action.index])
       
 50488       };
       
 50489       break;
       
 50490 
       
 50491     case InputKeyDownArrowDown:
       
 50492       if (state.isOpen) {
       
 50493         changes = {
       
 50494           highlightedIndex: getNextWrappingIndex(shiftKey ? 5 : 1, state.highlightedIndex, props.items.length, action.getItemNodeFromIndex, props.circularNavigation)
       
 50495         };
       
 50496       } else {
       
 50497         changes = {
       
 50498           highlightedIndex: getHighlightedIndexOnOpen(props, state, 1, action.getItemNodeFromIndex),
       
 50499           isOpen: props.items.length >= 0
       
 50500         };
       
 50501       }
       
 50502 
       
 50503       break;
       
 50504 
       
 50505     case InputKeyDownArrowUp:
       
 50506       if (state.isOpen) {
       
 50507         changes = {
       
 50508           highlightedIndex: getNextWrappingIndex(shiftKey ? -5 : -1, state.highlightedIndex, props.items.length, action.getItemNodeFromIndex, props.circularNavigation)
       
 50509         };
       
 50510       } else {
       
 50511         changes = {
       
 50512           highlightedIndex: getHighlightedIndexOnOpen(props, state, -1, action.getItemNodeFromIndex),
       
 50513           isOpen: props.items.length >= 0
       
 50514         };
       
 50515       }
       
 50516 
       
 50517       break;
       
 50518 
       
 50519     case InputKeyDownEnter:
       
 50520       changes = { ...(state.isOpen && state.highlightedIndex >= 0 && {
       
 50521           selectedItem: props.items[state.highlightedIndex],
       
 50522           isOpen: getDefaultValue$1(props, 'isOpen'),
       
 50523           highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
       
 50524           inputValue: props.itemToString(props.items[state.highlightedIndex])
       
 50525         })
       
 50526       };
       
 50527       break;
       
 50528 
       
 50529     case InputKeyDownEscape:
       
 50530       changes = {
       
 50531         isOpen: false,
       
 50532         highlightedIndex: -1,
       
 50533         ...(!state.isOpen && {
       
 50534           selectedItem: null,
       
 50535           inputValue: ''
       
 50536         })
       
 50537       };
       
 50538       break;
       
 50539 
       
 50540     case InputKeyDownHome:
       
 50541       changes = {
       
 50542         highlightedIndex: getNextNonDisabledIndex(1, 0, props.items.length, action.getItemNodeFromIndex, false)
       
 50543       };
       
 50544       break;
       
 50545 
       
 50546     case InputKeyDownEnd:
       
 50547       changes = {
       
 50548         highlightedIndex: getNextNonDisabledIndex(-1, props.items.length - 1, props.items.length, action.getItemNodeFromIndex, false)
       
 50549       };
       
 50550       break;
       
 50551 
       
 50552     case InputBlur:
       
 50553       changes = {
       
 50554         isOpen: false,
       
 50555         highlightedIndex: -1,
       
 50556         ...(state.highlightedIndex >= 0 && action.selectItem && {
       
 50557           selectedItem: props.items[state.highlightedIndex],
       
 50558           inputValue: props.itemToString(props.items[state.highlightedIndex])
       
 50559         })
       
 50560       };
       
 50561       break;
       
 50562 
       
 50563     case InputChange:
       
 50564       changes = {
       
 50565         isOpen: true,
       
 50566         highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
       
 50567         inputValue: action.inputValue
       
 50568       };
       
 50569       break;
       
 50570 
       
 50571     case FunctionSelectItem:
       
 50572       changes = {
       
 50573         selectedItem: action.selectedItem,
       
 50574         inputValue: props.itemToString(action.selectedItem)
       
 50575       };
       
 50576       break;
       
 50577 
       
 50578     case ControlledPropUpdatedSelectedItem:
       
 50579       changes = {
       
 50580         inputValue: action.inputValue
       
 50581       };
       
 50582       break;
       
 50583 
       
 50584     default:
       
 50585       return downshiftCommonReducer(state, action, stateChangeTypes$1);
       
 50586   }
       
 50587 
       
 50588   return { ...state,
       
 50589     ...changes
       
 50590   };
       
 50591 }
       
 50592 /* eslint-enable complexity */
       
 50593 
       
 50594 /* eslint-disable max-statements */
       
 50595 useCombobox.stateChangeTypes = stateChangeTypes$1;
       
 50596 
       
 50597 function useCombobox(userProps) {
       
 50598   if (userProps === void 0) {
       
 50599     userProps = {};
       
 50600   }
       
 50601 
       
 50602   validatePropTypes$1(userProps, useCombobox); // Props defaults and destructuring.
       
 50603 
       
 50604   const props = { ...defaultProps$1,
       
 50605     ...userProps
       
 50606   };
       
 50607   const {
       
 50608     initialIsOpen,
       
 50609     defaultIsOpen,
       
 50610     items,
       
 50611     scrollIntoView,
       
 50612     environment,
       
 50613     getA11yStatusMessage,
       
 50614     getA11ySelectionMessage,
       
 50615     itemToString
       
 50616   } = props; // Initial state depending on controlled props.
       
 50617 
       
 50618   const initialState = getInitialState$1(props);
       
 50619   const [state, dispatch] = useControlledReducer(downshiftUseComboboxReducer, initialState, props);
       
 50620   const {
       
 50621     isOpen,
       
 50622     highlightedIndex,
       
 50623     selectedItem,
       
 50624     inputValue
       
 50625   } = state; // Element refs.
       
 50626 
       
 50627   const menuRef = (0,external_React_.useRef)(null);
       
 50628   const itemRefs = (0,external_React_.useRef)({});
       
 50629   const inputRef = (0,external_React_.useRef)(null);
       
 50630   const toggleButtonRef = (0,external_React_.useRef)(null);
       
 50631   const comboboxRef = (0,external_React_.useRef)(null);
       
 50632   const isInitialMountRef = (0,external_React_.useRef)(true); // prevent id re-generation between renders.
       
 50633 
       
 50634   const elementIds = useElementIds(props); // used to keep track of how many items we had on previous cycle.
       
 50635 
       
 50636   const previousResultCountRef = (0,external_React_.useRef)(); // utility callback to get item element.
       
 50637 
       
 50638   const latest = downshift_esm_useLatestRef({
       
 50639     state,
       
 50640     props
       
 50641   });
       
 50642   const getItemNodeFromIndex = (0,external_React_.useCallback)(index => itemRefs.current[elementIds.getItemId(index)], [elementIds]); // Effects.
       
 50643   // Sets a11y status message on changes in state.
       
 50644 
       
 50645   useA11yMessageSetter(getA11yStatusMessage, [isOpen, highlightedIndex, inputValue, items], {
       
 50646     isInitialMount: isInitialMountRef.current,
       
 50647     previousResultCount: previousResultCountRef.current,
       
 50648     items,
       
 50649     environment,
       
 50650     itemToString,
       
 50651     ...state
       
 50652   }); // Sets a11y status message on changes in selectedItem.
       
 50653 
       
 50654   useA11yMessageSetter(getA11ySelectionMessage, [selectedItem], {
       
 50655     isInitialMount: isInitialMountRef.current,
       
 50656     previousResultCount: previousResultCountRef.current,
       
 50657     items,
       
 50658     environment,
       
 50659     itemToString,
       
 50660     ...state
       
 50661   }); // Scroll on highlighted item if change comes from keyboard.
       
 50662 
       
 50663   const shouldScrollRef = useScrollIntoView({
       
 50664     menuElement: menuRef.current,
       
 50665     highlightedIndex,
       
 50666     isOpen,
       
 50667     itemRefs,
       
 50668     scrollIntoView,
       
 50669     getItemNodeFromIndex
       
 50670   });
       
 50671   useControlPropsValidator({
       
 50672     isInitialMount: isInitialMountRef.current,
       
 50673     props,
       
 50674     state
       
 50675   }); // Focus the input on first render if required.
       
 50676 
       
 50677   (0,external_React_.useEffect)(() => {
       
 50678     const focusOnOpen = initialIsOpen || defaultIsOpen || isOpen;
       
 50679 
       
 50680     if (focusOnOpen && inputRef.current) {
       
 50681       inputRef.current.focus();
       
 50682     } // eslint-disable-next-line react-hooks/exhaustive-deps
       
 50683 
       
 50684   }, []);
       
 50685   (0,external_React_.useEffect)(() => {
       
 50686     if (isInitialMountRef.current) {
       
 50687       return;
       
 50688     }
       
 50689 
       
 50690     previousResultCountRef.current = items.length;
       
 50691   }); // Add mouse/touch events to document.
       
 50692 
       
 50693   const mouseAndTouchTrackersRef = useMouseAndTouchTracker(isOpen, [comboboxRef, menuRef, toggleButtonRef], environment, () => {
       
 50694     dispatch({
       
 50695       type: InputBlur,
       
 50696       selectItem: false
       
 50697     });
       
 50698   });
       
 50699   const setGetterPropCallInfo = useGetterPropsCalledChecker('getInputProps', 'getComboboxProps', 'getMenuProps'); // Make initial ref false.
       
 50700 
       
 50701   (0,external_React_.useEffect)(() => {
       
 50702     isInitialMountRef.current = false;
       
 50703   }, []); // Reset itemRefs on close.
       
 50704 
       
 50705   (0,external_React_.useEffect)(() => {
       
 50706     if (!isOpen) {
       
 50707       itemRefs.current = {};
       
 50708     }
       
 50709   }, [isOpen]);
       
 50710   /* Event handler functions */
       
 50711 
       
 50712   const inputKeyDownHandlers = (0,external_React_.useMemo)(() => ({
       
 50713     ArrowDown(event) {
       
 50714       event.preventDefault();
       
 50715       dispatch({
       
 50716         type: InputKeyDownArrowDown,
       
 50717         shiftKey: event.shiftKey,
       
 50718         getItemNodeFromIndex
       
 50719       });
       
 50720     },
       
 50721 
       
 50722     ArrowUp(event) {
       
 50723       event.preventDefault();
       
 50724       dispatch({
       
 50725         type: InputKeyDownArrowUp,
       
 50726         shiftKey: event.shiftKey,
       
 50727         getItemNodeFromIndex
       
 50728       });
       
 50729     },
       
 50730 
       
 50731     Home(event) {
       
 50732       if (!latest.current.state.isOpen) {
       
 50733         return;
       
 50734       }
       
 50735 
       
 50736       event.preventDefault();
       
 50737       dispatch({
       
 50738         type: InputKeyDownHome,
       
 50739         getItemNodeFromIndex
       
 50740       });
       
 50741     },
       
 50742 
       
 50743     End(event) {
       
 50744       if (!latest.current.state.isOpen) {
       
 50745         return;
       
 50746       }
       
 50747 
       
 50748       event.preventDefault();
       
 50749       dispatch({
       
 50750         type: InputKeyDownEnd,
       
 50751         getItemNodeFromIndex
       
 50752       });
       
 50753     },
       
 50754 
       
 50755     Escape(event) {
       
 50756       const latestState = latest.current.state;
       
 50757 
       
 50758       if (latestState.isOpen || latestState.inputValue || latestState.selectedItem || latestState.highlightedIndex > -1) {
       
 50759         event.preventDefault();
       
 50760         dispatch({
       
 50761           type: InputKeyDownEscape
       
 50762         });
       
 50763       }
       
 50764     },
       
 50765 
       
 50766     Enter(event) {
       
 50767       const latestState = latest.current.state; // if closed or no highlighted index, do nothing.
       
 50768 
       
 50769       if (!latestState.isOpen || latestState.highlightedIndex < 0 || event.which === 229 // if IME composing, wait for next Enter keydown event.
       
 50770       ) {
       
 50771         return;
       
 50772       }
       
 50773 
       
 50774       event.preventDefault();
       
 50775       dispatch({
       
 50776         type: InputKeyDownEnter,
       
 50777         getItemNodeFromIndex
       
 50778       });
       
 50779     }
       
 50780 
       
 50781   }), [dispatch, latest, getItemNodeFromIndex]); // Getter props.
       
 50782 
       
 50783   const getLabelProps = (0,external_React_.useCallback)(labelProps => ({
       
 50784     id: elementIds.labelId,
       
 50785     htmlFor: elementIds.inputId,
       
 50786     ...labelProps
       
 50787   }), [elementIds]);
       
 50788   const getMenuProps = (0,external_React_.useCallback)(function (_temp, _temp2) {
       
 50789     let {
       
 50790       onMouseLeave,
       
 50791       refKey = 'ref',
       
 50792       ref,
       
 50793       ...rest
       
 50794     } = _temp === void 0 ? {} : _temp;
       
 50795     let {
       
 50796       suppressRefError = false
       
 50797     } = _temp2 === void 0 ? {} : _temp2;
       
 50798     setGetterPropCallInfo('getMenuProps', suppressRefError, refKey, menuRef);
       
 50799     return {
       
 50800       [refKey]: handleRefs(ref, menuNode => {
       
 50801         menuRef.current = menuNode;
       
 50802       }),
       
 50803       id: elementIds.menuId,
       
 50804       role: 'listbox',
       
 50805       'aria-labelledby': elementIds.labelId,
       
 50806       onMouseLeave: callAllEventHandlers(onMouseLeave, () => {
       
 50807         dispatch({
       
 50808           type: MenuMouseLeave
       
 50809         });
       
 50810       }),
       
 50811       ...rest
       
 50812     };
       
 50813   }, [dispatch, setGetterPropCallInfo, elementIds]);
       
 50814   const getItemProps = (0,external_React_.useCallback)(function (_temp3) {
       
 50815     let {
       
 50816       item,
       
 50817       index,
       
 50818       refKey = 'ref',
       
 50819       ref,
       
 50820       onMouseMove,
       
 50821       onMouseDown,
       
 50822       onClick,
       
 50823       onPress,
       
 50824       disabled,
       
 50825       ...rest
       
 50826     } = _temp3 === void 0 ? {} : _temp3;
       
 50827     const {
       
 50828       props: latestProps,
       
 50829       state: latestState
       
 50830     } = latest.current;
       
 50831     const itemIndex = getItemIndex(index, item, latestProps.items);
       
 50832 
       
 50833     if (itemIndex < 0) {
       
 50834       throw new Error('Pass either item or item index in getItemProps!');
       
 50835     }
       
 50836 
       
 50837     const onSelectKey = 'onClick';
       
 50838     const customClickHandler = onClick;
       
 50839 
       
 50840     const itemHandleMouseMove = () => {
       
 50841       if (index === latestState.highlightedIndex) {
       
 50842         return;
       
 50843       }
       
 50844 
       
 50845       shouldScrollRef.current = false;
       
 50846       dispatch({
       
 50847         type: ItemMouseMove,
       
 50848         index,
       
 50849         disabled
       
 50850       });
       
 50851     };
       
 50852 
       
 50853     const itemHandleClick = () => {
       
 50854       dispatch({
       
 50855         type: ItemClick,
       
 50856         index
       
 50857       });
       
 50858     };
       
 50859 
       
 50860     const itemHandleMouseDown = e => e.preventDefault();
       
 50861 
       
 50862     return {
       
 50863       [refKey]: handleRefs(ref, itemNode => {
       
 50864         if (itemNode) {
       
 50865           itemRefs.current[elementIds.getItemId(itemIndex)] = itemNode;
       
 50866         }
       
 50867       }),
       
 50868       disabled,
       
 50869       role: 'option',
       
 50870       'aria-selected': `${itemIndex === latestState.highlightedIndex}`,
       
 50871       id: elementIds.getItemId(itemIndex),
       
 50872       ...(!disabled && {
       
 50873         [onSelectKey]: callAllEventHandlers(customClickHandler, itemHandleClick)
       
 50874       }),
       
 50875       onMouseMove: callAllEventHandlers(onMouseMove, itemHandleMouseMove),
       
 50876       onMouseDown: callAllEventHandlers(onMouseDown, itemHandleMouseDown),
       
 50877       ...rest
       
 50878     };
       
 50879   }, [dispatch, latest, shouldScrollRef, elementIds]);
       
 50880   const getToggleButtonProps = (0,external_React_.useCallback)(function (_temp4) {
       
 50881     let {
       
 50882       onClick,
       
 50883       onPress,
       
 50884       refKey = 'ref',
       
 50885       ref,
       
 50886       ...rest
       
 50887     } = _temp4 === void 0 ? {} : _temp4;
       
 50888 
       
 50889     const toggleButtonHandleClick = () => {
       
 50890       dispatch({
       
 50891         type: ToggleButtonClick
       
 50892       });
       
 50893 
       
 50894       if (!latest.current.state.isOpen && inputRef.current) {
       
 50895         inputRef.current.focus();
       
 50896       }
       
 50897     };
       
 50898 
       
 50899     return {
       
 50900       [refKey]: handleRefs(ref, toggleButtonNode => {
       
 50901         toggleButtonRef.current = toggleButtonNode;
       
 50902       }),
       
 50903       id: elementIds.toggleButtonId,
       
 50904       tabIndex: -1,
       
 50905       ...(!rest.disabled && { ...({
       
 50906           onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
       
 50907         })
       
 50908       }),
       
 50909       ...rest
       
 50910     };
       
 50911   }, [dispatch, latest, elementIds]);
       
 50912   const getInputProps = (0,external_React_.useCallback)(function (_temp5, _temp6) {
       
 50913     let {
       
 50914       onKeyDown,
       
 50915       onChange,
       
 50916       onInput,
       
 50917       onBlur,
       
 50918       onChangeText,
       
 50919       refKey = 'ref',
       
 50920       ref,
       
 50921       ...rest
       
 50922     } = _temp5 === void 0 ? {} : _temp5;
       
 50923     let {
       
 50924       suppressRefError = false
       
 50925     } = _temp6 === void 0 ? {} : _temp6;
       
 50926     setGetterPropCallInfo('getInputProps', suppressRefError, refKey, inputRef);
       
 50927     const latestState = latest.current.state;
       
 50928 
       
 50929     const inputHandleKeyDown = event => {
       
 50930       const key = normalizeArrowKey(event);
       
 50931 
       
 50932       if (key && inputKeyDownHandlers[key]) {
       
 50933         inputKeyDownHandlers[key](event);
       
 50934       }
       
 50935     };
       
 50936 
       
 50937     const inputHandleChange = event => {
       
 50938       dispatch({
       
 50939         type: InputChange,
       
 50940         inputValue: event.target.value
       
 50941       });
       
 50942     };
       
 50943 
       
 50944     const inputHandleBlur = () => {
       
 50945       /* istanbul ignore else */
       
 50946       if (latestState.isOpen && !mouseAndTouchTrackersRef.current.isMouseDown) {
       
 50947         dispatch({
       
 50948           type: InputBlur,
       
 50949           selectItem: true
       
 50950         });
       
 50951       }
       
 50952     };
       
 50953     /* istanbul ignore next (preact) */
       
 50954 
       
 50955 
       
 50956     const onChangeKey = 'onChange';
       
 50957     let eventHandlers = {};
       
 50958 
       
 50959     if (!rest.disabled) {
       
 50960       eventHandlers = {
       
 50961         [onChangeKey]: callAllEventHandlers(onChange, onInput, inputHandleChange),
       
 50962         onKeyDown: callAllEventHandlers(onKeyDown, inputHandleKeyDown),
       
 50963         onBlur: callAllEventHandlers(onBlur, inputHandleBlur)
       
 50964       };
       
 50965     }
       
 50966 
       
 50967     return {
       
 50968       [refKey]: handleRefs(ref, inputNode => {
       
 50969         inputRef.current = inputNode;
       
 50970       }),
       
 50971       id: elementIds.inputId,
       
 50972       'aria-autocomplete': 'list',
       
 50973       'aria-controls': elementIds.menuId,
       
 50974       ...(latestState.isOpen && latestState.highlightedIndex > -1 && {
       
 50975         'aria-activedescendant': elementIds.getItemId(latestState.highlightedIndex)
       
 50976       }),
       
 50977       'aria-labelledby': elementIds.labelId,
       
 50978       // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
       
 50979       // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
       
 50980       autoComplete: 'off',
       
 50981       value: latestState.inputValue,
       
 50982       ...eventHandlers,
       
 50983       ...rest
       
 50984     };
       
 50985   }, [dispatch, inputKeyDownHandlers, latest, mouseAndTouchTrackersRef, setGetterPropCallInfo, elementIds]);
       
 50986   const getComboboxProps = (0,external_React_.useCallback)(function (_temp7, _temp8) {
       
 50987     let {
       
 50988       refKey = 'ref',
       
 50989       ref,
       
 50990       ...rest
       
 50991     } = _temp7 === void 0 ? {} : _temp7;
       
 50992     let {
       
 50993       suppressRefError = false
       
 50994     } = _temp8 === void 0 ? {} : _temp8;
       
 50995     setGetterPropCallInfo('getComboboxProps', suppressRefError, refKey, comboboxRef);
       
 50996     return {
       
 50997       [refKey]: handleRefs(ref, comboboxNode => {
       
 50998         comboboxRef.current = comboboxNode;
       
 50999       }),
       
 51000       role: 'combobox',
       
 51001       'aria-haspopup': 'listbox',
       
 51002       'aria-owns': elementIds.menuId,
       
 51003       'aria-expanded': latest.current.state.isOpen,
       
 51004       ...rest
       
 51005     };
       
 51006   }, [latest, setGetterPropCallInfo, elementIds]); // returns
       
 51007 
       
 51008   const toggleMenu = (0,external_React_.useCallback)(() => {
       
 51009     dispatch({
       
 51010       type: FunctionToggleMenu
       
 51011     });
       
 51012   }, [dispatch]);
       
 51013   const closeMenu = (0,external_React_.useCallback)(() => {
       
 51014     dispatch({
       
 51015       type: FunctionCloseMenu
       
 51016     });
       
 51017   }, [dispatch]);
       
 51018   const openMenu = (0,external_React_.useCallback)(() => {
       
 51019     dispatch({
       
 51020       type: FunctionOpenMenu
       
 51021     });
       
 51022   }, [dispatch]);
       
 51023   const setHighlightedIndex = (0,external_React_.useCallback)(newHighlightedIndex => {
       
 51024     dispatch({
       
 51025       type: FunctionSetHighlightedIndex,
       
 51026       highlightedIndex: newHighlightedIndex
       
 51027     });
       
 51028   }, [dispatch]);
       
 51029   const selectItem = (0,external_React_.useCallback)(newSelectedItem => {
       
 51030     dispatch({
       
 51031       type: FunctionSelectItem,
       
 51032       selectedItem: newSelectedItem
       
 51033     });
       
 51034   }, [dispatch]);
       
 51035   const setInputValue = (0,external_React_.useCallback)(newInputValue => {
       
 51036     dispatch({
       
 51037       type: FunctionSetInputValue,
       
 51038       inputValue: newInputValue
       
 51039     });
       
 51040   }, [dispatch]);
       
 51041   const reset = (0,external_React_.useCallback)(() => {
       
 51042     dispatch({
       
 51043       type: FunctionReset$1
       
 51044     });
       
 51045   }, [dispatch]);
       
 51046   return {
       
 51047     // prop getters.
       
 51048     getItemProps,
       
 51049     getLabelProps,
       
 51050     getMenuProps,
       
 51051     getInputProps,
       
 51052     getComboboxProps,
       
 51053     getToggleButtonProps,
       
 51054     // actions.
       
 51055     toggleMenu,
       
 51056     openMenu,
       
 51057     closeMenu,
       
 51058     setHighlightedIndex,
       
 51059     setInputValue,
       
 51060     selectItem,
       
 51061     reset,
       
 51062     // state.
       
 51063     highlightedIndex,
       
 51064     isOpen,
       
 51065     selectedItem,
       
 51066     inputValue
       
 51067   };
       
 51068 }
       
 51069 
       
 51070 const defaultStateValues = {
       
 51071   activeIndex: -1,
       
 51072   selectedItems: []
       
 51073 };
       
 51074 /**
       
 51075  * Returns the initial value for a state key in the following order:
       
 51076  * 1. controlled prop, 2. initial prop, 3. default prop, 4. default
       
 51077  * value from Downshift.
       
 51078  *
       
 51079  * @param {Object} props Props passed to the hook.
       
 51080  * @param {string} propKey Props key to generate the value for.
       
 51081  * @returns {any} The initial value for that prop.
       
 51082  */
       
 51083 
       
 51084 function getInitialValue(props, propKey) {
       
 51085   return getInitialValue$1(props, propKey, defaultStateValues);
       
 51086 }
       
 51087 /**
       
 51088  * Returns the default value for a state key in the following order:
       
 51089  * 1. controlled prop, 2. default prop, 3. default value from Downshift.
       
 51090  *
       
 51091  * @param {Object} props Props passed to the hook.
       
 51092  * @param {string} propKey Props key to generate the value for.
       
 51093  * @returns {any} The initial value for that prop.
       
 51094  */
       
 51095 
       
 51096 
       
 51097 function getDefaultValue(props, propKey) {
       
 51098   return getDefaultValue$1(props, propKey, defaultStateValues);
       
 51099 }
       
 51100 /**
       
 51101  * Gets the initial state based on the provided props. It uses initial, default
       
 51102  * and controlled props related to state in order to compute the initial value.
       
 51103  *
       
 51104  * @param {Object} props Props passed to the hook.
       
 51105  * @returns {Object} The initial state.
       
 51106  */
       
 51107 
       
 51108 
       
 51109 function getInitialState(props) {
       
 51110   const activeIndex = getInitialValue(props, 'activeIndex');
       
 51111   const selectedItems = getInitialValue(props, 'selectedItems');
       
 51112   return {
       
 51113     activeIndex,
       
 51114     selectedItems
       
 51115   };
       
 51116 }
       
 51117 /**
       
 51118  * Returns true if dropdown keydown operation is permitted. Should not be
       
 51119  * allowed on keydown with modifier keys (ctrl, alt, shift, meta), on
       
 51120  * input element with text content that is either highlighted or selection
       
 51121  * cursor is not at the starting position.
       
 51122  *
       
 51123  * @param {KeyboardEvent} event The event from keydown.
       
 51124  * @returns {boolean} Whether the operation is allowed.
       
 51125  */
       
 51126 
       
 51127 
       
 51128 function isKeyDownOperationPermitted(event) {
       
 51129   if (event.shiftKey || event.metaKey || event.ctrlKey || event.altKey) {
       
 51130     return false;
       
 51131   }
       
 51132 
       
 51133   const element = event.target;
       
 51134 
       
 51135   if (element instanceof HTMLInputElement && // if element is a text input
       
 51136   element.value !== '' && ( // and we have text in it
       
 51137   // and cursor is either not at the start or is currently highlighting text.
       
 51138   element.selectionStart !== 0 || element.selectionEnd !== 0)) {
       
 51139     return false;
       
 51140   }
       
 51141 
       
 51142   return true;
       
 51143 }
       
 51144 /**
       
 51145  * Returns a message to be added to aria-live region when item is removed.
       
 51146  *
       
 51147  * @param {Object} selectionParameters Parameters required to build the message.
       
 51148  * @returns {string} The a11y message.
       
 51149  */
       
 51150 
       
 51151 
       
 51152 function getA11yRemovalMessage(selectionParameters) {
       
 51153   const {
       
 51154     removedSelectedItem,
       
 51155     itemToString: itemToStringLocal
       
 51156   } = selectionParameters;
       
 51157   return `${itemToStringLocal(removedSelectedItem)} has been removed.`;
       
 51158 }
       
 51159 
       
 51160 const propTypes = {
       
 51161   selectedItems: (prop_types_default()).array,
       
 51162   initialSelectedItems: (prop_types_default()).array,
       
 51163   defaultSelectedItems: (prop_types_default()).array,
       
 51164   itemToString: (prop_types_default()).func,
       
 51165   getA11yRemovalMessage: (prop_types_default()).func,
       
 51166   stateReducer: (prop_types_default()).func,
       
 51167   activeIndex: (prop_types_default()).number,
       
 51168   initialActiveIndex: (prop_types_default()).number,
       
 51169   defaultActiveIndex: (prop_types_default()).number,
       
 51170   onActiveIndexChange: (prop_types_default()).func,
       
 51171   onSelectedItemsChange: (prop_types_default()).func,
       
 51172   keyNavigationNext: (prop_types_default()).string,
       
 51173   keyNavigationPrevious: (prop_types_default()).string,
       
 51174   environment: prop_types_default().shape({
       
 51175     addEventListener: (prop_types_default()).func,
       
 51176     removeEventListener: (prop_types_default()).func,
       
 51177     document: prop_types_default().shape({
       
 51178       getElementById: (prop_types_default()).func,
       
 51179       activeElement: (prop_types_default()).any,
       
 51180       body: (prop_types_default()).any
       
 51181     })
       
 51182   })
       
 51183 };
       
 51184 const defaultProps = {
       
 51185   itemToString: defaultProps$3.itemToString,
       
 51186   stateReducer: defaultProps$3.stateReducer,
       
 51187   environment: defaultProps$3.environment,
       
 51188   getA11yRemovalMessage,
       
 51189   keyNavigationNext: 'ArrowRight',
       
 51190   keyNavigationPrevious: 'ArrowLeft'
       
 51191 }; // eslint-disable-next-line import/no-mutable-exports
       
 51192 
       
 51193 let validatePropTypes = downshift_esm_noop;
       
 51194 /* istanbul ignore next */
       
 51195 
       
 51196 if (false) {}
       
 51197 
       
 51198 const SelectedItemClick =  false ? 0 : 0;
       
 51199 const SelectedItemKeyDownDelete =  false ? 0 : 1;
       
 51200 const SelectedItemKeyDownBackspace =  false ? 0 : 2;
       
 51201 const SelectedItemKeyDownNavigationNext =  false ? 0 : 3;
       
 51202 const SelectedItemKeyDownNavigationPrevious =  false ? 0 : 4;
       
 51203 const DropdownKeyDownNavigationPrevious =  false ? 0 : 5;
       
 51204 const DropdownKeyDownBackspace =  false ? 0 : 6;
       
 51205 const DropdownClick =  false ? 0 : 7;
       
 51206 const FunctionAddSelectedItem =  false ? 0 : 8;
       
 51207 const FunctionRemoveSelectedItem =  false ? 0 : 9;
       
 51208 const FunctionSetSelectedItems =  false ? 0 : 10;
       
 51209 const FunctionSetActiveIndex =  false ? 0 : 11;
       
 51210 const FunctionReset =  false ? 0 : 12;
       
 51211 
       
 51212 var stateChangeTypes = /*#__PURE__*/Object.freeze({
       
 51213   __proto__: null,
       
 51214   SelectedItemClick: SelectedItemClick,
       
 51215   SelectedItemKeyDownDelete: SelectedItemKeyDownDelete,
       
 51216   SelectedItemKeyDownBackspace: SelectedItemKeyDownBackspace,
       
 51217   SelectedItemKeyDownNavigationNext: SelectedItemKeyDownNavigationNext,
       
 51218   SelectedItemKeyDownNavigationPrevious: SelectedItemKeyDownNavigationPrevious,
       
 51219   DropdownKeyDownNavigationPrevious: DropdownKeyDownNavigationPrevious,
       
 51220   DropdownKeyDownBackspace: DropdownKeyDownBackspace,
       
 51221   DropdownClick: DropdownClick,
       
 51222   FunctionAddSelectedItem: FunctionAddSelectedItem,
       
 51223   FunctionRemoveSelectedItem: FunctionRemoveSelectedItem,
       
 51224   FunctionSetSelectedItems: FunctionSetSelectedItems,
       
 51225   FunctionSetActiveIndex: FunctionSetActiveIndex,
       
 51226   FunctionReset: FunctionReset
       
 51227 });
       
 51228 
       
 51229 /* eslint-disable complexity */
       
 51230 
       
 51231 function downshiftMultipleSelectionReducer(state, action) {
       
 51232   const {
       
 51233     type,
       
 51234     index,
       
 51235     props,
       
 51236     selectedItem
       
 51237   } = action;
       
 51238   const {
       
 51239     activeIndex,
       
 51240     selectedItems
       
 51241   } = state;
       
 51242   let changes;
       
 51243 
       
 51244   switch (type) {
       
 51245     case SelectedItemClick:
       
 51246       changes = {
       
 51247         activeIndex: index
       
 51248       };
       
 51249       break;
       
 51250 
       
 51251     case SelectedItemKeyDownNavigationPrevious:
       
 51252       changes = {
       
 51253         activeIndex: activeIndex - 1 < 0 ? 0 : activeIndex - 1
       
 51254       };
       
 51255       break;
       
 51256 
       
 51257     case SelectedItemKeyDownNavigationNext:
       
 51258       changes = {
       
 51259         activeIndex: activeIndex + 1 >= selectedItems.length ? -1 : activeIndex + 1
       
 51260       };
       
 51261       break;
       
 51262 
       
 51263     case SelectedItemKeyDownBackspace:
       
 51264     case SelectedItemKeyDownDelete:
       
 51265       {
       
 51266         let newActiveIndex = activeIndex;
       
 51267 
       
 51268         if (selectedItems.length === 1) {
       
 51269           newActiveIndex = -1;
       
 51270         } else if (activeIndex === selectedItems.length - 1) {
       
 51271           newActiveIndex = selectedItems.length - 2;
       
 51272         }
       
 51273 
       
 51274         changes = {
       
 51275           selectedItems: [...selectedItems.slice(0, activeIndex), ...selectedItems.slice(activeIndex + 1)],
       
 51276           ...{
       
 51277             activeIndex: newActiveIndex
       
 51278           }
       
 51279         };
       
 51280         break;
       
 51281       }
       
 51282 
       
 51283     case DropdownKeyDownNavigationPrevious:
       
 51284       changes = {
       
 51285         activeIndex: selectedItems.length - 1
       
 51286       };
       
 51287       break;
       
 51288 
       
 51289     case DropdownKeyDownBackspace:
       
 51290       changes = {
       
 51291         selectedItems: selectedItems.slice(0, selectedItems.length - 1)
       
 51292       };
       
 51293       break;
       
 51294 
       
 51295     case FunctionAddSelectedItem:
       
 51296       changes = {
       
 51297         selectedItems: [...selectedItems, selectedItem]
       
 51298       };
       
 51299       break;
       
 51300 
       
 51301     case DropdownClick:
       
 51302       changes = {
       
 51303         activeIndex: -1
       
 51304       };
       
 51305       break;
       
 51306 
       
 51307     case FunctionRemoveSelectedItem:
       
 51308       {
       
 51309         let newActiveIndex = activeIndex;
       
 51310         const selectedItemIndex = selectedItems.indexOf(selectedItem);
       
 51311 
       
 51312         if (selectedItemIndex >= 0) {
       
 51313           if (selectedItems.length === 1) {
       
 51314             newActiveIndex = -1;
       
 51315           } else if (selectedItemIndex === selectedItems.length - 1) {
       
 51316             newActiveIndex = selectedItems.length - 2;
       
 51317           }
       
 51318 
       
 51319           changes = {
       
 51320             selectedItems: [...selectedItems.slice(0, selectedItemIndex), ...selectedItems.slice(selectedItemIndex + 1)],
       
 51321             activeIndex: newActiveIndex
       
 51322           };
       
 51323         }
       
 51324 
       
 51325         break;
       
 51326       }
       
 51327 
       
 51328     case FunctionSetSelectedItems:
       
 51329       {
       
 51330         const {
       
 51331           selectedItems: newSelectedItems
       
 51332         } = action;
       
 51333         changes = {
       
 51334           selectedItems: newSelectedItems
       
 51335         };
       
 51336         break;
       
 51337       }
       
 51338 
       
 51339     case FunctionSetActiveIndex:
       
 51340       {
       
 51341         const {
       
 51342           activeIndex: newActiveIndex
       
 51343         } = action;
       
 51344         changes = {
       
 51345           activeIndex: newActiveIndex
       
 51346         };
       
 51347         break;
       
 51348       }
       
 51349 
       
 51350     case FunctionReset:
       
 51351       changes = {
       
 51352         activeIndex: getDefaultValue(props, 'activeIndex'),
       
 51353         selectedItems: getDefaultValue(props, 'selectedItems')
       
 51354       };
       
 51355       break;
       
 51356 
       
 51357     default:
       
 51358       throw new Error('Reducer called without proper action type.');
       
 51359   }
       
 51360 
       
 51361   return { ...state,
       
 51362     ...changes
       
 51363   };
       
 51364 }
       
 51365 
       
 51366 useMultipleSelection.stateChangeTypes = stateChangeTypes;
       
 51367 
       
 51368 function useMultipleSelection(userProps) {
       
 51369   if (userProps === void 0) {
       
 51370     userProps = {};
       
 51371   }
       
 51372 
       
 51373   validatePropTypes(userProps, useMultipleSelection); // Props defaults and destructuring.
       
 51374 
       
 51375   const props = { ...defaultProps,
       
 51376     ...userProps
       
 51377   };
       
 51378   const {
       
 51379     getA11yRemovalMessage,
       
 51380     itemToString,
       
 51381     environment,
       
 51382     keyNavigationNext,
       
 51383     keyNavigationPrevious
       
 51384   } = props; // Reducer init.
       
 51385 
       
 51386   const [state, dispatch] = useControlledReducer$1(downshiftMultipleSelectionReducer, getInitialState(props), props);
       
 51387   const {
       
 51388     activeIndex,
       
 51389     selectedItems
       
 51390   } = state; // Refs.
       
 51391 
       
 51392   const isInitialMountRef = (0,external_React_.useRef)(true);
       
 51393   const dropdownRef = (0,external_React_.useRef)(null);
       
 51394   const previousSelectedItemsRef = (0,external_React_.useRef)(selectedItems);
       
 51395   const selectedItemRefs = (0,external_React_.useRef)();
       
 51396   selectedItemRefs.current = [];
       
 51397   const latest = downshift_esm_useLatestRef({
       
 51398     state,
       
 51399     props
       
 51400   }); // Effects.
       
 51401 
       
 51402   /* Sets a11y status message on changes in selectedItem. */
       
 51403 
       
 51404   (0,external_React_.useEffect)(() => {
       
 51405     if (isInitialMountRef.current) {
       
 51406       return;
       
 51407     }
       
 51408 
       
 51409     if (selectedItems.length < previousSelectedItemsRef.current.length) {
       
 51410       const removedSelectedItem = previousSelectedItemsRef.current.find(item => selectedItems.indexOf(item) < 0);
       
 51411       setStatus(getA11yRemovalMessage({
       
 51412         itemToString,
       
 51413         resultCount: selectedItems.length,
       
 51414         removedSelectedItem,
       
 51415         activeIndex,
       
 51416         activeSelectedItem: selectedItems[activeIndex]
       
 51417       }), environment.document);
       
 51418     }
       
 51419 
       
 51420     previousSelectedItemsRef.current = selectedItems; // eslint-disable-next-line react-hooks/exhaustive-deps
       
 51421   }, [selectedItems.length]); // Sets focus on active item.
       
 51422 
       
 51423   (0,external_React_.useEffect)(() => {
       
 51424     if (isInitialMountRef.current) {
       
 51425       return;
       
 51426     }
       
 51427 
       
 51428     if (activeIndex === -1 && dropdownRef.current) {
       
 51429       dropdownRef.current.focus();
       
 51430     } else if (selectedItemRefs.current[activeIndex]) {
       
 51431       selectedItemRefs.current[activeIndex].focus();
       
 51432     }
       
 51433   }, [activeIndex]);
       
 51434   useControlPropsValidator({
       
 51435     isInitialMount: isInitialMountRef.current,
       
 51436     props,
       
 51437     state
       
 51438   });
       
 51439   const setGetterPropCallInfo = useGetterPropsCalledChecker('getDropdownProps'); // Make initial ref false.
       
 51440 
       
 51441   (0,external_React_.useEffect)(() => {
       
 51442     isInitialMountRef.current = false;
       
 51443   }, []); // Event handler functions.
       
 51444 
       
 51445   const selectedItemKeyDownHandlers = (0,external_React_.useMemo)(() => ({
       
 51446     [keyNavigationPrevious]() {
       
 51447       dispatch({
       
 51448         type: SelectedItemKeyDownNavigationPrevious
       
 51449       });
       
 51450     },
       
 51451 
       
 51452     [keyNavigationNext]() {
       
 51453       dispatch({
       
 51454         type: SelectedItemKeyDownNavigationNext
       
 51455       });
       
 51456     },
       
 51457 
       
 51458     Delete() {
       
 51459       dispatch({
       
 51460         type: SelectedItemKeyDownDelete
       
 51461       });
       
 51462     },
       
 51463 
       
 51464     Backspace() {
       
 51465       dispatch({
       
 51466         type: SelectedItemKeyDownBackspace
       
 51467       });
       
 51468     }
       
 51469 
       
 51470   }), [dispatch, keyNavigationNext, keyNavigationPrevious]);
       
 51471   const dropdownKeyDownHandlers = (0,external_React_.useMemo)(() => ({
       
 51472     [keyNavigationPrevious](event) {
       
 51473       if (isKeyDownOperationPermitted(event)) {
       
 51474         dispatch({
       
 51475           type: DropdownKeyDownNavigationPrevious
       
 51476         });
       
 51477       }
       
 51478     },
       
 51479 
       
 51480     Backspace(event) {
       
 51481       if (isKeyDownOperationPermitted(event)) {
       
 51482         dispatch({
       
 51483           type: DropdownKeyDownBackspace
       
 51484         });
       
 51485       }
       
 51486     }
       
 51487 
       
 51488   }), [dispatch, keyNavigationPrevious]); // Getter props.
       
 51489 
       
 51490   const getSelectedItemProps = (0,external_React_.useCallback)(function (_temp) {
       
 51491     let {
       
 51492       refKey = 'ref',
       
 51493       ref,
       
 51494       onClick,
       
 51495       onKeyDown,
       
 51496       selectedItem,
       
 51497       index,
       
 51498       ...rest
       
 51499     } = _temp === void 0 ? {} : _temp;
       
 51500     const {
       
 51501       state: latestState
       
 51502     } = latest.current;
       
 51503     const itemIndex = getItemIndex(index, selectedItem, latestState.selectedItems);
       
 51504 
       
 51505     if (itemIndex < 0) {
       
 51506       throw new Error('Pass either selectedItem or index in getSelectedItemProps!');
       
 51507     }
       
 51508 
       
 51509     const selectedItemHandleClick = () => {
       
 51510       dispatch({
       
 51511         type: SelectedItemClick,
       
 51512         index
       
 51513       });
       
 51514     };
       
 51515 
       
 51516     const selectedItemHandleKeyDown = event => {
       
 51517       const key = normalizeArrowKey(event);
       
 51518 
       
 51519       if (key && selectedItemKeyDownHandlers[key]) {
       
 51520         selectedItemKeyDownHandlers[key](event);
       
 51521       }
       
 51522     };
       
 51523 
       
 51524     return {
       
 51525       [refKey]: handleRefs(ref, selectedItemNode => {
       
 51526         if (selectedItemNode) {
       
 51527           selectedItemRefs.current.push(selectedItemNode);
       
 51528         }
       
 51529       }),
       
 51530       tabIndex: index === latestState.activeIndex ? 0 : -1,
       
 51531       onClick: callAllEventHandlers(onClick, selectedItemHandleClick),
       
 51532       onKeyDown: callAllEventHandlers(onKeyDown, selectedItemHandleKeyDown),
       
 51533       ...rest
       
 51534     };
       
 51535   }, [dispatch, latest, selectedItemKeyDownHandlers]);
       
 51536   const getDropdownProps = (0,external_React_.useCallback)(function (_temp2, _temp3) {
       
 51537     let {
       
 51538       refKey = 'ref',
       
 51539       ref,
       
 51540       onKeyDown,
       
 51541       onClick,
       
 51542       preventKeyAction = false,
       
 51543       ...rest
       
 51544     } = _temp2 === void 0 ? {} : _temp2;
       
 51545     let {
       
 51546       suppressRefError = false
       
 51547     } = _temp3 === void 0 ? {} : _temp3;
       
 51548     setGetterPropCallInfo('getDropdownProps', suppressRefError, refKey, dropdownRef);
       
 51549 
       
 51550     const dropdownHandleKeyDown = event => {
       
 51551       const key = normalizeArrowKey(event);
       
 51552 
       
 51553       if (key && dropdownKeyDownHandlers[key]) {
       
 51554         dropdownKeyDownHandlers[key](event);
       
 51555       }
       
 51556     };
       
 51557 
       
 51558     const dropdownHandleClick = () => {
       
 51559       dispatch({
       
 51560         type: DropdownClick
       
 51561       });
       
 51562     };
       
 51563 
       
 51564     return {
       
 51565       [refKey]: handleRefs(ref, dropdownNode => {
       
 51566         if (dropdownNode) {
       
 51567           dropdownRef.current = dropdownNode;
       
 51568         }
       
 51569       }),
       
 51570       ...(!preventKeyAction && {
       
 51571         onKeyDown: callAllEventHandlers(onKeyDown, dropdownHandleKeyDown),
       
 51572         onClick: callAllEventHandlers(onClick, dropdownHandleClick)
       
 51573       }),
       
 51574       ...rest
       
 51575     };
       
 51576   }, [dispatch, dropdownKeyDownHandlers, setGetterPropCallInfo]); // returns
       
 51577 
       
 51578   const addSelectedItem = (0,external_React_.useCallback)(selectedItem => {
       
 51579     dispatch({
       
 51580       type: FunctionAddSelectedItem,
       
 51581       selectedItem
       
 51582     });
       
 51583   }, [dispatch]);
       
 51584   const removeSelectedItem = (0,external_React_.useCallback)(selectedItem => {
       
 51585     dispatch({
       
 51586       type: FunctionRemoveSelectedItem,
       
 51587       selectedItem
       
 51588     });
       
 51589   }, [dispatch]);
       
 51590   const setSelectedItems = (0,external_React_.useCallback)(newSelectedItems => {
       
 51591     dispatch({
       
 51592       type: FunctionSetSelectedItems,
       
 51593       selectedItems: newSelectedItems
       
 51594     });
       
 51595   }, [dispatch]);
       
 51596   const setActiveIndex = (0,external_React_.useCallback)(newActiveIndex => {
       
 51597     dispatch({
       
 51598       type: FunctionSetActiveIndex,
       
 51599       activeIndex: newActiveIndex
       
 51600     });
       
 51601   }, [dispatch]);
       
 51602   const reset = (0,external_React_.useCallback)(() => {
       
 51603     dispatch({
       
 51604       type: FunctionReset
       
 51605     });
       
 51606   }, [dispatch]);
       
 51607   return {
       
 51608     getSelectedItemProps,
       
 51609     getDropdownProps,
       
 51610     addSelectedItem,
       
 51611     removeSelectedItem,
       
 51612     setSelectedItems,
       
 51613     setActiveIndex,
       
 51614     reset,
       
 51615     selectedItems,
       
 51616     activeIndex
       
 51617   };
       
 51618 }
       
 51619 
       
 51620 
       
 51621 
       
 51622 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-select-control/index.js
       
 51623 // @ts-nocheck
       
 51624 /**
       
 51625  * External dependencies
       
 51626  */
       
 51627 
       
 51628 
       
 51629 
       
 51630 /**
       
 51631  * WordPress dependencies
       
 51632  */
       
 51633 
       
 51634 
       
 51635 
       
 51636 
       
 51637 /**
       
 51638  * Internal dependencies
       
 51639  */
       
 51640 
       
 51641 
       
 51642 
       
 51643 
       
 51644 
       
 51645 
       
 51646 
       
 51647 
       
 51648 const custom_select_control_itemToString = item => item?.name;
       
 51649 // This is needed so that in Windows, where
       
 51650 // the menu does not necessarily open on
       
 51651 // key up/down, you can still switch between
       
 51652 // options with the menu closed.
       
 51653 const custom_select_control_stateReducer = ({
       
 51654   selectedItem
       
 51655 }, {
       
 51656   type,
       
 51657   changes,
       
 51658   props: {
       
 51659     items
       
 51660   }
       
 51661 }) => {
       
 51662   switch (type) {
       
 51663     case useSelect.stateChangeTypes.ToggleButtonKeyDownArrowDown:
       
 51664       // If we already have a selected item, try to select the next one,
       
 51665       // without circular navigation. Otherwise, select the first item.
       
 51666       return {
       
 51667         selectedItem: items[selectedItem ? Math.min(items.indexOf(selectedItem) + 1, items.length - 1) : 0]
       
 51668       };
       
 51669     case useSelect.stateChangeTypes.ToggleButtonKeyDownArrowUp:
       
 51670       // If we already have a selected item, try to select the previous one,
       
 51671       // without circular navigation. Otherwise, select the last item.
       
 51672       return {
       
 51673         selectedItem: items[selectedItem ? Math.max(items.indexOf(selectedItem) - 1, 0) : items.length - 1]
       
 51674       };
       
 51675     default:
       
 51676       return changes;
       
 51677   }
       
 51678 };
       
 51679 function CustomSelectControl(props) {
       
 51680   const {
       
 51681     /** Start opting into the larger default height that will become the default size in a future version. */
       
 51682     __next40pxDefaultSize = false,
       
 51683     className,
       
 51684     hideLabelFromVision,
       
 51685     label,
       
 51686     describedBy,
       
 51687     options: items,
       
 51688     onChange: onSelectedItemChange,
       
 51689     /** @type {import('../select-control/types').SelectControlProps.size} */
       
 51690     size = 'default',
       
 51691     value: _selectedItem,
       
 51692     onMouseOver,
       
 51693     onMouseOut,
       
 51694     onFocus,
       
 51695     onBlur,
       
 51696     __experimentalShowSelectedHint = false
       
 51697   } = useDeprecated36pxDefaultSizeProp(props);
       
 51698   const {
       
 51699     getLabelProps,
       
 51700     getToggleButtonProps,
       
 51701     getMenuProps,
       
 51702     getItemProps,
       
 51703     isOpen,
       
 51704     highlightedIndex,
       
 51705     selectedItem
       
 51706   } = useSelect({
       
 51707     initialSelectedItem: items[0],
       
 51708     items,
       
 51709     itemToString: custom_select_control_itemToString,
       
 51710     onSelectedItemChange,
       
 51711     ...(typeof _selectedItem !== 'undefined' && _selectedItem !== null ? {
       
 51712       selectedItem: _selectedItem
       
 51713     } : undefined),
       
 51714     stateReducer: custom_select_control_stateReducer
       
 51715   });
       
 51716   function getDescribedBy() {
       
 51717     if (describedBy) {
       
 51718       return describedBy;
       
 51719     }
       
 51720     if (!selectedItem) {
       
 51721       return (0,external_wp_i18n_namespaceObject.__)('No selection');
       
 51722     }
       
 51723 
       
 51724     // translators: %s: The selected option.
       
 51725     return (0,external_wp_i18n_namespaceObject.sprintf)((0,external_wp_i18n_namespaceObject.__)('Currently selected: %s'), selectedItem.name);
       
 51726   }
       
 51727   let menuProps = getMenuProps({
       
 51728     className: 'components-custom-select-control__menu',
       
 51729     'aria-hidden': !isOpen
       
 51730   });
       
 51731   const onKeyDownHandler = (0,external_wp_element_namespaceObject.useCallback)(e => {
       
 51732     e.stopPropagation();
       
 51733     menuProps?.onKeyDown?.(e);
       
 51734   }, [menuProps]);
       
 51735 
       
 51736   // We need this here, because the null active descendant is not fully ARIA compliant.
       
 51737   if (menuProps['aria-activedescendant']?.startsWith('downshift-null')) {
       
 51738     const {
       
 51739       'aria-activedescendant': ariaActivedescendant,
       
 51740       ...restMenuProps
       
 51741     } = menuProps;
       
 51742     menuProps = restMenuProps;
       
 51743   }
       
 51744   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
       
 51745     className: dist_clsx('components-custom-select-control', className),
       
 51746     children: [hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
       
 51747       as: "label",
       
 51748       ...getLabelProps(),
       
 51749       children: label
       
 51750     }) :
       
 51751     /*#__PURE__*/
       
 51752     /* eslint-disable-next-line jsx-a11y/label-has-associated-control, jsx-a11y/label-has-for */
       
 51753     (0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledLabel, {
       
 51754       ...getLabelProps({
       
 51755         className: 'components-custom-select-control__label'
       
 51756       }),
       
 51757       children: label
       
 51758     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(input_base, {
       
 51759       __next40pxDefaultSize: __next40pxDefaultSize,
       
 51760       size: size,
       
 51761       suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control_chevron_down, {}),
       
 51762       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Select, {
       
 51763         onMouseOver: onMouseOver,
       
 51764         onMouseOut: onMouseOut,
       
 51765         as: "button",
       
 51766         onFocus: onFocus,
       
 51767         onBlur: onBlur,
       
 51768         selectSize: size,
       
 51769         __next40pxDefaultSize: __next40pxDefaultSize,
       
 51770         ...getToggleButtonProps({
       
 51771           // This is needed because some speech recognition software don't support `aria-labelledby`.
       
 51772           'aria-label': label,
       
 51773           'aria-labelledby': undefined,
       
 51774           className: 'components-custom-select-control__button',
       
 51775           describedBy: getDescribedBy()
       
 51776         }),
       
 51777         children: [custom_select_control_itemToString(selectedItem), __experimentalShowSelectedHint && selectedItem.__experimentalHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 51778           className: "components-custom-select-control__hint",
       
 51779           children: selectedItem.__experimentalHint
       
 51780         })]
       
 51781       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
       
 51782         className: "components-custom-select-control__menu-wrapper",
       
 51783         children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("ul", {
       
 51784           ...menuProps,
       
 51785           onKeyDown: onKeyDownHandler,
       
 51786           children: isOpen && items.map((item, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("li", {
       
 51787             ...getItemProps({
       
 51788               item,
       
 51789               index,
       
 51790               className: dist_clsx(item.className, 'components-custom-select-control__item', {
       
 51791                 'is-highlighted': index === highlightedIndex,
       
 51792                 'has-hint': !!item.__experimentalHint,
       
 51793                 'is-next-40px-default-size': __next40pxDefaultSize
       
 51794               }),
       
 51795               style: item.style
       
 51796             }),
       
 51797             children: [item.name, item.__experimentalHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 51798               className: "components-custom-select-control__item-hint",
       
 51799               children: item.__experimentalHint
       
 51800             }), item === selectedItem && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
       
 51801               icon: library_check,
       
 51802               className: "components-custom-select-control__item-icon"
       
 51803             })]
       
 51804           }, item.key))
       
 51805         })
       
 51806       })]
       
 51807     })]
 50107     })]
 51808   });
 50108   });
 51809 }
 50109 }
 51810 function StableCustomSelectControl(props) {
 50110 /* harmony default export */ const custom_select_control = (CustomSelectControl);
 51811   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomSelectControl, {
 50111 
 51812     ...props,
 50112 ;// ./node_modules/date-fns/toDate.mjs
 51813     __experimentalShowSelectedHint: false
       
 51814   });
       
 51815 }
       
 51816 
       
 51817 ;// CONCATENATED MODULE: ./node_modules/use-lilius/build/index.es.js
       
 51818 
       
 51819 
       
 51820 /**
 50113 /**
 51821  * @name toDate
 50114  * @name toDate
 51822  * @category Common Helpers
 50115  * @category Common Helpers
 51823  * @summary Convert the given argument to an instance of Date.
 50116  * @summary Convert the given argument to an instance of Date.
 51824  *
 50117  *
 51871     // TODO: Can we get rid of as?
 50164     // TODO: Can we get rid of as?
 51872     return new Date(NaN);
 50165     return new Date(NaN);
 51873   }
 50166   }
 51874 }
 50167 }
 51875 
 50168 
       
 50169 // Fallback for modularized imports:
       
 50170 /* harmony default export */ const date_fns_toDate = ((/* unused pure expression or super */ null && (toDate)));
       
 50171 
       
 50172 ;// ./node_modules/date-fns/startOfDay.mjs
       
 50173 
       
 50174 
       
 50175 /**
       
 50176  * @name startOfDay
       
 50177  * @category Day Helpers
       
 50178  * @summary Return the start of a day for the given date.
       
 50179  *
       
 50180  * @description
       
 50181  * Return the start of a day for the given date.
       
 50182  * The result will be in the local timezone.
       
 50183  *
       
 50184  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 50185  *
       
 50186  * @param date - The original date
       
 50187  *
       
 50188  * @returns The start of a day
       
 50189  *
       
 50190  * @example
       
 50191  * // The start of a day for 2 September 2014 11:55:00:
       
 50192  * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
       
 50193  * //=> Tue Sep 02 2014 00:00:00
       
 50194  */
       
 50195 function startOfDay(date) {
       
 50196   const _date = toDate(date);
       
 50197   _date.setHours(0, 0, 0, 0);
       
 50198   return _date;
       
 50199 }
       
 50200 
       
 50201 // Fallback for modularized imports:
       
 50202 /* harmony default export */ const date_fns_startOfDay = ((/* unused pure expression or super */ null && (startOfDay)));
       
 50203 
       
 50204 ;// ./node_modules/date-fns/constructFrom.mjs
 51876 /**
 50205 /**
 51877  * @name constructFrom
 50206  * @name constructFrom
 51878  * @category Generic Helpers
 50207  * @category Generic Helpers
 51879  * @summary Constructs a date using the reference date and the value
 50208  * @summary Constructs a date using the reference date and the value
 51880  *
 50209  *
 51909   } else {
 50238   } else {
 51910     return new Date(value);
 50239     return new Date(value);
 51911   }
 50240   }
 51912 }
 50241 }
 51913 
 50242 
 51914 /**
 50243 // Fallback for modularized imports:
 51915  * @name addDays
 50244 /* harmony default export */ const date_fns_constructFrom = ((/* unused pure expression or super */ null && (constructFrom)));
 51916  * @category Day Helpers
 50245 
 51917  * @summary Add the specified number of days to the given date.
 50246 ;// ./node_modules/date-fns/addMonths.mjs
 51918  *
 50247 
 51919  * @description
 50248 
 51920  * Add the specified number of days to the given date.
       
 51921  *
       
 51922  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 51923  *
       
 51924  * @param date - The date to be changed
       
 51925  * @param amount - The amount of days to be added.
       
 51926  *
       
 51927  * @returns The new date with the days added
       
 51928  *
       
 51929  * @example
       
 51930  * // Add 10 days to 1 September 2014:
       
 51931  * const result = addDays(new Date(2014, 8, 1), 10)
       
 51932  * //=> Thu Sep 11 2014 00:00:00
       
 51933  */
       
 51934 function addDays(date, amount) {
       
 51935   const _date = toDate(date);
       
 51936   if (isNaN(amount)) return constructFrom(date, NaN);
       
 51937   if (!amount) {
       
 51938     // If 0 days, no-op to avoid changing times in the hour before end of DST
       
 51939     return _date;
       
 51940   }
       
 51941   _date.setDate(_date.getDate() + amount);
       
 51942   return _date;
       
 51943 }
       
 51944 
 50249 
 51945 /**
 50250 /**
 51946  * @name addMonths
 50251  * @name addMonths
 51947  * @category Month Helpers
 50252  * @category Month Helpers
 51948  * @summary Add the specified number of months to the given date.
 50253  * @summary Add the specified number of months to the given date.
 52005     );
 50310     );
 52006     return _date;
 50311     return _date;
 52007   }
 50312   }
 52008 }
 50313 }
 52009 
 50314 
 52010 let index_es_defaultOptions = {};
 50315 // Fallback for modularized imports:
 52011 
 50316 /* harmony default export */ const date_fns_addMonths = ((/* unused pure expression or super */ null && (addMonths)));
 52012 function getDefaultOptions() {
 50317 
 52013   return index_es_defaultOptions;
 50318 ;// ./node_modules/date-fns/subMonths.mjs
 52014 }
 50319 
 52015 
       
 52016 /**
       
 52017  * The {@link startOfWeek} function options.
       
 52018  */
       
 52019 
       
 52020 /**
       
 52021  * @name startOfWeek
       
 52022  * @category Week Helpers
       
 52023  * @summary Return the start of a week for the given date.
       
 52024  *
       
 52025  * @description
       
 52026  * Return the start of a week for the given date.
       
 52027  * The result will be in the local timezone.
       
 52028  *
       
 52029  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52030  *
       
 52031  * @param date - The original date
       
 52032  * @param options - An object with options
       
 52033  *
       
 52034  * @returns The start of a week
       
 52035  *
       
 52036  * @example
       
 52037  * // The start of a week for 2 September 2014 11:55:00:
       
 52038  * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
       
 52039  * //=> Sun Aug 31 2014 00:00:00
       
 52040  *
       
 52041  * @example
       
 52042  * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
       
 52043  * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
       
 52044  * //=> Mon Sep 01 2014 00:00:00
       
 52045  */
       
 52046 function startOfWeek(date, options) {
       
 52047   const defaultOptions = getDefaultOptions();
       
 52048   const weekStartsOn =
       
 52049     options?.weekStartsOn ??
       
 52050     options?.locale?.options?.weekStartsOn ??
       
 52051     defaultOptions.weekStartsOn ??
       
 52052     defaultOptions.locale?.options?.weekStartsOn ??
       
 52053     0;
       
 52054 
       
 52055   const _date = toDate(date);
       
 52056   const day = _date.getDay();
       
 52057   const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
       
 52058 
       
 52059   _date.setDate(_date.getDate() - diff);
       
 52060   _date.setHours(0, 0, 0, 0);
       
 52061   return _date;
       
 52062 }
       
 52063 
       
 52064 /**
       
 52065  * @name startOfDay
       
 52066  * @category Day Helpers
       
 52067  * @summary Return the start of a day for the given date.
       
 52068  *
       
 52069  * @description
       
 52070  * Return the start of a day for the given date.
       
 52071  * The result will be in the local timezone.
       
 52072  *
       
 52073  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52074  *
       
 52075  * @param date - The original date
       
 52076  *
       
 52077  * @returns The start of a day
       
 52078  *
       
 52079  * @example
       
 52080  * // The start of a day for 2 September 2014 11:55:00:
       
 52081  * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
       
 52082  * //=> Tue Sep 02 2014 00:00:00
       
 52083  */
       
 52084 function startOfDay(date) {
       
 52085   const _date = toDate(date);
       
 52086   _date.setHours(0, 0, 0, 0);
       
 52087   return _date;
       
 52088 }
       
 52089 
       
 52090 /**
       
 52091  * @name addWeeks
       
 52092  * @category Week Helpers
       
 52093  * @summary Add the specified number of weeks to the given date.
       
 52094  *
       
 52095  * @description
       
 52096  * Add the specified number of week to the given date.
       
 52097  *
       
 52098  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52099  *
       
 52100  * @param date - The date to be changed
       
 52101  * @param amount - The amount of weeks to be added.
       
 52102  *
       
 52103  * @returns The new date with the weeks added
       
 52104  *
       
 52105  * @example
       
 52106  * // Add 4 weeks to 1 September 2014:
       
 52107  * const result = addWeeks(new Date(2014, 8, 1), 4)
       
 52108  * //=> Mon Sep 29 2014 00:00:00
       
 52109  */
       
 52110 function addWeeks(date, amount) {
       
 52111   const days = amount * 7;
       
 52112   return addDays(date, days);
       
 52113 }
       
 52114 
       
 52115 /**
       
 52116  * @name addYears
       
 52117  * @category Year Helpers
       
 52118  * @summary Add the specified number of years to the given date.
       
 52119  *
       
 52120  * @description
       
 52121  * Add the specified number of years to the given date.
       
 52122  *
       
 52123  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52124  *
       
 52125  * @param date - The date to be changed
       
 52126  * @param amount - The amount of years to be added.
       
 52127  *
       
 52128  * @returns The new date with the years added
       
 52129  *
       
 52130  * @example
       
 52131  * // Add 5 years to 1 September 2014:
       
 52132  * const result = addYears(new Date(2014, 8, 1), 5)
       
 52133  * //=> Sun Sep 01 2019 00:00:00
       
 52134  */
       
 52135 function addYears(date, amount) {
       
 52136   return addMonths(date, amount * 12);
       
 52137 }
       
 52138 
       
 52139 /**
       
 52140  * @name endOfMonth
       
 52141  * @category Month Helpers
       
 52142  * @summary Return the end of a month for the given date.
       
 52143  *
       
 52144  * @description
       
 52145  * Return the end of a month for the given date.
       
 52146  * The result will be in the local timezone.
       
 52147  *
       
 52148  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52149  *
       
 52150  * @param date - The original date
       
 52151  *
       
 52152  * @returns The end of a month
       
 52153  *
       
 52154  * @example
       
 52155  * // The end of a month for 2 September 2014 11:55:00:
       
 52156  * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
       
 52157  * //=> Tue Sep 30 2014 23:59:59.999
       
 52158  */
       
 52159 function endOfMonth(date) {
       
 52160   const _date = toDate(date);
       
 52161   const month = _date.getMonth();
       
 52162   _date.setFullYear(_date.getFullYear(), month + 1, 0);
       
 52163   _date.setHours(23, 59, 59, 999);
       
 52164   return _date;
       
 52165 }
       
 52166 
       
 52167 /**
       
 52168  * The {@link eachDayOfInterval} function options.
       
 52169  */
       
 52170 
       
 52171 /**
       
 52172  * @name eachDayOfInterval
       
 52173  * @category Interval Helpers
       
 52174  * @summary Return the array of dates within the specified time interval.
       
 52175  *
       
 52176  * @description
       
 52177  * Return the array of dates within the specified time interval.
       
 52178  *
       
 52179  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52180  *
       
 52181  * @param interval - The interval.
       
 52182  * @param options - An object with options.
       
 52183  *
       
 52184  * @returns The array with starts of days from the day of the interval start to the day of the interval end
       
 52185  *
       
 52186  * @example
       
 52187  * // Each day between 6 October 2014 and 10 October 2014:
       
 52188  * const result = eachDayOfInterval({
       
 52189  *   start: new Date(2014, 9, 6),
       
 52190  *   end: new Date(2014, 9, 10)
       
 52191  * })
       
 52192  * //=> [
       
 52193  * //   Mon Oct 06 2014 00:00:00,
       
 52194  * //   Tue Oct 07 2014 00:00:00,
       
 52195  * //   Wed Oct 08 2014 00:00:00,
       
 52196  * //   Thu Oct 09 2014 00:00:00,
       
 52197  * //   Fri Oct 10 2014 00:00:00
       
 52198  * // ]
       
 52199  */
       
 52200 function eachDayOfInterval(interval, options) {
       
 52201   const startDate = toDate(interval.start);
       
 52202   const endDate = toDate(interval.end);
       
 52203 
       
 52204   let reversed = +startDate > +endDate;
       
 52205   const endTime = reversed ? +startDate : +endDate;
       
 52206   const currentDate = reversed ? endDate : startDate;
       
 52207   currentDate.setHours(0, 0, 0, 0);
       
 52208 
       
 52209   let step = options?.step ?? 1;
       
 52210   if (!step) return [];
       
 52211   if (step < 0) {
       
 52212     step = -step;
       
 52213     reversed = !reversed;
       
 52214   }
       
 52215 
       
 52216   const dates = [];
       
 52217 
       
 52218   while (+currentDate <= endTime) {
       
 52219     dates.push(toDate(currentDate));
       
 52220     currentDate.setDate(currentDate.getDate() + step);
       
 52221     currentDate.setHours(0, 0, 0, 0);
       
 52222   }
       
 52223 
       
 52224   return reversed ? dates.reverse() : dates;
       
 52225 }
       
 52226 
       
 52227 /**
       
 52228  * The {@link eachMonthOfInterval} function options.
       
 52229  */
       
 52230 
       
 52231 /**
       
 52232  * @name eachMonthOfInterval
       
 52233  * @category Interval Helpers
       
 52234  * @summary Return the array of months within the specified time interval.
       
 52235  *
       
 52236  * @description
       
 52237  * Return the array of months within the specified time interval.
       
 52238  *
       
 52239  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52240  *
       
 52241  * @param interval - The interval
       
 52242  *
       
 52243  * @returns The array with starts of months from the month of the interval start to the month of the interval end
       
 52244  *
       
 52245  * @example
       
 52246  * // Each month between 6 February 2014 and 10 August 2014:
       
 52247  * const result = eachMonthOfInterval({
       
 52248  *   start: new Date(2014, 1, 6),
       
 52249  *   end: new Date(2014, 7, 10)
       
 52250  * })
       
 52251  * //=> [
       
 52252  * //   Sat Feb 01 2014 00:00:00,
       
 52253  * //   Sat Mar 01 2014 00:00:00,
       
 52254  * //   Tue Apr 01 2014 00:00:00,
       
 52255  * //   Thu May 01 2014 00:00:00,
       
 52256  * //   Sun Jun 01 2014 00:00:00,
       
 52257  * //   Tue Jul 01 2014 00:00:00,
       
 52258  * //   Fri Aug 01 2014 00:00:00
       
 52259  * // ]
       
 52260  */
       
 52261 function eachMonthOfInterval(interval, options) {
       
 52262   const startDate = toDate(interval.start);
       
 52263   const endDate = toDate(interval.end);
       
 52264 
       
 52265   let reversed = +startDate > +endDate;
       
 52266   const endTime = reversed ? +startDate : +endDate;
       
 52267   const currentDate = reversed ? endDate : startDate;
       
 52268   currentDate.setHours(0, 0, 0, 0);
       
 52269   currentDate.setDate(1);
       
 52270 
       
 52271   let step = options?.step ?? 1;
       
 52272   if (!step) return [];
       
 52273   if (step < 0) {
       
 52274     step = -step;
       
 52275     reversed = !reversed;
       
 52276   }
       
 52277 
       
 52278   const dates = [];
       
 52279 
       
 52280   while (+currentDate <= endTime) {
       
 52281     dates.push(toDate(currentDate));
       
 52282     currentDate.setMonth(currentDate.getMonth() + step);
       
 52283   }
       
 52284 
       
 52285   return reversed ? dates.reverse() : dates;
       
 52286 }
       
 52287 
       
 52288 /**
       
 52289  * The {@link eachWeekOfInterval} function options.
       
 52290  */
       
 52291 
       
 52292 /**
       
 52293  * @name eachWeekOfInterval
       
 52294  * @category Interval Helpers
       
 52295  * @summary Return the array of weeks within the specified time interval.
       
 52296  *
       
 52297  * @description
       
 52298  * Return the array of weeks within the specified time interval.
       
 52299  *
       
 52300  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52301  *
       
 52302  * @param interval - The interval.
       
 52303  * @param options - An object with options.
       
 52304  *
       
 52305  * @returns The array with starts of weeks from the week of the interval start to the week of the interval end
       
 52306  *
       
 52307  * @example
       
 52308  * // Each week within interval 6 October 2014 - 23 November 2014:
       
 52309  * const result = eachWeekOfInterval({
       
 52310  *   start: new Date(2014, 9, 6),
       
 52311  *   end: new Date(2014, 10, 23)
       
 52312  * })
       
 52313  * //=> [
       
 52314  * //   Sun Oct 05 2014 00:00:00,
       
 52315  * //   Sun Oct 12 2014 00:00:00,
       
 52316  * //   Sun Oct 19 2014 00:00:00,
       
 52317  * //   Sun Oct 26 2014 00:00:00,
       
 52318  * //   Sun Nov 02 2014 00:00:00,
       
 52319  * //   Sun Nov 09 2014 00:00:00,
       
 52320  * //   Sun Nov 16 2014 00:00:00,
       
 52321  * //   Sun Nov 23 2014 00:00:00
       
 52322  * // ]
       
 52323  */
       
 52324 function eachWeekOfInterval(interval, options) {
       
 52325   const startDate = toDate(interval.start);
       
 52326   const endDate = toDate(interval.end);
       
 52327 
       
 52328   let reversed = +startDate > +endDate;
       
 52329   const startDateWeek = reversed
       
 52330     ? startOfWeek(endDate, options)
       
 52331     : startOfWeek(startDate, options);
       
 52332   const endDateWeek = reversed
       
 52333     ? startOfWeek(startDate, options)
       
 52334     : startOfWeek(endDate, options);
       
 52335 
       
 52336   // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet
       
 52337   startDateWeek.setHours(15);
       
 52338   endDateWeek.setHours(15);
       
 52339 
       
 52340   const endTime = +endDateWeek.getTime();
       
 52341   let currentDate = startDateWeek;
       
 52342 
       
 52343   let step = options?.step ?? 1;
       
 52344   if (!step) return [];
       
 52345   if (step < 0) {
       
 52346     step = -step;
       
 52347     reversed = !reversed;
       
 52348   }
       
 52349 
       
 52350   const dates = [];
       
 52351 
       
 52352   while (+currentDate <= endTime) {
       
 52353     currentDate.setHours(0);
       
 52354     dates.push(toDate(currentDate));
       
 52355     currentDate = addWeeks(currentDate, step);
       
 52356     currentDate.setHours(15);
       
 52357   }
       
 52358 
       
 52359   return reversed ? dates.reverse() : dates;
       
 52360 }
       
 52361 
       
 52362 /**
       
 52363  * @name startOfMonth
       
 52364  * @category Month Helpers
       
 52365  * @summary Return the start of a month for the given date.
       
 52366  *
       
 52367  * @description
       
 52368  * Return the start of a month for the given date.
       
 52369  * The result will be in the local timezone.
       
 52370  *
       
 52371  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52372  *
       
 52373  * @param date - The original date
       
 52374  *
       
 52375  * @returns The start of a month
       
 52376  *
       
 52377  * @example
       
 52378  * // The start of a month for 2 September 2014 11:55:00:
       
 52379  * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
       
 52380  * //=> Mon Sep 01 2014 00:00:00
       
 52381  */
       
 52382 function startOfMonth(date) {
       
 52383   const _date = toDate(date);
       
 52384   _date.setDate(1);
       
 52385   _date.setHours(0, 0, 0, 0);
       
 52386   return _date;
       
 52387 }
       
 52388 
       
 52389 /**
       
 52390  * The {@link endOfWeek} function options.
       
 52391  */
       
 52392 
       
 52393 /**
       
 52394  * @name endOfWeek
       
 52395  * @category Week Helpers
       
 52396  * @summary Return the end of a week for the given date.
       
 52397  *
       
 52398  * @description
       
 52399  * Return the end of a week for the given date.
       
 52400  * The result will be in the local timezone.
       
 52401  *
       
 52402  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52403  *
       
 52404  * @param date - The original date
       
 52405  * @param options - An object with options
       
 52406  *
       
 52407  * @returns The end of a week
       
 52408  *
       
 52409  * @example
       
 52410  * // The end of a week for 2 September 2014 11:55:00:
       
 52411  * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
       
 52412  * //=> Sat Sep 06 2014 23:59:59.999
       
 52413  *
       
 52414  * @example
       
 52415  * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
       
 52416  * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
       
 52417  * //=> Sun Sep 07 2014 23:59:59.999
       
 52418  */
       
 52419 function endOfWeek(date, options) {
       
 52420   const defaultOptions = getDefaultOptions();
       
 52421   const weekStartsOn =
       
 52422     options?.weekStartsOn ??
       
 52423     options?.locale?.options?.weekStartsOn ??
       
 52424     defaultOptions.weekStartsOn ??
       
 52425     defaultOptions.locale?.options?.weekStartsOn ??
       
 52426     0;
       
 52427 
       
 52428   const _date = toDate(date);
       
 52429   const day = _date.getDay();
       
 52430   const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
       
 52431 
       
 52432   _date.setDate(_date.getDate() + diff);
       
 52433   _date.setHours(23, 59, 59, 999);
       
 52434   return _date;
       
 52435 }
       
 52436 
       
 52437 /**
       
 52438  * @name getDaysInMonth
       
 52439  * @category Month Helpers
       
 52440  * @summary Get the number of days in a month of the given date.
       
 52441  *
       
 52442  * @description
       
 52443  * Get the number of days in a month of the given date.
       
 52444  *
       
 52445  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52446  *
       
 52447  * @param date - The given date
       
 52448  *
       
 52449  * @returns The number of days in a month
       
 52450  *
       
 52451  * @example
       
 52452  * // How many days are in February 2000?
       
 52453  * const result = getDaysInMonth(new Date(2000, 1))
       
 52454  * //=> 29
       
 52455  */
       
 52456 function getDaysInMonth(date) {
       
 52457   const _date = toDate(date);
       
 52458   const year = _date.getFullYear();
       
 52459   const monthIndex = _date.getMonth();
       
 52460   const lastDayOfMonth = constructFrom(date, 0);
       
 52461   lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
       
 52462   lastDayOfMonth.setHours(0, 0, 0, 0);
       
 52463   return lastDayOfMonth.getDate();
       
 52464 }
       
 52465 
       
 52466 /**
       
 52467  * @name isAfter
       
 52468  * @category Common Helpers
       
 52469  * @summary Is the first date after the second one?
       
 52470  *
       
 52471  * @description
       
 52472  * Is the first date after the second one?
       
 52473  *
       
 52474  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52475  *
       
 52476  * @param date - The date that should be after the other one to return true
       
 52477  * @param dateToCompare - The date to compare with
       
 52478  *
       
 52479  * @returns The first date is after the second date
       
 52480  *
       
 52481  * @example
       
 52482  * // Is 10 July 1989 after 11 February 1987?
       
 52483  * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
       
 52484  * //=> true
       
 52485  */
       
 52486 function isAfter(date, dateToCompare) {
       
 52487   const _date = toDate(date);
       
 52488   const _dateToCompare = toDate(dateToCompare);
       
 52489   return _date.getTime() > _dateToCompare.getTime();
       
 52490 }
       
 52491 
       
 52492 /**
       
 52493  * @name isBefore
       
 52494  * @category Common Helpers
       
 52495  * @summary Is the first date before the second one?
       
 52496  *
       
 52497  * @description
       
 52498  * Is the first date before the second one?
       
 52499  *
       
 52500  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52501  *
       
 52502  * @param date - The date that should be before the other one to return true
       
 52503  * @param dateToCompare - The date to compare with
       
 52504  *
       
 52505  * @returns The first date is before the second date
       
 52506  *
       
 52507  * @example
       
 52508  * // Is 10 July 1989 before 11 February 1987?
       
 52509  * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
       
 52510  * //=> false
       
 52511  */
       
 52512 function isBefore(date, dateToCompare) {
       
 52513   const _date = toDate(date);
       
 52514   const _dateToCompare = toDate(dateToCompare);
       
 52515   return +_date < +_dateToCompare;
       
 52516 }
       
 52517 
       
 52518 /**
       
 52519  * @name isEqual
       
 52520  * @category Common Helpers
       
 52521  * @summary Are the given dates equal?
       
 52522  *
       
 52523  * @description
       
 52524  * Are the given dates equal?
       
 52525  *
       
 52526  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52527  *
       
 52528  * @param dateLeft - The first date to compare
       
 52529  * @param dateRight - The second date to compare
       
 52530  *
       
 52531  * @returns The dates are equal
       
 52532  *
       
 52533  * @example
       
 52534  * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
       
 52535  * const result = isEqual(
       
 52536  *   new Date(2014, 6, 2, 6, 30, 45, 0),
       
 52537  *   new Date(2014, 6, 2, 6, 30, 45, 500)
       
 52538  * )
       
 52539  * //=> false
       
 52540  */
       
 52541 function isEqual(leftDate, rightDate) {
       
 52542   const _dateLeft = toDate(leftDate);
       
 52543   const _dateRight = toDate(rightDate);
       
 52544   return +_dateLeft === +_dateRight;
       
 52545 }
       
 52546 
       
 52547 /**
       
 52548  * @name setMonth
       
 52549  * @category Month Helpers
       
 52550  * @summary Set the month to the given date.
       
 52551  *
       
 52552  * @description
       
 52553  * Set the month to the given date.
       
 52554  *
       
 52555  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52556  *
       
 52557  * @param date - The date to be changed
       
 52558  * @param month - The month index to set (0-11)
       
 52559  *
       
 52560  * @returns The new date with the month set
       
 52561  *
       
 52562  * @example
       
 52563  * // Set February to 1 September 2014:
       
 52564  * const result = setMonth(new Date(2014, 8, 1), 1)
       
 52565  * //=> Sat Feb 01 2014 00:00:00
       
 52566  */
       
 52567 function setMonth(date, month) {
       
 52568   const _date = toDate(date);
       
 52569   const year = _date.getFullYear();
       
 52570   const day = _date.getDate();
       
 52571 
       
 52572   const dateWithDesiredMonth = constructFrom(date, 0);
       
 52573   dateWithDesiredMonth.setFullYear(year, month, 15);
       
 52574   dateWithDesiredMonth.setHours(0, 0, 0, 0);
       
 52575   const daysInMonth = getDaysInMonth(dateWithDesiredMonth);
       
 52576   // Set the last day of the new month
       
 52577   // if the original date was the last day of the longer month
       
 52578   _date.setMonth(month, Math.min(day, daysInMonth));
       
 52579   return _date;
       
 52580 }
       
 52581 
       
 52582 /**
       
 52583  * @name set
       
 52584  * @category Common Helpers
       
 52585  * @summary Set date values to a given date.
       
 52586  *
       
 52587  * @description
       
 52588  * Set date values to a given date.
       
 52589  *
       
 52590  * Sets time values to date from object `values`.
       
 52591  * A value is not set if it is undefined or null or doesn't exist in `values`.
       
 52592  *
       
 52593  * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts
       
 52594  * to use native `Date#setX` methods. If you use this function, you may not want to include the
       
 52595  * other `setX` functions that date-fns provides if you are concerned about the bundle size.
       
 52596  *
       
 52597  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52598  *
       
 52599  * @param date - The date to be changed
       
 52600  * @param values - The date values to be set
       
 52601  *
       
 52602  * @returns The new date with options set
       
 52603  *
       
 52604  * @example
       
 52605  * // Transform 1 September 2014 into 20 October 2015 in a single line:
       
 52606  * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
       
 52607  * //=> Tue Oct 20 2015 00:00:00
       
 52608  *
       
 52609  * @example
       
 52610  * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
       
 52611  * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
       
 52612  * //=> Mon Sep 01 2014 12:23:45
       
 52613  */
       
 52614 
       
 52615 function set(date, values) {
       
 52616   let _date = toDate(date);
       
 52617 
       
 52618   // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
       
 52619   if (isNaN(+_date)) {
       
 52620     return constructFrom(date, NaN);
       
 52621   }
       
 52622 
       
 52623   if (values.year != null) {
       
 52624     _date.setFullYear(values.year);
       
 52625   }
       
 52626 
       
 52627   if (values.month != null) {
       
 52628     _date = setMonth(_date, values.month);
       
 52629   }
       
 52630 
       
 52631   if (values.date != null) {
       
 52632     _date.setDate(values.date);
       
 52633   }
       
 52634 
       
 52635   if (values.hours != null) {
       
 52636     _date.setHours(values.hours);
       
 52637   }
       
 52638 
       
 52639   if (values.minutes != null) {
       
 52640     _date.setMinutes(values.minutes);
       
 52641   }
       
 52642 
       
 52643   if (values.seconds != null) {
       
 52644     _date.setSeconds(values.seconds);
       
 52645   }
       
 52646 
       
 52647   if (values.milliseconds != null) {
       
 52648     _date.setMilliseconds(values.milliseconds);
       
 52649   }
       
 52650 
       
 52651   return _date;
       
 52652 }
       
 52653 
       
 52654 /**
       
 52655  * @name setYear
       
 52656  * @category Year Helpers
       
 52657  * @summary Set the year to the given date.
       
 52658  *
       
 52659  * @description
       
 52660  * Set the year to the given date.
       
 52661  *
       
 52662  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52663  *
       
 52664  * @param date - The date to be changed
       
 52665  * @param year - The year of the new date
       
 52666  *
       
 52667  * @returns The new date with the year set
       
 52668  *
       
 52669  * @example
       
 52670  * // Set year 2013 to 1 September 2014:
       
 52671  * const result = setYear(new Date(2014, 8, 1), 2013)
       
 52672  * //=> Sun Sep 01 2013 00:00:00
       
 52673  */
       
 52674 function setYear(date, year) {
       
 52675   const _date = toDate(date);
       
 52676 
       
 52677   // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
       
 52678   if (isNaN(+_date)) {
       
 52679     return constructFrom(date, NaN);
       
 52680   }
       
 52681 
       
 52682   _date.setFullYear(year);
       
 52683   return _date;
       
 52684 }
       
 52685 
       
 52686 /**
       
 52687  * @name startOfToday
       
 52688  * @category Day Helpers
       
 52689  * @summary Return the start of today.
       
 52690  * @pure false
       
 52691  *
       
 52692  * @description
       
 52693  * Return the start of today.
       
 52694  *
       
 52695  * @returns The start of today
       
 52696  *
       
 52697  * @example
       
 52698  * // If today is 6 October 2014:
       
 52699  * const result = startOfToday()
       
 52700  * //=> Mon Oct 6 2014 00:00:00
       
 52701  */
       
 52702 function startOfToday() {
       
 52703   return startOfDay(Date.now());
       
 52704 }
       
 52705 
 50320 
 52706 /**
 50321 /**
 52707  * @name subMonths
 50322  * @name subMonths
 52708  * @category Month Helpers
 50323  * @category Month Helpers
 52709  * @summary Subtract the specified number of months from the given date.
 50324  * @summary Subtract the specified number of months from the given date.
 52725  */
 50340  */
 52726 function subMonths(date, amount) {
 50341 function subMonths(date, amount) {
 52727   return addMonths(date, -amount);
 50342   return addMonths(date, -amount);
 52728 }
 50343 }
 52729 
 50344 
 52730 /**
       
 52731  * @name subYears
       
 52732  * @category Year Helpers
       
 52733  * @summary Subtract the specified number of years from the given date.
       
 52734  *
       
 52735  * @description
       
 52736  * Subtract the specified number of years from the given date.
       
 52737  *
       
 52738  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52739  *
       
 52740  * @param date - The date to be changed
       
 52741  * @param amount - The amount of years to be subtracted.
       
 52742  *
       
 52743  * @returns The new date with the years subtracted
       
 52744  *
       
 52745  * @example
       
 52746  * // Subtract 5 years from 1 September 2014:
       
 52747  * const result = subYears(new Date(2014, 8, 1), 5)
       
 52748  * //=> Tue Sep 01 2009 00:00:00
       
 52749  */
       
 52750 function subYears(date, amount) {
       
 52751   return addYears(date, -amount);
       
 52752 }
       
 52753 
       
 52754 var Month;
       
 52755 (function (Month) {
       
 52756     Month[Month["JANUARY"] = 0] = "JANUARY";
       
 52757     Month[Month["FEBRUARY"] = 1] = "FEBRUARY";
       
 52758     Month[Month["MARCH"] = 2] = "MARCH";
       
 52759     Month[Month["APRIL"] = 3] = "APRIL";
       
 52760     Month[Month["MAY"] = 4] = "MAY";
       
 52761     Month[Month["JUNE"] = 5] = "JUNE";
       
 52762     Month[Month["JULY"] = 6] = "JULY";
       
 52763     Month[Month["AUGUST"] = 7] = "AUGUST";
       
 52764     Month[Month["SEPTEMBER"] = 8] = "SEPTEMBER";
       
 52765     Month[Month["OCTOBER"] = 9] = "OCTOBER";
       
 52766     Month[Month["NOVEMBER"] = 10] = "NOVEMBER";
       
 52767     Month[Month["DECEMBER"] = 11] = "DECEMBER";
       
 52768 })(Month || (Month = {}));
       
 52769 var Day;
       
 52770 (function (Day) {
       
 52771     Day[Day["SUNDAY"] = 0] = "SUNDAY";
       
 52772     Day[Day["MONDAY"] = 1] = "MONDAY";
       
 52773     Day[Day["TUESDAY"] = 2] = "TUESDAY";
       
 52774     Day[Day["WEDNESDAY"] = 3] = "WEDNESDAY";
       
 52775     Day[Day["THURSDAY"] = 4] = "THURSDAY";
       
 52776     Day[Day["FRIDAY"] = 5] = "FRIDAY";
       
 52777     Day[Day["SATURDAY"] = 6] = "SATURDAY";
       
 52778 })(Day || (Day = {}));
       
 52779 var inRange = function (date, min, max) {
       
 52780     return (isEqual(date, min) || isAfter(date, min)) && (isEqual(date, max) || isBefore(date, max));
       
 52781 };
       
 52782 var index_es_clearTime = function (date) { return set(date, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 }); };
       
 52783 var useLilius = function (_a) {
       
 52784     var _b = _a === void 0 ? {} : _a, _c = _b.weekStartsOn, weekStartsOn = _c === void 0 ? Day.SUNDAY : _c, _d = _b.viewing, initialViewing = _d === void 0 ? new Date() : _d, _e = _b.selected, initialSelected = _e === void 0 ? [] : _e, _f = _b.numberOfMonths, numberOfMonths = _f === void 0 ? 1 : _f;
       
 52785     var _g = (0,external_React_.useState)(initialViewing), viewing = _g[0], setViewing = _g[1];
       
 52786     var viewToday = (0,external_React_.useCallback)(function () { return setViewing(startOfToday()); }, [setViewing]);
       
 52787     var viewMonth = (0,external_React_.useCallback)(function (month) { return setViewing(function (v) { return setMonth(v, month); }); }, []);
       
 52788     var viewPreviousMonth = (0,external_React_.useCallback)(function () { return setViewing(function (v) { return subMonths(v, 1); }); }, []);
       
 52789     var viewNextMonth = (0,external_React_.useCallback)(function () { return setViewing(function (v) { return addMonths(v, 1); }); }, []);
       
 52790     var viewYear = (0,external_React_.useCallback)(function (year) { return setViewing(function (v) { return setYear(v, year); }); }, []);
       
 52791     var viewPreviousYear = (0,external_React_.useCallback)(function () { return setViewing(function (v) { return subYears(v, 1); }); }, []);
       
 52792     var viewNextYear = (0,external_React_.useCallback)(function () { return setViewing(function (v) { return addYears(v, 1); }); }, []);
       
 52793     var _h = (0,external_React_.useState)(initialSelected.map(index_es_clearTime)), selected = _h[0], setSelected = _h[1];
       
 52794     var clearSelected = function () { return setSelected([]); };
       
 52795     var isSelected = (0,external_React_.useCallback)(function (date) { return selected.findIndex(function (s) { return isEqual(s, date); }) > -1; }, [selected]);
       
 52796     var select = (0,external_React_.useCallback)(function (date, replaceExisting) {
       
 52797         if (replaceExisting) {
       
 52798             setSelected(Array.isArray(date) ? date : [date]);
       
 52799         }
       
 52800         else {
       
 52801             setSelected(function (selectedItems) { return selectedItems.concat(Array.isArray(date) ? date : [date]); });
       
 52802         }
       
 52803     }, []);
       
 52804     var deselect = (0,external_React_.useCallback)(function (date) {
       
 52805         return setSelected(function (selectedItems) {
       
 52806             return Array.isArray(date)
       
 52807                 ? selectedItems.filter(function (s) { return !date.map(function (d) { return d.getTime(); }).includes(s.getTime()); })
       
 52808                 : selectedItems.filter(function (s) { return !isEqual(s, date); });
       
 52809         });
       
 52810     }, []);
       
 52811     var toggle = (0,external_React_.useCallback)(function (date, replaceExisting) { return (isSelected(date) ? deselect(date) : select(date, replaceExisting)); }, [deselect, isSelected, select]);
       
 52812     var selectRange = (0,external_React_.useCallback)(function (start, end, replaceExisting) {
       
 52813         if (replaceExisting) {
       
 52814             setSelected(eachDayOfInterval({ start: start, end: end }));
       
 52815         }
       
 52816         else {
       
 52817             setSelected(function (selectedItems) { return selectedItems.concat(eachDayOfInterval({ start: start, end: end })); });
       
 52818         }
       
 52819     }, []);
       
 52820     var deselectRange = (0,external_React_.useCallback)(function (start, end) {
       
 52821         setSelected(function (selectedItems) {
       
 52822             return selectedItems.filter(function (s) {
       
 52823                 return !eachDayOfInterval({ start: start, end: end })
       
 52824                     .map(function (d) { return d.getTime(); })
       
 52825                     .includes(s.getTime());
       
 52826             });
       
 52827         });
       
 52828     }, []);
       
 52829     var calendar = (0,external_React_.useMemo)(function () {
       
 52830         return eachMonthOfInterval({
       
 52831             start: startOfMonth(viewing),
       
 52832             end: endOfMonth(addMonths(viewing, numberOfMonths - 1)),
       
 52833         }).map(function (month) {
       
 52834             return eachWeekOfInterval({
       
 52835                 start: startOfMonth(month),
       
 52836                 end: endOfMonth(month),
       
 52837             }, { weekStartsOn: weekStartsOn }).map(function (week) {
       
 52838                 return eachDayOfInterval({
       
 52839                     start: startOfWeek(week, { weekStartsOn: weekStartsOn }),
       
 52840                     end: endOfWeek(week, { weekStartsOn: weekStartsOn }),
       
 52841                 });
       
 52842             });
       
 52843         });
       
 52844     }, [viewing, weekStartsOn, numberOfMonths]);
       
 52845     return {
       
 52846         clearTime: index_es_clearTime,
       
 52847         inRange: inRange,
       
 52848         viewing: viewing,
       
 52849         setViewing: setViewing,
       
 52850         viewToday: viewToday,
       
 52851         viewMonth: viewMonth,
       
 52852         viewPreviousMonth: viewPreviousMonth,
       
 52853         viewNextMonth: viewNextMonth,
       
 52854         viewYear: viewYear,
       
 52855         viewPreviousYear: viewPreviousYear,
       
 52856         viewNextYear: viewNextYear,
       
 52857         selected: selected,
       
 52858         setSelected: setSelected,
       
 52859         clearSelected: clearSelected,
       
 52860         isSelected: isSelected,
       
 52861         select: select,
       
 52862         deselect: deselect,
       
 52863         toggle: toggle,
       
 52864         selectRange: selectRange,
       
 52865         deselectRange: deselectRange,
       
 52866         calendar: calendar,
       
 52867     };
       
 52868 };
       
 52869 
       
 52870 
       
 52871 
       
 52872 ;// CONCATENATED MODULE: ./node_modules/date-fns/toDate.mjs
       
 52873 /**
       
 52874  * @name toDate
       
 52875  * @category Common Helpers
       
 52876  * @summary Convert the given argument to an instance of Date.
       
 52877  *
       
 52878  * @description
       
 52879  * Convert the given argument to an instance of Date.
       
 52880  *
       
 52881  * If the argument is an instance of Date, the function returns its clone.
       
 52882  *
       
 52883  * If the argument is a number, it is treated as a timestamp.
       
 52884  *
       
 52885  * If the argument is none of the above, the function returns Invalid Date.
       
 52886  *
       
 52887  * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
       
 52888  *
       
 52889  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52890  *
       
 52891  * @param argument - The value to convert
       
 52892  *
       
 52893  * @returns The parsed date in the local time zone
       
 52894  *
       
 52895  * @example
       
 52896  * // Clone the date:
       
 52897  * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
       
 52898  * //=> Tue Feb 11 2014 11:30:30
       
 52899  *
       
 52900  * @example
       
 52901  * // Convert the timestamp to date:
       
 52902  * const result = toDate(1392098430000)
       
 52903  * //=> Tue Feb 11 2014 11:30:30
       
 52904  */
       
 52905 function toDate_toDate(argument) {
       
 52906   const argStr = Object.prototype.toString.call(argument);
       
 52907 
       
 52908   // Clone the date
       
 52909   if (
       
 52910     argument instanceof Date ||
       
 52911     (typeof argument === "object" && argStr === "[object Date]")
       
 52912   ) {
       
 52913     // Prevent the date to lose the milliseconds when passed to new Date() in IE10
       
 52914     return new argument.constructor(+argument);
       
 52915   } else if (
       
 52916     typeof argument === "number" ||
       
 52917     argStr === "[object Number]" ||
       
 52918     typeof argument === "string" ||
       
 52919     argStr === "[object String]"
       
 52920   ) {
       
 52921     // TODO: Can we get rid of as?
       
 52922     return new Date(argument);
       
 52923   } else {
       
 52924     // TODO: Can we get rid of as?
       
 52925     return new Date(NaN);
       
 52926   }
       
 52927 }
       
 52928 
       
 52929 // Fallback for modularized imports:
 50345 // Fallback for modularized imports:
 52930 /* harmony default export */ const date_fns_toDate = ((/* unused pure expression or super */ null && (toDate_toDate)));
 50346 /* harmony default export */ const date_fns_subMonths = ((/* unused pure expression or super */ null && (subMonths)));
 52931 
 50347 
 52932 ;// CONCATENATED MODULE: ./node_modules/date-fns/startOfDay.mjs
 50348 ;// ./node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs
 52933 
       
 52934 
       
 52935 /**
       
 52936  * @name startOfDay
       
 52937  * @category Day Helpers
       
 52938  * @summary Return the start of a day for the given date.
       
 52939  *
       
 52940  * @description
       
 52941  * Return the start of a day for the given date.
       
 52942  * The result will be in the local timezone.
       
 52943  *
       
 52944  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52945  *
       
 52946  * @param date - The original date
       
 52947  *
       
 52948  * @returns The start of a day
       
 52949  *
       
 52950  * @example
       
 52951  * // The start of a day for 2 September 2014 11:55:00:
       
 52952  * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
       
 52953  * //=> Tue Sep 02 2014 00:00:00
       
 52954  */
       
 52955 function startOfDay_startOfDay(date) {
       
 52956   const _date = toDate_toDate(date);
       
 52957   _date.setHours(0, 0, 0, 0);
       
 52958   return _date;
       
 52959 }
       
 52960 
       
 52961 // Fallback for modularized imports:
       
 52962 /* harmony default export */ const date_fns_startOfDay = ((/* unused pure expression or super */ null && (startOfDay_startOfDay)));
       
 52963 
       
 52964 ;// CONCATENATED MODULE: ./node_modules/date-fns/constructFrom.mjs
       
 52965 /**
       
 52966  * @name constructFrom
       
 52967  * @category Generic Helpers
       
 52968  * @summary Constructs a date using the reference date and the value
       
 52969  *
       
 52970  * @description
       
 52971  * The function constructs a new date using the constructor from the reference
       
 52972  * date and the given value. It helps to build generic functions that accept
       
 52973  * date extensions.
       
 52974  *
       
 52975  * It defaults to `Date` if the passed reference date is a number or a string.
       
 52976  *
       
 52977  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 52978  *
       
 52979  * @param date - The reference date to take constructor from
       
 52980  * @param value - The value to create the date
       
 52981  *
       
 52982  * @returns Date initialized using the given date and value
       
 52983  *
       
 52984  * @example
       
 52985  * import { constructFrom } from 'date-fns'
       
 52986  *
       
 52987  * // A function that clones a date preserving the original type
       
 52988  * function cloneDate<DateType extends Date(date: DateType): DateType {
       
 52989  *   return constructFrom(
       
 52990  *     date, // Use contrustor from the given date
       
 52991  *     date.getTime() // Use the date value to create a new date
       
 52992  *   )
       
 52993  * }
       
 52994  */
       
 52995 function constructFrom_constructFrom(date, value) {
       
 52996   if (date instanceof Date) {
       
 52997     return new date.constructor(value);
       
 52998   } else {
       
 52999     return new Date(value);
       
 53000   }
       
 53001 }
       
 53002 
       
 53003 // Fallback for modularized imports:
       
 53004 /* harmony default export */ const date_fns_constructFrom = ((/* unused pure expression or super */ null && (constructFrom_constructFrom)));
       
 53005 
       
 53006 ;// CONCATENATED MODULE: ./node_modules/date-fns/addMonths.mjs
       
 53007 
       
 53008 
       
 53009 
       
 53010 /**
       
 53011  * @name addMonths
       
 53012  * @category Month Helpers
       
 53013  * @summary Add the specified number of months to the given date.
       
 53014  *
       
 53015  * @description
       
 53016  * Add the specified number of months to the given date.
       
 53017  *
       
 53018  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53019  *
       
 53020  * @param date - The date to be changed
       
 53021  * @param amount - The amount of months to be added.
       
 53022  *
       
 53023  * @returns The new date with the months added
       
 53024  *
       
 53025  * @example
       
 53026  * // Add 5 months to 1 September 2014:
       
 53027  * const result = addMonths(new Date(2014, 8, 1), 5)
       
 53028  * //=> Sun Feb 01 2015 00:00:00
       
 53029  *
       
 53030  * // Add one month to 30 January 2023:
       
 53031  * const result = addMonths(new Date(2023, 0, 30), 1)
       
 53032  * //=> Tue Feb 28 2023 00:00:00
       
 53033  */
       
 53034 function addMonths_addMonths(date, amount) {
       
 53035   const _date = toDate_toDate(date);
       
 53036   if (isNaN(amount)) return constructFrom_constructFrom(date, NaN);
       
 53037   if (!amount) {
       
 53038     // If 0 months, no-op to avoid changing times in the hour before end of DST
       
 53039     return _date;
       
 53040   }
       
 53041   const dayOfMonth = _date.getDate();
       
 53042 
       
 53043   // The JS Date object supports date math by accepting out-of-bounds values for
       
 53044   // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
       
 53045   // new Date(2020, 13, 1) returns 1 Feb 2021.  This is *almost* the behavior we
       
 53046   // want except that dates will wrap around the end of a month, meaning that
       
 53047   // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
       
 53048   // we'll default to the end of the desired month by adding 1 to the desired
       
 53049   // month and using a date of 0 to back up one day to the end of the desired
       
 53050   // month.
       
 53051   const endOfDesiredMonth = constructFrom_constructFrom(date, _date.getTime());
       
 53052   endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
       
 53053   const daysInMonth = endOfDesiredMonth.getDate();
       
 53054   if (dayOfMonth >= daysInMonth) {
       
 53055     // If we're already at the end of the month, then this is the correct date
       
 53056     // and we're done.
       
 53057     return endOfDesiredMonth;
       
 53058   } else {
       
 53059     // Otherwise, we now know that setting the original day-of-month value won't
       
 53060     // cause an overflow, so set the desired day-of-month. Note that we can't
       
 53061     // just set the date of `endOfDesiredMonth` because that object may have had
       
 53062     // its time changed in the unusual case where where a DST transition was on
       
 53063     // the last day of the month and its local time was in the hour skipped or
       
 53064     // repeated next to a DST transition.  So we use `date` instead which is
       
 53065     // guaranteed to still have the original time.
       
 53066     _date.setFullYear(
       
 53067       endOfDesiredMonth.getFullYear(),
       
 53068       endOfDesiredMonth.getMonth(),
       
 53069       dayOfMonth,
       
 53070     );
       
 53071     return _date;
       
 53072   }
       
 53073 }
       
 53074 
       
 53075 // Fallback for modularized imports:
       
 53076 /* harmony default export */ const date_fns_addMonths = ((/* unused pure expression or super */ null && (addMonths_addMonths)));
       
 53077 
       
 53078 ;// CONCATENATED MODULE: ./node_modules/date-fns/subMonths.mjs
       
 53079 
       
 53080 
       
 53081 /**
       
 53082  * @name subMonths
       
 53083  * @category Month Helpers
       
 53084  * @summary Subtract the specified number of months from the given date.
       
 53085  *
       
 53086  * @description
       
 53087  * Subtract the specified number of months from the given date.
       
 53088  *
       
 53089  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53090  *
       
 53091  * @param date - The date to be changed
       
 53092  * @param amount - The amount of months to be subtracted.
       
 53093  *
       
 53094  * @returns The new date with the months subtracted
       
 53095  *
       
 53096  * @example
       
 53097  * // Subtract 5 months from 1 February 2015:
       
 53098  * const result = subMonths(new Date(2015, 1, 1), 5)
       
 53099  * //=> Mon Sep 01 2014 00:00:00
       
 53100  */
       
 53101 function subMonths_subMonths(date, amount) {
       
 53102   return addMonths_addMonths(date, -amount);
       
 53103 }
       
 53104 
       
 53105 // Fallback for modularized imports:
       
 53106 /* harmony default export */ const date_fns_subMonths = ((/* unused pure expression or super */ null && (subMonths_subMonths)));
       
 53107 
       
 53108 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs
       
 53109 const formatDistanceLocale = {
 50349 const formatDistanceLocale = {
 53110   lessThanXSeconds: {
 50350   lessThanXSeconds: {
 53111     one: "less than a second",
 50351     one: "less than a second",
 53112     other: "less than {{count}} seconds",
 50352     other: "less than {{count}} seconds",
 53113   },
 50353   },
 53206   }
 50446   }
 53207 
 50447 
 53208   return result;
 50448   return result;
 53209 };
 50449 };
 53210 
 50450 
 53211 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs
 50451 ;// ./node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs
 53212 function buildFormatLongFn(args) {
 50452 function buildFormatLongFn(args) {
 53213   return (options = {}) => {
 50453   return (options = {}) => {
 53214     // TODO: Remove String()
 50454     // TODO: Remove String()
 53215     const width = options.width ? String(options.width) : args.defaultWidth;
 50455     const width = options.width ? String(options.width) : args.defaultWidth;
 53216     const format = args.formats[width] || args.formats[args.defaultWidth];
 50456     const format = args.formats[width] || args.formats[args.defaultWidth];
 53217     return format;
 50457     return format;
 53218   };
 50458   };
 53219 }
 50459 }
 53220 
 50460 
 53221 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/formatLong.mjs
 50461 ;// ./node_modules/date-fns/locale/en-US/_lib/formatLong.mjs
 53222 
 50462 
 53223 
 50463 
 53224 const dateFormats = {
 50464 const dateFormats = {
 53225   full: "EEEE, MMMM do, y",
 50465   full: "EEEE, MMMM do, y",
 53226   long: "MMMM do, y",
 50466   long: "MMMM do, y",
 53257     formats: dateTimeFormats,
 50497     formats: dateTimeFormats,
 53258     defaultWidth: "full",
 50498     defaultWidth: "full",
 53259   }),
 50499   }),
 53260 };
 50500 };
 53261 
 50501 
 53262 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs
 50502 ;// ./node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs
 53263 const formatRelativeLocale = {
 50503 const formatRelativeLocale = {
 53264   lastWeek: "'last' eeee 'at' p",
 50504   lastWeek: "'last' eeee 'at' p",
 53265   yesterday: "'yesterday at' p",
 50505   yesterday: "'yesterday at' p",
 53266   today: "'today at' p",
 50506   today: "'today at' p",
 53267   tomorrow: "'tomorrow at' p",
 50507   tomorrow: "'tomorrow at' p",
 53270 };
 50510 };
 53271 
 50511 
 53272 const formatRelative = (token, _date, _baseDate, _options) =>
 50512 const formatRelative = (token, _date, _baseDate, _options) =>
 53273   formatRelativeLocale[token];
 50513   formatRelativeLocale[token];
 53274 
 50514 
 53275 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
 50515 ;// ./node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
 53276 /* eslint-disable no-unused-vars */
 50516 /* eslint-disable no-unused-vars */
 53277 
 50517 
 53278 /**
 50518 /**
 53279  * The localize function argument callback which allows to convert raw value to
 50519  * The localize function argument callback which allows to convert raw value to
 53280  * the actual type.
 50520  * the actual type.
 53336     // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
 50576     // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
 53337     return valuesArray[index];
 50577     return valuesArray[index];
 53338   };
 50578   };
 53339 }
 50579 }
 53340 
 50580 
 53341 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/localize.mjs
 50581 ;// ./node_modules/date-fns/locale/en-US/_lib/localize.mjs
 53342 
 50582 
 53343 
 50583 
 53344 const eraValues = {
 50584 const eraValues = {
 53345   narrow: ["B", "A"],
 50585   narrow: ["B", "A"],
 53346   abbreviated: ["BC", "AD"],
 50586   abbreviated: ["BC", "AD"],
 53525     formattingValues: formattingDayPeriodValues,
 50765     formattingValues: formattingDayPeriodValues,
 53526     defaultFormattingWidth: "wide",
 50766     defaultFormattingWidth: "wide",
 53527   }),
 50767   }),
 53528 };
 50768 };
 53529 
 50769 
 53530 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildMatchFn.mjs
 50770 ;// ./node_modules/date-fns/locale/_lib/buildMatchFn.mjs
 53531 function buildMatchFn(args) {
 50771 function buildMatchFn(args) {
 53532   return (string, options = {}) => {
 50772   return (string, options = {}) => {
 53533     const width = options.width;
 50773     const width = options.width;
 53534 
 50774 
 53535     const matchPattern =
 50775     const matchPattern =
 53584     }
 50824     }
 53585   }
 50825   }
 53586   return undefined;
 50826   return undefined;
 53587 }
 50827 }
 53588 
 50828 
 53589 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs
 50829 ;// ./node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs
 53590 function buildMatchPatternFn(args) {
 50830 function buildMatchPatternFn(args) {
 53591   return (string, options = {}) => {
 50831   return (string, options = {}) => {
 53592     const matchResult = string.match(args.matchPattern);
 50832     const matchResult = string.match(args.matchPattern);
 53593     if (!matchResult) return null;
 50833     if (!matchResult) return null;
 53594     const matchedString = matchResult[0];
 50834     const matchedString = matchResult[0];
 53606 
 50846 
 53607     return { value, rest };
 50847     return { value, rest };
 53608   };
 50848   };
 53609 }
 50849 }
 53610 
 50850 
 53611 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US/_lib/match.mjs
 50851 ;// ./node_modules/date-fns/locale/en-US/_lib/match.mjs
 53612 
 50852 
 53613 
 50853 
 53614 
 50854 
 53615 const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
 50855 const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
 53616 const parseOrdinalNumberPattern = /\d+/i;
 50856 const parseOrdinalNumberPattern = /\d+/i;
 53740     parsePatterns: parseDayPeriodPatterns,
 50980     parsePatterns: parseDayPeriodPatterns,
 53741     defaultParseWidth: "any",
 50981     defaultParseWidth: "any",
 53742   }),
 50982   }),
 53743 };
 50983 };
 53744 
 50984 
 53745 ;// CONCATENATED MODULE: ./node_modules/date-fns/locale/en-US.mjs
 50985 ;// ./node_modules/date-fns/locale/en-US.mjs
 53746 
 50986 
 53747 
 50987 
 53748 
 50988 
 53749 
 50989 
 53750 
 50990 
 53771 };
 51011 };
 53772 
 51012 
 53773 // Fallback for modularized imports:
 51013 // Fallback for modularized imports:
 53774 /* harmony default export */ const en_US = ((/* unused pure expression or super */ null && (enUS)));
 51014 /* harmony default export */ const en_US = ((/* unused pure expression or super */ null && (enUS)));
 53775 
 51015 
 53776 ;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/defaultOptions.mjs
 51016 ;// ./node_modules/date-fns/_lib/defaultOptions.mjs
 53777 let defaultOptions_defaultOptions = {};
 51017 let defaultOptions_defaultOptions = {};
 53778 
 51018 
 53779 function defaultOptions_getDefaultOptions() {
 51019 function getDefaultOptions() {
 53780   return defaultOptions_defaultOptions;
 51020   return defaultOptions_defaultOptions;
 53781 }
 51021 }
 53782 
 51022 
 53783 function setDefaultOptions(newOptions) {
 51023 function setDefaultOptions(newOptions) {
 53784   defaultOptions_defaultOptions = newOptions;
 51024   defaultOptions_defaultOptions = newOptions;
 53785 }
 51025 }
 53786 
 51026 
 53787 ;// CONCATENATED MODULE: ./node_modules/date-fns/constants.mjs
 51027 ;// ./node_modules/date-fns/constants.mjs
 53788 /**
 51028 /**
 53789  * @module constants
 51029  * @module constants
 53790  * @summary Useful constants
 51030  * @summary Useful constants
 53791  * @description
 51031  * @description
 53792  * Collection of useful date constants.
 51032  * Collection of useful date constants.
 53987  * @name secondsInQuarter
 51227  * @name secondsInQuarter
 53988  * @summary Seconds in 1 quarter.
 51228  * @summary Seconds in 1 quarter.
 53989  */
 51229  */
 53990 const secondsInQuarter = secondsInMonth * 3;
 51230 const secondsInQuarter = secondsInMonth * 3;
 53991 
 51231 
 53992 ;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs
 51232 ;// ./node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs
 53993 
 51233 
 53994 
 51234 
 53995 /**
 51235 /**
 53996  * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
 51236  * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
 53997  * They usually appear for dates that denote time before the timezones were introduced
 51237  * They usually appear for dates that denote time before the timezones were introduced
 54002  * which would lead to incorrect calculations.
 51242  * which would lead to incorrect calculations.
 54003  *
 51243  *
 54004  * This function returns the timezone offset in milliseconds that takes seconds in account.
 51244  * This function returns the timezone offset in milliseconds that takes seconds in account.
 54005  */
 51245  */
 54006 function getTimezoneOffsetInMilliseconds(date) {
 51246 function getTimezoneOffsetInMilliseconds(date) {
 54007   const _date = toDate_toDate(date);
 51247   const _date = toDate(date);
 54008   const utcDate = new Date(
 51248   const utcDate = new Date(
 54009     Date.UTC(
 51249     Date.UTC(
 54010       _date.getFullYear(),
 51250       _date.getFullYear(),
 54011       _date.getMonth(),
 51251       _date.getMonth(),
 54012       _date.getDate(),
 51252       _date.getDate(),
 54018   );
 51258   );
 54019   utcDate.setUTCFullYear(_date.getFullYear());
 51259   utcDate.setUTCFullYear(_date.getFullYear());
 54020   return +date - +utcDate;
 51260   return +date - +utcDate;
 54021 }
 51261 }
 54022 
 51262 
 54023 ;// CONCATENATED MODULE: ./node_modules/date-fns/differenceInCalendarDays.mjs
 51263 ;// ./node_modules/date-fns/differenceInCalendarDays.mjs
 54024 
 51264 
 54025 
 51265 
 54026 
 51266 
 54027 
 51267 
 54028 /**
 51268 /**
 54056  *   new Date(2011, 6, 2, 23, 59)
 51296  *   new Date(2011, 6, 2, 23, 59)
 54057  * )
 51297  * )
 54058  * //=> 1
 51298  * //=> 1
 54059  */
 51299  */
 54060 function differenceInCalendarDays(dateLeft, dateRight) {
 51300 function differenceInCalendarDays(dateLeft, dateRight) {
 54061   const startOfDayLeft = startOfDay_startOfDay(dateLeft);
 51301   const startOfDayLeft = startOfDay(dateLeft);
 54062   const startOfDayRight = startOfDay_startOfDay(dateRight);
 51302   const startOfDayRight = startOfDay(dateRight);
 54063 
 51303 
 54064   const timestampLeft =
 51304   const timestampLeft =
 54065     +startOfDayLeft - getTimezoneOffsetInMilliseconds(startOfDayLeft);
 51305     +startOfDayLeft - getTimezoneOffsetInMilliseconds(startOfDayLeft);
 54066   const timestampRight =
 51306   const timestampRight =
 54067     +startOfDayRight - getTimezoneOffsetInMilliseconds(startOfDayRight);
 51307     +startOfDayRight - getTimezoneOffsetInMilliseconds(startOfDayRight);
 54073 }
 51313 }
 54074 
 51314 
 54075 // Fallback for modularized imports:
 51315 // Fallback for modularized imports:
 54076 /* harmony default export */ const date_fns_differenceInCalendarDays = ((/* unused pure expression or super */ null && (differenceInCalendarDays)));
 51316 /* harmony default export */ const date_fns_differenceInCalendarDays = ((/* unused pure expression or super */ null && (differenceInCalendarDays)));
 54077 
 51317 
 54078 ;// CONCATENATED MODULE: ./node_modules/date-fns/startOfYear.mjs
 51318 ;// ./node_modules/date-fns/startOfYear.mjs
 54079 
 51319 
 54080 
 51320 
 54081 
 51321 
 54082 /**
 51322 /**
 54083  * @name startOfYear
 51323  * @name startOfYear
 54098  * // The start of a year for 2 September 2014 11:55:00:
 51338  * // The start of a year for 2 September 2014 11:55:00:
 54099  * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
 51339  * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
 54100  * //=> Wed Jan 01 2014 00:00:00
 51340  * //=> Wed Jan 01 2014 00:00:00
 54101  */
 51341  */
 54102 function startOfYear(date) {
 51342 function startOfYear(date) {
 54103   const cleanDate = toDate_toDate(date);
 51343   const cleanDate = toDate(date);
 54104   const _date = constructFrom_constructFrom(date, 0);
 51344   const _date = constructFrom(date, 0);
 54105   _date.setFullYear(cleanDate.getFullYear(), 0, 1);
 51345   _date.setFullYear(cleanDate.getFullYear(), 0, 1);
 54106   _date.setHours(0, 0, 0, 0);
 51346   _date.setHours(0, 0, 0, 0);
 54107   return _date;
 51347   return _date;
 54108 }
 51348 }
 54109 
 51349 
 54110 // Fallback for modularized imports:
 51350 // Fallback for modularized imports:
 54111 /* harmony default export */ const date_fns_startOfYear = ((/* unused pure expression or super */ null && (startOfYear)));
 51351 /* harmony default export */ const date_fns_startOfYear = ((/* unused pure expression or super */ null && (startOfYear)));
 54112 
 51352 
 54113 ;// CONCATENATED MODULE: ./node_modules/date-fns/getDayOfYear.mjs
 51353 ;// ./node_modules/date-fns/getDayOfYear.mjs
 54114 
 51354 
 54115 
 51355 
 54116 
 51356 
 54117 
 51357 
 54118 /**
 51358 /**
 54133  * // Which day of the year is 2 July 2014?
 51373  * // Which day of the year is 2 July 2014?
 54134  * const result = getDayOfYear(new Date(2014, 6, 2))
 51374  * const result = getDayOfYear(new Date(2014, 6, 2))
 54135  * //=> 183
 51375  * //=> 183
 54136  */
 51376  */
 54137 function getDayOfYear(date) {
 51377 function getDayOfYear(date) {
 54138   const _date = toDate_toDate(date);
 51378   const _date = toDate(date);
 54139   const diff = differenceInCalendarDays(_date, startOfYear(_date));
 51379   const diff = differenceInCalendarDays(_date, startOfYear(_date));
 54140   const dayOfYear = diff + 1;
 51380   const dayOfYear = diff + 1;
 54141   return dayOfYear;
 51381   return dayOfYear;
 54142 }
 51382 }
 54143 
 51383 
 54144 // Fallback for modularized imports:
 51384 // Fallback for modularized imports:
 54145 /* harmony default export */ const date_fns_getDayOfYear = ((/* unused pure expression or super */ null && (getDayOfYear)));
 51385 /* harmony default export */ const date_fns_getDayOfYear = ((/* unused pure expression or super */ null && (getDayOfYear)));
 54146 
 51386 
 54147 ;// CONCATENATED MODULE: ./node_modules/date-fns/startOfWeek.mjs
 51387 ;// ./node_modules/date-fns/startOfWeek.mjs
 54148 
 51388 
 54149 
 51389 
 54150 
 51390 
 54151 /**
 51391 /**
 54152  * The {@link startOfWeek} function options.
 51392  * The {@link startOfWeek} function options.
 54176  * @example
 51416  * @example
 54177  * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
 51417  * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
 54178  * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
 51418  * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
 54179  * //=> Mon Sep 01 2014 00:00:00
 51419  * //=> Mon Sep 01 2014 00:00:00
 54180  */
 51420  */
 54181 function startOfWeek_startOfWeek(date, options) {
 51421 function startOfWeek(date, options) {
 54182   const defaultOptions = defaultOptions_getDefaultOptions();
 51422   const defaultOptions = getDefaultOptions();
 54183   const weekStartsOn =
 51423   const weekStartsOn =
 54184     options?.weekStartsOn ??
 51424     options?.weekStartsOn ??
 54185     options?.locale?.options?.weekStartsOn ??
 51425     options?.locale?.options?.weekStartsOn ??
 54186     defaultOptions.weekStartsOn ??
 51426     defaultOptions.weekStartsOn ??
 54187     defaultOptions.locale?.options?.weekStartsOn ??
 51427     defaultOptions.locale?.options?.weekStartsOn ??
 54188     0;
 51428     0;
 54189 
 51429 
 54190   const _date = toDate_toDate(date);
 51430   const _date = toDate(date);
 54191   const day = _date.getDay();
 51431   const day = _date.getDay();
 54192   const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
 51432   const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
 54193 
 51433 
 54194   _date.setDate(_date.getDate() - diff);
 51434   _date.setDate(_date.getDate() - diff);
 54195   _date.setHours(0, 0, 0, 0);
 51435   _date.setHours(0, 0, 0, 0);
 54196   return _date;
 51436   return _date;
 54197 }
 51437 }
 54198 
 51438 
 54199 // Fallback for modularized imports:
 51439 // Fallback for modularized imports:
 54200 /* harmony default export */ const date_fns_startOfWeek = ((/* unused pure expression or super */ null && (startOfWeek_startOfWeek)));
 51440 /* harmony default export */ const date_fns_startOfWeek = ((/* unused pure expression or super */ null && (startOfWeek)));
 54201 
 51441 
 54202 ;// CONCATENATED MODULE: ./node_modules/date-fns/startOfISOWeek.mjs
 51442 ;// ./node_modules/date-fns/startOfISOWeek.mjs
 54203 
 51443 
 54204 
 51444 
 54205 /**
 51445 /**
 54206  * @name startOfISOWeek
 51446  * @name startOfISOWeek
 54207  * @category ISO Week Helpers
 51447  * @category ISO Week Helpers
 54223  * // The start of an ISO week for 2 September 2014 11:55:00:
 51463  * // The start of an ISO week for 2 September 2014 11:55:00:
 54224  * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
 51464  * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
 54225  * //=> Mon Sep 01 2014 00:00:00
 51465  * //=> Mon Sep 01 2014 00:00:00
 54226  */
 51466  */
 54227 function startOfISOWeek(date) {
 51467 function startOfISOWeek(date) {
 54228   return startOfWeek_startOfWeek(date, { weekStartsOn: 1 });
 51468   return startOfWeek(date, { weekStartsOn: 1 });
 54229 }
 51469 }
 54230 
 51470 
 54231 // Fallback for modularized imports:
 51471 // Fallback for modularized imports:
 54232 /* harmony default export */ const date_fns_startOfISOWeek = ((/* unused pure expression or super */ null && (startOfISOWeek)));
 51472 /* harmony default export */ const date_fns_startOfISOWeek = ((/* unused pure expression or super */ null && (startOfISOWeek)));
 54233 
 51473 
 54234 ;// CONCATENATED MODULE: ./node_modules/date-fns/getISOWeekYear.mjs
 51474 ;// ./node_modules/date-fns/getISOWeekYear.mjs
 54235 
 51475 
 54236 
 51476 
 54237 
 51477 
 54238 
 51478 
 54239 /**
 51479 /**
 54257  * // Which ISO-week numbering year is 2 January 2005?
 51497  * // Which ISO-week numbering year is 2 January 2005?
 54258  * const result = getISOWeekYear(new Date(2005, 0, 2))
 51498  * const result = getISOWeekYear(new Date(2005, 0, 2))
 54259  * //=> 2004
 51499  * //=> 2004
 54260  */
 51500  */
 54261 function getISOWeekYear(date) {
 51501 function getISOWeekYear(date) {
 54262   const _date = toDate_toDate(date);
 51502   const _date = toDate(date);
 54263   const year = _date.getFullYear();
 51503   const year = _date.getFullYear();
 54264 
 51504 
 54265   const fourthOfJanuaryOfNextYear = constructFrom_constructFrom(date, 0);
 51505   const fourthOfJanuaryOfNextYear = constructFrom(date, 0);
 54266   fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
 51506   fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
 54267   fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
 51507   fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
 54268   const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
 51508   const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
 54269 
 51509 
 54270   const fourthOfJanuaryOfThisYear = constructFrom_constructFrom(date, 0);
 51510   const fourthOfJanuaryOfThisYear = constructFrom(date, 0);
 54271   fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
 51511   fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
 54272   fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
 51512   fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
 54273   const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
 51513   const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
 54274 
 51514 
 54275   if (_date.getTime() >= startOfNextYear.getTime()) {
 51515   if (_date.getTime() >= startOfNextYear.getTime()) {
 54282 }
 51522 }
 54283 
 51523 
 54284 // Fallback for modularized imports:
 51524 // Fallback for modularized imports:
 54285 /* harmony default export */ const date_fns_getISOWeekYear = ((/* unused pure expression or super */ null && (getISOWeekYear)));
 51525 /* harmony default export */ const date_fns_getISOWeekYear = ((/* unused pure expression or super */ null && (getISOWeekYear)));
 54286 
 51526 
 54287 ;// CONCATENATED MODULE: ./node_modules/date-fns/startOfISOWeekYear.mjs
 51527 ;// ./node_modules/date-fns/startOfISOWeekYear.mjs
 54288 
 51528 
 54289 
 51529 
 54290 
 51530 
 54291 
 51531 
 54292 /**
 51532 /**
 54312  * const result = startOfISOWeekYear(new Date(2005, 6, 2))
 51552  * const result = startOfISOWeekYear(new Date(2005, 6, 2))
 54313  * //=> Mon Jan 03 2005 00:00:00
 51553  * //=> Mon Jan 03 2005 00:00:00
 54314  */
 51554  */
 54315 function startOfISOWeekYear(date) {
 51555 function startOfISOWeekYear(date) {
 54316   const year = getISOWeekYear(date);
 51556   const year = getISOWeekYear(date);
 54317   const fourthOfJanuary = constructFrom_constructFrom(date, 0);
 51557   const fourthOfJanuary = constructFrom(date, 0);
 54318   fourthOfJanuary.setFullYear(year, 0, 4);
 51558   fourthOfJanuary.setFullYear(year, 0, 4);
 54319   fourthOfJanuary.setHours(0, 0, 0, 0);
 51559   fourthOfJanuary.setHours(0, 0, 0, 0);
 54320   return startOfISOWeek(fourthOfJanuary);
 51560   return startOfISOWeek(fourthOfJanuary);
 54321 }
 51561 }
 54322 
 51562 
 54323 // Fallback for modularized imports:
 51563 // Fallback for modularized imports:
 54324 /* harmony default export */ const date_fns_startOfISOWeekYear = ((/* unused pure expression or super */ null && (startOfISOWeekYear)));
 51564 /* harmony default export */ const date_fns_startOfISOWeekYear = ((/* unused pure expression or super */ null && (startOfISOWeekYear)));
 54325 
 51565 
 54326 ;// CONCATENATED MODULE: ./node_modules/date-fns/getISOWeek.mjs
 51566 ;// ./node_modules/date-fns/getISOWeek.mjs
 54327 
 51567 
 54328 
 51568 
 54329 
 51569 
 54330 
 51570 
 54331 
 51571 
 54349  * // Which week of the ISO-week numbering year is 2 January 2005?
 51589  * // Which week of the ISO-week numbering year is 2 January 2005?
 54350  * const result = getISOWeek(new Date(2005, 0, 2))
 51590  * const result = getISOWeek(new Date(2005, 0, 2))
 54351  * //=> 53
 51591  * //=> 53
 54352  */
 51592  */
 54353 function getISOWeek(date) {
 51593 function getISOWeek(date) {
 54354   const _date = toDate_toDate(date);
 51594   const _date = toDate(date);
 54355   const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
 51595   const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
 54356 
 51596 
 54357   // Round the number of weeks to the nearest integer because the number of
 51597   // Round the number of weeks to the nearest integer because the number of
 54358   // milliseconds in a week is not constant (e.g. it's different in the week of
 51598   // milliseconds in a week is not constant (e.g. it's different in the week of
 54359   // the daylight saving time clock shift).
 51599   // the daylight saving time clock shift).
 54361 }
 51601 }
 54362 
 51602 
 54363 // Fallback for modularized imports:
 51603 // Fallback for modularized imports:
 54364 /* harmony default export */ const date_fns_getISOWeek = ((/* unused pure expression or super */ null && (getISOWeek)));
 51604 /* harmony default export */ const date_fns_getISOWeek = ((/* unused pure expression or super */ null && (getISOWeek)));
 54365 
 51605 
 54366 ;// CONCATENATED MODULE: ./node_modules/date-fns/getWeekYear.mjs
 51606 ;// ./node_modules/date-fns/getWeekYear.mjs
 54367 
 51607 
 54368 
 51608 
 54369 
 51609 
 54370 
 51610 
 54371 
 51611 
 54408  * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
 51648  * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
 54409  * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
 51649  * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
 54410  * //=> 2004
 51650  * //=> 2004
 54411  */
 51651  */
 54412 function getWeekYear(date, options) {
 51652 function getWeekYear(date, options) {
 54413   const _date = toDate_toDate(date);
 51653   const _date = toDate(date);
 54414   const year = _date.getFullYear();
 51654   const year = _date.getFullYear();
 54415 
 51655 
 54416   const defaultOptions = defaultOptions_getDefaultOptions();
 51656   const defaultOptions = getDefaultOptions();
 54417   const firstWeekContainsDate =
 51657   const firstWeekContainsDate =
 54418     options?.firstWeekContainsDate ??
 51658     options?.firstWeekContainsDate ??
 54419     options?.locale?.options?.firstWeekContainsDate ??
 51659     options?.locale?.options?.firstWeekContainsDate ??
 54420     defaultOptions.firstWeekContainsDate ??
 51660     defaultOptions.firstWeekContainsDate ??
 54421     defaultOptions.locale?.options?.firstWeekContainsDate ??
 51661     defaultOptions.locale?.options?.firstWeekContainsDate ??
 54422     1;
 51662     1;
 54423 
 51663 
 54424   const firstWeekOfNextYear = constructFrom_constructFrom(date, 0);
 51664   const firstWeekOfNextYear = constructFrom(date, 0);
 54425   firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
 51665   firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
 54426   firstWeekOfNextYear.setHours(0, 0, 0, 0);
 51666   firstWeekOfNextYear.setHours(0, 0, 0, 0);
 54427   const startOfNextYear = startOfWeek_startOfWeek(firstWeekOfNextYear, options);
 51667   const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
 54428 
 51668 
 54429   const firstWeekOfThisYear = constructFrom_constructFrom(date, 0);
 51669   const firstWeekOfThisYear = constructFrom(date, 0);
 54430   firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
 51670   firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
 54431   firstWeekOfThisYear.setHours(0, 0, 0, 0);
 51671   firstWeekOfThisYear.setHours(0, 0, 0, 0);
 54432   const startOfThisYear = startOfWeek_startOfWeek(firstWeekOfThisYear, options);
 51672   const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
 54433 
 51673 
 54434   if (_date.getTime() >= startOfNextYear.getTime()) {
 51674   if (_date.getTime() >= startOfNextYear.getTime()) {
 54435     return year + 1;
 51675     return year + 1;
 54436   } else if (_date.getTime() >= startOfThisYear.getTime()) {
 51676   } else if (_date.getTime() >= startOfThisYear.getTime()) {
 54437     return year;
 51677     return year;
 54441 }
 51681 }
 54442 
 51682 
 54443 // Fallback for modularized imports:
 51683 // Fallback for modularized imports:
 54444 /* harmony default export */ const date_fns_getWeekYear = ((/* unused pure expression or super */ null && (getWeekYear)));
 51684 /* harmony default export */ const date_fns_getWeekYear = ((/* unused pure expression or super */ null && (getWeekYear)));
 54445 
 51685 
 54446 ;// CONCATENATED MODULE: ./node_modules/date-fns/startOfWeekYear.mjs
 51686 ;// ./node_modules/date-fns/startOfWeekYear.mjs
 54447 
 51687 
 54448 
 51688 
 54449 
 51689 
 54450 
 51690 
 54451 
 51691 
 54488  *   firstWeekContainsDate: 4
 51728  *   firstWeekContainsDate: 4
 54489  * })
 51729  * })
 54490  * //=> Mon Jan 03 2005 00:00:00
 51730  * //=> Mon Jan 03 2005 00:00:00
 54491  */
 51731  */
 54492 function startOfWeekYear(date, options) {
 51732 function startOfWeekYear(date, options) {
 54493   const defaultOptions = defaultOptions_getDefaultOptions();
 51733   const defaultOptions = getDefaultOptions();
 54494   const firstWeekContainsDate =
 51734   const firstWeekContainsDate =
 54495     options?.firstWeekContainsDate ??
 51735     options?.firstWeekContainsDate ??
 54496     options?.locale?.options?.firstWeekContainsDate ??
 51736     options?.locale?.options?.firstWeekContainsDate ??
 54497     defaultOptions.firstWeekContainsDate ??
 51737     defaultOptions.firstWeekContainsDate ??
 54498     defaultOptions.locale?.options?.firstWeekContainsDate ??
 51738     defaultOptions.locale?.options?.firstWeekContainsDate ??
 54499     1;
 51739     1;
 54500 
 51740 
 54501   const year = getWeekYear(date, options);
 51741   const year = getWeekYear(date, options);
 54502   const firstWeek = constructFrom_constructFrom(date, 0);
 51742   const firstWeek = constructFrom(date, 0);
 54503   firstWeek.setFullYear(year, 0, firstWeekContainsDate);
 51743   firstWeek.setFullYear(year, 0, firstWeekContainsDate);
 54504   firstWeek.setHours(0, 0, 0, 0);
 51744   firstWeek.setHours(0, 0, 0, 0);
 54505   const _date = startOfWeek_startOfWeek(firstWeek, options);
 51745   const _date = startOfWeek(firstWeek, options);
 54506   return _date;
 51746   return _date;
 54507 }
 51747 }
 54508 
 51748 
 54509 // Fallback for modularized imports:
 51749 // Fallback for modularized imports:
 54510 /* harmony default export */ const date_fns_startOfWeekYear = ((/* unused pure expression or super */ null && (startOfWeekYear)));
 51750 /* harmony default export */ const date_fns_startOfWeekYear = ((/* unused pure expression or super */ null && (startOfWeekYear)));
 54511 
 51751 
 54512 ;// CONCATENATED MODULE: ./node_modules/date-fns/getWeek.mjs
 51752 ;// ./node_modules/date-fns/getWeek.mjs
 54513 
 51753 
 54514 
 51754 
 54515 
 51755 
 54516 
 51756 
 54517 
 51757 
 54555  * })
 51795  * })
 54556  * //=> 53
 51796  * //=> 53
 54557  */
 51797  */
 54558 
 51798 
 54559 function getWeek(date, options) {
 51799 function getWeek(date, options) {
 54560   const _date = toDate_toDate(date);
 51800   const _date = toDate(date);
 54561   const diff = +startOfWeek_startOfWeek(_date, options) - +startOfWeekYear(_date, options);
 51801   const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
 54562 
 51802 
 54563   // Round the number of weeks to the nearest integer because the number of
 51803   // Round the number of weeks to the nearest integer because the number of
 54564   // milliseconds in a week is not constant (e.g. it's different in the week of
 51804   // milliseconds in a week is not constant (e.g. it's different in the week of
 54565   // the daylight saving time clock shift).
 51805   // the daylight saving time clock shift).
 54566   return Math.round(diff / millisecondsInWeek) + 1;
 51806   return Math.round(diff / millisecondsInWeek) + 1;
 54567 }
 51807 }
 54568 
 51808 
 54569 // Fallback for modularized imports:
 51809 // Fallback for modularized imports:
 54570 /* harmony default export */ const date_fns_getWeek = ((/* unused pure expression or super */ null && (getWeek)));
 51810 /* harmony default export */ const date_fns_getWeek = ((/* unused pure expression or super */ null && (getWeek)));
 54571 
 51811 
 54572 ;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/addLeadingZeros.mjs
 51812 ;// ./node_modules/date-fns/_lib/addLeadingZeros.mjs
 54573 function addLeadingZeros(number, targetLength) {
 51813 function addLeadingZeros(number, targetLength) {
 54574   const sign = number < 0 ? "-" : "";
 51814   const sign = number < 0 ? "-" : "";
 54575   const output = Math.abs(number).toString().padStart(targetLength, "0");
 51815   const output = Math.abs(number).toString().padStart(targetLength, "0");
 54576   return sign + output;
 51816   return sign + output;
 54577 }
 51817 }
 54578 
 51818 
 54579 ;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/format/lightFormatters.mjs
 51819 ;// ./node_modules/date-fns/_lib/format/lightFormatters.mjs
 54580 
 51820 
 54581 
 51821 
 54582 /*
 51822 /*
 54583  * |     | Unit                           |     | Unit                           |
 51823  * |     | Unit                           |     | Unit                           |
 54584  * |-----|--------------------------------|-----|--------------------------------|
 51824  * |-----|--------------------------------|-----|--------------------------------|
 54668     );
 51908     );
 54669     return addLeadingZeros(fractionalSeconds, token.length);
 51909     return addLeadingZeros(fractionalSeconds, token.length);
 54670   },
 51910   },
 54671 };
 51911 };
 54672 
 51912 
 54673 ;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/format/formatters.mjs
 51913 ;// ./node_modules/date-fns/_lib/format/formatters.mjs
 54674 
 51914 
 54675 
 51915 
 54676 
 51916 
 54677 
 51917 
 54678 
 51918 
 55446   const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);
 52686   const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);
 55447   const minutes = addLeadingZeros(absOffset % 60, 2);
 52687   const minutes = addLeadingZeros(absOffset % 60, 2);
 55448   return sign + hours + delimiter + minutes;
 52688   return sign + hours + delimiter + minutes;
 55449 }
 52689 }
 55450 
 52690 
 55451 ;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/format/longFormatters.mjs
 52691 ;// ./node_modules/date-fns/_lib/format/longFormatters.mjs
 55452 const dateLongFormatter = (pattern, formatLong) => {
 52692 const dateLongFormatter = (pattern, formatLong) => {
 55453   switch (pattern) {
 52693   switch (pattern) {
 55454     case "P":
 52694     case "P":
 55455       return formatLong.date({ width: "short" });
 52695       return formatLong.date({ width: "short" });
 55456     case "PP":
 52696     case "PP":
 55512 const longFormatters = {
 52752 const longFormatters = {
 55513   p: timeLongFormatter,
 52753   p: timeLongFormatter,
 55514   P: dateTimeLongFormatter,
 52754   P: dateTimeLongFormatter,
 55515 };
 52755 };
 55516 
 52756 
 55517 ;// CONCATENATED MODULE: ./node_modules/date-fns/_lib/protectedTokens.mjs
 52757 ;// ./node_modules/date-fns/_lib/protectedTokens.mjs
 55518 const dayOfYearTokenRE = /^D+$/;
 52758 const dayOfYearTokenRE = /^D+$/;
 55519 const weekYearTokenRE = /^Y+$/;
 52759 const weekYearTokenRE = /^Y+$/;
 55520 
 52760 
 55521 const throwTokens = ["D", "DD", "YY", "YYYY"];
 52761 const throwTokens = ["D", "DD", "YY", "YYYY"];
 55522 
 52762 
 55537 function message(token, format, input) {
 52777 function message(token, format, input) {
 55538   const subject = token[0] === "Y" ? "years" : "days of the month";
 52778   const subject = token[0] === "Y" ? "years" : "days of the month";
 55539   return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
 52779   return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
 55540 }
 52780 }
 55541 
 52781 
 55542 ;// CONCATENATED MODULE: ./node_modules/date-fns/isDate.mjs
 52782 ;// ./node_modules/date-fns/isDate.mjs
 55543 /**
 52783 /**
 55544  * @name isDate
 52784  * @name isDate
 55545  * @category Common Helpers
 52785  * @category Common Helpers
 55546  * @summary Is the given value a date?
 52786  * @summary Is the given value a date?
 55547  *
 52787  *
 55581 }
 52821 }
 55582 
 52822 
 55583 // Fallback for modularized imports:
 52823 // Fallback for modularized imports:
 55584 /* harmony default export */ const date_fns_isDate = ((/* unused pure expression or super */ null && (isDate)));
 52824 /* harmony default export */ const date_fns_isDate = ((/* unused pure expression or super */ null && (isDate)));
 55585 
 52825 
 55586 ;// CONCATENATED MODULE: ./node_modules/date-fns/isValid.mjs
 52826 ;// ./node_modules/date-fns/isValid.mjs
 55587 
 52827 
 55588 
 52828 
 55589 
 52829 
 55590 /**
 52830 /**
 55591  * @name isValid
 52831  * @name isValid
 55622  */
 52862  */
 55623 function isValid(date) {
 52863 function isValid(date) {
 55624   if (!isDate(date) && typeof date !== "number") {
 52864   if (!isDate(date) && typeof date !== "number") {
 55625     return false;
 52865     return false;
 55626   }
 52866   }
 55627   const _date = toDate_toDate(date);
 52867   const _date = toDate(date);
 55628   return !isNaN(Number(_date));
 52868   return !isNaN(Number(_date));
 55629 }
 52869 }
 55630 
 52870 
 55631 // Fallback for modularized imports:
 52871 // Fallback for modularized imports:
 55632 /* harmony default export */ const date_fns_isValid = ((/* unused pure expression or super */ null && (isValid)));
 52872 /* harmony default export */ const date_fns_isValid = ((/* unused pure expression or super */ null && (isValid)));
 55633 
 52873 
 55634 ;// CONCATENATED MODULE: ./node_modules/date-fns/format.mjs
 52874 ;// ./node_modules/date-fns/format.mjs
 55635 
 52875 
 55636 
 52876 
 55637 
 52877 
 55638 
 52878 
 55639 
 52879 
 55957  * // Escape string by single quote characters:
 53197  * // Escape string by single quote characters:
 55958  * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
 53198  * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
 55959  * //=> "3 o'clock"
 53199  * //=> "3 o'clock"
 55960  */
 53200  */
 55961 function format(date, formatStr, options) {
 53201 function format(date, formatStr, options) {
 55962   const defaultOptions = defaultOptions_getDefaultOptions();
 53202   const defaultOptions = getDefaultOptions();
 55963   const locale = options?.locale ?? defaultOptions.locale ?? enUS;
 53203   const locale = options?.locale ?? defaultOptions.locale ?? enUS;
 55964 
 53204 
 55965   const firstWeekContainsDate =
 53205   const firstWeekContainsDate =
 55966     options?.firstWeekContainsDate ??
 53206     options?.firstWeekContainsDate ??
 55967     options?.locale?.options?.firstWeekContainsDate ??
 53207     options?.locale?.options?.firstWeekContainsDate ??
 55974     options?.locale?.options?.weekStartsOn ??
 53214     options?.locale?.options?.weekStartsOn ??
 55975     defaultOptions.weekStartsOn ??
 53215     defaultOptions.weekStartsOn ??
 55976     defaultOptions.locale?.options?.weekStartsOn ??
 53216     defaultOptions.locale?.options?.weekStartsOn ??
 55977     0;
 53217     0;
 55978 
 53218 
 55979   const originalDate = toDate_toDate(date);
 53219   const originalDate = toDate(date);
 55980 
 53220 
 55981   if (!isValid(originalDate)) {
 53221   if (!isValid(originalDate)) {
 55982     throw new RangeError("Invalid time value");
 53222     throw new RangeError("Invalid time value");
 55983   }
 53223   }
 55984 
 53224 
 56063 }
 53303 }
 56064 
 53304 
 56065 // Fallback for modularized imports:
 53305 // Fallback for modularized imports:
 56066 /* harmony default export */ const date_fns_format = ((/* unused pure expression or super */ null && (format)));
 53306 /* harmony default export */ const date_fns_format = ((/* unused pure expression or super */ null && (format)));
 56067 
 53307 
 56068 ;// CONCATENATED MODULE: ./node_modules/date-fns/isSameMonth.mjs
 53308 ;// ./node_modules/date-fns/isSameMonth.mjs
 56069 
 53309 
 56070 
 53310 
 56071 /**
 53311 /**
 56072  * @name isSameMonth
 53312  * @name isSameMonth
 56073  * @category Month Helpers
 53313  * @category Month Helpers
 56092  * // Are 2 September 2014 and 25 September 2015 in the same month?
 53332  * // Are 2 September 2014 and 25 September 2015 in the same month?
 56093  * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
 53333  * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
 56094  * //=> false
 53334  * //=> false
 56095  */
 53335  */
 56096 function isSameMonth(dateLeft, dateRight) {
 53336 function isSameMonth(dateLeft, dateRight) {
 56097   const _dateLeft = toDate_toDate(dateLeft);
 53337   const _dateLeft = toDate(dateLeft);
 56098   const _dateRight = toDate_toDate(dateRight);
 53338   const _dateRight = toDate(dateRight);
 56099   return (
 53339   return (
 56100     _dateLeft.getFullYear() === _dateRight.getFullYear() &&
 53340     _dateLeft.getFullYear() === _dateRight.getFullYear() &&
 56101     _dateLeft.getMonth() === _dateRight.getMonth()
 53341     _dateLeft.getMonth() === _dateRight.getMonth()
 56102   );
 53342   );
 56103 }
 53343 }
 56104 
 53344 
 56105 // Fallback for modularized imports:
 53345 // Fallback for modularized imports:
 56106 /* harmony default export */ const date_fns_isSameMonth = ((/* unused pure expression or super */ null && (isSameMonth)));
 53346 /* harmony default export */ const date_fns_isSameMonth = ((/* unused pure expression or super */ null && (isSameMonth)));
 56107 
 53347 
 56108 ;// CONCATENATED MODULE: ./node_modules/date-fns/isEqual.mjs
 53348 ;// ./node_modules/date-fns/isEqual.mjs
 56109 
 53349 
 56110 
 53350 
 56111 /**
 53351 /**
 56112  * @name isEqual
 53352  * @name isEqual
 56113  * @category Common Helpers
 53353  * @category Common Helpers
 56129  *   new Date(2014, 6, 2, 6, 30, 45, 0),
 53369  *   new Date(2014, 6, 2, 6, 30, 45, 0),
 56130  *   new Date(2014, 6, 2, 6, 30, 45, 500)
 53370  *   new Date(2014, 6, 2, 6, 30, 45, 500)
 56131  * )
 53371  * )
 56132  * //=> false
 53372  * //=> false
 56133  */
 53373  */
 56134 function isEqual_isEqual(leftDate, rightDate) {
 53374 function isEqual(leftDate, rightDate) {
 56135   const _dateLeft = toDate_toDate(leftDate);
 53375   const _dateLeft = toDate(leftDate);
 56136   const _dateRight = toDate_toDate(rightDate);
 53376   const _dateRight = toDate(rightDate);
 56137   return +_dateLeft === +_dateRight;
 53377   return +_dateLeft === +_dateRight;
 56138 }
 53378 }
 56139 
 53379 
 56140 // Fallback for modularized imports:
 53380 // Fallback for modularized imports:
 56141 /* harmony default export */ const date_fns_isEqual = ((/* unused pure expression or super */ null && (isEqual_isEqual)));
 53381 /* harmony default export */ const date_fns_isEqual = ((/* unused pure expression or super */ null && (isEqual)));
 56142 
 53382 
 56143 ;// CONCATENATED MODULE: ./node_modules/date-fns/isSameDay.mjs
 53383 ;// ./node_modules/date-fns/isSameDay.mjs
 56144 
 53384 
 56145 
 53385 
 56146 /**
 53386 /**
 56147  * @name isSameDay
 53387  * @name isSameDay
 56148  * @category Day Helpers
 53388  * @category Day Helpers
 56172  * // Are 4 September, 2014 and 4 September, 2015 in the same day?
 53412  * // Are 4 September, 2014 and 4 September, 2015 in the same day?
 56173  * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
 53413  * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
 56174  * //=> false
 53414  * //=> false
 56175  */
 53415  */
 56176 function isSameDay(dateLeft, dateRight) {
 53416 function isSameDay(dateLeft, dateRight) {
 56177   const dateLeftStartOfDay = startOfDay_startOfDay(dateLeft);
 53417   const dateLeftStartOfDay = startOfDay(dateLeft);
 56178   const dateRightStartOfDay = startOfDay_startOfDay(dateRight);
 53418   const dateRightStartOfDay = startOfDay(dateRight);
 56179 
 53419 
 56180   return +dateLeftStartOfDay === +dateRightStartOfDay;
 53420   return +dateLeftStartOfDay === +dateRightStartOfDay;
 56181 }
 53421 }
 56182 
 53422 
 56183 // Fallback for modularized imports:
 53423 // Fallback for modularized imports:
 56184 /* harmony default export */ const date_fns_isSameDay = ((/* unused pure expression or super */ null && (isSameDay)));
 53424 /* harmony default export */ const date_fns_isSameDay = ((/* unused pure expression or super */ null && (isSameDay)));
 56185 
 53425 
 56186 ;// CONCATENATED MODULE: ./node_modules/date-fns/addDays.mjs
 53426 ;// ./node_modules/date-fns/addDays.mjs
 56187 
 53427 
 56188 
 53428 
 56189 
 53429 
 56190 /**
 53430 /**
 56191  * @name addDays
 53431  * @name addDays
 56205  * @example
 53445  * @example
 56206  * // Add 10 days to 1 September 2014:
 53446  * // Add 10 days to 1 September 2014:
 56207  * const result = addDays(new Date(2014, 8, 1), 10)
 53447  * const result = addDays(new Date(2014, 8, 1), 10)
 56208  * //=> Thu Sep 11 2014 00:00:00
 53448  * //=> Thu Sep 11 2014 00:00:00
 56209  */
 53449  */
 56210 function addDays_addDays(date, amount) {
 53450 function addDays(date, amount) {
 56211   const _date = toDate_toDate(date);
 53451   const _date = toDate(date);
 56212   if (isNaN(amount)) return constructFrom_constructFrom(date, NaN);
 53452   if (isNaN(amount)) return constructFrom(date, NaN);
 56213   if (!amount) {
 53453   if (!amount) {
 56214     // If 0 days, no-op to avoid changing times in the hour before end of DST
 53454     // If 0 days, no-op to avoid changing times in the hour before end of DST
 56215     return _date;
 53455     return _date;
 56216   }
 53456   }
 56217   _date.setDate(_date.getDate() + amount);
 53457   _date.setDate(_date.getDate() + amount);
 56218   return _date;
 53458   return _date;
 56219 }
 53459 }
 56220 
 53460 
 56221 // Fallback for modularized imports:
 53461 // Fallback for modularized imports:
 56222 /* harmony default export */ const date_fns_addDays = ((/* unused pure expression or super */ null && (addDays_addDays)));
 53462 /* harmony default export */ const date_fns_addDays = ((/* unused pure expression or super */ null && (addDays)));
 56223 
 53463 
 56224 ;// CONCATENATED MODULE: ./node_modules/date-fns/addWeeks.mjs
 53464 ;// ./node_modules/date-fns/addWeeks.mjs
 56225 
 53465 
 56226 
 53466 
 56227 /**
 53467 /**
 56228  * @name addWeeks
 53468  * @name addWeeks
 56229  * @category Week Helpers
 53469  * @category Week Helpers
 56242  * @example
 53482  * @example
 56243  * // Add 4 weeks to 1 September 2014:
 53483  * // Add 4 weeks to 1 September 2014:
 56244  * const result = addWeeks(new Date(2014, 8, 1), 4)
 53484  * const result = addWeeks(new Date(2014, 8, 1), 4)
 56245  * //=> Mon Sep 29 2014 00:00:00
 53485  * //=> Mon Sep 29 2014 00:00:00
 56246  */
 53486  */
 56247 function addWeeks_addWeeks(date, amount) {
 53487 function addWeeks(date, amount) {
 56248   const days = amount * 7;
 53488   const days = amount * 7;
 56249   return addDays_addDays(date, days);
 53489   return addDays(date, days);
 56250 }
 53490 }
 56251 
 53491 
 56252 // Fallback for modularized imports:
 53492 // Fallback for modularized imports:
 56253 /* harmony default export */ const date_fns_addWeeks = ((/* unused pure expression or super */ null && (addWeeks_addWeeks)));
 53493 /* harmony default export */ const date_fns_addWeeks = ((/* unused pure expression or super */ null && (addWeeks)));
 56254 
 53494 
 56255 ;// CONCATENATED MODULE: ./node_modules/date-fns/subWeeks.mjs
 53495 ;// ./node_modules/date-fns/subWeeks.mjs
 56256 
 53496 
 56257 
 53497 
 56258 /**
 53498 /**
 56259  * @name subWeeks
 53499  * @name subWeeks
 56260  * @category Week Helpers
 53500  * @category Week Helpers
 56274  * // Subtract 4 weeks from 1 September 2014:
 53514  * // Subtract 4 weeks from 1 September 2014:
 56275  * const result = subWeeks(new Date(2014, 8, 1), 4)
 53515  * const result = subWeeks(new Date(2014, 8, 1), 4)
 56276  * //=> Mon Aug 04 2014 00:00:00
 53516  * //=> Mon Aug 04 2014 00:00:00
 56277  */
 53517  */
 56278 function subWeeks(date, amount) {
 53518 function subWeeks(date, amount) {
 56279   return addWeeks_addWeeks(date, -amount);
 53519   return addWeeks(date, -amount);
 56280 }
 53520 }
 56281 
 53521 
 56282 // Fallback for modularized imports:
 53522 // Fallback for modularized imports:
 56283 /* harmony default export */ const date_fns_subWeeks = ((/* unused pure expression or super */ null && (subWeeks)));
 53523 /* harmony default export */ const date_fns_subWeeks = ((/* unused pure expression or super */ null && (subWeeks)));
 56284 
 53524 
 56285 ;// CONCATENATED MODULE: ./node_modules/date-fns/endOfWeek.mjs
 53525 ;// ./node_modules/date-fns/endOfWeek.mjs
 56286 
 53526 
 56287 
 53527 
 56288 
 53528 
 56289 /**
 53529 /**
 56290  * The {@link endOfWeek} function options.
 53530  * The {@link endOfWeek} function options.
 56314  * @example
 53554  * @example
 56315  * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
 53555  * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
 56316  * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
 53556  * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
 56317  * //=> Sun Sep 07 2014 23:59:59.999
 53557  * //=> Sun Sep 07 2014 23:59:59.999
 56318  */
 53558  */
 56319 function endOfWeek_endOfWeek(date, options) {
 53559 function endOfWeek(date, options) {
 56320   const defaultOptions = defaultOptions_getDefaultOptions();
 53560   const defaultOptions = getDefaultOptions();
 56321   const weekStartsOn =
 53561   const weekStartsOn =
 56322     options?.weekStartsOn ??
 53562     options?.weekStartsOn ??
 56323     options?.locale?.options?.weekStartsOn ??
 53563     options?.locale?.options?.weekStartsOn ??
 56324     defaultOptions.weekStartsOn ??
 53564     defaultOptions.weekStartsOn ??
 56325     defaultOptions.locale?.options?.weekStartsOn ??
 53565     defaultOptions.locale?.options?.weekStartsOn ??
 56326     0;
 53566     0;
 56327 
 53567 
 56328   const _date = toDate_toDate(date);
 53568   const _date = toDate(date);
 56329   const day = _date.getDay();
 53569   const day = _date.getDay();
 56330   const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
 53570   const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
 56331 
 53571 
 56332   _date.setDate(_date.getDate() + diff);
 53572   _date.setDate(_date.getDate() + diff);
 56333   _date.setHours(23, 59, 59, 999);
 53573   _date.setHours(23, 59, 59, 999);
 56334   return _date;
 53574   return _date;
 56335 }
 53575 }
 56336 
 53576 
 56337 // Fallback for modularized imports:
 53577 // Fallback for modularized imports:
 56338 /* harmony default export */ const date_fns_endOfWeek = ((/* unused pure expression or super */ null && (endOfWeek_endOfWeek)));
 53578 /* harmony default export */ const date_fns_endOfWeek = ((/* unused pure expression or super */ null && (endOfWeek)));
 56339 
 53579 
 56340 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-right.js
 53580 ;// ./node_modules/@wordpress/icons/build-module/library/arrow-right.js
 56341 /**
 53581 /**
 56342  * WordPress dependencies
 53582  * WordPress dependencies
 56343  */
 53583  */
 56344 
 53584 
 56345 
 53585 
 56350     d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
 53590     d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
 56351   })
 53591   })
 56352 });
 53592 });
 56353 /* harmony default export */ const arrow_right = (arrowRight);
 53593 /* harmony default export */ const arrow_right = (arrowRight);
 56354 
 53594 
 56355 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js
 53595 ;// ./node_modules/@wordpress/icons/build-module/library/arrow-left.js
 56356 /**
 53596 /**
 56357  * WordPress dependencies
 53597  * WordPress dependencies
 56358  */
 53598  */
 56359 
 53599 
 56360 
 53600 
 56365     d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
 53605     d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
 56366   })
 53606   })
 56367 });
 53607 });
 56368 /* harmony default export */ const arrow_left = (arrowLeft);
 53608 /* harmony default export */ const arrow_left = (arrowLeft);
 56369 
 53609 
 56370 ;// CONCATENATED MODULE: external ["wp","date"]
 53610 ;// external ["wp","date"]
 56371 const external_wp_date_namespaceObject = window["wp"]["date"];
 53611 const external_wp_date_namespaceObject = window["wp"]["date"];
 56372 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date/styles.js
 53612 ;// ./node_modules/date-fns/isAfter.mjs
 56373 
 53613 
 56374 function date_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 53614 
       
 53615 /**
       
 53616  * @name isAfter
       
 53617  * @category Common Helpers
       
 53618  * @summary Is the first date after the second one?
       
 53619  *
       
 53620  * @description
       
 53621  * Is the first date after the second one?
       
 53622  *
       
 53623  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53624  *
       
 53625  * @param date - The date that should be after the other one to return true
       
 53626  * @param dateToCompare - The date to compare with
       
 53627  *
       
 53628  * @returns The first date is after the second date
       
 53629  *
       
 53630  * @example
       
 53631  * // Is 10 July 1989 after 11 February 1987?
       
 53632  * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
       
 53633  * //=> true
       
 53634  */
       
 53635 function isAfter(date, dateToCompare) {
       
 53636   const _date = toDate(date);
       
 53637   const _dateToCompare = toDate(dateToCompare);
       
 53638   return _date.getTime() > _dateToCompare.getTime();
       
 53639 }
       
 53640 
       
 53641 // Fallback for modularized imports:
       
 53642 /* harmony default export */ const date_fns_isAfter = ((/* unused pure expression or super */ null && (isAfter)));
       
 53643 
       
 53644 ;// ./node_modules/date-fns/isBefore.mjs
       
 53645 
       
 53646 
       
 53647 /**
       
 53648  * @name isBefore
       
 53649  * @category Common Helpers
       
 53650  * @summary Is the first date before the second one?
       
 53651  *
       
 53652  * @description
       
 53653  * Is the first date before the second one?
       
 53654  *
       
 53655  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53656  *
       
 53657  * @param date - The date that should be before the other one to return true
       
 53658  * @param dateToCompare - The date to compare with
       
 53659  *
       
 53660  * @returns The first date is before the second date
       
 53661  *
       
 53662  * @example
       
 53663  * // Is 10 July 1989 before 11 February 1987?
       
 53664  * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
       
 53665  * //=> false
       
 53666  */
       
 53667 function isBefore(date, dateToCompare) {
       
 53668   const _date = toDate(date);
       
 53669   const _dateToCompare = toDate(dateToCompare);
       
 53670   return +_date < +_dateToCompare;
       
 53671 }
       
 53672 
       
 53673 // Fallback for modularized imports:
       
 53674 /* harmony default export */ const date_fns_isBefore = ((/* unused pure expression or super */ null && (isBefore)));
       
 53675 
       
 53676 ;// ./node_modules/date-fns/getDaysInMonth.mjs
       
 53677 
       
 53678 
       
 53679 
       
 53680 /**
       
 53681  * @name getDaysInMonth
       
 53682  * @category Month Helpers
       
 53683  * @summary Get the number of days in a month of the given date.
       
 53684  *
       
 53685  * @description
       
 53686  * Get the number of days in a month of the given date.
       
 53687  *
       
 53688  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53689  *
       
 53690  * @param date - The given date
       
 53691  *
       
 53692  * @returns The number of days in a month
       
 53693  *
       
 53694  * @example
       
 53695  * // How many days are in February 2000?
       
 53696  * const result = getDaysInMonth(new Date(2000, 1))
       
 53697  * //=> 29
       
 53698  */
       
 53699 function getDaysInMonth(date) {
       
 53700   const _date = toDate(date);
       
 53701   const year = _date.getFullYear();
       
 53702   const monthIndex = _date.getMonth();
       
 53703   const lastDayOfMonth = constructFrom(date, 0);
       
 53704   lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
       
 53705   lastDayOfMonth.setHours(0, 0, 0, 0);
       
 53706   return lastDayOfMonth.getDate();
       
 53707 }
       
 53708 
       
 53709 // Fallback for modularized imports:
       
 53710 /* harmony default export */ const date_fns_getDaysInMonth = ((/* unused pure expression or super */ null && (getDaysInMonth)));
       
 53711 
       
 53712 ;// ./node_modules/date-fns/setMonth.mjs
       
 53713 
       
 53714 
       
 53715 
       
 53716 
       
 53717 /**
       
 53718  * @name setMonth
       
 53719  * @category Month Helpers
       
 53720  * @summary Set the month to the given date.
       
 53721  *
       
 53722  * @description
       
 53723  * Set the month to the given date.
       
 53724  *
       
 53725  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53726  *
       
 53727  * @param date - The date to be changed
       
 53728  * @param month - The month index to set (0-11)
       
 53729  *
       
 53730  * @returns The new date with the month set
       
 53731  *
       
 53732  * @example
       
 53733  * // Set February to 1 September 2014:
       
 53734  * const result = setMonth(new Date(2014, 8, 1), 1)
       
 53735  * //=> Sat Feb 01 2014 00:00:00
       
 53736  */
       
 53737 function setMonth(date, month) {
       
 53738   const _date = toDate(date);
       
 53739   const year = _date.getFullYear();
       
 53740   const day = _date.getDate();
       
 53741 
       
 53742   const dateWithDesiredMonth = constructFrom(date, 0);
       
 53743   dateWithDesiredMonth.setFullYear(year, month, 15);
       
 53744   dateWithDesiredMonth.setHours(0, 0, 0, 0);
       
 53745   const daysInMonth = getDaysInMonth(dateWithDesiredMonth);
       
 53746   // Set the last day of the new month
       
 53747   // if the original date was the last day of the longer month
       
 53748   _date.setMonth(month, Math.min(day, daysInMonth));
       
 53749   return _date;
       
 53750 }
       
 53751 
       
 53752 // Fallback for modularized imports:
       
 53753 /* harmony default export */ const date_fns_setMonth = ((/* unused pure expression or super */ null && (setMonth)));
       
 53754 
       
 53755 ;// ./node_modules/date-fns/set.mjs
       
 53756 
       
 53757 
       
 53758 
       
 53759 
       
 53760 /**
       
 53761  * @name set
       
 53762  * @category Common Helpers
       
 53763  * @summary Set date values to a given date.
       
 53764  *
       
 53765  * @description
       
 53766  * Set date values to a given date.
       
 53767  *
       
 53768  * Sets time values to date from object `values`.
       
 53769  * A value is not set if it is undefined or null or doesn't exist in `values`.
       
 53770  *
       
 53771  * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts
       
 53772  * to use native `Date#setX` methods. If you use this function, you may not want to include the
       
 53773  * other `setX` functions that date-fns provides if you are concerned about the bundle size.
       
 53774  *
       
 53775  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53776  *
       
 53777  * @param date - The date to be changed
       
 53778  * @param values - The date values to be set
       
 53779  *
       
 53780  * @returns The new date with options set
       
 53781  *
       
 53782  * @example
       
 53783  * // Transform 1 September 2014 into 20 October 2015 in a single line:
       
 53784  * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
       
 53785  * //=> Tue Oct 20 2015 00:00:00
       
 53786  *
       
 53787  * @example
       
 53788  * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
       
 53789  * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
       
 53790  * //=> Mon Sep 01 2014 12:23:45
       
 53791  */
       
 53792 
       
 53793 function set(date, values) {
       
 53794   let _date = toDate(date);
       
 53795 
       
 53796   // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
       
 53797   if (isNaN(+_date)) {
       
 53798     return constructFrom(date, NaN);
       
 53799   }
       
 53800 
       
 53801   if (values.year != null) {
       
 53802     _date.setFullYear(values.year);
       
 53803   }
       
 53804 
       
 53805   if (values.month != null) {
       
 53806     _date = setMonth(_date, values.month);
       
 53807   }
       
 53808 
       
 53809   if (values.date != null) {
       
 53810     _date.setDate(values.date);
       
 53811   }
       
 53812 
       
 53813   if (values.hours != null) {
       
 53814     _date.setHours(values.hours);
       
 53815   }
       
 53816 
       
 53817   if (values.minutes != null) {
       
 53818     _date.setMinutes(values.minutes);
       
 53819   }
       
 53820 
       
 53821   if (values.seconds != null) {
       
 53822     _date.setSeconds(values.seconds);
       
 53823   }
       
 53824 
       
 53825   if (values.milliseconds != null) {
       
 53826     _date.setMilliseconds(values.milliseconds);
       
 53827   }
       
 53828 
       
 53829   return _date;
       
 53830 }
       
 53831 
       
 53832 // Fallback for modularized imports:
       
 53833 /* harmony default export */ const date_fns_set = ((/* unused pure expression or super */ null && (set)));
       
 53834 
       
 53835 ;// ./node_modules/date-fns/startOfToday.mjs
       
 53836 
       
 53837 
       
 53838 /**
       
 53839  * @name startOfToday
       
 53840  * @category Day Helpers
       
 53841  * @summary Return the start of today.
       
 53842  * @pure false
       
 53843  *
       
 53844  * @description
       
 53845  * Return the start of today.
       
 53846  *
       
 53847  * @returns The start of today
       
 53848  *
       
 53849  * @example
       
 53850  * // If today is 6 October 2014:
       
 53851  * const result = startOfToday()
       
 53852  * //=> Mon Oct 6 2014 00:00:00
       
 53853  */
       
 53854 function startOfToday() {
       
 53855   return startOfDay(Date.now());
       
 53856 }
       
 53857 
       
 53858 // Fallback for modularized imports:
       
 53859 /* harmony default export */ const date_fns_startOfToday = ((/* unused pure expression or super */ null && (startOfToday)));
       
 53860 
       
 53861 ;// ./node_modules/date-fns/setYear.mjs
       
 53862 
       
 53863 
       
 53864 
       
 53865 /**
       
 53866  * @name setYear
       
 53867  * @category Year Helpers
       
 53868  * @summary Set the year to the given date.
       
 53869  *
       
 53870  * @description
       
 53871  * Set the year to the given date.
       
 53872  *
       
 53873  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53874  *
       
 53875  * @param date - The date to be changed
       
 53876  * @param year - The year of the new date
       
 53877  *
       
 53878  * @returns The new date with the year set
       
 53879  *
       
 53880  * @example
       
 53881  * // Set year 2013 to 1 September 2014:
       
 53882  * const result = setYear(new Date(2014, 8, 1), 2013)
       
 53883  * //=> Sun Sep 01 2013 00:00:00
       
 53884  */
       
 53885 function setYear(date, year) {
       
 53886   const _date = toDate(date);
       
 53887 
       
 53888   // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
       
 53889   if (isNaN(+_date)) {
       
 53890     return constructFrom(date, NaN);
       
 53891   }
       
 53892 
       
 53893   _date.setFullYear(year);
       
 53894   return _date;
       
 53895 }
       
 53896 
       
 53897 // Fallback for modularized imports:
       
 53898 /* harmony default export */ const date_fns_setYear = ((/* unused pure expression or super */ null && (setYear)));
       
 53899 
       
 53900 ;// ./node_modules/date-fns/addYears.mjs
       
 53901 
       
 53902 
       
 53903 /**
       
 53904  * @name addYears
       
 53905  * @category Year Helpers
       
 53906  * @summary Add the specified number of years to the given date.
       
 53907  *
       
 53908  * @description
       
 53909  * Add the specified number of years to the given date.
       
 53910  *
       
 53911  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53912  *
       
 53913  * @param date - The date to be changed
       
 53914  * @param amount - The amount of years to be added.
       
 53915  *
       
 53916  * @returns The new date with the years added
       
 53917  *
       
 53918  * @example
       
 53919  * // Add 5 years to 1 September 2014:
       
 53920  * const result = addYears(new Date(2014, 8, 1), 5)
       
 53921  * //=> Sun Sep 01 2019 00:00:00
       
 53922  */
       
 53923 function addYears(date, amount) {
       
 53924   return addMonths(date, amount * 12);
       
 53925 }
       
 53926 
       
 53927 // Fallback for modularized imports:
       
 53928 /* harmony default export */ const date_fns_addYears = ((/* unused pure expression or super */ null && (addYears)));
       
 53929 
       
 53930 ;// ./node_modules/date-fns/subYears.mjs
       
 53931 
       
 53932 
       
 53933 /**
       
 53934  * @name subYears
       
 53935  * @category Year Helpers
       
 53936  * @summary Subtract the specified number of years from the given date.
       
 53937  *
       
 53938  * @description
       
 53939  * Subtract the specified number of years from the given date.
       
 53940  *
       
 53941  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53942  *
       
 53943  * @param date - The date to be changed
       
 53944  * @param amount - The amount of years to be subtracted.
       
 53945  *
       
 53946  * @returns The new date with the years subtracted
       
 53947  *
       
 53948  * @example
       
 53949  * // Subtract 5 years from 1 September 2014:
       
 53950  * const result = subYears(new Date(2014, 8, 1), 5)
       
 53951  * //=> Tue Sep 01 2009 00:00:00
       
 53952  */
       
 53953 function subYears(date, amount) {
       
 53954   return addYears(date, -amount);
       
 53955 }
       
 53956 
       
 53957 // Fallback for modularized imports:
       
 53958 /* harmony default export */ const date_fns_subYears = ((/* unused pure expression or super */ null && (subYears)));
       
 53959 
       
 53960 ;// ./node_modules/date-fns/eachDayOfInterval.mjs
       
 53961 
       
 53962 
       
 53963 /**
       
 53964  * The {@link eachDayOfInterval} function options.
       
 53965  */
       
 53966 
       
 53967 /**
       
 53968  * @name eachDayOfInterval
       
 53969  * @category Interval Helpers
       
 53970  * @summary Return the array of dates within the specified time interval.
       
 53971  *
       
 53972  * @description
       
 53973  * Return the array of dates within the specified time interval.
       
 53974  *
       
 53975  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 53976  *
       
 53977  * @param interval - The interval.
       
 53978  * @param options - An object with options.
       
 53979  *
       
 53980  * @returns The array with starts of days from the day of the interval start to the day of the interval end
       
 53981  *
       
 53982  * @example
       
 53983  * // Each day between 6 October 2014 and 10 October 2014:
       
 53984  * const result = eachDayOfInterval({
       
 53985  *   start: new Date(2014, 9, 6),
       
 53986  *   end: new Date(2014, 9, 10)
       
 53987  * })
       
 53988  * //=> [
       
 53989  * //   Mon Oct 06 2014 00:00:00,
       
 53990  * //   Tue Oct 07 2014 00:00:00,
       
 53991  * //   Wed Oct 08 2014 00:00:00,
       
 53992  * //   Thu Oct 09 2014 00:00:00,
       
 53993  * //   Fri Oct 10 2014 00:00:00
       
 53994  * // ]
       
 53995  */
       
 53996 function eachDayOfInterval(interval, options) {
       
 53997   const startDate = toDate(interval.start);
       
 53998   const endDate = toDate(interval.end);
       
 53999 
       
 54000   let reversed = +startDate > +endDate;
       
 54001   const endTime = reversed ? +startDate : +endDate;
       
 54002   const currentDate = reversed ? endDate : startDate;
       
 54003   currentDate.setHours(0, 0, 0, 0);
       
 54004 
       
 54005   let step = options?.step ?? 1;
       
 54006   if (!step) return [];
       
 54007   if (step < 0) {
       
 54008     step = -step;
       
 54009     reversed = !reversed;
       
 54010   }
       
 54011 
       
 54012   const dates = [];
       
 54013 
       
 54014   while (+currentDate <= endTime) {
       
 54015     dates.push(toDate(currentDate));
       
 54016     currentDate.setDate(currentDate.getDate() + step);
       
 54017     currentDate.setHours(0, 0, 0, 0);
       
 54018   }
       
 54019 
       
 54020   return reversed ? dates.reverse() : dates;
       
 54021 }
       
 54022 
       
 54023 // Fallback for modularized imports:
       
 54024 /* harmony default export */ const date_fns_eachDayOfInterval = ((/* unused pure expression or super */ null && (eachDayOfInterval)));
       
 54025 
       
 54026 ;// ./node_modules/date-fns/eachMonthOfInterval.mjs
       
 54027 
       
 54028 
       
 54029 /**
       
 54030  * The {@link eachMonthOfInterval} function options.
       
 54031  */
       
 54032 
       
 54033 /**
       
 54034  * @name eachMonthOfInterval
       
 54035  * @category Interval Helpers
       
 54036  * @summary Return the array of months within the specified time interval.
       
 54037  *
       
 54038  * @description
       
 54039  * Return the array of months within the specified time interval.
       
 54040  *
       
 54041  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 54042  *
       
 54043  * @param interval - The interval
       
 54044  *
       
 54045  * @returns The array with starts of months from the month of the interval start to the month of the interval end
       
 54046  *
       
 54047  * @example
       
 54048  * // Each month between 6 February 2014 and 10 August 2014:
       
 54049  * const result = eachMonthOfInterval({
       
 54050  *   start: new Date(2014, 1, 6),
       
 54051  *   end: new Date(2014, 7, 10)
       
 54052  * })
       
 54053  * //=> [
       
 54054  * //   Sat Feb 01 2014 00:00:00,
       
 54055  * //   Sat Mar 01 2014 00:00:00,
       
 54056  * //   Tue Apr 01 2014 00:00:00,
       
 54057  * //   Thu May 01 2014 00:00:00,
       
 54058  * //   Sun Jun 01 2014 00:00:00,
       
 54059  * //   Tue Jul 01 2014 00:00:00,
       
 54060  * //   Fri Aug 01 2014 00:00:00
       
 54061  * // ]
       
 54062  */
       
 54063 function eachMonthOfInterval(interval, options) {
       
 54064   const startDate = toDate(interval.start);
       
 54065   const endDate = toDate(interval.end);
       
 54066 
       
 54067   let reversed = +startDate > +endDate;
       
 54068   const endTime = reversed ? +startDate : +endDate;
       
 54069   const currentDate = reversed ? endDate : startDate;
       
 54070   currentDate.setHours(0, 0, 0, 0);
       
 54071   currentDate.setDate(1);
       
 54072 
       
 54073   let step = options?.step ?? 1;
       
 54074   if (!step) return [];
       
 54075   if (step < 0) {
       
 54076     step = -step;
       
 54077     reversed = !reversed;
       
 54078   }
       
 54079 
       
 54080   const dates = [];
       
 54081 
       
 54082   while (+currentDate <= endTime) {
       
 54083     dates.push(toDate(currentDate));
       
 54084     currentDate.setMonth(currentDate.getMonth() + step);
       
 54085   }
       
 54086 
       
 54087   return reversed ? dates.reverse() : dates;
       
 54088 }
       
 54089 
       
 54090 // Fallback for modularized imports:
       
 54091 /* harmony default export */ const date_fns_eachMonthOfInterval = ((/* unused pure expression or super */ null && (eachMonthOfInterval)));
       
 54092 
       
 54093 ;// ./node_modules/date-fns/startOfMonth.mjs
       
 54094 
       
 54095 
       
 54096 /**
       
 54097  * @name startOfMonth
       
 54098  * @category Month Helpers
       
 54099  * @summary Return the start of a month for the given date.
       
 54100  *
       
 54101  * @description
       
 54102  * Return the start of a month for the given date.
       
 54103  * The result will be in the local timezone.
       
 54104  *
       
 54105  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 54106  *
       
 54107  * @param date - The original date
       
 54108  *
       
 54109  * @returns The start of a month
       
 54110  *
       
 54111  * @example
       
 54112  * // The start of a month for 2 September 2014 11:55:00:
       
 54113  * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
       
 54114  * //=> Mon Sep 01 2014 00:00:00
       
 54115  */
       
 54116 function startOfMonth(date) {
       
 54117   const _date = toDate(date);
       
 54118   _date.setDate(1);
       
 54119   _date.setHours(0, 0, 0, 0);
       
 54120   return _date;
       
 54121 }
       
 54122 
       
 54123 // Fallback for modularized imports:
       
 54124 /* harmony default export */ const date_fns_startOfMonth = ((/* unused pure expression or super */ null && (startOfMonth)));
       
 54125 
       
 54126 ;// ./node_modules/date-fns/endOfMonth.mjs
       
 54127 
       
 54128 
       
 54129 /**
       
 54130  * @name endOfMonth
       
 54131  * @category Month Helpers
       
 54132  * @summary Return the end of a month for the given date.
       
 54133  *
       
 54134  * @description
       
 54135  * Return the end of a month for the given date.
       
 54136  * The result will be in the local timezone.
       
 54137  *
       
 54138  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 54139  *
       
 54140  * @param date - The original date
       
 54141  *
       
 54142  * @returns The end of a month
       
 54143  *
       
 54144  * @example
       
 54145  * // The end of a month for 2 September 2014 11:55:00:
       
 54146  * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
       
 54147  * //=> Tue Sep 30 2014 23:59:59.999
       
 54148  */
       
 54149 function endOfMonth(date) {
       
 54150   const _date = toDate(date);
       
 54151   const month = _date.getMonth();
       
 54152   _date.setFullYear(_date.getFullYear(), month + 1, 0);
       
 54153   _date.setHours(23, 59, 59, 999);
       
 54154   return _date;
       
 54155 }
       
 54156 
       
 54157 // Fallback for modularized imports:
       
 54158 /* harmony default export */ const date_fns_endOfMonth = ((/* unused pure expression or super */ null && (endOfMonth)));
       
 54159 
       
 54160 ;// ./node_modules/date-fns/eachWeekOfInterval.mjs
       
 54161 
       
 54162 
       
 54163 
       
 54164 
       
 54165 /**
       
 54166  * The {@link eachWeekOfInterval} function options.
       
 54167  */
       
 54168 
       
 54169 /**
       
 54170  * @name eachWeekOfInterval
       
 54171  * @category Interval Helpers
       
 54172  * @summary Return the array of weeks within the specified time interval.
       
 54173  *
       
 54174  * @description
       
 54175  * Return the array of weeks within the specified time interval.
       
 54176  *
       
 54177  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 54178  *
       
 54179  * @param interval - The interval.
       
 54180  * @param options - An object with options.
       
 54181  *
       
 54182  * @returns The array with starts of weeks from the week of the interval start to the week of the interval end
       
 54183  *
       
 54184  * @example
       
 54185  * // Each week within interval 6 October 2014 - 23 November 2014:
       
 54186  * const result = eachWeekOfInterval({
       
 54187  *   start: new Date(2014, 9, 6),
       
 54188  *   end: new Date(2014, 10, 23)
       
 54189  * })
       
 54190  * //=> [
       
 54191  * //   Sun Oct 05 2014 00:00:00,
       
 54192  * //   Sun Oct 12 2014 00:00:00,
       
 54193  * //   Sun Oct 19 2014 00:00:00,
       
 54194  * //   Sun Oct 26 2014 00:00:00,
       
 54195  * //   Sun Nov 02 2014 00:00:00,
       
 54196  * //   Sun Nov 09 2014 00:00:00,
       
 54197  * //   Sun Nov 16 2014 00:00:00,
       
 54198  * //   Sun Nov 23 2014 00:00:00
       
 54199  * // ]
       
 54200  */
       
 54201 function eachWeekOfInterval(interval, options) {
       
 54202   const startDate = toDate(interval.start);
       
 54203   const endDate = toDate(interval.end);
       
 54204 
       
 54205   let reversed = +startDate > +endDate;
       
 54206   const startDateWeek = reversed
       
 54207     ? startOfWeek(endDate, options)
       
 54208     : startOfWeek(startDate, options);
       
 54209   const endDateWeek = reversed
       
 54210     ? startOfWeek(startDate, options)
       
 54211     : startOfWeek(endDate, options);
       
 54212 
       
 54213   // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet
       
 54214   startDateWeek.setHours(15);
       
 54215   endDateWeek.setHours(15);
       
 54216 
       
 54217   const endTime = +endDateWeek.getTime();
       
 54218   let currentDate = startDateWeek;
       
 54219 
       
 54220   let step = options?.step ?? 1;
       
 54221   if (!step) return [];
       
 54222   if (step < 0) {
       
 54223     step = -step;
       
 54224     reversed = !reversed;
       
 54225   }
       
 54226 
       
 54227   const dates = [];
       
 54228 
       
 54229   while (+currentDate <= endTime) {
       
 54230     currentDate.setHours(0);
       
 54231     dates.push(toDate(currentDate));
       
 54232     currentDate = addWeeks(currentDate, step);
       
 54233     currentDate.setHours(15);
       
 54234   }
       
 54235 
       
 54236   return reversed ? dates.reverse() : dates;
       
 54237 }
       
 54238 
       
 54239 // Fallback for modularized imports:
       
 54240 /* harmony default export */ const date_fns_eachWeekOfInterval = ((/* unused pure expression or super */ null && (eachWeekOfInterval)));
       
 54241 
       
 54242 ;// ./node_modules/@wordpress/components/build-module/date-time/date/use-lilius/index.js
       
 54243 /**
       
 54244  * This source is a local copy of the use-lilius library, since the original
       
 54245  * library is not actively maintained.
       
 54246  * @see https://github.com/WordPress/gutenberg/discussions/64968
       
 54247  *
       
 54248  * use-lilius@2.0.5
       
 54249  * https://github.com/Avarios/use-lilius
       
 54250  *
       
 54251  * The MIT License (MIT)
       
 54252  *
       
 54253  * Copyright (c) 2021-Present Danny Tatom
       
 54254  *
       
 54255  * Permission is hereby granted, free of charge, to any person obtaining a copy
       
 54256  * of this software and associated documentation files (the "Software"), to deal
       
 54257  * in the Software without restriction, including without limitation the rights
       
 54258  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
       
 54259  * copies of the Software, and to permit persons to whom the Software is
       
 54260  * furnished to do so, subject to the following conditions:
       
 54261  *
       
 54262  * The above copyright notice and this permission notice shall be included in all
       
 54263  * copies or substantial portions of the Software.
       
 54264  *
       
 54265  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
       
 54266  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
       
 54267  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
       
 54268  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
       
 54269  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
       
 54270  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
       
 54271  * SOFTWARE.
       
 54272  */
       
 54273 
       
 54274 /**
       
 54275  * External dependencies
       
 54276  */
       
 54277 
       
 54278 
       
 54279 /**
       
 54280  * WordPress dependencies
       
 54281  */
       
 54282 
       
 54283 let Month = /*#__PURE__*/function (Month) {
       
 54284   Month[Month["JANUARY"] = 0] = "JANUARY";
       
 54285   Month[Month["FEBRUARY"] = 1] = "FEBRUARY";
       
 54286   Month[Month["MARCH"] = 2] = "MARCH";
       
 54287   Month[Month["APRIL"] = 3] = "APRIL";
       
 54288   Month[Month["MAY"] = 4] = "MAY";
       
 54289   Month[Month["JUNE"] = 5] = "JUNE";
       
 54290   Month[Month["JULY"] = 6] = "JULY";
       
 54291   Month[Month["AUGUST"] = 7] = "AUGUST";
       
 54292   Month[Month["SEPTEMBER"] = 8] = "SEPTEMBER";
       
 54293   Month[Month["OCTOBER"] = 9] = "OCTOBER";
       
 54294   Month[Month["NOVEMBER"] = 10] = "NOVEMBER";
       
 54295   Month[Month["DECEMBER"] = 11] = "DECEMBER";
       
 54296   return Month;
       
 54297 }({});
       
 54298 let Day = /*#__PURE__*/function (Day) {
       
 54299   Day[Day["SUNDAY"] = 0] = "SUNDAY";
       
 54300   Day[Day["MONDAY"] = 1] = "MONDAY";
       
 54301   Day[Day["TUESDAY"] = 2] = "TUESDAY";
       
 54302   Day[Day["WEDNESDAY"] = 3] = "WEDNESDAY";
       
 54303   Day[Day["THURSDAY"] = 4] = "THURSDAY";
       
 54304   Day[Day["FRIDAY"] = 5] = "FRIDAY";
       
 54305   Day[Day["SATURDAY"] = 6] = "SATURDAY";
       
 54306   return Day;
       
 54307 }({});
       
 54308 const inRange = (date, min, max) => (isEqual(date, min) || isAfter(date, min)) && (isEqual(date, max) || isBefore(date, max));
       
 54309 const use_lilius_clearTime = date => set(date, {
       
 54310   hours: 0,
       
 54311   minutes: 0,
       
 54312   seconds: 0,
       
 54313   milliseconds: 0
       
 54314 });
       
 54315 const useLilius = ({
       
 54316   weekStartsOn = Day.SUNDAY,
       
 54317   viewing: initialViewing = new Date(),
       
 54318   selected: initialSelected = [],
       
 54319   numberOfMonths = 1
       
 54320 } = {}) => {
       
 54321   const [viewing, setViewing] = (0,external_wp_element_namespaceObject.useState)(initialViewing);
       
 54322   const viewToday = (0,external_wp_element_namespaceObject.useCallback)(() => setViewing(startOfToday()), [setViewing]);
       
 54323   const viewMonth = (0,external_wp_element_namespaceObject.useCallback)(month => setViewing(v => setMonth(v, month)), []);
       
 54324   const viewPreviousMonth = (0,external_wp_element_namespaceObject.useCallback)(() => setViewing(v => subMonths(v, 1)), []);
       
 54325   const viewNextMonth = (0,external_wp_element_namespaceObject.useCallback)(() => setViewing(v => addMonths(v, 1)), []);
       
 54326   const viewYear = (0,external_wp_element_namespaceObject.useCallback)(year => setViewing(v => setYear(v, year)), []);
       
 54327   const viewPreviousYear = (0,external_wp_element_namespaceObject.useCallback)(() => setViewing(v => subYears(v, 1)), []);
       
 54328   const viewNextYear = (0,external_wp_element_namespaceObject.useCallback)(() => setViewing(v => addYears(v, 1)), []);
       
 54329   const [selected, setSelected] = (0,external_wp_element_namespaceObject.useState)(initialSelected.map(use_lilius_clearTime));
       
 54330   const clearSelected = () => setSelected([]);
       
 54331   const isSelected = (0,external_wp_element_namespaceObject.useCallback)(date => selected.findIndex(s => isEqual(s, date)) > -1, [selected]);
       
 54332   const select = (0,external_wp_element_namespaceObject.useCallback)((date, replaceExisting) => {
       
 54333     if (replaceExisting) {
       
 54334       setSelected(Array.isArray(date) ? date : [date]);
       
 54335     } else {
       
 54336       setSelected(selectedItems => selectedItems.concat(Array.isArray(date) ? date : [date]));
       
 54337     }
       
 54338   }, []);
       
 54339   const deselect = (0,external_wp_element_namespaceObject.useCallback)(date => setSelected(selectedItems => Array.isArray(date) ? selectedItems.filter(s => !date.map(d => d.getTime()).includes(s.getTime())) : selectedItems.filter(s => !isEqual(s, date))), []);
       
 54340   const toggle = (0,external_wp_element_namespaceObject.useCallback)((date, replaceExisting) => isSelected(date) ? deselect(date) : select(date, replaceExisting), [deselect, isSelected, select]);
       
 54341   const selectRange = (0,external_wp_element_namespaceObject.useCallback)((start, end, replaceExisting) => {
       
 54342     if (replaceExisting) {
       
 54343       setSelected(eachDayOfInterval({
       
 54344         start,
       
 54345         end
       
 54346       }));
       
 54347     } else {
       
 54348       setSelected(selectedItems => selectedItems.concat(eachDayOfInterval({
       
 54349         start,
       
 54350         end
       
 54351       })));
       
 54352     }
       
 54353   }, []);
       
 54354   const deselectRange = (0,external_wp_element_namespaceObject.useCallback)((start, end) => {
       
 54355     setSelected(selectedItems => selectedItems.filter(s => !eachDayOfInterval({
       
 54356       start,
       
 54357       end
       
 54358     }).map(d => d.getTime()).includes(s.getTime())));
       
 54359   }, []);
       
 54360   const calendar = (0,external_wp_element_namespaceObject.useMemo)(() => eachMonthOfInterval({
       
 54361     start: startOfMonth(viewing),
       
 54362     end: endOfMonth(addMonths(viewing, numberOfMonths - 1))
       
 54363   }).map(month => eachWeekOfInterval({
       
 54364     start: startOfMonth(month),
       
 54365     end: endOfMonth(month)
       
 54366   }, {
       
 54367     weekStartsOn
       
 54368   }).map(week => eachDayOfInterval({
       
 54369     start: startOfWeek(week, {
       
 54370       weekStartsOn
       
 54371     }),
       
 54372     end: endOfWeek(week, {
       
 54373       weekStartsOn
       
 54374     })
       
 54375   }))), [viewing, weekStartsOn, numberOfMonths]);
       
 54376   return {
       
 54377     clearTime: use_lilius_clearTime,
       
 54378     inRange,
       
 54379     viewing,
       
 54380     setViewing,
       
 54381     viewToday,
       
 54382     viewMonth,
       
 54383     viewPreviousMonth,
       
 54384     viewNextMonth,
       
 54385     viewYear,
       
 54386     viewPreviousYear,
       
 54387     viewNextYear,
       
 54388     selected,
       
 54389     setSelected,
       
 54390     clearSelected,
       
 54391     isSelected,
       
 54392     select,
       
 54393     deselect,
       
 54394     toggle,
       
 54395     selectRange,
       
 54396     deselectRange,
       
 54397     calendar
       
 54398   };
       
 54399 };
       
 54400 
       
 54401 ;// ./node_modules/@wordpress/components/build-module/date-time/date/styles.js
       
 54402 
 56375 /**
 54403 /**
 56376  * External dependencies
 54404  * External dependencies
 56377  */
 54405  */
 56378 
 54406 
 56379 /**
 54407 /**
 56384 
 54412 
 56385 
 54413 
 56386 
 54414 
 56387 const styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 54415 const styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 56388   target: "e105ri6r5"
 54416   target: "e105ri6r5"
 56389 } : 0)( true ? {
 54417 } : 0)(boxSizingReset, ";" + ( true ? "" : 0));
 56390   name: "1khn195",
       
 56391   styles: "box-sizing:border-box"
       
 56392 } : 0);
       
 56393 const Navigator = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
 54418 const Navigator = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
 56394   target: "e105ri6r4"
 54419   target: "e105ri6r4"
 56395 } : 0)("margin-bottom:", space(4), ";" + ( true ? "" : 0));
 54420 } : 0)("margin-bottom:", space(4), ";" + ( true ? "" : 0));
 56396 const NavigatorHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component,  true ? {
 54421 const NavigatorHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component,  true ? {
 56397   target: "e105ri6r3"
 54422   target: "e105ri6r3"
 56399 const Calendar = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 54424 const Calendar = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 56400   target: "e105ri6r2"
 54425   target: "e105ri6r2"
 56401 } : 0)("column-gap:", space(2), ";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:", space(2), ";" + ( true ? "" : 0));
 54426 } : 0)("column-gap:", space(2), ";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:", space(2), ";" + ( true ? "" : 0));
 56402 const DayOfWeek = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 54427 const DayOfWeek = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 56403   target: "e105ri6r1"
 54428   target: "e105ri6r1"
 56404 } : 0)("color:", COLORS.gray[700], ";font-size:", config_values.fontSize, ";line-height:", config_values.fontLineHeightBase, ";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}" + ( true ? "" : 0));
 54429 } : 0)("color:", COLORS.theme.gray[700], ";font-size:", config_values.fontSize, ";line-height:", config_values.fontLineHeightBase, ";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}" + ( true ? "" : 0));
 56405 const DayButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
 54430 const DayButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
 56406   shouldForwardProp: prop => !['column', 'isSelected', 'isToday', 'hasEvents'].includes(prop),
 54431   shouldForwardProp: prop => !['column', 'isSelected', 'isToday', 'hasEvents'].includes(prop),
 56407   target: "e105ri6r0"
 54432   target: "e105ri6r0"
 56408 } : 0)("grid-column:", props => props.column, ";position:relative;justify-content:center;", props => props.column === 1 && `
 54433 } : 0)("grid-column:", props => props.column, ";position:relative;justify-content:center;", props => props.column === 1 && `
 56409 		justify-self: start;
 54434 		justify-self: start;
 56410 		`, " ", props => props.column === 7 && `
 54435 		`, " ", props => props.column === 7 && `
 56411 		justify-self: end;
 54436 		justify-self: end;
 56412 		`, " ", props => props.disabled && `
 54437 		`, " ", props => props.disabled && `
 56413 		pointer-events: none;
 54438 		pointer-events: none;
 56414 		`, " &&&{border-radius:100%;height:", space(7), ";width:", space(7), ";", props => props.isSelected && `
 54439 		`, " &&&{border-radius:", config_values.radiusRound, ";height:", space(7), ";width:", space(7), ";", props => props.isSelected && `
 56415 			background: ${COLORS.theme.accent};
 54440 				background: ${COLORS.theme.accent};
 56416 			color: ${COLORS.white};
 54441 
       
 54442 				&,
       
 54443 				&:hover:not(:disabled, [aria-disabled=true]) {
       
 54444 					color: ${COLORS.theme.accentInverted};
       
 54445 				}
       
 54446 
       
 54447 				&:focus:not(:disabled),
       
 54448 				&:focus:not(:disabled) {
       
 54449 					border: ${config_values.borderWidthFocus} solid currentColor;
       
 54450 				}
       
 54451 
       
 54452 				/* Highlight the selected day for high-contrast mode */
       
 54453 				&::after {
       
 54454 					content: '';
       
 54455 					position: absolute;
       
 54456 					pointer-events: none;
       
 54457 					inset: 0;
       
 54458 					border-radius: inherit;
       
 54459 					border: 1px solid transparent;
       
 54460 				}
 56417 			`, " ", props => !props.isSelected && props.isToday && `
 54461 			`, " ", props => !props.isSelected && props.isToday && `
 56418 			background: ${COLORS.gray[200]};
 54462 			background: ${COLORS.theme.gray[200]};
 56419 			`, ";}", props => props.hasEvents && `
 54463 			`, ";}", props => props.hasEvents && `
 56420 		::before {
 54464 		::before {
 56421 			background: ${props.isSelected ? COLORS.white : COLORS.theme.accent};
 54465 			border: 2px solid ${props.isSelected ? COLORS.theme.accentInverted : COLORS.theme.accent};
 56422 			border-radius: 2px;
 54466 			border-radius: ${config_values.radiusRound};
 56423 			bottom: 2px;
       
 56424 			content: " ";
 54467 			content: " ";
 56425 			height: 4px;
       
 56426 			left: 50%;
 54468 			left: 50%;
 56427 			margin-left: -2px;
       
 56428 			position: absolute;
 54469 			position: absolute;
 56429 			width: 4px;
 54470 			transform: translate(-50%, 9px);
 56430 		}
 54471 		}
 56431 		`, ";" + ( true ? "" : 0));
 54472 		`, ";" + ( true ? "" : 0));
 56432 
 54473 
 56433 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/utils.js
 54474 ;// ./node_modules/@wordpress/components/build-module/date-time/utils.js
 56434 /**
 54475 /**
 56435  * External dependencies
 54476  * External dependencies
 56436  */
 54477  */
       
 54478 
       
 54479 
       
 54480 /**
       
 54481  * Internal dependencies
       
 54482  */
       
 54483 
 56437 
 54484 
 56438 
 54485 
 56439 /**
 54486 /**
 56440  * Like date-fn's toDate, but tries to guess the format when a string is
 54487  * Like date-fn's toDate, but tries to guess the format when a string is
 56441  * given.
 54488  * given.
 56444  */
 54491  */
 56445 function inputToDate(input) {
 54492 function inputToDate(input) {
 56446   if (typeof input === 'string') {
 54493   if (typeof input === 'string') {
 56447     return new Date(input);
 54494     return new Date(input);
 56448   }
 54495   }
 56449   return toDate_toDate(input);
 54496   return toDate(input);
 56450 }
 54497 }
 56451 
 54498 
 56452 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/constants.js
 54499 /**
       
 54500  * Converts a 12-hour time to a 24-hour time.
       
 54501  * @param hours
       
 54502  * @param isPm
       
 54503  */
       
 54504 function from12hTo24h(hours, isPm) {
       
 54505   return isPm ? (hours % 12 + 12) % 24 : hours % 12;
       
 54506 }
       
 54507 
       
 54508 /**
       
 54509  * Converts a 24-hour time to a 12-hour time.
       
 54510  * @param hours
       
 54511  */
       
 54512 function from24hTo12h(hours) {
       
 54513   return hours % 12 || 12;
       
 54514 }
       
 54515 
       
 54516 /**
       
 54517  * Creates an InputControl reducer used to pad an input so that it is always a
       
 54518  * given width. For example, the hours and minutes inputs are padded to 2 so
       
 54519  * that '4' appears as '04'.
       
 54520  *
       
 54521  * @param pad How many digits the value should be.
       
 54522  */
       
 54523 function buildPadInputStateReducer(pad) {
       
 54524   return (state, action) => {
       
 54525     const nextState = {
       
 54526       ...state
       
 54527     };
       
 54528     if (action.type === COMMIT || action.type === PRESS_UP || action.type === PRESS_DOWN) {
       
 54529       if (nextState.value !== undefined) {
       
 54530         nextState.value = nextState.value.toString().padStart(pad, '0');
       
 54531       }
       
 54532     }
       
 54533     return nextState;
       
 54534   };
       
 54535 }
       
 54536 
       
 54537 /**
       
 54538  * Validates the target of a React event to ensure it is an input element and
       
 54539  * that the input is valid.
       
 54540  * @param event
       
 54541  */
       
 54542 function validateInputElementTarget(event) {
       
 54543   var _ownerDocument$defaul;
       
 54544   // `instanceof` checks need to get the instance definition from the
       
 54545   // corresponding window object — therefore, the following logic makes
       
 54546   // the component work correctly even when rendered inside an iframe.
       
 54547   const HTMLInputElementInstance = (_ownerDocument$defaul = event.target?.ownerDocument.defaultView?.HTMLInputElement) !== null && _ownerDocument$defaul !== void 0 ? _ownerDocument$defaul : HTMLInputElement;
       
 54548   if (!(event.target instanceof HTMLInputElementInstance)) {
       
 54549     return false;
       
 54550   }
       
 54551   return event.target.validity.valid;
       
 54552 }
       
 54553 
       
 54554 ;// ./node_modules/@wordpress/components/build-module/date-time/constants.js
 56453 const TIMEZONELESS_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
 54555 const TIMEZONELESS_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
 56454 
 54556 
 56455 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date/index.js
 54557 ;// ./node_modules/@wordpress/components/build-module/date-time/date/index.js
 56456 /**
 54558 /**
 56457  * External dependencies
 54559  * External dependencies
 56458  */
 54560  */
 56459 
       
 56460 
 54561 
 56461 /**
 54562 /**
 56462  * WordPress dependencies
 54563  * WordPress dependencies
 56463  */
 54564  */
 56464 
 54565 
 56492  *     />
 54593  *     />
 56493  *   );
 54594  *   );
 56494  * };
 54595  * };
 56495  * ```
 54596  * ```
 56496  */
 54597  */
 56497 
       
 56498 
 54598 
 56499 function DatePicker({
 54599 function DatePicker({
 56500   currentDate,
 54600   currentDate,
 56501   onChange,
 54601   onChange,
 56502   events = [],
 54602   events = [],
 56512     setViewing,
 54612     setViewing,
 56513     isSelected,
 54613     isSelected,
 56514     viewPreviousMonth,
 54614     viewPreviousMonth,
 56515     viewNextMonth
 54615     viewNextMonth
 56516   } = useLilius({
 54616   } = useLilius({
 56517     selected: [startOfDay_startOfDay(date)],
 54617     selected: [startOfDay(date)],
 56518     viewing: startOfDay_startOfDay(date),
 54618     viewing: startOfDay(date),
 56519     weekStartsOn
 54619     weekStartsOn
 56520   });
 54620   });
 56521 
 54621 
 56522   // Used to implement a roving tab index. Tracks the day that receives focus
 54622   // Used to implement a roving tab index. Tracks the day that receives focus
 56523   // when the user tabs into the calendar.
 54623   // when the user tabs into the calendar.
 56524   const [focusable, setFocusable] = (0,external_wp_element_namespaceObject.useState)(startOfDay_startOfDay(date));
 54624   const [focusable, setFocusable] = (0,external_wp_element_namespaceObject.useState)(startOfDay(date));
 56525 
 54625 
 56526   // Allows us to only programmatically focus() a day when focus was already
 54626   // Allows us to only programmatically focus() a day when focus was already
 56527   // within the calendar. This stops us stealing focus from e.g. a TimePicker
 54627   // within the calendar. This stops us stealing focus from e.g. a TimePicker
 56528   // input.
 54628   // input.
 56529   const [isFocusWithinCalendar, setIsFocusWithinCalendar] = (0,external_wp_element_namespaceObject.useState)(false);
 54629   const [isFocusWithinCalendar, setIsFocusWithinCalendar] = (0,external_wp_element_namespaceObject.useState)(false);
 56530 
 54630 
 56531   // Update internal state when currentDate prop changes.
 54631   // Update internal state when currentDate prop changes.
 56532   const [prevCurrentDate, setPrevCurrentDate] = (0,external_wp_element_namespaceObject.useState)(currentDate);
 54632   const [prevCurrentDate, setPrevCurrentDate] = (0,external_wp_element_namespaceObject.useState)(currentDate);
 56533   if (currentDate !== prevCurrentDate) {
 54633   if (currentDate !== prevCurrentDate) {
 56534     setPrevCurrentDate(currentDate);
 54634     setPrevCurrentDate(currentDate);
 56535     setSelected([startOfDay_startOfDay(date)]);
 54635     setSelected([startOfDay(date)]);
 56536     setViewing(startOfDay_startOfDay(date));
 54636     setViewing(startOfDay(date));
 56537     setFocusable(startOfDay_startOfDay(date));
 54637     setFocusable(startOfDay(date));
 56538   }
 54638   }
 56539   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Wrapper, {
 54639   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Wrapper, {
 56540     className: "components-datetime__date",
 54640     className: "components-datetime__date",
 56541     role: "application",
 54641     role: "application",
 56542     "aria-label": (0,external_wp_i18n_namespaceObject.__)('Calendar'),
 54642     "aria-label": (0,external_wp_i18n_namespaceObject.__)('Calendar'),
 56545         icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_right : arrow_left,
 54645         icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_right : arrow_left,
 56546         variant: "tertiary",
 54646         variant: "tertiary",
 56547         "aria-label": (0,external_wp_i18n_namespaceObject.__)('View previous month'),
 54647         "aria-label": (0,external_wp_i18n_namespaceObject.__)('View previous month'),
 56548         onClick: () => {
 54648         onClick: () => {
 56549           viewPreviousMonth();
 54649           viewPreviousMonth();
 56550           setFocusable(subMonths_subMonths(focusable, 1));
 54650           setFocusable(subMonths(focusable, 1));
 56551           onMonthPreviewed?.(format(subMonths_subMonths(viewing, 1), TIMEZONELESS_FORMAT));
 54651           onMonthPreviewed?.(format(subMonths(viewing, 1), TIMEZONELESS_FORMAT));
 56552         }
 54652         },
       
 54653         size: "compact"
 56553       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(NavigatorHeading, {
 54654       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(NavigatorHeading, {
 56554         level: 3,
 54655         level: 3,
 56555         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
 54656         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
 56556           children: (0,external_wp_date_namespaceObject.dateI18n)('F', viewing, -viewing.getTimezoneOffset())
 54657           children: (0,external_wp_date_namespaceObject.dateI18n)('F', viewing, -viewing.getTimezoneOffset())
 56557         }), ' ', (0,external_wp_date_namespaceObject.dateI18n)('Y', viewing, -viewing.getTimezoneOffset())]
 54658         }), ' ', (0,external_wp_date_namespaceObject.dateI18n)('Y', viewing, -viewing.getTimezoneOffset())]
 56559         icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_left : arrow_right,
 54660         icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_left : arrow_right,
 56560         variant: "tertiary",
 54661         variant: "tertiary",
 56561         "aria-label": (0,external_wp_i18n_namespaceObject.__)('View next month'),
 54662         "aria-label": (0,external_wp_i18n_namespaceObject.__)('View next month'),
 56562         onClick: () => {
 54663         onClick: () => {
 56563           viewNextMonth();
 54664           viewNextMonth();
 56564           setFocusable(addMonths_addMonths(focusable, 1));
 54665           setFocusable(addMonths(focusable, 1));
 56565           onMonthPreviewed?.(format(addMonths_addMonths(viewing, 1), TIMEZONELESS_FORMAT));
 54666           onMonthPreviewed?.(format(addMonths(viewing, 1), TIMEZONELESS_FORMAT));
 56566         }
 54667         },
       
 54668         size: "compact"
 56567       })]
 54669       })]
 56568     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Calendar, {
 54670     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Calendar, {
 56569       onFocus: () => setIsFocusWithinCalendar(true),
 54671       onFocus: () => setIsFocusWithinCalendar(true),
 56570       onBlur: () => setIsFocusWithinCalendar(false),
 54672       onBlur: () => setIsFocusWithinCalendar(false),
 56571       children: [calendar[0][0].map(day => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayOfWeek, {
 54673       children: [calendar[0][0].map(day => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayOfWeek, {
 56576         }
 54678         }
 56577         return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_Day, {
 54679         return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_Day, {
 56578           day: day,
 54680           day: day,
 56579           column: index + 1,
 54681           column: index + 1,
 56580           isSelected: isSelected(day),
 54682           isSelected: isSelected(day),
 56581           isFocusable: isEqual_isEqual(day, focusable),
 54683           isFocusable: isEqual(day, focusable),
 56582           isFocusAllowed: isFocusWithinCalendar,
 54684           isFocusAllowed: isFocusWithinCalendar,
 56583           isToday: isSameDay(day, new Date()),
 54685           isToday: isSameDay(day, new Date()),
 56584           isInvalid: isInvalidDate ? isInvalidDate(day) : false,
 54686           isInvalid: isInvalidDate ? isInvalidDate(day) : false,
 56585           numEvents: events.filter(event => isSameDay(event.date, day)).length,
 54687           numEvents: events.filter(event => isSameDay(event.date, day)).length,
 56586           onClick: () => {
 54688           onClick: () => {
 56591             new Date(day.getFullYear(), day.getMonth(), day.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()), TIMEZONELESS_FORMAT));
 54693             new Date(day.getFullYear(), day.getMonth(), day.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()), TIMEZONELESS_FORMAT));
 56592           },
 54694           },
 56593           onKeyDown: event => {
 54695           onKeyDown: event => {
 56594             let nextFocusable;
 54696             let nextFocusable;
 56595             if (event.key === 'ArrowLeft') {
 54697             if (event.key === 'ArrowLeft') {
 56596               nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? 1 : -1);
 54698               nextFocusable = addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? 1 : -1);
 56597             }
 54699             }
 56598             if (event.key === 'ArrowRight') {
 54700             if (event.key === 'ArrowRight') {
 56599               nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? -1 : 1);
 54701               nextFocusable = addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? -1 : 1);
 56600             }
 54702             }
 56601             if (event.key === 'ArrowUp') {
 54703             if (event.key === 'ArrowUp') {
 56602               nextFocusable = subWeeks(day, 1);
 54704               nextFocusable = subWeeks(day, 1);
 56603             }
 54705             }
 56604             if (event.key === 'ArrowDown') {
 54706             if (event.key === 'ArrowDown') {
 56605               nextFocusable = addWeeks_addWeeks(day, 1);
 54707               nextFocusable = addWeeks(day, 1);
 56606             }
 54708             }
 56607             if (event.key === 'PageUp') {
 54709             if (event.key === 'PageUp') {
 56608               nextFocusable = subMonths_subMonths(day, 1);
 54710               nextFocusable = subMonths(day, 1);
 56609             }
 54711             }
 56610             if (event.key === 'PageDown') {
 54712             if (event.key === 'PageDown') {
 56611               nextFocusable = addMonths_addMonths(day, 1);
 54713               nextFocusable = addMonths(day, 1);
 56612             }
 54714             }
 56613             if (event.key === 'Home') {
 54715             if (event.key === 'Home') {
 56614               nextFocusable = startOfWeek_startOfWeek(day);
 54716               nextFocusable = startOfWeek(day);
 56615             }
 54717             }
 56616             if (event.key === 'End') {
 54718             if (event.key === 'End') {
 56617               nextFocusable = startOfDay_startOfDay(endOfWeek_endOfWeek(day));
 54719               nextFocusable = startOfDay(endOfWeek(day));
 56618             }
 54720             }
 56619             if (nextFocusable) {
 54721             if (nextFocusable) {
 56620               event.preventDefault();
 54722               event.preventDefault();
 56621               setFocusable(nextFocusable);
 54723               setFocusable(nextFocusable);
 56622               if (!isSameMonth(nextFocusable, viewing)) {
 54724               if (!isSameMonth(nextFocusable, viewing)) {
 56651     if (ref.current && isFocusable && isFocusAllowed) {
 54753     if (ref.current && isFocusable && isFocusAllowed) {
 56652       ref.current.focus();
 54754       ref.current.focus();
 56653     }
 54755     }
 56654     // isFocusAllowed is not a dep as there is no point calling focus() on
 54756     // isFocusAllowed is not a dep as there is no point calling focus() on
 56655     // an already focused element.
 54757     // an already focused element.
 56656     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 56657   }, [isFocusable]);
 54758   }, [isFocusable]);
 56658   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayButton, {
 54759   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayButton, {
       
 54760     __next40pxDefaultSize: true,
 56659     ref: ref,
 54761     ref: ref,
 56660     className: "components-datetime__date__day" // Unused, for backwards compatibility.
 54762     className: "components-datetime__date__day" // Unused, for backwards compatibility.
 56661     ,
 54763     ,
 56662     disabled: isInvalid,
 54764     disabled: isInvalid,
 56663     tabIndex: isFocusable ? 0 : -1,
 54765     tabIndex: isFocusable ? 0 : -1,
 56691   }
 54793   }
 56692   return localizedDate;
 54794   return localizedDate;
 56693 }
 54795 }
 56694 /* harmony default export */ const date = (DatePicker);
 54796 /* harmony default export */ const date = (DatePicker);
 56695 
 54797 
 56696 ;// CONCATENATED MODULE: ./node_modules/date-fns/startOfMinute.mjs
 54798 ;// ./node_modules/date-fns/startOfMinute.mjs
 56697 
 54799 
 56698 
 54800 
 56699 /**
 54801 /**
 56700  * @name startOfMinute
 54802  * @name startOfMinute
 56701  * @category Minute Helpers
 54803  * @category Minute Helpers
 56715  * // The start of a minute for 1 December 2014 22:15:45.400:
 54817  * // The start of a minute for 1 December 2014 22:15:45.400:
 56716  * const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
 54818  * const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
 56717  * //=> Mon Dec 01 2014 22:15:00
 54819  * //=> Mon Dec 01 2014 22:15:00
 56718  */
 54820  */
 56719 function startOfMinute(date) {
 54821 function startOfMinute(date) {
 56720   const _date = toDate_toDate(date);
 54822   const _date = toDate(date);
 56721   _date.setSeconds(0, 0);
 54823   _date.setSeconds(0, 0);
 56722   return _date;
 54824   return _date;
 56723 }
 54825 }
 56724 
 54826 
 56725 // Fallback for modularized imports:
 54827 // Fallback for modularized imports:
 56726 /* harmony default export */ const date_fns_startOfMinute = ((/* unused pure expression or super */ null && (startOfMinute)));
 54828 /* harmony default export */ const date_fns_startOfMinute = ((/* unused pure expression or super */ null && (startOfMinute)));
 56727 
 54829 
 56728 ;// CONCATENATED MODULE: ./node_modules/date-fns/getDaysInMonth.mjs
 54830 ;// ./node_modules/@wordpress/components/build-module/date-time/time/styles.js
 56729 
       
 56730 
       
 56731 
       
 56732 /**
       
 56733  * @name getDaysInMonth
       
 56734  * @category Month Helpers
       
 56735  * @summary Get the number of days in a month of the given date.
       
 56736  *
       
 56737  * @description
       
 56738  * Get the number of days in a month of the given date.
       
 56739  *
       
 56740  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 56741  *
       
 56742  * @param date - The given date
       
 56743  *
       
 56744  * @returns The number of days in a month
       
 56745  *
       
 56746  * @example
       
 56747  * // How many days are in February 2000?
       
 56748  * const result = getDaysInMonth(new Date(2000, 1))
       
 56749  * //=> 29
       
 56750  */
       
 56751 function getDaysInMonth_getDaysInMonth(date) {
       
 56752   const _date = toDate_toDate(date);
       
 56753   const year = _date.getFullYear();
       
 56754   const monthIndex = _date.getMonth();
       
 56755   const lastDayOfMonth = constructFrom_constructFrom(date, 0);
       
 56756   lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
       
 56757   lastDayOfMonth.setHours(0, 0, 0, 0);
       
 56758   return lastDayOfMonth.getDate();
       
 56759 }
       
 56760 
       
 56761 // Fallback for modularized imports:
       
 56762 /* harmony default export */ const date_fns_getDaysInMonth = ((/* unused pure expression or super */ null && (getDaysInMonth_getDaysInMonth)));
       
 56763 
       
 56764 ;// CONCATENATED MODULE: ./node_modules/date-fns/setMonth.mjs
       
 56765 
       
 56766 
       
 56767 
       
 56768 
       
 56769 /**
       
 56770  * @name setMonth
       
 56771  * @category Month Helpers
       
 56772  * @summary Set the month to the given date.
       
 56773  *
       
 56774  * @description
       
 56775  * Set the month to the given date.
       
 56776  *
       
 56777  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 56778  *
       
 56779  * @param date - The date to be changed
       
 56780  * @param month - The month index to set (0-11)
       
 56781  *
       
 56782  * @returns The new date with the month set
       
 56783  *
       
 56784  * @example
       
 56785  * // Set February to 1 September 2014:
       
 56786  * const result = setMonth(new Date(2014, 8, 1), 1)
       
 56787  * //=> Sat Feb 01 2014 00:00:00
       
 56788  */
       
 56789 function setMonth_setMonth(date, month) {
       
 56790   const _date = toDate_toDate(date);
       
 56791   const year = _date.getFullYear();
       
 56792   const day = _date.getDate();
       
 56793 
       
 56794   const dateWithDesiredMonth = constructFrom_constructFrom(date, 0);
       
 56795   dateWithDesiredMonth.setFullYear(year, month, 15);
       
 56796   dateWithDesiredMonth.setHours(0, 0, 0, 0);
       
 56797   const daysInMonth = getDaysInMonth_getDaysInMonth(dateWithDesiredMonth);
       
 56798   // Set the last day of the new month
       
 56799   // if the original date was the last day of the longer month
       
 56800   _date.setMonth(month, Math.min(day, daysInMonth));
       
 56801   return _date;
       
 56802 }
       
 56803 
       
 56804 // Fallback for modularized imports:
       
 56805 /* harmony default export */ const date_fns_setMonth = ((/* unused pure expression or super */ null && (setMonth_setMonth)));
       
 56806 
       
 56807 ;// CONCATENATED MODULE: ./node_modules/date-fns/set.mjs
       
 56808 
       
 56809 
       
 56810 
       
 56811 
       
 56812 /**
       
 56813  * @name set
       
 56814  * @category Common Helpers
       
 56815  * @summary Set date values to a given date.
       
 56816  *
       
 56817  * @description
       
 56818  * Set date values to a given date.
       
 56819  *
       
 56820  * Sets time values to date from object `values`.
       
 56821  * A value is not set if it is undefined or null or doesn't exist in `values`.
       
 56822  *
       
 56823  * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts
       
 56824  * to use native `Date#setX` methods. If you use this function, you may not want to include the
       
 56825  * other `setX` functions that date-fns provides if you are concerned about the bundle size.
       
 56826  *
       
 56827  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 56828  *
       
 56829  * @param date - The date to be changed
       
 56830  * @param values - The date values to be set
       
 56831  *
       
 56832  * @returns The new date with options set
       
 56833  *
       
 56834  * @example
       
 56835  * // Transform 1 September 2014 into 20 October 2015 in a single line:
       
 56836  * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
       
 56837  * //=> Tue Oct 20 2015 00:00:00
       
 56838  *
       
 56839  * @example
       
 56840  * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
       
 56841  * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
       
 56842  * //=> Mon Sep 01 2014 12:23:45
       
 56843  */
       
 56844 
       
 56845 function set_set(date, values) {
       
 56846   let _date = toDate_toDate(date);
       
 56847 
       
 56848   // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
       
 56849   if (isNaN(+_date)) {
       
 56850     return constructFrom_constructFrom(date, NaN);
       
 56851   }
       
 56852 
       
 56853   if (values.year != null) {
       
 56854     _date.setFullYear(values.year);
       
 56855   }
       
 56856 
       
 56857   if (values.month != null) {
       
 56858     _date = setMonth_setMonth(_date, values.month);
       
 56859   }
       
 56860 
       
 56861   if (values.date != null) {
       
 56862     _date.setDate(values.date);
       
 56863   }
       
 56864 
       
 56865   if (values.hours != null) {
       
 56866     _date.setHours(values.hours);
       
 56867   }
       
 56868 
       
 56869   if (values.minutes != null) {
       
 56870     _date.setMinutes(values.minutes);
       
 56871   }
       
 56872 
       
 56873   if (values.seconds != null) {
       
 56874     _date.setSeconds(values.seconds);
       
 56875   }
       
 56876 
       
 56877   if (values.milliseconds != null) {
       
 56878     _date.setMilliseconds(values.milliseconds);
       
 56879   }
       
 56880 
       
 56881   return _date;
       
 56882 }
       
 56883 
       
 56884 // Fallback for modularized imports:
       
 56885 /* harmony default export */ const date_fns_set = ((/* unused pure expression or super */ null && (set_set)));
       
 56886 
       
 56887 ;// CONCATENATED MODULE: ./node_modules/date-fns/setHours.mjs
       
 56888 
       
 56889 
       
 56890 /**
       
 56891  * @name setHours
       
 56892  * @category Hour Helpers
       
 56893  * @summary Set the hours to the given date.
       
 56894  *
       
 56895  * @description
       
 56896  * Set the hours to the given date.
       
 56897  *
       
 56898  * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
       
 56899  *
       
 56900  * @param date - The date to be changed
       
 56901  * @param hours - The hours of the new date
       
 56902  *
       
 56903  * @returns The new date with the hours set
       
 56904  *
       
 56905  * @example
       
 56906  * // Set 4 hours to 1 September 2014 11:30:00:
       
 56907  * const result = setHours(new Date(2014, 8, 1, 11, 30), 4)
       
 56908  * //=> Mon Sep 01 2014 04:30:00
       
 56909  */
       
 56910 function setHours(date, hours) {
       
 56911   const _date = toDate_toDate(date);
       
 56912   _date.setHours(hours);
       
 56913   return _date;
       
 56914 }
       
 56915 
       
 56916 // Fallback for modularized imports:
       
 56917 /* harmony default export */ const date_fns_setHours = ((/* unused pure expression or super */ null && (setHours)));
       
 56918 
       
 56919 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/styles.js
       
 56920 
 54831 
 56921 function time_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 54832 function time_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 56922 /**
 54833 /**
 56923  * External dependencies
 54834  * External dependencies
 56924  */
 54835  */
 56948 const HoursInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control,  true ? {
 54859 const HoursInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control,  true ? {
 56949   target: "evcr2316"
 54860   target: "evcr2316"
 56950 } : 0)(baseInput, " width:", space(9), ";&&& ", Input, "{padding-right:0;}&&& ", BackdropUI, "{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}" + ( true ? "" : 0));
 54861 } : 0)(baseInput, " width:", space(9), ";&&& ", Input, "{padding-right:0;}&&& ", BackdropUI, "{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}" + ( true ? "" : 0));
 56951 const TimeSeparator = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 54862 const TimeSeparator = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 56952   target: "evcr2315"
 54863   target: "evcr2315"
 56953 } : 0)("border-top:", config_values.borderWidth, " solid ", COLORS.gray[700], ";border-bottom:", config_values.borderWidth, " solid ", COLORS.gray[700], ";line-height:calc(\n\t\t", config_values.controlHeight, " - ", config_values.borderWidth, " * 2\n\t);display:inline-block;" + ( true ? "" : 0));
 54864 } : 0)("border-top:", config_values.borderWidth, " solid ", COLORS.gray[700], ";border-bottom:", config_values.borderWidth, " solid ", COLORS.gray[700], ";font-size:", config_values.fontSize, ";line-height:calc(\n\t\t", config_values.controlHeight, " - ", config_values.borderWidth, " * 2\n\t);display:inline-block;" + ( true ? "" : 0));
 56954 const MinutesInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control,  true ? {
 54865 const MinutesInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control,  true ? {
 56955   target: "evcr2314"
 54866   target: "evcr2314"
 56956 } : 0)(baseInput, " width:", space(9), ";&&& ", Input, "{padding-left:0;}&&& ", BackdropUI, "{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}" + ( true ? "" : 0));
 54867 } : 0)(baseInput, " width:", space(9), ";&&& ", Input, "{padding-left:0;}&&& ", BackdropUI, "{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}" + ( true ? "" : 0));
 56957 
 54868 
 56958 // Ideally we wouldn't need a wrapper, but can't otherwise target the
 54869 // Ideally we wouldn't need a wrapper, but can't otherwise target the
 56974 } : 0)( true ? {
 54885 } : 0)( true ? {
 56975   name: "ebu3jh",
 54886   name: "ebu3jh",
 56976   styles: "text-decoration:underline dotted"
 54887   styles: "text-decoration:underline dotted"
 56977 } : 0);
 54888 } : 0);
 56978 
 54889 
 56979 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/timezone.js
 54890 ;// ./node_modules/@wordpress/components/build-module/date-time/time/timezone.js
 56980 /**
 54891 /**
 56981  * WordPress dependencies
 54892  * WordPress dependencies
 56982  */
 54893  */
 56983 
 54894 
 56984 
 54895 
 57029     })
 54940     })
 57030   });
 54941   });
 57031 };
 54942 };
 57032 /* harmony default export */ const timezone = (timezone_TimeZone);
 54943 /* harmony default export */ const timezone = (timezone_TimeZone);
 57033 
 54944 
 57034 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/index.js
 54945 ;// ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option/component.js
 57035 /**
 54946 /**
 57036  * External dependencies
 54947  * External dependencies
 57037  */
 54948  */
 57038 
 54949 
 57039 
       
 57040 /**
 54950 /**
 57041  * WordPress dependencies
 54951  * WordPress dependencies
 57042  */
 54952  */
 57043 
 54953 
 57044 
 54954 
 57045 
       
 57046 /**
 54955 /**
 57047  * Internal dependencies
 54956  * Internal dependencies
 57048  */
 54957  */
 57049 
 54958 
 57050 
 54959 
 57051 
 54960 
 57052 
 54961 function UnforwardedToggleGroupControlOption(props, ref) {
 57053 
 54962   const {
 57054 
 54963     label,
 57055 
 54964     ...restProps
 57056 
 54965   } = props;
 57057 
 54966   const optionLabel = restProps['aria-label'] || label;
 57058 
 54967   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_base_component, {
 57059 
 54968     ...restProps,
 57060 
 54969     "aria-label": optionLabel,
 57061 
 54970     ref: ref,
 57062 
 54971     children: label
 57063 function from12hTo24h(hours, isPm) {
 54972   });
 57064   return isPm ? (hours % 12 + 12) % 24 : hours % 12;
 54973 }
 57065 }
 54974 
 57066 
 54975 /**
 57067 /**
 54976  * `ToggleGroupControlOption` is a form component and is meant to be used as a
 57068  * Creates an InputControl reducer used to pad an input so that it is always a
 54977  * child of `ToggleGroupControl`.
 57069  * given width. For example, the hours and minutes inputs are padded to 2 so
 54978  *
 57070  * that '4' appears as '04'.
 54979  * ```jsx
 57071  *
 54980  * import {
 57072  * @param pad How many digits the value should be.
 54981  *   __experimentalToggleGroupControl as ToggleGroupControl,
 57073  */
 54982  *   __experimentalToggleGroupControlOption as ToggleGroupControlOption,
 57074 function buildPadInputStateReducer(pad) {
 54983  * } from '@wordpress/components';
 57075   return (state, action) => {
 54984  *
 57076     const nextState = {
 54985  * function Example() {
 57077       ...state
 54986  *   return (
       
 54987  *     <ToggleGroupControl
       
 54988  *       label="my label"
       
 54989  *       value="vertical"
       
 54990  *       isBlock
       
 54991  *       __nextHasNoMarginBottom
       
 54992  *       __next40pxDefaultSize
       
 54993  *     >
       
 54994  *       <ToggleGroupControlOption value="horizontal" label="Horizontal" />
       
 54995  *       <ToggleGroupControlOption value="vertical" label="Vertical" />
       
 54996  *     </ToggleGroupControl>
       
 54997  *   );
       
 54998  * }
       
 54999  * ```
       
 55000  */
       
 55001 const ToggleGroupControlOption = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlOption);
       
 55002 /* harmony default export */ const toggle_group_control_option_component = (ToggleGroupControlOption);
       
 55003 
       
 55004 ;// ./node_modules/@wordpress/components/build-module/date-time/time/time-input/index.js
       
 55005 /**
       
 55006  * External dependencies
       
 55007  */
       
 55008 
       
 55009 
       
 55010 /**
       
 55011  * WordPress dependencies
       
 55012  */
       
 55013 
       
 55014 
       
 55015 
       
 55016 /**
       
 55017  * Internal dependencies
       
 55018  */
       
 55019 
       
 55020 
       
 55021 
       
 55022 
       
 55023 
       
 55024 
       
 55025 
       
 55026 function TimeInput({
       
 55027   value: valueProp,
       
 55028   defaultValue,
       
 55029   is12Hour,
       
 55030   label,
       
 55031   minutesProps,
       
 55032   onChange
       
 55033 }) {
       
 55034   const [value = {
       
 55035     hours: new Date().getHours(),
       
 55036     minutes: new Date().getMinutes()
       
 55037   }, setValue] = useControlledValue({
       
 55038     value: valueProp,
       
 55039     onChange,
       
 55040     defaultValue
       
 55041   });
       
 55042   const dayPeriod = parseDayPeriod(value.hours);
       
 55043   const hours12Format = from24hTo12h(value.hours);
       
 55044   const buildNumberControlChangeCallback = method => {
       
 55045     return (_value, {
       
 55046       event
       
 55047     }) => {
       
 55048       if (!validateInputElementTarget(event)) {
       
 55049         return;
       
 55050       }
       
 55051 
       
 55052       // We can safely assume value is a number if target is valid.
       
 55053       const numberValue = Number(_value);
       
 55054       setValue({
       
 55055         ...value,
       
 55056         [method]: method === 'hours' && is12Hour ? from12hTo24h(numberValue, dayPeriod === 'PM') : numberValue
       
 55057       });
 57078     };
 55058     };
 57079     if (action.type === COMMIT || action.type === PRESS_UP || action.type === PRESS_DOWN) {
 55059   };
 57080       if (nextState.value !== undefined) {
 55060   const buildAmPmChangeCallback = _value => {
 57081         nextState.value = nextState.value.toString().padStart(pad, '0');
 55061     return () => {
       
 55062       if (dayPeriod === _value) {
       
 55063         return;
 57082       }
 55064       }
 57083     }
 55065       setValue({
 57084     return nextState;
 55066         ...value,
       
 55067         hours: from12hTo24h(hours12Format, _value === 'PM')
       
 55068       });
       
 55069     };
 57085   };
 55070   };
 57086 }
 55071   function parseDayPeriod(_hours) {
       
 55072     return _hours < 12 ? 'AM' : 'PM';
       
 55073   }
       
 55074   const Wrapper = label ? Fieldset : external_wp_element_namespaceObject.Fragment;
       
 55075   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Wrapper, {
       
 55076     children: [label && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
       
 55077       as: "legend",
       
 55078       children: label
       
 55079     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
       
 55080       alignment: "left",
       
 55081       expanded: false,
       
 55082       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TimeWrapper, {
       
 55083         className: "components-datetime__time-field components-datetime__time-field-time" // Unused, for backwards compatibility.
       
 55084         ,
       
 55085         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HoursInput, {
       
 55086           className: "components-datetime__time-field-hours-input" // Unused, for backwards compatibility.
       
 55087           ,
       
 55088           label: (0,external_wp_i18n_namespaceObject.__)('Hours'),
       
 55089           hideLabelFromVision: true,
       
 55090           __next40pxDefaultSize: true,
       
 55091           value: String(is12Hour ? hours12Format : value.hours).padStart(2, '0'),
       
 55092           step: 1,
       
 55093           min: is12Hour ? 1 : 0,
       
 55094           max: is12Hour ? 12 : 23,
       
 55095           required: true,
       
 55096           spinControls: "none",
       
 55097           isPressEnterToChange: true,
       
 55098           isDragEnabled: false,
       
 55099           isShiftStepEnabled: false,
       
 55100           onChange: buildNumberControlChangeCallback('hours'),
       
 55101           __unstableStateReducer: buildPadInputStateReducer(2)
       
 55102         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeSeparator, {
       
 55103           className: "components-datetime__time-separator" // Unused, for backwards compatibility.
       
 55104           ,
       
 55105           "aria-hidden": "true",
       
 55106           children: ":"
       
 55107         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MinutesInput, {
       
 55108           className: dist_clsx('components-datetime__time-field-minutes-input',
       
 55109           // Unused, for backwards compatibility.
       
 55110           minutesProps?.className),
       
 55111           label: (0,external_wp_i18n_namespaceObject.__)('Minutes'),
       
 55112           hideLabelFromVision: true,
       
 55113           __next40pxDefaultSize: true,
       
 55114           value: String(value.minutes).padStart(2, '0'),
       
 55115           step: 1,
       
 55116           min: 0,
       
 55117           max: 59,
       
 55118           required: true,
       
 55119           spinControls: "none",
       
 55120           isPressEnterToChange: true,
       
 55121           isDragEnabled: false,
       
 55122           isShiftStepEnabled: false,
       
 55123           onChange: (...args) => {
       
 55124             buildNumberControlChangeCallback('minutes')(...args);
       
 55125             minutesProps?.onChange?.(...args);
       
 55126           },
       
 55127           __unstableStateReducer: buildPadInputStateReducer(2),
       
 55128           ...minutesProps
       
 55129         })]
       
 55130       }), is12Hour && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(toggle_group_control_component, {
       
 55131         __next40pxDefaultSize: true,
       
 55132         __nextHasNoMarginBottom: true,
       
 55133         isBlock: true,
       
 55134         label: (0,external_wp_i18n_namespaceObject.__)('Select AM or PM'),
       
 55135         hideLabelFromVision: true,
       
 55136         value: dayPeriod,
       
 55137         onChange: newValue => {
       
 55138           buildAmPmChangeCallback(newValue)();
       
 55139         },
       
 55140         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_component, {
       
 55141           value: "AM",
       
 55142           label: (0,external_wp_i18n_namespaceObject.__)('AM')
       
 55143         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_component, {
       
 55144           value: "PM",
       
 55145           label: (0,external_wp_i18n_namespaceObject.__)('PM')
       
 55146         })]
       
 55147       })]
       
 55148     })]
       
 55149   });
       
 55150 }
       
 55151 /* harmony default export */ const time_input = ((/* unused pure expression or super */ null && (TimeInput)));
       
 55152 
       
 55153 ;// ./node_modules/@wordpress/components/build-module/date-time/time/index.js
       
 55154 /**
       
 55155  * External dependencies
       
 55156  */
       
 55157 
       
 55158 
       
 55159 /**
       
 55160  * WordPress dependencies
       
 55161  */
       
 55162 
       
 55163 
       
 55164 
       
 55165 /**
       
 55166  * Internal dependencies
       
 55167  */
       
 55168 
       
 55169 
       
 55170 
       
 55171 
       
 55172 
       
 55173 
       
 55174 
       
 55175 
       
 55176 
       
 55177 
       
 55178 
       
 55179 const VALID_DATE_ORDERS = ['dmy', 'mdy', 'ymd'];
 57087 
 55180 
 57088 /**
 55181 /**
 57089  * TimePicker is a React component that renders a clock for time selection.
 55182  * TimePicker is a React component that renders a clock for time selection.
 57090  *
 55183  *
 57091  * ```jsx
 55184  * ```jsx
 57106  * ```
 55199  * ```
 57107  */
 55200  */
 57108 function TimePicker({
 55201 function TimePicker({
 57109   is12Hour,
 55202   is12Hour,
 57110   currentTime,
 55203   currentTime,
 57111   onChange
 55204   onChange,
       
 55205   dateOrder: dateOrderProp,
       
 55206   hideLabelFromVision = false
 57112 }) {
 55207 }) {
 57113   const [date, setDate] = (0,external_wp_element_namespaceObject.useState)(() =>
 55208   const [date, setDate] = (0,external_wp_element_namespaceObject.useState)(() =>
 57114   // Truncate the date at the minutes, see: #15495.
 55209   // Truncate the date at the minutes, see: #15495.
 57115   currentTime ? startOfMinute(inputToDate(currentTime)) : new Date());
 55210   currentTime ? startOfMinute(inputToDate(currentTime)) : new Date());
 57116 
 55211 
 57117   // Reset the state when currentTime changed.
 55212   // Reset the state when currentTime changed.
 57118   // TODO: useEffect() shouldn't be used like this, causes an unnecessary render
 55213   // TODO: useEffect() shouldn't be used like this, causes an unnecessary render
 57119   (0,external_wp_element_namespaceObject.useEffect)(() => {
 55214   (0,external_wp_element_namespaceObject.useEffect)(() => {
 57120     setDate(currentTime ? startOfMinute(inputToDate(currentTime)) : new Date());
 55215     setDate(currentTime ? startOfMinute(inputToDate(currentTime)) : new Date());
 57121   }, [currentTime]);
 55216   }, [currentTime]);
       
 55217   const monthOptions = [{
       
 55218     value: '01',
       
 55219     label: (0,external_wp_i18n_namespaceObject.__)('January')
       
 55220   }, {
       
 55221     value: '02',
       
 55222     label: (0,external_wp_i18n_namespaceObject.__)('February')
       
 55223   }, {
       
 55224     value: '03',
       
 55225     label: (0,external_wp_i18n_namespaceObject.__)('March')
       
 55226   }, {
       
 55227     value: '04',
       
 55228     label: (0,external_wp_i18n_namespaceObject.__)('April')
       
 55229   }, {
       
 55230     value: '05',
       
 55231     label: (0,external_wp_i18n_namespaceObject.__)('May')
       
 55232   }, {
       
 55233     value: '06',
       
 55234     label: (0,external_wp_i18n_namespaceObject.__)('June')
       
 55235   }, {
       
 55236     value: '07',
       
 55237     label: (0,external_wp_i18n_namespaceObject.__)('July')
       
 55238   }, {
       
 55239     value: '08',
       
 55240     label: (0,external_wp_i18n_namespaceObject.__)('August')
       
 55241   }, {
       
 55242     value: '09',
       
 55243     label: (0,external_wp_i18n_namespaceObject.__)('September')
       
 55244   }, {
       
 55245     value: '10',
       
 55246     label: (0,external_wp_i18n_namespaceObject.__)('October')
       
 55247   }, {
       
 55248     value: '11',
       
 55249     label: (0,external_wp_i18n_namespaceObject.__)('November')
       
 55250   }, {
       
 55251     value: '12',
       
 55252     label: (0,external_wp_i18n_namespaceObject.__)('December')
       
 55253   }];
 57122   const {
 55254   const {
 57123     day,
 55255     day,
 57124     month,
 55256     month,
 57125     year,
 55257     year,
 57126     minutes,
 55258     minutes,
 57127     hours,
 55259     hours
 57128     am
       
 57129   } = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 55260   } = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 57130     day: format(date, 'dd'),
 55261     day: format(date, 'dd'),
 57131     month: format(date, 'MM'),
 55262     month: format(date, 'MM'),
 57132     year: format(date, 'yyyy'),
 55263     year: format(date, 'yyyy'),
 57133     minutes: format(date, 'mm'),
 55264     minutes: format(date, 'mm'),
 57134     hours: format(date, is12Hour ? 'hh' : 'HH'),
 55265     hours: format(date, 'HH'),
 57135     am: format(date, 'a')
 55266     am: format(date, 'a')
 57136   }), [date, is12Hour]);
 55267   }), [date]);
 57137   const buildNumberControlChangeCallback = method => {
 55268   const buildNumberControlChangeCallback = method => {
 57138     const callback = (value, {
 55269     const callback = (value, {
 57139       event
 55270       event
 57140     }) => {
 55271     }) => {
 57141       var _ownerDocument$defaul;
 55272       if (!validateInputElementTarget(event)) {
 57142       // `instanceof` checks need to get the instance definition from the
       
 57143       // corresponding window object — therefore, the following logic makes
       
 57144       // the component work correctly even when rendered inside an iframe.
       
 57145       const HTMLInputElementInstance = (_ownerDocument$defaul = event.target?.ownerDocument.defaultView?.HTMLInputElement) !== null && _ownerDocument$defaul !== void 0 ? _ownerDocument$defaul : HTMLInputElement;
       
 57146       if (!(event.target instanceof HTMLInputElementInstance)) {
       
 57147         return;
 55273         return;
 57148       }
 55274       }
 57149       if (!event.target.validity.valid) {
       
 57150         return;
       
 57151       }
       
 57152 
 55275 
 57153       // We can safely assume value is a number if target is valid.
 55276       // We can safely assume value is a number if target is valid.
 57154       let numberValue = Number(value);
 55277       const numberValue = Number(value);
 57155 
 55278       const newDate = set(date, {
 57156       // If the 12-hour format is being used and the 'PM' period is
       
 57157       // selected, then the incoming value (which ranges 1-12) should be
       
 57158       // increased by 12 to match the expected 24-hour format.
       
 57159       if (method === 'hours' && is12Hour) {
       
 57160         numberValue = from12hTo24h(numberValue, am === 'PM');
       
 57161       }
       
 57162       const newDate = set_set(date, {
       
 57163         [method]: numberValue
 55279         [method]: numberValue
 57164       });
 55280       });
 57165       setDate(newDate);
 55281       setDate(newDate);
 57166       onChange?.(format(newDate, TIMEZONELESS_FORMAT));
 55282       onChange?.(format(newDate, TIMEZONELESS_FORMAT));
 57167     };
 55283     };
 57168     return callback;
 55284     return callback;
 57169   };
 55285   };
 57170   function buildAmPmChangeCallback(value) {
 55286   const onTimeInputChangeCallback = ({
 57171     return () => {
 55287     hours: newHours,
 57172       if (am === value) {
 55288     minutes: newMinutes
 57173         return;
 55289   }) => {
 57174       }
 55290     const newDate = set(date, {
 57175       const parsedHours = parseInt(hours, 10);
 55291       hours: newHours,
 57176       const newDate = setHours(date, from12hTo24h(parsedHours, value === 'PM'));
 55292       minutes: newMinutes
 57177       setDate(newDate);
 55293     });
 57178       onChange?.(format(newDate, TIMEZONELESS_FORMAT));
 55294     setDate(newDate);
 57179     };
 55295     onChange?.(format(newDate, TIMEZONELESS_FORMAT));
 57180   }
 55296   };
 57181   const dayField = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayInput, {
 55297   const dayField = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayInput, {
 57182     className: "components-datetime__time-field components-datetime__time-field-day" // Unused, for backwards compatibility.
 55298     className: "components-datetime__time-field components-datetime__time-field-day" // Unused, for backwards compatibility.
 57183     ,
 55299     ,
 57184     label: (0,external_wp_i18n_namespaceObject.__)('Day'),
 55300     label: (0,external_wp_i18n_namespaceObject.__)('Day'),
 57185     hideLabelFromVision: true,
 55301     hideLabelFromVision: true,
 57192     spinControls: "none",
 55308     spinControls: "none",
 57193     isPressEnterToChange: true,
 55309     isPressEnterToChange: true,
 57194     isDragEnabled: false,
 55310     isDragEnabled: false,
 57195     isShiftStepEnabled: false,
 55311     isShiftStepEnabled: false,
 57196     onChange: buildNumberControlChangeCallback('date')
 55312     onChange: buildNumberControlChangeCallback('date')
 57197   });
 55313   }, "day");
 57198   const monthField = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MonthSelectWrapper, {
 55314   const monthField = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MonthSelectWrapper, {
 57199     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
 55315     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
 57200       className: "components-datetime__time-field components-datetime__time-field-month" // Unused, for backwards compatibility.
 55316       className: "components-datetime__time-field components-datetime__time-field-month" // Unused, for backwards compatibility.
 57201       ,
 55317       ,
 57202       label: (0,external_wp_i18n_namespaceObject.__)('Month'),
 55318       label: (0,external_wp_i18n_namespaceObject.__)('Month'),
 57203       hideLabelFromVision: true,
 55319       hideLabelFromVision: true,
 57204       __next40pxDefaultSize: true,
 55320       __next40pxDefaultSize: true,
 57205       __nextHasNoMarginBottom: true,
 55321       __nextHasNoMarginBottom: true,
 57206       value: month,
 55322       value: month,
 57207       options: [{
 55323       options: monthOptions,
 57208         value: '01',
       
 57209         label: (0,external_wp_i18n_namespaceObject.__)('January')
       
 57210       }, {
       
 57211         value: '02',
       
 57212         label: (0,external_wp_i18n_namespaceObject.__)('February')
       
 57213       }, {
       
 57214         value: '03',
       
 57215         label: (0,external_wp_i18n_namespaceObject.__)('March')
       
 57216       }, {
       
 57217         value: '04',
       
 57218         label: (0,external_wp_i18n_namespaceObject.__)('April')
       
 57219       }, {
       
 57220         value: '05',
       
 57221         label: (0,external_wp_i18n_namespaceObject.__)('May')
       
 57222       }, {
       
 57223         value: '06',
       
 57224         label: (0,external_wp_i18n_namespaceObject.__)('June')
       
 57225       }, {
       
 57226         value: '07',
       
 57227         label: (0,external_wp_i18n_namespaceObject.__)('July')
       
 57228       }, {
       
 57229         value: '08',
       
 57230         label: (0,external_wp_i18n_namespaceObject.__)('August')
       
 57231       }, {
       
 57232         value: '09',
       
 57233         label: (0,external_wp_i18n_namespaceObject.__)('September')
       
 57234       }, {
       
 57235         value: '10',
       
 57236         label: (0,external_wp_i18n_namespaceObject.__)('October')
       
 57237       }, {
       
 57238         value: '11',
       
 57239         label: (0,external_wp_i18n_namespaceObject.__)('November')
       
 57240       }, {
       
 57241         value: '12',
       
 57242         label: (0,external_wp_i18n_namespaceObject.__)('December')
       
 57243       }],
       
 57244       onChange: value => {
 55324       onChange: value => {
 57245         const newDate = setMonth_setMonth(date, Number(value) - 1);
 55325         const newDate = setMonth(date, Number(value) - 1);
 57246         setDate(newDate);
 55326         setDate(newDate);
 57247         onChange?.(format(newDate, TIMEZONELESS_FORMAT));
 55327         onChange?.(format(newDate, TIMEZONELESS_FORMAT));
 57248       }
 55328       }
 57249     })
 55329     })
       
 55330   }, "month");
       
 55331   const yearField = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(YearInput, {
       
 55332     className: "components-datetime__time-field components-datetime__time-field-year" // Unused, for backwards compatibility.
       
 55333     ,
       
 55334     label: (0,external_wp_i18n_namespaceObject.__)('Year'),
       
 55335     hideLabelFromVision: true,
       
 55336     __next40pxDefaultSize: true,
       
 55337     value: year,
       
 55338     step: 1,
       
 55339     min: 1,
       
 55340     max: 9999,
       
 55341     required: true,
       
 55342     spinControls: "none",
       
 55343     isPressEnterToChange: true,
       
 55344     isDragEnabled: false,
       
 55345     isShiftStepEnabled: false,
       
 55346     onChange: buildNumberControlChangeCallback('year'),
       
 55347     __unstableStateReducer: buildPadInputStateReducer(4)
       
 55348   }, "year");
       
 55349   const defaultDateOrder = is12Hour ? 'mdy' : 'dmy';
       
 55350   const dateOrder = dateOrderProp && VALID_DATE_ORDERS.includes(dateOrderProp) ? dateOrderProp : defaultDateOrder;
       
 55351   const fields = dateOrder.split('').map(field => {
       
 55352     switch (field) {
       
 55353       case 'd':
       
 55354         return dayField;
       
 55355       case 'm':
       
 55356         return monthField;
       
 55357       case 'y':
       
 55358         return yearField;
       
 55359       default:
       
 55360         return null;
       
 55361     }
 57250   });
 55362   });
 57251   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(time_styles_Wrapper, {
 55363   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(time_styles_Wrapper, {
 57252     className: "components-datetime__time" // Unused, for backwards compatibility.
 55364     className: "components-datetime__time" // Unused, for backwards compatibility.
 57253     ,
 55365     ,
 57254     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Fieldset, {
 55366     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Fieldset, {
 57255       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
 55367       children: [hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
       
 55368         as: "legend",
       
 55369         children: (0,external_wp_i18n_namespaceObject.__)('Time')
       
 55370       }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
 57256         as: "legend",
 55371         as: "legend",
 57257         className: "components-datetime__time-legend" // Unused, for backwards compatibility.
 55372         className: "components-datetime__time-legend" // Unused, for backwards compatibility.
 57258         ,
 55373         ,
 57259         children: (0,external_wp_i18n_namespaceObject.__)('Time')
 55374         children: (0,external_wp_i18n_namespaceObject.__)('Time')
 57260       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 55375       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 57261         className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
 55376         className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
 57262         ,
 55377         ,
 57263         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(TimeWrapper, {
 55378         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeInput, {
 57264           className: "components-datetime__time-field components-datetime__time-field-time" // Unused, for backwards compatibility.
 55379           value: {
 57265           ,
 55380             hours: Number(hours),
 57266           children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HoursInput, {
 55381             minutes: Number(minutes)
 57267             className: "components-datetime__time-field-hours-input" // Unused, for backwards compatibility.
 55382           },
 57268             ,
 55383           is12Hour: is12Hour,
 57269             label: (0,external_wp_i18n_namespaceObject.__)('Hours'),
 55384           onChange: onTimeInputChangeCallback
 57270             hideLabelFromVision: true,
       
 57271             __next40pxDefaultSize: true,
       
 57272             value: hours,
       
 57273             step: 1,
       
 57274             min: is12Hour ? 1 : 0,
       
 57275             max: is12Hour ? 12 : 23,
       
 57276             required: true,
       
 57277             spinControls: "none",
       
 57278             isPressEnterToChange: true,
       
 57279             isDragEnabled: false,
       
 57280             isShiftStepEnabled: false,
       
 57281             onChange: buildNumberControlChangeCallback('hours'),
       
 57282             __unstableStateReducer: buildPadInputStateReducer(2)
       
 57283           }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TimeSeparator, {
       
 57284             className: "components-datetime__time-separator" // Unused, for backwards compatibility.
       
 57285             ,
       
 57286             "aria-hidden": "true",
       
 57287             children: ":"
       
 57288           }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MinutesInput, {
       
 57289             className: "components-datetime__time-field-minutes-input" // Unused, for backwards compatibility.
       
 57290             ,
       
 57291             label: (0,external_wp_i18n_namespaceObject.__)('Minutes'),
       
 57292             hideLabelFromVision: true,
       
 57293             __next40pxDefaultSize: true,
       
 57294             value: minutes,
       
 57295             step: 1,
       
 57296             min: 0,
       
 57297             max: 59,
       
 57298             required: true,
       
 57299             spinControls: "none",
       
 57300             isPressEnterToChange: true,
       
 57301             isDragEnabled: false,
       
 57302             isShiftStepEnabled: false,
       
 57303             onChange: buildNumberControlChangeCallback('minutes'),
       
 57304             __unstableStateReducer: buildPadInputStateReducer(2)
       
 57305           })]
       
 57306         }), is12Hour && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(button_group, {
       
 57307           className: "components-datetime__time-field components-datetime__time-field-am-pm" // Unused, for backwards compatibility.
       
 57308           ,
       
 57309           children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 57310             className: "components-datetime__time-am-button" // Unused, for backwards compatibility.
       
 57311             ,
       
 57312             variant: am === 'AM' ? 'primary' : 'secondary',
       
 57313             __next40pxDefaultSize: true,
       
 57314             onClick: buildAmPmChangeCallback('AM'),
       
 57315             children: (0,external_wp_i18n_namespaceObject.__)('AM')
       
 57316           }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 57317             className: "components-datetime__time-pm-button" // Unused, for backwards compatibility.
       
 57318             ,
       
 57319             variant: am === 'PM' ? 'primary' : 'secondary',
       
 57320             __next40pxDefaultSize: true,
       
 57321             onClick: buildAmPmChangeCallback('PM'),
       
 57322             children: (0,external_wp_i18n_namespaceObject.__)('PM')
       
 57323           })]
       
 57324         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(timezone, {})]
 55385         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(timezone, {})]
 57325       })]
 55386       })]
 57326     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Fieldset, {
 55387     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Fieldset, {
 57327       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
 55388       children: [hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
       
 55389         as: "legend",
       
 55390         children: (0,external_wp_i18n_namespaceObject.__)('Date')
       
 55391       }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
 57328         as: "legend",
 55392         as: "legend",
 57329         className: "components-datetime__time-legend" // Unused, for backwards compatibility.
 55393         className: "components-datetime__time-legend" // Unused, for backwards compatibility.
 57330         ,
 55394         ,
 57331         children: (0,external_wp_i18n_namespaceObject.__)('Date')
 55395         children: (0,external_wp_i18n_namespaceObject.__)('Date')
 57332       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 55396       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(h_stack_component, {
 57333         className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
 55397         className: "components-datetime__time-wrapper" // Unused, for backwards compatibility.
 57334         ,
 55398         ,
 57335         children: [is12Hour ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 55399         children: fields
 57336           children: [monthField, dayField]
       
 57337         }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 57338           children: [dayField, monthField]
       
 57339         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(YearInput, {
       
 57340           className: "components-datetime__time-field components-datetime__time-field-year" // Unused, for backwards compatibility.
       
 57341           ,
       
 57342           label: (0,external_wp_i18n_namespaceObject.__)('Year'),
       
 57343           hideLabelFromVision: true,
       
 57344           __next40pxDefaultSize: true,
       
 57345           value: year,
       
 57346           step: 1,
       
 57347           min: 1,
       
 57348           max: 9999,
       
 57349           required: true,
       
 57350           spinControls: "none",
       
 57351           isPressEnterToChange: true,
       
 57352           isDragEnabled: false,
       
 57353           isShiftStepEnabled: false,
       
 57354           onChange: buildNumberControlChangeCallback('year'),
       
 57355           __unstableStateReducer: buildPadInputStateReducer(4)
       
 57356         })]
       
 57357       })]
 55400       })]
 57358     })]
 55401     })]
 57359   });
 55402   });
 57360 }
 55403 }
       
 55404 
       
 55405 /**
       
 55406  * A component to input a time.
       
 55407  *
       
 55408  * Values are passed as an object in 24-hour format (`{ hours: number, minutes: number }`).
       
 55409  *
       
 55410  * ```jsx
       
 55411  * import { TimePicker } from '@wordpress/components';
       
 55412  * import { useState } from '@wordpress/element';
       
 55413  *
       
 55414  * const MyTimeInput = () => {
       
 55415  * 	const [ time, setTime ] = useState( { hours: 13, minutes: 30 } );
       
 55416  *
       
 55417  * 	return (
       
 55418  * 		<TimePicker.TimeInput
       
 55419  * 			value={ time }
       
 55420  * 			onChange={ setTime }
       
 55421  * 			label="Time"
       
 55422  * 		/>
       
 55423  * 	);
       
 55424  * };
       
 55425  * ```
       
 55426  */
       
 55427 TimePicker.TimeInput = TimeInput;
       
 55428 Object.assign(TimePicker.TimeInput, {
       
 55429   displayName: 'TimePicker.TimeInput'
       
 55430 });
 57361 /* harmony default export */ const date_time_time = (TimePicker);
 55431 /* harmony default export */ const date_time_time = (TimePicker);
 57362 
 55432 
 57363 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date-time/styles.js
 55433 ;// ./node_modules/@wordpress/components/build-module/date-time/date-time/styles.js
 57364 
 55434 
 57365 function date_time_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 55435 function date_time_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 57366 /**
 55436 /**
 57367  * External dependencies
 55437  * External dependencies
 57368  */
 55438  */
 57376 } : 0)( true ? {
 55446 } : 0)( true ? {
 57377   name: "1khn195",
 55447   name: "1khn195",
 57378   styles: "box-sizing:border-box"
 55448   styles: "box-sizing:border-box"
 57379 } : 0);
 55449 } : 0);
 57380 
 55450 
 57381 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date-time/index.js
 55451 ;// ./node_modules/@wordpress/components/build-module/date-time/date-time/index.js
 57382 /**
 55452 /**
 57383  * External dependencies
 55453  * External dependencies
 57384  */
 55454  */
 57385 
 55455 
 57386 /**
 55456 /**
 57387  * WordPress dependencies
 55457  * WordPress dependencies
 57388  */
 55458  */
 57389 
 55459 
       
 55460 
 57390 /**
 55461 /**
 57391  * Internal dependencies
 55462  * Internal dependencies
 57392  */
 55463  */
 57393 
       
 57394 
       
 57395 
 55464 
 57396 
 55465 
 57397 
 55466 
 57398 
 55467 
 57399 
 55468 
 57400 const date_time_noop = () => {};
 55469 const date_time_noop = () => {};
 57401 function UnforwardedDateTimePicker({
 55470 function UnforwardedDateTimePicker({
 57402   currentDate,
 55471   currentDate,
 57403   is12Hour,
 55472   is12Hour,
       
 55473   dateOrder,
 57404   isInvalidDate,
 55474   isInvalidDate,
 57405   onMonthPreviewed = date_time_noop,
 55475   onMonthPreviewed = date_time_noop,
 57406   onChange,
 55476   onChange,
 57407   events,
 55477   events,
 57408   startOfWeek
 55478   startOfWeek
 57413     spacing: 4,
 55483     spacing: 4,
 57414     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 55484     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 57415       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_time_time, {
 55485       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_time_time, {
 57416         currentTime: currentDate,
 55486         currentTime: currentDate,
 57417         onChange: onChange,
 55487         onChange: onChange,
 57418         is12Hour: is12Hour
 55488         is12Hour: is12Hour,
       
 55489         dateOrder: dateOrder
 57419       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date, {
 55490       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date, {
 57420         currentDate: currentDate,
 55491         currentDate: currentDate,
 57421         onChange: onChange,
 55492         onChange: onChange,
 57422         isInvalidDate: isInvalidDate,
 55493         isInvalidDate: isInvalidDate,
 57423         events: events,
 55494         events: events,
 57451  * ```
 55522  * ```
 57452  */
 55523  */
 57453 const DateTimePicker = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedDateTimePicker);
 55524 const DateTimePicker = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedDateTimePicker);
 57454 /* harmony default export */ const date_time = (DateTimePicker);
 55525 /* harmony default export */ const date_time = (DateTimePicker);
 57455 
 55526 
 57456 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/index.js
 55527 ;// ./node_modules/@wordpress/components/build-module/date-time/index.js
 57457 /**
 55528 /**
 57458  * Internal dependencies
 55529  * Internal dependencies
 57459  */
 55530  */
 57460 
 55531 
 57461 
 55532 
 57462 
 55533 
 57463 
 55534 
 57464 /* harmony default export */ const build_module_date_time = (date_time);
 55535 /* harmony default export */ const build_module_date_time = (date_time);
 57465 
 55536 
 57466 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dimension-control/sizes.js
 55537 ;// ./node_modules/@wordpress/components/build-module/dimension-control/sizes.js
 57467 /**
 55538 /**
 57468  * Sizes
 55539  * Sizes
 57469  *
 55540  *
 57470  * defines the sizes used in dimension controls
 55541  * defines the sizes used in dimension controls
 57471  * all hardcoded `size` values are based on the value of
 55542  * all hardcoded `size` values are based on the value of
 57505 }, {
 55576 }, {
 57506   name: (0,external_wp_i18n_namespaceObject._x)('Extra Large', 'Size of a UI element'),
 55577   name: (0,external_wp_i18n_namespaceObject._x)('Extra Large', 'Size of a UI element'),
 57507   slug: 'xlarge'
 55578   slug: 'xlarge'
 57508 }]);
 55579 }]);
 57509 
 55580 
 57510 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dimension-control/index.js
 55581 ;// ./node_modules/@wordpress/components/build-module/dimension-control/index.js
 57511 /**
 55582 /**
 57512  * External dependencies
 55583  * External dependencies
 57513  */
 55584  */
 57514 
 55585 
 57515 
 55586 
 57525 
 55596 
 57526 
 55597 
 57527 
 55598 
 57528 
 55599 
 57529 
 55600 
       
 55601 
       
 55602 const dimension_control_CONTEXT_VALUE = {
       
 55603   BaseControl: {
       
 55604     // Temporary during deprecation grace period: Overrides the underlying `__associatedWPComponentName`
       
 55605     // via the context system to override the value set by SelectControl.
       
 55606     _overrides: {
       
 55607       __associatedWPComponentName: 'DimensionControl'
       
 55608     }
       
 55609   }
       
 55610 };
       
 55611 
 57530 /**
 55612 /**
 57531  * `DimensionControl` is a component designed to provide a UI to control spacing and/or dimensions.
 55613  * `DimensionControl` is a component designed to provide a UI to control spacing and/or dimensions.
 57532  *
 55614  *
 57533  * This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
 55615  * @deprecated
 57534  *
 55616  *
 57535  * ```jsx
 55617  * ```jsx
 57536  * import { __experimentalDimensionControl as DimensionControl } from '@wordpress/components';
 55618  * import { __experimentalDimensionControl as DimensionControl } from '@wordpress/components';
 57537  * import { useState } from '@wordpress/element';
 55619  * import { useState } from '@wordpress/element';
 57538  *
 55620  *
 57539  * export default function MyCustomDimensionControl() {
 55621  * export default function MyCustomDimensionControl() {
 57540  * 	const [ paddingSize, setPaddingSize ] = useState( '' );
 55622  * 	const [ paddingSize, setPaddingSize ] = useState( '' );
 57541  *
 55623  *
 57542  * 	return (
 55624  * 	return (
 57543  * 		<DimensionControl
 55625  * 		<DimensionControl
       
 55626  * 			__next40pxDefaultSize
       
 55627  * 			__nextHasNoMarginBottom
 57544  * 			label={ 'Padding' }
 55628  * 			label={ 'Padding' }
 57545  * 			icon={ 'desktop' }
 55629  * 			icon={ 'desktop' }
 57546  * 			onChange={ ( value ) => setPaddingSize( value ) }
 55630  * 			onChange={ ( value ) => setPaddingSize( value ) }
 57547  * 			value={ paddingSize }
 55631  * 			value={ paddingSize }
 57548  * 		/>
 55632  * 		/>
 57551  * ```
 55635  * ```
 57552  */
 55636  */
 57553 function DimensionControl(props) {
 55637 function DimensionControl(props) {
 57554   const {
 55638   const {
 57555     __next40pxDefaultSize = false,
 55639     __next40pxDefaultSize = false,
       
 55640     __nextHasNoMarginBottom = false,
 57556     label,
 55641     label,
 57557     value,
 55642     value,
 57558     sizes = dimension_control_sizes,
 55643     sizes = dimension_control_sizes,
 57559     icon,
 55644     icon,
 57560     onChange,
 55645     onChange,
 57561     className = ''
 55646     className = ''
 57562   } = props;
 55647   } = props;
       
 55648   external_wp_deprecated_default()('wp.components.DimensionControl', {
       
 55649     since: '6.7',
       
 55650     version: '7.0'
       
 55651   });
       
 55652   maybeWarnDeprecated36pxSize({
       
 55653     componentName: 'DimensionControl',
       
 55654     __next40pxDefaultSize,
       
 55655     size: undefined
       
 55656   });
 57563   const onChangeSpacingSize = val => {
 55657   const onChangeSpacingSize = val => {
 57564     const theSize = findSizeBySlug(sizes, val);
 55658     const theSize = findSizeBySlug(sizes, val);
 57565     if (!theSize || value === theSize.slug) {
 55659     if (!theSize || value === theSize.slug) {
 57566       onChange?.(undefined);
 55660       onChange?.(undefined);
 57567     } else if (typeof onChange === 'function') {
 55661     } else if (typeof onChange === 'function') {
 57584   const selectLabel = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 55678   const selectLabel = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 57585     children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
 55679     children: [icon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
 57586       icon: icon
 55680       icon: icon
 57587     }), label]
 55681     }), label]
 57588   });
 55682   });
 57589   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
 55683   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
 57590     __next40pxDefaultSize: __next40pxDefaultSize,
 55684     value: dimension_control_CONTEXT_VALUE,
 57591     className: dist_clsx(className, 'block-editor-dimension-control'),
 55685     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
 57592     label: selectLabel,
 55686       __next40pxDefaultSize: __next40pxDefaultSize,
 57593     hideLabelFromVision: false,
 55687       __shouldNotWarnDeprecated36pxSize: true,
 57594     value: value,
 55688       __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 57595     onChange: onChangeSpacingSize,
 55689       className: dist_clsx(className, 'block-editor-dimension-control'),
 57596     options: formatSizesAsOptions(sizes)
 55690       label: selectLabel,
       
 55691       hideLabelFromVision: false,
       
 55692       value: value,
       
 55693       onChange: onChangeSpacingSize,
       
 55694       options: formatSizesAsOptions(sizes)
       
 55695     })
 57597   });
 55696   });
 57598 }
 55697 }
 57599 /* harmony default export */ const dimension_control = (DimensionControl);
 55698 /* harmony default export */ const dimension_control = (DimensionControl);
 57600 
 55699 
 57601 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/disabled/styles/disabled-styles.js
 55700 ;// ./node_modules/@wordpress/components/build-module/disabled/styles/disabled-styles.js
 57602 function disabled_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 55701 function disabled_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 57603 /**
 55702 /**
 57604  * External dependencies
 55703  * External dependencies
 57605  */
 55704  */
 57606 
 55705 
 57607 const disabled_styles_disabledStyles =  true ? {
 55706 const disabled_styles_disabledStyles =  true ? {
 57608   name: "u2jump",
 55707   name: "u2jump",
 57609   styles: "position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"
 55708   styles: "position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"
 57610 } : 0;
 55709 } : 0;
 57611 
 55710 
 57612 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/disabled/index.js
 55711 ;// ./node_modules/@wordpress/components/build-module/disabled/index.js
 57613 /**
 55712 /**
 57614  * WordPress dependencies
 55713  * WordPress dependencies
 57615  */
 55714  */
 57616 
 55715 
 57617 
 55716 
 57642  * import { useState } from '@wordpress/element';
 55741  * import { useState } from '@wordpress/element';
 57643  *
 55742  *
 57644  * const MyDisabled = () => {
 55743  * const MyDisabled = () => {
 57645  * 	const [ isDisabled, setIsDisabled ] = useState( true );
 55744  * 	const [ isDisabled, setIsDisabled ] = useState( true );
 57646  *
 55745  *
 57647  * 	let input = <TextControl label="Input" onChange={ () => {} } />;
 55746  *	let input = (
       
 55747  *		<TextControl
       
 55748  *			__next40pxDefaultSize
       
 55749  *			__nextHasNoMarginBottom
       
 55750  *			label="Input"
       
 55751  *			onChange={ () => {} }
       
 55752  *		/>
       
 55753  *	);
 57648  * 	if ( isDisabled ) {
 55754  * 	if ( isDisabled ) {
 57649  * 		input = <Disabled>{ input }</Disabled>;
 55755  * 		input = <Disabled>{ input }</Disabled>;
 57650  * 	}
 55756  * 	}
 57651  *
 55757  *
 57652  * 	const toggleDisabled = () => {
 55758  * 	const toggleDisabled = () => {
 57684 }
 55790 }
 57685 Disabled.Context = Context;
 55791 Disabled.Context = Context;
 57686 Disabled.Consumer = Consumer;
 55792 Disabled.Consumer = Consumer;
 57687 /* harmony default export */ const disabled = (Disabled);
 55793 /* harmony default export */ const disabled = (Disabled);
 57688 
 55794 
 57689 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/disclosure/index.js
 55795 ;// ./node_modules/@wordpress/components/build-module/disclosure/index.js
 57690 /**
 55796 /**
 57691  * External dependencies
 55797  * External dependencies
 57692  */
 55798  */
 57693 // eslint-disable-next-line no-restricted-imports
       
 57694 
 55799 
 57695 
 55800 
 57696 /**
 55801 /**
 57697  * WordPress dependencies
 55802  * WordPress dependencies
 57698  */
 55803  */
 57722   });
 55827   });
 57723 };
 55828 };
 57724 const disclosure_DisclosureContent = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedDisclosureContent);
 55829 const disclosure_DisclosureContent = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedDisclosureContent);
 57725 /* harmony default export */ const disclosure = ((/* unused pure expression or super */ null && (disclosure_DisclosureContent)));
 55830 /* harmony default export */ const disclosure = ((/* unused pure expression or super */ null && (disclosure_DisclosureContent)));
 57726 
 55831 
 57727 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/draggable/index.js
 55832 ;// ./node_modules/@wordpress/components/build-module/draggable/index.js
 57728 /**
 55833 /**
 57729  * External dependencies
 55834  * External dependencies
 57730  */
 55835  */
 57731 
 55836 
 57732 /**
 55837 /**
 57736 
 55841 
 57737 
 55842 
 57738 /**
 55843 /**
 57739  * Internal dependencies
 55844  * Internal dependencies
 57740  */
 55845  */
 57741 
       
 57742 
       
 57743 
 55846 
 57744 const dragImageClass = 'components-draggable__invisible-drag-image';
 55847 const dragImageClass = 'components-draggable__invisible-drag-image';
 57745 const cloneWrapperClass = 'components-draggable__clone';
 55848 const cloneWrapperClass = 'components-draggable__clone';
 57746 const clonePadding = 0;
 55849 const clonePadding = 0;
 57747 const bodyClass = 'is-dragging-components-draggable';
 55850 const bodyClass = 'is-dragging-components-draggable';
 57796   transferData,
 55899   transferData,
 57797   __experimentalTransferDataType: transferDataType = 'text',
 55900   __experimentalTransferDataType: transferDataType = 'text',
 57798   __experimentalDragComponent: dragComponent
 55901   __experimentalDragComponent: dragComponent
 57799 }) {
 55902 }) {
 57800   const dragComponentRef = (0,external_wp_element_namespaceObject.useRef)(null);
 55903   const dragComponentRef = (0,external_wp_element_namespaceObject.useRef)(null);
 57801   const cleanup = (0,external_wp_element_namespaceObject.useRef)(() => {});
 55904   const cleanupRef = (0,external_wp_element_namespaceObject.useRef)(() => {});
 57802 
 55905 
 57803   /**
 55906   /**
 57804    * Removes the element clone, resets cursor, and removes drag listener.
 55907    * Removes the element clone, resets cursor, and removes drag listener.
 57805    *
 55908    *
 57806    * @param event The non-custom DragEvent.
 55909    * @param event The non-custom DragEvent.
 57807    */
 55910    */
 57808   function end(event) {
 55911   function end(event) {
 57809     event.preventDefault();
 55912     event.preventDefault();
 57810     cleanup.current();
 55913     cleanupRef.current();
 57811     if (onDragEnd) {
 55914     if (onDragEnd) {
 57812       onDragEnd(event);
 55915       onDragEnd(event);
 57813     }
 55916     }
 57814   }
 55917   }
 57815 
 55918 
 57919     // Update cursor to 'grabbing', document wide.
 56022     // Update cursor to 'grabbing', document wide.
 57920     ownerDocument.body.classList.add(bodyClass);
 56023     ownerDocument.body.classList.add(bodyClass);
 57921     if (onDragStart) {
 56024     if (onDragStart) {
 57922       onDragStart(event);
 56025       onDragStart(event);
 57923     }
 56026     }
 57924     cleanup.current = () => {
 56027     cleanupRef.current = () => {
 57925       // Remove drag clone.
 56028       // Remove drag clone.
 57926       if (cloneWrapper && cloneWrapper.parentNode) {
 56029       if (cloneWrapper && cloneWrapper.parentNode) {
 57927         cloneWrapper.parentNode.removeChild(cloneWrapper);
 56030         cloneWrapper.parentNode.removeChild(cloneWrapper);
 57928       }
 56031       }
 57929       if (dragImage && dragImage.parentNode) {
 56032       if (dragImage && dragImage.parentNode) {
 57934       ownerDocument.body.classList.remove(bodyClass);
 56037       ownerDocument.body.classList.remove(bodyClass);
 57935       ownerDocument.removeEventListener('dragover', throttledDragOver);
 56038       ownerDocument.removeEventListener('dragover', throttledDragOver);
 57936     };
 56039     };
 57937   }
 56040   }
 57938   (0,external_wp_element_namespaceObject.useEffect)(() => () => {
 56041   (0,external_wp_element_namespaceObject.useEffect)(() => () => {
 57939     cleanup.current();
 56042     cleanupRef.current();
 57940   }, []);
 56043   }, []);
 57941   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 56044   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 57942     children: [children({
 56045     children: [children({
 57943       onDraggableStart: start,
 56046       onDraggableStart: start,
 57944       onDraggableEnd: end
 56047       onDraggableEnd: end
 57952     })]
 56055     })]
 57953   });
 56056   });
 57954 }
 56057 }
 57955 /* harmony default export */ const draggable = (Draggable);
 56058 /* harmony default export */ const draggable = (Draggable);
 57956 
 56059 
 57957 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js
 56060 ;// ./node_modules/@wordpress/icons/build-module/library/upload.js
 57958 /**
 56061 /**
 57959  * WordPress dependencies
 56062  * WordPress dependencies
 57960  */
 56063  */
 57961 
 56064 
 57962 
 56065 
 57967     d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
 56070     d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"
 57968   })
 56071   })
 57969 });
 56072 });
 57970 /* harmony default export */ const library_upload = (upload);
 56073 /* harmony default export */ const library_upload = (upload);
 57971 
 56074 
 57972 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/drop-zone/index.js
 56075 ;// ./node_modules/@wordpress/components/build-module/drop-zone/index.js
 57973 /**
 56076 /**
 57974  * External dependencies
 56077  * External dependencies
 57975  */
 56078  */
 57976 
 56079 
 57977 
 56080 
 57985 
 56088 
 57986 
 56089 
 57987 /**
 56090 /**
 57988  * Internal dependencies
 56091  * Internal dependencies
 57989  */
 56092  */
 57990 
       
 57991 
       
 57992 
       
 57993 const drop_zone_backdrop = {
       
 57994   hidden: {
       
 57995     opacity: 0
       
 57996   },
       
 57997   show: {
       
 57998     opacity: 1,
       
 57999     transition: {
       
 58000       type: 'tween',
       
 58001       duration: 0.2,
       
 58002       delay: 0,
       
 58003       delayChildren: 0.1
       
 58004     }
       
 58005   },
       
 58006   exit: {
       
 58007     opacity: 0,
       
 58008     transition: {
       
 58009       duration: 0.2,
       
 58010       delayChildren: 0
       
 58011     }
       
 58012   }
       
 58013 };
       
 58014 const foreground = {
       
 58015   hidden: {
       
 58016     opacity: 0,
       
 58017     scale: 0.9
       
 58018   },
       
 58019   show: {
       
 58020     opacity: 1,
       
 58021     scale: 1,
       
 58022     transition: {
       
 58023       duration: 0.1
       
 58024     }
       
 58025   },
       
 58026   exit: {
       
 58027     opacity: 0,
       
 58028     scale: 0.9
       
 58029   }
       
 58030 };
       
 58031 function DropIndicator({
       
 58032   label
       
 58033 }) {
       
 58034   const disableMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
       
 58035   const children = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(motion.div, {
       
 58036     variants: drop_zone_backdrop,
       
 58037     initial: disableMotion ? 'show' : 'hidden',
       
 58038     animate: "show",
       
 58039     exit: disableMotion ? 'show' : 'exit',
       
 58040     className: "components-drop-zone__content"
       
 58041     // Without this, when this div is shown,
       
 58042     // Safari calls a onDropZoneLeave causing a loop because of this bug
       
 58043     // https://bugs.webkit.org/show_bug.cgi?id=66547
       
 58044     ,
       
 58045     style: {
       
 58046       pointerEvents: 'none'
       
 58047     },
       
 58048     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(motion.div, {
       
 58049       variants: foreground,
       
 58050       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
       
 58051         icon: library_upload,
       
 58052         className: "components-drop-zone__content-icon"
       
 58053       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 58054         className: "components-drop-zone__content-text",
       
 58055         children: label ? label : (0,external_wp_i18n_namespaceObject.__)('Drop files to upload')
       
 58056       })]
       
 58057     })
       
 58058   });
       
 58059   if (disableMotion) {
       
 58060     return children;
       
 58061   }
       
 58062   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AnimatePresence, {
       
 58063     children: children
       
 58064   });
       
 58065 }
       
 58066 
 56093 
 58067 /**
 56094 /**
 58068  * `DropZone` is a component creating a drop zone area taking the full size of its parent element. It supports dropping files, HTML content or any other HTML drop event.
 56095  * `DropZone` is a component creating a drop zone area taking the full size of its parent element. It supports dropping files, HTML content or any other HTML drop event.
 58069  *
 56096  *
 58070  * ```jsx
 56097  * ```jsx
 58091   className,
 56118   className,
 58092   label,
 56119   label,
 58093   onFilesDrop,
 56120   onFilesDrop,
 58094   onHTMLDrop,
 56121   onHTMLDrop,
 58095   onDrop,
 56122   onDrop,
       
 56123   isEligible = () => true,
 58096   ...restProps
 56124   ...restProps
 58097 }) {
 56125 }) {
 58098   const [isDraggingOverDocument, setIsDraggingOverDocument] = (0,external_wp_element_namespaceObject.useState)();
 56126   const [isDraggingOverDocument, setIsDraggingOverDocument] = (0,external_wp_element_namespaceObject.useState)();
 58099   const [isDraggingOverElement, setIsDraggingOverElement] = (0,external_wp_element_namespaceObject.useState)();
 56127   const [isDraggingOverElement, setIsDraggingOverElement] = (0,external_wp_element_namespaceObject.useState)();
 58100   const [type, setType] = (0,external_wp_element_namespaceObject.useState)();
 56128   const [isActive, setIsActive] = (0,external_wp_element_namespaceObject.useState)();
 58101   const ref = (0,external_wp_compose_namespaceObject.__experimentalUseDropZone)({
 56129   const ref = (0,external_wp_compose_namespaceObject.__experimentalUseDropZone)({
 58102     onDrop(event) {
 56130     onDrop(event) {
 58103       const files = event.dataTransfer ? (0,external_wp_dom_namespaceObject.getFilesFromDataTransfer)(event.dataTransfer) : [];
 56131       if (!event.dataTransfer) {
 58104       const html = event.dataTransfer?.getData('text/html');
 56132         return;
       
 56133       }
       
 56134       const files = (0,external_wp_dom_namespaceObject.getFilesFromDataTransfer)(event.dataTransfer);
       
 56135       const html = event.dataTransfer.getData('text/html');
 58105 
 56136 
 58106       /**
 56137       /**
 58107        * From Windows Chrome 96, the `event.dataTransfer` returns both file object and HTML.
 56138        * From Windows Chrome 96, the `event.dataTransfer` returns both file object and HTML.
 58108        * The order of the checks is important to recognise the HTML drop.
 56139        * The order of the checks is important to recognize the HTML drop.
 58109        */
 56140        */
 58110       if (html && onHTMLDrop) {
 56141       if (html && onHTMLDrop) {
 58111         onHTMLDrop(html);
 56142         onHTMLDrop(html);
 58112       } else if (files.length && onFilesDrop) {
 56143       } else if (files.length && onFilesDrop) {
 58113         onFilesDrop(files);
 56144         onFilesDrop(files);
 58115         onDrop(event);
 56146         onDrop(event);
 58116       }
 56147       }
 58117     },
 56148     },
 58118     onDragStart(event) {
 56149     onDragStart(event) {
 58119       setIsDraggingOverDocument(true);
 56150       setIsDraggingOverDocument(true);
 58120       let _type = 'default';
 56151       if (!event.dataTransfer) {
       
 56152         return;
       
 56153       }
 58121 
 56154 
 58122       /**
 56155       /**
 58123        * From Windows Chrome 96, the `event.dataTransfer` returns both file object and HTML.
 56156        * From Windows Chrome 96, the `event.dataTransfer` returns both file object and HTML.
 58124        * The order of the checks is important to recognise the HTML drop.
 56157        * The order of the checks is important to recognize the HTML drop.
 58125        */
 56158        */
 58126       if (event.dataTransfer?.types.includes('text/html')) {
 56159       if (event.dataTransfer.types.includes('text/html')) {
 58127         _type = 'html';
 56160         setIsActive(!!onHTMLDrop);
 58128       } else if (
 56161       } else if (
 58129       // Check for the types because sometimes the files themselves
 56162       // Check for the types because sometimes the files themselves
 58130       // are only available on drop.
 56163       // are only available on drop.
 58131       event.dataTransfer?.types.includes('Files') || (event.dataTransfer ? (0,external_wp_dom_namespaceObject.getFilesFromDataTransfer)(event.dataTransfer) : []).length > 0) {
 56164       event.dataTransfer.types.includes('Files') || (0,external_wp_dom_namespaceObject.getFilesFromDataTransfer)(event.dataTransfer).length > 0) {
 58132         _type = 'file';
 56165         setIsActive(!!onFilesDrop);
       
 56166       } else {
       
 56167         setIsActive(!!onDrop && isEligible(event.dataTransfer));
 58133       }
 56168       }
 58134       setType(_type);
       
 58135     },
 56169     },
 58136     onDragEnd() {
 56170     onDragEnd() {
       
 56171       setIsDraggingOverElement(false);
 58137       setIsDraggingOverDocument(false);
 56172       setIsDraggingOverDocument(false);
 58138       setType(undefined);
 56173       setIsActive(undefined);
 58139     },
 56174     },
 58140     onDragEnter() {
 56175     onDragEnter() {
 58141       setIsDraggingOverElement(true);
 56176       setIsDraggingOverElement(true);
 58142     },
 56177     },
 58143     onDragLeave() {
 56178     onDragLeave() {
 58144       setIsDraggingOverElement(false);
 56179       setIsDraggingOverElement(false);
 58145     }
 56180     }
 58146   });
 56181   });
 58147   const classes = dist_clsx('components-drop-zone', className, {
 56182   const classes = dist_clsx('components-drop-zone', className, {
 58148     'is-active': (isDraggingOverDocument || isDraggingOverElement) && (type === 'file' && onFilesDrop || type === 'html' && onHTMLDrop || type === 'default' && onDrop),
 56183     'is-active': isActive,
 58149     'is-dragging-over-document': isDraggingOverDocument,
 56184     'is-dragging-over-document': isDraggingOverDocument,
 58150     'is-dragging-over-element': isDraggingOverElement,
 56185     'is-dragging-over-element': isDraggingOverElement
 58151     [`is-dragging-${type}`]: !!type
       
 58152   });
 56186   });
 58153   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 56187   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 58154     ...restProps,
 56188     ...restProps,
 58155     ref: ref,
 56189     ref: ref,
 58156     className: classes,
 56190     className: classes,
 58157     children: isDraggingOverElement && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropIndicator, {
 56191     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 58158       label: label
 56192       className: "components-drop-zone__content",
       
 56193       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
       
 56194         className: "components-drop-zone__content-inner",
       
 56195         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
       
 56196           icon: library_upload,
       
 56197           className: "components-drop-zone__content-icon"
       
 56198         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 56199           className: "components-drop-zone__content-text",
       
 56200           children: label ? label : (0,external_wp_i18n_namespaceObject.__)('Drop files to upload')
       
 56201         })]
       
 56202       })
 58159     })
 56203     })
 58160   });
 56204   });
 58161 }
 56205 }
 58162 /* harmony default export */ const drop_zone = (DropZoneComponent);
 56206 /* harmony default export */ const drop_zone = (DropZoneComponent);
 58163 
 56207 
 58164 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/drop-zone/provider.js
 56208 ;// ./node_modules/@wordpress/components/build-module/drop-zone/provider.js
 58165 /**
 56209 /**
 58166  * WordPress dependencies
 56210  * WordPress dependencies
 58167  */
 56211  */
 58168 
 56212 
 58169 function DropZoneProvider({
 56213 function DropZoneProvider({
 58174     hint: 'wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code.'
 56218     hint: 'wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code.'
 58175   });
 56219   });
 58176   return children;
 56220   return children;
 58177 }
 56221 }
 58178 
 56222 
 58179 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/swatch.js
 56223 ;// ./node_modules/@wordpress/icons/build-module/library/swatch.js
 58180 /**
 56224 /**
 58181  * WordPress dependencies
 56225  * WordPress dependencies
 58182  */
 56226  */
 58183 
 56227 
 58184 
 56228 
 58189     d: "M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"
 56233     d: "M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"
 58190   })
 56234   })
 58191 });
 56235 });
 58192 /* harmony default export */ const library_swatch = (swatch);
 56236 /* harmony default export */ const library_swatch = (swatch);
 58193 
 56237 
 58194 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/utils.js
 56238 ;// ./node_modules/@wordpress/components/build-module/duotone-picker/utils.js
 58195 /**
 56239 /**
 58196  * External dependencies
 56240  * External dependencies
 58197  */
 56241  */
 58198 
 56242 
 58199 
 56243 
 58282   return colorStops.map(({
 56326   return colorStops.map(({
 58283     color
 56327     color
 58284   }) => color);
 56328   }) => color);
 58285 }
 56329 }
 58286 
 56330 
 58287 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/duotone-swatch.js
 56331 ;// ./node_modules/@wordpress/components/build-module/duotone-picker/duotone-swatch.js
 58288 /**
 56332 /**
 58289  * WordPress dependencies
 56333  * WordPress dependencies
 58290  */
 56334  */
 58291 
 56335 
 58292 
 56336 
 58306     icon: library_swatch
 56350     icon: library_swatch
 58307   });
 56351   });
 58308 }
 56352 }
 58309 /* harmony default export */ const duotone_swatch = (DuotoneSwatch);
 56353 /* harmony default export */ const duotone_swatch = (DuotoneSwatch);
 58310 
 56354 
 58311 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/color-list-picker/index.js
 56355 ;// ./node_modules/@wordpress/components/build-module/duotone-picker/color-list-picker/index.js
 58312 /**
 56356 /**
 58313  * WordPress dependencies
 56357  * WordPress dependencies
 58314  */
 56358  */
 58315 
 56359 
 58316 
 56360 
 58317 
 56361 
 58318 
 56362 
 58319 /**
 56363 /**
 58320  * Internal dependencies
 56364  * Internal dependencies
 58321  */
 56365  */
 58322 
       
 58323 
       
 58324 
       
 58325 
 56366 
 58326 
 56367 
 58327 
 56368 
 58328 
 56369 
 58329 
 56370 
 58340   const idRoot = (0,external_wp_compose_namespaceObject.useInstanceId)(ColorOption, 'color-list-picker-option');
 56381   const idRoot = (0,external_wp_compose_namespaceObject.useInstanceId)(ColorOption, 'color-list-picker-option');
 58341   const labelId = `${idRoot}__label`;
 56382   const labelId = `${idRoot}__label`;
 58342   const contentId = `${idRoot}__content`;
 56383   const contentId = `${idRoot}__content`;
 58343   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 56384   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 58344     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 56385     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 56386       __next40pxDefaultSize: true,
 58345       className: "components-color-list-picker__swatch-button",
 56387       className: "components-color-list-picker__swatch-button",
       
 56388       id: labelId,
 58346       onClick: () => setIsOpen(prev => !prev),
 56389       onClick: () => setIsOpen(prev => !prev),
 58347       "aria-expanded": isOpen,
 56390       "aria-expanded": isOpen,
 58348       "aria-controls": contentId,
 56391       "aria-controls": contentId,
 58349       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 56392       icon: value ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator, {
 58350         justify: "flex-start",
 56393         colorValue: value,
 58351         spacing: 2,
 56394         className: "components-color-list-picker__swatch-color"
 58352         children: [value ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(color_indicator, {
 56395       }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
 58353           colorValue: value,
 56396         icon: library_swatch
 58354           className: "components-color-list-picker__swatch-color"
 56397       }),
 58355         }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
 56398       text: label
 58356           icon: library_swatch
       
 58357         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 58358           id: labelId,
       
 58359           children: label
       
 58360         })]
       
 58361       })
       
 58362     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 56399     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 58363       role: "group",
 56400       role: "group",
 58364       id: contentId,
 56401       id: contentId,
 58365       "aria-labelledby": labelId,
 56402       "aria-labelledby": labelId,
 58366       "aria-hidden": !isOpen,
 56403       "aria-hidden": !isOpen,
 58401     }, index))
 56438     }, index))
 58402   });
 56439   });
 58403 }
 56440 }
 58404 /* harmony default export */ const color_list_picker = (ColorListPicker);
 56441 /* harmony default export */ const color_list_picker = (ColorListPicker);
 58405 
 56442 
 58406 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/custom-duotone-bar.js
 56443 ;// ./node_modules/@wordpress/components/build-module/duotone-picker/custom-duotone-bar.js
 58407 /**
 56444 /**
 58408  * Internal dependencies
 56445  * Internal dependencies
 58409  */
 56446  */
 58410 
 56447 
 58411 
 56448 
 58429       onChange(newValue);
 56466       onChange(newValue);
 58430     }
 56467     }
 58431   });
 56468   });
 58432 }
 56469 }
 58433 
 56470 
 58434 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/duotone-picker/duotone-picker.js
 56471 ;// ./node_modules/@wordpress/components/build-module/duotone-picker/duotone-picker.js
 58435 /**
 56472 /**
 58436  * External dependencies
 56473  * External dependencies
 58437  */
 56474  */
 58438 
 56475 
 58439 
 56476 
 58444 
 56481 
 58445 
 56482 
 58446 /**
 56483 /**
 58447  * Internal dependencies
 56484  * Internal dependencies
 58448  */
 56485  */
 58449 
       
 58450 
 56486 
 58451 
 56487 
 58452 
 56488 
 58453 
 56489 
 58454 
 56490 
 58540       onClick: () => {
 56576       onClick: () => {
 58541         onChange(isSelected ? undefined : colors);
 56577         onChange(isSelected ? undefined : colors);
 58542       }
 56578       }
 58543     }, slug);
 56579     }, slug);
 58544   });
 56580   });
 58545   let metaProps;
 56581   const {
 58546   if (asButtons) {
 56582     metaProps,
 58547     metaProps = {
 56583     labelProps
 58548       asButtons: true
 56584   } = getComputeCircularOptionPickerCommonProps(asButtons, loop, ariaLabel, ariaLabelledby);
 58549     };
       
 58550   } else {
       
 58551     const _metaProps = {
       
 58552       asButtons: false,
       
 58553       loop
       
 58554     };
       
 58555     if (ariaLabel) {
       
 58556       metaProps = {
       
 58557         ..._metaProps,
       
 58558         'aria-label': ariaLabel
       
 58559       };
       
 58560     } else if (ariaLabelledby) {
       
 58561       metaProps = {
       
 58562         ..._metaProps,
       
 58563         'aria-labelledby': ariaLabelledby
       
 58564       };
       
 58565     } else {
       
 58566       metaProps = {
       
 58567         ..._metaProps,
       
 58568         'aria-label': (0,external_wp_i18n_namespaceObject.__)('Custom color picker.')
       
 58569       };
       
 58570     }
       
 58571   }
       
 58572   const options = unsetable ? [unsetOption, ...duotoneOptions] : duotoneOptions;
 56585   const options = unsetable ? [unsetOption, ...duotoneOptions] : duotoneOptions;
 58573   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
 56586   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker, {
 58574     ...otherProps,
 56587     ...otherProps,
 58575     ...metaProps,
 56588     ...metaProps,
       
 56589     ...labelProps,
 58576     options: options,
 56590     options: options,
 58577     actions: !!clearable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
 56591     actions: !!clearable && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_circular_option_picker.ButtonAction, {
 58578       onClick: () => onChange(undefined),
 56592       onClick: () => onChange(undefined),
       
 56593       accessibleWhenDisabled: true,
       
 56594       disabled: !value,
 58579       children: (0,external_wp_i18n_namespaceObject.__)('Clear')
 56595       children: (0,external_wp_i18n_namespaceObject.__)('Clear')
 58580     }),
 56596     }),
 58581     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 56597     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
 58582       paddingTop: options.length === 0 ? 0 : 4,
 56598       paddingTop: options.length === 0 ? 0 : 4,
 58583       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 56599       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(v_stack_component, {
 58609     })
 56625     })
 58610   });
 56626   });
 58611 }
 56627 }
 58612 /* harmony default export */ const duotone_picker = (DuotonePicker);
 56628 /* harmony default export */ const duotone_picker = (DuotonePicker);
 58613 
 56629 
 58614 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/index.js
 56630 ;// ./node_modules/@wordpress/components/build-module/external-link/index.js
 58615 /**
 56631 /**
 58616  * External dependencies
 56632  * External dependencies
 58617  */
 56633  */
 58618 
 56634 
 58619 /**
 56635 /**
 58623 
 56639 
 58624 
 56640 
 58625 /**
 56641 /**
 58626  * Internal dependencies
 56642  * Internal dependencies
 58627  */
 56643  */
 58628 
       
 58629 
 56644 
 58630 function UnforwardedExternalLink(props, ref) {
 56645 function UnforwardedExternalLink(props, ref) {
 58631   const {
 56646   const {
 58632     href,
 56647     href,
 58633     children,
 56648     children,
 58647     }
 56662     }
 58648     if (props.onClick) {
 56663     if (props.onClick) {
 58649       props.onClick(event);
 56664       props.onClick(event);
 58650     }
 56665     }
 58651   };
 56666   };
 58652   return (
 56667   return /*#__PURE__*/ /* eslint-disable react/jsx-no-target-blank */(0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
 58653     /*#__PURE__*/
 56668     ...additionalProps,
 58654     /* eslint-disable react/jsx-no-target-blank */
 56669     className: classes,
 58655     (0,external_ReactJSXRuntime_namespaceObject.jsxs)("a", {
 56670     href: href,
 58656       ...additionalProps,
 56671     onClick: onClickHandler,
 58657       className: classes,
 56672     target: "_blank",
 58658       href: href,
 56673     rel: optimizedRel,
 58659       onClick: onClickHandler,
 56674     ref: ref,
 58660       target: "_blank",
 56675     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 58661       rel: optimizedRel,
 56676       className: "components-external-link__contents",
 58662       ref: ref,
 56677       children: children
 58663       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 56678     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 58664         className: "components-external-link__contents",
 56679       className: "components-external-link__icon",
 58665         children: children
 56680       "aria-label": /* translators: accessibility text */
 58666       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 56681       (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'),
 58667         className: "components-external-link__icon",
 56682       children: "\u2197"
 58668         "aria-label": /* translators: accessibility text */
 56683     })]
 58669         (0,external_wp_i18n_namespaceObject.__)('(opens in a new tab)'),
 56684   })
 58670         children: "\u2197"
 56685   /* eslint-enable react/jsx-no-target-blank */;
 58671       })]
       
 58672     })
       
 58673     /* eslint-enable react/jsx-no-target-blank */
       
 58674   );
       
 58675 }
 56686 }
 58676 
 56687 
 58677 /**
 56688 /**
 58678  * Link to an external resource.
 56689  * Link to an external resource.
 58679  *
 56690  *
 58686  * ```
 56697  * ```
 58687  */
 56698  */
 58688 const ExternalLink = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedExternalLink);
 56699 const ExternalLink = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedExternalLink);
 58689 /* harmony default export */ const external_link = (ExternalLink);
 56700 /* harmony default export */ const external_link = (ExternalLink);
 58690 
 56701 
 58691 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/utils.js
 56702 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/utils.js
 58692 const INITIAL_BOUNDS = {
 56703 const INITIAL_BOUNDS = {
 58693   width: 200,
 56704   width: 200,
 58694   height: 170
 56705   height: 170
 58695 };
 56706 };
 58696 const VIDEO_EXTENSIONS = ['avi', 'mpg', 'mpeg', 'mov', 'mp4', 'm4v', 'ogg', 'ogv', 'webm', 'wmv'];
 56707 const VIDEO_EXTENSIONS = ['avi', 'mpg', 'mpeg', 'mov', 'mp4', 'm4v', 'ogg', 'ogv', 'webm', 'wmv'];
 58727  */
 56738  */
 58728 function fractionToPercentage(fraction) {
 56739 function fractionToPercentage(fraction) {
 58729   return Math.round(fraction * 100);
 56740   return Math.round(fraction * 100);
 58730 }
 56741 }
 58731 
 56742 
 58732 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/styles/focal-point-picker-style.js
 56743 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/styles/focal-point-picker-style.js
 58733 
 56744 
 58734 function focal_point_picker_style_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 56745 function focal_point_picker_style_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 58735 /**
 56746 /**
 58736  * External dependencies
 56747  * External dependencies
 58737  */
 56748  */
 58749   name: "jqnsxy",
 56760   name: "jqnsxy",
 58750   styles: "background-color:transparent;display:flex;text-align:center;width:100%"
 56761   styles: "background-color:transparent;display:flex;text-align:center;width:100%"
 58751 } : 0);
 56762 } : 0);
 58752 const MediaContainer = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 56763 const MediaContainer = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 58753   target: "eeew7dm7"
 56764   target: "eeew7dm7"
 58754 } : 0)("align-items:center;border-radius:", config_values.radiusBlockUi, ";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}" + ( true ? "" : 0));
 56765 } : 0)("align-items:center;border-radius:", config_values.radiusSmall, ";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}" + ( true ? "" : 0));
 58755 const MediaPlaceholder = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 56766 const MediaPlaceholder = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 58756   target: "eeew7dm6"
 56767   target: "eeew7dm6"
 58757 } : 0)("background:", COLORS.gray[100], ";border-radius:inherit;box-sizing:border-box;height:", INITIAL_BOUNDS.height, "px;max-width:280px;min-width:", INITIAL_BOUNDS.width, "px;width:100%;" + ( true ? "" : 0));
 56768 } : 0)("background:", COLORS.gray[100], ";border-radius:inherit;box-sizing:border-box;height:", INITIAL_BOUNDS.height, "px;max-width:280px;min-width:", INITIAL_BOUNDS.width, "px;width:100%;" + ( true ? "" : 0));
 58758 const focal_point_picker_style_StyledUnitControl = /*#__PURE__*/emotion_styled_base_browser_esm(unit_control,  true ? {
 56769 const focal_point_picker_style_StyledUnitControl = /*#__PURE__*/emotion_styled_base_browser_esm(unit_control,  true ? {
 58759   target: "eeew7dm5"
 56770   target: "eeew7dm5"
 58804 } : 0)( true ? {
 56815 } : 0)( true ? {
 58805   name: "188vg4t",
 56816   name: "188vg4t",
 58806   styles: "width:1px;top:1px;bottom:1px"
 56817   styles: "width:1px;top:1px;bottom:1px"
 58807 } : 0);
 56818 } : 0);
 58808 
 56819 
 58809 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/controls.js
 56820 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/controls.js
 58810 /**
 56821 /**
 58811  * WordPress dependencies
 56822  * WordPress dependencies
 58812  */
 56823  */
 58813 
 56824 
 58814 
 56825 
 58815 /**
 56826 /**
 58816  * Internal dependencies
 56827  * Internal dependencies
 58817  */
 56828  */
 58818 
       
 58819 
 56829 
 58820 
 56830 
 58821 
 56831 
 58822 const TEXTCONTROL_MIN = 0;
 56832 const TEXTCONTROL_MIN = 0;
 58823 const TEXTCONTROL_MAX = 100;
 56833 const TEXTCONTROL_MAX = 100;
 58824 const controls_noop = () => {};
 56834 const controls_noop = () => {};
 58825 function FocalPointPickerControls({
 56835 function FocalPointPickerControls({
 58826   __nextHasNoMarginBottom,
 56836   __nextHasNoMarginBottom,
 58827   __next40pxDefaultSize,
       
 58828   hasHelpText,
 56837   hasHelpText,
 58829   onChange = controls_noop,
 56838   onChange = controls_noop,
 58830   point = {
 56839   point = {
 58831     x: 0.5,
 56840     x: 0.5,
 58832     y: 0.5
 56841     y: 0.5
 58850     className: "focal-point-picker__controls",
 56859     className: "focal-point-picker__controls",
 58851     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 56860     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 58852     hasHelpText: hasHelpText,
 56861     hasHelpText: hasHelpText,
 58853     gap: 4,
 56862     gap: 4,
 58854     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointUnitControl, {
 56863     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointUnitControl, {
 58855       __next40pxDefaultSize: __next40pxDefaultSize,
       
 58856       label: (0,external_wp_i18n_namespaceObject.__)('Left'),
 56864       label: (0,external_wp_i18n_namespaceObject.__)('Left'),
 58857       "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point left position'),
 56865       "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point left position'),
 58858       value: [valueX, '%'].join(''),
 56866       value: [valueX, '%'].join(''),
 58859       onChange: next => handleChange(next, 'x'),
 56867       onChange: next => handleChange(next, 'x'),
 58860       dragDirection: "e"
 56868       dragDirection: "e"
 58861     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointUnitControl, {
 56869     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointUnitControl, {
 58862       __next40pxDefaultSize: __next40pxDefaultSize,
       
 58863       label: (0,external_wp_i18n_namespaceObject.__)('Top'),
 56870       label: (0,external_wp_i18n_namespaceObject.__)('Top'),
 58864       "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point top position'),
 56871       "aria-label": (0,external_wp_i18n_namespaceObject.__)('Focal point top position'),
 58865       value: [valueY, '%'].join(''),
 56872       value: [valueY, '%'].join(''),
 58866       onChange: next => handleChange(next, 'y'),
 56873       onChange: next => handleChange(next, 'y'),
 58867       dragDirection: "s"
 56874       dragDirection: "s"
 58868     })]
 56875     })]
 58869   });
 56876   });
 58870 }
 56877 }
 58871 function FocalPointUnitControl(props) {
 56878 function FocalPointUnitControl(props) {
 58872   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(focal_point_picker_style_StyledUnitControl, {
 56879   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(focal_point_picker_style_StyledUnitControl, {
       
 56880     __next40pxDefaultSize: true,
 58873     className: "focal-point-picker__controls-position-unit-control",
 56881     className: "focal-point-picker__controls-position-unit-control",
 58874     labelPosition: "top",
 56882     labelPosition: "top",
 58875     max: TEXTCONTROL_MAX,
 56883     max: TEXTCONTROL_MAX,
 58876     min: TEXTCONTROL_MIN,
 56884     min: TEXTCONTROL_MIN,
 58877     units: [{
 56885     units: [{
 58880     }],
 56888     }],
 58881     ...props
 56889     ...props
 58882   });
 56890   });
 58883 }
 56891 }
 58884 
 56892 
 58885 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/styles/focal-point-style.js
 56893 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/styles/focal-point-style.js
 58886 
 56894 
 58887 /**
 56895 /**
 58888  * External dependencies
 56896  * External dependencies
       
 56897  */
       
 56898 
       
 56899 /**
       
 56900  * Internal dependencies
 58889  */
 56901  */
 58890 
 56902 
 58891 const PointerCircle = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 56903 const PointerCircle = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 58892   target: "e19snlhg0"
 56904   target: "e19snlhg0"
 58893 } : 0)("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}", ({
 56905 } : 0)("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:", config_values.radiusRound, ";backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}", ({
 58894   isDragging
 56906   isDragging
 58895 }) => isDragging && `
 56907 }) => isDragging && `
 58896 			box-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;
 56908 			box-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;
 58897 			transform: scale( 1.1 );
 56909 			transform: scale( 1.1 );
 58898 			cursor: grabbing;
 56910 			cursor: grabbing;
 58899 			`, ";" + ( true ? "" : 0));
 56911 			`, ";" + ( true ? "" : 0));
 58900 
 56912 
 58901 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/focal-point.js
 56913 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/focal-point.js
 58902 /**
 56914 /**
 58903  * Internal dependencies
 56915  * Internal dependencies
 58904  */
 56916  */
 58905 
 56917 
 58906 
 56918 
 58922     className: "components-focal-point-picker__icon_container",
 56934     className: "components-focal-point-picker__icon_container",
 58923     style: style
 56935     style: style
 58924   });
 56936   });
 58925 }
 56937 }
 58926 
 56938 
 58927 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/grid.js
 56939 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/grid.js
 58928 /**
 56940 /**
 58929  * Internal dependencies
 56941  * Internal dependencies
 58930  */
 56942  */
 58931 
       
 58932 
 56943 
 58933 
 56944 
 58934 function FocalPointPickerGrid({
 56945 function FocalPointPickerGrid({
 58935   bounds,
 56946   bounds,
 58936   ...props
 56947   ...props
 58960       }
 56971       }
 58961     })]
 56972     })]
 58962   });
 56973   });
 58963 }
 56974 }
 58964 
 56975 
 58965 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/media.js
 56976 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/media.js
 58966 /**
 56977 /**
 58967  * External dependencies
 56978  * External dependencies
 58968  */
 56979  */
 58969 
 56980 
 58970 /**
 56981 /**
 59009     ref: mediaRef,
 57020     ref: mediaRef,
 59010     src: src
 57021     src: src
 59011   });
 57022   });
 59012 }
 57023 }
 59013 
 57024 
 59014 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/index.js
 57025 ;// ./node_modules/@wordpress/components/build-module/focal-point-picker/index.js
 59015 /**
 57026 /**
 59016  * External dependencies
 57027  * External dependencies
 59017  */
 57028  */
 59018 
 57029 
 59019 
 57030 
 59025 
 57036 
 59026 
 57037 
 59027 /**
 57038 /**
 59028  * Internal dependencies
 57039  * Internal dependencies
 59029  */
 57040  */
 59030 
       
 59031 
 57041 
 59032 
 57042 
 59033 
 57043 
 59034 
 57044 
 59035 
 57045 
 59070  * 	};
 57080  * 	};
 59071  *
 57081  *
 59072  * 	return (
 57082  * 	return (
 59073  * 		<>
 57083  * 		<>
 59074  * 			<FocalPointPicker
 57084  * 			<FocalPointPicker
       
 57085  *        __nextHasNoMarginBottom
 59075  * 				url={ url }
 57086  * 				url={ url }
 59076  * 				value={ focalPoint }
 57087  * 				value={ focalPoint }
 59077  * 				onDragStart={ setFocalPoint }
 57088  * 				onDragStart={ setFocalPoint }
 59078  * 				onDrag={ setFocalPoint }
 57089  * 				onDrag={ setFocalPoint }
 59079  * 				onChange={ setFocalPoint }
 57090  * 				onChange={ setFocalPoint }
 59084  * };
 57095  * };
 59085  * ```
 57096  * ```
 59086  */
 57097  */
 59087 function FocalPointPicker({
 57098 function FocalPointPicker({
 59088   __nextHasNoMarginBottom,
 57099   __nextHasNoMarginBottom,
 59089   __next40pxDefaultSize = false,
       
 59090   autoPlay = true,
 57100   autoPlay = true,
 59091   className,
 57101   className,
 59092   help,
 57102   help,
 59093   label,
 57103   label,
 59094   onChange,
 57104   onChange,
 59249     return () => window.clearTimeout(timeout);
 57259     return () => window.clearTimeout(timeout);
 59250   }, [x, y]);
 57260   }, [x, y]);
 59251   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control, {
 57261   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(base_control, {
 59252     ...restProps,
 57262     ...restProps,
 59253     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 57263     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
       
 57264     __associatedWPComponentName: "FocalPointPicker",
 59254     label: label,
 57265     label: label,
 59255     id: id,
 57266     id: id,
 59256     help: help,
 57267     help: help,
 59257     className: classes,
 57268     className: classes,
 59258     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaWrapper, {
 57269     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MediaWrapper, {
 59282           isDragging: isDragging
 57293           isDragging: isDragging
 59283         })]
 57294         })]
 59284       })
 57295       })
 59285     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointPickerControls, {
 57296     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FocalPointPickerControls, {
 59286       __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 57297       __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 59287       __next40pxDefaultSize: __next40pxDefaultSize,
       
 59288       hasHelpText: !!help,
 57298       hasHelpText: !!help,
 59289       point: {
 57299       point: {
 59290         x,
 57300         x,
 59291         y
 57301         y
 59292       },
 57302       },
 59296     })]
 57306     })]
 59297   });
 57307   });
 59298 }
 57308 }
 59299 /* harmony default export */ const focal_point_picker = (FocalPointPicker);
 57309 /* harmony default export */ const focal_point_picker = (FocalPointPicker);
 59300 
 57310 
 59301 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focusable-iframe/index.js
 57311 ;// ./node_modules/@wordpress/components/build-module/focusable-iframe/index.js
 59302 /**
 57312 /**
 59303  * WordPress dependencies
 57313  * WordPress dependencies
 59304  */
 57314  */
 59305 
 57315 
 59306 
 57316 
 59325     ref: ref,
 57335     ref: ref,
 59326     ...props
 57336     ...props
 59327   });
 57337   });
 59328 }
 57338 }
 59329 
 57339 
 59330 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/settings.js
 57340 ;// ./node_modules/@wordpress/components/build-module/font-size-picker/utils.js
 59331 /**
       
 59332  * WordPress dependencies
       
 59333  */
       
 59334 
       
 59335 
       
 59336 
       
 59337 const settings = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_primitives_namespaceObject.SVG, {
       
 59338   xmlns: "http://www.w3.org/2000/svg",
       
 59339   viewBox: "0 0 24 24",
       
 59340   children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 59341     d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"
       
 59342   }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 59343     d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"
       
 59344   })]
       
 59345 });
       
 59346 /* harmony default export */ const library_settings = (settings);
       
 59347 
       
 59348 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/utils.js
       
 59349 /**
       
 59350  * WordPress dependencies
       
 59351  */
       
 59352 
       
 59353 /**
 57341 /**
 59354  * Internal dependencies
 57342  * Internal dependencies
 59355  */
 57343  */
 59356 
 57344 
 59357 
 57345 
 59386     return unit === firstUnit;
 57374     return unit === firstUnit;
 59387   });
 57375   });
 59388   return areAllSizesSameUnit ? firstUnit : null;
 57376   return areAllSizesSameUnit ? firstUnit : null;
 59389 }
 57377 }
 59390 
 57378 
 59391 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/styles.js
 57379 ;// ./node_modules/@wordpress/components/build-module/font-size-picker/styles.js
 59392 
 57380 
 59393 function font_size_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 57381 function font_size_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 59394 /**
 57382 /**
 59395  * External dependencies
 57383  * External dependencies
 59396  */
 57384  */
 59404 
 57392 
 59405 
 57393 
 59406 const styles_Container = /*#__PURE__*/emotion_styled_base_browser_esm("fieldset",  true ? {
 57394 const styles_Container = /*#__PURE__*/emotion_styled_base_browser_esm("fieldset",  true ? {
 59407   target: "e8tqeku4"
 57395   target: "e8tqeku4"
 59408 } : 0)( true ? {
 57396 } : 0)( true ? {
 59409   name: "1t1ytme",
 57397   name: "k2q51s",
 59410   styles: "border:0;margin:0;padding:0"
 57398   styles: "border:0;margin:0;padding:0;display:contents"
 59411 } : 0);
 57399 } : 0);
 59412 const styles_Header = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
 57400 const styles_Header = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component,  true ? {
 59413   target: "e8tqeku3"
 57401   target: "e8tqeku3"
 59414 } : 0)("height:", space(4), ";" + ( true ? "" : 0));
 57402 } : 0)("height:", space(4), ";" + ( true ? "" : 0));
 59415 const HeaderToggle = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
 57403 const HeaderToggle = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button,  true ? {
 59420 } : 0)("display:flex;gap:", space(1), ";justify-content:flex-start;margin-bottom:0;" + ( true ? "" : 0));
 57408 } : 0)("display:flex;gap:", space(1), ";justify-content:flex-start;margin-bottom:0;" + ( true ? "" : 0));
 59421 const HeaderHint = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 57409 const HeaderHint = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 59422   target: "e8tqeku0"
 57410   target: "e8tqeku0"
 59423 } : 0)("color:", COLORS.gray[700], ";" + ( true ? "" : 0));
 57411 } : 0)("color:", COLORS.gray[700], ";" + ( true ? "" : 0));
 59424 
 57412 
 59425 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/font-size-picker-select.js
 57413 ;// ./node_modules/@wordpress/components/build-module/font-size-picker/font-size-picker-select.js
 59426 /**
 57414 /**
 59427  * WordPress dependencies
 57415  * WordPress dependencies
 59428  */
 57416  */
 59429 
 57417 
 59430 
 57418 
 59437 
 57425 
 59438 const DEFAULT_OPTION = {
 57426 const DEFAULT_OPTION = {
 59439   key: 'default',
 57427   key: 'default',
 59440   name: (0,external_wp_i18n_namespaceObject.__)('Default'),
 57428   name: (0,external_wp_i18n_namespaceObject.__)('Default'),
 59441   value: undefined
 57429   value: undefined
 59442 };
       
 59443 const CUSTOM_OPTION = {
       
 59444   key: 'custom',
       
 59445   name: (0,external_wp_i18n_namespaceObject.__)('Custom')
       
 59446 };
 57430 };
 59447 const FontSizePickerSelect = props => {
 57431 const FontSizePickerSelect = props => {
 59448   var _options$find;
 57432   var _options$find;
 59449   const {
 57433   const {
 59450     __next40pxDefaultSize,
 57434     __next40pxDefaultSize,
 59451     fontSizes,
 57435     fontSizes,
 59452     value,
 57436     value,
 59453     disableCustomFontSizes,
       
 59454     size,
 57437     size,
 59455     onChange,
 57438     onChange
 59456     onSelectCustom
       
 59457   } = props;
 57439   } = props;
 59458   const areAllSizesSameUnit = !!getCommonSizeUnit(fontSizes);
 57440   const areAllSizesSameUnit = !!getCommonSizeUnit(fontSizes);
 59459   const options = [DEFAULT_OPTION, ...fontSizes.map(fontSize => {
 57441   const options = [DEFAULT_OPTION, ...fontSizes.map(fontSize => {
 59460     let hint;
 57442     let hint;
 59461     if (areAllSizesSameUnit) {
 57443     if (areAllSizesSameUnit) {
 59468     }
 57450     }
 59469     return {
 57451     return {
 59470       key: fontSize.slug,
 57452       key: fontSize.slug,
 59471       name: fontSize.name || fontSize.slug,
 57453       name: fontSize.name || fontSize.slug,
 59472       value: fontSize.size,
 57454       value: fontSize.size,
 59473       __experimentalHint: hint
 57455       hint
 59474     };
 57456     };
 59475   }), ...(disableCustomFontSizes ? [] : [CUSTOM_OPTION])];
 57457   })];
 59476   const selectedOption = value ? (_options$find = options.find(option => option.value === value)) !== null && _options$find !== void 0 ? _options$find : CUSTOM_OPTION : DEFAULT_OPTION;
 57458   const selectedOption = (_options$find = options.find(option => option.value === value)) !== null && _options$find !== void 0 ? _options$find : DEFAULT_OPTION;
 59477   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CustomSelectControl, {
 57459   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(custom_select_control, {
 59478     __next40pxDefaultSize: __next40pxDefaultSize,
 57460     __next40pxDefaultSize: __next40pxDefaultSize,
       
 57461     __shouldNotWarnDeprecated36pxSize: true,
 59479     className: "components-font-size-picker__select",
 57462     className: "components-font-size-picker__select",
 59480     label: (0,external_wp_i18n_namespaceObject.__)('Font size'),
 57463     label: (0,external_wp_i18n_namespaceObject.__)('Font size'),
 59481     hideLabelFromVision: true,
 57464     hideLabelFromVision: true,
 59482     describedBy: (0,external_wp_i18n_namespaceObject.sprintf)(
 57465     describedBy: (0,external_wp_i18n_namespaceObject.sprintf)(
 59483     // translators: %s: Currently selected font size.
 57466     // translators: %s: Currently selected font size.
 59484     (0,external_wp_i18n_namespaceObject.__)('Currently selected font size: %s'), selectedOption.name),
 57467     (0,external_wp_i18n_namespaceObject.__)('Currently selected font size: %s'), selectedOption.name),
 59485     options: options,
 57468     options: options,
 59486     value: selectedOption,
 57469     value: selectedOption,
 59487     __experimentalShowSelectedHint: true,
 57470     showSelectedHint: true,
 59488     onChange: ({
 57471     onChange: ({
 59489       selectedItem
 57472       selectedItem
 59490     }) => {
 57473     }) => {
 59491       if (selectedItem === CUSTOM_OPTION) {
 57474       onChange(selectedItem.value);
 59492         onSelectCustom();
       
 59493       } else {
       
 59494         onChange(selectedItem.value);
       
 59495       }
       
 59496     },
 57475     },
 59497     size: size
 57476     size: size
 59498   });
 57477   });
 59499 };
 57478 };
 59500 /* harmony default export */ const font_size_picker_select = (FontSizePickerSelect);
 57479 /* harmony default export */ const font_size_picker_select = (FontSizePickerSelect);
 59501 
 57480 
 59502 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option/component.js
 57481 ;// ./node_modules/@wordpress/components/build-module/font-size-picker/constants.js
 59503 /**
       
 59504  * External dependencies
       
 59505  */
       
 59506 
       
 59507 /**
       
 59508  * WordPress dependencies
       
 59509  */
       
 59510 
       
 59511 
       
 59512 /**
       
 59513  * Internal dependencies
       
 59514  */
       
 59515 
       
 59516 
       
 59517 
       
 59518 function UnforwardedToggleGroupControlOption(props, ref) {
       
 59519   const {
       
 59520     label,
       
 59521     ...restProps
       
 59522   } = props;
       
 59523   const optionLabel = restProps['aria-label'] || label;
       
 59524   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_option_base_component, {
       
 59525     ...restProps,
       
 59526     "aria-label": optionLabel,
       
 59527     ref: ref,
       
 59528     children: label
       
 59529   });
       
 59530 }
       
 59531 
       
 59532 /**
       
 59533  * `ToggleGroupControlOption` is a form component and is meant to be used as a
       
 59534  * child of `ToggleGroupControl`.
       
 59535  *
       
 59536  * ```jsx
       
 59537  * import {
       
 59538  *   __experimentalToggleGroupControl as ToggleGroupControl,
       
 59539  *   __experimentalToggleGroupControlOption as ToggleGroupControlOption,
       
 59540  * } from '@wordpress/components';
       
 59541  *
       
 59542  * function Example() {
       
 59543  *   return (
       
 59544  *     <ToggleGroupControl label="my label" value="vertical" isBlock>
       
 59545  *       <ToggleGroupControlOption value="horizontal" label="Horizontal" />
       
 59546  *       <ToggleGroupControlOption value="vertical" label="Vertical" />
       
 59547  *     </ToggleGroupControl>
       
 59548  *   );
       
 59549  * }
       
 59550  * ```
       
 59551  */
       
 59552 const ToggleGroupControlOption = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleGroupControlOption);
       
 59553 /* harmony default export */ const toggle_group_control_option_component = (ToggleGroupControlOption);
       
 59554 
       
 59555 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/constants.js
       
 59556 /**
 57482 /**
 59557  * WordPress dependencies
 57483  * WordPress dependencies
 59558  */
 57484  */
 59559 
 57485 
 59560 
 57486 
 59577  * When there are 5 font sizes or fewer, we assume that the font sizes are
 57503  * When there are 5 font sizes or fewer, we assume that the font sizes are
 59578  * ordered by size and show T-shirt labels.
 57504  * ordered by size and show T-shirt labels.
 59579  */
 57505  */
 59580 const T_SHIRT_NAMES = [(0,external_wp_i18n_namespaceObject.__)('Small'), (0,external_wp_i18n_namespaceObject.__)('Medium'), (0,external_wp_i18n_namespaceObject.__)('Large'), (0,external_wp_i18n_namespaceObject.__)('Extra Large'), (0,external_wp_i18n_namespaceObject.__)('Extra Extra Large')];
 57506 const T_SHIRT_NAMES = [(0,external_wp_i18n_namespaceObject.__)('Small'), (0,external_wp_i18n_namespaceObject.__)('Medium'), (0,external_wp_i18n_namespaceObject.__)('Large'), (0,external_wp_i18n_namespaceObject.__)('Extra Large'), (0,external_wp_i18n_namespaceObject.__)('Extra Extra Large')];
 59581 
 57507 
 59582 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/font-size-picker-toggle-group.js
 57508 ;// ./node_modules/@wordpress/components/build-module/font-size-picker/font-size-picker-toggle-group.js
 59583 /**
 57509 /**
 59584  * WordPress dependencies
 57510  * WordPress dependencies
 59585  */
 57511  */
 59586 
 57512 
 59587 
 57513 
 59600     onChange
 57526     onChange
 59601   } = props;
 57527   } = props;
 59602   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_component, {
 57528   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toggle_group_control_component, {
 59603     __nextHasNoMarginBottom: true,
 57529     __nextHasNoMarginBottom: true,
 59604     __next40pxDefaultSize: __next40pxDefaultSize,
 57530     __next40pxDefaultSize: __next40pxDefaultSize,
       
 57531     __shouldNotWarnDeprecated36pxSize: true,
 59605     label: (0,external_wp_i18n_namespaceObject.__)('Font size'),
 57532     label: (0,external_wp_i18n_namespaceObject.__)('Font size'),
 59606     hideLabelFromVision: true,
 57533     hideLabelFromVision: true,
 59607     value: value,
 57534     value: value,
 59608     onChange: onChange,
 57535     onChange: onChange,
 59609     isBlock: true,
 57536     isBlock: true,
 59616     }, fontSize.slug))
 57543     }, fontSize.slug))
 59617   });
 57544   });
 59618 };
 57545 };
 59619 /* harmony default export */ const font_size_picker_toggle_group = (FontSizePickerToggleGroup);
 57546 /* harmony default export */ const font_size_picker_toggle_group = (FontSizePickerToggleGroup);
 59620 
 57547 
 59621 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/font-size-picker/index.js
 57548 ;// ./node_modules/@wordpress/components/build-module/font-size-picker/index.js
 59622 /**
 57549 /**
 59623  * External dependencies
 57550  * External dependencies
 59624  */
 57551  */
 59625 
 57552 
 59626 /**
 57553 /**
 59645 
 57572 
 59646 
 57573 
 59647 
 57574 
 59648 
 57575 
 59649 const DEFAULT_UNITS = ['px', 'em', 'rem', 'vw', 'vh'];
 57576 const DEFAULT_UNITS = ['px', 'em', 'rem', 'vw', 'vh'];
       
 57577 const MAX_TOGGLE_GROUP_SIZES = 5;
 59650 const UnforwardedFontSizePicker = (props, ref) => {
 57578 const UnforwardedFontSizePicker = (props, ref) => {
 59651   const {
 57579   const {
 59652     __next40pxDefaultSize = false,
 57580     __next40pxDefaultSize = false,
 59653     fallbackFontSize,
 57581     fallbackFontSize,
 59654     fontSizes = [],
 57582     fontSizes = [],
 59661     withReset = true
 57589     withReset = true
 59662   } = props;
 57590   } = props;
 59663   const units = useCustomUnits({
 57591   const units = useCustomUnits({
 59664     availableUnits: unitsProp
 57592     availableUnits: unitsProp
 59665   });
 57593   });
 59666   const shouldUseSelectControl = fontSizes.length > 5;
       
 59667   const selectedFontSize = fontSizes.find(fontSize => fontSize.size === value);
 57594   const selectedFontSize = fontSizes.find(fontSize => fontSize.size === value);
 59668   const isCustomValue = !!value && !selectedFontSize;
 57595   const isCustomValue = !!value && !selectedFontSize;
 59669   const [showCustomValueControl, setShowCustomValueControl] = (0,external_wp_element_namespaceObject.useState)(!disableCustomFontSizes && isCustomValue);
 57596 
       
 57597   // Initially request a custom picker if the value is not from the predef list.
       
 57598   const [userRequestedCustom, setUserRequestedCustom] = (0,external_wp_element_namespaceObject.useState)(isCustomValue);
       
 57599   let currentPickerType;
       
 57600   if (!disableCustomFontSizes && userRequestedCustom) {
       
 57601     // While showing the custom value picker, switch back to predef only if
       
 57602     // `disableCustomFontSizes` is set to `true`.
       
 57603     currentPickerType = 'custom';
       
 57604   } else {
       
 57605     currentPickerType = fontSizes.length > MAX_TOGGLE_GROUP_SIZES ? 'select' : 'togglegroup';
       
 57606   }
 59670   const headerHint = (0,external_wp_element_namespaceObject.useMemo)(() => {
 57607   const headerHint = (0,external_wp_element_namespaceObject.useMemo)(() => {
 59671     if (showCustomValueControl) {
 57608     switch (currentPickerType) {
 59672       return (0,external_wp_i18n_namespaceObject.__)('Custom');
 57609       case 'custom':
 59673     }
 57610         return (0,external_wp_i18n_namespaceObject.__)('Custom');
 59674     if (!shouldUseSelectControl) {
 57611       case 'togglegroup':
 59675       if (selectedFontSize) {
 57612         if (selectedFontSize) {
 59676         return selectedFontSize.name || T_SHIRT_NAMES[fontSizes.indexOf(selectedFontSize)];
 57613           return selectedFontSize.name || T_SHIRT_NAMES[fontSizes.indexOf(selectedFontSize)];
 59677       }
 57614         }
 59678       return '';
 57615         break;
 59679     }
 57616       case 'select':
 59680     const commonUnit = getCommonSizeUnit(fontSizes);
 57617         const commonUnit = getCommonSizeUnit(fontSizes);
 59681     if (commonUnit) {
 57618         if (commonUnit) {
 59682       return `(${commonUnit})`;
 57619           return `(${commonUnit})`;
       
 57620         }
       
 57621         break;
 59683     }
 57622     }
 59684     return '';
 57623     return '';
 59685   }, [showCustomValueControl, shouldUseSelectControl, selectedFontSize, fontSizes]);
 57624   }, [currentPickerType, selectedFontSize, fontSizes]);
 59686   if (fontSizes.length === 0 && disableCustomFontSizes) {
 57625   if (fontSizes.length === 0 && disableCustomFontSizes) {
 59687     return null;
 57626     return null;
 59688   }
 57627   }
 59689 
 57628 
 59690   // If neither the value or first font size is a string, then FontSizePicker
 57629   // If neither the value or first font size is a string, then FontSizePicker
 59692   // to select px values and onChange() is always called with number values.
 57631   // to select px values and onChange() is always called with number values.
 59693   const hasUnits = typeof value === 'string' || typeof fontSizes[0]?.size === 'string';
 57632   const hasUnits = typeof value === 'string' || typeof fontSizes[0]?.size === 'string';
 59694   const [valueQuantity, valueUnit] = parseQuantityAndUnitFromRawValue(value, units);
 57633   const [valueQuantity, valueUnit] = parseQuantityAndUnitFromRawValue(value, units);
 59695   const isValueUnitRelative = !!valueUnit && ['em', 'rem', 'vw', 'vh'].includes(valueUnit);
 57634   const isValueUnitRelative = !!valueUnit && ['em', 'rem', 'vw', 'vh'].includes(valueUnit);
 59696   const isDisabled = value === undefined;
 57635   const isDisabled = value === undefined;
       
 57636   maybeWarnDeprecated36pxSize({
       
 57637     componentName: 'FontSizePicker',
       
 57638     __next40pxDefaultSize,
       
 57639     size
       
 57640   });
 59697   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Container, {
 57641   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Container, {
 59698     ref: ref,
 57642     ref: ref,
 59699     className: "components-font-size-picker",
 57643     className: "components-font-size-picker",
 59700     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 57644     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
 59701       as: "legend",
 57645       as: "legend",
 59708           children: [(0,external_wp_i18n_namespaceObject.__)('Size'), headerHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeaderHint, {
 57652           children: [(0,external_wp_i18n_namespaceObject.__)('Size'), headerHint && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeaderHint, {
 59709             className: "components-font-size-picker__header__hint",
 57653             className: "components-font-size-picker__header__hint",
 59710             children: headerHint
 57654             children: headerHint
 59711           })]
 57655           })]
 59712         }), !disableCustomFontSizes && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeaderToggle, {
 57656         }), !disableCustomFontSizes && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(HeaderToggle, {
 59713           label: showCustomValueControl ? (0,external_wp_i18n_namespaceObject.__)('Use size preset') : (0,external_wp_i18n_namespaceObject.__)('Set custom size'),
 57657           label: currentPickerType === 'custom' ? (0,external_wp_i18n_namespaceObject.__)('Use size preset') : (0,external_wp_i18n_namespaceObject.__)('Set custom size'),
 59714           icon: library_settings,
 57658           icon: library_settings,
 59715           onClick: () => {
 57659           onClick: () => setUserRequestedCustom(!userRequestedCustom),
 59716             setShowCustomValueControl(!showCustomValueControl);
 57660           isPressed: currentPickerType === 'custom',
 59717           },
       
 59718           isPressed: showCustomValueControl,
       
 59719           size: "small"
 57661           size: "small"
 59720         })]
 57662         })]
 59721       })
 57663       })
 59722     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 57664     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 59723       children: [!!fontSizes.length && shouldUseSelectControl && !showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_size_picker_select, {
 57665       children: [currentPickerType === 'select' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_size_picker_select, {
 59724         __next40pxDefaultSize: __next40pxDefaultSize,
 57666         __next40pxDefaultSize: __next40pxDefaultSize,
 59725         fontSizes: fontSizes,
 57667         fontSizes: fontSizes,
 59726         value: value,
 57668         value: value,
 59727         disableCustomFontSizes: disableCustomFontSizes,
 57669         disableCustomFontSizes: disableCustomFontSizes,
 59728         size: size,
 57670         size: size,
 59731             onChange?.(undefined);
 57673             onChange?.(undefined);
 59732           } else {
 57674           } else {
 59733             onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
 57675             onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
 59734           }
 57676           }
 59735         },
 57677         },
 59736         onSelectCustom: () => setShowCustomValueControl(true)
 57678         onSelectCustom: () => setUserRequestedCustom(true)
 59737       }), !shouldUseSelectControl && !showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_size_picker_toggle_group, {
 57679       }), currentPickerType === 'togglegroup' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(font_size_picker_toggle_group, {
 59738         fontSizes: fontSizes,
 57680         fontSizes: fontSizes,
 59739         value: value,
 57681         value: value,
 59740         __next40pxDefaultSize: __next40pxDefaultSize,
 57682         __next40pxDefaultSize: __next40pxDefaultSize,
 59741         size: size,
 57683         size: size,
 59742         onChange: newValue => {
 57684         onChange: newValue => {
 59744             onChange?.(undefined);
 57686             onChange?.(undefined);
 59745           } else {
 57687           } else {
 59746             onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
 57688             onChange?.(hasUnits ? newValue : Number(newValue), fontSizes.find(fontSize => fontSize.size === newValue));
 59747           }
 57689           }
 59748         }
 57690         }
 59749       }), !disableCustomFontSizes && showCustomValueControl && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(flex_component, {
 57691       }), currentPickerType === 'custom' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(flex_component, {
 59750         className: "components-font-size-picker__custom-size-control",
 57692         className: "components-font-size-picker__custom-size-control",
 59751         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
 57693         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
 59752           isBlock: true,
 57694           isBlock: true,
 59753           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(unit_control, {
 57695           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(unit_control, {
 59754             __next40pxDefaultSize: __next40pxDefaultSize,
 57696             __next40pxDefaultSize: __next40pxDefaultSize,
       
 57697             __shouldNotWarnDeprecated36pxSize: true,
 59755             label: (0,external_wp_i18n_namespaceObject.__)('Custom'),
 57698             label: (0,external_wp_i18n_namespaceObject.__)('Custom'),
 59756             labelPosition: "top",
 57699             labelPosition: "top",
 59757             hideLabelFromVision: true,
 57700             hideLabelFromVision: true,
 59758             value: value,
 57701             value: value,
 59759             onChange: newValue => {
 57702             onChange: newValue => {
       
 57703               setUserRequestedCustom(true);
 59760               if (newValue === undefined) {
 57704               if (newValue === undefined) {
 59761                 onChange?.(undefined);
 57705                 onChange?.(undefined);
 59762               } else {
 57706               } else {
 59763                 onChange?.(hasUnits ? newValue : parseInt(newValue, 10));
 57707                 onChange?.(hasUnits ? newValue : parseInt(newValue, 10));
 59764               }
 57708               }
 59773             marginX: 2,
 57717             marginX: 2,
 59774             marginBottom: 0,
 57718             marginBottom: 0,
 59775             children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control, {
 57719             children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control, {
 59776               __nextHasNoMarginBottom: true,
 57720               __nextHasNoMarginBottom: true,
 59777               __next40pxDefaultSize: __next40pxDefaultSize,
 57721               __next40pxDefaultSize: __next40pxDefaultSize,
       
 57722               __shouldNotWarnDeprecated36pxSize: true,
 59778               className: "components-font-size-picker__custom-input",
 57723               className: "components-font-size-picker__custom-input",
 59779               label: (0,external_wp_i18n_namespaceObject.__)('Custom Size'),
 57724               label: (0,external_wp_i18n_namespaceObject.__)('Custom Size'),
 59780               hideLabelFromVision: true,
 57725               hideLabelFromVision: true,
 59781               value: valueQuantity,
 57726               value: valueQuantity,
 59782               initialPosition: fallbackFontSize,
 57727               initialPosition: fallbackFontSize,
 59783               withInputField: false,
 57728               withInputField: false,
 59784               onChange: newValue => {
 57729               onChange: newValue => {
       
 57730                 setUserRequestedCustom(true);
 59785                 if (newValue === undefined) {
 57731                 if (newValue === undefined) {
 59786                   onChange?.(undefined);
 57732                   onChange?.(undefined);
 59787                 } else if (hasUnits) {
 57733                 } else if (hasUnits) {
 59788                   onChange?.(newValue + (valueUnit !== null && valueUnit !== void 0 ? valueUnit : 'px'));
 57734                   onChange?.(newValue + (valueUnit !== null && valueUnit !== void 0 ? valueUnit : 'px'));
 59789                 } else {
 57735                 } else {
 59796             })
 57742             })
 59797           })
 57743           })
 59798         }), withReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
 57744         }), withReset && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_item_component, {
 59799           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Button, {
 57745           children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Button, {
 59800             disabled: isDisabled,
 57746             disabled: isDisabled,
 59801             __experimentalIsFocusable: true,
 57747             accessibleWhenDisabled: true,
 59802             onClick: () => {
 57748             onClick: () => {
 59803               onChange?.(undefined);
 57749               onChange?.(undefined);
 59804             },
 57750             },
 59805             variant: "secondary",
 57751             variant: "secondary",
 59806             __next40pxDefaultSize: true,
 57752             __next40pxDefaultSize: true,
 59813   });
 57759   });
 59814 };
 57760 };
 59815 const FontSizePicker = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedFontSizePicker);
 57761 const FontSizePicker = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedFontSizePicker);
 59816 /* harmony default export */ const font_size_picker = (FontSizePicker);
 57762 /* harmony default export */ const font_size_picker = (FontSizePicker);
 59817 
 57763 
 59818 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-file-upload/index.js
 57764 ;// ./node_modules/@wordpress/components/build-module/form-file-upload/index.js
 59819 /**
 57765 /**
 59820  * WordPress dependencies
 57766  * WordPress dependencies
 59821  */
 57767  */
 59822 
 57768 
 59823 
 57769 
 59826  */
 57772  */
 59827 
 57773 
 59828 
 57774 
 59829 
 57775 
 59830 /**
 57776 /**
 59831  * FormFileUpload is a component that allows users to select files from their local device.
 57777  * FormFileUpload allows users to select files from their local device.
 59832  *
 57778  *
 59833  * ```jsx
 57779  * ```jsx
 59834  * import { FormFileUpload } from '@wordpress/components';
 57780  * import { FormFileUpload } from '@wordpress/components';
 59835  *
 57781  *
 59836  * const MyFormFileUpload = () => (
 57782  * const MyFormFileUpload = () => (
 59837  *   <FormFileUpload
 57783  *   <FormFileUpload
       
 57784  *     __next40pxDefaultSize
 59838  *     accept="image/*"
 57785  *     accept="image/*"
 59839  *     onChange={ ( event ) => console.log( event.currentTarget.files ) }
 57786  *     onChange={ ( event ) => console.log( event.currentTarget.files ) }
 59840  *   >
 57787  *   >
 59841  *     Upload
 57788  *     Upload
 59842  *   </FormFileUpload>
 57789  *   </FormFileUpload>
 59843  * );
 57790  * );
 59844  * ```
 57791  * ```
 59845  */
 57792  */
       
 57793 
 59846 function FormFileUpload({
 57794 function FormFileUpload({
 59847   accept,
 57795   accept,
 59848   children,
 57796   children,
 59849   multiple = false,
 57797   multiple = false,
 59850   onChange,
 57798   onChange,
 59854 }) {
 57802 }) {
 59855   const ref = (0,external_wp_element_namespaceObject.useRef)(null);
 57803   const ref = (0,external_wp_element_namespaceObject.useRef)(null);
 59856   const openFileDialog = () => {
 57804   const openFileDialog = () => {
 59857     ref.current?.click();
 57805     ref.current?.click();
 59858   };
 57806   };
       
 57807   if (!render) {
       
 57808     maybeWarnDeprecated36pxSize({
       
 57809       componentName: 'FormFileUpload',
       
 57810       __next40pxDefaultSize: props.__next40pxDefaultSize,
       
 57811       // @ts-expect-error - We don't "officially" support all Button props but this likely happens.
       
 57812       size: props.size
       
 57813     });
       
 57814   }
 59859   const ui = render ? render({
 57815   const ui = render ? render({
 59860     openFileDialog
 57816     openFileDialog
 59861   }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 57817   }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 59862     onClick: openFileDialog,
 57818     onClick: openFileDialog,
 59863     ...props,
 57819     ...props,
 59864     children: children
 57820     children: children
 59865   });
 57821   });
       
 57822   // @todo: Temporary fix a bug that prevents Chromium browsers from selecting ".heic" files
       
 57823   // from the file upload. See https://core.trac.wordpress.org/ticket/62268#comment:4.
       
 57824   // This can be removed once the Chromium fix is in the stable channel.
       
 57825   // Prevent Safari from adding "image/heic" and "image/heif" to the accept attribute.
       
 57826   const isSafari = globalThis.window?.navigator.userAgent.includes('Safari') && !globalThis.window?.navigator.userAgent.includes('Chrome') && !globalThis.window?.navigator.userAgent.includes('Chromium');
       
 57827   const compatAccept = !isSafari && !!accept?.includes('image/*') ? `${accept}, image/heic, image/heif` : accept;
 59866   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 57828   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 59867     className: "components-form-file-upload",
 57829     className: "components-form-file-upload",
 59868     children: [ui, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
 57830     children: [ui, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
 59869       type: "file",
 57831       type: "file",
 59870       ref: ref,
 57832       ref: ref,
 59871       multiple: multiple,
 57833       multiple: multiple,
 59872       style: {
 57834       style: {
 59873         display: 'none'
 57835         display: 'none'
 59874       },
 57836       },
 59875       accept: accept,
 57837       accept: compatAccept,
 59876       onChange: onChange,
 57838       onChange: onChange,
 59877       onClick: onClick,
 57839       onClick: onClick,
 59878       "data-testid": "form-file-upload-input"
 57840       "data-testid": "form-file-upload-input"
 59879     })]
 57841     })]
 59880   });
 57842   });
 59881 }
 57843 }
 59882 /* harmony default export */ const form_file_upload = (FormFileUpload);
 57844 /* harmony default export */ const form_file_upload = (FormFileUpload);
 59883 
 57845 
 59884 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-toggle/index.js
 57846 ;// ./node_modules/@wordpress/components/build-module/form-toggle/index.js
 59885 /**
 57847 /**
 59886  * External dependencies
 57848  * External dependencies
 59887  */
 57849  */
 59888 
 57850 
 59889 /**
 57851 /**
 59893 
 57855 
 59894 /**
 57856 /**
 59895  * Internal dependencies
 57857  * Internal dependencies
 59896  */
 57858  */
 59897 
 57859 
 59898 
       
 59899 const form_toggle_noop = () => {};
 57860 const form_toggle_noop = () => {};
 59900 
 57861 function UnforwardedFormToggle(props, ref) {
 59901 /**
       
 59902  * FormToggle switches a single setting on or off.
       
 59903  *
       
 59904  * ```jsx
       
 59905  * import { FormToggle } from '@wordpress/components';
       
 59906  * import { useState } from '@wordpress/element';
       
 59907  *
       
 59908  * const MyFormToggle = () => {
       
 59909  *   const [ isChecked, setChecked ] = useState( true );
       
 59910  *
       
 59911  *   return (
       
 59912  *     <FormToggle
       
 59913  *       checked={ isChecked }
       
 59914  *       onChange={ () => setChecked( ( state ) => ! state ) }
       
 59915  *     />
       
 59916  *   );
       
 59917  * };
       
 59918  * ```
       
 59919  */
       
 59920 function FormToggle(props, ref) {
       
 59921   const {
 57862   const {
 59922     className,
 57863     className,
 59923     checked,
 57864     checked,
 59924     id,
 57865     id,
 59925     disabled,
 57866     disabled,
 59946     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 57887     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 59947       className: "components-form-toggle__thumb"
 57888       className: "components-form-toggle__thumb"
 59948     })]
 57889     })]
 59949   });
 57890   });
 59950 }
 57891 }
 59951 /* harmony default export */ const form_toggle = ((0,external_wp_element_namespaceObject.forwardRef)(FormToggle));
 57892 
 59952 
 57893 /**
 59953 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/token.js
 57894  * FormToggle switches a single setting on or off.
       
 57895  *
       
 57896  * ```jsx
       
 57897  * import { FormToggle } from '@wordpress/components';
       
 57898  * import { useState } from '@wordpress/element';
       
 57899  *
       
 57900  * const MyFormToggle = () => {
       
 57901  *   const [ isChecked, setChecked ] = useState( true );
       
 57902  *
       
 57903  *   return (
       
 57904  *     <FormToggle
       
 57905  *       checked={ isChecked }
       
 57906  *       onChange={ () => setChecked( ( state ) => ! state ) }
       
 57907  *     />
       
 57908  *   );
       
 57909  * };
       
 57910  * ```
       
 57911  */
       
 57912 const FormToggle = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedFormToggle);
       
 57913 /* harmony default export */ const form_toggle = (FormToggle);
       
 57914 
       
 57915 ;// ./node_modules/@wordpress/components/build-module/form-token-field/token.js
 59954 /**
 57916 /**
 59955  * External dependencies
 57917  * External dependencies
 59956  */
 57918  */
 59957 
 57919 
 59958 
 57920 
 59964 
 57926 
 59965 
 57927 
 59966 /**
 57928 /**
 59967  * Internal dependencies
 57929  * Internal dependencies
 59968  */
 57930  */
 59969 
       
 59970 
 57931 
 59971 
 57932 
 59972 
 57933 
 59973 const token_noop = () => {};
 57934 const token_noop = () => {};
 59974 function Token({
 57935 function Token({
 59995   });
 57956   });
 59996   const onClick = () => onClickRemove({
 57957   const onClick = () => onClickRemove({
 59997     value
 57958     value
 59998   });
 57959   });
 59999   const transformedValue = displayTransform(value);
 57960   const transformedValue = displayTransform(value);
 60000   const termPositionAndCount = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: term name, 2: term position in a set of terms, 3: total term set count. */
 57961   const termPositionAndCount = (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: 1: term name, 2: term position in a set of terms, 3: total term set count. */
 60001   (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s of %3$s)'), transformedValue, termPosition, termsCount);
 57962   (0,external_wp_i18n_namespaceObject.__)('%1$s (%2$s of %3$s)'), transformedValue, termPosition, termsCount);
 60002   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
 57963   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
 60003     className: tokenClasses,
 57964     className: tokenClasses,
 60004     onMouseEnter: onMouseEnter,
 57965     onMouseEnter: onMouseEnter,
 60005     onMouseLeave: onMouseLeave,
 57966     onMouseLeave: onMouseLeave,
 60014         "aria-hidden": "true",
 57975         "aria-hidden": "true",
 60015         children: transformedValue
 57976         children: transformedValue
 60016       })]
 57977       })]
 60017     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 57978     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 60018       className: "components-form-token-field__remove-token",
 57979       className: "components-form-token-field__remove-token",
       
 57980       size: "small",
 60019       icon: close_small,
 57981       icon: close_small,
 60020       onClick: !disabled ? onClick : undefined,
 57982       onClick: !disabled ? onClick : undefined
       
 57983       // Disable reason: Even when FormTokenField itself is accessibly disabled, token reset buttons shouldn't be in the tab sequence.
       
 57984       // eslint-disable-next-line no-restricted-syntax
       
 57985       ,
 60021       disabled: disabled,
 57986       disabled: disabled,
 60022       label: messages.remove,
 57987       label: messages.remove,
 60023       "aria-describedby": `components-form-token-field__token-text-${instanceId}`
 57988       "aria-describedby": `components-form-token-field__token-text-${instanceId}`
 60024     })]
 57989     })]
 60025   });
 57990   });
 60026 }
 57991 }
 60027 
 57992 
 60028 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/styles.js
 57993 ;// ./node_modules/@wordpress/components/build-module/form-token-field/styles.js
 60029 
 57994 
 60030 /**
 57995 /**
 60031  * External dependencies
 57996  * External dependencies
 60032  */
 57997  */
 60033 
 57998 
 60045 }) => !__next40pxDefaultSize && /*#__PURE__*/emotion_react_browser_esm_css("padding-top:", space(hasTokens ? 1 : 0.5), ";padding-bottom:", space(hasTokens ? 1 : 0.5), ";" + ( true ? "" : 0),  true ? "" : 0);
 58010 }) => !__next40pxDefaultSize && /*#__PURE__*/emotion_react_browser_esm_css("padding-top:", space(hasTokens ? 1 : 0.5), ";padding-bottom:", space(hasTokens ? 1 : 0.5), ";" + ( true ? "" : 0),  true ? "" : 0);
 60046 const TokensAndInputWrapperFlex = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 58011 const TokensAndInputWrapperFlex = /*#__PURE__*/emotion_styled_base_browser_esm(flex_component,  true ? {
 60047   target: "ehq8nmi0"
 58012   target: "ehq8nmi0"
 60048 } : 0)("padding:7px;", boxSizingReset, " ", deprecatedPaddings, ";" + ( true ? "" : 0));
 58013 } : 0)("padding:7px;", boxSizingReset, " ", deprecatedPaddings, ";" + ( true ? "" : 0));
 60049 
 58014 
 60050 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/index.js
 58015 ;// ./node_modules/@wordpress/components/build-module/form-token-field/index.js
 60051 /**
 58016 /**
 60052  * External dependencies
 58017  * External dependencies
 60053  */
 58018  */
 60054 
 58019 
 60055 /**
 58020 /**
 60056  * WordPress dependencies
 58021  * WordPress dependencies
 60057  */
 58022  */
       
 58023 
 60058 
 58024 
 60059 
 58025 
 60060 
 58026 
 60061 
 58027 
 60062 
 58028 
 60119     __next40pxDefaultSize = false,
 58085     __next40pxDefaultSize = false,
 60120     __experimentalAutoSelectFirstMatch = false,
 58086     __experimentalAutoSelectFirstMatch = false,
 60121     __nextHasNoMarginBottom = false,
 58087     __nextHasNoMarginBottom = false,
 60122     tokenizeOnBlur = false
 58088     tokenizeOnBlur = false
 60123   } = useDeprecated36pxDefaultSizeProp(props);
 58089   } = useDeprecated36pxDefaultSizeProp(props);
       
 58090   if (!__nextHasNoMarginBottom) {
       
 58091     external_wp_deprecated_default()('Bottom margin styles for wp.components.FormTokenField', {
       
 58092       since: '6.7',
       
 58093       version: '7.0',
       
 58094       hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version.'
       
 58095     });
       
 58096   }
       
 58097   maybeWarnDeprecated36pxSize({
       
 58098     componentName: 'FormTokenField',
       
 58099     size: undefined,
       
 58100     __next40pxDefaultSize
       
 58101   });
 60124   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(FormTokenField);
 58102   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(FormTokenField);
 60125 
 58103 
 60126   // We reset to these initial values again in the onBlur
 58104   // We reset to these initial values again in the onBlur
 60127   const [incompleteTokenValue, setIncompleteTokenValue] = (0,external_wp_element_namespaceObject.useState)('');
 58105   const [incompleteTokenValue, setIncompleteTokenValue] = (0,external_wp_element_namespaceObject.useState)('');
 60128   const [inputOffsetFromEnd, setInputOffsetFromEnd] = (0,external_wp_element_namespaceObject.useState)(0);
 58106   const [inputOffsetFromEnd, setInputOffsetFromEnd] = (0,external_wp_element_namespaceObject.useState)(0);
 60146     if (suggestionsDidUpdate || value !== prevValue) {
 58124     if (suggestionsDidUpdate || value !== prevValue) {
 60147       updateSuggestions(suggestionsDidUpdate);
 58125       updateSuggestions(suggestionsDidUpdate);
 60148     }
 58126     }
 60149 
 58127 
 60150     // TODO: updateSuggestions() should first be refactored so its actual deps are clearer.
 58128     // TODO: updateSuggestions() should first be refactored so its actual deps are clearer.
 60151     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 60152   }, [suggestions, prevSuggestions, value, prevValue]);
 58129   }, [suggestions, prevSuggestions, value, prevValue]);
 60153   (0,external_wp_element_namespaceObject.useEffect)(() => {
 58130   (0,external_wp_element_namespaceObject.useEffect)(() => {
 60154     updateSuggestions();
 58131     updateSuggestions();
 60155     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 60156   }, [incompleteTokenValue]);
 58132   }, [incompleteTokenValue]);
 60157   (0,external_wp_element_namespaceObject.useEffect)(() => {
 58133   (0,external_wp_element_namespaceObject.useEffect)(() => {
 60158     updateSuggestions();
 58134     updateSuggestions();
 60159     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 60160   }, [__experimentalAutoSelectFirstMatch]);
 58135   }, [__experimentalAutoSelectFirstMatch]);
 60161   if (disabled && isActive) {
 58136   if (disabled && isActive) {
 60162     setIsActive(false);
 58137     setIsActive(false);
 60163     setIncompleteTokenValue('');
 58138     setIncompleteTokenValue('');
 60164   }
 58139   }
 60487         setSelectedSuggestionIndex(-1);
 58462         setSelectedSuggestionIndex(-1);
 60488         setSelectedSuggestionScroll(false);
 58463         setSelectedSuggestionScroll(false);
 60489       }
 58464       }
 60490     }
 58465     }
 60491     if (inputHasMinimumChars) {
 58466     if (inputHasMinimumChars) {
 60492       const message = hasMatchingSuggestions ? (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
 58467       const message = hasMatchingSuggestions ? (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: %d: number of results. */
 60493       (0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', matchingSuggestions.length), matchingSuggestions.length) : (0,external_wp_i18n_namespaceObject.__)('No results.');
 58468       (0,external_wp_i18n_namespaceObject._n)('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', matchingSuggestions.length), matchingSuggestions.length) : (0,external_wp_i18n_namespaceObject.__)('No results.');
 60494       debouncedSpeak(message, 'assertive');
 58469       debouncedSpeak(message, 'assertive');
 60495     }
 58470     }
 60496   }
 58471   }
 60497   function renderTokensAndInput() {
 58472   function renderTokensAndInput() {
 60602   });
 58577   });
 60603   /* eslint-enable jsx-a11y/no-static-element-interactions */
 58578   /* eslint-enable jsx-a11y/no-static-element-interactions */
 60604 }
 58579 }
 60605 /* harmony default export */ const form_token_field = (FormTokenField);
 58580 /* harmony default export */ const form_token_field = (FormTokenField);
 60606 
 58581 
 60607 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/icons.js
 58582 ;// ./node_modules/@wordpress/components/build-module/guide/icons.js
 60608 /**
 58583 /**
 60609  * WordPress dependencies
 58584  * WordPress dependencies
 60610  */
 58585  */
 60611 
 58586 
 60612 
 58587 
 60620     cy: "4",
 58595     cy: "4",
 60621     r: "4"
 58596     r: "4"
 60622   })
 58597   })
 60623 });
 58598 });
 60624 
 58599 
 60625 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/page-control.js
 58600 ;// ./node_modules/@wordpress/components/build-module/guide/page-control.js
 60626 /**
 58601 /**
 60627  * WordPress dependencies
 58602  * WordPress dependencies
 60628  */
 58603  */
 60629 
 58604 
 60630 
 58605 
 60646       length: numberOfPages
 58621       length: numberOfPages
 60647     }).map((_, page) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
 58622     }).map((_, page) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("li", {
 60648       // Set aria-current="step" on the active page, see https://www.w3.org/TR/wai-aria-1.1/#aria-current
 58623       // Set aria-current="step" on the active page, see https://www.w3.org/TR/wai-aria-1.1/#aria-current
 60649       "aria-current": page === currentPage ? 'step' : undefined,
 58624       "aria-current": page === currentPage ? 'step' : undefined,
 60650       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 58625       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 58626         size: "small",
 60651         icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageControlIcon, {}),
 58627         icon: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PageControlIcon, {}),
 60652         "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: current page number 2: total number of pages */
 58628         "aria-label": (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: 1: current page number 2: total number of pages */
 60653         (0,external_wp_i18n_namespaceObject.__)('Page %1$d of %2$d'), page + 1, numberOfPages),
 58629         (0,external_wp_i18n_namespaceObject.__)('Page %1$d of %2$d'), page + 1, numberOfPages),
 60654         onClick: () => setCurrentPage(page)
 58630         onClick: () => setCurrentPage(page)
 60655       }, page)
 58631       }, page)
 60656     }, page))
 58632     }, page))
 60657   });
 58633   });
 60658 }
 58634 }
 60659 
 58635 
 60660 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/index.js
 58636 ;// ./node_modules/@wordpress/components/build-module/guide/index.js
 60661 /**
 58637 /**
 60662  * External dependencies
 58638  * External dependencies
 60663  */
 58639  */
 60664 
 58640 
 60665 
 58641 
 60671 
 58647 
 60672 
 58648 
 60673 /**
 58649 /**
 60674  * Internal dependencies
 58650  * Internal dependencies
 60675  */
 58651  */
 60676 
       
 60677 
 58652 
 60678 
 58653 
 60679 
 58654 
 60680 
 58655 
 60681 /**
 58656 /**
 60786         className: "components-guide__footer",
 58761         className: "components-guide__footer",
 60787         children: [canGoBack && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 58762         children: [canGoBack && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 60788           className: "components-guide__back-button",
 58763           className: "components-guide__back-button",
 60789           variant: "tertiary",
 58764           variant: "tertiary",
 60790           onClick: goBack,
 58765           onClick: goBack,
       
 58766           __next40pxDefaultSize: true,
 60791           children: (0,external_wp_i18n_namespaceObject.__)('Previous')
 58767           children: (0,external_wp_i18n_namespaceObject.__)('Previous')
 60792         }), canGoForward && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 58768         }), canGoForward && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 60793           className: "components-guide__forward-button",
 58769           className: "components-guide__forward-button",
 60794           variant: "primary",
 58770           variant: "primary",
 60795           onClick: goForward,
 58771           onClick: goForward,
       
 58772           __next40pxDefaultSize: true,
 60796           children: (0,external_wp_i18n_namespaceObject.__)('Next')
 58773           children: (0,external_wp_i18n_namespaceObject.__)('Next')
 60797         }), !canGoForward && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 58774         }), !canGoForward && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 60798           className: "components-guide__finish-button",
 58775           className: "components-guide__finish-button",
 60799           variant: "primary",
 58776           variant: "primary",
 60800           onClick: onFinish,
 58777           onClick: onFinish,
       
 58778           __next40pxDefaultSize: true,
 60801           children: finishButtonText
 58779           children: finishButtonText
 60802         })]
 58780         })]
 60803       })]
 58781       })]
 60804     })
 58782     })
 60805   });
 58783   });
 60806 }
 58784 }
 60807 /* harmony default export */ const guide = (Guide);
 58785 /* harmony default export */ const guide = (Guide);
 60808 
 58786 
 60809 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/guide/page.js
 58787 ;// ./node_modules/@wordpress/components/build-module/guide/page.js
 60810 /**
 58788 /**
 60811  * WordPress dependencies
 58789  * WordPress dependencies
 60812  */
 58790  */
 60813 
 58791 
 60814 
 58792 
 60827   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 58805   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 60828     ...props
 58806     ...props
 60829   });
 58807   });
 60830 }
 58808 }
 60831 
 58809 
 60832 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/button/deprecated.js
 58810 ;// ./node_modules/@wordpress/components/build-module/button/deprecated.js
 60833 /**
 58811 /**
 60834  * External dependencies
 58812  * External dependencies
 60835  */
 58813  */
 60836 
 58814 
 60837 /**
 58815 /**
 60866     label: tooltip || label
 58844     label: tooltip || label
 60867   });
 58845   });
 60868 }
 58846 }
 60869 /* harmony default export */ const deprecated = ((0,external_wp_element_namespaceObject.forwardRef)(UnforwardedIconButton));
 58847 /* harmony default export */ const deprecated = ((0,external_wp_element_namespaceObject.forwardRef)(UnforwardedIconButton));
 60870 
 58848 
 60871 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item/hook.js
 58849 ;// ./node_modules/@wordpress/components/build-module/keyboard-shortcuts/index.js
 60872 /**
 58850 /**
 60873  * WordPress dependencies
 58851  * WordPress dependencies
 60874  */
 58852  */
 60875 
 58853 
 60876 
 58854 
       
 58855 
 60877 /**
 58856 /**
 60878  * Internal dependencies
 58857  * Internal dependencies
 60879  */
 58858  */
 60880 
       
 60881 
       
 60882 
       
 60883 
       
 60884 
       
 60885 function useItem(props) {
       
 60886   const {
       
 60887     as: asProp,
       
 60888     className,
       
 60889     onClick,
       
 60890     role = 'listitem',
       
 60891     size: sizeProp,
       
 60892     ...otherProps
       
 60893   } = useContextSystem(props, 'Item');
       
 60894   const {
       
 60895     spacedAround,
       
 60896     size: contextSize
       
 60897   } = useItemGroupContext();
       
 60898   const size = sizeProp || contextSize;
       
 60899   const as = asProp || (typeof onClick !== 'undefined' ? 'button' : 'div');
       
 60900   const cx = useCx();
       
 60901   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx((as === 'button' || as === 'a') && unstyledButton(as), itemSizes[size] || itemSizes.medium, item, spacedAround && styles_spacedAround, className), [as, className, cx, size, spacedAround]);
       
 60902   const wrapperClassName = cx(itemWrapper);
       
 60903   return {
       
 60904     as,
       
 60905     className: classes,
       
 60906     onClick,
       
 60907     wrapperClassName,
       
 60908     role,
       
 60909     ...otherProps
       
 60910   };
       
 60911 }
       
 60912 
       
 60913 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/item-group/item/component.js
       
 60914 /**
       
 60915  * External dependencies
       
 60916  */
       
 60917 
       
 60918 /**
       
 60919  * Internal dependencies
       
 60920  */
       
 60921 
       
 60922 
       
 60923 
       
 60924 
       
 60925 
       
 60926 function UnconnectedItem(props, forwardedRef) {
       
 60927   const {
       
 60928     role,
       
 60929     wrapperClassName,
       
 60930     ...otherProps
       
 60931   } = useItem(props);
       
 60932   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
       
 60933     role: role,
       
 60934     className: wrapperClassName,
       
 60935     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
       
 60936       ...otherProps,
       
 60937       ref: forwardedRef
       
 60938     })
       
 60939   });
       
 60940 }
       
 60941 
       
 60942 /**
       
 60943  * `Item` is used in combination with `ItemGroup` to display a list of items
       
 60944  * grouped and styled together.
       
 60945  *
       
 60946  * ```jsx
       
 60947  * import {
       
 60948  *   __experimentalItemGroup as ItemGroup,
       
 60949  *   __experimentalItem as Item,
       
 60950  * } from '@wordpress/components';
       
 60951  *
       
 60952  * function Example() {
       
 60953  *   return (
       
 60954  *     <ItemGroup>
       
 60955  *       <Item>Code</Item>
       
 60956  *       <Item>is</Item>
       
 60957  *       <Item>Poetry</Item>
       
 60958  *     </ItemGroup>
       
 60959  *   );
       
 60960  * }
       
 60961  * ```
       
 60962  */
       
 60963 const component_Item = contextConnect(UnconnectedItem, 'Item');
       
 60964 /* harmony default export */ const item_component = (component_Item);
       
 60965 
       
 60966 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/input-control/input-prefix-wrapper.js
       
 60967 /**
       
 60968  * External dependencies
       
 60969  */
       
 60970 
       
 60971 /**
       
 60972  * Internal dependencies
       
 60973  */
       
 60974 
       
 60975 
       
 60976 
       
 60977 function UnconnectedInputControlPrefixWrapper(props, forwardedRef) {
       
 60978   const derivedProps = useContextSystem(props, 'InputControlPrefixWrapper');
       
 60979   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(spacer_component, {
       
 60980     marginBottom: 0,
       
 60981     ...derivedProps,
       
 60982     ref: forwardedRef
       
 60983   });
       
 60984 }
       
 60985 
       
 60986 /**
       
 60987  * A convenience wrapper for the `prefix` when you want to apply
       
 60988  * standard padding in accordance with the size variant.
       
 60989  *
       
 60990  * ```jsx
       
 60991  * import {
       
 60992  *   __experimentalInputControl as InputControl,
       
 60993  *   __experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,
       
 60994  * } from '@wordpress/components';
       
 60995  *
       
 60996  * <InputControl
       
 60997  *   prefix={<InputControlPrefixWrapper>@</InputControlPrefixWrapper>}
       
 60998  * />
       
 60999  * ```
       
 61000  */
       
 61001 const InputControlPrefixWrapper = contextConnect(UnconnectedInputControlPrefixWrapper, 'InputControlPrefixWrapper');
       
 61002 /* harmony default export */ const input_prefix_wrapper = (InputControlPrefixWrapper);
       
 61003 
       
 61004 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/keyboard-shortcuts/index.js
       
 61005 /**
       
 61006  * WordPress dependencies
       
 61007  */
       
 61008 
       
 61009 
       
 61010 
       
 61011 /**
       
 61012  * Internal dependencies
       
 61013  */
       
 61014 
       
 61015 
       
 61016 
 58859 
 61017 function KeyboardShortcut({
 58860 function KeyboardShortcut({
 61018   target,
 58861   target,
 61019   callback,
 58862   callback,
 61020   shortcut,
 58863   shortcut,
 61086     children: [element, children]
 58929     children: [element, children]
 61087   });
 58930   });
 61088 }
 58931 }
 61089 /* harmony default export */ const keyboard_shortcuts = (KeyboardShortcuts);
 58932 /* harmony default export */ const keyboard_shortcuts = (KeyboardShortcuts);
 61090 
 58933 
 61091 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-group/index.js
 58934 ;// ./node_modules/@wordpress/components/build-module/menu-group/index.js
 61092 /**
 58935 /**
 61093  * External dependencies
 58936  * External dependencies
 61094  */
 58937  */
 61095 
 58938 
 61096 
 58939 
 61101 
 58944 
 61102 
 58945 
 61103 /**
 58946 /**
 61104  * Internal dependencies
 58947  * Internal dependencies
 61105  */
 58948  */
 61106 
       
 61107 
 58949 
 61108 /**
 58950 /**
 61109  * `MenuGroup` wraps a series of related `MenuItem` components into a common
 58951  * `MenuGroup` wraps a series of related `MenuItem` components into a common
 61110  * section.
 58952  * section.
 61111  *
 58953  *
 61149     })]
 58991     })]
 61150   });
 58992   });
 61151 }
 58993 }
 61152 /* harmony default export */ const menu_group = (MenuGroup);
 58994 /* harmony default export */ const menu_group = (MenuGroup);
 61153 
 58995 
 61154 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-item/index.js
 58996 ;// ./node_modules/@wordpress/components/build-module/menu-item/index.js
 61155 /**
 58997 /**
 61156  * External dependencies
 58998  * External dependencies
 61157  */
 58999  */
 61158 
 59000 
 61159 
 59001 
 61164 
 59006 
 61165 
 59007 
 61166 /**
 59008 /**
 61167  * Internal dependencies
 59009  * Internal dependencies
 61168  */
 59010  */
 61169 
       
 61170 
 59011 
 61171 
 59012 
 61172 
 59013 
 61173 
 59014 
 61174 function UnforwardedMenuItem(props, ref) {
 59015 function UnforwardedMenuItem(props, ref) {
 61203         'has-icon-right': iconPosition === 'right'
 59044         'has-icon-right': iconPosition === 'right'
 61204       })
 59045       })
 61205     });
 59046     });
 61206   }
 59047   }
 61207   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(build_module_button, {
 59048   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(build_module_button, {
       
 59049     __next40pxDefaultSize: true,
 61208     ref: ref
 59050     ref: ref
 61209     // Make sure aria-checked matches spec https://www.w3.org/TR/wai-aria-1.1/#aria-checked
 59051     // Make sure aria-checked matches spec https://www.w3.org/TR/wai-aria-1.1/#aria-checked
 61210     ,
 59052     ,
 61211     "aria-checked": role === 'menuitemcheckbox' || role === 'menuitemradio' ? isSelected : undefined,
 59053     "aria-checked": role === 'menuitemcheckbox' || role === 'menuitemradio' ? isSelected : undefined,
 61212     role: role,
 59054     role: role,
 61249  * ```
 59091  * ```
 61250  */
 59092  */
 61251 const MenuItem = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedMenuItem);
 59093 const MenuItem = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedMenuItem);
 61252 /* harmony default export */ const menu_item = (MenuItem);
 59094 /* harmony default export */ const menu_item = (MenuItem);
 61253 
 59095 
 61254 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-items-choice/index.js
 59096 ;// ./node_modules/@wordpress/components/build-module/menu-items-choice/index.js
 61255 /**
 59097 /**
 61256  * WordPress dependencies
 59098  * WordPress dependencies
 61257  */
 59099  */
 61258 
 59100 
 61259 
 59101 
 61260 /**
 59102 /**
 61261  * Internal dependencies
 59103  * Internal dependencies
 61262  */
 59104  */
 61263 
       
 61264 
 59105 
 61265 
 59106 
 61266 const menu_items_choice_noop = () => {};
 59107 const menu_items_choice_noop = () => {};
 61267 
 59108 
 61268 /**
 59109 /**
 61328     })
 59169     })
 61329   });
 59170   });
 61330 }
 59171 }
 61331 /* harmony default export */ const menu_items_choice = (MenuItemsChoice);
 59172 /* harmony default export */ const menu_items_choice = (MenuItemsChoice);
 61332 
 59173 
 61333 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/tabbable.js
 59174 ;// ./node_modules/@wordpress/components/build-module/navigable-container/tabbable.js
 61334 /**
 59175 /**
 61335  * External dependencies
 59176  * External dependencies
 61336  */
 59177  */
 61337 
 59178 
 61338 /**
 59179 /**
 61418  *  ```
 59259  *  ```
 61419  */
 59260  */
 61420 const TabbableContainer = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTabbableContainer);
 59261 const TabbableContainer = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTabbableContainer);
 61421 /* harmony default export */ const tabbable = (TabbableContainer);
 59262 /* harmony default export */ const tabbable = (TabbableContainer);
 61422 
 59263 
 61423 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/constants.js
 59264 ;// ./node_modules/@wordpress/components/build-module/navigation/constants.js
 61424 const ROOT_MENU = 'root';
 59265 const ROOT_MENU = 'root';
 61425 const SEARCH_FOCUS_DELAY = 100;
 59266 const SEARCH_FOCUS_DELAY = 100;
 61426 
 59267 
 61427 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/context.js
 59268 ;// ./node_modules/@wordpress/components/build-module/navigation/context.js
 61428 /**
 59269 /**
 61429  * WordPress dependencies
 59270  * WordPress dependencies
 61430  */
 59271  */
 61431 
 59272 
 61432 
 59273 
 61455     isMenuEmpty: defaultIsEmpty
 59296     isMenuEmpty: defaultIsEmpty
 61456   }
 59297   }
 61457 });
 59298 });
 61458 const useNavigationContext = () => (0,external_wp_element_namespaceObject.useContext)(NavigationContext);
 59299 const useNavigationContext = () => (0,external_wp_element_namespaceObject.useContext)(NavigationContext);
 61459 
 59300 
 61460 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/styles/navigation-styles.js
 59301 ;// ./node_modules/@wordpress/components/build-module/navigation/styles/navigation-styles.js
 61461 
 59302 
 61462 function navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 59303 function navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 61463 /**
 59304 /**
 61464  * External dependencies
 59305  * External dependencies
 61465  */
 59306  */
 61508 const GroupTitleUI = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component,  true ? {
 59349 const GroupTitleUI = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component,  true ? {
 61509   target: "eeiismy5"
 59350   target: "eeiismy5"
 61510 } : 0)("min-height:", space(12), ";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:", space(2), ";padding:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? `${space(1)} ${space(4)} ${space(1)} ${space(2)}` : `${space(1)} ${space(2)} ${space(1)} ${space(4)}`, ";" + ( true ? "" : 0));
 59351 } : 0)("min-height:", space(12), ";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:", space(2), ";padding:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? `${space(1)} ${space(4)} ${space(1)} ${space(2)}` : `${space(1)} ${space(2)} ${space(1)} ${space(4)}`, ";" + ( true ? "" : 0));
 61511 const ItemBaseUI = /*#__PURE__*/emotion_styled_base_browser_esm("li",  true ? {
 59352 const ItemBaseUI = /*#__PURE__*/emotion_styled_base_browser_esm("li",  true ? {
 61512   target: "eeiismy4"
 59353   target: "eeiismy4"
 61513 } : 0)("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:", space(2), " ", space(4), ";", rtl({
 59354 } : 0)("border-radius:", config_values.radiusSmall, ";color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:", space(2), " ", space(4), ";", rtl({
 61514   textAlign: 'left'
 59355   textAlign: 'left'
 61515 }, {
 59356 }, {
 61516   textAlign: 'right'
 59357   textAlign: 'right'
 61517 }), " &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:", COLORS.theme.accent, ";color:", COLORS.white, ";>button,>a{color:", COLORS.white, ";opacity:1;}}>svg path{color:", COLORS.gray[600], ";}" + ( true ? "" : 0));
 59358 }), " &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:", COLORS.theme.accent, ";color:", COLORS.theme.accentInverted, ";>button,.components-button:hover,>a{color:", COLORS.theme.accentInverted, ";opacity:1;}}>svg path{color:", COLORS.gray[600], ";}" + ( true ? "" : 0));
 61518 const ItemUI = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 59359 const ItemUI = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 61519   target: "eeiismy3"
 59360   target: "eeiismy3"
 61520 } : 0)("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:", space(1.5), " ", space(4), ";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;" + ( true ? "" : 0));
 59361 } : 0)("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:", space(1.5), " ", space(4), ";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;" + ( true ? "" : 0));
 61521 const ItemIconUI = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 59362 const ItemIconUI = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 61522   target: "eeiismy2"
 59363   target: "eeiismy2"
 61523 } : 0)("display:flex;margin-right:", space(2), ";" + ( true ? "" : 0));
 59364 } : 0)("display:flex;margin-right:", space(2), ";" + ( true ? "" : 0));
 61524 const ItemBadgeUI = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 59365 const ItemBadgeUI = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 61525   target: "eeiismy1"
 59366   target: "eeiismy1"
 61526 } : 0)("margin-left:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? '0' : space(2), ";margin-right:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? space(2) : '0', ";display:inline-flex;padding:", space(1), " ", space(3), ";border-radius:2px;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}@media not ( prefers-reduced-motion ){animation:fade-in 250ms ease-out;}" + ( true ? "" : 0));
 59367 } : 0)("margin-left:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? '0' : space(2), ";margin-right:", () => (0,external_wp_i18n_namespaceObject.isRTL)() ? space(2) : '0', ";display:inline-flex;padding:", space(1), " ", space(3), ";border-radius:", config_values.radiusSmall, ";@keyframes fade-in{from{opacity:0;}to{opacity:1;}}@media not ( prefers-reduced-motion ){animation:fade-in 250ms ease-out;}" + ( true ? "" : 0));
 61527 const ItemTitleUI = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
 59368 const ItemTitleUI = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
 61528   target: "eeiismy0"
 59369   target: "eeiismy0"
 61529 } : 0)(() => (0,external_wp_i18n_namespaceObject.isRTL)() ? 'margin-left: auto;' : 'margin-right: auto;', " font-size:14px;line-height:20px;color:inherit;" + ( true ? "" : 0));
 59370 } : 0)(() => (0,external_wp_i18n_namespaceObject.isRTL)() ? 'margin-left: auto;' : 'margin-right: auto;', " font-size:14px;line-height:20px;color:inherit;" + ( true ? "" : 0));
 61530 
 59371 
 61531 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/use-navigation-tree-nodes.js
 59372 ;// ./node_modules/@wordpress/components/build-module/navigation/use-navigation-tree-nodes.js
 61532 /**
 59373 /**
 61533  * WordPress dependencies
 59374  * WordPress dependencies
 61534  */
 59375  */
 61535 
 59376 
 61536 function useNavigationTreeNodes() {
 59377 function useNavigationTreeNodes() {
 61561     addNode,
 59402     addNode,
 61562     removeNode
 59403     removeNode
 61563   };
 59404   };
 61564 }
 59405 }
 61565 
 59406 
 61566 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/use-create-navigation-tree.js
 59407 ;// ./node_modules/@wordpress/components/build-module/navigation/use-create-navigation-tree.js
 61567 /**
 59408 /**
 61568  * WordPress dependencies
 59409  * WordPress dependencies
 61569  */
 59410  */
 61570 
 59411 
 61571 
 59412 
 61652     traverseMenu,
 59493     traverseMenu,
 61653     isMenuEmpty
 59494     isMenuEmpty
 61654   };
 59495   };
 61655 };
 59496 };
 61656 
 59497 
 61657 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/index.js
 59498 ;// ./node_modules/@wordpress/components/build-module/navigation/index.js
 61658 /**
 59499 /**
 61659  * External dependencies
 59500  * External dependencies
 61660  */
 59501  */
 61661 
 59502 
 61662 
 59503 
 61663 /**
 59504 /**
 61664  * WordPress dependencies
 59505  * WordPress dependencies
 61665  */
 59506  */
       
 59507 
 61666 
 59508 
 61667 
 59509 
 61668 
 59510 
 61669 /**
 59511 /**
 61670  * Internal dependencies
 59512  * Internal dependencies
 61728 }) {
 59570 }) {
 61729   const [menu, setMenu] = (0,external_wp_element_namespaceObject.useState)(activeMenu);
 59571   const [menu, setMenu] = (0,external_wp_element_namespaceObject.useState)(activeMenu);
 61730   const [slideOrigin, setSlideOrigin] = (0,external_wp_element_namespaceObject.useState)();
 59572   const [slideOrigin, setSlideOrigin] = (0,external_wp_element_namespaceObject.useState)();
 61731   const navigationTree = useCreateNavigationTree();
 59573   const navigationTree = useCreateNavigationTree();
 61732   const defaultSlideOrigin = (0,external_wp_i18n_namespaceObject.isRTL)() ? 'right' : 'left';
 59574   const defaultSlideOrigin = (0,external_wp_i18n_namespaceObject.isRTL)() ? 'right' : 'left';
       
 59575   external_wp_deprecated_default()('wp.components.Navigation (and all subcomponents)', {
       
 59576     since: '6.8',
       
 59577     version: '7.1',
       
 59578     alternative: 'wp.components.Navigator'
       
 59579   });
 61733   const setActiveMenu = (menuId, slideInOrigin = defaultSlideOrigin) => {
 59580   const setActiveMenu = (menuId, slideInOrigin = defaultSlideOrigin) => {
 61734     if (!navigationTree.getMenu(menuId)) {
 59581     if (!navigationTree.getMenu(menuId)) {
 61735       return;
 59582       return;
 61736     }
 59583     }
 61737     setSlideOrigin(slideInOrigin);
 59584     setSlideOrigin(slideInOrigin);
 61738     setMenu(menuId);
 59585     setMenu(menuId);
 61739     onActivateMenu(menuId);
 59586     onActivateMenu(menuId);
 61740   };
 59587   };
 61741 
 59588 
 61742   // Used to prevent the sliding animation on mount
 59589   // Used to prevent the sliding animation on mount
 61743   const isMounted = (0,external_wp_element_namespaceObject.useRef)(false);
 59590   const isMountedRef = (0,external_wp_element_namespaceObject.useRef)(false);
 61744   (0,external_wp_element_namespaceObject.useEffect)(() => {
 59591   (0,external_wp_element_namespaceObject.useEffect)(() => {
 61745     if (!isMounted.current) {
 59592     if (!isMountedRef.current) {
 61746       isMounted.current = true;
 59593       isMountedRef.current = true;
 61747     }
 59594     }
 61748   }, []);
 59595   }, []);
 61749   (0,external_wp_element_namespaceObject.useEffect)(() => {
 59596   (0,external_wp_element_namespaceObject.useEffect)(() => {
 61750     if (activeMenu !== menu) {
 59597     if (activeMenu !== menu) {
 61751       setActiveMenu(activeMenu);
 59598       setActiveMenu(activeMenu);
 61752     }
 59599     }
 61753     // Ignore exhaustive-deps here, as it would require either a larger refactor or some questionable workarounds.
 59600     // Not adding deps for now, as it would require either a larger refactor or some questionable workarounds.
 61754     // See https://github.com/WordPress/gutenberg/pull/41612 for context.
 59601     // See https://github.com/WordPress/gutenberg/pull/41612 for context.
 61755     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 61756   }, [activeMenu]);
 59602   }, [activeMenu]);
 61757   const context = {
 59603   const context = {
 61758     activeItem,
 59604     activeItem,
 61759     activeMenu: menu,
 59605     activeMenu: menu,
 61760     setActiveMenu,
 59606     setActiveMenu,
 61767   });
 59613   });
 61768   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationUI, {
 59614   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationUI, {
 61769     className: classes,
 59615     className: classes,
 61770     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 59616     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 61771       className: animateClassName ? dist_clsx({
 59617       className: animateClassName ? dist_clsx({
 61772         [animateClassName]: isMounted.current && slideOrigin
 59618         [animateClassName]: isMountedRef.current && slideOrigin
 61773       }) : undefined,
 59619       }) : undefined,
 61774       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationContext.Provider, {
 59620       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigationContext.Provider, {
 61775         value: context,
 59621         value: context,
 61776         children: children
 59622         children: children
 61777       })
 59623       })
 61778     }, menu)
 59624     }, menu)
 61779   });
 59625   });
 61780 }
 59626 }
 61781 /* harmony default export */ const navigation = (Navigation);
 59627 /* harmony default export */ const navigation = (Navigation);
 61782 
 59628 
 61783 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
 59629 ;// ./node_modules/@wordpress/icons/build-module/library/chevron-right.js
 61784 /**
 59630 /**
 61785  * WordPress dependencies
 59631  * WordPress dependencies
 61786  */
 59632  */
 61787 
 59633 
 61788 
 59634 
 61793     d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
 59639     d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
 61794   })
 59640   })
 61795 });
 59641 });
 61796 /* harmony default export */ const chevron_right = (chevronRight);
 59642 /* harmony default export */ const chevron_right = (chevronRight);
 61797 
 59643 
 61798 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
 59644 ;// ./node_modules/@wordpress/icons/build-module/library/chevron-left.js
 61799 /**
 59645 /**
 61800  * WordPress dependencies
 59646  * WordPress dependencies
 61801  */
 59647  */
 61802 
 59648 
 61803 
 59649 
 61808     d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
 59654     d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
 61809   })
 59655   })
 61810 });
 59656 });
 61811 /* harmony default export */ const chevron_left = (chevronLeft);
 59657 /* harmony default export */ const chevron_left = (chevronLeft);
 61812 
 59658 
 61813 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/back-button/index.js
 59659 ;// ./node_modules/@wordpress/components/build-module/navigation/back-button/index.js
 61814 /**
 59660 /**
 61815  * External dependencies
 59661  * External dependencies
 61816  */
 59662  */
 61817 
 59663 
 61818 /**
 59664 /**
 61823 
 59669 
 61824 
 59670 
 61825 /**
 59671 /**
 61826  * Internal dependencies
 59672  * Internal dependencies
 61827  */
 59673  */
 61828 
       
 61829 
 59674 
 61830 
 59675 
 61831 
 59676 
 61832 function UnforwardedNavigationBackButton({
 59677 function UnforwardedNavigationBackButton({
 61833   backButtonLabel,
 59678   backButtonLabel,
 61851       setActiveMenu(parentMenu, animationDirection);
 59696       setActiveMenu(parentMenu, animationDirection);
 61852     }
 59697     }
 61853   };
 59698   };
 61854   const icon = (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left;
 59699   const icon = (0,external_wp_i18n_namespaceObject.isRTL)() ? chevron_right : chevron_left;
 61855   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(MenuBackButtonUI, {
 59700   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(MenuBackButtonUI, {
       
 59701     __next40pxDefaultSize: true,
 61856     className: classes,
 59702     className: classes,
 61857     href: href,
 59703     href: href,
 61858     variant: "tertiary",
 59704     variant: "tertiary",
 61859     ref: ref,
 59705     ref: ref,
 61860     onClick: handleOnClick,
 59706     onClick: handleOnClick,
 61868  * @deprecated Use `Navigator` instead.
 59714  * @deprecated Use `Navigator` instead.
 61869  */
 59715  */
 61870 const NavigationBackButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedNavigationBackButton);
 59716 const NavigationBackButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedNavigationBackButton);
 61871 /* harmony default export */ const back_button = (NavigationBackButton);
 59717 /* harmony default export */ const back_button = (NavigationBackButton);
 61872 
 59718 
 61873 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/group/context.js
 59719 ;// ./node_modules/@wordpress/components/build-module/navigation/group/context.js
 61874 /**
 59720 /**
 61875  * WordPress dependencies
 59721  * WordPress dependencies
 61876  */
 59722  */
 61877 
 59723 
 61878 
 59724 
 61883 const NavigationGroupContext = (0,external_wp_element_namespaceObject.createContext)({
 59729 const NavigationGroupContext = (0,external_wp_element_namespaceObject.createContext)({
 61884   group: undefined
 59730   group: undefined
 61885 });
 59731 });
 61886 const useNavigationGroupContext = () => (0,external_wp_element_namespaceObject.useContext)(NavigationGroupContext);
 59732 const useNavigationGroupContext = () => (0,external_wp_element_namespaceObject.useContext)(NavigationGroupContext);
 61887 
 59733 
 61888 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/group/index.js
 59734 ;// ./node_modules/@wordpress/components/build-module/navigation/group/index.js
 61889 /**
 59735 /**
 61890  * External dependencies
 59736  * External dependencies
 61891  */
 59737  */
 61892 
 59738 
 61893 
 59739 
 61897 
 59743 
 61898 
 59744 
 61899 /**
 59745 /**
 61900  * Internal dependencies
 59746  * Internal dependencies
 61901  */
 59747  */
 61902 
       
 61903 
 59748 
 61904 
 59749 
 61905 
 59750 
 61906 
 59751 
 61907 let uniqueId = 0;
 59752 let uniqueId = 0;
 61950     })
 59795     })
 61951   });
 59796   });
 61952 }
 59797 }
 61953 /* harmony default export */ const group = (NavigationGroup);
 59798 /* harmony default export */ const group = (NavigationGroup);
 61954 
 59799 
 61955 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/base-content.js
 59800 ;// ./node_modules/@wordpress/components/build-module/navigation/item/base-content.js
 61956 /**
 59801 /**
 61957  * Internal dependencies
 59802  * Internal dependencies
 61958  */
 59803  */
 61959 
       
 61960 
       
 61961 
 59804 
 61962 
 59805 
 61963 function NavigationItemBaseContent(props) {
 59806 function NavigationItemBaseContent(props) {
 61964   const {
 59807   const {
 61965     badge,
 59808     badge,
 61975       children: badge
 59818       children: badge
 61976     })]
 59819     })]
 61977   });
 59820   });
 61978 }
 59821 }
 61979 
 59822 
 61980 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/context.js
 59823 ;// ./node_modules/@wordpress/components/build-module/navigation/menu/context.js
 61981 /**
 59824 /**
 61982  * WordPress dependencies
 59825  * WordPress dependencies
 61983  */
 59826  */
 61984 
 59827 
 61985 
 59828 
 61991   menu: undefined,
 59834   menu: undefined,
 61992   search: ''
 59835   search: ''
 61993 });
 59836 });
 61994 const useNavigationMenuContext = () => (0,external_wp_element_namespaceObject.useContext)(NavigationMenuContext);
 59837 const useNavigationMenuContext = () => (0,external_wp_element_namespaceObject.useContext)(NavigationMenuContext);
 61995 
 59838 
 61996 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/utils.js
 59839 ;// ./node_modules/@wordpress/components/build-module/navigation/utils.js
 61997 /**
 59840 /**
 61998  * External dependencies
 59841  * External dependencies
 61999  */
 59842  */
 62000 
 59843 
 62001 
 59844 
 62002 // @see packages/block-editor/src/components/inserter/search-items.js
 59845 // @see packages/block-editor/src/components/inserter/search-items.js
 62003 const normalizeInput = input => remove_accents_default()(input).replace(/^\//, '').toLowerCase();
 59846 const normalizeInput = input => remove_accents_default()(input).replace(/^\//, '').toLowerCase();
 62004 const normalizedSearch = (title, search) => -1 !== normalizeInput(title).indexOf(normalizeInput(search));
 59847 const normalizedSearch = (title, search) => -1 !== normalizeInput(title).indexOf(normalizeInput(search));
 62005 
 59848 
 62006 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/use-navigation-tree-item.js
 59849 ;// ./node_modules/@wordpress/components/build-module/navigation/item/use-navigation-tree-item.js
 62007 /**
 59850 /**
 62008  * WordPress dependencies
 59851  * WordPress dependencies
 62009  */
 59852  */
 62010 
 59853 
 62011 
 59854 
 62041       _isVisible: isMenuActive && isItemVisible
 59884       _isVisible: isMenuActive && isItemVisible
 62042     });
 59885     });
 62043     return () => {
 59886     return () => {
 62044       removeItem(itemId);
 59887       removeItem(itemId);
 62045     };
 59888     };
 62046     // Ignore exhaustive-deps rule for now. See https://github.com/WordPress/gutenberg/pull/41639
 59889     // Not adding deps for now, as it would require either a larger refactor.
 62047     // eslint-disable-next-line react-hooks/exhaustive-deps
 59890     // See https://github.com/WordPress/gutenberg/pull/41639
 62048   }, [activeMenu, search]);
 59891   }, [activeMenu, search]);
 62049 };
 59892 };
 62050 
 59893 
 62051 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/base.js
 59894 ;// ./node_modules/@wordpress/components/build-module/navigation/item/base.js
 62052 /**
 59895 /**
 62053  * External dependencies
 59896  * External dependencies
 62054  */
 59897  */
 62055 
 59898 
 62056 
 59899 
 62090     ...restProps,
 59933     ...restProps,
 62091     children: children
 59934     children: children
 62092   });
 59935   });
 62093 }
 59936 }
 62094 
 59937 
 62095 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/index.js
 59938 ;// ./node_modules/@wordpress/components/build-module/navigation/item/index.js
 62096 /**
 59939 /**
 62097  * External dependencies
 59940  * External dependencies
 62098  */
 59941  */
 62099 
 59942 
 62100 
 59943 
 62105 
 59948 
 62106 
 59949 
 62107 /**
 59950 /**
 62108  * Internal dependencies
 59951  * Internal dependencies
 62109  */
 59952  */
 62110 
       
 62111 
 59953 
 62112 
 59954 
 62113 
 59955 
 62114 
 59956 
 62115 
 59957 
 62163     ...props,
 60005     ...props,
 62164     onClick: undefined
 60006     onClick: undefined
 62165   };
 60007   };
 62166   const itemProps = isText ? restProps : {
 60008   const itemProps = isText ? restProps : {
 62167     as: build_module_button,
 60009     as: build_module_button,
       
 60010     __next40pxDefaultSize: 'as' in restProps ? restProps.as === undefined : true,
 62168     href,
 60011     href,
 62169     onClick: onItemClick,
 60012     onClick: onItemClick,
 62170     'aria-current': isActive ? 'page' : undefined,
 60013     'aria-current': isActive ? 'page' : undefined,
 62171     ...restProps
 60014     ...restProps
 62172   };
 60015   };
 62188     })
 60031     })
 62189   });
 60032   });
 62190 }
 60033 }
 62191 /* harmony default export */ const navigation_item = (NavigationItem);
 60034 /* harmony default export */ const navigation_item = (NavigationItem);
 62192 
 60035 
 62193 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/use-navigation-tree-menu.js
 60036 ;// ./node_modules/@wordpress/components/build-module/navigation/menu/use-navigation-tree-menu.js
 62194 /**
 60037 /**
 62195  * WordPress dependencies
 60038  * WordPress dependencies
 62196  */
 60039  */
 62197 
 60040 
 62198 
 60041 
 62215       menu: key
 60058       menu: key
 62216     });
 60059     });
 62217     return () => {
 60060     return () => {
 62218       removeMenu(key);
 60061       removeMenu(key);
 62219     };
 60062     };
 62220     // Ignore exhaustive-deps rule for now. See https://github.com/WordPress/gutenberg/pull/44090
 60063     // Not adding deps for now, as it would require either a larger refactor
 62221     // eslint-disable-next-line react-hooks/exhaustive-deps
 60064     // See https://github.com/WordPress/gutenberg/pull/44090
 62222   }, []);
 60065   }, []);
 62223 };
 60066 };
 62224 
 60067 
 62225 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js
 60068 ;// ./node_modules/@wordpress/icons/build-module/library/search.js
 62226 /**
 60069 /**
 62227  * WordPress dependencies
 60070  * WordPress dependencies
 62228  */
 60071  */
 62229 
 60072 
 62230 
 60073 
 62235     d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
 60078     d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"
 62236   })
 60079   })
 62237 });
 60080 });
 62238 /* harmony default export */ const library_search = (search);
 60081 /* harmony default export */ const library_search = (search);
 62239 
 60082 
 62240 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js
 60083 ;// ./node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js
 62241 /**
 60084 /**
 62242  * WordPress dependencies
 60085  * WordPress dependencies
 62243  */
 60086  */
 62244 
 60087 
 62245 
 60088 
 62246 
 60089 
 62247 /** @typedef {import('react').ComponentType} ComponentType */
 60090 /** @typedef {import('react').ComponentType} ComponentType */
 62248 
 60091 
 62249 /**
 60092 /**
 62250  * A Higher Order Component used to be provide speak and debounced speak
 60093  * A Higher Order Component used to provide speak and debounced speak functions.
 62251  * functions.
       
 62252  *
 60094  *
 62253  * @see https://developer.wordpress.org/block-editor/packages/packages-a11y/#speak
 60095  * @see https://developer.wordpress.org/block-editor/packages/packages-a11y/#speak
 62254  *
 60096  *
 62255  * @param {ComponentType} Component The component to be wrapped.
 60097  * @param {ComponentType} Component The component to be wrapped.
 62256  *
 60098  *
 62261   ...props,
 60103   ...props,
 62262   speak: external_wp_a11y_namespaceObject.speak,
 60104   speak: external_wp_a11y_namespaceObject.speak,
 62263   debouncedSpeak: (0,external_wp_compose_namespaceObject.useDebounce)(external_wp_a11y_namespaceObject.speak, 500)
 60105   debouncedSpeak: (0,external_wp_compose_namespaceObject.useDebounce)(external_wp_a11y_namespaceObject.speak, 500)
 62264 }), 'withSpokenMessages'));
 60106 }), 'withSpokenMessages'));
 62265 
 60107 
 62266 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/search-control/styles.js
 60108 ;// ./node_modules/@wordpress/components/build-module/search-control/styles.js
 62267 
 60109 
 62268 /**
 60110 /**
 62269  * External dependencies
 60111  * External dependencies
 62270  */
 60112  */
 62271 
 60113 
 62285 } : 0)("display:flex;padding-inline-end:", inlinePadding, ";svg{fill:currentColor;}" + ( true ? "" : 0));
 60127 } : 0)("display:flex;padding-inline-end:", inlinePadding, ";svg{fill:currentColor;}" + ( true ? "" : 0));
 62286 const StyledInputControl = /*#__PURE__*/emotion_styled_base_browser_esm(input_control,  true ? {
 60128 const StyledInputControl = /*#__PURE__*/emotion_styled_base_browser_esm(input_control,  true ? {
 62287   target: "effl84m0"
 60129   target: "effl84m0"
 62288 } : 0)("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:", COLORS.theme.gray[100], ";}" + ( true ? "" : 0));
 60130 } : 0)("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:", COLORS.theme.gray[100], ";}" + ( true ? "" : 0));
 62289 
 60131 
 62290 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/search-control/index.js
 60132 ;// ./node_modules/@wordpress/components/build-module/search-control/index.js
 62291 /**
 60133 /**
 62292  * External dependencies
 60134  * External dependencies
 62293  */
 60135  */
 62294 
 60136 
 62295 
 60137 
 62296 /**
 60138 /**
 62297  * WordPress dependencies
 60139  * WordPress dependencies
 62298  */
 60140  */
       
 60141 
 62299 
 60142 
 62300 
 60143 
 62301 
 60144 
 62302 
 60145 
 62303 
 60146 
 62315   onClose
 60158   onClose
 62316 }) {
 60159 }) {
 62317   if (!onClose && !value) {
 60160   if (!onClose && !value) {
 62318     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
 60161     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
 62319       icon: library_search
 60162       icon: library_search
       
 60163     });
       
 60164   }
       
 60165   if (onClose) {
       
 60166     external_wp_deprecated_default()('`onClose` prop in wp.components.SearchControl', {
       
 60167       since: '6.8'
 62320     });
 60168     });
 62321   }
 60169   }
 62322   const onReset = () => {
 60170   const onReset = () => {
 62323     onChange('');
 60171     onChange('');
 62324     searchRef.current?.focus();
 60172     searchRef.current?.focus();
 62342   size = 'default',
 60190   size = 'default',
 62343   ...restProps
 60191   ...restProps
 62344 }, forwardedRef) {
 60192 }, forwardedRef) {
 62345   // @ts-expect-error The `disabled` prop is not yet supported in the SearchControl component.
 60193   // @ts-expect-error The `disabled` prop is not yet supported in the SearchControl component.
 62346   // Work with the design team (@WordPress/gutenberg-design) if you need this feature.
 60194   // Work with the design team (@WordPress/gutenberg-design) if you need this feature.
 62347   delete restProps.disabled;
 60195   const {
       
 60196     disabled,
       
 60197     ...filteredRestProps
       
 60198   } = restProps;
 62348   const searchRef = (0,external_wp_element_namespaceObject.useRef)(null);
 60199   const searchRef = (0,external_wp_element_namespaceObject.useRef)(null);
 62349   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(SearchControl, 'components-search-control');
 60200   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(SearchControl, 'components-search-control');
 62350   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 60201   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 62351     // Overrides the underlying BaseControl `__nextHasNoMarginBottom` via the context system
       
 62352     // to provide backwards compatibile margin for SearchControl.
       
 62353     // (In a standard InputControl, the BaseControl `__nextHasNoMarginBottom` is always set to true.)
       
 62354     BaseControl: {
 60202     BaseControl: {
       
 60203       // Overrides the underlying BaseControl `__nextHasNoMarginBottom` via the context system
       
 60204       // to provide backwards compatible margin for SearchControl.
       
 60205       // (In a standard InputControl, the BaseControl `__nextHasNoMarginBottom` is always set to true.)
 62355       _overrides: {
 60206       _overrides: {
 62356         __nextHasNoMarginBottom
 60207         __nextHasNoMarginBottom
 62357       }
 60208       },
       
 60209       __associatedWPComponentName: 'SearchControl'
 62358     },
 60210     },
 62359     // `isBorderless` is still experimental and not a public prop for InputControl yet.
 60211     // `isBorderless` is still experimental and not a public prop for InputControl yet.
 62360     InputBase: {
 60212     InputBase: {
 62361       isBorderless: true
 60213       isBorderless: true
 62362     }
 60214     }
 62383           value: value,
 60235           value: value,
 62384           onChange: onChange,
 60236           onChange: onChange,
 62385           onClose: onClose
 60237           onClose: onClose
 62386         })
 60238         })
 62387       }),
 60239       }),
 62388       ...restProps
 60240       ...filteredRestProps
 62389     })
 60241     })
 62390   });
 60242   });
 62391 }
 60243 }
 62392 
 60244 
 62393 /**
 60245 /**
 62411  * ```
 60263  * ```
 62412  */
 60264  */
 62413 const SearchControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSearchControl);
 60265 const SearchControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSearchControl);
 62414 /* harmony default export */ const search_control = (SearchControl);
 60266 /* harmony default export */ const search_control = (SearchControl);
 62415 
 60267 
 62416 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/menu-title-search.js
 60268 ;// ./node_modules/@wordpress/components/build-module/navigation/menu/menu-title-search.js
 62417 /**
 60269 /**
 62418  * WordPress dependencies
 60270  * WordPress dependencies
 62419  */
 60271  */
 62420 
 60272 
 62421 
 60273 
 62460   (0,external_wp_element_namespaceObject.useEffect)(() => {
 60312   (0,external_wp_element_namespaceObject.useEffect)(() => {
 62461     if (!search) {
 60313     if (!search) {
 62462       return;
 60314       return;
 62463     }
 60315     }
 62464     const count = Object.values(items).filter(item => item._isVisible).length;
 60316     const count = Object.values(items).filter(item => item._isVisible).length;
 62465     const resultsFoundMessage = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: %d: number of results. */
 60317     const resultsFoundMessage = (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: %d: number of results. */
 62466     (0,external_wp_i18n_namespaceObject._n)('%d result found.', '%d results found.', count), count);
 60318     (0,external_wp_i18n_namespaceObject._n)('%d result found.', '%d results found.', count), count);
 62467     debouncedSpeak(resultsFoundMessage);
 60319     debouncedSpeak(resultsFoundMessage);
 62468     // Ignore exhaustive-deps rule for now. See https://github.com/WordPress/gutenberg/pull/44090
 60320     // Not adding deps for now, as it would require either a larger refactor.
 62469     // eslint-disable-next-line react-hooks/exhaustive-deps
 60321     // See https://github.com/WordPress/gutenberg/pull/44090
 62470   }, [items, search]);
 60322   }, [items, search]);
 62471   const onClose = () => {
 60323   const onClose = () => {
 62472     onSearch?.('');
 60324     onSearch?.('');
 62473     onCloseSearch();
 60325     onCloseSearch();
 62474   };
 60326   };
 62477       event.preventDefault();
 60329       event.preventDefault();
 62478       onClose();
 60330       onClose();
 62479     }
 60331     }
 62480   };
 60332   };
 62481   const inputId = `components-navigation__menu-title-search-${menu}`;
 60333   const inputId = `components-navigation__menu-title-search-${menu}`;
 62482   const placeholder = (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: placeholder for menu search box. %s: menu title */
 60334   const placeholder = (0,external_wp_i18n_namespaceObject.sprintf)(/* translators: placeholder for menu search box. %s: menu title */
 62483   (0,external_wp_i18n_namespaceObject.__)('Search %s'), title?.toLowerCase()).trim();
 60335   (0,external_wp_i18n_namespaceObject.__)('Search %s'), title?.toLowerCase()).trim();
 62484   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuTitleSearchControlWrapper, {
 60336   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuTitleSearchControlWrapper, {
 62485     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_control, {
 60337     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(search_control, {
 62486       __nextHasNoMarginBottom: true,
 60338       __nextHasNoMarginBottom: true,
 62487       className: "components-navigation__menu-search-input",
 60339       className: "components-navigation__menu-search-input",
 62495     })
 60347     })
 62496   });
 60348   });
 62497 }
 60349 }
 62498 /* harmony default export */ const menu_title_search = (with_spoken_messages(MenuTitleSearch));
 60350 /* harmony default export */ const menu_title_search = (with_spoken_messages(MenuTitleSearch));
 62499 
 60351 
 62500 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/menu-title.js
 60352 ;// ./node_modules/@wordpress/components/build-module/navigation/menu/menu-title.js
 62501 /**
 60353 /**
 62502  * WordPress dependencies
 60354  * WordPress dependencies
 62503  */
 60355  */
 62504 
 60356 
 62505 
 60357 
 62506 
 60358 
 62507 
 60359 
 62508 /**
 60360 /**
 62509  * Internal dependencies
 60361  * Internal dependencies
 62510  */
 60362  */
 62511 
       
 62512 
 60363 
 62513 
 60364 
 62514 
 60365 
 62515 
 60366 
 62516 
 60367 
 62577       })
 60428       })
 62578     })]
 60429     })]
 62579   });
 60430   });
 62580 }
 60431 }
 62581 
 60432 
 62582 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/search-no-results-found.js
 60433 ;// ./node_modules/@wordpress/components/build-module/navigation/menu/search-no-results-found.js
 62583 /**
 60434 /**
 62584  * WordPress dependencies
 60435  * WordPress dependencies
 62585  */
 60436  */
 62586 
 60437 
 62587 
 60438 
 62588 /**
 60439 /**
 62589  * Internal dependencies
 60440  * Internal dependencies
 62590  */
 60441  */
 62591 
       
 62592 
 60442 
 62593 
 60443 
 62594 
 60444 
 62595 function NavigationSearchNoResultsFound({
 60445 function NavigationSearchNoResultsFound({
 62596   search
 60446   search
 62609       children: [(0,external_wp_i18n_namespaceObject.__)('No results found.'), " "]
 60459       children: [(0,external_wp_i18n_namespaceObject.__)('No results found.'), " "]
 62610     })
 60460     })
 62611   });
 60461   });
 62612 }
 60462 }
 62613 
 60463 
 62614 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/menu/index.js
 60464 ;// ./node_modules/@wordpress/components/build-module/navigation/menu/index.js
 62615 /**
 60465 /**
 62616  * External dependencies
 60466  * External dependencies
 62617  */
 60467  */
 62618 
 60468 
 62619 
 60469 
 62623 
 60473 
 62624 
 60474 
 62625 /**
 60475 /**
 62626  * Internal dependencies
 60476  * Internal dependencies
 62627  */
 60477  */
 62628 
       
 62629 
 60478 
 62630 
 60479 
 62631 
 60480 
 62632 
 60481 
 62633 
 60482 
 62701     })
 60550     })
 62702   });
 60551   });
 62703 }
 60552 }
 62704 /* harmony default export */ const navigation_menu = (NavigationMenu);
 60553 /* harmony default export */ const navigation_menu = (NavigationMenu);
 62705 
 60554 
 62706 ;// CONCATENATED MODULE: ./node_modules/path-to-regexp/dist.es2015/index.js
 60555 ;// ./node_modules/path-to-regexp/dist.es2015/index.js
 62707 /**
 60556 /**
 62708  * Tokenize input string.
 60557  * Tokenize input string.
 62709  */
 60558  */
 62710 function lexer(str) {
 60559 function lexer(str) {
 62711     var tokens = [];
 60560     var tokens = [];
 62797  * Parse a string for the raw tokens.
 60646  * Parse a string for the raw tokens.
 62798  */
 60647  */
 62799 function dist_es2015_parse(str, options) {
 60648 function dist_es2015_parse(str, options) {
 62800     if (options === void 0) { options = {}; }
 60649     if (options === void 0) { options = {}; }
 62801     var tokens = lexer(str);
 60650     var tokens = lexer(str);
 62802     var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a;
 60651     var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a, _b = options.delimiter, delimiter = _b === void 0 ? "/#?" : _b;
 62803     var defaultPattern = "[^".concat(escapeString(options.delimiter || "/#?"), "]+?");
       
 62804     var result = [];
 60652     var result = [];
 62805     var key = 0;
 60653     var key = 0;
 62806     var i = 0;
 60654     var i = 0;
 62807     var path = "";
 60655     var path = "";
 62808     var tryConsume = function (type) {
 60656     var tryConsume = function (type) {
 62822         while ((value = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR"))) {
 60670         while ((value = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR"))) {
 62823             result += value;
 60671             result += value;
 62824         }
 60672         }
 62825         return result;
 60673         return result;
 62826     };
 60674     };
       
 60675     var isSafe = function (value) {
       
 60676         for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {
       
 60677             var char = delimiter_1[_i];
       
 60678             if (value.indexOf(char) > -1)
       
 60679                 return true;
       
 60680         }
       
 60681         return false;
       
 60682     };
       
 60683     var safePattern = function (prefix) {
       
 60684         var prev = result[result.length - 1];
       
 60685         var prevText = prefix || (prev && typeof prev === "string" ? prev : "");
       
 60686         if (prev && !prevText) {
       
 60687             throw new TypeError("Must have text between two parameters, missing text after \"".concat(prev.name, "\""));
       
 60688         }
       
 60689         if (!prevText || isSafe(prevText))
       
 60690             return "[^".concat(escapeString(delimiter), "]+?");
       
 60691         return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter), "])+?");
       
 60692     };
 62827     while (i < tokens.length) {
 60693     while (i < tokens.length) {
 62828         var char = tryConsume("CHAR");
 60694         var char = tryConsume("CHAR");
 62829         var name = tryConsume("NAME");
 60695         var name = tryConsume("NAME");
 62830         var pattern = tryConsume("PATTERN");
 60696         var pattern = tryConsume("PATTERN");
 62831         if (name || pattern) {
 60697         if (name || pattern) {
 62840             }
 60706             }
 62841             result.push({
 60707             result.push({
 62842                 name: name || key++,
 60708                 name: name || key++,
 62843                 prefix: prefix,
 60709                 prefix: prefix,
 62844                 suffix: "",
 60710                 suffix: "",
 62845                 pattern: pattern || defaultPattern,
 60711                 pattern: pattern || safePattern(prefix),
 62846                 modifier: tryConsume("MODIFIER") || "",
 60712                 modifier: tryConsume("MODIFIER") || "",
 62847             });
 60713             });
 62848             continue;
 60714             continue;
 62849         }
 60715         }
 62850         var value = char || tryConsume("ESCAPED_CHAR");
 60716         var value = char || tryConsume("ESCAPED_CHAR");
 62863             var pattern_1 = tryConsume("PATTERN") || "";
 60729             var pattern_1 = tryConsume("PATTERN") || "";
 62864             var suffix = consumeText();
 60730             var suffix = consumeText();
 62865             mustConsume("CLOSE");
 60731             mustConsume("CLOSE");
 62866             result.push({
 60732             result.push({
 62867                 name: name_1 || (pattern_1 ? key++ : ""),
 60733                 name: name_1 || (pattern_1 ? key++ : ""),
 62868                 pattern: name_1 && !pattern_1 ? defaultPattern : pattern_1,
 60734                 pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
 62869                 prefix: prefix,
 60735                 prefix: prefix,
 62870                 suffix: suffix,
 60736                 suffix: suffix,
 62871                 modifier: tryConsume("MODIFIER") || "",
 60737                 modifier: tryConsume("MODIFIER") || "",
 62872             });
 60738             });
 62873             continue;
 60739             continue;
 63056                         route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
 60922                         route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
 63057                     }
 60923                     }
 63058                 }
 60924                 }
 63059                 else {
 60925                 else {
 63060                     if (token.modifier === "+" || token.modifier === "*") {
 60926                     if (token.modifier === "+" || token.modifier === "*") {
 63061                         route += "((?:".concat(token.pattern, ")").concat(token.modifier, ")");
 60927                         throw new TypeError("Can not repeat \"".concat(token.name, "\" without a prefix and suffix"));
 63062                     }
 60928                     }
 63063                     else {
 60929                     route += "(".concat(token.pattern, ")").concat(token.modifier);
 63064                         route += "(".concat(token.pattern, ")").concat(token.modifier);
       
 63065                     }
       
 63066                 }
 60930                 }
 63067             }
 60931             }
 63068             else {
 60932             else {
 63069                 route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
 60933                 route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
 63070             }
 60934             }
 63102     if (Array.isArray(path))
 60966     if (Array.isArray(path))
 63103         return arrayToRegexp(path, keys, options);
 60967         return arrayToRegexp(path, keys, options);
 63104     return stringToRegexp(path, keys, options);
 60968     return stringToRegexp(path, keys, options);
 63105 }
 60969 }
 63106 
 60970 
 63107 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/utils/router.js
 60971 ;// ./node_modules/@wordpress/components/build-module/navigator/utils/router.js
 63108 /**
 60972 /**
 63109  * External dependencies
 60973  * External dependencies
 63110  */
 60974  */
 63111 
 60975 
 63112 
 60976 
 63148     }
 61012     }
 63149   }
 61013   }
 63150   return parentPath;
 61014   return parentPath;
 63151 }
 61015 }
 63152 
 61016 
 63153 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/context.js
 61017 ;// ./node_modules/@wordpress/components/build-module/navigator/context.js
 63154 /**
 61018 /**
 63155  * WordPress dependencies
 61019  * WordPress dependencies
 63156  */
 61020  */
 63157 
 61021 
 63158 
 61022 
 63169   removeScreen: () => {},
 61033   removeScreen: () => {},
 63170   params: {}
 61034   params: {}
 63171 };
 61035 };
 63172 const NavigatorContext = (0,external_wp_element_namespaceObject.createContext)(context_initialContextValue);
 61036 const NavigatorContext = (0,external_wp_element_namespaceObject.createContext)(context_initialContextValue);
 63173 
 61037 
 63174 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/styles.js
 61038 ;// ./node_modules/@wordpress/components/build-module/navigator/styles.js
 63175 function navigator_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 61039 function navigator_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 63176 /**
 61040 /**
 63177  * External dependencies
 61041  * External dependencies
 63178  */
 61042  */
 63179 
 61043 
 63180 const navigatorProviderWrapper =  true ? {
 61044 const navigatorWrapper =  true ? {
 63181   name: "xpkswc",
 61045   name: "1br0vvk",
 63182   styles: "overflow-x:hidden;contain:content"
 61046   styles: "position:relative;overflow-x:clip;contain:layout;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;align-items:start"
 63183 } : 0;
 61047 } : 0;
 63184 const fadeInFromRight = emotion_react_browser_esm_keyframes({
 61048 const fadeIn = emotion_react_browser_esm_keyframes({
 63185   '0%': {
 61049   from: {
 63186     opacity: 0,
 61050     opacity: 0
 63187     transform: `translateX( 50px )`
 61051   }
       
 61052 });
       
 61053 const fadeOut = emotion_react_browser_esm_keyframes({
       
 61054   to: {
       
 61055     opacity: 0
       
 61056   }
       
 61057 });
       
 61058 const slideFromRight = emotion_react_browser_esm_keyframes({
       
 61059   from: {
       
 61060     transform: 'translateX(100px)'
       
 61061   }
       
 61062 });
       
 61063 const slideToLeft = emotion_react_browser_esm_keyframes({
       
 61064   to: {
       
 61065     transform: 'translateX(-80px)'
       
 61066   }
       
 61067 });
       
 61068 const slideFromLeft = emotion_react_browser_esm_keyframes({
       
 61069   from: {
       
 61070     transform: 'translateX(-100px)'
       
 61071   }
       
 61072 });
       
 61073 const slideToRight = emotion_react_browser_esm_keyframes({
       
 61074   to: {
       
 61075     transform: 'translateX(80px)'
       
 61076   }
       
 61077 });
       
 61078 const FADE = {
       
 61079   DURATION: 70,
       
 61080   EASING: 'linear',
       
 61081   DELAY: {
       
 61082     IN: 70,
       
 61083     OUT: 40
       
 61084   }
       
 61085 };
       
 61086 const SLIDE = {
       
 61087   DURATION: 300,
       
 61088   EASING: 'cubic-bezier(0.33, 0, 0, 1)'
       
 61089 };
       
 61090 const TOTAL_ANIMATION_DURATION = {
       
 61091   IN: Math.max(FADE.DURATION + FADE.DELAY.IN, SLIDE.DURATION),
       
 61092   OUT: Math.max(FADE.DURATION + FADE.DELAY.OUT, SLIDE.DURATION)
       
 61093 };
       
 61094 const ANIMATION_END_NAMES = {
       
 61095   end: {
       
 61096     in: slideFromRight.name,
       
 61097     out: slideToLeft.name
 63188   },
 61098   },
 63189   '100%': {
 61099   start: {
 63190     opacity: 1,
 61100     in: slideFromLeft.name,
 63191     transform: 'none'
 61101     out: slideToRight.name
 63192   }
 61102   }
 63193 });
 61103 };
 63194 const fadeInFromLeft = emotion_react_browser_esm_keyframes({
 61104 const ANIMATION = {
 63195   '0%': {
 61105   end: {
 63196     opacity: 0,
 61106     in: /*#__PURE__*/emotion_react_browser_esm_css(FADE.DURATION, "ms ", FADE.EASING, " ", FADE.DELAY.IN, "ms both ", fadeIn, ",", SLIDE.DURATION, "ms ", SLIDE.EASING, " both ", slideFromRight, ";" + ( true ? "" : 0),  true ? "" : 0),
 63197     transform: `translateX( -50px )`
 61107     out: /*#__PURE__*/emotion_react_browser_esm_css(FADE.DURATION, "ms ", FADE.EASING, " ", FADE.DELAY.OUT, "ms both ", fadeOut, ",", SLIDE.DURATION, "ms ", SLIDE.EASING, " both ", slideToLeft, ";" + ( true ? "" : 0),  true ? "" : 0)
 63198   },
 61108   },
 63199   '100%': {
 61109   start: {
 63200     opacity: 1,
 61110     in: /*#__PURE__*/emotion_react_browser_esm_css(FADE.DURATION, "ms ", FADE.EASING, " ", FADE.DELAY.IN, "ms both ", fadeIn, ",", SLIDE.DURATION, "ms ", SLIDE.EASING, " both ", slideFromLeft, ";" + ( true ? "" : 0),  true ? "" : 0),
 63201     transform: 'none'
 61111     out: /*#__PURE__*/emotion_react_browser_esm_css(FADE.DURATION, "ms ", FADE.EASING, " ", FADE.DELAY.OUT, "ms both ", fadeOut, ",", SLIDE.DURATION, "ms ", SLIDE.EASING, " both ", slideToRight, ";" + ( true ? "" : 0),  true ? "" : 0)
 63202   }
 61112   }
 63203 });
       
 63204 const navigatorScreenAnimation = ({
       
 63205   isInitial,
       
 63206   isBack,
       
 63207   isRTL
       
 63208 }) => {
       
 63209   if (isInitial && !isBack) {
       
 63210     return;
       
 63211   }
       
 63212   const animationName = isRTL && isBack || !isRTL && !isBack ? fadeInFromRight : fadeInFromLeft;
       
 63213   return /*#__PURE__*/emotion_react_browser_esm_css("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:", animationName, ";@media ( prefers-reduced-motion ){animation-duration:0s;}" + ( true ? "" : 0),  true ? "" : 0);
       
 63214 };
 61113 };
 63215 const navigatorScreen = props => /*#__PURE__*/emotion_react_browser_esm_css("overflow-x:auto;max-height:100%;", navigatorScreenAnimation(props), ";" + ( true ? "" : 0),  true ? "" : 0);
 61114 const navigatorScreenAnimation = /*#__PURE__*/emotion_react_browser_esm_css("z-index:1;&[data-animation-type='out']{z-index:0;}@media not ( prefers-reduced-motion ){&:not( [data-skip-animation] ){", ['start', 'end'].map(direction => ['in', 'out'].map(type => /*#__PURE__*/emotion_react_browser_esm_css("&[data-animation-direction='", direction, "'][data-animation-type='", type, "']{animation:", ANIMATION[direction][type], ";}" + ( true ? "" : 0),  true ? "" : 0))), ";}}" + ( true ? "" : 0),  true ? "" : 0);
 63216 
 61115 const navigatorScreen =  true ? {
 63217 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-provider/component.js
 61116   name: "14di7zd",
       
 61117   styles: "overflow-x:auto;max-height:100%;box-sizing:border-box;position:relative;grid-column:1/-1;grid-row:1/-1"
       
 61118 } : 0;
       
 61119 
       
 61120 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator/component.js
 63218 /**
 61121 /**
 63219  * External dependencies
 61122  * External dependencies
 63220  */
 61123  */
 63221 
 61124 
 63222 /**
 61125 /**
 63223  * WordPress dependencies
 61126  * WordPress dependencies
 63224  */
 61127  */
 63225 
 61128 
 63226 
 61129 
 63227 
 61130 
       
 61131 
 63228 /**
 61132 /**
 63229  * Internal dependencies
 61133  * Internal dependencies
 63230  */
 61134  */
 63231 
 61135 
 63232 
 61136 
 63234 
 61138 
 63235 
 61139 
 63236 
 61140 
 63237 
 61141 
 63238 
 61142 
 63239 const MAX_HISTORY_LENGTH = 50;
 61143 
 63240 function addScreen({
 61144 function addScreen({
 63241   screens
 61145   screens
 63242 }, screen) {
 61146 }, screen) {
       
 61147   if (screens.some(s => s.path === screen.path)) {
       
 61148      true ? external_wp_warning_default()(`Navigator: a screen with path ${screen.path} already exists.
       
 61149 The screen with id ${screen.id} will not be added.`) : 0;
       
 61150     return screens;
       
 61151   }
 63243   return [...screens, screen];
 61152   return [...screens, screen];
 63244 }
 61153 }
 63245 function removeScreen({
 61154 function removeScreen({
 63246   screens
 61155   screens
 63247 }, screen) {
 61156 }, screen) {
 63248   return screens.filter(s => s.id !== screen.id);
 61157   return screens.filter(s => s.id !== screen.id);
 63249 }
 61158 }
 63250 function goBack({
       
 63251   locationHistory
       
 63252 }) {
       
 63253   if (locationHistory.length <= 1) {
       
 63254     return locationHistory;
       
 63255   }
       
 63256   return [...locationHistory.slice(0, -2), {
       
 63257     ...locationHistory[locationHistory.length - 2],
       
 63258     isBack: true,
       
 63259     hasRestoredFocus: false
       
 63260   }];
       
 63261 }
       
 63262 function goTo(state, path, options = {}) {
 61159 function goTo(state, path, options = {}) {
       
 61160   var _focusSelectorsCopy2;
 63263   const {
 61161   const {
 63264     locationHistory
 61162     focusSelectors
 63265   } = state;
 61163   } = state;
       
 61164   const currentLocation = {
       
 61165     ...state.currentLocation
       
 61166   };
 63266   const {
 61167   const {
 63267     focusTargetSelector,
 61168     // Default assignments
 63268     isBack = false,
 61169     isBack = false,
 63269     skipFocus = false,
 61170     skipFocus = false,
 63270     replace = false,
 61171     // Extract to avoid forwarding
       
 61172     replace,
       
 61173     focusTargetSelector,
       
 61174     // Rest
 63271     ...restOptions
 61175     ...restOptions
 63272   } = options;
 61176   } = options;
 63273   const isNavigatingToSamePath = locationHistory.length > 0 && locationHistory[locationHistory.length - 1].path === path;
 61177   if (currentLocation.path === path) {
 63274   if (isNavigatingToSamePath) {
 61178     return {
 63275     return locationHistory;
 61179       currentLocation,
 63276   }
 61180       focusSelectors
 63277   const isNavigatingToPreviousPath = isBack && locationHistory.length > 1 && locationHistory[locationHistory.length - 2].path === path;
 61181     };
 63278   if (isNavigatingToPreviousPath) {
 61182   }
 63279     return goBack(state);
 61183   let focusSelectorsCopy;
 63280   }
 61184   function getFocusSelectorsCopy() {
 63281   const newLocation = {
 61185     var _focusSelectorsCopy;
 63282     ...restOptions,
 61186     focusSelectorsCopy = (_focusSelectorsCopy = focusSelectorsCopy) !== null && _focusSelectorsCopy !== void 0 ? _focusSelectorsCopy : new Map(state.focusSelectors);
 63283     path,
 61187     return focusSelectorsCopy;
 63284     isBack,
 61188   }
 63285     hasRestoredFocus: false,
 61189 
 63286     skipFocus
 61190   // Set a focus selector that will be used when navigating
       
 61191   // back to the current location.
       
 61192   if (focusTargetSelector && currentLocation.path) {
       
 61193     getFocusSelectorsCopy().set(currentLocation.path, focusTargetSelector);
       
 61194   }
       
 61195 
       
 61196   // Get the focus selector for the new location.
       
 61197   let currentFocusSelector;
       
 61198   if (focusSelectors.get(path)) {
       
 61199     if (isBack) {
       
 61200       // Use the found focus selector only when navigating back.
       
 61201       currentFocusSelector = focusSelectors.get(path);
       
 61202     }
       
 61203     // Make a copy of the focusSelectors map to remove the focus selector
       
 61204     // only if necessary (ie. a focus selector was found).
       
 61205     getFocusSelectorsCopy().delete(path);
       
 61206   }
       
 61207   return {
       
 61208     currentLocation: {
       
 61209       ...restOptions,
       
 61210       isInitial: false,
       
 61211       path,
       
 61212       isBack,
       
 61213       hasRestoredFocus: false,
       
 61214       focusTargetSelector: currentFocusSelector,
       
 61215       skipFocus
       
 61216     },
       
 61217     focusSelectors: (_focusSelectorsCopy2 = focusSelectorsCopy) !== null && _focusSelectorsCopy2 !== void 0 ? _focusSelectorsCopy2 : focusSelectors
 63287   };
 61218   };
 63288   if (locationHistory.length === 0) {
       
 63289     return replace ? [] : [newLocation];
       
 63290   }
       
 63291   const newLocationHistory = locationHistory.slice(locationHistory.length > MAX_HISTORY_LENGTH - 1 ? 1 : 0, -1);
       
 63292   if (!replace) {
       
 63293     newLocationHistory.push(
       
 63294     // Assign `focusTargetSelector` to the previous location in history
       
 63295     // (the one we just navigated from).
       
 63296     {
       
 63297       ...locationHistory[locationHistory.length - 1],
       
 63298       focusTargetSelector
       
 63299     });
       
 63300   }
       
 63301   newLocationHistory.push(newLocation);
       
 63302   return newLocationHistory;
       
 63303 }
 61219 }
 63304 function goToParent(state, options = {}) {
 61220 function goToParent(state, options = {}) {
 63305   const {
 61221   const {
 63306     locationHistory,
 61222     screens,
 63307     screens
 61223     focusSelectors
 63308   } = state;
 61224   } = state;
 63309   const currentPath = locationHistory[locationHistory.length - 1].path;
 61225   const currentLocation = {
       
 61226     ...state.currentLocation
       
 61227   };
       
 61228   const currentPath = currentLocation.path;
 63310   if (currentPath === undefined) {
 61229   if (currentPath === undefined) {
 63311     return locationHistory;
 61230     return {
       
 61231       currentLocation,
       
 61232       focusSelectors
       
 61233     };
 63312   }
 61234   }
 63313   const parentPath = findParent(currentPath, screens);
 61235   const parentPath = findParent(currentPath, screens);
 63314   if (parentPath === undefined) {
 61236   if (parentPath === undefined) {
 63315     return locationHistory;
 61237     return {
       
 61238       currentLocation,
       
 61239       focusSelectors
       
 61240     };
 63316   }
 61241   }
 63317   return goTo(state, parentPath, {
 61242   return goTo(state, parentPath, {
 63318     ...options,
 61243     ...options,
 63319     isBack: true
 61244     isBack: true
 63320   });
 61245   });
 63321 }
 61246 }
 63322 function routerReducer(state, action) {
 61247 function routerReducer(state, action) {
 63323   let {
 61248   let {
 63324     screens,
 61249     screens,
 63325     locationHistory,
 61250     currentLocation,
 63326     matchedPath
 61251     matchedPath,
       
 61252     focusSelectors,
       
 61253     ...restState
 63327   } = state;
 61254   } = state;
 63328   switch (action.type) {
 61255   switch (action.type) {
 63329     case 'add':
 61256     case 'add':
 63330       screens = addScreen(state, action.screen);
 61257       screens = addScreen(state, action.screen);
 63331       break;
 61258       break;
 63332     case 'remove':
 61259     case 'remove':
 63333       screens = removeScreen(state, action.screen);
 61260       screens = removeScreen(state, action.screen);
 63334       break;
 61261       break;
 63335     case 'goback':
       
 63336       locationHistory = goBack(state);
       
 63337       break;
       
 63338     case 'goto':
 61262     case 'goto':
 63339       locationHistory = goTo(state, action.path, action.options);
 61263       ({
       
 61264         currentLocation,
       
 61265         focusSelectors
       
 61266       } = goTo(state, action.path, action.options));
 63340       break;
 61267       break;
 63341     case 'gotoparent':
 61268     case 'gotoparent':
 63342       locationHistory = goToParent(state, action.options);
 61269       ({
       
 61270         currentLocation,
       
 61271         focusSelectors
       
 61272       } = goToParent(state, action.options));
 63343       break;
 61273       break;
 63344   }
 61274   }
 63345 
 61275 
 63346   // Return early in case there is no change
 61276   // Return early in case there is no change
 63347   if (screens === state.screens && locationHistory === state.locationHistory) {
 61277   if (screens === state.screens && currentLocation === state.currentLocation) {
 63348     return state;
 61278     return state;
 63349   }
 61279   }
 63350 
 61280 
 63351   // Compute the matchedPath
 61281   // Compute the matchedPath
 63352   const currentPath = locationHistory.length > 0 ? locationHistory[locationHistory.length - 1].path : undefined;
 61282   const currentPath = currentLocation.path;
 63353   matchedPath = currentPath !== undefined ? patternMatch(currentPath, screens) : undefined;
 61283   matchedPath = currentPath !== undefined ? patternMatch(currentPath, screens) : undefined;
 63354 
 61284 
 63355   // If the new match is the same as the previous match,
 61285   // If the new match is the same as the previous match,
 63356   // return the previous one to keep immutability.
 61286   // return the previous one to keep immutability.
 63357   if (matchedPath && state.matchedPath && matchedPath.id === state.matchedPath.id && external_wp_isShallowEqual_default()(matchedPath.params, state.matchedPath.params)) {
 61287   if (matchedPath && state.matchedPath && matchedPath.id === state.matchedPath.id && external_wp_isShallowEqual_default()(matchedPath.params, state.matchedPath.params)) {
 63358     matchedPath = state.matchedPath;
 61288     matchedPath = state.matchedPath;
 63359   }
 61289   }
 63360   return {
 61290   return {
       
 61291     ...restState,
 63361     screens,
 61292     screens,
 63362     locationHistory,
 61293     currentLocation,
 63363     matchedPath
 61294     matchedPath,
       
 61295     focusSelectors
 63364   };
 61296   };
 63365 }
 61297 }
 63366 function UnconnectedNavigatorProvider(props, forwardedRef) {
 61298 function UnconnectedNavigator(props, forwardedRef) {
 63367   const {
 61299   const {
 63368     initialPath,
 61300     initialPath: initialPathProp,
 63369     children,
 61301     children,
 63370     className,
 61302     className,
 63371     ...otherProps
 61303     ...otherProps
 63372   } = useContextSystem(props, 'NavigatorProvider');
 61304   } = useContextSystem(props, 'Navigator');
 63373   const [routerState, dispatch] = (0,external_wp_element_namespaceObject.useReducer)(routerReducer, initialPath, path => ({
 61305   const [routerState, dispatch] = (0,external_wp_element_namespaceObject.useReducer)(routerReducer, initialPathProp, path => ({
 63374     screens: [],
 61306     screens: [],
 63375     locationHistory: [{
 61307     currentLocation: {
 63376       path
 61308       path,
 63377     }],
 61309       isInitial: true
 63378     matchedPath: undefined
 61310     },
       
 61311     matchedPath: undefined,
       
 61312     focusSelectors: new Map(),
       
 61313     initialPath: initialPathProp
 63379   }));
 61314   }));
 63380 
 61315 
 63381   // The methods are constant forever, create stable references to them.
 61316   // The methods are constant forever, create stable references to them.
 63382   const methods = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 61317   const methods = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 63383     goBack: () => dispatch({
 61318     // Note: calling goBack calls `goToParent` internally, as it was established
 63384       type: 'goback'
 61319     // that `goBack` should behave like `goToParent`, and `goToParent` should
       
 61320     // be marked as deprecated.
       
 61321     goBack: options => dispatch({
       
 61322       type: 'gotoparent',
       
 61323       options
 63385     }),
 61324     }),
 63386     goTo: (path, options) => dispatch({
 61325     goTo: (path, options) => dispatch({
 63387       type: 'goto',
 61326       type: 'goto',
 63388       path,
 61327       path,
 63389       options
 61328       options
 63390     }),
 61329     }),
 63391     goToParent: options => dispatch({
 61330     goToParent: options => {
 63392       type: 'gotoparent',
 61331       external_wp_deprecated_default()(`wp.components.useNavigator().goToParent`, {
 63393       options
 61332         since: '6.7',
 63394     }),
 61333         alternative: 'wp.components.useNavigator().goBack'
       
 61334       });
       
 61335       dispatch({
       
 61336         type: 'gotoparent',
       
 61337         options
       
 61338       });
       
 61339     },
 63395     addScreen: screen => dispatch({
 61340     addScreen: screen => dispatch({
 63396       type: 'add',
 61341       type: 'add',
 63397       screen
 61342       screen
 63398     }),
 61343     }),
 63399     removeScreen: screen => dispatch({
 61344     removeScreen: screen => dispatch({
 63400       type: 'remove',
 61345       type: 'remove',
 63401       screen
 61346       screen
 63402     })
 61347     })
 63403   }), []);
 61348   }), []);
 63404   const {
 61349   const {
 63405     locationHistory,
 61350     currentLocation,
 63406     matchedPath
 61351     matchedPath
 63407   } = routerState;
 61352   } = routerState;
 63408   const navigatorContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => {
 61353   const navigatorContextValue = (0,external_wp_element_namespaceObject.useMemo)(() => {
 63409     var _matchedPath$params;
 61354     var _matchedPath$params;
 63410     return {
 61355     return {
 63411       location: {
 61356       location: currentLocation,
 63412         ...locationHistory[locationHistory.length - 1],
       
 63413         isInitial: locationHistory.length === 1
       
 63414       },
       
 63415       params: (_matchedPath$params = matchedPath?.params) !== null && _matchedPath$params !== void 0 ? _matchedPath$params : {},
 61357       params: (_matchedPath$params = matchedPath?.params) !== null && _matchedPath$params !== void 0 ? _matchedPath$params : {},
 63416       match: matchedPath?.id,
 61358       match: matchedPath?.id,
 63417       ...methods
 61359       ...methods
 63418     };
 61360     };
 63419   }, [locationHistory, matchedPath, methods]);
 61361   }, [currentLocation, matchedPath, methods]);
 63420   const cx = useCx();
 61362   const cx = useCx();
 63421   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx(navigatorProviderWrapper, className), [className, cx]);
 61363   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx(navigatorWrapper, className), [className, cx]);
 63422   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 61364   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 63423     ref: forwardedRef,
 61365     ref: forwardedRef,
 63424     className: classes,
 61366     className: classes,
 63425     ...otherProps,
 61367     ...otherProps,
 63426     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigatorContext.Provider, {
 61368     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigatorContext.Provider, {
 63427       value: navigatorContextValue,
 61369       value: navigatorContextValue,
 63428       children: children
 61370       children: children
 63429     })
 61371     })
 63430   });
 61372   });
 63431 }
 61373 }
 63432 
 61374 const component_Navigator = contextConnect(UnconnectedNavigator, 'Navigator');
 63433 /**
 61375 
 63434  * The `NavigatorProvider` component allows rendering nested views/panels/menus
 61376 ;// external ["wp","escapeHtml"]
 63435  * (via the `NavigatorScreen` component and navigate between these different
       
 63436  * view (via the `NavigatorButton` and `NavigatorBackButton` components or the
       
 63437  * `useNavigator` hook).
       
 63438  *
       
 63439  * ```jsx
       
 63440  * import {
       
 63441  *   __experimentalNavigatorProvider as NavigatorProvider,
       
 63442  *   __experimentalNavigatorScreen as NavigatorScreen,
       
 63443  *   __experimentalNavigatorButton as NavigatorButton,
       
 63444  *   __experimentalNavigatorBackButton as NavigatorBackButton,
       
 63445  * } from '@wordpress/components';
       
 63446  *
       
 63447  * const MyNavigation = () => (
       
 63448  *   <NavigatorProvider initialPath="/">
       
 63449  *     <NavigatorScreen path="/">
       
 63450  *       <p>This is the home screen.</p>
       
 63451  *        <NavigatorButton path="/child">
       
 63452  *          Navigate to child screen.
       
 63453  *       </NavigatorButton>
       
 63454  *     </NavigatorScreen>
       
 63455  *
       
 63456  *     <NavigatorScreen path="/child">
       
 63457  *       <p>This is the child screen.</p>
       
 63458  *       <NavigatorBackButton>
       
 63459  *         Go back
       
 63460  *       </NavigatorBackButton>
       
 63461  *     </NavigatorScreen>
       
 63462  *   </NavigatorProvider>
       
 63463  * );
       
 63464  * ```
       
 63465  */
       
 63466 const NavigatorProvider = contextConnect(UnconnectedNavigatorProvider, 'NavigatorProvider');
       
 63467 /* harmony default export */ const navigator_provider_component = (NavigatorProvider);
       
 63468 
       
 63469 ;// CONCATENATED MODULE: external ["wp","escapeHtml"]
       
 63470 const external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"];
 61377 const external_wp_escapeHtml_namespaceObject = window["wp"]["escapeHtml"];
 63471 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-screen/component.js
 61378 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator-screen/use-screen-animate-presence.js
       
 61379 /**
       
 61380  * WordPress dependencies
       
 61381  */
       
 61382 
       
 61383 
       
 61384 
       
 61385 
       
 61386 /**
       
 61387  * Internal dependencies
       
 61388  */
       
 61389 
       
 61390 
       
 61391 // Possible values:
       
 61392 // - 'INITIAL': the initial state
       
 61393 // - 'ANIMATING_IN': start enter animation
       
 61394 // - 'IN': enter animation has ended
       
 61395 // - 'ANIMATING_OUT': start exit animation
       
 61396 // - 'OUT': the exit animation has ended
       
 61397 
       
 61398 // Allow an extra 20% of the total animation duration to account for potential
       
 61399 // event loop delays.
       
 61400 const ANIMATION_TIMEOUT_MARGIN = 1.2;
       
 61401 const isEnterAnimation = (animationDirection, animationStatus, animationName) => animationStatus === 'ANIMATING_IN' && animationName === ANIMATION_END_NAMES[animationDirection].in;
       
 61402 const isExitAnimation = (animationDirection, animationStatus, animationName) => animationStatus === 'ANIMATING_OUT' && animationName === ANIMATION_END_NAMES[animationDirection].out;
       
 61403 function useScreenAnimatePresence({
       
 61404   isMatch,
       
 61405   skipAnimation,
       
 61406   isBack,
       
 61407   onAnimationEnd
       
 61408 }) {
       
 61409   const isRTL = (0,external_wp_i18n_namespaceObject.isRTL)();
       
 61410   const prefersReducedMotion = (0,external_wp_compose_namespaceObject.useReducedMotion)();
       
 61411   const [animationStatus, setAnimationStatus] = (0,external_wp_element_namespaceObject.useState)('INITIAL');
       
 61412 
       
 61413   // Start enter and exit animations when the screen is selected or deselected.
       
 61414   // The animation status is set to `IN` or `OUT` immediately if the animation
       
 61415   // should be skipped.
       
 61416   const becameSelected = animationStatus !== 'ANIMATING_IN' && animationStatus !== 'IN' && isMatch;
       
 61417   const becameUnselected = animationStatus !== 'ANIMATING_OUT' && animationStatus !== 'OUT' && !isMatch;
       
 61418   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 61419     if (becameSelected) {
       
 61420       setAnimationStatus(skipAnimation || prefersReducedMotion ? 'IN' : 'ANIMATING_IN');
       
 61421     } else if (becameUnselected) {
       
 61422       setAnimationStatus(skipAnimation || prefersReducedMotion ? 'OUT' : 'ANIMATING_OUT');
       
 61423     }
       
 61424   }, [becameSelected, becameUnselected, skipAnimation, prefersReducedMotion]);
       
 61425 
       
 61426   // Animation attributes (derived state).
       
 61427   const animationDirection = isRTL && isBack || !isRTL && !isBack ? 'end' : 'start';
       
 61428   const isAnimatingIn = animationStatus === 'ANIMATING_IN';
       
 61429   const isAnimatingOut = animationStatus === 'ANIMATING_OUT';
       
 61430   let animationType;
       
 61431   if (isAnimatingIn) {
       
 61432     animationType = 'in';
       
 61433   } else if (isAnimatingOut) {
       
 61434     animationType = 'out';
       
 61435   }
       
 61436   const onScreenAnimationEnd = (0,external_wp_element_namespaceObject.useCallback)(e => {
       
 61437     onAnimationEnd?.(e);
       
 61438     if (isExitAnimation(animationDirection, animationStatus, e.animationName)) {
       
 61439       // When the exit animation ends on an unselected screen, set the
       
 61440       // status to 'OUT' to remove the screen contents from the DOM.
       
 61441       setAnimationStatus('OUT');
       
 61442     } else if (isEnterAnimation(animationDirection, animationStatus, e.animationName)) {
       
 61443       // When the enter animation ends on a selected screen, set the
       
 61444       // status to 'IN' to ensure the screen is rendered in the DOM.
       
 61445       setAnimationStatus('IN');
       
 61446     }
       
 61447   }, [onAnimationEnd, animationStatus, animationDirection]);
       
 61448 
       
 61449   // Fallback timeout to ensure that the logic is applied even if the
       
 61450   // `animationend` event is not triggered.
       
 61451   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
 61452     let animationTimeout;
       
 61453     if (isAnimatingOut) {
       
 61454       animationTimeout = window.setTimeout(() => {
       
 61455         setAnimationStatus('OUT');
       
 61456         animationTimeout = undefined;
       
 61457       }, TOTAL_ANIMATION_DURATION.OUT * ANIMATION_TIMEOUT_MARGIN);
       
 61458     } else if (isAnimatingIn) {
       
 61459       animationTimeout = window.setTimeout(() => {
       
 61460         setAnimationStatus('IN');
       
 61461         animationTimeout = undefined;
       
 61462       }, TOTAL_ANIMATION_DURATION.IN * ANIMATION_TIMEOUT_MARGIN);
       
 61463     }
       
 61464     return () => {
       
 61465       if (animationTimeout) {
       
 61466         window.clearTimeout(animationTimeout);
       
 61467         animationTimeout = undefined;
       
 61468       }
       
 61469     };
       
 61470   }, [isAnimatingOut, isAnimatingIn]);
       
 61471   return {
       
 61472     animationStyles: navigatorScreenAnimation,
       
 61473     // Render the screen's contents in the DOM not only when the screen is
       
 61474     // selected, but also while it is animating out.
       
 61475     shouldRenderScreen: isMatch || animationStatus === 'IN' || animationStatus === 'ANIMATING_OUT',
       
 61476     screenProps: {
       
 61477       onAnimationEnd: onScreenAnimationEnd,
       
 61478       'data-animation-direction': animationDirection,
       
 61479       'data-animation-type': animationType,
       
 61480       'data-skip-animation': skipAnimation || undefined
       
 61481     }
       
 61482   };
       
 61483 }
       
 61484 
       
 61485 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator-screen/component.js
 63472 /**
 61486 /**
 63473  * External dependencies
 61487  * External dependencies
 63474  */
 61488  */
 63475 
 61489 
 63476 /**
 61490 /**
 63490 
 61504 
 63491 
 61505 
 63492 
 61506 
 63493 
 61507 
 63494 
 61508 
       
 61509 
 63495 function UnconnectedNavigatorScreen(props, forwardedRef) {
 61510 function UnconnectedNavigatorScreen(props, forwardedRef) {
       
 61511   if (!/^\//.test(props.path)) {
       
 61512      true ? external_wp_warning_default()('wp.components.Navigator.Screen: the `path` should follow a URL-like scheme; it should start with and be separated by the `/` character.') : 0;
       
 61513   }
 63496   const screenId = (0,external_wp_element_namespaceObject.useId)();
 61514   const screenId = (0,external_wp_element_namespaceObject.useId)();
 63497   const {
 61515   const {
 63498     children,
 61516     children,
 63499     className,
 61517     className,
 63500     path,
 61518     path,
       
 61519     onAnimationEnd: onAnimationEndProp,
 63501     ...otherProps
 61520     ...otherProps
 63502   } = useContextSystem(props, 'NavigatorScreen');
 61521   } = useContextSystem(props, 'Navigator.Screen');
 63503   const {
 61522   const {
 63504     location,
 61523     location,
 63505     match,
 61524     match,
 63506     addScreen,
 61525     addScreen,
 63507     removeScreen
 61526     removeScreen
 63508   } = (0,external_wp_element_namespaceObject.useContext)(NavigatorContext);
 61527   } = (0,external_wp_element_namespaceObject.useContext)(NavigatorContext);
       
 61528   const {
       
 61529     isInitial,
       
 61530     isBack,
       
 61531     focusTargetSelector,
       
 61532     skipFocus
       
 61533   } = location;
 63509   const isMatch = match === screenId;
 61534   const isMatch = match === screenId;
 63510   const wrapperRef = (0,external_wp_element_namespaceObject.useRef)(null);
 61535   const wrapperRef = (0,external_wp_element_namespaceObject.useRef)(null);
       
 61536   const skipAnimationAndFocusRestoration = !!isInitial && !isBack;
       
 61537 
       
 61538   // Register / unregister screen with the navigator context.
 63511   (0,external_wp_element_namespaceObject.useEffect)(() => {
 61539   (0,external_wp_element_namespaceObject.useEffect)(() => {
 63512     const screen = {
 61540     const screen = {
 63513       id: screenId,
 61541       id: screenId,
 63514       path: (0,external_wp_escapeHtml_namespaceObject.escapeAttribute)(path)
 61542       path: (0,external_wp_escapeHtml_namespaceObject.escapeAttribute)(path)
 63515     };
 61543     };
 63516     addScreen(screen);
 61544     addScreen(screen);
 63517     return () => removeScreen(screen);
 61545     return () => removeScreen(screen);
 63518   }, [screenId, path, addScreen, removeScreen]);
 61546   }, [screenId, path, addScreen, removeScreen]);
 63519   const isRTL = (0,external_wp_i18n_namespaceObject.isRTL)();
 61547 
       
 61548   // Animation.
 63520   const {
 61549   const {
 63521     isInitial,
 61550     animationStyles,
 63522     isBack
 61551     shouldRenderScreen,
 63523   } = location;
 61552     screenProps
       
 61553   } = useScreenAnimatePresence({
       
 61554     isMatch,
       
 61555     isBack,
       
 61556     onAnimationEnd: onAnimationEndProp,
       
 61557     skipAnimation: skipAnimationAndFocusRestoration
       
 61558   });
 63524   const cx = useCx();
 61559   const cx = useCx();
 63525   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx(navigatorScreen({
 61560   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => cx(navigatorScreen, animationStyles, className), [className, cx, animationStyles]);
 63526     isInitial,
 61561 
 63527     isBack,
 61562   // Focus restoration
 63528     isRTL
       
 63529   }), className), [className, cx, isInitial, isBack, isRTL]);
       
 63530   const locationRef = (0,external_wp_element_namespaceObject.useRef)(location);
 61563   const locationRef = (0,external_wp_element_namespaceObject.useRef)(location);
 63531   (0,external_wp_element_namespaceObject.useEffect)(() => {
 61564   (0,external_wp_element_namespaceObject.useEffect)(() => {
 63532     locationRef.current = location;
 61565     locationRef.current = location;
 63533   }, [location]);
 61566   }, [location]);
 63534 
       
 63535   // Focus restoration
       
 63536   const isInitialLocation = location.isInitial && !location.isBack;
       
 63537   (0,external_wp_element_namespaceObject.useEffect)(() => {
 61567   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
 61568     const wrapperEl = wrapperRef.current;
 63538     // Only attempt to restore focus:
 61569     // Only attempt to restore focus:
 63539     // - if the current location is not the initial one (to avoid moving focus on page load)
 61570     // - if the current location is not the initial one (to avoid moving focus on page load)
 63540     // - when the screen becomes visible
 61571     // - when the screen becomes visible
 63541     // - if the wrapper ref has been assigned
 61572     // - if the wrapper ref has been assigned
 63542     // - if focus hasn't already been restored for the current location
 61573     // - if focus hasn't already been restored for the current location
 63543     // - if the `skipFocus` option is not set to `true`. This is useful when we trigger the navigation outside of NavigatorScreen.
 61574     // - if the `skipFocus` option is not set to `true`. This is useful when we trigger the navigation outside of NavigatorScreen.
 63544     if (isInitialLocation || !isMatch || !wrapperRef.current || locationRef.current.hasRestoredFocus || location.skipFocus) {
 61575     if (skipAnimationAndFocusRestoration || !isMatch || !wrapperEl || locationRef.current.hasRestoredFocus || skipFocus) {
 63545       return;
 61576       return;
 63546     }
 61577     }
 63547     const activeElement = wrapperRef.current.ownerDocument.activeElement;
 61578     const activeElement = wrapperEl.ownerDocument.activeElement;
 63548 
 61579 
 63549     // If an element is already focused within the wrapper do not focus the
 61580     // If an element is already focused within the wrapper do not focus the
 63550     // element. This prevents inputs or buttons from losing focus unnecessarily.
 61581     // element. This prevents inputs or buttons from losing focus unnecessarily.
 63551     if (wrapperRef.current.contains(activeElement)) {
 61582     if (wrapperEl.contains(activeElement)) {
 63552       return;
 61583       return;
 63553     }
 61584     }
 63554     let elementToFocus = null;
 61585     let elementToFocus = null;
 63555 
 61586 
 63556     // When navigating back, if a selector is provided, use it to look for the
 61587     // When navigating back, if a selector is provided, use it to look for the
 63557     // target element (assumed to be a node inside the current NavigatorScreen)
 61588     // target element (assumed to be a node inside the current NavigatorScreen)
 63558     if (location.isBack && location.focusTargetSelector) {
 61589     if (isBack && focusTargetSelector) {
 63559       elementToFocus = wrapperRef.current.querySelector(location.focusTargetSelector);
 61590       elementToFocus = wrapperEl.querySelector(focusTargetSelector);
 63560     }
 61591     }
 63561 
 61592 
 63562     // If the previous query didn't run or find any element to focus, fallback
 61593     // If the previous query didn't run or find any element to focus, fallback
 63563     // to the first tabbable element in the screen (or the screen itself).
 61594     // to the first tabbable element in the screen (or the screen itself).
 63564     if (!elementToFocus) {
 61595     if (!elementToFocus) {
 63565       const [firstTabbable] = external_wp_dom_namespaceObject.focus.tabbable.find(wrapperRef.current);
 61596       const [firstTabbable] = external_wp_dom_namespaceObject.focus.tabbable.find(wrapperEl);
 63566       elementToFocus = firstTabbable !== null && firstTabbable !== void 0 ? firstTabbable : wrapperRef.current;
 61597       elementToFocus = firstTabbable !== null && firstTabbable !== void 0 ? firstTabbable : wrapperEl;
 63567     }
 61598     }
 63568     locationRef.current.hasRestoredFocus = true;
 61599     locationRef.current.hasRestoredFocus = true;
 63569     elementToFocus.focus();
 61600     elementToFocus.focus();
 63570   }, [isInitialLocation, isMatch, location.isBack, location.focusTargetSelector, location.skipFocus]);
 61601   }, [skipAnimationAndFocusRestoration, isMatch, isBack, focusTargetSelector, skipFocus]);
 63571   const mergedWrapperRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([forwardedRef, wrapperRef]);
 61602   const mergedWrapperRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([forwardedRef, wrapperRef]);
 63572   return isMatch ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 61603   return shouldRenderScreen ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 63573     ref: mergedWrapperRef,
 61604     ref: mergedWrapperRef,
 63574     className: classes,
 61605     className: classes,
       
 61606     ...screenProps,
 63575     ...otherProps,
 61607     ...otherProps,
 63576     children: children
 61608     children: children
 63577   }) : null;
 61609   }) : null;
 63578 }
 61610 }
 63579 
 61611 const NavigatorScreen = contextConnect(UnconnectedNavigatorScreen, 'Navigator.Screen');
 63580 /**
 61612 
 63581  * The `NavigatorScreen` component represents a single view/screen/panel and
 61613 ;// ./node_modules/@wordpress/components/build-module/navigator/use-navigator.js
 63582  * should be used in combination with the `NavigatorProvider`, the
       
 63583  * `NavigatorButton` and the `NavigatorBackButton` components (or the `useNavigator`
       
 63584  * hook).
       
 63585  *
       
 63586  * @example
       
 63587  * ```jsx
       
 63588  * import {
       
 63589  *   __experimentalNavigatorProvider as NavigatorProvider,
       
 63590  *   __experimentalNavigatorScreen as NavigatorScreen,
       
 63591  *   __experimentalNavigatorButton as NavigatorButton,
       
 63592  *   __experimentalNavigatorBackButton as NavigatorBackButton,
       
 63593  * } from '@wordpress/components';
       
 63594  *
       
 63595  * const MyNavigation = () => (
       
 63596  *   <NavigatorProvider initialPath="/">
       
 63597  *     <NavigatorScreen path="/">
       
 63598  *       <p>This is the home screen.</p>
       
 63599  *        <NavigatorButton path="/child">
       
 63600  *          Navigate to child screen.
       
 63601  *       </NavigatorButton>
       
 63602  *     </NavigatorScreen>
       
 63603  *
       
 63604  *     <NavigatorScreen path="/child">
       
 63605  *       <p>This is the child screen.</p>
       
 63606  *       <NavigatorBackButton>
       
 63607  *         Go back
       
 63608  *       </NavigatorBackButton>
       
 63609  *     </NavigatorScreen>
       
 63610  *   </NavigatorProvider>
       
 63611  * );
       
 63612  * ```
       
 63613  */
       
 63614 const NavigatorScreen = contextConnect(UnconnectedNavigatorScreen, 'NavigatorScreen');
       
 63615 /* harmony default export */ const navigator_screen_component = (NavigatorScreen);
       
 63616 
       
 63617 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/use-navigator.js
       
 63618 /**
 61614 /**
 63619  * WordPress dependencies
 61615  * WordPress dependencies
 63620  */
 61616  */
 63621 
 61617 
 63622 
 61618 
 63623 /**
 61619 /**
 63624  * Internal dependencies
 61620  * Internal dependencies
 63625  */
 61621  */
 63626 
 61622 
 63627 /**
 61623 /**
 63628  * Retrieves a `navigator` instance.
 61624  * Retrieves a `navigator` instance. This hook provides advanced functionality,
       
 61625  * such as imperatively navigating to a new location (with options like
       
 61626  * navigating back or skipping focus restoration) and accessing the current
       
 61627  * location and path parameters.
 63629  */
 61628  */
 63630 function useNavigator() {
 61629 function useNavigator() {
 63631   const {
 61630   const {
 63632     location,
 61631     location,
 63633     params,
 61632     params,
 63641     goBack,
 61640     goBack,
 63642     goToParent,
 61641     goToParent,
 63643     params
 61642     params
 63644   };
 61643   };
 63645 }
 61644 }
 63646 /* harmony default export */ const use_navigator = (useNavigator);
 61645 
 63647 
 61646 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator-button/hook.js
 63648 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-button/hook.js
       
 63649 /**
 61647 /**
 63650  * WordPress dependencies
 61648  * WordPress dependencies
 63651  */
 61649  */
 63652 
 61650 
 63653 
 61651 
 63665     path,
 61663     path,
 63666     onClick,
 61664     onClick,
 63667     as = build_module_button,
 61665     as = build_module_button,
 63668     attributeName = 'id',
 61666     attributeName = 'id',
 63669     ...otherProps
 61667     ...otherProps
 63670   } = useContextSystem(props, 'NavigatorButton');
 61668   } = useContextSystem(props, 'Navigator.Button');
 63671   const escapedPath = (0,external_wp_escapeHtml_namespaceObject.escapeAttribute)(path);
 61669   const escapedPath = (0,external_wp_escapeHtml_namespaceObject.escapeAttribute)(path);
 63672   const {
 61670   const {
 63673     goTo
 61671     goTo
 63674   } = use_navigator();
 61672   } = useNavigator();
 63675   const handleClick = (0,external_wp_element_namespaceObject.useCallback)(e => {
 61673   const handleClick = (0,external_wp_element_namespaceObject.useCallback)(e => {
 63676     e.preventDefault();
 61674     e.preventDefault();
 63677     goTo(escapedPath, {
 61675     goTo(escapedPath, {
 63678       focusTargetSelector: cssSelectorForAttribute(attributeName, escapedPath)
 61676       focusTargetSelector: cssSelectorForAttribute(attributeName, escapedPath)
 63679     });
 61677     });
 63685     ...otherProps,
 61683     ...otherProps,
 63686     [attributeName]: escapedPath
 61684     [attributeName]: escapedPath
 63687   };
 61685   };
 63688 }
 61686 }
 63689 
 61687 
 63690 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-button/component.js
 61688 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator-button/component.js
 63691 /**
 61689 /**
 63692  * External dependencies
 61690  * External dependencies
 63693  */
 61691  */
 63694 
 61692 
 63695 /**
 61693 /**
 63705   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 61703   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
 63706     ref: forwardedRef,
 61704     ref: forwardedRef,
 63707     ...navigatorButtonProps
 61705     ...navigatorButtonProps
 63708   });
 61706   });
 63709 }
 61707 }
 63710 
 61708 const NavigatorButton = contextConnect(UnconnectedNavigatorButton, 'Navigator.Button');
 63711 /**
 61709 
 63712  * The `NavigatorButton` component can be used to navigate to a screen and should
 61710 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator-back-button/hook.js
 63713  * be used in combination with the `NavigatorProvider`, the `NavigatorScreen`
 61711 /**
 63714  * and the `NavigatorBackButton` components (or the `useNavigator` hook).
 61712  * WordPress dependencies
 63715  *
 61713  */
 63716  * @example
 61714 
       
 61715 
       
 61716 /**
       
 61717  * Internal dependencies
       
 61718  */
       
 61719 
       
 61720 
       
 61721 
       
 61722 
       
 61723 function useNavigatorBackButton(props) {
       
 61724   const {
       
 61725     onClick,
       
 61726     as = build_module_button,
       
 61727     ...otherProps
       
 61728   } = useContextSystem(props, 'Navigator.BackButton');
       
 61729   const {
       
 61730     goBack
       
 61731   } = useNavigator();
       
 61732   const handleClick = (0,external_wp_element_namespaceObject.useCallback)(e => {
       
 61733     e.preventDefault();
       
 61734     goBack();
       
 61735     onClick?.(e);
       
 61736   }, [goBack, onClick]);
       
 61737   return {
       
 61738     as,
       
 61739     onClick: handleClick,
       
 61740     ...otherProps
       
 61741   };
       
 61742 }
       
 61743 
       
 61744 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator-back-button/component.js
       
 61745 /**
       
 61746  * External dependencies
       
 61747  */
       
 61748 
       
 61749 /**
       
 61750  * Internal dependencies
       
 61751  */
       
 61752 
       
 61753 
       
 61754 
       
 61755 
       
 61756 
       
 61757 function UnconnectedNavigatorBackButton(props, forwardedRef) {
       
 61758   const navigatorBackButtonProps = useNavigatorBackButton(props);
       
 61759   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
       
 61760     ref: forwardedRef,
       
 61761     ...navigatorBackButtonProps
       
 61762   });
       
 61763 }
       
 61764 const NavigatorBackButton = contextConnect(UnconnectedNavigatorBackButton, 'Navigator.BackButton');
       
 61765 
       
 61766 ;// ./node_modules/@wordpress/components/build-module/navigator/navigator-to-parent-button/component.js
       
 61767 /**
       
 61768  * WordPress dependencies
       
 61769  */
       
 61770 
       
 61771 
       
 61772 /**
       
 61773  * Internal dependencies
       
 61774  */
       
 61775 
       
 61776 
       
 61777 
       
 61778 function UnconnectedNavigatorToParentButton(props, forwardedRef) {
       
 61779   external_wp_deprecated_default()('wp.components.NavigatorToParentButton', {
       
 61780     since: '6.7',
       
 61781     alternative: 'wp.components.Navigator.BackButton'
       
 61782   });
       
 61783   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(NavigatorBackButton, {
       
 61784     ref: forwardedRef,
       
 61785     ...props
       
 61786   });
       
 61787 }
       
 61788 
       
 61789 /**
       
 61790  * @deprecated
       
 61791  */
       
 61792 const NavigatorToParentButton = contextConnect(UnconnectedNavigatorToParentButton, 'Navigator.ToParentButton');
       
 61793 
       
 61794 ;// ./node_modules/@wordpress/components/build-module/navigator/legacy.js
       
 61795 /**
       
 61796  * Internal dependencies
       
 61797  */
       
 61798 
       
 61799 
       
 61800 
       
 61801 
       
 61802 
       
 61803 
       
 61804 
       
 61805 /**
       
 61806  * The `NavigatorProvider` component allows rendering nested views/panels/menus
       
 61807  * (via the `NavigatorScreen` component and navigate between them
       
 61808  * (via the `NavigatorButton` and `NavigatorBackButton` components).
       
 61809  *
 63717  * ```jsx
 61810  * ```jsx
 63718  * import {
 61811  * import {
 63719  *   __experimentalNavigatorProvider as NavigatorProvider,
 61812  *   __experimentalNavigatorProvider as NavigatorProvider,
 63720  *   __experimentalNavigatorScreen as NavigatorScreen,
 61813  *   __experimentalNavigatorScreen as NavigatorScreen,
 63721  *   __experimentalNavigatorButton as NavigatorButton,
 61814  *   __experimentalNavigatorButton as NavigatorButton,
 63739  *     </NavigatorScreen>
 61832  *     </NavigatorScreen>
 63740  *   </NavigatorProvider>
 61833  *   </NavigatorProvider>
 63741  * );
 61834  * );
 63742  * ```
 61835  * ```
 63743  */
 61836  */
 63744 const NavigatorButton = contextConnect(UnconnectedNavigatorButton, 'NavigatorButton');
 61837 const NavigatorProvider = Object.assign(component_Navigator, {
 63745 /* harmony default export */ const navigator_button_component = (NavigatorButton);
 61838   displayName: 'NavigatorProvider'
 63746 
 61839 });
 63747 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-back-button/hook.js
 61840 
 63748 /**
 61841 /**
 63749  * WordPress dependencies
 61842  * The `NavigatorScreen` component represents a single view/screen/panel and
 63750  */
       
 63751 
       
 63752 
       
 63753 /**
       
 63754  * Internal dependencies
       
 63755  */
       
 63756 
       
 63757 
       
 63758 
       
 63759 
       
 63760 function useNavigatorBackButton(props) {
       
 63761   const {
       
 63762     onClick,
       
 63763     as = build_module_button,
       
 63764     goToParent: goToParentProp = false,
       
 63765     ...otherProps
       
 63766   } = useContextSystem(props, 'NavigatorBackButton');
       
 63767   const {
       
 63768     goBack,
       
 63769     goToParent
       
 63770   } = use_navigator();
       
 63771   const handleClick = (0,external_wp_element_namespaceObject.useCallback)(e => {
       
 63772     e.preventDefault();
       
 63773     if (goToParentProp) {
       
 63774       goToParent();
       
 63775     } else {
       
 63776       goBack();
       
 63777     }
       
 63778     onClick?.(e);
       
 63779   }, [goToParentProp, goToParent, goBack, onClick]);
       
 63780   return {
       
 63781     as,
       
 63782     onClick: handleClick,
       
 63783     ...otherProps
       
 63784   };
       
 63785 }
       
 63786 
       
 63787 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-back-button/component.js
       
 63788 /**
       
 63789  * External dependencies
       
 63790  */
       
 63791 
       
 63792 /**
       
 63793  * Internal dependencies
       
 63794  */
       
 63795 
       
 63796 
       
 63797 
       
 63798 
       
 63799 
       
 63800 function UnconnectedNavigatorBackButton(props, forwardedRef) {
       
 63801   const navigatorBackButtonProps = useNavigatorBackButton(props);
       
 63802   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
       
 63803     ref: forwardedRef,
       
 63804     ...navigatorBackButtonProps
       
 63805   });
       
 63806 }
       
 63807 
       
 63808 /**
       
 63809  * The `NavigatorBackButton` component can be used to navigate to a screen and
       
 63810  * should be used in combination with the `NavigatorProvider`, the
 61843  * should be used in combination with the `NavigatorProvider`, the
 63811  * `NavigatorScreen` and the `NavigatorButton` components (or the `useNavigator`
 61844  * `NavigatorButton` and the `NavigatorBackButton` components.
 63812  * hook).
       
 63813  *
 61845  *
 63814  * @example
 61846  * @example
 63815  * ```jsx
 61847  * ```jsx
 63816  * import {
 61848  * import {
 63817  *   __experimentalNavigatorProvider as NavigatorProvider,
 61849  *   __experimentalNavigatorProvider as NavigatorProvider,
 63837  *     </NavigatorScreen>
 61869  *     </NavigatorScreen>
 63838  *   </NavigatorProvider>
 61870  *   </NavigatorProvider>
 63839  * );
 61871  * );
 63840  * ```
 61872  * ```
 63841  */
 61873  */
 63842 const NavigatorBackButton = contextConnect(UnconnectedNavigatorBackButton, 'NavigatorBackButton');
 61874 const legacy_NavigatorScreen = Object.assign(NavigatorScreen, {
 63843 /* harmony default export */ const navigator_back_button_component = (NavigatorBackButton);
 61875   displayName: 'NavigatorScreen'
 63844 
 61876 });
 63845 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigator/navigator-to-parent-button/component.js
 61877 
 63846 /**
 61878 /**
 63847  * External dependencies
 61879  * The `NavigatorButton` component can be used to navigate to a screen and should
 63848  */
 61880  * be used in combination with the `NavigatorProvider`, the `NavigatorScreen`
 63849 
 61881  * and the `NavigatorBackButton` components.
 63850 /**
       
 63851  * Internal dependencies
       
 63852  */
       
 63853 
       
 63854 
       
 63855 
       
 63856 
       
 63857 
       
 63858 function UnconnectedNavigatorToParentButton(props, forwardedRef) {
       
 63859   const navigatorToParentButtonProps = useNavigatorBackButton({
       
 63860     ...props,
       
 63861     goToParent: true
       
 63862   });
       
 63863   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(component, {
       
 63864     ref: forwardedRef,
       
 63865     ...navigatorToParentButtonProps
       
 63866   });
       
 63867 }
       
 63868 
       
 63869 /*
       
 63870  * The `NavigatorToParentButton` component can be used to navigate to a screen and
       
 63871  * should be used in combination with the `NavigatorProvider`, the
       
 63872  * `NavigatorScreen` and the `NavigatorButton` components (or the `useNavigator`
       
 63873  * hook).
       
 63874  *
 61882  *
 63875  * @example
 61883  * @example
 63876  * ```jsx
 61884  * ```jsx
 63877  * import {
 61885  * import {
 63878  *   __experimentalNavigatorProvider as NavigatorProvider,
 61886  *   __experimentalNavigatorProvider as NavigatorProvider,
 63879  *   __experimentalNavigatorScreen as NavigatorScreen,
 61887  *   __experimentalNavigatorScreen as NavigatorScreen,
 63880  *   __experimentalNavigatorButton as NavigatorButton,
 61888  *   __experimentalNavigatorButton as NavigatorButton,
 63881  *   __experimentalNavigatorToParentButton as NavigatorToParentButton,
 61889  *   __experimentalNavigatorBackButton as NavigatorBackButton,
 63882  * } from '@wordpress/components';
 61890  * } from '@wordpress/components';
 63883  *
 61891  *
 63884  * const MyNavigation = () => (
 61892  * const MyNavigation = () => (
 63885  *   <NavigatorProvider initialPath="/">
 61893  *   <NavigatorProvider initialPath="/">
 63886  *     <NavigatorScreen path="/">
 61894  *     <NavigatorScreen path="/">
 63890  *       </NavigatorButton>
 61898  *       </NavigatorButton>
 63891  *     </NavigatorScreen>
 61899  *     </NavigatorScreen>
 63892  *
 61900  *
 63893  *     <NavigatorScreen path="/child">
 61901  *     <NavigatorScreen path="/child">
 63894  *       <p>This is the child screen.</p>
 61902  *       <p>This is the child screen.</p>
 63895  *       <NavigatorToParentButton>
 61903  *       <NavigatorBackButton>
 63896  *         Go to parent
 61904  *         Go back
 63897  *       </NavigatorToParentButton>
 61905  *       </NavigatorBackButton>
 63898  *     </NavigatorScreen>
 61906  *     </NavigatorScreen>
 63899  *   </NavigatorProvider>
 61907  *   </NavigatorProvider>
 63900  * );
 61908  * );
 63901  * ```
 61909  * ```
 63902  */
 61910  */
 63903 const NavigatorToParentButton = contextConnect(UnconnectedNavigatorToParentButton, 'NavigatorToParentButton');
 61911 const legacy_NavigatorButton = Object.assign(NavigatorButton, {
 63904 /* harmony default export */ const navigator_to_parent_button_component = (NavigatorToParentButton);
 61912   displayName: 'NavigatorButton'
 63905 
 61913 });
 63906 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/notice/index.js
 61914 
       
 61915 /**
       
 61916  * The `NavigatorBackButton` component can be used to navigate to a screen and
       
 61917  * should be used in combination with the `NavigatorProvider`, the
       
 61918  * `NavigatorScreen` and the `NavigatorButton` components.
       
 61919  *
       
 61920  * @example
       
 61921  * ```jsx
       
 61922  * import {
       
 61923  *   __experimentalNavigatorProvider as NavigatorProvider,
       
 61924  *   __experimentalNavigatorScreen as NavigatorScreen,
       
 61925  *   __experimentalNavigatorButton as NavigatorButton,
       
 61926  *   __experimentalNavigatorBackButton as NavigatorBackButton,
       
 61927  * } from '@wordpress/components';
       
 61928  *
       
 61929  * const MyNavigation = () => (
       
 61930  *   <NavigatorProvider initialPath="/">
       
 61931  *     <NavigatorScreen path="/">
       
 61932  *       <p>This is the home screen.</p>
       
 61933  *        <NavigatorButton path="/child">
       
 61934  *          Navigate to child screen.
       
 61935  *       </NavigatorButton>
       
 61936  *     </NavigatorScreen>
       
 61937  *
       
 61938  *     <NavigatorScreen path="/child">
       
 61939  *       <p>This is the child screen.</p>
       
 61940  *       <NavigatorBackButton>
       
 61941  *         Go back (to parent)
       
 61942  *       </NavigatorBackButton>
       
 61943  *     </NavigatorScreen>
       
 61944  *   </NavigatorProvider>
       
 61945  * );
       
 61946  * ```
       
 61947  */
       
 61948 const legacy_NavigatorBackButton = Object.assign(NavigatorBackButton, {
       
 61949   displayName: 'NavigatorBackButton'
       
 61950 });
       
 61951 
       
 61952 /**
       
 61953  * _Note: this component is deprecated. Please use the `NavigatorBackButton`
       
 61954  * component instead._
       
 61955  *
       
 61956  * @deprecated
       
 61957  */
       
 61958 const legacy_NavigatorToParentButton = Object.assign(NavigatorToParentButton, {
       
 61959   displayName: 'NavigatorToParentButton'
       
 61960 });
       
 61961 
       
 61962 ;// ./node_modules/@wordpress/components/build-module/navigator/index.js
       
 61963 /**
       
 61964  * Internal dependencies
       
 61965  */
       
 61966 
       
 61967 
       
 61968 
       
 61969 
       
 61970 
       
 61971 
       
 61972 /**
       
 61973  * The `Navigator` component allows rendering nested views/panels/menus
       
 61974  * (via the `Navigator.Screen` component) and navigate between them
       
 61975  * (via the `Navigator.Button` and `Navigator.BackButton` components).
       
 61976  *
       
 61977  * ```jsx
       
 61978  * import { Navigator } from '@wordpress/components';
       
 61979  *
       
 61980  * const MyNavigation = () => (
       
 61981  *   <Navigator initialPath="/">
       
 61982  *     <Navigator.Screen path="/">
       
 61983  *       <p>This is the home screen.</p>
       
 61984  *        <Navigator.Button path="/child">
       
 61985  *          Navigate to child screen.
       
 61986  *       </Navigator.Button>
       
 61987  *     </Navigator.Screen>
       
 61988  *
       
 61989  *     <Navigator.Screen path="/child">
       
 61990  *       <p>This is the child screen.</p>
       
 61991  *       <Navigator.BackButton>
       
 61992  *         Go back
       
 61993  *       </Navigator.BackButton>
       
 61994  *     </Navigator.Screen>
       
 61995  *   </Navigator>
       
 61996  * );
       
 61997  * ```
       
 61998  */
       
 61999 const navigator_Navigator = Object.assign(component_Navigator, {
       
 62000   /**
       
 62001    * The `Navigator.Screen` component represents a single view/screen/panel and
       
 62002    * should be used in combination with the `Navigator`, the `Navigator.Button`
       
 62003    * and the `Navigator.BackButton` components.
       
 62004    *
       
 62005    * @example
       
 62006    * ```jsx
       
 62007    * import { Navigator } from '@wordpress/components';
       
 62008    *
       
 62009    * const MyNavigation = () => (
       
 62010    *   <Navigator initialPath="/">
       
 62011    *     <Navigator.Screen path="/">
       
 62012    *       <p>This is the home screen.</p>
       
 62013    *        <Navigator.Button path="/child">
       
 62014    *          Navigate to child screen.
       
 62015    *       </Navigator.Button>
       
 62016    *     </Navigator.Screen>
       
 62017    *
       
 62018    *     <Navigator.Screen path="/child">
       
 62019    *       <p>This is the child screen.</p>
       
 62020    *       <Navigator.BackButton>
       
 62021    *         Go back
       
 62022    *       </Navigator.BackButton>
       
 62023    *     </Navigator.Screen>
       
 62024    *   </Navigator>
       
 62025    * );
       
 62026    * ```
       
 62027    */
       
 62028   Screen: Object.assign(NavigatorScreen, {
       
 62029     displayName: 'Navigator.Screen'
       
 62030   }),
       
 62031   /**
       
 62032    * The `Navigator.Button` component can be used to navigate to a screen and
       
 62033    * should be used in combination with the `Navigator`, the `Navigator.Screen`
       
 62034    * and the `Navigator.BackButton` components.
       
 62035    *
       
 62036    * @example
       
 62037    * ```jsx
       
 62038    * import { Navigator } from '@wordpress/components';
       
 62039    *
       
 62040    * const MyNavigation = () => (
       
 62041    *   <Navigator initialPath="/">
       
 62042    *     <Navigator.Screen path="/">
       
 62043    *       <p>This is the home screen.</p>
       
 62044    *        <Navigator.Button path="/child">
       
 62045    *          Navigate to child screen.
       
 62046    *       </Navigator.Button>
       
 62047    *     </Navigator.Screen>
       
 62048    *
       
 62049    *     <Navigator.Screen path="/child">
       
 62050    *       <p>This is the child screen.</p>
       
 62051    *       <Navigator.BackButton>
       
 62052    *         Go back
       
 62053    *       </Navigator.BackButton>
       
 62054    *     </Navigator.Screen>
       
 62055    *   </Navigator>
       
 62056    * );
       
 62057    * ```
       
 62058    */
       
 62059   Button: Object.assign(NavigatorButton, {
       
 62060     displayName: 'Navigator.Button'
       
 62061   }),
       
 62062   /**
       
 62063    * The `Navigator.BackButton` component can be used to navigate to a screen and
       
 62064    * should be used in combination with the `Navigator`, the `Navigator.Screen`
       
 62065    * and the `Navigator.Button` components.
       
 62066    *
       
 62067    * @example
       
 62068    * ```jsx
       
 62069    * import { Navigator } from '@wordpress/components';
       
 62070    *
       
 62071    * const MyNavigation = () => (
       
 62072    *   <Navigator initialPath="/">
       
 62073    *     <Navigator.Screen path="/">
       
 62074    *       <p>This is the home screen.</p>
       
 62075    *        <Navigator.Button path="/child">
       
 62076    *          Navigate to child screen.
       
 62077    *       </Navigator.Button>
       
 62078    *     </Navigator.Screen>
       
 62079    *
       
 62080    *     <Navigator.Screen path="/child">
       
 62081    *       <p>This is the child screen.</p>
       
 62082    *       <Navigator.BackButton>
       
 62083    *         Go back
       
 62084    *       </Navigator.BackButton>
       
 62085    *     </Navigator.Screen>
       
 62086    *   </Navigator>
       
 62087    * );
       
 62088    * ```
       
 62089    */
       
 62090   BackButton: Object.assign(NavigatorBackButton, {
       
 62091     displayName: 'Navigator.BackButton'
       
 62092   })
       
 62093 });
       
 62094 
       
 62095 ;// ./node_modules/@wordpress/components/build-module/notice/index.js
 63907 /**
 62096 /**
 63908  * External dependencies
 62097  * External dependencies
 63909  */
 62098  */
 63910 
 62099 
 63911 
 62100 
 63918 
 62107 
 63919 
 62108 
 63920 /**
 62109 /**
 63921  * Internal dependencies
 62110  * Internal dependencies
 63922  */
 62111  */
 63923 
       
 63924 
 62112 
 63925 
 62113 
 63926 
 62114 
 63927 const notice_noop = () => {};
 62115 const notice_noop = () => {};
 63928 
 62116 
 64025           }
 62213           }
 64026           if (typeof computedVariant === 'undefined' && isPrimary) {
 62214           if (typeof computedVariant === 'undefined' && isPrimary) {
 64027             computedVariant = 'primary';
 62215             computedVariant = 'primary';
 64028           }
 62216           }
 64029           return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 62217           return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 62218             __next40pxDefaultSize: true,
 64030             href: url,
 62219             href: url,
 64031             variant: computedVariant,
 62220             variant: computedVariant,
 64032             onClick: url ? undefined : onClick,
 62221             onClick: url ? undefined : onClick,
 64033             className: dist_clsx('components-notice__action', buttonCustomClasses),
 62222             className: dist_clsx('components-notice__action', buttonCustomClasses),
 64034             children: label
 62223             children: label
 64035           }, index);
 62224           }, index);
 64036         })
 62225         })
 64037       })]
 62226       })]
 64038     }), isDismissible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 62227     }), isDismissible && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 62228       size: "small",
 64039       className: "components-notice__dismiss",
 62229       className: "components-notice__dismiss",
 64040       icon: library_close,
 62230       icon: library_close,
 64041       label: (0,external_wp_i18n_namespaceObject.__)('Close'),
 62231       label: (0,external_wp_i18n_namespaceObject.__)('Close'),
 64042       onClick: onDismissNotice
 62232       onClick: onDismissNotice
 64043     })]
 62233     })]
 64044   });
 62234   });
 64045 }
 62235 }
 64046 /* harmony default export */ const build_module_notice = (Notice);
 62236 /* harmony default export */ const build_module_notice = (Notice);
 64047 
 62237 
 64048 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/notice/list.js
 62238 ;// ./node_modules/@wordpress/components/build-module/notice/list.js
 64049 /**
 62239 /**
 64050  * External dependencies
 62240  * External dependencies
 64051  */
 62241  */
 64052 
 62242 
 64053 
 62243 
 64108     })]
 62298     })]
 64109   });
 62299   });
 64110 }
 62300 }
 64111 /* harmony default export */ const list = (NoticeList);
 62301 /* harmony default export */ const list = (NoticeList);
 64112 
 62302 
 64113 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/header.js
 62303 ;// ./node_modules/@wordpress/components/build-module/panel/header.js
 64114 
       
 64115 
 62304 
 64116 /**
 62305 /**
 64117  * Internal dependencies
 62306  * Internal dependencies
 64118  */
 62307  */
 64119 
 62308 
 64133     }), children]
 62322     }), children]
 64134   });
 62323   });
 64135 }
 62324 }
 64136 /* harmony default export */ const panel_header = (PanelHeader);
 62325 /* harmony default export */ const panel_header = (PanelHeader);
 64137 
 62326 
 64138 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/index.js
 62327 ;// ./node_modules/@wordpress/components/build-module/panel/index.js
 64139 /**
 62328 /**
 64140  * External dependencies
 62329  * External dependencies
 64141  */
 62330  */
 64142 
 62331 
 64143 
 62332 
 64147 
 62336 
 64148 
 62337 
 64149 /**
 62338 /**
 64150  * Internal dependencies
 62339  * Internal dependencies
 64151  */
 62340  */
 64152 
       
 64153 
 62341 
 64154 
 62342 
 64155 function UnforwardedPanel({
 62343 function UnforwardedPanel({
 64156   header,
 62344   header,
 64157   className,
 62345   className,
 64184  * ```
 62372  * ```
 64185  */
 62373  */
 64186 const Panel = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPanel);
 62374 const Panel = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPanel);
 64187 /* harmony default export */ const panel = (Panel);
 62375 /* harmony default export */ const panel = (Panel);
 64188 
 62376 
 64189 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js
 62377 ;// ./node_modules/@wordpress/icons/build-module/library/chevron-up.js
 64190 /**
 62378 /**
 64191  * WordPress dependencies
 62379  * WordPress dependencies
 64192  */
 62380  */
 64193 
 62381 
 64194 
 62382 
 64199     d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
 62387     d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
 64200   })
 62388   })
 64201 });
 62389 });
 64202 /* harmony default export */ const chevron_up = (chevronUp);
 62390 /* harmony default export */ const chevron_up = (chevronUp);
 64203 
 62391 
 64204 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/body.js
 62392 ;// ./node_modules/@wordpress/components/build-module/panel/body.js
 64205 /**
 62393 /**
 64206  * External dependencies
 62394  * External dependencies
 64207  */
 62395  */
 64208 
 62396 
 64209 
 62397 
 64215 
 62403 
 64216 
 62404 
 64217 /**
 62405 /**
 64218  * Internal dependencies
 62406  * Internal dependencies
 64219  */
 62407  */
 64220 
       
 64221 
 62408 
 64222 
 62409 
 64223 
 62410 
 64224 
 62411 
 64225 
 62412 
 64297     return null;
 62484     return null;
 64298   }
 62485   }
 64299   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
 62486   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("h2", {
 64300     className: "components-panel__body-title",
 62487     className: "components-panel__body-title",
 64301     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(build_module_button, {
 62488     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(build_module_button, {
       
 62489       __next40pxDefaultSize: true,
 64302       className: "components-panel__body-toggle",
 62490       className: "components-panel__body-toggle",
 64303       "aria-expanded": isOpened,
 62491       "aria-expanded": isOpened,
 64304       ref: ref,
 62492       ref: ref,
 64305       ...props,
 62493       ...props,
 64306       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 62494       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 64318   });
 62506   });
 64319 });
 62507 });
 64320 const PanelBody = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPanelBody);
 62508 const PanelBody = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPanelBody);
 64321 /* harmony default export */ const body = (PanelBody);
 62509 /* harmony default export */ const body = (PanelBody);
 64322 
 62510 
 64323 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/panel/row.js
 62511 ;// ./node_modules/@wordpress/components/build-module/panel/row.js
 64324 /**
 62512 /**
 64325  * External dependencies
 62513  * External dependencies
 64326  */
 62514  */
 64327 
 62515 
 64328 
 62516 
 64351  * It is a flex container with a top margin for spacing.
 62539  * It is a flex container with a top margin for spacing.
 64352  */
 62540  */
 64353 const PanelRow = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPanelRow);
 62541 const PanelRow = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedPanelRow);
 64354 /* harmony default export */ const row = (PanelRow);
 62542 /* harmony default export */ const row = (PanelRow);
 64355 
 62543 
 64356 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/placeholder/index.js
 62544 ;// ./node_modules/@wordpress/components/build-module/placeholder/index.js
 64357 /**
 62545 /**
 64358  * External dependencies
 62546  * External dependencies
 64359  */
 62547  */
 64360 
 62548 
 64361 
 62549 
 64368 
 62556 
 64369 
 62557 
 64370 /**
 62558 /**
 64371  * Internal dependencies
 62559  * Internal dependencies
 64372  */
 62560  */
 64373 
       
 64374 
 62561 
 64375 
 62562 
 64376 const PlaceholderIllustration = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
 62563 const PlaceholderIllustration = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
 64377   className: "components-placeholder__illustration",
 62564   className: "components-placeholder__illustration",
 64378   fill: "none",
 62565   fill: "none",
 64451     })]
 62638     })]
 64452   });
 62639   });
 64453 }
 62640 }
 64454 /* harmony default export */ const placeholder = (Placeholder);
 62641 /* harmony default export */ const placeholder = (Placeholder);
 64455 
 62642 
 64456 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/progress-bar/styles.js
 62643 ;// ./node_modules/@wordpress/components/build-module/progress-bar/styles.js
 64457 
 62644 
 64458 function progress_bar_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 62645 function progress_bar_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 64459 /**
 62646 /**
 64460  * External dependencies
 62647  * External dependencies
 64461  */
 62648  */
 64462 
 62649 
 64463 
 62650 
 64464 
 62651 
 64465 /**
 62652 /**
       
 62653  * WordPress dependencies
       
 62654  */
       
 62655 
       
 62656 
       
 62657 /**
 64466  * Internal dependencies
 62658  * Internal dependencies
 64467  */
 62659  */
 64468 
 62660 
 64469 const animateProgressBar = emotion_react_browser_esm_keyframes({
 62661 function animateProgressBar(isRtl = false) {
 64470   '0%': {
 62662   const animationDirection = isRtl ? 'right' : 'left';
 64471     left: '-50%'
 62663   return emotion_react_browser_esm_keyframes({
 64472   },
 62664     '0%': {
 64473   '100%': {
 62665       [animationDirection]: '-50%'
 64474     left: '100%'
 62666     },
 64475   }
 62667     '100%': {
 64476 });
 62668       [animationDirection]: '100%'
       
 62669     }
       
 62670   });
       
 62671 }
 64477 
 62672 
 64478 // Width of the indicator for the indeterminate progress bar
 62673 // Width of the indicator for the indeterminate progress bar
 64479 const INDETERMINATE_TRACK_WIDTH = 50;
 62674 const INDETERMINATE_TRACK_WIDTH = 50;
 64480 const styles_Track = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 62675 const styles_Track = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 64481   target: "e15u147w2"
 62676   target: "e15u147w2"
 64482 } : 0)("position:relative;overflow:hidden;height:", config_values.borderWidthFocus, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", COLORS.theme.foreground, ",\n\t\ttransparent 90%\n\t);border-radius:", config_values.radiusBlockUi, ";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}" + ( true ? "" : 0));
 62677 } : 0)("position:relative;overflow:hidden;height:", config_values.borderWidthFocus, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", COLORS.theme.foreground, ",\n\t\ttransparent 90%\n\t);border-radius:", config_values.radiusFull, ";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}" + ( true ? "" : 0));
 64483 var progress_bar_styles_ref =  true ? {
 62678 var progress_bar_styles_ref =  true ? {
 64484   name: "152sa26",
 62679   name: "152sa26",
 64485   styles: "width:var(--indicator-width);transition:width 0.4s ease-in-out"
 62680   styles: "width:var(--indicator-width);transition:width 0.4s ease-in-out"
 64486 } : 0;
 62681 } : 0;
 64487 const Indicator = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 62682 const Indicator = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 64488   target: "e15u147w1"
 62683   target: "e15u147w1"
 64489 } : 0)("display:inline-block;position:absolute;top:0;height:100%;border-radius:", config_values.radiusBlockUi, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", COLORS.theme.foreground, ",\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;", ({
 62684 } : 0)("display:inline-block;position:absolute;top:0;height:100%;border-radius:", config_values.radiusFull, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", COLORS.theme.foreground, ",\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;", ({
 64490   isIndeterminate
 62685   isIndeterminate
 64491 }) => isIndeterminate ? /*#__PURE__*/emotion_react_browser_esm_css({
 62686 }) => isIndeterminate ? /*#__PURE__*/emotion_react_browser_esm_css({
 64492   animationDuration: '1.5s',
 62687   animationDuration: '1.5s',
 64493   animationTimingFunction: 'ease-in-out',
 62688   animationTimingFunction: 'ease-in-out',
 64494   animationIterationCount: 'infinite',
 62689   animationIterationCount: 'infinite',
 64495   animationName: animateProgressBar,
 62690   animationName: animateProgressBar((0,external_wp_i18n_namespaceObject.isRTL)()),
 64496   width: `${INDETERMINATE_TRACK_WIDTH}%`
 62691   width: `${INDETERMINATE_TRACK_WIDTH}%`
 64497 },  true ? "" : 0,  true ? "" : 0) : progress_bar_styles_ref, ";" + ( true ? "" : 0));
 62692 },  true ? "" : 0,  true ? "" : 0) : progress_bar_styles_ref, ";" + ( true ? "" : 0));
 64498 const ProgressElement = /*#__PURE__*/emotion_styled_base_browser_esm("progress",  true ? {
 62693 const ProgressElement = /*#__PURE__*/emotion_styled_base_browser_esm("progress",  true ? {
 64499   target: "e15u147w0"
 62694   target: "e15u147w0"
 64500 } : 0)( true ? {
 62695 } : 0)( true ? {
 64501   name: "11fb690",
 62696   name: "11fb690",
 64502   styles: "position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"
 62697   styles: "position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"
 64503 } : 0);
 62698 } : 0);
 64504 
 62699 
 64505 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/progress-bar/index.js
 62700 ;// ./node_modules/@wordpress/components/build-module/progress-bar/index.js
 64506 /**
 62701 /**
 64507  * External dependencies
 62702  * External dependencies
 64508  */
 62703  */
 64509 
 62704 
 64510 /**
 62705 /**
 64514 
 62709 
 64515 
 62710 
 64516 /**
 62711 /**
 64517  * Internal dependencies
 62712  * Internal dependencies
 64518  */
 62713  */
 64519 
       
 64520 
 62714 
 64521 
 62715 
 64522 function UnforwardedProgressBar(props, ref) {
 62716 function UnforwardedProgressBar(props, ref) {
 64523   const {
 62717   const {
 64524     className,
 62718     className,
 64559  * ```
 62753  * ```
 64560  */
 62754  */
 64561 const ProgressBar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedProgressBar);
 62755 const ProgressBar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedProgressBar);
 64562 /* harmony default export */ const progress_bar = (ProgressBar);
 62756 /* harmony default export */ const progress_bar = (ProgressBar);
 64563 
 62757 
 64564 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/terms.js
 62758 ;// ./node_modules/@wordpress/components/build-module/query-controls/terms.js
 64565 /**
 62759 /**
 64566  * Internal dependencies
 62760  * Internal dependencies
 64567  */
 62761  */
 64568 
 62762 
 64569 const ensureParentsAreDefined = terms => {
 62763 const ensureParentsAreDefined = terms => {
 64611     });
 62805     });
 64612   };
 62806   };
 64613   return fillWithChildren(termsByParent['0'] || []);
 62807   return fillWithChildren(termsByParent['0'] || []);
 64614 }
 62808 }
 64615 
 62809 
 64616 ;// CONCATENATED MODULE: external ["wp","htmlEntities"]
 62810 ;// external ["wp","htmlEntities"]
 64617 const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
 62811 const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
 64618 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-select/index.js
 62812 ;// ./node_modules/@wordpress/components/build-module/tree-select/index.js
 64619 /**
 62813 /**
 64620  * WordPress dependencies
 62814  * WordPress dependencies
 64621  */
 62815  */
 64622 
 62816 
 64623 
 62817 
 64626  * Internal dependencies
 62820  * Internal dependencies
 64627  */
 62821  */
 64628 
 62822 
 64629 
 62823 
 64630 
 62824 
       
 62825 
       
 62826 
       
 62827 const tree_select_CONTEXT_VALUE = {
       
 62828   BaseControl: {
       
 62829     // Temporary during deprecation grace period: Overrides the underlying `__associatedWPComponentName`
       
 62830     // via the context system to override the value set by SelectControl.
       
 62831     _overrides: {
       
 62832       __associatedWPComponentName: 'TreeSelect'
       
 62833     }
       
 62834   }
       
 62835 };
 64631 function getSelectOptions(tree, level = 0) {
 62836 function getSelectOptions(tree, level = 0) {
 64632   return tree.flatMap(treeNode => [{
 62837   return tree.flatMap(treeNode => [{
 64633     value: treeNode.id,
 62838     value: treeNode.id,
 64634     label: '\u00A0'.repeat(level * 3) + (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(treeNode.name)
 62839     label: '\u00A0'.repeat(level * 3) + (0,external_wp_htmlEntities_namespaceObject.decodeEntities)(treeNode.name)
 64635   }, ...getSelectOptions(treeNode.children || [], level + 1)]);
 62840   }, ...getSelectOptions(treeNode.children || [], level + 1)]);
 64636 }
 62841 }
 64637 
 62842 
 64638 /**
 62843 /**
 64639  * TreeSelect component is used to generate select input fields.
 62844  * Generates a hierarchical select input.
 64640  *
 62845  *
 64641  * ```jsx
 62846  * ```jsx
       
 62847  * import { useState } from 'react';
 64642  * import { TreeSelect } from '@wordpress/components';
 62848  * import { TreeSelect } from '@wordpress/components';
 64643  * import { useState } from '@wordpress/element';
       
 64644  *
 62849  *
 64645  * const MyTreeSelect = () => {
 62850  * const MyTreeSelect = () => {
 64646  * 	const [ page, setPage ] = useState( 'p21' );
 62851  * 	const [ page, setPage ] = useState( 'p21' );
 64647  *
 62852  *
 64648  * 	return (
 62853  * 	return (
 64649  * 		<TreeSelect
 62854  * 		<TreeSelect
       
 62855  * 			__nextHasNoMarginBottom
       
 62856  * 			__next40pxDefaultSize
 64650  * 			label="Parent page"
 62857  * 			label="Parent page"
 64651  * 			noOptionLabel="No parent page"
 62858  * 			noOptionLabel="No parent page"
 64652  * 			onChange={ ( newPage ) => setPage( newPage ) }
 62859  * 			onChange={ ( newPage ) => setPage( newPage ) }
 64653  * 			selectedId={ page }
 62860  * 			selectedId={ page }
 64654  * 			tree={ [
 62861  * 			tree={ [
 64680  * 		/>
 62887  * 		/>
 64681  * 	);
 62888  * 	);
 64682  * }
 62889  * }
 64683  * ```
 62890  * ```
 64684  */
 62891  */
 64685 
       
 64686 function TreeSelect(props) {
 62892 function TreeSelect(props) {
 64687   const {
 62893   const {
 64688     label,
 62894     label,
 64689     noOptionLabel,
 62895     noOptionLabel,
 64690     onChange,
 62896     onChange,
 64696     return [noOptionLabel && {
 62902     return [noOptionLabel && {
 64697       value: '',
 62903       value: '',
 64698       label: noOptionLabel
 62904       label: noOptionLabel
 64699     }, ...getSelectOptions(tree)].filter(option => !!option);
 62905     }, ...getSelectOptions(tree)].filter(option => !!option);
 64700   }, [noOptionLabel, tree]);
 62906   }, [noOptionLabel, tree]);
 64701   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectControl, {
 62907   maybeWarnDeprecated36pxSize({
 64702     label,
 62908     componentName: 'TreeSelect',
 64703     options,
 62909     size: restProps.size,
 64704     onChange,
 62910     __next40pxDefaultSize: restProps.__next40pxDefaultSize
 64705     value: selectedId,
       
 64706     ...restProps
       
 64707   });
 62911   });
       
 62912   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ContextSystemProvider, {
       
 62913     value: tree_select_CONTEXT_VALUE,
       
 62914     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SelectControl, {
       
 62915       __shouldNotWarnDeprecated36pxSize: true,
       
 62916       label,
       
 62917       options,
       
 62918       onChange,
       
 62919       value: selectedId,
       
 62920       ...restProps
       
 62921     })
       
 62922   });
 64708 }
 62923 }
 64709 /* harmony default export */ const tree_select = (TreeSelect);
 62924 /* harmony default export */ const tree_select = (TreeSelect);
 64710 
 62925 
 64711 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/author-select.js
 62926 ;// ./node_modules/@wordpress/components/build-module/query-controls/author-select.js
 64712 /**
 62927 /**
 64713  * Internal dependencies
 62928  * Internal dependencies
 64714  */
 62929  */
 64715 
 62930 
 64716 
 62931 
 64736     __nextHasNoMarginBottom: true,
 62951     __nextHasNoMarginBottom: true,
 64737     __next40pxDefaultSize: __next40pxDefaultSize
 62952     __next40pxDefaultSize: __next40pxDefaultSize
 64738   });
 62953   });
 64739 }
 62954 }
 64740 
 62955 
 64741 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/category-select.js
 62956 ;// ./node_modules/@wordpress/components/build-module/query-controls/category-select.js
 64742 /**
 62957 /**
 64743  * Internal dependencies
 62958  * Internal dependencies
 64744  */
 62959  */
 64745 
 62960 
 64746 
 62961 
 64772     __nextHasNoMarginBottom: true,
 62987     __nextHasNoMarginBottom: true,
 64773     __next40pxDefaultSize: __next40pxDefaultSize
 62988     __next40pxDefaultSize: __next40pxDefaultSize
 64774   });
 62989   });
 64775 }
 62990 }
 64776 
 62991 
 64777 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/query-controls/index.js
 62992 ;// ./node_modules/@wordpress/components/build-module/query-controls/index.js
 64778 /**
 62993 /**
 64779  * WordPress dependencies
 62994  * WordPress dependencies
 64780  */
 62995  */
 64781 
 62996 
 64782 
 62997 
 64797   return 'categoriesList' in props;
 63012   return 'categoriesList' in props;
 64798 }
 63013 }
 64799 function isMultipleCategorySelection(props) {
 63014 function isMultipleCategorySelection(props) {
 64800   return 'categorySuggestions' in props;
 63015   return 'categorySuggestions' in props;
 64801 }
 63016 }
       
 63017 const defaultOrderByOptions = [{
       
 63018   label: (0,external_wp_i18n_namespaceObject.__)('Newest to oldest'),
       
 63019   value: 'date/desc'
       
 63020 }, {
       
 63021   label: (0,external_wp_i18n_namespaceObject.__)('Oldest to newest'),
       
 63022   value: 'date/asc'
       
 63023 }, {
       
 63024   /* translators: Label for ordering posts by title in ascending order. */
       
 63025   label: (0,external_wp_i18n_namespaceObject.__)('A → Z'),
       
 63026   value: 'title/asc'
       
 63027 }, {
       
 63028   /* translators: Label for ordering posts by title in descending order. */
       
 63029   label: (0,external_wp_i18n_namespaceObject.__)('Z → A'),
       
 63030   value: 'title/desc'
       
 63031 }];
 64802 
 63032 
 64803 /**
 63033 /**
 64804  * Controls to query for posts.
 63034  * Controls to query for posts.
 64805  *
 63035  *
 64806  * ```jsx
 63036  * ```jsx
 64807  * const MyQueryControls = () => (
 63037  * const MyQueryControls = () => (
 64808  *   <QueryControls
 63038  *   <QueryControls
 64809  *     { ...{ maxItems, minItems, numberOfItems, order, orderBy } }
 63039  *     { ...{ maxItems, minItems, numberOfItems, order, orderBy, orderByOptions } }
 64810  *     onOrderByChange={ ( newOrderBy ) => {
 63040  *     onOrderByChange={ ( newOrderBy ) => {
 64811  *       updateQuery( { orderBy: newOrderBy } )
 63041  *       updateQuery( { orderBy: newOrderBy } )
 64812  *     }
 63042  *     }
 64813  *     onOrderChange={ ( newOrder ) => {
 63043  *     onOrderChange={ ( newOrder ) => {
 64814  *       updateQuery( { order: newOrder } )
 63044  *       updateQuery( { order: newOrder } )
 64824  *   />
 63054  *   />
 64825  * );
 63055  * );
 64826  * ```
 63056  * ```
 64827  */
 63057  */
 64828 function QueryControls({
 63058 function QueryControls({
 64829   __next40pxDefaultSize = false,
       
 64830   authorList,
 63059   authorList,
 64831   selectedAuthorId,
 63060   selectedAuthorId,
 64832   numberOfItems,
 63061   numberOfItems,
 64833   order,
 63062   order,
 64834   orderBy,
 63063   orderBy,
       
 63064   orderByOptions = defaultOrderByOptions,
 64835   maxItems = DEFAULT_MAX_ITEMS,
 63065   maxItems = DEFAULT_MAX_ITEMS,
 64836   minItems = DEFAULT_MIN_ITEMS,
 63066   minItems = DEFAULT_MIN_ITEMS,
 64837   onAuthorChange,
 63067   onAuthorChange,
 64838   onNumberOfItemsChange,
 63068   onNumberOfItemsChange,
 64839   onOrderChange,
 63069   onOrderChange,
 64845   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
 63075   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
 64846     spacing: "4",
 63076     spacing: "4",
 64847     className: "components-query-controls",
 63077     className: "components-query-controls",
 64848     children: [onOrderChange && onOrderByChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
 63078     children: [onOrderChange && onOrderByChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(select_control, {
 64849       __nextHasNoMarginBottom: true,
 63079       __nextHasNoMarginBottom: true,
 64850       __next40pxDefaultSize: __next40pxDefaultSize,
 63080       __next40pxDefaultSize: true,
 64851       label: (0,external_wp_i18n_namespaceObject.__)('Order by'),
 63081       label: (0,external_wp_i18n_namespaceObject.__)('Order by'),
 64852       value: `${orderBy}/${order}`,
 63082       value: orderBy === undefined || order === undefined ? undefined : `${orderBy}/${order}`,
 64853       options: [{
 63083       options: orderByOptions,
 64854         label: (0,external_wp_i18n_namespaceObject.__)('Newest to oldest'),
       
 64855         value: 'date/desc'
       
 64856       }, {
       
 64857         label: (0,external_wp_i18n_namespaceObject.__)('Oldest to newest'),
       
 64858         value: 'date/asc'
       
 64859       }, {
       
 64860         /* translators: Label for ordering posts by title in ascending order. */
       
 64861         label: (0,external_wp_i18n_namespaceObject.__)('A → Z'),
       
 64862         value: 'title/asc'
       
 64863       }, {
       
 64864         /* translators: Label for ordering posts by title in descending order. */
       
 64865         label: (0,external_wp_i18n_namespaceObject.__)('Z → A'),
       
 64866         value: 'title/desc'
       
 64867       }],
       
 64868       onChange: value => {
 63084       onChange: value => {
 64869         if (typeof value !== 'string') {
 63085         if (typeof value !== 'string') {
 64870           return;
 63086           return;
 64871         }
 63087         }
 64872         const [newOrderBy, newOrder] = value.split('/');
 63088         const [newOrderBy, newOrder] = value.split('/');
 64876         if (newOrderBy !== orderBy) {
 63092         if (newOrderBy !== orderBy) {
 64877           onOrderByChange(newOrderBy);
 63093           onOrderByChange(newOrderBy);
 64878         }
 63094         }
 64879       }
 63095       }
 64880     }, "query-controls-order-select"), isSingleCategorySelection(props) && props.categoriesList && props.onCategoryChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategorySelect, {
 63096     }, "query-controls-order-select"), isSingleCategorySelection(props) && props.categoriesList && props.onCategoryChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(CategorySelect, {
 64881       __next40pxDefaultSize: __next40pxDefaultSize,
 63097       __next40pxDefaultSize: true,
 64882       categoriesList: props.categoriesList,
 63098       categoriesList: props.categoriesList,
 64883       label: (0,external_wp_i18n_namespaceObject.__)('Category'),
 63099       label: (0,external_wp_i18n_namespaceObject.__)('Category'),
 64884       noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'categories'),
 63100       noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'categories'),
 64885       selectedCategoryId: props.selectedCategoryId,
 63101       selectedCategoryId: props.selectedCategoryId,
 64886       onChange: props.onCategoryChange
 63102       onChange: props.onCategoryChange
 64887     }, "query-controls-category-select"), isMultipleCategorySelection(props) && props.categorySuggestions && props.onCategoryChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(form_token_field, {
 63103     }, "query-controls-category-select"), isMultipleCategorySelection(props) && props.categorySuggestions && props.onCategoryChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(form_token_field, {
 64888       __next40pxDefaultSize: __next40pxDefaultSize,
 63104       __next40pxDefaultSize: true,
 64889       __nextHasNoMarginBottom: true,
 63105       __nextHasNoMarginBottom: true,
 64890       label: (0,external_wp_i18n_namespaceObject.__)('Categories'),
 63106       label: (0,external_wp_i18n_namespaceObject.__)('Categories'),
 64891       value: props.selectedCategories && props.selectedCategories.map(item => ({
 63107       value: props.selectedCategories && props.selectedCategories.map(item => ({
 64892         id: item.id,
 63108         id: item.id,
 64893         // Keeping the fallback to `item.value` for legacy reasons,
 63109         // Keeping the fallback to `item.value` for legacy reasons,
 64898       })),
 63114       })),
 64899       suggestions: Object.keys(props.categorySuggestions),
 63115       suggestions: Object.keys(props.categorySuggestions),
 64900       onChange: props.onCategoryChange,
 63116       onChange: props.onCategoryChange,
 64901       maxSuggestions: MAX_CATEGORIES_SUGGESTIONS
 63117       maxSuggestions: MAX_CATEGORIES_SUGGESTIONS
 64902     }, "query-controls-categories-select"), onAuthorChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AuthorSelect, {
 63118     }, "query-controls-categories-select"), onAuthorChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(AuthorSelect, {
 64903       __next40pxDefaultSize: __next40pxDefaultSize,
 63119       __next40pxDefaultSize: true,
 64904       authorList: authorList,
 63120       authorList: authorList,
 64905       label: (0,external_wp_i18n_namespaceObject.__)('Author'),
 63121       label: (0,external_wp_i18n_namespaceObject.__)('Author'),
 64906       noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'authors'),
 63122       noOptionLabel: (0,external_wp_i18n_namespaceObject._x)('All', 'authors'),
 64907       selectedAuthorId: selectedAuthorId,
 63123       selectedAuthorId: selectedAuthorId,
 64908       onChange: onAuthorChange
 63124       onChange: onAuthorChange
 64909     }, "query-controls-author-select"), onNumberOfItemsChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control, {
 63125     }, "query-controls-author-select"), onNumberOfItemsChange && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(range_control, {
 64910       __nextHasNoMarginBottom: true,
 63126       __nextHasNoMarginBottom: true,
 64911       __next40pxDefaultSize: __next40pxDefaultSize,
 63127       __next40pxDefaultSize: true,
 64912       label: (0,external_wp_i18n_namespaceObject.__)('Number of items'),
 63128       label: (0,external_wp_i18n_namespaceObject.__)('Number of items'),
 64913       value: numberOfItems,
 63129       value: numberOfItems,
 64914       onChange: onNumberOfItemsChange,
 63130       onChange: onNumberOfItemsChange,
 64915       min: minItems,
 63131       min: minItems,
 64916       max: maxItems,
 63132       max: maxItems,
 64918     }, "query-controls-range-control")]
 63134     }, "query-controls-range-control")]
 64919   });
 63135   });
 64920 }
 63136 }
 64921 /* harmony default export */ const query_controls = (QueryControls);
 63137 /* harmony default export */ const query_controls = (QueryControls);
 64922 
 63138 
 64923 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-group/context.js
 63139 ;// ./node_modules/@wordpress/components/build-module/radio-group/context.js
 64924 /**
 63140 /**
 64925  * External dependencies
 63141  * External dependencies
 64926  */
 63142  */
 64927 // eslint-disable-next-line no-restricted-imports
       
 64928 
 63143 
 64929 /**
 63144 /**
 64930  * WordPress dependencies
 63145  * WordPress dependencies
 64931  */
 63146  */
 64932 
 63147 
 64933 const RadioGroupContext = (0,external_wp_element_namespaceObject.createContext)({
 63148 const RadioGroupContext = (0,external_wp_element_namespaceObject.createContext)({
 64934   store: undefined,
 63149   store: undefined,
 64935   disabled: undefined
 63150   disabled: undefined
 64936 });
 63151 });
 64937 
 63152 
 64938 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-group/radio.js
 63153 ;// ./node_modules/@wordpress/components/build-module/radio-group/radio.js
 64939 /**
 63154 /**
 64940  * WordPress dependencies
 63155  * WordPress dependencies
 64941  */
 63156  */
 64942 
 63157 
 64943 
 63158 
 64944 /**
 63159 /**
 64945  * External dependencies
 63160  * External dependencies
 64946  */
 63161  */
 64947 // eslint-disable-next-line no-restricted-imports
       
 64948 
 63162 
 64949 
 63163 
 64950 /**
 63164 /**
 64951  * Internal dependencies
 63165  * Internal dependencies
 64952  */
 63166  */
       
 63167 
 64953 
 63168 
 64954 
 63169 
 64955 
 63170 
 64956 function UnforwardedRadio({
 63171 function UnforwardedRadio({
 64957   value,
 63172   value,
 64960 }, ref) {
 63175 }, ref) {
 64961   const {
 63176   const {
 64962     store,
 63177     store,
 64963     disabled
 63178     disabled
 64964   } = (0,external_wp_element_namespaceObject.useContext)(RadioGroupContext);
 63179   } = (0,external_wp_element_namespaceObject.useContext)(RadioGroupContext);
 64965   const selectedValue = store?.useState('value');
 63180   const selectedValue = useStoreState(store, 'value');
 64966   const isChecked = selectedValue !== undefined && selectedValue === value;
 63181   const isChecked = selectedValue !== undefined && selectedValue === value;
       
 63182   maybeWarnDeprecated36pxSize({
       
 63183     componentName: 'Radio',
       
 63184     size: undefined,
       
 63185     __next40pxDefaultSize: props.__next40pxDefaultSize
       
 63186   });
 64967   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Radio, {
 63187   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Radio, {
 64968     disabled: disabled,
 63188     disabled: disabled,
 64969     store: store,
 63189     store: store,
 64970     ref: ref,
 63190     ref: ref,
 64971     value: value,
 63191     value: value,
 64981  * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.
 63201  * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.
 64982  */
 63202  */
 64983 const radio_Radio = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedRadio);
 63203 const radio_Radio = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedRadio);
 64984 /* harmony default export */ const radio_group_radio = (radio_Radio);
 63204 /* harmony default export */ const radio_group_radio = (radio_Radio);
 64985 
 63205 
 64986 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-group/index.js
 63206 ;// ./node_modules/@wordpress/components/build-module/radio-group/index.js
 64987 /**
 63207 /**
 64988  * External dependencies
 63208  * External dependencies
 64989  */
 63209  */
 64990 // eslint-disable-next-line no-restricted-imports
       
 64991 
 63210 
 64992 
 63211 
 64993 /**
 63212 /**
 64994  * WordPress dependencies
 63213  * WordPress dependencies
 64995  */
 63214  */
       
 63215 
       
 63216 
 64996 
 63217 
 64997 
 63218 
 64998 /**
 63219 /**
 64999  * Internal dependencies
 63220  * Internal dependencies
 65000  */
 63221  */
 65013   const radioStore = useRadioStore({
 63234   const radioStore = useRadioStore({
 65014     value: checked,
 63235     value: checked,
 65015     defaultValue: defaultChecked,
 63236     defaultValue: defaultChecked,
 65016     setValue: newValue => {
 63237     setValue: newValue => {
 65017       onChange?.(newValue !== null && newValue !== void 0 ? newValue : undefined);
 63238       onChange?.(newValue !== null && newValue !== void 0 ? newValue : undefined);
 65018     }
 63239     },
       
 63240     rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
 65019   });
 63241   });
 65020   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 63242   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 65021     store: radioStore,
 63243     store: radioStore,
 65022     disabled
 63244     disabled
 65023   }), [radioStore, disabled]);
 63245   }), [radioStore, disabled]);
       
 63246   external_wp_deprecated_default()('wp.components.__experimentalRadioGroup', {
       
 63247     alternative: 'wp.components.RadioControl or wp.components.__experimentalToggleGroupControl',
       
 63248     since: '6.8'
       
 63249   });
 65024   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroupContext.Provider, {
 63250   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroupContext.Provider, {
 65025     value: contextValue,
 63251     value: contextValue,
 65026     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroup, {
 63252     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RadioGroup, {
 65027       store: radioStore,
 63253       store: radioStore,
 65028       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(button_group, {
 63254       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(button_group, {
       
 63255         __shouldNotWarnDeprecated: true,
 65029         children: children
 63256         children: children
 65030       }),
 63257       }),
 65031       "aria-label": label,
 63258       "aria-label": label,
 65032       ref: ref,
 63259       ref: ref,
 65033       ...props
 63260       ...props
 65039  * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.
 63266  * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.
 65040  */
 63267  */
 65041 const radio_group_RadioGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedRadioGroup);
 63268 const radio_group_RadioGroup = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedRadioGroup);
 65042 /* harmony default export */ const radio_group = (radio_group_RadioGroup);
 63269 /* harmony default export */ const radio_group = (radio_group_RadioGroup);
 65043 
 63270 
 65044 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-control/index.js
 63271 ;// ./node_modules/@wordpress/components/build-module/radio-control/index.js
 65045 /**
 63272 /**
 65046  * External dependencies
 63273  * External dependencies
 65047  */
 63274  */
 65048 
 63275 
 65049 /**
 63276 /**
 65054 /**
 63281 /**
 65055  * Internal dependencies
 63282  * Internal dependencies
 65056  */
 63283  */
 65057 
 63284 
 65058 
 63285 
       
 63286 
       
 63287 
       
 63288 
       
 63289 function generateOptionDescriptionId(radioGroupId, index) {
       
 63290   return `${radioGroupId}-${index}-option-description`;
       
 63291 }
       
 63292 function generateOptionId(radioGroupId, index) {
       
 63293   return `${radioGroupId}-${index}`;
       
 63294 }
       
 63295 function generateHelpId(radioGroupId) {
       
 63296   return `${radioGroupId}__help`;
       
 63297 }
 65059 
 63298 
 65060 /**
 63299 /**
 65061  * Render a user interface to select the user type using radio inputs.
 63300  * Render a user interface to select the user type using radio inputs.
 65062  *
 63301  *
 65063  * ```jsx
 63302  * ```jsx
 65080  *     />
 63319  *     />
 65081  *   );
 63320  *   );
 65082  * };
 63321  * };
 65083  * ```
 63322  * ```
 65084  */
 63323  */
 65085 
       
 65086 
       
 65087 function RadioControl(props) {
 63324 function RadioControl(props) {
 65088   const {
 63325   const {
 65089     label,
 63326     label,
 65090     className,
 63327     className,
 65091     selected,
 63328     selected,
 65092     help,
 63329     help,
 65093     onChange,
 63330     onChange,
 65094     hideLabelFromVision,
 63331     hideLabelFromVision,
 65095     options = [],
 63332     options = [],
       
 63333     id: preferredId,
 65096     ...additionalProps
 63334     ...additionalProps
 65097   } = props;
 63335   } = props;
 65098   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(RadioControl);
 63336   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(RadioControl, 'inspector-radio-control', preferredId);
 65099   const id = `inspector-radio-control-${instanceId}`;
       
 65100   const onChangeValue = event => onChange(event.target.value);
 63337   const onChangeValue = event => onChange(event.target.value);
 65101   if (!options?.length) {
 63338   if (!options?.length) {
 65102     return null;
 63339     return null;
 65103   }
 63340   }
 65104   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 63341   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("fieldset", {
 65105     __nextHasNoMarginBottom: true,
       
 65106     label: label,
       
 65107     id: id,
 63342     id: id,
 65108     hideLabelFromVision: hideLabelFromVision,
       
 65109     help: help,
       
 65110     className: dist_clsx(className, 'components-radio-control'),
 63343     className: dist_clsx(className, 'components-radio-control'),
 65111     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
 63344     "aria-describedby": !!help ? generateHelpId(id) : undefined,
 65112       spacing: 1,
 63345     children: [hideLabelFromVision ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(visually_hidden_component, {
       
 63346       as: "legend",
       
 63347       children: label
       
 63348     }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control.VisualLabel, {
       
 63349       as: "legend",
       
 63350       children: label
       
 63351     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(v_stack_component, {
       
 63352       spacing: 3,
       
 63353       className: dist_clsx('components-radio-control__group-wrapper', {
       
 63354         'has-help': !!help
       
 63355       }),
 65113       children: options.map((option, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 63356       children: options.map((option, index) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 65114         className: "components-radio-control__option",
 63357         className: "components-radio-control__option",
 65115         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
 63358         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("input", {
 65116           id: `${id}-${index}`,
 63359           id: generateOptionId(id, index),
 65117           className: "components-radio-control__input",
 63360           className: "components-radio-control__input",
 65118           type: "radio",
 63361           type: "radio",
 65119           name: id,
 63362           name: id,
 65120           value: option.value,
 63363           value: option.value,
 65121           onChange: onChangeValue,
 63364           onChange: onChangeValue,
 65122           checked: option.value === selected,
 63365           checked: option.value === selected,
 65123           "aria-describedby": !!help ? `${id}__help` : undefined,
 63366           "aria-describedby": !!option.description ? generateOptionDescriptionId(id, index) : undefined,
 65124           ...additionalProps
 63367           ...additionalProps
 65125         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
 63368         }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("label", {
 65126           className: "components-radio-control__label",
 63369           className: "components-radio-control__label",
 65127           htmlFor: `${id}-${index}`,
 63370           htmlFor: generateOptionId(id, index),
 65128           children: option.label
 63371           children: option.label
 65129         })]
 63372         }), !!option.description ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledHelp, {
 65130       }, `${id}-${index}`))
 63373           __nextHasNoMarginBottom: true,
 65131     })
 63374           id: generateOptionDescriptionId(id, index),
       
 63375           className: "components-radio-control__option-description",
       
 63376           children: option.description
       
 63377         }) : null]
       
 63378       }, generateOptionId(id, index)))
       
 63379     }), !!help && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledHelp, {
       
 63380       __nextHasNoMarginBottom: true,
       
 63381       id: generateHelpId(id),
       
 63382       className: "components-base-control__help",
       
 63383       children: help
       
 63384     })]
 65132   });
 63385   });
 65133 }
 63386 }
 65134 /* harmony default export */ const radio_control = (RadioControl);
 63387 /* harmony default export */ const radio_control = (RadioControl);
 65135 
 63388 
 65136 ;// CONCATENATED MODULE: ./node_modules/re-resizable/lib/resizer.js
 63389 ;// ./node_modules/re-resizable/lib/resizer.js
 65137 var resizer_extends = (undefined && undefined.__extends) || (function () {
 63390 var resizer_extends = (undefined && undefined.__extends) || (function () {
 65138     var extendStatics = function (d, b) {
 63391     var extendStatics = function (d, b) {
 65139         extendStatics = Object.setPrototypeOf ||
 63392         extendStatics = Object.setPrototypeOf ||
 65140             ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
 63393             ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
 65141             function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
 63394             function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
 65205     };
 63458     };
 65206     return Resizer;
 63459     return Resizer;
 65207 }(external_React_.PureComponent));
 63460 }(external_React_.PureComponent));
 65208 
 63461 
 65209 
 63462 
 65210 ;// CONCATENATED MODULE: ./node_modules/re-resizable/lib/index.js
 63463 ;// ./node_modules/re-resizable/lib/index.js
 65211 var lib_extends = (undefined && undefined.__extends) || (function () {
 63464 var lib_extends = (undefined && undefined.__extends) || (function () {
 65212     var extendStatics = function (d, b) {
 63465     var extendStatics = function (d, b) {
 65213         extendStatics = Object.setPrototypeOf ||
 63466         extendStatics = Object.setPrototypeOf ||
 65214             ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
 63467             ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
 65215             function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
 63468             function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
 65963     };
 64216     };
 65964     return Resizable;
 64217     return Resizable;
 65965 }(external_React_.PureComponent));
 64218 }(external_React_.PureComponent));
 65966 
 64219 
 65967 
 64220 
 65968 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/utils.js
 64221 ;// ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/utils.js
 65969 /**
 64222 /**
 65970  * WordPress dependencies
 64223  * WordPress dependencies
 65971  */
 64224  */
 65972 
 64225 
 65973 
 64226 
 66169     return `${height}${labelUnit}`;
 64422     return `${height}${labelUnit}`;
 66170   }
 64423   }
 66171   return undefined;
 64424   return undefined;
 66172 }
 64425 }
 66173 
 64426 
 66174 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js
 64427 ;// ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js
 66175 
 64428 
 66176 function resize_tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 64429 function resize_tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 66177 /**
 64430 /**
 66178  * External dependencies
 64431  * External dependencies
 66179  */
 64432  */
 66195   name: "ajymcs",
 64448   name: "ajymcs",
 66196   styles: "align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"
 64449   styles: "align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"
 66197 } : 0);
 64450 } : 0);
 66198 const resize_tooltip_styles_Tooltip = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 64451 const resize_tooltip_styles_Tooltip = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 66199   target: "e1wq7y4k1"
 64452   target: "e1wq7y4k1"
 66200 } : 0)("background:", COLORS.theme.foreground, ";border-radius:2px;box-sizing:border-box;font-family:", font('default.fontFamily'), ";font-size:12px;color:", COLORS.theme.foregroundInverted, ";padding:4px 8px;position:relative;" + ( true ? "" : 0));
 64453 } : 0)("background:", COLORS.theme.foreground, ";border-radius:", config_values.radiusSmall, ";box-sizing:border-box;font-family:", font('default.fontFamily'), ";font-size:12px;color:", COLORS.theme.foregroundInverted, ";padding:4px 8px;position:relative;" + ( true ? "" : 0));
 66201 
 64454 
 66202 // TODO: Resolve need to use &&& to increase specificity
 64455 // TODO: Resolve need to use &&& to increase specificity
 66203 // https://github.com/WordPress/gutenberg/issues/18483
 64456 // https://github.com/WordPress/gutenberg/issues/18483
 66204 
 64457 
 66205 const LabelText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
 64458 const LabelText = /*#__PURE__*/emotion_styled_base_browser_esm(text_component,  true ? {
 66206   target: "e1wq7y4k0"
 64459   target: "e1wq7y4k0"
 66207 } : 0)("&&&{color:", COLORS.theme.foregroundInverted, ";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}" + ( true ? "" : 0));
 64460 } : 0)("&&&{color:", COLORS.theme.foregroundInverted, ";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}" + ( true ? "" : 0));
 66208 
 64461 
 66209 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/label.js
 64462 ;// ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/label.js
 66210 /**
 64463 /**
 66211  * External dependencies
 64464  * External dependencies
 66212  */
 64465  */
 66213 
 64466 
 66214 /**
 64467 /**
 66281   });
 64534   });
 66282 }
 64535 }
 66283 const label_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(resize_tooltip_label_Label);
 64536 const label_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(resize_tooltip_label_Label);
 66284 /* harmony default export */ const resize_tooltip_label = (label_ForwardedComponent);
 64537 /* harmony default export */ const resize_tooltip_label = (label_ForwardedComponent);
 66285 
 64538 
 66286 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/index.js
 64539 ;// ./node_modules/@wordpress/components/build-module/resizable-box/resize-tooltip/index.js
 66287 /**
 64540 /**
 66288  * External dependencies
 64541  * External dependencies
 66289  */
 64542  */
 66290 
 64543 
 66291 /**
 64544 /**
 66294 
 64547 
 66295 
 64548 
 66296 /**
 64549 /**
 66297  * Internal dependencies
 64550  * Internal dependencies
 66298  */
 64551  */
 66299 
       
 66300 
 64552 
 66301 
 64553 
 66302 
 64554 
 66303 
 64555 
 66304 const resize_tooltip_noop = () => {};
 64556 const resize_tooltip_noop = () => {};
 66343   });
 64595   });
 66344 }
 64596 }
 66345 const resize_tooltip_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(ResizeTooltip);
 64597 const resize_tooltip_ForwardedComponent = (0,external_wp_element_namespaceObject.forwardRef)(ResizeTooltip);
 66346 /* harmony default export */ const resize_tooltip = (resize_tooltip_ForwardedComponent);
 64598 /* harmony default export */ const resize_tooltip = (resize_tooltip_ForwardedComponent);
 66347 
 64599 
 66348 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/resizable-box/index.js
 64600 ;// ./node_modules/@wordpress/components/build-module/resizable-box/index.js
 66349 /**
 64601 /**
 66350  * WordPress dependencies
 64602  * WordPress dependencies
 66351  */
 64603  */
 66352 
 64604 
 66353 
 64605 
 66357 
 64609 
 66358 
 64610 
 66359 /**
 64611 /**
 66360  * Internal dependencies
 64612  * Internal dependencies
 66361  */
 64613  */
 66362 
       
 66363 
 64614 
 66364 
 64615 
 66365 const HANDLE_CLASS_NAME = 'components-resizable-box__handle';
 64616 const HANDLE_CLASS_NAME = 'components-resizable-box__handle';
 66366 const SIDE_HANDLE_CLASS_NAME = 'components-resizable-box__side-handle';
 64617 const SIDE_HANDLE_CLASS_NAME = 'components-resizable-box__side-handle';
 66367 const CORNER_HANDLE_CLASS_NAME = 'components-resizable-box__corner-handle';
 64618 const CORNER_HANDLE_CLASS_NAME = 'components-resizable-box__corner-handle';
 66402   __experimentalShowTooltip: showTooltip = false,
 64653   __experimentalShowTooltip: showTooltip = false,
 66403   __experimentalTooltipProps: tooltipProps = {},
 64654   __experimentalTooltipProps: tooltipProps = {},
 66404   ...props
 64655   ...props
 66405 }, ref) {
 64656 }, ref) {
 66406   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Resizable, {
 64657   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Resizable, {
 66407     className: dist_clsx('components-resizable-box__container', showHandle && 'has-show-handle', className),
 64658     className: dist_clsx('components-resizable-box__container', showHandle && 'has-show-handle', className)
       
 64659     // Add a focusable element within the drag handle. Unfortunately,
       
 64660     // `re-resizable` does not make them properly focusable by default,
       
 64661     // causing focus to move the the block wrapper which triggers block
       
 64662     // drag.
       
 64663     ,
       
 64664     handleComponent: Object.fromEntries(Object.keys(HANDLE_CLASSES).map(key => [key, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
       
 64665       tabIndex: -1
       
 64666     }, key)])),
 66408     handleClasses: HANDLE_CLASSES,
 64667     handleClasses: HANDLE_CLASSES,
 66409     handleStyles: HANDLE_STYLES,
 64668     handleStyles: HANDLE_STYLES,
 66410     ref: ref,
 64669     ref: ref,
 66411     ...props,
 64670     ...props,
 66412     children: [children, showTooltip && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(resize_tooltip, {
 64671     children: [children, showTooltip && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(resize_tooltip, {
 66415   });
 64674   });
 66416 }
 64675 }
 66417 const ResizableBox = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedResizableBox);
 64676 const ResizableBox = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedResizableBox);
 66418 /* harmony default export */ const resizable_box = (ResizableBox);
 64677 /* harmony default export */ const resizable_box = (ResizableBox);
 66419 
 64678 
 66420 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/responsive-wrapper/index.js
 64679 ;// ./node_modules/@wordpress/components/build-module/responsive-wrapper/index.js
 66421 /**
 64680 /**
 66422  * External dependencies
 64681  * External dependencies
 66423  */
 64682  */
 66424 
 64683 
 66425 
 64684 
 66475     })
 64734     })
 66476   });
 64735   });
 66477 }
 64736 }
 66478 /* harmony default export */ const responsive_wrapper = (ResponsiveWrapper);
 64737 /* harmony default export */ const responsive_wrapper = (ResponsiveWrapper);
 66479 
 64738 
 66480 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/sandbox/index.js
 64739 ;// ./node_modules/@wordpress/components/build-module/sandbox/index.js
 66481 /**
 64740 /**
 66482  * WordPress dependencies
 64741  * WordPress dependencies
 66483  */
 64742  */
 66484 
 64743 
 66485 
 64744 
 66486 
 64745 
 66487 /**
 64746 /**
 66488  * Internal dependencies
 64747  * Internal dependencies
 66489  */
 64748  */
 66490 
       
 66491 
 64749 
 66492 const observeAndResizeJS = function () {
 64750 const observeAndResizeJS = function () {
 66493   const {
 64751   const {
 66494     MutationObserver
 64752     MutationObserver
 66495   } = window;
 64753   } = window;
 66691     defaultView?.addEventListener('message', checkMessageForResize);
 64949     defaultView?.addEventListener('message', checkMessageForResize);
 66692     return () => {
 64950     return () => {
 66693       iframe?.removeEventListener('load', tryNoForceSandBox, false);
 64951       iframe?.removeEventListener('load', tryNoForceSandBox, false);
 66694       defaultView?.removeEventListener('message', checkMessageForResize);
 64952       defaultView?.removeEventListener('message', checkMessageForResize);
 66695     };
 64953     };
 66696     // Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.
 64954     // Passing `exhaustive-deps` will likely involve a more detailed refactor.
 66697     // See https://github.com/WordPress/gutenberg/pull/44378
 64955     // See https://github.com/WordPress/gutenberg/pull/44378
 66698     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 66699   }, []);
 64956   }, []);
 66700   (0,external_wp_element_namespaceObject.useEffect)(() => {
 64957   (0,external_wp_element_namespaceObject.useEffect)(() => {
 66701     trySandBox();
 64958     trySandBox();
 66702     // Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.
 64959     // Passing `exhaustive-deps` will likely involve a more detailed refactor.
 66703     // See https://github.com/WordPress/gutenberg/pull/44378
 64960     // See https://github.com/WordPress/gutenberg/pull/44378
 66704     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 66705   }, [title, styles, scripts]);
 64961   }, [title, styles, scripts]);
 66706   (0,external_wp_element_namespaceObject.useEffect)(() => {
 64962   (0,external_wp_element_namespaceObject.useEffect)(() => {
 66707     trySandBox(true);
 64963     trySandBox(true);
 66708     // Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.
 64964     // Passing `exhaustive-deps` will likely involve a more detailed refactor.
 66709     // See https://github.com/WordPress/gutenberg/pull/44378
 64965     // See https://github.com/WordPress/gutenberg/pull/44378
 66710     // eslint-disable-next-line react-hooks/exhaustive-deps
       
 66711   }, [html, type]);
 64966   }, [html, type]);
 66712   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("iframe", {
 64967   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("iframe", {
 66713     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, (0,external_wp_compose_namespaceObject.useFocusableIframe)()]),
 64968     ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, (0,external_wp_compose_namespaceObject.useFocusableIframe)()]),
 66714     title: title,
 64969     title: title,
 66715     tabIndex: tabIndex,
 64970     tabIndex: tabIndex,
 66720     height: Math.ceil(height)
 64975     height: Math.ceil(height)
 66721   });
 64976   });
 66722 }
 64977 }
 66723 /* harmony default export */ const sandbox = (SandBox);
 64978 /* harmony default export */ const sandbox = (SandBox);
 66724 
 64979 
 66725 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/index.js
 64980 ;// ./node_modules/@wordpress/components/build-module/snackbar/index.js
 66726 /**
 64981 /**
 66727  * External dependencies
 64982  * External dependencies
 66728  */
 64983  */
 66729 
 64984 
 66730 
 64985 
 66738 
 64993 
 66739 
 64994 
 66740 /**
 64995 /**
 66741  * Internal dependencies
 64996  * Internal dependencies
 66742  */
 64997  */
 66743 
       
 66744 
 64998 
 66745 
 64999 
 66746 const NOTICE_TIMEOUT = 10000;
 65000 const NOTICE_TIMEOUT = 10000;
 66747 
 65001 
 66748 /**
 65002 /**
 66794   }
 65048   }
 66795   snackbar_useSpokenMessage(spokenMessage, politeness);
 65049   snackbar_useSpokenMessage(spokenMessage, politeness);
 66796 
 65050 
 66797   // The `onDismiss/onRemove` can have unstable references,
 65051   // The `onDismiss/onRemove` can have unstable references,
 66798   // trigger side-effect cleanup, and reset timers.
 65052   // trigger side-effect cleanup, and reset timers.
 66799   const callbackRefs = (0,external_wp_element_namespaceObject.useRef)({
 65053   const callbacksRef = (0,external_wp_element_namespaceObject.useRef)({
 66800     onDismiss,
 65054     onDismiss,
 66801     onRemove
 65055     onRemove
 66802   });
 65056   });
 66803   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 65057   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 66804     callbackRefs.current = {
 65058     callbacksRef.current = {
 66805       onDismiss,
 65059       onDismiss,
 66806       onRemove
 65060       onRemove
 66807     };
 65061     };
 66808   });
 65062   });
 66809   (0,external_wp_element_namespaceObject.useEffect)(() => {
 65063   (0,external_wp_element_namespaceObject.useEffect)(() => {
 66810     // Only set up the timeout dismiss if we're not explicitly dismissing.
 65064     // Only set up the timeout dismiss if we're not explicitly dismissing.
 66811     const timeoutHandle = setTimeout(() => {
 65065     const timeoutHandle = setTimeout(() => {
 66812       if (!explicitDismiss) {
 65066       if (!explicitDismiss) {
 66813         callbackRefs.current.onDismiss?.();
 65067         callbacksRef.current.onDismiss?.();
 66814         callbackRefs.current.onRemove?.();
 65068         callbacksRef.current.onRemove?.();
 66815       }
 65069       }
 66816     }, NOTICE_TIMEOUT);
 65070     }, NOTICE_TIMEOUT);
 66817     return () => clearTimeout(timeoutHandle);
 65071     return () => clearTimeout(timeoutHandle);
 66818   }, [explicitDismiss]);
 65072   }, [explicitDismiss]);
 66819   const classes = dist_clsx(className, 'components-snackbar', {
 65073   const classes = dist_clsx(className, 'components-snackbar', {
 66846         label,
 65100         label,
 66847         onClick,
 65101         onClick,
 66848         url
 65102         url
 66849       }, index) => {
 65103       }, index) => {
 66850         return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 65104         return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 65105           __next40pxDefaultSize: true,
 66851           href: url,
 65106           href: url,
 66852           variant: "tertiary",
 65107           variant: "link",
 66853           onClick: event => onActionClick(event, onClick),
 65108           onClick: event => onActionClick(event, onClick),
 66854           className: "components-snackbar__action",
 65109           className: "components-snackbar__action",
 66855           children: label
 65110           children: label
 66856         }, index);
 65111         }, index);
 66857       }), explicitDismiss && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 65112       }), explicitDismiss && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
 66880  * ```
 65135  * ```
 66881  */
 65136  */
 66882 const Snackbar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSnackbar);
 65137 const Snackbar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSnackbar);
 66883 /* harmony default export */ const snackbar = (Snackbar);
 65138 /* harmony default export */ const snackbar = (Snackbar);
 66884 
 65139 
 66885 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/list.js
 65140 ;// ./node_modules/@wordpress/components/build-module/snackbar/list.js
 66886 /**
 65141 /**
 66887  * External dependencies
 65142  * External dependencies
 66888  */
 65143  */
 66889 
 65144 
 66890 
 65145 
 66895 
 65150 
 66896 
 65151 
 66897 /**
 65152 /**
 66898  * Internal dependencies
 65153  * Internal dependencies
 66899  */
 65154  */
 66900 
       
 66901 
 65155 
 66902 
 65156 
 66903 
 65157 
 66904 const SNACKBAR_VARIANTS = {
 65158 const SNACKBAR_VARIANTS = {
 66905   init: {
 65159   init: {
 66987     })]
 65241     })]
 66988   });
 65242   });
 66989 }
 65243 }
 66990 /* harmony default export */ const snackbar_list = (SnackbarList);
 65244 /* harmony default export */ const snackbar_list = (SnackbarList);
 66991 
 65245 
 66992 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spinner/styles.js
 65246 ;// ./node_modules/@wordpress/components/build-module/surface/component.js
 66993 
       
 66994 function spinner_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 66995 /**
       
 66996  * External dependencies
       
 66997  */
       
 66998 
       
 66999 
       
 67000 
       
 67001 /**
       
 67002  * Internal dependencies
       
 67003  */
       
 67004 
       
 67005 const spinAnimation = emotion_react_browser_esm_keyframes`
       
 67006 	from {
       
 67007 		transform: rotate(0deg);
       
 67008 	}
       
 67009 	to {
       
 67010 		transform: rotate(360deg);
       
 67011 	}
       
 67012  `;
       
 67013 const StyledSpinner = /*#__PURE__*/emotion_styled_base_browser_esm("svg",  true ? {
       
 67014   target: "ea4tfvq2"
       
 67015 } : 0)("width:", config_values.spinnerSize, "px;height:", config_values.spinnerSize, "px;display:inline-block;margin:5px 11px 0;position:relative;color:", COLORS.theme.accent, ";overflow:visible;opacity:1;background-color:transparent;" + ( true ? "" : 0));
       
 67016 const commonPathProps =  true ? {
       
 67017   name: "9s4963",
       
 67018   styles: "fill:transparent;stroke-width:1.5px"
       
 67019 } : 0;
       
 67020 const SpinnerTrack = /*#__PURE__*/emotion_styled_base_browser_esm("circle",  true ? {
       
 67021   target: "ea4tfvq1"
       
 67022 } : 0)(commonPathProps, ";stroke:", COLORS.gray[300], ";" + ( true ? "" : 0));
       
 67023 const SpinnerIndicator = /*#__PURE__*/emotion_styled_base_browser_esm("path",  true ? {
       
 67024   target: "ea4tfvq0"
       
 67025 } : 0)(commonPathProps, ";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ", spinAnimation, ";" + ( true ? "" : 0));
       
 67026 
       
 67027 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/spinner/index.js
       
 67028 /**
       
 67029  * External dependencies
       
 67030  */
       
 67031 
       
 67032 /**
       
 67033  * Internal dependencies
       
 67034  */
       
 67035 
       
 67036 /**
       
 67037  * WordPress dependencies
       
 67038  */
       
 67039 
       
 67040 
       
 67041 
       
 67042 function UnforwardedSpinner({
       
 67043   className,
       
 67044   ...props
       
 67045 }, forwardedRef) {
       
 67046   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(StyledSpinner, {
       
 67047     className: dist_clsx('components-spinner', className),
       
 67048     viewBox: "0 0 100 100",
       
 67049     width: "16",
       
 67050     height: "16",
       
 67051     xmlns: "http://www.w3.org/2000/svg",
       
 67052     role: "presentation",
       
 67053     focusable: "false",
       
 67054     ...props,
       
 67055     ref: forwardedRef,
       
 67056     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerTrack, {
       
 67057       cx: "50",
       
 67058       cy: "50",
       
 67059       r: "50",
       
 67060       vectorEffect: "non-scaling-stroke"
       
 67061     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SpinnerIndicator, {
       
 67062       d: "m 50 0 a 50 50 0 0 1 50 50",
       
 67063       vectorEffect: "non-scaling-stroke"
       
 67064     })]
       
 67065   });
       
 67066 }
       
 67067 /**
       
 67068  * `Spinner` is a component used to notify users that their action is being processed.
       
 67069  *
       
 67070  * ```js
       
 67071  *   import { Spinner } from '@wordpress/components';
       
 67072  *
       
 67073  *   function Example() {
       
 67074  *     return <Spinner />;
       
 67075  *   }
       
 67076  * ```
       
 67077  */
       
 67078 const Spinner = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedSpinner);
       
 67079 /* harmony default export */ const spinner = (Spinner);
       
 67080 
       
 67081 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/surface/component.js
       
 67082 /**
 65247 /**
 67083  * External dependencies
 65248  * External dependencies
 67084  */
 65249  */
 67085 
 65250 
 67086 /**
 65251 /**
 67119  * ```
 65284  * ```
 67120  */
 65285  */
 67121 const component_Surface = contextConnect(UnconnectedSurface, 'Surface');
 65286 const component_Surface = contextConnect(UnconnectedSurface, 'Surface');
 67122 /* harmony default export */ const surface_component = (component_Surface);
 65287 /* harmony default export */ const surface_component = (component_Surface);
 67123 
 65288 
 67124 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/tab/tab-store.js
 65289 ;// ./node_modules/@ariakit/core/esm/tab/tab-store.js
 67125 "use client";
 65290 "use client";
 67126 
 65291 
 67127 
 65292 
 67128 
 65293 
 67129 
 65294 
 67130 
 65295 
 67131 
 65296 
 67132 
 65297 
 67133 
 65298 
 67134 // src/tab/tab-store.ts
 65299 // src/tab/tab-store.ts
 67135 function createTabStore(props = {}) {
 65300 function createTabStore(_a = {}) {
 67136   var _a;
 65301   var _b = _a, {
 67137   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
 65302     composite: parentComposite,
 67138   const composite = createCompositeStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
 65303     combobox
       
 65304   } = _b, props = _3YLGPPWQ_objRest(_b, [
       
 65305     "composite",
       
 65306     "combobox"
       
 65307   ]);
       
 65308   const independentKeys = [
       
 65309     "items",
       
 65310     "renderedItems",
       
 65311     "moves",
       
 65312     "orientation",
       
 65313     "virtualFocus",
       
 65314     "includesBaseElement",
       
 65315     "baseElement",
       
 65316     "focusLoop",
       
 65317     "focusShift",
       
 65318     "focusWrap"
       
 65319   ];
       
 65320   const store = mergeStore(
       
 65321     props.store,
       
 65322     omit2(parentComposite, independentKeys),
       
 65323     omit2(combobox, independentKeys)
       
 65324   );
       
 65325   const syncState = store == null ? void 0 : store.getState();
       
 65326   const composite = createCompositeStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
       
 65327     store,
       
 65328     // We need to explicitly set the default value of `includesBaseElement` to
       
 65329     // `false` since we don't want the composite store to default it to `true`
       
 65330     // when the activeId state is null, which could be the case when rendering
       
 65331     // combobox with tab.
       
 65332     includesBaseElement: defaultValue(
       
 65333       props.includesBaseElement,
       
 65334       syncState == null ? void 0 : syncState.includesBaseElement,
       
 65335       false
       
 65336     ),
 67139     orientation: defaultValue(
 65337     orientation: defaultValue(
 67140       props.orientation,
 65338       props.orientation,
 67141       syncState == null ? void 0 : syncState.orientation,
 65339       syncState == null ? void 0 : syncState.orientation,
 67142       "horizontal"
 65340       "horizontal"
 67143     ),
 65341     ),
 67144     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
 65342     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
 67145   }));
 65343   }));
 67146   const panels = createCollectionStore();
 65344   const panels = createCollectionStore();
 67147   const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, composite.getState()), {
 65345   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, composite.getState()), {
 67148     selectedId: defaultValue(
 65346     selectedId: defaultValue(
 67149       props.selectedId,
 65347       props.selectedId,
 67150       syncState == null ? void 0 : syncState.selectedId,
 65348       syncState == null ? void 0 : syncState.selectedId,
 67151       props.defaultSelectedId,
 65349       props.defaultSelectedId
 67152       void 0
       
 67153     ),
 65350     ),
 67154     selectOnMove: defaultValue(
 65351     selectOnMove: defaultValue(
 67155       props.selectOnMove,
 65352       props.selectOnMove,
 67156       syncState == null ? void 0 : syncState.selectOnMove,
 65353       syncState == null ? void 0 : syncState.selectOnMove,
 67157       true
 65354       true
 67158     )
 65355     )
 67159   });
 65356   });
 67160   const tab = createStore(initialState, composite, props.store);
 65357   const tab = createStore(initialState, composite, store);
 67161   setup(
 65358   setup(
 67162     tab,
 65359     tab,
 67163     () => sync(tab, ["moves"], () => {
 65360     () => sync(tab, ["moves"], () => {
 67164       const { activeId, selectOnMove } = tab.getState();
 65361       const { activeId, selectOnMove } = tab.getState();
 67165       if (!selectOnMove)
 65362       if (!selectOnMove) return;
       
 65363       if (!activeId) return;
       
 65364       const tabItem = composite.item(activeId);
       
 65365       if (!tabItem) return;
       
 65366       if (tabItem.dimmed) return;
       
 65367       if (tabItem.disabled) return;
       
 65368       tab.setState("selectedId", tabItem.id);
       
 65369     })
       
 65370   );
       
 65371   let syncActiveId = true;
       
 65372   setup(
       
 65373     tab,
       
 65374     () => batch(tab, ["selectedId"], (state, prev) => {
       
 65375       if (!syncActiveId) {
       
 65376         syncActiveId = true;
 67166         return;
 65377         return;
 67167       if (!activeId)
 65378       }
 67168         return;
 65379       if (parentComposite && state.selectedId === prev.selectedId) return;
 67169       const tabItem = composite.item(activeId);
 65380       tab.setState("activeId", state.selectedId);
 67170       if (!tabItem)
       
 67171         return;
       
 67172       if (tabItem.dimmed)
       
 67173         return;
       
 67174       if (tabItem.disabled)
       
 67175         return;
       
 67176       tab.setState("selectedId", tabItem.id);
       
 67177     })
 65381     })
 67178   );
 65382   );
 67179   setup(
 65383   setup(
 67180     tab,
 65384     tab,
 67181     () => batch(
       
 67182       tab,
       
 67183       ["selectedId"],
       
 67184       (state) => tab.setState("activeId", state.selectedId)
       
 67185     )
       
 67186   );
       
 67187   setup(
       
 67188     tab,
       
 67189     () => sync(tab, ["selectedId", "renderedItems"], (state) => {
 65385     () => sync(tab, ["selectedId", "renderedItems"], (state) => {
 67190       if (state.selectedId !== void 0)
 65386       if (state.selectedId !== void 0) return;
 67191         return;
       
 67192       const { activeId, renderedItems } = tab.getState();
 65387       const { activeId, renderedItems } = tab.getState();
 67193       const tabItem = composite.item(activeId);
 65388       const tabItem = composite.item(activeId);
 67194       if (tabItem && !tabItem.disabled && !tabItem.dimmed) {
 65389       if (tabItem && !tabItem.disabled && !tabItem.dimmed) {
 67195         tab.setState("selectedId", tabItem.id);
 65390         tab.setState("selectedId", tabItem.id);
 67196       } else {
 65391       } else {
 67203   );
 65398   );
 67204   setup(
 65399   setup(
 67205     tab,
 65400     tab,
 67206     () => sync(tab, ["renderedItems"], (state) => {
 65401     () => sync(tab, ["renderedItems"], (state) => {
 67207       const tabs = state.renderedItems;
 65402       const tabs = state.renderedItems;
 67208       if (!tabs.length)
 65403       if (!tabs.length) return;
 67209         return;
       
 67210       return sync(panels, ["renderedItems"], (state2) => {
 65404       return sync(panels, ["renderedItems"], (state2) => {
 67211         const items = state2.renderedItems;
 65405         const items = state2.renderedItems;
 67212         const hasOrphanPanels = items.some((panel) => !panel.tabId);
 65406         const hasOrphanPanels = items.some((panel) => !panel.tabId);
 67213         if (!hasOrphanPanels)
 65407         if (!hasOrphanPanels) return;
 67214           return;
       
 67215         items.forEach((panel, i) => {
 65408         items.forEach((panel, i) => {
 67216           if (panel.tabId)
 65409           if (panel.tabId) return;
 67217             return;
       
 67218           const tabItem = tabs[i];
 65410           const tabItem = tabs[i];
 67219           if (!tabItem)
 65411           if (!tabItem) return;
 67220             return;
 65412           panels.renderItem(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, panel), { tabId: tabItem.id }));
 67221           panels.renderItem(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, panel), { tabId: tabItem.id }));
       
 67222         });
 65413         });
 67223       });
 65414       });
 67224     })
 65415     })
 67225   );
 65416   );
 67226   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, composite), tab), {
 65417   let selectedIdFromSelectedValue = null;
       
 65418   setup(tab, () => {
       
 65419     const backupSelectedId = () => {
       
 65420       selectedIdFromSelectedValue = tab.getState().selectedId;
       
 65421     };
       
 65422     const restoreSelectedId = () => {
       
 65423       syncActiveId = false;
       
 65424       tab.setState("selectedId", selectedIdFromSelectedValue);
       
 65425     };
       
 65426     if (parentComposite && "setSelectElement" in parentComposite) {
       
 65427       return chain(
       
 65428         sync(parentComposite, ["value"], backupSelectedId),
       
 65429         sync(parentComposite, ["mounted"], restoreSelectedId)
       
 65430       );
       
 65431     }
       
 65432     if (!combobox) return;
       
 65433     return chain(
       
 65434       sync(combobox, ["selectedValue"], backupSelectedId),
       
 65435       sync(combobox, ["mounted"], restoreSelectedId)
       
 65436     );
       
 65437   });
       
 65438   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, composite), tab), {
 67227     panels,
 65439     panels,
 67228     setSelectedId: (id) => tab.setState("selectedId", id),
 65440     setSelectedId: (id) => tab.setState("selectedId", id),
 67229     select: (id) => {
 65441     select: (id) => {
 67230       tab.setState("selectedId", id);
 65442       tab.setState("selectedId", id);
 67231       composite.move(id);
 65443       composite.move(id);
 67232     }
 65444     }
 67233   });
 65445   });
 67234 }
 65446 }
 67235 
 65447 
 67236 
 65448 
 67237 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/CQMDBRG5.js
 65449 ;// ./node_modules/@ariakit/react-core/esm/__chunks/PY4NZ6HS.js
 67238 "use client";
 65450 "use client";
 67239 
 65451 
 67240 
 65452 
 67241 
 65453 
 67242 
 65454 
 67243 
 65455 
       
 65456 
       
 65457 
 67244 // src/tab/tab-store.ts
 65458 // src/tab/tab-store.ts
 67245 
 65459 
 67246 
 65460 
 67247 function useTabStoreProps(store, update, props) {
 65461 function useTabStoreProps(store, update, props) {
       
 65462   useUpdateEffect(update, [props.composite, props.combobox]);
 67248   store = useCompositeStoreProps(store, update, props);
 65463   store = useCompositeStoreProps(store, update, props);
 67249   useStoreProps(store, props, "selectedId", "setSelectedId");
 65464   useStoreProps(store, props, "selectedId", "setSelectedId");
 67250   useStoreProps(store, props, "selectOnMove");
 65465   useStoreProps(store, props, "selectOnMove");
 67251   const [panels, updatePanels] = EKQEJRUF_useStore(() => store.panels, {});
 65466   const [panels, updatePanels] = YV4JVR4I_useStore(() => store.panels, {});
 67252   useUpdateEffect(updatePanels, [store, updatePanels]);
 65467   useUpdateEffect(updatePanels, [store, updatePanels]);
 67253   return (0,external_React_.useMemo)(() => _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, store), { panels }), [store, panels]);
 65468   return Object.assign(
       
 65469     (0,external_React_.useMemo)(() => _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, store), { panels }), [store, panels]),
       
 65470     { composite: props.composite, combobox: props.combobox }
       
 65471   );
 67254 }
 65472 }
 67255 function useTabStore(props = {}) {
 65473 function useTabStore(props = {}) {
 67256   const [store, update] = EKQEJRUF_useStore(createTabStore, props);
 65474   const combobox = useComboboxContext();
       
 65475   const composite = useSelectContext() || combobox;
       
 65476   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
 65477     composite: props.composite !== void 0 ? props.composite : composite,
       
 65478     combobox: props.combobox !== void 0 ? props.combobox : combobox
       
 65479   });
       
 65480   const [store, update] = YV4JVR4I_useStore(createTabStore, props);
 67257   return useTabStoreProps(store, update, props);
 65481   return useTabStoreProps(store, update, props);
 67258 }
 65482 }
 67259 
 65483 
 67260 
 65484 
 67261 
 65485 
 67262 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4B73HROV.js
 65486 ;// ./node_modules/@ariakit/react-core/esm/__chunks/UYGDZTLQ.js
 67263 "use client";
 65487 "use client";
 67264 
 65488 
 67265 
 65489 
 67266 
 65490 
 67267 // src/tab/tab-context.tsx
 65491 // src/tab/tab-context.tsx
 67268 var _4B73HROV_ctx = createStoreContext(
 65492 var UYGDZTLQ_ctx = createStoreContext(
 67269   [CompositeContextProvider],
 65493   [CompositeContextProvider],
 67270   [CompositeScopedContextProvider]
 65494   [CompositeScopedContextProvider]
 67271 );
 65495 );
 67272 var useTabContext = _4B73HROV_ctx.useContext;
 65496 var useTabContext = UYGDZTLQ_ctx.useContext;
 67273 var useTabScopedContext = _4B73HROV_ctx.useScopedContext;
 65497 var useTabScopedContext = UYGDZTLQ_ctx.useScopedContext;
 67274 var useTabProviderContext = _4B73HROV_ctx.useProviderContext;
 65498 var useTabProviderContext = UYGDZTLQ_ctx.useProviderContext;
 67275 var TabContextProvider = _4B73HROV_ctx.ContextProvider;
 65499 var TabContextProvider = UYGDZTLQ_ctx.ContextProvider;
 67276 var TabScopedContextProvider = _4B73HROV_ctx.ScopedContextProvider;
 65500 var TabScopedContextProvider = UYGDZTLQ_ctx.ScopedContextProvider;
 67277 
 65501 
 67278 
 65502 
 67279 
 65503 
 67280 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tab/tab-list.js
 65504 ;// ./node_modules/@ariakit/react-core/esm/tab/tab-list.js
 67281 "use client";
 65505 "use client";
 67282 
 65506 
 67283 
 65507 
 67284 
 65508 
 67285 
 65509 
 67292 
 65516 
 67293 
 65517 
 67294 // src/tab/tab-list.tsx
 65518 // src/tab/tab-list.tsx
 67295 
 65519 
 67296 
 65520 
 67297 var useTabList = createHook((_a) => {
 65521 var tab_list_TagName = "div";
 67298   var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 65522 var useTabList = createHook(
 67299   const context = useTabProviderContext();
 65523   function useTabList2(_a) {
       
 65524     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 65525     const context = useTabProviderContext();
       
 65526     store = store || context;
       
 65527     invariant(
       
 65528       store,
       
 65529        false && 0
       
 65530     );
       
 65531     const orientation = store.useState(
       
 65532       (state) => state.orientation === "both" ? void 0 : state.orientation
       
 65533     );
       
 65534     props = useWrapElement(
       
 65535       props,
       
 65536       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
       
 65537       [store]
       
 65538     );
       
 65539     if (store.composite) {
       
 65540       props = _3YLGPPWQ_spreadValues({
       
 65541         focusable: false
       
 65542       }, props);
       
 65543     }
       
 65544     props = _3YLGPPWQ_spreadValues({
       
 65545       role: "tablist",
       
 65546       "aria-orientation": orientation
       
 65547     }, props);
       
 65548     props = useComposite(_3YLGPPWQ_spreadValues({ store }, props));
       
 65549     return props;
       
 65550   }
       
 65551 );
       
 65552 var TabList = forwardRef2(function TabList2(props) {
       
 65553   const htmlProps = useTabList(props);
       
 65554   return LMDWO4NN_createElement(tab_list_TagName, htmlProps);
       
 65555 });
       
 65556 
       
 65557 
       
 65558 ;// ./node_modules/@ariakit/react-core/esm/tab/tab.js
       
 65559 "use client";
       
 65560 
       
 65561 
       
 65562 
       
 65563 
       
 65564 
       
 65565 
       
 65566 
       
 65567 
       
 65568 
       
 65569 
       
 65570 
       
 65571 
       
 65572 
       
 65573 
       
 65574 
       
 65575 // src/tab/tab.tsx
       
 65576 
       
 65577 
       
 65578 
       
 65579 var tab_TagName = "button";
       
 65580 var useTab = createHook(function useTab2(_a) {
       
 65581   var _b = _a, {
       
 65582     store,
       
 65583     getItem: getItemProp
       
 65584   } = _b, props = __objRest(_b, [
       
 65585     "store",
       
 65586     "getItem"
       
 65587   ]);
       
 65588   var _a2;
       
 65589   const context = useTabScopedContext();
 67300   store = store || context;
 65590   store = store || context;
 67301   invariant(
 65591   invariant(
 67302     store,
 65592     store,
 67303      false && 0
 65593      false && 0
 67304   );
 65594   );
 67305   const orientation = store.useState(
 65595   const defaultId = useId();
 67306     (state) => state.orientation === "both" ? void 0 : state.orientation
 65596   const id = props.id || defaultId;
       
 65597   const dimmed = disabledFromProps(props);
       
 65598   const getItem = (0,external_React_.useCallback)(
       
 65599     (item) => {
       
 65600       const nextItem = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, item), { dimmed });
       
 65601       if (getItemProp) {
       
 65602         return getItemProp(nextItem);
       
 65603       }
       
 65604       return nextItem;
       
 65605     },
       
 65606     [dimmed, getItemProp]
 67307   );
 65607   );
 67308   props = useWrapElement(
 65608   const onClickProp = props.onClick;
 67309     props,
 65609   const onClick = useEvent((event) => {
 67310     (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
 65610     onClickProp == null ? void 0 : onClickProp(event);
 67311     [store]
 65611     if (event.defaultPrevented) return;
       
 65612     store == null ? void 0 : store.setSelectedId(id);
       
 65613   });
       
 65614   const panelId = store.panels.useState(
       
 65615     (state) => {
       
 65616       var _a3;
       
 65617       return (_a3 = state.items.find((item) => item.tabId === id)) == null ? void 0 : _a3.id;
       
 65618     }
 67312   );
 65619   );
 67313   props = _4R3V3JGP_spreadValues({
 65620   const shouldRegisterItem = defaultId ? props.shouldRegisterItem : false;
 67314     role: "tablist",
 65621   const isActive = store.useState((state) => !!id && state.activeId === id);
 67315     "aria-orientation": orientation
 65622   const selected = store.useState((state) => !!id && state.selectedId === id);
 67316   }, props);
 65623   const hasActiveItem = store.useState((state) => !!store.item(state.activeId));
 67317   props = useComposite(_4R3V3JGP_spreadValues({ store }, props));
 65624   const canRegisterComposedItem = isActive || selected && !hasActiveItem;
       
 65625   const accessibleWhenDisabled = selected || ((_a2 = props.accessibleWhenDisabled) != null ? _a2 : true);
       
 65626   const isWithinVirtualFocusComposite = useStoreState(
       
 65627     store.combobox || store.composite,
       
 65628     "virtualFocus"
       
 65629   );
       
 65630   if (isWithinVirtualFocusComposite) {
       
 65631     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
 65632       tabIndex: -1
       
 65633     });
       
 65634   }
       
 65635   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 65636     id,
       
 65637     role: "tab",
       
 65638     "aria-selected": selected,
       
 65639     "aria-controls": panelId || void 0
       
 65640   }, props), {
       
 65641     onClick
       
 65642   });
       
 65643   if (store.composite) {
       
 65644     const defaultProps = {
       
 65645       id,
       
 65646       accessibleWhenDisabled,
       
 65647       store: store.composite,
       
 65648       shouldRegisterItem: canRegisterComposedItem && shouldRegisterItem,
       
 65649       rowId: props.rowId,
       
 65650       render: props.render
       
 65651     };
       
 65652     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
 65653       render: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
 65654         P2CTZE2T_CompositeItem,
       
 65655         _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, defaultProps), {
       
 65656           render: store.combobox && store.composite !== store.combobox ? /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(P2CTZE2T_CompositeItem, _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, defaultProps), { store: store.combobox })) : defaultProps.render
       
 65657         })
       
 65658       )
       
 65659     });
       
 65660   }
       
 65661   props = useCompositeItem(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 65662     store
       
 65663   }, props), {
       
 65664     accessibleWhenDisabled,
       
 65665     getItem,
       
 65666     shouldRegisterItem
       
 65667   }));
 67318   return props;
 65668   return props;
 67319 });
 65669 });
 67320 var tab_list_TabList = createComponent((props) => {
 65670 var Tab = memo2(
 67321   const htmlProps = useTabList(props);
 65671   forwardRef2(function Tab2(props) {
 67322   return _3ORBWXWF_createElement("div", htmlProps);
 65672     const htmlProps = useTab(props);
 67323 });
 65673     return LMDWO4NN_createElement(tab_TagName, htmlProps);
 67324 if (false) {}
 65674   })
 67325 
 65675 );
 67326 
 65676 
 67327 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tab/tab.js
 65677 
       
 65678 ;// ./node_modules/@ariakit/react-core/esm/tab/tab-panel.js
 67328 "use client";
 65679 "use client";
 67329 
 65680 
 67330 
 65681 
 67331 
 65682 
 67332 
 65683 
 67339 
 65690 
 67340 
 65691 
 67341 
 65692 
 67342 
 65693 
 67343 
 65694 
 67344 // src/tab/tab.ts
 65695 
 67345 
 65696 // src/tab/tab-panel.tsx
 67346 
 65697 
 67347 var useTab = createHook(
 65698 
 67348   (_a) => {
 65699 
       
 65700 
       
 65701 var tab_panel_TagName = "div";
       
 65702 var useTabPanel = createHook(
       
 65703   function useTabPanel2(_a) {
 67349     var _b = _a, {
 65704     var _b = _a, {
 67350       store,
 65705       store,
 67351       accessibleWhenDisabled = true,
 65706       unmountOnHide,
 67352       getItem: getItemProp
 65707       tabId: tabIdProp,
       
 65708       getItem: getItemProp,
       
 65709       scrollRestoration,
       
 65710       scrollElement
 67353     } = _b, props = __objRest(_b, [
 65711     } = _b, props = __objRest(_b, [
 67354       "store",
 65712       "store",
 67355       "accessibleWhenDisabled",
 65713       "unmountOnHide",
 67356       "getItem"
 65714       "tabId",
       
 65715       "getItem",
       
 65716       "scrollRestoration",
       
 65717       "scrollElement"
 67357     ]);
 65718     ]);
 67358     const context = useTabScopedContext();
       
 67359     store = store || context;
       
 67360     invariant(
       
 67361       store,
       
 67362        false && 0
       
 67363     );
       
 67364     const defaultId = useId();
       
 67365     const id = props.id || defaultId;
       
 67366     const dimmed = disabledFromProps(props);
       
 67367     const getItem = (0,external_React_.useCallback)(
       
 67368       (item) => {
       
 67369         const nextItem = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, item), { dimmed });
       
 67370         if (getItemProp) {
       
 67371           return getItemProp(nextItem);
       
 67372         }
       
 67373         return nextItem;
       
 67374       },
       
 67375       [dimmed, getItemProp]
       
 67376     );
       
 67377     const onClickProp = props.onClick;
       
 67378     const onClick = useEvent((event) => {
       
 67379       onClickProp == null ? void 0 : onClickProp(event);
       
 67380       if (event.defaultPrevented)
       
 67381         return;
       
 67382       store == null ? void 0 : store.setSelectedId(id);
       
 67383     });
       
 67384     const panelId = store.panels.useState(
       
 67385       (state) => {
       
 67386         var _a2;
       
 67387         return (_a2 = state.items.find((item) => item.tabId === id)) == null ? void 0 : _a2.id;
       
 67388       }
       
 67389     );
       
 67390     const selected = store.useState((state) => !!id && state.selectedId === id);
       
 67391     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 67392       id,
       
 67393       role: "tab",
       
 67394       "aria-selected": selected,
       
 67395       "aria-controls": panelId || void 0
       
 67396     }, props), {
       
 67397       onClick
       
 67398     });
       
 67399     props = useCompositeItem(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 67400       store
       
 67401     }, props), {
       
 67402       accessibleWhenDisabled,
       
 67403       getItem,
       
 67404       shouldRegisterItem: !!defaultId ? props.shouldRegisterItem : false
       
 67405     }));
       
 67406     return props;
       
 67407   }
       
 67408 );
       
 67409 var Tab = createMemoComponent((props) => {
       
 67410   const htmlProps = useTab(props);
       
 67411   return _3ORBWXWF_createElement("button", htmlProps);
       
 67412 });
       
 67413 if (false) {}
       
 67414 
       
 67415 
       
 67416 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/tab/tab-panel.js
       
 67417 "use client";
       
 67418 
       
 67419 
       
 67420 
       
 67421 
       
 67422 
       
 67423 
       
 67424 
       
 67425 
       
 67426 
       
 67427 
       
 67428 
       
 67429 
       
 67430 
       
 67431 
       
 67432 
       
 67433 
       
 67434 // src/tab/tab-panel.tsx
       
 67435 
       
 67436 
       
 67437 
       
 67438 
       
 67439 var useTabPanel = createHook(
       
 67440   (_a) => {
       
 67441     var _b = _a, { store, tabId: tabIdProp, getItem: getItemProp } = _b, props = __objRest(_b, ["store", "tabId", "getItem"]);
       
 67442     const context = useTabProviderContext();
 65719     const context = useTabProviderContext();
 67443     store = store || context;
 65720     store = store || context;
 67444     invariant(
 65721     invariant(
 67445       store,
 65722       store,
 67446        false && 0
 65723        false && 0
 67447     );
 65724     );
 67448     const ref = (0,external_React_.useRef)(null);
 65725     const ref = (0,external_React_.useRef)(null);
 67449     const id = useId(props.id);
 65726     const id = useId(props.id);
       
 65727     const tabId = useStoreState(
       
 65728       store.panels,
       
 65729       () => {
       
 65730         var _a2;
       
 65731         return tabIdProp || ((_a2 = store == null ? void 0 : store.panels.item(id)) == null ? void 0 : _a2.tabId);
       
 65732       }
       
 65733     );
       
 65734     const open = useStoreState(
       
 65735       store,
       
 65736       (state) => !!tabId && state.selectedId === tabId
       
 65737     );
       
 65738     const disclosure = useDisclosureStore({ open });
       
 65739     const mounted = useStoreState(disclosure, "mounted");
       
 65740     const scrollPositionRef = (0,external_React_.useRef)(
       
 65741       /* @__PURE__ */ new Map()
       
 65742     );
       
 65743     const getScrollElement = useEvent(() => {
       
 65744       const panelElement = ref.current;
       
 65745       if (!panelElement) return null;
       
 65746       if (!scrollElement) return panelElement;
       
 65747       if (typeof scrollElement === "function") {
       
 65748         return scrollElement(panelElement);
       
 65749       }
       
 65750       if ("current" in scrollElement) {
       
 65751         return scrollElement.current;
       
 65752       }
       
 65753       return scrollElement;
       
 65754     });
       
 65755     (0,external_React_.useEffect)(() => {
       
 65756       var _a2, _b2;
       
 65757       if (!scrollRestoration) return;
       
 65758       if (!mounted) return;
       
 65759       const element = getScrollElement();
       
 65760       if (!element) return;
       
 65761       if (scrollRestoration === "reset") {
       
 65762         element.scroll(0, 0);
       
 65763         return;
       
 65764       }
       
 65765       if (!tabId) return;
       
 65766       const position = scrollPositionRef.current.get(tabId);
       
 65767       element.scroll((_a2 = position == null ? void 0 : position.x) != null ? _a2 : 0, (_b2 = position == null ? void 0 : position.y) != null ? _b2 : 0);
       
 65768       const onScroll = () => {
       
 65769         scrollPositionRef.current.set(tabId, {
       
 65770           x: element.scrollLeft,
       
 65771           y: element.scrollTop
       
 65772         });
       
 65773       };
       
 65774       element.addEventListener("scroll", onScroll);
       
 65775       return () => {
       
 65776         element.removeEventListener("scroll", onScroll);
       
 65777       };
       
 65778     }, [scrollRestoration, mounted, tabId, getScrollElement, store]);
 67450     const [hasTabbableChildren, setHasTabbableChildren] = (0,external_React_.useState)(false);
 65779     const [hasTabbableChildren, setHasTabbableChildren] = (0,external_React_.useState)(false);
 67451     (0,external_React_.useEffect)(() => {
 65780     (0,external_React_.useEffect)(() => {
 67452       const element = ref.current;
 65781       const element = ref.current;
 67453       if (!element)
 65782       if (!element) return;
 67454         return;
       
 67455       const tabbable = getAllTabbableIn(element);
 65783       const tabbable = getAllTabbableIn(element);
 67456       setHasTabbableChildren(!!tabbable.length);
 65784       setHasTabbableChildren(!!tabbable.length);
 67457     }, []);
 65785     }, []);
 67458     const getItem = (0,external_React_.useCallback)(
 65786     const getItem = (0,external_React_.useCallback)(
 67459       (item) => {
 65787       (item) => {
 67460         const nextItem = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, item), { id: id || item.id, tabId: tabIdProp });
 65788         const nextItem = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, item), { id: id || item.id, tabId: tabIdProp });
 67461         if (getItemProp) {
 65789         if (getItemProp) {
 67462           return getItemProp(nextItem);
 65790           return getItemProp(nextItem);
 67463         }
 65791         }
 67464         return nextItem;
 65792         return nextItem;
 67465       },
 65793       },
 67466       [id, tabIdProp, getItemProp]
 65794       [id, tabIdProp, getItemProp]
 67467     );
 65795     );
       
 65796     const onKeyDownProp = props.onKeyDown;
       
 65797     const onKeyDown = useEvent((event) => {
       
 65798       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 65799       if (event.defaultPrevented) return;
       
 65800       if (!(store == null ? void 0 : store.composite)) return;
       
 65801       const keyMap = {
       
 65802         ArrowLeft: store.previous,
       
 65803         ArrowRight: store.next,
       
 65804         Home: store.first,
       
 65805         End: store.last
       
 65806       };
       
 65807       const action = keyMap[event.key];
       
 65808       if (!action) return;
       
 65809       const { selectedId } = store.getState();
       
 65810       const nextId = action({ activeId: selectedId });
       
 65811       if (!nextId) return;
       
 65812       event.preventDefault();
       
 65813       store.move(nextId);
       
 65814     });
 67468     props = useWrapElement(
 65815     props = useWrapElement(
 67469       props,
 65816       props,
 67470       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
 65817       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(TabScopedContextProvider, { value: store, children: element }),
 67471       [store]
 65818       [store]
 67472     );
 65819     );
 67473     const tabId = store.panels.useState(
 65820     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
 67474       () => {
       
 67475         var _a2;
       
 67476         return tabIdProp || ((_a2 = store == null ? void 0 : store.panels.item(id)) == null ? void 0 : _a2.tabId);
       
 67477       }
       
 67478     );
       
 67479     const open = store.useState(
       
 67480       (state) => !!tabId && state.selectedId === tabId
       
 67481     );
       
 67482     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 67483       id,
 65821       id,
 67484       role: "tabpanel",
 65822       role: "tabpanel",
 67485       "aria-labelledby": tabId || void 0
 65823       "aria-labelledby": tabId || void 0
 67486     }, props), {
 65824     }, props), {
 67487       ref: useMergeRefs(ref, props.ref)
 65825       children: unmountOnHide && !mounted ? null : props.children,
       
 65826       ref: useMergeRefs(ref, props.ref),
       
 65827       onKeyDown
 67488     });
 65828     });
 67489     const disclosure = useDisclosureStore({ open });
 65829     props = useFocusable(_3YLGPPWQ_spreadValues({
 67490     props = useFocusable(_4R3V3JGP_spreadValues({ focusable: !hasTabbableChildren }, props));
 65830       // If the tab panel is rendered as part of another composite widget such
 67491     props = useDisclosureContent(_4R3V3JGP_spreadValues({ store: disclosure }, props));
 65831       // as combobox, it should not be focusable.
 67492     props = useCollectionItem(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({ store: store.panels }, props), { getItem }));
 65832       focusable: !store.composite && !hasTabbableChildren
       
 65833     }, props));
       
 65834     props = useDisclosureContent(_3YLGPPWQ_spreadValues({ store: disclosure }, props));
       
 65835     props = useCollectionItem(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({ store: store.panels }, props), { getItem }));
 67493     return props;
 65836     return props;
 67494   }
 65837   }
 67495 );
 65838 );
 67496 var TabPanel = createComponent((props) => {
 65839 var TabPanel = forwardRef2(function TabPanel2(props) {
 67497   const htmlProps = useTabPanel(props);
 65840   const htmlProps = useTabPanel(props);
 67498   return _3ORBWXWF_createElement("div", htmlProps);
 65841   return LMDWO4NN_createElement(tab_panel_TagName, htmlProps);
 67499 });
 65842 });
 67500 if (false) {}
 65843 
 67501 
 65844 
 67502 
 65845 ;// ./node_modules/@wordpress/components/build-module/tab-panel/index.js
 67503 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tab-panel/index.js
       
 67504 /**
 65846 /**
 67505  * External dependencies
 65847  * External dependencies
 67506  */
 65848  */
 67507 // eslint-disable-next-line no-restricted-imports
       
 67508 
 65849 
 67509 
 65850 
 67510 /**
 65851 /**
 67511  * WordPress dependencies
 65852  * WordPress dependencies
 67512  */
 65853  */
 67513 
 65854 
 67514 
 65855 
 67515 
 65856 
       
 65857 
 67516 /**
 65858 /**
 67517  * Internal dependencies
 65859  * Internal dependencies
 67518  */
 65860  */
 67519 
       
 67520 
 65861 
 67521 
 65862 
 67522 
 65863 
 67523 // Separate the actual tab name from the instance ID. This is
 65864 // Separate the actual tab name from the instance ID. This is
 67524 // necessary because Ariakit internally uses the element ID when
 65865 // necessary because Ariakit internally uses the element ID when
 67599       }
 65940       }
 67600       onSelect?.(simplifiedTabName);
 65941       onSelect?.(simplifiedTabName);
 67601     },
 65942     },
 67602     orientation,
 65943     orientation,
 67603     selectOnMove,
 65944     selectOnMove,
 67604     defaultSelectedId: prependInstanceId(initialTabName)
 65945     defaultSelectedId: prependInstanceId(initialTabName),
       
 65946     rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
 67605   });
 65947   });
 67606   const selectedTabName = extractTabName(tabStore.useState('selectedId'));
 65948   const selectedTabName = extractTabName(useStoreState(tabStore, 'selectedId'));
 67607   const setTabStoreSelectedId = (0,external_wp_element_namespaceObject.useCallback)(tabName => {
 65949   const setTabStoreSelectedId = (0,external_wp_element_namespaceObject.useCallback)(tabName => {
 67608     tabStore.setState('selectedId', prependInstanceId(tabName));
 65950     tabStore.setState('selectedId', prependInstanceId(tabName));
 67609   }, [prependInstanceId, tabStore]);
 65951   }, [prependInstanceId, tabStore]);
 67610   const selectedTab = tabs.find(({
 65952   const selectedTab = tabs.find(({
 67611     name
 65953     name
 67659     }
 66001     }
 67660   }, [tabs, selectedTab?.disabled, setTabStoreSelectedId, instanceId]);
 66002   }, [tabs, selectedTab?.disabled, setTabStoreSelectedId, instanceId]);
 67661   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 66003   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
 67662     className: className,
 66004     className: className,
 67663     ref: ref,
 66005     ref: ref,
 67664     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tab_list_TabList, {
 66006     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabList, {
 67665       store: tabStore,
 66007       store: tabStore,
 67666       className: "components-tab-panel__tabs",
 66008       className: "components-tab-panel__tabs",
 67667       children: tabs.map(tab => {
 66009       children: tabs.map(tab => {
 67668         return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tab, {
 66010         return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tab, {
 67669           id: prependInstanceId(tab.name),
 66011           id: prependInstanceId(tab.name),
 67671             [activeClass]: tab.name === selectedTabName
 66013             [activeClass]: tab.name === selectedTabName
 67672           }),
 66014           }),
 67673           disabled: tab.disabled,
 66015           disabled: tab.disabled,
 67674           "aria-controls": `${prependInstanceId(tab.name)}-view`,
 66016           "aria-controls": `${prependInstanceId(tab.name)}-view`,
 67675           render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 66017           render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 66018             __next40pxDefaultSize: true,
 67676             icon: tab.icon,
 66019             icon: tab.icon,
 67677             label: tab.icon && tab.title,
 66020             label: tab.icon && tab.title,
 67678             showTooltip: !!tab.icon
 66021             showTooltip: !!tab.icon
 67679           }),
 66022           }),
 67680           children: !tab.icon && tab.title
 66023           children: !tab.icon && tab.title
 67690   });
 66033   });
 67691 };
 66034 };
 67692 const tab_panel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTabPanel);
 66035 const tab_panel_TabPanel = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTabPanel);
 67693 /* harmony default export */ const tab_panel = (tab_panel_TabPanel);
 66036 /* harmony default export */ const tab_panel = (tab_panel_TabPanel);
 67694 
 66037 
 67695 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text-control/index.js
 66038 ;// ./node_modules/@wordpress/components/build-module/text-control/index.js
 67696 /**
 66039 /**
 67697  * External dependencies
 66040  * External dependencies
 67698  */
 66041  */
 67699 
 66042 
 67700 
 66043 
 67706 
 66049 
 67707 
 66050 
 67708 /**
 66051 /**
 67709  * Internal dependencies
 66052  * Internal dependencies
 67710  */
 66053  */
       
 66054 
 67711 
 66055 
 67712 
 66056 
 67713 function UnforwardedTextControl(props, ref) {
 66057 function UnforwardedTextControl(props, ref) {
 67714   const {
 66058   const {
 67715     __nextHasNoMarginBottom,
 66059     __nextHasNoMarginBottom,
 67724     type = 'text',
 66068     type = 'text',
 67725     ...additionalProps
 66069     ...additionalProps
 67726   } = props;
 66070   } = props;
 67727   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(TextControl, 'inspector-text-control', idProp);
 66071   const id = (0,external_wp_compose_namespaceObject.useInstanceId)(TextControl, 'inspector-text-control', idProp);
 67728   const onChangeValue = event => onChange(event.target.value);
 66072   const onChangeValue = event => onChange(event.target.value);
       
 66073   maybeWarnDeprecated36pxSize({
       
 66074     componentName: 'TextControl',
       
 66075     size: undefined,
       
 66076     __next40pxDefaultSize
       
 66077   });
 67729   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 66078   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 67730     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 66079     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
       
 66080     __associatedWPComponentName: "TextControl",
 67731     label: label,
 66081     label: label,
 67732     hideLabelFromVision: hideLabelFromVision,
 66082     hideLabelFromVision: hideLabelFromVision,
 67733     id: id,
 66083     id: id,
 67734     help: help,
 66084     help: help,
 67735     className: className,
 66085     className: className,
 67758  * const MyTextControl = () => {
 66108  * const MyTextControl = () => {
 67759  *   const [ className, setClassName ] = useState( '' );
 66109  *   const [ className, setClassName ] = useState( '' );
 67760  *
 66110  *
 67761  *   return (
 66111  *   return (
 67762  *     <TextControl
 66112  *     <TextControl
       
 66113  *       __nextHasNoMarginBottom
       
 66114  *       __next40pxDefaultSize
 67763  *       label="Additional CSS Class"
 66115  *       label="Additional CSS Class"
 67764  *       value={ className }
 66116  *       value={ className }
 67765  *       onChange={ ( value ) => setClassName( value ) }
 66117  *       onChange={ ( value ) => setClassName( value ) }
 67766  *     />
 66118  *     />
 67767  *   );
 66119  *   );
 67769  * ```
 66121  * ```
 67770  */
 66122  */
 67771 const TextControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTextControl);
 66123 const TextControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTextControl);
 67772 /* harmony default export */ const text_control = (TextControl);
 66124 /* harmony default export */ const text_control = (TextControl);
 67773 
 66125 
 67774 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/input/base.js
 66126 ;// ./node_modules/@wordpress/components/build-module/utils/breakpoint-values.js
 67775 /**
       
 67776  * External dependencies
       
 67777  */
       
 67778 
       
 67779 
       
 67780 /**
       
 67781  * Internal dependencies
       
 67782  */
       
 67783 
       
 67784 
       
 67785 const inputStyleNeutral = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:0 0 0 transparent;border-radius:", config_values.radiusBlockUi, ";border:", config_values.borderWidth, " solid ", COLORS.ui.border, ";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}" + ( true ? "" : 0),  true ? "" : 0);
       
 67786 const inputStyleFocus = /*#__PURE__*/emotion_react_browser_esm_css("border-color:", COLORS.theme.accent, ";box-shadow:0 0 0 calc( ", config_values.borderWidthFocus, " - ", config_values.borderWidth, " ) ", COLORS.theme.accent, ";outline:2px solid transparent;" + ( true ? "" : 0),  true ? "" : 0);
       
 67787 
       
 67788 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/breakpoint-values.js
       
 67789 /* harmony default export */ const breakpoint_values = ({
 66127 /* harmony default export */ const breakpoint_values = ({
 67790   huge: '1440px',
 66128   huge: '1440px',
 67791   wide: '1280px',
 66129   wide: '1280px',
 67792   'x-large': '1080px',
 66130   'x-large': '1080px',
 67793   large: '960px',
 66131   large: '960px',
 67797   small: '600px',
 66135   small: '600px',
 67798   mobile: '480px',
 66136   mobile: '480px',
 67799   'zoomed-in': '280px'
 66137   'zoomed-in': '280px'
 67800 });
 66138 });
 67801 
 66139 
 67802 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/breakpoint.js
 66140 ;// ./node_modules/@wordpress/components/build-module/utils/breakpoint.js
 67803 /**
 66141 /**
 67804  * Internal dependencies
 66142  * Internal dependencies
 67805  */
 66143  */
 67806 
 66144 
 67807 
 66145 
 67809  * @param {keyof breakpoints} point
 66147  * @param {keyof breakpoints} point
 67810  * @return {string} Media query declaration.
 66148  * @return {string} Media query declaration.
 67811  */
 66149  */
 67812 const breakpoint = point => `@media (min-width: ${breakpoint_values[point]})`;
 66150 const breakpoint = point => `@media (min-width: ${breakpoint_values[point]})`;
 67813 
 66151 
 67814 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/input/input-control.js
 66152 ;// ./node_modules/@wordpress/components/build-module/textarea-control/styles/textarea-control-styles.js
       
 66153 
 67815 /**
 66154 /**
 67816  * External dependencies
 66155  * External dependencies
 67817  */
 66156  */
 67818 
 66157 
 67819 
 66158 
       
 66159 
 67820 /**
 66160 /**
 67821  * Internal dependencies
 66161  * Internal dependencies
 67822  */
 66162  */
 67823 
 66163 
 67824 
 66164 
 67825 
 66165 
 67826 
 66166 
 67827 const inputControl = /*#__PURE__*/emotion_react_browser_esm_css("display:block;font-family:", font('default.fontFamily'), ";padding:6px 8px;", inputStyleNeutral, ";font-size:", font('mobileTextMinFontSize'), ";line-height:normal;", breakpoint('small'), "{font-size:", font('default.fontSize'), ";line-height:normal;}&:focus{", inputStyleFocus, ";}&::-webkit-input-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}&::-moz-placeholder{opacity:1;color:", COLORS.ui.darkGrayPlaceholder, ";}&:-ms-input-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}.is-dark-theme &{&::-webkit-input-placeholder{color:", COLORS.ui.lightGrayPlaceholder, ";}&::-moz-placeholder{opacity:1;color:", COLORS.ui.lightGrayPlaceholder, ";}&:-ms-input-placeholder{color:", COLORS.ui.lightGrayPlaceholder, ";}}" + ( true ? "" : 0),  true ? "" : 0);
 66167 const inputStyleNeutral = /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:0 0 0 transparent;border-radius:", config_values.radiusSmall, ";border:", config_values.borderWidth, " solid ", COLORS.ui.border, ";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}" + ( true ? "" : 0),  true ? "" : 0);
 67828 
 66168 const inputStyleFocus = /*#__PURE__*/emotion_react_browser_esm_css("border-color:", COLORS.theme.accent, ";box-shadow:0 0 0 calc( ", config_values.borderWidthFocus, " - ", config_values.borderWidth, " ) ", COLORS.theme.accent, ";outline:2px solid transparent;" + ( true ? "" : 0),  true ? "" : 0);
 67829 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/textarea-control/styles/textarea-control-styles.js
       
 67830 
       
 67831 /**
       
 67832  * External dependencies
       
 67833  */
       
 67834 
       
 67835 /**
       
 67836  * Internal dependencies
       
 67837  */
       
 67838 
       
 67839 const StyledTextarea = /*#__PURE__*/emotion_styled_base_browser_esm("textarea",  true ? {
 66169 const StyledTextarea = /*#__PURE__*/emotion_styled_base_browser_esm("textarea",  true ? {
 67840   target: "e1w5nnrk0"
 66170   target: "e1w5nnrk0"
 67841 } : 0)("width:100%;", inputControl, ";" + ( true ? "" : 0));
 66171 } : 0)("width:100%;display:block;font-family:", font('default.fontFamily'), ";line-height:20px;padding:9px 11px;", inputStyleNeutral, ";font-size:", font('mobileTextMinFontSize'), ";", breakpoint('small'), "{font-size:", font('default.fontSize'), ";}&:focus{", inputStyleFocus, ";}&::-webkit-input-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}&::-moz-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}&:-ms-input-placeholder{color:", COLORS.ui.darkGrayPlaceholder, ";}.is-dark-theme &{&::-webkit-input-placeholder{color:", COLORS.ui.lightGrayPlaceholder, ";}&::-moz-placeholder{color:", COLORS.ui.lightGrayPlaceholder, ";}&:-ms-input-placeholder{color:", COLORS.ui.lightGrayPlaceholder, ";}}" + ( true ? "" : 0));
 67842 
 66172 
 67843 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/textarea-control/index.js
 66173 ;// ./node_modules/@wordpress/components/build-module/textarea-control/index.js
 67844 /**
 66174 /**
 67845  * WordPress dependencies
 66175  * WordPress dependencies
 67846  */
 66176  */
 67847 
 66177 
 67848 
 66178 
 67868   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(TextareaControl);
 66198   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(TextareaControl);
 67869   const id = `inspector-textarea-control-${instanceId}`;
 66199   const id = `inspector-textarea-control-${instanceId}`;
 67870   const onChangeValue = event => onChange(event.target.value);
 66200   const onChangeValue = event => onChange(event.target.value);
 67871   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 66201   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 67872     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
 66202     __nextHasNoMarginBottom: __nextHasNoMarginBottom,
       
 66203     __associatedWPComponentName: "TextareaControl",
 67873     label: label,
 66204     label: label,
 67874     hideLabelFromVision: hideLabelFromVision,
 66205     hideLabelFromVision: hideLabelFromVision,
 67875     id: id,
 66206     id: id,
 67876     help: help,
 66207     help: help,
 67877     className: className,
 66208     className: className,
 67900  * const MyTextareaControl = () => {
 66231  * const MyTextareaControl = () => {
 67901  *   const [ text, setText ] = useState( '' );
 66232  *   const [ text, setText ] = useState( '' );
 67902  *
 66233  *
 67903  *   return (
 66234  *   return (
 67904  *     <TextareaControl
 66235  *     <TextareaControl
       
 66236  *       __nextHasNoMarginBottom
 67905  *       label="Text"
 66237  *       label="Text"
 67906  *       help="Enter some text"
 66238  *       help="Enter some text"
 67907  *       value={ text }
 66239  *       value={ text }
 67908  *       onChange={ ( value ) => setText( value ) }
 66240  *       onChange={ ( value ) => setText( value ) }
 67909  *     />
 66241  *     />
 67912  * ```
 66244  * ```
 67913  */
 66245  */
 67914 const TextareaControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTextareaControl);
 66246 const TextareaControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTextareaControl);
 67915 /* harmony default export */ const textarea_control = (TextareaControl);
 66247 /* harmony default export */ const textarea_control = (TextareaControl);
 67916 
 66248 
 67917 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text-highlight/index.js
 66249 ;// ./node_modules/@wordpress/components/build-module/text-highlight/index.js
 67918 /**
 66250 /**
 67919  * WordPress dependencies
 66251  * WordPress dependencies
 67920  */
 66252  */
 67921 
 66253 
 67922 
 66254 
 67923 /**
 66255 /**
 67924  * Internal dependencies
 66256  * Internal dependencies
 67925  */
 66257  */
 67926 
       
 67927 
 66258 
 67928 
 66259 
 67929 /**
 66260 /**
 67930  * Highlights occurrences of a given string within another string of text. Wraps
 66261  * Highlights occurrences of a given string within another string of text. Wraps
 67931  * each match with a `<mark>` tag which provides browser default styling.
 66262  * each match with a `<mark>` tag which provides browser default styling.
 67957     mark: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("mark", {})
 66288     mark: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("mark", {})
 67958   });
 66289   });
 67959 };
 66290 };
 67960 /* harmony default export */ const text_highlight = (TextHighlight);
 66291 /* harmony default export */ const text_highlight = (TextHighlight);
 67961 
 66292 
 67962 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/tip.js
 66293 ;// ./node_modules/@wordpress/icons/build-module/library/tip.js
 67963 /**
 66294 /**
 67964  * WordPress dependencies
 66295  * WordPress dependencies
 67965  */
 66296  */
 67966 
 66297 
 67967 
 66298 
 67972     d: "M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"
 66303     d: "M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"
 67973   })
 66304   })
 67974 });
 66305 });
 67975 /* harmony default export */ const library_tip = (tip);
 66306 /* harmony default export */ const library_tip = (tip);
 67976 
 66307 
 67977 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tip/index.js
 66308 ;// ./node_modules/@wordpress/components/build-module/tip/index.js
 67978 /**
 66309 /**
 67979  * WordPress dependencies
 66310  * WordPress dependencies
 67980  */
 66311  */
 67981 
 66312 
 67982 
 66313 
 67983 /**
 66314 /**
 67984  * Internal dependencies
 66315  * Internal dependencies
 67985  */
 66316  */
 67986 
       
 67987 
 66317 
 67988 function Tip(props) {
 66318 function Tip(props) {
 67989   const {
 66319   const {
 67990     children
 66320     children
 67991   } = props;
 66321   } = props;
 67998     })]
 66328     })]
 67999   });
 66329   });
 68000 }
 66330 }
 68001 /* harmony default export */ const build_module_tip = (Tip);
 66331 /* harmony default export */ const build_module_tip = (Tip);
 68002 
 66332 
 68003 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-control/index.js
 66333 ;// ./node_modules/@wordpress/components/build-module/toggle-control/index.js
 68004 /**
 66334 /**
 68005  * External dependencies
 66335  * External dependencies
 68006  */
 66336  */
 68007 
 66337 
 68008 
 66338 
 68009 
 66339 
       
 66340 
 68010 /**
 66341 /**
 68011  * WordPress dependencies
 66342  * WordPress dependencies
 68012  */
 66343  */
 68013 
 66344 
 68014 
 66345 
 68015 
 66346 
       
 66347 
 68016 /**
 66348 /**
 68017  * Internal dependencies
 66349  * Internal dependencies
 68018  */
 66350  */
 68019 
 66351 
 68020 
 66352 
 68021 
 66353 
 68022 
 66354 
 68023 
 66355 
 68024 
 66356 
 68025 
 66357 
 68026 /**
 66358 function UnforwardedToggleControl({
 68027  * ToggleControl is used to generate a toggle user interface.
       
 68028  *
       
 68029  * ```jsx
       
 68030  * import { ToggleControl } from '@wordpress/components';
       
 68031  * import { useState } from '@wordpress/element';
       
 68032  *
       
 68033  * const MyToggleControl = () => {
       
 68034  *   const [ value, setValue ] = useState( false );
       
 68035  *
       
 68036  *   return (
       
 68037  *     <ToggleControl
       
 68038  *       label="Fixed Background"
       
 68039  *       checked={ value }
       
 68040  *       onChange={ () => setValue( ( state ) => ! state ) }
       
 68041  *     />
       
 68042  *   );
       
 68043  * };
       
 68044  * ```
       
 68045  */
       
 68046 
       
 68047 
       
 68048 function ToggleControl({
       
 68049   __nextHasNoMarginBottom,
 66359   __nextHasNoMarginBottom,
 68050   label,
 66360   label,
 68051   checked,
 66361   checked,
 68052   help,
 66362   help,
 68053   className,
 66363   className,
 68061   const id = `inspector-toggle-control-${instanceId}`;
 66371   const id = `inspector-toggle-control-${instanceId}`;
 68062   const cx = useCx();
 66372   const cx = useCx();
 68063   const classes = cx('components-toggle-control', className, !__nextHasNoMarginBottom && /*#__PURE__*/emotion_react_browser_esm_css({
 66373   const classes = cx('components-toggle-control', className, !__nextHasNoMarginBottom && /*#__PURE__*/emotion_react_browser_esm_css({
 68064     marginBottom: space(3)
 66374     marginBottom: space(3)
 68065   },  true ? "" : 0,  true ? "" : 0));
 66375   },  true ? "" : 0,  true ? "" : 0));
       
 66376   if (!__nextHasNoMarginBottom) {
       
 66377     external_wp_deprecated_default()('Bottom margin styles for wp.components.ToggleControl', {
       
 66378       since: '6.7',
       
 66379       version: '7.0',
       
 66380       hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version.'
       
 66381     });
       
 66382   }
 68066   let describedBy, helpLabel;
 66383   let describedBy, helpLabel;
 68067   if (help) {
 66384   if (help) {
 68068     if (typeof help === 'function') {
 66385     if (typeof help === 'function') {
 68069       // `help` as a function works only for controlled components where
 66386       // `help` as a function works only for controlled components where
 68070       // `checked` is passed down from parent component. Uncontrolled
 66387       // `checked` is passed down from parent component. Uncontrolled
 68079       describedBy = id + '__help';
 66396       describedBy = id + '__help';
 68080     }
 66397     }
 68081   }
 66398   }
 68082   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 66399   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(base_control, {
 68083     id: id,
 66400     id: id,
 68084     help: helpLabel,
 66401     help: helpLabel && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 66402       className: "components-toggle-control__help",
       
 66403       children: helpLabel
       
 66404     }),
 68085     className: classes,
 66405     className: classes,
 68086     __nextHasNoMarginBottom: true,
 66406     __nextHasNoMarginBottom: true,
 68087     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 66407     children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(h_stack_component, {
 68088       justify: "flex-start",
 66408       justify: "flex-start",
 68089       spacing: 3,
 66409       spacing: 2,
 68090       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(form_toggle, {
 66410       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(form_toggle, {
 68091         id: id,
 66411         id: id,
 68092         checked: checked,
 66412         checked: checked,
 68093         onChange: onChangeToggle,
 66413         onChange: onChangeToggle,
 68094         "aria-describedby": describedBy,
 66414         "aria-describedby": describedBy,
 68095         disabled: disabled,
 66415         disabled: disabled,
 68096         ref: ref
 66416         ref: ref
 68097       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
 66417       }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(flex_block_component, {
 68098         as: "label",
 66418         as: "label",
 68099         htmlFor: id,
 66419         htmlFor: id,
 68100         className: "components-toggle-control__label",
 66420         className: dist_clsx('components-toggle-control__label', {
       
 66421           'is-disabled': disabled
       
 66422         }),
 68101         children: label
 66423         children: label
 68102       })]
 66424       })]
 68103     })
 66425     })
 68104   });
 66426   });
 68105 }
 66427 }
 68106 /* harmony default export */ const toggle_control = ((0,external_wp_element_namespaceObject.forwardRef)(ToggleControl));
 66428 
 68107 
 66429 /**
 68108 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/SOK7T35T.js
 66430  * ToggleControl is used to generate a toggle user interface.
       
 66431  *
       
 66432  * ```jsx
       
 66433  * import { ToggleControl } from '@wordpress/components';
       
 66434  * import { useState } from '@wordpress/element';
       
 66435  *
       
 66436  * const MyToggleControl = () => {
       
 66437  *   const [ value, setValue ] = useState( false );
       
 66438  *
       
 66439  *   return (
       
 66440  *     <ToggleControl
       
 66441  *       __nextHasNoMarginBottom
       
 66442  *       label="Fixed Background"
       
 66443  *       checked={ value }
       
 66444  *       onChange={ () => setValue( ( state ) => ! state ) }
       
 66445  *     />
       
 66446  *   );
       
 66447  * };
       
 66448  * ```
       
 66449  */
       
 66450 const ToggleControl = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToggleControl);
       
 66451 /* harmony default export */ const toggle_control = (ToggleControl);
       
 66452 
       
 66453 ;// ./node_modules/@ariakit/react-core/esm/__chunks/A3WPL2ZJ.js
 68109 "use client";
 66454 "use client";
 68110 
 66455 
 68111 
 66456 
 68112 
 66457 
 68113 // src/toolbar/toolbar-context.tsx
 66458 // src/toolbar/toolbar-context.tsx
 68114 var SOK7T35T_ctx = createStoreContext(
 66459 var A3WPL2ZJ_ctx = createStoreContext(
 68115   [CompositeContextProvider],
 66460   [CompositeContextProvider],
 68116   [CompositeScopedContextProvider]
 66461   [CompositeScopedContextProvider]
 68117 );
 66462 );
 68118 var useToolbarContext = SOK7T35T_ctx.useContext;
 66463 var useToolbarContext = A3WPL2ZJ_ctx.useContext;
 68119 var useToolbarScopedContext = SOK7T35T_ctx.useScopedContext;
 66464 var useToolbarScopedContext = A3WPL2ZJ_ctx.useScopedContext;
 68120 var useToolbarProviderContext = SOK7T35T_ctx.useProviderContext;
 66465 var useToolbarProviderContext = A3WPL2ZJ_ctx.useProviderContext;
 68121 var ToolbarContextProvider = SOK7T35T_ctx.ContextProvider;
 66466 var ToolbarContextProvider = A3WPL2ZJ_ctx.ContextProvider;
 68122 var ToolbarScopedContextProvider = SOK7T35T_ctx.ScopedContextProvider;
 66467 var ToolbarScopedContextProvider = A3WPL2ZJ_ctx.ScopedContextProvider;
 68123 
 66468 
 68124 
 66469 
 68125 
 66470 
 68126 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7NHUGSTF.js
 66471 ;// ./node_modules/@ariakit/react-core/esm/__chunks/BOLVLGVE.js
 68127 "use client";
 66472 "use client";
 68128 
 66473 
 68129 
 66474 
 68130 
 66475 
 68131 
 66476 
 68132 
 66477 
 68133 // src/toolbar/toolbar-item.ts
 66478 // src/toolbar/toolbar-item.tsx
       
 66479 var BOLVLGVE_TagName = "button";
 68134 var useToolbarItem = createHook(
 66480 var useToolbarItem = createHook(
 68135   (_a) => {
 66481   function useToolbarItem2(_a) {
 68136     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 66482     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 68137     const context = useToolbarContext();
 66483     const context = useToolbarContext();
 68138     store = store || context;
 66484     store = store || context;
 68139     props = useCompositeItem(_4R3V3JGP_spreadValues({ store }, props));
 66485     props = useCompositeItem(_3YLGPPWQ_spreadValues({ store }, props));
 68140     return props;
 66486     return props;
 68141   }
 66487   }
 68142 );
 66488 );
 68143 var ToolbarItem = createMemoComponent((props) => {
 66489 var ToolbarItem = memo2(
 68144   const htmlProps = useToolbarItem(props);
 66490   forwardRef2(function ToolbarItem2(props) {
 68145   return _3ORBWXWF_createElement("button", htmlProps);
 66491     const htmlProps = useToolbarItem(props);
 68146 });
 66492     return LMDWO4NN_createElement(BOLVLGVE_TagName, htmlProps);
 68147 if (false) {}
 66493   })
 68148 
 66494 );
 68149 
 66495 
 68150 
 66496 
 68151 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-context/index.js
 66497 
       
 66498 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-context/index.js
 68152 /**
 66499 /**
 68153  * External dependencies
 66500  * External dependencies
 68154  */
 66501  */
 68155 // eslint-disable-next-line no-restricted-imports
       
 68156 
 66502 
 68157 /**
 66503 /**
 68158  * WordPress dependencies
 66504  * WordPress dependencies
 68159  */
 66505  */
 68160 
 66506 
 68161 const ToolbarContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
 66507 const ToolbarContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
 68162 /* harmony default export */ const toolbar_context = (ToolbarContext);
 66508 /* harmony default export */ const toolbar_context = (ToolbarContext);
 68163 
 66509 
 68164 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-item/index.js
 66510 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-item/index.js
 68165 /**
 66511 /**
 68166  * External dependencies
 66512  * External dependencies
 68167  */
 66513  */
 68168 // eslint-disable-next-line no-restricted-imports
       
 68169 
 66514 
 68170 /**
 66515 /**
 68171  * WordPress dependencies
 66516  * WordPress dependencies
 68172  */
 66517  */
 68173 
 66518 
 68208   }
 66553   }
 68209   const render = isRenderProp ? children : Component && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
 66554   const render = isRenderProp ? children : Component && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
 68210     children: children
 66555     children: children
 68211   });
 66556   });
 68212   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarItem, {
 66557   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarItem, {
       
 66558     accessibleWhenDisabled: true,
 68213     ...allProps,
 66559     ...allProps,
 68214     store: accessibleToolbarStore,
 66560     store: accessibleToolbarStore,
 68215     render: render
 66561     render: render
 68216   });
 66562   });
 68217 }
 66563 }
 68218 /* harmony default export */ const toolbar_item = ((0,external_wp_element_namespaceObject.forwardRef)(toolbar_item_ToolbarItem));
 66564 /* harmony default export */ const toolbar_item = ((0,external_wp_element_namespaceObject.forwardRef)(toolbar_item_ToolbarItem));
 68219 
 66565 
 68220 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-button/toolbar-button-container.js
 66566 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-button/toolbar-button-container.js
 68221 
 66567 
 68222 /**
 66568 /**
 68223  * Internal dependencies
 66569  * Internal dependencies
 68224  */
 66570  */
 68225 
 66571 
 68230   className: className,
 66576   className: className,
 68231   children: children
 66577   children: children
 68232 });
 66578 });
 68233 /* harmony default export */ const toolbar_button_container = (ToolbarButtonContainer);
 66579 /* harmony default export */ const toolbar_button_container = (ToolbarButtonContainer);
 68234 
 66580 
 68235 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-button/index.js
 66581 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-button/index.js
 68236 /**
 66582 /**
 68237  * External dependencies
 66583  * External dependencies
 68238  */
 66584  */
 68239 
 66585 
 68240 /**
 66586 /**
 68248 
 66594 
 68249 
 66595 
 68250 
 66596 
 68251 
 66597 
 68252 
 66598 
 68253 function UnforwardedToolbarButton({
 66599 function toolbar_button_useDeprecatedProps({
 68254   children,
       
 68255   className,
       
 68256   containerClassName,
       
 68257   extraProps,
       
 68258   isActive,
       
 68259   isDisabled,
 66600   isDisabled,
 68260   title,
 66601   ...otherProps
 68261   ...props
 66602 }) {
 68262 }, ref) {
 66603   return {
       
 66604     disabled: isDisabled,
       
 66605     ...otherProps
       
 66606   };
       
 66607 }
       
 66608 function UnforwardedToolbarButton(props, ref) {
       
 66609   const {
       
 66610     children,
       
 66611     className,
       
 66612     containerClassName,
       
 66613     extraProps,
       
 66614     isActive,
       
 66615     title,
       
 66616     ...restProps
       
 66617   } = toolbar_button_useDeprecatedProps(props);
 68263   const accessibleToolbarState = (0,external_wp_element_namespaceObject.useContext)(toolbar_context);
 66618   const accessibleToolbarState = (0,external_wp_element_namespaceObject.useContext)(toolbar_context);
 68264   if (!accessibleToolbarState) {
 66619   if (!accessibleToolbarState) {
 68265     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_button_container, {
 66620     return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_button_container, {
 68266       className: containerClassName,
 66621       className: containerClassName,
 68267       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 66622       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 68268         ref: ref,
 66623         ref: ref,
 68269         icon: props.icon,
 66624         icon: restProps.icon,
       
 66625         size: "compact",
 68270         label: title,
 66626         label: title,
 68271         shortcut: props.shortcut,
 66627         shortcut: restProps.shortcut,
 68272         "data-subscript": props.subscript,
 66628         "data-subscript": restProps.subscript,
 68273         onClick: event => {
 66629         onClick: event => {
 68274           event.stopPropagation();
 66630           event.stopPropagation();
 68275           // TODO: Possible bug; maybe use onClick instead of props.onClick.
 66631           // TODO: Possible bug; maybe use onClick instead of restProps.onClick.
 68276           if (props.onClick) {
 66632           if (restProps.onClick) {
 68277             props.onClick(event);
 66633             restProps.onClick(event);
 68278           }
 66634           }
 68279         },
 66635         },
 68280         className: dist_clsx('components-toolbar__control', className),
 66636         className: dist_clsx('components-toolbar__control', className),
 68281         isPressed: isActive,
 66637         isPressed: isActive,
 68282         disabled: isDisabled,
 66638         accessibleWhenDisabled: true,
 68283         "data-toolbar-item": true,
 66639         "data-toolbar-item": true,
 68284         ...extraProps,
 66640         ...extraProps,
 68285         ...props,
 66641         ...restProps,
 68286         children: children
 66642         children: children
 68287       })
 66643       })
 68288     });
 66644     });
 68289   }
 66645   }
 68290 
 66646 
 68292   // all props to Button. This means that ToolbarButton has the same API as
 66648   // all props to Button. This means that ToolbarButton has the same API as
 68293   // Button.
 66649   // Button.
 68294   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_item, {
 66650   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(toolbar_item, {
 68295     className: dist_clsx('components-toolbar-button', className),
 66651     className: dist_clsx('components-toolbar-button', className),
 68296     ...extraProps,
 66652     ...extraProps,
 68297     ...props,
 66653     ...restProps,
 68298     ref: ref,
 66654     ref: ref,
 68299     children: toolbarItemProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
 66655     children: toolbarItemProps => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
       
 66656       size: "compact",
 68300       label: title,
 66657       label: title,
 68301       isPressed: isActive,
 66658       isPressed: isActive,
 68302       disabled: isDisabled,
       
 68303       ...toolbarItemProps,
 66659       ...toolbarItemProps,
 68304       children: children
 66660       children: children
 68305     })
 66661     })
 68306   });
 66662   });
 68307 }
 66663 }
 68328  * ```
 66684  * ```
 68329  */
 66685  */
 68330 const ToolbarButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToolbarButton);
 66686 const ToolbarButton = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToolbarButton);
 68331 /* harmony default export */ const toolbar_button = (ToolbarButton);
 66687 /* harmony default export */ const toolbar_button = (ToolbarButton);
 68332 
 66688 
 68333 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/toolbar-group-container.js
 66689 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/toolbar-group-container.js
 68334 
 66690 
 68335 /**
 66691 /**
 68336  * Internal dependencies
 66692  * Internal dependencies
 68337  */
 66693  */
 68338 
 66694 
 68345   ...props,
 66701   ...props,
 68346   children: children
 66702   children: children
 68347 });
 66703 });
 68348 /* harmony default export */ const toolbar_group_container = (ToolbarGroupContainer);
 66704 /* harmony default export */ const toolbar_group_container = (ToolbarGroupContainer);
 68349 
 66705 
 68350 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js
 66706 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js
 68351 /**
 66707 /**
 68352  * WordPress dependencies
 66708  * WordPress dependencies
 68353  */
 66709  */
 68354 
 66710 
 68355 
 66711 
 68384   }
 66740   }
 68385   return renderDropdownMenu(toggleProps);
 66741   return renderDropdownMenu(toggleProps);
 68386 }
 66742 }
 68387 /* harmony default export */ const toolbar_group_collapsed = (ToolbarGroupCollapsed);
 66743 /* harmony default export */ const toolbar_group_collapsed = (ToolbarGroupCollapsed);
 68388 
 66744 
 68389 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/index.js
 66745 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-group/index.js
 68390 /**
 66746 /**
 68391  * External dependencies
 66747  * External dependencies
 68392  */
 66748  */
 68393 
 66749 
 68394 
 66750 
 68398 
 66754 
 68399 
 66755 
 68400 /**
 66756 /**
 68401  * Internal dependencies
 66757  * Internal dependencies
 68402  */
 66758  */
 68403 
       
 68404 
 66759 
 68405 
 66760 
 68406 
 66761 
 68407 
 66762 
 68408 
 66763 
 68484     }, [indexOfSet, indexOfControl].join()))), children]
 66839     }, [indexOfSet, indexOfControl].join()))), children]
 68485   });
 66840   });
 68486 }
 66841 }
 68487 /* harmony default export */ const toolbar_group = (ToolbarGroup);
 66842 /* harmony default export */ const toolbar_group = (ToolbarGroup);
 68488 
 66843 
 68489 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/toolbar/toolbar-store.js
 66844 ;// ./node_modules/@ariakit/core/esm/toolbar/toolbar-store.js
 68490 "use client";
 66845 "use client";
 68491 
 66846 
 68492 
 66847 
 68493 
 66848 
 68494 
 66849 
 68498 
 66853 
 68499 // src/toolbar/toolbar-store.ts
 66854 // src/toolbar/toolbar-store.ts
 68500 function createToolbarStore(props = {}) {
 66855 function createToolbarStore(props = {}) {
 68501   var _a;
 66856   var _a;
 68502   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
 66857   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
 68503   return createCompositeStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
 66858   return createCompositeStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
 68504     orientation: defaultValue(
 66859     orientation: defaultValue(
 68505       props.orientation,
 66860       props.orientation,
 68506       syncState == null ? void 0 : syncState.orientation,
 66861       syncState == null ? void 0 : syncState.orientation,
 68507       "horizontal"
 66862       "horizontal"
 68508     ),
 66863     ),
 68509     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
 66864     focusLoop: defaultValue(props.focusLoop, syncState == null ? void 0 : syncState.focusLoop, true)
 68510   }));
 66865   }));
 68511 }
 66866 }
 68512 
 66867 
 68513 
 66868 
 68514 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/BPNXFCFY.js
 66869 ;// ./node_modules/@ariakit/react-core/esm/__chunks/7M5THDKH.js
 68515 "use client";
 66870 "use client";
 68516 
 66871 
 68517 
 66872 
 68518 
 66873 
 68519 // src/toolbar/toolbar-store.ts
 66874 // src/toolbar/toolbar-store.ts
 68520 
 66875 
 68521 function useToolbarStoreProps(store, update, props) {
 66876 function useToolbarStoreProps(store, update, props) {
 68522   return useCompositeStoreProps(store, update, props);
 66877   return useCompositeStoreProps(store, update, props);
 68523 }
 66878 }
 68524 function useToolbarStore(props = {}) {
 66879 function useToolbarStore(props = {}) {
 68525   const [store, update] = EKQEJRUF_useStore(createToolbarStore, props);
 66880   const [store, update] = YV4JVR4I_useStore(createToolbarStore, props);
 68526   return useToolbarStoreProps(store, update, props);
 66881   return useToolbarStoreProps(store, update, props);
 68527 }
 66882 }
 68528 
 66883 
 68529 
 66884 
 68530 
 66885 
 68531 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/toolbar/toolbar.js
 66886 ;// ./node_modules/@ariakit/react-core/esm/toolbar/toolbar.js
 68532 "use client";
 66887 "use client";
 68533 
 66888 
 68534 
 66889 
 68535 
 66890 
 68536 
 66891 
 68546 
 66901 
 68547 
 66902 
 68548 
 66903 
 68549 // src/toolbar/toolbar.tsx
 66904 // src/toolbar/toolbar.tsx
 68550 
 66905 
       
 66906 var toolbar_TagName = "div";
 68551 var useToolbar = createHook(
 66907 var useToolbar = createHook(
 68552   (_a) => {
 66908   function useToolbar2(_a) {
 68553     var _b = _a, {
 66909     var _b = _a, {
 68554       store: storeProp,
 66910       store: storeProp,
 68555       orientation: orientationProp,
 66911       orientation: orientationProp,
 68556       virtualFocus,
 66912       virtualFocus,
 68557       focusLoop,
 66913       focusLoop,
 68578     props = useWrapElement(
 66934     props = useWrapElement(
 68579       props,
 66935       props,
 68580       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarScopedContextProvider, { value: store, children: element }),
 66936       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(ToolbarScopedContextProvider, { value: store, children: element }),
 68581       [store]
 66937       [store]
 68582     );
 66938     );
 68583     props = _4R3V3JGP_spreadValues({
 66939     props = _3YLGPPWQ_spreadValues({
 68584       role: "toolbar",
 66940       role: "toolbar",
 68585       "aria-orientation": orientation
 66941       "aria-orientation": orientation
 68586     }, props);
 66942     }, props);
 68587     props = useComposite(_4R3V3JGP_spreadValues({ store }, props));
 66943     props = useComposite(_3YLGPPWQ_spreadValues({ store }, props));
 68588     return props;
 66944     return props;
 68589   }
 66945   }
 68590 );
 66946 );
 68591 var Toolbar = createComponent((props) => {
 66947 var Toolbar = forwardRef2(function Toolbar2(props) {
 68592   const htmlProps = useToolbar(props);
 66948   const htmlProps = useToolbar(props);
 68593   return _3ORBWXWF_createElement("div", htmlProps);
 66949   return LMDWO4NN_createElement(toolbar_TagName, htmlProps);
 68594 });
 66950 });
 68595 if (false) {}
 66951 
 68596 
 66952 
 68597 
 66953 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar/toolbar-container.js
 68598 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar/toolbar-container.js
       
 68599 /**
 66954 /**
 68600  * External dependencies
 66955  * External dependencies
 68601  */
 66956  */
 68602 // eslint-disable-next-line no-restricted-imports
       
 68603 
 66957 
 68604 /**
 66958 /**
 68605  * WordPress dependencies
 66959  * WordPress dependencies
 68606  */
 66960  */
 68607 
 66961 
 68635   );
 66989   );
 68636 }
 66990 }
 68637 const ToolbarContainer = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToolbarContainer);
 66991 const ToolbarContainer = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToolbarContainer);
 68638 /* harmony default export */ const toolbar_container = (ToolbarContainer);
 66992 /* harmony default export */ const toolbar_container = (ToolbarContainer);
 68639 
 66993 
 68640 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar/index.js
 66994 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar/index.js
 68641 /**
 66995 /**
 68642  * External dependencies
 66996  * External dependencies
 68643  */
 66997  */
 68644 
 66998 
 68645 /**
 66999 /**
 68669     return {
 67023     return {
 68670       DropdownMenu: {
 67024       DropdownMenu: {
 68671         variant: 'toolbar'
 67025         variant: 'toolbar'
 68672       },
 67026       },
 68673       Dropdown: {
 67027       Dropdown: {
       
 67028         variant: 'toolbar'
       
 67029       },
       
 67030       Menu: {
 68674         variant: 'toolbar'
 67031         variant: 'toolbar'
 68675       }
 67032       }
 68676     };
 67033     };
 68677   }, [isVariantDefined]);
 67034   }, [isVariantDefined]);
 68678   if (!label) {
 67035   if (!label) {
 68726  * ```
 67083  * ```
 68727  */
 67084  */
 68728 const toolbar_Toolbar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToolbar);
 67085 const toolbar_Toolbar = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedToolbar);
 68729 /* harmony default export */ const toolbar = (toolbar_Toolbar);
 67086 /* harmony default export */ const toolbar = (toolbar_Toolbar);
 68730 
 67087 
 68731 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar/toolbar-dropdown-menu/index.js
 67088 ;// ./node_modules/@wordpress/components/build-module/toolbar/toolbar-dropdown-menu/index.js
 68732 /**
 67089 /**
 68733  * WordPress dependencies
 67090  * WordPress dependencies
 68734  */
 67091  */
 68735 
 67092 
 68736 
 67093 
 68768     })
 67125     })
 68769   });
 67126   });
 68770 }
 67127 }
 68771 /* harmony default export */ const toolbar_dropdown_menu = ((0,external_wp_element_namespaceObject.forwardRef)(ToolbarDropdownMenu));
 67128 /* harmony default export */ const toolbar_dropdown_menu = ((0,external_wp_element_namespaceObject.forwardRef)(ToolbarDropdownMenu));
 68772 
 67129 
 68773 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/styles.js
 67130 ;// ./node_modules/@wordpress/components/build-module/tools-panel/styles.js
 68774 
 67131 
 68775 function tools_panel_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 67132 function tools_panel_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 68776 /**
 67133 /**
 68777  * External dependencies
 67134  * External dependencies
 68778  */
 67135  */
 68786 
 67143 
 68787 
 67144 
 68788 
 67145 
 68789 const toolsPanelGrid = {
 67146 const toolsPanelGrid = {
 68790   columns: columns => /*#__PURE__*/emotion_react_browser_esm_css("grid-template-columns:", `repeat( ${columns}, minmax(0, 1fr) )`, ";" + ( true ? "" : 0),  true ? "" : 0),
 67147   columns: columns => /*#__PURE__*/emotion_react_browser_esm_css("grid-template-columns:", `repeat( ${columns}, minmax(0, 1fr) )`, ";" + ( true ? "" : 0),  true ? "" : 0),
 68791   spacing: /*#__PURE__*/emotion_react_browser_esm_css("column-gap:", space(2), ";row-gap:", space(4), ";" + ( true ? "" : 0),  true ? "" : 0),
 67148   spacing: /*#__PURE__*/emotion_react_browser_esm_css("column-gap:", space(4), ";row-gap:", space(4), ";" + ( true ? "" : 0),  true ? "" : 0),
 68792   item: {
 67149   item: {
 68793     fullWidth:  true ? {
 67150     fullWidth:  true ? {
 68794       name: "18iuzk9",
 67151       name: "18iuzk9",
 68795       styles: "grid-column:1/-1"
 67152       styles: "grid-column:1/-1"
 68796     } : 0
 67153     } : 0
 68814 const ToolsPanelHeader = /*#__PURE__*/emotion_react_browser_esm_css(toolsPanelGrid.item.fullWidth, " gap:", space(2), ";.components-dropdown-menu{margin:", space(-1), " 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:", space(6), ";}" + ( true ? "" : 0),  true ? "" : 0);
 67171 const ToolsPanelHeader = /*#__PURE__*/emotion_react_browser_esm_css(toolsPanelGrid.item.fullWidth, " gap:", space(2), ";.components-dropdown-menu{margin:", space(-1), " 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:", space(6), ";}" + ( true ? "" : 0),  true ? "" : 0);
 68815 const ToolsPanelHeading =  true ? {
 67172 const ToolsPanelHeading =  true ? {
 68816   name: "1pmxm02",
 67173   name: "1pmxm02",
 68817   styles: "font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"
 67174   styles: "font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"
 68818 } : 0;
 67175 } : 0;
 68819 const ToolsPanelItem = /*#__PURE__*/emotion_react_browser_esm_css(toolsPanelGrid.item.fullWidth, "&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ", base_control_styles_Wrapper, "{margin-bottom:0;", StyledField, ":last-child{margin-bottom:0;}}", StyledHelp, "{margin-bottom:0;}&& ", LabelWrapper, "{label{line-height:1.4em;}}" + ( true ? "" : 0),  true ? "" : 0);
 67176 const ToolsPanelItem = /*#__PURE__*/emotion_react_browser_esm_css(toolsPanelGrid.item.fullWidth, "&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ", Wrapper, "{margin-bottom:0;", StyledField, ":last-child{margin-bottom:0;}}", StyledHelp, "{margin-bottom:0;}&& ", LabelWrapper, "{label{line-height:1.4em;}}" + ( true ? "" : 0),  true ? "" : 0);
 68820 const ToolsPanelItemPlaceholder =  true ? {
 67177 const ToolsPanelItemPlaceholder =  true ? {
 68821   name: "eivff4",
 67178   name: "eivff4",
 68822   styles: "display:none"
 67179   styles: "display:none"
 68823 } : 0;
 67180 } : 0;
 68824 const styles_DropdownMenu =  true ? {
 67181 const styles_DropdownMenu =  true ? {
 68830 } : 0)("color:", COLORS.theme.accentDarker10, ";font-size:11px;font-weight:500;line-height:1.4;", rtl({
 67187 } : 0)("color:", COLORS.theme.accentDarker10, ";font-size:11px;font-weight:500;line-height:1.4;", rtl({
 68831   marginLeft: space(3)
 67188   marginLeft: space(3)
 68832 }), " text-transform:uppercase;" + ( true ? "" : 0));
 67189 }), " text-transform:uppercase;" + ( true ? "" : 0));
 68833 const DefaultControlsItem = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";&&[aria-disabled='true']{color:", COLORS.gray[700], ";opacity:1;&:hover{color:", COLORS.gray[700], ";}", ResetLabel, "{opacity:0.3;}}" + ( true ? "" : 0),  true ? "" : 0);
 67190 const DefaultControlsItem = /*#__PURE__*/emotion_react_browser_esm_css("color:", COLORS.gray[900], ";&&[aria-disabled='true']{color:", COLORS.gray[700], ";opacity:1;&:hover{color:", COLORS.gray[700], ";}", ResetLabel, "{opacity:0.3;}}" + ( true ? "" : 0),  true ? "" : 0);
 68834 
 67191 
 68835 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/context.js
 67192 ;// ./node_modules/@wordpress/components/build-module/tools-panel/context.js
 68836 /**
 67193 /**
 68837  * WordPress dependencies
 67194  * WordPress dependencies
 68838  */
 67195  */
 68839 
 67196 
 68840 
 67197 
 68858   deregisterResetAllFilter: tools_panel_context_noop,
 67215   deregisterResetAllFilter: tools_panel_context_noop,
 68859   areAllOptionalControlsHidden: true
 67216   areAllOptionalControlsHidden: true
 68860 });
 67217 });
 68861 const useToolsPanelContext = () => (0,external_wp_element_namespaceObject.useContext)(ToolsPanelContext);
 67218 const useToolsPanelContext = () => (0,external_wp_element_namespaceObject.useContext)(ToolsPanelContext);
 68862 
 67219 
 68863 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-header/hook.js
 67220 ;// ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-header/hook.js
 68864 /**
 67221 /**
 68865  * WordPress dependencies
 67222  * WordPress dependencies
 68866  */
 67223  */
 68867 
 67224 
 68868 
 67225 
 68908     menuItems,
 67265     menuItems,
 68909     className: classes
 67266     className: classes
 68910   };
 67267   };
 68911 }
 67268 }
 68912 
 67269 
 68913 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-header/component.js
 67270 ;// ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-header/component.js
 68914 /**
 67271 /**
 68915  * External dependencies
 67272  * External dependencies
 68916  */
 67273  */
 68917 
 67274 
 68918 /**
 67275 /**
 68923 
 67280 
 68924 
 67281 
 68925 /**
 67282 /**
 68926  * Internal dependencies
 67283  * Internal dependencies
 68927  */
 67284  */
 68928 
       
 68929 
       
 68930 
 67285 
 68931 
 67286 
 68932 
 67287 
 68933 
 67288 
 68934 
 67289 
 68989     children: items.map(([label, isSelected]) => {
 67344     children: items.map(([label, isSelected]) => {
 68990       const itemLabel = isSelected ? (0,external_wp_i18n_namespaceObject.sprintf)(
 67345       const itemLabel = isSelected ? (0,external_wp_i18n_namespaceObject.sprintf)(
 68991       // translators: %s: The name of the control being hidden and reset e.g. "Padding".
 67346       // translators: %s: The name of the control being hidden and reset e.g. "Padding".
 68992       (0,external_wp_i18n_namespaceObject.__)('Hide and reset %s'), label) : (0,external_wp_i18n_namespaceObject.sprintf)(
 67347       (0,external_wp_i18n_namespaceObject.__)('Hide and reset %s'), label) : (0,external_wp_i18n_namespaceObject.sprintf)(
 68993       // translators: %s: The name of the control to display e.g. "Padding".
 67348       // translators: %s: The name of the control to display e.g. "Padding".
 68994       (0,external_wp_i18n_namespaceObject.__)('Show %s'), label);
 67349       (0,external_wp_i18n_namespaceObject._x)('Show %s', 'input control'), label);
 68995       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
 67350       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(menu_item, {
 68996         icon: isSelected ? library_check : null,
 67351         icon: isSelected ? library_check : null,
 68997         isSelected: isSelected,
 67352         isSelected: isSelected,
 68998         label: itemLabel,
 67353         label: itemLabel,
 68999         onClick: () => {
 67354         onClick: () => {
 69054       menuProps: {
 67409       menuProps: {
 69055         className: dropdownMenuClassName
 67410         className: dropdownMenuClassName
 69056       },
 67411       },
 69057       toggleProps: {
 67412       toggleProps: {
 69058         size: 'small',
 67413         size: 'small',
 69059         describedBy: dropdownMenuDescriptionText
 67414         description: dropdownMenuDescriptionText
 69060       },
 67415       },
 69061       children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 67416       children: () => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 69062         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(menu_group, {
 67417         children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(menu_group, {
 69063           label: labelText,
 67418           label: labelText,
 69064           children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DefaultControlsGroup, {
 67419           children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DefaultControlsGroup, {
 69091   });
 67446   });
 69092 };
 67447 };
 69093 const ConnectedToolsPanelHeader = contextConnect(component_ToolsPanelHeader, 'ToolsPanelHeader');
 67448 const ConnectedToolsPanelHeader = contextConnect(component_ToolsPanelHeader, 'ToolsPanelHeader');
 69094 /* harmony default export */ const tools_panel_header_component = (ConnectedToolsPanelHeader);
 67449 /* harmony default export */ const tools_panel_header_component = (ConnectedToolsPanelHeader);
 69095 
 67450 
 69096 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel/hook.js
 67451 ;// ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel/hook.js
 69097 /**
 67452 /**
 69098  * WordPress dependencies
 67453  * WordPress dependencies
 69099  */
 67454  */
 69100 
 67455 
 69101 
 67456 
 69104  */
 67459  */
 69105 
 67460 
 69106 
 67461 
 69107 
 67462 
 69108 const DEFAULT_COLUMNS = 2;
 67463 const DEFAULT_COLUMNS = 2;
       
 67464 function emptyMenuItems() {
       
 67465   return {
       
 67466     default: {},
       
 67467     optional: {}
       
 67468   };
       
 67469 }
       
 67470 function emptyState() {
       
 67471   return {
       
 67472     panelItems: [],
       
 67473     menuItemOrder: [],
       
 67474     menuItems: emptyMenuItems()
       
 67475   };
       
 67476 }
 69109 const generateMenuItems = ({
 67477 const generateMenuItems = ({
 69110   panelItems,
 67478   panelItems,
 69111   shouldReset,
 67479   shouldReset,
 69112   currentMenuItems,
 67480   currentMenuItems,
 69113   menuItemOrder
 67481   menuItemOrder
 69114 }) => {
 67482 }) => {
 69115   const newMenuItems = {
 67483   const newMenuItems = emptyMenuItems();
 69116     default: {},
 67484   const menuItems = emptyMenuItems();
 69117     optional: {}
       
 69118   };
       
 69119   const menuItems = {
       
 69120     default: {},
       
 69121     optional: {}
       
 69122   };
       
 69123   panelItems.forEach(({
 67485   panelItems.forEach(({
 69124     hasValue,
 67486     hasValue,
 69125     isShownByDefault,
 67487     isShownByDefault,
 69126     label
 67488     label
 69127   }) => {
 67489   }) => {
 69156       menuItems.optional[key] = newMenuItems.optional[key];
 67518       menuItems.optional[key] = newMenuItems.optional[key];
 69157     }
 67519     }
 69158   });
 67520   });
 69159   return menuItems;
 67521   return menuItems;
 69160 };
 67522 };
 69161 const isMenuItemTypeEmpty = obj => obj && Object.keys(obj).length === 0;
 67523 function panelItemsReducer(panelItems, action) {
       
 67524   switch (action.type) {
       
 67525     case 'REGISTER_PANEL':
       
 67526       {
       
 67527         const newItems = [...panelItems];
       
 67528         // If an item with this label has already been registered, remove it
       
 67529         // first. This can happen when an item is moved between the default
       
 67530         // and optional groups.
       
 67531         const existingIndex = newItems.findIndex(oldItem => oldItem.label === action.item.label);
       
 67532         if (existingIndex !== -1) {
       
 67533           newItems.splice(existingIndex, 1);
       
 67534         }
       
 67535         newItems.push(action.item);
       
 67536         return newItems;
       
 67537       }
       
 67538     case 'UNREGISTER_PANEL':
       
 67539       {
       
 67540         const index = panelItems.findIndex(item => item.label === action.label);
       
 67541         if (index !== -1) {
       
 67542           const newItems = [...panelItems];
       
 67543           newItems.splice(index, 1);
       
 67544           return newItems;
       
 67545         }
       
 67546         return panelItems;
       
 67547       }
       
 67548     default:
       
 67549       return panelItems;
       
 67550   }
       
 67551 }
       
 67552 function menuItemOrderReducer(menuItemOrder, action) {
       
 67553   switch (action.type) {
       
 67554     case 'REGISTER_PANEL':
       
 67555       {
       
 67556         // Track the initial order of item registration. This is used for
       
 67557         // maintaining menu item order later.
       
 67558         if (menuItemOrder.includes(action.item.label)) {
       
 67559           return menuItemOrder;
       
 67560         }
       
 67561         return [...menuItemOrder, action.item.label];
       
 67562       }
       
 67563     default:
       
 67564       return menuItemOrder;
       
 67565   }
       
 67566 }
       
 67567 function menuItemsReducer(state, action) {
       
 67568   switch (action.type) {
       
 67569     case 'REGISTER_PANEL':
       
 67570     case 'UNREGISTER_PANEL':
       
 67571       // generate new menu items from original `menuItems` and updated `panelItems` and `menuItemOrder`
       
 67572       return generateMenuItems({
       
 67573         currentMenuItems: state.menuItems,
       
 67574         panelItems: state.panelItems,
       
 67575         menuItemOrder: state.menuItemOrder,
       
 67576         shouldReset: false
       
 67577       });
       
 67578     case 'RESET_ALL':
       
 67579       return generateMenuItems({
       
 67580         panelItems: state.panelItems,
       
 67581         menuItemOrder: state.menuItemOrder,
       
 67582         shouldReset: true
       
 67583       });
       
 67584     case 'UPDATE_VALUE':
       
 67585       {
       
 67586         const oldValue = state.menuItems[action.group][action.label];
       
 67587         if (action.value === oldValue) {
       
 67588           return state.menuItems;
       
 67589         }
       
 67590         return {
       
 67591           ...state.menuItems,
       
 67592           [action.group]: {
       
 67593             ...state.menuItems[action.group],
       
 67594             [action.label]: action.value
       
 67595           }
       
 67596         };
       
 67597       }
       
 67598     case 'TOGGLE_VALUE':
       
 67599       {
       
 67600         const currentItem = state.panelItems.find(item => item.label === action.label);
       
 67601         if (!currentItem) {
       
 67602           return state.menuItems;
       
 67603         }
       
 67604         const menuGroup = currentItem.isShownByDefault ? 'default' : 'optional';
       
 67605         const newMenuItems = {
       
 67606           ...state.menuItems,
       
 67607           [menuGroup]: {
       
 67608             ...state.menuItems[menuGroup],
       
 67609             [action.label]: !state.menuItems[menuGroup][action.label]
       
 67610           }
       
 67611         };
       
 67612         return newMenuItems;
       
 67613       }
       
 67614     default:
       
 67615       return state.menuItems;
       
 67616   }
       
 67617 }
       
 67618 function panelReducer(state, action) {
       
 67619   const panelItems = panelItemsReducer(state.panelItems, action);
       
 67620   const menuItemOrder = menuItemOrderReducer(state.menuItemOrder, action);
       
 67621   // `menuItemsReducer` is a bit unusual because it generates new state from original `menuItems`
       
 67622   // and the updated `panelItems` and `menuItemOrder`.
       
 67623   const menuItems = menuItemsReducer({
       
 67624     panelItems,
       
 67625     menuItemOrder,
       
 67626     menuItems: state.menuItems
       
 67627   }, action);
       
 67628   return {
       
 67629     panelItems,
       
 67630     menuItemOrder,
       
 67631     menuItems
       
 67632   };
       
 67633 }
       
 67634 function resetAllFiltersReducer(filters, action) {
       
 67635   switch (action.type) {
       
 67636     case 'REGISTER':
       
 67637       return [...filters, action.filter];
       
 67638     case 'UNREGISTER':
       
 67639       return filters.filter(f => f !== action.filter);
       
 67640     default:
       
 67641       return filters;
       
 67642   }
       
 67643 }
       
 67644 const isMenuItemTypeEmpty = obj => Object.keys(obj).length === 0;
 69162 function useToolsPanel(props) {
 67645 function useToolsPanel(props) {
 69163   const {
 67646   const {
 69164     className,
 67647     className,
 69165     headingLevel = 2,
 67648     headingLevel = 2,
 69166     resetAll,
 67649     resetAll,
 69169     shouldRenderPlaceholderItems = false,
 67652     shouldRenderPlaceholderItems = false,
 69170     __experimentalFirstVisibleItemClass,
 67653     __experimentalFirstVisibleItemClass,
 69171     __experimentalLastVisibleItemClass,
 67654     __experimentalLastVisibleItemClass,
 69172     ...otherProps
 67655     ...otherProps
 69173   } = useContextSystem(props, 'ToolsPanel');
 67656   } = useContextSystem(props, 'ToolsPanel');
 69174   const isResetting = (0,external_wp_element_namespaceObject.useRef)(false);
 67657   const isResettingRef = (0,external_wp_element_namespaceObject.useRef)(false);
 69175   const wasResetting = isResetting.current;
 67658   const wasResetting = isResettingRef.current;
 69176 
 67659 
 69177   // `isResetting` is cleared via this hook to effectively batch together
 67660   // `isResettingRef` is cleared via this hook to effectively batch together
 69178   // the resetAll task. Without this, the flag is cleared after the first
 67661   // the resetAll task. Without this, the flag is cleared after the first
 69179   // control updates and forces a rerender with subsequent controls then
 67662   // control updates and forces a rerender with subsequent controls then
 69180   // believing they need to reset, unfortunately using stale data.
 67663   // believing they need to reset, unfortunately using stale data.
 69181   (0,external_wp_element_namespaceObject.useEffect)(() => {
 67664   (0,external_wp_element_namespaceObject.useEffect)(() => {
 69182     if (wasResetting) {
 67665     if (wasResetting) {
 69183       isResetting.current = false;
 67666       isResettingRef.current = false;
 69184     }
 67667     }
 69185   }, [wasResetting]);
 67668   }, [wasResetting]);
 69186 
 67669 
 69187   // Allow panel items to register themselves.
 67670   // Allow panel items to register themselves.
 69188   const [panelItems, setPanelItems] = (0,external_wp_element_namespaceObject.useState)([]);
 67671   const [{
 69189   const [menuItemOrder, setMenuItemOrder] = (0,external_wp_element_namespaceObject.useState)([]);
 67672     panelItems,
 69190   const [resetAllFilters, setResetAllFilters] = (0,external_wp_element_namespaceObject.useState)([]);
 67673     menuItems
       
 67674   }, panelDispatch] = (0,external_wp_element_namespaceObject.useReducer)(panelReducer, undefined, emptyState);
       
 67675   const [resetAllFilters, dispatchResetAllFilters] = (0,external_wp_element_namespaceObject.useReducer)(resetAllFiltersReducer, []);
 69191   const registerPanelItem = (0,external_wp_element_namespaceObject.useCallback)(item => {
 67676   const registerPanelItem = (0,external_wp_element_namespaceObject.useCallback)(item => {
 69192     // Add item to panel items.
 67677     // Add item to panel items.
 69193     setPanelItems(items => {
 67678     panelDispatch({
 69194       const newItems = [...items];
 67679       type: 'REGISTER_PANEL',
 69195       // If an item with this label has already been registered, remove it
 67680       item
 69196       // first. This can happen when an item is moved between the default
       
 69197       // and optional groups.
       
 69198       const existingIndex = newItems.findIndex(oldItem => oldItem.label === item.label);
       
 69199       if (existingIndex !== -1) {
       
 69200         newItems.splice(existingIndex, 1);
       
 69201       }
       
 69202       return [...newItems, item];
       
 69203     });
 67681     });
 69204 
 67682   }, []);
 69205     // Track the initial order of item registration. This is used for
       
 69206     // maintaining menu item order later.
       
 69207     setMenuItemOrder(items => {
       
 69208       if (items.includes(item.label)) {
       
 69209         return items;
       
 69210       }
       
 69211       return [...items, item.label];
       
 69212     });
       
 69213   }, [setPanelItems, setMenuItemOrder]);
       
 69214 
 67683 
 69215   // Panels need to deregister on unmount to avoid orphans in menu state.
 67684   // Panels need to deregister on unmount to avoid orphans in menu state.
 69216   // This is an issue when panel items are being injected via SlotFills.
 67685   // This is an issue when panel items are being injected via SlotFills.
 69217   const deregisterPanelItem = (0,external_wp_element_namespaceObject.useCallback)(label => {
 67686   const deregisterPanelItem = (0,external_wp_element_namespaceObject.useCallback)(label => {
 69218     // When switching selections between components injecting matching
 67687     // When switching selections between components injecting matching
 69219     // controls, e.g. both panels have a "padding" control, the
 67688     // controls, e.g. both panels have a "padding" control, the
 69220     // deregistration of the first panel doesn't occur until after the
 67689     // deregistration of the first panel doesn't occur until after the
 69221     // registration of the next.
 67690     // registration of the next.
 69222     setPanelItems(items => {
 67691     panelDispatch({
 69223       const newItems = [...items];
 67692       type: 'UNREGISTER_PANEL',
 69224       const index = newItems.findIndex(item => item.label === label);
 67693       label
 69225       if (index !== -1) {
       
 69226         newItems.splice(index, 1);
       
 69227       }
       
 69228       return newItems;
       
 69229     });
 67694     });
 69230   }, [setPanelItems]);
 67695   }, []);
 69231   const registerResetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(newFilter => {
 67696   const registerResetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(filter => {
 69232     setResetAllFilters(filters => {
 67697     dispatchResetAllFilters({
 69233       return [...filters, newFilter];
 67698       type: 'REGISTER',
       
 67699       filter
 69234     });
 67700     });
 69235   }, [setResetAllFilters]);
 67701   }, []);
 69236   const deregisterResetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(filterToRemove => {
 67702   const deregisterResetAllFilter = (0,external_wp_element_namespaceObject.useCallback)(filter => {
 69237     setResetAllFilters(filters => {
 67703     dispatchResetAllFilters({
 69238       return filters.filter(filter => filter !== filterToRemove);
 67704       type: 'UNREGISTER',
       
 67705       filter
 69239     });
 67706     });
 69240   }, [setResetAllFilters]);
 67707   }, []);
 69241 
       
 69242   // Manage and share display state of menu items representing child controls.
       
 69243   const [menuItems, setMenuItems] = (0,external_wp_element_namespaceObject.useState)({
       
 69244     default: {},
       
 69245     optional: {}
       
 69246   });
       
 69247 
       
 69248   // Setup menuItems state as panel items register themselves.
       
 69249   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
 69250     setMenuItems(prevState => {
       
 69251       const items = generateMenuItems({
       
 69252         panelItems,
       
 69253         shouldReset: false,
       
 69254         currentMenuItems: prevState,
       
 69255         menuItemOrder
       
 69256       });
       
 69257       return items;
       
 69258     });
       
 69259   }, [panelItems, setMenuItems, menuItemOrder]);
       
 69260 
 67708 
 69261   // Updates the status of the panel’s menu items. For default items the
 67709   // Updates the status of the panel’s menu items. For default items the
 69262   // value represents whether it differs from the default and for optional
 67710   // value represents whether it differs from the default and for optional
 69263   // items whether the item is shown.
 67711   // items whether the item is shown.
 69264   const flagItemCustomization = (0,external_wp_element_namespaceObject.useCallback)((value, label, group = 'default') => {
 67712   const flagItemCustomization = (0,external_wp_element_namespaceObject.useCallback)((value, label, group = 'default') => {
 69265     setMenuItems(items => {
 67713     panelDispatch({
 69266       const newState = {
 67714       type: 'UPDATE_VALUE',
 69267         ...items,
 67715       group,
 69268         [group]: {
 67716       label,
 69269           ...items[group],
 67717       value
 69270           [label]: value
       
 69271         }
       
 69272       };
       
 69273       return newState;
       
 69274     });
 67718     });
 69275   }, [setMenuItems]);
 67719   }, []);
 69276 
 67720 
 69277   // Whether all optional menu items are hidden or not must be tracked
 67721   // Whether all optional menu items are hidden or not must be tracked
 69278   // in order to later determine if the panel display is empty and handle
 67722   // in order to later determine if the panel display is empty and handle
 69279   // conditional display of a plus icon to indicate the presence of further
 67723   // conditional display of a plus icon to indicate the presence of further
 69280   // menu items.
 67724   // menu items.
 69281   const [areAllOptionalControlsHidden, setAreAllOptionalControlsHidden] = (0,external_wp_element_namespaceObject.useState)(false);
 67725   const areAllOptionalControlsHidden = (0,external_wp_element_namespaceObject.useMemo)(() => {
 69282   (0,external_wp_element_namespaceObject.useEffect)(() => {
 67726     return isMenuItemTypeEmpty(menuItems.default) && !isMenuItemTypeEmpty(menuItems.optional) && Object.values(menuItems.optional).every(isSelected => !isSelected);
 69283     if (isMenuItemTypeEmpty(menuItems?.default) && !isMenuItemTypeEmpty(menuItems?.optional)) {
 67727   }, [menuItems]);
 69284       const allControlsHidden = !Object.entries(menuItems.optional).some(([, isSelected]) => isSelected);
       
 69285       setAreAllOptionalControlsHidden(allControlsHidden);
       
 69286     }
       
 69287   }, [menuItems, setAreAllOptionalControlsHidden]);
       
 69288   const cx = useCx();
 67728   const cx = useCx();
 69289   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => {
 67729   const classes = (0,external_wp_element_namespaceObject.useMemo)(() => {
 69290     const wrapperStyle = hasInnerWrapper && ToolsPanelWithInnerWrapper(DEFAULT_COLUMNS);
 67730     const wrapperStyle = hasInnerWrapper && ToolsPanelWithInnerWrapper(DEFAULT_COLUMNS);
 69291     const emptyStyle = isMenuItemTypeEmpty(menuItems?.default) && areAllOptionalControlsHidden && ToolsPanelHiddenInnerWrapper;
 67731     const emptyStyle = areAllOptionalControlsHidden && ToolsPanelHiddenInnerWrapper;
 69292     return cx(ToolsPanel(DEFAULT_COLUMNS), wrapperStyle, emptyStyle, className);
 67732     return cx(ToolsPanel(DEFAULT_COLUMNS), wrapperStyle, emptyStyle, className);
 69293   }, [areAllOptionalControlsHidden, className, cx, hasInnerWrapper, menuItems]);
 67733   }, [areAllOptionalControlsHidden, className, cx, hasInnerWrapper]);
 69294 
 67734 
 69295   // Toggle the checked state of a menu item which is then used to determine
 67735   // Toggle the checked state of a menu item which is then used to determine
 69296   // display of the item within the panel.
 67736   // display of the item within the panel.
 69297   const toggleItem = (0,external_wp_element_namespaceObject.useCallback)(label => {
 67737   const toggleItem = (0,external_wp_element_namespaceObject.useCallback)(label => {
 69298     const currentItem = panelItems.find(item => item.label === label);
 67738     panelDispatch({
 69299     if (!currentItem) {
 67739       type: 'TOGGLE_VALUE',
 69300       return;
 67740       label
 69301     }
 67741     });
 69302     const menuGroup = currentItem.isShownByDefault ? 'default' : 'optional';
 67742   }, []);
 69303     const newMenuItems = {
       
 69304       ...menuItems,
       
 69305       [menuGroup]: {
       
 69306         ...menuItems[menuGroup],
       
 69307         [label]: !menuItems[menuGroup][label]
       
 69308       }
       
 69309     };
       
 69310     setMenuItems(newMenuItems);
       
 69311   }, [menuItems, panelItems, setMenuItems]);
       
 69312 
 67743 
 69313   // Resets display of children and executes resetAll callback if available.
 67744   // Resets display of children and executes resetAll callback if available.
 69314   const resetAllItems = (0,external_wp_element_namespaceObject.useCallback)(() => {
 67745   const resetAllItems = (0,external_wp_element_namespaceObject.useCallback)(() => {
 69315     if (typeof resetAll === 'function') {
 67746     if (typeof resetAll === 'function') {
 69316       isResetting.current = true;
 67747       isResettingRef.current = true;
 69317       resetAll(resetAllFilters);
 67748       resetAll(resetAllFilters);
 69318     }
 67749     }
 69319 
 67750 
 69320     // Turn off display of all non-default items.
 67751     // Turn off display of all non-default items.
 69321     const resetMenuItems = generateMenuItems({
 67752     panelDispatch({
 69322       panelItems,
 67753       type: 'RESET_ALL'
 69323       menuItemOrder,
       
 69324       shouldReset: true
       
 69325     });
 67754     });
 69326     setMenuItems(resetMenuItems);
 67755   }, [resetAllFilters, resetAll]);
 69327   }, [panelItems, resetAllFilters, resetAll, setMenuItems, menuItemOrder]);
       
 69328 
 67756 
 69329   // Assist ItemGroup styling when there are potentially hidden placeholder
 67757   // Assist ItemGroup styling when there are potentially hidden placeholder
 69330   // items by identifying first & last items that are toggled on for display.
 67758   // items by identifying first & last items that are toggled on for display.
 69331   const getFirstVisibleItemLabel = items => {
 67759   const getFirstVisibleItemLabel = items => {
 69332     const optionalItems = menuItems.optional || {};
 67760     const optionalItems = menuItems.optional || {};
 69333     const firstItem = items.find(item => item.isShownByDefault || !!optionalItems[item.label]);
 67761     const firstItem = items.find(item => item.isShownByDefault || optionalItems[item.label]);
 69334     return firstItem?.label;
 67762     return firstItem?.label;
 69335   };
 67763   };
 69336   const firstDisplayedItem = getFirstVisibleItemLabel(panelItems);
 67764   const firstDisplayedItem = getFirstVisibleItemLabel(panelItems);
 69337   const lastDisplayedItem = getFirstVisibleItemLabel([...panelItems].reverse());
 67765   const lastDisplayedItem = getFirstVisibleItemLabel([...panelItems].reverse());
       
 67766   const hasMenuItems = panelItems.length > 0;
 69338   const panelContext = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 67767   const panelContext = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 69339     areAllOptionalControlsHidden,
 67768     areAllOptionalControlsHidden,
 69340     deregisterPanelItem,
 67769     deregisterPanelItem,
 69341     deregisterResetAllFilter,
 67770     deregisterResetAllFilter,
 69342     firstDisplayedItem,
 67771     firstDisplayedItem,
 69343     flagItemCustomization,
 67772     flagItemCustomization,
 69344     hasMenuItems: !!panelItems.length,
 67773     hasMenuItems,
 69345     isResetting: isResetting.current,
 67774     isResetting: isResettingRef.current,
 69346     lastDisplayedItem,
 67775     lastDisplayedItem,
 69347     menuItems,
 67776     menuItems,
 69348     panelId,
 67777     panelId,
 69349     registerPanelItem,
 67778     registerPanelItem,
 69350     registerResetAllFilter,
 67779     registerResetAllFilter,
 69351     shouldRenderPlaceholderItems,
 67780     shouldRenderPlaceholderItems,
 69352     __experimentalFirstVisibleItemClass,
 67781     __experimentalFirstVisibleItemClass,
 69353     __experimentalLastVisibleItemClass
 67782     __experimentalLastVisibleItemClass
 69354   }), [areAllOptionalControlsHidden, deregisterPanelItem, deregisterResetAllFilter, firstDisplayedItem, flagItemCustomization, lastDisplayedItem, menuItems, panelId, panelItems, registerResetAllFilter, registerPanelItem, shouldRenderPlaceholderItems, __experimentalFirstVisibleItemClass, __experimentalLastVisibleItemClass]);
 67783   }), [areAllOptionalControlsHidden, deregisterPanelItem, deregisterResetAllFilter, firstDisplayedItem, flagItemCustomization, lastDisplayedItem, menuItems, panelId, hasMenuItems, registerResetAllFilter, registerPanelItem, shouldRenderPlaceholderItems, __experimentalFirstVisibleItemClass, __experimentalLastVisibleItemClass]);
 69355   return {
 67784   return {
 69356     ...otherProps,
 67785     ...otherProps,
 69357     headingLevel,
 67786     headingLevel,
 69358     panelContext,
 67787     panelContext,
 69359     resetAllItems,
 67788     resetAllItems,
 69360     toggleItem,
 67789     toggleItem,
 69361     className: classes
 67790     className: classes
 69362   };
 67791   };
 69363 }
 67792 }
 69364 
 67793 
 69365 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel/component.js
 67794 ;// ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel/component.js
 69366 /**
 67795 /**
 69367  * External dependencies
 67796  * External dependencies
 69368  */
 67797  */
 69369 
 67798 
 69370 /**
 67799 /**
 69371  * Internal dependencies
 67800  * Internal dependencies
 69372  */
 67801  */
 69373 
       
 69374 
 67802 
 69375 
 67803 
 69376 
 67804 
 69377 
 67805 
 69378 
 67806 
 69433  *         hasValue={ () => !! height }
 67861  *         hasValue={ () => !! height }
 69434  *         label={ __( 'Height' ) }
 67862  *         label={ __( 'Height' ) }
 69435  *         onDeselect={ () => setHeight() }
 67863  *         onDeselect={ () => setHeight() }
 69436  *       >
 67864  *       >
 69437  *         <UnitControl
 67865  *         <UnitControl
       
 67866  *           __next40pxDefaultSize
 69438  *           label={ __( 'Height' ) }
 67867  *           label={ __( 'Height' ) }
 69439  *           onChange={ setHeight }
 67868  *           onChange={ setHeight }
 69440  *           value={ height }
 67869  *           value={ height }
 69441  *         />
 67870  *         />
 69442  *       </ToolsPanelItem>
 67871  *       </ToolsPanelItem>
 69444  *         hasValue={ () => !! width }
 67873  *         hasValue={ () => !! width }
 69445  *         label={ __( 'Width' ) }
 67874  *         label={ __( 'Width' ) }
 69446  *         onDeselect={ () => setWidth() }
 67875  *         onDeselect={ () => setWidth() }
 69447  *       >
 67876  *       >
 69448  *         <UnitControl
 67877  *         <UnitControl
       
 67878  *           __next40pxDefaultSize
 69449  *           label={ __( 'Width' ) }
 67879  *           label={ __( 'Width' ) }
 69450  *           onChange={ setWidth }
 67880  *           onChange={ setWidth }
 69451  *           value={ width }
 67881  *           value={ width }
 69452  *         />
 67882  *         />
 69453  *       </ToolsPanelItem>
 67883  *       </ToolsPanelItem>
 69457  * ```
 67887  * ```
 69458  */
 67888  */
 69459 const component_ToolsPanel = contextConnect(UnconnectedToolsPanel, 'ToolsPanel');
 67889 const component_ToolsPanel = contextConnect(UnconnectedToolsPanel, 'ToolsPanel');
 69460 /* harmony default export */ const tools_panel_component = (component_ToolsPanel);
 67890 /* harmony default export */ const tools_panel_component = (component_ToolsPanel);
 69461 
 67891 
 69462 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-item/hook.js
 67892 ;// ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-item/hook.js
 69463 /**
 67893 /**
 69464  * WordPress dependencies
 67894  * WordPress dependencies
 69465  */
 67895  */
 69466 
 67896 
 69467 
 67897 
 69502     __experimentalLastVisibleItemClass
 67932     __experimentalLastVisibleItemClass
 69503   } = useToolsPanelContext();
 67933   } = useToolsPanelContext();
 69504 
 67934 
 69505   // hasValue is a new function on every render, so do not add it as a
 67935   // hasValue is a new function on every render, so do not add it as a
 69506   // dependency to the useCallback hook! If needed, we should use a ref.
 67936   // dependency to the useCallback hook! If needed, we should use a ref.
 69507   // eslint-disable-next-line react-hooks/exhaustive-deps
       
 69508   const hasValueCallback = (0,external_wp_element_namespaceObject.useCallback)(hasValue, [panelId]);
 67937   const hasValueCallback = (0,external_wp_element_namespaceObject.useCallback)(hasValue, [panelId]);
 69509   // resetAllFilter is a new function on every render, so do not add it as a
 67938   // resetAllFilter is a new function on every render, so do not add it as a
 69510   // dependency to the useCallback hook! If needed, we should use a ref.
 67939   // dependency to the useCallback hook! If needed, we should use a ref.
 69511   // eslint-disable-next-line react-hooks/exhaustive-deps
       
 69512   const resetAllFilterCallback = (0,external_wp_element_namespaceObject.useCallback)(resetAllFilter, [panelId]);
 67940   const resetAllFilterCallback = (0,external_wp_element_namespaceObject.useCallback)(resetAllFilter, [panelId]);
 69513   const previousPanelId = (0,external_wp_compose_namespaceObject.usePrevious)(currentPanelId);
 67941   const previousPanelId = (0,external_wp_compose_namespaceObject.usePrevious)(currentPanelId);
 69514   const hasMatchingPanel = currentPanelId === panelId || currentPanelId === null;
 67942   const hasMatchingPanel = currentPanelId === panelId || currentPanelId === null;
 69515 
 67943 
 69516   // Registering the panel item allows the panel to include it in its
 67944   // Registering the panel item allows the panel to include it in its
 69595     shouldRenderPlaceholder,
 68023     shouldRenderPlaceholder,
 69596     className: classes
 68024     className: classes
 69597   };
 68025   };
 69598 }
 68026 }
 69599 
 68027 
 69600 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-item/component.js
 68028 ;// ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel-item/component.js
 69601 /**
 68029 /**
 69602  * External dependencies
 68030  * External dependencies
 69603  */
 68031  */
 69604 
 68032 
 69605 /**
 68033 /**
 69631   });
 68059   });
 69632 };
 68060 };
 69633 const component_ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');
 68061 const component_ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');
 69634 /* harmony default export */ const tools_panel_item_component = (component_ToolsPanelItem);
 68062 /* harmony default export */ const tools_panel_item_component = (component_ToolsPanelItem);
 69635 
 68063 
 69636 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-context.js
 68064 ;// ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-context.js
 69637 /**
 68065 /**
 69638  * WordPress dependencies
 68066  * WordPress dependencies
 69639  */
 68067  */
 69640 
 68068 
 69641 const RovingTabIndexContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
 68069 const RovingTabIndexContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
 69642 const useRovingTabIndexContext = () => (0,external_wp_element_namespaceObject.useContext)(RovingTabIndexContext);
 68070 const useRovingTabIndexContext = () => (0,external_wp_element_namespaceObject.useContext)(RovingTabIndexContext);
 69643 const RovingTabIndexProvider = RovingTabIndexContext.Provider;
 68071 const RovingTabIndexProvider = RovingTabIndexContext.Provider;
 69644 
 68072 
 69645 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index.js
 68073 ;// ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index.js
 69646 /**
 68074 /**
 69647  * WordPress dependencies
 68075  * WordPress dependencies
 69648  */
 68076  */
 69649 
 68077 
 69650 
 68078 
 69675     value: providerValue,
 68103     value: providerValue,
 69676     children: children
 68104     children: children
 69677   });
 68105   });
 69678 }
 68106 }
 69679 
 68107 
 69680 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/index.js
 68108 ;// ./node_modules/@wordpress/components/build-module/tree-grid/index.js
 69681 /**
 68109 /**
 69682  * WordPress dependencies
 68110  * WordPress dependencies
 69683  */
 68111  */
 69684 
 68112 
 69685 
 68113 
 69995 /* harmony default export */ const tree_grid = (TreeGrid);
 68423 /* harmony default export */ const tree_grid = (TreeGrid);
 69996 
 68424 
 69997 
 68425 
 69998 
 68426 
 69999 
 68427 
 70000 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/row.js
 68428 ;// ./node_modules/@wordpress/components/build-module/tree-grid/row.js
 70001 /**
 68429 /**
 70002  * WordPress dependencies
 68430  * WordPress dependencies
 70003  */
 68431  */
 70004 
 68432 
 70005 
 68433 
 70035  * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}
 68463  * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}
 70036  */
 68464  */
 70037 const TreeGridRow = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTreeGridRow);
 68465 const TreeGridRow = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTreeGridRow);
 70038 /* harmony default export */ const tree_grid_row = (TreeGridRow);
 68466 /* harmony default export */ const tree_grid_row = (TreeGridRow);
 70039 
 68467 
 70040 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-item.js
 68468 ;// ./node_modules/@wordpress/components/build-module/tree-grid/roving-tab-index-item.js
 70041 /**
 68469 /**
 70042  * WordPress dependencies
 68470  * WordPress dependencies
 70043  */
 68471  */
 70044 
 68472 
 70045 
 68473 
 70087     children: children
 68515     children: children
 70088   });
 68516   });
 70089 });
 68517 });
 70090 /* harmony default export */ const roving_tab_index_item = (RovingTabIndexItem);
 68518 /* harmony default export */ const roving_tab_index_item = (RovingTabIndexItem);
 70091 
 68519 
 70092 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/item.js
 68520 ;// ./node_modules/@wordpress/components/build-module/tree-grid/item.js
 70093 /**
 68521 /**
 70094  * WordPress dependencies
 68522  * WordPress dependencies
 70095  */
 68523  */
 70096 
 68524 
 70097 
 68525 
 70119  * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}
 68547  * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}
 70120  */
 68548  */
 70121 const TreeGridItem = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTreeGridItem);
 68549 const TreeGridItem = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTreeGridItem);
 70122 /* harmony default export */ const tree_grid_item = (TreeGridItem);
 68550 /* harmony default export */ const tree_grid_item = (TreeGridItem);
 70123 
 68551 
 70124 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tree-grid/cell.js
 68552 ;// ./node_modules/@wordpress/components/build-module/tree-grid/cell.js
 70125 /**
 68553 /**
 70126  * WordPress dependencies
 68554  * WordPress dependencies
 70127  */
 68555  */
 70128 
 68556 
 70129 
 68557 
 70130 /**
 68558 /**
 70131  * Internal dependencies
 68559  * Internal dependencies
 70132  */
 68560  */
 70133 
       
 70134 
 68561 
 70135 
 68562 
 70136 function UnforwardedTreeGridCell({
 68563 function UnforwardedTreeGridCell({
 70137   children,
 68564   children,
 70138   withoutGridItem = false,
 68565   withoutGridItem = false,
 70140 }, ref) {
 68567 }, ref) {
 70141   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("td", {
 68568   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("td", {
 70142     ...props,
 68569     ...props,
 70143     role: "gridcell",
 68570     role: "gridcell",
 70144     children: withoutGridItem ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 68571     children: withoutGridItem ? /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
 70145       children: children
 68572       children: typeof children === 'function' ? children({
       
 68573         ...props,
       
 68574         ref
       
 68575       }) : children
 70146     }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tree_grid_item, {
 68576     }) : /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tree_grid_item, {
 70147       ref: ref,
 68577       ref: ref,
 70148       children: children
 68578       children: children
 70149     })
 68579     })
 70150   });
 68580   });
 70158  * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}
 68588  * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}
 70159  */
 68589  */
 70160 const TreeGridCell = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTreeGridCell);
 68590 const TreeGridCell = (0,external_wp_element_namespaceObject.forwardRef)(UnforwardedTreeGridCell);
 70161 /* harmony default export */ const cell = (TreeGridCell);
 68591 /* harmony default export */ const cell = (TreeGridCell);
 70162 
 68592 
 70163 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js
 68593 ;// ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js
 70164 /**
 68594 /**
 70165  * External dependencies
 68595  * External dependencies
 70166  */
 68596  */
 70167 
 68597 
 70168 /**
 68598 /**
 70189   });
 68619   });
 70190   /* eslint-enable jsx-a11y/no-static-element-interactions */
 68620   /* eslint-enable jsx-a11y/no-static-element-interactions */
 70191 });
 68621 });
 70192 /* harmony default export */ const isolated_event_container = (IsolatedEventContainer);
 68622 /* harmony default export */ const isolated_event_container = (IsolatedEventContainer);
 70193 
 68623 
 70194 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot-fills.js
 68624 ;// ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot-fills.js
 70195 /**
 68625 /**
 70196  * WordPress dependencies
 68626  * WordPress dependencies
 70197  */
 68627  */
 70198 
 68628 
 70199 
 68629 
 70205 function useSlotFills(name) {
 68635 function useSlotFills(name) {
 70206   const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
 68636   const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
 70207   return (0,external_wp_compose_namespaceObject.useObservableValue)(registry.fills, name);
 68637   return (0,external_wp_compose_namespaceObject.useObservableValue)(registry.fills, name);
 70208 }
 68638 }
 70209 
 68639 
 70210 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/z-stack/styles.js
 68640 ;// ./node_modules/@wordpress/components/build-module/z-stack/styles.js
 70211 
 68641 
 70212 function z_stack_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 68642 function z_stack_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 70213 /**
 68643 /**
 70214  * External dependencies
 68644  * External dependencies
 70215  */
 68645  */
 70234 } : 0)("display:inline-grid;grid-auto-flow:column;position:relative;&>", ZStackChildView, "{position:relative;justify-self:start;", ({
 68664 } : 0)("display:inline-grid;grid-auto-flow:column;position:relative;&>", ZStackChildView, "{position:relative;justify-self:start;", ({
 70235   isLayered
 68665   isLayered
 70236 }) => isLayered ? // When `isLayered` is true, all items overlap in the same grid cell
 68666 }) => isLayered ? // When `isLayered` is true, all items overlap in the same grid cell
 70237 z_stack_styles_ref : undefined, ";}" + ( true ? "" : 0));
 68667 z_stack_styles_ref : undefined, ";}" + ( true ? "" : 0));
 70238 
 68668 
 70239 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/z-stack/component.js
 68669 ;// ./node_modules/@wordpress/components/build-module/z-stack/component.js
 70240 /**
 68670 /**
 70241  * External dependencies
 68671  * External dependencies
 70242  */
 68672  */
 70243 
 68673 
 70244 /**
 68674 /**
 70303  * ```
 68733  * ```
 70304  */
 68734  */
 70305 const ZStack = contextConnect(UnconnectedZStack, 'ZStack');
 68735 const ZStack = contextConnect(UnconnectedZStack, 'ZStack');
 70306 /* harmony default export */ const z_stack_component = (ZStack);
 68736 /* harmony default export */ const z_stack_component = (ZStack);
 70307 
 68737 
 70308 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js
 68738 ;// ./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js
 70309 /**
 68739 /**
 70310  * WordPress dependencies
 68740  * WordPress dependencies
 70311  */
 68741  */
 70312 
 68742 
 70313 
 68743 
 70420   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
 68850   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Component, {
 70421     ...props
 68851     ...props
 70422   })
 68852   })
 70423 }), 'navigateRegions'));
 68853 }), 'navigateRegions'));
 70424 
 68854 
 70425 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js
 68855 ;// ./node_modules/@wordpress/components/build-module/higher-order/with-constrained-tabbing/index.js
 70426 /**
 68856 /**
 70427  * WordPress dependencies
 68857  * WordPress dependencies
 70428  */
 68858  */
 70429 
 68859 
 70430 
 68860 
 70447     })
 68877     })
 70448   });
 68878   });
 70449 }, 'withConstrainedTabbing');
 68879 }, 'withConstrainedTabbing');
 70450 /* harmony default export */ const with_constrained_tabbing = (withConstrainedTabbing);
 68880 /* harmony default export */ const with_constrained_tabbing = (withConstrainedTabbing);
 70451 
 68881 
 70452 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-fallback-styles/index.js
 68882 ;// ./node_modules/@wordpress/components/build-module/higher-order/with-fallback-styles/index.js
 70453 /**
 68883 /**
 70454  * External dependencies
 68884  * External dependencies
 70455  */
 68885  */
 70456 
 68886 
 70457 
 68887 
 70458 /**
 68888 /**
 70459  * WordPress dependencies
 68889  * WordPress dependencies
 70460  */
 68890  */
 70461 
       
 70462 
 68891 
 70463 
 68892 
 70464 
 68893 
 70465 /* harmony default export */ const with_fallback_styles = (mapNodeToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
 68894 /* harmony default export */ const with_fallback_styles = (mapNodeToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(WrappedComponent => {
 70466   return class extends external_wp_element_namespaceObject.Component {
 68895   return class extends external_wp_element_namespaceObject.Component {
 70511       });
 68940       });
 70512     }
 68941     }
 70513   };
 68942   };
 70514 }, 'withFallbackStyles'));
 68943 }, 'withFallbackStyles'));
 70515 
 68944 
 70516 ;// CONCATENATED MODULE: external ["wp","hooks"]
 68945 ;// external ["wp","hooks"]
 70517 const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
 68946 const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
 70518 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js
 68947 ;// ./node_modules/@wordpress/components/build-module/higher-order/with-filters/index.js
 70519 /**
 68948 /**
 70520  * WordPress dependencies
 68949  * WordPress dependencies
 70521  */
 68950  */
 70522 
 68951 
 70523 
 68952 
 70643     }
 69072     }
 70644     return FilteredComponentRenderer;
 69073     return FilteredComponentRenderer;
 70645   }, 'withFilters');
 69074   }, 'withFilters');
 70646 }
 69075 }
 70647 
 69076 
 70648 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js
 69077 ;// ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/index.js
 70649 /**
 69078 /**
 70650  * WordPress dependencies
 69079  * WordPress dependencies
 70651  */
 69080  */
 70652 
 69081 
 70653 
 69082 
 70674  * @param options The component to be enhanced with
 69103  * @param options The component to be enhanced with
 70675  *                focus return behavior, or an object
 69104  *                focus return behavior, or an object
 70676  *                describing the component and the
 69105  *                describing the component and the
 70677  *                focus return characteristics.
 69106  *                focus return characteristics.
 70678  *
 69107  *
 70679  * @return Higher Order Component with the focus restauration behaviour.
 69108  * @return Higher Order Component with the focus restoration behaviour.
 70680  */
 69109  */
 70681 /* harmony default export */ const with_focus_return = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(
 69110 /* harmony default export */ const with_focus_return = ((0,external_wp_compose_namespaceObject.createHigherOrderComponent)(
 70682 // @ts-expect-error TODO: Reconcile with intended `createHigherOrderComponent` types
 69111 // @ts-expect-error TODO: Reconcile with intended `createHigherOrderComponent` types
 70683 options => {
 69112 options => {
 70684   const HoC = ({
 69113   const HoC = ({
 70709     hint: 'This provider is not used anymore. You can just remove it from your codebase'
 69138     hint: 'This provider is not used anymore. You can just remove it from your codebase'
 70710   });
 69139   });
 70711   return children;
 69140   return children;
 70712 };
 69141 };
 70713 
 69142 
 70714 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js
 69143 ;// ./node_modules/@wordpress/components/build-module/higher-order/with-notices/index.js
 70715 /**
 69144 /**
 70716  * External dependencies
 69145  * External dependencies
 70717  */
 69146  */
 70718 
 69147 
 70719 
 69148 
 70813     return (0,external_wp_element_namespaceObject.forwardRef)(Component);
 69242     return (0,external_wp_element_namespaceObject.forwardRef)(Component);
 70814   }
 69243   }
 70815   return Component;
 69244   return Component;
 70816 }, 'withNotices'));
 69245 }, 'withNotices'));
 70817 
 69246 
 70818 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/YGMEBI3A.js
 69247 ;// ./node_modules/@ariakit/react-core/esm/__chunks/B2J376ND.js
 70819 "use client";
 69248 "use client";
 70820 
 69249 
 70821 
 69250 
 70822 
 69251 
 70823 
 69252 
 70824 
 69253 
 70825 // src/menu/menu-context.ts
 69254 // src/menu/menu-context.tsx
 70826 
 69255 
 70827 var YGMEBI3A_menu = createStoreContext(
 69256 var B2J376ND_menu = createStoreContext(
 70828   [CompositeContextProvider, HovercardContextProvider],
 69257   [CompositeContextProvider, HovercardContextProvider],
 70829   [CompositeScopedContextProvider, HovercardScopedContextProvider]
 69258   [CompositeScopedContextProvider, HovercardScopedContextProvider]
 70830 );
 69259 );
 70831 var useMenuContext = YGMEBI3A_menu.useContext;
 69260 var useMenuContext = B2J376ND_menu.useContext;
 70832 var useMenuScopedContext = YGMEBI3A_menu.useScopedContext;
 69261 var useMenuScopedContext = B2J376ND_menu.useScopedContext;
 70833 var useMenuProviderContext = YGMEBI3A_menu.useProviderContext;
 69262 var useMenuProviderContext = B2J376ND_menu.useProviderContext;
 70834 var MenuContextProvider = YGMEBI3A_menu.ContextProvider;
 69263 var MenuContextProvider = B2J376ND_menu.ContextProvider;
 70835 var MenuScopedContextProvider = YGMEBI3A_menu.ScopedContextProvider;
 69264 var MenuScopedContextProvider = B2J376ND_menu.ScopedContextProvider;
 70836 var useMenuBarContext = (/* unused pure expression or super */ null && (useMenubarContext));
 69265 var useMenuBarContext = (/* unused pure expression or super */ null && (useMenubarContext));
 70837 var useMenuBarScopedContext = (/* unused pure expression or super */ null && (useMenubarScopedContext));
 69266 var useMenuBarScopedContext = (/* unused pure expression or super */ null && (useMenubarScopedContext));
 70838 var useMenuBarProviderContext = (/* unused pure expression or super */ null && (useMenubarProviderContext));
 69267 var useMenuBarProviderContext = (/* unused pure expression or super */ null && (useMenubarProviderContext));
 70839 var MenuBarContextProvider = (/* unused pure expression or super */ null && (MenubarContextProvider));
 69268 var MenuBarContextProvider = (/* unused pure expression or super */ null && (MenubarContextProvider));
 70840 var MenuBarScopedContextProvider = (/* unused pure expression or super */ null && (MenubarScopedContextProvider));
 69269 var MenuBarScopedContextProvider = (/* unused pure expression or super */ null && (MenubarScopedContextProvider));
 70842   void 0
 69271   void 0
 70843 );
 69272 );
 70844 
 69273 
 70845 
 69274 
 70846 
 69275 
 70847 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/6XBVQI3K.js
 69276 ;// ./node_modules/@ariakit/react-core/esm/__chunks/62UHHO2X.js
 70848 "use client";
 69277 "use client";
 70849 
 69278 
 70850 // src/checkbox/checkbox-checked-context.ts
 69279 
 70851 
 69280 
 70852 var CheckboxCheckedContext = (0,external_React_.createContext)(false);
 69281 // src/menubar/menubar-context.tsx
 70853 
       
 70854 
       
 70855 
       
 70856 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/MW2F7SEA.js
       
 70857 "use client";
       
 70858 
       
 70859 
       
 70860 
       
 70861 
       
 70862 // src/checkbox/checkbox-check.tsx
       
 70863 
       
 70864 
       
 70865 var checkmark = /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(
       
 70866   "svg",
       
 70867   {
       
 70868     display: "block",
       
 70869     fill: "none",
       
 70870     stroke: "currentColor",
       
 70871     strokeLinecap: "round",
       
 70872     strokeLinejoin: "round",
       
 70873     strokeWidth: "1.5pt",
       
 70874     viewBox: "0 0 16 16",
       
 70875     height: "1em",
       
 70876     width: "1em",
       
 70877     children: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)("polyline", { points: "4,8 7,12 12,4" })
       
 70878   }
       
 70879 );
       
 70880 function getChildren(props) {
       
 70881   if (props.checked) {
       
 70882     return props.children || checkmark;
       
 70883   }
       
 70884   if (typeof props.children === "function") {
       
 70885     return props.children;
       
 70886   }
       
 70887   return null;
       
 70888 }
       
 70889 var useCheckboxCheck = createHook(
       
 70890   (_a) => {
       
 70891     var _b = _a, { store, checked } = _b, props = __objRest(_b, ["store", "checked"]);
       
 70892     const context = (0,external_React_.useContext)(CheckboxCheckedContext);
       
 70893     checked = checked != null ? checked : context;
       
 70894     const children = getChildren({ checked, children: props.children });
       
 70895     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 70896       "aria-hidden": true
       
 70897     }, props), {
       
 70898       children,
       
 70899       style: _4R3V3JGP_spreadValues({
       
 70900         width: "1em",
       
 70901         height: "1em",
       
 70902         pointerEvents: "none"
       
 70903       }, props.style)
       
 70904     });
       
 70905     return props;
       
 70906   }
       
 70907 );
       
 70908 var CheckboxCheck = createComponent((props) => {
       
 70909   const htmlProps = useCheckboxCheck(props);
       
 70910   return _3ORBWXWF_createElement("span", htmlProps);
       
 70911 });
       
 70912 if (false) {}
       
 70913 
       
 70914 
       
 70915 
       
 70916 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/menu/menu-item-check.js
       
 70917 "use client";
       
 70918 
       
 70919 
       
 70920 
       
 70921 
       
 70922 
       
 70923 
       
 70924 
       
 70925 
       
 70926 
       
 70927 
       
 70928 
       
 70929 
       
 70930 
       
 70931 
       
 70932 
       
 70933 // src/menu/menu-item-check.ts
       
 70934 
       
 70935 var useMenuItemCheck = createHook(
       
 70936   (_a) => {
       
 70937     var _b = _a, { store, checked } = _b, props = __objRest(_b, ["store", "checked"]);
       
 70938     const context = (0,external_React_.useContext)(MenuItemCheckedContext);
       
 70939     checked = checked != null ? checked : context;
       
 70940     props = useCheckboxCheck(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { checked }));
       
 70941     return props;
       
 70942   }
       
 70943 );
       
 70944 var MenuItemCheck = createComponent((props) => {
       
 70945   const htmlProps = useMenuItemCheck(props);
       
 70946   return _3ORBWXWF_createElement("span", htmlProps);
       
 70947 });
       
 70948 if (false) {}
       
 70949 
       
 70950 
       
 70951 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/KA4GX64Z.js
       
 70952 "use client";
       
 70953 
       
 70954 
       
 70955 
       
 70956 // src/menubar/menubar-context.ts
       
 70957 
 69282 
 70958 var menubar = createStoreContext(
 69283 var menubar = createStoreContext(
 70959   [CompositeContextProvider],
 69284   [CompositeContextProvider],
 70960   [CompositeScopedContextProvider]
 69285   [CompositeScopedContextProvider]
 70961 );
 69286 );
 70962 var KA4GX64Z_useMenubarContext = menubar.useContext;
 69287 var _62UHHO2X_useMenubarContext = menubar.useContext;
 70963 var KA4GX64Z_useMenubarScopedContext = menubar.useScopedContext;
 69288 var _62UHHO2X_useMenubarScopedContext = menubar.useScopedContext;
 70964 var KA4GX64Z_useMenubarProviderContext = menubar.useProviderContext;
 69289 var _62UHHO2X_useMenubarProviderContext = menubar.useProviderContext;
 70965 var KA4GX64Z_MenubarContextProvider = menubar.ContextProvider;
 69290 var _62UHHO2X_MenubarContextProvider = menubar.ContextProvider;
 70966 var KA4GX64Z_MenubarScopedContextProvider = menubar.ScopedContextProvider;
 69291 var _62UHHO2X_MenubarScopedContextProvider = menubar.ScopedContextProvider;
 70967 var KA4GX64Z_MenuItemCheckedContext = (0,external_React_.createContext)(
 69292 var _62UHHO2X_MenuItemCheckedContext = (0,external_React_.createContext)(
 70968   void 0
 69293   void 0
 70969 );
 69294 );
 70970 
 69295 
 70971 
 69296 
 70972 
 69297 
 70973 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/W76OTZCC.js
 69298 ;// ./node_modules/@ariakit/core/esm/menu/menu-store.js
 70974 "use client";
       
 70975 
       
 70976 
       
 70977 
       
 70978 
       
 70979 // src/combobox/combobox-context.tsx
       
 70980 
       
 70981 var W76OTZCC_ctx = createStoreContext(
       
 70982   [PopoverContextProvider, CompositeContextProvider],
       
 70983   [PopoverScopedContextProvider, CompositeScopedContextProvider]
       
 70984 );
       
 70985 var useComboboxContext = W76OTZCC_ctx.useContext;
       
 70986 var useComboboxScopedContext = W76OTZCC_ctx.useScopedContext;
       
 70987 var useComboboxProviderContext = W76OTZCC_ctx.useProviderContext;
       
 70988 var ComboboxContextProvider = W76OTZCC_ctx.ContextProvider;
       
 70989 var ComboboxScopedContextProvider = W76OTZCC_ctx.ScopedContextProvider;
       
 70990 var ComboboxItemValueContext = (0,external_React_.createContext)(
       
 70991   void 0
       
 70992 );
       
 70993 var ComboboxItemCheckedContext = (0,external_React_.createContext)(false);
       
 70994 
       
 70995 
       
 70996 
       
 70997 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/menu/menu-store.js
       
 70998 "use client";
 69299 "use client";
 70999 
 69300 
 71000 
 69301 
 71001 
 69302 
 71002 
 69303 
 71012 function createMenuStore(_a = {}) {
 69313 function createMenuStore(_a = {}) {
 71013   var _b = _a, {
 69314   var _b = _a, {
 71014     combobox,
 69315     combobox,
 71015     parent,
 69316     parent,
 71016     menubar
 69317     menubar
 71017   } = _b, props = _4R3V3JGP_objRest(_b, [
 69318   } = _b, props = _3YLGPPWQ_objRest(_b, [
 71018     "combobox",
 69319     "combobox",
 71019     "parent",
 69320     "parent",
 71020     "menubar"
 69321     "menubar"
 71021   ]);
 69322   ]);
 71022   const parentIsMenubar = !!menubar && !parent;
 69323   const parentIsMenubar = !!menubar && !parent;
 71031       "disclosureElement"
 69332       "disclosureElement"
 71032     ])
 69333     ])
 71033   );
 69334   );
 71034   throwOnConflictingProps(props, store);
 69335   throwOnConflictingProps(props, store);
 71035   const syncState = store.getState();
 69336   const syncState = store.getState();
 71036   const composite = createCompositeStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
 69337   const composite = createCompositeStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
 71037     store,
 69338     store,
 71038     orientation: defaultValue(
 69339     orientation: defaultValue(
 71039       props.orientation,
 69340       props.orientation,
 71040       syncState.orientation,
 69341       syncState.orientation,
 71041       "vertical"
 69342       "vertical"
 71042     )
 69343     )
 71043   }));
 69344   }));
 71044   const hovercard = createHovercardStore(_chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, props), {
 69345   const hovercard = createHovercardStore(_chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, props), {
 71045     store,
 69346     store,
 71046     placement: defaultValue(
 69347     placement: defaultValue(
 71047       props.placement,
 69348       props.placement,
 71048       syncState.placement,
 69349       syncState.placement,
 71049       "bottom-start"
 69350       "bottom-start"
 71053       syncState.timeout,
 69354       syncState.timeout,
 71054       parentIsMenubar ? 0 : 150
 69355       parentIsMenubar ? 0 : 150
 71055     ),
 69356     ),
 71056     hideTimeout: defaultValue(props.hideTimeout, syncState.hideTimeout, 0)
 69357     hideTimeout: defaultValue(props.hideTimeout, syncState.hideTimeout, 0)
 71057   }));
 69358   }));
 71058   const initialState = _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, composite.getState()), hovercard.getState()), {
 69359   const initialState = _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, composite.getState()), hovercard.getState()), {
 71059     initialFocus: defaultValue(syncState.initialFocus, "container"),
 69360     initialFocus: defaultValue(syncState.initialFocus, "container"),
 71060     values: defaultValue(
 69361     values: defaultValue(
 71061       props.values,
 69362       props.values,
 71062       syncState.values,
 69363       syncState.values,
 71063       props.defaultValues,
 69364       props.defaultValues,
 71066   });
 69367   });
 71067   const menu = createStore(initialState, composite, hovercard, store);
 69368   const menu = createStore(initialState, composite, hovercard, store);
 71068   setup(
 69369   setup(
 71069     menu,
 69370     menu,
 71070     () => sync(menu, ["mounted"], (state) => {
 69371     () => sync(menu, ["mounted"], (state) => {
 71071       if (state.mounted)
 69372       if (state.mounted) return;
 71072         return;
       
 71073       menu.setState("activeId", null);
 69373       menu.setState("activeId", null);
 71074     })
 69374     })
 71075   );
 69375   );
 71076   setup(
 69376   setup(
 71077     menu,
 69377     menu,
 71080         "placement",
 69380         "placement",
 71081         state.orientation === "vertical" ? "right-start" : "bottom-start"
 69381         state.orientation === "vertical" ? "right-start" : "bottom-start"
 71082       );
 69382       );
 71083     })
 69383     })
 71084   );
 69384   );
 71085   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues(_chunks_4R3V3JGP_spreadValues({}, composite), hovercard), menu), {
 69385   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues(_chunks_3YLGPPWQ_spreadValues({}, composite), hovercard), menu), {
 71086     combobox,
 69386     combobox,
 71087     parent,
 69387     parent,
 71088     menubar,
 69388     menubar,
 71089     hideAll: () => {
 69389     hideAll: () => {
 71090       hovercard.hide();
 69390       hovercard.hide();
 71091       parent == null ? void 0 : parent.hideAll();
 69391       parent == null ? void 0 : parent.hideAll();
 71092     },
 69392     },
 71093     setInitialFocus: (value) => menu.setState("initialFocus", value),
 69393     setInitialFocus: (value) => menu.setState("initialFocus", value),
 71094     setValues: (values) => menu.setState("values", values),
 69394     setValues: (values) => menu.setState("values", values),
 71095     setValue: (name, value) => {
 69395     setValue: (name, value) => {
 71096       if (name === "__proto__")
 69396       if (name === "__proto__") return;
 71097         return;
 69397       if (name === "constructor") return;
 71098       if (name === "constructor")
 69398       if (Array.isArray(name)) return;
 71099         return;
       
 71100       if (Array.isArray(name))
       
 71101         return;
       
 71102       menu.setState("values", (values) => {
 69399       menu.setState("values", (values) => {
 71103         const prevValue = values[name];
 69400         const prevValue = values[name];
 71104         const nextValue = Y3OOHFCN_applyState(value, prevValue);
 69401         const nextValue = applyState(value, prevValue);
 71105         if (nextValue === prevValue)
 69402         if (nextValue === prevValue) return values;
 71106           return values;
 69403         return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, values), {
 71107         return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, values), {
       
 71108           [name]: nextValue !== void 0 && nextValue
 69404           [name]: nextValue !== void 0 && nextValue
 71109         });
 69405         });
 71110       });
 69406       });
 71111     }
 69407     }
 71112   });
 69408   });
 71113 }
 69409 }
 71114 
 69410 
 71115 
 69411 
 71116 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/XJXP7ZSQ.js
 69412 ;// ./node_modules/@ariakit/react-core/esm/__chunks/MRTXKBQF.js
 71117 "use client";
 69413 "use client";
 71118 
 69414 
 71119 
 69415 
 71120 
 69416 
 71121 
 69417 
 71126 
 69422 
 71127 // src/menu/menu-store.ts
 69423 // src/menu/menu-store.ts
 71128 
 69424 
 71129 function useMenuStoreProps(store, update, props) {
 69425 function useMenuStoreProps(store, update, props) {
 71130   useUpdateEffect(update, [props.combobox, props.parent, props.menubar]);
 69426   useUpdateEffect(update, [props.combobox, props.parent, props.menubar]);
 71131   store = useCompositeStoreProps(store, update, props);
       
 71132   store = useHovercardStoreProps(store, update, props);
       
 71133   useStoreProps(store, props, "values", "setValues");
 69427   useStoreProps(store, props, "values", "setValues");
 71134   return Object.assign(store, {
 69428   return Object.assign(
 71135     combobox: props.combobox,
 69429     useHovercardStoreProps(
 71136     parent: props.parent,
 69430       useCompositeStoreProps(store, update, props),
 71137     menubar: props.menubar
 69431       update,
 71138   });
 69432       props
       
 69433     ),
       
 69434     {
       
 69435       combobox: props.combobox,
       
 69436       parent: props.parent,
       
 69437       menubar: props.menubar
       
 69438     }
       
 69439   );
 71139 }
 69440 }
 71140 function useMenuStore(props = {}) {
 69441 function useMenuStore(props = {}) {
 71141   const parent = useMenuContext();
 69442   const parent = useMenuContext();
 71142   const menubar = KA4GX64Z_useMenubarContext();
 69443   const menubar = _62UHHO2X_useMenubarContext();
 71143   const combobox = useComboboxProviderContext();
 69444   const combobox = useComboboxProviderContext();
 71144   props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
 69445   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
 71145     parent: props.parent !== void 0 ? props.parent : parent,
 69446     parent: props.parent !== void 0 ? props.parent : parent,
 71146     menubar: props.menubar !== void 0 ? props.menubar : menubar,
 69447     menubar: props.menubar !== void 0 ? props.menubar : menubar,
 71147     combobox: props.combobox !== void 0 ? props.combobox : combobox
 69448     combobox: props.combobox !== void 0 ? props.combobox : combobox
 71148   });
 69449   });
 71149   const [store, update] = EKQEJRUF_useStore(createMenuStore, props);
 69450   const [store, update] = YV4JVR4I_useStore(createMenuStore, props);
 71150   return useMenuStoreProps(store, update, props);
 69451   return useMenuStoreProps(store, update, props);
 71151 }
 69452 }
 71152 
 69453 
 71153 
 69454 
 71154 
 69455 
 71155 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/VDNZBO4W.js
 69456 ;// ./node_modules/@wordpress/components/build-module/menu/context.js
       
 69457 /**
       
 69458  * WordPress dependencies
       
 69459  */
       
 69460 
       
 69461 
       
 69462 /**
       
 69463  * Internal dependencies
       
 69464  */
       
 69465 
       
 69466 const context_Context = (0,external_wp_element_namespaceObject.createContext)(undefined);
       
 69467 
       
 69468 ;// ./node_modules/@ariakit/react-core/esm/__chunks/MVIULMNR.js
 71156 "use client";
 69469 "use client";
 71157 
 69470 
 71158 
 69471 
 71159 
 69472 
 71160 
 69473 
 71161 
 69474 
 71162 // src/button/button.ts
 69475 
 71163 
 69476 
 71164 
 69477 
 71165 var useButton = createHook((props) => {
 69478 
 71166   const ref = (0,external_React_.useRef)(null);
 69479 // src/menu/menu-item.tsx
 71167   const tagName = useTagName(ref, props.as || "button");
 69480 
 71168   const [isNativeButton, setIsNativeButton] = (0,external_React_.useState)(
 69481 
 71169     () => !!tagName && isButton({ tagName, type: props.type })
 69482 
 71170   );
 69483 
 71171   (0,external_React_.useEffect)(() => {
 69484 var MVIULMNR_TagName = "div";
 71172     if (!ref.current)
       
 71173       return;
       
 71174     setIsNativeButton(isButton(ref.current));
       
 71175   }, []);
       
 71176   props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 71177     role: !isNativeButton && tagName !== "a" ? "button" : void 0
       
 71178   }, props), {
       
 71179     ref: useMergeRefs(ref, props.ref)
       
 71180   });
       
 71181   props = useCommand(props);
       
 71182   return props;
       
 71183 });
       
 71184 var VDNZBO4W_Button = createComponent((props) => {
       
 71185   const htmlProps = useButton(props);
       
 71186   return _3ORBWXWF_createElement("button", htmlProps);
       
 71187 });
       
 71188 if (false) {}
       
 71189 
       
 71190 
       
 71191 
       
 71192 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/BHEJ6NUH.js
       
 71193 "use client";
       
 71194 
       
 71195 
       
 71196 
       
 71197 
       
 71198 
       
 71199 
       
 71200 // src/disclosure/disclosure.ts
       
 71201 
       
 71202 
       
 71203 var BHEJ6NUH_symbol = Symbol("disclosure");
       
 71204 var useDisclosure = createHook(
       
 71205   (_a) => {
       
 71206     var _b = _a, { store, toggleOnClick = true } = _b, props = __objRest(_b, ["store", "toggleOnClick"]);
       
 71207     const context = useDisclosureProviderContext();
       
 71208     store = store || context;
       
 71209     invariant(
       
 71210       store,
       
 71211        false && 0
       
 71212     );
       
 71213     const ref = (0,external_React_.useRef)(null);
       
 71214     const [expanded, setExpanded] = (0,external_React_.useState)(false);
       
 71215     const disclosureElement = store.useState("disclosureElement");
       
 71216     const open = store.useState("open");
       
 71217     (0,external_React_.useEffect)(() => {
       
 71218       let isCurrentDisclosure = disclosureElement === ref.current;
       
 71219       if (!(disclosureElement == null ? void 0 : disclosureElement.isConnected)) {
       
 71220         store == null ? void 0 : store.setDisclosureElement(ref.current);
       
 71221         isCurrentDisclosure = true;
       
 71222       }
       
 71223       setExpanded(open && isCurrentDisclosure);
       
 71224     }, [disclosureElement, store, open]);
       
 71225     const onClickProp = props.onClick;
       
 71226     const toggleOnClickProp = useBooleanEvent(toggleOnClick);
       
 71227     const [isDuplicate, metadataProps] = useMetadataProps(props, BHEJ6NUH_symbol, true);
       
 71228     const onClick = useEvent((event) => {
       
 71229       onClickProp == null ? void 0 : onClickProp(event);
       
 71230       if (event.defaultPrevented)
       
 71231         return;
       
 71232       if (isDuplicate)
       
 71233         return;
       
 71234       if (!toggleOnClickProp(event))
       
 71235         return;
       
 71236       store == null ? void 0 : store.setDisclosureElement(event.currentTarget);
       
 71237       store == null ? void 0 : store.toggle();
       
 71238     });
       
 71239     const contentElement = store.useState("contentElement");
       
 71240     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues(_4R3V3JGP_spreadValues({
       
 71241       "aria-expanded": expanded,
       
 71242       "aria-controls": contentElement == null ? void 0 : contentElement.id
       
 71243     }, metadataProps), props), {
       
 71244       ref: useMergeRefs(ref, props.ref),
       
 71245       onClick
       
 71246     });
       
 71247     props = useButton(props);
       
 71248     return props;
       
 71249   }
       
 71250 );
       
 71251 var Disclosure = createComponent((props) => {
       
 71252   const htmlProps = useDisclosure(props);
       
 71253   return _3ORBWXWF_createElement("button", htmlProps);
       
 71254 });
       
 71255 if (false) {}
       
 71256 
       
 71257 
       
 71258 
       
 71259 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/H3TG2CZP.js
       
 71260 "use client";
       
 71261 
       
 71262 
       
 71263 
       
 71264 
       
 71265 
       
 71266 // src/dialog/dialog-disclosure.ts
       
 71267 
       
 71268 
       
 71269 var useDialogDisclosure = createHook(
       
 71270   (_a) => {
       
 71271     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 71272     const context = useDialogProviderContext();
       
 71273     store = store || context;
       
 71274     invariant(
       
 71275       store,
       
 71276        false && 0
       
 71277     );
       
 71278     const contentElement = store.useState("contentElement");
       
 71279     props = _4R3V3JGP_spreadValues({
       
 71280       "aria-haspopup": getPopupRole(contentElement, "dialog")
       
 71281     }, props);
       
 71282     props = useDisclosure(_4R3V3JGP_spreadValues({ store }, props));
       
 71283     return props;
       
 71284   }
       
 71285 );
       
 71286 var DialogDisclosure = createComponent(
       
 71287   (props) => {
       
 71288     const htmlProps = useDialogDisclosure(props);
       
 71289     return _3ORBWXWF_createElement("button", htmlProps);
       
 71290   }
       
 71291 );
       
 71292 if (false) {}
       
 71293 
       
 71294 
       
 71295 
       
 71296 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/JCH6MLL2.js
       
 71297 "use client";
       
 71298 
       
 71299 
       
 71300 
       
 71301 
       
 71302 
       
 71303 // src/popover/popover-anchor.ts
       
 71304 var usePopoverAnchor = createHook(
       
 71305   (_a) => {
       
 71306     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 71307     const context = usePopoverProviderContext();
       
 71308     store = store || context;
       
 71309     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
 71310       ref: useMergeRefs(store == null ? void 0 : store.setAnchorElement, props.ref)
       
 71311     });
       
 71312     return props;
       
 71313   }
       
 71314 );
       
 71315 var PopoverAnchor = createComponent((props) => {
       
 71316   const htmlProps = usePopoverAnchor(props);
       
 71317   return _3ORBWXWF_createElement("div", htmlProps);
       
 71318 });
       
 71319 if (false) {}
       
 71320 
       
 71321 
       
 71322 
       
 71323 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/4ZEZYKUR.js
       
 71324 "use client";
       
 71325 
       
 71326 
       
 71327 
       
 71328 
       
 71329 
       
 71330 
       
 71331 
       
 71332 // src/popover/popover-disclosure.tsx
       
 71333 
       
 71334 
       
 71335 var usePopoverDisclosure = createHook(
       
 71336   (_a) => {
       
 71337     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 71338     const context = usePopoverProviderContext();
       
 71339     store = store || context;
       
 71340     invariant(
       
 71341       store,
       
 71342        false && 0
       
 71343     );
       
 71344     const onClickProp = props.onClick;
       
 71345     const onClick = useEvent((event) => {
       
 71346       store == null ? void 0 : store.setAnchorElement(event.currentTarget);
       
 71347       onClickProp == null ? void 0 : onClickProp(event);
       
 71348     });
       
 71349     props = useWrapElement(
       
 71350       props,
       
 71351       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverScopedContextProvider, { value: store, children: element }),
       
 71352       [store]
       
 71353     );
       
 71354     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
 71355       onClick
       
 71356     });
       
 71357     props = usePopoverAnchor(_4R3V3JGP_spreadValues({ store }, props));
       
 71358     props = useDialogDisclosure(_4R3V3JGP_spreadValues({ store }, props));
       
 71359     return props;
       
 71360   }
       
 71361 );
       
 71362 var PopoverDisclosure = createComponent(
       
 71363   (props) => {
       
 71364     const htmlProps = usePopoverDisclosure(props);
       
 71365     return _3ORBWXWF_createElement("button", htmlProps);
       
 71366   }
       
 71367 );
       
 71368 if (false) {}
       
 71369 
       
 71370 
       
 71371 
       
 71372 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/346FK57L.js
       
 71373 "use client";
       
 71374 
       
 71375 
       
 71376 
       
 71377 
       
 71378 
       
 71379 
       
 71380 // src/composite/composite-typeahead.ts
       
 71381 
       
 71382 
       
 71383 
       
 71384 
       
 71385 var chars = "";
       
 71386 function clearChars() {
       
 71387   chars = "";
       
 71388 }
       
 71389 function isValidTypeaheadEvent(event) {
       
 71390   const target = event.target;
       
 71391   if (target && DLOEKDPY_isTextField(target))
       
 71392     return false;
       
 71393   if (event.key === " " && chars.length)
       
 71394     return true;
       
 71395   return event.key.length === 1 && !event.ctrlKey && !event.altKey && !event.metaKey && /^[\p{Letter}\p{Number}]$/u.test(event.key);
       
 71396 }
       
 71397 function isSelfTargetOrItem(event, items) {
       
 71398   if (isSelfTarget(event))
       
 71399     return true;
       
 71400   const target = event.target;
       
 71401   if (!target)
       
 71402     return false;
       
 71403   const isItem = items.some((item) => item.element === target);
       
 71404   return isItem;
       
 71405 }
       
 71406 function _346FK57L_getEnabledItems(items) {
       
 71407   return items.filter((item) => !item.disabled);
       
 71408 }
       
 71409 function itemTextStartsWith(item, text) {
       
 71410   var _a;
       
 71411   const itemText = ((_a = item.element) == null ? void 0 : _a.textContent) || item.children;
       
 71412   if (!itemText)
       
 71413     return false;
       
 71414   return normalizeString(itemText).trim().toLowerCase().startsWith(text.toLowerCase());
       
 71415 }
       
 71416 function getSameInitialItems(items, char, activeId) {
       
 71417   if (!activeId)
       
 71418     return items;
       
 71419   const activeItem = items.find((item) => item.id === activeId);
       
 71420   if (!activeItem)
       
 71421     return items;
       
 71422   if (!itemTextStartsWith(activeItem, char))
       
 71423     return items;
       
 71424   if (chars !== char && itemTextStartsWith(activeItem, chars))
       
 71425     return items;
       
 71426   chars = char;
       
 71427   return flipItems(
       
 71428     items.filter((item) => itemTextStartsWith(item, chars)),
       
 71429     activeId
       
 71430   ).filter((item) => item.id !== activeId);
       
 71431 }
       
 71432 var useCompositeTypeahead = createHook(
       
 71433   (_a) => {
       
 71434     var _b = _a, { store, typeahead = true } = _b, props = __objRest(_b, ["store", "typeahead"]);
       
 71435     const context = useCompositeContext();
       
 71436     store = store || context;
       
 71437     invariant(
       
 71438       store,
       
 71439        false && 0
       
 71440     );
       
 71441     const onKeyDownCaptureProp = props.onKeyDownCapture;
       
 71442     const cleanupTimeoutRef = (0,external_React_.useRef)(0);
       
 71443     const onKeyDownCapture = useEvent(
       
 71444       (event) => {
       
 71445         onKeyDownCaptureProp == null ? void 0 : onKeyDownCaptureProp(event);
       
 71446         if (event.defaultPrevented)
       
 71447           return;
       
 71448         if (!typeahead)
       
 71449           return;
       
 71450         if (!store)
       
 71451           return;
       
 71452         const { items, activeId } = store.getState();
       
 71453         if (!isValidTypeaheadEvent(event))
       
 71454           return clearChars();
       
 71455         let enabledItems = _346FK57L_getEnabledItems(items);
       
 71456         if (!isSelfTargetOrItem(event, enabledItems))
       
 71457           return clearChars();
       
 71458         event.preventDefault();
       
 71459         window.clearTimeout(cleanupTimeoutRef.current);
       
 71460         cleanupTimeoutRef.current = window.setTimeout(() => {
       
 71461           chars = "";
       
 71462         }, 500);
       
 71463         const char = event.key.toLowerCase();
       
 71464         chars += char;
       
 71465         enabledItems = getSameInitialItems(enabledItems, char, activeId);
       
 71466         const item = enabledItems.find(
       
 71467           (item2) => itemTextStartsWith(item2, chars)
       
 71468         );
       
 71469         if (item) {
       
 71470           store.move(item.id);
       
 71471         } else {
       
 71472           clearChars();
       
 71473         }
       
 71474       }
       
 71475     );
       
 71476     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
 71477       onKeyDownCapture
       
 71478     });
       
 71479     return props;
       
 71480   }
       
 71481 );
       
 71482 var CompositeTypeahead = createComponent(
       
 71483   (props) => {
       
 71484     const htmlProps = useCompositeTypeahead(props);
       
 71485     return _3ORBWXWF_createElement("div", htmlProps);
       
 71486   }
       
 71487 );
       
 71488 if (false) {}
       
 71489 
       
 71490 
       
 71491 
       
 71492 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/menu/menu-button.js
       
 71493 "use client";
       
 71494 
       
 71495 
       
 71496 
       
 71497 
       
 71498 
       
 71499 
       
 71500 
       
 71501 
       
 71502 
       
 71503 
       
 71504 
       
 71505 
       
 71506 
       
 71507 
       
 71508 
       
 71509 
       
 71510 
       
 71511 
       
 71512 
       
 71513 
       
 71514 
       
 71515 
       
 71516 
       
 71517 
       
 71518 
       
 71519 
       
 71520 // src/menu/menu-button.tsx
       
 71521 
       
 71522 
       
 71523 
       
 71524 
       
 71525 function getInitialFocus(event, dir) {
       
 71526   const keyMap = {
       
 71527     ArrowDown: dir === "bottom" || dir === "top" ? "first" : false,
       
 71528     ArrowUp: dir === "bottom" || dir === "top" ? "last" : false,
       
 71529     ArrowRight: dir === "right" ? "first" : false,
       
 71530     ArrowLeft: dir === "left" ? "first" : false
       
 71531   };
       
 71532   return keyMap[event.key];
       
 71533 }
       
 71534 function hasActiveItem(items, excludeElement) {
       
 71535   return !!(items == null ? void 0 : items.some((item) => {
       
 71536     if (!item.element)
       
 71537       return false;
       
 71538     if (item.element === excludeElement)
       
 71539       return false;
       
 71540     return item.element.getAttribute("aria-expanded") === "true";
       
 71541   }));
       
 71542 }
       
 71543 var useMenuButton = createHook(
       
 71544   (_a) => {
       
 71545     var _b = _a, { store, focusable, accessibleWhenDisabled, showOnHover } = _b, props = __objRest(_b, ["store", "focusable", "accessibleWhenDisabled", "showOnHover"]);
       
 71546     const context = useMenuProviderContext();
       
 71547     store = store || context;
       
 71548     invariant(
       
 71549       store,
       
 71550        false && 0
       
 71551     );
       
 71552     const ref = (0,external_React_.useRef)(null);
       
 71553     const parentMenu = store.parent;
       
 71554     const parentMenubar = store.menubar;
       
 71555     const hasParentMenu = !!parentMenu;
       
 71556     const parentIsMenubar = !!parentMenubar && !hasParentMenu;
       
 71557     const disabled = disabledFromProps(props);
       
 71558     const showMenu = () => {
       
 71559       const trigger = ref.current;
       
 71560       if (!trigger)
       
 71561         return;
       
 71562       store == null ? void 0 : store.setDisclosureElement(trigger);
       
 71563       store == null ? void 0 : store.setAnchorElement(trigger);
       
 71564       store == null ? void 0 : store.show();
       
 71565     };
       
 71566     const onFocusProp = props.onFocus;
       
 71567     const onFocus = useEvent((event) => {
       
 71568       onFocusProp == null ? void 0 : onFocusProp(event);
       
 71569       if (disabled)
       
 71570         return;
       
 71571       if (event.defaultPrevented)
       
 71572         return;
       
 71573       store == null ? void 0 : store.setAutoFocusOnShow(false);
       
 71574       store == null ? void 0 : store.setActiveId(null);
       
 71575       if (!parentMenubar)
       
 71576         return;
       
 71577       if (!parentIsMenubar)
       
 71578         return;
       
 71579       const { items } = parentMenubar.getState();
       
 71580       if (hasActiveItem(items, event.currentTarget)) {
       
 71581         showMenu();
       
 71582       }
       
 71583     });
       
 71584     const dir = store.useState(
       
 71585       (state) => state.placement.split("-")[0]
       
 71586     );
       
 71587     const onKeyDownProp = props.onKeyDown;
       
 71588     const onKeyDown = useEvent((event) => {
       
 71589       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 71590       if (disabled)
       
 71591         return;
       
 71592       if (event.defaultPrevented)
       
 71593         return;
       
 71594       const initialFocus = getInitialFocus(event, dir);
       
 71595       if (initialFocus) {
       
 71596         event.preventDefault();
       
 71597         showMenu();
       
 71598         store == null ? void 0 : store.setAutoFocusOnShow(true);
       
 71599         store == null ? void 0 : store.setInitialFocus(initialFocus);
       
 71600       }
       
 71601     });
       
 71602     const onClickProp = props.onClick;
       
 71603     const onClick = useEvent((event) => {
       
 71604       onClickProp == null ? void 0 : onClickProp(event);
       
 71605       if (event.defaultPrevented)
       
 71606         return;
       
 71607       if (!store)
       
 71608         return;
       
 71609       const isKeyboardClick = !event.detail;
       
 71610       const { open } = store.getState();
       
 71611       if (!open || isKeyboardClick) {
       
 71612         if (!hasParentMenu || isKeyboardClick) {
       
 71613           store.setAutoFocusOnShow(true);
       
 71614         }
       
 71615         store.setInitialFocus(isKeyboardClick ? "first" : "container");
       
 71616       }
       
 71617       if (hasParentMenu) {
       
 71618         showMenu();
       
 71619       }
       
 71620     });
       
 71621     props = useWrapElement(
       
 71622       props,
       
 71623       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuContextProvider, { value: store, children: element }),
       
 71624       [store]
       
 71625     );
       
 71626     if (hasParentMenu) {
       
 71627       props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
 71628         render: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role.div, { render: props.render })
       
 71629       });
       
 71630     }
       
 71631     const id = useId(props.id);
       
 71632     const parentContentElement = useStoreState(
       
 71633       (parentMenu == null ? void 0 : parentMenu.combobox) || parentMenu,
       
 71634       "contentElement"
       
 71635     );
       
 71636     const role = hasParentMenu || parentIsMenubar ? getPopupItemRole(parentContentElement, "menuitem") : void 0;
       
 71637     const contentElement = store.useState("contentElement");
       
 71638     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 71639       id,
       
 71640       role,
       
 71641       "aria-haspopup": getPopupRole(contentElement, "menu")
       
 71642     }, props), {
       
 71643       ref: useMergeRefs(ref, props.ref),
       
 71644       onFocus,
       
 71645       onKeyDown,
       
 71646       onClick
       
 71647     });
       
 71648     props = useHovercardAnchor(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 71649       store,
       
 71650       focusable,
       
 71651       accessibleWhenDisabled
       
 71652     }, props), {
       
 71653       showOnHover: (event) => {
       
 71654         const getShowOnHover = () => {
       
 71655           if (typeof showOnHover === "function")
       
 71656             return showOnHover(event);
       
 71657           if (showOnHover != null)
       
 71658             return showOnHover;
       
 71659           if (hasParentMenu)
       
 71660             return true;
       
 71661           if (!parentMenubar)
       
 71662             return false;
       
 71663           const { items } = parentMenubar.getState();
       
 71664           return parentIsMenubar && hasActiveItem(items);
       
 71665         };
       
 71666         const canShowOnHover = getShowOnHover();
       
 71667         if (!canShowOnHover)
       
 71668           return false;
       
 71669         const parent = parentIsMenubar ? parentMenubar : parentMenu;
       
 71670         if (!parent)
       
 71671           return true;
       
 71672         parent.setActiveId(event.currentTarget.id);
       
 71673         return true;
       
 71674       }
       
 71675     }));
       
 71676     props = usePopoverDisclosure(_4R3V3JGP_spreadValues({
       
 71677       store,
       
 71678       toggleOnClick: !hasParentMenu,
       
 71679       focusable,
       
 71680       accessibleWhenDisabled
       
 71681     }, props));
       
 71682     props = useCompositeTypeahead(_4R3V3JGP_spreadValues({
       
 71683       store,
       
 71684       typeahead: parentIsMenubar
       
 71685     }, props));
       
 71686     return props;
       
 71687   }
       
 71688 );
       
 71689 var MenuButton = createComponent((props) => {
       
 71690   const htmlProps = useMenuButton(props);
       
 71691   return _3ORBWXWF_createElement("button", htmlProps);
       
 71692 });
       
 71693 if (false) {}
       
 71694 
       
 71695 
       
 71696 ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js
       
 71697 /**
       
 71698  * WordPress dependencies
       
 71699  */
       
 71700 
       
 71701 
       
 71702 const chevronRightSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 71703   xmlns: "http://www.w3.org/2000/svg",
       
 71704   viewBox: "0 0 24 24",
       
 71705   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 71706     d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
       
 71707   })
       
 71708 });
       
 71709 /* harmony default export */ const chevron_right_small = (chevronRightSmall);
       
 71710 
       
 71711 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/HHNFDKU2.js
       
 71712 "use client";
       
 71713 
       
 71714 
       
 71715 
       
 71716 
       
 71717 
       
 71718 
       
 71719 
       
 71720 
       
 71721 
       
 71722 // src/menu/menu-list.tsx
       
 71723 
       
 71724 
       
 71725 
       
 71726 function useAriaLabelledBy(_a) {
       
 71727   var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 71728   const [id, setId] = (0,external_React_.useState)(void 0);
       
 71729   const label = props["aria-label"];
       
 71730   const disclosureElement = useStoreState(store, "disclosureElement");
       
 71731   const contentElement = useStoreState(store, "contentElement");
       
 71732   (0,external_React_.useEffect)(() => {
       
 71733     const disclosure = disclosureElement;
       
 71734     if (!disclosure)
       
 71735       return;
       
 71736     const menu = contentElement;
       
 71737     if (!menu)
       
 71738       return;
       
 71739     const menuLabel = label || menu.hasAttribute("aria-label");
       
 71740     if (menuLabel) {
       
 71741       setId(void 0);
       
 71742     } else if (disclosure.id) {
       
 71743       setId(disclosure.id);
       
 71744     }
       
 71745   }, [label, disclosureElement, contentElement]);
       
 71746   return id;
       
 71747 }
       
 71748 var useMenuList = createHook(
       
 71749   (_a) => {
       
 71750     var _b = _a, { store, alwaysVisible, composite } = _b, props = __objRest(_b, ["store", "alwaysVisible", "composite"]);
       
 71751     const context = useMenuProviderContext();
       
 71752     store = store || context;
       
 71753     invariant(
       
 71754       store,
       
 71755        false && 0
       
 71756     );
       
 71757     const parentMenu = store.parent;
       
 71758     const parentMenubar = store.menubar;
       
 71759     const hasParentMenu = !!parentMenu;
       
 71760     const id = useId(props.id);
       
 71761     const onKeyDownProp = props.onKeyDown;
       
 71762     const dir = store.useState(
       
 71763       (state) => state.placement.split("-")[0]
       
 71764     );
       
 71765     const orientation = store.useState(
       
 71766       (state) => state.orientation === "both" ? void 0 : state.orientation
       
 71767     );
       
 71768     const isHorizontal = orientation !== "vertical";
       
 71769     const isMenubarHorizontal = useStoreState(
       
 71770       parentMenubar,
       
 71771       (state) => !!state && state.orientation !== "vertical"
       
 71772     );
       
 71773     const onKeyDown = useEvent((event) => {
       
 71774       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 71775       if (event.defaultPrevented)
       
 71776         return;
       
 71777       if (hasParentMenu || parentMenubar && !isHorizontal) {
       
 71778         const hideMap = {
       
 71779           ArrowRight: () => dir === "left" && !isHorizontal,
       
 71780           ArrowLeft: () => dir === "right" && !isHorizontal,
       
 71781           ArrowUp: () => dir === "bottom" && isHorizontal,
       
 71782           ArrowDown: () => dir === "top" && isHorizontal
       
 71783         };
       
 71784         const action = hideMap[event.key];
       
 71785         if (action == null ? void 0 : action()) {
       
 71786           event.stopPropagation();
       
 71787           event.preventDefault();
       
 71788           return store == null ? void 0 : store.hide();
       
 71789         }
       
 71790       }
       
 71791       if (parentMenubar) {
       
 71792         const keyMap = {
       
 71793           ArrowRight: () => {
       
 71794             if (!isMenubarHorizontal)
       
 71795               return;
       
 71796             return parentMenubar.next();
       
 71797           },
       
 71798           ArrowLeft: () => {
       
 71799             if (!isMenubarHorizontal)
       
 71800               return;
       
 71801             return parentMenubar.previous();
       
 71802           },
       
 71803           ArrowDown: () => {
       
 71804             if (isMenubarHorizontal)
       
 71805               return;
       
 71806             return parentMenubar.next();
       
 71807           },
       
 71808           ArrowUp: () => {
       
 71809             if (isMenubarHorizontal)
       
 71810               return;
       
 71811             return parentMenubar.previous();
       
 71812           }
       
 71813         };
       
 71814         const action = keyMap[event.key];
       
 71815         const id2 = action == null ? void 0 : action();
       
 71816         if (id2 !== void 0) {
       
 71817           event.stopPropagation();
       
 71818           event.preventDefault();
       
 71819           parentMenubar.move(id2);
       
 71820         }
       
 71821       }
       
 71822     });
       
 71823     props = useWrapElement(
       
 71824       props,
       
 71825       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuScopedContextProvider, { value: store, children: element }),
       
 71826       [store]
       
 71827     );
       
 71828     const ariaLabelledBy = useAriaLabelledBy(_4R3V3JGP_spreadValues({ store }, props));
       
 71829     const mounted = store.useState("mounted");
       
 71830     const hidden = isHidden(mounted, props.hidden, alwaysVisible);
       
 71831     const style = hidden ? _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props.style), { display: "none" }) : props.style;
       
 71832     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 71833       id,
       
 71834       "aria-labelledby": ariaLabelledBy,
       
 71835       hidden
       
 71836     }, props), {
       
 71837       ref: useMergeRefs(id ? store.setContentElement : null, props.ref),
       
 71838       style,
       
 71839       onKeyDown
       
 71840     });
       
 71841     const hasCombobox = !!store.combobox;
       
 71842     composite = composite != null ? composite : !hasCombobox;
       
 71843     if (composite) {
       
 71844       props = _4R3V3JGP_spreadValues({
       
 71845         role: "menu",
       
 71846         "aria-orientation": orientation
       
 71847       }, props);
       
 71848     }
       
 71849     props = useComposite(_4R3V3JGP_spreadValues({ store, composite }, props));
       
 71850     props = useCompositeTypeahead(_4R3V3JGP_spreadValues({ store, typeahead: !hasCombobox }, props));
       
 71851     return props;
       
 71852   }
       
 71853 );
       
 71854 var MenuList = createComponent((props) => {
       
 71855   const htmlProps = useMenuList(props);
       
 71856   return _3ORBWXWF_createElement("div", htmlProps);
       
 71857 });
       
 71858 if (false) {}
       
 71859 
       
 71860 
       
 71861 
       
 71862 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/menu/menu.js
       
 71863 "use client";
       
 71864 
       
 71865 
       
 71866 
       
 71867 
       
 71868 
       
 71869 
       
 71870 
       
 71871 
       
 71872 
       
 71873 
       
 71874 
       
 71875 
       
 71876 
       
 71877 
       
 71878 
       
 71879 
       
 71880 
       
 71881 
       
 71882 
       
 71883 
       
 71884 
       
 71885 
       
 71886 
       
 71887 
       
 71888 
       
 71889 
       
 71890 
       
 71891 
       
 71892 
       
 71893 
       
 71894 
       
 71895 
       
 71896 
       
 71897 
       
 71898 
       
 71899 
       
 71900 
       
 71901 
       
 71902 
       
 71903 
       
 71904 
       
 71905 
       
 71906 
       
 71907 
       
 71908 
       
 71909 
       
 71910 
       
 71911 
       
 71912 
       
 71913 // src/menu/menu.tsx
       
 71914 
       
 71915 
       
 71916 
       
 71917 
       
 71918 var useMenu = createHook(
       
 71919   (_a) => {
       
 71920     var _b = _a, {
       
 71921       store,
       
 71922       modal: modalProp = false,
       
 71923       portal = !!modalProp,
       
 71924       hideOnEscape = true,
       
 71925       autoFocusOnShow = true,
       
 71926       hideOnHoverOutside,
       
 71927       alwaysVisible
       
 71928     } = _b, props = __objRest(_b, [
       
 71929       "store",
       
 71930       "modal",
       
 71931       "portal",
       
 71932       "hideOnEscape",
       
 71933       "autoFocusOnShow",
       
 71934       "hideOnHoverOutside",
       
 71935       "alwaysVisible"
       
 71936     ]);
       
 71937     const context = useMenuProviderContext();
       
 71938     store = store || context;
       
 71939     invariant(
       
 71940       store,
       
 71941        false && 0
       
 71942     );
       
 71943     const ref = (0,external_React_.useRef)(null);
       
 71944     const parentMenu = store.parent;
       
 71945     const parentMenubar = store.menubar;
       
 71946     const hasParentMenu = !!parentMenu;
       
 71947     const parentIsMenubar = !!parentMenubar && !hasParentMenu;
       
 71948     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
 71949       ref: useMergeRefs(ref, props.ref)
       
 71950     });
       
 71951     const _a2 = useMenuList(
       
 71952       _4R3V3JGP_spreadValues({ store, alwaysVisible }, props)
       
 71953     ), { "aria-labelledby": ariaLabelledBy } = _a2, menuListProps = __objRest(_a2, ["aria-labelledby"]);
       
 71954     props = menuListProps;
       
 71955     const [initialFocusRef, setInitialFocusRef] = (0,external_React_.useState)();
       
 71956     const autoFocusOnShowState = store.useState("autoFocusOnShow");
       
 71957     const initialFocus = store.useState("initialFocus");
       
 71958     const baseElement = store.useState("baseElement");
       
 71959     const items = store.useState("renderedItems");
       
 71960     (0,external_React_.useEffect)(() => {
       
 71961       let cleaning = false;
       
 71962       setInitialFocusRef((prevInitialFocusRef) => {
       
 71963         var _a3, _b2, _c;
       
 71964         if (cleaning)
       
 71965           return;
       
 71966         if (!autoFocusOnShowState)
       
 71967           return;
       
 71968         if ((_a3 = prevInitialFocusRef == null ? void 0 : prevInitialFocusRef.current) == null ? void 0 : _a3.isConnected)
       
 71969           return prevInitialFocusRef;
       
 71970         const ref2 = (0,external_React_.createRef)();
       
 71971         switch (initialFocus) {
       
 71972           case "first":
       
 71973             ref2.current = ((_b2 = items.find((item) => !item.disabled && item.element)) == null ? void 0 : _b2.element) || null;
       
 71974             break;
       
 71975           case "last":
       
 71976             ref2.current = ((_c = [...items].reverse().find((item) => !item.disabled && item.element)) == null ? void 0 : _c.element) || null;
       
 71977             break;
       
 71978           default:
       
 71979             ref2.current = baseElement;
       
 71980         }
       
 71981         return ref2;
       
 71982       });
       
 71983       return () => {
       
 71984         cleaning = true;
       
 71985       };
       
 71986     }, [store, autoFocusOnShowState, initialFocus, items, baseElement]);
       
 71987     const modal = hasParentMenu ? false : modalProp;
       
 71988     const mayAutoFocusOnShow = !!autoFocusOnShow;
       
 71989     const canAutoFocusOnShow = !!initialFocusRef || !!props.initialFocus || !!modal;
       
 71990     const contentElement = useStoreState(
       
 71991       store.combobox || store,
       
 71992       "contentElement"
       
 71993     );
       
 71994     const parentContentElement = useStoreState(
       
 71995       (parentMenu == null ? void 0 : parentMenu.combobox) || parentMenu,
       
 71996       "contentElement"
       
 71997     );
       
 71998     const preserveTabOrderAnchor = (0,external_React_.useMemo)(() => {
       
 71999       if (!parentContentElement)
       
 72000         return;
       
 72001       if (!contentElement)
       
 72002         return;
       
 72003       const role = contentElement.getAttribute("role");
       
 72004       const parentRole = parentContentElement.getAttribute("role");
       
 72005       const parentIsMenuOrMenubar = parentRole === "menu" || parentRole === "menubar";
       
 72006       if (parentIsMenuOrMenubar && role === "menu")
       
 72007         return;
       
 72008       return parentContentElement;
       
 72009     }, [contentElement, parentContentElement]);
       
 72010     if (preserveTabOrderAnchor !== void 0) {
       
 72011       props = _4R3V3JGP_spreadValues({
       
 72012         preserveTabOrderAnchor
       
 72013       }, props);
       
 72014     }
       
 72015     props = useHovercard(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
       
 72016       store,
       
 72017       alwaysVisible,
       
 72018       initialFocus: initialFocusRef,
       
 72019       autoFocusOnShow: mayAutoFocusOnShow ? canAutoFocusOnShow && autoFocusOnShow : autoFocusOnShowState || !!modal
       
 72020     }, props), {
       
 72021       hideOnEscape: (event) => {
       
 72022         if (isFalsyBooleanCallback(hideOnEscape, event))
       
 72023           return false;
       
 72024         store == null ? void 0 : store.hideAll();
       
 72025         return true;
       
 72026       },
       
 72027       hideOnHoverOutside: (event) => {
       
 72028         const disclosureElement = store == null ? void 0 : store.getState().disclosureElement;
       
 72029         const getHideOnHoverOutside = () => {
       
 72030           if (typeof hideOnHoverOutside === "function") {
       
 72031             return hideOnHoverOutside(event);
       
 72032           }
       
 72033           if (hideOnHoverOutside != null)
       
 72034             return hideOnHoverOutside;
       
 72035           if (hasParentMenu)
       
 72036             return true;
       
 72037           if (!parentIsMenubar)
       
 72038             return false;
       
 72039           if (!disclosureElement)
       
 72040             return true;
       
 72041           if (hasFocusWithin(disclosureElement))
       
 72042             return false;
       
 72043           return true;
       
 72044         };
       
 72045         if (!getHideOnHoverOutside())
       
 72046           return false;
       
 72047         if (event.defaultPrevented)
       
 72048           return true;
       
 72049         if (!hasParentMenu)
       
 72050           return true;
       
 72051         if (!disclosureElement)
       
 72052           return true;
       
 72053         fireEvent(disclosureElement, "mouseout", event);
       
 72054         if (!hasFocusWithin(disclosureElement))
       
 72055           return true;
       
 72056         requestAnimationFrame(() => {
       
 72057           if (hasFocusWithin(disclosureElement))
       
 72058             return;
       
 72059           store == null ? void 0 : store.hide();
       
 72060         });
       
 72061         return false;
       
 72062       },
       
 72063       modal,
       
 72064       portal,
       
 72065       backdrop: hasParentMenu ? false : props.backdrop
       
 72066     }));
       
 72067     props = _4R3V3JGP_spreadValues({
       
 72068       "aria-labelledby": ariaLabelledBy
       
 72069     }, props);
       
 72070     return props;
       
 72071   }
       
 72072 );
       
 72073 var Menu = createDialogComponent(
       
 72074   createComponent((props) => {
       
 72075     const htmlProps = useMenu(props);
       
 72076     return _3ORBWXWF_createElement("div", htmlProps);
       
 72077   }),
       
 72078   useMenuProviderContext
       
 72079 );
       
 72080 if (false) {}
       
 72081 
       
 72082 
       
 72083 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/G6ONQ5EH.js
       
 72084 "use client";
       
 72085 
       
 72086 
       
 72087 
       
 72088 
       
 72089 
       
 72090 // src/composite/composite-hover.ts
       
 72091 
       
 72092 
       
 72093 
       
 72094 
       
 72095 function getMouseDestination(event) {
       
 72096   const relatedTarget = event.relatedTarget;
       
 72097   if ((relatedTarget == null ? void 0 : relatedTarget.nodeType) === Node.ELEMENT_NODE) {
       
 72098     return relatedTarget;
       
 72099   }
       
 72100   return null;
       
 72101 }
       
 72102 function hoveringInside(event) {
       
 72103   const nextElement = getMouseDestination(event);
       
 72104   if (!nextElement)
       
 72105     return false;
       
 72106   return contains(event.currentTarget, nextElement);
       
 72107 }
       
 72108 var G6ONQ5EH_symbol = Symbol("composite-hover");
       
 72109 function movingToAnotherItem(event) {
       
 72110   let dest = getMouseDestination(event);
       
 72111   if (!dest)
       
 72112     return false;
       
 72113   do {
       
 72114     if (Y3OOHFCN_hasOwnProperty(dest, G6ONQ5EH_symbol) && dest[G6ONQ5EH_symbol])
       
 72115       return true;
       
 72116     dest = dest.parentElement;
       
 72117   } while (dest);
       
 72118   return false;
       
 72119 }
       
 72120 var useCompositeHover = createHook(
       
 72121   (_a) => {
       
 72122     var _b = _a, {
       
 72123       store,
       
 72124       focusOnHover = true,
       
 72125       blurOnHoverEnd = !!focusOnHover
       
 72126     } = _b, props = __objRest(_b, [
       
 72127       "store",
       
 72128       "focusOnHover",
       
 72129       "blurOnHoverEnd"
       
 72130     ]);
       
 72131     const context = useCompositeContext();
       
 72132     store = store || context;
       
 72133     invariant(
       
 72134       store,
       
 72135        false && 0
       
 72136     );
       
 72137     const isMouseMoving = useIsMouseMoving();
       
 72138     const onMouseMoveProp = props.onMouseMove;
       
 72139     const focusOnHoverProp = useBooleanEvent(focusOnHover);
       
 72140     const onMouseMove = useEvent((event) => {
       
 72141       onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);
       
 72142       if (event.defaultPrevented)
       
 72143         return;
       
 72144       if (!isMouseMoving())
       
 72145         return;
       
 72146       if (!focusOnHoverProp(event))
       
 72147         return;
       
 72148       if (!hasFocusWithin(event.currentTarget)) {
       
 72149         const baseElement = store == null ? void 0 : store.getState().baseElement;
       
 72150         if (baseElement && !hasFocus(baseElement)) {
       
 72151           baseElement.focus();
       
 72152         }
       
 72153       }
       
 72154       store == null ? void 0 : store.setActiveId(event.currentTarget.id);
       
 72155     });
       
 72156     const onMouseLeaveProp = props.onMouseLeave;
       
 72157     const blurOnHoverEndProp = useBooleanEvent(blurOnHoverEnd);
       
 72158     const onMouseLeave = useEvent((event) => {
       
 72159       var _a2;
       
 72160       onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);
       
 72161       if (event.defaultPrevented)
       
 72162         return;
       
 72163       if (!isMouseMoving())
       
 72164         return;
       
 72165       if (hoveringInside(event))
       
 72166         return;
       
 72167       if (movingToAnotherItem(event))
       
 72168         return;
       
 72169       if (!focusOnHoverProp(event))
       
 72170         return;
       
 72171       if (!blurOnHoverEndProp(event))
       
 72172         return;
       
 72173       store == null ? void 0 : store.setActiveId(null);
       
 72174       (_a2 = store == null ? void 0 : store.getState().baseElement) == null ? void 0 : _a2.focus();
       
 72175     });
       
 72176     const ref = (0,external_React_.useCallback)((element) => {
       
 72177       if (!element)
       
 72178         return;
       
 72179       element[G6ONQ5EH_symbol] = true;
       
 72180     }, []);
       
 72181     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), {
       
 72182       ref: useMergeRefs(ref, props.ref),
       
 72183       onMouseMove,
       
 72184       onMouseLeave
       
 72185     });
       
 72186     return props;
       
 72187   }
       
 72188 );
       
 72189 var CompositeHover = createMemoComponent(
       
 72190   (props) => {
       
 72191     const htmlProps = useCompositeHover(props);
       
 72192     return _3ORBWXWF_createElement("div", htmlProps);
       
 72193   }
       
 72194 );
       
 72195 if (false) {}
       
 72196 
       
 72197 
       
 72198 
       
 72199 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/Y6467XPW.js
       
 72200 "use client";
       
 72201 
       
 72202 
       
 72203 
       
 72204 
       
 72205 
       
 72206 
       
 72207 
       
 72208 
       
 72209 
       
 72210 // src/menu/menu-item.ts
       
 72211 
       
 72212 
       
 72213 
       
 72214 
       
 72215 function menuHasFocus(baseElement, items, currentTarget) {
 69485 function menuHasFocus(baseElement, items, currentTarget) {
 72216   var _a;
 69486   var _a;
 72217   if (!baseElement)
 69487   if (!baseElement) return false;
 72218     return false;
 69488   if (hasFocusWithin(baseElement)) return true;
 72219   if (hasFocusWithin(baseElement))
       
 72220     return true;
       
 72221   const expandedItem = items == null ? void 0 : items.find((item) => {
 69489   const expandedItem = items == null ? void 0 : items.find((item) => {
 72222     var _a2;
 69490     var _a2;
 72223     if (item.element === currentTarget)
 69491     if (item.element === currentTarget) return false;
 72224       return false;
       
 72225     return ((_a2 = item.element) == null ? void 0 : _a2.getAttribute("aria-expanded")) === "true";
 69492     return ((_a2 = item.element) == null ? void 0 : _a2.getAttribute("aria-expanded")) === "true";
 72226   });
 69493   });
 72227   const expandedMenuId = (_a = expandedItem == null ? void 0 : expandedItem.element) == null ? void 0 : _a.getAttribute("aria-controls");
 69494   const expandedMenuId = (_a = expandedItem == null ? void 0 : expandedItem.element) == null ? void 0 : _a.getAttribute("aria-controls");
 72228   if (!expandedMenuId)
 69495   if (!expandedMenuId) return false;
 72229     return false;
 69496   const doc = getDocument(baseElement);
 72230   const doc = DLOEKDPY_getDocument(baseElement);
       
 72231   const expandedMenu = doc.getElementById(expandedMenuId);
 69497   const expandedMenu = doc.getElementById(expandedMenuId);
 72232   if (!expandedMenu)
 69498   if (!expandedMenu) return false;
 72233     return false;
 69499   if (hasFocusWithin(expandedMenu)) return true;
 72234   if (hasFocusWithin(expandedMenu))
       
 72235     return true;
       
 72236   return !!expandedMenu.querySelector("[role=menuitem][aria-expanded=true]");
 69500   return !!expandedMenu.querySelector("[role=menuitem][aria-expanded=true]");
 72237 }
 69501 }
 72238 var useMenuItem = createHook(
 69502 var useMenuItem = createHook(
 72239   (_a) => {
 69503   function useMenuItem2(_a) {
 72240     var _b = _a, {
 69504     var _b = _a, {
 72241       store,
 69505       store,
 72242       hideOnClick = true,
 69506       hideOnClick = true,
 72243       preventScrollOnKeyDown = true,
 69507       preventScrollOnKeyDown = true,
 72244       focusOnHover,
 69508       focusOnHover,
 72249       "preventScrollOnKeyDown",
 69513       "preventScrollOnKeyDown",
 72250       "focusOnHover",
 69514       "focusOnHover",
 72251       "blurOnHoverEnd"
 69515       "blurOnHoverEnd"
 72252     ]);
 69516     ]);
 72253     const menuContext = useMenuScopedContext(true);
 69517     const menuContext = useMenuScopedContext(true);
 72254     const menubarContext = KA4GX64Z_useMenubarScopedContext();
 69518     const menubarContext = _62UHHO2X_useMenubarScopedContext();
 72255     store = store || menuContext || menubarContext;
 69519     store = store || menuContext || menubarContext;
 72256     invariant(
 69520     invariant(
 72257       store,
 69521       store,
 72258        false && 0
 69522        false && 0
 72259     );
 69523     );
 72261     const hideOnClickProp = useBooleanEvent(hideOnClick);
 69525     const hideOnClickProp = useBooleanEvent(hideOnClick);
 72262     const hideMenu = "hideAll" in store ? store.hideAll : void 0;
 69526     const hideMenu = "hideAll" in store ? store.hideAll : void 0;
 72263     const isWithinMenu = !!hideMenu;
 69527     const isWithinMenu = !!hideMenu;
 72264     const onClick = useEvent((event) => {
 69528     const onClick = useEvent((event) => {
 72265       onClickProp == null ? void 0 : onClickProp(event);
 69529       onClickProp == null ? void 0 : onClickProp(event);
 72266       if (event.defaultPrevented)
 69530       if (event.defaultPrevented) return;
 72267         return;
 69531       if (isDownloading(event)) return;
 72268       if (isDownloading(event))
 69532       if (isOpeningInNewTab(event)) return;
 72269         return;
 69533       if (!hideMenu) return;
 72270       if (isOpeningInNewTab(event))
       
 72271         return;
       
 72272       if (!hideMenu)
       
 72273         return;
       
 72274       const popupType = event.currentTarget.getAttribute("aria-haspopup");
 69534       const popupType = event.currentTarget.getAttribute("aria-haspopup");
 72275       if (popupType === "menu")
 69535       if (popupType === "menu") return;
 72276         return;
 69536       if (!hideOnClickProp(event)) return;
 72277       if (!hideOnClickProp(event))
       
 72278         return;
       
 72279       hideMenu();
 69537       hideMenu();
 72280     });
 69538     });
 72281     const contentElement = useStoreState(
 69539     const contentElement = useStoreState(
 72282       store,
 69540       store,
 72283       (state) => "contentElement" in state ? state.contentElement : null
 69541       (state) => "contentElement" in state ? state.contentElement : null
 72284     );
 69542     );
 72285     const role = getPopupItemRole(contentElement, "menuitem");
 69543     const role = getPopupItemRole(contentElement, "menuitem");
 72286     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 69544     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
 72287       role
 69545       role
 72288     }, props), {
 69546     }, props), {
 72289       onClick
 69547       onClick
 72290     });
 69548     });
 72291     props = useCompositeItem(_4R3V3JGP_spreadValues({ store, preventScrollOnKeyDown }, props));
 69549     props = useCompositeItem(_3YLGPPWQ_spreadValues({
 72292     props = useCompositeHover(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 69550       store,
       
 69551       preventScrollOnKeyDown
       
 69552     }, props));
       
 69553     props = useCompositeHover(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
 72293       store
 69554       store
 72294     }, props), {
 69555     }, props), {
 72295       focusOnHover(event) {
 69556       focusOnHover(event) {
 72296         const getFocusOnHover = () => {
 69557         const getFocusOnHover = () => {
 72297           if (typeof focusOnHover === "function")
 69558           if (typeof focusOnHover === "function") return focusOnHover(event);
 72298             return focusOnHover(event);
 69559           if (focusOnHover != null) return focusOnHover;
 72299           if (focusOnHover != null)
       
 72300             return focusOnHover;
       
 72301           return true;
 69560           return true;
 72302         };
 69561         };
 72303         if (!store)
 69562         if (!store) return false;
 72304           return false;
 69563         if (!getFocusOnHover()) return false;
 72305         if (!getFocusOnHover())
       
 72306           return false;
       
 72307         const { baseElement, items } = store.getState();
 69564         const { baseElement, items } = store.getState();
 72308         if (isWithinMenu) {
 69565         if (isWithinMenu) {
 72309           if (event.currentTarget.hasAttribute("aria-expanded")) {
 69566           if (event.currentTarget.hasAttribute("aria-expanded")) {
 72310             event.currentTarget.focus();
 69567             event.currentTarget.focus();
 72311           }
 69568           }
 72316           return true;
 69573           return true;
 72317         }
 69574         }
 72318         return false;
 69575         return false;
 72319       },
 69576       },
 72320       blurOnHoverEnd(event) {
 69577       blurOnHoverEnd(event) {
 72321         if (typeof blurOnHoverEnd === "function")
 69578         if (typeof blurOnHoverEnd === "function") return blurOnHoverEnd(event);
 72322           return blurOnHoverEnd(event);
 69579         if (blurOnHoverEnd != null) return blurOnHoverEnd;
 72323         if (blurOnHoverEnd != null)
       
 72324           return blurOnHoverEnd;
       
 72325         return isWithinMenu;
 69580         return isWithinMenu;
 72326       }
 69581       }
 72327     }));
 69582     }));
 72328     return props;
 69583     return props;
 72329   }
 69584   }
 72330 );
 69585 );
 72331 var Y6467XPW_MenuItem = createMemoComponent((props) => {
 69586 var MVIULMNR_MenuItem = memo2(
 72332   const htmlProps = useMenuItem(props);
 69587   forwardRef2(function MenuItem2(props) {
 72333   return _3ORBWXWF_createElement("div", htmlProps);
 69588     const htmlProps = useMenuItem(props);
 72334 });
 69589     return LMDWO4NN_createElement(MVIULMNR_TagName, htmlProps);
 72335 if (false) {}
 69590   })
 72336 
 69591 );
 72337 
 69592 
 72338 
 69593 
 72339 ;// CONCATENATED MODULE: ./node_modules/@ariakit/core/esm/checkbox/checkbox-store.js
 69594 
       
 69595 ;// ./node_modules/@ariakit/react-core/esm/__chunks/RNCDFVMF.js
 72340 "use client";
 69596 "use client";
 72341 
 69597 
 72342 
 69598 
 72343 
 69599 // src/checkbox/checkbox-context.tsx
 72344 
 69600 var RNCDFVMF_ctx = createStoreContext();
 72345 // src/checkbox/checkbox-store.ts
 69601 var useCheckboxContext = RNCDFVMF_ctx.useContext;
 72346 function createCheckboxStore(props = {}) {
 69602 var useCheckboxScopedContext = RNCDFVMF_ctx.useScopedContext;
 72347   var _a;
 69603 var useCheckboxProviderContext = RNCDFVMF_ctx.useProviderContext;
 72348   throwOnConflictingProps(props, props.store);
 69604 var CheckboxContextProvider = RNCDFVMF_ctx.ContextProvider;
 72349   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
 69605 var CheckboxScopedContextProvider = RNCDFVMF_ctx.ScopedContextProvider;
 72350   const initialState = {
 69606 
 72351     value: defaultValue(
 69607 
 72352       props.value,
 69608 
 72353       syncState == null ? void 0 : syncState.value,
 69609 ;// ./node_modules/@ariakit/react-core/esm/__chunks/ASMQKSDT.js
 72354       props.defaultValue,
       
 72355       false
       
 72356     )
       
 72357   };
       
 72358   const checkbox = createStore(initialState, props.store);
       
 72359   return _chunks_4R3V3JGP_spreadProps(_chunks_4R3V3JGP_spreadValues({}, checkbox), {
       
 72360     setValue: (value) => checkbox.setState("value", value)
       
 72361   });
       
 72362 }
       
 72363 
       
 72364 
       
 72365 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/JIZ5C2JK.js
       
 72366 "use client";
 69610 "use client";
 72367 
 69611 
 72368 
 69612 
 72369 
 69613 
 72370 // src/checkbox/checkbox-store.ts
       
 72371 
       
 72372 function useCheckboxStoreProps(store, update, props) {
       
 72373   useUpdateEffect(update, [props.store]);
       
 72374   useStoreProps(store, props, "value", "setValue");
       
 72375   return store;
       
 72376 }
       
 72377 function useCheckboxStore(props = {}) {
       
 72378   const [store, update] = EKQEJRUF_useStore(createCheckboxStore, props);
       
 72379   return useCheckboxStoreProps(store, update, props);
       
 72380 }
       
 72381 
       
 72382 
       
 72383 
       
 72384 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/VPR2WHQV.js
       
 72385 "use client";
       
 72386 
       
 72387 
       
 72388 // src/checkbox/checkbox-context.tsx
       
 72389 var VPR2WHQV_ctx = createStoreContext();
       
 72390 var useCheckboxContext = VPR2WHQV_ctx.useContext;
       
 72391 var useCheckboxScopedContext = VPR2WHQV_ctx.useScopedContext;
       
 72392 var useCheckboxProviderContext = VPR2WHQV_ctx.useProviderContext;
       
 72393 var CheckboxContextProvider = VPR2WHQV_ctx.ContextProvider;
       
 72394 var CheckboxScopedContextProvider = VPR2WHQV_ctx.ScopedContextProvider;
       
 72395 
       
 72396 
       
 72397 
       
 72398 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/3AHQ6JCP.js
       
 72399 "use client";
       
 72400 
       
 72401 
       
 72402 
       
 72403 
 69614 
 72404 
 69615 
 72405 
 69616 
 72406 
 69617 
 72407 
 69618 
 72408 // src/checkbox/checkbox.tsx
 69619 // src/checkbox/checkbox.tsx
 72409 
 69620 
 72410 
 69621 
 72411 
 69622 
       
 69623 var ASMQKSDT_TagName = "input";
 72412 function setMixed(element, mixed) {
 69624 function setMixed(element, mixed) {
 72413   if (mixed) {
 69625   if (mixed) {
 72414     element.indeterminate = true;
 69626     element.indeterminate = true;
 72415   } else if (element.indeterminate) {
 69627   } else if (element.indeterminate) {
 72416     element.indeterminate = false;
 69628     element.indeterminate = false;
 72424     return value.toString();
 69636     return value.toString();
 72425   }
 69637   }
 72426   return value;
 69638   return value;
 72427 }
 69639 }
 72428 var useCheckbox = createHook(
 69640 var useCheckbox = createHook(
 72429   (_a) => {
 69641   function useCheckbox2(_a) {
 72430     var _b = _a, {
 69642     var _b = _a, {
 72431       store,
 69643       store,
 72432       name,
 69644       name,
 72433       value: valueProp,
 69645       value: valueProp,
 72434       checked: checkedProp,
 69646       checked: checkedProp,
 72442     ]);
 69654     ]);
 72443     const context = useCheckboxContext();
 69655     const context = useCheckboxContext();
 72444     store = store || context;
 69656     store = store || context;
 72445     const [_checked, setChecked] = (0,external_React_.useState)(defaultChecked != null ? defaultChecked : false);
 69657     const [_checked, setChecked] = (0,external_React_.useState)(defaultChecked != null ? defaultChecked : false);
 72446     const checked = useStoreState(store, (state) => {
 69658     const checked = useStoreState(store, (state) => {
 72447       if (checkedProp !== void 0)
 69659       if (checkedProp !== void 0) return checkedProp;
 72448         return checkedProp;
 69660       if ((state == null ? void 0 : state.value) === void 0) return _checked;
 72449       if ((state == null ? void 0 : state.value) === void 0)
       
 72450         return _checked;
       
 72451       if (valueProp != null) {
 69661       if (valueProp != null) {
 72452         if (Array.isArray(state.value)) {
 69662         if (Array.isArray(state.value)) {
 72453           const primitiveValue = getPrimitiveValue(valueProp);
 69663           const primitiveValue = getPrimitiveValue(valueProp);
 72454           return state.value.includes(primitiveValue);
 69664           return state.value.includes(primitiveValue);
 72455         }
 69665         }
 72456         return state.value === valueProp;
 69666         return state.value === valueProp;
 72457       }
 69667       }
 72458       if (Array.isArray(state.value))
 69668       if (Array.isArray(state.value)) return false;
 72459         return false;
 69669       if (typeof state.value === "boolean") return state.value;
 72460       if (typeof state.value === "boolean")
       
 72461         return state.value;
       
 72462       return false;
 69670       return false;
 72463     });
 69671     });
 72464     const ref = (0,external_React_.useRef)(null);
 69672     const ref = (0,external_React_.useRef)(null);
 72465     const tagName = useTagName(ref, props.as || "input");
 69673     const tagName = useTagName(ref, ASMQKSDT_TagName);
 72466     const nativeCheckbox = isNativeCheckbox(tagName, props.type);
 69674     const nativeCheckbox = isNativeCheckbox(tagName, props.type);
 72467     const mixed = checked ? checked === "mixed" : void 0;
 69675     const mixed = checked ? checked === "mixed" : void 0;
 72468     const isChecked = checked === "mixed" ? false : checked;
 69676     const isChecked = checked === "mixed" ? false : checked;
 72469     const disabled = disabledFromProps(props);
 69677     const disabled = disabledFromProps(props);
 72470     const [propertyUpdated, schedulePropertyUpdate] = useForceUpdate();
 69678     const [propertyUpdated, schedulePropertyUpdate] = useForceUpdate();
 72471     (0,external_React_.useEffect)(() => {
 69679     (0,external_React_.useEffect)(() => {
 72472       const element = ref.current;
 69680       const element = ref.current;
 72473       if (!element)
 69681       if (!element) return;
 72474         return;
       
 72475       setMixed(element, mixed);
 69682       setMixed(element, mixed);
 72476       if (nativeCheckbox)
 69683       if (nativeCheckbox) return;
 72477         return;
       
 72478       element.checked = isChecked;
 69684       element.checked = isChecked;
 72479       if (name !== void 0) {
 69685       if (name !== void 0) {
 72480         element.name = name;
 69686         element.name = name;
 72481       }
 69687       }
 72482       if (valueProp !== void 0) {
 69688       if (valueProp !== void 0) {
 72494       if (!nativeCheckbox) {
 69700       if (!nativeCheckbox) {
 72495         event.currentTarget.checked = !event.currentTarget.checked;
 69701         event.currentTarget.checked = !event.currentTarget.checked;
 72496         schedulePropertyUpdate();
 69702         schedulePropertyUpdate();
 72497       }
 69703       }
 72498       onChangeProp == null ? void 0 : onChangeProp(event);
 69704       onChangeProp == null ? void 0 : onChangeProp(event);
 72499       if (event.defaultPrevented)
 69705       if (event.defaultPrevented) return;
 72500         return;
       
 72501       const elementChecked = event.currentTarget.checked;
 69706       const elementChecked = event.currentTarget.checked;
 72502       setChecked(elementChecked);
 69707       setChecked(elementChecked);
 72503       store == null ? void 0 : store.setValue((prevValue) => {
 69708       store == null ? void 0 : store.setValue((prevValue) => {
 72504         if (valueProp == null)
 69709         if (valueProp == null) return elementChecked;
 72505           return elementChecked;
       
 72506         const primitiveValue = getPrimitiveValue(valueProp);
 69710         const primitiveValue = getPrimitiveValue(valueProp);
 72507         if (!Array.isArray(prevValue)) {
 69711         if (!Array.isArray(prevValue)) {
 72508           return prevValue === primitiveValue ? false : primitiveValue;
 69712           return prevValue === primitiveValue ? false : primitiveValue;
 72509         }
 69713         }
 72510         if (elementChecked) {
 69714         if (elementChecked) {
 72517       });
 69721       });
 72518     });
 69722     });
 72519     const onClickProp = props.onClick;
 69723     const onClickProp = props.onClick;
 72520     const onClick = useEvent((event) => {
 69724     const onClick = useEvent((event) => {
 72521       onClickProp == null ? void 0 : onClickProp(event);
 69725       onClickProp == null ? void 0 : onClickProp(event);
 72522       if (event.defaultPrevented)
 69726       if (event.defaultPrevented) return;
 72523         return;
 69727       if (nativeCheckbox) return;
 72524       if (nativeCheckbox)
       
 72525         return;
       
 72526       onChange(event);
 69728       onChange(event);
 72527     });
 69729     });
 72528     props = useWrapElement(
 69730     props = useWrapElement(
 72529       props,
 69731       props,
 72530       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CheckboxCheckedContext.Provider, { value: isChecked, children: element }),
 69732       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(CheckboxCheckedContext.Provider, { value: isChecked, children: element }),
 72531       [isChecked]
 69733       [isChecked]
 72532     );
 69734     );
 72533     props = _4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({
 69735     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
 72534       role: !nativeCheckbox ? "checkbox" : void 0,
 69736       role: !nativeCheckbox ? "checkbox" : void 0,
 72535       type: nativeCheckbox ? "checkbox" : void 0,
 69737       type: nativeCheckbox ? "checkbox" : void 0,
 72536       "aria-checked": checked
 69738       "aria-checked": checked
 72537     }, props), {
 69739     }, props), {
 72538       ref: useMergeRefs(ref, props.ref),
 69740       ref: useMergeRefs(ref, props.ref),
 72539       onChange,
 69741       onChange,
 72540       onClick
 69742       onClick
 72541     });
 69743     });
 72542     props = useCommand(_4R3V3JGP_spreadValues({ clickOnEnter: !nativeCheckbox }, props));
 69744     props = useCommand(_3YLGPPWQ_spreadValues({ clickOnEnter: !nativeCheckbox }, props));
 72543     return _4R3V3JGP_spreadValues({
 69745     return removeUndefinedValues(_3YLGPPWQ_spreadValues({
 72544       name: nativeCheckbox ? name : void 0,
 69746       name: nativeCheckbox ? name : void 0,
 72545       value: nativeCheckbox ? valueProp : void 0,
 69747       value: nativeCheckbox ? valueProp : void 0,
 72546       checked: isChecked
 69748       checked: isChecked
 72547     }, props);
 69749     }, props));
 72548   }
 69750   }
 72549 );
 69751 );
 72550 var Checkbox = createComponent((props) => {
 69752 var Checkbox = forwardRef2(function Checkbox2(props) {
 72551   const htmlProps = useCheckbox(props);
 69753   const htmlProps = useCheckbox(props);
 72552   return _3ORBWXWF_createElement("input", htmlProps);
 69754   return LMDWO4NN_createElement(ASMQKSDT_TagName, htmlProps);
 72553 });
 69755 });
 72554 if (false) {}
 69756 
 72555 
 69757 
 72556 
 69758 
 72557 
 69759 ;// ./node_modules/@ariakit/core/esm/checkbox/checkbox-store.js
 72558 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/menu/menu-item-checkbox.js
       
 72559 "use client";
 69760 "use client";
 72560 
 69761 
 72561 
 69762 
 72562 
 69763 
 72563 
 69764 
 72564 
 69765 // src/checkbox/checkbox-store.ts
 72565 
 69766 function createCheckboxStore(props = {}) {
 72566 
 69767   var _a;
 72567 
 69768   throwOnConflictingProps(props, props.store);
 72568 
 69769   const syncState = (_a = props.store) == null ? void 0 : _a.getState();
 72569 
 69770   const initialState = {
 72570 
 69771     value: defaultValue(
 72571 
 69772       props.value,
 72572 
 69773       syncState == null ? void 0 : syncState.value,
 72573 
 69774       props.defaultValue,
 72574 
 69775       false
 72575 
 69776     )
 72576 
 69777   };
 72577 
 69778   const checkbox = createStore(initialState, props.store);
 72578 
 69779   return _chunks_3YLGPPWQ_spreadProps(_chunks_3YLGPPWQ_spreadValues({}, checkbox), {
 72579 
 69780     setValue: (value) => checkbox.setState("value", value)
 72580 
 69781   });
 72581 
 69782 }
 72582 
 69783 
 72583 
 69784 
 72584 
 69785 ;// ./node_modules/@ariakit/react-core/esm/__chunks/HAVBGUA3.js
 72585 
 69786 "use client";
 72586 // src/menu/menu-item-checkbox.ts
 69787 
 72587 
 69788 
 72588 
 69789 
       
 69790 // src/checkbox/checkbox-store.ts
       
 69791 
       
 69792 function useCheckboxStoreProps(store, update, props) {
       
 69793   useUpdateEffect(update, [props.store]);
       
 69794   useStoreProps(store, props, "value", "setValue");
       
 69795   return store;
       
 69796 }
       
 69797 function useCheckboxStore(props = {}) {
       
 69798   const [store, update] = YV4JVR4I_useStore(createCheckboxStore, props);
       
 69799   return useCheckboxStoreProps(store, update, props);
       
 69800 }
       
 69801 
       
 69802 
       
 69803 
       
 69804 ;// ./node_modules/@ariakit/react-core/esm/menu/menu-item-checkbox.js
       
 69805 "use client";
       
 69806 
       
 69807 
       
 69808 
       
 69809 
       
 69810 
       
 69811 
       
 69812 
       
 69813 
       
 69814 
       
 69815 
       
 69816 
       
 69817 
       
 69818 
       
 69819 
       
 69820 
       
 69821 
       
 69822 
       
 69823 
       
 69824 
       
 69825 
       
 69826 
       
 69827 
       
 69828 
       
 69829 
       
 69830 
       
 69831 
       
 69832 // src/menu/menu-item-checkbox.tsx
       
 69833 
       
 69834 
       
 69835 var menu_item_checkbox_TagName = "div";
 72589 function menu_item_checkbox_getPrimitiveValue(value) {
 69836 function menu_item_checkbox_getPrimitiveValue(value) {
 72590   if (Array.isArray(value)) {
 69837   if (Array.isArray(value)) {
 72591     return value.toString();
 69838     return value.toString();
 72592   }
 69839   }
 72593   return value;
 69840   return value;
 72594 }
 69841 }
 72595 function getValue(storeValue, value, checked) {
 69842 function getValue(storeValue, value, checked) {
 72596   if (value === void 0) {
 69843   if (value === void 0) {
 72597     if (Array.isArray(storeValue))
 69844     if (Array.isArray(storeValue)) return storeValue;
 72598       return storeValue;
       
 72599     return !!checked;
 69845     return !!checked;
 72600   }
 69846   }
 72601   const primitiveValue = menu_item_checkbox_getPrimitiveValue(value);
 69847   const primitiveValue = menu_item_checkbox_getPrimitiveValue(value);
 72602   if (!Array.isArray(storeValue)) {
 69848   if (!Array.isArray(storeValue)) {
 72603     if (checked) {
 69849     if (checked) {
 72612     return [...storeValue, primitiveValue];
 69858     return [...storeValue, primitiveValue];
 72613   }
 69859   }
 72614   return storeValue.filter((v) => v !== primitiveValue);
 69860   return storeValue.filter((v) => v !== primitiveValue);
 72615 }
 69861 }
 72616 var useMenuItemCheckbox = createHook(
 69862 var useMenuItemCheckbox = createHook(
 72617   (_a) => {
 69863   function useMenuItemCheckbox2(_a) {
 72618     var _b = _a, {
 69864     var _b = _a, {
 72619       store,
 69865       store,
 72620       name,
 69866       name,
 72621       value,
 69867       value,
 72622       checked,
 69868       checked,
 72637        false && 0
 69883        false && 0
 72638     );
 69884     );
 72639     const defaultChecked = useInitialValue(defaultCheckedProp);
 69885     const defaultChecked = useInitialValue(defaultCheckedProp);
 72640     (0,external_React_.useEffect)(() => {
 69886     (0,external_React_.useEffect)(() => {
 72641       store == null ? void 0 : store.setValue(name, (prevValue = []) => {
 69887       store == null ? void 0 : store.setValue(name, (prevValue = []) => {
 72642         if (!defaultChecked)
 69888         if (!defaultChecked) return prevValue;
 72643           return prevValue;
       
 72644         return getValue(prevValue, value, true);
 69889         return getValue(prevValue, value, true);
 72645       });
 69890       });
 72646     }, [store, name, value, defaultChecked]);
 69891     }, [store, name, value, defaultChecked]);
 72647     (0,external_React_.useEffect)(() => {
 69892     (0,external_React_.useEffect)(() => {
 72648       if (checked === void 0)
 69893       if (checked === void 0) return;
 72649         return;
       
 72650       store == null ? void 0 : store.setValue(name, (prevValue) => {
 69894       store == null ? void 0 : store.setValue(name, (prevValue) => {
 72651         return getValue(prevValue, value, checked);
 69895         return getValue(prevValue, value, checked);
 72652       });
 69896       });
 72653     }, [store, name, value, checked]);
 69897     }, [store, name, value, checked]);
 72654     const checkboxStore = useCheckboxStore({
 69898     const checkboxStore = useCheckboxStore({
 72655       value: store.useState((state) => state.values[name]),
 69899       value: store.useState((state) => state.values[name]),
 72656       setValue(internalValue) {
 69900       setValue(internalValue) {
 72657         store == null ? void 0 : store.setValue(name, () => {
 69901         store == null ? void 0 : store.setValue(name, () => {
 72658           if (checked === void 0)
 69902           if (checked === void 0) return internalValue;
 72659             return internalValue;
       
 72660           const nextValue = getValue(internalValue, value, checked);
 69903           const nextValue = getValue(internalValue, value, checked);
 72661           if (!Array.isArray(nextValue))
 69904           if (!Array.isArray(nextValue)) return nextValue;
 72662             return nextValue;
 69905           if (!Array.isArray(internalValue)) return nextValue;
 72663           if (!Array.isArray(internalValue))
 69906           if (shallowEqual(internalValue, nextValue)) return internalValue;
 72664             return nextValue;
       
 72665           if (shallowEqual(internalValue, nextValue))
       
 72666             return internalValue;
       
 72667           return nextValue;
 69907           return nextValue;
 72668         });
 69908         });
 72669       }
 69909       }
 72670     });
 69910     });
 72671     props = _4R3V3JGP_spreadValues({
 69911     props = _3YLGPPWQ_spreadValues({
 72672       role: "menuitemcheckbox"
 69912       role: "menuitemcheckbox"
 72673     }, props);
 69913     }, props);
 72674     props = useCheckbox(_4R3V3JGP_spreadValues({
 69914     props = useCheckbox(_3YLGPPWQ_spreadValues({
 72675       store: checkboxStore,
 69915       store: checkboxStore,
 72676       name,
 69916       name,
 72677       value,
 69917       value,
 72678       checked
 69918       checked
 72679     }, props));
 69919     }, props));
 72680     props = useMenuItem(_4R3V3JGP_spreadValues({ store, hideOnClick }, props));
 69920     props = useMenuItem(_3YLGPPWQ_spreadValues({ store, hideOnClick }, props));
 72681     return props;
 69921     return props;
 72682   }
 69922   }
 72683 );
 69923 );
 72684 var MenuItemCheckbox = createMemoComponent(
 69924 var MenuItemCheckbox = memo2(
 72685   (props) => {
 69925   forwardRef2(function MenuItemCheckbox2(props) {
 72686     const htmlProps = useMenuItemCheckbox(props);
 69926     const htmlProps = useMenuItemCheckbox(props);
 72687     return _3ORBWXWF_createElement("div", htmlProps);
 69927     return LMDWO4NN_createElement(menu_item_checkbox_TagName, htmlProps);
 72688   }
 69928   })
 72689 );
 69929 );
 72690 if (false) {}
 69930 
 72691 
 69931 
 72692 
 69932 ;// ./node_modules/@ariakit/react-core/esm/menu/menu-item-radio.js
 72693 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/menu/menu-item-radio.js
       
 72694 "use client";
 69933 "use client";
 72695 
 69934 
 72696 
 69935 
 72697 
 69936 
 72698 
 69937 
 72718 
 69957 
 72719 // src/menu/menu-item-radio.tsx
 69958 // src/menu/menu-item-radio.tsx
 72720 
 69959 
 72721 
 69960 
 72722 
 69961 
       
 69962 var menu_item_radio_TagName = "div";
 72723 function menu_item_radio_getValue(prevValue, value, checked) {
 69963 function menu_item_radio_getValue(prevValue, value, checked) {
 72724   if (checked === void 0)
 69964   if (checked === void 0) return prevValue;
 72725     return prevValue;
 69965   if (checked) return value;
 72726   if (checked)
       
 72727     return value;
       
 72728   return prevValue;
 69966   return prevValue;
 72729 }
 69967 }
 72730 var useMenuItemRadio = createHook(
 69968 var useMenuItemRadio = createHook(
 72731   (_a) => {
 69969   function useMenuItemRadio2(_a) {
 72732     var _b = _a, {
 69970     var _b = _a, {
 72733       store,
 69971       store,
 72734       name,
 69972       name,
 72735       value,
 69973       value,
 72736       checked,
 69974       checked,
 72755       store == null ? void 0 : store.setValue(name, (prevValue = false) => {
 69993       store == null ? void 0 : store.setValue(name, (prevValue = false) => {
 72756         return menu_item_radio_getValue(prevValue, value, defaultChecked);
 69994         return menu_item_radio_getValue(prevValue, value, defaultChecked);
 72757       });
 69995       });
 72758     }, [store, name, value, defaultChecked]);
 69996     }, [store, name, value, defaultChecked]);
 72759     (0,external_React_.useEffect)(() => {
 69997     (0,external_React_.useEffect)(() => {
 72760       if (checked === void 0)
 69998       if (checked === void 0) return;
 72761         return;
       
 72762       store == null ? void 0 : store.setValue(name, (prevValue) => {
 69999       store == null ? void 0 : store.setValue(name, (prevValue) => {
 72763         return menu_item_radio_getValue(prevValue, value, checked);
 70000         return menu_item_radio_getValue(prevValue, value, checked);
 72764       });
 70001       });
 72765     }, [store, name, value, checked]);
 70002     }, [store, name, value, checked]);
 72766     const isChecked = store.useState((state) => state.values[name] === value);
 70003     const isChecked = store.useState((state) => state.values[name] === value);
 72767     props = useWrapElement(
 70004     props = useWrapElement(
 72768       props,
 70005       props,
 72769       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheckedContext.Provider, { value: !!isChecked, children: element }),
 70006       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheckedContext.Provider, { value: !!isChecked, children: element }),
 72770       [isChecked]
 70007       [isChecked]
 72771     );
 70008     );
 72772     props = _4R3V3JGP_spreadValues({
 70009     props = _3YLGPPWQ_spreadValues({
 72773       role: "menuitemradio"
 70010       role: "menuitemradio"
 72774     }, props);
 70011     }, props);
 72775     props = useRadio(_4R3V3JGP_spreadValues({
 70012     props = useRadio(_3YLGPPWQ_spreadValues({
 72776       name,
 70013       name,
 72777       value,
 70014       value,
 72778       checked: isChecked,
 70015       checked: isChecked,
 72779       onChange: (event) => {
 70016       onChange(event) {
 72780         onChangeProp == null ? void 0 : onChangeProp(event);
 70017         onChangeProp == null ? void 0 : onChangeProp(event);
 72781         if (event.defaultPrevented)
 70018         if (event.defaultPrevented) return;
 72782           return;
       
 72783         const element = event.currentTarget;
 70019         const element = event.currentTarget;
 72784         store == null ? void 0 : store.setValue(name, (prevValue) => {
 70020         store == null ? void 0 : store.setValue(name, (prevValue) => {
 72785           return menu_item_radio_getValue(prevValue, value, checked != null ? checked : element.checked);
 70021           return menu_item_radio_getValue(prevValue, value, checked != null ? checked : element.checked);
 72786         });
 70022         });
 72787       }
 70023       }
 72788     }, props));
 70024     }, props));
 72789     props = useMenuItem(_4R3V3JGP_spreadValues({ store, hideOnClick }, props));
 70025     props = useMenuItem(_3YLGPPWQ_spreadValues({ store, hideOnClick }, props));
 72790     return props;
 70026     return props;
 72791   }
 70027   }
 72792 );
 70028 );
 72793 var MenuItemRadio = createMemoComponent(
 70029 var MenuItemRadio = memo2(
 72794   (props) => {
 70030   forwardRef2(function MenuItemRadio2(props) {
 72795     const htmlProps = useMenuItemRadio(props);
 70031     const htmlProps = useMenuItemRadio(props);
 72796     return _3ORBWXWF_createElement("div", htmlProps);
 70032     return LMDWO4NN_createElement(menu_item_radio_TagName, htmlProps);
 72797   }
 70033   })
 72798 );
 70034 );
 72799 if (false) {}
 70035 
 72800 
 70036 
 72801 
 70037 ;// ./node_modules/@ariakit/react-core/esm/menu/menu-group.js
 72802 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/menu/menu-group.js
       
 72803 "use client";
 70038 "use client";
 72804 
 70039 
 72805 
 70040 
 72806 
 70041 
 72807 
 70042 
 72808 
 70043 
 72809 
 70044 
 72810 
 70045 
 72811 
 70046 
 72812 // src/menu/menu-group.ts
 70047 // src/menu/menu-group.tsx
 72813 var useMenuGroup = createHook((props) => {
 70048 var menu_group_TagName = "div";
 72814   props = useCompositeGroup(props);
 70049 var useMenuGroup = createHook(
       
 70050   function useMenuGroup2(props) {
       
 70051     props = useCompositeGroup(props);
       
 70052     return props;
       
 70053   }
       
 70054 );
       
 70055 var menu_group_MenuGroup = forwardRef2(function MenuGroup2(props) {
       
 70056   const htmlProps = useMenuGroup(props);
       
 70057   return LMDWO4NN_createElement(menu_group_TagName, htmlProps);
       
 70058 });
       
 70059 
       
 70060 
       
 70061 ;// ./node_modules/@ariakit/react-core/esm/menu/menu-group-label.js
       
 70062 "use client";
       
 70063 
       
 70064 
       
 70065 
       
 70066 
       
 70067 
       
 70068 
       
 70069 
       
 70070 
       
 70071 // src/menu/menu-group-label.tsx
       
 70072 var menu_group_label_TagName = "div";
       
 70073 var useMenuGroupLabel = createHook(
       
 70074   function useMenuGroupLabel2(props) {
       
 70075     props = useCompositeGroupLabel(props);
       
 70076     return props;
       
 70077   }
       
 70078 );
       
 70079 var MenuGroupLabel = forwardRef2(function MenuGroupLabel2(props) {
       
 70080   const htmlProps = useMenuGroupLabel(props);
       
 70081   return LMDWO4NN_createElement(menu_group_label_TagName, htmlProps);
       
 70082 });
       
 70083 
       
 70084 
       
 70085 ;// ./node_modules/@ariakit/react-core/esm/__chunks/TP7N7UIH.js
       
 70086 "use client";
       
 70087 
       
 70088 
       
 70089 
       
 70090 
       
 70091 
       
 70092 // src/composite/composite-separator.tsx
       
 70093 
       
 70094 var TP7N7UIH_TagName = "hr";
       
 70095 var useCompositeSeparator = createHook(function useCompositeSeparator2(_a) {
       
 70096   var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 70097   const context = useCompositeContext();
       
 70098   store = store || context;
       
 70099   invariant(
       
 70100     store,
       
 70101      false && 0
       
 70102   );
       
 70103   const orientation = store.useState(
       
 70104     (state) => state.orientation === "horizontal" ? "vertical" : "horizontal"
       
 70105   );
       
 70106   props = useSeparator(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { orientation }));
 72815   return props;
 70107   return props;
 72816 });
 70108 });
 72817 var menu_group_MenuGroup = createComponent((props) => {
 70109 var CompositeSeparator = forwardRef2(function CompositeSeparator2(props) {
 72818   const htmlProps = useMenuGroup(props);
 70110   const htmlProps = useCompositeSeparator(props);
 72819   return _3ORBWXWF_createElement("div", htmlProps);
 70111   return LMDWO4NN_createElement(TP7N7UIH_TagName, htmlProps);
 72820 });
 70112 });
 72821 if (false) {}
 70113 
 72822 
 70114 
 72823 
 70115 
 72824 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/ENRQQ6LK.js
 70116 ;// ./node_modules/@ariakit/react-core/esm/menu/menu-separator.js
 72825 "use client";
 70117 "use client";
 72826 
 70118 
 72827 
 70119 
 72828 
 70120 
 72829 
 70121 
 72830 
 70122 
 72831 // src/composite/composite-separator.ts
 70123 
 72832 
 70124 
 72833 var useCompositeSeparator = createHook(
 70125 
 72834   (_a) => {
 70126 
 72835     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 70127 
 72836     const context = useCompositeContext();
 70128 
 72837     store = store || context;
 70129 
 72838     invariant(
 70130 
 72839       store,
 70131 
 72840        false && 0
 70132 
 72841     );
 70133 // src/menu/menu-separator.tsx
 72842     const orientation = store.useState(
 70134 var menu_separator_TagName = "hr";
 72843       (state) => state.orientation === "horizontal" ? "vertical" : "horizontal"
       
 72844     );
       
 72845     props = useSeparator(_4R3V3JGP_spreadProps(_4R3V3JGP_spreadValues({}, props), { orientation }));
       
 72846     return props;
       
 72847   }
       
 72848 );
       
 72849 var CompositeSeparator = createComponent(
       
 72850   (props) => {
       
 72851     const htmlProps = useCompositeSeparator(props);
       
 72852     return _3ORBWXWF_createElement("hr", htmlProps);
       
 72853   }
       
 72854 );
       
 72855 if (false) {}
       
 72856 
       
 72857 
       
 72858 
       
 72859 ;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/menu/menu-separator.js
       
 72860 "use client";
       
 72861 
       
 72862 
       
 72863 
       
 72864 
       
 72865 
       
 72866 
       
 72867 
       
 72868 
       
 72869 
       
 72870 
       
 72871 
       
 72872 
       
 72873 
       
 72874 
       
 72875 
       
 72876 // src/menu/menu-separator.ts
       
 72877 var useMenuSeparator = createHook(
 70135 var useMenuSeparator = createHook(
 72878   (_a) => {
 70136   function useMenuSeparator2(_a) {
 72879     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 70137     var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
 72880     const context = useMenuContext();
 70138     const context = useMenuContext();
 72881     store = store || context;
 70139     store = store || context;
 72882     props = useCompositeSeparator(_4R3V3JGP_spreadValues({ store }, props));
 70140     props = useCompositeSeparator(_3YLGPPWQ_spreadValues({ store }, props));
 72883     return props;
 70141     return props;
 72884   }
 70142   }
 72885 );
 70143 );
 72886 var MenuSeparator = createComponent((props) => {
 70144 var MenuSeparator = forwardRef2(function MenuSeparator2(props) {
 72887   const htmlProps = useMenuSeparator(props);
 70145   const htmlProps = useMenuSeparator(props);
 72888   return _3ORBWXWF_createElement("hr", htmlProps);
 70146   return LMDWO4NN_createElement(menu_separator_TagName, htmlProps);
 72889 });
 70147 });
 72890 if (false) {}
 70148 
 72891 
 70149 
 72892 
 70150 ;// ./node_modules/@wordpress/components/build-module/menu/styles.js
 72893 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown-menu-v2/styles.js
 70151 
 72894 
 70152 function menu_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 72895 function dropdown_menu_v2_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
       
 72896 /**
 70153 /**
 72897  * External dependencies
 70154  * External dependencies
 72898  */
 70155  */
 72899 // eslint-disable-next-line no-restricted-imports
       
 72900 
 70156 
 72901 
 70157 
 72902 /**
 70158 /**
 72903  * Internal dependencies
 70159  * Internal dependencies
 72904  */
 70160  */
 72905 
 70161 
 72906 
 70162 
 72907 
 70163 
 72908 
 70164 
 72909 const ANIMATION_PARAMS = {
 70165 const styles_ANIMATION_PARAMS = {
 72910   SLIDE_AMOUNT: '2px',
 70166   SCALE_AMOUNT_OUTER: 0.82,
 72911   DURATION: '400ms',
 70167   SCALE_AMOUNT_CONTENT: 0.9,
 72912   EASING: 'cubic-bezier( 0.16, 1, 0.3, 1 )'
 70168   DURATION: {
       
 70169     IN: '400ms',
       
 70170     OUT: '200ms'
       
 70171   },
       
 70172   EASING: 'cubic-bezier(0.33, 0, 0, 1)'
 72913 };
 70173 };
 72914 const CONTENT_WRAPPER_PADDING = space(1);
 70174 const CONTENT_WRAPPER_PADDING = space(1);
 72915 const ITEM_PADDING_BLOCK = space(2);
 70175 const ITEM_PADDING_BLOCK = space(2);
 72916 const ITEM_PADDING_INLINE = space(3);
 70176 const ITEM_PADDING_INLINE = space(3);
 72917 
 70177 
 72918 // TODO:
 70178 // TODO:
 72919 // - those values are different from saved variables?
 70179 // - border color and divider color are different from COLORS.theme variables
 72920 // - should bring this into the config, and make themeable
 70180 // - lighter text color is not defined in COLORS.theme, should it be?
 72921 // - border color and divider color are different?
 70181 // - lighter background color is not defined in COLORS.theme, should it be?
 72922 const DEFAULT_BORDER_COLOR = COLORS.gray[300];
 70182 const DEFAULT_BORDER_COLOR = COLORS.theme.gray[300];
 72923 const DIVIDER_COLOR = COLORS.gray[200];
 70183 const DIVIDER_COLOR = COLORS.theme.gray[200];
 72924 const TOOLBAR_VARIANT_BORDER_COLOR = COLORS.gray['900'];
 70184 const LIGHTER_TEXT_COLOR = COLORS.theme.gray[700];
 72925 const DEFAULT_BOX_SHADOW = `0 0 0 ${config_values.borderWidth} ${DEFAULT_BORDER_COLOR}, ${config_values.popoverShadow}`;
 70185 const LIGHT_BACKGROUND_COLOR = COLORS.theme.gray[100];
       
 70186 const TOOLBAR_VARIANT_BORDER_COLOR = COLORS.theme.foreground;
       
 70187 const DEFAULT_BOX_SHADOW = `0 0 0 ${config_values.borderWidth} ${DEFAULT_BORDER_COLOR}, ${config_values.elevationMedium}`;
 72926 const TOOLBAR_VARIANT_BOX_SHADOW = `0 0 0 ${config_values.borderWidth} ${TOOLBAR_VARIANT_BORDER_COLOR}`;
 70188 const TOOLBAR_VARIANT_BOX_SHADOW = `0 0 0 ${config_values.borderWidth} ${TOOLBAR_VARIANT_BORDER_COLOR}`;
 72927 const GRID_TEMPLATE_COLS = 'minmax( 0, max-content ) 1fr';
 70189 const GRID_TEMPLATE_COLS = 'minmax( 0, max-content ) 1fr';
 72928 const slideUpAndFade = emotion_react_browser_esm_keyframes({
 70190 const PopoverOuterWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 72929   '0%': {
 70191   target: "e1wg7tti14"
 72930     opacity: 0,
 70192 } : 0)("position:relative;background-color:", COLORS.ui.background, ";border-radius:", config_values.radiusMedium, ";", props => /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:", props.variant === 'toolbar' ? TOOLBAR_VARIANT_BOX_SHADOW : DEFAULT_BOX_SHADOW, ";" + ( true ? "" : 0),  true ? "" : 0), " overflow:hidden;@media not ( prefers-reduced-motion ){transition-property:transform,opacity;transition-timing-function:", styles_ANIMATION_PARAMS.EASING, ";transition-duration:", styles_ANIMATION_PARAMS.DURATION.IN, ";will-change:transform,opacity;opacity:0;&:has( [data-enter] ){opacity:1;}&:has( [data-leave] ){transition-duration:", styles_ANIMATION_PARAMS.DURATION.OUT, ";}&:has( [data-side='bottom'] ),&:has( [data-side='top'] ){transform:scaleY( ", styles_ANIMATION_PARAMS.SCALE_AMOUNT_OUTER, " );}&:has( [data-side='bottom'] ){transform-origin:top;}&:has( [data-side='top'] ){transform-origin:bottom;}&:has( [data-enter][data-side='bottom'] ),&:has( [data-enter][data-side='top'] ),&:has( [data-leave][data-side='bottom'] ),&:has( [data-leave][data-side='top'] ){transform:scaleY( 1 );}}" + ( true ? "" : 0));
 72931     transform: `translateY(${ANIMATION_PARAMS.SLIDE_AMOUNT})`
 70193 const PopoverInnerWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 72932   },
 70194   target: "e1wg7tti13"
 72933   '100%': {
 70195 } : 0)("position:relative;z-index:1000000;display:grid;grid-template-columns:", GRID_TEMPLATE_COLS, ";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:", CONTENT_WRAPPER_PADDING, ";overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;@media not ( prefers-reduced-motion ){transition:inherit;transform-origin:inherit;&[data-side='bottom'],&[data-side='top']{transform:scaleY(\n\t\t\t\tcalc(\n\t\t\t\t\t1 / ", styles_ANIMATION_PARAMS.SCALE_AMOUNT_OUTER, " *\n\t\t\t\t\t\t", styles_ANIMATION_PARAMS.SCALE_AMOUNT_CONTENT, "\n\t\t\t\t)\n\t\t\t);}&[data-enter][data-side='bottom'],&[data-enter][data-side='top'],&[data-leave][data-side='bottom'],&[data-leave][data-side='top']{transform:scaleY( 1 );}}" + ( true ? "" : 0));
 72934     opacity: 1,
 70196 const baseItem = /*#__PURE__*/emotion_react_browser_esm_css("all:unset;position:relative;min-height:", space(10), ";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:", GRID_TEMPLATE_COLS, ";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:", font('default.fontSize'), ";font-family:inherit;font-weight:normal;line-height:20px;color:", COLORS.theme.foreground, ";border-radius:", config_values.radiusSmall, ";padding-block:", ITEM_PADDING_BLOCK, ";padding-inline:", ITEM_PADDING_INLINE, ";scroll-margin:", CONTENT_WRAPPER_PADDING, ";user-select:none;outline:none;&[aria-disabled='true']{color:", COLORS.ui.textDisabled, ";cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(\n\t\t\t[aria-disabled='true']\n\t\t){background-color:", COLORS.theme.accent, ";color:", COLORS.theme.accentInverted, ";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ", COLORS.theme.accent, ";outline:2px solid transparent;}&:active,&[data-active]{}", PopoverInnerWrapper, ":not(:focus) &:not(:focus)[aria-expanded=\"true\"]{background-color:", LIGHT_BACKGROUND_COLOR, ";color:", COLORS.theme.foreground, ";}svg{fill:currentColor;}" + ( true ? "" : 0),  true ? "" : 0);
 72935     transform: 'translateY(0)'
 70197 const styles_Item = /*#__PURE__*/emotion_styled_base_browser_esm(MVIULMNR_MenuItem,  true ? {
 72936   }
 70198   target: "e1wg7tti12"
 72937 });
       
 72938 const slideRightAndFade = emotion_react_browser_esm_keyframes({
       
 72939   '0%': {
       
 72940     opacity: 0,
       
 72941     transform: `translateX(-${ANIMATION_PARAMS.SLIDE_AMOUNT})`
       
 72942   },
       
 72943   '100%': {
       
 72944     opacity: 1,
       
 72945     transform: 'translateX(0)'
       
 72946   }
       
 72947 });
       
 72948 const slideDownAndFade = emotion_react_browser_esm_keyframes({
       
 72949   '0%': {
       
 72950     opacity: 0,
       
 72951     transform: `translateY(-${ANIMATION_PARAMS.SLIDE_AMOUNT})`
       
 72952   },
       
 72953   '100%': {
       
 72954     opacity: 1,
       
 72955     transform: 'translateY(0)'
       
 72956   }
       
 72957 });
       
 72958 const slideLeftAndFade = emotion_react_browser_esm_keyframes({
       
 72959   '0%': {
       
 72960     opacity: 0,
       
 72961     transform: `translateX(${ANIMATION_PARAMS.SLIDE_AMOUNT})`
       
 72962   },
       
 72963   '100%': {
       
 72964     opacity: 1,
       
 72965     transform: 'translateX(0)'
       
 72966   }
       
 72967 });
       
 72968 const dropdown_menu_v2_styles_DropdownMenu = /*#__PURE__*/emotion_styled_base_browser_esm(Menu,  true ? {
       
 72969   target: "e1kdzosf12"
       
 72970 } : 0)("position:relative;z-index:1000000;display:grid;grid-template-columns:", GRID_TEMPLATE_COLS, ";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:", CONTENT_WRAPPER_PADDING, ";background-color:", COLORS.ui.background, ";border-radius:4px;", props => /*#__PURE__*/emotion_react_browser_esm_css("box-shadow:", props.variant === 'toolbar' ? TOOLBAR_VARIANT_BOX_SHADOW : DEFAULT_BOX_SHADOW, ";" + ( true ? "" : 0),  true ? "" : 0), " overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;animation-duration:", ANIMATION_PARAMS.DURATION, ";animation-timing-function:", ANIMATION_PARAMS.EASING, ";will-change:transform,opacity;animation-name:", slideDownAndFade, ";&[data-side='right']{animation-name:", slideLeftAndFade, ";}&[data-side='bottom']{animation-name:", slideUpAndFade, ";}&[data-side='left']{animation-name:", slideRightAndFade, ";}@media ( prefers-reduced-motion ){animation-duration:0s;}" + ( true ? "" : 0));
       
 72971 const baseItem = /*#__PURE__*/emotion_react_browser_esm_css("all:unset;position:relative;min-height:", space(10), ";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:", GRID_TEMPLATE_COLS, ";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:", font('default.fontSize'), ";font-family:inherit;font-weight:normal;line-height:20px;color:", COLORS.gray[900], ";border-radius:", config_values.radiusBlockUi, ";padding-block:", ITEM_PADDING_BLOCK, ";padding-inline:", ITEM_PADDING_INLINE, ";scroll-margin:", CONTENT_WRAPPER_PADDING, ";user-select:none;outline:none;&[aria-disabled='true']{color:", COLORS.ui.textDisabled, ";cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(\n\t\t\t[aria-disabled='true']\n\t\t){background-color:", COLORS.theme.accent, ";color:", COLORS.white, ";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ", COLORS.theme.accent, ";outline:2px solid transparent;}&:active,&[data-active]{}", dropdown_menu_v2_styles_DropdownMenu, ":not(:focus) &:not(:focus)[aria-expanded=\"true\"]{background-color:", COLORS.gray[100], ";color:", COLORS.gray[900], ";}svg{fill:currentColor;}" + ( true ? "" : 0),  true ? "" : 0);
       
 72972 const styles_DropdownMenuItem = /*#__PURE__*/emotion_styled_base_browser_esm(Y6467XPW_MenuItem,  true ? {
       
 72973   target: "e1kdzosf11"
       
 72974 } : 0)(baseItem, ";" + ( true ? "" : 0));
 70199 } : 0)(baseItem, ";" + ( true ? "" : 0));
 72975 const styles_DropdownMenuCheckboxItem = /*#__PURE__*/emotion_styled_base_browser_esm(MenuItemCheckbox,  true ? {
 70200 const styles_CheckboxItem = /*#__PURE__*/emotion_styled_base_browser_esm(MenuItemCheckbox,  true ? {
 72976   target: "e1kdzosf10"
 70201   target: "e1wg7tti11"
 72977 } : 0)(baseItem, ";" + ( true ? "" : 0));
 70202 } : 0)(baseItem, ";" + ( true ? "" : 0));
 72978 const styles_DropdownMenuRadioItem = /*#__PURE__*/emotion_styled_base_browser_esm(MenuItemRadio,  true ? {
 70203 const styles_RadioItem = /*#__PURE__*/emotion_styled_base_browser_esm(MenuItemRadio,  true ? {
 72979   target: "e1kdzosf9"
 70204   target: "e1wg7tti10"
 72980 } : 0)(baseItem, ";" + ( true ? "" : 0));
 70205 } : 0)(baseItem, ";" + ( true ? "" : 0));
 72981 const ItemPrefixWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 70206 const ItemPrefixWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 72982   target: "e1kdzosf8"
 70207   target: "e1wg7tti9"
 72983 } : 0)("grid-column:1;", styles_DropdownMenuCheckboxItem, ">&,", styles_DropdownMenuRadioItem, ">&{min-width:", space(6), ";}", styles_DropdownMenuCheckboxItem, ">&,", styles_DropdownMenuRadioItem, ">&,&:not( :empty ){margin-inline-end:", space(2), ";}display:flex;align-items:center;justify-content:center;color:", COLORS.gray['700'], ";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}" + ( true ? "" : 0));
 70208 } : 0)("grid-column:1;", styles_CheckboxItem, ">&,", styles_RadioItem, ">&{min-width:", space(6), ";}", styles_CheckboxItem, ">&,", styles_RadioItem, ">&,&:not( :empty ){margin-inline-end:", space(2), ";}display:flex;align-items:center;justify-content:center;color:", LIGHTER_TEXT_COLOR, ";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}" + ( true ? "" : 0));
 72984 const DropdownMenuItemContentWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 70209 const ItemContentWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 72985   target: "e1kdzosf7"
 70210   target: "e1wg7tti8"
 72986 } : 0)("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:", space(3), ";pointer-events:none;" + ( true ? "" : 0));
 70211 } : 0)("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:", space(3), ";pointer-events:none;" + ( true ? "" : 0));
 72987 const DropdownMenuItemChildrenWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 70212 const ItemChildrenWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 72988   target: "e1kdzosf6"
 70213   target: "e1wg7tti7"
 72989 } : 0)("flex:1;display:inline-flex;flex-direction:column;gap:", space(1), ";" + ( true ? "" : 0));
 70214 } : 0)("flex:1;display:inline-flex;flex-direction:column;gap:", space(1), ";" + ( true ? "" : 0));
 72990 const ItemSuffixWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 70215 const ItemSuffixWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 72991   target: "e1kdzosf5"
 70216   target: "e1wg7tti6"
 72992 } : 0)("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:", space(3), ";color:", COLORS.gray['700'], ";[data-active-item]:not( [data-focus-visible] ) *:not(", dropdown_menu_v2_styles_DropdownMenu, ") &,[aria-disabled='true'] *:not(", dropdown_menu_v2_styles_DropdownMenu, ") &{color:inherit;}" + ( true ? "" : 0));
 70217 } : 0)("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:", space(3), ";color:", LIGHTER_TEXT_COLOR, ";[data-active-item]:not( [data-focus-visible] ) *:not(", PopoverInnerWrapper, ") &,[aria-disabled='true'] *:not(", PopoverInnerWrapper, ") &{color:inherit;}" + ( true ? "" : 0));
 72993 const styles_DropdownMenuGroup = /*#__PURE__*/emotion_styled_base_browser_esm(menu_group_MenuGroup,  true ? {
 70218 const styles_Group = /*#__PURE__*/emotion_styled_base_browser_esm(menu_group_MenuGroup,  true ? {
 72994   target: "e1kdzosf4"
 70219   target: "e1wg7tti5"
 72995 } : 0)( true ? {
 70220 } : 0)( true ? {
 72996   name: "49aokf",
 70221   name: "49aokf",
 72997   styles: "display:contents"
 70222   styles: "display:contents"
 72998 } : 0);
 70223 } : 0);
 72999 const styles_DropdownMenuSeparator = /*#__PURE__*/emotion_styled_base_browser_esm(MenuSeparator,  true ? {
 70224 const styles_GroupLabel = /*#__PURE__*/emotion_styled_base_browser_esm(MenuGroupLabel,  true ? {
 73000   target: "e1kdzosf3"
 70225   target: "e1wg7tti4"
       
 70226 } : 0)("grid-column:1/-1;padding-block-start:", space(3), ";padding-block-end:", space(2), ";padding-inline:", ITEM_PADDING_INLINE, ";" + ( true ? "" : 0));
       
 70227 const styles_Separator = /*#__PURE__*/emotion_styled_base_browser_esm(MenuSeparator,  true ? {
       
 70228   target: "e1wg7tti3"
 73001 } : 0)("grid-column:1/-1;border:none;height:", config_values.borderWidth, ";background-color:", props => props.variant === 'toolbar' ? TOOLBAR_VARIANT_BORDER_COLOR : DIVIDER_COLOR, ";margin-block:", space(2), ";margin-inline:", ITEM_PADDING_INLINE, ";outline:2px solid transparent;" + ( true ? "" : 0));
 70229 } : 0)("grid-column:1/-1;border:none;height:", config_values.borderWidth, ";background-color:", props => props.variant === 'toolbar' ? TOOLBAR_VARIANT_BORDER_COLOR : DIVIDER_COLOR, ";margin-block:", space(2), ";margin-inline:", ITEM_PADDING_INLINE, ";outline:2px solid transparent;" + ( true ? "" : 0));
 73002 const SubmenuChevronIcon = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_icon,  true ? {
 70230 const SubmenuChevronIcon = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_icon,  true ? {
 73003   target: "e1kdzosf2"
 70231   target: "e1wg7tti2"
 73004 } : 0)("width:", space(1.5), ";", rtl({
 70232 } : 0)("width:", space(1.5), ";", rtl({
 73005   transform: `scaleX(1)`
 70233   transform: `scaleX(1)`
 73006 }, {
 70234 }, {
 73007   transform: `scaleX(-1)`
 70235   transform: `scaleX(-1)`
 73008 }), ";" + ( true ? "" : 0));
 70236 }), ";" + ( true ? "" : 0));
 73009 const styles_DropdownMenuItemLabel = /*#__PURE__*/emotion_styled_base_browser_esm(truncate_component,  true ? {
 70237 const styles_ItemLabel = /*#__PURE__*/emotion_styled_base_browser_esm(truncate_component,  true ? {
 73010   target: "e1kdzosf1"
 70238   target: "e1wg7tti1"
 73011 } : 0)("font-size:", font('default.fontSize'), ";line-height:20px;color:inherit;" + ( true ? "" : 0));
 70239 } : 0)("font-size:", font('default.fontSize'), ";line-height:20px;color:inherit;" + ( true ? "" : 0));
 73012 const styles_DropdownMenuItemHelpText = /*#__PURE__*/emotion_styled_base_browser_esm(truncate_component,  true ? {
 70240 const styles_ItemHelpText = /*#__PURE__*/emotion_styled_base_browser_esm(truncate_component,  true ? {
 73013   target: "e1kdzosf0"
 70241   target: "e1wg7tti0"
 73014 } : 0)("font-size:", font('helpText.fontSize'), ";line-height:16px;color:", COLORS.gray['700'], ";[data-active-item]:not( [data-focus-visible] ) *:not( ", dropdown_menu_v2_styles_DropdownMenu, " ) &,[aria-disabled='true'] *:not( ", dropdown_menu_v2_styles_DropdownMenu, " ) &{color:inherit;}" + ( true ? "" : 0));
 70242 } : 0)("font-size:", font('helpText.fontSize'), ";line-height:16px;color:", LIGHTER_TEXT_COLOR, ";overflow-wrap:anywhere;[data-active-item]:not( [data-focus-visible] ) *:not( ", PopoverInnerWrapper, " ) &,[aria-disabled='true'] *:not( ", PopoverInnerWrapper, " ) &{color:inherit;}" + ( true ? "" : 0));
 73015 
 70243 
 73016 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown-menu-v2/index.js
 70244 ;// ./node_modules/@wordpress/components/build-module/menu/item.js
 73017 /**
       
 73018  * External dependencies
       
 73019  */
       
 73020 // eslint-disable-next-line no-restricted-imports
       
 73021 
       
 73022 
       
 73023 /**
 70245 /**
 73024  * WordPress dependencies
 70246  * WordPress dependencies
 73025  */
 70247  */
 73026 
 70248 
 73027 
 70249 
 73028 
       
 73029 
       
 73030 
       
 73031 /**
 70250 /**
 73032  * Internal dependencies
 70251  * Internal dependencies
 73033  */
 70252  */
 73034 
 70253 
 73035 
 70254 
 73036 
 70255 
 73037 
 70256 
 73038 
 70257 const item_Item = (0,external_wp_element_namespaceObject.forwardRef)(function Item({
 73039 
       
 73040 const DropdownMenuContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
       
 73041 const DropdownMenuItem = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuItem({
       
 73042   prefix,
 70258   prefix,
 73043   suffix,
 70259   suffix,
 73044   children,
 70260   children,
       
 70261   disabled = false,
 73045   hideOnClick = true,
 70262   hideOnClick = true,
       
 70263   store,
 73046   ...props
 70264   ...props
 73047 }, ref) {
 70265 }, ref) {
 73048   const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
 70266   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
 73049   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_DropdownMenuItem, {
 70267   if (!menuContext?.store) {
       
 70268     throw new Error('Menu.Item can only be rendered inside a Menu component');
       
 70269   }
       
 70270 
       
 70271   // In most cases, the menu store will be retrieved from context (ie. the store
       
 70272   // created by the top-level menu component). But in rare cases (ie.
       
 70273   // `Menu.SubmenuTriggerItem`), the context store wouldn't be correct. This is
       
 70274   // why the component accepts a `store` prop to override the context store.
       
 70275   const computedStore = store !== null && store !== void 0 ? store : menuContext.store;
       
 70276   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Item, {
 73050     ref: ref,
 70277     ref: ref,
 73051     ...props,
 70278     ...props,
 73052     accessibleWhenDisabled: true,
 70279     accessibleWhenDisabled: true,
       
 70280     disabled: disabled,
 73053     hideOnClick: hideOnClick,
 70281     hideOnClick: hideOnClick,
 73054     store: dropdownMenuContext?.store,
 70282     store: computedStore,
 73055     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {
 70283     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {
 73056       children: prefix
 70284       children: prefix
 73057     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(DropdownMenuItemContentWrapper, {
 70285     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ItemContentWrapper, {
 73058       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemChildrenWrapper, {
 70286       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemChildrenWrapper, {
 73059         children: children
 70287         children: children
 73060       }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
 70288       }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
 73061         children: suffix
 70289         children: suffix
 73062       })]
 70290       })]
 73063     })]
 70291     })]
 73064   });
 70292   });
 73065 });
 70293 });
 73066 const DropdownMenuCheckboxItem = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuCheckboxItem({
 70294 
       
 70295 ;// ./node_modules/@ariakit/react-core/esm/menu/menu-item-check.js
       
 70296 "use client";
       
 70297 
       
 70298 
       
 70299 
       
 70300 
       
 70301 
       
 70302 
       
 70303 
       
 70304 
       
 70305 
       
 70306 
       
 70307 
       
 70308 
       
 70309 
       
 70310 
       
 70311 
       
 70312 // src/menu/menu-item-check.tsx
       
 70313 
       
 70314 var menu_item_check_TagName = "span";
       
 70315 var useMenuItemCheck = createHook(
       
 70316   function useMenuItemCheck2(_a) {
       
 70317     var _b = _a, { store, checked } = _b, props = __objRest(_b, ["store", "checked"]);
       
 70318     const context = (0,external_React_.useContext)(MenuItemCheckedContext);
       
 70319     checked = checked != null ? checked : context;
       
 70320     props = useCheckboxCheck(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), { checked }));
       
 70321     return props;
       
 70322   }
       
 70323 );
       
 70324 var MenuItemCheck = forwardRef2(function MenuItemCheck2(props) {
       
 70325   const htmlProps = useMenuItemCheck(props);
       
 70326   return LMDWO4NN_createElement(menu_item_check_TagName, htmlProps);
       
 70327 });
       
 70328 
       
 70329 
       
 70330 ;// ./node_modules/@wordpress/components/build-module/menu/checkbox-item.js
       
 70331 /**
       
 70332  * External dependencies
       
 70333  */
       
 70334 
       
 70335 
       
 70336 /**
       
 70337  * WordPress dependencies
       
 70338  */
       
 70339 
       
 70340 
       
 70341 
       
 70342 /**
       
 70343  * Internal dependencies
       
 70344  */
       
 70345 
       
 70346 
       
 70347 
       
 70348 
       
 70349 const CheckboxItem = (0,external_wp_element_namespaceObject.forwardRef)(function CheckboxItem({
 73067   suffix,
 70350   suffix,
 73068   children,
 70351   children,
       
 70352   disabled = false,
 73069   hideOnClick = false,
 70353   hideOnClick = false,
 73070   ...props
 70354   ...props
 73071 }, ref) {
 70355 }, ref) {
 73072   const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
 70356   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
 73073   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_DropdownMenuCheckboxItem, {
 70357   if (!menuContext?.store) {
       
 70358     throw new Error('Menu.CheckboxItem can only be rendered inside a Menu component');
       
 70359   }
       
 70360   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_CheckboxItem, {
 73074     ref: ref,
 70361     ref: ref,
 73075     ...props,
 70362     ...props,
 73076     accessibleWhenDisabled: true,
 70363     accessibleWhenDisabled: true,
       
 70364     disabled: disabled,
 73077     hideOnClick: hideOnClick,
 70365     hideOnClick: hideOnClick,
 73078     store: dropdownMenuContext?.store,
 70366     store: menuContext.store,
 73079     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheck, {
 70367     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheck, {
 73080       store: dropdownMenuContext?.store,
 70368       store: menuContext.store,
 73081       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {})
 70369       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {})
 73082       // Override some ariakit inline styles
 70370       // Override some ariakit inline styles
 73083       ,
 70371       ,
 73084       style: {
 70372       style: {
 73085         width: 'auto',
 70373         width: 'auto',
 73086         height: 'auto'
 70374         height: 'auto'
 73087       },
 70375       },
 73088       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
 70376       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
 73089         icon: library_check,
 70377         icon: library_check,
 73090         size: 24
 70378         size: 24
 73091       })
 70379       })
 73092     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(DropdownMenuItemContentWrapper, {
 70380     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ItemContentWrapper, {
 73093       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemChildrenWrapper, {
 70381       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemChildrenWrapper, {
 73094         children: children
 70382         children: children
 73095       }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
 70383       }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
 73096         children: suffix
 70384         children: suffix
 73097       })]
 70385       })]
 73098     })]
 70386     })]
 73099   });
 70387   });
 73100 });
 70388 });
       
 70389 
       
 70390 ;// ./node_modules/@wordpress/components/build-module/menu/radio-item.js
       
 70391 /**
       
 70392  * External dependencies
       
 70393  */
       
 70394 
       
 70395 
       
 70396 /**
       
 70397  * WordPress dependencies
       
 70398  */
       
 70399 
       
 70400 
       
 70401 
       
 70402 /**
       
 70403  * Internal dependencies
       
 70404  */
       
 70405 
       
 70406 
       
 70407 
       
 70408 
       
 70409 
 73101 const radioCheck = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
 70410 const radioCheck = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
 73102   xmlns: "http://www.w3.org/2000/svg",
 70411   xmlns: "http://www.w3.org/2000/svg",
 73103   viewBox: "0 0 24 24",
 70412   viewBox: "0 0 24 24",
 73104   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Circle, {
 70413   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Circle, {
 73105     cx: 12,
 70414     cx: 12,
 73106     cy: 12,
 70415     cy: 12,
 73107     r: 3
 70416     r: 3
 73108   })
 70417   })
 73109 });
 70418 });
 73110 const DropdownMenuRadioItem = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuRadioItem({
 70419 const RadioItem = (0,external_wp_element_namespaceObject.forwardRef)(function RadioItem({
 73111   suffix,
 70420   suffix,
 73112   children,
 70421   children,
       
 70422   disabled = false,
 73113   hideOnClick = false,
 70423   hideOnClick = false,
 73114   ...props
 70424   ...props
 73115 }, ref) {
 70425 }, ref) {
 73116   const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
 70426   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
 73117   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_DropdownMenuRadioItem, {
 70427   if (!menuContext?.store) {
       
 70428     throw new Error('Menu.RadioItem can only be rendered inside a Menu component');
       
 70429   }
       
 70430   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_RadioItem, {
 73118     ref: ref,
 70431     ref: ref,
 73119     ...props,
 70432     ...props,
 73120     accessibleWhenDisabled: true,
 70433     accessibleWhenDisabled: true,
       
 70434     disabled: disabled,
 73121     hideOnClick: hideOnClick,
 70435     hideOnClick: hideOnClick,
 73122     store: dropdownMenuContext?.store,
 70436     store: menuContext.store,
 73123     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheck, {
 70437     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuItemCheck, {
 73124       store: dropdownMenuContext?.store,
 70438       store: menuContext.store,
 73125       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {})
 70439       render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemPrefixWrapper, {})
 73126       // Override some ariakit inline styles
 70440       // Override some ariakit inline styles
 73127       ,
 70441       ,
 73128       style: {
 70442       style: {
 73129         width: 'auto',
 70443         width: 'auto',
 73130         height: 'auto'
 70444         height: 'auto'
 73131       },
 70445       },
 73132       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
 70446       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(icons_build_module_icon, {
 73133         icon: radioCheck,
 70447         icon: radioCheck,
 73134         size: 24
 70448         size: 24
 73135       })
 70449       })
 73136     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(DropdownMenuItemContentWrapper, {
 70450     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(ItemContentWrapper, {
 73137       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuItemChildrenWrapper, {
 70451       children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemChildrenWrapper, {
 73138         children: children
 70452         children: children
 73139       }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
 70453       }), suffix && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(ItemSuffixWrapper, {
 73140         children: suffix
 70454         children: suffix
 73141       })]
 70455       })]
 73142     })]
 70456     })]
 73143   });
 70457   });
 73144 });
 70458 });
 73145 const DropdownMenuGroup = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuGroup(props, ref) {
 70459 
 73146   const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
 70460 ;// ./node_modules/@wordpress/components/build-module/menu/group.js
 73147   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuGroup, {
 70461 /**
       
 70462  * WordPress dependencies
       
 70463  */
       
 70464 
       
 70465 
       
 70466 /**
       
 70467  * Internal dependencies
       
 70468  */
       
 70469 
       
 70470 
       
 70471 
       
 70472 
       
 70473 const group_Group = (0,external_wp_element_namespaceObject.forwardRef)(function Group(props, ref) {
       
 70474   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 70475   if (!menuContext?.store) {
       
 70476     throw new Error('Menu.Group can only be rendered inside a Menu component');
       
 70477   }
       
 70478   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_Group, {
 73148     ref: ref,
 70479     ref: ref,
 73149     ...props,
 70480     ...props,
 73150     store: dropdownMenuContext?.store
 70481     store: menuContext.store
 73151   });
 70482   });
 73152 });
 70483 });
 73153 const dropdown_menu_v2_UnconnectedDropdownMenu = (props, ref) => {
 70484 
 73154   var _props$placement;
 70485 ;// ./node_modules/@wordpress/components/build-module/menu/group-label.js
       
 70486 /**
       
 70487  * WordPress dependencies
       
 70488  */
       
 70489 
       
 70490 
       
 70491 /**
       
 70492  * Internal dependencies
       
 70493  */
       
 70494 
       
 70495 
       
 70496 
       
 70497 
       
 70498 
       
 70499 const group_label_GroupLabel = (0,external_wp_element_namespaceObject.forwardRef)(function Group(props, ref) {
       
 70500   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 70501   if (!menuContext?.store) {
       
 70502     throw new Error('Menu.GroupLabel can only be rendered inside a Menu component');
       
 70503   }
       
 70504   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_GroupLabel, {
       
 70505     ref: ref,
       
 70506     render:
       
 70507     /*#__PURE__*/
       
 70508     // @ts-expect-error The `children` prop is passed
       
 70509     (0,external_ReactJSXRuntime_namespaceObject.jsx)(text_component, {
       
 70510       upperCase: true,
       
 70511       variant: "muted",
       
 70512       size: "11px",
       
 70513       weight: 500,
       
 70514       lineHeight: "16px"
       
 70515     }),
       
 70516     ...props,
       
 70517     store: menuContext.store
       
 70518   });
       
 70519 });
       
 70520 
       
 70521 ;// ./node_modules/@wordpress/components/build-module/menu/separator.js
       
 70522 /**
       
 70523  * WordPress dependencies
       
 70524  */
       
 70525 
       
 70526 
       
 70527 /**
       
 70528  * Internal dependencies
       
 70529  */
       
 70530 
       
 70531 
       
 70532 
       
 70533 
       
 70534 const separator_Separator = (0,external_wp_element_namespaceObject.forwardRef)(function Separator(props, ref) {
       
 70535   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 70536   if (!menuContext?.store) {
       
 70537     throw new Error('Menu.Separator can only be rendered inside a Menu component');
       
 70538   }
       
 70539   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_Separator, {
       
 70540     ref: ref,
       
 70541     ...props,
       
 70542     store: menuContext.store,
       
 70543     variant: menuContext.variant
       
 70544   });
       
 70545 });
       
 70546 
       
 70547 ;// ./node_modules/@wordpress/components/build-module/menu/item-label.js
       
 70548 /**
       
 70549  * WordPress dependencies
       
 70550  */
       
 70551 
       
 70552 
       
 70553 /**
       
 70554  * Internal dependencies
       
 70555  */
       
 70556 
       
 70557 
       
 70558 
       
 70559 
       
 70560 const ItemLabel = (0,external_wp_element_namespaceObject.forwardRef)(function ItemLabel(props, ref) {
       
 70561   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 70562   if (!menuContext?.store) {
       
 70563     throw new Error('Menu.ItemLabel can only be rendered inside a Menu component');
       
 70564   }
       
 70565   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_ItemLabel, {
       
 70566     numberOfLines: 1,
       
 70567     ref: ref,
       
 70568     ...props
       
 70569   });
       
 70570 });
       
 70571 
       
 70572 ;// ./node_modules/@wordpress/components/build-module/menu/item-help-text.js
       
 70573 /**
       
 70574  * WordPress dependencies
       
 70575  */
       
 70576 
       
 70577 
       
 70578 /**
       
 70579  * Internal dependencies
       
 70580  */
       
 70581 
       
 70582 
       
 70583 
       
 70584 
       
 70585 const ItemHelpText = (0,external_wp_element_namespaceObject.forwardRef)(function ItemHelpText(props, ref) {
       
 70586   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 70587   if (!menuContext?.store) {
       
 70588     throw new Error('Menu.ItemHelpText can only be rendered inside a Menu component');
       
 70589   }
       
 70590   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_ItemHelpText, {
       
 70591     numberOfLines: 2,
       
 70592     ref: ref,
       
 70593     ...props
       
 70594   });
       
 70595 });
       
 70596 
       
 70597 ;// ./node_modules/@ariakit/react-core/esm/menu/menu-button.js
       
 70598 "use client";
       
 70599 
       
 70600 
       
 70601 
       
 70602 
       
 70603 
       
 70604 
       
 70605 
       
 70606 
       
 70607 
       
 70608 
       
 70609 
       
 70610 
       
 70611 
       
 70612 
       
 70613 
       
 70614 
       
 70615 
       
 70616 
       
 70617 
       
 70618 
       
 70619 
       
 70620 
       
 70621 
       
 70622 
       
 70623 
       
 70624 
       
 70625 // src/menu/menu-button.tsx
       
 70626 
       
 70627 
       
 70628 
       
 70629 
       
 70630 var menu_button_TagName = "button";
       
 70631 function getInitialFocus(event, dir) {
       
 70632   const keyMap = {
       
 70633     ArrowDown: dir === "bottom" || dir === "top" ? "first" : false,
       
 70634     ArrowUp: dir === "bottom" || dir === "top" ? "last" : false,
       
 70635     ArrowRight: dir === "right" ? "first" : false,
       
 70636     ArrowLeft: dir === "left" ? "first" : false
       
 70637   };
       
 70638   return keyMap[event.key];
       
 70639 }
       
 70640 function hasActiveItem(items, excludeElement) {
       
 70641   return !!(items == null ? void 0 : items.some((item) => {
       
 70642     if (!item.element) return false;
       
 70643     if (item.element === excludeElement) return false;
       
 70644     return item.element.getAttribute("aria-expanded") === "true";
       
 70645   }));
       
 70646 }
       
 70647 var useMenuButton = createHook(
       
 70648   function useMenuButton2(_a) {
       
 70649     var _b = _a, {
       
 70650       store,
       
 70651       focusable,
       
 70652       accessibleWhenDisabled,
       
 70653       showOnHover
       
 70654     } = _b, props = __objRest(_b, [
       
 70655       "store",
       
 70656       "focusable",
       
 70657       "accessibleWhenDisabled",
       
 70658       "showOnHover"
       
 70659     ]);
       
 70660     const context = useMenuProviderContext();
       
 70661     store = store || context;
       
 70662     invariant(
       
 70663       store,
       
 70664        false && 0
       
 70665     );
       
 70666     const ref = (0,external_React_.useRef)(null);
       
 70667     const parentMenu = store.parent;
       
 70668     const parentMenubar = store.menubar;
       
 70669     const hasParentMenu = !!parentMenu;
       
 70670     const parentIsMenubar = !!parentMenubar && !hasParentMenu;
       
 70671     const disabled = disabledFromProps(props);
       
 70672     const showMenu = () => {
       
 70673       const trigger = ref.current;
       
 70674       if (!trigger) return;
       
 70675       store == null ? void 0 : store.setDisclosureElement(trigger);
       
 70676       store == null ? void 0 : store.setAnchorElement(trigger);
       
 70677       store == null ? void 0 : store.show();
       
 70678     };
       
 70679     const onFocusProp = props.onFocus;
       
 70680     const onFocus = useEvent((event) => {
       
 70681       onFocusProp == null ? void 0 : onFocusProp(event);
       
 70682       if (disabled) return;
       
 70683       if (event.defaultPrevented) return;
       
 70684       store == null ? void 0 : store.setAutoFocusOnShow(false);
       
 70685       store == null ? void 0 : store.setActiveId(null);
       
 70686       if (!parentMenubar) return;
       
 70687       if (!parentIsMenubar) return;
       
 70688       const { items } = parentMenubar.getState();
       
 70689       if (hasActiveItem(items, event.currentTarget)) {
       
 70690         showMenu();
       
 70691       }
       
 70692     });
       
 70693     const dir = useStoreState(
       
 70694       store,
       
 70695       (state) => state.placement.split("-")[0]
       
 70696     );
       
 70697     const onKeyDownProp = props.onKeyDown;
       
 70698     const onKeyDown = useEvent((event) => {
       
 70699       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 70700       if (disabled) return;
       
 70701       if (event.defaultPrevented) return;
       
 70702       const initialFocus = getInitialFocus(event, dir);
       
 70703       if (initialFocus) {
       
 70704         event.preventDefault();
       
 70705         showMenu();
       
 70706         store == null ? void 0 : store.setAutoFocusOnShow(true);
       
 70707         store == null ? void 0 : store.setInitialFocus(initialFocus);
       
 70708       }
       
 70709     });
       
 70710     const onClickProp = props.onClick;
       
 70711     const onClick = useEvent((event) => {
       
 70712       onClickProp == null ? void 0 : onClickProp(event);
       
 70713       if (event.defaultPrevented) return;
       
 70714       if (!store) return;
       
 70715       const isKeyboardClick = !event.detail;
       
 70716       const { open } = store.getState();
       
 70717       if (!open || isKeyboardClick) {
       
 70718         if (!hasParentMenu || isKeyboardClick) {
       
 70719           store.setAutoFocusOnShow(true);
       
 70720         }
       
 70721         store.setInitialFocus(isKeyboardClick ? "first" : "container");
       
 70722       }
       
 70723       if (hasParentMenu) {
       
 70724         showMenu();
       
 70725       }
       
 70726     });
       
 70727     props = useWrapElement(
       
 70728       props,
       
 70729       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuContextProvider, { value: store, children: element }),
       
 70730       [store]
       
 70731     );
       
 70732     if (hasParentMenu) {
       
 70733       props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
 70734         render: /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(Role.div, { render: props.render })
       
 70735       });
       
 70736     }
       
 70737     const id = useId(props.id);
       
 70738     const parentContentElement = useStoreState(
       
 70739       (parentMenu == null ? void 0 : parentMenu.combobox) || parentMenu,
       
 70740       "contentElement"
       
 70741     );
       
 70742     const role = hasParentMenu || parentIsMenubar ? getPopupItemRole(parentContentElement, "menuitem") : void 0;
       
 70743     const contentElement = store.useState("contentElement");
       
 70744     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 70745       id,
       
 70746       role,
       
 70747       "aria-haspopup": getPopupRole(contentElement, "menu")
       
 70748     }, props), {
       
 70749       ref: useMergeRefs(ref, props.ref),
       
 70750       onFocus,
       
 70751       onKeyDown,
       
 70752       onClick
       
 70753     });
       
 70754     props = useHovercardAnchor(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 70755       store,
       
 70756       focusable,
       
 70757       accessibleWhenDisabled
       
 70758     }, props), {
       
 70759       showOnHover: (event) => {
       
 70760         const getShowOnHover = () => {
       
 70761           if (typeof showOnHover === "function") return showOnHover(event);
       
 70762           if (showOnHover != null) return showOnHover;
       
 70763           if (hasParentMenu) return true;
       
 70764           if (!parentMenubar) return false;
       
 70765           const { items } = parentMenubar.getState();
       
 70766           return parentIsMenubar && hasActiveItem(items);
       
 70767         };
       
 70768         const canShowOnHover = getShowOnHover();
       
 70769         if (!canShowOnHover) return false;
       
 70770         const parent = parentIsMenubar ? parentMenubar : parentMenu;
       
 70771         if (!parent) return true;
       
 70772         parent.setActiveId(event.currentTarget.id);
       
 70773         return true;
       
 70774       }
       
 70775     }));
       
 70776     props = usePopoverDisclosure(_3YLGPPWQ_spreadValues({
       
 70777       store,
       
 70778       toggleOnClick: !hasParentMenu,
       
 70779       focusable,
       
 70780       accessibleWhenDisabled
       
 70781     }, props));
       
 70782     props = useCompositeTypeahead(_3YLGPPWQ_spreadValues({
       
 70783       store,
       
 70784       typeahead: parentIsMenubar
       
 70785     }, props));
       
 70786     return props;
       
 70787   }
       
 70788 );
       
 70789 var MenuButton = forwardRef2(function MenuButton2(props) {
       
 70790   const htmlProps = useMenuButton(props);
       
 70791   return LMDWO4NN_createElement(menu_button_TagName, htmlProps);
       
 70792 });
       
 70793 
       
 70794 
       
 70795 ;// ./node_modules/@wordpress/components/build-module/menu/trigger-button.js
       
 70796 /**
       
 70797  * External dependencies
       
 70798  */
       
 70799 
       
 70800 
       
 70801 /**
       
 70802  * WordPress dependencies
       
 70803  */
       
 70804 
       
 70805 
       
 70806 /**
       
 70807  * Internal dependencies
       
 70808  */
       
 70809 
       
 70810 
       
 70811 
       
 70812 const TriggerButton = (0,external_wp_element_namespaceObject.forwardRef)(function TriggerButton({
       
 70813   children,
       
 70814   disabled = false,
       
 70815   ...props
       
 70816 }, ref) {
       
 70817   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 70818   if (!menuContext?.store) {
       
 70819     throw new Error('Menu.TriggerButton can only be rendered inside a Menu component');
       
 70820   }
       
 70821   if (menuContext.store.parent) {
       
 70822     throw new Error('Menu.TriggerButton should not be rendered inside a nested Menu component. Use Menu.SubmenuTriggerItem instead.');
       
 70823   }
       
 70824   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuButton, {
       
 70825     ref: ref,
       
 70826     ...props,
       
 70827     disabled: disabled,
       
 70828     store: menuContext.store,
       
 70829     children: children
       
 70830   });
       
 70831 });
       
 70832 
       
 70833 ;// ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js
       
 70834 /**
       
 70835  * WordPress dependencies
       
 70836  */
       
 70837 
       
 70838 
       
 70839 const chevronRightSmall = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 70840   xmlns: "http://www.w3.org/2000/svg",
       
 70841   viewBox: "0 0 24 24",
       
 70842   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 70843     d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
       
 70844   })
       
 70845 });
       
 70846 /* harmony default export */ const chevron_right_small = (chevronRightSmall);
       
 70847 
       
 70848 ;// ./node_modules/@wordpress/components/build-module/menu/submenu-trigger-item.js
       
 70849 /**
       
 70850  * External dependencies
       
 70851  */
       
 70852 
       
 70853 
       
 70854 /**
       
 70855  * WordPress dependencies
       
 70856  */
       
 70857 
       
 70858 
       
 70859 
       
 70860 /**
       
 70861  * Internal dependencies
       
 70862  */
       
 70863 
       
 70864 
       
 70865 
       
 70866 
       
 70867 
       
 70868 const SubmenuTriggerItem = (0,external_wp_element_namespaceObject.forwardRef)(function SubmenuTriggerItem({
       
 70869   suffix,
       
 70870   ...otherProps
       
 70871 }, ref) {
       
 70872   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 70873   if (!menuContext?.store.parent) {
       
 70874     throw new Error('Menu.SubmenuTriggerItem can only be rendered inside a nested Menu component');
       
 70875   }
       
 70876   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuButton, {
       
 70877     ref: ref,
       
 70878     accessibleWhenDisabled: true,
       
 70879     store: menuContext.store,
       
 70880     render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(item_Item, {
       
 70881       ...otherProps,
       
 70882       // The menu item needs to register and be part of the parent menu.
       
 70883       // Without specifying the store explicitly, the `Item` component
       
 70884       // would otherwise read the store via context and pick up the one from
       
 70885       // the sub-menu `Menu` component.
       
 70886       store: menuContext.store.parent,
       
 70887       suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 70888         children: [suffix, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SubmenuChevronIcon, {
       
 70889           "aria-hidden": "true",
       
 70890           icon: chevron_right_small,
       
 70891           size: 24,
       
 70892           preserveAspectRatio: "xMidYMid slice"
       
 70893         })]
       
 70894       })
       
 70895     })
       
 70896   });
       
 70897 });
       
 70898 
       
 70899 ;// ./node_modules/@ariakit/react-core/esm/__chunks/ASGALOAX.js
       
 70900 "use client";
       
 70901 
       
 70902 
       
 70903 
       
 70904 
       
 70905 
       
 70906 
       
 70907 
       
 70908 
       
 70909 
       
 70910 // src/menu/menu-list.tsx
       
 70911 
       
 70912 
       
 70913 
       
 70914 var ASGALOAX_TagName = "div";
       
 70915 function useAriaLabelledBy(_a) {
       
 70916   var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
       
 70917   const [id, setId] = (0,external_React_.useState)(void 0);
       
 70918   const label = props["aria-label"];
       
 70919   const disclosureElement = useStoreState(store, "disclosureElement");
       
 70920   const contentElement = useStoreState(store, "contentElement");
       
 70921   (0,external_React_.useEffect)(() => {
       
 70922     const disclosure = disclosureElement;
       
 70923     if (!disclosure) return;
       
 70924     const menu = contentElement;
       
 70925     if (!menu) return;
       
 70926     const menuLabel = label || menu.hasAttribute("aria-label");
       
 70927     if (menuLabel) {
       
 70928       setId(void 0);
       
 70929     } else if (disclosure.id) {
       
 70930       setId(disclosure.id);
       
 70931     }
       
 70932   }, [label, disclosureElement, contentElement]);
       
 70933   return id;
       
 70934 }
       
 70935 var useMenuList = createHook(
       
 70936   function useMenuList2(_a) {
       
 70937     var _b = _a, { store, alwaysVisible, composite } = _b, props = __objRest(_b, ["store", "alwaysVisible", "composite"]);
       
 70938     const context = useMenuProviderContext();
       
 70939     store = store || context;
       
 70940     invariant(
       
 70941       store,
       
 70942        false && 0
       
 70943     );
       
 70944     const parentMenu = store.parent;
       
 70945     const parentMenubar = store.menubar;
       
 70946     const hasParentMenu = !!parentMenu;
       
 70947     const id = useId(props.id);
       
 70948     const onKeyDownProp = props.onKeyDown;
       
 70949     const dir = store.useState(
       
 70950       (state) => state.placement.split("-")[0]
       
 70951     );
       
 70952     const orientation = store.useState(
       
 70953       (state) => state.orientation === "both" ? void 0 : state.orientation
       
 70954     );
       
 70955     const isHorizontal = orientation !== "vertical";
       
 70956     const isMenubarHorizontal = useStoreState(
       
 70957       parentMenubar,
       
 70958       (state) => !!state && state.orientation !== "vertical"
       
 70959     );
       
 70960     const onKeyDown = useEvent((event) => {
       
 70961       onKeyDownProp == null ? void 0 : onKeyDownProp(event);
       
 70962       if (event.defaultPrevented) return;
       
 70963       if (hasParentMenu || parentMenubar && !isHorizontal) {
       
 70964         const hideMap = {
       
 70965           ArrowRight: () => dir === "left" && !isHorizontal,
       
 70966           ArrowLeft: () => dir === "right" && !isHorizontal,
       
 70967           ArrowUp: () => dir === "bottom" && isHorizontal,
       
 70968           ArrowDown: () => dir === "top" && isHorizontal
       
 70969         };
       
 70970         const action = hideMap[event.key];
       
 70971         if (action == null ? void 0 : action()) {
       
 70972           event.stopPropagation();
       
 70973           event.preventDefault();
       
 70974           return store == null ? void 0 : store.hide();
       
 70975         }
       
 70976       }
       
 70977       if (parentMenubar) {
       
 70978         const keyMap = {
       
 70979           ArrowRight: () => {
       
 70980             if (!isMenubarHorizontal) return;
       
 70981             return parentMenubar.next();
       
 70982           },
       
 70983           ArrowLeft: () => {
       
 70984             if (!isMenubarHorizontal) return;
       
 70985             return parentMenubar.previous();
       
 70986           },
       
 70987           ArrowDown: () => {
       
 70988             if (isMenubarHorizontal) return;
       
 70989             return parentMenubar.next();
       
 70990           },
       
 70991           ArrowUp: () => {
       
 70992             if (isMenubarHorizontal) return;
       
 70993             return parentMenubar.previous();
       
 70994           }
       
 70995         };
       
 70996         const action = keyMap[event.key];
       
 70997         const id2 = action == null ? void 0 : action();
       
 70998         if (id2 !== void 0) {
       
 70999           event.stopPropagation();
       
 71000           event.preventDefault();
       
 71001           parentMenubar.move(id2);
       
 71002         }
       
 71003       }
       
 71004     });
       
 71005     props = useWrapElement(
       
 71006       props,
       
 71007       (element) => /* @__PURE__ */ (0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuScopedContextProvider, { value: store, children: element }),
       
 71008       [store]
       
 71009     );
       
 71010     const ariaLabelledBy = useAriaLabelledBy(_3YLGPPWQ_spreadValues({ store }, props));
       
 71011     const mounted = store.useState("mounted");
       
 71012     const hidden = isHidden(mounted, props.hidden, alwaysVisible);
       
 71013     const style = hidden ? _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props.style), { display: "none" }) : props.style;
       
 71014     props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 71015       id,
       
 71016       "aria-labelledby": ariaLabelledBy,
       
 71017       hidden
       
 71018     }, props), {
       
 71019       ref: useMergeRefs(id ? store.setContentElement : null, props.ref),
       
 71020       style,
       
 71021       onKeyDown
       
 71022     });
       
 71023     const hasCombobox = !!store.combobox;
       
 71024     composite = composite != null ? composite : !hasCombobox;
       
 71025     if (composite) {
       
 71026       props = _3YLGPPWQ_spreadValues({
       
 71027         role: "menu",
       
 71028         "aria-orientation": orientation
       
 71029       }, props);
       
 71030     }
       
 71031     props = useComposite(_3YLGPPWQ_spreadValues({ store, composite }, props));
       
 71032     props = useCompositeTypeahead(_3YLGPPWQ_spreadValues({ store, typeahead: !hasCombobox }, props));
       
 71033     return props;
       
 71034   }
       
 71035 );
       
 71036 var MenuList = forwardRef2(function MenuList2(props) {
       
 71037   const htmlProps = useMenuList(props);
       
 71038   return LMDWO4NN_createElement(ASGALOAX_TagName, htmlProps);
       
 71039 });
       
 71040 
       
 71041 
       
 71042 
       
 71043 ;// ./node_modules/@ariakit/react-core/esm/menu/menu.js
       
 71044 "use client";
       
 71045 
       
 71046 
       
 71047 
       
 71048 
       
 71049 
       
 71050 
       
 71051 
       
 71052 
       
 71053 
       
 71054 
       
 71055 
       
 71056 
       
 71057 
       
 71058 
       
 71059 
       
 71060 
       
 71061 
       
 71062 
       
 71063 
       
 71064 
       
 71065 
       
 71066 
       
 71067 
       
 71068 
       
 71069 
       
 71070 
       
 71071 
       
 71072 
       
 71073 
       
 71074 
       
 71075 
       
 71076 
       
 71077 
       
 71078 
       
 71079 
       
 71080 
       
 71081 
       
 71082 
       
 71083 
       
 71084 
       
 71085 
       
 71086 
       
 71087 
       
 71088 
       
 71089 
       
 71090 
       
 71091 
       
 71092 
       
 71093 
       
 71094 
       
 71095 // src/menu/menu.tsx
       
 71096 
       
 71097 
       
 71098 
       
 71099 
       
 71100 var menu_TagName = "div";
       
 71101 var useMenu = createHook(function useMenu2(_a) {
       
 71102   var _b = _a, {
       
 71103     store,
       
 71104     modal: modalProp = false,
       
 71105     portal = !!modalProp,
       
 71106     hideOnEscape = true,
       
 71107     autoFocusOnShow = true,
       
 71108     hideOnHoverOutside,
       
 71109     alwaysVisible
       
 71110   } = _b, props = __objRest(_b, [
       
 71111     "store",
       
 71112     "modal",
       
 71113     "portal",
       
 71114     "hideOnEscape",
       
 71115     "autoFocusOnShow",
       
 71116     "hideOnHoverOutside",
       
 71117     "alwaysVisible"
       
 71118   ]);
       
 71119   const context = useMenuProviderContext();
       
 71120   store = store || context;
       
 71121   invariant(
       
 71122     store,
       
 71123      false && 0
       
 71124   );
       
 71125   const ref = (0,external_React_.useRef)(null);
       
 71126   const parentMenu = store.parent;
       
 71127   const parentMenubar = store.menubar;
       
 71128   const hasParentMenu = !!parentMenu;
       
 71129   const parentIsMenubar = !!parentMenubar && !hasParentMenu;
       
 71130   props = _3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({}, props), {
       
 71131     ref: useMergeRefs(ref, props.ref)
       
 71132   });
       
 71133   const _a2 = useMenuList(_3YLGPPWQ_spreadValues({
       
 71134     store,
       
 71135     alwaysVisible
       
 71136   }, props)), { "aria-labelledby": ariaLabelledBy } = _a2, menuListProps = __objRest(_a2, ["aria-labelledby"]);
       
 71137   props = menuListProps;
       
 71138   const [initialFocusRef, setInitialFocusRef] = (0,external_React_.useState)();
       
 71139   const autoFocusOnShowState = store.useState("autoFocusOnShow");
       
 71140   const initialFocus = store.useState("initialFocus");
       
 71141   const baseElement = store.useState("baseElement");
       
 71142   const items = store.useState("renderedItems");
       
 71143   (0,external_React_.useEffect)(() => {
       
 71144     let cleaning = false;
       
 71145     setInitialFocusRef((prevInitialFocusRef) => {
       
 71146       var _a3, _b2, _c;
       
 71147       if (cleaning) return;
       
 71148       if (!autoFocusOnShowState) return;
       
 71149       if ((_a3 = prevInitialFocusRef == null ? void 0 : prevInitialFocusRef.current) == null ? void 0 : _a3.isConnected) return prevInitialFocusRef;
       
 71150       const ref2 = (0,external_React_.createRef)();
       
 71151       switch (initialFocus) {
       
 71152         case "first":
       
 71153           ref2.current = ((_b2 = items.find((item) => !item.disabled && item.element)) == null ? void 0 : _b2.element) || null;
       
 71154           break;
       
 71155         case "last":
       
 71156           ref2.current = ((_c = [...items].reverse().find((item) => !item.disabled && item.element)) == null ? void 0 : _c.element) || null;
       
 71157           break;
       
 71158         default:
       
 71159           ref2.current = baseElement;
       
 71160       }
       
 71161       return ref2;
       
 71162     });
       
 71163     return () => {
       
 71164       cleaning = true;
       
 71165     };
       
 71166   }, [store, autoFocusOnShowState, initialFocus, items, baseElement]);
       
 71167   const modal = hasParentMenu ? false : modalProp;
       
 71168   const mayAutoFocusOnShow = !!autoFocusOnShow;
       
 71169   const canAutoFocusOnShow = !!initialFocusRef || !!props.initialFocus || !!modal;
       
 71170   const contentElement = useStoreState(
       
 71171     store.combobox || store,
       
 71172     "contentElement"
       
 71173   );
       
 71174   const parentContentElement = useStoreState(
       
 71175     (parentMenu == null ? void 0 : parentMenu.combobox) || parentMenu,
       
 71176     "contentElement"
       
 71177   );
       
 71178   const preserveTabOrderAnchor = (0,external_React_.useMemo)(() => {
       
 71179     if (!parentContentElement) return;
       
 71180     if (!contentElement) return;
       
 71181     const role = contentElement.getAttribute("role");
       
 71182     const parentRole = parentContentElement.getAttribute("role");
       
 71183     const parentIsMenuOrMenubar = parentRole === "menu" || parentRole === "menubar";
       
 71184     if (parentIsMenuOrMenubar && role === "menu") return;
       
 71185     return parentContentElement;
       
 71186   }, [contentElement, parentContentElement]);
       
 71187   if (preserveTabOrderAnchor !== void 0) {
       
 71188     props = _3YLGPPWQ_spreadValues({
       
 71189       preserveTabOrderAnchor
       
 71190     }, props);
       
 71191   }
       
 71192   props = useHovercard(_3YLGPPWQ_spreadProps(_3YLGPPWQ_spreadValues({
       
 71193     store,
       
 71194     alwaysVisible,
       
 71195     initialFocus: initialFocusRef,
       
 71196     autoFocusOnShow: mayAutoFocusOnShow ? canAutoFocusOnShow && autoFocusOnShow : autoFocusOnShowState || !!modal
       
 71197   }, props), {
       
 71198     hideOnEscape(event) {
       
 71199       if (isFalsyBooleanCallback(hideOnEscape, event)) return false;
       
 71200       store == null ? void 0 : store.hideAll();
       
 71201       return true;
       
 71202     },
       
 71203     hideOnHoverOutside(event) {
       
 71204       const disclosureElement = store == null ? void 0 : store.getState().disclosureElement;
       
 71205       const getHideOnHoverOutside = () => {
       
 71206         if (typeof hideOnHoverOutside === "function") {
       
 71207           return hideOnHoverOutside(event);
       
 71208         }
       
 71209         if (hideOnHoverOutside != null) return hideOnHoverOutside;
       
 71210         if (hasParentMenu) return true;
       
 71211         if (!parentIsMenubar) return false;
       
 71212         if (!disclosureElement) return true;
       
 71213         if (hasFocusWithin(disclosureElement)) return false;
       
 71214         return true;
       
 71215       };
       
 71216       if (!getHideOnHoverOutside()) return false;
       
 71217       if (event.defaultPrevented) return true;
       
 71218       if (!hasParentMenu) return true;
       
 71219       if (!disclosureElement) return true;
       
 71220       fireEvent(disclosureElement, "mouseout", event);
       
 71221       if (!hasFocusWithin(disclosureElement)) return true;
       
 71222       requestAnimationFrame(() => {
       
 71223         if (hasFocusWithin(disclosureElement)) return;
       
 71224         store == null ? void 0 : store.hide();
       
 71225       });
       
 71226       return false;
       
 71227     },
       
 71228     modal,
       
 71229     portal,
       
 71230     backdrop: hasParentMenu ? false : props.backdrop
       
 71231   }));
       
 71232   props = _3YLGPPWQ_spreadValues({
       
 71233     "aria-labelledby": ariaLabelledBy
       
 71234   }, props);
       
 71235   return props;
       
 71236 });
       
 71237 var Menu = createDialogComponent(
       
 71238   forwardRef2(function Menu2(props) {
       
 71239     const htmlProps = useMenu(props);
       
 71240     return LMDWO4NN_createElement(menu_TagName, htmlProps);
       
 71241   }),
       
 71242   useMenuProviderContext
       
 71243 );
       
 71244 
       
 71245 
       
 71246 ;// ./node_modules/@wordpress/components/build-module/menu/popover.js
       
 71247 /**
       
 71248  * External dependencies
       
 71249  */
       
 71250 
       
 71251 
       
 71252 /**
       
 71253  * WordPress dependencies
       
 71254  */
       
 71255 
       
 71256 
       
 71257 /**
       
 71258  * Internal dependencies
       
 71259  */
       
 71260 
       
 71261 
       
 71262 
       
 71263 
       
 71264 const menu_popover_Popover = (0,external_wp_element_namespaceObject.forwardRef)(function Popover({
       
 71265   gutter,
       
 71266   children,
       
 71267   shift,
       
 71268   modal = true,
       
 71269   ...otherProps
       
 71270 }, ref) {
       
 71271   const menuContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
       
 71272 
       
 71273   // Extract the side from the applied placement — useful for animations.
       
 71274   // Using `currentPlacement` instead of `placement` to make sure that we
       
 71275   // use the final computed placement (including "flips" etc).
       
 71276   const appliedPlacementSide = useStoreState(menuContext?.store, 'currentPlacement')?.split('-')[0];
       
 71277   const hideOnEscape = (0,external_wp_element_namespaceObject.useCallback)(event => {
       
 71278     // Pressing Escape can cause unexpected consequences (ie. exiting
       
 71279     // full screen mode on MacOs, close parent modals...).
       
 71280     event.preventDefault();
       
 71281     // Returning `true` causes the menu to hide.
       
 71282     return true;
       
 71283   }, []);
       
 71284   const computedDirection = useStoreState(menuContext?.store, 'rtl') ? 'rtl' : 'ltr';
       
 71285   const wrapperProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
       
 71286     dir: computedDirection,
       
 71287     style: {
       
 71288       direction: computedDirection
       
 71289     }
       
 71290   }), [computedDirection]);
       
 71291   if (!menuContext?.store) {
       
 71292     throw new Error('Menu.Popover can only be rendered inside a Menu component');
       
 71293   }
       
 71294   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Menu, {
       
 71295     ...otherProps,
       
 71296     ref: ref,
       
 71297     modal: modal,
       
 71298     store: menuContext.store
       
 71299     // Root menu has an 8px distance from its trigger,
       
 71300     // otherwise 0 (which causes the submenu to slightly overlap)
       
 71301     ,
       
 71302     gutter: gutter !== null && gutter !== void 0 ? gutter : menuContext.store.parent ? 0 : 8
       
 71303     // Align nested menu by the same (but opposite) amount
       
 71304     // as the menu container's padding.
       
 71305     ,
       
 71306     shift: shift !== null && shift !== void 0 ? shift : menuContext.store.parent ? -4 : 0,
       
 71307     hideOnHoverOutside: false,
       
 71308     "data-side": appliedPlacementSide,
       
 71309     wrapperProps: wrapperProps,
       
 71310     hideOnEscape: hideOnEscape,
       
 71311     unmountOnHide: true,
       
 71312     render: renderProps =>
       
 71313     /*#__PURE__*/
       
 71314     // Two wrappers are needed for the entry animation, where the menu
       
 71315     // container scales with a different factor than its contents.
       
 71316     // The {...renderProps} are passed to the inner wrapper, so that the
       
 71317     // menu element is the direct parent of the menu item elements.
       
 71318     (0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverOuterWrapper, {
       
 71319       variant: menuContext.variant,
       
 71320       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PopoverInnerWrapper, {
       
 71321         ...renderProps
       
 71322       })
       
 71323     }),
       
 71324     children: children
       
 71325   });
       
 71326 });
       
 71327 
       
 71328 ;// ./node_modules/@wordpress/components/build-module/menu/index.js
       
 71329 /**
       
 71330  * External dependencies
       
 71331  */
       
 71332 
       
 71333 
       
 71334 /**
       
 71335  * WordPress dependencies
       
 71336  */
       
 71337 
       
 71338 
       
 71339 
       
 71340 /**
       
 71341  * Internal dependencies
       
 71342  */
       
 71343 
       
 71344 
       
 71345 
       
 71346 
       
 71347 
       
 71348 
       
 71349 
       
 71350 
       
 71351 
       
 71352 
       
 71353 
       
 71354 
       
 71355 
       
 71356 
       
 71357 const UnconnectedMenu = props => {
 73155   const {
 71358   const {
 73156     // Store props
 71359     children,
       
 71360     defaultOpen = false,
 73157     open,
 71361     open,
 73158     defaultOpen = false,
       
 73159     onOpenChange,
 71362     onOpenChange,
 73160     placement,
 71363     placement,
 73161     // Menu trigger props
       
 73162     trigger,
       
 73163     // Menu props
       
 73164     gutter,
       
 73165     children,
       
 73166     shift,
       
 73167     modal = true,
       
 73168     // From internal components context
 71364     // From internal components context
 73169     variant,
 71365     variant
 73170     // Rest
 71366   } = useContextSystem(props, 'Menu');
 73171     ...otherProps
 71367   const parentContext = (0,external_wp_element_namespaceObject.useContext)(context_Context);
 73172   } = useContextSystem(props, 'DropdownMenu');
 71368   const rtl = (0,external_wp_i18n_namespaceObject.isRTL)();
 73173   const parentContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
       
 73174   const computedDirection = (0,external_wp_i18n_namespaceObject.isRTL)() ? 'rtl' : 'ltr';
       
 73175 
 71369 
 73176   // If an explicit value for the `placement` prop is not passed,
 71370   // If an explicit value for the `placement` prop is not passed,
 73177   // apply a default placement of `bottom-start` for the root dropdown,
 71371   // apply a default placement of `bottom-start` for the root menu popover,
 73178   // and of `right-start` for nested dropdowns.
 71372   // and of `right-start` for nested menu popovers.
 73179   let computedPlacement = (_props$placement = props.placement) !== null && _props$placement !== void 0 ? _props$placement : parentContext?.store ? 'right-start' : 'bottom-start';
 71373   let computedPlacement = placement !== null && placement !== void 0 ? placement : parentContext?.store ? 'right-start' : 'bottom-start';
 73180   // Swap left/right in case of RTL direction
 71374   // Swap left/right in case of RTL direction
 73181   if (computedDirection === 'rtl') {
 71375   if (rtl) {
 73182     if (/right/.test(computedPlacement)) {
 71376     if (/right/.test(computedPlacement)) {
 73183       computedPlacement = computedPlacement.replace('right', 'left');
 71377       computedPlacement = computedPlacement.replace('right', 'left');
 73184     } else if (/left/.test(computedPlacement)) {
 71378     } else if (/left/.test(computedPlacement)) {
 73185       computedPlacement = computedPlacement.replace('left', 'right');
 71379       computedPlacement = computedPlacement.replace('left', 'right');
 73186     }
 71380     }
 73187   }
 71381   }
 73188   const dropdownMenuStore = useMenuStore({
 71382   const menuStore = useMenuStore({
 73189     parent: parentContext?.store,
 71383     parent: parentContext?.store,
 73190     open,
 71384     open,
 73191     defaultOpen,
 71385     defaultOpen,
 73192     placement: computedPlacement,
 71386     placement: computedPlacement,
 73193     focusLoop: true,
 71387     focusLoop: true,
 73194     setOpen(willBeOpen) {
 71388     setOpen(willBeOpen) {
 73195       onOpenChange?.(willBeOpen);
 71389       onOpenChange?.(willBeOpen);
 73196     },
 71390     },
 73197     rtl: computedDirection === 'rtl'
 71391     rtl
 73198   });
 71392   });
 73199   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 71393   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 73200     store: dropdownMenuStore,
 71394     store: menuStore,
 73201     variant
 71395     variant
 73202   }), [dropdownMenuStore, variant]);
 71396   }), [menuStore, variant]);
 73203 
 71397   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(context_Context.Provider, {
 73204   // Extract the side from the applied placement — useful for animations.
 71398     value: contextValue,
 73205   const appliedPlacementSide = dropdownMenuStore.useState('placement').split('-')[0];
 71399     children: children
 73206   if (dropdownMenuStore.parent && !((0,external_wp_element_namespaceObject.isValidElement)(trigger) && DropdownMenuItem === trigger.type)) {
       
 73207     // eslint-disable-next-line no-console
       
 73208     console.warn('For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.');
       
 73209   }
       
 73210   const hideOnEscape = (0,external_wp_element_namespaceObject.useCallback)(event => {
       
 73211     // Pressing Escape can cause unexpected consequences (ie. exiting
       
 73212     // full screen mode on MacOs, close parent modals...).
       
 73213     event.preventDefault();
       
 73214     // Returning `true` causes the menu to hide.
       
 73215     return true;
       
 73216   }, []);
       
 73217   const wrapperProps = (0,external_wp_element_namespaceObject.useMemo)(() => ({
       
 73218     dir: computedDirection,
       
 73219     style: {
       
 73220       direction: computedDirection
       
 73221     }
       
 73222   }), [computedDirection]);
       
 73223   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 73224     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(MenuButton, {
       
 73225       ref: ref,
       
 73226       store: dropdownMenuStore,
       
 73227       render: dropdownMenuStore.parent ? (0,external_wp_element_namespaceObject.cloneElement)(trigger, {
       
 73228         // Add submenu arrow, unless a `suffix` is explicitly specified
       
 73229         suffix: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
       
 73230           children: [trigger.props.suffix, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SubmenuChevronIcon, {
       
 73231             "aria-hidden": "true",
       
 73232             icon: chevron_right_small,
       
 73233             size: 24,
       
 73234             preserveAspectRatio: "xMidYMid slice"
       
 73235           })]
       
 73236         })
       
 73237       }) : trigger
       
 73238     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(dropdown_menu_v2_styles_DropdownMenu, {
       
 73239       ...otherProps,
       
 73240       modal: modal,
       
 73241       store: dropdownMenuStore
       
 73242       // Root menu has an 8px distance from its trigger,
       
 73243       // otherwise 0 (which causes the submenu to slightly overlap)
       
 73244       ,
       
 73245       gutter: gutter !== null && gutter !== void 0 ? gutter : dropdownMenuStore.parent ? 0 : 8
       
 73246       // Align nested menu by the same (but opposite) amount
       
 73247       // as the menu container's padding.
       
 73248       ,
       
 73249       shift: shift !== null && shift !== void 0 ? shift : dropdownMenuStore.parent ? -4 : 0,
       
 73250       hideOnHoverOutside: false,
       
 73251       "data-side": appliedPlacementSide,
       
 73252       variant: variant,
       
 73253       wrapperProps: wrapperProps,
       
 73254       hideOnEscape: hideOnEscape,
       
 73255       unmountOnHide: true,
       
 73256       children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DropdownMenuContext.Provider, {
       
 73257         value: contextValue,
       
 73258         children: children
       
 73259       })
       
 73260     })]
       
 73261   });
 71400   });
 73262 };
 71401 };
 73263 const dropdown_menu_v2_DropdownMenu = contextConnect(dropdown_menu_v2_UnconnectedDropdownMenu, 'DropdownMenu');
 71402 
 73264 const DropdownMenuSeparator = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuSeparator(props, ref) {
 71403 /**
 73265   const dropdownMenuContext = (0,external_wp_element_namespaceObject.useContext)(DropdownMenuContext);
 71404  * Menu is a collection of React components that combine to render
 73266   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuSeparator, {
 71405  * ARIA-compliant [menu](https://www.w3.org/WAI/ARIA/apg/patterns/menu/) and
 73267     ref: ref,
 71406  * [menu button](https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/) patterns.
 73268     ...props,
 71407  *
 73269     store: dropdownMenuContext?.store,
 71408  * `Menu` itself is a wrapper component and context provider.
 73270     variant: dropdownMenuContext?.variant
 71409  * It is responsible for managing the state of the menu and its items, and for
 73271   });
 71410  * rendering the `Menu.TriggerButton` (or the `Menu.SubmenuTriggerItem`)
       
 71411  * component, and the `Menu.Popover` component.
       
 71412  */
       
 71413 const menu_Menu = Object.assign(contextConnectWithoutRef(UnconnectedMenu, 'Menu'), {
       
 71414   Context: Object.assign(context_Context, {
       
 71415     displayName: 'Menu.Context'
       
 71416   }),
       
 71417   /**
       
 71418    * Renders a menu item inside the `Menu.Popover` or `Menu.Group` components.
       
 71419    *
       
 71420    * It can optionally contain one instance of the `Menu.ItemLabel` component
       
 71421    * and one instance of the `Menu.ItemHelpText` component.
       
 71422    */
       
 71423   Item: Object.assign(item_Item, {
       
 71424     displayName: 'Menu.Item'
       
 71425   }),
       
 71426   /**
       
 71427    * Renders a radio menu item inside the `Menu.Popover` or `Menu.Group`
       
 71428    * components.
       
 71429    *
       
 71430    * It can optionally contain one instance of the `Menu.ItemLabel` component
       
 71431    * and one instance of the `Menu.ItemHelpText` component.
       
 71432    */
       
 71433   RadioItem: Object.assign(RadioItem, {
       
 71434     displayName: 'Menu.RadioItem'
       
 71435   }),
       
 71436   /**
       
 71437    * Renders a checkbox menu item inside the `Menu.Popover` or `Menu.Group`
       
 71438    * components.
       
 71439    *
       
 71440    * It can optionally contain one instance of the `Menu.ItemLabel` component
       
 71441    * and one instance of the `Menu.ItemHelpText` component.
       
 71442    */
       
 71443   CheckboxItem: Object.assign(CheckboxItem, {
       
 71444     displayName: 'Menu.CheckboxItem'
       
 71445   }),
       
 71446   /**
       
 71447    * Renders a group for menu items.
       
 71448    *
       
 71449    * It should contain one instance of `Menu.GroupLabel` and one or more
       
 71450    * instances of `Menu.Item`, `Menu.RadioItem`, or `Menu.CheckboxItem`.
       
 71451    */
       
 71452   Group: Object.assign(group_Group, {
       
 71453     displayName: 'Menu.Group'
       
 71454   }),
       
 71455   /**
       
 71456    * Renders a label in a menu group.
       
 71457    *
       
 71458    * This component should be wrapped with `Menu.Group` so the
       
 71459    * `aria-labelledby` is correctly set on the group element.
       
 71460    */
       
 71461   GroupLabel: Object.assign(group_label_GroupLabel, {
       
 71462     displayName: 'Menu.GroupLabel'
       
 71463   }),
       
 71464   /**
       
 71465    * Renders a divider between menu items or menu groups.
       
 71466    */
       
 71467   Separator: Object.assign(separator_Separator, {
       
 71468     displayName: 'Menu.Separator'
       
 71469   }),
       
 71470   /**
       
 71471    * Renders a menu item's label text. It should be wrapped with `Menu.Item`,
       
 71472    * `Menu.RadioItem`, or `Menu.CheckboxItem`.
       
 71473    */
       
 71474   ItemLabel: Object.assign(ItemLabel, {
       
 71475     displayName: 'Menu.ItemLabel'
       
 71476   }),
       
 71477   /**
       
 71478    * Renders a menu item's help text. It should be wrapped with `Menu.Item`,
       
 71479    * `Menu.RadioItem`, or `Menu.CheckboxItem`.
       
 71480    */
       
 71481   ItemHelpText: Object.assign(ItemHelpText, {
       
 71482     displayName: 'Menu.ItemHelpText'
       
 71483   }),
       
 71484   /**
       
 71485    * Renders a dropdown menu element that's controlled by a sibling
       
 71486    * `Menu.TriggerButton` component. It renders a popover and automatically
       
 71487    * focuses on items when the menu is shown.
       
 71488    *
       
 71489    * The only valid children of `Menu.Popover` are `Menu.Item`,
       
 71490    * `Menu.RadioItem`, `Menu.CheckboxItem`, `Menu.Group`, `Menu.Separator`,
       
 71491    * and `Menu` (for nested dropdown menus).
       
 71492    */
       
 71493   Popover: Object.assign(menu_popover_Popover, {
       
 71494     displayName: 'Menu.Popover'
       
 71495   }),
       
 71496   /**
       
 71497    * Renders a menu button that toggles the visibility of a sibling
       
 71498    * `Menu.Popover` component when clicked or when using arrow keys.
       
 71499    */
       
 71500   TriggerButton: Object.assign(TriggerButton, {
       
 71501     displayName: 'Menu.TriggerButton'
       
 71502   }),
       
 71503   /**
       
 71504    * Renders a menu item that toggles the visibility of a sibling
       
 71505    * `Menu.Popover` component when clicked or when using arrow keys.
       
 71506    *
       
 71507    * This component is used to create a nested dropdown menu.
       
 71508    */
       
 71509   SubmenuTriggerItem: Object.assign(SubmenuTriggerItem, {
       
 71510     displayName: 'Menu.SubmenuTriggerItem'
       
 71511   })
 73272 });
 71512 });
 73273 const DropdownMenuItemLabel = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuItemLabel(props, ref) {
 71513 /* harmony default export */ const build_module_menu = ((/* unused pure expression or super */ null && (menu_Menu)));
 73274   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuItemLabel, {
 71514 
 73275     numberOfLines: 1,
 71515 ;// ./node_modules/@wordpress/components/build-module/theme/styles.js
 73276     ref: ref,
       
 73277     ...props
       
 73278   });
       
 73279 });
       
 73280 const DropdownMenuItemHelpText = (0,external_wp_element_namespaceObject.forwardRef)(function DropdownMenuItemHelpText(props, ref) {
       
 73281   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_DropdownMenuItemHelpText, {
       
 73282     numberOfLines: 2,
       
 73283     ref: ref,
       
 73284     ...props
       
 73285   });
       
 73286 });
       
 73287 
       
 73288 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/theme/styles.js
       
 73289 
 71516 
 73290 function theme_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 71517 function theme_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 73291 /**
 71518 /**
 73292  * External dependencies
 71519  * External dependencies
 73293  */
 71520  */
 73309 } : 0)( true ? {
 71536 } : 0)( true ? {
 73310   name: "1a3idx0",
 71537   name: "1a3idx0",
 73311   styles: "color:var( --wp-components-color-foreground, currentColor )"
 71538   styles: "color:var( --wp-components-color-foreground, currentColor )"
 73312 } : 0);
 71539 } : 0);
 73313 
 71540 
 73314 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/theme/color-algorithms.js
 71541 ;// ./node_modules/@wordpress/components/build-module/theme/color-algorithms.js
 73315 /**
 71542 /**
 73316  * External dependencies
 71543  * External dependencies
 73317  */
 71544  */
 73318 
 71545 
 73319 
 71546 
 73415     result[parseInt(key)] = w(background)[direction](value / limit * range).toHex();
 71642     result[parseInt(key)] = w(background)[direction](value / limit * range).toHex();
 73416   });
 71643   });
 73417   return result;
 71644   return result;
 73418 }
 71645 }
 73419 
 71646 
 73420 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/theme/index.js
 71647 ;// ./node_modules/@wordpress/components/build-module/theme/index.js
 73421 /**
 71648 /**
 73422  * WordPress dependencies
 71649  * WordPress dependencies
 73423  */
 71650  */
 73424 
 71651 
 73425 
 71652 
 73467     ...props
 71694     ...props
 73468   });
 71695   });
 73469 }
 71696 }
 73470 /* harmony default export */ const theme = (Theme);
 71697 /* harmony default export */ const theme = (Theme);
 73471 
 71698 
 73472 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/context.js
 71699 ;// ./node_modules/@wordpress/components/build-module/tabs/context.js
 73473 /**
 71700 /**
 73474  * WordPress dependencies
 71701  * WordPress dependencies
 73475  */
 71702  */
 73476 
 71703 
 73477 
 71704 
 73480  */
 71707  */
 73481 
 71708 
 73482 const TabsContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
 71709 const TabsContext = (0,external_wp_element_namespaceObject.createContext)(undefined);
 73483 const useTabsContext = () => (0,external_wp_element_namespaceObject.useContext)(TabsContext);
 71710 const useTabsContext = () => (0,external_wp_element_namespaceObject.useContext)(TabsContext);
 73484 
 71711 
 73485 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/styles.js
 71712 ;// ./node_modules/@wordpress/components/build-module/tabs/styles.js
 73486 
 71713 
       
 71714 function tabs_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
 73487 /**
 71715 /**
 73488  * External dependencies
 71716  * External dependencies
 73489  */
 71717  */
 73490 
 71718 
 73491 // eslint-disable-next-line no-restricted-imports
       
 73492 
 71719 
 73493 
 71720 
 73494 /**
 71721 /**
 73495  * Internal dependencies
 71722  * Internal dependencies
 73496  */
 71723  */
 73497 
 71724 
 73498 
 71725 
 73499 const TabListWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div",  true ? {
 71726 
       
 71727 const StyledTabList = /*#__PURE__*/emotion_styled_base_browser_esm(TabList,  true ? {
       
 71728   target: "enfox0g4"
       
 71729 } : 0)("display:flex;align-items:stretch;overflow-x:auto;&[aria-orientation='vertical']{flex-direction:column;}:where( [aria-orientation='horizontal'] ){width:fit-content;}--direction-factor:1;--direction-start:left;--direction-end:right;--selected-start:var( --selected-left, 0 );&:dir( rtl ){--direction-factor:-1;--direction-start:right;--direction-end:left;--selected-start:var( --selected-right, 0 );}@media not ( prefers-reduced-motion ){&[data-indicator-animated]::before{transition-property:transform,border-radius,border-block;transition-duration:0.2s;transition-timing-function:ease-out;}}position:relative;&::before{content:'';position:absolute;pointer-events:none;transform-origin:var( --direction-start ) top;outline:2px solid transparent;outline-offset:-1px;}--antialiasing-factor:100;&[aria-orientation='horizontal']{--fade-width:4rem;--fade-gradient-base:transparent 0%,black var( --fade-width );--fade-gradient-composed:var( --fade-gradient-base ),black 60%,transparent 50%;&.is-overflowing-first{mask-image:linear-gradient(\n\t\t\t\tto var( --direction-end ),\n\t\t\t\tvar( --fade-gradient-base )\n\t\t\t);}&.is-overflowing-last{mask-image:linear-gradient(\n\t\t\t\tto var( --direction-start ),\n\t\t\t\tvar( --fade-gradient-base )\n\t\t\t);}&.is-overflowing-first.is-overflowing-last{mask-image:linear-gradient(\n\t\t\t\t\tto right,\n\t\t\t\t\tvar( --fade-gradient-composed )\n\t\t\t\t),linear-gradient( to left, var( --fade-gradient-composed ) );}&::before{bottom:0;height:0;width:calc( var( --antialiasing-factor ) * 1px );transform:translateX(\n\t\t\t\t\tcalc(\n\t\t\t\t\t\tvar( --selected-start ) * var( --direction-factor ) *\n\t\t\t\t\t\t\t1px\n\t\t\t\t\t)\n\t\t\t\t) scaleX(\n\t\t\t\t\tcalc(\n\t\t\t\t\t\tvar( --selected-width, 0 ) /\n\t\t\t\t\t\t\tvar( --antialiasing-factor )\n\t\t\t\t\t)\n\t\t\t\t);border-bottom:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";}}&[aria-orientation='vertical']{&::before{border-radius:", config_values.radiusSmall, "/calc(\n\t\t\t\t\t", config_values.radiusSmall, " /\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\tvar( --selected-height, 0 ) /\n\t\t\t\t\t\t\t\tvar( --antialiasing-factor )\n\t\t\t\t\t\t)\n\t\t\t\t);top:0;left:0;width:100%;height:calc( var( --antialiasing-factor ) * 1px );transform:translateY( calc( var( --selected-top, 0 ) * 1px ) ) scaleY(\n\t\t\t\t\tcalc(\n\t\t\t\t\t\tvar( --selected-height, 0 ) /\n\t\t\t\t\t\t\tvar( --antialiasing-factor )\n\t\t\t\t\t)\n\t\t\t\t);background-color:color-mix(\n\t\t\t\tin srgb,\n\t\t\t\t", COLORS.theme.accent, ",\n\t\t\t\ttransparent 96%\n\t\t\t);}&[data-select-on-move='true']:has(\n\t\t\t\t:is( :focus-visible, [data-focus-visible] )\n\t\t\t)::before{box-sizing:border-box;border:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";border-block-width:calc(\n\t\t\t\tvar( --wp-admin-border-width-focus, 1px ) /\n\t\t\t\t\t(\n\t\t\t\t\t\tvar( --selected-height, 0 ) /\n\t\t\t\t\t\t\tvar( --antialiasing-factor )\n\t\t\t\t\t)\n\t\t\t);}}" + ( true ? "" : 0));
       
 71730 const styles_Tab = /*#__PURE__*/emotion_styled_base_browser_esm(Tab,  true ? {
       
 71731   target: "enfox0g3"
       
 71732 } : 0)("&{border-radius:0;background:transparent;border:none;box-shadow:none;flex:1 0 auto;white-space:nowrap;display:flex;align-items:center;cursor:pointer;line-height:1.2;font-weight:400;color:", COLORS.theme.foreground, ";position:relative;&[aria-disabled='true']{cursor:default;color:", COLORS.ui.textDisabled, ";}&:not( [aria-disabled='true'] ):is( :hover, [data-focus-visible] ){color:", COLORS.theme.accent, ";}&:focus:not( :disabled ){box-shadow:none;outline:none;}&::after{position:absolute;pointer-events:none;outline:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";border-radius:", config_values.radiusSmall, ";opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&[data-focus-visible]::after{opacity:1;}}[aria-orientation='horizontal'] &{padding-inline:", space(4), ";height:", space(12), ";scroll-margin:24px;&::after{content:'';inset:", space(3), ";}}[aria-orientation='vertical'] &{padding:", space(2), " ", space(3), ";min-height:", space(10), ";&[aria-selected='true']{color:", COLORS.theme.accent, ";fill:currentColor;}}[aria-orientation='vertical'][data-select-on-move='false'] &::after{content:'';inset:var( --wp-admin-border-width-focus );}" + ( true ? "" : 0));
       
 71733 const TabChildren = /*#__PURE__*/emotion_styled_base_browser_esm("span",  true ? {
 73500   target: "enfox0g2"
 71734   target: "enfox0g2"
 73501 } : 0)("position:relative;display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}@media not ( prefers-reduced-motion: reduce ){&.is-animation-enabled::after{transition-property:left,top,width,height;transition-duration:0.2s;transition-timing-function:ease-out;}}&::after{content:'';position:absolute;pointer-events:none;outline:2px solid transparent;outline-offset:-1px;}&:not( [aria-orientation='vertical'] )::after{left:var( --indicator-left );bottom:0;width:var( --indicator-width );height:0;border-bottom:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";}&[aria-orientation='vertical']::after{opacity:0;right:0;top:var( --indicator-top );height:var( --indicator-height );border-right:var( --wp-admin-border-width-focus ) solid ", COLORS.theme.accent, ";}" + ( true ? "" : 0));
 71735 } : 0)( true ? {
 73502 const styles_Tab = /*#__PURE__*/emotion_styled_base_browser_esm(Tab,  true ? {
 71736   name: "9at4z3",
       
 71737   styles: "flex-grow:1;display:flex;align-items:center;[aria-orientation='horizontal'] &{justify-content:center;}[aria-orientation='vertical'] &{justify-content:start;}"
       
 71738 } : 0);
       
 71739 const TabChevron = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_icon,  true ? {
 73503   target: "enfox0g1"
 71740   target: "enfox0g1"
 73504 } : 0)("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:", space(12), ";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ", space(4), ";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:", COLORS.theme.accent, ";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:", space(3), ";right:", space(3), ";bottom:", space(3), ";left:", space(3), ";pointer-events:none;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";border-radius:2px;opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;outline:2px solid transparent;}}" + ( true ? "" : 0));
 71741 } : 0)("flex-shrink:0;margin-inline-end:", space(-1), ";[aria-orientation='horizontal'] &{display:none;}opacity:0;[role='tab']:is( [aria-selected='true'], [data-focus-visible], :hover ) &{opacity:1;}@media not ( prefers-reduced-motion ){[data-select-on-move='true'] [role='tab']:is( [aria-selected='true'],  ) &{transition:opacity 0.15s 0.15s linear;}}&:dir( rtl ){rotate:180deg;}" + ( true ? "" : 0));
 73505 const styles_TabPanel = /*#__PURE__*/emotion_styled_base_browser_esm(TabPanel,  true ? {
 71742 const styles_TabPanel = /*#__PURE__*/emotion_styled_base_browser_esm(TabPanel,  true ? {
 73506   target: "enfox0g0"
 71743   target: "enfox0g0"
 73507 } : 0)("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;outline-offset:0;}" + ( true ? "" : 0));
 71744 } : 0)("&:focus{box-shadow:none;outline:none;}&[data-focus-visible]{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;outline-offset:0;}" + ( true ? "" : 0));
 73508 
 71745 
 73509 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tab.js
 71746 ;// ./node_modules/@wordpress/components/build-module/tabs/tab.js
 73510 /**
 71747 /**
 73511  * WordPress dependencies
 71748  * WordPress dependencies
 73512  */
 71749  */
 73513 
 71750 
 73514 
 71751 
 73515 
 71752 
 73516 /**
 71753 /**
 73517  * Internal dependencies
 71754  * Internal dependencies
 73518  */
 71755  */
       
 71756 
 73519 
 71757 
 73520 
 71758 
 73521 
 71759 
 73522 
 71760 
 73523 
 71761 
 73526   tabId,
 71764   tabId,
 73527   disabled,
 71765   disabled,
 73528   render,
 71766   render,
 73529   ...otherProps
 71767   ...otherProps
 73530 }, ref) {
 71768 }, ref) {
 73531   const context = useTabsContext();
 71769   var _useTabsContext;
 73532   if (!context) {
       
 73533      true ? external_wp_warning_default()('`Tabs.Tab` must be wrapped in a `Tabs` component.') : 0;
       
 73534     return null;
       
 73535   }
       
 73536   const {
 71770   const {
 73537     store,
 71771     store,
 73538     instanceId
 71772     instanceId
 73539   } = context;
 71773   } = (_useTabsContext = useTabsContext()) !== null && _useTabsContext !== void 0 ? _useTabsContext : {};
       
 71774   if (!store) {
       
 71775      true ? external_wp_warning_default()('`Tabs.Tab` must be wrapped in a `Tabs` component.') : 0;
       
 71776     return null;
       
 71777   }
 73540   const instancedTabId = `${instanceId}-${tabId}`;
 71778   const instancedTabId = `${instanceId}-${tabId}`;
 73541   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_Tab, {
 71779   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Tab, {
 73542     ref: ref,
 71780     ref: ref,
 73543     store: store,
 71781     store: store,
 73544     id: instancedTabId,
 71782     id: instancedTabId,
 73545     disabled: disabled,
 71783     disabled: disabled,
 73546     render: render,
 71784     render: render,
 73547     ...otherProps,
 71785     ...otherProps,
 73548     children: children
 71786     children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabChildren, {
       
 71787       children: children
       
 71788     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabChevron, {
       
 71789       icon: chevron_right
       
 71790     })]
 73549   });
 71791   });
 73550 });
 71792 });
 73551 
 71793 
 73552 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tablist.js
 71794 ;// ./node_modules/@wordpress/components/build-module/tabs/use-track-overflow.js
 73553 /**
 71795 /* eslint-disable jsdoc/require-param */
 73554  * External dependencies
       
 73555  */
       
 73556 // eslint-disable-next-line no-restricted-imports
       
 73557 
       
 73558 
       
 73559 /**
 71796 /**
 73560  * WordPress dependencies
 71797  * WordPress dependencies
 73561  */
 71798  */
 73562 
 71799 
 73563 
 71800 
 73564 
 71801 
 73565 /**
 71802 /**
 73566  * Internal dependencies
 71803  * Tracks if an element contains overflow and on which end by tracking the
 73567  */
 71804  * first and last child elements with an `IntersectionObserver` in relation
 73568 
 71805  * to the parent element.
 73569 
 71806  *
 73570 
 71807  * Note that the returned value will only indicate whether the first or last
 73571 
 71808  * element is currently "going out of bounds" but not whether it happens on
 73572 
 71809  * the X or Y axis.
 73573 function useTrackElementOffset(targetElement, onUpdate) {
 71810  */
 73574   const [indicatorPosition, setIndicatorPosition] = (0,external_wp_element_namespaceObject.useState)({
 71811 function useTrackOverflow(parent, children) {
 73575     left: 0,
 71812   const [first, setFirst] = (0,external_wp_element_namespaceObject.useState)(false);
 73576     top: 0,
 71813   const [last, setLast] = (0,external_wp_element_namespaceObject.useState)(false);
 73577     width: 0,
 71814   const [observer, setObserver] = (0,external_wp_element_namespaceObject.useState)();
 73578     height: 0
 71815   const callback = (0,external_wp_compose_namespaceObject.useEvent)(entries => {
       
 71816     for (const entry of entries) {
       
 71817       if (entry.target === children.first) {
       
 71818         setFirst(!entry.isIntersecting);
       
 71819       }
       
 71820       if (entry.target === children.last) {
       
 71821         setLast(!entry.isIntersecting);
       
 71822       }
       
 71823     }
 73579   });
 71824   });
 73580 
       
 73581   // TODO: replace with useEventCallback or similar when officially available.
       
 73582   const updateCallbackRef = (0,external_wp_element_namespaceObject.useRef)(onUpdate);
       
 73583   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 73584     updateCallbackRef.current = onUpdate;
       
 73585   });
       
 73586   const observedElementRef = (0,external_wp_element_namespaceObject.useRef)();
       
 73587   const resizeObserverRef = (0,external_wp_element_namespaceObject.useRef)();
       
 73588   (0,external_wp_element_namespaceObject.useEffect)(() => {
 71825   (0,external_wp_element_namespaceObject.useEffect)(() => {
 73589     if (targetElement === observedElementRef.current) {
 71826     if (!parent || !window.IntersectionObserver) {
 73590       return;
 71827       return;
 73591     }
 71828     }
 73592     observedElementRef.current = targetElement !== null && targetElement !== void 0 ? targetElement : undefined;
 71829     const newObserver = new IntersectionObserver(callback, {
 73593     function updateIndicator(element) {
 71830       root: parent,
 73594       setIndicatorPosition({
 71831       threshold: 0.9
 73595         // Workaround to prevent unwanted scrollbars, see:
 71832     });
 73596         // https://github.com/WordPress/gutenberg/pull/61979
 71833     setObserver(newObserver);
 73597         left: Math.max(element.offsetLeft - 1, 0),
 71834     return () => newObserver.disconnect();
 73598         top: Math.max(element.offsetTop - 1, 0),
 71835   }, [callback, parent]);
 73599         width: parseFloat(getComputedStyle(element).width),
 71836   (0,external_wp_element_namespaceObject.useEffect)(() => {
 73600         height: parseFloat(getComputedStyle(element).height)
 71837     if (!observer) {
 73601       });
 71838       return;
 73602       updateCallbackRef.current?.();
 71839     }
 73603     }
 71840     if (children.first) {
 73604 
 71841       observer.observe(children.first);
 73605     // Set up a ResizeObserver.
 71842     }
 73606     if (!resizeObserverRef.current) {
 71843     if (children.last) {
 73607       resizeObserverRef.current = new ResizeObserver(() => {
 71844       observer.observe(children.last);
 73608         if (observedElementRef.current) {
       
 73609           updateIndicator(observedElementRef.current);
       
 73610         }
       
 73611       });
       
 73612     }
       
 73613     const {
       
 73614       current: resizeObserver
       
 73615     } = resizeObserverRef;
       
 73616 
       
 73617     // Observe new element.
       
 73618     if (targetElement) {
       
 73619       updateIndicator(targetElement);
       
 73620       resizeObserver.observe(targetElement);
       
 73621     }
 71845     }
 73622     return () => {
 71846     return () => {
 73623       // Unobserve previous element.
 71847       if (children.first) {
 73624       if (observedElementRef.current) {
 71848         observer.unobserve(children.first);
 73625         resizeObserver.unobserve(observedElementRef.current);
 71849       }
       
 71850       if (children.last) {
       
 71851         observer.unobserve(children.last);
 73626       }
 71852       }
 73627     };
 71853     };
 73628   }, [targetElement]);
 71854   }, [children.first, children.last, observer]);
 73629   return indicatorPosition;
 71855   return {
 73630 }
 71856     first,
 73631 function useOnValueUpdate(value, onUpdate) {
 71857     last
 73632   const previousValueRef = (0,external_wp_element_namespaceObject.useRef)(value);
 71858   };
 73633 
 71859 }
 73634   // TODO: replace with useEventCallback or similar when officially available.
 71860 /* eslint-enable jsdoc/require-param */
 73635   const updateCallbackRef = (0,external_wp_element_namespaceObject.useRef)(onUpdate);
 71861 
       
 71862 ;// ./node_modules/@wordpress/components/build-module/tabs/tablist.js
       
 71863 /**
       
 71864  * External dependencies
       
 71865  */
       
 71866 
       
 71867 
       
 71868 
       
 71869 /**
       
 71870  * WordPress dependencies
       
 71871  */
       
 71872 
       
 71873 
       
 71874 
       
 71875 
       
 71876 /**
       
 71877  * Internal dependencies
       
 71878  */
       
 71879 
       
 71880 
       
 71881 
       
 71882 
       
 71883 
       
 71884 
       
 71885 
       
 71886 const DEFAULT_SCROLL_MARGIN = 24;
       
 71887 
       
 71888 /**
       
 71889  * Scrolls a given parent element so that a given rect is visible.
       
 71890  *
       
 71891  * The scroll is updated initially and whenever the rect changes.
       
 71892  */
       
 71893 function useScrollRectIntoView(parent, rect, {
       
 71894   margin = DEFAULT_SCROLL_MARGIN
       
 71895 } = {}) {
 73636   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 71896   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
 73637     updateCallbackRef.current = onUpdate;
 71897     if (!parent || !rect) {
 73638   });
 71898       return;
 73639   (0,external_wp_element_namespaceObject.useEffect)(() => {
 71899     }
 73640     if (previousValueRef.current !== value) {
 71900     const {
 73641       updateCallbackRef.current({
 71901       scrollLeft: parentScroll
 73642         previousValue: previousValueRef.current
 71902     } = parent;
       
 71903     const parentWidth = parent.getBoundingClientRect().width;
       
 71904     const {
       
 71905       left: childLeft,
       
 71906       width: childWidth
       
 71907     } = rect;
       
 71908     const parentRightEdge = parentScroll + parentWidth;
       
 71909     const childRightEdge = childLeft + childWidth;
       
 71910     const rightOverflow = childRightEdge + margin - parentRightEdge;
       
 71911     const leftOverflow = parentScroll - (childLeft - margin);
       
 71912     let scrollLeft = null;
       
 71913     if (leftOverflow > 0) {
       
 71914       scrollLeft = parentScroll - leftOverflow;
       
 71915     } else if (rightOverflow > 0) {
       
 71916       scrollLeft = parentScroll + rightOverflow;
       
 71917     }
       
 71918     if (scrollLeft !== null) {
       
 71919       /**
       
 71920        * The optional chaining is used here to avoid unit test failures.
       
 71921        * It can be removed when JSDOM supports `Element` scroll methods.
       
 71922        * See: https://github.com/WordPress/gutenberg/pull/66498#issuecomment-2441146096
       
 71923        */
       
 71924       parent.scroll?.({
       
 71925         left: scrollLeft
 73643       });
 71926       });
 73644       previousValueRef.current = value;
 71927     }
 73645     }
 71928   }, [margin, parent, rect]);
 73646   }, [value]);
 71929 }
 73647 }
 71930 const tablist_TabList = (0,external_wp_element_namespaceObject.forwardRef)(function TabList({
 73648 const TabList = (0,external_wp_element_namespaceObject.forwardRef)(function TabList({
       
 73649   children,
 71931   children,
 73650   ...otherProps
 71932   ...otherProps
 73651 }, ref) {
 71933 }, ref) {
 73652   const context = useTabsContext();
 71934   var _useTabsContext;
 73653   const selectedId = context?.store.useState('selectedId');
       
 73654   const indicatorPosition = useTrackElementOffset(context?.store.item(selectedId)?.element);
       
 73655   const [animationEnabled, setAnimationEnabled] = (0,external_wp_element_namespaceObject.useState)(false);
       
 73656   useOnValueUpdate(selectedId, ({
       
 73657     previousValue
       
 73658   }) => previousValue && setAnimationEnabled(true));
       
 73659   if (!context) {
       
 73660      true ? external_wp_warning_default()('`Tabs.TabList` must be wrapped in a `Tabs` component.') : 0;
       
 73661     return null;
       
 73662   }
       
 73663   const {
 71935   const {
 73664     store
 71936     store
 73665   } = context;
 71937   } = (_useTabsContext = useTabsContext()) !== null && _useTabsContext !== void 0 ? _useTabsContext : {};
 73666   const {
 71938   const selectedId = useStoreState(store, 'selectedId');
 73667     activeId,
 71939   const activeId = useStoreState(store, 'activeId');
 73668     selectOnMove
 71940   const selectOnMove = useStoreState(store, 'selectOnMove');
 73669   } = store.useState();
 71941   const items = useStoreState(store, 'items');
 73670   const {
 71942   const [parent, setParent] = (0,external_wp_element_namespaceObject.useState)();
 73671     setActiveId
 71943   const refs = (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, setParent]);
 73672   } = store;
 71944   const selectedItem = store?.item(selectedId);
       
 71945   const renderedItems = useStoreState(store, 'renderedItems');
       
 71946   const selectedItemIndex = renderedItems && selectedItem ? renderedItems.indexOf(selectedItem) : -1;
       
 71947   // Use selectedItemIndex as a dependency to force recalculation when the
       
 71948   // selected item index changes (elements are swapped / added / removed).
       
 71949   const selectedRect = useTrackElementOffsetRect(selectedItem?.element, [selectedItemIndex]);
       
 71950 
       
 71951   // Track overflow to show scroll hints.
       
 71952   const overflow = useTrackOverflow(parent, {
       
 71953     first: items?.at(0)?.element,
       
 71954     last: items?.at(-1)?.element
       
 71955   });
       
 71956 
       
 71957   // Size, position, and animate the indicator.
       
 71958   useAnimatedOffsetRect(parent, selectedRect, {
       
 71959     prefix: 'selected',
       
 71960     dataAttribute: 'indicator-animated',
       
 71961     transitionEndFilter: event => event.pseudoElement === '::before',
       
 71962     roundRect: true
       
 71963   });
       
 71964 
       
 71965   // Make sure selected tab is scrolled into view.
       
 71966   useScrollRectIntoView(parent, selectedRect);
 73673   const onBlur = () => {
 71967   const onBlur = () => {
 73674     if (!selectOnMove) {
 71968     if (!selectOnMove) {
 73675       return;
 71969       return;
 73676     }
 71970     }
 73677 
 71971 
 73678     // When automatic tab selection is on, make sure that the active tab is up
 71972     // When automatic tab selection is on, make sure that the active tab is up
 73679     // to date with the selected tab when leaving the tablist. This makes sure
 71973     // to date with the selected tab when leaving the tablist. This makes sure
 73680     // that the selected tab will receive keyboard focus when tabbing back into
 71974     // that the selected tab will receive keyboard focus when tabbing back into
 73681     // the tablist.
 71975     // the tablist.
 73682     if (selectedId !== activeId) {
 71976     if (selectedId !== activeId) {
 73683       setActiveId(selectedId);
 71977       store?.setActiveId(selectedId);
 73684     }
 71978     }
 73685   };
 71979   };
 73686   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(tab_list_TabList, {
 71980   if (!store) {
 73687     ref: ref,
 71981      true ? external_wp_warning_default()('`Tabs.TabList` must be wrapped in a `Tabs` component.') : 0;
       
 71982     return null;
       
 71983   }
       
 71984   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(StyledTabList, {
       
 71985     ref: refs,
 73688     store: store,
 71986     store: store,
 73689     render: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabListWrapper, {
 71987     render: props => {
 73690       onTransitionEnd: event => {
 71988       var _props$tabIndex;
 73691         if (event.pseudoElement === '::after') {
 71989       return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
 73692           setAnimationEnabled(false);
 71990         ...props,
 73693         }
 71991         // Fallback to -1 to prevent browsers from making the tablist
 73694       }
 71992         // tabbable when it is a scrolling container.
 73695     }),
 71993         tabIndex: (_props$tabIndex = props.tabIndex) !== null && _props$tabIndex !== void 0 ? _props$tabIndex : -1
       
 71994       });
       
 71995     },
 73696     onBlur: onBlur,
 71996     onBlur: onBlur,
       
 71997     "data-select-on-move": selectOnMove ? 'true' : 'false',
 73697     ...otherProps,
 71998     ...otherProps,
 73698     style: {
 71999     className: dist_clsx(overflow.first && 'is-overflowing-first', overflow.last && 'is-overflowing-last', otherProps.className),
 73699       '--indicator-left': `${indicatorPosition.left}px`,
       
 73700       '--indicator-top': `${indicatorPosition.top}px`,
       
 73701       '--indicator-width': `${indicatorPosition.width}px`,
       
 73702       '--indicator-height': `${indicatorPosition.height}px`,
       
 73703       ...otherProps.style
       
 73704     },
       
 73705     className: dist_clsx(animationEnabled ? 'is-animation-enabled' : '', otherProps.className),
       
 73706     children: children
 72000     children: children
 73707   });
 72001   });
 73708 });
 72002 });
 73709 
 72003 
 73710 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/tabpanel.js
 72004 ;// ./node_modules/@wordpress/components/build-module/tabs/tabpanel.js
       
 72005 /**
       
 72006  * External dependencies
       
 72007  */
       
 72008 
       
 72009 
 73711 /**
 72010 /**
 73712  * WordPress dependencies
 72011  * WordPress dependencies
 73713  */
 72012  */
 73714 
       
 73715 
 72013 
 73716 
 72014 
 73717 /**
 72015 /**
 73718  * Internal dependencies
 72016  * Internal dependencies
 73719  */
 72017  */
 73727   tabId,
 72025   tabId,
 73728   focusable = true,
 72026   focusable = true,
 73729   ...otherProps
 72027   ...otherProps
 73730 }, ref) {
 72028 }, ref) {
 73731   const context = useTabsContext();
 72029   const context = useTabsContext();
       
 72030   const selectedId = useStoreState(context?.store, 'selectedId');
 73732   if (!context) {
 72031   if (!context) {
 73733      true ? external_wp_warning_default()('`Tabs.TabPanel` must be wrapped in a `Tabs` component.') : 0;
 72032      true ? external_wp_warning_default()('`Tabs.TabPanel` must be wrapped in a `Tabs` component.') : 0;
 73734     return null;
 72033     return null;
 73735   }
 72034   }
 73736   const {
 72035   const {
 73737     store,
 72036     store,
 73738     instanceId
 72037     instanceId
 73739   } = context;
 72038   } = context;
 73740   const instancedTabId = `${instanceId}-${tabId}`;
 72039   const instancedTabId = `${instanceId}-${tabId}`;
 73741   const selectedId = store.useState(state => state.selectedId);
       
 73742   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_TabPanel, {
 72040   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(styles_TabPanel, {
 73743     ref: ref,
 72041     ref: ref,
 73744     store: store
 72042     store: store
 73745     // For TabPanel, the id passed here is the id attribute of the DOM
 72043     // For TabPanel, the id passed here is the id attribute of the DOM
 73746     // element.
 72044     // element.
 73752     ...otherProps,
 72050     ...otherProps,
 73753     children: selectedId === instancedTabId && children
 72051     children: selectedId === instancedTabId && children
 73754   });
 72052   });
 73755 });
 72053 });
 73756 
 72054 
 73757 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tabs/index.js
 72055 ;// ./node_modules/@wordpress/components/build-module/tabs/index.js
 73758 /**
 72056 /**
 73759  * External dependencies
 72057  * External dependencies
 73760  */
 72058  */
 73761 // eslint-disable-next-line no-restricted-imports
       
 73762 
 72059 
 73763 
 72060 
 73764 /**
 72061 /**
 73765  * WordPress dependencies
 72062  * WordPress dependencies
 73766  */
 72063  */
 73767 
 72064 
 73768 
 72065 
 73769 
 72066 
       
 72067 
 73770 /**
 72068 /**
 73771  * Internal dependencies
 72069  * Internal dependencies
 73772  */
 72070  */
 73773 
 72071 
 73774 
 72072 
 73775 
 72073 
 73776 
 72074 
 73777 
 72075 
 73778 
 72076 
 73779 function Tabs({
 72077 function externalToInternalTabId(externalId, instanceId) {
       
 72078   return externalId && `${instanceId}-${externalId}`;
       
 72079 }
       
 72080 function internalToExternalTabId(internalId, instanceId) {
       
 72081   return typeof internalId === 'string' ? internalId.replace(`${instanceId}-`, '') : internalId;
       
 72082 }
       
 72083 
       
 72084 /**
       
 72085  * Tabs is a collection of React components that combine to render
       
 72086  * an [ARIA-compliant tabs pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/).
       
 72087  *
       
 72088  * Tabs organizes content across different screens, data sets, and interactions.
       
 72089  * It has two sections: a list of tabs, and the view to show when a tab is chosen.
       
 72090  *
       
 72091  * `Tabs` itself is a wrapper component and context provider.
       
 72092  * It is responsible for managing the state of the tabs, and rendering one instance of the `Tabs.TabList` component and one or more instances of the `Tab.TabPanel` component.
       
 72093  */
       
 72094 const Tabs = Object.assign(function Tabs({
 73780   selectOnMove = true,
 72095   selectOnMove = true,
 73781   defaultTabId,
 72096   defaultTabId,
 73782   orientation = 'horizontal',
 72097   orientation = 'horizontal',
 73783   onSelect,
 72098   onSelect,
 73784   children,
 72099   children,
 73785   selectedTabId
 72100   selectedTabId,
       
 72101   activeTabId,
       
 72102   defaultActiveTabId,
       
 72103   onActiveTabIdChange
 73786 }) {
 72104 }) {
 73787   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(Tabs, 'tabs');
 72105   const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(Tabs, 'tabs');
 73788   const store = useTabStore({
 72106   const store = useTabStore({
 73789     selectOnMove,
 72107     selectOnMove,
 73790     orientation,
 72108     orientation,
 73791     defaultSelectedId: defaultTabId && `${instanceId}-${defaultTabId}`,
 72109     defaultSelectedId: externalToInternalTabId(defaultTabId, instanceId),
 73792     setSelectedId: selectedId => {
 72110     setSelectedId: newSelectedId => {
 73793       const strippedDownId = typeof selectedId === 'string' ? selectedId.replace(`${instanceId}-`, '') : selectedId;
 72111       onSelect?.(internalToExternalTabId(newSelectedId, instanceId));
 73794       onSelect?.(strippedDownId);
       
 73795     },
 72112     },
 73796     selectedId: selectedTabId && `${instanceId}-${selectedTabId}`
 72113     selectedId: externalToInternalTabId(selectedTabId, instanceId),
       
 72114     defaultActiveId: externalToInternalTabId(defaultActiveTabId, instanceId),
       
 72115     setActiveId: newActiveId => {
       
 72116       onActiveTabIdChange?.(internalToExternalTabId(newActiveId, instanceId));
       
 72117     },
       
 72118     activeId: externalToInternalTabId(activeTabId, instanceId),
       
 72119     rtl: (0,external_wp_i18n_namespaceObject.isRTL)()
 73797   });
 72120   });
 73798   const isControlled = selectedTabId !== undefined;
       
 73799   const {
 72121   const {
 73800     items,
 72122     items,
 73801     selectedId,
       
 73802     activeId
 72123     activeId
 73803   } = store.useState();
 72124   } = useStoreState(store);
 73804   const {
 72125   const {
 73805     setSelectedId,
       
 73806     setActiveId
 72126     setActiveId
 73807   } = store;
 72127   } = store;
 73808 
       
 73809   // Keep track of whether tabs have been populated. This is used to prevent
       
 73810   // certain effects from firing too early while tab data and relevant
       
 73811   // variables are undefined during the initial render.
       
 73812   const tabsHavePopulated = (0,external_wp_element_namespaceObject.useRef)(false);
       
 73813   if (items.length > 0) {
       
 73814     tabsHavePopulated.current = true;
       
 73815   }
       
 73816   const selectedTab = items.find(item => item.id === selectedId);
       
 73817   const firstEnabledTab = items.find(item => {
       
 73818     // Ariakit internally refers to disabled tabs as `dimmed`.
       
 73819     return !item.dimmed;
       
 73820   });
       
 73821   const initialTab = items.find(item => item.id === `${instanceId}-${defaultTabId}`);
       
 73822 
       
 73823   // Handle selecting the initial tab.
       
 73824   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 73825     if (isControlled) {
       
 73826       return;
       
 73827     }
       
 73828 
       
 73829     // Wait for the denoted initial tab to be declared before making a
       
 73830     // selection. This ensures that if a tab is declared lazily it can
       
 73831     // still receive initial selection, as well as ensuring no tab is
       
 73832     // selected if an invalid `defaultTabId` is provided.
       
 73833     if (defaultTabId && !initialTab) {
       
 73834       return;
       
 73835     }
       
 73836 
       
 73837     // If the currently selected tab is missing (i.e. removed from the DOM),
       
 73838     // fall back to the initial tab or the first enabled tab if there is
       
 73839     // one. Otherwise, no tab should be selected.
       
 73840     if (!items.find(item => item.id === selectedId)) {
       
 73841       if (initialTab && !initialTab.dimmed) {
       
 73842         setSelectedId(initialTab?.id);
       
 73843         return;
       
 73844       }
       
 73845       if (firstEnabledTab) {
       
 73846         setSelectedId(firstEnabledTab.id);
       
 73847       } else if (tabsHavePopulated.current) {
       
 73848         setSelectedId(null);
       
 73849       }
       
 73850     }
       
 73851   }, [firstEnabledTab, initialTab, defaultTabId, isControlled, items, selectedId, setSelectedId]);
       
 73852 
       
 73853   // Handle the currently selected tab becoming disabled.
       
 73854   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 73855     if (!selectedTab?.dimmed) {
       
 73856       return;
       
 73857     }
       
 73858 
       
 73859     // In controlled mode, we trust that disabling tabs is done
       
 73860     // intentionally, and don't select a new tab automatically.
       
 73861     if (isControlled) {
       
 73862       setSelectedId(null);
       
 73863       return;
       
 73864     }
       
 73865 
       
 73866     // If the currently selected tab becomes disabled, fall back to the
       
 73867     // `defaultTabId` if possible. Otherwise select the first
       
 73868     // enabled tab (if there is one).
       
 73869     if (initialTab && !initialTab.dimmed) {
       
 73870       setSelectedId(initialTab.id);
       
 73871       return;
       
 73872     }
       
 73873     if (firstEnabledTab) {
       
 73874       setSelectedId(firstEnabledTab.id);
       
 73875     }
       
 73876   }, [firstEnabledTab, initialTab, isControlled, selectedTab?.dimmed, setSelectedId]);
       
 73877 
       
 73878   // Clear `selectedId` if the active tab is removed from the DOM in controlled mode.
       
 73879   (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
       
 73880     if (!isControlled) {
       
 73881       return;
       
 73882     }
       
 73883 
       
 73884     // Once the tabs have populated, if the `selectedTabId` still can't be
       
 73885     // found, clear the selection.
       
 73886     if (tabsHavePopulated.current && !!selectedTabId && !selectedTab) {
       
 73887       setSelectedId(null);
       
 73888     }
       
 73889   }, [isControlled, selectedTab, selectedTabId, setSelectedId]);
       
 73890   (0,external_wp_element_namespaceObject.useEffect)(() => {
 72128   (0,external_wp_element_namespaceObject.useEffect)(() => {
 73891     // If there is no active tab, fallback to place focus on the first enabled tab
       
 73892     // so there is always an active element
       
 73893     if (selectedTabId === null && !activeId && firstEnabledTab?.id) {
       
 73894       setActiveId(firstEnabledTab.id);
       
 73895     }
       
 73896   }, [selectedTabId, activeId, firstEnabledTab?.id, setActiveId]);
       
 73897   (0,external_wp_element_namespaceObject.useEffect)(() => {
       
 73898     if (!isControlled) {
       
 73899       return;
       
 73900     }
       
 73901     requestAnimationFrame(() => {
 72129     requestAnimationFrame(() => {
 73902       const focusedElement = items?.[0]?.element?.ownerDocument.activeElement;
 72130       const focusedElement = items?.[0]?.element?.ownerDocument.activeElement;
 73903       if (!focusedElement || !items.some(item => focusedElement === item.element)) {
 72131       if (!focusedElement || !items.some(item => focusedElement === item.element)) {
 73904         return; // Return early if no tabs are focused.
 72132         return; // Return early if no tabs are focused.
 73905       }
 72133       }
 73910       // arrow keys.
 72138       // arrow keys.
 73911       if (activeId !== focusedElement.id) {
 72139       if (activeId !== focusedElement.id) {
 73912         setActiveId(focusedElement.id);
 72140         setActiveId(focusedElement.id);
 73913       }
 72141       }
 73914     });
 72142     });
 73915   }, [activeId, isControlled, items, setActiveId]);
 72143   }, [activeId, items, setActiveId]);
 73916   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 72144   const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
 73917     store,
 72145     store,
 73918     instanceId
 72146     instanceId
 73919   }), [store, instanceId]);
 72147   }), [store, instanceId]);
 73920   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabsContext.Provider, {
 72148   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TabsContext.Provider, {
 73921     value: contextValue,
 72149     value: contextValue,
 73922     children: children
 72150     children: children
 73923   });
 72151   });
 73924 }
 72152 }, {
 73925 Tabs.TabList = TabList;
 72153   /**
 73926 Tabs.Tab = tab_Tab;
 72154    * Renders a single tab.
 73927 Tabs.TabPanel = tabpanel_TabPanel;
 72155    *
 73928 Tabs.Context = TabsContext;
 72156    * The currently active tab receives default styling that can be
 73929 /* harmony default export */ const tabs = (Tabs);
 72157    * overridden with CSS targeting `[aria-selected="true"]`.
 73930 
 72158    */
 73931 ;// CONCATENATED MODULE: external ["wp","privateApis"]
 72159   Tab: Object.assign(tab_Tab, {
       
 72160     displayName: 'Tabs.Tab'
       
 72161   }),
       
 72162   /**
       
 72163    * A wrapper component for the `Tab` components.
       
 72164    *
       
 72165    * It is responsible for rendering the list of tabs.
       
 72166    */
       
 72167   TabList: Object.assign(tablist_TabList, {
       
 72168     displayName: 'Tabs.TabList'
       
 72169   }),
       
 72170   /**
       
 72171    * Renders the content to display for a single tab once that tab is selected.
       
 72172    */
       
 72173   TabPanel: Object.assign(tabpanel_TabPanel, {
       
 72174     displayName: 'Tabs.TabPanel'
       
 72175   }),
       
 72176   Context: Object.assign(TabsContext, {
       
 72177     displayName: 'Tabs.Context'
       
 72178   })
       
 72179 });
       
 72180 
       
 72181 ;// external ["wp","privateApis"]
 73932 const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
 72182 const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"];
 73933 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/lock-unlock.js
 72183 ;// ./node_modules/@wordpress/components/build-module/lock-unlock.js
 73934 /**
 72184 /**
 73935  * WordPress dependencies
 72185  * WordPress dependencies
 73936  */
 72186  */
 73937 
 72187 
 73938 const {
 72188 const {
 73939   lock,
 72189   lock,
 73940   unlock
 72190   unlock
 73941 } = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/components');
 72191 } = (0,external_wp_privateApis_namespaceObject.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/components');
 73942 
 72192 
 73943 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/private-apis.js
 72193 ;// ./node_modules/@wordpress/icons/build-module/library/info.js
 73944 /**
 72194 /**
 73945  * WordPress dependencies
 72195  * WordPress dependencies
 73946  */
 72196  */
 73947 
 72197 
       
 72198 
       
 72199 const info = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 72200   viewBox: "0 0 24 24",
       
 72201   xmlns: "http://www.w3.org/2000/svg",
       
 72202   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 72203     fillRule: "evenodd",
       
 72204     clipRule: "evenodd",
       
 72205     d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"
       
 72206   })
       
 72207 });
       
 72208 /* harmony default export */ const library_info = (info);
       
 72209 
       
 72210 ;// ./node_modules/@wordpress/icons/build-module/library/published.js
       
 72211 /**
       
 72212  * WordPress dependencies
       
 72213  */
       
 72214 
       
 72215 
       
 72216 const published = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 72217   xmlns: "http://www.w3.org/2000/svg",
       
 72218   viewBox: "0 0 24 24",
       
 72219   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 72220     fillRule: "evenodd",
       
 72221     clipRule: "evenodd",
       
 72222     d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"
       
 72223   })
       
 72224 });
       
 72225 /* harmony default export */ const library_published = (published);
       
 72226 
       
 72227 ;// ./node_modules/@wordpress/icons/build-module/library/caution.js
       
 72228 /**
       
 72229  * WordPress dependencies
       
 72230  */
       
 72231 
       
 72232 
       
 72233 const caution = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 72234   viewBox: "0 0 24 24",
       
 72235   xmlns: "http://www.w3.org/2000/svg",
       
 72236   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 72237     fillRule: "evenodd",
       
 72238     clipRule: "evenodd",
       
 72239     d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"
       
 72240   })
       
 72241 });
       
 72242 /* harmony default export */ const library_caution = (caution);
       
 72243 
       
 72244 ;// ./node_modules/@wordpress/icons/build-module/library/error.js
       
 72245 /**
       
 72246  * WordPress dependencies
       
 72247  */
       
 72248 
       
 72249 
       
 72250 const error = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
       
 72251   viewBox: "0 0 24 24",
       
 72252   xmlns: "http://www.w3.org/2000/svg",
       
 72253   children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
       
 72254     fillRule: "evenodd",
       
 72255     clipRule: "evenodd",
       
 72256     d: "M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"
       
 72257   })
       
 72258 });
       
 72259 /* harmony default export */ const library_error = (error);
       
 72260 
       
 72261 ;// ./node_modules/@wordpress/components/build-module/badge/index.js
       
 72262 /**
       
 72263  * External dependencies
       
 72264  */
       
 72265 
       
 72266 
       
 72267 /**
       
 72268  * WordPress dependencies
       
 72269  */
       
 72270 
       
 72271 
 73948 /**
 72272 /**
 73949  * Internal dependencies
 72273  * Internal dependencies
 73950  */
 72274  */
 73951 
 72275 
       
 72276 
       
 72277 
       
 72278 /**
       
 72279  * Returns an icon based on the badge context.
       
 72280  *
       
 72281  * @return The corresponding icon for the provided context.
       
 72282  */
       
 72283 
       
 72284 function contextBasedIcon(intent = 'default') {
       
 72285   switch (intent) {
       
 72286     case 'info':
       
 72287       return library_info;
       
 72288     case 'success':
       
 72289       return library_published;
       
 72290     case 'warning':
       
 72291       return library_caution;
       
 72292     case 'error':
       
 72293       return library_error;
       
 72294     default:
       
 72295       return null;
       
 72296   }
       
 72297 }
       
 72298 function Badge({
       
 72299   className,
       
 72300   intent = 'default',
       
 72301   children,
       
 72302   ...props
       
 72303 }) {
       
 72304   const icon = contextBasedIcon(intent);
       
 72305   const hasIcon = !!icon;
       
 72306   return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("span", {
       
 72307     className: dist_clsx('components-badge', className, {
       
 72308       [`is-${intent}`]: intent,
       
 72309       'has-icon': hasIcon
       
 72310     }),
       
 72311     ...props,
       
 72312     children: [hasIcon && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_icon, {
       
 72313       icon: icon,
       
 72314       size: 16,
       
 72315       fill: "currentColor",
       
 72316       className: "components-badge__icon"
       
 72317     }), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
       
 72318       className: "components-badge__content",
       
 72319       children: children
       
 72320     })]
       
 72321   });
       
 72322 }
       
 72323 /* harmony default export */ const badge = (Badge);
       
 72324 
       
 72325 ;// ./node_modules/@wordpress/components/build-module/private-apis.js
       
 72326 /**
       
 72327  * Internal dependencies
       
 72328  */
 73952 
 72329 
 73953 
 72330 
 73954 
 72331 
 73955 
 72332 
 73956 
 72333 
 73958 
 72335 
 73959 
 72336 
 73960 
 72337 
 73961 const privateApis = {};
 72338 const privateApis = {};
 73962 lock(privateApis, {
 72339 lock(privateApis, {
 73963   CompositeV2: Composite,
       
 73964   CompositeGroupV2: CompositeGroup,
       
 73965   CompositeItemV2: CompositeItem,
       
 73966   CompositeRowV2: CompositeRow,
       
 73967   useCompositeStoreV2: useCompositeStore,
       
 73968   CustomSelectControl: CustomSelectControl,
       
 73969   __experimentalPopoverLegacyPositionToPlacement: positionToPlacement,
 72340   __experimentalPopoverLegacyPositionToPlacement: positionToPlacement,
 73970   createPrivateSlotFill: createPrivateSlotFill,
       
 73971   ComponentsContext: ComponentsContext,
 72341   ComponentsContext: ComponentsContext,
 73972   Tabs: tabs,
 72342   Tabs: Tabs,
 73973   Theme: theme,
 72343   Theme: theme,
 73974   DropdownMenuV2: dropdown_menu_v2_DropdownMenu,
 72344   Menu: menu_Menu,
 73975   DropdownMenuGroupV2: DropdownMenuGroup,
 72345   kebabCase: kebabCase,
 73976   DropdownMenuItemV2: DropdownMenuItem,
 72346   withIgnoreIMEEvents: withIgnoreIMEEvents,
 73977   DropdownMenuCheckboxItemV2: DropdownMenuCheckboxItem,
 72347   Badge: badge
 73978   DropdownMenuRadioItemV2: DropdownMenuRadioItem,
       
 73979   DropdownMenuSeparatorV2: DropdownMenuSeparator,
       
 73980   DropdownMenuItemLabelV2: DropdownMenuItemLabel,
       
 73981   DropdownMenuItemHelpTextV2: DropdownMenuItemHelpText,
       
 73982   kebabCase: kebabCase
       
 73983 });
 72348 });
 73984 
 72349 
 73985 ;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/index.js
 72350 ;// ./node_modules/@wordpress/components/build-module/index.js
 73986 // Primitives.
 72351 // Primitives.
 73987 
 72352 
 73988 
 72353 
 73989 // Components.
 72354 // Components.
       
 72355 
       
 72356 
 73990 
 72357 
 73991 
 72358 
 73992 
 72359 
 73993 
 72360 
 73994 
 72361