55 lines
695 KiB
JavaScript
55 lines
695 KiB
JavaScript
/*! This file is auto-generated */
|
||
(()=>{var e,t,n={4403:(e,t)=>{var n;
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},1919:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},1345:(e,t,n)=>{"use strict";var r=n(5022);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,s=n.alignWithLeft,l=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),m=r.offset(e),p=r.outerHeight(e),h=r.outerWidth(e),g=void 0,v=void 0,b=void 0,y=void 0,x=void 0,w=void 0,E=void 0,_=void 0,S=void 0,C=void 0;f?(E=t,C=r.height(E),S=r.width(E),_={left:r.scrollLeft(E),top:r.scrollTop(E)},x={left:m.left-_.left-c,top:m.top-_.top-l},w={left:m.left+h-(_.left+S)+d,top:m.top+p-(_.top+C)+u},y=_):(g=r.offset(t),v=t.clientHeight,b=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},x={left:m.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:m.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},w={left:m.left+h-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:m.top+p-(g.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),x.top<0||w.top>0?!0===a?r.scrollTop(t,y.top+x.top):!1===a?r.scrollTop(t,y.top+w.top):x.top<0?r.scrollTop(t,y.top+x.top):r.scrollTop(t,y.top+w.top):i||((a=void 0===a||!!a)?r.scrollTop(t,y.top+x.top):r.scrollTop(t,y.top+w.top)),o&&(x.left<0||w.left>0?!0===s?r.scrollLeft(t,y.left+x.left):!1===s?r.scrollLeft(t,y.left+w.left):x.left<0?r.scrollLeft(t,y.left+x.left):r.scrollLeft(t,y.left+w.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+x.left):r.scrollLeft(t,y.left+w.left)))}},5425:(e,t,n)=>{"use strict";e.exports=n(1345)},5022:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function o(e){return r(e)}function i(e){return r(e,!0)}function a(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=o(r),t.top+=i(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",d="left";var f=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[c]&&e[c][t];if(s.test(n)&&!l.test(t)){var r=e.style,o=r[d],i=e[u][d];e[u][d]=e[c][d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e[u][d]=i}return""===n?"auto":n});var h=["margin","border","padding"],g=-1,v=2,b=1;function y(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,s))||0}return r}function x(e){return null!=e&&e==e.window}var w={};function E(e,t,n){if(x(e))return"width"===t?w.viewportWidth(e):w.viewportHeight(e);if(9===e.nodeType)return"width"===t?w.docWidth(e):w.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),p(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?b:g);var s=void 0!==o||i,l=o||a;if(n===g)return s?l-y(e,["border","padding"],r):a;if(s){var c=n===v?-y(e,["border"],r):y(e,["margin"],r);return l+(n===b?0:c)}return a+y(e,h.slice(n),r)}m(["Width","Height"],(function(e){w["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],w["viewport"+e](n))},w["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var _={position:"absolute",visibility:"hidden",display:"block"};function S(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,_,(function(){t=E.apply(void 0,n)})),t}function C(e,t,r){var o=r;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&C(e,i,t[i])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);w["outer"+t]=function(t,n){return t&&S(t,e,n?0:b)};var n="width"===e?["Left","Right"]:["Top","Bottom"];w[e]=function(t,r){if(void 0===r)return t&&S(t,e,g);if(t){f(t);return p(t)&&(r+=y(t,["padding","border"],n)),C(t,e,r)}}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===C(e,"position")&&(e.style.position="relative");var n=a(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(C(e,i))||0,r[i]=o+t[i]-n[i]);C(e,r)}(e,t)},isWindow:x,each:m,css:C,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(x(e)){if(void 0===t)return o(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(x(e)){if(void 0===t)return i(e);window.scrollTo(o(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},w)},9214:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,m=60116,p=60121,h=60122,g=60117,v=60129,b=60131;
|
||
/** @license React v17.0.2
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),l=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),m=y("react.lazy"),p=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case m:case f:case s:return e;default:return t}}case r:return t}}}},2797:(e,t,n)=>{"use strict";n(9214)},5619:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},7115:(e,t)=>{var n={};n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=f(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,s)||i("repeating-linear-gradient",e.repeatingLinearGradient,s)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return a(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:f(m)}}))}function a(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function s(){return v("directional",e.sideOrCorner,1)||v("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=v("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=v("shape",/^(ellipse)/i,0);e&&(e.style=h()||u());return e}();if(e)e.at=function(){if(v("position",/^at/,0)){var e=d();return e||n("Missing positioning value"),e}}();else{var t=d();t&&(e={type:"default-radial",at:t})}return e}function u(){return v("extent-keyword",e.extentKeywords,1)}function d(){var e={x:h(),y:h()};if(e.x||e.y)return{type:"position",value:e}}function f(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function m(){var t=v("hex",e.hexColor,1)||a(e.rgbaColor,(function(){return{type:"rgba",value:f(p)}}))||a(e.rgbColor,(function(){return{type:"rgb",value:f(p)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=h(),t}function p(){return b(e.number)[1]}function h(){return v("%",e.percentageValue,1)||v("position-keyword",e.positionKeywords,1)||g()}function g(){return v("px",e.pixelValue,1)||v("em",e.emValue,1)}function v(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&y(r[0].length),(n=e.exec(t))&&y(n[0].length),n}function y(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},3138:e=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?r:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},1281:(e,t,n)=>{"use strict";var r=n(1892),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=m(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),h=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||h&&h[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},7651:(e,t)=>{"use strict";
|
||
/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case m:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},1892:(e,t,n)=>{"use strict";e.exports=n(7651)},5372:(e,t,n)=>{"use strict";var r=n(9567);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2652:(e,t,n)=>{e.exports=n(5372)()},9567:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2455:(e,t,n)=>{"use strict";
|
||
/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var r=n(9196),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},7557:(e,t,n)=>{"use strict";e.exports=n(2455)},4793:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var a=function(e){return e.replace(r,i)};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a},7755:(e,t,n)=>{"use strict";
|
||
/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var r=n(9196);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},635:(e,t,n)=>{"use strict";e.exports=n(7755)},9196:e=>{"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AnglePickerControl:()=>Ny,Animate:()=>ml,Autocomplete:()=>xw,BaseControl:()=>ty,BlockQuotation:()=>n.BlockQuotation,Button:()=>cy,ButtonGroup:()=>Mk,Card:()=>fP,CardBody:()=>EP,CardDivider:()=>RP,CardFooter:()=>NP,CardHeader:()=>AP,CardMedia:()=>zP,CheckboxControl:()=>LP,Circle:()=>n.Circle,ClipboardButton:()=>BP,ColorIndicator:()=>IE,ColorPalette:()=>YS,ColorPicker:()=>PS,ComboboxControl:()=>CI,CustomGradientPicker:()=>MT,CustomSelectControl:()=>bM,Dashicon:()=>iy,DatePicker:()=>lD,DateTimePicker:()=>RD,Disabled:()=>FD,Draggable:()=>VD,DropZone:()=>$D,DropZoneProvider:()=>WD,Dropdown:()=>AE,DropdownMenu:()=>KT,DuotonePicker:()=>JD,DuotoneSwatch:()=>qD,ExternalLink:()=>tA,Fill:()=>iw,Flex:()=>Bh,FlexBlock:()=>Vh,FlexItem:()=>eg,FocalPointPicker:()=>PA,FocusReturnProvider:()=>ej,FocusableIframe:()=>TA,FontSizePicker:()=>WA,FormFileUpload:()=>UA,FormToggle:()=>qA,FormTokenField:()=>QA,G:()=>n.G,GradientPicker:()=>zT,Guide:()=>nO,GuidePage:()=>rO,HorizontalRule:()=>n.HorizontalRule,Icon:()=>ay,IconButton:()=>oO,IsolatedEventContainer:()=>FB,KeyboardShortcuts:()=>cO,Line:()=>n.Line,MenuGroup:()=>uO,MenuItem:()=>fO,MenuItemsChoice:()=>pO,Modal:()=>$I,NavigableMenu:()=>UT,Notice:()=>zz,NoticeList:()=>Fz,Panel:()=>jz,PanelBody:()=>Uz,PanelHeader:()=>Bz,PanelRow:()=>Gz,Path:()=>n.Path,Placeholder:()=>Yz,Polygon:()=>n.Polygon,Popover:()=>pw,QueryControls:()=>oL,RadioControl:()=>uL,RangeControl:()=>E_,Rect:()=>n.Rect,ResizableBox:()=>KL,ResponsiveWrapper:()=>XL,SVG:()=>n.SVG,SandBox:()=>JL,ScrollLock:()=>ex,SearchControl:()=>iz,SelectControl:()=>WE,Slot:()=>aw,SlotFillProvider:()=>sw,Snackbar:()=>eF,SnackbarList:()=>nF,Spinner:()=>lF,TabPanel:()=>SF,TabbableContainer:()=>hO,TextControl:()=>kF,TextHighlight:()=>AF,TextareaControl:()=>DF,TimePicker:()=>kD,Tip:()=>zF,ToggleControl:()=>LF,Toolbar:()=>nB,ToolbarButton:()=>qF,ToolbarDropdownMenu:()=>rB,ToolbarGroup:()=>XF,ToolbarItem:()=>UF,Tooltip:()=>Qo,TreeSelect:()=>Qz,VisuallyHidden:()=>vs,__experimentalAlignmentMatrixControl:()=>ul,__experimentalApplyValueToSides:()=>yk,__experimentalBorderBoxControl:()=>qC,__experimentalBorderControl:()=>TC,__experimentalBoxControl:()=>Rk,__experimentalConfirmDialog:()=>UI,__experimentalDimensionControl:()=>ND,__experimentalDivider:()=>TP,__experimentalDropdownContentWrapper:()=>HS,__experimentalElevation:()=>Ok,__experimentalGrid:()=>MC,__experimentalHStack:()=>_y,__experimentalHasSplitBorders:()=>jC,__experimentalHeading:()=>BS,__experimentalInputControl:()=>oy,__experimentalInputControlPrefixWrapper:()=>sO,__experimentalInputControlSuffixWrapper:()=>OE,__experimentalIsDefinedBorder:()=>BC,__experimentalIsEmptyBorder:()=>FC,__experimentalItem:()=>aO,__experimentalItemGroup:()=>nT,__experimentalNavigation:()=>zO,__experimentalNavigationBackButton:()=>jO,__experimentalNavigationGroup:()=>$O,__experimentalNavigationItem:()=>JO,__experimentalNavigationMenu:()=>cz,__experimentalNavigatorBackButton:()=>Nz,__experimentalNavigatorButton:()=>Rz,__experimentalNavigatorProvider:()=>Sz,__experimentalNavigatorScreen:()=>Pz,__experimentalNavigatorToParentButton:()=>Dz,__experimentalNumberControl:()=>ky,__experimentalPaletteEdit:()=>fI,__experimentalParseQuantityAndUnitFromRawValue:()=>gC,__experimentalRadio:()=>sL,__experimentalRadioGroup:()=>cL,__experimentalScrollable:()=>xP,__experimentalSpacer:()=>Zh,__experimentalStyleProvider:()=>Xx,__experimentalSurface:()=>cF,__experimentalText:()=>cv,__experimentalToggleGroupControl:()=>lE,__experimentalToggleGroupControlOption:()=>BA,__experimentalToggleGroupControlOptionIcon:()=>kE,__experimentalToolbarContext:()=>WF,__experimentalToolsPanel:()=>_B,__experimentalToolsPanelContext:()=>pB,__experimentalToolsPanelItem:()=>kB,__experimentalTreeGrid:()=>NB,__experimentalTreeGridCell:()=>zB,__experimentalTreeGridItem:()=>OB,__experimentalTreeGridRow:()=>DB,__experimentalTruncate:()=>LS,__experimentalUnitControl:()=>_C,__experimentalUseCustomUnits:()=>vC,__experimentalUseNavigator:()=>Tz,__experimentalUseSlot:()=>Nx,__experimentalUseSlotFills:()=>BB,__experimentalVStack:()=>zS,__experimentalView:()=>gs,__experimentalZStack:()=>WB,__unstableAnimatePresence:()=>Ch,__unstableComposite:()=>DI,__unstableCompositeGroup:()=>AI,__unstableCompositeItem:()=>OI,__unstableDisclosureContent:()=>BD,__unstableGetAnimateClassName:()=>fl,__unstableMotion:()=>vh,__unstableMotionContext:()=>hl,__unstableUseAutocompleteProps:()=>yw,__unstableUseCompositeState:()=>zI,__unstableUseNavigateRegions:()=>GB,createSlotFill:()=>lw,navigateRegions:()=>qB,privateApis:()=>yH,useBaseControlProps:()=>ww,withConstrainedTabbing:()=>YB,withFallbackStyles:()=>KB,withFilters:()=>JB,withFocusOutside:()=>wI,withFocusReturn:()=>QB,withNotices:()=>tj,withSpokenMessages:()=>ez});var e={};o.r(e),o.d(e,{Text:()=>qg,block:()=>Yg,destructive:()=>Xg,highlighterText:()=>Jg,muted:()=>Zg,positive:()=>Kg,upperCase:()=>Qg});var t={};o.r(t),o.d(t,{ButtonContentView:()=>gE,LabelView:()=>dE,Uz:()=>bE,Ji:()=>mE,IA:()=>fE});const n=window.wp.primitives;var r=o(9196),a=o.t(r,2),s=o.n(r),l=o(4403),c=o.n(l);const u=window.wp.i18n,d=window.wp.compose;var f=(0,r.createContext)(!0),m=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(g)for(var n of g(t))b.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>p(e,h(t)),E=(e,t)=>{var n={};for(var r in e)v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&g)for(var r of g(e))t.indexOf(r)<0&&b.call(e,r)&&(n[r]=e[r]);return n},_=Object.defineProperty,S=Object.defineProperties,C=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&I(e,n,t[n]);if(k)for(var n of k(t))T.call(t,n)&&I(e,n,t[n]);return e},M=(e,t)=>S(e,C(t)),N=(e,t)=>{var n={};for(var r in e)P.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&k)for(var r of k(e))t.indexOf(r)<0&&T.call(e,r)&&(n[r]=e[r]);return n};function D(...e){}function A(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function O(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function z(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function L(e){return e}function F(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function B(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function j(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function V(...e){for(const t of e)if(void 0!==t)return t}function H(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function $(e){return function(e){return!!e&&!!(0,r.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var W,U="undefined"!=typeof window&&!!(null==(W=window.document)?void 0:W.createElement);function G(e){return e?e.ownerDocument||e:document}function q(e,t=!1){const{activeElement:n}=G(e);if(!(null==n?void 0:n.nodeName))return null;if(K(n)&&n.contentDocument)return q(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=G(n).getElementById(e);if(t)return t}}return n}function Y(e,t){return e===t||e.contains(t)}function K(e){return"IFRAME"===e.tagName}function X(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Z.indexOf(e.type)}var Z=["button","color","file","image","reset","submit"];function J(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Q(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function ee(e,t){if("closest"in e)return e.closest(t);do{if(J(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function te(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function ne(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function re(e,t){var n;const r=ne(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[r])?n:t}function oe(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return oe(e.parentElement)||document.scrollingElement||document.body}function ie(){return!!U&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function ae(){return U&&ie()&&/apple/i.test(navigator.vendor)}function se(){return U&&navigator.platform.startsWith("Mac")&&!(U&&navigator.maxTouchPoints)}function le(e){return Boolean(e.currentTarget&&!Y(e.currentTarget,e.target))}function ce(e){return e.target===e.currentTarget}function ue(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=M(R({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function de(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function fe(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Y(n,r)}function me(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function pe(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(pe(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var he=x({},a),ge=he.useId,ve=(he.useDeferredValue,he.useInsertionEffect),be=U?r.useLayoutEffect:r.useEffect;function ye(e){const[t]=(0,r.useState)(e);return t}function xe(e){const t=(0,r.useRef)(e);return be((()=>{t.current=e})),t}function we(e){const t=(0,r.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return ve?ve((()=>{t.current=e})):t.current=e,(0,r.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Ee(...e){return(0,r.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>H(e,t)))}}),e)}function _e(e){if(ge){const t=ge();return e||t}const[t,n]=(0,r.useState)(e);return be((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Se(e,t){const n=e=>{if("string"==typeof e)return e},[o,i]=(0,r.useState)((()=>n(t)));return be((()=>{const r=e&&"current"in e?e.current:e;i((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),o}function Ce(e,t){const n=(0,r.useRef)(!1);(0,r.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,r.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function ke(){return(0,r.useReducer)((()=>[]),[])}function Pe(e){return we("function"==typeof e?e:()=>e)}function Te(e,t,n=[]){const o=(0,r.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return w(x({},e),{wrapElement:o})}function Ie(e=!1,t){const[n,o]=(0,r.useState)(null);return{portalRef:Ee(o,t),portalNode:n,domReady:!e||n}}function Re(e,t,n){const o=e.onLoadedMetadataCapture,i=(0,r.useMemo)((()=>Object.assign((()=>{}),w(x({},o),{[t]:n}))),[o,t,n]);return[null==o?void 0:o[t],{onLoadedMetadataCapture:i}]}function Me(){(0,r.useEffect)((()=>{pe("mousemove",Oe,!0),pe("mousedown",ze,!0),pe("mouseup",ze,!0),pe("keydown",ze,!0),pe("scroll",ze,!0)}),[]);return we((()=>Ne))}var Ne=!1,De=0,Ae=0;function Oe(e){(function(e){const t=e.movementX||e.screenX-De,n=e.movementY||e.screenY-Ae;return De=e.screenX,Ae=e.screenY,t||n||!1})(e)&&(Ne=!0)}function ze(){Ne=!1}var Le=o(7557);function Fe(e){return r.forwardRef(((t,n)=>e(x({ref:n},t))))}function Be(e){const t=Fe(e);return r.memo(t)}function je(e,t){const n=t,{as:o,wrapElement:i,render:a}=n,s=E(n,["as","wrapElement","render"]);let l;const c=Ee(t.ref,$(a));if(o&&"string"!=typeof o)l=(0,Le.jsx)(o,w(x({},s),{render:a}));else if(r.isValidElement(a)){const e=w(x({},a.props),{ref:c});l=r.cloneElement(a,function(e,t){const n=x({},e);for(const r in t){if(!O(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?x(x({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(s,e))}else if(a)l=a(s);else if("function"==typeof t.children){0;const e=s,{children:n}=e,r=E(e,["children"]);l=t.children(r)}else l=o?(0,Le.jsx)(o,x({},s)):(0,Le.jsx)(e,x({},s));return i?i(l):l}function Ve(e){return(t={})=>{const n=e(t),r={};for(const e in n)O(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function He(e=[],t=[]){const n=r.createContext(void 0),o=r.createContext(void 0),i=()=>r.useContext(n),a=t=>e.reduceRight(((e,n)=>(0,Le.jsx)(n,w(x({},t),{children:e}))),(0,Le.jsx)(n.Provider,x({},t)));return{context:n,scopedContext:o,useContext:i,useScopedContext:(e=!1)=>{const t=r.useContext(o),n=i();return e?t:t||n},useProviderContext:()=>{const e=r.useContext(o),t=i();if(!e||e!==t)return t},ContextProvider:a,ScopedContextProvider:e=>(0,Le.jsx)(a,w(x({},e),{children:t.reduceRight(((t,n)=>(0,Le.jsx)(n,w(x({},e),{children:t}))),(0,Le.jsx)(o.Provider,x({},e)))}))}}var $e="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'])";function We(e){return!!J(e,$e)&&(!!Q(e)&&!ee(e,"[inert]"))}function Ue(e){if(!We(e))return!1;if(function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=q(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function Ge(e,t){const n=Array.from(e.querySelectorAll($e));t&&n.unshift(e);const r=n.filter(We);return r.forEach(((e,t)=>{if(K(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...Ge(n))}})),r}function qe(e,t,n){const r=Array.from(e.querySelectorAll($e)),o=r.filter(Ue);return t&&Ue(e)&&o.unshift(e),o.forEach(((e,t)=>{if(K(e)&&e.contentDocument){const r=qe(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Ye(e,t,n){const[r]=qe(e,t,n);return r||null}function Ke(e,t){return function(e,t,n,r){const o=q(e),i=Ge(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(Ue)||(n?i.find(Ue):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function Xe(e,t){return function(e,t,n,r){const o=q(e),i=Ge(e,t).reverse(),a=i.indexOf(o),s=i.slice(a+1);return s.find(Ue)||(n?i.find(Ue):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function Ze(e){const t=q(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Je(e){const t=q(e);if(!t)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function Qe(e){!Je(e)&&We(e)&&e.focus()}function et(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var tt=ae(),nt=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function rt(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function ot(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function it(e,t){return we((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var at=!0;function st(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(at=!1))}function lt(e){e.metaKey||e.ctrlKey||e.altKey||(at=!0)}var ct=Ve((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:a}=t,s=E(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=(0,r.useRef)(null);(0,r.useEffect)((()=>{n&&(pe("mousedown",st,!0),pe("keydown",lt,!0))}),[n]),tt&&(0,r.useEffect)((()=>{if(!n)return;const e=l.current;if(!e)return;if(!rt(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const c=n&&j(s),u=!!c&&!o,[d,m]=(0,r.useState)(!1);(0,r.useEffect)((()=>{n&&u&&d&&m(!1)}),[n,u,d]),(0,r.useEffect)((()=>{if(!n)return;if(!d)return;const e=l.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{We(e)||m(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const p=it(s.onKeyPressCapture,c),h=it(s.onMouseDownCapture,c),g=it(s.onClickCapture,c),v=s.onMouseDown,b=we((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!tt)return;if(le(e))return;if(!X(t)&&!rt(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),me(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||Qe(t)}))})),y=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Ze(r)&&(null==a||a(e),e.defaultPrevented||m(!0))},_=s.onKeyDownCapture,S=we((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!ce(e))return;const t=e.currentTarget;queueMicrotask((()=>y(e,t)))})),C=s.onFocusCapture,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return void m(!1);const t=e.currentTarget,r=()=>y(e,t);at||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:nt.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?m(!1):me(e.target,"focusout",r)})),P=s.onBlur,T=we((e=>{null==P||P(e),n&&fe(e)&&m(!1)})),I=(0,r.useContext)(f),R=we((e=>{n&&i&&e&&I&&queueMicrotask((()=>{Ze(e)||We(e)&&e.focus()}))})),M=Se(l,s.as),N=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(M),D=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(M),A=u?x({pointerEvents:"none"},s.style):s.style;return s=w(x({"data-focus-visible":n&&d?"":void 0,"data-autofocus":!!i||void 0,"aria-disabled":!!c||void 0},s),{ref:Ee(l,R,s.ref),style:A,tabIndex:ot(n,u,N,D,s.tabIndex),disabled:!(!D||!u)||void 0,contentEditable:c?void 0:s.contentEditable,onKeyPressCapture:p,onClickCapture:g,onMouseDownCapture:h,onMouseDown:b,onKeyDownCapture:S,onFocusCapture:k,onBlur:T})}));Fe((e=>je("div",e=ct(e))));function ut(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?X(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(X(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var dt=Symbol("command"),ft=Ve((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:o=!0}=t,i=E(t,["clickOnEnter","clickOnSpace"]);const a=(0,r.useRef)(null),s=Se(a,i.as),l=i.type,[c,u]=(0,r.useState)((()=>!!s&&X({tagName:s,type:l})));(0,r.useEffect)((()=>{a.current&&u(X(a.current))}),[]);const[d,f]=(0,r.useState)(!1),m=(0,r.useRef)(!1),p=j(i),[h,g]=Re(i,dt,!0),v=i.onKeyDown,b=we((e=>{null==v||v(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(h)return;if(p)return;if(!ce(e))return;if(te(t))return;if(t.isContentEditable)return;const r=n&&"Enter"===e.key,i=o&&" "===e.key,a="Enter"===e.key&&!n,s=" "===e.key&&!o;if(a||s)e.preventDefault();else if(r||i){const n=ut(e);if(r){if(!n){e.preventDefault();const n=e,{view:r}=n,o=E(n,["view"]),i=()=>de(t,o);U&&/firefox\//i.test(navigator.userAgent)?me(t,"keyup",i):queueMicrotask(i)}}else i&&(m.current=!0,n||(e.preventDefault(),f(!0)))}})),y=i.onKeyUp,_=we((e=>{if(null==y||y(e),e.defaultPrevented)return;if(h)return;if(p)return;if(e.metaKey)return;const t=o&&" "===e.key;if(m.current&&t&&(m.current=!1,!ut(e))){e.preventDefault(),f(!1);const t=e.currentTarget,n=e,{view:r}=n,o=E(n,["view"]);queueMicrotask((()=>de(t,o)))}}));return i=w(x(x({"data-active":d?"":void 0,type:c?"button":void 0},g),i),{ref:Ee(a,i.ref),onKeyDown:b,onKeyUp:_}),i=ct(i)}));Fe((e=>je("button",e=ft(e))));var mt=He(),pt=mt.useContext,ht=(mt.useScopedContext,mt.useProviderContext,mt.ContextProvider),gt=mt.ScopedContextProvider,vt=Ve((e=>{var t=e,{store:n,shouldRegisterItem:o=!0,getItem:i=L,element:a}=t,s=E(t,["store","shouldRegisterItem","getItem","element"]);const l=pt();n=n||l;const c=_e(s.id),u=(0,r.useRef)(a);return(0,r.useEffect)((()=>{const e=u.current;if(!c)return;if(!e)return;if(!o)return;const t=i({id:c,element:e});return null==n?void 0:n.renderItem(t)}),[c,o,i,n]),s=w(x({},s),{ref:Ee(u,s.ref)})}));Fe((e=>je("div",vt(e))));var bt={id:null};function yt(e,t){return t&&e.item(t)||null}var xt=Symbol("FOCUS_SILENTLY");function wt(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var Et=He([ht],[gt]),_t=Et.useContext,St=(Et.useScopedContext,Et.useProviderContext),Ct=Et.ContextProvider,kt=Et.ScopedContextProvider,Pt=(0,r.createContext)(void 0),Tt=(0,r.createContext)(void 0);function It(e,t){const n=e.__unstableInternals;return F(n,"Invalid store"),n[t]}function Rt(e,...t){let n=e,r=n,o=Symbol(),i=D;const a=new Set,s=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,m=(e,t,n=c)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),p=(e,i,a=!1)=>{if(!O(n,e))return;const l=A(i,n[e]);if(l===n[e])return;a||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,l)}));const m=n;n=M(R({},n),{[e]:l});const p=Symbol();o=p,s.add(e);const h=(t,r,o)=>{var i;const a=f.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};c.forEach((e=>{h(e,m)})),queueMicrotask((()=>{if(o!==p)return;const e=n;u.forEach((e=>{h(e,r,s)})),r=e,s.clear()}))},h={getState:()=>n,setState:p,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=a.size,r=Symbol();a.add(r);const o=()=>{a.delete(r),a.size||i()};if(e)return o;const s=(c=n,Object.keys(c)).map((e=>z(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&O(r,e))return At(t,[e],(t=>{p(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(Nt);return i=z(...s,...u,...d),o},subscribe:(e,t)=>m(e,t),sync:(e,t)=>(d.set(t,t(n,n)),m(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),m(e,t,u)),pick:e=>Rt(function(e,t){const n={};for(const r of t)O(e,r)&&(n[r]=e[r]);return n}(n,e),h),omit:e=>Rt(function(e,t){const n=R({},e);for(const e of t)O(n,e)&&delete n[e];return n}(n,e),h)}};return h}function Mt(e,...t){if(e)return It(e,"setup")(...t)}function Nt(e,...t){if(e)return It(e,"init")(...t)}function Dt(e,...t){if(e)return It(e,"subscribe")(...t)}function At(e,...t){if(e)return It(e,"sync")(...t)}function Ot(e,...t){if(e)return It(e,"batch")(...t)}function zt(e,...t){if(e)return It(e,"omit")(...t)}function Lt(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?R(R({},e),r):e}),{});return Rt(t,...e)}var Ft=o(635),{useSyncExternalStore:Bt}=Ft,jt=()=>()=>{};function Vt(e,t=L){const n=r.useCallback((t=>e?Dt(e,null,t):jt()),[e]),o=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&O(o,n)?o[n]:void 0};return Bt(n,o,o)}function Ht(e,t,n,r){const o=O(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=xe({value:o,setValue:i});be((()=>At(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),be((()=>{if(void 0!==o)return e.setState(n,o),Ot(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function $t(e,t){const[n,o]=r.useState((()=>e(t)));be((()=>Nt(n)),[n]);const i=r.useCallback((e=>Vt(n,e)),[n]);return[r.useMemo((()=>w(x({},n),{useState:i})),[n,i]),we((()=>{o((n=>e(x(x({},t),n.getState()))))}))]}function Wt(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ut(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=oe(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=yt(t,l))?void 0:o.element;if(!a)continue;const u=Wt(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Gt=Ve((e=>{var t=e,{store:n,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,tabbable:s=!1,getItem:l,"aria-setsize":c,"aria-posinset":u}=t,d=E(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const f=_t();n=n||f;const m=_e(d.id),p=(0,r.useRef)(null),h=(0,r.useContext)(Tt),g=Vt(n,(e=>o||(e&&(null==h?void 0:h.baseElement)&&h.baseElement===e.baseElement?h.id:void 0))),v=j(d)&&!d.accessibleWhenDisabled,b=(0,r.useCallback)((e=>{const t=w(x({},e),{id:m||e.id,rowId:g,disabled:!!v});return l?l(t):t}),[m,g,v,l]),y=d.onFocus,_=(0,r.useRef)(!1),S=we((e=>{if(null==y||y(e),e.defaultPrevented)return;if(le(e))return;if(!m)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!ce(e)&&wt(t,e.target)}(e,n))return;if(t!==m&&n.setActiveId(m),!r)return;if(!ce(e))return;if((i=e.currentTarget).isContentEditable||te(i)||"INPUT"===i.tagName&&!X(i))return;var i;if(!(null==o?void 0:o.isConnected))return;_.current=!0;e.relatedTarget===o||wt(n,e.relatedTarget)?function(e){e[xt]=!0,e.focus({preventScroll:!0})}(o):o.focus()})),C=d.onBlurCapture,k=we((e=>{if(null==C||C(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&_.current&&(_.current=!1,e.preventDefault(),e.stopPropagation())})),P=d.onKeyDown,T=Pe(i),I=Pe(a),R=we((e=>{if(null==P||P(e),e.defaultPrevented)return;if(!ce(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(m),i=!!(null==o?void 0:o.rowId),a="horizontal"!==r.orientation,s="vertical"!==r.orientation,l=()=>!!i||(!!s||(!r.baseElement||!te(r.baseElement))),c={ArrowUp:(i||a)&&n.up,ArrowRight:(i||s)&&n.next,ArrowDown:(i||a)&&n.down,ArrowLeft:(i||s)&&n.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1)},PageUp:()=>Ut(t,n,null==n?void 0:n.up,!0),PageDown:()=>Ut(t,n,null==n?void 0:n.down)}[e.key];if(c){const t=c();if(T(e)||void 0!==t){if(!I(e))return;e.preventDefault(),n.move(t)}}})),M=Vt(n,(e=>(null==e?void 0:e.baseElement)||void 0)),N=(0,r.useMemo)((()=>({id:m,baseElement:M})),[m,M]);d=Te(d,(e=>(0,Le.jsx)(Pt.Provider,{value:N,children:e})),[N]);const D=Vt(n,(e=>!!e&&e.activeId===m)),A=Vt(n,"virtualFocus"),O=function(e,t){const n=t.role,[o,i]=(0,r.useState)(n);return be((()=>{const t=e.current;t&&i(t.getAttribute("role")||n)}),[n]),o}(p,d);let z;D&&(!function(e){return"option"===e||"treeitem"===e}(O)?A&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(O)&&(z=!0):z=!0);const L=Vt(n,(e=>null!=c?c:e&&(null==h?void 0:h.ariaSetSize)&&h.baseElement===e.baseElement?h.ariaSetSize:void 0)),F=Vt(n,(e=>{if(null!=u)return u;if(!e)return;if(!(null==h?void 0:h.ariaPosInSet))return;if(h.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===g));return h.ariaPosInSet+t.findIndex((e=>e.id===m))})),B=Vt(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!s||e.activeId===m)));return d=w(x({id:m,"aria-selected":z,"data-active-item":D?"":void 0},d),{ref:Ee(p,d.ref),tabIndex:B?d.tabIndex:-1,onFocus:S,onBlurCapture:k,onKeyDown:R}),d=ft(d),d=vt(w(x({store:n},d),{getItem:b,shouldRegisterItem:!!m&&d.shouldRegisterItem})),w(x({},d),{"aria-setsize":L,"aria-posinset":F})})),qt=Be((e=>je("button",Gt(e))));function Yt(e={}){const t=Lt(e.store,zt(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=V(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=V(e.animated,null==n?void 0:n.animated,!1),i=Rt({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:V(null==n?void 0:n.contentElement,null),disclosureElement:V(null==n?void 0:n.disclosureElement,null)},t);return Mt(i,(()=>At(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Mt(i,(()=>Dt(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Mt(i,(()=>At(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),M(R({},i),{setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function Kt(e,t,n){return Ce(t,[n.store,n.disclosure]),Ht(e,n,"open","setOpen"),Ht(e,n,"mounted","setMounted"),Ht(e,n,"animated"),e}function Xt(e={}){const[t,n]=$t(Yt,e);return Kt(t,n,e)}function Zt(e={}){return Yt(e)}function Jt(e,t,n){return Kt(e,t,n)}function Qt(e,t,n){return Ce(t,[n.popover]),Ht(e=Jt(e,t,n),n,"placement"),e}function en(e,t,n){return Ht(e=Qt(e,t,n),n,"timeout"),Ht(e,n,"showTimeout"),Ht(e,n,"hideTimeout"),e}function tn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=N(t,["popover"]);const o=Lt(r.store,zt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Zt(M(R({},r),{store:o})),s=V(r.placement,null==i?void 0:i.placement,"bottom"),l=Rt(M(R({},a.getState()),{placement:s,currentPlacement:s,anchorElement:V(null==i?void 0:i.anchorElement,null),popoverElement:V(null==i?void 0:i.popoverElement,null),arrowElement:V(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return M(R(R({},a),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(M(R({},e),{placement:V(e.placement,null==n?void 0:n.placement,"bottom")})),o=V(e.timeout,null==n?void 0:n.timeout,500),i=Rt(M(R({},r.getState()),{timeout:o,showTimeout:V(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:V(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return M(R(R({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function nn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=tn(M(R({},e),{placement:V(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:V(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Rt(M(R({},r.getState()),{type:V(e.type,null==n?void 0:n.type,"description"),skipTimeout:V(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return R(R({},r),o)}function rn(e={}){const[t,n]=$t(nn,e);return function(e,t,n){return Ht(e=en(e,t,n),n,"type"),Ht(e,n,"skipTimeout"),e}(t,n,e)}Ve((e=>e));var on=Fe((e=>je("div",e)));Object.assign(on,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Fe((e=>je(t,e))),e)),{}));var an=He(),sn=(an.useContext,an.useScopedContext,an.useProviderContext),ln=He([an.ContextProvider],[an.ScopedContextProvider]),cn=(ln.useContext,ln.useScopedContext,ln.useProviderContext),un=ln.ContextProvider,dn=ln.ScopedContextProvider,fn=(0,r.createContext)(void 0),mn=(0,r.createContext)(void 0),pn=He([un],[dn]),hn=(pn.useContext,pn.useScopedContext,pn.useProviderContext),gn=pn.ContextProvider,vn=pn.ScopedContextProvider,bn=He([gn],[vn]),yn=(bn.useContext,bn.useScopedContext,bn.useProviderContext),xn=bn.ContextProvider,wn=bn.ScopedContextProvider,En=Ve((e=>{var t=e,{store:n,showOnHover:o=!0}=t,i=E(t,["store","showOnHover"]);const a=yn();F(n=n||a,!1);const s=j(i),l=(0,r.useRef)(0);(0,r.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,r.useEffect)((()=>pe("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(l.current),l.current=0)}),!0)),[n]);const c=i.onMouseMove,u=Pe(o),d=Me(),f=we((e=>{if(null==c||c(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(l.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{l.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},a=null!=r?r:o;0===a?i():l.current=window.setTimeout(i,a)})),m=(0,r.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return i=w(x({},i),{ref:Ee(m,i.ref),onMouseMove:f}),i=ct(i)}));Fe((e=>je("a",En(e))));var _n=He([xn],[wn]),Sn=(_n.useContext,_n.useScopedContext,_n.useProviderContext),Cn=(_n.ContextProvider,_n.ScopedContextProvider),kn=Rt({activeStore:null}),Pn=Ve((e=>{var t=e,{store:n,showOnHover:o=!0}=t,i=E(t,["store","showOnHover"]);const a=Sn();F(n=n||a,!1);const s=(0,r.useRef)(!1);(0,r.useEffect)((()=>At(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,r.useEffect)((()=>At(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=kn.getState();return e!==n&&(null==e||e.hide()),kn.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=kn.getState();e===n&&kn.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const l=i.onMouseEnter,c=we((e=>{null==l||l(e),s.current=!0})),u=i.onFocusVisible,d=we((e=>{null==u||u(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),f=i.onBlur,m=we((e=>{if(null==f||f(e),e.defaultPrevented)return;const{activeStore:t}=kn.getState();t===n&&kn.setState("activeStore",null)})),p=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return i=w(x({"aria-labelledby":"label"===p?h:void 0,"aria-describedby":"description"===p?h:void 0},i),{onMouseEnter:c,onFocusVisible:d,onBlur:m}),i=En(x({store:n,showOnHover:e=>{if(!s.current)return!1;if(B(o,e))return!1;const{activeStore:t}=kn.getState();return!t||(null==n||n.show(),!1)}},i))})),Tn=Fe((e=>je("div",Pn(e))));function In(e){return[e.clientX,e.clientY]}function Rn(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[s,l]=t[i],[c,u]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(l-u)*(n-s)-(s-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===f)return!0;f>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===f)return!0;f<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r==l&&(n>=c&&n<=s||n>=s&&n<=c))return!0}return o}function Mn(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[s,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,s]=e;return[a<i?"left":a>r?"right":null,s<n?"top":s>o?"bottom":null]}(t,n),c=[t];return s?("top"!==l&&c.push(["left"===s?a:o,r]),c.push(["left"===s?o:a,r]),c.push(["left"===s?o:a,i]),"bottom"!==l&&c.push(["left"===s?a:o,i])):"top"===l?(c.push([a,r]),c.push([a,i]),c.push([o,i]),c.push([o,r])):(c.push([a,i]),c.push([a,r]),c.push([o,r]),c.push([o,i])),c}function Nn(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some((e=>n===e)))))}var Dn=new WeakMap;function An(e,t,n){Dn.has(e)||Dn.set(e,new Map);const r=Dn.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),a=()=>{i(),o(),r.delete(t)};return r.set(t,a),()=>{r.get(t)===a&&(i(),r.set(t,o))}}function On(e,t,n){return An(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function zn(e,t,n){return An(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Ln(e,t){if(!e)return()=>{};return An(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Fn=["SCRIPT","STYLE"];function Bn(e){return`__ariakit-dialog-snapshot-${e}`}function jn(e,t,n){return!Fn.includes(t.tagName)&&(!!function(e,t){const n=G(t),r=Bn(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&Y(t,e))))}function Vn(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&(e!==o&&e.contains(o)))),a=G(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)jn(e,r,t)&&n(r,s);o=o.parentElement}}}function Hn(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function $n(e,t=""){return z(zn(e,Hn("",!0),!0),zn(e,Hn(t,!0),!0))}function Wn(e,t){if(e[Hn(t,!0)])return!0;const n=Hn(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Un(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Vn(e,t,(t=>{Nn(t,...r)||n.unshift(function(e,t=""){return z(zn(e,Hn(),!0),zn(e,Hn(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift($n(t,e))}));return()=>{n.forEach((e=>e()))}}function Gn(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function qn(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function Yn(e,t,n){return!(n||!1===t||e&&!t)}var Kn=Ve((e=>{var t=e,{store:n,alwaysVisible:o}=t,i=E(t,["store","alwaysVisible"]);const a=sn();F(n=n||a,!1);const s=_e(i.id),[l,c]=(0,r.useState)(null),u=n.useState("open"),d=n.useState("mounted"),f=n.useState("animated"),m=n.useState("contentElement");be((()=>{if(f){if(null==m?void 0:m.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{c(u?"enter":"leave")}));c(null)}}),[f,m,u]),be((()=>{if(!n)return;if(!f)return;if(!m)return;if(!l)return;if("enter"===l&&!u)return;if("leave"===l&&u)return;if("number"==typeof f){return Gn(f,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(m),i=qn(r,o)+qn(e,t);return i?Gn(i,n.stopAnimation):void 0}),[n,f,m,u,l]);const p=Yn(d,(i=Te(i,(e=>(0,Le.jsx)(dn,{value:n,children:e})),[n])).hidden,o),h=p?w(x({},i.style),{display:"none"}):i.style;return i=w(x({id:s,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,hidden:p},i),{ref:Ee(s?n.setContentElement:null,i.ref),style:h})})),Xn=Fe((e=>je("div",Kn(e)))),Zn=Fe((e=>{var t=e,{unmountOnHide:n}=t,r=E(t,["unmountOnHide"]);const o=sn();return!1===Vt(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,Le.jsx)(Xn,x({},r))}));function Jn({store:e,backdrop:t,backdropProps:n,alwaysVisible:o,hidden:i}){const a=(0,r.useRef)(null),s=Xt({disclosure:e}),l=e.useState("contentElement");be((()=>{const e=a.current,t=l;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[l]),be((()=>{const e=null==l?void 0:l.id;if(!e)return;const t=a.current;return t?$n(t,e):void 0}),[l]),null!=i&&(n=w(x({},n),{hidden:i}));const c=Kn(w(x({store:s,role:"presentation","data-backdrop":(null==l?void 0:l.id)||"",alwaysVisible:o},n),{ref:Ee(null==n?void 0:n.ref,a),style:x({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,r.isValidElement)(t))return(0,Le.jsx)(on,w(x({},c),{render:t}));const u="boolean"!=typeof t?t:"div";return(0,Le.jsx)(on,w(x({},c),{render:(0,Le.jsx)(u,{})}))}function Qn(e){return On(e,"aria-hidden","true")}function er(e,t){if(!("style"in e))return D;if("inert"in HTMLElement.prototype)return zn(e,"inert",!0);return z(...qe(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Y(t,e))))?D:On(e,"tabindex","-1"))),Qn(e),Ln(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}const tr=window.ReactDOM;function nr(e,t,n){const o=function({attribute:e,contentId:t,contentElement:n,enabled:o}){const[i,a]=ke(),s=(0,r.useCallback)((()=>{if(!o)return!1;if(!n)return!1;const{body:r}=G(n),i=r.getAttribute(e);return!i||i===t}),[i,o,n,e,t]);return(0,r.useEffect)((()=>{if(!o)return;if(!t)return;if(!n)return;const{body:r}=G(n);if(s())return r.setAttribute(e,t),()=>r.removeAttribute(e);const i=new MutationObserver((()=>(0,tr.flushSync)(a)));return i.observe(r,{attributeFilter:[e]}),()=>i.disconnect()}),[i,o,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,r.useEffect)((()=>{if(!o())return;if(!e)return;const t=G(e),n=function(e){return G(e).defaultView||window}(e),{documentElement:r,body:i}=t,a=r.style.getPropertyValue("--scrollbar-width"),s=a?parseInt(a):n.innerWidth-r.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(r),c=ie()&&!se();return z((d="--scrollbar-width",f=`${s}px`,(u=r)?An(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,f),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:a}=n,c=null!=(e=null==a?void 0:a.offsetLeft)?e:0,u=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=Ln(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo(r,o)}})():Ln(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[o,e])}var rr=(0,r.createContext)({});function or({store:e,type:t,listener:n,capture:o,domReady:i}){const a=we(n),s=e.useState("open"),l=(0,r.useRef)(!1);be((()=>{if(!s)return;if(!i)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{l.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,i]),(0,r.useEffect)((()=>{if(!s)return;return pe(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Y(G(e).body,e)}(o))return;if(Y(n,o))return;if(function(e,t){if(!e)return!1;if(Y(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=G(e).getElementById(n);if(t)return Y(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n))return;l.current&&!Wn(o,n.id)||a(t)}),o)}),[s,o])}function ir(e,t){return"function"==typeof e?e(t):!!e}function ar(e,t,n){const o=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{if(e)return pe("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),i={store:e,domReady:n,capture:!0};or(w(x({},i),{type:"click",listener:n=>{const{contentElement:r}=e.getState(),i=o.current;i&&Q(i)&&Wn(i,null==r?void 0:r.id)&&ir(t,n)&&e.hide()}})),or(w(x({},i),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==G(r)&&ir(t,n)&&e.hide()}})),or(w(x({},i),{type:"contextmenu",listener:n=>{ir(t,n)&&e.hide()}}))}var sr=Ve((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=E(t,["autoFocusOnShow"]);return r=Te(r,(e=>(0,Le.jsx)(f.Provider,{value:n,children:e})),[n])}));Fe((e=>je("div",sr(e))));var lr=(0,r.createContext)(0);function cr({level:e,children:t}){const n=(0,r.useContext)(lr),o=Math.max(Math.min(e||n+1,6),1);return(0,Le.jsx)(lr.Provider,{value:o,children:t})}var ur=Ve((e=>e=w(x({},e),{style:x({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));Fe((e=>je("span",ur(e))));var dr=Ve((e=>(e=w(x({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:x({position:"fixed",top:0,left:0},e.style)}),e=ur(e)))),fr=Fe((e=>je("span",dr(e))));var mr=(0,r.createContext)(null);function pr(e){queueMicrotask((()=>{null==e||e.focus()}))}var hr=Ve((e=>{var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:o,portalElement:i,portalRef:a,portal:s=!0}=t,l=E(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const c=(0,r.useRef)(null),u=Ee(c,l.ref),d=(0,r.useContext)(mr),[f,m]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),g=(0,r.useRef)(null),v=(0,r.useRef)(null),b=(0,r.useRef)(null),y=(0,r.useRef)(null);return be((()=>{const e=c.current;if(!e||!s)return void m(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:G(e).createElement("div")}(e,i);if(!t)return void m(null);const n=t.isConnected;if(!n){const n=d||function(e){return G(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}()),m(t),H(a,t),n?void 0:()=>{t.remove(),H(a,null)}}),[s,i,d,a]),be((()=>{if(!n)return;if(!o)return;const e=G(o).createElement("span");return e.style.position="fixed",o.insertAdjacentElement("afterend",e),h(e),()=>{e.remove(),h(null)}}),[n,o]),(0,r.useEffect)((()=>{if(!f)return;if(!n)return;let e=0;const t=t=>{if(!fe(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e),t.forEach(n)}(f);e=requestAnimationFrame((()=>{!function(e,t){qe(e,t).forEach(et)}(f,!0)}))};return f.addEventListener("focusin",t,!0),f.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),f.removeEventListener("focusin",t,!0),f.removeEventListener("focusout",t,!0)}}),[f,n]),l=Te(l,(e=>{if(e=(0,Le.jsx)(mr.Provider,{value:f||d,children:e}),!s)return e;if(!f)return(0,Le.jsx)("span",{ref:u,id:l.id,style:{position:"fixed"},hidden:!0});e=(0,Le.jsxs)(Le.Fragment,{children:[n&&f&&(0,Le.jsx)(fr,{ref:v,className:"__focus-trap-inner-before",onFocus:e=>{fe(e,f)?pr(Ke()):pr(g.current)}}),e,n&&f&&(0,Le.jsx)(fr,{ref:b,className:"__focus-trap-inner-after",onFocus:e=>{fe(e,f)?pr(Xe()):pr(y.current)}})]}),f&&(e=(0,tr.createPortal)(e,f));let t=(0,Le.jsxs)(Le.Fragment,{children:[n&&f&&(0,Le.jsx)(fr,{ref:g,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===y.current)&&fe(e,f)?pr(v.current):pr(Xe())}}),n&&(0,Le.jsx)("span",{"aria-owns":null==f?void 0:f.id,style:{position:"fixed"}}),n&&f&&(0,Le.jsx)(fr,{ref:y,className:"__focus-trap-outer-after",onFocus:e=>{if(fe(e,f))pr(b.current);else{const e=Ke();if(e===v.current)return void requestAnimationFrame((()=>{var e;return null==(e=Ke())?void 0:e.focus()}));pr(e)}}})]});return p&&n&&(t=(0,tr.createPortal)(t,p)),(0,Le.jsxs)(Le.Fragment,{children:[t,e]})}),[f,d,s,l.id,n,p]),l=w(x({},l),{ref:u})}));Fe((e=>je("div",hr(e))));var gr=ae();function vr(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?We(n)?n:null:n:null}var br=Ve((e=>{var t=e,{store:n,open:o,onClose:i,focusable:a=!0,modal:s=!0,portal:l=!!s,backdrop:c=!!s,backdropProps:u,hideOnEscape:d=!0,hideOnInteractOutside:f=!0,getPersistentElements:m,preventBodyScroll:p=!!s,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:b,unmountOnHide:y}=t,_=E(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const S=cn(),C=(0,r.useRef)(null),k=function(e={}){const[t,n]=$t(Zt,e);return Jt(t,n,e)}({store:n||S,open:o,setOpen(e){if(e)return;const t=C.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});i&&t.addEventListener("close",i,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&k.setOpen(!0)}}),{portalRef:P,domReady:T}=Ie(l,_.portalRef),I=_.preserveTabOrder,R=k.useState((e=>I&&!s&&e.mounted)),M=_e(_.id),N=k.useState("open"),D=k.useState("mounted"),A=k.useState("contentElement"),O=Yn(D,_.hidden,_.alwaysVisible);nr(A,M,p&&!O),ar(k,f,T);const{wrapElement:L,nestedDialogs:F}=function(e){const t=(0,r.useContext)(rr),[n,o]=(0,r.useState)([]),i=(0,r.useCallback)((e=>{var n;return o((t=>[...t,e])),z(null==(n=t.add)?void 0:n.call(t,e),(()=>{o((t=>t.filter((t=>t!==e))))}))}),[t]);be((()=>At(e,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=t.add)?void 0:r.call(t,e)}))),[e,t]);const a=(0,r.useMemo)((()=>({store:e,add:i})),[e,i]);return{wrapElement:(0,r.useCallback)((e=>(0,Le.jsx)(rr.Provider,{value:a,children:e})),[a]),nestedDialogs:n}}(k);_=Te(_,L,[L]),be((()=>{if(!N)return;const e=C.current,t=q(e,!0);t&&"BODY"!==t.tagName&&(e&&Y(e,t)||k.setDisclosureElement(t))}),[k,N]),gr&&(0,r.useEffect)((()=>{if(!D)return;const{disclosureElement:e}=k.getState();if(!e)return;if(!X(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),me(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||Qe(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[k,D]),(0,r.useEffect)((()=>{if(!s)return;if(!D)return;if(!T)return;const e=C.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=G(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,k.hide)}),[k,s,D,T]),be((()=>{if(N)return;if(!D)return;if(!T)return;const e=C.current;return e?er(e):void 0}),[N,D,T]);const B=N&&T;be((()=>{if(!M)return;if(!B)return;const e=C.current;return function(e,t){const{body:n}=G(t[0]),r=[];return Vn(e,t,(t=>{r.push(zn(t,Bn(e),!0))})),z(zn(n,Bn(e),!0),(()=>r.forEach((e=>e()))))}(M,[e])}),[M,B]);const j=we(m);be((()=>{if(!M)return;if(!B)return;const{disclosureElement:e}=k.getState(),t=[C.current,...j()||[],...F.map((e=>e.getState().contentElement))];return s?z(Un(M,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Vn(e,t,(e=>{Nn(e,...r)||n.unshift(er(e,t))})),()=>{n.forEach((e=>e()))}}(M,t)):Un(M,[e,...t])}),[M,k,B,j,F,s]);const V=!!h,H=Pe(h),[$,W]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(!N)return;if(!V)return;if(!T)return;if(!(null==A?void 0:A.isConnected))return;const e=vr(v,!0)||A.querySelector("[data-autofocus=true],[autofocus]")||Ye(A,!0,l&&R)||A,t=We(e);H(t?e:null)&&(W(!0),queueMicrotask((()=>{e.focus(),gr&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[N,V,T,A,v,l,R,H]);const U=!!g,K=Pe(g),[Z,J]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(N)return J(!0),()=>J(!1)}),[N]);const Q=(0,r.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=k.getState();if(function(e){const t=q();return!(!t||e&&Y(e,t)||!We(t))}(e))return;let r=vr(b)||n;if(null==r?void 0:r.id){const e=G(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!We(r)){const e=ee(r,"[data-dialog]");if(e&&e.id){const t=G(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&We(r);o||!t?K(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>Q(e,!1)))}),[k,b,K]);be((()=>{if(N)return;if(!Z)return;if(!U)return;const e=C.current;Q(e)}),[N,Z,T,U,Q]),(0,r.useEffect)((()=>{if(!Z)return;if(!U)return;const e=C.current;return()=>Q(e)}),[Z,U,Q]);const te=Pe(d);(0,r.useEffect)((()=>{if(!T)return;if(!D)return;return pe("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=C.current;if(!t)return;if(Wn(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=k.getState();("BODY"===n.tagName||Y(t,n)||!r||Y(r,n))&&te(e)&&k.hide()}),!0)}),[k,T,D,te]);const ne=(_=Te(_,(e=>(0,Le.jsx)(cr,{level:s?1:void 0,children:e})),[s])).hidden,re=_.alwaysVisible;_=Te(_,(e=>c?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Jn,{store:k,backdrop:c,backdropProps:u,hidden:ne,alwaysVisible:re}),e]}):e),[k,c,u,ne,re]);const[oe,ie]=(0,r.useState)(),[ae,se]=(0,r.useState)();return _=Te(_,(e=>(0,Le.jsx)(dn,{value:k,children:(0,Le.jsx)(fn.Provider,{value:ie,children:(0,Le.jsx)(mn.Provider,{value:se,children:e})})})),[k]),_=w(x({id:M,"data-dialog":"",role:"dialog",tabIndex:a?-1:void 0,"aria-labelledby":oe,"aria-describedby":ae},_),{ref:Ee(C,_.ref)}),_=sr(w(x({},_),{autoFocusOnShow:$})),_=Kn(x({store:k},_)),_=ct(w(x({},_),{focusable:a})),_=hr(w(x({portal:l},_),{portalRef:P,preserveTabOrder:R}))}));function yr(e,t=cn){return Fe((n=>{const r=t();return Vt(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,Le.jsx)(e,x({},n)):null}))}yr(Fe((e=>je("div",br(e)))),cn);const xr=Math.min,wr=Math.max,Er=Math.round,_r=Math.floor,Sr=e=>({x:e,y:e}),Cr={left:"right",right:"left",bottom:"top",top:"bottom"},kr={start:"end",end:"start"};function Pr(e,t,n){return wr(e,xr(t,n))}function Tr(e,t){return"function"==typeof e?e(t):e}function Ir(e){return e.split("-")[0]}function Rr(e){return e.split("-")[1]}function Mr(e){return"x"===e?"y":"x"}function Nr(e){return"y"===e?"height":"width"}function Dr(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ar(e){return Mr(Dr(e))}function Or(e){return e.replace(/start|end/g,(e=>kr[e]))}function zr(e){return e.replace(/left|right|bottom|top/g,(e=>Cr[e]))}function Lr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Fr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Br(e,t,n){let{reference:r,floating:o}=e;const i=Dr(t),a=Ar(t),s=Nr(a),l=Ir(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Rr(t)){case"start":m[a]-=f*(n&&c?-1:1);break;case"end":m[a]+=f*(n&&c?-1:1)}return m}async function jr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Tr(t,e),p=Lr(m),h=s[f?"floating"===d?"reference":"floating":d],g=Fr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Fr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+p.top)/y.y,bottom:(x.bottom-g.bottom+p.bottom)/y.y,left:(g.left-x.left+p.left)/y.x,right:(x.right-g.right+p.right)/y.x}}const Vr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Tr(e,t)||{};if(null==c)return{};const d=Lr(u),f={x:n,y:r},m=Ar(o),p=Nr(m),h=await a.getDimensions(c),g="y"===m,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[m]-f[m]-i.floating[p],w=f[m]-i.reference[m],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=E?E[y]:0;_&&await(null==a.isElement?void 0:a.isElement(E))||(_=s.floating[y]||i.floating[p]);const S=x/2-w/2,C=_/2-h[p]/2-1,k=xr(d[v],C),P=xr(d[b],C),T=k,I=_-h[p]-P,R=_/2-h[p]/2+S,M=Pr(T,R,I),N=!l.arrow&&null!=Rr(o)&&R!=M&&i.reference[p]/2-(R<T?k:P)-h[p]/2<0,D=N?R<T?R-T:R-I:0;return{[m]:f[m]+D,data:{[m]:M,centerOffset:R-M-D,...N&&{alignmentOffset:D}},reset:N}}});const Hr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=Tr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Ir(o),b=Ir(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!h?[zr(s)]:function(e){const t=zr(e);return[Or(e),t,Or(t)]}(s));f||"none"===p||x.push(...function(e,t,n,r){const o=Rr(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Ir(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Or)))),i}(s,h,p,y));const w=[s,...x],E=await jr(t,g),_=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Rr(e),o=Ar(e),i=Nr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=zr(a)),[a,zr(a)]}(o,a,y);_.push(E[e[0]],E[e[1]])}if(S=[...S,{placement:o,overflows:_}],!_.every((e=>e<=0))){var C,k;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(k=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(m){case"bestFit":{var P;const e=null==(P=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};const $r=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Ir(n),s=Rr(n),l="y"===Dr(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Tr(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(m="end"===s?-1*p:p),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Wr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Tr(e,t),c={x:n,y:r},u=await jr(t,l),d=Dr(Ir(o)),f=Mr(d);let m=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";m=Pr(m+u["y"===f?"top":"left"],m,m-u[e])}if(a){const e="y"===d?"bottom":"right";p=Pr(p+u["y"===d?"top":"left"],p,p-u[e])}const h=s.fn({...t,[f]:m,[d]:p});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Ur=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Tr(e,t),u={x:n,y:r},d=Dr(o),f=Mr(d);let m=u[f],p=u[d];const h=Tr(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(Ir(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:m,[d]:p}}}},Gr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Tr(e,t),l=await jr(t,s),c=Ir(n),u=Rr(n),d="y"===Dr(n),{width:f,height:m}=r.floating;let p,h;"top"===c||"bottom"===c?(p=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,p="end"===u?"top":"bottom");const g=m-l[p],v=f-l[h],b=!t.middlewareData.shift;let y=g,x=v;if(d){const e=f-l.left-l.right;x=u||b?xr(v,e):e}else{const e=m-l.top-l.bottom;y=u||b?xr(g,e):e}if(b&&!u){const e=wr(l.left,0),t=wr(l.right,0),n=wr(l.top,0),r=wr(l.bottom,0);d?x=f-2*(0!==e||0!==t?e+t:wr(l.left,l.right)):y=m-2*(0!==n||0!==r?n+r:wr(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:y});const w=await o.getDimensions(i.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function qr(e){return Xr(e)?(e.nodeName||"").toLowerCase():"#document"}function Yr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Kr(e){var t;return null==(t=(Xr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Xr(e){return e instanceof Node||e instanceof Yr(e).Node}function Zr(e){return e instanceof Element||e instanceof Yr(e).Element}function Jr(e){return e instanceof HTMLElement||e instanceof Yr(e).HTMLElement}function Qr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Yr(e).ShadowRoot)}function eo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=io(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function to(e){return["table","td","th"].includes(qr(e))}function no(e){const t=ro(),n=io(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ro(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function oo(e){return["html","body","#document"].includes(qr(e))}function io(e){return Yr(e).getComputedStyle(e)}function ao(e){return Zr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function so(e){if("html"===qr(e))return e;const t=e.assignedSlot||e.parentNode||Qr(e)&&e.host||Kr(e);return Qr(t)?t.host:t}function lo(e){const t=so(e);return oo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jr(t)&&eo(t)?t:lo(t)}function co(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=lo(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Yr(o);return i?t.concat(a,a.visualViewport||[],eo(o)?o:[],a.frameElement&&n?co(a.frameElement):[]):t.concat(o,co(o,[],n))}function uo(e){const t=io(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jr(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Er(n)!==i||Er(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function fo(e){return Zr(e)?e:e.contextElement}function mo(e){const t=fo(e);if(!Jr(t))return Sr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=uo(t);let a=(i?Er(n.width):n.width)/r,s=(i?Er(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const po=Sr(0);function ho(e){const t=Yr(e);return ro()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:po}function go(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=fo(e);let a=Sr(1);t&&(r?Zr(r)&&(a=mo(r)):a=mo(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Yr(e))&&t}(i,n,r)?ho(i):Sr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Yr(i),t=r&&Zr(r)?Yr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=mo(n),t=n.getBoundingClientRect(),r=io(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=Yr(n).frameElement}}return Fr({width:u,height:d,x:l,y:c})}function vo(e){return go(Kr(e)).left+ao(e).scrollLeft}function bo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Yr(e),r=Kr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=ro();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Kr(e),n=ao(e),r=e.ownerDocument.body,o=wr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=wr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+vo(e);const s=-n.scrollTop;return"rtl"===io(r).direction&&(a+=wr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Kr(e));else if(Zr(t))r=function(e,t){const n=go(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Jr(e)?mo(e):Sr(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ho(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Fr(r)}function yo(e,t){const n=so(e);return!(n===t||!Zr(n)||oo(n))&&("fixed"===io(n).position||yo(n,t))}function xo(e,t,n){const r=Jr(t),o=Kr(t),i="fixed"===n,a=go(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Sr(0);if(r||!r&&!i)if(("body"!==qr(t)||eo(o))&&(s=ao(t)),r){const e=go(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=vo(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function wo(e,t){return Jr(e)&&"fixed"!==io(e).position?t?t(e):e.offsetParent:null}function Eo(e,t){const n=Yr(e);if(!Jr(e))return n;let r=wo(e,t);for(;r&&to(r)&&"static"===io(r).position;)r=wo(r,t);return r&&("html"===qr(r)||"body"===qr(r)&&"static"===io(r).position&&!no(r))?n:r||function(e){let t=so(e);for(;Jr(t)&&!oo(t);){if(no(t))return t;t=so(t)}return null}(e)||n}const _o={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Jr(n),i=Kr(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Sr(1);const l=Sr(0);if((o||!o&&"fixed"!==r)&&(("body"!==qr(n)||eo(i))&&(a=ao(n)),Jr(n))){const e=go(n);s=mo(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Kr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=co(e,[],!1).filter((e=>Zr(e)&&"body"!==qr(e))),o=null;const i="fixed"===io(e).position;let a=i?so(e):e;for(;Zr(a)&&!oo(a);){const t=io(a),n=no(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||eo(a)&&!n&&yo(e,a))?r=r.filter((e=>e!==a)):o=t,a=so(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=bo(t,n,o);return e.top=wr(r.top,e.top),e.right=xr(r.right,e.right),e.bottom=xr(r.bottom,e.bottom),e.left=wr(r.left,e.left),e}),bo(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Eo,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Eo,i=this.getDimensions;return{reference:xo(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return uo(e)},getScale:mo,isElement:Zr,isRTL:function(e){return"rtl"===io(e).direction}};function So(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=fo(e),u=o||i?[...c?co(c):[],...co(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Kr(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const m={rootMargin:-_r(u)+"px "+-_r(o.clientWidth-(c+d))+"px "+-_r(o.clientHeight-(u+f))+"px "+-_r(c)+"px",threshold:wr(0,xr(1,l))||1};let p=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}p=!1}try{r=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),i}(c,n):null;let f,m=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{p&&p.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let h=l?go(e):null;return l&&function t(){const r=go(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Co=(e,t,n)=>{const r=new Map,o={platform:_o,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Br(c,r,l),f=r,m={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,m={...m,[i]:{...m[i],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Br(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};function ko(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return w(x({},o),{toJSON:()=>o})}function Po(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return ko();const{x:t,y:n,width:r,height:o}=e;return ko(t,n,r,o)}(r):n.getBoundingClientRect()}}}function To(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Io(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Ro(e,t){return $r((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function Mo(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return F(!t||t.every(To),!1),Hr({padding:e.overflowPadding,fallbackPlacements:t})}function No(e){if(e.slide||e.overlap)return Wr({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Ur()})}function Do(e){return Gr({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,a=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${a}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${a}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function Ao(e,t){if(e)return Vr({element:e,padding:t.arrowPadding})}var Oo=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,preserveTabOrder:a=!0,autoFocusOnShow:s=!0,wrapperProps:l,fixed:c=!1,flip:u=!0,shift:d=0,slide:f=!0,overlap:m=!1,sameWidth:p=!1,fitViewport:h=!1,gutter:g,arrowPadding:v=4,overflowPadding:b=8,getAnchorRect:y,updatePosition:_}=t,S=E(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const C=hn();F(n=n||C,!1);const k=n.useState("arrowElement"),P=n.useState("anchorElement"),T=n.useState("disclosureElement"),I=n.useState("popoverElement"),R=n.useState("contentElement"),M=n.useState("placement"),N=n.useState("mounted"),D=n.useState("rendered"),[A,O]=(0,r.useState)(!1),{portalRef:z,domReady:L}=Ie(i,S.portalRef),B=we(y),j=we(_),V=!!_;be((()=>{if(!(null==I?void 0:I.isConnected))return;I.style.setProperty("--popover-overflow-padding",`${b}px`);const e=Po(P,B),t=async()=>{if(!N)return;const t=[Ro(k,{gutter:g,shift:d}),Mo({flip:u,overflowPadding:b}),No({slide:f,shift:d,overlap:m,overflowPadding:b}),Ao(k,{arrowPadding:v}),Do({sameWidth:p,fitViewport:h,overflowPadding:b})],r=await Co(e,I,{placement:M,strategy:c?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),O(!0);const o=Io(r.x),i=Io(r.y);if(Object.assign(I.style,{top:"0",left:"0",transform:`translate3d(${o}px,${i}px,0)`}),k&&r.middlewareData.arrow){const{x:e,y:t}=r.middlewareData.arrow,n=r.placement.split("-")[0];Object.assign(k.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",[n]:"100%"})}},r=So(e,I,(async()=>{V?(await j({updatePosition:t}),O(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{O(!1),r()}}),[n,D,I,k,P,I,M,N,L,c,u,d,f,m,p,h,g,v,b,B,V,j]),be((()=>{if(!N)return;if(!L)return;if(!(null==I?void 0:I.isConnected))return;if(!(null==R?void 0:R.isConnected))return;const e=()=>{I.style.zIndex=getComputedStyle(R).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[N,L,I,R]);const H=c?"fixed":"absolute";return S=Te(S,(e=>(0,Le.jsx)("div",w(x({role:"presentation"},l),{style:x({position:H,top:0,left:0,width:"max-content"},null==l?void 0:l.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,H,l]),S=Te(S,(e=>(0,Le.jsx)(vn,{value:n,children:e})),[n]),S=w(x({"data-placing":A?void 0:""},S),{style:x({position:"relative"},S.style)}),S=br(w(x({store:n,modal:o,portal:i,preserveTabOrder:a,preserveTabOrderAnchor:T||P,autoFocusOnShow:A&&s},S),{portalRef:z}))}));yr(Fe((e=>je("div",Oo(e)))),hn);function zo(e,t,n,r){return!!Je(t)||!!e&&(!!Y(t,e)||(!(!n||!Y(n,e))||!!(null==r?void 0:r.some((t=>zo(e,t,n))))))}var Lo=(0,r.createContext)(null),Fo=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:l=!!s}=t,c=E(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=yn();F(n=n||u,!1);const d=(0,r.useRef)(null),[f,m]=(0,r.useState)([]),p=(0,r.useRef)(0),h=(0,r.useRef)(null),{portalRef:g,domReady:v}=Ie(i,c.portalRef),b=!!s,y=Pe(s),_=!!l,S=Pe(l),C=n.useState("open"),k=n.useState("mounted");(0,r.useEffect)((()=>{if(!v)return;if(!k)return;if(!b&&!_)return;const e=d.current;if(!e)return;return z(pe("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),a=h.current,[s]=t.composedPath(),l=r;if(zo(s,e,l,f))return h.current=s&&l&&Y(l,s)?In(t):null,window.clearTimeout(p.current),void(p.current=0);if(!p.current){if(a){const n=In(t);if(Rn(n,Mn(e,a))){if(h.current=n,!S(t))return;return t.preventDefault(),void t.stopPropagation()}}y(t)&&(p.current=window.setTimeout((()=>{p.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(p.current)))}),[n,v,k,b,_,f,S,y]),(0,r.useEffect)((()=>{if(!v)return;if(!k)return;if(!_)return;const e=e=>{const t=d.current;if(!t)return;const n=h.current;if(!n)return;const r=Mn(t,n);if(Rn(In(e),r)){if(!S(e))return;e.preventDefault(),e.stopPropagation()}};return z(pe("mouseenter",e,!0),pe("mouseover",e,!0),pe("mouseout",e,!0),pe("mouseleave",e,!0))}),[v,k,_,S]),(0,r.useEffect)((()=>{v&&(C||null==n||n.setAutoFocusOnShow(!1))}),[n,v,C]);const P=xe(C);(0,r.useEffect)((()=>{if(v)return()=>{P.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,v]);const T=(0,r.useContext)(Lo);be((()=>{if(o)return;if(!i)return;if(!k)return;if(!v)return;const e=d.current;return e?null==T?void 0:T(e):void 0}),[o,i,k,v]);const I=(0,r.useCallback)((e=>{m((t=>[...t,e]));const t=null==T?void 0:T(e);return()=>{m((t=>t.filter((t=>t!==e)))),null==t||t()}}),[T]);c=Te(c,(e=>(0,Le.jsx)(wn,{value:n,children:(0,Le.jsx)(Lo.Provider,{value:I,children:e})})),[n,I]),c=w(x({},c),{ref:Ee(d,c.ref)}),c=function(e){var t=e,{store:n}=t,o=E(t,["store"]);const[i,a]=(0,r.useState)(!1),s=n.useState("mounted");(0,r.useEffect)((()=>{s||a(!1)}),[s]);const l=o.onFocus,c=we((e=>{null==l||l(e),e.defaultPrevented||a(!0)})),u=(0,r.useRef)(null);return(0,r.useEffect)((()=>At(n,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),w(x({autoFocusOnHide:i,finalFocus:u},o),{onFocus:c})}(x({store:n},c));const R=n.useState((e=>o||e.autoFocusOnShow));return c=Oo(w(x({store:n,modal:o,portal:i,autoFocusOnShow:R},c),{portalRef:g,hideOnEscape:e=>!B(a,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));yr(Fe((e=>je("div",Fo(e)))),yn);var Bo=Ve((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:s=!0}=t,l=E(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Sn();F(n=n||c,!1),l=Te(l,(e=>(0,Le.jsx)(Cn,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=x({role:u},l),l=Fo(w(x({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(B(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(B(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Y(t,e.target)}}))})),jo=yr(Fe((e=>je("div",Bo(e)))),Sn);const Vo=window.wp.element,Ho=window.wp.deprecated;var $o=o.n(Ho);const Wo=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let o,i;return"string"==typeof t&&(o=t),null!==t&&"object"==typeof t&&(o=t.display,i=t.ariaLabel),(0,r.createElement)("span",{className:n,"aria-label":i},o)},Uo={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Go=e=>{var t;return null!==(t=Uo[e])&&void 0!==t?t:"bottom"},qo={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}};const Yo=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Ko=(0,Vo.createContext)({isNestedInTooltip:!1}),Xo=700,Zo={isNestedInTooltip:!0};const Jo=(0,Vo.forwardRef)((function(e,t){const{children:n,delay:o=Xo,hideOnClick:i=!0,placement:a,position:s,shortcut:l,text:c,...u}=e,{isNestedInTooltip:f}=(0,Vo.useContext)(Ko),m=(0,d.useInstanceId)(Jo,"tooltip"),p=c||l?m:void 0,h=1===Vo.Children.count(n);let g;void 0!==a?g=a:void 0!==s&&(g=Go(s),$o()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),g=g||"bottom";const v=rn({placement:g,showTimeout:o});return f?h?(0,r.createElement)(on,{...u,render:n}):n:(0,r.createElement)(Ko.Provider,{value:Zo},(0,r.createElement)(Tn,{onClick:i?v.hide:void 0,store:v,render:h?n:void 0,ref:t},h?void 0:n),h&&(c||l)&&(0,r.createElement)(jo,{...u,className:"components-tooltip",unmountOnHide:!0,gutter:4,id:p,overflowPadding:.5,store:v},c,l&&(0,r.createElement)(Wo,{className:c?"components-tooltip__shortcut":"",shortcut:l})))})),Qo=Jo;window.wp.warning;var ei=o(1919),ti=o.n(ei),ni=o(5619),ri=o.n(ni);
|
||
/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/
|
||
function oi(e){return"[object Object]"===Object.prototype.toString.call(e)}function ii(e){var t,n;return!1!==oi(e)&&(void 0===(t=e.constructor)||!1!==oi(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const ai=function(e,t){const n=(0,Vo.useRef)(!1);(0,Vo.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},si=(0,Vo.createContext)({}),li=()=>(0,Vo.useContext)(si);const ci=(0,Vo.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=li(),n=(0,Vo.useRef)(e);return ai((()=>{ri()(n.current,e)&&n.current}),[e]),(0,Vo.useMemo)((()=>ti()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ii})),[t,e])}({value:t});return(0,r.createElement)(si.Provider,{value:n},e)})),ui="data-wp-component",di="data-wp-c16t",fi="__contextSystemKey__";var mi=function(){return mi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mi.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function pi(e){return e.toLowerCase()}var hi=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],gi=/[^A-Z0-9]+/gi;function vi(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function bi(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?hi:n,o=t.stripRegexp,i=void 0===o?gi:o,a=t.transform,s=void 0===a?pi:a,l=t.delimiter,c=void 0===l?" ":l,u=vi(vi(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(s).join(c)}(e,mi({delimiter:"."},t))}function yi(e,t){return void 0===t&&(t={}),bi(e,mi({delimiter:"-"},t))}function xi(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const wi=xi((function(e){return`components-${yi(e)}`}));var Ei=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_i=Math.abs,Si=String.fromCharCode,Ci=Object.assign;function ki(e){return e.trim()}function Pi(e,t,n){return e.replace(t,n)}function Ti(e,t){return e.indexOf(t)}function Ii(e,t){return 0|e.charCodeAt(t)}function Ri(e,t,n){return e.slice(t,n)}function Mi(e){return e.length}function Ni(e){return e.length}function Di(e,t){return t.push(e),e}var Ai=1,Oi=1,zi=0,Li=0,Fi=0,Bi="";function ji(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ai,column:Oi,length:a,return:""}}function Vi(e,t){return Ci(ji("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hi(){return Fi=Li>0?Ii(Bi,--Li):0,Oi--,10===Fi&&(Oi=1,Ai--),Fi}function $i(){return Fi=Li<zi?Ii(Bi,Li++):0,Oi++,10===Fi&&(Oi=1,Ai++),Fi}function Wi(){return Ii(Bi,Li)}function Ui(){return Li}function Gi(e,t){return Ri(Bi,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yi(e){return Ai=Oi=1,zi=Mi(Bi=e),Li=0,[]}function Ki(e){return Bi="",e}function Xi(e){return ki(Gi(Li-1,Qi(91===e?e+2:40===e?e+1:e)))}function Zi(e){for(;(Fi=Wi())&&Fi<33;)$i();return qi(e)>2||qi(Fi)>3?"":" "}function Ji(e,t){for(;--t&&$i()&&!(Fi<48||Fi>102||Fi>57&&Fi<65||Fi>70&&Fi<97););return Gi(e,Ui()+(t<6&&32==Wi()&&32==$i()))}function Qi(e){for(;$i();)switch(Fi){case e:return Li;case 34:case 39:34!==e&&39!==e&&Qi(Fi);break;case 40:41===e&&Qi(e);break;case 92:$i()}return Li}function ea(e,t){for(;$i()&&e+Fi!==57&&(e+Fi!==84||47!==Wi()););return"/*"+Gi(t,Li-1)+"*"+Si(47===e?e:$i())}function ta(e){for(;!qi(Wi());)$i();return Gi(e,Li)}var na="-ms-",ra="-moz-",oa="-webkit-",ia="comm",aa="rule",sa="decl",la="@keyframes";function ca(e,t){for(var n="",r=Ni(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ua(e,t,n,r){switch(e.type){case"@import":case sa:return e.return=e.return||e.value;case ia:return"";case la:return e.return=e.value+"{"+ca(e.children,r)+"}";case aa:e.value=e.props.join(",")}return Mi(n=ca(e.children,r))?e.return=e.value+"{"+n+"}":""}function da(e){return Ki(fa("",null,null,null,[""],e=Yi(e),0,[0],e))}function fa(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,m=0,p=0,h=1,g=1,v=1,b=0,y="",x=o,w=i,E=r,_=y;g;)switch(p=b,b=$i()){case 40:if(108!=p&&58==Ii(_,d-1)){-1!=Ti(_+=Pi(Xi(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Xi(b);break;case 9:case 10:case 13:case 32:_+=Zi(p);break;case 92:_+=Ji(Ui()-1,7);continue;case 47:switch(Wi()){case 42:case 47:Di(pa(ea($i(),Ui()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=Mi(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:m>0&&Mi(_)-d&&Di(m>32?ha(_+";",r,n,d-1):ha(Pi(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Di(E=ma(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)fa(_,t,E,E,x,i,d,s,w);else switch(99===f&&110===Ii(_,3)?100:f){case 100:case 109:case 115:fa(e,E,E,r&&Di(ma(e,E,E,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:fa(_,E,E,E,[""],w,0,s,w)}}c=u=m=0,h=v=1,y=_="",d=a;break;case 58:d=1+Mi(_),m=p;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Hi())continue;switch(_+=Si(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Mi(_)-1)*v,v=1;break;case 64:45===Wi()&&(_+=Xi($i())),f=Wi(),u=d=Mi(y=_+=ta(Ui())),b++;break;case 45:45===p&&2==Mi(_)&&(h=0)}}return i}function ma(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],m=Ni(f),p=0,h=0,g=0;p<r;++p)for(var v=0,b=Ri(e,d+1,d=_i(h=a[p])),y=e;v<m;++v)(y=ki(h>0?f[v]+" "+b:Pi(b,/&\f/g,f[v])))&&(l[g++]=y);return ji(e,t,n,0===o?aa:s,l,c,u)}function pa(e,t,n){return ji(e,t,n,ia,Si(Fi),Ri(e,2,-2),0)}function ha(e,t,n,r){return ji(e,t,n,sa,Ri(e,0,r),Ri(e,r+1,-1),r)}var ga=function(e,t,n){for(var r=0,o=0;r=o,o=Wi(),38===r&&12===o&&(t[n]=1),!qi(o);)$i();return Gi(e,Li)},va=function(e,t){return Ki(function(e,t){var n=-1,r=44;do{switch(qi(r)){case 0:38===r&&12===Wi()&&(t[n]=1),e[n]+=ga(Li-1,t,n);break;case 2:e[n]+=Xi(r);break;case 4:if(44===r){e[++n]=58===Wi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Si(r)}}while(r=$i());return e}(Yi(e),t))},ba=new WeakMap,ya=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ba.get(n))&&!r){ba.set(e,!0);for(var o=[],i=va(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},xa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function wa(e,t){switch(function(e,t){return 45^Ii(e,0)?(((t<<2^Ii(e,0))<<2^Ii(e,1))<<2^Ii(e,2))<<2^Ii(e,3):0}(e,t)){case 5103:return oa+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return oa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oa+e+ra+e+na+e+e;case 6828:case 4268:return oa+e+na+e+e;case 6165:return oa+e+na+"flex-"+e+e;case 5187:return oa+e+Pi(e,/(\w+).+(:[^]+)/,oa+"box-$1$2"+na+"flex-$1$2")+e;case 5443:return oa+e+na+"flex-item-"+Pi(e,/flex-|-self/,"")+e;case 4675:return oa+e+na+"flex-line-pack"+Pi(e,/align-content|flex-|-self/,"")+e;case 5548:return oa+e+na+Pi(e,"shrink","negative")+e;case 5292:return oa+e+na+Pi(e,"basis","preferred-size")+e;case 6060:return oa+"box-"+Pi(e,"-grow","")+oa+e+na+Pi(e,"grow","positive")+e;case 4554:return oa+Pi(e,/([^-])(transform)/g,"$1"+oa+"$2")+e;case 6187:return Pi(Pi(Pi(e,/(zoom-|grab)/,oa+"$1"),/(image-set)/,oa+"$1"),e,"")+e;case 5495:case 3959:return Pi(e,/(image-set\([^]*)/,oa+"$1$`$1");case 4968:return Pi(Pi(e,/(.+:)(flex-)?(.*)/,oa+"box-pack:$3"+na+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oa+e+e;case 4095:case 3583:case 4068:case 2532:return Pi(e,/(.+)-inline(.+)/,oa+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mi(e)-1-t>6)switch(Ii(e,t+1)){case 109:if(45!==Ii(e,t+4))break;case 102:return Pi(e,/(.+:)(.+)-([^]+)/,"$1"+oa+"$2-$3$1"+ra+(108==Ii(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ti(e,"stretch")?wa(Pi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ii(e,t+1))break;case 6444:switch(Ii(e,Mi(e)-3-(~Ti(e,"!important")&&10))){case 107:return Pi(e,":",":"+oa)+e;case 101:return Pi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oa+(45===Ii(e,14)?"inline-":"")+"box$3$1"+oa+"$2$3$1"+na+"$2box$3")+e}break;case 5936:switch(Ii(e,t+11)){case 114:return oa+e+na+Pi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oa+e+na+Pi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oa+e+na+Pi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oa+e+na+e+e}return e}var Ea=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case sa:e.return=wa(e.value,e.length);break;case la:return ca([Vi(e,{value:Pi(e.value,"@","@"+oa)})],r);case aa:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ca([Vi(e,{props:[Pi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ca([Vi(e,{props:[Pi(t,/:(plac\w+)/,":"+oa+"input-$1")]}),Vi(e,{props:[Pi(t,/:(plac\w+)/,":-moz-$1")]}),Vi(e,{props:[Pi(t,/:(plac\w+)/,na+"input-$1")]})],r)}return""}))}}];const _a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Ea;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[ua,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(c=[ya,xa].concat(r,f),u=Ni(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){ca(da(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ei({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};const Sa=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const Ca={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ka(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Pa=/[A-Z]|^ms/g,Ta=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ia=function(e){return 45===e.charCodeAt(1)},Ra=function(e){return null!=e&&"boolean"!=typeof e},Ma=ka((function(e){return Ia(e)?e:e.replace(Pa,"-$&").toLowerCase()})),Na=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ta,(function(e,t,n){return Aa={name:t,styles:n,next:Aa},t}))}return 1===Ca[e]||Ia(e)||"number"!=typeof t||0===t?t:t+"px"};function Da(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Aa={name:n.name,styles:n.styles,next:Aa},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Aa={name:r.name,styles:r.styles,next:Aa},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Da(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ra(a)&&(r+=Ma(i)+":"+Na(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Da(e,t,a);switch(i){case"animation":case"animationName":r+=Ma(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Ra(a[l])&&(r+=Ma(i)+":"+Na(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Aa,i=n(e);return Aa=o,Da(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Aa,Oa=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var za=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Aa=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Da(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Da(n,t,e[a]),r&&(o+=i[a]);Oa.lastIndex=0;for(var s,l="";null!==(s=Oa.exec(o));)l+="-"+s[1];return{name:Sa(o)+l,styles:o,next:Aa}},La=!!r.useInsertionEffect&&r.useInsertionEffect,Fa=La||function(e){return e()},Ba=(0,r.createContext)("undefined"!=typeof HTMLElement?_a({key:"css"}):null);var ja=Ba.Provider,Va=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(Ba);return e(t,o,n)}))},Ha=(0,r.createContext)({});function $a(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Wa=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ua=function(e,t,n){Wa(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};function Ga(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function qa(e,t,n){var r=[],o=$a(e,r,n);return r.length<2?n:o+t(r)}var Ya=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n};const Ka=function(e){var t=_a(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=za(n,t.registered,void 0);return Ua(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return qa(t.registered,n,Ya(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=za(n,t.registered);Ga(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=za(n,t.registered),i="animation-"+o.name;return Ga(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:$a.bind(null,t.registered),merge:qa.bind(null,t.registered,n)}};var Xa=Ka({key:"css"}),Za=(Xa.flush,Xa.hydrate,Xa.cx);Xa.merge,Xa.getRegisteredStyles,Xa.injectGlobal,Xa.keyframes,Xa.css,Xa.sheet,Xa.cache;const Ja=()=>{const e=(0,r.useContext)(Ba),t=(0,Vo.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Za(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Ua(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Qa(e,t){const n=li(),r=n?.[t]||{},o={[di]:!0,...(i=t,{[ui]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Ja()(wi(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function es(e,t){return ns(e,t,{forwardsRef:!0})}function ts(e,t){return ns(e,t)}function ns(e,t,n){const r=n?.forwardsRef?(0,Vo.forwardRef)(e):e;let o=r[fi]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[fi]:[...new Set(o)],displayName:t,selector:`.${wi(t)}`})}function rs(e){if(!e)return[];let t=[];return e[fi]&&(t=e[fi]),e.type&&e.type[fi]&&(t=e.type[fi]),t}function os(e,t){return!!e&&("string"==typeof t?rs(e).includes(t):!!Array.isArray(t)&&t.some((t=>rs(e).includes(t))))}const is={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},as.apply(this,arguments)}function ss(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ls=/^((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)-.*))$/,cs=ss((function(e){return ls.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),us=function(e){return"theme"!==e},ds=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?cs:us},fs=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ms=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Wa(t,n,r);Fa((function(){return Ua(t,n,r)}));return null};const ps=function e(t,n){var o,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var l=fs(t,n,a),c=l||ds(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var m=d.length,p=1;p<m;p++)f.push(d[p],d[0][p])}var h=Va((function(e,t,n){var o=u&&e.as||s,a="",d=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=(0,r.useContext)(Ha)}"string"==typeof e.className?a=$a(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var h=za(f.concat(d),t.registered,m);a+=t.key+"-"+h.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?ds(o):c,v={};for(var b in e)u&&"as"===b||g(b)&&(v[b]=e[b]);return v.className=a,v.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ms,{cache:t,serialized:h,isStringTag:"string"==typeof o}),(0,r.createElement)(o,v))}));return h.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=f,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,as({},n,r,{shouldForwardProp:fs(h,r,!0)})).apply(void 0,f)},h}},hs=ps("div",{target:"e19lxcc00"})("");hs.selector=".components-view",hs.displayName="View";const gs=hs;const vs=es((function(e,t){const{style:n,...o}=Qa(e,"VisuallyHidden");return(0,r.createElement)(gs,{ref:t,...o,style:{...is,...n||{}}})}),"VisuallyHidden"),bs=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],ys={"top left":(0,u.__)("Top Left"),"top center":(0,u.__)("Top Center"),"top right":(0,u.__)("Top Right"),"center left":(0,u.__)("Center Left"),"center center":(0,u.__)("Center"),center:(0,u.__)("Center"),"center right":(0,u.__)("Center Right"),"bottom left":(0,u.__)("Bottom Left"),"bottom center":(0,u.__)("Bottom Center"),"bottom right":(0,u.__)("Bottom Right")},xs=bs.flat();function ws(e){const t="center"===e?"center center":e,n=t?.replace("-"," ");return xs.includes(n)?n:void 0}function Es(e,t){const n=ws(t);if(!n)return;return`${e}-${n.replace(" ","-")}`}o(1281);function _s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return za(t)}var Ss=function(){var e=_s.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const Cs="#fff",ks={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Ps={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${Cs})`,background:`var(--wp-components-color-background, ${Cs})`,foreground:`var(--wp-components-color-foreground, ${ks[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${Cs})`,gray:{900:`var(--wp-components-color-foreground, ${ks[900]})`,800:`var(--wp-components-color-gray-800, ${ks[800]})`,700:`var(--wp-components-color-gray-700, ${ks[700]})`,600:`var(--wp-components-color-gray-600, ${ks[600]})`,400:`var(--wp-components-color-gray-400, ${ks[400]})`,300:`var(--wp-components-color-gray-300, ${ks[300]})`,200:`var(--wp-components-color-gray-200, ${ks[200]})`,100:`var(--wp-components-color-gray-100, ${ks[100]})`}},Ts={background:Ps.background,backgroundDisabled:Ps.gray[100],border:Ps.gray[600],borderHover:Ps.gray[700],borderFocus:Ps.accent,borderDisabled:Ps.gray[400],textDisabled:Ps.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Ps.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Ps.background}, transparent 35%)`},Is=Object.freeze({gray:ks,white:Cs,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Ps,ui:Ts});function Rs(e="transition"){let t;switch(e){case"transition":t="transition-duration: 0ms;";break;case"animation":t="animation-duration: 1ms;";break;default:t="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${t};\n\t\t}\n\t`}var Ms={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const Ns=()=>Ms,Ds=ps("div",{target:"ecapk1j3"})(Ns,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>_s("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),As=ps("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Os=e=>_s("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Rs("transition")," ",(({isActive:e})=>_s("box-shadow:",e?`0 0 0 2px ${Is.gray[900]}`:null,";color:",e?Is.gray[900]:Is.gray[400],";*:hover>&{color:",e?Is.gray[900]:Is.theme.accent,";}",""))(e),";",""),zs=ps("span",{target:"ecapk1j1"})("height:6px;width:6px;",Os,";"),Ls=ps("span",{target:"ecapk1j0"})({name:"rjf3ub",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"});function Fs({id:e,isActive:t=!1,value:n,...o}){const i=ys[n];return(0,r.createElement)(Qo,{text:i},(0,r.createElement)(qt,{id:e,render:(0,r.createElement)(Ls,{...o,role:"gridcell"})},(0,r.createElement)(vs,null,n),(0,r.createElement)(zs,{isActive:t,role:"presentation"})))}function Bs(e,t,n){return Ce(t,[n.store]),Ht(e,n,"items","setItems"),e}function js(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function Vs(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=V(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:V(null==n?void 0:n.renderedItems,[])},a=null==(s=e.store)?void 0:s.__unstablePrivateStore;var s;const l=Rt({items:r,renderedItems:i.renderedItems},a),c=Rt(i,e.store),u=e=>{const t=js(e);l.setState("renderedItems",t),c.setState("renderedItems",t)};Mt(c,(()=>Nt(l))),Mt(l,(()=>Ot(l,["items"],(e=>{c.setState("items",e.items)})))),Mt(l,(()=>Ot(l,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=c.getState();e.renderedItems!==t&&u(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return G(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>u(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const d=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=R(R({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},f=e=>d(e,(e=>l.setState("items",e)),!0);return M(R({},c),{registerItem:f,renderItem:e=>z(f(e),d(e,(e=>l.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=c.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:l})}function Hs(e){const t=[];for(const n of e)t.push(...n);return t}function $s(e){return e.slice().reverse()}var Ws={id:null};function Us(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function Gs(e,t){return e.filter((e=>e.rowId===t))}function qs(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function Ys(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function Ks(e,t,n){const r=Ys(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?Us(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function Xs(e){const t=qs(e),n=Ys(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(M(R({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function Zs(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Vs(e),o=V(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Rt(M(R({},r.getState()),{activeId:o,baseElement:V(null==n?void 0:n.baseElement,null),includesBaseElement:V(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:V(null==n?void 0:n.moves,0),orientation:V(e.orientation,null==n?void 0:n.orientation,"both"),rtl:V(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:V(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:V(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:V(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);Mt(i,(()=>At(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=Us(e.renderedItems))?void 0:n.id}))}))));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?$s(e):e;if(null==s)return null==(o=Us(f))?void 0:o.id;const m=f.find((e=>e.id===s));if(!m)return null==(a=Us(f))?void 0:a.id;const p=!!m.rowId,h=f.indexOf(m),g=f.slice(h+1),v=Gs(g,m.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(p?t||"horizontal":t),y=c&&c!==b,x=p&&u&&u!==b;if(n=n||!p&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[Ws]:[],...e.slice(0,r)]}(x&&!n?f:Gs(f,m.rowId),s,n),t=Us(e,s);return null==t?void 0:t.id}if(x){const e=Us(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=Us(v,s);return!w&&n?null:null==w?void 0:w.id};return M(R(R({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=Us(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=Us($s(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=Us(n))?void 0:t.rowId)&&o;return a($s(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=Xs(Hs(Ks(qs(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=Xs($s(Hs(Ks(qs(n),t,s))));return a(l,"vertical",o,e)}})}function Js(e,t,n){return Ht(e=Bs(e,t,n),n,"activeId","setActiveId"),Ht(e,n,"includesBaseElement"),Ht(e,n,"virtualFocus"),Ht(e,n,"orientation"),Ht(e,n,"rtl"),Ht(e,n,"focusLoop"),Ht(e,n,"focusWrap"),Ht(e,n,"focusShift"),e}function Qs(e={}){const[t,n]=$t(Zs,e);return Js(t,n,e)}function el(e,t,n){return we((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!ce(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!te(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=yt(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,c=E(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var tl=Ve((e=>{var t=e,{store:n,composite:o=!0,focusOnMove:i=o,moveOnKeyPress:a=!0}=t,s=E(t,["store","composite","focusOnMove","moveOnKeyPress"]);const l=St();F(n=n||l,!1);const c=(0,r.useRef)(null),u=function(e){const[t,n]=(0,r.useState)(!1),o=(0,r.useCallback)((()=>n(!0)),[]),i=e.useState((t=>yt(e,t.activeId)));return(0,r.useEffect)((()=>{const e=null==i?void 0:i.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[i,t]),o}(n),d=n.useState("moves");(0,r.useEffect)((()=>{var e;if(!n)return;if(!d)return;if(!o)return;if(!i)return;const{activeId:t}=n.getState(),r=null==(e=yt(n,t))?void 0:e.element;r&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(R({block:"nearest",inline:"nearest"},t))):e.focus()}(r)}),[n,d,o,i]),be((()=>{if(!n)return;if(!d)return;if(!o)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const r=c.current;c.current=null,r&&ue(r,{relatedTarget:e}),Ze(e)||e.focus()}),[n,d,o]);const f=n.useState("activeId"),m=n.useState("virtualFocus");be((()=>{var e;if(!n)return;if(!o)return;if(!m)return;const t=c.current;if(c.current=null,!t)return;const r=(null==(e=yt(n,f))?void 0:e.element)||q(t);r!==t&&ue(t,{relatedTarget:r})}),[n,f,m,o]);const p=el(n,s.onKeyDownCapture,c),h=el(n,s.onKeyUpCapture,c),g=s.onFocusCapture,v=we((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[xt];return delete e[xt],t}(e.currentTarget);ce(e)&&o&&(e.stopPropagation(),c.current=r)})),b=s.onFocus,y=we((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!o)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:r}=n.getState();r?ce(e)&&!wt(n,t)&&queueMicrotask(u):ce(e)&&n.setActiveId(null)})),_=s.onBlurCapture,S=we((e=>{var t;if(null==_||_(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=yt(n,o))?void 0:t.element,a=e.relatedTarget,s=wt(n,a),l=c.current;if(c.current=null,ce(e)&&s)a===i?l&&l!==a&&ue(l,e):i?ue(i,e):l&&ue(l,e),e.stopPropagation();else{!wt(n,e.target)&&i&&ue(i,e)}})),C=s.onKeyDown,k=Pe(a),P=we((e=>{var t;if(null==C||C(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=yt(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=function(e){return e.some((e=>!!e.rowId))}(i);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&te(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(Hs($s(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!k(e))return;e.preventDefault(),n.move(t)}}}));s=Te(s,(e=>(0,Le.jsx)(Ct,{value:n,children:e})),[n]);const T=n.useState((e=>{var t;if(n&&o&&e.virtualFocus)return null==(t=yt(n,e.activeId))?void 0:t.id}));s=w(x({"aria-activedescendant":T},s),{ref:Ee(o?n.setBaseElement:null,s.ref),onKeyDownCapture:p,onKeyUpCapture:h,onFocusCapture:v,onFocus:y,onBlurCapture:S,onKeyDown:P});const I=n.useState((e=>o&&(e.virtualFocus||null===e.activeId)));return s=ct(x({focusable:I},s))})),nl=Fe((e=>je("div",tl(e))));var rl=Ve((e=>{var t=e,{store:n,"aria-setsize":o,"aria-posinset":i}=t,a=E(t,["store","aria-setsize","aria-posinset"]);const s=_t();F(n=n||s,!1);const l=_e(a.id),c=n.useState((e=>e.baseElement||void 0)),u=(0,r.useMemo)((()=>({id:l,baseElement:c,ariaSetSize:o,ariaPosInSet:i})),[l,c,o,i]);return a=Te(a,(e=>(0,Le.jsx)(Tt.Provider,{value:u,children:e})),[u]),a=x({id:l},a)})),ol=Fe((e=>je("div",rl(e))));ps("div",{target:"erowt52"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const il=ps("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",Ns,";",(()=>_s({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>_s({pointerEvents:e?"none":void 0},"","")),";"),al=ps("span",{target:"erowt50"})("height:2px;width:2px;",Os,";",(({isActive:e})=>_s("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),sl=Ls;const ll=function({className:e,disablePointerEvents:t=!0,size:n=24,style:o={},value:i="center",...a}){const s=function(e="center"){const t=ws(e);if(!t)return;const n=xs.indexOf(t);return n>-1?n:void 0}(i),l=(n/24).toFixed(2),u=c()("component-alignment-matrix-control-icon",e),d={...o,transform:`scale(${l})`};return(0,r.createElement)(il,{...a,className:u,disablePointerEvents:t,role:"presentation",style:d},xs.map(((e,t)=>{const n=s===t;return(0,r.createElement)(sl,{key:e},(0,r.createElement)(al,{isActive:n}))})))};function cl({className:e,id:t,label:n=(0,u.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:a,width:s=92,...l}){const f=(0,d.useInstanceId)(cl,"alignment-matrix-control",t),m=Qs({defaultActiveId:Es(f,o),activeId:Es(f,i),setActiveId:e=>{const t=function(e,t){const n=t?.replace(e+"-","");return ws(n)}(f,e);t&&a?.(t)},rtl:(0,u.isRTL)()}),p=m.useState("activeId"),h=c()("component-alignment-matrix-control",e);return(0,r.createElement)(nl,{store:m,render:(0,r.createElement)(Ds,{...l,"aria-label":n,className:h,id:f,role:"grid",size:s})},bs.map(((e,t)=>(0,r.createElement)(ol,{render:(0,r.createElement)(As,{role:"row"}),key:t},e.map((e=>{const t=Es(f,e),n=t===p;return(0,r.createElement)(Fs,{id:t,isActive:n,key:e,value:e})}))))))}cl.Icon=ll;const ul=cl;function dl(e){return"appear"===e?"top":"left"}function fl(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:n=dl(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return c()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?c()("components-animate__slide-in","is-from-"+n):void 0}const ml=function({type:e,options:t={},children:n}){return n({className:fl({type:e,...t})})},pl=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),hl=(0,r.createContext)({}),gl=(0,r.createContext)(null),vl="undefined"!=typeof document,bl=vl?r.useLayoutEffect:r.useEffect,yl=(0,r.createContext)({strict:!1});function xl(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function wl(e){return"string"==typeof e||Array.isArray(e)}function El(e){return"object"==typeof e&&"function"==typeof e.start}const _l=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sl=["initial",..._l];function Cl(e){return El(e.animate)||Sl.some((t=>wl(e[t])))}function kl(e){return Boolean(Cl(e)||e.variants)}function Pl(e){const{initial:t,animate:n}=function(e,t){if(Cl(e)){const{initial:t,animate:n}=e;return{initial:!1===t||wl(t)?t:void 0,animate:wl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(hl));return(0,r.useMemo)((()=>({initial:t,animate:n})),[Tl(t),Tl(n)])}function Tl(e){return Array.isArray(e)?e.join(" "):e}const Il={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Rl={};for(const e in Il)Rl[e]={isEnabled:t=>Il[e].some((e=>!!t[e]))};const Ml=(0,r.createContext)({}),Nl=(0,r.createContext)({}),Dl=Symbol.for("motionComponentSymbol");function Al({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Rl[t]={...Rl[t],...e[t]}}(e);const a=(0,r.forwardRef)((function(a,s){let l;const c={...(0,r.useContext)(pl),...a,layoutId:Ol(a)},{isStatic:u}=c,d=Pl(a),f=o(a,u);if(!u&&vl){d.visualElement=function(e,t,n,o){const{visualElement:i}=(0,r.useContext)(hl),a=(0,r.useContext)(yl),s=(0,r.useContext)(gl),l=(0,r.useContext)(pl).reducedMotion,c=(0,r.useRef)();o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;(0,r.useInsertionEffect)((()=>{u&&u.update(n,s)}));const d=(0,r.useRef)(Boolean(window.HandoffAppearAnimations));return bl((()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,r.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)})),u}(i,f,c,t);const n=(0,r.useContext)(Nl),o=(0,r.useContext)(yl).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,o,e,n))}return r.createElement(hl.Provider,{value:d},l&&d.visualElement?r.createElement(l,{visualElement:d.visualElement,...c}):null,n(i,a,function(e,t,n){return(0,r.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):xl(n)&&(n.current=r))}),[t])}(f,d.visualElement,s),f,u,d.visualElement))}));return a[Dl]=i,a}function Ol({layoutId:e}){const t=(0,r.useContext)(Ml).id;return t&&void 0!==e?t+"-"+e:e}function zl(e){function t(t,n={}){return Al(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Ll=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fl(e){return"string"==typeof e&&!e.includes("-")&&!!(Ll.indexOf(e)>-1||/[A-Z]/.test(e))}const Bl={};const jl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vl=new Set(jl);function Hl(e,{layout:t,layoutId:n}){return Vl.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Bl[e]||"opacity"===e)}const $l=e=>Boolean(e&&e.getVelocity),Wl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ul=jl.length;const Gl=e=>t=>"string"==typeof t&&t.startsWith(e),ql=Gl("--"),Yl=Gl("var(--"),Kl=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Xl=(e,t,n)=>Math.min(Math.max(n,e),t),Zl={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Jl={...Zl,transform:e=>Xl(0,1,e)},Ql={...Zl,default:1},ec=e=>Math.round(1e5*e)/1e5,tc=/(-)?([\d]*\.?[\d])+/g,nc=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function oc(e){return"string"==typeof e}const ic=e=>({test:t=>oc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ac=ic("deg"),sc=ic("%"),lc=ic("px"),cc=ic("vh"),uc=ic("vw"),dc={...sc,parse:e=>sc.parse(e)/100,transform:e=>sc.transform(100*e)},fc={...Zl,transform:Math.round},mc={borderWidth:lc,borderTopWidth:lc,borderRightWidth:lc,borderBottomWidth:lc,borderLeftWidth:lc,borderRadius:lc,radius:lc,borderTopLeftRadius:lc,borderTopRightRadius:lc,borderBottomRightRadius:lc,borderBottomLeftRadius:lc,width:lc,maxWidth:lc,height:lc,maxHeight:lc,size:lc,top:lc,right:lc,bottom:lc,left:lc,padding:lc,paddingTop:lc,paddingRight:lc,paddingBottom:lc,paddingLeft:lc,margin:lc,marginTop:lc,marginRight:lc,marginBottom:lc,marginLeft:lc,rotate:ac,rotateX:ac,rotateY:ac,rotateZ:ac,scale:Ql,scaleX:Ql,scaleY:Ql,scaleZ:Ql,skew:ac,skewX:ac,skewY:ac,distance:lc,translateX:lc,translateY:lc,translateZ:lc,x:lc,y:lc,z:lc,perspective:lc,transformPerspective:lc,opacity:Jl,originX:dc,originY:dc,originZ:lc,zIndex:fc,fillOpacity:Jl,strokeOpacity:Jl,numOctaves:fc};function pc(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(ql(e)){i[e]=n;continue}const r=mc[e],d=Kl(n,r);if(Vl.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Ul;t++){const n=jl[t];void 0!==e[n]&&(i+=`${Wl[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const hc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function gc(e,t,n){for(const r in t)$l(t[r])||Hl(r,n)||(e[r]=t[r])}function vc(e,t,n){const o={};return gc(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},t,n){return(0,r.useMemo)((()=>{const r=hc();return pc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(o):o}function bc(e,t,n){const r={},o=vc(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const yc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function xc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||yc.has(e)}let wc=e=>!xc(e);try{(Ec=require("@emotion/is-prop-valid").default)&&(wc=e=>e.startsWith("on")?!xc(e):Ec(e))}catch(W){}var Ec;function _c(e,t,n){return"string"==typeof e?e:lc.transform(t+n*e)}const Sc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cc={offset:"strokeDashoffset",array:"strokeDasharray"};function kc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(pc(e,c,u,f),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:h}=e;m.transform&&(h&&(p.transform=m.transform),delete m.transform),h&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${_c(t,e.x,e.width)} ${_c(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Sc:Cc;e[i.offset]=lc.transform(-r);const a=lc.transform(t),s=lc.transform(n);e[i.array]=`${a} ${s}`}(m,a,s,l,!1)}const Pc=()=>({...hc(),attrs:{}}),Tc=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ic(e,t,n,o){const i=(0,r.useMemo)((()=>{const n=Pc();return kc(n,t,{enableHardwareAcceleration:!1},Tc(o),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};gc(t,e.style,e),i.style={...t,...i.style}}return i}function Rc(e=!1){return(t,n,o,{latestValues:i},a)=>{const s=(Fl(t)?Ic:bc)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(wc(o)||!0===n&&xc(o)||!t&&!xc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,r.useMemo)((()=>$l(u)?u.get():u),[u]);return(0,r.createElement)(t,{...c,children:d})}}const Mc=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Nc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Dc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ac(e,t,n,r){Nc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Dc.has(n)?n:Mc(n),t.attrs[n])}function Oc(e,t){const{style:n}=e,r={};for(const o in n)($l(n[o])||t.style&&$l(t.style[o])||Hl(o,e))&&(r[o]=n[o]);return r}function zc(e,t){const n=Oc(e,t);for(const r in e)if($l(e[r])||$l(t[r])){n[-1!==jl.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Lc(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Fc(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Bc=e=>Array.isArray(e),jc=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Vc=e=>Bc(e)?e[e.length-1]||0:e;function Hc(e){const t=$l(e)?e.get():e;return jc(t)?t.toValue():t}const $c=e=>(t,n)=>{const o=(0,r.useContext)(hl),i=(0,r.useContext)(gl),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Wc(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,o,i);return n?a():Fc(a)};function Wc(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Hc(i[e]);let{initial:a,animate:s}=e;const l=Cl(e),c=kl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!El(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Lc(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const Uc=e=>e;class Gc{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const qc=["prepare","read","update","preRender","render","postRender"];const{schedule:Yc,cancel:Kc,state:Xc,steps:Zc}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=qc.reduce(((e,t)=>(e[t]=function(e){let t=new Gc,n=new Gc,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),a=e=>i[e].process(o),s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,qc.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))};return{schedule:qc.reduce(((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t}),{}),cancel:e=>qc.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Uc,!0),Jc={useVisualState:$c({scrapeMotionValuesFromProps:zc,createRenderState:Pc,onMount:(e,t,{renderState:n,latestValues:r})=>{Yc.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Yc.render((()=>{kc(n,r,{enableHardwareAcceleration:!1},Tc(t.tagName),e.transformTemplate),Ac(t,n)}))}})},Qc={useVisualState:$c({scrapeMotionValuesFromProps:Oc,createRenderState:hc})};function eu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const ru=e=>t=>tu(t)&&e(t,nu(t));function ou(e,t,n,r){return eu(e,t,ru(n),r)}const iu=(e,t)=>n=>t(e(n)),au=(...e)=>e.reduce(iu);function su(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const lu=su("dragHorizontal"),cu=su("dragVertical");function uu(e){let t=!1;if("y"===e)t=cu();else if("x"===e)t=lu();else{const e=lu(),n=cu();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function du(){const e=uu(!0);return!e||(e(),!1)}class fu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function mu(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return ou(e.current,n,((n,o)=>{if("touch"===n.type||du())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Yc.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const pu=(e,t)=>!!t&&(e===t||pu(e,t.parentElement));function hu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,nu(n))}const gu=new WeakMap,vu=new WeakMap,bu=e=>{const t=gu.get(e.target);t&&t(e)},yu=e=>{e.forEach(bu)};function xu(e,t,n){const r=function({root:e,...t}){const n=e||document;vu.has(n)||vu.set(n,{});const r=vu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(yu,{root:e,...t})),r[o]}(t);return gu.set(e,n),r.observe(e),()=>{gu.delete(e),r.unobserve(e)}}const wu={some:0,all:1};const Eu={inView:{Feature:class extends fu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:wu[r]};return xu(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends fu{constructor(){super(...arguments),this.removeStartListeners=Uc,this.removeEndListeners=Uc,this.removeAccessibleListeners=Uc,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=ou(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Yc.update((()=>{pu(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=ou(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=au(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=eu(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=eu(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&hu("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Yc.update((()=>n(e,t)))}))})),hu("down",((e,t)=>{this.startPress(e,t)}))})),t=eu(this.node.current,"blur",(()=>{this.isPressing&&hu("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=au(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Yc.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!du()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Yc.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=ou(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=eu(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=au(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends fu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=au(eu(this.node.current,"focus",(()=>this.onFocus())),eu(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends fu{mount(){this.unmount=au(mu(this.node,!0),mu(this.node,!1))}unmount(){}}}};function _u(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Su(e,t,n){const r=e.getProps();return Lc(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const Cu="data-"+Mc("framerAppearId");let ku=Uc,Pu=Uc;const Tu=e=>1e3*e,Iu=e=>e/1e3,Ru=!1,Mu=e=>Array.isArray(e)&&"number"==typeof e[0];function Nu(e){return Boolean(!e||"string"==typeof e&&Au[e]||Mu(e)||Array.isArray(e)&&e.every(Nu))}const Du=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Au={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Du([0,.65,.55,1]),circOut:Du([.55,0,1,.45]),backIn:Du([.31,.01,.66,-.59]),backOut:Du([.33,1.53,.69,.99])};function Ou(e){if(e)return Mu(e)?Du(e):Array.isArray(e)?e.map(Ou):Au[e]}const zu=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Lu=1e-7,Fu=12;function Bu(e,t,n,r){if(e===t&&n===r)return Uc;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=zu(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>Lu&&++s<Fu);return a}(t,0,1,e,n);return e=>0===e||1===e?e:zu(o(e),t,r)}const ju=Bu(.42,0,1,1),Vu=Bu(0,0,.58,1),Hu=Bu(.42,0,.58,1),$u=e=>Array.isArray(e)&&"number"!=typeof e[0],Wu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Uu=e=>t=>1-e(1-t),Gu=e=>1-Math.sin(Math.acos(e)),qu=Uu(Gu),Yu=Wu(qu),Ku=Bu(.33,1.53,.69,.99),Xu=Uu(Ku),Zu=Wu(Xu),Ju={linear:Uc,easeIn:ju,easeInOut:Hu,easeOut:Vu,circIn:Gu,circInOut:Yu,circOut:qu,backIn:Xu,backInOut:Zu,backOut:Ku,anticipate:e=>(e*=2)<1?.5*Xu(e):.5*(2-Math.pow(2,-10*(e-1)))},Qu=e=>{if(Array.isArray(e)){Pu(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Bu(t,n,r,o)}return"string"==typeof e?(Pu(void 0!==Ju[e],`Invalid easing type '${e}'`),Ju[e]):e},ed=(e,t)=>n=>Boolean(oc(n)&&rc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),td=(e,t,n)=>r=>{if(!oc(r))return r;const[o,i,a,s]=r.match(tc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},nd={...Zl,transform:e=>Math.round((e=>Xl(0,255,e))(e))},rd={test:ed("rgb","red"),parse:td("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+nd.transform(e)+", "+nd.transform(t)+", "+nd.transform(n)+", "+ec(Jl.transform(r))+")"};const od={test:ed("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:rd.transform},id={test:ed("hsl","hue"),parse:td("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sc.transform(ec(t))+", "+sc.transform(ec(n))+", "+ec(Jl.transform(r))+")"},ad={test:e=>rd.test(e)||od.test(e)||id.test(e),parse:e=>rd.test(e)?rd.parse(e):id.test(e)?id.parse(e):od.parse(e),transform:e=>oc(e)?e:e.hasOwnProperty("red")?rd.transform(e):id.transform(e)},sd=(e,t,n)=>-n*e+n*t+e;function ld(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const cd=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ud=[od,rd,id];function dd(e){const t=(e=>ud.find((t=>t.test(e))))(e);Pu(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===id&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=ld(s,r,e+1/3),i=ld(s,r,e),a=ld(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const fd=(e,t)=>{const n=dd(e),r=dd(t),o={...n};return e=>(o.red=cd(n.red,r.red,e),o.green=cd(n.green,r.green,e),o.blue=cd(n.blue,r.blue,e),o.alpha=sd(n.alpha,r.alpha,e),rd.transform(o))};const md={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Uc},pd={regex:nc,countKey:"Colors",token:"${c}",parse:ad.parse},hd={regex:tc,countKey:"Numbers",token:"${n}",parse:Zl.parse};function gd(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function vd(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&gd(n,md),gd(n,pd),gd(n,hd),n}function bd(e){return vd(e).values}function yd(e){const{values:t,numColors:n,numVars:r,tokenised:o}=vd(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(md.token,e[o]):o<r+n?t.replace(pd.token,ad.transform(e[o])):t.replace(hd.token,ec(e[o]));return t}}const xd=e=>"number"==typeof e?0:e;const wd={test:function(e){var t,n;return isNaN(e)&&oc(e)&&((null===(t=e.match(tc))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(nc))||void 0===n?void 0:n.length)||0)>0},parse:bd,createTransformer:yd,getAnimatableNone:function(e){const t=bd(e);return yd(e)(t.map(xd))}},Ed=(e,t)=>n=>`${n>0?t:e}`;function _d(e,t){return"number"==typeof e?n=>sd(e,t,n):ad.test(e)?fd(e,t):e.startsWith("var(")?Ed(e,t):kd(e,t)}const Sd=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>_d(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Cd=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=_d(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},kd=(e,t)=>{const n=wd.createTransformer(t),r=vd(e),o=vd(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?au(Sd(r.values,o.values),n):(ku(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ed(e,t))},Pd=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Td=(e,t)=>n=>sd(e,t,n);function Id(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?Td:"string"==typeof e?ad.test(e)?fd:kd:Array.isArray(e)?Sd:"object"==typeof e?Cd:Td}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Uc:t;i=au(e,i)}r.push(i)}return r}function Rd(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Pu(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Id(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Pd(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Xl(e[0],e[i-1],t)):l}function Md(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Pd(0,t,r);e.push(sd(n,1,o))}}(t,e.length-1),t}function Nd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=$u(r)?r.map(Qu):Qu(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Md(t),e),s=Rd(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Hu)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function Dd(e,t){return t?e*(1e3/t):0}const Ad=5;function Od(e,t,n){const r=Math.max(t-Ad,0);return Dd(n-e(r),t-r)}const zd=.001,Ld=.01,Fd=10,Bd=.05,jd=1;function Vd({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ku(e<=Tu(Fd),"Spring duration must be 10 seconds or less");let a=1-t;a=Xl(Bd,jd,a),e=Xl(Ld,Fd,Iu(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=$d(t,a),l=Math.exp(-o);return zd-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=$d(Math.pow(t,2),a);return(-o(t)+zd>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-zd,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Hd;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Tu(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Hd=12;function $d(e,t){return e*Math.sqrt(1-t*t)}const Wd=["duration","bounce"],Ud=["stiffness","damping","mass"];function Gd(e,t){return t.some((t=>void 0!==e[t]))}function qd({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Gd(e,Ud)&&Gd(e,Wd)){const n=Vd(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-Iu(u):0,p=l/(2*Math.sqrt(s*c)),h=i-o,g=Iu(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=$d(g,p);b=t=>{const n=Math.exp(-p*g*t);return i-n*((m+p*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===p)b=e=>i-Math.exp(-g*e)*(h+(m+g*h)*e);else{const e=g*Math.sqrt(p*p-1);b=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((m+p*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=m;0!==e&&(o=p<1?Od(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Yd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const h=d+p,g=void 0===a?h:a(h);g!==h&&(p=g-d);const v=e=>-p*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(x=e,w=qd({keyframes:[f.value,m(f.value)],velocity:Od(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),E(e)),void 0!==x&&e>x?w.next(e-x):(!t&&y(e),f)}}}const Kd=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Yc.update(t,!0),stop:()=>Kc(t),now:()=>Xc.isProcessing?Xc.timestamp:performance.now()}},Xd=2e4;function Zd(e){let t=0;let n=e.next(t);for(;!n.done&&t<Xd;)t+=50,n=e.next(t);return t>=Xd?1/0:t}const Jd={decay:Yd,inertia:Yd,tween:Nd,keyframes:Nd,spring:qd};function Qd({autoplay:e=!0,delay:t=0,driver:n=Kd,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let m,p,h=1,g=!1;const v=()=>{p=new Promise((e=>{m=e}))};let b;v();const y=Jd[o]||Nd;let x;y!==Nd&&"number"!=typeof r[0]&&(x=Rd([0,100],r,{clamp:!1}),r=[0,100]);const w=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",S=null,C=null,k=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=Zd(w));const{calculatedDuration:P}=w;let T=1/0,I=1/0;null!==P&&(T=P+a,I=T*(i+1)-a);let R=0;const M=e=>{if(null===C)return;h>0&&(C=Math.min(C,e)),h<0&&(C=Math.min(e-I/h,C)),R=null!==S?S:Math.round(e-C)*h;const n=R-t*(h>=0?1:-1),o=h>=0?n<0:n>I;R=Math.max(n,0),"finished"===_&&null===S&&(R=I);let l=R,c=w;if(i){const e=R/T;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(c=E));let o=Xl(0,1,n);R>I&&(o="reverse"===s&&r?1:0),l=o*T}const u=o?{done:!1,value:r[0]}:c.next(l);x&&(u.value=x(u.value));let{done:f}=u;o||null===P||(f=h>=0?R>=I:R<=0);const m=null===S&&("finished"===_||"running"===_&&f);return d&&d(u.value),m&&A(),u},N=()=>{b&&b.stop(),b=void 0},D=()=>{_="idle",N(),m(),v(),C=k=null},A=()=>{_="finished",u&&u(),N(),m()},O=()=>{if(g)return;b||(b=n(M));const e=b.now();l&&l(),null!==S?C=e-S:C&&"finished"!==_||(C=e),"finished"===_&&v(),k=C,S=null,_="running",b.start()};e&&O();const z={then:(e,t)=>p.then(e,t),get time(){return Iu(R)},set time(e){e=Tu(e),R=e,null===S&&b&&0!==h?C=b.now()-e/h:S=e},get duration(){const e=null===w.calculatedDuration?Zd(w):w.calculatedDuration;return Iu(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,z.time=Iu(R))},get state(){return _},play:O,pause:()=>{_="paused",S=R},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),D())},cancel:()=>{null!==k&&M(k),D()},complete:()=>{_="finished"},sample:e=>(C=0,M(e))};return z}const ef=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),tf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function nf(e,t,{onUpdate:n,onComplete:r,...o}){if(!(ef()&&tf.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Nu(t.ease))(t,o)){const e=Qd({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Ou(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f});o.syncStart&&(m.startTime=Xc.isProcessing?Xc.timestamp:document.timeline?document.timeline.currentTime:performance.now());const p=()=>m.cancel(),h=()=>{Yc.update(p),i(),l()};m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,Uc),get time(){return Iu(m.currentTime||0)},set time(e){m.currentTime=Tu(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Iu(u)},play:()=>{s||(m.play(),Kc(p))},pause:()=>m.pause(),stop:()=>{if(s=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Qd({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>m.finish(),cancel:h}}const rf={type:"spring",stiffness:500,damping:25,restSpeed:10},of={type:"keyframes",duration:.8},af={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sf=(e,{keyframes:t})=>t.length>2?of:Vl.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rf:af,lf=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!wd.test(t)&&"0"!==t||t.startsWith("url("))),cf=new Set(["brightness","contrast","saturate","opacity"]);function uf(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(tc)||[];if(!r)return e;const o=n.replace(r,"");let i=cf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const df=/([a-z-]*)\(.*?\)/g,ff={...wd,getAnimatableNone:e=>{const t=e.match(df);return t?t.map(uf).join(" "):e}},mf={...mc,color:ad,backgroundColor:ad,outlineColor:ad,fill:ad,stroke:ad,borderColor:ad,borderTopColor:ad,borderRightColor:ad,borderBottomColor:ad,borderLeftColor:ad,filter:ff,WebkitFilter:ff},pf=e=>mf[e];function hf(e,t){let n=pf(e);return n!==ff&&(n=wd),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gf=e=>/^0[^.\s]+$/.test(e);function vf(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||gf(e):void 0}function bf(e,t){return e[t]||e.default||e}const yf=(e,t,n,r={})=>o=>{const i=bf(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Tu(a);const l=function(e,t,n,r){const o=lf(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),vf(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=hf(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=lf(e,c),f=lf(e,u);ku(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,...sf(e,m)}),m.duration&&(m.duration=Tu(m.duration)),m.repeatDelay&&(m.repeatDelay=Tu(m.repeatDelay)),!d||!f||Ru||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Uc,pause:Uc,stop:Uc,then:e=>(e(),Promise.resolve()),cancel:Uc,complete:Uc});return t?Qd({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(Ru?{...m,delay:0}:m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=nf(t,e,m);if(n)return n}return Qd(m)};function xf(e){return Boolean($l(e)&&e.add)}const wf=e=>/^\-?\d*\.?\d+$/.test(e);function Ef(e,t){-1===e.indexOf(t)&&e.push(t)}function _f(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Sf{constructor(){this.subscriptions=[]}add(e){return Ef(this.subscriptions,e),()=>_f(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cf={current:void 0};class kf{constructor(e,t={}){var n;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=Xc;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Yc.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Yc.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Sf);const n=this.events[e].add(t);return"change"===e?()=>{n(),Yc.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Cf.current&&Cf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Dd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pf(e,t){return new kf(e,t)}const Tf=e=>t=>t.test(e),If=[Zl,lc,sc,ac,uc,cc,{test:e=>"auto"===e,parse:e=>e}],Rf=e=>If.find(Tf(e)),Mf=[...If,ad,wd],Nf=e=>Mf.find(Tf(e));function Df(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pf(n))}function Af(e,t){const n=Su(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){Df(e,t,Vc(i[t]))}}function Of(e,t){if(!t)return;return(t[e]||t.default||t).from}function zf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Lf(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&zf(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Cu];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Yc),a.syncStart=!0)}r.start(yf(t,r,o,e.shouldReduceMotion&&Vl.has(t)?{type:!1}:a));const d=r.animation;xf(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&Af(e,a)})),c}function Ff(e,t,n={}){const r=Su(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Lf(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Bf).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(Ff(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function Bf(e,t){return e.sortNodePosition(t)}const jf=[..._l].reverse(),Vf=_l.length;function Hf(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Ff(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Ff(e,t,n);else{const o="function"==typeof t?Su(e,t,n.custom):t;r=Promise.all(Lf(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function $f(e){let t=Hf(e);const n={animate:Uf(!0),whileInView:Uf(),whileHover:Uf(),whileTap:Uf(),whileDrag:Uf(),whileFocus:Uf(),exit:Uf()};let r=!0;const o=(t,n)=>{const r=Su(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<Vf;t++){const m=jf[t],p=n[m],h=void 0!==s[m]?s[m]:l[m],g=wl(h),v=m===a?p.isActive:null;!1===v&&(f=t);let b=h===l[m]&&h!==s[m]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),p.protectedKeys={...d},!p.isActive&&null===v||!h&&!p.prevProp||El(h)||"boolean"==typeof h)continue;const y=Wf(p.prevProp,h);let x=y||m===a&&p.isActive&&!b&&g||t>f&&g;const w=Array.isArray(h)?h:[h];let E=w.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=p,S={..._,...E},C=e=>{x=!0,u.delete(e),p.needsAnimating[e]=!0};for(const e in S){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?Bc(t)&&Bc(n)?!_u(t,n)||y?C(e):p.protectedKeys[e]=!0:void 0!==t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0)}p.prevProp=h,p.prevResolvedValues=E,p.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(x=!1),x&&!b&&c.push(...w.map((e=>({animation:e,options:{type:m,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Wf(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!_u(t,e)}function Uf(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Gf=0;const qf={animation:{Feature:class extends fu{constructor(e){super(e),e.animationState||(e.animationState=$f(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),El(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends fu{constructor(){super(...arguments),this.id=Gf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Yf=(e,t)=>Math.abs(e-t);class Kf{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Jf(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Yf(e.x,t.x),r=Yf(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Xc;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Xf(t,this.transformPagePoint),Yc.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Jf("pointercancel"===e.type?this.lastMoveEventInfo:Xf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!tu(e))return;this.handlers=t,this.transformPagePoint=n;const r=Xf(nu(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Xc;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Jf(r,this.history)),this.removeListeners=au(ou(window,"pointermove",this.handlePointerMove),ou(window,"pointerup",this.handlePointerUp),ou(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Kc(this.updatePoint)}}function Xf(e,t){return t?{point:t(e.point)}:e}function Zf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jf({point:e},t){return{point:e,delta:Zf(e,em(t)),offset:Zf(e,Qf(t)),velocity:tm(t,.1)}}function Qf(e){return e[0]}function em(e){return e[e.length-1]}function tm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=em(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Tu(t)));)n--;if(!r)return{x:0,y:0};const i=Iu(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function nm(e){return e.max-e.min}function rm(e,t=0,n=.01){return Math.abs(e-t)<=n}function om(e,t,n,r=.5){e.origin=r,e.originPoint=sd(t.min,t.max,e.origin),e.scale=nm(n)/nm(t),(rm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=sd(n.min,n.max,e.origin)-e.originPoint,(rm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function im(e,t,n,r){om(e.x,t.x,n.x,r?r.originX:void 0),om(e.y,t.y,n.y,r?r.originY:void 0)}function am(e,t,n){e.min=n.min+t.min,e.max=e.min+nm(t)}function sm(e,t,n){e.min=t.min-n.min,e.max=e.min+nm(t)}function lm(e,t,n){sm(e.x,t.x,n.x),sm(e.y,t.y,n.y)}function cm(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function um(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const dm=.35;function fm(e,t,n){return{min:mm(e,t),max:mm(e,n)}}function mm(e,t){return"number"==typeof e?e:e[t]||0}const pm=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),hm=()=>({x:{min:0,max:0},y:{min:0,max:0}});function gm(e){return[e("x"),e("y")]}function vm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bm(e){return void 0===e||1===e}function ym({scale:e,scaleX:t,scaleY:n}){return!bm(e)||!bm(t)||!bm(n)}function xm(e){return ym(e)||wm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function wm(e){return Em(e.x)||Em(e.y)}function Em(e){return e&&"0%"!==e}function _m(e,t,n){return n+t*(e-n)}function Sm(e,t,n,r,o){return void 0!==o&&(e=_m(e,o,r)),_m(e,n,r)+t}function Cm(e,t=0,n=1,r,o){e.min=Sm(e.min,t,n,r,o),e.max=Sm(e.max,t,n,r,o)}function km(e,{x:t,y:n}){Cm(e.x,t.translate,t.scale,t.originPoint),Cm(e.y,n.translate,n.scale,n.originPoint)}function Pm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Tm(e,t){e.min=e.min+t,e.max=e.max+t}function Im(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=sd(e.min,e.max,i);Cm(e,t[n],t[r],a,t.scale)}const Rm=["x","scaleX","originX"],Mm=["y","scaleY","originY"];function Nm(e,t){Im(e.x,t,Rm),Im(e.y,t,Mm)}function Dm(e,t){return vm(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Am=new WeakMap;class Om{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=hm(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Kf(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(nu(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=uu(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gm((e=>{let t=this.getAxisMotionValue(e).get()||0;if(sc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=nm(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Yc.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Yc.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!zm(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?sd(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?sd(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&xl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:cm(e.x,n,o),y:cm(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=dm){return!1===e?e=0:!0===e&&(e=dm),{x:fm(e,"left","right"),y:fm(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&gm((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!xl(e))return!1;const n=e.current;Pu(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Dm(e,n),{scroll:o}=t;return o&&(Tm(r.x,o.offset.x),Tm(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:um(e.x,t.x),y:um(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=vm(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=gm((a=>{if(!zm(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(yf(e,n,0,t))}stopAnimation(){gm((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){gm((t=>{const{drag:n}=this.getProps();if(!zm(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-sd(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!xl(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};gm((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=nm(e),o=nm(t);return o>r?n=Pd(t.min,t.max-r,e.min):r>o&&(n=Pd(e.min,e.max-o,t.min)),Xl(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),gm((t=>{if(!zm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(sd(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Am.set(this.visualElement,this);const e=ou(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();xl(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=eu(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(gm((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=dm,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function zm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Lm=e=>(t,n)=>{e&&Yc.update((()=>e(t,n)))};const Fm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const jm={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!lc.test(e))return e;e=parseFloat(e)}return`${Bm(e,t.target.x)}% ${Bm(e,t.target.y)}%`}},Vm={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=wd.parse(e);if(o.length>5)return r;const i=wd.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=sd(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class Hm extends r.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Wm,Object.assign(Bl,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Fm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Yc.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function $m(e){const[t,n]=function(){const e=(0,r.useContext)(gl);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=e,i=(0,r.useId)();return(0,r.useEffect)((()=>o(i)),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}(),o=(0,r.useContext)(Ml);return r.createElement(Hm,{...e,layoutGroup:o,switchLayoutGroup:(0,r.useContext)(Nl),isPresent:t,safeToRemove:n})}const Wm={borderRadius:{...jm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jm,borderTopRightRadius:jm,borderBottomLeftRadius:jm,borderBottomRightRadius:jm,boxShadow:Vm},Um=["TopLeft","TopRight","BottomLeft","BottomRight"],Gm=Um.length,qm=e=>"string"==typeof e?parseFloat(e):e,Ym=e=>"number"==typeof e||lc.test(e);function Km(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Xm=Jm(0,.5,qu),Zm=Jm(.5,.95,Uc);function Jm(e,t,n){return r=>r<e?0:r>t?1:n(Pd(e,t,r))}function Qm(e,t){e.min=t.min,e.max=t.max}function ep(e,t){Qm(e.x,t.x),Qm(e.y,t.y)}function tp(e,t,n,r,o){return e=_m(e-=t,1/n,r),void 0!==o&&(e=_m(e,1/o,r)),e}function np(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){sc.test(t)&&(t=parseFloat(t),t=sd(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=sd(i.min,i.max,r);e===i&&(s-=t),e.min=tp(e.min,t,n,s,o),e.max=tp(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const rp=["x","scaleX","originX"],op=["y","scaleY","originY"];function ip(e,t,n,r){np(e.x,t,rp,n?n.x:void 0,r?r.x:void 0),np(e.y,t,op,n?n.y:void 0,r?r.y:void 0)}function ap(e){return 0===e.translate&&1===e.scale}function sp(e){return ap(e.x)&&ap(e.y)}function lp(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function cp(e){return nm(e.x)/nm(e.y)}class up{constructor(){this.members=[]}add(e){Ef(this.members,e),e.scheduleRender()}remove(e){if(_f(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dp(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const fp=(e,t)=>e.depth-t.depth;class mp{constructor(){this.children=[],this.isDirty=!1}add(e){Ef(this.children,e),this.isDirty=!0}remove(e){_f(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fp),this.isDirty=!1,this.children.forEach(e)}}const pp=["","X","Y","Z"];let hp=0;const gp={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=hp++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;gp.totalNodes=gp.resolvedTargetDeltas=gp.recalculatedProjection=0,this.nodes.forEach(xp),this.nodes.forEach(Pp),this.nodes.forEach(Tp),this.nodes.forEach(wp),e=gp,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new mp)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Sf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Kc(r),e(i-t))};return Yc.read(r,!0),()=>Kc(r)}(r,250),Fm.hasAnimatedSinceResize&&(Fm.hasAnimatedSinceResize=!1,this.nodes.forEach(kp))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Ap,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!lp(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...bf(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||kp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Kc(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ip),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(_p);this.isUpdating||this.nodes.forEach(Sp),this.isUpdating=!1,this.nodes.forEach(Cp),this.nodes.forEach(bp),this.nodes.forEach(yp),this.clearAllSnapshots();const e=performance.now();Xc.delta=Xl(0,1e3/60,e-Xc.timestamp),Xc.timestamp=e,Xc.isProcessing=!0,Zc.update.process(Xc),Zc.preRender.process(Xc),Zc.render.process(Xc),Xc.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Ep),this.sharedNodes.forEach(Rp)}scheduleUpdateProjection(){Yc.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Yc.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=hm(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!sp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||xm(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Lp((r=n).x),Lp(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return hm();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Tm(t.x,n.offset.x),Tm(t.y,n.offset.y)),t}removeElementScroll(e){const t=hm();ep(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){ep(t,e);const{scroll:n}=this.root;n&&(Tm(t.x,-n.offset.x),Tm(t.y,-n.offset.y))}Tm(t.x,o.offset.x),Tm(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=hm();ep(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Nm(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),xm(r.latestValues)&&Nm(n,r.latestValues)}return xm(this.latestValues)&&Nm(n,this.latestValues),n}removeTransform(e){const t=hm();ep(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!xm(n.latestValues))continue;ym(n.latestValues)&&n.updateSnapshot();const r=hm();ep(r,n.measurePageBox()),ip(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return xm(this.latestValues)&&ip(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xc.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Xc.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=hm(),this.relativeTargetOrigin=hm(),lm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ep(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=hm(),this.targetWithTransforms=hm()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,am(a.x,s.x,l.x),am(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ep(this.target,this.layout.layoutBox),km(this.target,this.targetDelta)):ep(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=hm(),this.relativeTargetOrigin=hm(),lm(this.relativeTargetOrigin,this.target,e.target),ep(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}gp.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ym(this.parent.latestValues)&&!wm(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Xc.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;ep(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Nm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,km(e,a)),r&&xm(i.latestValues)&&Nm(e,i.latestValues))}t.x=Pm(t.x),t.y=Pm(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=pm(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=pm(),this.projectionDeltaWithTransform=pm());const c=this.projectionTransform;im(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=dp(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),gp.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=pm();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=hm(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Dp));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Mp(i.x,e.x,n),Mp(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Np(e.x,t.x,n.x,r),Np(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=hm()),ep(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=sd(0,void 0!==n.opacity?n.opacity:1,Xm(r)),e.opacityExit=sd(void 0!==t.opacity?t.opacity:1,0,Zm(r))):i&&(e.opacity=sd(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Gm;o++){const i=`border${Um[o]}Radius`;let a=Km(t,i),s=Km(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ym(a)===Ym(s)?(e[i]=Math.max(sd(qm(a),qm(s),r),0),(sc.test(s)||sc.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=sd(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Kc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yc.update((()=>{Fm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=$l(e)?e:Pf(e);return r.start(yf("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Fp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||hm();const t=nm(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=nm(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ep(t,n),Nm(t,o),im(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new up);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<pp.length;t++){const o="rotate"+pp[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Hc(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Hc(e.pointerEvents)||""),this.hasProjected&&!xm(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=dp(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Bl){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Bl[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Hc(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(_p),this.root.sharedNodes.clear()}}}function bp(e){e.updateLayout()}function yp(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?gm((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=nm(r);r.min=t[e].min,r.max=r.min+o})):Fp(o,n.layoutBox,t)&&gm((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=nm(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=pm();im(a,t,n.layoutBox);const s=pm();i?im(s,e.applyTransform(r,!0),n.measuredBox):im(s,t,n.layoutBox);const l=!sp(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=hm();lm(a,n.layoutBox,o.layoutBox);const s=hm();lm(s,t,i.layoutBox),lp(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function xp(e){gp.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function wp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ep(e){e.clearSnapshot()}function _p(e){e.clearMeasurements()}function Sp(e){e.isLayoutDirty=!1}function Cp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pp(e){e.resolveTargetDelta()}function Tp(e){e.calcProjection()}function Ip(e){e.resetRotation()}function Rp(e){e.removeLeadSnapshot()}function Mp(e,t,n){e.translate=sd(t.translate,0,n),e.scale=sd(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Np(e,t,n,r){e.min=sd(t.min,n.min,r),e.max=sd(t.max,n.max,r)}function Dp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Ap={duration:.45,ease:[.4,0,.1,1]},Op=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),zp=Op("applewebkit/")&&!Op("chrome/")?Math.round:Uc;function Lp(e){e.min=zp(e.min),e.max=zp(e.max)}function Fp(e,t,n){return"position"===e||"preserve-aspect"===e&&!rm(cp(t),cp(n),.2)}const Bp=vp({attachResizeListener:(e,t)=>eu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jp={current:void 0},Vp=vp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jp.current){const e=new Bp({});e.mount(window),e.setOptions({layoutScroll:!0}),jp.current=e}return jp.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Hp={pan:{Feature:class extends fu{constructor(){super(...arguments),this.removePointerDownListener=Uc}onPointerDown(e){this.session=new Kf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Lm(e),onStart:Lm(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Yc.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=ou(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends fu{constructor(e){super(e),this.removeGroupControls=Uc,this.removeListeners=Uc,this.controls=new Om(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Uc}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Vp,MeasureLayout:$m}},$p=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Wp=4;function Up(e,t,n=1){Pu(n<=Wp,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=$p.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return wf(e)?parseFloat(e):e}return Yl(o)?Up(o,t,n+1):o}const Gp=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),qp=e=>Gp.has(e),Yp=e=>e===Zl||e===lc,Kp=(e,t)=>parseFloat(e.split(", ")[t]),Xp=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Kp(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Kp(t[1],e):0}},Zp=new Set(["x","y","z"]),Jp=jl.filter((e=>!Zp.has(e)));const Qp={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xp(4,13),y:Xp(5,14)};Qp.translateX=Qp.x,Qp.translateY=Qp.y;const eh=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(qp);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=Rf(c);const d=t[o];let f;if(Bc(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Rf(c);for(let n=t;n<e&&null!==d[n];n++)f?Pu(Rf(d[n])===f,"All keyframes must be of the same type"):(f=Rf(d[n]),Pu(f===u||Yp(u)&&Yp(f),"Keyframes must be of the same dimension as the current value"))}else f=Rf(d);if(u!==f)if(Yp(u)&&Yp(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===lc&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return Jp.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Qp[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Qp[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),vl&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function th(e,t,n,r){return(e=>Object.keys(e).some(qp))(t)?eh(e,t,n,r):{target:t,transitionEnd:r}}const nh=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!Yl(t))return;const n=Up(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Yl(o))continue;const i=Up(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return th(e,t=o.target,n,r=o.transitionEnd)},rh={current:null},oh={current:!1};function ih(){if(oh.current=!0,vl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rh.current=e.matches;e.addListener(t),t()}else rh.current=!1}const ah=new WeakMap,sh=Object.keys(Rl),lh=sh.length,ch=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],uh=Sl.length;class dh{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Yc.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Cl(t),this.isVariantNode=kl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&$l(t)&&(t.set(a[e],!1),xf(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,ah.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),oh.current||ih(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rh.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ah.delete(this.current),this.projection&&this.projection.unmount(),Kc(this.notifyUpdate),Kc(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Vl.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Yc.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;for(let e=0;e<lh;e++){const n=sh[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Rl[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&xl(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):hm()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ch.length;t++){const n=ch[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if($l(i))e.addValue(o,i),xf(r)&&r.add(o);else if($l(a))e.addValue(o,Pf(i,{owner:e})),xf(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Pf(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<uh;e++){const n=Sl[e],r=this.props[n];(wl(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Pf(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Lc(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||$l(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Sf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class fh extends dh{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=Of(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(wf(c)||gf(c))?c=parseFloat(c):!Nf(c)&&wd.test(l)&&(c=hf(a,l)),e.addValue(a,Pf(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=nh(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class mh extends fh{readValueFromInstance(e,t){if(Vl.has(t)){const e=pf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(ql(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Dm(e,t)}build(e,t,n,r){pc(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Oc(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$l(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){Nc(e,t,n,r)}}class ph extends fh{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Vl.has(t)){const e=pf(t);return e&&e.default||0}return t=Dc.has(t)?t:Mc(t),e.getAttribute(t)}measureInstanceViewportBox(){return hm()}scrapeMotionValuesFromProps(e,t){return zc(e,t)}build(e,t,n,r){kc(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Ac(e,t,0,r)}mount(e){this.isSVGTag=Tc(e.tagName),super.mount(e)}}const hh=(e,t)=>Fl(e)?new ph(t,{enableHardwareAcceleration:!1}):new mh(t,{enableHardwareAcceleration:!0}),gh={...qf,...Eu,...Hp,...{layout:{ProjectionNode:Vp,MeasureLayout:$m}}},vh=zl(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Fl(e)?Jc:Qc,preloadedFeatures:n,useRender:Rc(t),createVisualElement:r,Component:e}}(e,t,gh,hh)));function bh(){const e=(0,r.useRef)(!1);return bl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function yh(){const e=bh(),[t,n]=(0,r.useState)(0),o=(0,r.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,r.useCallback)((()=>Yc.postRender(o)),[o]),t]}class xh extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wh({children:e,isPresent:t}){const n=(0,r.useId)(),o=(0,r.useRef)(null),i=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)((()=>{const{width:e,height:r,top:a,left:s}=i.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),r.createElement(xh,{isPresent:t,childRef:o,sizeRef:i},r.cloneElement(e,{ref:o}))}const Eh=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Fc(_h),c=(0,r.useId)(),u=(0,r.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))})),a?void 0:[n]);return(0,r.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),r.useEffect((()=>{!n&&!l.size&&o&&o()}),[n]),"popLayout"===s&&(e=r.createElement(wh,{isPresent:n},e)),r.createElement(gl.Provider,{value:u},e)};function _h(){return new Map}const Sh=e=>e.key||"";const Ch=({children:e,custom:t,initial:n=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Pu(!i,"Replace exitBeforeEnter with mode='wait'");const l=(0,r.useContext)(Ml).forceRender||yh()[0],c=bh(),u=function(e){const t=[];return r.Children.forEach(e,(e=>{(0,r.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=(0,r.useRef)(new Map).current,m=(0,r.useRef)(d),p=(0,r.useRef)(new Map).current,h=(0,r.useRef)(!0);var g;if(bl((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=Sh(e);t.set(n,e)}))}(u,p),m.current=d})),g=()=>{h.current=!0,p.clear(),f.clear()},(0,r.useEffect)((()=>()=>g()),[]),h.current)return r.createElement(r.Fragment,null,d.map((e=>r.createElement(Eh,{key:Sh(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:s},e))));d=[...d];const v=m.current.map(Sh),b=u.map(Sh),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==b.indexOf(t)||f.has(t)||f.set(t,void 0)}return"wait"===s&&f.size&&(d=[]),f.forEach(((e,n)=>{if(-1!==b.indexOf(n))return;const i=p.get(n);if(!i)return;const h=v.indexOf(n);let g=e;if(!g){const e=()=>{p.delete(n),f.delete(n);const e=m.current.findIndex((e=>e.key===n));if(m.current.splice(e,1),!f.size){if(m.current=u,!1===c.current)return;l(),o&&o()}};g=r.createElement(Eh,{key:Sh(i),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s},i),f.set(n,g)}d.splice(h,0,g)})),d=d.map((e=>{const t=e.key;return f.has(t)?e:r.createElement(Eh,{key:Sh(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),r.createElement(r.Fragment,null,f.size?d:d.map((e=>(0,r.cloneElement)(e))))},kh=["40em","52em","64em"],Ph=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>kh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${kh.length} breakpoints, got index ${t}`);const[n,r]=(0,Vo.useState)(t);return(0,Vo.useEffect)((()=>{const e=()=>{const e=kh.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function Th(e,t={}){const n=Ph(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const Ih="4px";function Rh(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${Ih} * ${e})`}const Mh={name:"zjik7",styles:"display:flex"},Nh={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Dh={name:"82a6rk",styles:"flex:1"},Ah={name:"13nosa1",styles:">*{min-height:0;}"},Oh={name:"1pwxzk4",styles:">*{min-width:0;}"};function zh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...l}=Qa(function(e){const{isReversed:t,...n}=e;return void 0!==t?($o()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=Th(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=Ja();return{...l,className:(0,Vo.useMemo)((()=>{const e=_s({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:s?"wrap":void 0,gap:Rh(i),justifyContent:a,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(Mh,e,u?Ah:Oh,n)}),[t,n,d,c,o,i,u,a,s]),isColumn:u}}const Lh=(0,Vo.createContext)({flexItemDisplay:void 0}),Fh=()=>(0,Vo.useContext)(Lh);const Bh=es((function(e,t){const{children:n,isColumn:o,...i}=zh(e);return(0,r.createElement)(Lh.Provider,{value:{flexItemDisplay:o?"block":void 0}},(0,r.createElement)(gs,{...i,ref:t},n))}),"Flex");function jh(e){const{className:t,display:n,isBlock:r=!1,...o}=Qa(e,"FlexItem"),i={},a=Fh().flexItemDisplay;i.Base=_s({display:n||a},"","");return{...o,className:Ja()(Nh,i.Base,r&&Dh,t)}}const Vh=es((function(e,t){const n=function(e){return jh({isBlock:!0,...Qa(e,"FlexBlock")})}(e);return(0,r.createElement)(gs,{...n,ref:t})}),"FlexBlock"),Hh=new RegExp(/-left/g),$h=new RegExp(/-right/g),Wh=new RegExp(/Left/g),Uh=new RegExp(/Right/g);function Gh(e){return"left"===e?"right":"right"===e?"left":Hh.test(e)?e.replace(Hh,"-right"):$h.test(e)?e.replace($h,"-left"):Wh.test(e)?e.replace(Wh,"Right"):Uh.test(e)?e.replace(Uh,"Left"):e}const qh=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Gh(e),t])));function Yh(e={},t){return()=>t?(0,u.isRTL)()?_s(t,""):_s(e,""):(0,u.isRTL)()?_s(qh(e),""):_s(e,"")}Yh.watch=()=>(0,u.isRTL)();const Kh=e=>null!=e;const Xh=es((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:m,paddingX:p,paddingY:h,...g}=Qa(e,"Spacer");return{...g,className:Ja()(Kh(n)&&_s("margin:",Rh(n),";",""),Kh(l)&&_s("margin-bottom:",Rh(l),";margin-top:",Rh(l),";",""),Kh(s)&&_s("margin-left:",Rh(s),";margin-right:",Rh(s),";",""),Kh(a)&&_s("margin-top:",Rh(a),";",""),Kh(r)&&_s("margin-bottom:",Rh(r),";",""),Kh(o)&&Yh({marginLeft:Rh(o)})(),Kh(i)&&Yh({marginRight:Rh(i)})(),Kh(c)&&_s("padding:",Rh(c),";",""),Kh(h)&&_s("padding-bottom:",Rh(h),";padding-top:",Rh(h),";",""),Kh(p)&&_s("padding-left:",Rh(p),";padding-right:",Rh(p),";",""),Kh(m)&&_s("padding-top:",Rh(m),";",""),Kh(u)&&_s("padding-bottom:",Rh(u),";",""),Kh(d)&&Yh({paddingLeft:Rh(d)})(),Kh(f)&&Yh({paddingRight:Rh(f)})(),t)}}(e);return(0,r.createElement)(gs,{...n,ref:t})}),"Spacer"),Zh=Xh,Jh=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),Qh=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M7 11.5h10V13H7z"}));const eg=es((function(e,t){const n=jh(e);return(0,r.createElement)(gs,{...n,ref:t})}),"FlexItem");const tg={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function ng(e){return null!=e}const rg=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,og="…",ig={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},ag={ellipsis:og,ellipsizeMode:ig.auto,limit:0,numberOfLines:0};function sg(e="",t){const n={...ag,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===ig.none)return e;let a,s;switch(o){case ig.head:a=0,s=i;break;case ig.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==ig.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=ng(r)?r:og;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function lg(e){const{className:t,children:n,ellipsis:r=og,ellipsizeMode:o=ig.auto,limit:i=0,numberOfLines:a=0,...s}=Qa(e,"Truncate"),l=Ja();let c;"string"==typeof n?c=n:"number"==typeof n&&(c=n.toString());const u=c?sg(c,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}):n,d=!!c&&o===ig.auto;return{...s,className:(0,Vo.useMemo)((()=>l(d&&!a&&tg,d&&!!a&&_s("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,a,d]),children:u}}var cg={grad:.9,turn:360,rad:360/(2*Math.PI)},ug=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},dg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},fg=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},mg=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},pg=function(e){return{r:fg(e.r,0,255),g:fg(e.g,0,255),b:fg(e.b,0,255),a:fg(e.a)}},hg=function(e){return{r:dg(e.r),g:dg(e.g),b:dg(e.b),a:dg(e.a,3)}},gg=/^#([0-9a-f]{3,8})$/i,vg=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},bg=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},yg=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},xg=function(e){return{h:mg(e.h),s:fg(e.s,0,100),l:fg(e.l,0,100),a:fg(e.a)}},wg=function(e){return{h:dg(e.h),s:dg(e.s),l:dg(e.l),a:dg(e.a,3)}},Eg=function(e){return yg((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},_g=function(e){return{h:(t=bg(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Sg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Cg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Tg={string:[[function(e){var t=gg.exec(e);return t?(e=t[1]).length<=4?{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?dg(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?dg(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=kg.exec(e)||Pg.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:pg({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(e){var t=Sg.exec(e)||Cg.exec(e);if(!t)return null;var n,r,o=xg({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(cg[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Eg(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return ug(t)&&ug(n)&&ug(r)?pg({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!ug(t)||!ug(n)||!ug(r))return null;var a=xg({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Eg(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ug(t)||!ug(n)||!ug(r))return null;var a=function(e){return{h:mg(e.h),s:fg(e.s,0,100),v:fg(e.v,0,100),a:fg(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return yg(a)},"hsv"]]},Ig=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Rg=function(e){return"string"==typeof e?Ig(e.trim(),Tg.string):"object"==typeof e&&null!==e?Ig(e,Tg.object):[null,void 0]},Mg=function(e,t){var n=_g(e);return{h:n.h,s:fg(n.s+100*t,0,100),l:n.l,a:n.a}},Ng=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Dg=function(e,t){var n=_g(e);return{h:n.h,s:n.s,l:fg(n.l+100*t,0,100),a:n.a}},Ag=function(){function e(e){this.parsed=Rg(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return dg(Ng(this.rgba),2)},e.prototype.isDark=function(){return Ng(this.rgba)<.5},e.prototype.isLight=function(){return Ng(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=hg(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?vg(dg(255*o)):"","#"+vg(t)+vg(n)+vg(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return hg(this.rgba)},e.prototype.toRgbString=function(){return t=(e=hg(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return wg(_g(this.rgba))},e.prototype.toHslString=function(){return t=(e=wg(_g(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=bg(this.rgba),{h:dg(e.h),s:dg(e.s),v:dg(e.v),a:dg(e.a,3)};var e},e.prototype.invert=function(){return Og({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Og(Mg(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Og(Mg(this.rgba,-e))},e.prototype.grayscale=function(){return Og(Mg(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Og(Dg(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Og(Dg(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Og({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):dg(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_g(this.rgba);return"number"==typeof e?Og({h:e,s:t.s,l:t.l,a:t.a}):dg(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Og(e).toHex()},e}(),Og=function(e){return e instanceof Ag?e:new Ag(e)},zg=[],Lg=function(e){e.forEach((function(e){zg.indexOf(e)<0&&(e(Ag,Tg),zg.push(e))}))};function Fg(e,t){var n={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 o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var m=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));m<c&&(c=m,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}let Bg;Lg([Fg]);const jg=xi((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Og(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Bg){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Bg=e}return Bg}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Vg(e){const t=function(e){const t=jg(e);return Og(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Hg="36px",$g="12px",Wg={controlSurfaceColor:Is.white,controlTextActiveColor:Is.theme.accent,controlPaddingX:$g,controlPaddingXLarge:`calc(${$g} * 1.3334)`,controlPaddingXSmall:`calc(${$g} / 1.3334)`,controlBackgroundColor:Is.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Is.theme.accent}`,controlDestructiveBorderColor:Is.alert.red,controlHeight:Hg,controlHeightXSmall:`calc( ${Hg} * 0.6 )`,controlHeightSmall:`calc( ${Hg} * 0.8 )`,controlHeightLarge:`calc( ${Hg} * 1.2 )`,controlHeightXLarge:`calc( ${Hg} * 1.4 )`},Ug={toggleGroupControlBackgroundColor:Wg.controlBackgroundColor,toggleGroupControlBorderColor:Is.ui.border,toggleGroupControlBackdropBackgroundColor:Wg.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Is.ui.border,toggleGroupControlButtonColorActive:Wg.controlBackgroundColor},Gg=Object.assign({},Wg,Ug,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Rh(2)}`,cardPaddingSmall:`${Rh(4)}`,cardPaddingMedium:`${Rh(4)} ${Rh(6)}`,cardPaddingLarge:`${Rh(6)} ${Rh(8)}`,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)",surfaceBackgroundColor:Is.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Is.white,surfaceColor:Is.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const qg=_s("color:",Is.gray[900],";line-height:",Gg.fontLineHeightBase,";margin:0;",""),Yg={name:"4zleql",styles:"display:block"},Kg=_s("color:",Is.alert.green,";",""),Xg=_s("color:",Is.alert.red,";",""),Zg=_s("color:",Is.gray[700],";",""),Jg=_s("mark{background:",Is.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;}",""),Qg={name:"50zrmy",styles:"text-transform:uppercase"};var ev=o(3138);const tv=xi((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const nv=13,rv={body:nv,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},ov=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function iv(e=nv){if(e in rv)return iv(rv[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${nv})`} * ${Gg.fontSize})`}function av(e=3){if(!ov.includes(e))return iv(e);return Gg[`fontSizeH${e}`]}var sv={name:"50zrmy",styles:"text-transform:uppercase"};function lv(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:a,ellipsizeMode:s,isDestructive:l=!1,display:c,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:f,highlightSanitize:m,isBlock:p=!1,letterSpacing:h,lineHeight:g,optimizeReadabilityFor:v,size:b,truncate:y=!1,upperCase:x=!1,variant:w,weight:E=Gg.fontWeight,..._}=Qa(t,"Text");let S=o;const C=Array.isArray(f),k="caption"===b;if(C){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:a,highlightClassName:s="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:f="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const p=i,h=(0,ev.findAll)({autoEscape:r,caseSensitive:o,findChunks:a,sanitize:u,searchWords:d,textToHighlight:p}),g=c;let v,b=-1,y="";const x=h.map(((r,i)=>{const a=p.substr(r.start,r.end-r.start);if(r.highlight){let r;b++,r="object"==typeof s?o?s[a]:(s=tv(s))[a.toLowerCase()]:s;const c=b===+t;y=`${r} ${c?e:""}`,v=!0===c&&null!==n?Object.assign({},l,n):l;const u={children:a,className:y,key:i,style:v};return"string"!=typeof g&&(u.highlightIndex=b),(0,Vo.createElement)(g,u)}return(0,Vo.createElement)("span",{children:a,className:f,key:i,style:m})}));return x}({autoEscape:u,children:o,caseSensitive:d,searchWords:f,sanitize:m})}const P=Ja();let T;!0===y&&(T="auto"),!1===y&&(T="none");const I=lg({..._,className:(0,Vo.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Gg.controlHeight} + ${Rh(2)})`;switch(e){case"large":n=`calc(${Gg.controlHeightLarge} + ${Rh(2)})`;break;case"small":n=`calc(${Gg.controlHeightSmall} + ${Rh(2)})`;break;case"xSmall":n=`calc(${Gg.controlHeightXSmall} + ${Rh(2)})`}return n}(n,g);if(t.Base=_s({color:a,display:c,fontSize:iv(b),fontWeight:E,lineHeight:o,letterSpacing:h,textAlign:r},"",""),t.upperCase=sv,t.optimalTextColor=null,v){const e="dark"===Vg(v);t.optimalTextColor=_s(e?{color:Is.gray[900]}:{color:Is.white},"","")}return P(qg,t.Base,t.optimalTextColor,l&&Xg,!!C&&Jg,p&&Yg,k&&Zg,w&&e[w],x&&t.upperCase,i)}),[n,r,i,a,P,c,p,k,l,C,h,g,v,b,x,w,E]),children:o,ellipsizeMode:s||T});return!y&&Array.isArray(o)&&(S=Vo.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return os(e,["Link"])?(0,Vo.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...I,children:y?I.children:S}}const cv=es((function(e,t){const n=lv(e);return(0,r.createElement)(gs,{as:"span",...n,ref:t})}),"Text");const uv={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var dv={name:"1739oy8",styles:"z-index:1"};const fv=({isFocused:e})=>e?dv:"",mv=ps(Bh,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",fv,";");var pv={name:"1d3w5wq",styles:"width:100%"};const hv=ps("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>_s({backgroundColor:e?Is.ui.backgroundDisabled:Is.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":_s("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):pv),";"),gv=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?_s("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},vv=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Rh(4),paddingRight:Rh(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Rh(2),paddingRight:Rh(2)},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Rh(2),paddingRight:Rh(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Rh(4),paddingRight:Rh(4)}};return t||(n.default=n.compact),n[e]||n.default},bv=ps("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Is.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=_s("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=_s("&:active{cursor:",t,";}","")),_s(n," ",r,";","")})," ",(({disabled:e})=>e?_s({color:Is.ui.textDisabled},"",""):"")," ",gv," ",(e=>_s(vv(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>_s({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),yv=ps(cv,{target:"em5sgkm4"})("&&&{",uv,";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;}"),xv=e=>(0,r.createElement)(yv,{...e,as:"label"}),wv=ps(eg,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),Ev=ps("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isBorderless:t,isFocused:n})=>{let r,o,i,a=t?"transparent":Is.ui.border;return n&&(a=Is.ui.borderFocus,r=Gg.controlBoxShadowFocus,o="2px solid transparent",i="-2px"),e&&(a=t?"transparent":Is.ui.borderDisabled),_s({boxShadow:r,borderColor:a,borderStyle:"solid",borderWidth:1,outline:o,outlineOffset:i},"","")})," ",Yh({paddingLeft:2}),";}"),_v=ps("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Sv=ps("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const Cv=(0,Vo.memo)((function({disabled:e=!1,isBorderless:t=!1,isFocused:n=!1}){return(0,r.createElement)(Ev,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t,isFocused:n})})),kv=Cv;function Pv({children:e,hideLabelFromVision:t,htmlFor:n,...o}){return e?t?(0,r.createElement)(vs,{as:"label",htmlFor:n},e):(0,r.createElement)(wv,null,(0,r.createElement)(xv,{htmlFor:n,...o},e)):null}function Tv(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}function Iv(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function Rv(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:o,children:i,className:a,disabled:s=!1,hideLabelFromVision:l=!1,labelPosition:c,id:u,isBorderless:f=!1,isFocused:m=!1,label:p,prefix:h,size:g="default",suffix:v,...b}=Tv(Qa(e,"InputBase")),y=function(e){const t=(0,d.useInstanceId)(Rv);return e||`input-base-control-${t}`}(u),x=l||!p,{paddingLeft:w,paddingRight:E}=vv({inputSize:g,__next40pxDefaultSize:n}),_=(0,Vo.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:w},InputControlSuffixWrapper:{paddingRight:E}})),[w,E]);return(0,r.createElement)(mv,{...b,...Iv(c),className:a,gap:2,isFocused:m,labelPosition:c,ref:t},(0,r.createElement)(Pv,{className:"components-input-control__label",hideLabelFromVision:l,labelPosition:c,htmlFor:y},p),(0,r.createElement)(hv,{__unstableInputWidth:o,className:"components-input-control__container",disabled:s,hideLabel:x,labelPosition:c},(0,r.createElement)(ci,{value:_},h&&(0,r.createElement)(_v,{className:"components-input-control__prefix"},h),i,v&&(0,r.createElement)(Sv,{className:"components-input-control__suffix"},v)),(0,r.createElement)(kv,{disabled:s,isBorderless:f,isFocused:m})))}const Mv=es(Rv,"InputBase");const Nv={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Dv(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Av(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Dv(t-e,n-t,r)+t:e>n?+Dv(e-n,n-t,r)+n:e}function Ov(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function zv(e,t,n){return(t=Ov(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lv(Object(n),!0).forEach((function(t){zv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Bv={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function jv(e){return e?e[0].toUpperCase()+e.slice(1):""}const Vv=["enter","leave"];function Hv(e,t="",n=!1){const r=Bv[e],o=r&&r[t]||t;return"on"+jv(e)+jv(o)+(function(e=!1,t){return e&&!Vv.includes(t)}(n,o)?"Capture":"")}const $v=["gotpointercapture","lostpointercapture"];function Wv(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=$v.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Uv(e){return"touches"in e}function Gv(e){return Uv(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function qv(e){return Uv(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function Yv(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Kv(e){const t=qv(e);return Uv(e)?t.identifier:t.pointerId}function Xv(e){const t=qv(e);return[t.clientX,t.clientY]}function Zv(e,...t){return"function"==typeof e?e(...t):e}function Jv(){}function Qv(...e){return 0===e.length?Jv:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function eb(e,t){return Object.assign({},t,e||{})}class tb{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Zv(n.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);Nv.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,m=t._active&&!t._blocked||t.active;m&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Zv(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[p,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[p<g?-1:p>v?1:0,h<b?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const x=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[Av(t,i,a,r),Av(n,s,l,o)]}(t._bounds,t.offset,x),t.delta=Nv.sub(t.offset,f),this.computeMovement(),m&&(!t.last||o>32)){t.delta=Nv.sub(t.offset,f);const e=t.delta.map(Math.abs);Nv.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o])}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Fv(Fv(Fv({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class nb extends tb{constructor(...e){super(...e),zv(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Nv.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Nv.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Gv(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const rb=e=>e,ob={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>Fv(Fv({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return Nv.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?Nv.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||rb},threshold:e=>Nv.toVector(e,0)};const ib=Fv(Fv({},ob),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>ib.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),ab={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const sb="undefined"!=typeof window&&window.document&&window.document.createElement;function lb(){return sb&&"ontouchstart"in window||sb&&window.navigator.maxTouchPoints>1}const cb={isBrowser:sb,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:lb(),touchscreen:lb(),pointer:sb&&"onpointerdown"in window,pointerLock:sb&&"exitPointerLock"in window.document},ub={mouse:0,touch:0,pen:8},db=Fv(Fv({},ib),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&cb.pointerLock,cb.touch&&n?"touch":this.pointerLock?"mouse":cb.pointer&&!o?"pointer":cb.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,cb.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=Nv.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(Nv.toVector(e)),distance:this.transform(Nv.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?Fv(Fv({},ub),e):ub,keyboardDisplacement:(e=10)=>e});Fv(Fv({},ob),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!cb.touch&&cb.gesture)return"gesture";if(cb.touch&&r)return"touch";if(cb.touchscreen){if(cb.pointer)return"pointer";if(cb.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=eb(Zv(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=eb(Zv(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return Nv.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});Fv(Fv({},ib),{},{mouseOnly:(e=!0)=>e});Fv(Fv({},ib),{},{mouseOnly:(e=!0)=>e});const fb=new Map,mb=new Map;const pb={key:"drag",engine:class extends nb{constructor(...e){super(...e),zv(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=ib.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Kv(e),n._pointerActive=!0,this.computeValues(Xv(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Gv(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;if(t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=Kv(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Xv(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Nv.sub(o,t._values),this.computeValues(o)),Nv.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Kv(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t.direction,[o,i]=t.velocity,[a,s]=t.movement,[l,c]=n.swipe.velocity,[u,d]=n.swipe.distance,f=n.swipe.duration;t.elapsedTime<f&&(Math.abs(o)>l&&Math.abs(a)>u&&(t.swipe[0]=e),Math.abs(i)>c&&Math.abs(s)>d&&(t.swipe[1]=r))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=ab[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,Nv.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in ab&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:db};function hb(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const gb={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(cb.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},vb=["target","eventOptions","window","enabled","transform"];function bb(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=bb(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class yb{constructor(e,t){zv(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=Bv[e];return e+(n&&n[t]||t)}(t,n),s=Fv(Fv({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class xb{constructor(){zv(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class wb{constructor(e){zv(this,"gestures",new Set),zv(this,"_targetEventStore",new yb(this)),zv(this,"gestureEventStores",{}),zv(this,"gestureTimeoutStores",{}),zv(this,"handlers",{}),zv(this,"config",{}),zv(this,"pointerIds",new Set),zv(this,"touchIds",new Set),zv(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&Eb(e,"drag");t.wheel&&Eb(e,"wheel");t.scroll&&Eb(e,"scroll");t.move&&Eb(e,"move");t.pinch&&Eb(e,"pinch");t.hover&&Eb(e,"hover")}(this,e)}setEventIds(e){return Uv(e)?(this.touchIds=new Set(Yv(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=hb(r,vb);if(n.shared=bb({target:o,eventOptions:i,window:a,enabled:s,transform:l},gb),t){const e=mb.get(t);n[t]=bb(Fv({shared:n.shared},c),e)}else for(const e in c){const t=mb.get(e);t&&(n[e]=bb(Fv({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=_b(n,o.eventOptions,!!r);if(o.enabled){new(fb.get(t))(this,e,t).bind(i)}}const o=_b(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Fv(Fv({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Qv(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Wv(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function Eb(e,t){e.gestures.add(t),e.gestureEventStores[t]=new yb(e,t),e.gestureTimeoutStores[t]=new xb}const _b=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Hv(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function Sb(e,t={},n,r){const o=s().useMemo((()=>new wb(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),s().useEffect(o.effect.bind(o)),s().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}function Cb(e,t){var n;return n=pb,fb.set(n.key,n.engine),mb.set(n.key,n.resolver),Sb({drag:e},t||{},"drag")}const kb=e=>e,Pb={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},Tb="CHANGE",Ib="COMMIT",Rb="CONTROL",Mb="DRAG_END",Nb="DRAG_START",Db="DRAG",Ab="INVALIDATE",Ob="PRESS_DOWN",zb="PRESS_ENTER",Lb="PRESS_UP",Fb="RESET";function Bb(e=kb,t=Pb,n){const[r,o]=(0,Vo.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case Rb:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case Lb:case Ob:n.isDirty=!1;break;case Nb:n.isDragging=!0;break;case Mb:n.isDragging=!1;break;case Tb:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case Ib:n.value=t.payload.value,n.isDirty=!1;break;case Fb:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case Ab:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=Pb){const{value:t}=e;return{...Pb,...e,initialValue:t}}(t));var i;const a=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},s=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},c=a(Tb),u=a(Fb),d=a(Ib),f=l(Nb),m=l(Db),p=l(Mb),h=s(Lb),g=s(Ob),v=s(zb),b=(0,Vo.useRef)(r),y=(0,Vo.useRef)({value:t.value,onChangeHandler:n});return(0,Vo.useLayoutEffect)((()=>{b.current=r,y.current={value:t.value,onChangeHandler:n}})),(0,Vo.useLayoutEffect)((()=>{var e;void 0===b.current._event||r.value===y.current.value||r.isDirty||y.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:b.current._event})}),[r.value,r.isDirty]),(0,Vo.useLayoutEffect)((()=>{var e;t.value===b.current.value||b.current.isDirty||o({type:Rb,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:d,dispatch:o,drag:m,dragEnd:p,dragStart:f,invalidate:(e,t)=>o({type:Ab,payload:{error:e,event:t}}),pressDown:g,pressEnter:v,pressUp:h,reset:u,state:r}}const jb=()=>{};const Vb=(0,Vo.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:o,isDragEnabled:i=!1,isFocused:a,isPressEnterToChange:s=!1,onBlur:l=jb,onChange:c=jb,onDrag:u=jb,onDragEnd:d=jb,onDragStart:f=jb,onFocus:m=jb,onKeyDown:p=jb,onValidate:h=jb,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:x,...w},E){const{state:_,change:S,commit:C,drag:k,dragEnd:P,dragStart:T,invalidate:I,pressDown:R,pressEnter:M,pressUp:N,reset:D}=Bb(b,{isDragEnabled:i,value:y,isPressEnterToChange:s},c),{value:A,isDragging:O,isDirty:z}=_,L=(0,Vo.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,Vo.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(O,t),B=e=>{const t=e.currentTarget.value;try{h(t),C(t,e)}catch(t){I(t,e)}},j=Cb((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void P(e);u(e),k(e),O||(f(e),T(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:i,pointer:{capture:!1}}),V=i?j():{};let H;return"number"===x&&(H=e=>{w.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,r.createElement)(bv,{...w,...V,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:O,id:o,onBlur:e=>{l(e),v?.(!1),!z&&e.target.validity.valid||(L.current=!0,B(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{m(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(p(e),t){case"ArrowUp":N(e);break;case"ArrowDown":R(e);break;case"Enter":M(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&z&&(e.preventDefault(),D(y,e))}},onMouseDown:H,ref:E,inputSize:g,value:null!=A?A:"",type:x})})),Hb=Vb,$b={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Wb(e){var t;return null!==(t=$b[e])&&void 0!==t?t:""}const Ub={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Gb=ps("div",{target:"ej5x27r4"})("font-family:",Wb("default.fontFamily"),";font-size:",Wb("default.fontSize"),";",Ub,";"),qb=ps("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&_s("margin-bottom:",Rh(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Yb=_s(uv,";display:inline-block;margin-bottom:",Rh(2),";padding:0;",""),Kb=ps("label",{target:"ej5x27r2"})(Yb,";");var Xb={name:"11yad0w",styles:"margin-bottom:revert"};const Zb=ps("p",{target:"ej5x27r1"})("margin-top:",Rh(2),";margin-bottom:0;font-size:",Wb("helpText.fontSize"),";font-style:normal;color:",Is.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&Xb),";"),Jb=ps("span",{target:"ej5x27r0"})(Yb,";"),Qb=({className:e,children:t,...n})=>(0,r.createElement)(Jb,{...n,className:c()("components-base-control__label",e)},t),ey=Object.assign(ts((e=>{const{__nextHasNoMarginBottom:t=!1,id:n,label:o,hideLabelFromVision:i=!1,help:a,className:s,children:l}=Qa(e,"BaseControl");return(0,r.createElement)(Gb,{className:s},(0,r.createElement)(qb,{className:"components-base-control__field",__nextHasNoMarginBottom:t},o&&n&&(i?(0,r.createElement)(vs,{as:"label",htmlFor:n},o):(0,r.createElement)(Kb,{className:"components-base-control__label",htmlFor:n},o)),o&&!n&&(i?(0,r.createElement)(vs,{as:"label"},o):(0,r.createElement)(Qb,null,o)),l),!!a&&(0,r.createElement)(Zb,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))}),"BaseControl"),{VisualLabel:Qb}),ty=ey,ny=()=>{};const ry=(0,Vo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:o=(e=>e),__unstableInputWidth:i,className:a,disabled:s=!1,help:l,hideLabelFromVision:u=!1,id:f,isPressEnterToChange:m=!1,label:p,labelPosition:h="top",onChange:g=ny,onValidate:v=ny,onKeyDown:b=ny,prefix:y,size:x="default",style:w,suffix:E,value:_,...S}=Tv(e),[C,k]=(0,Vo.useState)(!1),P=function(e){const t=(0,d.useInstanceId)(ry);return e||`inspector-input-control-${t}`}(f),T=c()("components-input-control",a),I=function(e){const t=(0,Vo.useRef)(e.value),[n,r]=(0,Vo.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,Vo.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:_,onBlur:S.onBlur,onChange:g}),R=l?{["string"==typeof l?"aria-describedby":"aria-details"]:`${P}__help`}:{};return(0,r.createElement)(ty,{className:T,help:l,id:P,__nextHasNoMarginBottom:!0},(0,r.createElement)(Mv,{__next40pxDefaultSize:n,__unstableInputWidth:i,disabled:s,gap:3,hideLabelFromVision:u,id:P,isFocused:C,justify:"left",label:p,labelPosition:h,prefix:y,size:x,style:w,suffix:E},(0,r.createElement)(Hb,{...S,...R,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:s,id:P,isFocused:C,isPressEnterToChange:m,onKeyDown:b,onValidate:v,paddingInlineStart:y?Rh(2):void 0,paddingInlineEnd:E?Rh(2):void 0,ref:t,setIsFocused:k,size:x,stateReducer:o,...I})))})),oy=ry;const iy=function({icon:e,className:t,size:n=20,style:o={},...i}){const a=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...o};return(0,r.createElement)("span",{className:a,style:s,...i})};const ay=function({icon:e=null,size:t=("string"==typeof e?20:24),...r}){if("string"==typeof e)return(0,Vo.createElement)(iy,{icon:e,size:t,...r});if((0,Vo.isValidElement)(e)&&iy===e.type)return(0,Vo.cloneElement)(e,{...r});if("function"==typeof e)return(0,Vo.createElement)(e,{size:t,...r});if(e&&("svg"===e.type||e.type===n.SVG)){const o={...e.props,width:t,height:t,...r};return(0,Vo.createElement)(n.SVG,{...o})}return(0,Vo.isValidElement)(e)?(0,Vo.cloneElement)(e,{size:t,...r}):e},sy=["onMouseDown","onClick"];const ly=(0,Vo.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isBusy:o,isDestructive:i,className:a,disabled:s,icon:l,iconPosition:u="left",iconSize:f,showTooltip:m,tooltipPosition:p,shortcut:h,label:g,children:v,size:b="default",text:y,variant:x,__experimentalIsFocusable:w,describedBy:E,..._}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isPressed:i,isSmall:a,size:s,variant:l,...c}){let u=s,d=l;const f={"aria-pressed":i};var m,p,h,g,v,b;return a&&(null!==(m=u)&&void 0!==m||(u="small")),t&&(null!==(p=d)&&void 0!==p||(d="primary")),r&&(null!==(h=d)&&void 0!==h||(d="tertiary")),n&&(null!==(g=d)&&void 0!==g||(d="secondary")),e&&($o()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(v=d)&&void 0!==v||(d="secondary")),o&&(null!==(b=d)&&void 0!==b||(d="link")),{...f,...c,size:u,variant:d}}(e),{href:S,target:C,"aria-checked":k,"aria-pressed":P,"aria-selected":T,...I}="href"in _?_:{href:void 0,target:void 0,..._},R=(0,d.useInstanceId)(ly,"components-button__description"),M="string"==typeof v&&!!v||Array.isArray(v)&&v?.[0]&&null!==v[0]&&"components-tooltip"!==v?.[0]?.props?.className,N=c()("components-button",a,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===b,"is-compact":"compact"===b,"is-tertiary":"tertiary"===x,"is-pressed":[!0,"true","mixed"].includes(P),"is-pressed-mixed":"mixed"===P,"is-busy":o,"is-link":"link"===x,"is-destructive":i,"has-text":!!l&&(M||y),"has-icon":!!l}),D=s&&!w,A=void 0===S||D?"button":"a",O="button"===A?{type:"button",disabled:D,"aria-checked":k,"aria-pressed":P,"aria-selected":T}:{},z="a"===A?{href:S,target:C}:{};if(s&&w){O["aria-disabled"]=!0,z["aria-disabled"]=!0;for(const e of sy)I[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const L=!D&&(m&&!!g||!!h||!!g&&!v?.length&&!1!==m),F=E?R:void 0,B=I["aria-describedby"]||F,j={className:N,"aria-label":I["aria-label"]||g,"aria-describedby":B,ref:t},V=(0,r.createElement)(r.Fragment,null,l&&"left"===u&&(0,r.createElement)(ay,{icon:l,size:f}),y&&(0,r.createElement)(r.Fragment,null,y),l&&"right"===u&&(0,r.createElement)(ay,{icon:l,size:f}),v),H="a"===A?(0,r.createElement)("a",{...z,...I,...j},V):(0,r.createElement)("button",{...O,...I,...j},V),$=L?{text:v?.length&&E?E:g,shortcut:h,placement:p&&Go(p)}:{};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Qo,{...$},H),E&&(0,r.createElement)(vs,null,(0,r.createElement)("span",{id:F},E)))})),cy=ly;var uy={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const dy=({hideHTMLArrows:e})=>e?uy:"",fy=ps(oy,{target:"ep09it41"})(dy,";"),my=ps(cy,{target:"ep09it40"})("&&&&&{color:",Is.theme.accent,";}"),py={smallSpinButtons:_s("width:",Rh(5),";min-width:",Rh(5),";height:",Rh(5),";","")};function hy(e){const t=Number(e);return isNaN(t)?0:t}function gy(...e){return e.reduce(((e,t)=>e+hy(t)),0)}function vy(e,t,n){const r=hy(e);return Math.max(t,Math.min(r,n))}function by(e=0,t=1/0,n=1/0,r=1){const o=hy(e),i=hy(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=vy(Math.round(o/i)*i,t,n);return a?hy(s.toFixed(a)):s}const yy={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},xy={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function wy(e){return"string"==typeof e?[e]:Vo.Children.toArray(e).filter((e=>(0,Vo.isValidElement)(e)))}function Ey(e){const{alignment:t="edge",children:n,direction:o,spacing:i=2,...a}=Qa(e,"HStack"),s=function(e,t="row"){if(!ng(e))return{};const n="column"===t?xy:yy;return e in n?n[e]:{align:e}}(t,o),l=wy(n).map(((e,t)=>{if(os(e,["Spacer"])){const n=e,o=n.key||`hstack-${t}`;return(0,r.createElement)(eg,{isBlock:!0,key:o,...n.props})}return e}));return zh({children:l,direction:o,justify:"center",...s,...a,gap:i})}const _y=es((function(e,t){const n=Ey(e);return(0,r.createElement)(gs,{...n,ref:t})}),"HStack"),Sy=()=>{};const Cy=(0,Vo.forwardRef)((function(e,t){const{__unstableStateReducer:n,className:o,dragDirection:i="n",hideHTMLArrows:a=!1,spinControls:s=(a?"none":"native"),isDragEnabled:l=!0,isShiftStepEnabled:f=!0,label:m,max:p=1/0,min:h=-1/0,required:g=!1,shiftStep:v=10,step:b=1,spinFactor:y=1,type:x="number",value:w,size:E="default",suffix:_,onChange:S=Sy,...C}=Tv(e);a&&$o()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const k=(0,Vo.useRef)(),P=(0,d.useMergeRefs)([k,t]),T="any"===b,I=T?1:rg(b),R=rg(y)*I,M=by(0,h,p,I),N=(e,t)=>T?""+Math.min(p,Math.max(h,rg(e))):""+by(e,h,p,null!=t?t:I),D="number"===x?"off":void 0,A=c()("components-number-control",o),O=Ja()("small"===E&&py.smallSpinButtons),z=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&f,o=r?rg(v)*R:R;let i=function(e){const t=""===e;return!ng(e)||t}(e)?M:e;return"up"===t?i=gy(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=hy(t);return 0===n?r:e-r}),0)}(i,o)),N(i,r?o:void 0)},L=e=>t=>S(String(z(w,e,t)),{event:{...t,target:k.current}});return(0,r.createElement)(fy,{autoComplete:D,inputMode:"numeric",...C,className:A,dragDirection:i,hideHTMLArrows:"native"!==s,isDragEnabled:l,label:m,max:p,min:h,ref:P,required:g,step:b,type:x,value:w,__unstableStateReducer:(e,t)=>{var r;const o=((e,t)=>{const n={...e},{type:r,payload:o}=t,a=o.event,s=n.value;if(r!==Lb&&r!==Ob||(n.value=z(s,r===Lb?"up":"down",a)),r===Db&&l){const[e,t]=o.delta,r=o.shiftKey&&f,a=r?rg(v)*R:R;let l,c;switch(i){case"n":c=t,l=-1;break;case"e":c=e,l=(0,u.isRTL)()?-1:1;break;case"s":c=t,l=1;break;case"w":c=e,l=(0,u.isRTL)()?1:-1}if(0!==c){c=Math.ceil(Math.abs(c))*Math.sign(c);const e=c*a*l;n.value=N(gy(s,e),r?a:void 0)}}if(r===zb||r===Ib){const e=!1===g&&""===s;n.value=e?s:N(s)}return n})(e,t);return null!==(r=n?.(o,t))&&void 0!==r?r:o},size:E,suffix:"custom"===s?(0,r.createElement)(r.Fragment,null,_,(0,r.createElement)(Zh,{marginBottom:0,marginRight:2},(0,r.createElement)(_y,{spacing:1},(0,r.createElement)(my,{className:O,icon:Jh,size:"small",label:(0,u.__)("Increment"),onClick:L("up")}),(0,r.createElement)(my,{className:O,icon:Qh,size:"small",label:(0,u.__)("Decrement"),onClick:L("down")})))):_,onChange:S})})),ky=Cy;const Py=ps("div",{target:"eln3bjz3"})("border-radius:50%;border:",Gg.borderWidth," solid ",Is.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),Ty=ps("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),Iy=ps("div",{target:"eln3bjz1"})("background:",Is.theme.accent,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),Ry=ps(cv,{target:"eln3bjz0"})("color:",Is.theme.accent,";margin-right:",Rh(3),";");const My=function({value:e,onChange:t,...n}){const o=(0,Vo.useRef)(null),i=(0,Vo.useRef)(),a=(0,Vo.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==i.current&&void 0!==t)){const{x:n,y:r}=i.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,d.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===o.current)return;const e=o.current.getBoundingClientRect();i.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,Vo.useEffect)((()=>{c?(void 0===a.current&&(a.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=a.current||"",a.current=void 0)}),[c]),(0,r.createElement)(Py,{ref:o,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,r.createElement)(Ty,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,r.createElement)(Iy,{className:"components-angle-picker-control__angle-circle-indicator"})))};const Ny=(0,Vo.forwardRef)((function(e,t){const{className:n,label:o=(0,u.__)("Angle"),onChange:i,value:a,...s}=e,l=c()("components-angle-picker-control",n),d=(0,r.createElement)(Ry,null,"°"),[f,m]=(0,u.isRTL)()?[d,null]:[null,d];return(0,r.createElement)(Bh,{...s,ref:t,className:l,gap:2},(0,r.createElement)(Vh,null,(0,r.createElement)(ky,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:a,spinControls:"none",prefix:f,suffix:m})),(0,r.createElement)(Zh,{marginBottom:"1",marginTop:"auto"},(0,r.createElement)(My,{"aria-hidden":"true",value:a,onChange:i})))}));var Dy=o(4793),Ay=o.n(Dy);const Oy=window.wp.richText,zy=window.wp.a11y,Ly=window.wp.keycodes,Fy=new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),By=e=>Ay()(e).toLocaleLowerCase().replace(Fy,"-");function jy(e){var t;let n=null!==(t=e?.toString?.())&&void 0!==t?t:"";return n=n.replace(/['\u2019]/,""),yi(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function Vy(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Hy(e){return t=>{const[n,r]=(0,Vo.useState)([]);return(0,Vo.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,d.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+Vy(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:a=[]}=i;if("string"==typeof i.label&&(a=[...a,i.label]),a.some((t=>e.test(Ay()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}const $y=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Vr({element:n.current,padding:r}).fn(t):{}:n?Vr({element:n,padding:r}).fn(t):{};var o}});var Wy="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Uy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Uy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Uy(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Gy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qy(e,t){const n=Gy(e);return Math.round(t*n)/n}function Yy(e){const t=r.useRef(e);return Wy((()=>{t.current=e})),t}function Ky(){!oh.current&&ih();const[e]=(0,r.useState)(rh.current);return e}const Xy=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"}));let Zy=0;function Jy(e){const t=document.scrollingElement||document.body;e&&(Zy=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Zy)}let Qy=0;const ex=function(){return(0,Vo.useEffect)((()=>(0===Qy&&Jy(!0),++Qy,()=>{1===Qy&&Jy(!1),--Qy})),[]),null},tx=Symbol(),nx=Symbol(),rx=Symbol();let ox=(e,t)=>new Proxy(e,t);const ix=Object.getPrototypeOf,ax=new WeakMap,sx=e=>e&&(ax.has(e)?ax.get(e):ix(e)===Object.prototype||ix(e)===Array.prototype),lx=e=>"object"==typeof e&&null!==e,cx=new WeakMap,ux=e=>e[rx]||e,dx=(e,t,n)=>{if(!sx(e))return e;const r=ux(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(tx)||r.add(t)}},i={get:(t,r)=>r===rx?e:(o(r),dx(t[r],n.a,n.c)),has:(t,i)=>i===nx?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(tx),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=ox(o?(e=>{let t=cx.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(ix(e),n)}cx.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},fx=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},mx=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!lx(e)||!lx(t))return!0;const o=n.get(ux(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===tx?fx(e,t):mx(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},px=(e,t=!0)=>{ax.set(e,t)},hx=e=>"object"==typeof e&&null!==e,gx=new WeakSet,vx=Symbol("VERSION"),bx=Symbol("LISTENERS"),yx=Symbol("SNAPSHOT"),xx=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>hx(e)&&!gx.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return px(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(gx.has(i))px(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[bx])?s[e]=i[yx]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!hx(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},m=new Map,p=e=>{let t=m.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},m.set(e,t)),t},h=e=>{const t=m.get(e);return m.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get:(e,t,n)=>t===vx?u:t===bx?d:t===yx?a(u,e,n):Reflect.get(e,t,n),deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[bx];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[bx];let m;return d&&d.delete(h(i)),hx(a)&&(a=(e=>sx(e)&&e[rx]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?m=a:a instanceof Promise?m=a.then((e=>(m[r]=e,f(["resolve",[i],e]),e))).catch((e=>{m[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[bx])?(m=a,m[bx].add(p(i))):n(a)?(m=Ex(a),m[bx].add(p(i))):m=a,Reflect.set(t,i,m,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,gx,vx,bx,yx,e,t,n,r,o,i,a,s,l],[wx]=xx();function Ex(e={}){return wx(e)}function _x(e,t,n){let r;(null==e?void 0:e[bx])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[bx].add(i),()=>{e[bx].delete(i)}}function Sx(e){return(null==e?void 0:e[yx])||console.warn("Please use proxy object"),e[yx]}function Cx(e){return gx.add(e),e}const{useSyncExternalStore:kx}=Ft,Px=(e,t)=>{const n=(0,r.useRef)();(0,r.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;lx(e)&&r.add(e);const a=lx(e)&&t.get(ux(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,r.useDebugValue)(n.current)};function Tx(e,t){const n=null==t?void 0:t.sync,o=(0,r.useRef)(),i=(0,r.useRef)();let a=!0;const s=kx((0,r.useCallback)((t=>{const r=_x(e,t,n);return t(),r}),[e,n]),(()=>{const t=Sx(e);try{if(!a&&o.current&&i.current&&!mx(o.current,t,i.current,new WeakMap))return o.current}catch(e){}return t}),(()=>Sx(e)));a=!1;const l=new WeakMap;(0,r.useEffect)((()=>{o.current=s,i.current=l})),Px(s,l);const c=(0,r.useMemo)((()=>new WeakMap),[]);return dx(s,l,c)}Symbol();function Ix(e){const t=Ex({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON:()=>({}),forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const Rx={slots:Ix(),fills:Ix(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},Mx=(0,Vo.createContext)(Rx);function Nx(e){const t=(0,Vo.useContext)(Mx);return{...Tx(t.slots,{sync:!0}).get(e),...(0,Vo.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}const Dx={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},Ax=(0,Vo.createContext)(Dx),Ox=e=>{const{getSlot:t,subscribe:n}=(0,Vo.useContext)(Ax);return(0,Vo.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function zx({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,Vo.useContext)(Ax),o=Ox(e),i=(0,Vo.useRef)({name:e,children:t});return(0,Vo.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,Vo.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,Vo.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function Lx(e){return"function"==typeof e}class Fx extends Vo.Component{constructor(e){super(e),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name,this),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:o={},getFills:i}=this.props,a=(null!==(e=i(n,this))&&void 0!==e?e:[]).map((e=>{const t=Lx(e.children)?e.children(o):e.children;return Vo.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;let n=t;return"object"==typeof e&&"key"in e&&e?.key&&(n=e.key),(0,Vo.cloneElement)(e,{key:n})}))})).filter((e=>!(0,Vo.isEmptyElement)(e)));return(0,r.createElement)(r.Fragment,null,Lx(t)?t(a):a)}}const Bx=e=>(0,r.createElement)(Ax.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:o})=>(0,r.createElement)(Fx,{...e,registerSlot:t,unregisterSlot:n,getFills:o}))),jx={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Vx;const Hx=new Uint8Array(16);function $x(){if(!Vx&&(Vx="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Vx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vx(Hx)}const Wx=[];for(let e=0;e<256;++e)Wx.push((e+256).toString(16).slice(1));function Ux(e,t=0){return Wx[e[t+0]]+Wx[e[t+1]]+Wx[e[t+2]]+Wx[e[t+3]]+"-"+Wx[e[t+4]]+Wx[e[t+5]]+"-"+Wx[e[t+6]]+Wx[e[t+7]]+"-"+Wx[e[t+8]]+Wx[e[t+9]]+"-"+Wx[e[t+10]]+Wx[e[t+11]]+Wx[e[t+12]]+Wx[e[t+13]]+Wx[e[t+14]]+Wx[e[t+15]]}const Gx=function(e,t,n){if(jx.randomUUID&&!t&&!e)return jx.randomUUID();const r=(e=e||{}).random||(e.rng||$x)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Ux(r)},qx=new Set,Yx=new WeakMap;function Kx(e){const{children:t,document:n}=e;if(!n)return null;const o=(e=>{if(Yx.has(e))return Yx.get(e);let t=Gx().replace(/[0-9]/g,"");for(;qx.has(t);)t=Gx().replace(/[0-9]/g,"");qx.add(t);const n=_a({container:e,key:t});return Yx.set(e,n),n})(n.head);return(0,r.createElement)(ja,{value:o},t)}const Xx=Kx;function Zx(e){var t;const{name:n,children:o}=e,{registerFill:i,unregisterFill:a,...s}=Nx(n),l=function(){const[,e]=(0,Vo.useState)({}),t=(0,Vo.useRef)(!0);return(0,Vo.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),c=(0,Vo.useRef)({rerender:l});if((0,Vo.useEffect)((()=>(i(c),()=>{a(c)})),[i,a]),!s.ref||!s.ref.current)return null;const u=(0,r.createElement)(Xx,{document:s.ref.current.ownerDocument},"function"==typeof o?o(null!==(t=s.fillProps)&&void 0!==t?t:{}):o);return(0,Vo.createPortal)(u,s.ref.current)}const Jx=(0,Vo.forwardRef)((function(e,t){const{name:n,fillProps:o={},as:i,children:a,...s}=e,{registerSlot:l,unregisterSlot:c,...u}=(0,Vo.useContext)(Mx),f=(0,Vo.useRef)(null);return(0,Vo.useLayoutEffect)((()=>(l(n,f,o),()=>{c(n,f)})),[l,c,n]),(0,Vo.useLayoutEffect)((()=>{u.updateSlot(n,o)})),(0,r.createElement)(gs,{as:i,ref:(0,d.useMergeRefs)([t,f]),...s})})),Qx=window.wp.isShallowEqual;var ew=o.n(Qx);function tw(){const e=Ix(),t=Ix();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,Cx({...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}}))},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ew()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.forEach((e=>e.current.rerender()))},unregisterSlot:(t,n)=>{e.get(t)?.ref===n&&e.delete(t)},registerFill:(e,n)=>{t.set(e,Cx([...t.get(e)||[],n]))},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,Cx(r.filter((e=>e!==n))))}}}function nw({children:e}){const t=(0,Vo.useMemo)(tw,[]);return(0,r.createElement)(Mx.Provider,{value:t},e)}function rw(){const e={},t={};let n=[];function r(t){return e[t]}function o(e){const t=r(e);t&&t.forceUpdate()}function i(){n.forEach((e=>e()))}return{registerSlot:function(t,n){const r=e[t];e[t]=n,i(),o(t),r&&r.forceUpdate()},unregisterSlot:function(t,n){e[t]===n&&(delete e[t],i())},registerFill:function(e,n){t[e]=[...t[e]||[],n],o(e)},unregisterFill:function(e,n){var r;t[e]=null!==(r=t[e]?.filter((e=>e!==n)))&&void 0!==r?r:[],o(e)},getSlot:r,getFills:function(n,r){return e[n]!==r?[]:t[n]},subscribe:function(e){return n.push(e),()=>{n=n.filter((t=>t!==e))}}}}const ow=function({children:e}){const t=(0,Vo.useMemo)(rw,[]);return(0,r.createElement)(Ax.Provider,{value:t},e)};function iw(e){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(zx,{...e}),(0,r.createElement)(Zx,{...e}))}const aw=(0,Vo.forwardRef)((function(e,t){const{bubblesVirtually:n,...o}=e;return n?(0,r.createElement)(Jx,{...o,ref:t}):(0,r.createElement)(Bx,{...o})}));function sw({children:e,passthrough:t=!1}){return!(0,Vo.useContext)(Mx).isDefault&&t?(0,r.createElement)(r.Fragment,null,e):(0,r.createElement)(ow,null,(0,r.createElement)(nw,null,e))}function lw(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,r.createElement)(iw,{name:e,...t});n.displayName=`${t}Fill`;const o=t=>(0,r.createElement)(aw,{name:e,...t});return o.displayName=`${t}Slot`,o.__unstableName=e,{Fill:n,Slot:o}}const cw="Popover",uw=()=>(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,r.createElement)(n.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,r.createElement)(n.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),dw=(0,Vo.createContext)(void 0),fw="components-popover__fallback-container",mw=es(((e,t)=>{const{animate:n=!0,headerTitle:o,constrainTabbing:i,onClose:a,children:s,className:l,noArrow:u=!0,position:f,placement:m="bottom-start",offset:p=0,focusOnMount:h="firstElement",anchor:g,expandOnMobile:v,onFocusOutside:b,__unstableSlotName:y=cw,flip:x=!0,resize:w=!0,shift:E=!1,inline:_=!1,variant:S,__unstableForcePosition:C,anchorRef:k,anchorRect:P,getAnchorRect:T,isAlternate:I,...R}=Qa(e,"Popover");let M=x,N=w;void 0!==C&&($o()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),M=!C,N=!C),void 0!==k&&$o()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==P&&$o()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&$o()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const D=I?"toolbar":S;void 0!==I&&$o()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const A=(0,Vo.useRef)(null),[O,z]=(0,Vo.useState)(null),L=(0,Vo.useCallback)((e=>{z(e)}),[]),F=(0,d.useViewportMatch)("medium","<"),B=v&&F,j=!B&&!u,V=f?Go(f):m,H=[..."overlay"===m?[{name:"overlay",fn:({rects:e})=>e.reference},Gr({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],$r(p),M&&Hr(),N&&Gr({apply(e){var t;const{firstElementChild:n}=null!==(t=X.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),E&&Wr({crossAxis:!0,limiter:Ur(),padding:1}),$y({element:A})],$=(0,Vo.useContext)(dw)||y,W=Nx($);let U;(a||b)&&(U=(e,t)=>{"focus-outside"===e&&b?b(t):a&&a()});const[G,q]=(0,d.__experimentalUseDialog)({constrainTabbing:i,focusOnMount:h,__unstableOnClose:U,onClose:U}),{x:Y,y:K,refs:X,strategy:Z,update:J,placement:Q,middlewareData:{arrow:ee}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=r.useState(o);Uy(m,o)||p(o);const[h,g]=r.useState(null),[v,b]=r.useState(null),y=r.useCallback((e=>{e!=_.current&&(_.current=e,g(e))}),[g]),x=r.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[b]),w=a||h,E=s||v,_=r.useRef(null),S=r.useRef(null),C=r.useRef(d),k=Yy(c),P=Yy(i),T=r.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:m};P.current&&(e.platform=P.current),Co(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};I.current&&!Uy(C.current,t)&&(C.current=t,tr.flushSync((()=>{f(t)})))}))}),[m,t,n,P]);Wy((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const I=r.useRef(!1);Wy((()=>(I.current=!0,()=>{I.current=!1})),[]),Wy((()=>{if(w&&(_.current=w),E&&(S.current=E),w&&E){if(k.current)return k.current(w,E,T);T()}}),[w,E,T,k]);const R=r.useMemo((()=>({reference:_,floating:S,setReference:y,setFloating:x})),[y,x]),M=r.useMemo((()=>({reference:w,floating:E})),[w,E]),N=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=qy(M.floating,d.x),r=qy(M.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Gy(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,M.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:T,refs:R,elements:M,floatingStyles:N})),[d,T,R,M,N])}({placement:"overlay"===V?void 0:V,middleware:H,whileElementsMounted:(e,t,n)=>So(e,t,n,{layoutShift:!1,animationFrame:!0})}),te=(0,Vo.useCallback)((e=>{A.current=e,J()}),[J]),ne=k?.top,re=k?.bottom,oe=k?.startContainer,ie=k?.current;(0,Vo.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let a=null;return e?a=e:function(e){return!!e?.top}(t)?a={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:function(e){return!!e?.current}(t)?a=t.current:t?a=t:n?a={getBoundingClientRect:()=>n}:r?a={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(a=o.parentElement),null!==(i=a)&&void 0!==i?i:null})({anchor:g,anchorRef:k,anchorRect:P,getAnchorRect:T,fallbackReferenceElement:O});X.setReference(e)}),[g,k,ne,re,oe,ie,P,T,O,X]);const ae=(0,d.useMergeRefs)([X.setFloating,G,t]),se=B?void 0:{position:Z,top:0,left:0,x:Yo(Y),y:Yo(K)},le=Ky(),ce=n&&!B&&!le,[ue,de]=(0,Vo.useState)(!1),{style:fe,...me}=(0,Vo.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:qo[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(Q)),[Q]),pe=ce?{style:{...fe,...se},onAnimationComplete:()=>de(!0),...me}:{animate:!1,style:se},he=(!ce||ue)&&null!==Y&&null!==K,[ge,ve]=(0,Vo.useState)(!1),be=(0,Vo.useMemo)((()=>({ColorPicker:{onPickerDragStart(){ve(!0)},onPickerDragEnd(){ve(!1)}}})),[]);let ye=(0,r.createElement)(r.Fragment,null,ge&&(0,r.createElement)("div",{className:"components-popover-pointer-events-trap","aria-hidden":"true",onClick:()=>ve(!1)}),(0,r.createElement)(vh.div,{className:c()("components-popover",l,{"is-expanded":B,"is-positioned":he,[`is-${"toolbar"===D?"alternate":D}`]:D}),...pe,...R,ref:ae,...q,tabIndex:-1},B&&(0,r.createElement)(ex,null),B&&(0,r.createElement)("div",{className:"components-popover__header"},(0,r.createElement)("span",{className:"components-popover__header-title"},o),(0,r.createElement)(cy,{className:"components-popover__close",icon:Xy,onClick:a})),(0,r.createElement)("div",{className:"components-popover__content"},(0,r.createElement)(ci,{value:be},s)),j&&(0,r.createElement)("div",{ref:te,className:["components-popover__arrow",`is-${Q.split("-")[0]}`].join(" "),style:{left:void 0!==ee?.x&&Number.isFinite(ee.x)?`${ee.x}px`:"",top:void 0!==ee?.y&&Number.isFinite(ee.y)?`${ee.y}px`:""}},(0,r.createElement)(uw,null))));const xe=W.ref&&!_,we=k||P||g;return xe?ye=(0,r.createElement)(iw,{name:$},ye):_||(ye=(0,Vo.createPortal)((0,r.createElement)(Kx,{document},ye),(()=>{let e=document.body.querySelector("."+fw);return e||(e=document.createElement("div"),e.className=fw,document.body.append(e)),e})())),we?ye:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{ref:L}),ye)}),"Popover");mw.Slot=(0,Vo.forwardRef)((function({name:e=cw},t){return(0,r.createElement)(aw,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),mw.__unstableSlotNameProvider=dw.Provider;const pw=mw;function hw(e){const t=e.useItems?e.useItems:Hy(e);return function({filterValue:e,instanceId:n,listBoxId:o,className:i,selectedIndex:a,onChangeOptions:s,onSelect:l,onReset:f,reset:m,contentRef:p}){const[h]=t(e),g=(0,Oy.useAnchor)({editableContentElement:p.current}),[v,b]=(0,Vo.useState)(!1),y=(0,Vo.useRef)(null),x=(0,d.useMergeRefs)([y,(0,d.useRefEffect)((e=>{p.current&&b(e.ownerDocument!==p.current.ownerDocument)}),[p])]);!function(e,t){(0,Vo.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,m);const w=(0,d.useDebounce)(zy.speak,500);if((0,Vo.useLayoutEffect)((()=>{s(h),function(t){w&&(t.length?w(e?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length):(0,u.sprintf)((0,u._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.",t.length),t.length),"assertive"):w((0,u.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,r.createElement)(e,{id:o,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,r.createElement)(cy,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:c()("components-autocomplete__result",i,{"is-selected":t===a}),onClick:()=>l(e)},e.label))));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(pw,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:x},(0,r.createElement)(E,null)),p.current&&v&&(0,tr.createPortal)((0,r.createElement)(E,{Component:vs}),p.current.ownerDocument.body))}}const gw=e=>{if(null===e)return"";switch(typeof e){case"string":case"number":return e.toString();case"boolean":default:return"";case"object":if(e instanceof Array)return e.map(gw).join("");if("props"in e)return gw(e.props.children)}return""},vw=[];function bw({record:e,onChange:t,onReplace:n,completers:o,contentRef:i}){const a=(0,d.useInstanceId)(bw),[s,l]=(0,Vo.useState)(0),[c,u]=(0,Vo.useState)(vw),[f,m]=(0,Vo.useState)(""),[p,h]=(0,Vo.useState)(null),[g,v]=(0,Vo.useState)(null),b=(0,Vo.useRef)(!1);function y(r){const{getOptionCompletion:o}=p||{};if(!r.isDisabled){if(o){const i=o(r.value,f),a=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===a.action)return void n([a.value]);"insert-at-caret"===a.action&&function(n){if(null===p)return;const r=e.start,o=r-p.triggerPrefix.length-f.length,i=(0,Oy.create)({html:(0,Vo.renderToString)(n)});t((0,Oy.insert)(e,i,o,r))}(a.value)}x()}}function x(){l(0),u(vw),m(""),h(null),v(null)}const w=(0,Vo.useMemo)((()=>(0,Oy.isCollapsed)(e)?(0,Oy.getTextContent)((0,Oy.slice)(e,0)):""),[e]);(0,Vo.useEffect)((()=>{if(!w)return void(p&&x());const t=o.reduce(((e,t)=>w.lastIndexOf(t.triggerPrefix)>(null!==e?w.lastIndexOf(e.triggerPrefix):-1)?t:e),null);if(!t)return void(p&&x());const{allowContext:n,triggerPrefix:r}=t,i=w.lastIndexOf(r),a=w.slice(i+r.length);if(a.length>50)return;const s=0===c.length,l=a.split(/\s/),u=1===l.length,d=b.current&&l.length<=3;if(s&&!d&&!u)return void(p&&x());const f=(0,Oy.getTextContent)((0,Oy.slice)(e,void 0,(0,Oy.getTextContent)(e).length));if(n&&!n(w.slice(0,i),f))return void(p&&x());if(/^\s/.test(a)||/\s\s+$/.test(a))return void(p&&x());if(!/[\u0000-\uFFFF]*$/.test(a))return void(p&&x());const y=Vy(t.triggerPrefix),E=Ay()(w),_=E.slice(E.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${y}([\0-]*)$`)),S=_&&_[1];h(t),v((()=>t!==p?hw(t):g)),m(null===S?"":S)}),[w]);const{key:E=""}=c[s]||{},{className:_}=p||{},S=!!p&&c.length>0,C=S?`components-autocomplete-listbox-${a}`:void 0;return{listBoxId:C,activeId:S?`components-autocomplete-item-${a}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,p&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":{const e=(0===s?c.length:s)-1;l(e),(0,Ly.isAppleOS)()&&(0,zy.speak)(gw(c[e].label),"assertive");break}case"ArrowDown":{const e=(s+1)%c.length;l(e),(0,Ly.isAppleOS)()&&(0,zy.speak)(gw(c[e].label),"assertive");break}case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void x();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,r.createElement)(g,{className:_,filterValue:f,instanceId:a,listBoxId:C,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),u(e)},onSelect:y,value:e,contentRef:i,reset:x})}}function yw(e){const t=(0,Vo.useRef)(null),n=(0,Vo.useRef)(),{record:r}=e,o=function(e){const t=(0,Vo.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:a,activeId:s,onKeyDown:l}=bw({...e,contentRef:t});n.current=l;const c=(0,d.useMergeRefs)([t,(0,d.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:c,children:i,"aria-autocomplete":a?"list":void 0,"aria-owns":a,"aria-activedescendant":s}:{ref:c}}function xw({children:e,isSelected:t,...n}){const{popover:o,...i}=bw(n);return(0,r.createElement)(r.Fragment,null,e(i),t&&o)}function ww(e){const{help:t,id:n,...r}=e,o=(0,d.useInstanceId)(ty,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}const Ew=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"})),_w=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"}));const Sw=_s("",""),Cw={name:"bjn8wh",styles:"position:relative"},kw=e=>{const{color:t=Is.gray[200],style:n="solid",width:r=Gg.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Gg.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Pw={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Tw(e){const{className:t,size:n="default",...r}=Qa(e,"BorderBoxControlLinkedButton"),o=Ja();return{...r,className:(0,Vo.useMemo)((()=>o((e=>_s("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",Yh({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Iw=es(((e,t)=>{const{className:n,isLinked:o,...i}=Tw(e),a=o?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,r.createElement)(Qo,{text:a},(0,r.createElement)(gs,{className:n},(0,r.createElement)(cy,{...i,size:"small",icon:o?Ew:_w,iconSize:24,"aria-label":a,ref:t})))}),"BorderBoxControlLinkedButton");function Rw(e){const{className:t,value:n,size:r="default",...o}=Qa(e,"BorderBoxControlVisualizer"),i=Ja(),a=(0,Vo.useMemo)((()=>i(((e,t)=>_s("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",kw(e?.top),";border-bottom:",kw(e?.bottom),";",Yh({borderLeft:kw(e?.left)})()," ",Yh({borderRight:kw(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:a,value:n}}const Mw=es(((e,t)=>{const{value:n,...o}=Rw(e);return(0,r.createElement)(gs,{...o,ref:t})}),"BorderBoxControlVisualizer"),Nw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"})),Dw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 11.25h14v1.5H5z"})),Aw=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),Ow=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"})),zw=(0,r.createContext)(null),Lw=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Fw(){const e=new Set,t=new WeakMap,n=()=>e.forEach(Lw);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const Bw=e=>!0===e,jw=({children:e,id:t,inherit:n=!0})=>{const o=(0,r.useContext)(Ml),i=(0,r.useContext)(zw),[a,s]=yh(),l=(0,r.useRef)(null),c=o.id||i;null===l.current&&((e=>Bw(!0===e)||"id"===e)(n)&&c&&(t=t?c+"-"+t:c),l.current={id:t,group:Bw(n)&&o.group||Fw()});const u=(0,r.useMemo)((()=>({...l.current,forceRender:a})),[s]);return r.createElement(Ml.Provider,{value:u},e)};const Vw=e=>{const t=_s("border-color:",Is.ui.border,";","");return _s(e&&t," &:hover{border-color:",Is.ui.borderHover,";}&:focus-within{border-color:",Is.ui.borderFocus,";box-shadow:",Gg.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var Hw={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},$w={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const Ww=e=>({default:$w,"__unstable-large":Hw}[e]),Uw={name:"7whenc",styles:"display:flex;width:100%"},Gw=ps("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function qw(e={}){var t,n=N(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=Zs(M(R({},n),{focusLoop:V(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=Rt(M(R({},o.getState()),{value:V(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return M(R(R({},o),i),{setValue:e=>i.setState("value",e)})}function Yw(e={}){const[t,n]=$t(qw,e);return function(e,t,n){return Ht(e=Js(e,t,n),n,"value","setValue"),e}(t,n,e)}var Kw=He([Ct],[kt]),Xw=Kw.useContext,Zw=(Kw.useScopedContext,Kw.useProviderContext),Jw=(Kw.ContextProvider,Kw.ScopedContextProvider),Qw=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=Zw();return F(n=n||o,!1),r=Te(r,(e=>(0,Le.jsx)(Jw,{value:n,children:e})),[n]),r=x({role:"radiogroup"},r),r=tl(x({store:n},r))})),eE=Fe((e=>je("div",Qw(e))));const tE=(0,Vo.createContext)({}),nE=tE;function rE(e){const t=(0,Vo.useRef)(!0),n=(0,d.usePrevious)(e),r=(0,Vo.useRef)(!1);(0,Vo.useEffect)((()=>{t.current&&(t.current=!1)}),[]);const o=r.current||!t.current&&n!==e;return(0,Vo.useEffect)((()=>{r.current=o}),[o]),o?{value:null!=e?e:"",defaultValue:void 0}:{value:void 0,defaultValue:e}}const oE=(0,Vo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:i,value:a,id:s,...l},c){const u=(0,d.useInstanceId)(oE,"toggle-group-control-as-radio-group"),f=s||u,{value:m,defaultValue:p}=rE(a),h=o?e=>{o(null!=e?e:void 0)}:void 0,g=Yw({defaultValue:p,value:m,setValue:h}),v=g.useState("value"),b=g.setValue,y=(0,Vo.useMemo)((()=>({baseId:f,isBlock:!t,size:i,value:v,setValue:b})),[f,t,i,v,b]);return(0,r.createElement)(nE.Provider,{value:y},(0,r.createElement)(eE,{store:g,"aria-label":n,render:(0,r.createElement)(gs,null),...l,id:f,ref:c},e))}));function iE({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,a]=(0,Vo.useState)(o);let s;return s=r&&"function"==typeof t?t:r||"function"!=typeof t?a:e=>{t(e),a(e)},[r?n:i,s]}const aE=(0,Vo.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:o,size:i,value:a,id:s,...l},c){const u=(0,d.useInstanceId)(aE,"toggle-group-control-as-button-group"),f=s||u,{value:m,defaultValue:p}=rE(a),[h,g]=iE({defaultValue:p,value:m,onChange:o}),v=(0,Vo.useMemo)((()=>({baseId:f,value:h,setValue:g,isBlock:!t,isDeselectable:!0,size:i})),[f,h,g,t,i]);return(0,r.createElement)(nE.Provider,{value:v},(0,r.createElement)(gs,{"aria-label":n,...l,ref:c,role:"group"},e))}));const sE=es((function(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:o=!1,className:i,isAdaptiveWidth:a=!1,isBlock:s=!1,isDeselectable:l=!1,label:c,hideLabelFromVision:u=!1,help:f,onChange:m,size:p="default",value:h,children:g,...v}=Qa(e,"ToggleGroupControl"),b=(0,d.useInstanceId)(sE,"toggle-group-control"),y=o&&"default"===p?"__unstable-large":p,x=Ja(),w=(0,Vo.useMemo)((()=>x((({isBlock:e,isDeselectable:t,size:n})=>_s("background:",Is.ui.background,";border:1px solid transparent;border-radius:",Gg.controlBorderRadius,";display:inline-flex;min-width:0;position:relative;",Ww(n)," ",!t&&Vw(e),";",""))({isBlock:s,isDeselectable:l,size:y}),s&&Uw,i)),[i,x,s,l,y]),E=l?aE:oE;return(0,r.createElement)(ty,{help:f,__nextHasNoMarginBottom:n},!u&&(0,r.createElement)(Gw,null,(0,r.createElement)(ty.VisualLabel,null,c)),(0,r.createElement)(E,{...v,className:w,isAdaptiveWidth:a,label:c,onChange:m,ref:t,size:y,value:h},(0,r.createElement)(jw,{id:b},g)))}),"ToggleGroupControl"),lE=sE;var cE=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a}=t,s=E(t,["store","name","value","checked"]);const l=Xw();n=n||l;const c=_e(s.id),u=(0,r.useRef)(null),d=Vt(n,(e=>null!=a?a:function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(i,null==e?void 0:e.value)));(0,r.useEffect)((()=>{if(!c)return;if(!d)return;(null==n?void 0:n.getState().activeId)===c||null==n||n.setActiveId(c)}),[n,d,c]);const f=s.onChange,m=function(e,t){return"input"===e&&(!t||"radio"===t)}(Se(u,s.as||"input"),s.type),p=j(s),[h,g]=ke();(0,r.useEffect)((()=>{const e=u.current;e&&(m||(void 0!==d&&(e.checked=d),void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[h,m,d,o,i]);const v=we((e=>{if(p)return e.preventDefault(),void e.stopPropagation();m||(e.currentTarget.checked=!0,g()),null==f||f(e),e.defaultPrevented||null==n||n.setValue(i)})),b=s.onClick,y=we((e=>{null==b||b(e),e.defaultPrevented||m||v(e)})),_=s.onFocus,S=we((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!m)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(c&&r!==c||v(e))}));return s=w(x({id:c,role:m?void 0:"radio",type:m?"radio":void 0,"aria-checked":d},s),{ref:Ee(u,s.ref),onChange:v,onClick:y,onFocus:S}),s=Gt(x({store:n,clickOnEnter:!m},s)),x({name:m?o:void 0,value:m?i:void 0,checked:d},s)})),uE=Be((e=>je("input",cE(e))));const dE=ps("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),fE={name:"82a6rk",styles:"flex:1"},mE=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>_s("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Gg.controlBorderRadius,";color:",Is.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;transition:background ",Gg.transitionDurationFast," linear,color ",Gg.transitionDurationFast," linear,font-weight 60ms linear;",Rs("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Gg.toggleGroupControlBackgroundColor,";}",e&&hE," ",t&&vE({size:r})," ",n&&pE,";",""),pE=_s("color:",Is.white,";&:active{background:transparent;}",""),hE=_s("color:",Is.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Is.white,",0 0 0 ",Gg.borderWidthFocus," ",Is.theme.accent,";outline:2px solid transparent;}",""),gE=ps("div",{target:"et6ln9s0"})("display:flex;font-size:",Gg.fontSize,";line-height:1;"),vE=({size:e="default"})=>_s("color:",Is.gray[900],";height:",{default:"30px","__unstable-large":"32px"}[e],";aspect-ratio:1;padding-left:0;padding-right:0;",""),bE=_s("background:",Is.gray[900],";border-radius:",Gg.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:yE,LabelView:xE}=t,wE={duration:0},EE=({showTooltip:e,text:t,children:n})=>e&&t?(0,r.createElement)(Qo,{text:t,placement:"top"},n):(0,r.createElement)(r.Fragment,null,n);const _E=es((function e(t,n){const o=Ky(),i=(0,Vo.useContext)(tE),a=Qa({...t,id:(0,d.useInstanceId)(e,i.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:s=!1,isDeselectable:l=!1,size:c="default"}=i,{className:u,isIcon:f=!1,value:m,children:p,showTooltip:h=!1,onFocus:g,...v}=a,b=i.value===m,y=Ja(),x=(0,Vo.useMemo)((()=>y(s&&fE)),[y,s]),w=(0,Vo.useMemo)((()=>y(mE({isDeselectable:l,isIcon:f,isPressed:b,size:c}),u)),[y,l,f,b,c,u]),E=(0,Vo.useMemo)((()=>y(bE)),[y]),_={...v,className:w,"data-value":m,ref:n};return(0,r.createElement)(xE,{className:x},(0,r.createElement)(EE,{showTooltip:h,text:v["aria-label"]},l?(0,r.createElement)("button",{..._,onFocus:g,"aria-pressed":b,type:"button",onClick:()=>{l&&b?i.setValue(void 0):i.setValue(m)}},(0,r.createElement)(yE,null,p)):(0,r.createElement)(uE,{render:(0,r.createElement)("button",{type:"button",..._,onFocus:e=>{g?.(e),e.defaultPrevented||i.setValue(m)}}),value:m},(0,r.createElement)(yE,null,p))),b?(0,r.createElement)(vh.div,{className:E,transition:o?wE:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"}):null)}),"ToggleGroupControlOptionBase"),SE=_E;const CE=(0,Vo.forwardRef)((function(e,t){const{icon:n,label:o,...i}=e;return(0,r.createElement)(SE,{...i,isIcon:!0,"aria-label":o,showTooltip:!0,ref:t},(0,r.createElement)(ay,{icon:n}))})),kE=CE,PE=[{label:(0,u.__)("Solid"),icon:Dw,value:"solid"},{label:(0,u.__)("Dashed"),icon:Aw,value:"dashed"},{label:(0,u.__)("Dotted"),icon:Ow,value:"dotted"}];const TE=es((function({onChange:e,...t},n){return(0,r.createElement)(lE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:t=>{e?.(t)},...t},PE.map((e=>(0,r.createElement)(kE,{key:e.value,value:e.value,icon:e.icon,label:e.label}))))}),"BorderControlStylePicker");const IE=(0,Vo.forwardRef)((function(e,t){const{className:n,colorValue:o,...i}=e;return(0,r.createElement)("span",{className:c()("component-color-indicator",n),style:{background:o},ref:t,...i})}));var RE=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},ME=function(e){return.2126*RE(e.r)+.7152*RE(e.g)+.0722*RE(e.b)};function NE(e){e.prototype.luminance=function(){return e=ME(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=ME(i))>(l=ME(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const DE=es(((e,t)=>{const{renderContent:n,renderToggle:o,className:i,contentClassName:a,expandOnMobile:s,headerTitle:l,focusOnMount:u,popoverProps:f,onClose:m,onToggle:p,style:h,open:g,defaultOpen:v,position:b,variant:y}=Qa(e,"Dropdown");void 0!==b&&$o()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[x,w]=(0,Vo.useState)(null),E=(0,Vo.useRef)(),[_,S]=iE({defaultValue:v,value:g,onChange:p});function C(){m?.(),S(!1)}const k={isOpen:!!_,onToggle:()=>S(!_),onClose:C},P=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,r.createElement)("div",{className:i,ref:(0,d.useMergeRefs)([E,t,w]),tabIndex:-1,style:h},o(k),_&&(0,r.createElement)(pw,{position:b,onClose:C,onFocusOutside:function(){if(!E.current)return;const{ownerDocument:e}=E.current,t=e?.activeElement?.closest('[role="dialog"]');E.current.contains(e.activeElement)||t&&!t.contains(E.current)||C()},expandOnMobile:s,headerTitle:l,focusOnMount:u,offset:13,anchor:P?void 0:x,variant:y,...f,className:c()("components-dropdown__content",f?.className,a)},n(k)))}),"Dropdown"),AE=DE;const OE=es((function(e,t){const n=Qa(e,"InputControlSuffixWrapper");return(0,r.createElement)(Zh,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),zE=ps("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Is.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?_s({color:Is.ui.textDisabled},"",""):""),";",gv,";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);return _s(r[n]||r.default,"","")}),";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,compact:8,"__unstable-large":16};e||(r.default=r.compact);const o=r[n]||r.default;return Yh({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),LE=ps("div",{target:"e1mv6sxx1"})("margin-inline-end:",Rh(-1),";line-height:0;"),FE=ps(OE,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Yh({right:0}),";");const BE=(0,Vo.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Vo.cloneElement)(e,{width:t,height:t,...n,ref:r})})),jE=(0,r.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),VE=()=>(0,r.createElement)(FE,null,(0,r.createElement)(LE,null,(0,r.createElement)(BE,{icon:jE,size:18}))),HE=()=>{};const $E=(0,Vo.forwardRef)((function(e,t){const{className:n,disabled:o=!1,help:i,hideLabelFromVision:a,id:s,label:l,multiple:u=!1,onBlur:f=HE,onChange:m,onFocus:p=HE,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:x,suffix:w,__next40pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...S}=Tv(e),[C,k]=(0,Vo.useState)(!1),P=function(e){const t=(0,d.useInstanceId)($E);return e||`inspector-select-control-${t}`}(s),T=i?`${P}__help`:void 0;if(!h?.length&&!y)return null;const I=c()("components-select-control",n);return(0,r.createElement)(ty,{help:i,id:P,__nextHasNoMarginBottom:_},(0,r.createElement)(Mv,{className:I,disabled:o,hideLabelFromVision:a,id:P,isFocused:C,label:l,size:g,suffix:w||!u&&(0,r.createElement)(VE,null),prefix:x,labelPosition:b,__next40pxDefaultSize:E},(0,r.createElement)(zE,{...S,__next40pxDefaultSize:E,"aria-describedby":T,className:"components-select-control__input",disabled:o,id:P,multiple:u,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{p(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,r.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))})),WE=$E,UE={initial:void 0,fallback:""};const GE=function(e,t=UE){const{initial:n,fallback:r}={...UE,...t},[o,i]=(0,Vo.useState)(e),a=ng(e);return(0,Vo.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]),[function(e=[],t){var n;return null!==(n=e.find(ng))&&void 0!==n?n:t}([e,o,n],r),(0,Vo.useCallback)((e=>{a||i(e)}),[a])]};function qE(e,t,n){return"number"!=typeof e?null:parseFloat(`${vy(e,t,n)}`)}const YE=30,KE=()=>_s({height:YE,minHeight:YE},"",""),XE=12,ZE=ps("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",(({__next40pxDefaultSize:e})=>!e&&_s({minHeight:YE},"","")),";"),JE=ps("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Is.ui.borderFocus})=>_s({color:e},"","")),";",KE,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":_s({marginBottom:e?16:void 0},"","")),";"),QE=ps("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",Yh({marginRight:6}),";"),e_=ps("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",Yh({marginLeft:6}),";"),t_=ps("span",{target:"e1epgpqk10"})("background-color:",Is.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Is.ui.backgroundDisabled),_s({background:n},"","")}),";"),n_=ps("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Is.gray[400]),_s({background:n},"","")}),";"),r_=ps("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),o_=ps("span",{target:"e1epgpqk7"})("height:",XE,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Is.gray[300];return e&&(n=Is.gray[400]),_s({backgroundColor:n},"","")}),";"),i_=ps("span",{target:"e1epgpqk6"})("color:",Is.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>_s({color:e?Is.gray[700]:Is.gray[300]},"","")),";"),a_=({disabled:e})=>_s("background-color:",e?Is.gray[400]:Is.theme.accent,";",""),s_=ps("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",XE,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",XE,"px;border-radius:50%;",a_,";",Yh({marginLeft:-10}),";",Yh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),l_=ps("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",a_,";",(({isFocused:e})=>e?_s("&::before{content:' ';position:absolute;background-color:",Is.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),c_=ps("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",XE,"px );");var u_={name:"1cypxip",styles:"top:-80%"},d_={name:"1lr98c4",styles:"bottom:-80%"};const f_=ps("span",{target:"e1epgpqk2"})("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;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(({show:e})=>_s({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?d_:u_),";",Rs("transition"),";",Yh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),m_=ps(ky,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",KE,";}",Yh({marginLeft:`${Rh(4)} !important`}),";"),p_=ps("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",KE,";}",Yh({marginLeft:8}),";");const h_=(0,Vo.forwardRef)((function(e,t){const{describedBy:n,label:o,value:i,...a}=e;return(0,r.createElement)(c_,{...a,"aria-describedby":n,"aria-label":o,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:i})}));function g_(e){const{className:t,isFilled:n=!1,label:o,style:i={},...a}=e,s=c()("components-range-control__mark",n&&"is-filled",t),l=c()("components-range-control__mark-label",n&&"is-filled");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o_,{...a,"aria-hidden":"true",className:s,isFilled:n,style:i}),o&&(0,r.createElement)(i_,{"aria-hidden":"true",className:l,isFilled:n,style:i},o))}function v_(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:i=100,step:a=1,value:s=0,...l}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(t_,{disabled:t,...l}),n&&(0,r.createElement)(b_,{disabled:t,marks:n,min:o,max:i,step:a,value:s}))}function b_(e){const{disabled:t=!1,marks:n=!1,min:o=0,max:i=100,step:a=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const s=`mark-${r}`,l=e.value<=o,c=(e.value-t)/i*100+"%",d={[(0,u.isRTL)()?"right":"left"]:c};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:o,max:i,step:"any"===a?1:a,value:s});return(0,r.createElement)(r_,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,r.createElement)(g_,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function y_(e){const{className:t,inputRef:n,tooltipPosition:o,show:i=!1,style:a={},value:s=0,renderTooltipContent:l=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,Vo.useState)(),o=(0,Vo.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,Vo.useEffect)((()=>{o()}),[o]),(0,Vo.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:o}),m=c()("components-simple-tooltip",t),p={...a,zIndex:u};return(0,r.createElement)(f_,{...d,"aria-hidden":i,className:m,position:f,show:i,role:"tooltip",style:p},l(s))}const x_=()=>{};const w_=(0,Vo.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:o=!1,afterIcon:i,allowReset:a=!1,beforeIcon:s,className:l,color:f=Is.theme.accent,currentInput:m,disabled:p=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:x=!1,max:w=100,min:E=0,onBlur:_=x_,onChange:S=x_,onFocus:C=x_,onMouseLeave:k=x_,onMouseMove:P=x_,railColor:T,renderTooltipContent:I=(e=>e),resetFallbackValue:R,__next40pxDefaultSize:M=!1,shiftStep:N=10,showTooltip:D,step:A=1,trackColor:O,value:z,withInputField:L=!0,...F}=t,[B,j]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=GE(qE(r,t,n),{initial:qE(null!=o?o:null,t,n),fallback:null});return[i,(0,Vo.useCallback)((e=>{a(null===e?null:qE(e,t,n))}),[t,n,a])]}({min:E,max:w,value:null!=z?z:null,initial:v}),V=(0,Vo.useRef)(!1);let H=D,$=L;"any"===A&&(H=!1,$=!1);const[W,U]=(0,Vo.useState)(H),[G,q]=(0,Vo.useState)(!1),Y=(0,Vo.useRef)(),K=Y.current?.matches(":focus"),X=!p&&G,Z=null===B,J=Z?"":void 0!==B?B:m,Q=Z?(w-E)/2+E:B,ee=`${vy(Z?50:(B-E)/(w-E)*100,0,100)}%`,te=c()("components-range-control",l),ne=c()("components-range-control__wrapper",!!x&&"is-marked"),re=(0,d.useInstanceId)(e,"inspector-range-control"),oe=h?`${re}__help`:void 0,ie=!1!==H&&Number.isFinite(B),ae=()=>{let e=parseFloat(`${R}`),t=e;isNaN(e)&&(e=null,t=void 0),j(e),S(t)},se={[(0,u.isRTL)()?"right":"left"]:ee};return(0,r.createElement)(ty,{__nextHasNoMarginBottom:o,className:te,label:y,hideLabelFromVision:g,id:`${re}`,help:h},(0,r.createElement)(ZE,{className:"components-range-control__root",__next40pxDefaultSize:M},s&&(0,r.createElement)(QE,null,(0,r.createElement)(ay,{icon:s})),(0,r.createElement)(JE,{__nextHasNoMarginBottom:o,className:ne,color:f,marks:!!x},(0,r.createElement)(h_,{...F,className:"components-range-control__slider",describedBy:oe,disabled:p,id:`${re}`,label:y,max:w,min:E,onBlur:e=>{_(e),q(!1),U(!1)},onChange:e=>{const t=parseFloat(e.target.value);j(t),S(t)},onFocus:e=>{C(e),q(!0),U(!0)},onMouseMove:P,onMouseLeave:k,ref:(0,d.useMergeRefs)([Y,n]),step:A,value:null!=J?J:void 0}),(0,r.createElement)(v_,{"aria-hidden":!0,disabled:p,marks:x,max:w,min:E,railColor:T,step:A,value:Q}),(0,r.createElement)(n_,{"aria-hidden":!0,className:"components-range-control__track",disabled:p,style:{width:ee},trackColor:O}),(0,r.createElement)(s_,{className:"components-range-control__thumb-wrapper",style:se,disabled:p},(0,r.createElement)(l_,{"aria-hidden":!0,isFocused:X,disabled:p})),ie&&(0,r.createElement)(y_,{className:"components-range-control__tooltip",inputRef:Y,tooltipPosition:"bottom",renderTooltipContent:I,show:K||W,style:se,value:B})),i&&(0,r.createElement)(e_,null,(0,r.createElement)(ay,{icon:i})),$&&(0,r.createElement)(m_,{"aria-label":y,className:"components-range-control__number",disabled:p,inputMode:"decimal",isShiftStepEnabled:b,max:w,min:E,onBlur:()=>{V.current&&(ae(),V.current=!1)},onChange:e=>{let t=parseFloat(e);j(t),isNaN(t)?a&&(V.current=!0):((t<E||t>w)&&(t=qE(t,E,w)),S(t),V.current=!1)},shiftStep:N,size:M?"__unstable-large":"default",__unstableInputWidth:Rh(M?20:16),step:A,value:J}),a&&(0,r.createElement)(p_,null,(0,r.createElement)(cy,{className:"components-range-control__reset",disabled:p||void 0===B,variant:"secondary",size:"small",onClick:ae},(0,u.__)("Reset")))))})),E_=w_,__=ps(ky,{target:"ez9hsf47"})(hv,"{width:",Rh(24),";}"),S_=ps(WE,{target:"ez9hsf46"})("margin-left:",Rh(-2),";width:5em;select:not( :focus )~",Ev,Ev,Ev,"{border-color:transparent;}"),C_=ps(E_,{target:"ez9hsf45"})("flex:1;margin-right:",Rh(2),";"),k_=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${Rh(2)} );\n\tmargin-left: ${Rh(1)};\n}`,P_=ps("div",{target:"ez9hsf44"})("padding-top:",Rh(2),";padding-right:0;padding-left:0;padding-bottom:0;"),T_=ps(_y,{target:"ez9hsf43"})("padding-left:",Rh(4),";padding-right:",Rh(4),";"),I_=ps(Bh,{target:"ez9hsf42"})("padding-top:",Rh(4),";padding-left:",Rh(4),";padding-right:",Rh(3),";padding-bottom:",Rh(5),";"),R_=ps("div",{target:"ez9hsf41"})(Ub,";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:",Rh(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",Rh(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 ",Gg.borderWidthFocus," #fff;}",k_,";"),M_=ps(cy,{target:"ez9hsf40"})("&&&&&{min-width:",Rh(6),";padding:0;>svg{margin-right:0;}}"),N_=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",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"})),D_=e=>{const{color:t,colorType:n}=e,[o,i]=(0,Vo.useState)(null),a=(0,Vo.useRef)(),s=(0,d.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{a.current&&clearTimeout(a.current),i(t.toHex()),a.current=setTimeout((()=>{i(null),a.current=void 0}),3e3)}));return(0,Vo.useEffect)((()=>()=>{a.current&&clearTimeout(a.current)}),[]),(0,r.createElement)(Qo,{delay:0,hideOnClick:!1,text:o===t.toHex()?(0,u.__)("Copied!"):(0,u.__)("Copy")},(0,r.createElement)(M_,{size:"small",ref:s,icon:N_,showTooltip:!1}))},A_=({min:e,max:t,label:n,abbreviation:o,onChange:i,value:a})=>(0,r.createElement)(_y,{spacing:4},(0,r.createElement)(__,{min:e,max:t,label:n,hideLabelFromVision:!0,value:a,onChange:e=>{i(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,r.createElement)(Zh,{as:cv,paddingLeft:Rh(4),color:Is.theme.accent,lineHeight:1},o),spinControls:"none",size:"__unstable-large"}),(0,r.createElement)(C_,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:a,onChange:i,withInputField:!1})),O_=({color:e,onChange:t,enableAlpha:n})=>{const{r:o,g:i,b:a,a:s}=e.toRgb();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(A_,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>t(Og({r:e,g:i,b:a,a:s}))}),(0,r.createElement)(A_,{min:0,max:255,label:"Green",abbreviation:"G",value:i,onChange:e=>t(Og({r:o,g:e,b:a,a:s}))}),(0,r.createElement)(A_,{min:0,max:255,label:"Blue",abbreviation:"B",value:a,onChange:e=>t(Og({r:o,g:i,b:e,a:s}))}),n&&(0,r.createElement)(A_,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Og({r:o,g:i,b:a,a:e/100}))}))},z_=({color:e,onChange:t,enableAlpha:n})=>{const o=(0,Vo.useMemo)((()=>e.toHsl()),[e]),[i,a]=(0,Vo.useState)({...o}),s=e.isEqual(Og(i));(0,Vo.useEffect)((()=>{s||a(o)}),[o,s]);const l=s?i:o,c=n=>{const r=Og({...l,...n});e.isEqual(r)?a((e=>({...e,...n}))):t(r)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(A_,{min:0,max:359,label:"Hue",abbreviation:"H",value:l.h,onChange:e=>{c({h:e})}}),(0,r.createElement)(A_,{min:0,max:100,label:"Saturation",abbreviation:"S",value:l.s,onChange:e=>{c({s:e})}}),(0,r.createElement)(A_,{min:0,max:100,label:"Lightness",abbreviation:"L",value:l.l,onChange:e=>{c({l:e})}}),n&&(0,r.createElement)(A_,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l.a),onChange:e=>{c({a:e/100})}}))},L_=({color:e,onChange:t,enableAlpha:n})=>(0,r.createElement)(ry,{prefix:(0,r.createElement)(Zh,{as:cv,marginLeft:Rh(4),color:Is.theme.accent,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Og(n))},maxLength:n?9:7,label:(0,u.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),F_=({colorType:e,color:t,onChange:n,enableAlpha:o})=>{const i={color:t,onChange:n,enableAlpha:o};switch(e){case"hsl":return(0,r.createElement)(z_,{...i});case"rgb":return(0,r.createElement)(O_,{...i});default:return(0,r.createElement)(L_,{...i})}};function B_(){return(B_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function j_(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function V_(e){var t=(0,r.useRef)(e),n=(0,r.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var H_=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},$_=function(e){return"touches"in e},W_=function(e){return e&&e.ownerDocument.defaultView||self},U_=function(e,t,n){var r=e.getBoundingClientRect(),o=$_(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:H_((o.pageX-(r.left+W_(e).pageXOffset))/r.width),top:H_((o.pageY-(r.top+W_(e).pageYOffset))/r.height)}},G_=function(e){!$_(e)&&e.preventDefault()},q_=r.memo((function(e){var t=e.onMove,n=e.onKey,o=j_(e,["onMove","onKey"]),i=(0,r.useRef)(null),a=V_(t),s=V_(n),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=(0,r.useMemo)((function(){var e=function(e){G_(e),($_(e)?e.touches.length>0:e.buttons>0)&&i.current?a(U_(i.current,e,l.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=c.current,o=W_(i.current),a=n?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(G_(t),!function(e,t){return t&&!$_(e)}(t,c.current)&&r)){if($_(t)){c.current=!0;var o=t.changedTouches||[];o.length&&(l.current=o[0].identifier)}r.focus(),a(U_(r,t,l.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[s,a]),d=u[0],f=u[1],m=u[2];return(0,r.useEffect)((function(){return m}),[m]),r.createElement("div",B_({},o,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:i,onKeyDown:f,tabIndex:0,role:"slider"}))})),Y_=function(e){return e.filter(Boolean).join(" ")},K_=function(e){var t=e.color,n=e.left,o=e.top,i=void 0===o?.5:o,a=Y_(["react-colorful__pointer",e.className]);return r.createElement("div",{className:a,style:{top:100*i+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},X_=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Z_=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:X_(e.h),s:X_(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:X_(o/2),a:X_(r,2)}}),J_=function(e){var t=Z_(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Q_=function(e){var t=Z_(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},eS=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:X_(255*[r,s,a,a,l,r][c]),g:X_(255*[l,r,r,s,a,a][c]),b:X_(255*[a,a,l,r,r,s][c]),a:X_(o,2)}},tS=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?rS({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)}):{h:0,s:0,v:0,a:1}},nS=tS,rS=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:X_(60*(s<0?s+6:s)),s:X_(i?a/i*100:0),v:X_(i/255*100),a:o}},oS=r.memo((function(e){var t=e.hue,n=e.onChange,o=Y_(["react-colorful__hue",e.className]);return r.createElement("div",{className:o},r.createElement(q_,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:H_(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":X_(t),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(K_,{className:"react-colorful__hue-pointer",left:t/360,color:J_({h:t,s:100,v:100,a:1})})))})),iS=r.memo((function(e){var t=e.hsva,n=e.onChange,o={backgroundColor:J_({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:o},r.createElement(q_,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:H_(t.s+100*e.left,0,100),v:H_(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+X_(t.s)+"%, Brightness "+X_(t.v)+"%"},r.createElement(K_,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:J_(t)})))})),aS=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},sS=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function lS(e,t,n){var o=V_(n),i=(0,r.useState)((function(){return e.toHsva(t)})),a=i[0],s=i[1],l=(0,r.useRef)({color:t,hsva:a});(0,r.useEffect)((function(){if(!e.equal(t,l.current.color)){var n=e.toHsva(t);l.current={hsva:n,color:t},s(n)}}),[t,e]),(0,r.useEffect)((function(){var t;aS(a,l.current.hsva)||e.equal(t=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:t},o(t))}),[a,e,o]);var c=(0,r.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[a,c]}var cS,uS="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,dS=new Map,fS=function(e){uS((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!dS.has(t)){var n=t.createElement("style");n.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}',dS.set(t,n);var r=cS||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},mS=function(e){var t=e.className,n=e.colorModel,o=e.color,i=void 0===o?n.defaultColor:o,a=e.onChange,s=j_(e,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);fS(l);var c=lS(n,i,a),u=c[0],d=c[1],f=Y_(["react-colorful",t]);return r.createElement("div",B_({},s,{ref:l,className:f}),r.createElement(iS,{hsva:u,onChange:d}),r.createElement(oS,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},pS=function(e){var t=e.className,n=e.hsva,o=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+Q_(Object.assign({},n,{a:0}))+", "+Q_(Object.assign({},n,{a:1}))+")"},a=Y_(["react-colorful__alpha",t]),s=X_(100*n.a);return r.createElement("div",{className:a},r.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),r.createElement(q_,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:H_(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},r.createElement(K_,{className:"react-colorful__alpha-pointer",left:n.a,color:Q_(n)})))},hS=function(e){var t=e.className,n=e.colorModel,o=e.color,i=void 0===o?n.defaultColor:o,a=e.onChange,s=j_(e,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);fS(l);var c=lS(n,i,a),u=c[0],d=c[1],f=Y_(["react-colorful",t]);return r.createElement("div",B_({},s,{ref:l,className:f}),r.createElement(iS,{hsva:u,onChange:d}),r.createElement(oS,{hue:u.h,onChange:d}),r.createElement(pS,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},gS={defaultColor:"rgba(0, 0, 0, 1)",toHsva:tS,fromHsva:function(e){var t=eS(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:sS},vS=function(e){return r.createElement(hS,B_({},e,{colorModel:gS}))},bS={defaultColor:"rgb(0, 0, 0)",toHsva:nS,fromHsva:function(e){var t=eS(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:sS},yS=function(e){return r.createElement(mS,B_({},e,{colorModel:bS}))};const xS=({color:e,enableAlpha:t,onChange:n,onDragStart:o,onDragEnd:i,containerEl:a})=>{const s=t?vS:yS,l=(0,Vo.useMemo)((()=>e.toRgbString()),[e]);return(({containerEl:e,onDragStart:t,onDragEnd:n})=>{const r=(0,Vo.useRef)(!1),o=(0,Vo.useRef)(!1);(0,Vo.useEffect)((()=>{if(!e||!t&&!n)return;const i=[e.querySelector(".react-colorful__saturation"),e.querySelector(".react-colorful__hue"),e.querySelector(".react-colorful__alpha")].filter((e=>!!e));if(0===i.length)return;const a=e.ownerDocument,s=e=>{r.current=!1,o.current=!1,n?.(e)},l=e=>{r.current=!0,t?.(e)},c=e=>{const t=0===e.buttons;o.current&&t&&s(e)};return i.forEach((e=>e.addEventListener("pointerdown",l))),a.addEventListener("pointerup",s),a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",(()=>{o.current=r.current})),()=>{i.forEach((e=>e.removeEventListener("pointerdown",l))),a.removeEventListener("pointerup",s),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",s)}}),[t,n,e])})({containerEl:a,onDragStart:o,onDragEnd:i}),(0,r.createElement)(s,{color:l,onChange:e=>{n(Og(e))}})};Lg([Fg]);const wS=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],ES=es(((e,t)=>{const{enableAlpha:n=!1,color:o,onChange:i,defaultValue:a="#fff",copyFormat:s,onPickerDragStart:l,onPickerDragEnd:c,...f}=Qa(e,"ColorPicker"),[m,p]=(0,Vo.useState)(null),[h,g]=iE({onChange:i,value:o,defaultValue:a}),v=(0,Vo.useMemo)((()=>Og(h||"")),[h]),b=(0,d.useDebounce)(g),y=(0,Vo.useCallback)((e=>{b(e.toHex())}),[b]),[x,w]=(0,Vo.useState)(s||"hex");return(0,r.createElement)(R_,{ref:(0,d.useMergeRefs)([e=>{p(e)},t]),...f},(0,r.createElement)(xS,{containerEl:m,onChange:y,color:v,enableAlpha:n,onDragStart:l,onDragEnd:c}),(0,r.createElement)(P_,null,(0,r.createElement)(T_,{justify:"space-between"},(0,r.createElement)(S_,{__nextHasNoMarginBottom:!0,options:wS,value:x,onChange:e=>w(e),label:(0,u.__)("Color format"),hideLabelFromVision:!0}),(0,r.createElement)(D_,{color:v,colorType:s||x})),(0,r.createElement)(I_,{direction:"column",gap:2},(0,r.createElement)(F_,{colorType:x,color:v,onChange:y,enableAlpha:n}))))}),"ColorPicker"),_S=ES;function SS(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const CS=xi((e=>{const t=Og(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function kS(e){const{onChangeComplete:t}=e,n=(0,Vo.useCallback)((e=>{t(CS(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:SS(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const PS=e=>(0,r.createElement)(_S,{...kS(e)}),TS=(0,Vo.createContext)({}),IS=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const RS=(0,Vo.forwardRef)((function(e,t){const{isPressed:n,...o}=e;return(0,r.createElement)(cy,{...o,"aria-pressed":n,ref:t})}));const MS=(0,Vo.forwardRef)((function(e,t){const{id:n,isSelected:o,compositeStore:i,...a}=e,s=i.useState("activeId");return o&&!s&&i.setActiveId(n),(0,r.createElement)(qt,{render:(0,r.createElement)(cy,{...a,role:"option","aria-selected":!!o,ref:t}),store:i,id:n})}));function NS(e){const{actions:t,options:n,baseId:o,className:i,loop:a=!0,children:s,...l}=e,c=Qs({focusLoop:a,rtl:(0,u.isRTL)()}),d={baseId:o,compositeStore:c};return(0,r.createElement)("div",{className:i},(0,r.createElement)(TS.Provider,{value:d},(0,r.createElement)(nl,{...l,id:o,store:c,role:"listbox"},n),s,t))}function DS(e){const{actions:t,options:n,children:o,baseId:i,...a}=e;return(0,r.createElement)("div",{...a,id:i},(0,r.createElement)(TS.Provider,{value:{baseId:i}},n,o,t))}function AS(e){const{asButtons:t,actions:n,options:o,children:i,className:a,...s}=e,l=(0,d.useInstanceId)(AS,"components-circular-option-picker",s.id),u=t?DS:NS,f=n?(0,r.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},n):void 0,m=(0,r.createElement)("div",{className:"components-circular-option-picker__swatches"},o);return(0,r.createElement)(u,{...s,baseId:l,className:c()("components-circular-option-picker",a),actions:f,options:m},i)}AS.Option=function e({className:t,isSelected:n,selectedIconProps:o={},tooltipText:i,...a}){const{baseId:s,compositeStore:l}=(0,Vo.useContext)(TS),u={id:(0,d.useInstanceId)(e,s||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...a},f=l?(0,r.createElement)(MS,{...u,compositeStore:l,isSelected:n}):(0,r.createElement)(RS,{...u,isPressed:n});return(0,r.createElement)("div",{className:c()(t,"components-circular-option-picker__option-wrapper")},i?(0,r.createElement)(Qo,{text:i},f):f,n&&(0,r.createElement)(BE,{icon:IS,...o}))},AS.OptionGroup=function({className:e,options:t,...n}){const o="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,r.createElement)("div",{...n,role:o,className:c()("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e)},t)},AS.ButtonAction=function({className:e,children:t,...n}){return(0,r.createElement)(cy,{className:c()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},AS.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:o}){return(0,r.createElement)(AE,{className:c()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,r.createElement)(cy,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},o),...n})};const OS=AS;const zS=es((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Qa(e,"VStack");return Ey({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,r.createElement)(gs,{...n,ref:t})}),"VStack");const LS=es((function(e,t){const n=lg(e);return(0,r.createElement)(gs,{as:"span",...n,ref:t})}),"Truncate");const FS=es((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=Is.gray[900],isBlock:o=!0,weight:i=Gg.fontWeightHeading,...a}=Qa(e,"Heading"),s=t||`h${n}`,l={};return"string"==typeof s&&"h"!==s[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...lv({color:r,isBlock:o,weight:i,size:av(n),...a}),...l,as:s}}(e);return(0,r.createElement)(gs,{...n,ref:t})}),"Heading"),BS=FS;const jS=ps(BS,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),VS=ps("div",{target:"eovvns30"})("margin-left:",Rh(-2),";margin-right:",Rh(-2),";&:first-of-type{margin-top:",Rh(-2),";}&:last-of-type{margin-bottom:",Rh(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:Rh(2),medium:Rh(4)};return _s("padding:",t[e]||t.small,";","")}),";");const HS=es((function(e,t){const{paddingSize:n="small",...o}=Qa(e,"DropdownContentWrapper");return(0,r.createElement)(VS,{...o,paddingSize:n,ref:t})}),"DropdownContentWrapper");Lg([Fg,NE]);const $S=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function WS({className:e,clearColor:t,colors:n,onChange:o,value:i,...a}){const s=(0,Vo.useMemo)((()=>n.map((({color:e,name:n},a)=>{const s=Og(e),l=i===e;return(0,r.createElement)(OS.Option,{key:`${e}-${a}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,u.sprintf)((0,u.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>o(e,a),"aria-label":n?(0,u.sprintf)((0,u.__)("Color: %s"),n):(0,u.sprintf)((0,u.__)("Color code: %s"),e)})}))),[n,i,o,t]);return(0,r.createElement)(OS.OptionGroup,{className:e,options:s,...a})}function US({className:e,clearColor:t,colors:n,onChange:o,value:i,headingLevel:a}){const s=(0,d.useInstanceId)(US,"color-palette");return 0===n.length?null:(0,r.createElement)(zS,{spacing:3,className:e},n.map((({name:e,colors:n},l)=>{const c=`${s}-${l}`;return(0,r.createElement)(zS,{spacing:2,key:l},(0,r.createElement)(jS,{id:c,level:a},e),(0,r.createElement)(WS,{clearColor:t,colors:n,onChange:e=>o(e,l),value:i,"aria-labelledby":c}))})))}function GS({isRenderedInSidebar:e,popoverProps:t,...n}){const o=(0,Vo.useMemo)((()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,r.createElement)(AE,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o,...n})}Lg([Fg,NE]);const qS=(0,Vo.forwardRef)((function(e,t){const{asButtons:n,loop:o,clearable:i=!0,colors:a=[],disableCustomColors:s=!1,enableAlpha:l=!1,onChange:d,value:f,__experimentalIsRenderedInSidebar:m=!1,headingLevel:p=2,"aria-label":h,"aria-labelledby":g,...v}=e,[b,y]=(0,Vo.useState)(f),x=(0,Vo.useCallback)((()=>d(void 0)),[d]),w=(0,Vo.useCallback)((e=>{y(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Og(o).toHex():e})(f,e))}),[f]),E=$S(a),_=(0,Vo.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Og(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Og(n).toHex()))return t;return(0,u.__)("Custom")})(f,a,E)),[f,a,E]),S=f?.startsWith("#"),C=f?.replace(/^var\((.+)\)$/,"$1"),k=C?(0,u.sprintf)((0,u.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),_,C):(0,u.__)("Custom color picker."),P={clearColor:x,onChange:d,value:f},T=!!i&&(0,r.createElement)(OS.ButtonAction,{onClick:x},(0,u.__)("Clear"));let I;if(n)I={asButtons:!0};else{const e={asButtons:!1,loop:o};I=h?{...e,"aria-label":h}:g?{...e,"aria-labelledby":g}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}return(0,r.createElement)(zS,{spacing:3,ref:t,...v},!s&&(0,r.createElement)(GS,{isRenderedInSidebar:m,renderContent:()=>(0,r.createElement)(HS,{paddingSize:"none"},(0,r.createElement)(PS,{color:b,onChange:e=>d(e),enableAlpha:l})),renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(zS,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,r.createElement)("button",{ref:w,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":k,style:{background:f},type:"button"}),(0,r.createElement)(zS,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,r.createElement)(LS,{className:"components-color-palette__custom-color-name"},f?_:(0,u.__)("No color selected")),(0,r.createElement)(LS,{className:c()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":S})},C)))}),(0,r.createElement)(OS,{...I,actions:T,options:E?(0,r.createElement)(US,{...P,headingLevel:p,colors:a,value:f}):(0,r.createElement)(WS,{...P,colors:a,value:f})}))})),YS=qS,KS=ps(ky,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",Ev,"{transition:box-shadow 0.1s linear;}}"),XS=({selectSize:e})=>({small:_s("box-sizing:border-box;padding:2px 1px;width:20px;color:",Is.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:_s("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Rh(2),";padding:",Rh(1),";color:",Is.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),ZS=ps("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",XS,";color:",Is.gray[900],";}"),JS=ps("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",XS,";",(({selectSize:e="default"})=>({small:_s("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",Yh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Is.gray[100],";}&:focus{border:1px solid ",Is.ui.borderFocus,";box-shadow:inset 0 0 0 ",Gg.borderWidth+" "+Is.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:_s("display:flex;justify-content:center;align-items:center;&:hover{color:",Is.ui.borderFocus,";box-shadow:inset 0 0 0 ",Gg.borderWidth+" "+Is.ui.borderFocus,";outline:",Gg.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Gg.borderWidthFocus+" "+Is.ui.borderFocus,";outline:",Gg.borderWidthFocus," solid transparent;}","")}[e])),";&:not( :disabled ){cursor:pointer;}}");const QS={name:"f3vz0n",styles:"font-weight:500"},eC=_s("box-shadow:inset ",Gg.controlBoxShadowFocus,";",""),tC=_s("border:0;padding:0;margin:0;",Ub,";",""),nC=_s(KS,"{flex:0 0 auto;}",""),rC=_s("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",Yh({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Gg.borderWidth," solid ",Is.ui.border,";&:focus,&:hover:not( :disabled ){",eC," border-color:",Is.ui.borderFocus,";z-index:1;position:relative;}}",""),oC=(e,t)=>{const{style:n}=e||{};return _s("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Is.gray[300]:void 0;return _s("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",Rh(4),";width:",Rh(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);}","")},iC=_s("width:",228,"px;>div:first-of-type>",Kb,"{margin-bottom:0;",QS,";}&& ",Kb,"+button:not( .has-text ){min-width:24px;padding:0;}",""),aC=_s("",""),sC=_s("",""),lC=_s("justify-content:center;width:100%;&&{border-top:",Gg.borderWidth," solid ",Is.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),cC="web"===Vo.Platform.OS,uC={px:{value:"px",label:cC?"px":(0,u.__)("Pixels (px)"),a11yLabel:(0,u.__)("Pixels (px)"),step:1},"%":{value:"%",label:cC?"%":(0,u.__)("Percentage (%)"),a11yLabel:(0,u.__)("Percent (%)"),step:.1},em:{value:"em",label:cC?"em":(0,u.__)("Relative to parent font size (em)"),a11yLabel:(0,u._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:cC?"rem":(0,u.__)("Relative to root font size (rem)"),a11yLabel:(0,u._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:cC?"vw":(0,u.__)("Viewport width (vw)"),a11yLabel:(0,u.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:cC?"vh":(0,u.__)("Viewport height (vh)"),a11yLabel:(0,u.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:cC?"vmin":(0,u.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,u.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:cC?"vmax":(0,u.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,u.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:cC?"ch":(0,u.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,u.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:cC?"ex":(0,u.__)("x-height of the font (ex)"),a11yLabel:(0,u.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:cC?"cm":(0,u.__)("Centimeters (cm)"),a11yLabel:(0,u.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:cC?"mm":(0,u.__)("Millimeters (mm)"),a11yLabel:(0,u.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:cC?"in":(0,u.__)("Inches (in)"),a11yLabel:(0,u.__)("Inches (in)"),step:.001},pc:{value:"pc",label:cC?"pc":(0,u.__)("Picas (pc)"),a11yLabel:(0,u.__)("Picas (pc)"),step:1},pt:{value:"pt",label:cC?"pt":(0,u.__)("Points (pt)"),a11yLabel:(0,u.__)("Points (pt)"),step:1},svw:{value:"svw",label:cC?"svw":(0,u.__)("Small viewport width (svw)"),a11yLabel:(0,u.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:cC?"svh":(0,u.__)("Small viewport height (svh)"),a11yLabel:(0,u.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:cC?"svi":(0,u.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,u.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:cC?"svb":(0,u.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,u.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:cC?"svmin":(0,u.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,u.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:cC?"lvw":(0,u.__)("Large viewport width (lvw)"),a11yLabel:(0,u.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:cC?"lvh":(0,u.__)("Large viewport height (lvh)"),a11yLabel:(0,u.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:cC?"lvi":(0,u.__)("Large viewport width or height (lvi)"),a11yLabel:(0,u.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:cC?"lvb":(0,u.__)("Large viewport width or height (lvb)"),a11yLabel:(0,u.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:cC?"lvmin":(0,u.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,u.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:cC?"dvw":(0,u.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,u.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:cC?"dvh":(0,u.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,u.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:cC?"dvi":(0,u.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,u.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:cC?"dvb":(0,u.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,u.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:cC?"dvmin":(0,u.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,u.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:cC?"dvmax":(0,u.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,u.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:cC?"svmax":(0,u.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,u.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:cC?"lvmax":(0,u.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,u.__)("Large viewport largest dimension (lvmax)"),step:.1}},dC=Object.values(uC),fC=[uC.px,uC["%"],uC.em,uC.rem,uC.vw,uC.vh],mC=uC.px;function pC(e,t,n){return gC(t?`${null!=e?e:""}${t}`:e,n)}function hC(e){return Array.isArray(e)&&!!e.length}function gC(e,t=dC){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(hC(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=mC.value;return[r,a]}const vC=({units:e=dC,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=gC(n[e.value]);r[t].default=o}})),r};const bC=e=>e.replace(/^var\((.+)\)$/,"$1"),yC=es(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:o,colors:i,disableCustomColors:a,enableAlpha:s,enableStyle:l,indicatorClassName:c,indicatorWrapperClassName:d,isStyleSettable:f,onReset:m,onColorChange:p,onStyleChange:h,popoverContentClassName:g,popoverControlsClassName:v,resetButtonClassName:b,showDropdownHeader:y,size:x,__unstablePopoverProps:w,...E}=function(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:a,previousStyleSelection:s,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=Qa(e,"BorderControlDropdown"),[d]=gC(t?.width),f=0===d,m=Ja(),p=(0,Vo.useMemo)((()=>m(rC,n)),[n,m]),h=(0,Vo.useMemo)((()=>m(sC)),[m]),g=(0,Vo.useMemo)((()=>m(oC(t,l))),[t,m,l]),v=(0,Vo.useMemo)((()=>m(iC)),[m]),b=(0,Vo.useMemo)((()=>m(aC)),[m]),y=(0,Vo.useMemo)((()=>m(lC)),[m]);return{...u,border:t,className:p,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:h,indicatorWrapperClassName:g,onColorChange:e=>{a({color:e,style:"none"===t?.style?s:t?.style,width:f&&e?"1px":t?.width})},onStyleChange:e=>{const n=f&&e?"1px":t?.width;a({...t,style:e,width:n})},onReset:()=>{a({...t,color:void 0,style:void 0})},popoverContentClassName:b,popoverControlsClassName:v,resetButtonClassName:y,size:l,__experimentalIsRenderedInSidebar:c}}(e),{color:_,style:S}=o||{},C=((e,t)=>{if(e&&t){if($S(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(_,i),k=((e,t,n,r)=>{if(r){if(t){const e=bC(t.color);return n?(0,u.sprintf)('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".',t.name,e,n):(0,u.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=bC(e);return n?(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,u.__)("Border color and style picker.")}return t?(0,u.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,bC(t.color)):e?(0,u.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',bC(e)):(0,u.__)("Border color picker.")})(_,C,S,l),P=_||S&&"none"!==S,T=n?"bottom left":void 0;return(0,r.createElement)(AE,{renderToggle:({onToggle:e})=>(0,r.createElement)(cy,{onClick:e,variant:"tertiary","aria-label":k,tooltipPosition:T,label:(0,u.__)("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===x},(0,r.createElement)("span",{className:d},(0,r.createElement)(IE,{className:c,colorValue:_}))),renderContent:({onClose:e})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(HS,{paddingSize:"medium"},(0,r.createElement)(zS,{className:v,spacing:6},y?(0,r.createElement)(_y,null,(0,r.createElement)(Kb,null,(0,u.__)("Border color")),(0,r.createElement)(cy,{size:"small",label:(0,u.__)("Close border color"),icon:Nw,onClick:e})):void 0,(0,r.createElement)(YS,{className:g,value:_,onChange:p,colors:i,disableCustomColors:a,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&f&&(0,r.createElement)(TE,{label:(0,u.__)("Style"),value:S,onChange:h}))),P&&(0,r.createElement)(HS,{paddingSize:"none"},(0,r.createElement)(cy,{className:b,variant:"tertiary",onClick:()=>{m(),e()}},(0,u.__)("Reset")))),popoverProps:{...w},...E,ref:t})}),"BorderControlDropdown"),xC=yC;const wC=(0,Vo.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:o="default",unit:i="px",units:a=fC,...s},l){if(!hC(a)||1===a?.length)return(0,r.createElement)(ZS,{className:"components-unit-control__unit-label",selectSize:o},i);const u=c()("components-unit-control__select",e);return(0,r.createElement)(JS,{ref:l,className:u,onChange:e=>{const{value:t}=e.target,r=a.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:o,tabIndex:t?void 0:-1,value:i,...s},a.map((e=>(0,r.createElement)("option",{value:e.value,key:e.value},e.label))))}));const EC=(0,Vo.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:o="off",children:i,className:a,disabled:s=!1,disableUnits:l=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:m=!0,label:p,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=fC,value:x,onFocus:w,...E}=Tv(e);"unit"in e&&$o()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=x?x:void 0,[S,C]=(0,Vo.useMemo)((()=>{const e=function(e,t,n=dC){const r=Array.isArray(n)?[...n]:[],[,o]=pC(e,t,dC);return o&&!r.some((e=>e.value===o))&&uC[o]&&r.unshift(uC[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=Vy(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),Vy(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,P]=pC(_,b,S),[T,I]=GE(1===S.length?S[0].value:b,{initial:P,fallback:""});(0,Vo.useEffect)((()=>{void 0!==P&&I(P)}),[P,I]);const R=c()("components-unit-control","components-unit-control-wrapper",a);let M;!l&&m&&S.length&&(M=e=>{E.onKeyDown?.(e),!e.metaKey&&C.test(e.key)&&N.current?.focus()});const N=(0,Vo.useRef)(null),D=l?null:(0,r.createElement)(wC,{ref:N,"aria-label":(0,u.__)("Select unit"),disabled:s,isUnitSelectTabbable:m,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),I(e)},size:["small","compact"].includes(v)||"default"===v&&!E.__next40pxDefaultSize?"small":"default",unit:T,units:S,onFocus:w,onBlur:e.onBlur});let A=E.step;if(!A&&S){var O;const e=S.find((e=>e.value===T));A=null!==(O=e?.step)&&void 0!==O?O:1}return(0,r.createElement)(KS,{...E,autoComplete:o,className:R,disabled:s,spinControls:"none",isPressEnterToChange:d,label:p,onKeyDown:M,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=gC(e,t),a=null!=o?o:n;let s=i||r;return!s&&hC(t)&&(s=t[0].value),[a,s]}(e,S,k,T).join("");h?.(n,t)},ref:t,size:v,suffix:D,type:d?"text":"number",value:null!=k?k:"",step:A,onFocus:w,__unstableStateReducer:n})})),_C=EC,SC=e=>void 0!==e?.width&&""!==e.width||void 0!==e?.color;function CC(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:a=!0,shouldSanitizeBorder:s=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,__next40pxDefaultSize:f,...m}=Qa(e,"BorderControl"),p="default"===l&&f?"__unstable-large":l,[h,g]=gC(c?.width),v=g||"px",b=0===h,[y,x]=(0,Vo.useState)(),[w,E]=(0,Vo.useState)(),_=!s||SC(c),S=(0,Vo.useCallback)((e=>{!s||SC(e)?o(e):o(void 0)}),[o,s]),C=(0,Vo.useCallback)((e=>{const t=""===e?void 0:e,[n]=gC(e),r=0===n,o={...c,width:t};r&&!b&&(x(c?.color),E(c?.style),o.color=void 0,o.style="none"),!r&&b&&(void 0===o.color&&(o.color=y),"none"===o.style&&(o.style=w)),S(o)}),[c,b,y,w,S]),k=(0,Vo.useCallback)((e=>{C(`${e}${v}`)}),[C,v]),P=Ja(),T=(0,Vo.useMemo)((()=>P(tC,t)),[t,P]);let I=u;r&&(I="__unstable-large"===l?"116px":"90px");const R=(0,Vo.useMemo)((()=>{const e=!!I&&nC,t=(e=>_s("height:","__unstable-large"===e?"40px":"30px",";",""))(p);return P(_s(KS,"{flex:1 1 40%;}&& ",JS,"{min-height:0;}",""),e,t)}),[I,P,p]),M=(0,Vo.useMemo)((()=>P(_s("flex:1 1 60%;",Yh({marginRight:Rh(3)})(),";",""))),[P]);return{...m,className:T,colors:n,enableAlpha:i,enableStyle:a,innerWrapperClassName:R,inputWidth:I,isStyleSettable:_,onBorderChange:S,onSliderChange:k,onWidthChange:C,previousStyleSelection:w,sliderClassName:M,value:c,widthUnit:v,widthValue:h,size:p,__experimentalIsRenderedInSidebar:d,__next40pxDefaultSize:f}}const kC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,r.createElement)(vs,{as:"legend"},t):(0,r.createElement)(Kb,{as:"legend"},t):null},PC=es(((e,t)=>{const{__next40pxDefaultSize:n=!1,colors:o,disableCustomColors:i,disableUnits:a,enableAlpha:s,enableStyle:l,hideLabelFromVision:c,innerWrapperClassName:d,inputWidth:f,isStyleSettable:m,label:p,onBorderChange:h,onSliderChange:g,onWidthChange:v,placeholder:b,__unstablePopoverProps:y,previousStyleSelection:x,showDropdownHeader:w,size:E,sliderClassName:_,value:S,widthUnit:C,widthValue:k,withSlider:P,__experimentalIsRenderedInSidebar:T,...I}=CC(e);return(0,r.createElement)(gs,{as:"fieldset",...I,ref:t},(0,r.createElement)(kC,{label:p,hideLabelFromVision:c}),(0,r.createElement)(_y,{spacing:4,className:d},(0,r.createElement)(_C,{prefix:(0,r.createElement)(xC,{border:S,colors:o,__unstablePopoverProps:y,disableCustomColors:i,enableAlpha:s,enableStyle:l,isStyleSettable:m,onChange:h,previousStyleSelection:x,showDropdownHeader:w,__experimentalIsRenderedInSidebar:T,size:E}),label:(0,u.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:v,value:S?.width||"",placeholder:b,disableUnits:a,__unstableInputWidth:f,size:E}),P&&(0,r.createElement)(E_,{__nextHasNoMarginBottom:!0,label:(0,u.__)("Border width"),hideLabelFromVision:!0,className:_,initialPosition:0,max:100,min:0,onChange:g,step:["px","%"].includes(C)?1:.1,value:k||void 0,withInputField:!1,__next40pxDefaultSize:n})))}),"BorderControl"),TC=PC,IC={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function RC(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:a=3,isInline:s=!1,justify:l,rowGap:c,rows:u,templateColumns:d,templateRows:f,...m}=Qa(e,"Grid"),p=Th(Array.isArray(i)?i:[i]),h=Th(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${p}, 1fr )`,v=f||!!u&&`repeat( ${h}, 1fr )`,b=Ja();return{...m,className:(0,Vo.useMemo)((()=>{const e=function(e){return e?IC[e]:{}}(n),i=_s({alignItems:t,display:s?"inline-grid":"grid",gap:`calc( ${Gg.gridBase} * ${a} )`,gridTemplateColumns:g||void 0,gridTemplateRows:v||void 0,gridRowGap:c,gridColumnGap:o,justifyContent:l,verticalAlign:s?"middle":void 0,...e},"","");return b(i,r)}),[t,n,r,o,b,a,g,v,s,l,c])}}const MC=es((function(e,t){const n=RC(e);return(0,r.createElement)(gs,{...n,ref:t})}),"Grid");function NC(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:a=!1,...s}=Qa(e,"BorderBoxControlSplitControls"),l=Ja(),c=(0,Vo.useMemo)((()=>l((e=>_s("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...s,centeredClassName:(0,Vo.useMemo)((()=>l(Pw,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,Vo.useMemo)((()=>l(_s(Yh({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:a}}const DC=es(((e,t)=>{const{centeredClassName:n,colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,onChange:l,popoverPlacement:c,popoverOffset:f,rightAlignedClassName:m,size:p="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=NC(e),[b,y]=(0,Vo.useState)(null),x=(0,Vo.useMemo)((()=>c?{placement:c,offset:f,anchor:b,shift:!0}:void 0),[c,f,b]),w={colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:p},E=(0,d.useMergeRefs)([y,t]);return(0,r.createElement)(MC,{...v,ref:E,gap:4},(0,r.createElement)(Mw,{value:h,size:p}),(0,r.createElement)(TC,{className:n,hideLabelFromVision:!0,label:(0,u.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:x,value:h?.top,...w}),(0,r.createElement)(TC,{hideLabelFromVision:!0,label:(0,u.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:x,value:h?.left,...w}),(0,r.createElement)(TC,{className:m,hideLabelFromVision:!0,label:(0,u.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:x,value:h?.right,...w}),(0,r.createElement)(TC,{className:n,hideLabelFromVision:!0,label:(0,u.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:x,value:h?.bottom,...w}))}),"BorderBoxControlSplitControls"),AC=DC,OC=/^([\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)?$/;const zC=["top","right","bottom","left"],LC=["color","style","width"],FC=e=>!e||!LC.some((t=>void 0!==e[t])),BC=e=>{if(!e)return!1;if(jC(e)){return!zC.every((t=>FC(e[t])))}return!FC(e)},jC=(e={})=>Object.keys(e).some((e=>-1!==zC.indexOf(e))),VC=e=>{if(!jC(e))return!1;const t=zC.map((t=>HC(e?.[t])));return!t.every((e=>e===t[0]))},HC=(e,t)=>{if(FC(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},$C=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(OC);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function WC(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:a="default",value:s,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:c,...u}=Qa(e,"BorderBoxControl"),d="default"===a&&c?"__unstable-large":a,f=VC(s),m=jC(s),p=m?(e=>{if(!e)return;const t=[],n=[],r=[];zC.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:$C(r)}})(s):s,h=m?s:(e=>{if(e&&!FC(e))return{top:e,right:e,bottom:e,left:e}})(s),g=!isNaN(parseFloat(`${p?.width}`)),[v,b]=(0,Vo.useState)(!f),y=Ja(),x=(0,Vo.useMemo)((()=>y(Sw,t)),[y,t]),w=(0,Vo.useMemo)((()=>y(_s("flex:1;",Yh({marginRight:"24px"})(),";",""))),[y]),E=(0,Vo.useMemo)((()=>y(Cw)),[y]);return{...u,className:x,colors:n,disableUnits:f&&!g,enableAlpha:o,enableStyle:i,hasMixedBorders:f,isLinked:v,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!f||(t=e)&&LC.every((e=>void 0!==t[e])))return r(FC(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...s?.top,...n},right:{...s?.right,...n},bottom:{...s?.bottom,...n},left:{...s?.left,...n}};if(VC(o))return r(o);const i=FC(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...h,[t]:e};VC(n)?r(n):r(e)},toggleLinked:()=>b(!v),linkedValue:p,size:d,splitValue:h,wrapperClassName:E,__experimentalIsRenderedInSidebar:l}}const UC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,r.createElement)(vs,{as:"label"},t):(0,r.createElement)(Kb,null,t):null},GC=es(((e,t)=>{const{className:n,colors:o,disableCustomColors:i,disableUnits:a,enableAlpha:s,enableStyle:l,hasMixedBorders:c,hideLabelFromVision:f,isLinked:m,label:p,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:x,size:w,splitValue:E,toggleLinked:_,wrapperClassName:S,__experimentalIsRenderedInSidebar:C,...k}=WC(e),[P,T]=(0,Vo.useState)(null),I=(0,Vo.useMemo)((()=>y?{placement:y,offset:x,anchor:P,shift:!0}:void 0),[y,x,P]),R=(0,d.useMergeRefs)([T,t]);return(0,r.createElement)(gs,{className:n,...k,ref:R},(0,r.createElement)(UC,{label:p,hideLabelFromVision:f}),(0,r.createElement)(gs,{className:S},m?(0,r.createElement)(TC,{className:h,colors:o,disableUnits:a,disableCustomColors:i,enableAlpha:s,enableStyle:l,onChange:v,placeholder:c?(0,u.__)("Mixed"):void 0,__unstablePopoverProps:I,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===w?"116px":"110px",__experimentalIsRenderedInSidebar:C,size:w}):(0,r.createElement)(AC,{colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:x,value:E,__experimentalIsRenderedInSidebar:C,size:w}),(0,r.createElement)(Iw,{onClick:_,isLinked:m,size:w})))}),"BorderBoxControl"),qC=GC;const YC=ps("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),KC=ps("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),XC=ps("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>_s({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),ZC=ps(XC,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),JC=ps(XC,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),QC=ps(JC,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),ek=ps(ZC,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),tk=ps(JC,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),nk=ps(ZC,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"});function rk({size:e=24,side:t="all",sides:n,...o}){const i=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),a=i("top")||i("vertical"),s=i("right")||i("horizontal"),l=i("bottom")||i("vertical"),c=i("left")||i("horizontal"),u=e/24;return(0,r.createElement)(YC,{style:{transform:`scale(${u})`},...o},(0,r.createElement)(KC,null,(0,r.createElement)(QC,{isFocused:a}),(0,r.createElement)(ek,{isFocused:s}),(0,r.createElement)(tk,{isFocused:l}),(0,r.createElement)(nk,{isFocused:c})))}const ok=ps(_C,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),ik=ps(_y,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),ak=ps(cy,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),sk=ps("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),lk=ps(rk,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),ck=ps(E_,{target:"e1jovhle0"})("width:100%;margin-inline-end:",Rh(2),";"),uk={px:{max:300,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}},dk={all:(0,u.__)("All sides"),top:(0,u.__)("Top side"),bottom:(0,u.__)("Bottom side"),left:(0,u.__)("Left side"),right:(0,u.__)("Right side"),mixed:(0,u.__)("Mixed"),vertical:(0,u.__)("Top and bottom sides"),horizontal:(0,u.__)("Left and right sides")},fk={top:void 0,right:void 0,bottom:void 0,left:void 0},mk=["top","right","bottom","left"];function pk(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function hk(e={},t,n=mk){const r=function(e){const t=[];if(!e?.length)return mk;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=mk.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>gC(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=pk(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return pk(t)}(t))&&void 0!==l?l:pk(i);return[a,s].join("")}function gk(e={},t,n=mk){const r=hk(e,t,n);return isNaN(parseFloat(r))}function vk(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function bk(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function yk(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):mk.forEach((e=>r[e]=t)),r}const xk=()=>{};function wk({__next40pxDefaultSize:e,onChange:t=xk,onFocus:n=xk,values:o,sides:i,selectedUnits:a,setSelectedUnits:s,...l}){var c,u;const f=(0,d.useInstanceId)(wk,"box-control-input-all"),m=hk(o,a,i),p=vk(o)&&gk(o,a,i),h=p?dk.mixed:void 0,[g,v]=gC(m),b=e=>{const n=void 0!==e&&!isNaN(parseFloat(e)),r=yk(o,n?e:void 0,i);t(r)};return(0,r.createElement)(_y,null,(0,r.createElement)(ok,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:p,id:f,isPressEnterToChange:!0,value:m,onChange:b,onUnitChange:e=>{const t=yk(a,e,i);s(t)},onFocus:e=>{n(e,{side:"all"})},placeholder:h,label:dk.all,hideLabelFromVision:!0}),(0,r.createElement)(ck,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":f,label:dk.all,hideLabelFromVision:!0,onChange:e=>{b(void 0!==e?[e,v].join(""):void 0)},min:0,max:null!==(c=uk[null!=v?v:"px"]?.max)&&void 0!==c?c:10,step:null!==(u=uk[null!=v?v:"px"]?.step)&&void 0!==u?u:.1,value:null!=g?g:0,withInputField:!1}))}const Ek=()=>{};function _k({__next40pxDefaultSize:e,onChange:t=Ek,onFocus:n=Ek,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=(0,d.useInstanceId)(_k,"box-control-input"),u=e=>t=>{n(t,{side:e})},f=(e,n,r)=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[e]=a,r?.event.altKey)switch(e){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(e=>{t(e)})(i)},m=e=>t=>{const n={...i};n[e]=t,a(n)},p=s?.length?mk.filter((e=>s.includes(e))):mk;return(0,r.createElement)(r.Fragment,null,p.map((t=>{var n,a;const[d,p]=gC(o[t]),h=o[t]?p:i[t],g=[c,t].join("-");return(0,r.createElement)(ik,{key:`box-control-${t}`,expanded:!0},(0,r.createElement)(lk,{side:t,sides:s}),(0,r.createElement)(Qo,{placement:"top-end",text:dk[t]},(0,r.createElement)(ok,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[d,h].join(""),onChange:(e,n)=>f(t,e,n),onUnitChange:m(t),onFocus:u(t),label:dk[t],hideLabelFromVision:!0})),(0,r.createElement)(ck,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:dk[t],hideLabelFromVision:!0,onChange:e=>{f(t,void 0!==e?[e,h].join(""):void 0)},min:0,max:null!==(n=uk[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(a=uk[null!=h?h:"px"]?.step)&&void 0!==a?a:.1,value:null!=d?d:0,withInputField:!1}))})))}const Sk=["vertical","horizontal"];function Ck({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=(0,d.useInstanceId)(Ck,"box-control-input"),u=e=>t=>{n&&n(t,{side:e})},f=(e,n)=>{if(!t)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(r.top=i,r.bottom=i),"horizontal"===e&&(r.left=i,r.right=i),t(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),a(n)},p=s?.length?Sk.filter((e=>s.includes(e))):Sk;return(0,r.createElement)(r.Fragment,null,p.map((t=>{var n,a;const[d,p]=gC("vertical"===t?o.top:o.left),h="vertical"===t?i.top:i.left,g=[c,t].join("-");return(0,r.createElement)(ik,{key:t},(0,r.createElement)(lk,{side:t,sides:s}),(0,r.createElement)(Qo,{placement:"top-end",text:dk[t]},(0,r.createElement)(ok,{...l,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:g,isPressEnterToChange:!0,value:[d,null!=h?h:p].join(""),onChange:e=>f(t,e),onUnitChange:m(t),onFocus:u(t),label:dk[t],hideLabelFromVision:!0,key:t})),(0,r.createElement)(ck,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":g,label:dk[t],hideLabelFromVision:!0,onChange:e=>f(t,void 0!==e?[e,null!=h?h:p].join(""):void 0),min:0,max:null!==(n=uk[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(a=uk[null!=h?h:"px"]?.step)&&void 0!==a?a:.1,value:null!=d?d:0,withInputField:!1}))})))}function kk({isLinked:e,...t}){const n=e?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,r.createElement)(Qo,{text:n},(0,r.createElement)(cy,{...t,className:"component-box-control__linked-button",size:"small",icon:e?Ew:_w,iconSize:24,"aria-label":n}))}const Pk={min:0},Tk=()=>{};function Ik({__next40pxDefaultSize:e=!1,id:t,inputProps:n=Pk,onChange:o=Tk,label:i=(0,u.__)("Box Control"),values:a,units:s,sides:l,splitOnAxis:c=!1,allowReset:f=!0,resetValues:m=fk,onMouseOver:p,onMouseOut:h}){const[g,v]=GE(a,{fallback:fk}),b=g||fk,y=vk(a),x=1===l?.length,[w,E]=(0,Vo.useState)(y),[_,S]=(0,Vo.useState)(!y||!gk(b)||x),[C,k]=(0,Vo.useState)(bk(_,c)),[P,T]=(0,Vo.useState)({top:gC(a?.top)[1],right:gC(a?.right)[1],bottom:gC(a?.bottom)[1],left:gC(a?.left)[1]}),I=function(e){const t=(0,d.useInstanceId)(Ik,"inspector-box-control");return e||t}(t),R=`${I}-heading`,M={...n,onChange:e=>{o(e),v(e),E(!0)},onFocus:(e,{side:t})=>{k(t)},isLinked:_,units:s,selectedUnits:P,setSelectedUnits:T,sides:l,values:b,onMouseOver:p,onMouseOut:h,__next40pxDefaultSize:e};return(0,r.createElement)(MC,{id:I,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":R},(0,r.createElement)(ey.VisualLabel,{id:R},i),_&&(0,r.createElement)(ik,null,(0,r.createElement)(lk,{side:C,sides:l}),(0,r.createElement)(wk,{...M})),!x&&(0,r.createElement)(sk,null,(0,r.createElement)(kk,{onClick:()=>{S(!_),k(bk(!_,c))},isLinked:_})),!_&&c&&(0,r.createElement)(Ck,{...M}),!_&&!c&&(0,r.createElement)(_k,{...M}),f&&(0,r.createElement)(ak,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:()=>{o(m),v(m),T(m),E(!1)},disabled:!w},(0,u.__)("Reset")))}const Rk=Ik;const Mk=(0,Vo.forwardRef)((function(e,t){const{className:n,...o}=e,i=c()("components-button-group",n);return(0,r.createElement)("div",{ref:t,role:"group",className:i,...o})}));const Nk={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function Dk(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const Ak=es((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:a=!1,offset:s=0,value:l=0,...c}=Qa(e,"Elevation"),u=Ja();return{...c,className:(0,Vo.useMemo)((()=>{let e=ng(i)?i:2*l,c=ng(t)?t:l/2;a||(e=ng(i)?i:void 0,c=ng(t)?t:void 0);const d=`box-shadow ${Gg.transitionDuration} ${Gg.transitionTimingFunction}`,f={};return f.Base=_s({borderRadius:n,bottom:s,boxShadow:Dk(l),opacity:Gg.elevationIntensity,left:s,right:s,top:s,transition:d},Rs("transition"),"",""),ng(e)&&(f.hover=_s("*:hover>&{box-shadow:",Dk(e),";}","")),ng(c)&&(f.active=_s("*:active>&{box-shadow:",Dk(c),";}","")),ng(o)&&(f.focus=_s("*:focus>&{box-shadow:",Dk(o),";}","")),u(Nk,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,u,o,i,a,s,l]),"aria-hidden":!0}}(e);return(0,r.createElement)(gs,{...n,ref:t})}),"Elevation"),Ok=Ak;const zk=`calc(${Gg.cardBorderRadius} - 1px)`,Lk=_s("box-shadow:0 0 0 1px ",Gg.surfaceBorderColor,";outline:none;",""),Fk={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},Bk={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},jk={name:"13udsys",styles:"height:100%"},Vk={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},Hk={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},$k={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},Wk=_s("&:first-of-type{border-top-left-radius:",zk,";border-top-right-radius:",zk,";}&:last-of-type{border-bottom-left-radius:",zk,";border-bottom-right-radius:",zk,";}",""),Uk=_s("border-color:",Gg.colorDivider,";",""),Gk={name:"1t90u8d",styles:"box-shadow:none"},qk={name:"1e1ncky",styles:"border:none"},Yk=_s("border-radius:",zk,";",""),Kk=_s("padding:",Gg.cardPaddingXSmall,";",""),Xk={large:_s("padding:",Gg.cardPaddingLarge,";",""),medium:_s("padding:",Gg.cardPaddingMedium,";",""),small:_s("padding:",Gg.cardPaddingSmall,";",""),xSmall:Kk,extraSmall:Kk},Zk=_s("background-color:",Is.ui.backgroundDisabled,";",""),Jk=_s("background-color:",Gg.surfaceColor,";color:",Is.gray[900],";position:relative;","");Gg.surfaceBackgroundColor;function Qk({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Gg.surfaceBorderColor}`;return _s({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const eP=_s("",""),tP=_s("background:",Gg.surfaceBackgroundTintColor,";",""),nP=_s("background:",Gg.surfaceBackgroundTertiaryColor,";",""),rP=e=>[e,e].join(" "),oP=e=>["90deg",[Gg.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),iP=e=>[[Gg.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),aP=(e,t)=>_s("background:",(e=>[`linear-gradient( ${oP(e)} ) center`,`linear-gradient( ${iP(e)} ) center`,Gg.surfaceBorderBoldColor].join(","))(t),";background-size:",rP(e),";",""),sP=[`linear-gradient( ${[`${Gg.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Gg.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),lP=(e,t,n)=>{switch(e){case"dotted":return aP(t,n);case"grid":return(e=>_s("background:",Gg.surfaceBackgroundColor,";background-image:",sP,";background-size:",rP(e),";",""))(t);case"primary":return eP;case"secondary":return tP;case"tertiary":return nP}};function cP(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:a,variant:s="primary",...l}=Qa(e,"Surface"),c=Ja();return{...l,className:(0,Vo.useMemo)((()=>{const e={borders:Qk({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return c(Jk,e.borders,lP(s,`${t}px`,t-1+"px"),a)}),[t,n,r,o,i,a,c,s])}}function uP(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...a}=Qa(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&($o()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),s=Ja();return{...cP({...a,className:(0,Vo.useMemo)((()=>s(Lk,r&&Gk,o&&Yk,t)),[t,s,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const dP=es((function(e,t){const{children:n,elevation:o,isBorderless:i,isRounded:a,size:s,...l}=uP(e),c=a?Gg.cardBorderRadius:0,u=Ja(),d=(0,Vo.useMemo)((()=>u(_s({borderRadius:c},"",""))),[u,c]),f=(0,Vo.useMemo)((()=>{const e={size:s,isBorderless:i};return{CardBody:e,CardHeader:e,CardFooter:e}}),[i,s]);return(0,r.createElement)(ci,{value:f},(0,r.createElement)(gs,{...l,ref:t},(0,r.createElement)(gs,{className:u(jk)},n),(0,r.createElement)(Ok,{className:d,isInteractive:!1,value:o?1:0}),(0,r.createElement)(Ok,{className:d,isInteractive:!1,value:o})))}),"Card"),fP=dP;const mP=_s("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Gg.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Gg.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Gg.colorScrollbarThumbHover,";}}",""),pP={name:"13udsys",styles:"height:100%"},hP={name:"7zq9w",styles:"scroll-behavior:smooth"},gP={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},vP={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},bP={name:"umwchj",styles:"overflow-y:auto"};const yP=es((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Qa(e,"Scrollable"),i=Ja();return{...o,className:(0,Vo.useMemo)((()=>i(pP,mP,r&&hP,"x"===n&&gP,"y"===n&&vP,"auto"===n&&bP,t)),[t,i,n,r])}}(e);return(0,r.createElement)(gs,{...n,ref:t})}),"Scrollable"),xP=yP;const wP=es((function(e,t){const{isScrollable:n,...o}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Qa(e,"CardBody"),a=Ja();return{...i,className:(0,Vo.useMemo)((()=>a(Vk,Wk,Xk[o],r&&Zk,"components-card__body",t)),[t,a,r,o]),isScrollable:n}}(e);return n?(0,r.createElement)(xP,{...o,ref:t}):(0,r.createElement)(gs,{...o,ref:t})}),"CardBody"),EP=wP;var _P=Ve((e=>{var t=e,{orientation:n="horizontal"}=t,r=E(t,["orientation"]);return r=x({role:"separator","aria-orientation":n},r)})),SP=Fe((e=>je("hr",_P(e))));const CP={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var kP={name:"1u4hpl4",styles:"display:inline"};const PP=ps("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?kP:void 0)," ",(({"aria-orientation":e="horizontal"})=>_s({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>_s({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>_s(Yh({[CP[e].start]:Rh(null!=n?n:t),[CP[e].end]:Rh(null!=r?r:t)})(),"","")),";");const TP=es((function(e,t){const n=Qa(e,"Divider");return(0,r.createElement)(SP,{render:(0,r.createElement)(PP,null),...n,ref:t})}),"Divider");const IP=es((function(e,t){const n=function(e){const{className:t,...n}=Qa(e,"CardDivider"),r=Ja();return{...n,className:(0,Vo.useMemo)((()=>r($k,Uk,"components-card__divider",t)),[t,r])}}(e);return(0,r.createElement)(TP,{...n,ref:t})}),"CardDivider"),RP=IP;const MP=es((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...a}=Qa(e,"CardFooter"),s=Ja();return{...a,className:(0,Vo.useMemo)((()=>s(Bk,Wk,Uk,Xk[i],r&&qk,o&&Zk,"components-card__footer",t)),[t,s,r,o,i]),justify:n}}(e);return(0,r.createElement)(Bh,{...n,ref:t})}),"CardFooter"),NP=MP;const DP=es((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Qa(e,"CardHeader"),a=Ja();return{...i,className:(0,Vo.useMemo)((()=>a(Fk,Wk,Uk,Xk[o],n&&qk,r&&Zk,"components-card__header",t)),[t,a,n,r,o])}}(e);return(0,r.createElement)(Bh,{...n,ref:t})}),"CardHeader"),AP=DP;const OP=es((function(e,t){const n=function(e){const{className:t,...n}=Qa(e,"CardMedia"),r=Ja();return{...n,className:(0,Vo.useMemo)((()=>r(Hk,Wk,"components-card__media",t)),[t,r])}}(e);return(0,r.createElement)(gs,{...n,ref:t})}),"CardMedia"),zP=OP;const LP=function e(t){const{__nextHasNoMarginBottom:n,label:o,className:i,heading:a,checked:s,indeterminate:l,help:u,id:f,onChange:m,...p}=t;a&&$o()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,Vo.useState)(!1),[v,b]=(0,Vo.useState)(!1),y=(0,d.useRefEffect)((e=>{e&&(e.indeterminate=!!l,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,l]),x=(0,d.useInstanceId)(e,"inspector-checkbox-control",f);return(0,r.createElement)(ty,{__nextHasNoMarginBottom:n,label:a,id:x,help:u,className:c()("components-checkbox-control",i)},(0,r.createElement)("span",{className:"components-checkbox-control__input-container"},(0,r.createElement)("input",{ref:y,id:x,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>m(e.target.checked),checked:s,"aria-describedby":u?x+"__help":void 0,...p}),v?(0,r.createElement)(BE,{icon:Qh,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,r.createElement)(BE,{icon:IS,className:"components-checkbox-control__checked",role:"presentation"}):null),o&&(0,r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:x},o))},FP=4e3;function BP({className:e,children:t,onCopy:n,onFinishCopy:o,text:i,...a}){$o()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,Vo.useRef)(),l=(0,d.useCopyToClipboard)(i,(()=>{n(),s.current&&clearTimeout(s.current),o&&(s.current=setTimeout((()=>o()),FP))}));(0,Vo.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const u=c()("components-clipboard-button",e);return(0,r.createElement)(cy,{...a,className:u,ref:l,onCopy:e=>{e.target.focus()}},t)}const jP=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const VP=e=>_s("font-size:",Wb("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:","a"===e?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",Is.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Is.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),HP={name:"1bcj5ek",styles:"width:100%;display:block"},$P={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},WP=_s("border:1px solid ",Gg.surfaceBorderColor,";",""),UP=_s(">*:not( marquee )>*{border-bottom:1px solid ",Gg.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),GP=Gg.controlBorderRadius,qP=_s("border-radius:",GP,";",""),YP=_s("border-radius:",GP,";>*:first-of-type>*{border-top-left-radius:",GP,";border-top-right-radius:",GP,";}>*:last-of-type>*{border-bottom-left-radius:",GP,";border-bottom-right-radius:",GP,";}",""),KP=`calc(${Gg.fontSize} * ${Gg.fontLineHeightBase})`,XP=`calc((${Gg.controlHeight} - ${KP} - 2px) / 2)`,ZP=`calc((${Gg.controlHeightSmall} - ${KP} - 2px) / 2)`,JP=`calc((${Gg.controlHeightLarge} - ${KP} - 2px) / 2)`,QP={small:_s("padding:",ZP," ",Gg.controlPaddingXSmall,";",""),medium:_s("padding:",XP," ",Gg.controlPaddingX,";",""),large:_s("padding:",JP," ",Gg.controlPaddingXLarge,";","")};const eT=(0,Vo.createContext)({size:"medium"}),tT=()=>(0,Vo.useContext)(eT);const nT=es((function(e,t){const{isBordered:n,isSeparated:o,size:i,...a}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=Qa(e,"ItemGroup");return{isBordered:n,className:Ja()(n&&WP,o&&UP,r&&YP,t),role:i,isSeparated:o,...a}}(e),{size:s}=tT(),l={spacedAround:!n&&!o,size:i||s};return(0,r.createElement)(eT.Provider,{value:l},(0,r.createElement)(gs,{...a,ref:t}))}),"ItemGroup"),rT=10,oT=0,iT=rT;function aT(e){return Math.max(0,Math.min(100,e))}function sT(e,t,n){const r=e.slice();return r[t]=n,r}function lT(e,t,n){if(function(e,t,n,r=oT){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<a)))}(e,t,n))return e;return sT(e,t,{...e[t],position:n})}function cT(e,t,n){return sT(e,t,{...e[t],color:n})}function uT(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(aT(100*o/r))}function dT({isOpen:e,position:t,color:n,...o}){const i=`components-custom-gradient-picker__control-point-button-description-${(0,d.useInstanceId)(dT)}`;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(cy,{"aria-label":(0,u.sprintf)((0,u.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":i,"aria-haspopup":"true","aria-expanded":e,className:c()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...o}),(0,r.createElement)(vs,{id:i},(0,u.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function fT({isRenderedInSidebar:e,className:t,...n}){const o=(0,Vo.useMemo)((()=>({placement:"bottom",offset:8,resize:!1})),[]),i=c()("components-custom-gradient-picker__control-point-dropdown",t);return(0,r.createElement)(GS,{isRenderedInSidebar:e,popoverProps:o,className:i,...n})}function mT({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:o,value:i,onChange:a,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:c}){const d=(0,Vo.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=uT(e.clientX,n.current),{initialPosition:r,index:o,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),a(lT(i,o,t))},m=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",m),l(),d.current.listenersActivated=!1)},p=(0,Vo.useRef)();return p.current=m,(0,Vo.useEffect)((()=>()=>{p.current?.()}),[]),(0,r.createElement)(r.Fragment,null,i.map(((n,p)=>{const h=n?.position;return o!==h&&(0,r.createElement)(fT,{isRenderedInSidebar:c,key:p,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(dT,{key:p,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:p,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",m))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),a(lT(i,p,aT(n.position-iT)))):"ArrowRight"===e.code&&(e.stopPropagation(),a(lT(i,p,aT(n.position+iT))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:o})=>(0,r.createElement)(HS,{paddingSize:"none"},(0,r.createElement)(PS,{enableAlpha:!t,color:n.color,onChange:e=>{a(cT(i,p,Og(e).toRgbString()))}}),!e&&i.length>2&&(0,r.createElement)(_y,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,r.createElement)(cy,{onClick:()=>{a(function(e,t){return e.filter(((e,n)=>n!==t))}(i,p)),o()},variant:"link"},(0,u.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}mT.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:o,insertPosition:i,disableAlpha:a,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,Vo.useState)(!1);return(0,r.createElement)(fT,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(cy,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?o():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:Jh}),renderContent:()=>(0,r.createElement)(HS,{paddingSize:"none"},(0,r.createElement)(PS,{enableAlpha:!a,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return cT(e,r,n)}(e,i,Og(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,i,Og(n).toRgbString())),c(!0))}})),style:null!==i?{left:`${i}%`,transform:"translateX( -50% )"}:void 0})};const pT=mT,hT=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},gT={id:"IDLE"};function vT({background:e,hasGradient:t,value:n,onChange:o,disableInserter:i=!1,disableAlpha:a=!1,__experimentalIsRenderedInSidebar:s=!1}){const l=(0,Vo.useRef)(null),[u,d]=(0,Vo.useReducer)(hT,gT),f=e=>{if(!l.current)return;const t=uT(e.clientX,l.current);n.some((({position:e})=>Math.abs(t-e)<rT))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},m="MOVING_INSERTER"===u.id,p="INSERTING_CONTROL_POINT"===u.id;return(0,r.createElement)("div",{className:c()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:f,onMouseMove:f,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})}},(0,r.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,r.createElement)("div",{ref:l,className:"components-custom-gradient-picker__markers-container"},!i&&(m||p)&&(0,r.createElement)(pT.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:a,insertPosition:u.insertPosition,value:n,onChange:o,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,r.createElement)(pT,{__experimentalIsRenderedInSidebar:s,disableAlpha:a,disableRemove:i,gradientPickerDomRef:l,ignoreMarkerPosition:p?u.insertPosition:void 0,value:n,onChange:o,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var bT=o(7115);const yT="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",xT={type:"angular",value:"90"},wT=[{value:"linear-gradient",label:(0,u.__)("Linear")},{value:"radial-gradient",label:(0,u.__)("Radial")}],ET={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function _T({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function ST({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(_T)].filter(Boolean).join(",")})`}function CT(e){return void 0===e.length||"%"!==e.length.type}function kT(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Lg([Fg]);const PT=ps(Vh,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),TT=ps(Vh,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),IT=({gradientAST:e,hasGradient:t,onChange:n})=>{var o;const i=null!==(o=e?.orientation?.value)&&void 0!==o?o:180;return(0,r.createElement)(Ny,{onChange:t=>{n(ST({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?i:""})},RT=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:o}=e;return(0,r.createElement)(WE,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,u.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(ST({...e,orientation:e.orientation?void 0:xT,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(ST({...r,type:"radial-gradient"}))})()},options:wT,size:"__unstable-large",value:t?o:void 0})};const MT=function({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:yT;try{t=bT.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=bT.parse(yT)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:ET[t.orientation.value].toString()}),t.colorStops.some(CT)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(e),a=function(e){return ST({type:"linear-gradient",orientation:xT,colorStops:e.colorStops})}(o),s=o.colorStops.map((e=>({color:kT(e),position:parseInt(e.length.value)})));return(0,r.createElement)(zS,{spacing:4,className:"components-custom-gradient-picker"},(0,r.createElement)(vT,{__experimentalIsRenderedInSidebar:n,background:a,hasGradient:i,value:s,onChange:e=>{t(ST(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Og(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,r.createElement)(Bh,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,r.createElement)(PT,null,(0,r.createElement)(RT,{gradientAST:o,hasGradient:i,onChange:t})),(0,r.createElement)(TT,null,"linear-gradient"===o.type&&(0,r.createElement)(IT,{gradientAST:o,hasGradient:i,onChange:t}))))},NT=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function DT({className:e,clearGradient:t,gradients:n,onChange:o,value:i,...a}){const s=(0,Vo.useMemo)((()=>n.map((({gradient:e,name:n,slug:a},s)=>(0,r.createElement)(OS.Option,{key:a,value:e,isSelected:i===e,tooltipText:n||(0,u.sprintf)((0,u.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:i===e?t:()=>o(e,s),"aria-label":n?(0,u.sprintf)((0,u.__)("Gradient: %s"),n):(0,u.sprintf)((0,u.__)("Gradient code: %s"),e)})))),[n,i,o,t]);return(0,r.createElement)(OS.OptionGroup,{className:e,options:s,...a})}function AT({className:e,clearGradient:t,gradients:n,onChange:o,value:i,headingLevel:a}){const s=(0,d.useInstanceId)(AT);return(0,r.createElement)(zS,{spacing:3,className:e},n.map((({name:e,gradients:n},l)=>{const c=`color-palette-${s}-${l}`;return(0,r.createElement)(zS,{spacing:2,key:l},(0,r.createElement)(jS,{level:a,id:c},e),(0,r.createElement)(DT,{clearGradient:t,gradients:n,onChange:e=>o(e,l),value:i,"aria-labelledby":c}))})))}function OT(e){const{asButtons:t,loop:n,actions:o,headingLevel:i,"aria-label":a,"aria-labelledby":s,...l}=e,c=NT(e.gradients)?(0,r.createElement)(AT,{headingLevel:i,...l}):(0,r.createElement)(DT,{...l});let d;if(t)d={asButtons:!0};else{const e={asButtons:!1,loop:n};d=a?{...e,"aria-label":a}:s?{...e,"aria-labelledby":s}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}return(0,r.createElement)(OS,{...d,actions:o,options:c})}const zT=function({className:e,gradients:t=[],onChange:n,value:o,clearable:i=!0,disableCustomGradients:a=!1,__experimentalIsRenderedInSidebar:s,headingLevel:l=2,...c}){const d=(0,Vo.useCallback)((()=>n(void 0)),[n]);return(0,r.createElement)(zS,{spacing:t.length?4:0},!a&&(0,r.createElement)(MT,{__experimentalIsRenderedInSidebar:s,value:o,onChange:n}),(t.length>0||i)&&(0,r.createElement)(OT,{...c,className:e,clearGradient:d,gradients:t,onChange:n,value:o,actions:i&&!a&&(0,r.createElement)(OS.ButtonAction,{onClick:d},(0,u.__)("Clear")),headingLevel:l}))},LT=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),FT=window.wp.dom,BT=()=>{},jT=["menuitem","menuitemradio","menuitemcheckbox"];class VT extends Vo.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?FT.focus.tabbable:FT.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=BT,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&jT.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:o,onKeyDown:i,cycle:a,onlyBrowserTabstops:s,forwardedRef:l,...c}=this.props;return(0,r.createElement)("div",{ref:this.bindContainer,...c},e)}}const HT=(e,t)=>(0,r.createElement)(VT,{...e,forwardedRef:t});HT.displayName="NavigableContainer";const $T=(0,Vo.forwardRef)(HT);const WT=(0,Vo.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},o){return(0,r.createElement)($T,{ref:o,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})})),UT=WT;function GT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=c()(t.className,e.className)),n}function qT(e){return"function"==typeof e}const YT=ts((function(e){const{children:t,className:n,controls:o,icon:i=LT,label:a,popoverProps:s,toggleProps:l,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:m,open:p,defaultOpen:h,onToggle:g,variant:v}=Qa(e,"DropdownMenu");if(!o?.length&&!qT(t))return null;let b;o?.length&&(b=o,Array.isArray(b[0])||(b=[o]));const y=GT({className:"components-dropdown-menu__popover",variant:v},s);return(0,r.createElement)(AE,{className:n,popoverProps:y,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:o=cy,...s}=null!=l?l:{},u=GT({className:c()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,r.createElement)(o,{...u,icon:i,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:a,text:f,showTooltip:null===(n=l?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=GT({"aria-label":a,className:c()("components-dropdown-menu__menu",{"no-icons":m})},u);return(0,r.createElement)(UT,{...n,role:"menu"},qT(t)?t(e):null,b?.flatMap(((t,n)=>t.map(((t,o)=>(0,r.createElement)(cy,{key:[n,o].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:c()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===o,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))},open:p,defaultOpen:h,onToggle:g})}),"DropdownMenu"),KT=YT;const XT=ps(IE,{target:"e1lpqc909"})("&&{flex-shrink:0;width:",Rh(6),";height:",Rh(6),";}"),ZT=ps(oy,{target:"e1lpqc908"})(hv,"{background:",Is.gray[100],";border-radius:",Gg.controlBorderRadius,";",bv,bv,bv,bv,"{height:",Rh(8),";}",Ev,Ev,Ev,"{border-color:transparent;box-shadow:none;}}"),JT=({as:e})=>"button"===e?_s("display:flex;align-items:center;width:100%;appearance:none;background:transparent;border:none;border-radius:0;padding:0;cursor:pointer;&:hover{color:",Is.theme.accent,";}",""):null,QT=ps(gs,{target:"e1lpqc907"})(JT," padding-block:3px;padding-inline-start:",Rh(3),";border:1px solid ",Gg.surfaceBorderColor,";border-bottom-color:transparent;font-size:",Wb("default.fontSize"),";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Is.theme.accent,";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:",Gg.controlBorderRadius,";border-top-right-radius:",Gg.controlBorderRadius,";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:",Gg.controlBorderRadius,";border-bottom-right-radius:",Gg.controlBorderRadius,";border-bottom-color:",Gg.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Is.theme.accent,";}"),eI=ps("div",{target:"e1lpqc906"})("line-height:",Rh(8),";margin-left:",Rh(2),";margin-right:",Rh(2),";white-space:nowrap;overflow:hidden;"),tI=ps(BS,{target:"e1lpqc905"})("text-transform:uppercase;line-height:",Rh(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),nI=ps(gs,{target:"e1lpqc904"})("height:",Rh(6),";display:flex;"),rI=ps(_y,{target:"e1lpqc903"})("margin-bottom:",Rh(2),";"),oI=ps(gs,{target:"e1lpqc902"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),iI=ps(cy,{target:"e1lpqc901"})("&&{color:",Is.theme.accent,";}"),aI=ps(cy,{target:"e1lpqc900"})("&&{margin-top:",Rh(1),";}");function sI({value:e,onChange:t,label:n}){return(0,r.createElement)(ZT,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function lI({isGradient:e,element:t,onChange:n,popoverProps:o,onClose:i=(()=>{})}){const a=(0,Vo.useMemo)((()=>({shift:!0,offset:20,resize:!1,placement:"left-start",...o,className:c()("components-palette-edit__popover",o?.className)})),[o]);return(0,r.createElement)(pw,{...a,onClose:i},!e&&(0,r.createElement)(PS,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,r.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,r.createElement)(MT,{__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function cI({canOnlyChangeValues:e,element:t,onChange:n,isEditing:o,onStartEditing:i,onRemove:a,onStopEditing:s,popoverProps:l,slugPrefix:c,isGradient:f}){const m=(0,d.__experimentalUseFocusOutside)(s),p=f?t.gradient:t.color,[h,g]=(0,Vo.useState)(null),v=(0,Vo.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,r.createElement)(QT,{className:o?"is-selected":void 0,as:o?"div":"button",onClick:i,"aria-label":o?void 0:(0,u.sprintf)((0,u.__)("Edit: %s"),t.name.trim().length?t.name:p),ref:g,...o?{...m}:{}},(0,r.createElement)(_y,{justify:"flex-start"},(0,r.createElement)(XT,{colorValue:p}),(0,r.createElement)(eg,null,o&&!e?(0,r.createElement)(sI,{label:f?(0,u.__)("Gradient name"):(0,u.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:c+jy(null!=e?e:"")})}):(0,r.createElement)(eI,null,t.name.trim().length?t.name:" ")),o&&!e&&(0,r.createElement)(eg,null,(0,r.createElement)(aI,{size:"small",icon:Dw,label:(0,u.__)("Remove color"),onClick:a}))),o&&(0,r.createElement)(lI,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function uI({elements:e,onChange:t,editingElement:n,setEditingElement:o,canOnlyChangeValues:i,slugPrefix:a,isGradient:s,popoverProps:l}){const c=(0,Vo.useRef)();(0,Vo.useEffect)((()=>{c.current=e}),[e]);const u=(0,d.useDebounce)(t,100);return(0,r.createElement)(zS,{spacing:3},(0,r.createElement)(nT,{isRounded:!0},e.map(((c,d)=>(0,r.createElement)(cI,{isGradient:s,canOnlyChangeValues:i,key:d,element:c,onStartEditing:()=>{n!==d&&o(d)},onChange:t=>{u(e.map(((e,n)=>n===d?t:e)))},onRemove:()=>{o(null);const n=e.filter(((e,t)=>t!==d));t(n.length?n:void 0)},isEditing:d===n,onStopEditing:()=>{d===n&&o(null)},slugPrefix:a,popoverProps:l})))))}const dI=[];const fI=function({gradients:e,colors:t=dI,onChange:n,paletteLabel:o,paletteLabelHeadingLevel:i=2,emptyMessage:a,canOnlyChangeValues:s,canReset:l,slugPrefix:c="",popoverProps:f}){const m=!!e,p=m?e:t,[h,g]=(0,Vo.useState)(!1),[v,b]=(0,Vo.useState)(null),y=h&&!!v&&p[v]&&!p[v].slug,x=p.length>0,w=(0,d.useDebounce)(n,100),E=(0,Vo.useCallback)(((e,t)=>{const n=void 0===t?void 0:p[t];n&&n[m?"gradient":"color"]===e?b(t):g(!0)}),[m,p]);return(0,r.createElement)(oI,null,(0,r.createElement)(rI,null,(0,r.createElement)(tI,{level:i},o),(0,r.createElement)(nI,null,x&&h&&(0,r.createElement)(iI,{size:"small",onClick:()=>{g(!1),b(null)}},(0,u.__)("Done")),!s&&(0,r.createElement)(cy,{size:"small",isPressed:y,icon:Jh,label:m?(0,u.__)("Add gradient"):(0,u.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,u.sprintf)((0,u.__)("Color %s"),r)}(p,c);n(e?[...e,{gradient:yT,name:r,slug:c+jy(r)}]:[...t,{color:"#000",name:r,slug:c+jy(r)}]),g(!0),b(p.length)}}),x&&(!h||!s||l)&&(0,r.createElement)(KT,{icon:jP,label:m?(0,u.__)("Gradient options"):(0,u.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(UT,{role:"menu"},!h&&(0,r.createElement)(cy,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,u.__)("Show details")),!s&&(0,r.createElement)(cy,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},m?(0,u.__)("Remove all gradients"):(0,u.__)("Remove all colors")),l&&(0,r.createElement)(cy,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},m?(0,u.__)("Reset gradient"):(0,u.__)("Reset colors")))))))),x&&(0,r.createElement)(r.Fragment,null,h&&(0,r.createElement)(uI,{canOnlyChangeValues:s,elements:p,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:c,isGradient:m,popoverProps:f}),!h&&null!==v&&(0,r.createElement)(lI,{isGradient:m,onClose:()=>b(null),onChange:e=>{w(p.map(((t,n)=>n===v?e:t)))},element:p[null!=v?v:-1],popoverProps:f}),!h&&(m?(0,r.createElement)(zT,{gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,r.createElement)(YS,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!x&&a)},mI=({__next40pxDefaultSize:e})=>!e&&_s("height:28px;padding-left:",Rh(1),";padding-right:",Rh(1),";",""),pI=ps(Bh,{target:"evuatpg0"})("height:38px;padding-left:",Rh(2),";padding-right:",Rh(2),";",mI,";");const hI=(0,Vo.forwardRef)((function(e,t){const{value:n,isExpanded:o,instanceId:i,selectedSuggestionIndex:a,className:s,onChange:l,onFocus:u,onBlur:d,...f}=e,[m,p]=(0,Vo.useState)(!1),h=n?n.length+1:0;return(0,r.createElement)("input",{ref:t,id:`components-form-token-input-${i}`,type:"text",...f,value:n||"",onChange:e=>{l&&l({value:e.target.value})},onFocus:e=>{p(!0),u?.(e)},onBlur:e=>{p(!1),d?.(e)},size:h,className:c()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":o,"aria-autocomplete":"list","aria-owns":o?`components-form-token-suggestions-${i}`:void 0,"aria-activedescendant":m&&-1!==a&&o?`components-form-token-suggestions-${i}-${a}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${i}`})})),gI=hI;var vI=o(5425),bI=o.n(vI);const yI=e=>{e.preventDefault()};const xI=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:o,onSelect:i,suggestions:a=[],displayTransform:s,instanceId:l,__experimentalRenderItem:u}){const[f,m]=(0,Vo.useState)(!1),p=(0,d.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(m(!0),bI()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{m(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||o?.(e)},g=e=>()=>{i?.(e)};return(0,r.createElement)("ul",{ref:p,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${l}`,role:"listbox"},a.map(((t,o)=>{const i=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),a=c()("components-form-token-field__suggestion",{"is-selected":o===e});let d;return d="function"==typeof u?u({item:t}):i?(0,r.createElement)("span",{"aria-label":s(t)},i.suggestionBeforeMatch,(0,r.createElement)("strong",{className:"components-form-token-field__suggestion-match"},i.suggestionMatch),i.suggestionAfterMatch):s(t),(0,r.createElement)("li",{id:`components-form-token-suggestions-${l}-${o}`,role:"option",className:a,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:yI,onClick:g(t),onMouseEnter:h(t),"aria-selected":o===e},d)})))},wI=(0,d.createHigherOrderComponent)((e=>t=>{const[n,o]=(0,Vo.useState)(void 0),i=(0,Vo.useCallback)((e=>o((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,r.createElement)("div",{...(0,d.__experimentalUseFocusOutside)(n)},(0,r.createElement)(e,{ref:i,...t}))}),"withFocusOutside"),EI=()=>{},_I=wI(class extends Vo.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),SI=(e,t)=>null===e?-1:t.indexOf(e);const CI=function e(t){var n;const{__nextHasNoMarginBottom:o=!1,__next40pxDefaultSize:i=!1,value:a,label:s,options:l,onChange:f,onFilterValueChange:m=EI,hideLabelFromVision:p,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,u.__)("Item selected.")},__experimentalRenderItem:y}=Tv(t),[x,w]=iE({value:a,onChange:f}),E=l.find((e=>e.value===x)),_=null!==(n=E?.label)&&void 0!==n?n:"",S=(0,d.useInstanceId)(e,"combobox-control"),[C,k]=(0,Vo.useState)(E||null),[P,T]=(0,Vo.useState)(!1),[I,R]=(0,Vo.useState)(!1),[M,N]=(0,Vo.useState)(""),D=(0,Vo.useRef)(null),A=(0,Vo.useMemo)((()=>{const e=[],t=[],n=By(M);return l.forEach((r=>{const o=By(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,l]),O=e=>{w(e.value),(0,zy.speak)(b.selected,"assertive"),k(e),N(""),T(!1)},z=(e=1)=>{let t=SI(C,A)+e;t<0?t=A.length-1:t>=A.length&&(t=0),k(A[t]),T(!0)};return(0,Vo.useEffect)((()=>{const e=A.length>0,t=SI(C,A)>0;e&&!t&&k(A[0])}),[A,C]),(0,Vo.useEffect)((()=>{const e=A.length>0;if(P){const t=e?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):(0,u.__)("No results.");(0,zy.speak)(t,"polite")}}),[A,P]),(0,r.createElement)(_I,{onFocusOutside:()=>{T(!1)}},(0,r.createElement)(ty,{__nextHasNoMarginBottom:o,className:c()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${S}`,hideLabelFromVision:p,help:h},(0,r.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":C&&(O(C),t=!0);break;case"ArrowUp":z(-1),t=!0;break;case"ArrowDown":z(1),t=!0;break;case"Escape":T(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,r.createElement)(pI,{__next40pxDefaultSize:i},(0,r.createElement)(Vh,null,(0,r.createElement)(gI,{className:"components-combobox-control__input",instanceId:S,ref:D,value:P?M:_,onFocus:()=>{R(!0),T(!0),m(""),N("")},onBlur:()=>{R(!1)},isExpanded:P,selectedSuggestionIndex:SI(C,A),onChange:e=>{const t=e.value;N(t),m(t),I&&T(!0)}})),g&&(0,r.createElement)(eg,null,(0,r.createElement)(cy,{className:"components-combobox-control__reset",icon:Nw,disabled:!x,onClick:()=>{w(null),D.current?.focus()},label:(0,u.__)("Reset")}))),P&&(0,r.createElement)(xI,{instanceId:S,match:{label:M,value:""},displayTransform:e=>e.label,suggestions:A,selectedIndex:SI(C,A),onHover:k,onSelect:O,scrollIntoView:!0,__experimentalRenderItem:y}))))};var kI=(0,r.createContext)(void 0),PI=Ve((e=>{const[t,n]=(0,r.useState)();return e=Te(e,(e=>(0,Le.jsx)(kI.Provider,{value:n,children:e})),[]),e=x({role:"group","aria-labelledby":t},e)}));Fe((e=>je("div",PI(e))));var TI=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);return r=PI(r)})),II=Fe((e=>je("div",TI(e))));function RI(e){if(e.state){const{state:t,...n}=e,{store:r,...o}=RI(t);return{...n,...o,store:r}}return e}function MI(e,t={}){const n=e.displayName,o=n=>{const{store:o,...i}=RI(n),a=i;return a.id=(0,d.useInstanceId)(o,a.baseId,a.id),Object.entries(t).forEach((([e,t])=>{a.hasOwnProperty(e)&&(Object.assign(a,{[t]:a[e]}),delete a[e])})),delete a.baseId,(0,r.createElement)(e,{...a,store:o})};return o.displayName=n,o}const NI=(0,Vo.forwardRef)((({role:e,...t},n)=>{const o="row"===e?ol:II;return(0,r.createElement)(o,{ref:n,role:e,...t})}));NI.displayName="CompositeGroup";const DI=MI(nl,{baseId:"id"}),AI=MI(NI),OI=MI(qt,{focusable:"accessibleWhenDisabled"});function zI(e={}){const{baseId:t,currentId:n,orientation:r,rtl:o=!1,loop:i=!1,wrap:a=!1,shift:s=!1,unstable_virtual:l}=e;return{baseId:(0,d.useInstanceId)(DI,"composite",t),store:Qs({defaultActiveId:n,rtl:o,orientation:r,focusLoop:i,focusShift:s,focusWrap:a,virtualFocus:l})}}const LI=new Set(["alert","status","log","marquee","timer"]),FI=[];function BI(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&LI.has(t))}const jI=(0,Vo.createContext)([]),VI=new Map;const HI=(0,Vo.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:i=null,focusOnMount:a=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:l=!0,isDismissible:f=!0,aria:m={labelledby:void 0,describedby:void 0},onRequestClose:p,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:x,contentLabel:w,onKeyDown:E,isFullScreen:_=!1,size:S,headerActions:C=null,__experimentalHideHeader:k=!1}=e,P=(0,Vo.useRef)(),T=(0,d.useInstanceId)(HI),I=i?`components-modal-header-${T}`:m.labelledby,R=(0,d.useFocusOnMount)("firstContentElement"===a?"firstElement":a),M=(0,d.useConstrainedTabbing)(),N=(0,d.useFocusReturn)(),D=(0,Vo.useRef)(null),A=(0,Vo.useRef)(null),[O,z]=(0,Vo.useState)(!1),[L,F]=(0,Vo.useState)(!1);let B;_||"fill"===S?B="is-full-screen":S&&(B=`has-size-${S}`);const j=(0,Vo.useCallback)((()=>{if(!D.current)return;const e=(0,FT.getScrollContainer)(D.current);D.current===e?F(!0):F(!1)}),[D]);(0,Vo.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];FI.push(n);for(const r of t)r!==e&&BI(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(P.current),()=>function(){const e=FI.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]);const V=(0,Vo.useRef)();(0,Vo.useEffect)((()=>{V.current=p}),[p]);const H=(0,Vo.useContext)(jI),$=(0,Vo.useRef)([]);(0,Vo.useEffect)((()=>{H.push(V);const[e,t]=H;t&&e?.current?.();const n=$.current;return()=>{n[0]?.current?.(),H.shift()}}),[H]),(0,Vo.useEffect)((()=>{var e;const t=n,r=1+(null!==(e=VI.get(t))&&void 0!==e?e:0);return VI.set(t,r),document.body.classList.add(n),()=>{const e=VI.get(t)-1;0===e?(document.body.classList.remove(t),VI.delete(t)):VI.set(t,e)}}),[n]),(0,Vo.useLayoutEffect)((()=>{if(!window.ResizeObserver||!A.current)return;const e=new ResizeObserver(j);return e.observe(A.current),j(),()=>{e.disconnect()}}),[j,A]);const W=(0,Vo.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!O&&n>0?z(!0):O&&n<=0&&z(!1)}),[O]);let U=null;const G={onPointerDown:e=>{e.target===e.currentTarget&&(U=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===U;U=null,0===t&&n&&p()}},q=(0,r.createElement)("div",{ref:(0,d.useMergeRefs)([P,t]),className:c()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||!s||"Escape"!==e.code&&"Escape"!==e.key||e.defaultPrevented||(e.preventDefault(),p&&p(e))},...l?G:{}},(0,r.createElement)(Xx,{document},(0,r.createElement)("div",{className:c()("components-modal__frame",B,x),style:b,ref:(0,d.useMergeRefs)([M,N,"firstContentElement"!==a?R:null]),role:o,"aria-label":w,"aria-labelledby":w?void 0:I,"aria-describedby":m.describedby,tabIndex:-1,onKeyDown:E},(0,r.createElement)("div",{className:c()("components-modal__content",{"hide-header":k,"is-scrollable":L,"has-scrolled-content":O}),role:"document",onScroll:W,ref:D,"aria-label":L?(0,u.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!k&&(0,r.createElement)("div",{className:"components-modal__header"},(0,r.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,r.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),i&&(0,r.createElement)("h1",{id:I,className:"components-modal__header-heading"},i)),C,f&&(0,r.createElement)(cy,{onClick:p,icon:Xy,label:g||(0,u.__)("Close")})),(0,r.createElement)("div",{ref:(0,d.useMergeRefs)([A,"firstContentElement"===a?R:null])},v)))));return(0,Vo.createPortal)((0,r.createElement)(jI.Provider,{value:$.current},q),document.body)})),$I=HI;const WI={name:"7g5ii0",styles:"&&{z-index:1000001;}"},UI=es(((e,t)=>{const{isOpen:n,onConfirm:o,onCancel:i,children:a,confirmButtonText:s,cancelButtonText:l,...c}=Qa(e,"ConfirmDialog"),d=Ja()(WI),f=(0,Vo.useRef)(),m=(0,Vo.useRef)(),[p,h]=(0,Vo.useState)(),[g,v]=(0,Vo.useState)();(0,Vo.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,Vo.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,Vo.useCallback)((e=>{e.target===f.current||e.target===m.current||"Enter"!==e.key||b(o)(e)}),[b,o]),x=null!=l?l:(0,u.__)("Cancel"),w=null!=s?s:(0,u.__)("OK");return(0,r.createElement)(r.Fragment,null,p&&(0,r.createElement)($I,{onRequestClose:b(i),onKeyDown:y,closeButtonLabel:x,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...c},(0,r.createElement)(zS,{spacing:8},(0,r.createElement)(cv,null,a),(0,r.createElement)(Bh,{direction:"row",justify:"flex-end"},(0,r.createElement)(cy,{__next40pxDefaultSize:!0,ref:f,variant:"tertiary",onClick:b(i)},x),(0,r.createElement)(cy,{__next40pxDefaultSize:!0,ref:m,variant:"primary",onClick:b(o)},w)))))}),"ConfirmDialog");var GI=o(2652),qI=o.n(GI);o(2797);function YI(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function KI(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function XI(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return KI(n.overflowY,t)||KI(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function ZI(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let JI=0;function QI(){}function eR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!YI(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],m=e;YI(m)&&l(m);){if((m=null==(u=(c=m).parentElement)?c.getRootNode().host||null:u)===d){f.push(m);break}null!=m&&m===document.body&&XI(m)&&!XI(document.documentElement)||null!=m&&XI(m,s)&&f.push(m)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,x=b.width,w=b.top,E=b.right,_=b.bottom,S=b.left,C="start"===o||"nearest"===o?w:"end"===o?_:w+y/2,k="center"===i?S+x/2:"end"===i?E:S,P=[],T=0;T<f.length;T++){var I=f[T],R=I.getBoundingClientRect(),M=R.height,N=R.width,D=R.top,A=R.right,O=R.bottom,z=R.left;if("if-needed"===r&&w>=0&&S>=0&&_<=h&&E<=p&&w>=D&&_<=O&&S>=z&&E<=A)return P;var L=getComputedStyle(I),F=parseInt(L.borderLeftWidth,10),B=parseInt(L.borderTopWidth,10),j=parseInt(L.borderRightWidth,10),V=parseInt(L.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in I?I.offsetWidth-I.clientWidth-F-j:0,U="offsetHeight"in I?I.offsetHeight-I.clientHeight-B-V:0,G="offsetWidth"in I?0===I.offsetWidth?0:N/I.offsetWidth:0,q="offsetHeight"in I?0===I.offsetHeight?0:M/I.offsetHeight:0;if(d===I)H="start"===o?C:"end"===o?C-h:"nearest"===o?ZI(v,v+h,h,B,V,v+C,v+C+y,y):C-h/2,$="start"===i?k:"center"===i?k-p/2:"end"===i?k-p:ZI(g,g+p,p,F,j,g+k,g+k+x,x),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?C-D-B:"end"===o?C-O+V+U:"nearest"===o?ZI(D,O,M,B,V+U,C,C+y,y):C-(D+M/2)+U/2,$="start"===i?k-z-F:"center"===i?k-(z+N/2)+W/2:"end"===i?k-A+j+W:ZI(z,A,N,F,j+W,k,k+x,x);var Y=I.scrollLeft,K=I.scrollTop;C+=K-(H=Math.max(0,Math.min(K+H/q,I.scrollHeight-M/q+U))),k+=Y-($=Math.max(0,Math.min(Y+$/G,I.scrollWidth-N/G+W)))}P.push({el:I,top:H,left:$})}return P}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function tR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function nR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function rR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function oR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function iR(){return String(JI++)}function aR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function sR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=lR(t,r)?t[r]:e[r],n)),{})}function lR(e,t){return void 0!==e[t]}function cR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function uR(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=dR(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function dR(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?dR(1,0,n,r,!1):dR(-1,n-1,n,r,!1):-1}function fR(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(tR(t,e,n)||r&&tR(t,n.document.activeElement,n))))}const mR=nR((e=>{hR(e).textContent=""}),500);function pR(e,t){const n=hR(t);e&&(n.textContent=e,mR(t))}function hR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const gR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function vR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${_R(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const bR=nR(((e,t)=>{pR(e(),t)}),200),yR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function xR(e){let{id:t=`downshift-${iR()}`,labelId:n,menuId:o,getItemId:i,toggleButtonId:a,inputId:s}=e;const l=(0,r.useRef)({labelId:n||`${t}-label`,menuId:o||`${t}-menu`,getItemId:i||(e=>`${t}-item-${e}`),toggleButtonId:a||`${t}-toggle-button`,inputId:s||`${t}-input`});return l.current}function wR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ER(e){return/^\S{1}$/.test(e)}function _R(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function SR(e){const t=(0,r.useRef)(e);return t.current=e,t}function CR(e,t,n){const o=(0,r.useRef)(),i=(0,r.useRef)(),a=(0,r.useCallback)(((t,n)=>{i.current=n,t=sR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[s,l]=(0,r.useReducer)(a,t),c=SR(n),u=(0,r.useCallback)((e=>l({props:c.current,...e})),[c]),d=i.current;return(0,r.useEffect)((()=>{d&&o.current&&o.current!==s&&vR(d,sR(o.current,d.props),s),o.current=s}),[s,n,d]),[s,u]}function kR(e,t,n){const[r,o]=CR(e,t,n);return[sR(r,n),o]}const PR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:eR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function TR(e,t,n){void 0===n&&(n=gR);const r=e[`default${_R(t)}`];return void 0!==r?r:n[t]}function IR(e,t,n){void 0===n&&(n=gR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${_R(t)}`];return void 0!==o?o:TR(e,t,n)}function RR(e){const t=IR(e,"selectedItem"),n=IR(e,"isOpen"),r=IR(e,"highlightedIndex"),o=IR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function MR(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):uR(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function NR(e,t,n,o){const i=(0,r.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,r.useEffect)((()=>{const r=()=>{i.current.isMouseDown=!0},a=r=>{i.current.isMouseDown=!1,e&&!fR(r.target,t.map((e=>e.current)),n)&&o()},s=()=>{i.current.isTouchMove=!1},l=()=>{i.current.isTouchMove=!0},c=r=>{!e||i.current.isTouchMove||fR(r.target,t.map((e=>e.current)),n,!1)||o()};return n.addEventListener("mousedown",r),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",r),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),i}let DR=()=>QI;function AR(e,t,n){let{isInitialMount:o,highlightedIndex:i,items:a,environment:s,...l}=n;(0,r.useEffect)((()=>{o||bR((()=>e({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length,...l})),s.document)}),t)}function OR(e){let{highlightedIndex:t,isOpen:n,itemRefs:o,getItemNodeFromIndex:i,menuElement:a,scrollIntoView:s}=e;const l=(0,r.useRef)(!0);return yR((()=>{t<0||!n||!Object.keys(o.current).length||(!1===l.current?l.current=!0:s(i(t),a))}),[t]),l}let zR=QI;function LR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:MR(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:MR(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:TR(o,"highlightedIndex"),isOpen:TR(o,"isOpen"),selectedItem:TR(o,"selectedItem"),inputValue:TR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function FR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}qI().array.isRequired,qI().func,qI().func,qI().func,qI().bool,qI().number,qI().number,qI().number,qI().bool,qI().bool,qI().bool,qI().any,qI().any,qI().any,qI().string,qI().string,qI().string,qI().func,qI().string,qI().func,qI().func,qI().func,qI().func,qI().func,qI().shape({addEventListener:qI().func,removeEventListener:qI().func,document:qI().shape({getElementById:qI().func,activeElement:qI().any,body:qI().any})});var BR=mi(mi({},PR),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),jR=QI;const VR=0,HR=1,$R=2,WR=3,UR=4,GR=5,qR=6,YR=7,KR=8,XR=9,ZR=10,JR=11,QR=12,eM=13,tM=14,nM=15,rM=16,oM=17,iM=18,aM=19,sM=20,lM=21,cM=22;var uM=Object.freeze({__proto__:null,MenuKeyDownArrowDown:VR,MenuKeyDownArrowUp:HR,MenuKeyDownEscape:$R,MenuKeyDownHome:WR,MenuKeyDownEnd:UR,MenuKeyDownEnter:GR,MenuKeyDownSpaceButton:qR,MenuKeyDownCharacter:YR,MenuBlur:KR,MenuMouseLeave:XR,ItemMouseMove:ZR,ItemClick:JR,ToggleButtonClick:QR,ToggleButtonKeyDownArrowDown:eM,ToggleButtonKeyDownArrowUp:tM,ToggleButtonKeyDownCharacter:nM,FunctionToggleMenu:rM,FunctionOpenMenu:oM,FunctionCloseMenu:iM,FunctionSetHighlightedIndex:aM,FunctionSelectItem:sM,FunctionSetInputValue:lM,FunctionReset:cM});function dM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case JR:i={isOpen:TR(r,"isOpen"),highlightedIndex:TR(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case nM:{const n=t.key,o=`${e.inputValue}${n}`,a=FR({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{selectedItem:r.items[a]}}}break;case eM:i={highlightedIndex:MR(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case tM:i={highlightedIndex:MR(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case GR:case qR:i={isOpen:TR(r,"isOpen"),highlightedIndex:TR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case WR:i={highlightedIndex:dR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case UR:i={highlightedIndex:dR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case $R:case KR:i={isOpen:!1,highlightedIndex:-1};break;case YR:{const n=t.key,o=`${e.inputValue}${n}`,a=FR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case VR:i={highlightedIndex:uR(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case HR:i={highlightedIndex:uR(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case sM:i={selectedItem:t.selectedItem};break;default:return LR(e,t,uM)}return{...e,...i}}function fM(e){void 0===e&&(e={}),jR(e,fM);const t={...BR,...e},{items:n,scrollIntoView:o,environment:i,initialIsOpen:a,defaultIsOpen:s,itemToString:l,getA11ySelectionMessage:c,getA11yStatusMessage:u}=t,d=RR(t),[f,m]=kR(dM,d,t),{isOpen:p,highlightedIndex:h,selectedItem:g,inputValue:v}=f,b=(0,r.useRef)(null),y=(0,r.useRef)(null),x=(0,r.useRef)({}),w=(0,r.useRef)(!0),E=(0,r.useRef)(null),_=xR(t),S=(0,r.useRef)(),C=(0,r.useRef)(!0),k=SR({state:f,props:t}),P=(0,r.useCallback)((e=>x.current[_.getItemId(e)]),[_]);AR(u,[p,h,v,n],{isInitialMount:C.current,previousResultCount:S.current,items:n,environment:i,itemToString:l,...f}),AR(c,[g],{isInitialMount:C.current,previousResultCount:S.current,items:n,environment:i,itemToString:l,...f});const T=OR({menuElement:y.current,highlightedIndex:h,isOpen:p,itemRefs:x,scrollIntoView:o,getItemNodeFromIndex:P});(0,r.useEffect)((()=>(E.current=nR((e=>{e({type:lM,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,r.useEffect)((()=>{v&&E.current(m)}),[m,v]),zR({isInitialMount:C.current,props:t,state:f}),(0,r.useEffect)((()=>{C.current?(a||s||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():i.document.activeElement===y.current&&b.current&&(w.current=!1,b.current.focus())}),[p]),(0,r.useEffect)((()=>{C.current||(S.current=n.length)}));const I=NR(p,[y,b],i,(()=>{m({type:KR})})),R=DR("getMenuProps","getToggleButtonProps");(0,r.useEffect)((()=>{C.current=!1}),[]),(0,r.useEffect)((()=>{p||(x.current={})}),[p]);const M=(0,r.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:eM,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:tM,getItemNodeFromIndex:P,shiftKey:e.shiftKey})}})),[m,P]),N=(0,r.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:VR,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:HR,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),m({type:WR,getItemNodeFromIndex:P})},End(e){e.preventDefault(),m({type:UR,getItemNodeFromIndex:P})},Escape(){m({type:$R})},Enter(e){e.preventDefault(),m({type:GR})}," "(e){e.preventDefault(),m({type:qR})}})),[m,P]),D=(0,r.useCallback)((()=>{m({type:rM})}),[m]),A=(0,r.useCallback)((()=>{m({type:iM})}),[m]),O=(0,r.useCallback)((()=>{m({type:oM})}),[m]),z=(0,r.useCallback)((e=>{m({type:aM,highlightedIndex:e})}),[m]),L=(0,r.useCallback)((e=>{m({type:sM,selectedItem:e})}),[m]),F=(0,r.useCallback)((()=>{m({type:cM})}),[m]),B=(0,r.useCallback)((e=>{m({type:lM,inputValue:e})}),[m]),j=(0,r.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,r.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return R("getMenuProps",l,r,y),{[r]:oR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:rR(n,(()=>{m({type:XR})})),onKeyDown:rR(o,(e=>{const t=cR(e);t&&N[t]?N[t](e):ER(t)&&m({type:YR,key:t,getItemNodeFromIndex:P})})),onBlur:rR(i,(()=>{if(!1===w.current)return void(w.current=!0);!I.current.isMouseDown&&m({type:KR})})),...s}}),[m,k,N,I,R,_,P]),H=(0,r.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{m({type:QR})},c=e=>{const t=cR(e);t&&M[t]?M[t](e):ER(t)&&m({type:nM,key:t,getItemNodeFromIndex:P})},u={[o]:oR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=rR(n,l),u.onKeyDown=rR(r,c)),R("getToggleButtonProps",s,o,b),u}),[m,k,M,R,_,P]),$=(0,r.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{m({type:JR,index:n})},f=wR(n,t,u.items);if(f<0)throw new Error("Pass either item or item index in getItemProps!");const p={disabled:s,role:"option","aria-selected":`${f===c.highlightedIndex}`,id:_.getItemId(f),[i]:oR(a,(e=>{e&&(x.current[_.getItemId(f)]=e)})),...l};return s||(p.onClick=rR(o,d)),p.onMouseMove=rR(r,(()=>{n!==c.highlightedIndex&&(T.current=!1,m({type:ZR,index:n,disabled:s}))})),p}),[m,k,T,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:D,openMenu:O,closeMenu:A,setHighlightedIndex:z,selectItem:L,reset:F,setInputValue:B,highlightedIndex:h,isOpen:p,selectedItem:g,inputValue:v}}fM.stateChangeTypes=uM;qI().array.isRequired,qI().func,qI().func,qI().func,qI().bool,qI().number,qI().number,qI().number,qI().bool,qI().bool,qI().bool,qI().any,qI().any,qI().any,qI().string,qI().string,qI().string,qI().string,qI().string,qI().string,qI().func,qI().string,qI().string,qI().func,qI().func,qI().func,qI().func,qI().func,qI().func,qI().shape({addEventListener:qI().func,removeEventListener:qI().func,document:qI().shape({getElementById:qI().func,activeElement:qI().any,body:qI().any})});qI().array,qI().array,qI().array,qI().func,qI().func,qI().func,qI().number,qI().number,qI().number,qI().func,qI().func,qI().string,qI().string,qI().shape({addEventListener:qI().func,removeEventListener:qI().func,document:qI().shape({getElementById:qI().func,activeElement:qI().any,body:qI().any})});const mM=e=>e.__nextUnconstrainedWidth?"":_s(hv,"{min-width:130px;}",""),pM=ps(Mv,{target:"eswuck60"})(mM,";"),hM=e=>e?.name,gM=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case fM.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case fM.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function vM(e){const{__next40pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:o,hideLabelFromVision:i,label:a,describedBy:s,options:l,onChange:d,size:f="default",value:m,onMouseOver:p,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=Tv(e),{getLabelProps:y,getToggleButtonProps:x,getMenuProps:w,getItemProps:E,isOpen:_,highlightedIndex:S,selectedItem:C}=fM({initialSelectedItem:l[0],items:l,itemToString:hM,onSelectedItemChange:d,...null!=m?{selectedItem:m}:void 0,stateReducer:gM}),[k,P]=(0,Vo.useState)(!1);n||$o()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const T=w({className:"components-custom-select-control__menu","aria-hidden":!_}),I=(0,Vo.useCallback)((e=>{e.stopPropagation(),T?.onKeyDown?.(e)}),[T]);return T["aria-activedescendant"]?.startsWith("downshift-null")&&delete T["aria-activedescendant"],(0,r.createElement)("div",{className:c()("components-custom-select-control",o)},i?(0,r.createElement)(vs,{as:"label",...y()},a):(0,r.createElement)(Kb,{...y({className:"components-custom-select-control__label"})},a),(0,r.createElement)(pM,{__next40pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,r.createElement)(VE,null)},(0,r.createElement)(zE,{onMouseOver:p,onMouseOut:h,as:"button",onFocus:function(e){P(!0),g?.(e)},onBlur:function(e){P(!1),v?.(e)},selectSize:f,__next40pxDefaultSize:t,...x({"aria-label":a,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(C?(0,u.sprintf)((0,u.__)("Currently selected: %s"),C.name):(0,u.__)("No selection"))})},hM(C),b&&C.__experimentalHint&&(0,r.createElement)("span",{className:"components-custom-select-control__hint"},C.__experimentalHint))),(0,r.createElement)("ul",{...T,onKeyDown:I},_&&l.map(((e,n)=>(0,r.createElement)("li",{...E({item:e,index:n,key:e.key,className:c()(e.className,"components-custom-select-control__item",{"is-highlighted":n===S,"has-hint":!!e.__experimentalHint,"is-next-40px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,r.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===C&&(0,r.createElement)(BE,{icon:IS,className:"components-custom-select-control__item-icon"}))))))}function bM(e){return(0,r.createElement)(vM,{...e,__experimentalShowSelectedHint:!1})}function yM(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function xM(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function wM(e){xM(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function EM(e,t){xM(2,arguments);var n=wM(e),r=yM(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var _M,SM,CM={};function kM(){return CM}function PM(e,t){var n,r,o,i,a,s,l,c;xM(1,arguments);var u=kM(),d=yM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wM(e),m=f.getDay(),p=(m<d?7:0)+m-d;return f.setDate(f.getDate()-p),f.setHours(0,0,0,0),f}function TM(e,t){return xM(2,arguments),function(e,t){xM(2,arguments);var n=wM(e),r=yM(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,7*yM(t))}function IM(e,t){return xM(2,arguments),EM(e,12*yM(t))}function RM(e){xM(1,arguments);var t=wM(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function MM(e,t){var n;xM(1,arguments);var r=e||{},o=wM(r.start),i=wM(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=[],s=o;s.setHours(0,0,0,0);var l=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)a.push(wM(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function NM(e){xM(1,arguments);var t=wM(e);return t.setDate(1),t.setHours(0,0,0,0),t}function DM(e,t){var n,r,o,i,a,s,l,c;xM(1,arguments);var u=kM(),d=yM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wM(e),m=f.getDay(),p=6+(m<d?-7:0)-(m-d);return f.setDate(f.getDate()+p),f.setHours(23,59,59,999),f}function AM(e,t){xM(2,arguments);var n=wM(e),r=wM(t);return n.getTime()===r.getTime()}function OM(e,t){xM(2,arguments);var n=wM(e),r=yM(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){xM(1,arguments);var t=wM(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function zM(){return function(e){xM(1,arguments);var t=wM(e);return t.setHours(0,0,0,0),t}(Date.now())}!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(_M||(_M={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(SM||(SM={}));var LM=function(e,t,n){return(AM(e,t)||function(e,t){xM(2,arguments);var n=wM(e),r=wM(t);return n.getTime()>r.getTime()}(e,t))&&(AM(e,n)||function(e,t){xM(2,arguments);var n=wM(e),r=wM(t);return n.getTime()<r.getTime()}(e,n))},FM=function(e){return function(e,t){if(xM(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=wM(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=OM(n,t.month)),null!=t.date&&n.setDate(yM(t.date)),null!=t.hours&&n.setHours(yM(t.hours)),null!=t.minutes&&n.setMinutes(yM(t.minutes)),null!=t.seconds&&n.setSeconds(yM(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(yM(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},BM=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,o=void 0===n?SM.SUNDAY:n,i=t.viewing,a=void 0===i?new Date:i,s=t.selected,l=void 0===s?[]:s,c=t.numberOfMonths,u=void 0===c?1:c,d=(0,r.useState)(a),f=d[0],m=d[1],p=(0,r.useCallback)((function(){return m(zM())}),[m]),h=(0,r.useCallback)((function(e){return m((function(t){return OM(t,e)}))}),[]),g=(0,r.useCallback)((function(){return m((function(e){return function(e,t){return xM(2,arguments),EM(e,-yM(t))}(e,1)}))}),[]),v=(0,r.useCallback)((function(){return m((function(e){return EM(e,1)}))}),[]),b=(0,r.useCallback)((function(e){return m((function(t){return function(e,t){xM(2,arguments);var n=wM(e),r=yM(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(t,e)}))}),[]),y=(0,r.useCallback)((function(){return m((function(e){return function(e,t){return xM(2,arguments),IM(e,-yM(t))}(e,1)}))}),[]),x=(0,r.useCallback)((function(){return m((function(e){return IM(e,1)}))}),[]),w=(0,r.useState)(l.map(FM)),E=w[0],_=w[1],S=(0,r.useCallback)((function(e){return E.findIndex((function(t){return AM(t,e)}))>-1}),[E]),C=(0,r.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,r.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!AM(t,e)}))}))}),[]),P=(0,r.useCallback)((function(e,t){return S(e)?k(e):C(e,t)}),[k,S,C]),T=(0,r.useCallback)((function(e,t,n){_(n?MM({start:e,end:t}):function(n){return n.concat(MM({start:e,end:t}))})}),[]),I=(0,r.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!MM({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),R=(0,r.useMemo)((function(){return function(e){xM(1,arguments);var t=e||{},n=wM(t.start),r=wM(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push(wM(i)),i.setMonth(i.getMonth()+1);return o}({start:NM(f),end:RM(EM(f,u-1))}).map((function(e){return function(e,t){xM(1,arguments);var n=e||{},r=wM(n.start),o=wM(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=PM(r,t),s=PM(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push(wM(c)),(c=TM(c,1)).setHours(15);return l}({start:NM(e),end:RM(e)},{weekStartsOn:o}).map((function(e){return MM({start:PM(e,{weekStartsOn:o}),end:DM(e,{weekStartsOn:o})})}))}))}),[f,o,u]);return{clearTime:FM,inRange:LM,viewing:f,setViewing:m,viewToday:p,viewMonth:h,viewPreviousMonth:g,viewNextMonth:v,viewYear:b,viewPreviousYear:y,viewNextYear:x,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:S,select:C,deselect:k,toggle:P,selectRange:T,deselectRange:I,calendar:R}};function jM(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function VM(e){return VM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VM(e)}function HM(e){jM(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===VM(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function $M(e){jM(1,arguments);var t=HM(e);return t.setHours(0,0,0,0),t}function WM(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function UM(e,t){jM(2,arguments);var n=HM(e),r=WM(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function GM(e,t){return jM(2,arguments),UM(e,-WM(t))}function qM(e){return qM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qM(e)}function YM(e){if(jM(1,arguments),!function(e){return jM(1,arguments),e instanceof Date||"object"===qM(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=HM(e);return!isNaN(Number(t))}function KM(e,t){return jM(2,arguments),function(e,t){jM(2,arguments);var n=HM(e).getTime(),r=WM(t);return new Date(n+r)}(e,-WM(t))}function XM(e){jM(1,arguments);var t=HM(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function ZM(e){jM(1,arguments);var t=HM(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=XM(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=XM(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function JM(e){jM(1,arguments);var t=HM(e),n=XM(t).getTime()-function(e){jM(1,arguments);var t=ZM(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),XM(n)}(t).getTime();return Math.round(n/6048e5)+1}var QM={};function eN(){return QM}function tN(e,t){var n,r,o,i,a,s,l,c;jM(1,arguments);var u=eN(),d=WM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=HM(e),m=f.getUTCDay(),p=(m<d?7:0)+m-d;return f.setUTCDate(f.getUTCDate()-p),f.setUTCHours(0,0,0,0),f}function nN(e,t){var n,r,o,i,a,s,l,c;jM(1,arguments);var u=HM(e),d=u.getUTCFullYear(),f=eN(),m=WM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,m),p.setUTCHours(0,0,0,0);var h=tN(p,t),g=new Date(0);g.setUTCFullYear(d,0,m),g.setUTCHours(0,0,0,0);var v=tN(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function rN(e,t){jM(1,arguments);var n=HM(e),r=tN(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;jM(1,arguments);var u=eN(),d=WM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=nN(e,t),m=new Date(0);return m.setUTCFullYear(f,0,d),m.setUTCHours(0,0,0,0),tN(m,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function oN(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var iN={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return oN("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):oN(n+1,2)},d:function(e,t){return oN(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return oN(e.getUTCHours()%12||12,t.length)},H:function(e,t){return oN(e.getUTCHours(),t.length)},m:function(e,t){return oN(e.getUTCMinutes(),t.length)},s:function(e,t){return oN(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return oN(Math.floor(r*Math.pow(10,n-3)),t.length)}};const aN=iN;var sN="midnight",lN="noon",cN="morning",uN="afternoon",dN="evening",fN="night",mN={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return aN.y(e,t)},Y:function(e,t,n,r){var o=nN(e,r),i=o>0?o:1-o;return"YY"===t?oN(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):oN(i,t.length)},R:function(e,t){return oN(ZM(e),t.length)},u:function(e,t){return oN(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return oN(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return oN(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return aN.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return oN(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=rN(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):oN(o,t.length)},I:function(e,t,n){var r=JM(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):oN(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):aN.d(e,t)},D:function(e,t,n){var r=function(e){jM(1,arguments);var t=HM(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):oN(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return oN(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return oN(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return oN(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?lN:0===o?sN:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?dN:o>=12?uN:o>=4?cN:fN,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return aN.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):aN.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):oN(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):oN(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):aN.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):aN.s(e,t)},S:function(e,t){return aN.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return hN(o);case"XXXX":case"XX":return gN(o);default:return gN(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return hN(o);case"xxxx":case"xx":return gN(o);default:return gN(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pN(o,":");default:return"GMT"+gN(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pN(o,":");default:return"GMT"+gN(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return oN(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return oN((r._originalDate||e).getTime(),t.length)}};function pN(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+oN(i,2)}function hN(e,t){return e%60==0?(e>0?"-":"+")+oN(Math.abs(e)/60,2):gN(e,t)}function gN(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+oN(Math.floor(o/60),2)+n+oN(o%60,2)}const vN=mN;var bN=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},yN=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},xN={p:yN,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return bN(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",bN(o,t)).replace("{{time}}",yN(i,t))}};const wN=xN;var EN=["D","DD"],_N=["YY","YYYY"];function SN(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var CN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const kN=function(e,t,n){var r,o=CN[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function PN(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const TN={date:PN({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:PN({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:PN({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var IN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const RN=function(e,t,n,r){return IN[e]};function MN(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var NN={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:MN({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:MN({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:MN({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:MN({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:MN({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const DN=NN;function AN(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var ON,zN={ordinalNumber:(ON={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(ON.matchPattern);if(!n)return null;var r=n[0],o=e.match(ON.parsePattern);if(!o)return null;var i=ON.valueCallback?ON.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:AN({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:AN({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:AN({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:AN({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:AN({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const LN={code:"en-US",formatDistance:kN,formatLong:TN,formatRelative:RN,localize:DN,match:zN,options:{weekStartsOn:0,firstWeekContainsDate:1}};var FN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jN=/^'([^]*?)'?$/,VN=/''/g,HN=/[a-zA-Z]/;function $N(e,t,n){var r,o,i,a,s,l,c,u,d,f,m,p,h,g,v,b,y,x;jM(2,arguments);var w=String(t),E=eN(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:LN,S=WM(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=WM(null!==(m=null!==(p=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==p?p:null===(y=E.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==m?m:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=HM(e);if(!YM(k))throw new RangeError("Invalid time value");var P=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),T=KM(k,P),I={firstWeekContainsDate:S,weekStartsOn:C,locale:_,_originalDate:k},R=w.match(BN).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,wN[t])(e,_.formatLong):e})).join("").match(FN).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(jN);if(!t)return e;return t[1].replace(VN,"'")}(r);var i=vN[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==_N.indexOf(e)}(r)||SN(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==EN.indexOf(e)}(r)||SN(r,t,String(e)),i(T,r,_.localize,I);if(o.match(HN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return R}function WN(e,t){jM(2,arguments);var n=HM(e),r=HM(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function UN(e,t){jM(2,arguments);var n=HM(e),r=HM(t);return n.getTime()===r.getTime()}function GN(e,t){jM(2,arguments);var n=$M(e),r=$M(t);return n.getTime()===r.getTime()}function qN(e,t){jM(2,arguments);var n=HM(e),r=WM(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function YN(e,t){return jM(2,arguments),qN(e,7*WM(t))}const KN=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),XN=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),ZN=window.wp.date;const JN=ps("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),QN=ps(_y,{target:"e105ri6r4"})("margin-bottom:",Rh(4),";"),eD=ps(BS,{target:"e105ri6r3"})("font-size:",Gg.fontSize,";font-weight:",Gg.fontWeight,";strong{font-weight:",Gg.fontWeightHeading,";}"),tD=ps("div",{target:"e105ri6r2"})("column-gap:",Rh(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",Rh(2),";"),nD=ps("div",{target:"e105ri6r1"})("color:",Is.gray[700],";font-size:",Gg.fontSize,";line-height:",Gg.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),rD=ps(cy,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",Rh(8),";width:",Rh(8),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Is.theme.accent};\n\t\t\tcolor: ${Is.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Is.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Is.white:Is.theme.accent};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 2px;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function oD(e){return"string"==typeof e?new Date(e):HM(e)}const iD="yyyy-MM-dd'T'HH:mm:ss";function aD({day:e,column:t,isSelected:n,isFocusable:o,isFocusAllowed:i,isToday:a,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,Vo.useRef)();return(0,Vo.useEffect)((()=>{d.current&&o&&i&&d.current.focus()}),[o]),(0,r.createElement)(rD,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:o?0:-1,"aria-label":sD(e,n,l),column:t,isSelected:n,isToday:a,hasEvents:l>0,onClick:c,onKeyDown:u},(0,ZN.dateI18n)("j",e,-e.getTimezoneOffset()))}function sD(e,t,n){const{formats:r}=(0,ZN.getSettings)(),o=(0,ZN.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,u.sprintf)((0,u._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,u.sprintf)((0,u.__)("%1$s. Selected"),o):n>0?(0,u.sprintf)((0,u._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}const lD=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:o,onMonthPreviewed:i,startOfWeek:a=0}){const s=e?oD(e):new Date,{calendar:l,viewing:c,setSelected:d,setViewing:f,isSelected:m,viewPreviousMonth:p,viewNextMonth:h}=BM({selected:[$M(s)],viewing:$M(s),weekStartsOn:a}),[g,v]=(0,Vo.useState)($M(s)),[b,y]=(0,Vo.useState)(!1),[x,w]=(0,Vo.useState)(e);return e!==x&&(w(e),d([$M(s)]),f($M(s)),v($M(s))),(0,r.createElement)(JN,{className:"components-datetime__date",role:"application","aria-label":(0,u.__)("Calendar")},(0,r.createElement)(QN,null,(0,r.createElement)(cy,{icon:(0,u.isRTL)()?KN:XN,variant:"tertiary","aria-label":(0,u.__)("View previous month"),onClick:()=>{p(),v(GM(g,1)),i?.($N(GM(c,1),iD))}}),(0,r.createElement)(eD,{level:3},(0,r.createElement)("strong",null,(0,ZN.dateI18n)("F",c,-c.getTimezoneOffset()))," ",(0,ZN.dateI18n)("Y",c,-c.getTimezoneOffset())),(0,r.createElement)(cy,{icon:(0,u.isRTL)()?XN:KN,variant:"tertiary","aria-label":(0,u.__)("View next month"),onClick:()=>{h(),v(UM(g,1)),i?.($N(UM(c,1),iD))}})),(0,r.createElement)(tD,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,r.createElement)(nD,{key:e.toString()},(0,ZN.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,a)=>WN(e,c)?(0,r.createElement)(aD,{key:e.toString(),day:e,column:a+1,isSelected:m(e),isFocusable:UN(e,g),isFocusAllowed:b,isToday:GN(e,new Date),isInvalid:!!o&&o(e),numEvents:n.filter((t=>GN(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.($N(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),iD))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=qN(e,(0,u.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=qN(e,(0,u.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return jM(2,arguments),YN(e,-WM(t))}(e,1)),"ArrowDown"===t.key&&(n=YN(e,1)),"PageUp"===t.key&&(n=GM(e,1)),"PageDown"===t.key&&(n=UM(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;jM(1,arguments);var u=eN(),d=WM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=HM(e),m=f.getDay(),p=(m<d?7:0)+m-d;return f.setDate(f.getDate()-p),f.setHours(0,0,0,0),f}(e)),"End"===t.key&&(n=$M(function(e,t){var n,r,o,i,a,s,l,c;jM(1,arguments);var u=eN(),d=WM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=HM(e),m=f.getDay(),p=6+(m<d?-7:0)-(m-d);return f.setDate(f.getDate()+p),f.setHours(23,59,59,999),f}(e))),n&&(t.preventDefault(),v(n),WN(n,c)||(f(n),i?.($N(n,iD))))}}):null))))))};function cD(e){jM(1,arguments);var t=HM(e);return t.setSeconds(0,0),t}function uD(e,t){jM(2,arguments);var n=HM(e),r=WM(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){jM(1,arguments);var t=HM(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function dD(e){return dD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dD(e)}const fD=ps("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",Gg.fontSize,";"),mD=ps("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",Rh(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),pD=ps("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),hD=_s("&&& ",bv,"{padding-left:",Rh(2),";padding-right:",Rh(2),";text-align:center;}",""),gD=ps(ky,{target:"evcr2316"})(hD," width:",Rh(9),";&&& ",bv,"{padding-right:0;}&&& ",Ev,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),vD=ps("span",{target:"evcr2315"})("border-top:",Gg.borderWidth," solid ",Is.gray[700],";border-bottom:",Gg.borderWidth," solid ",Is.gray[700],";line-height:calc(\n\t\t",Gg.controlHeight," - ",Gg.borderWidth," * 2\n\t);display:inline-block;"),bD=ps(ky,{target:"evcr2314"})(hD," width:",Rh(9),";&&& ",bv,"{padding-left:0;}&&& ",Ev,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),yD=ps("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),xD=ps(ky,{target:"evcr2312"})(hD," width:",Rh(9),";"),wD=ps(ky,{target:"evcr2311"})(hD," width:",Rh(14),";"),ED=ps("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),_D=()=>{const{timezone:e}=(0,ZN.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",o=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,i=e.string.replace("_"," "),a="UTC"===e.string?(0,u.__)("Coordinated Universal Time"):`(${o}) ${i}`;return 0===i.trim().length?(0,r.createElement)(ED,{className:"components-datetime__timezone"},o):(0,r.createElement)(Qo,{placement:"top",text:a},(0,r.createElement)(ED,{className:"components-datetime__timezone"},o))};function SD(e,t){return t?(e%12+12)%24:e%12}function CD(e){return(t,n)=>{const r={...t};return n.type!==Ib&&n.type!==Lb&&n.type!==Ob||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}const kD=function({is12Hour:e,currentTime:t,onChange:n}){const[o,i]=(0,Vo.useState)((()=>t?cD(oD(t)):new Date));(0,Vo.useEffect)((()=>{i(t?cD(oD(t)):new Date)}),[t]);const{day:a,month:s,year:l,minutes:c,hours:d,am:f}=(0,Vo.useMemo)((()=>({day:$N(o,"dd"),month:$N(o,"MM"),year:$N(o,"yyyy"),minutes:$N(o,"mm"),hours:$N(o,e?"hh":"HH"),am:$N(o,"a")})),[o,e]),m=t=>(r,{event:a})=>{var s;const l=null!==(s=a.target?.ownerDocument.defaultView?.HTMLInputElement)&&void 0!==s?s:HTMLInputElement;if(!(a.target instanceof l))return;if(!a.target.validity.valid)return;let c=Number(r);"hours"===t&&e&&(c=SD(c,"PM"===f));const u=function(e,t){if(jM(2,arguments),"object"!==dD(t)||null===t)throw new RangeError("values parameter must be an object");var n=HM(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=uD(n,t.month)),null!=t.date&&n.setDate(WM(t.date)),null!=t.hours&&n.setHours(WM(t.hours)),null!=t.minutes&&n.setMinutes(WM(t.minutes)),null!=t.seconds&&n.setSeconds(WM(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(WM(t.milliseconds)),n)}(o,{[t]:c});i(u),n?.($N(u,iD))};function p(e){return()=>{if(f===e)return;const t=parseInt(d,10),r=function(e,t){jM(2,arguments);var n=HM(e),r=WM(t);return n.setHours(r),n}(o,SD(t,"PM"===e));i(r),n?.($N(r,iD))}}const h=(0,r.createElement)(xD,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,u.__)("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:a,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("date")}),g=(0,r.createElement)(yD,null,(0,r.createElement)(WE,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,u.__)("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,u.__)("January")},{value:"02",label:(0,u.__)("February")},{value:"03",label:(0,u.__)("March")},{value:"04",label:(0,u.__)("April")},{value:"05",label:(0,u.__)("May")},{value:"06",label:(0,u.__)("June")},{value:"07",label:(0,u.__)("July")},{value:"08",label:(0,u.__)("August")},{value:"09",label:(0,u.__)("September")},{value:"10",label:(0,u.__)("October")},{value:"11",label:(0,u.__)("November")},{value:"12",label:(0,u.__)("December")}],onChange:e=>{const t=uD(o,Number(e)-1);i(t),n?.($N(t,iD))}}));return(0,r.createElement)(fD,{className:"components-datetime__time"},(0,r.createElement)(mD,null,(0,r.createElement)(ty.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Time")),(0,r.createElement)(_y,{className:"components-datetime__time-wrapper"},(0,r.createElement)(pD,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,r.createElement)(gD,{className:"components-datetime__time-field-hours-input",label:(0,u.__)("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("hours"),__unstableStateReducer:CD(2)}),(0,r.createElement)(vD,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,r.createElement)(bD,{className:"components-datetime__time-field-minutes-input",label:(0,u.__)("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:c,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("minutes"),__unstableStateReducer:CD(2)})),e&&(0,r.createElement)(Mk,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,r.createElement)(cy,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",__next40pxDefaultSize:!0,onClick:p("AM")},(0,u.__)("AM")),(0,r.createElement)(cy,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",__next40pxDefaultSize:!0,onClick:p("PM")},(0,u.__)("PM"))),(0,r.createElement)(Zh,null),(0,r.createElement)(_D,null))),(0,r.createElement)(mD,null,(0,r.createElement)(ty.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Date")),(0,r.createElement)(_y,{className:"components-datetime__time-wrapper"},e?(0,r.createElement)(r.Fragment,null,g,h):(0,r.createElement)(r.Fragment,null,h,g),(0,r.createElement)(wD,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,u.__)("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("year"),__unstableStateReducer:CD(4)}))))};const PD=ps(zS,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),TD=()=>{};const ID=(0,Vo.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:o=TD,onChange:i,events:a,startOfWeek:s},l){return(0,r.createElement)(PD,{ref:l,className:"components-datetime",spacing:4},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(kD,{currentTime:e,onChange:i,is12Hour:t}),(0,r.createElement)(lD,{currentDate:e,onChange:i,isInvalidDate:n,events:a,onMonthPreviewed:o,startOfWeek:s})))})),RD=ID,MD=[{name:(0,u._x)("None","Size of a UI element"),slug:"none"},{name:(0,u._x)("Small","Size of a UI element"),slug:"small"},{name:(0,u._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,u._x)("Large","Size of a UI element"),slug:"large"},{name:(0,u._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];const ND=function(e){const{__next40pxDefaultSize:t=!1,label:n,value:o,sizes:i=MD,icon:a,onChange:s,className:l=""}=e,d=(0,r.createElement)(r.Fragment,null,a&&(0,r.createElement)(ay,{icon:a}),n);return(0,r.createElement)(WE,{__next40pxDefaultSize:t,className:c()(l,"block-editor-dimension-control"),label:d,hideLabelFromVision:!1,value:o,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(i,e);t&&o!==t.slug?"function"==typeof s&&s(t.slug):s?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,u.__)("Default"),value:""},...t]})(i)})};const DD={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},AD=(0,Vo.createContext)(!1),{Consumer:OD,Provider:zD}=AD;function LD({className:e,children:t,isDisabled:n=!0,...o}){const i=Ja();return(0,r.createElement)(zD,{value:n},(0,r.createElement)("div",{inert:n?"true":void 0,className:n?i(DD,e,"components-disabled"):void 0,...o},t))}LD.Context=AD,LD.Consumer=OD;const FD=LD,BD=(0,Vo.forwardRef)((({visible:e,children:t,...n},o)=>{const i=Xt({open:e});return(0,r.createElement)(Zn,{store:i,ref:o,...n},t)})),jD="is-dragging-components-draggable";const VD=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:o,appendToOwnerDocument:i=!1,cloneClassname:a,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}){const f=(0,Vo.useRef)(null),m=(0,Vo.useRef)((()=>{}));return(0,Vo.useEffect)((()=>()=>{m.current()}),[]),(0,r.createElement)(r.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const o=r.createElement("div");o.style.top="0",o.style.left="0";const u=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(u.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(u),e.dataTransfer.setDragImage(u,0,0)),o.classList.add("components-draggable__clone"),a&&o.classList.add(a);let p=0,h=0;if(f.current){p=e.clientX,h=e.clientY,o.style.transform=`translate( ${p}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,o.appendChild(t),r.body.appendChild(o)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,a=t.top,l=t.left;o.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,p=l-0,h=a-0,o.style.transform=`translate( ${p}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),o.appendChild(c),i?r.body.appendChild(o):n?.appendChild(o)}let g=e.clientX,v=e.clientY;const b=(0,d.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=p+e.clientX-g,r=h+e.clientY-v;o.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,p=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(jD),t&&t(e),m.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),u&&u.parentNode&&u.parentNode.removeChild(u),r.body.classList.remove(jD),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),m.current(),o&&o(e)}}),u&&(0,r.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},u))},HD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"}));const $D=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:o,onDrop:i,...a}){const[s,l]=(0,Vo.useState)(),[f,m]=(0,Vo.useState)(),[p,h]=(0,Vo.useState)(),g=(0,d.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,FT.getFilesFromDataTransfer)(e.dataTransfer):[],r=e.dataTransfer?.getData("text/html");r&&o?o(r):t.length&&n?n(t):i&&i(e)},onDragStart(e){l(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,FT.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){l(!1),h(void 0)},onDragEnter(){m(!0)},onDragLeave(){m(!1)}}),v=(0,d.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},x={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,r.createElement)(vh.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,r.createElement)(vh.div,{variants:x},(0,r.createElement)(BE,{icon:HD,className:"components-drop-zone__content-icon"}),(0,r.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,u.__)("Drop files to upload")))));const w=c()("components-drop-zone",e,{"is-active":(s||f)&&("file"===p&&n||"html"===p&&o||"default"===p&&i),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${p}`]:!!p});return(0,r.createElement)("div",{...a,ref:g,className:w},v?b:(0,r.createElement)(Ch,null,b))};function WD({children:e}){return $o()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}const UD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"}));function GD(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Lg([Fg]);const qD=function({values:e}){return e?(0,r.createElement)(IE,{colorValue:GD(e,"135deg")}):(0,r.createElement)(ay,{icon:UD})};function YD({label:e,value:t,colors:n,disableCustomColors:o,enableAlpha:i,onChange:a}){const[s,l]=(0,Vo.useState)(!1),c=(0,d.useInstanceId)(YD,"color-list-picker-option"),f=`${c}__label`,m=`${c}__content`;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(cy,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e)),"aria-expanded":s,"aria-controls":m},(0,r.createElement)(_y,{justify:"flex-start",spacing:2},t?(0,r.createElement)(IE,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,r.createElement)(ay,{icon:UD}),(0,r.createElement)("span",{id:f},e))),(0,r.createElement)("div",{role:"group",id:m,"aria-labelledby":f,"aria-hidden":!s},s&&(0,r.createElement)(YS,{"aria-label":(0,u.__)("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:a,disableCustomColors:o,enableAlpha:i})))}const KD=function({colors:e,labels:t,value:n=[],disableCustomColors:o,enableAlpha:i,onChange:a}){return(0,r.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,r.createElement)(YD,{key:s,label:t,value:n[s],colors:e,disableCustomColors:o,enableAlpha:i,onChange:e=>{const t=n.slice();t[s]=e,a(t)}}))))},XD=["#333","#CCC"];function ZD({value:e,onChange:t}){const n=!!e,o=n?e:XD,i=GD(o),a=(s=o).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,r.createElement)(vT,{disableInserter:!0,background:i,hasGradient:n,value:a,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const JD=function({asButtons:e,loop:t,clearable:n=!0,unsetable:o=!0,colorPalette:i,duotonePalette:a,disableCustomColors:s,disableCustomDuotone:l,value:c,onChange:d,"aria-label":f,"aria-labelledby":m,...p}){const[h,g]=(0,Vo.useMemo)((()=>{return!(e=i)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Og(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[i]),v="unset"===c,b=(0,u.__)("Unset"),y=(0,r.createElement)(OS.Option,{key:"unset",value:"unset",isSelected:v,tooltipText:b,"aria-label":b,className:"components-duotone-picker__color-indicator",onClick:()=>{d(v?void 0:"unset")}}),x=a.map((({colors:e,slug:t,name:n})=>{const o={background:GD(e,"135deg"),color:"transparent"},i=null!=n?n:(0,u.sprintf)((0,u.__)("Duotone code: %s"),t),a=n?(0,u.sprintf)((0,u.__)("Duotone: %s"),n):i,s=ri()(e,c);return(0,r.createElement)(OS.Option,{key:t,value:e,isSelected:s,"aria-label":a,tooltipText:i,style:o,onClick:()=>{d(s?void 0:e)}})}));let w;if(e)w={asButtons:!0};else{const e={asButtons:!1,loop:t};w=f?{...e,"aria-label":f}:m?{...e,"aria-labelledby":m}:{...e,"aria-label":(0,u.__)("Custom color picker.")}}const E=o?[y,...x]:x;return(0,r.createElement)(OS,{...p,...w,options:E,actions:!!n&&(0,r.createElement)(OS.ButtonAction,{onClick:()=>d(void 0)},(0,u.__)("Clear"))},(0,r.createElement)(Zh,{paddingTop:0===E.length?0:4},(0,r.createElement)(zS,{spacing:3},!s&&!l&&(0,r.createElement)(ZD,{value:v?void 0:c,onChange:d}),!l&&(0,r.createElement)(KD,{labels:[(0,u.__)("Shadows"),(0,u.__)("Highlights")],colors:i,value:v?void 0:c,disableCustomColors:s,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=h),e[1]||(e[1]=g);const t=e.length>=2?e:void 0;d(t)}}))))},QD=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const eA=ps(BE,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});const tA=(0,Vo.forwardRef)((function(e,t){const{href:n,children:o,className:i,rel:a="",...s}=e,l=[...new Set([...a.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=c()("components-external-link",i),f=!!n?.startsWith("#");return(0,r.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:l,ref:t},o,(0,r.createElement)(vs,{as:"span"},(0,u.__)("(opens in a new tab)")),(0,r.createElement)(eA,{icon:QD,className:"components-external-link__icon"}))})),nA={width:200,height:170},rA=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function oA(e){return Math.round(100*e)}const iA=ps("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),aA=ps("div",{target:"eeew7dm7"})("align-items:center;border-radius:",Gg.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;}"),sA=ps("div",{target:"eeew7dm6"})("background:",Is.gray[100],";border-radius:inherit;box-sizing:border-box;height:",nA.height,"px;max-width:280px;min-width:",nA.width,"px;width:100%;"),lA=ps(_C,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var cA={name:"1mn7kwb",styles:"padding-bottom:1em"};const uA=({__nextHasNoMarginBottom:e})=>e?void 0:cA;var dA={name:"1mn7kwb",styles:"padding-bottom:1em"};const fA=({hasHelpText:e=!1})=>e?dA:void 0,mA=ps(Bh,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",fA," ",uA,";"),pA=ps("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 100ms linear;z-index:1;",Rs("transition")," opacity:",(({showOverlay:e})=>e?1:0),";"),hA=ps("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),gA=ps(hA,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),vA=ps(hA,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),bA=0,yA=100,xA=()=>{};function wA({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t,hasHelpText:n,onChange:o=xA,point:i={x:.5,y:.5}}){const a=oA(i.x),s=oA(i.y),l=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||o({...i,[t]:n/100})};return(0,r.createElement)(mA,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:n,gap:4},(0,r.createElement)(EA,{__next40pxDefaultSize:t,label:(0,u.__)("Left"),"aria-label":(0,u.__)("Focal point left position"),value:[a,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,r.createElement)(EA,{__next40pxDefaultSize:t,label:(0,u.__)("Top"),"aria-label":(0,u.__)("Focal point top position"),value:[s,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"}))}function EA(e){return(0,r.createElement)(lA,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:yA,min:bA,units:[{value:"%",label:"%"}],...e})}const _A=ps("div",{target:"e19snlhg0"})("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;transition:transform 100ms linear;",Rs("transition")," ",(({isDragging:e})=>e&&"\n\t\t\tbox-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;\n\t\t\ttransform: scale( 1.1 );\n\t\t\tcursor: grabbing;\n\t\t\t"),";");function SA({left:e="50%",top:t="50%",...n}){const o=c()("components-focal-point-picker__icon_container"),i={left:e,top:t};return(0,r.createElement)(_A,{...n,className:o,style:i})}function CA({bounds:e,...t}){return(0,r.createElement)(pA,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,r.createElement)(gA,{style:{top:"33%"}}),(0,r.createElement)(gA,{style:{top:"66%"}}),(0,r.createElement)(vA,{style:{left:"33%"}}),(0,r.createElement)(vA,{style:{left:"66%"}}))}function kA({alt:e,autoPlay:t,src:n,onLoad:o,mediaRef:i,muted:a=!0,...s}){if(!n)return(0,r.createElement)(sA,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:i,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||rA.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,r.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:a,onLoadedData:o,ref:i,src:n}):(0,r.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:i,src:n})}const PA=function e({__nextHasNoMarginBottom:t,__next40pxDefaultSize:n=!1,autoPlay:o=!0,className:i,help:a,label:s,onChange:l,onDrag:f,onDragEnd:m,onDragStart:p,resolvePoint:h,url:g,value:v={x:.5,y:.5},...b}){const[y,x]=(0,Vo.useState)(v),[w,E]=(0,Vo.useState)(!1),{startDrag:_,endDrag:S,isDragging:C}=(0,d.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=N(e);t&&(p?.(t,e),x(t))},onDragMove:e=>{e.preventDefault();const t=N(e);t&&(f?.(t,e),x(t))},onDragEnd:()=>{m?.(),l?.(y)}}),{x:k,y:P}=C?y:v,T=(0,Vo.useRef)(null),[I,R]=(0,Vo.useState)(nA),M=(0,Vo.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;R(e>0&&t>0?{width:e,height:t}:{...nA})}));(0,Vo.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,d.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const N=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/I.width,a=(t-r)/I.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),D({x:i,y:a})},D=e=>{var t;const n=null!==(t=h?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},A={left:void 0!==k?k*I.width:.5*I.width,top:void 0!==P?P*I.height:.5*I.height},O=c()("components-focal-point-picker-control",i),z=`inspector-focal-point-picker-control-${(0,d.useInstanceId)(e)}`;return ai((()=>{E(!0);const e=window.setTimeout((()=>{E(!1)}),600);return()=>window.clearTimeout(e)}),[k,P]),(0,r.createElement)(ty,{...b,__nextHasNoMarginBottom:t,label:s,id:z,help:a,className:O},(0,r.createElement)(iA,{className:"components-focal-point-picker-wrapper"},(0,r.createElement)(aA,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:k,y:P},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,l?.(D(r))},onMouseDown:_,onBlur:()=>{C&&S()},ref:T,role:"button",tabIndex:-1},(0,r.createElement)(CA,{bounds:I,showOverlay:w}),(0,r.createElement)(kA,{alt:(0,u.__)("Media preview"),autoPlay:o,onLoad:M.current,src:g}),(0,r.createElement)(SA,{...A,isDragging:C}))),(0,r.createElement)(wA,{__nextHasNoMarginBottom:t,__next40pxDefaultSize:n,hasHelpText:!!a,point:{x:k,y:P},onChange:e=>{l?.(D(e))}}))};function TA({iframeRef:e,...t}){const n=(0,d.useMergeRefs)([e,(0,d.useFocusableIframe)()]);return $o()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,r.createElement)("iframe",{ref:n,...t})}const IA=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"}),(0,r.createElement)(n.Path,{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"}));function RA(e){const[t,...n]=e;if(!t)return null;const[,r]=gC(t.size);return n.every((e=>{const[,t]=gC(e.size);return t===r}))?r:null}const MA=ps("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),NA=ps(_y,{target:"e8tqeku3"})("height:",Rh(4),";"),DA=ps(cy,{target:"e8tqeku2"})("margin-top:",Rh(-1),";"),AA=ps(ty.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",Rh(1),";justify-content:flex-start;margin-bottom:0;"),OA=ps("span",{target:"e8tqeku0"})("color:",Is.gray[700],";"),zA={key:"default",name:(0,u.__)("Default"),value:void 0},LA={key:"custom",name:(0,u.__)("Custom")},FA=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:o,value:i,disableCustomFontSizes:a,size:s,onChange:l,onSelectCustom:c}=e,d=!!RA(o),f=[zA,...o.map((e=>{let t;if(d){const[n]=gC(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...a?[]:[LA]],m=i?null!==(t=f.find((e=>e.value===i)))&&void 0!==t?t:LA:zA;return(0,r.createElement)(vM,{__next40pxDefaultSize:n,__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,u.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,u.sprintf)((0,u.__)("Currently selected font size: %s"),m.name),options:f,value:m,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===LA?c():l(e.value)},size:s})};const BA=(0,Vo.forwardRef)((function(e,t){const{label:n,...o}=e,i=o["aria-label"]||n;return(0,r.createElement)(SE,{...o,"aria-label":i,ref:t},n)})),jA=[(0,u.__)("S"),(0,u.__)("M"),(0,u.__)("L"),(0,u.__)("XL"),(0,u.__)("XXL")],VA=[(0,u.__)("Small"),(0,u.__)("Medium"),(0,u.__)("Large"),(0,u.__)("Extra Large"),(0,u.__)("Extra Extra Large")],HA=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:o,size:i,onChange:a}=e;return(0,r.createElement)(lE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:o,label:(0,u.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:a,isBlock:!0,size:i},t.map(((e,t)=>(0,r.createElement)(BA,{key:e.slug,value:e.size,label:jA[t],"aria-label":e.name||VA[t],showTooltip:!0}))))},$A=(0,Vo.forwardRef)(((e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:o,fontSizes:i=[],disableCustomFontSizes:a=!1,onChange:s,size:l="default",units:c,value:d,withSlider:f=!1,withReset:m=!0}=e,p=vC({availableUnits:c||["px","em","rem"]}),h=i.length>5,g=i.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,Vo.useState)(!a&&v),x=(0,Vo.useMemo)((()=>{if(b)return(0,u.__)("Custom");if(!h)return g?g.name||VA[i.indexOf(g)]:"";const e=RA(i);return e?`(${e})`:""}),[b,h,g,i]);if(0===i.length&&a)return null;const w="string"==typeof d||"string"==typeof i[0]?.size,[E,_]=gC(d,p),S=!!_&&["em","rem"].includes(_),C=void 0===d;return(0,r.createElement)(MA,{ref:t,className:"components-font-size-picker"},(0,r.createElement)(vs,{as:"legend"},(0,u.__)("Font size")),(0,r.createElement)(Zh,null,(0,r.createElement)(NA,{className:"components-font-size-picker__header"},(0,r.createElement)(AA,{"aria-label":`${(0,u.__)("Size")} ${x||""}`},(0,u.__)("Size"),x&&(0,r.createElement)(OA,{className:"components-font-size-picker__header__hint"},x)),!a&&(0,r.createElement)(DA,{label:b?(0,u.__)("Use size preset"):(0,u.__)("Set custom size"),icon:IA,onClick:()=>{y(!b)},isPressed:b,size:"small"}))),(0,r.createElement)("div",null,!!i.length&&h&&!b&&(0,r.createElement)(FA,{__next40pxDefaultSize:n,fontSizes:i,value:d,disableCustomFontSizes:a,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),i.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,r.createElement)(HA,{fontSizes:i,value:d,__next40pxDefaultSize:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),i.find((t=>t.size===e)))}}),!a&&b&&(0,r.createElement)(Bh,{className:"components-font-size-picker__custom-size-control"},(0,r.createElement)(eg,{isBlock:!0},(0,r.createElement)(_C,{__next40pxDefaultSize:n,label:(0,u.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:w?e:parseInt(e,10))},size:l,units:w?p:[],min:0})),f&&(0,r.createElement)(eg,{isBlock:!0},(0,r.createElement)(Zh,{marginX:2,marginBottom:0},(0,r.createElement)(E_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:(0,u.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:o,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:w?e+(null!=_?_:"px"):e)},min:0,max:S?10:100,step:S?.1:1}))),m&&(0,r.createElement)(eg,null,(0,r.createElement)(ly,{disabled:C,__experimentalIsFocusable:!0,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"===l||e.__next40pxDefaultSize?"default":"small"},(0,u.__)("Reset"))))))})),WA=$A;const UA=function({accept:e,children:t,multiple:n=!1,onChange:o,onClick:i,render:a,...s}){const l=(0,Vo.useRef)(null),c=()=>{l.current?.click()},u=a?a({openFileDialog:c}):(0,r.createElement)(cy,{onClick:c,...s},t);return(0,r.createElement)("div",{className:"components-form-file-upload"},u,(0,r.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:o,onClick:i,"data-testid":"form-file-upload-input"}))},GA=()=>{};const qA=function(e){const{className:t,checked:n,id:o,disabled:i,onChange:a=GA,...s}=e,l=c()("components-form-toggle",t,{"is-checked":n,"is-disabled":i});return(0,r.createElement)("span",{className:l},(0,r.createElement)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:n,onChange:a,disabled:i,...s}),(0,r.createElement)("span",{className:"components-form-toggle__track"}),(0,r.createElement)("span",{className:"components-form-toggle__thumb"}))},YA=()=>{};function KA({value:e,status:t,title:n,displayTransform:o,isBorderless:i=!1,disabled:a=!1,onClickRemove:s=YA,onMouseEnter:l,onMouseLeave:f,messages:m,termPosition:p,termsCount:h}){const g=(0,d.useInstanceId)(KA),v=c()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":i,"is-disabled":a}),b=o(e),y=(0,u.sprintf)((0,u.__)("%1$s (%2$s of %3$s)"),b,p,h);return(0,r.createElement)("span",{className:v,onMouseEnter:l,onMouseLeave:f,title:n},(0,r.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,r.createElement)(vs,{as:"span"},y),(0,r.createElement)("span",{"aria-hidden":"true"},b)),(0,r.createElement)(cy,{className:"components-form-token-field__remove-token",icon:Nw,onClick:a?void 0:()=>s({value:e}),disabled:a,label:m.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const XA=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&_s("padding-top:",Rh(t?1:.5),";padding-bottom:",Rh(t?1:.5),";",""),ZA=ps(Bh,{target:"ehq8nmi0"})("padding:7px;",Ub," ",XA,";"),JA=e=>e;const QA=function e(t){const{autoCapitalize:n,autoComplete:o,maxLength:i,placeholder:a,label:s=(0,u.__)("Add item"),className:l,suggestions:f=[],maxSuggestions:m=100,value:p=[],displayTransform:h=JA,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:x=!1,disabled:w=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,u.__)("Item added."),removed:(0,u.__)("Item removed."),remove:(0,u.__)("Remove item"),__experimentalInvalid:(0,u.__)("Invalid item")},__experimentalRenderItem:S,__experimentalExpandOnFocus:C=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:P=!0,__next40pxDefaultSize:T=!1,__experimentalAutoSelectFirstMatch:I=!1,__nextHasNoMarginBottom:R=!1,tokenizeOnBlur:M=!1}=Tv(t),N=(0,d.useInstanceId)(e),[D,A]=(0,Vo.useState)(""),[O,z]=(0,Vo.useState)(0),[L,F]=(0,Vo.useState)(!1),[B,j]=(0,Vo.useState)(!1),[V,H]=(0,Vo.useState)(-1),[$,W]=(0,Vo.useState)(!1),U=(0,d.usePrevious)(f),G=(0,d.usePrevious)(p),q=(0,Vo.useRef)(null),Y=(0,Vo.useRef)(null),K=(0,d.useDebounce)(zy.speak,500);function X(){q.current?.focus()}function Z(){return q.current===q.current?.ownerDocument.activeElement}function J(e){if(me()&&k(D))F(!1),M&&me()&&se(D);else{if(A(""),z(0),F(!1),C){const t=e.relatedTarget===Y.current;j(t)}else j(!1);H(-1),W(!1)}}function Q(e){e.target===Y.current&&L&&e.preventDefault()}function ee(e){le(e.value),X()}function te(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ae(r.slice(0,-1)),A(o),b(o)}function ne(e){let t=!1;return Z()&&fe()&&(e(),t=!0),t}function re(){const e=de()-1;e>-1&&le(p[e])}function oe(){const e=de();e<p.length&&(le(p[e]),function(e){z(p.length-Math.max(e,-1)-1)}(e))}function ie(){let e=!1;const t=function(){if(-1!==V)return ue()[V];return}();return t?(se(t),e=!0):me()&&(se(D),e=!0),e}function ae(e){const t=[...new Set(e.map(g).filter(Boolean).filter((e=>!function(e){return p.some((t=>ce(e)===ce(t)))}(e))))];if(t.length>0){const e=[...p];e.splice(de(),0,...t),v(e)}}function se(e){k(e)?(ae([e]),(0,zy.speak)(_.added,"assertive"),A(""),H(-1),W(!1),j(!C),L&&!M&&X()):(0,zy.speak)(_.__experimentalInvalid,"assertive")}function le(e){const t=p.filter((t=>ce(t)!==ce(e)));v(t),(0,zy.speak)(_.removed,"assertive")}function ce(e){return"object"==typeof e?e.value:e}function ue(e=D,t=f,n=p,r=m,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function de(){return p.length-O}function fe(){return 0===D.length}function me(){return g(D).length>0}function pe(e=!0){const t=D.trim().length>1,n=ue(D),r=n.length>0,o=Z()&&C;if(j(o||t&&r),e&&(I&&t&&r?(H(0),W(!0)):(H(-1),W(!1))),t){const e=r?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,u.__)("No results.");K(e,"assertive")}}function he(e,t,n){const o=ce(e),i="string"!=typeof e?e.status:void 0,a=t+1,s=n.length;return(0,r.createElement)(eg,{key:"token-"+o},(0,r.createElement)(KA,{value:o,status:i,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:ee,isBorderless:"string"!=typeof e&&e.isBorderless||x,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==i&&w,messages:_,termsCount:s,termPosition:a}))}(0,Vo.useEffect)((()=>{L&&!Z()&&X()}),[L]),(0,Vo.useEffect)((()=>{const e=!ew()(f,U||[]);(e||p!==G)&&pe(e)}),[f,U,p,G]),(0,Vo.useEffect)((()=>{pe()}),[D]),(0,Vo.useEffect)((()=>{pe()}),[I]),w&&L&&(F(!1),A(""));const ge=c()(l,"components-form-token-field__input-container",{"is-active":L,"is-disabled":w});let ve={className:"components-form-token-field",tabIndex:-1};const be=ue();return w||(ve=Object.assign({},ve,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=ne(re);break;case"Enter":t=ie();break;case"ArrowLeft":t=function(){let e=!1;return fe()&&(z((e=>Math.min(e+1,p.length))),e=!0),e}();break;case"ArrowUp":H((e=>(0===e?ue(D,f,p,m,g).length:e)-1)),W(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return fe()&&(z((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":H((e=>(e+1)%ue(D,f,p,m,g).length)),W(!0),t=!0;break;case"Delete":t=ne(oe);break;case"Space":E&&(t=ie());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(A(e.target.value),j(!1),H(-1),W(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(me()&&se(D),t=!0);t&&e.preventDefault()},onFocus:function(e){Z()||e.target===Y.current?(F(!0),j(C||B)):F(!1),"function"==typeof y&&y(e)}})),(0,r.createElement)("div",{...ve},(0,r.createElement)(Kb,{htmlFor:`components-form-token-input-${N}`,className:"components-form-token-field__label"},s),(0,r.createElement)("div",{ref:Y,className:ge,tabIndex:-1,onMouseDown:Q,onTouchStart:Q},(0,r.createElement)(ZA,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:T,hasTokens:!!p.length},function(){const e=p.map(he);return e.splice(de(),0,function(){const e={instanceId:N,autoCapitalize:n,autoComplete:o,placeholder:0===p.length?a:"",key:"input",disabled:w,value:D,onBlur:J,isExpanded:B,selectedSuggestionIndex:V};return(0,r.createElement)(gI,{...e,onChange:i&&p.length>=i?void 0:te,ref:q})}()),e}()),B&&(0,r.createElement)(xI,{instanceId:N,match:g(D),displayTransform:h,suggestions:be,selectedIndex:V,scrollIntoView:$,onHover:function(e){const t=ue().indexOf(e);t>=0&&(H(t),W(!1))},onSelect:function(e){se(e)},__experimentalRenderItem:S})),!R&&(0,r.createElement)(Zh,{marginBottom:2}),P&&(0,r.createElement)(Zb,{id:`components-form-token-suggestions-howto-${N}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:R},E?(0,u.__)("Separate with commas, spaces, or the Enter key."):(0,u.__)("Separate with commas or the Enter key.")))},eO=()=>(0,r.createElement)(n.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Circle,{cx:"4",cy:"4",r:"4"}));function tO({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,u.__)("Guide controls")},Array.from({length:t}).map(((o,i)=>(0,r.createElement)("li",{key:i,"aria-current":i===e?"step":void 0},(0,r.createElement)(cy,{key:i,icon:(0,r.createElement)(eO,null),"aria-label":(0,u.sprintf)((0,u.__)("Page %1$d of %2$d"),i+1,t),onClick:()=>n(i)})))))}const nO=function({children:e,className:t,contentLabel:n,finishButtonText:o=(0,u.__)("Finish"),onFinish:i,pages:a=[]}){const s=(0,Vo.useRef)(null),[l,d]=(0,Vo.useState)(0);var f;(0,Vo.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[l]),(0,Vo.useEffect)((()=>{Vo.Children.count(e)&&$o()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),Vo.Children.count(e)&&(a=null!==(f=Vo.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const m=l>0,p=l<a.length-1,h=()=>{m&&d(l-1)},g=()=>{p&&d(l+1)};return 0===a.length?null:(0,r.createElement)($I,{className:c()("components-guide",t),contentLabel:n,isDismissible:a.length>1,onRequestClose:i,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,r.createElement)("div",{className:"components-guide__container"},(0,r.createElement)("div",{className:"components-guide__page"},a[l].image,a.length>1&&(0,r.createElement)(tO,{currentPage:l,numberOfPages:a.length,setCurrentPage:d}),a[l].content),(0,r.createElement)("div",{className:"components-guide__footer"},m&&(0,r.createElement)(cy,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,u.__)("Previous")),p&&(0,r.createElement)(cy,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,u.__)("Next")),!p&&(0,r.createElement)(cy,{className:"components-guide__finish-button",variant:"primary",onClick:i},o))))};function rO(e){return(0,Vo.useEffect)((()=>{$o()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,r.createElement)("div",{...e})}const oO=(0,Vo.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:o,...i},a){return $o()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,r.createElement)(cy,{...i,ref:a,tooltipPosition:t,iconSize:n,showTooltip:void 0!==o?!!o:void 0,label:o||e})}));const iO=es((function(e,t){const{role:n,wrapperClassName:o,...i}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=Qa(e,"Item"),{spacedAround:s,size:l}=tT(),c=i||l,u=t||(void 0!==r?"button":"div"),d=Ja(),f=(0,Vo.useMemo)((()=>d(("button"===u||"a"===u)&&VP(u),QP[c]||QP.medium,$P,s&&qP,n)),[u,n,d,c,s]),m=d(HP);return{as:u,className:f,onClick:r,wrapperClassName:m,role:o,...a}}(e);return(0,r.createElement)("div",{role:n,className:o},(0,r.createElement)(gs,{...i,ref:t}))}),"Item"),aO=iO;const sO=es((function(e,t){const n=Qa(e,"InputControlPrefixWrapper");return(0,r.createElement)(Zh,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function lO({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,d.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}const cO=function({children:e,shortcuts:t,bindGlobal:n,eventName:o}){const i=(0,Vo.useRef)(null),a=Object.entries(null!=t?t:{}).map((([e,t])=>(0,r.createElement)(lO,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:o,target:i})));return Vo.Children.count(e)?(0,r.createElement)("div",{ref:i},a,e):(0,r.createElement)(r.Fragment,null,a)};const uO=function e(t){const{children:n,className:o="",label:i,hideSeparator:a}=t,s=(0,d.useInstanceId)(e);if(!Vo.Children.count(n))return null;const l=`components-menu-group-label-${s}`,u=c()(o,"components-menu-group",{"has-hidden-separator":a});return(0,r.createElement)("div",{className:u},i&&(0,r.createElement)("div",{className:"components-menu-group__label",id:l,"aria-hidden":"true"},i),(0,r.createElement)("div",{role:"group","aria-labelledby":i?l:void 0},n))};const dO=(0,Vo.forwardRef)((function(e,t){let{children:n,info:o,className:i,icon:a,iconPosition:s="right",shortcut:l,isSelected:u,role:d="menuitem",suffix:f,...m}=e;return i=c()("components-menu-item__button",i),o&&(n=(0,r.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,r.createElement)("span",{className:"components-menu-item__item"},n),(0,r.createElement)("span",{className:"components-menu-item__info"},o))),a&&"string"!=typeof a&&(a=(0,Vo.cloneElement)(a,{className:c()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,r.createElement)(cy,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?a:void 0,className:i,...m},(0,r.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,r.createElement)(Wo,{className:"components-menu-item__shortcut",shortcut:l}),!f&&a&&"right"===s&&(0,r.createElement)(ay,{icon:a}),f)})),fO=dO,mO=()=>{};const pO=function({choices:e=[],onHover:t=mO,onSelect:n,value:o}){return(0,r.createElement)(r.Fragment,null,e.map((e=>{const i=o===e.value;return(0,r.createElement)(fO,{key:e.value,role:"menuitemradio",disabled:e.disabled,icon:i?IS:null,info:e.info,isSelected:i,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{i||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};const hO=(0,Vo.forwardRef)((function({eventToOffset:e,...t},n){return(0,r.createElement)($T,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})})),gO="root",vO=100,bO=()=>{},yO=()=>{},xO=(0,Vo.createContext)({activeItem:void 0,activeMenu:gO,setActiveMenu:bO,navigationTree:{items:{},getItem:yO,addItem:bO,removeItem:bO,menus:{},getMenu:yO,addMenu:bO,removeMenu:bO,childMenu:{},traverseMenu:bO,isMenuEmpty:()=>!1}}),wO=()=>(0,Vo.useContext)(xO);const EO=ps("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",Rh(4),";overflow:hidden;"),_O=ps("div",{target:"eeiismy10"})("margin-top:",Rh(6),";margin-bottom:",Rh(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",Rh(6),";}.components-navigation__group+.components-navigation__group{margin-top:",Rh(6),";}"),SO=ps(cy,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),CO=ps("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),kO=ps("div",{target:"eeiismy7"})({name:"rgorny",styles:"margin:11px 0;padding:1px"}),PO=ps("span",{target:"eeiismy6"})("height:",Rh(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",Rh(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),TO=ps(BS,{target:"eeiismy5"})("min-height:",Rh(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",Rh(2),";padding:",(()=>(0,u.isRTL)()?`${Rh(1)} ${Rh(4)} ${Rh(1)} ${Rh(2)}`:`${Rh(1)} ${Rh(2)} ${Rh(1)} ${Rh(4)}`),";"),IO=ps("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",Rh(2)," ",Rh(4),";",Yh({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Is.theme.accent,";color:",Is.white,";>button,>a{color:",Is.white,";opacity:1;}}>svg path{color:",Is.gray[600],";}"),RO=ps("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",Rh(1.5)," ",Rh(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),MO=ps("span",{target:"eeiismy2"})("display:flex;margin-right:",Rh(2),";"),NO=ps("span",{target:"eeiismy1"})("margin-left:",(()=>(0,u.isRTL)()?"0":Rh(2)),";margin-right:",(()=>(0,u.isRTL)()?Rh(2):"0"),";display:inline-flex;padding:",Rh(1)," ",Rh(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Rs("animation"),";"),DO=ps(cv,{target:"eeiismy0"})((()=>(0,u.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function AO(){const[e,t]=(0,Vo.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const OO=()=>{};const zO=function({activeItem:e,activeMenu:t=gO,children:n,className:o,onActivateMenu:i=OO}){const[a,s]=(0,Vo.useState)(t),[l,d]=(0,Vo.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=AO(),{nodes:o,getNode:i,addNode:a,removeNode:s}=AO(),[l,c]=(0,Vo.useState)({}),u=e=>l[e]||[],d=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...u(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{c((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),a(e,t)},removeMenu:s,childMenu:l,traverseMenu:d,isMenuEmpty:e=>{let t=!0;return d(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),m=(0,u.isRTL)()?"right":"left",p=(e,t=m)=>{f.getMenu(e)&&(d(t),s(e),i(e))},h=(0,Vo.useRef)(!1);(0,Vo.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,Vo.useEffect)((()=>{t!==a&&p(t)}),[t]);const g={activeItem:e,activeMenu:a,setActiveMenu:p,navigationTree:f},v=c()("components-navigation",o),b=fl({type:"slide-in",origin:l});return(0,r.createElement)(EO,{className:v},(0,r.createElement)("div",{key:a,className:b?c()({[b]:h.current&&l}):void 0},(0,r.createElement)(xO.Provider,{value:g},n)))},LO=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),FO=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const BO=(0,Vo.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:o,parentMenu:i},a){const{setActiveMenu:s,navigationTree:l}=wO(),d=c()("components-navigation__back-button",t),f=void 0!==i?l.getMenu(i)?.title:void 0,m=(0,u.isRTL)()?LO:FO;return(0,r.createElement)(SO,{className:d,href:n,variant:"tertiary",ref:a,onClick:e=>{"function"==typeof o&&o(e);const t=(0,u.isRTL)()?"left":"right";i&&!e.defaultPrevented&&s(i,t)}},(0,r.createElement)(BE,{icon:m}),e||f||(0,u.__)("Back"))})),jO=BO,VO=(0,Vo.createContext)({group:void 0});let HO=0;const $O=function({children:e,className:t,title:n}){const[o]=(0,Vo.useState)("group-"+ ++HO),{navigationTree:{items:i}}=wO(),a={group:o};if(!Object.values(i).some((e=>e.group===o&&e._isVisible)))return(0,r.createElement)(VO.Provider,{value:a},e);const s=`components-navigation__group-title-${o}`,l=c()("components-navigation__group",t);return(0,r.createElement)(VO.Provider,{value:a},(0,r.createElement)("li",{className:l},n&&(0,r.createElement)(TO,{className:"components-navigation__group-title",id:s,level:3},n),(0,r.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function WO(e){const{badge:t,title:n}=e;return(0,r.createElement)(r.Fragment,null,n&&(0,r.createElement)(DO,{className:"components-navigation__item-title",as:"span"},n),t&&(0,r.createElement)(NO,{className:"components-navigation__item-badge"},t))}const UO=(0,Vo.createContext)({menu:void 0,search:""}),GO=()=>(0,Vo.useContext)(UO),qO=e=>Ay()(e).replace(/^\//,"").toLowerCase(),YO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=wO(),{group:i}=(0,Vo.useContext)(VO),{menu:a,search:s}=GO();(0,Vo.useEffect)((()=>{const l=n===a,c=!s||void 0!==t.title&&((e,t)=>-1!==qO(e).indexOf(qO(t)))(t.title,s);return r(e,{...t,group:i,menu:a,_isVisible:l&&c}),()=>{o(e)}}),[n,s])};let KO=0;function XO(e){const{children:t,className:n,title:o,href:i,...a}=e,[s]=(0,Vo.useState)("item-"+ ++KO);YO(s,e);const{navigationTree:l}=wO();if(!l.getItem(s)?._isVisible)return null;const u=c()("components-navigation__item",n);return(0,r.createElement)(IO,{className:u,...a},t)}const ZO=()=>{};const JO=function(e){const{badge:t,children:n,className:o,href:i,item:a,navigateToMenu:s,onClick:l=ZO,title:d,icon:f,hideIfTargetMenuEmpty:m,isText:p,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=wO();if(m&&s&&b(s))return null;const y=a&&g===a,x=c()(o,{"is-active":y}),w=(0,u.isRTL)()?FO:LO,E=n?e:{...e,onClick:void 0},_=p?h:{as:cy,href:i,onClick:e=>{s&&v(s),l(e)},"aria-current":y?"page":void 0,...h};return(0,r.createElement)(XO,{...E,className:x},n||(0,r.createElement)(RO,{..._},f&&(0,r.createElement)(MO,null,(0,r.createElement)(BE,{icon:f})),(0,r.createElement)(WO,{title:d,badge:t}),s&&(0,r.createElement)(BE,{icon:w})))},QO=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"})),ez=(0,d.createHigherOrderComponent)((e=>t=>(0,r.createElement)(e,{...t,speak:zy.speak,debouncedSpeak:(0,d.useDebounce)(zy.speak,500)})),"withSpokenMessages"),tz=ps("div",{target:"effl84m1"})("display:flex;padding-inline-end:",(({size:e})=>Rh("compact"===e?1:2)),";svg{fill:currentColor;}"),nz=ps(oy,{target:"effl84m0"})("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:",Is.theme.gray[100],";}");function rz({searchRef:e,value:t,onChange:n,onClose:o}){if(!o&&!t)return(0,r.createElement)(BE,{icon:QO});return(0,r.createElement)(cy,{size:"small",icon:Nw,label:o?(0,u.__)("Close search"):(0,u.__)("Reset search"),onClick:null!=o?o:()=>{n(""),e.current?.focus()}})}const oz=(0,Vo.forwardRef)((function({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:o,label:i=(0,u.__)("Search"),placeholder:a=(0,u.__)("Search"),hideLabelFromVision:s=!0,onClose:l,size:f="default",...m},p){delete m.disabled;const h=(0,Vo.useRef)(null),g=(0,d.useInstanceId)(oz,"components-search-control"),v=(0,Vo.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e}},InputBase:{isBorderless:!0}})),[e]);return(0,r.createElement)(ci,{value:v},(0,r.createElement)(nz,{__next40pxDefaultSize:!0,id:g,hideLabelFromVision:s,label:i,ref:(0,d.useMergeRefs)([h,p]),type:"search",size:f,className:c()("components-search-control",t),onChange:e=>n(null!=e?e:""),autoComplete:"off",placeholder:a,value:null!=o?o:"",suffix:(0,r.createElement)(tz,{size:f},(0,r.createElement)(rz,{searchRef:h,value:o,onChange:n,onClose:l})),...m}))})),iz=oz;const az=ez((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:o,title:i}){const{navigationTree:{items:a}}=wO(),{menu:s}=GO(),l=(0,Vo.useRef)(null);(0,Vo.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),vO);return()=>{clearTimeout(e)}}),[]),(0,Vo.useEffect)((()=>{if(!o)return;const t=Object.values(a).filter((e=>e._isVisible)).length,n=(0,u.sprintf)((0,u._n)("%d result found.","%d results found.",t),t);e(n)}),[a,o]);const c=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,u.sprintf)((0,u.__)("Search %s"),i?.toLowerCase()).trim();return(0,r.createElement)(kO,null,(0,r.createElement)(iz,{__nextHasNoMarginBottom:!0,className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),c())},placeholder:f,onClose:c,ref:l,value:o}))}));function sz({hasSearch:e,onSearch:t,search:n,title:o,titleAction:i}){const[a,s]=(0,Vo.useState)(!1),{menu:l}=GO(),c=(0,Vo.useRef)(null);if(!o)return null;const d=`components-navigation__menu-title-${l}`,f=(0,u.sprintf)((0,u.__)("Search in %s"),o);return(0,r.createElement)(CO,{className:"components-navigation__menu-title"},!a&&(0,r.createElement)(TO,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,r.createElement)("span",{id:d},o),(e||i)&&(0,r.createElement)(PO,null,i,e&&(0,r.createElement)(cy,{size:"small",variant:"tertiary",label:f,onClick:()=>s(!0),ref:c},(0,r.createElement)(BE,{icon:QO})))),a&&(0,r.createElement)("div",{className:fl({type:"slide-in",origin:"left"})},(0,r.createElement)(az,{onCloseSearch:()=>{s(!1),setTimeout((()=>{c.current?.focus()}),vO)},onSearch:t,search:n,title:o})))}function lz({search:e}){const{navigationTree:{items:t}}=wO(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,r.createElement)(IO,null,(0,r.createElement)(RO,null,(0,u.__)("No results found.")," "))}const cz=function(e){const{backButtonLabel:t,children:n,className:o,hasSearch:i,menu:a=gO,onBackButtonClick:s,onSearch:l,parentMenu:u,search:d,isSearchDebouncing:f,title:m,titleAction:p}=e,[h,g]=(0,Vo.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=wO(),r=e.menu||gO;(0,Vo.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=wO(),b={menu:a,search:h};if(v!==a)return(0,r.createElement)(UO.Provider,{value:b},n);const y=!!l,x=y?d:h,w=y?l:g,E=`components-navigation__menu-title-${a}`,_=c()("components-navigation__menu",o);return(0,r.createElement)(UO.Provider,{value:b},(0,r.createElement)(_O,{className:_},(u||s)&&(0,r.createElement)(jO,{backButtonLabel:t,parentMenu:u,onClick:s}),m&&(0,r.createElement)(sz,{hasSearch:i,onSearch:w,search:x,title:m,titleAction:p}),(0,r.createElement)(UT,null,(0,r.createElement)("ul",{"aria-labelledby":E},n,x&&!f&&(0,r.createElement)(lz,{search:x})))))};function uz(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(fz(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var m=u("CHAR"),p=u("NAME"),h=u("PATTERN");if(p||h){var g=m||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:p||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=m||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(a.push(c),c=""),u("OPEN")){g=f();var b=u("NAME")||"",y=u("PATTERN")||"",x=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:x,modifier:u("MODIFIER")||""})}else d("END")}}return a}function dz(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:a,params:s}}}(hz(e,n,t),n,t)}function fz(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function mz(e){return e&&e.sensitive?"":"i"}function pz(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,f=void 0===d?"/#?":d,m=n.endsWith,p="[".concat(fz(void 0===m?"":m),"]|$"),h="[".concat(fz(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=fz(u(y));else{var x=fz(u(y.prefix)),w=fz(u(y.suffix));if(y.pattern)if(t&&t.push(y),x||w)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";g+="(?:".concat(x,"((?:").concat(y.pattern,")(?:").concat(w).concat(x,"(?:").concat(y.pattern,"))*)").concat(w,")").concat(E)}else g+="(?:".concat(x,"(").concat(y.pattern,")").concat(w,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?g+="((?:".concat(y.pattern,")").concat(y.modifier,")"):g+="(".concat(y.pattern,")").concat(y.modifier);else g+="(?:".concat(x).concat(w,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(p,")"):"$";else{var _=e[e.length-1],S="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(p,"))?")),S||(g+="(?=".concat(h,"|").concat(p,")"))}return new RegExp(g,mz(n))}(uz(e,n),t,n)}function hz(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return hz(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),mz(n))}(e,t,n):pz(e,t,n)}function gz(e,t){return dz(t,{decode:decodeURIComponent})(e)}const vz=(0,Vo.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const bz={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},yz=Ss({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),xz=Ss({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),wz=e=>_s("overflow-x:auto;max-height:100%;",(({isInitial:e,isBack:t,isRTL:n})=>{if(e&&!t)return;return _s("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?yz:xz,";@media ( prefers-reduced-motion ){animation-duration:0s;}","")})(e),";","");function Ez(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}const _z=es((function(e,t){const{initialPath:n,children:o,className:i,...a}=Qa(e,"NavigatorProvider"),[s,l]=(0,Vo.useState)([{path:n}]),c=(0,Vo.useRef)([]),[u,d]=(0,Vo.useReducer)(Ez,[]),f=(0,Vo.useRef)([]);(0,Vo.useEffect)((()=>{f.current=u}),[u]),(0,Vo.useEffect)((()=>{c.current=s}),[s]);const m=(0,Vo.useRef)(),p=(0,Vo.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(m.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=gz(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return m.current&&t&&ew()(t.params,m.current.params)&&t.id===m.current.id?m.current:t})(e);return m.current=t,t}),[u,s]),h=(0,Vo.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,Vo.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,Vo.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,Vo.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,Vo.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==gz(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),x=(0,Vo.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:p?p.params:{},match:p?p.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,p,b,v,y,h,g]),w=Ja(),E=(0,Vo.useMemo)((()=>w(bz,i)),[i,w]);return(0,r.createElement)(gs,{ref:t,className:E,...a},(0,r.createElement)(vz.Provider,{value:x},o))}),"NavigatorProvider"),Sz=_z,Cz=window.wp.escapeHtml;const kz=es((function(e,t){const n=(0,Vo.useId)(),{children:o,className:i,path:a,...s}=Qa(e,"NavigatorScreen"),{location:l,match:c,addScreen:f,removeScreen:m}=(0,Vo.useContext)(vz),p=c===n,h=(0,Vo.useRef)(null);(0,Vo.useEffect)((()=>{const e={id:n,path:(0,Cz.escapeAttribute)(a)};return f(e),()=>m(e)}),[n,a,f,m]);const g=(0,u.isRTL)(),{isInitial:v,isBack:b}=l,y=Ja(),x=(0,Vo.useMemo)((()=>y(wz({isInitial:v,isBack:b,isRTL:g}),i)),[i,y,v,b,g]),w=(0,Vo.useRef)(l);(0,Vo.useEffect)((()=>{w.current=l}),[l]);const E=l.isInitial&&!l.isBack;(0,Vo.useEffect)((()=>{if(E||!p||!h.current||w.current.hasRestoredFocus||l.skipFocus)return;const e=h.current.ownerDocument.activeElement;if(h.current.contains(e))return;let t=null;if(l.isBack&&l?.focusTargetSelector&&(t=h.current.querySelector(l.focusTargetSelector)),!t){const e=FT.focus.tabbable.find(h.current)[0];t=null!=e?e:h.current}w.current.hasRestoredFocus=!0,t.focus()}),[E,p,l.isBack,l.focusTargetSelector,l.skipFocus]);const _=(0,d.useMergeRefs)([t,h]);return p?(0,r.createElement)(gs,{ref:_,className:x,...s},o):null}),"NavigatorScreen"),Pz=kz;const Tz=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,Vo.useContext)(vz);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}},Iz=(e,t)=>`[${e}="${t}"]`;const Rz=es((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=cy,attributeName:o="id",...i}=Qa(e,"NavigatorButton"),a=(0,Cz.escapeAttribute)(t),{goTo:s}=Tz();return{as:r,onClick:(0,Vo.useCallback)((e=>{e.preventDefault(),s(a,{focusTargetSelector:Iz(o,a)}),n?.(e)}),[s,n,o,a]),...i,[o]:a}}(e);return(0,r.createElement)(gs,{ref:t,...n})}),"NavigatorButton");function Mz(e){const{onClick:t,as:n=cy,goToParent:r=!1,...o}=Qa(e,"NavigatorBackButton"),{goBack:i,goToParent:a}=Tz();return{as:n,onClick:(0,Vo.useCallback)((e=>{e.preventDefault(),r?a():i(),t?.(e)}),[r,a,i,t]),...o}}const Nz=es((function(e,t){const n=Mz(e);return(0,r.createElement)(gs,{ref:t,...n})}),"NavigatorBackButton");const Dz=es((function(e,t){const n=Mz({...e,goToParent:!0});return(0,r.createElement)(gs,{ref:t,...n})}),"NavigatorToParentButton"),Az=()=>{};function Oz(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const zz=function({className:e,status:t="info",children:n,spokenMessage:o=n,onRemove:i=Az,isDismissible:a=!0,actions:s=[],politeness:l=Oz(t),__unstableHTML:d,onDismiss:f=Az}){!function(e,t){const n="string"==typeof e?e:(0,Vo.renderToString)(e);(0,Vo.useEffect)((()=>{n&&(0,zy.speak)(n,t)}),[n,t])}(o,l);const m=c()(e,"components-notice","is-"+t,{"is-dismissible":a});return d&&"string"==typeof n&&(n=(0,r.createElement)(Vo.RawHTML,null,n)),(0,r.createElement)("div",{className:m},(0,r.createElement)(vs,null,function(e){switch(e){case"warning":return(0,u.__)("Warning notice");case"info":return(0,u.__)("Information notice");case"error":return(0,u.__)("Error notice");default:return(0,u.__)("Notice")}}(t)),(0,r.createElement)("div",{className:"components-notice__content"},n,(0,r.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:o,noDefaultClasses:i=!1,onClick:a,url:s},l)=>{let u=o;return"primary"===o||i||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,r.createElement)(cy,{key:l,href:s,variant:u,onClick:s?void 0:a,className:c()("components-notice__action",e)},t)})))),a&&(0,r.createElement)(cy,{className:"components-notice__dismiss",icon:Xy,label:(0,u.__)("Close"),onClick:()=>{f(),i()}}))},Lz=()=>{};const Fz=function({notices:e,onRemove:t=Lz,className:n,children:o}){const i=e=>()=>t(e);return n=c()("components-notice-list",n),(0,r.createElement)("div",{className:n},o,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,r.createElement)(zz,{...n,key:e.id,onRemove:i(e.id)},e.content)})))};const Bz=function({label:e,children:t}){return(0,r.createElement)("div",{className:"components-panel__header"},e&&(0,r.createElement)("h2",null,e),t)};const jz=(0,Vo.forwardRef)((function({header:e,className:t,children:n},o){const i=c()(t,"components-panel");return(0,r.createElement)("div",{className:i,ref:o},e&&(0,r.createElement)(Bz,{label:e}),n)})),Vz=(0,r.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Hz=()=>{};const $z=(0,Vo.forwardRef)((({isOpened:e,icon:t,title:n,...o},i)=>n?(0,r.createElement)("h2",{className:"components-panel__body-title"},(0,r.createElement)(cy,{className:"components-panel__body-toggle","aria-expanded":e,ref:i,...o},(0,r.createElement)("span",{"aria-hidden":"true"},(0,r.createElement)(ay,{className:"components-panel__arrow",icon:e?Vz:jE})),n,t&&(0,r.createElement)(ay,{icon:t,className:"components-panel__icon",size:20}))):null)),Wz=(0,Vo.forwardRef)((function(e,t){const{buttonProps:n={},children:o,className:i,icon:a,initialOpen:s,onToggle:l=Hz,opened:u,title:f,scrollAfterOpen:m=!0}=e,[p,h]=GE(u,{initial:void 0===s||s,fallback:!1}),g=(0,Vo.useRef)(null),v=(0,d.useReducedMotion)()?"auto":"smooth",b=(0,Vo.useRef)();b.current=m,ai((()=>{p&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[p,v]);const y=c()("components-panel__body",i,{"is-opened":p});return(0,r.createElement)("div",{className:y,ref:(0,d.useMergeRefs)([g,t])},(0,r.createElement)($z,{icon:a,isOpened:Boolean(p),onClick:e=>{e.preventDefault();const t=!p;h(t),l(t)},title:f,...n}),"function"==typeof o?o({opened:Boolean(p)}):p&&o)})),Uz=Wz;const Gz=(0,Vo.forwardRef)((function({className:e,children:t},n){return(0,r.createElement)("div",{className:c()("components-panel__row",e),ref:n},t)})),qz=(0,r.createElement)(n.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,r.createElement)(n.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));const Yz=function(e){const{icon:t,children:n,label:o,instructions:i,className:a,notices:s,preview:l,isColumnLayout:u,withIllustration:f,...m}=e,[p,{width:h}]=(0,d.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=c()("components-placeholder",a,g,f?"has-illustration":null),b=c()("components-placeholder__fieldset",{"is-column-layout":u});return(0,Vo.useEffect)((()=>{i&&(0,zy.speak)(i)}),[i]),(0,r.createElement)("div",{...m,className:v},f?qz:null,p,s,l&&(0,r.createElement)("div",{className:"components-placeholder__preview"},l),(0,r.createElement)("div",{className:"components-placeholder__label"},(0,r.createElement)(ay,{icon:t}),o),!!i&&(0,r.createElement)("div",{className:"components-placeholder__instructions"},i),(0,r.createElement)("div",{className:b},n))},Kz=e=>e.every((e=>null!==e.parent));function Xz(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!Kz(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}const Zz=window.wp.htmlEntities;function Jz(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,Zz.decodeEntities)(e.name)},...Jz(e.children||[],t+1)]))}const Qz=function(e){const{label:t,noOptionLabel:n,onChange:o,selectedId:i,tree:a=[],...s}=Tv(e),l=(0,Vo.useMemo)((()=>[n&&{value:"",label:n},...Jz(a)].filter((e=>!!e))),[n,a]);return(0,r.createElement)($E,{label:t,options:l,onChange:o,value:i,...s})};function eL({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:o,selectedAuthorId:i,onChange:a}){if(!o)return null;const s=Xz(o);return(0,r.createElement)(Qz,{label:t,noOptionLabel:n,onChange:a,tree:s,selectedId:void 0!==i?String(i):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function tL({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:o,selectedCategoryId:i,onChange:a,...s}){const l=(0,Vo.useMemo)((()=>Xz(o)),[o]);return(0,r.createElement)(Qz,{label:t,noOptionLabel:n,onChange:a,tree:l,selectedId:void 0!==i?String(i):void 0,...s,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function nL(e){return"categoriesList"in e}function rL(e){return"categorySuggestions"in e}const oL=function({__next40pxDefaultSize:e=!1,authorList:t,selectedAuthorId:n,numberOfItems:o,order:i,orderBy:a,maxItems:s=100,minItems:l=1,onAuthorChange:c,onNumberOfItemsChange:d,onOrderChange:f,onOrderByChange:m,...p}){return(0,r.createElement)(zS,{spacing:"4",className:"components-query-controls"},[f&&m&&(0,r.createElement)(WE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,key:"query-controls-order-select",label:(0,u.__)("Order by"),value:`${a}/${i}`,options:[{label:(0,u.__)("Newest to oldest"),value:"date/desc"},{label:(0,u.__)("Oldest to newest"),value:"date/asc"},{label:(0,u.__)("A → Z"),value:"title/asc"},{label:(0,u.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==i&&f(n),t!==a&&m(t)}}),nL(p)&&p.categoriesList&&p.onCategoryChange&&(0,r.createElement)(tL,{__next40pxDefaultSize:e,key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,u.__)("Category"),noOptionLabel:(0,u._x)("All","categories"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),rL(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,r.createElement)(QA,{__next40pxDefaultSize:e,__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,u.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),c&&(0,r.createElement)(eL,{__next40pxDefaultSize:e,key:"query-controls-author-select",authorList:t,label:(0,u.__)("Author"),noOptionLabel:(0,u._x)("All","authors"),selectedAuthorId:n,onChange:c}),d&&(0,r.createElement)(E_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,key:"query-controls-range-control",label:(0,u.__)("Number of items"),value:o,onChange:d,min:l,max:s,required:!0})])},iL=(0,Vo.createContext)({store:void 0,disabled:void 0});const aL=(0,Vo.forwardRef)((function({value:e,children:t,...n},o){const{store:i,disabled:a}=(0,Vo.useContext)(iL),s=i?.useState("value"),l=void 0!==s&&s===e;return(0,r.createElement)(uE,{disabled:a,store:i,ref:o,value:e,render:(0,r.createElement)(cy,{variant:l?"primary":"secondary",...n})},t||e)})),sL=aL;const lL=(0,Vo.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:o,onChange:i,children:a,...s},l){const c=Yw({value:t,defaultValue:n,setValue:e=>{i?.(null!=e?e:void 0)}}),u=(0,Vo.useMemo)((()=>({store:c,disabled:o})),[c,o]);return(0,r.createElement)(iL.Provider,{value:u},(0,r.createElement)(eE,{store:c,render:(0,r.createElement)(Mk,null,a),"aria-label":e,ref:l,...s}))})),cL=lL;const uL=function e(t){const{label:n,className:o,selected:i,help:a,onChange:s,hideLabelFromVision:l,options:u=[],...f}=t,m=`inspector-radio-control-${(0,d.useInstanceId)(e)}`,p=e=>s(e.target.value);return u?.length?(0,r.createElement)(ty,{__nextHasNoMarginBottom:!0,label:n,id:m,hideLabelFromVision:l,help:a,className:c()(o,"components-radio-control")},(0,r.createElement)(zS,{spacing:1},u.map(((e,t)=>(0,r.createElement)("div",{key:`${m}-${t}`,className:"components-radio-control__option"},(0,r.createElement)("input",{id:`${m}-${t}`,className:"components-radio-control__input",type:"radio",name:m,value:e.value,onChange:p,checked:e.value===i,"aria-describedby":a?`${m}__help`:void 0,...f}),(0,r.createElement)("label",{className:"components-radio-control__label",htmlFor:`${m}-${t}`},e.label)))))):null};var dL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fL=function(){return fL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fL.apply(this,arguments)},mL={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},pL={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},hL={width:"20px",height:"20px",position:"absolute"},gL={top:fL(fL({},mL),{top:"-5px"}),right:fL(fL({},pL),{left:void 0,right:"-5px"}),bottom:fL(fL({},mL),{top:void 0,bottom:"-5px"}),left:fL(fL({},pL),{left:"-5px"}),topRight:fL(fL({},hL),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:fL(fL({},hL),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:fL(fL({},hL),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:fL(fL({},hL),{left:"-10px",top:"-10px",cursor:"nw-resize"})},vL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return dL(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:fL(fL({position:"absolute",userSelect:"none"},gL[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),bL=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yL=function(){return yL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yL.apply(this,arguments)},xL={width:"auto",height:"auto"},wL=function(e,t,n){return Math.max(Math.min(e,n),t)},EL=function(e,t){return Math.round(e/t)*t},_L=function(e,t){return new RegExp(e,"i").test(t)},SL=function(e){return Boolean(e.touches&&e.touches.length)},CL=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},kL=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},PL=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},TL=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],IL="__resizable_base__",RL=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(IL):t.className+=IL,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return bL(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||xL},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return kL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?kL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?kL(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&_L("left",i),s=o&&_L("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,m=c||0,p=u||0;return _L("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(f=(d-p)/this.ratio+m)),_L("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(f=(d-p)/this.ratio+m)),_L("bottom",i)&&(f=a.height+(t-a.y)*r/n,l&&(d=(f-m)*this.ratio+p)),_L("top",i)&&(f=a.height-(t-a.y)*r/n,l&&(d=(f-m)*this.ratio+p)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,m=s||0;if(i){var p=(u-f)*this.ratio+m,h=(d-f)*this.ratio+m,g=(l-m)/this.ratio+f,v=(c-m)/this.ratio+f,b=Math.max(l,p),y=Math.min(c,h),x=Math.max(u,g),w=Math.min(d,v);e=wL(e,b,y),t=wL(t,x,w)}else e=wL(e,l,c),t=wL(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&SL(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:yL(yL({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&SL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=SL(e)?e.touches[0].clientX:e.clientX,l=SL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,m=c.height,p=this.getParentSize(),h=function(e,t,n,r,o,i,a){return r=PL(r,e.width,t,n),o=PL(o,e.height,t,n),i=PL(i,e.width,t,n),a=PL(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(p,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=h.maxWidth,o=h.maxHeight,i=h.minWidth,a=h.minHeight;var g=this.calculateNewSizeFromDirection(s,l),v=g.newHeight,b=g.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=CL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=CL(v,this.props.snap.y,this.props.snapGap));var x=this.calculateNewSizeFromAspectRatio(b,v,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=x.newWidth,v=x.newHeight,this.props.grid){var w=EL(b,this.props.grid[0]),E=EL(v,this.props.grid[1]),_=this.props.snapGap||0;b=0===_||Math.abs(w-b)<=_?w:b,v=0===_||Math.abs(E-v)<=_?E:v}var S={width:b-d.width,height:v-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/p.width*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(m&&"string"==typeof m)if(m.endsWith("%"))v=v/p.height*100+"%";else if(m.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(m.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var C={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?C.flexBasis=C.width:"column"===this.flexDir&&(C.flexBasis=C.height),(0,tr.flushSync)((function(){t.setState(C)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:yL(yL({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,o=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var c=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(vL,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},l&&l[t]?l[t]:null):null}));return r.createElement("div",{className:s,style:a},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==TL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=yL(yL(yL({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return r.createElement(o,yL({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);const ML=()=>{},NL={bottom:"bottom",corner:"corner"};function DL({axis:e,fadeTimeout:t=180,onResize:n=ML,position:r=NL.bottom,showPx:o=!1}){const[i,a]=(0,d.useResizeObserver)(),s=!!e,[l,c]=(0,Vo.useState)(!1),[u,f]=(0,Vo.useState)(!1),{width:m,height:p}=a,h=(0,Vo.useRef)(p),g=(0,Vo.useRef)(m),v=(0,Vo.useRef)(),b=(0,Vo.useCallback)((()=>{v.current&&window.clearTimeout(v.current),v.current=window.setTimeout((()=>{s||(c(!1),f(!1))}),t)}),[t,s]);(0,Vo.useEffect)((()=>{if(!(null!==m||null!==p))return;const e=m!==g.current,t=p!==h.current;if(e||t){if(m&&!g.current&&p&&!h.current)return g.current=m,void(h.current=p);e&&(c(!0),g.current=m),t&&(f(!0),h.current=p),n({width:m,height:p}),b()}}),[m,p,n,b]);const y=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=NL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===NL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:p,moveX:l,moveY:u,position:r,showPx:o,width:m});return{label:y,resizeListener:i}}const AL=ps("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),OL=ps("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),zL=ps("div",{target:"e1wq7y4k1"})("background:",Is.theme.foreground,";border-radius:2px;box-sizing:border-box;font-family:",Wb("default.fontFamily"),";font-size:12px;color:",Is.theme.foregroundInverted,";padding:4px 8px;position:relative;"),LL=ps(cv,{target:"e1wq7y4k0"})("&&&{color:",Is.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const FL=(0,Vo.forwardRef)((function({label:e,position:t=NL.corner,zIndex:n=1e3,...o},i){const a=!!e,s=t===NL.bottom,l=t===NL.corner;if(!a)return null;let c={opacity:a?1:void 0,zIndex:n},d={};return s&&(c={...c,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(c={...c,position:"absolute",top:4,right:(0,u.isRTL)()?void 0:4,left:(0,u.isRTL)()?4:void 0}),(0,r.createElement)(OL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:i,style:c,...o},(0,r.createElement)(zL,{className:"components-resizable-tooltip__tooltip",style:d},(0,r.createElement)(LL,{as:"span"},e)))})),BL=FL,jL=()=>{};const VL=(0,Vo.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:o=!0,labelRef:i,onResize:a=jL,position:s=NL.bottom,showPx:l=!0,zIndex:u=1e3,...d},f){const{label:m,resizeListener:p}=DL({axis:e,fadeTimeout:n,onResize:a,showPx:l,position:s});if(!o)return null;const h=c()("components-resize-tooltip",t);return(0,r.createElement)(AL,{"aria-hidden":"true",className:h,ref:f,...d},p,(0,r.createElement)(BL,{"aria-hidden":d["aria-hidden"],label:m,position:s,ref:i,zIndex:u}))})),HL=VL,$L="components-resizable-box__handle",WL="components-resizable-box__side-handle",UL="components-resizable-box__corner-handle",GL={top:c()($L,WL,"components-resizable-box__handle-top"),right:c()($L,WL,"components-resizable-box__handle-right"),bottom:c()($L,WL,"components-resizable-box__handle-bottom"),left:c()($L,WL,"components-resizable-box__handle-left"),topLeft:c()($L,UL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:c()($L,UL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:c()($L,UL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:c()($L,UL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},qL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},YL={top:qL,right:qL,bottom:qL,left:qL,topLeft:qL,topRight:qL,bottomRight:qL,bottomLeft:qL};const KL=(0,Vo.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:o=!1,__experimentalTooltipProps:i={},...a},s){return(0,r.createElement)(RL,{className:c()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:GL,handleStyles:YL,ref:s,...a},t,o&&(0,r.createElement)(HL,{...i}))}));const XL=function({naturalWidth:e,naturalHeight:t,children:n,isInline:o=!1}){if(1!==Vo.Children.count(n))return null;const i=o?"span":"div";let a;return e&&t&&(a=`${e} / ${t}`),(0,r.createElement)(i,{className:"components-responsive-wrapper"},(0,r.createElement)("div",null,(0,Vo.cloneElement)(n,{className:c()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:a}})))},ZL=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};const JL=function({html:e="",title:t="",type:n,styles:o=[],scripts:i=[],onFocus:a,tabIndex:s}){const l=(0,Vo.useRef)(),[c,u]=(0,Vo.useState)(0),[f,m]=(0,Vo.useState)(0);function p(a=!1){if(!function(){try{return!!l.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:s,ownerDocument:c}=l.current;if(!a&&null!==s?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,r.createElement)("html",{lang:c.documentElement.lang,className:n},(0,r.createElement)("head",null,(0,r.createElement)("title",null,t),(0,r.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),o.map(((e,t)=>(0,r.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,r.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,r.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${ZL.toString()})();`}}),i.map((e=>(0,r.createElement)("script",{key:e,src:e})))));s.open(),s.write("<!DOCTYPE html>"+(0,Vo.renderToString)(u)),s.close()}return(0,Vo.useEffect)((()=>{function e(){p(!1)}function t(e){const t=l.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),m(n.height))}p();const n=l.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.removeEventListener("message",t)}}),[]),(0,Vo.useEffect)((()=>{p()}),[t,o,i]),(0,Vo.useEffect)((()=>{p(!0)}),[e,n]),(0,r.createElement)("iframe",{ref:(0,d.useMergeRefs)([l,(0,d.useFocusableIframe)()]),title:t,tabIndex:s,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:a,width:Math.ceil(c),height:Math.ceil(f)})};const QL=(0,Vo.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:o="polite",actions:i=[],onRemove:a,icon:s=null,explicitDismiss:l=!1,onDismiss:d,listRef:f},m){function p(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),a?.()}!function(e,t){const n="string"==typeof e?e:(0,Vo.renderToString)(e);(0,Vo.useEffect)((()=>{n&&(0,zy.speak)(n,t)}),[n,t])}(n,o);const h=(0,Vo.useRef)({onDismiss:d,onRemove:a});(0,Vo.useLayoutEffect)((()=>{h.current={onDismiss:d,onRemove:a}})),(0,Vo.useEffect)((()=>{const e=setTimeout((()=>{l||(h.current.onDismiss?.(),h.current.onRemove?.())}),1e4);return()=>clearTimeout(e)}),[l]);const g=c()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!l});i&&i.length>1&&(i=[i[0]]);const v=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,r.createElement)("div",{ref:m,className:g,onClick:l?void 0:p,tabIndex:0,role:l?"":"button",onKeyPress:l?void 0:p,"aria-label":l?"":(0,u.__)("Dismiss this notice")},(0,r.createElement)("div",{className:v},s&&(0,r.createElement)("div",{className:"components-snackbar__icon"},s),t,i.map((({label:e,onClick:t,url:n},o)=>(0,r.createElement)(cy,{key:o,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),a?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),l&&(0,r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:p,onKeyPress:p},"✕")))})),eF=QL,tF={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{type:"tween",duration:.3,ease:[0,0,.2,1]},opacity:{type:"tween",duration:.25,delay:.05,ease:[0,0,.2,1]}}},exit:{opacity:0,transition:{type:"tween",duration:.1,ease:[0,0,.2,1]}}};const nF=function({notices:e,className:t,children:n,onRemove:o}){const i=(0,Vo.useRef)(null),a=(0,d.useReducedMotion)();t=c()("components-snackbar-list",t);const s=e=>()=>o?.(e.id);return(0,r.createElement)("div",{className:t,tabIndex:-1,ref:i},n,(0,r.createElement)(Ch,null,e.map((e=>{const{content:t,...n}=e;return(0,r.createElement)(vh.div,{layout:!a,initial:"init",animate:"open",exit:"exit",key:e.id,variants:a?void 0:tF},(0,r.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,r.createElement)(eF,{...n,onRemove:s(e),listRef:i},e.content)))}))))};const rF=Ss`
|
||
from {
|
||
transform: rotate(0deg);
|
||
}
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
`,oF=ps("svg",{target:"ea4tfvq2"})("width:",Gg.spinnerSize,"px;height:",Gg.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Is.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),iF={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},aF=ps("circle",{target:"ea4tfvq1"})(iF,";stroke:",Is.gray[300],";"),sF=ps("path",{target:"ea4tfvq0"})(iF,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",rF,";");const lF=(0,Vo.forwardRef)((function({className:e,...t},n){return(0,r.createElement)(oF,{className:c()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,r.createElement)(aF,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,r.createElement)(sF,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));const cF=es((function(e,t){const n=cP(e);return(0,r.createElement)(gs,{...n,ref:t})}),"Surface");function uF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Zs(M(R({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=Vs(),i=Rt(M(R({},r.getState()),{selectedId:V(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:V(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return Mt(i,(()=>At(i,["moves"],(()=>{const{activeId:e,selectOnMove:t}=i.getState();if(!t)return;if(!e)return;const n=r.item(e);n&&(n.dimmed||n.disabled||i.setState("selectedId",n.id))})))),Mt(i,(()=>Ot(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),Mt(i,(()=>At(i,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=i.getState(),o=r.item(t);if(!o||o.disabled||o.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));i.setState("selectedId",null==e?void 0:e.id)}else i.setState("selectedId",o.id)})))),Mt(i,(()=>At(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return At(o,["renderedItems"],(e=>{const n=e.renderedItems,r=n.some((e=>!e.tabId));r&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&o.renderItem(M(R({},e),{tabId:r.id}))}))}))})))),M(R(R({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function dF(e={}){const[t,n]=$t(uF,e);return function(e,t,n){Ht(e=Js(e,t,n),n,"selectedId","setSelectedId"),Ht(e,n,"selectOnMove");const[o,i]=$t((()=>e.panels),{});return Ce(i,[e,i]),(0,r.useMemo)((()=>w(x({},e),{panels:o})),[e,o])}(t,n,e)}var fF=He([Ct],[kt]),mF=(fF.useContext,fF.useScopedContext),pF=fF.useProviderContext,hF=(fF.ContextProvider,fF.ScopedContextProvider),gF=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=pF();F(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Te(r,(e=>(0,Le.jsx)(hF,{value:n,children:e})),[n]),r=x({role:"tablist","aria-orientation":i},r),r=tl(x({store:n},r))})),vF=Fe((e=>je("div",gF(e))));var bF=Ve((e=>{var t=e,{store:n,accessibleWhenDisabled:o=!0,getItem:i}=t,a=E(t,["store","accessibleWhenDisabled","getItem"]);const s=mF();F(n=n||s,!1);const l=_e(),c=a.id||l,u=j(a),d=(0,r.useCallback)((e=>{const t=w(x({},e),{dimmed:u});return i?i(t):t}),[u,i]),f=a.onClick,m=we((e=>{null==f||f(e),e.defaultPrevented||null==n||n.setSelectedId(c)})),p=n.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===c)))?void 0:t.id})),h=n.useState((e=>!!c&&e.selectedId===c));return a=w(x({id:c,role:"tab","aria-selected":h,"aria-controls":p||void 0},a),{onClick:m}),a=Gt(w(x({store:n},a),{accessibleWhenDisabled:o,getItem:d,shouldRegisterItem:!!l&&a.shouldRegisterItem}))})),yF=Be((e=>je("button",bF(e))));var xF=Ve((e=>{var t=e,{store:n,tabId:o,getItem:i}=t,a=E(t,["store","tabId","getItem"]);const s=pF();F(n=n||s,!1);const l=(0,r.useRef)(null),c=_e(a.id),[u,d]=(0,r.useState)(!1);(0,r.useEffect)((()=>{const e=l.current;if(!e)return;const t=qe(e);d(!!t.length)}),[]);const f=(0,r.useCallback)((e=>{const t=w(x({},e),{id:c||e.id,tabId:o});return i?i(t):t}),[c,o,i]);a=Te(a,(e=>(0,Le.jsx)(hF,{value:n,children:e})),[n]);const m=n.panels.useState((()=>{var e;return o||(null==(e=null==n?void 0:n.panels.item(c))?void 0:e.tabId)})),p=n.useState((e=>!!m&&e.selectedId===m));a=w(x({id:c,role:"tabpanel","aria-labelledby":m||void 0},a),{ref:Ee(l,a.ref)});const h=Xt({open:p});return a=ct(x({focusable:!u},a)),a=Kn(x({store:h},a)),a=vt(w(x({store:n.panels},a),{getItem:f}))})),wF=Fe((e=>je("div",xF(e))));const EF=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},_F=(0,Vo.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:o=!0,initialTabName:i,orientation:a="horizontal",activeClass:s="is-active",onSelect:l},u)=>{const f=(0,d.useInstanceId)(_F,"tab-panel"),m=(0,Vo.useCallback)((e=>{if(void 0!==e)return`${f}-${e}`}),[f]),p=dF({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>m(t.name)===e));if(t?.disabled||t===v)return;const r=EF(e);void 0!==r&&l?.(r)},orientation:a,selectOnMove:o,defaultSelectedId:m(i)}),h=EF(p.useState("selectedId")),g=(0,Vo.useCallback)((e=>{p.setState("selectedId",m(e))}),[m,p]),v=n.find((({name:e})=>e===h)),b=(0,d.usePrevious)(h);return(0,Vo.useEffect)((()=>{b!==h&&h===i&&h&&l?.(h)}),[h,i,l,b]),(0,Vo.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===i));if(!i||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,i,f,g]),(0,Vo.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g,f]),(0,r.createElement)("div",{className:e,ref:u},(0,r.createElement)(vF,{store:p,className:"components-tab-panel__tabs"},n.map((e=>(0,r.createElement)(yF,{key:e.name,id:m(e.name),className:c()("components-tab-panel__tabs-item",e.className,{[s]:e.name===h}),disabled:e.disabled,"aria-controls":`${m(e.name)}-view`,render:(0,r.createElement)(cy,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon})},!e.icon&&e.title)))),v&&(0,r.createElement)(wF,{id:`${m(v.name)}-view`,store:p,tabId:m(v.name),className:"components-tab-panel__tab-content"},t(v)))})),SF=_F;const CF=(0,Vo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:o=!1,label:i,hideLabelFromVision:a,value:s,help:l,id:u,className:f,onChange:m,type:p="text",...h}=e,g=(0,d.useInstanceId)(CF,"inspector-text-control",u);return(0,r.createElement)(ty,{__nextHasNoMarginBottom:n,label:i,hideLabelFromVision:a,id:g,help:l,className:f},(0,r.createElement)("input",{className:c()("components-text-control__input",{"is-next-40px-default-size":o}),type:p,id:g,value:s,onChange:e=>m(e.target.value),"aria-describedby":l?g+"__help":void 0,ref:t,...h}))})),kF=CF,PF=_s("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Gg.radiusBlockUi,";border:",Gg.borderWidth," solid ",Is.ui.border,";",""),TF=_s("border-color:",Is.theme.accent,";box-shadow:0 0 0 calc( ",Gg.borderWidthFocus," - ",Gg.borderWidth," ) ",Is.theme.accent,";outline:2px solid transparent;",""),IF={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},RF=_s("display:block;font-family:",Wb("default.fontFamily"),";padding:6px 8px;",PF,";font-size:",Wb("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${IF["small"]})`,"{font-size:",Wb("default.fontSize"),";line-height:normal;}&:focus{",TF,";}&::-webkit-input-placeholder{color:",Is.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Is.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Is.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Is.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Is.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Is.ui.lightGrayPlaceholder,";}}","");const MF=ps("textarea",{target:"e1w5nnrk0"})("width:100%;",RF,";");const NF=(0,Vo.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,value:a,help:s,onChange:l,rows:c=4,className:u,...f}=e,m=`inspector-textarea-control-${(0,d.useInstanceId)(NF)}`;return(0,r.createElement)(ty,{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,id:m,help:s,className:u},(0,r.createElement)(MF,{className:"components-textarea-control__input",id:m,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?m+"__help":void 0,value:a,ref:t,...f}))})),DF=NF,AF=e=>{const{text:t="",highlight:n=""}=e,o=n.trim();if(!o)return(0,r.createElement)(r.Fragment,null,t);const i=new RegExp(`(${Vy(o)})`,"gi");return(0,Vo.createInterpolateElement)(t.replace(i,"<mark>$&</mark>"),{mark:(0,r.createElement)("mark",null)})},OF=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{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"}));const zF=function(e){const{children:t}=e;return(0,r.createElement)("div",{className:"components-tip"},(0,r.createElement)(BE,{icon:OF}),(0,r.createElement)("p",null,t))};const LF=function e({__nextHasNoMarginBottom:t,label:n,checked:o,help:i,className:a,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,d.useInstanceId)(e)}`,u=Ja()("components-toggle-control",a,!t&&_s({marginBottom:Rh(3)},"",""));let f,m;return i&&("function"==typeof i?void 0!==o&&(m=i(o)):m=i,m&&(f=c+"__help")),(0,r.createElement)(ty,{id:c,help:m,className:u,__nextHasNoMarginBottom:!0},(0,r.createElement)(_y,{justify:"flex-start",spacing:3},(0,r.createElement)(qA,{id:c,checked:o,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,r.createElement)(Vh,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};var FF=He([Ct],[kt]),BF=FF.useContext,jF=(FF.useScopedContext,FF.useProviderContext),VF=(FF.ContextProvider,FF.ScopedContextProvider),HF=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=BF();return r=Gt(x({store:n=n||o},r))})),$F=Be((e=>je("button",HF(e))));const WF=(0,Vo.createContext)(void 0);const UF=(0,Vo.forwardRef)((function({children:e,as:t,...n},o){const i=(0,Vo.useContext)(WF),a="function"==typeof e;if(!a&&!t)return null;const s={...n,ref:o,"data-toolbar-item":!0};if(!i)return t?(0,r.createElement)(t,{...s},e):a?e(s):null;const l=a?e:t&&(0,r.createElement)(t,null,e);return(0,r.createElement)($F,{...s,store:i,render:l})})),GF=({children:e,className:t})=>(0,r.createElement)("div",{className:t},e);const qF=(0,Vo.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:o,isActive:i,isDisabled:a,title:s,...l},u){return(0,Vo.useContext)(WF)?(0,r.createElement)(UF,{className:c()("components-toolbar-button",t),...o,...l,ref:u},(t=>(0,r.createElement)(cy,{label:s,isPressed:i,disabled:a,...t},e))):(0,r.createElement)(GF,{className:n},(0,r.createElement)(cy,{ref:u,icon:l.icon,label:s,shortcut:l.shortcut,"data-subscript":l.subscript,onClick:e=>{e.stopPropagation(),l.onClick&&l.onClick(e)},className:c()("components-toolbar__control",t),isPressed:i,disabled:a,"data-toolbar-item":!0,...o,...l},e))})),YF=({className:e,children:t,...n})=>(0,r.createElement)("div",{className:e,...n},t);const KF=function({controls:e=[],toggleProps:t,...n}){const o=t=>(0,r.createElement)(KT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,Vo.useContext)(WF)?(0,r.createElement)(UF,{...t},o):o(t)};const XF=function({controls:e=[],children:t,className:n,isCollapsed:o,title:i,...a}){const s=(0,Vo.useContext)(WF);if(!(e&&e.length||t))return null;const l=c()(s?"components-toolbar-group":"components-toolbar",n);let u;var d;return d=e,u=Array.isArray(d)&&Array.isArray(d[0])?e:[e],o?(0,r.createElement)(KF,{label:i,controls:u,className:l,children:t,...a}):(0,r.createElement)(YF,{className:l,...a},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,r.createElement)(qF,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":void 0,...e}))))),t)};function ZF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return Zs(M(R({},e),{orientation:V(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:V(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}function JF(e={}){const[t,n]=$t(ZF,e);return function(e,t,n){return Js(e,t,n)}(t,n,e)}var QF=Ve((e=>{var t=e,{store:n,orientation:r,virtualFocus:o,focusLoop:i,rtl:a}=t,s=E(t,["store","orientation","virtualFocus","focusLoop","rtl"]);const l=jF(),c=JF({store:n=n||l,orientation:r,virtualFocus:o,focusLoop:i,rtl:a}),u=c.useState((e=>"both"===e.orientation?void 0:e.orientation));return s=Te(s,(e=>(0,Le.jsx)(VF,{value:c,children:e})),[c]),s=x({role:"toolbar","aria-orientation":u},s),s=tl(x({store:c},s))})),eB=Fe((e=>je("div",QF(e))));const tB=(0,Vo.forwardRef)((function({label:e,...t},n){const o=JF({focusLoop:!0,rtl:(0,u.isRTL)()});return(0,r.createElement)(WF.Provider,{value:o},(0,r.createElement)(eB,{ref:n,"aria-label":e,store:o,...t}))}));const nB=(0,Vo.forwardRef)((function({className:e,label:t,variant:n,...o},i){const a=void 0!==n,s=(0,Vo.useMemo)((()=>a?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}}),[a]);if(!t){$o()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:t,...n}=o;return(0,r.createElement)(XF,{isCollapsed:!1,...n,className:e})}const l=c()("components-accessible-toolbar",e,n&&`is-${n}`);return(0,r.createElement)(ci,{value:s},(0,r.createElement)(tB,{className:l,label:t,ref:i,...o}))}));const rB=(0,Vo.forwardRef)((function(e,t){return(0,Vo.useContext)(WF)?(0,r.createElement)(UF,{ref:t,...e.toggleProps},(t=>(0,r.createElement)(KT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,r.createElement)(KT,{...e})}));const oB={columns:e=>_s("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:_s("column-gap:",Rh(2),";row-gap:",Rh(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},iB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},aB=_s(oB.item.fullWidth," gap:",Rh(2),";.components-dropdown-menu{margin:",Rh(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Rh(6),";}",""),sB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},lB=_s(oB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Gb,"{margin-bottom:0;",qb,":last-child{margin-bottom:0;}}",Zb,"{margin-bottom:0;}&& ",wv,"{label{line-height:1.4em;}}",""),cB={name:"eivff4",styles:"display:none"},uB={name:"16gsvie",styles:"min-width:200px"},dB=ps("span",{target:"ews648u0"})("color:",Is.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",Yh({marginLeft:Rh(3)})," text-transform:uppercase;"),fB=_s("color:",Is.gray[900],";&&[aria-disabled='true']{color:",Is.gray[700],";opacity:1;&:hover{color:",Is.gray[700],";}",dB,"{opacity:0.3;}}",""),mB=()=>{},pB=(0,Vo.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:mB,deregisterPanelItem:mB,flagItemCustomization:mB,registerResetAllFilter:mB,deregisterResetAllFilter:mB,areAllOptionalControlsHidden:!0}),hB=()=>(0,Vo.useContext)(pB);const gB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const o=(0,r.createElement)(dB,{"aria-hidden":!0},(0,u.__)("Reset"));return(0,r.createElement)(r.Fragment,null,t.map((([t,i])=>i?(0,r.createElement)(fO,{key:t,className:e,role:"menuitem",label:(0,u.sprintf)((0,u.__)("Reset %s"),t),onClick:()=>{n(t),(0,zy.speak)((0,u.sprintf)((0,u.__)("%s reset to default"),t),"assertive")},suffix:o},t):(0,r.createElement)(fO,{key:t,icon:IS,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},vB=({items:e,toggleItem:t})=>e.length?(0,r.createElement)(r.Fragment,null,e.map((([e,n])=>{const o=n?(0,u.sprintf)((0,u.__)("Hide and reset %s"),e):(0,u.sprintf)((0,u.__)("Show %s"),e);return(0,r.createElement)(fO,{key:e,icon:n?IS:null,isSelected:n,label:o,onClick:()=>{n?(0,zy.speak)((0,u.sprintf)((0,u.__)("%s hidden and reset to default"),e),"assertive"):(0,zy.speak)((0,u.sprintf)((0,u.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,bB=es(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:o,dropdownMenuClassName:i,hasMenuItems:a,headingClassName:s,headingLevel:l=2,label:c,menuItems:d,resetAll:f,toggleItem:m,dropdownMenuProps:p,...h}=function(e){const{className:t,headingLevel:n=2,...r}=Qa(e,"ToolsPanelHeader"),o=Ja(),i=(0,Vo.useMemo)((()=>o(aB,t)),[t,o]),a=(0,Vo.useMemo)((()=>o(uB)),[o]),s=(0,Vo.useMemo)((()=>o(sB)),[o]),l=(0,Vo.useMemo)((()=>o(fB)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=hB();return{...r,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:a,hasMenuItems:u,headingClassName:s,headingLevel:n,menuItems:c,className:i}}(e);if(!c)return null;const g=Object.entries(d?.default||{}),v=Object.entries(d?.optional||{}),b=n?Jh:jP,y=(0,u.sprintf)((0,u._x)("%s options","Button label to reveal tool panel options"),c),x=n?(0,u.__)("All options are currently hidden"):void 0,w=[...g,...v].some((([,e])=>e));return(0,r.createElement)(_y,{...h,ref:t},(0,r.createElement)(BS,{level:l,className:s},c),a&&(0,r.createElement)(KT,{...p,icon:b,label:y,menuProps:{className:i},toggleProps:{isSmall:!0,describedBy:x}},(()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(uO,{label:c},(0,r.createElement)(gB,{items:g,toggleItem:m,itemClassName:o}),(0,r.createElement)(vB,{items:v,toggleItem:m})),(0,r.createElement)(uO,null,(0,r.createElement)(fO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,zy.speak)((0,u.__)("All options reset"),"assertive"))}},(0,u.__)("Reset all")))))))}),"ToolsPanelHeader"),yB=bB,xB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},wB=e=>e&&0===Object.keys(e).length;function EB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:a=!1,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l,...c}=Qa(e,"ToolsPanel"),u=(0,Vo.useRef)(!1),d=u.current;(0,Vo.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[f,m]=(0,Vo.useState)([]),[p,h]=(0,Vo.useState)([]),[g,v]=(0,Vo.useState)([]),b=(0,Vo.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),h((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,h]),y=(0,Vo.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,Vo.useCallback)((e=>{v((t=>[...t,e]))}),[v]),w=(0,Vo.useCallback)((e=>{v((t=>t.filter((t=>t!==e))))}),[v]),[E,_]=(0,Vo.useState)({default:{},optional:{}});(0,Vo.useEffect)((()=>{_((e=>xB({panelItems:f,shouldReset:!1,currentMenuItems:e,menuItemOrder:p})))}),[f,_,p]);const S=(0,Vo.useCallback)(((e,t="default")=>{_((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[_]),[C,k]=(0,Vo.useState)(!1);(0,Vo.useEffect)((()=>{if(wB(E?.default)&&!wB(E?.optional)){const e=!Object.entries(E.optional).some((([,e])=>e));k(e)}}),[E,k]);const P=Ja(),T=(0,Vo.useMemo)((()=>{const e=i&&_s(">div:not( :first-of-type ){display:grid;",oB.columns(2)," ",oB.spacing," ",oB.item.fullWidth,";}","");const n=wB(E?.default)&&C&&iB;return P((e=>_s(oB.columns(e)," ",oB.spacing," border-top:",Gg.borderWidth," solid ",Is.gray[300],";margin-top:-1px;padding:",Rh(4),";",""))(2),e,n,t)}),[C,t,P,i,E]),I=(0,Vo.useCallback)((e=>{const t=f.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...E,[n]:{...E[n],[e]:!E[n][e]}};_(r)}),[E,f,_]),R=(0,Vo.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=xB({panelItems:f,menuItemOrder:p,shouldReset:!0});_(e)}),[f,g,r,_,p]),M=e=>{const t=E.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},N=M(f),D=M([...f].reverse());return{...c,headingLevel:n,panelContext:(0,Vo.useMemo)((()=>({areAllOptionalControlsHidden:C,deregisterPanelItem:y,deregisterResetAllFilter:w,firstDisplayedItem:N,flagItemCustomization:S,hasMenuItems:!!f.length,isResetting:u.current,lastDisplayedItem:D,menuItems:E,panelId:o,registerPanelItem:b,registerResetAllFilter:x,shouldRenderPlaceholderItems:a,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l})),[C,y,w,N,S,D,E,o,f,x,b,a,s,l]),resetAllItems:R,toggleItem:I,className:T}}const _B=es(((e,t)=>{const{children:n,label:o,panelContext:i,resetAllItems:a,toggleItem:s,headingLevel:l,dropdownMenuProps:c,...u}=EB(e);return(0,r.createElement)(MC,{...u,columns:2,ref:t},(0,r.createElement)(pB.Provider,{value:i},(0,r.createElement)(yB,{label:o,resetAll:a,toggleItem:s,headingLevel:l,dropdownMenuProps:c}),n))}),"ToolsPanel"),SB=()=>{};const CB=es(((e,t)=>{const{children:n,isShown:o,shouldRenderPlaceholder:i,...a}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:a=SB,onDeselect:s,onSelect:l,...c}=Qa(e,"ToolsPanelItem"),{panelId:u,menuItems:f,registerResetAllFilter:m,deregisterResetAllFilter:p,registerPanelItem:h,deregisterPanelItem:g,flagItemCustomization:v,isResetting:b,shouldRenderPlaceholderItems:y,firstDisplayedItem:x,lastDisplayedItem:w,__experimentalFirstVisibleItemClass:E,__experimentalLastVisibleItemClass:_}=hB(),S=(0,Vo.useCallback)(n,[i]),C=(0,Vo.useCallback)(a,[i]),k=(0,d.usePrevious)(u),P=u===i||null===u;(0,Vo.useLayoutEffect)((()=>(P&&null!==k&&h({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===k&&u||u===i)&&g(o)})),[u,P,r,o,S,i,k,h,g]),(0,Vo.useEffect)((()=>(P&&m(C),()=>{P&&p(C)})),[m,p,C,P]);const T=r?"default":"optional",I=f?.[T]?.[o],R=(0,d.usePrevious)(I),M=void 0!==f?.[T]?.[o],N=n(),D=(0,d.usePrevious)(N),A=N&&!D;(0,Vo.useEffect)((()=>{A&&v(o,T)}),[A,T,o,v]),(0,Vo.useEffect)((()=>{M&&!b&&P&&(!I||N||R||l?.(),!I&&R&&s?.())}),[P,I,M,b,N,R,l,s]);const O=r?void 0!==f?.[T]?.[o]:I,z=Ja(),L=(0,Vo.useMemo)((()=>{const e=y&&!O;return z(lB,e&&cB,!e&&t,x===o&&E,w===o&&_)}),[O,y,t,z,x,w,E,_,o]);return{...c,isShown:O,shouldRenderPlaceholder:y,className:L}}(e);return o?(0,r.createElement)(gs,{...a,ref:t},n):i?(0,r.createElement)(gs,{...a,ref:t}):null}),"ToolsPanelItem"),kB=CB,PB=(0,Vo.createContext)(void 0),TB=PB.Provider;function IB({children:e}){const[t,n]=(0,Vo.useState)(),o=(0,Vo.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,r.createElement)(TB,{value:o},e)}function RB(e){return FT.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const MB=(0,Vo.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:o=(()=>{}),applicationAriaLabel:i,...a},s){const l=(0,Vo.useCallback)((e=>{const{keyCode:r,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![Ly.UP,Ly.DOWN,Ly.LEFT,Ly.RIGHT,Ly.HOME,Ly.END].includes(r))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=RB(u),f=d.indexOf(l),m=0===f,p=m&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&r===Ly.RIGHT;if([Ly.LEFT,Ly.RIGHT].includes(r)){let o;if(o=r===Ly.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),m){if(r===Ly.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}RB(o)?.[0]?.focus()}if(r===Ly.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=RB(u);n.length>0&&n[o]?.focus()}return void e.preventDefault()}if(p)return;d[o].focus(),e.preventDefault()}else if([Ly.UP,Ly.DOWN].includes(r)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=r===Ly.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=RB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),o(e,u,t[i]),e.preventDefault()}else if([Ly.HOME,Ly.END].includes(r)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=r===Ly.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=RB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),o(e,u,t[i]),e.preventDefault()}}),[t,n,o]);return(0,r.createElement)(IB,null,(0,r.createElement)("div",{role:"application","aria-label":i},(0,r.createElement)("table",{...a,role:"treegrid",onKeyDown:l,ref:s},(0,r.createElement)("tbody",null,e))))})),NB=MB;const DB=(0,Vo.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:o,isExpanded:i,...a},s){return(0,r.createElement)("tr",{...a,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":o,"aria-expanded":i},e)})),AB=(0,Vo.forwardRef)((function({children:e,as:t,...n},o){const i=(0,Vo.useRef)(),a=o||i,{lastFocusedElement:s,setLastFocusedElement:l}=(0,Vo.useContext)(PB);let c;s&&(c=s===("current"in a?a.current:void 0)?0:-1);const u={ref:a,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,r.createElement)(t,{...u},e):null}));const OB=(0,Vo.forwardRef)((function({children:e,...t},n){return(0,r.createElement)(AB,{ref:n,...t},e)}));const zB=(0,Vo.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},o){return(0,r.createElement)("td",{...n,role:"gridcell"},t?(0,r.createElement)(r.Fragment,null,e):(0,r.createElement)(OB,{ref:o},e))}));function LB(e){e.stopPropagation()}const FB=(0,Vo.forwardRef)(((e,t)=>($o()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,r.createElement)("div",{...e,ref:t,onMouseDown:LB}))));function BB(e){return Tx((0,Vo.useContext)(Mx).fills,{sync:!0}).get(e)}const jB=ps("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>_s({marginInlineStart:e},"","")),";}",(({zIndex:e})=>_s({zIndex:e},"","")),";");var VB={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const HB=ps("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",jB,"{position:relative;justify-self:start;",(({isLayered:e})=>e?VB:void 0),";}");const $B=es((function(e,t){const{children:n,className:o,isLayered:i=!0,isReversed:a=!1,offset:s=0,...l}=Qa(e,"ZStack"),c=wy(n),u=c.length-1,d=c.map(((e,t)=>{const n=a?u-t:t,o=i?s*t:s,l=(0,Vo.isValidElement)(e)?e.key:t;return(0,r.createElement)(jB,{offsetAmount:o,zIndex:n,key:l},e)}));return(0,r.createElement)(HB,{...l,className:o,isLayered:i,ref:t},d)}),"ZStack"),WB=$B,UB={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function GB(e=UB){const t=(0,Vo.useRef)(null),[n,r]=(0,Vo.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,d.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,d.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>Ly.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>Ly.isKeyboardEvent[e](t,n)))&&o(1)}}}const qB=(0,d.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,r.createElement)("div",{...GB(t)},(0,r.createElement)(e,{...n}))),"navigateRegions"),YB=(0,d.createHigherOrderComponent)((e=>function(t){const n=(0,d.useConstrainedTabbing)();return(0,r.createElement)("div",{ref:n,tabIndex:-1},(0,r.createElement)(e,{...t}))}),"withConstrainedTabbing"),KB=e=>(0,d.createHigherOrderComponent)((t=>class extends Vo.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);ri()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,r.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,r.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),XB=window.wp.hooks,ZB=16;function JB(e){return(0,d.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let o;class i extends Vo.Component{constructor(n){super(n),void 0===o&&(o=(0,XB.applyFilters)(e,t))}componentDidMount(){i.instances.push(this),1===i.instances.length&&((0,XB.addAction)("hookRemoved",n,s),(0,XB.addAction)("hookAdded",n,s))}componentWillUnmount(){i.instances=i.instances.filter((e=>e!==this)),0===i.instances.length&&((0,XB.removeAction)("hookRemoved",n),(0,XB.removeAction)("hookAdded",n))}render(){return(0,r.createElement)(o,{...this.props})}}i.instances=[];const a=(0,d.debounce)((()=>{o=(0,XB.applyFilters)(e,t),i.instances.forEach((e=>{e.forceUpdate()}))}),ZB);function s(t){t===e&&a()}return i}),"withFilters")}const QB=(0,d.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const o=(0,d.useFocusReturn)(e);return(0,r.createElement)("div",{ref:o},(0,r.createElement)(t,{...n}))};if((n=e)instanceof Vo.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn"),ej=({children:e})=>($o()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e),tj=(0,d.createHigherOrderComponent)((e=>{function t(t,o){const[i,a]=(0,Vo.useState)([]),s=(0,Vo.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:Gx()};a((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{a((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{a([])}}}),[]),l={...t,noticeList:i,noticeOperations:s,noticeUI:i.length>0&&(0,r.createElement)(Fz,{className:"components-with-notices-ui",notices:i,onRemove:s.removeNotice})};return n?(0,r.createElement)(e,{...l,ref:o}):(0,r.createElement)(e,{...l})}let n;const{render:o}=e;return"function"==typeof o?(n=!0,(0,Vo.forwardRef)(t)):t}),"withNotices");const nj=Ss({"0%":{left:"-50%"},"100%":{left:"100%"}}),rj=ps("div",{target:"e15u147w2"})("position:relative;overflow:hidden;width:100%;max-width:160px;height:",Gg.borderWidthFocus,";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ",Is.gray[900]," ),\n\t\ttransparent 90%\n\t);border-radius:",Gg.radiusBlockUi,";outline:2px solid transparent;outline-offset:2px;"),oj=ps("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",Gg.radiusBlockUi,";background-color:color-mix(\n\t\tin srgb,\n\t\tvar( --wp-components-color-foreground, ",Is.gray[900]," ),\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;",(({isIndeterminate:e,value:t})=>_s(e?{animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:nj,width:"50%"}:{width:`${t}%`,transition:"width 0.4s ease-in-out"},"","")),";"),ij=ps("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const aj=(0,Vo.forwardRef)((function(e,t){const{className:n,value:o,...i}=e,a=!Number.isFinite(o);return(0,r.createElement)(rj,{className:n},(0,r.createElement)(oj,{isIndeterminate:a,value:o}),(0,r.createElement)(ij,{max:100,value:o,"aria-label":(0,u.__)("Loading …"),ref:t,...i}))}));var sj=He([Ct,xn],[kt,wn]),lj=sj.useContext,cj=sj.useScopedContext,uj=sj.useProviderContext,dj=sj.ContextProvider,fj=sj.ScopedContextProvider,mj=(0,r.createContext)(void 0),pj=(0,r.createContext)(!1),hj=(0,Le.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5pt",viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,Le.jsx)("polyline",{points:"4,8 7,12 12,4"})});var gj=Ve((e=>{var t=e,{store:n,checked:o}=t,i=E(t,["store","checked"]);const a=(0,r.useContext)(pj),s=function(e){return e.checked?e.children||hj:"function"==typeof e.children?e.children:null}({checked:o=null!=o?o:a,children:i.children});return i=w(x({"aria-hidden":!0},i),{children:s,style:x({width:"1em",height:"1em",pointerEvents:"none"},i.style)})}));Fe((e=>je("span",gj(e))));var vj=Ve((e=>{var t=e,{store:n,checked:o}=t,i=E(t,["store","checked"]);const a=(0,r.useContext)(mj);return o=null!=o?o:a,i=gj(w(x({},i),{checked:o}))})),bj=Fe((e=>je("span",vj(e))));var yj=He([Ct],[kt]),xj=yj.useContext,wj=yj.useScopedContext,Ej=(yj.useProviderContext,yj.ContextProvider,yj.ScopedContextProvider,(0,r.createContext)(void 0),He([gn,Ct],[vn,kt])),_j=(Ej.useContext,Ej.useScopedContext,Ej.useProviderContext);Ej.ContextProvider,Ej.ScopedContextProvider,(0,r.createContext)(void 0),(0,r.createContext)(!1);function Sj(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=N(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=Lt(i.store,function(e,...t){if(e)return It(e,"pick")(...t)}(r,["values"]),zt(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),c=Zs(M(R({},i),{store:s,orientation:V(i.orientation,l.orientation,"vertical")})),u=tn(M(R({},i),{store:s,placement:V(i.placement,l.placement,"bottom-start"),timeout:V(i.timeout,l.timeout,a?0:150),hideTimeout:V(i.hideTimeout,l.hideTimeout,0)})),d=Rt(M(R(R({},c.getState()),u.getState()),{initialFocus:V(l.initialFocus,"container"),values:V(i.values,l.values,i.defaultValues,{})}),c,u,s);return Mt(d,(()=>At(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),Mt(d,(()=>At(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),M(R(R(R({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=A(t,r);return o===r?n:M(R({},n),{[e]:void 0!==o&&o})})))}})}function Cj(e={}){const t=lj(),n=xj(),r=_j();e=w(x({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=$t(Sj,e);return function(e,t,n){return Ce(t,[n.combobox,n.parent,n.menubar]),Ht(e=en(e=Js(e,t,n),t,n),n,"values","setValues"),Object.assign(e,{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}var kj=Ve((e=>{const t=(0,r.useRef)(null),n=Se(t,e.as||"button"),[o,i]=(0,r.useState)((()=>!!n&&X({tagName:n,type:e.type})));return(0,r.useEffect)((()=>{t.current&&i(X(t.current))}),[]),e=w(x({role:o||"a"===n?void 0:"button"},e),{ref:Ee(t,e.ref)}),e=ft(e)}));Fe((e=>je("button",kj(e))));var Pj=Symbol("disclosure"),Tj=Ve((e=>{var t=e,{store:n,toggleOnClick:o=!0}=t,i=E(t,["store","toggleOnClick"]);const a=sn();F(n=n||a,!1);const s=(0,r.useRef)(null),[l,c]=(0,r.useState)(!1),u=n.useState("disclosureElement"),d=n.useState("open");(0,r.useEffect)((()=>{let e=u===s.current;(null==u?void 0:u.isConnected)||(null==n||n.setDisclosureElement(s.current),e=!0),c(d&&e)}),[u,n,d]);const f=i.onClick,m=Pe(o),[p,h]=Re(i,Pj,!0),g=we((e=>{null==f||f(e),e.defaultPrevented||p||m(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),v=n.useState("contentElement");return i=w(x(x({"aria-expanded":l,"aria-controls":null==v?void 0:v.id},h),i),{ref:Ee(s,i.ref),onClick:g}),i=kj(i)}));Fe((e=>je("button",Tj(e))));var Ij=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=cn();F(n=n||o,!1);const i=n.useState("contentElement");return r=x({"aria-haspopup":ne(i,"dialog")},r),r=Tj(x({store:n},r))}));Fe((e=>je("button",Ij(e))));var Rj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=hn();return n=n||o,r=w(x({},r),{ref:Ee(null==n?void 0:n.setAnchorElement,r.ref)})}));Fe((e=>je("div",Rj(e))));var Mj=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=hn();F(n=n||o,!1);const i=r.onClick,a=we((e=>{null==n||n.setAnchorElement(e.currentTarget),null==i||i(e)}));return r=Te(r,(e=>(0,Le.jsx)(vn,{value:n,children:e})),[n]),r=w(x({},r),{onClick:a}),r=Rj(x({store:n},r)),r=Ij(x({store:n},r))}));Fe((e=>je("button",Mj(e))));var Nj="";function Dj(){Nj=""}function Aj(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children;return!!r&&(o=r,o.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).trim().toLowerCase().startsWith(t.toLowerCase());var o}function Oj(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&Aj(r,t)?Nj!==t&&Aj(r,Nj)?e:(Nj=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[bt]:[],...e.slice(0,r)]}(e.filter((e=>Aj(e,Nj))),n).filter((e=>e.id!==n))):e}var zj=Ve((e=>{var t=e,{store:n,typeahead:o=!0}=t,i=E(t,["store","typeahead"]);const a=_t();F(n=n||a,!1);const s=i.onKeyDownCapture,l=(0,r.useRef)(0),c=we((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!o)return;if(!n)return;const{items:t,activeId:r}=n.getState();if(!function(e){const t=e.target;return(!t||!te(t))&&(!(" "!==e.key||!Nj.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return Dj();let i=function(e){return e.filter((e=>!e.disabled))}(t);if(!function(e,t){if(ce(e))return!0;const n=e.target;if(!n)return!1;const r=t.some((e=>e.element===n));return r}(e,i))return Dj();e.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout((()=>{Nj=""}),500);const a=e.key.toLowerCase();Nj+=a,i=Oj(i,a,r);const c=i.find((e=>Aj(e,Nj)));c?n.move(c.id):Dj()}));return i=w(x({},i),{onKeyDownCapture:c})}));Fe((e=>je("div",zj(e))));function Lj(e,t){return!!(null==e?void 0:e.some((e=>!!e.element&&(e.element!==t&&"true"===e.element.getAttribute("aria-expanded")))))}var Fj=Ve((e=>{var t=e,{store:n,focusable:o,accessibleWhenDisabled:i,showOnHover:a}=t,s=E(t,["store","focusable","accessibleWhenDisabled","showOnHover"]);const l=uj();F(n=n||l,!1);const c=(0,r.useRef)(null),u=n.parent,d=n.menubar,f=!!u,m=!!d&&!f,p=j(s),h=()=>{const e=c.current;e&&(null==n||n.setDisclosureElement(e),null==n||n.setAnchorElement(e),null==n||n.show())},g=s.onFocus,v=we((e=>{if(null==g||g(e),p)return;if(e.defaultPrevented)return;if(null==n||n.setAutoFocusOnShow(!1),null==n||n.setActiveId(null),!d)return;if(!m)return;const{items:t}=d.getState();Lj(t,e.currentTarget)&&h()})),b=n.useState((e=>e.placement.split("-")[0])),y=s.onKeyDown,_=we((e=>{if(null==y||y(e),p)return;if(e.defaultPrevented)return;const t=function(e,t){return{ArrowDown:("bottom"===t||"top"===t)&&"first",ArrowUp:("bottom"===t||"top"===t)&&"last",ArrowRight:"right"===t&&"first",ArrowLeft:"left"===t&&"first"}[e.key]}(e,b);t&&(e.preventDefault(),h(),null==n||n.setAutoFocusOnShow(!0),null==n||n.setInitialFocus(t))})),S=s.onClick,C=we((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;const t=!e.detail,{open:r}=n.getState();r&&!t||(f&&!t||n.setAutoFocusOnShow(!0),n.setInitialFocus(t?"first":"container")),f&&h()}));s=Te(s,(e=>(0,Le.jsx)(dj,{value:n,children:e})),[n]),f&&(s=w(x({},s),{render:(0,Le.jsx)(on.div,{render:s.render})}));const k=_e(s.id),P=Vt((null==u?void 0:u.combobox)||u,"contentElement"),T=f||m?re(P,"menuitem"):void 0,I=n.useState("contentElement");return s=w(x({id:k,role:T,"aria-haspopup":ne(I,"menu")},s),{ref:Ee(c,s.ref),onFocus:v,onKeyDown:_,onClick:C}),s=En(w(x({store:n,focusable:o,accessibleWhenDisabled:i},s),{showOnHover:e=>{if(!(()=>{if("function"==typeof a)return a(e);if(null!=a)return a;if(f)return!0;if(!d)return!1;const{items:t}=d.getState();return m&&Lj(t)})())return!1;const t=m?d:u;return!t||(t.setActiveId(e.currentTarget.id),!0)}})),s=Mj(x({store:n,toggleOnClick:!f,focusable:o,accessibleWhenDisabled:i},s)),s=zj(x({store:n,typeahead:m},s))})),Bj=Fe((e=>je("button",Fj(e))));const jj=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var Vj=Ve((e=>{var t=e,{store:n,alwaysVisible:o,composite:i}=t,a=E(t,["store","alwaysVisible","composite"]);const s=uj();F(n=n||s,!1);const l=n.parent,c=n.menubar,u=!!l,d=_e(a.id),f=a.onKeyDown,m=n.useState((e=>e.placement.split("-")[0])),p=n.useState((e=>"both"===e.orientation?void 0:e.orientation)),h="vertical"!==p,g=Vt(c,(e=>!!e&&"vertical"!==e.orientation)),v=we((e=>{if(null==f||f(e),!e.defaultPrevented){if(u||c&&!h){const t={ArrowRight:()=>"left"===m&&!h,ArrowLeft:()=>"right"===m&&!h,ArrowUp:()=>"bottom"===m&&h,ArrowDown:()=>"top"===m&&h}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==n?void 0:n.hide()}if(c){const t={ArrowRight:()=>{if(g)return c.next()},ArrowLeft:()=>{if(g)return c.previous()},ArrowDown:()=>{if(!g)return c.next()},ArrowUp:()=>{if(!g)return c.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),c.move(n))}}}));a=Te(a,(e=>(0,Le.jsx)(fj,{value:n,children:e})),[n]);const b=function(e){var t=e,{store:n}=t,o=E(t,["store"]);const[i,a]=(0,r.useState)(void 0),s=o["aria-label"],l=Vt(n,"disclosureElement"),c=Vt(n,"contentElement");return(0,r.useEffect)((()=>{const e=l;e&&c&&(s||c.hasAttribute("aria-label")?a(void 0):e.id&&a(e.id))}),[s,l,c]),i}(x({store:n},a)),y=Yn(n.useState("mounted"),a.hidden,o),_=y?w(x({},a.style),{display:"none"}):a.style;a=w(x({id:d,"aria-labelledby":b,hidden:y},a),{ref:Ee(d?n.setContentElement:null,a.ref),style:_,onKeyDown:v});const S=!!n.combobox;return(i=null!=i?i:!S)&&(a=x({role:"menu","aria-orientation":p},a)),a=tl(x({store:n,composite:i},a)),a=zj(x({store:n,typeahead:!S},a))}));Fe((e=>je("div",Vj(e))));var Hj=Ve((e=>{var t=e,{store:n,modal:o=!1,portal:i=!!o,hideOnEscape:a=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:l,alwaysVisible:c}=t,u=E(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=uj();F(n=n||d,!1);const f=(0,r.useRef)(null),m=n.parent,p=n.menubar,h=!!m,g=!!p&&!h;u=w(x({},u),{ref:Ee(f,u.ref)});const v=Vj(x({store:n,alwaysVisible:c},u)),{"aria-labelledby":b}=v;u=E(v,["aria-labelledby"]);const[y,_]=(0,r.useState)(),S=n.useState("autoFocusOnShow"),C=n.useState("initialFocus"),k=n.useState("baseElement"),P=n.useState("renderedItems");(0,r.useEffect)((()=>{let e=!1;return _((t=>{var n,o,i;if(e)return;if(!S)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const a=(0,r.createRef)();switch(C){case"first":a.current=(null==(o=P.find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;case"last":a.current=(null==(i=[...P].reverse().find((e=>!e.disabled&&e.element)))?void 0:i.element)||null;break;default:a.current=k}return a})),()=>{e=!0}}),[n,S,C,P,k]);const T=!h&&o,I=!!s,R=!!y||!!u.initialFocus||!!T,M=Vt(n.combobox||n,"contentElement"),N=Vt((null==m?void 0:m.combobox)||m,"contentElement"),D=(0,r.useMemo)((()=>{if(!N)return;if(!M)return;const e=M.getAttribute("role"),t=N.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?N:void 0}),[M,N]);return void 0!==D&&(u=x({preserveTabOrderAnchor:D},u)),u=Fo(w(x({store:n,alwaysVisible:c,initialFocus:y,autoFocusOnShow:I?R&&s:S||!!T},u),{hideOnEscape:e=>!B(a,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside:e=>{const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof l?l(e):null!=l?l:h||g&&(!t||!Je(t)))&&(!!e.defaultPrevented||(!h||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Je(t)||(requestAnimationFrame((()=>{Je(t)||null==n||n.hide()})),!1)))))},modal:T,portal:i,backdrop:!h&&u.backdrop})),u=x({"aria-labelledby":b},u)})),$j=yr(Fe((e=>je("div",Hj(e)))),uj);function Wj(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Uj=Symbol("composite-hover");var Gj=Ve((e=>{var t=e,{store:n,focusOnHover:o=!0,blurOnHoverEnd:i=!!o}=t,a=E(t,["store","focusOnHover","blurOnHoverEnd"]);const s=_t();F(n=n||s,!1);const l=Me(),c=a.onMouseMove,u=Pe(o),d=we((e=>{if(null==c||c(e),!e.defaultPrevented&&l()&&u(e)){if(!Je(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Ze(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),f=a.onMouseLeave,m=Pe(i),p=we((e=>{var t;null==f||f(e),e.defaultPrevented||l()&&(function(e){const t=Wj(e);return!!t&&Y(e.currentTarget,t)}(e)||function(e){let t=Wj(e);if(!t)return!1;do{if(O(t,Uj)&&t[Uj])return!0;t=t.parentElement}while(t);return!1}(e)||u(e)&&m(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),h=(0,r.useCallback)((e=>{e&&(e[Uj]=!0)}),[]);return a=w(x({},a),{ref:Ee(h,a.ref),onMouseMove:d,onMouseLeave:p})}));Be((e=>je("div",Gj(e))));var qj=Ve((e=>{var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=E(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=cj(!0),c=wj();F(n=n||l||c,!1);const u=s.onClick,d=Pe(r),f="hideAll"in n?n.hideAll:void 0,m=!!f,p=we((e=>{if(null==u||u(e),e.defaultPrevented)return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}(e))return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=ie();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type}(e))return;if(!f)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&f()})),h=re(Vt(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=w(x({role:h},s),{onClick:p}),s=Gt(x({store:n,preventScrollOnKeyDown:o},s)),s=Gj(w(x({store:n},s),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return m?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(Je(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const a=G(e).getElementById(i);return!(!a||!Je(a)&&!a.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof a?a(e):null!=a?a:m})),s})),Yj=Be((e=>je("div",qj(e))));function Kj(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Rt({value:V(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return M(R({},r),{setValue:e=>r.setState("value",e)})}function Xj(e={}){const[t,n]=$t(Kj,e);return function(e,t,n){return Ce(t,[n.store]),Ht(e,n,"value","setValue"),e}(t,n,e)}var Zj=He(),Jj=Zj.useContext;Zj.useScopedContext,Zj.useProviderContext,Zj.ContextProvider,Zj.ScopedContextProvider;function Qj(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function eV(e){return Array.isArray(e)?e.toString():e}var tV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,defaultChecked:s}=t,l=E(t,["store","name","value","checked","defaultChecked"]);const c=Jj();n=n||c;const[u,d]=(0,r.useState)(null!=s&&s),f=Vt(n,(e=>{if(void 0!==a)return a;if(void 0===(null==e?void 0:e.value))return u;if(null!=i){if(Array.isArray(e.value)){const t=eV(i);return e.value.includes(t)}return e.value===i}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),m=(0,r.useRef)(null),p=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Se(m,l.as||"input"),l.type),h=f?"mixed"===f:void 0,g="mixed"!==f&&f,v=j(l),[b,y]=ke();(0,r.useEffect)((()=>{const e=m.current;e&&(Qj(e,h),p||(e.checked=g,void 0!==o&&(e.name=o),void 0!==i&&(e.value=`${i}`)))}),[b,h,p,g,o,i]);const _=l.onChange,S=we((e=>{if(v)return e.stopPropagation(),void e.preventDefault();if(Qj(e.currentTarget,h),p||(e.currentTarget.checked=!e.currentTarget.checked,y()),null==_||_(e),e.defaultPrevented)return;const t=e.currentTarget.checked;d(t),null==n||n.setValue((e=>{if(null==i)return t;const n=eV(i);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),C=l.onClick,k=we((e=>{null==C||C(e),e.defaultPrevented||p||S(e)}));return l=Te(l,(e=>(0,Le.jsx)(pj.Provider,{value:g,children:e})),[g]),l=w(x({role:p?void 0:"checkbox",type:p?"checkbox":void 0,"aria-checked":f},l),{ref:Ee(m,l.ref),onChange:S,onClick:k}),l=ft(x({clickOnEnter:!p},l)),x({name:p?o:void 0,value:p?i:void 0,checked:g},l)}));Fe((e=>je("input",tV(e))));function nV(e,t,n){if(void 0===t)return Array.isArray(e)?e:!!n;const r=function(e){return Array.isArray(e)?e.toString():e}(t);return Array.isArray(e)?n?e.includes(r)?e:[...e,r]:e.filter((e=>e!==r)):n?r:e!==r&&e}var rV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,defaultChecked:s,hideOnClick:l=!1}=t,c=E(t,["store","name","value","checked","defaultChecked","hideOnClick"]);const u=cj();F(n=n||u,!1);const d=ye(s);(0,r.useEffect)((()=>{null==n||n.setValue(o,((e=[])=>d?nV(e,i,!0):e))}),[n,o,i,d]),(0,r.useEffect)((()=>{void 0!==a&&(null==n||n.setValue(o,(e=>nV(e,i,a))))}),[n,o,i,a]);const f=Xj({value:n.useState((e=>e.values[o])),setValue(e){null==n||n.setValue(o,(()=>{if(void 0===a)return e;const t=nV(e,i,a);return Array.isArray(t)&&Array.isArray(e)&&function(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}(e,t)?e:t}))}});return c=x({role:"menuitemcheckbox"},c),c=tV(x({store:f,name:o,value:i,checked:a},c)),c=qj(x({store:n,hideOnClick:l},c))})),oV=Be((e=>je("div",rV(e))));function iV(e,t,n){return void 0===n?e:n?t:e}var aV=Ve((e=>{var t=e,{store:n,name:o,value:i,checked:a,onChange:s,hideOnClick:l=!1}=t,c=E(t,["store","name","value","checked","onChange","hideOnClick"]);const u=cj();F(n=n||u,!1);const d=ye(c.defaultChecked);(0,r.useEffect)((()=>{null==n||n.setValue(o,((e=!1)=>iV(e,i,d)))}),[n,o,i,d]),(0,r.useEffect)((()=>{void 0!==a&&(null==n||n.setValue(o,(e=>iV(e,i,a))))}),[n,o,i,a]);const f=n.useState((e=>e.values[o]===i));return c=Te(c,(e=>(0,Le.jsx)(mj.Provider,{value:!!f,children:e})),[f]),c=x({role:"menuitemradio"},c),c=cE(x({name:o,value:i,checked:f,onChange:e=>{if(null==s||s(e),e.defaultPrevented)return;const t=e.currentTarget;null==n||n.setValue(o,(e=>iV(e,i,null!=a?a:t.checked)))}},c)),c=qj(x({store:n,hideOnClick:l},c))})),sV=Be((e=>je("div",aV(e))));var lV=Ve((e=>e=TI(e))),cV=Fe((e=>je("div",lV(e))));var uV=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=_t();F(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=_P(w(x({},r),{orientation:i}))}));Fe((e=>je("hr",uV(e))));var dV=Ve((e=>{var t=e,{store:n}=t,r=E(t,["store"]);const o=lj();return r=uV(x({store:n=n||o},r))})),fV=Fe((e=>je("hr",dV(e))));const mV="2px",pV="400ms",hV="cubic-bezier( 0.16, 1, 0.3, 1 )",gV=Rh(1),vV=Rh(2),bV=Rh(3),yV=Is.gray[300],xV=Is.gray[200],wV=Is.gray[900],EV=`0 0 0 ${Gg.borderWidth} ${yV}, ${Gg.popoverShadow}`,_V=`0 0 0 ${Gg.borderWidth} ${wV}`,SV="minmax( 0, max-content ) 1fr",CV=Ss({"0%":{opacity:0,transform:`translateY(${mV})`},"100%":{opacity:1,transform:"translateY(0)"}}),kV=Ss({"0%":{opacity:0,transform:`translateX(-${mV})`},"100%":{opacity:1,transform:"translateX(0)"}}),PV=Ss({"0%":{opacity:0,transform:`translateY(-${mV})`},"100%":{opacity:1,transform:"translateY(0)"}}),TV=Ss({"0%":{opacity:0,transform:`translateX(${mV})`},"100%":{opacity:1,transform:"translateX(0)"}}),IV=ps($j,{target:"e1kdzosf12"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",SV,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",gV,";background-color:",Is.ui.background,";border-radius:4px;",(e=>_s("box-shadow:","toolbar"===e.variant?_V:EV,";",""))," overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;animation-duration:",pV,";animation-timing-function:",hV,";will-change:transform,opacity;animation-name:",PV,";&[data-side='right']{animation-name:",TV,";}&[data-side='bottom']{animation-name:",CV,";}&[data-side='left']{animation-name:",kV,";}@media ( prefers-reduced-motion ){animation-duration:0s;}"),RV=_s("all:unset;position:relative;min-height:",Rh(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",SV,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",Wb("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Is.gray[900],";border-radius:",Gg.radiusBlockUi,";padding-block:",vV,";padding-inline:",bV,";scroll-margin:",gV,";user-select:none;outline:none;&[aria-disabled='true']{color:",Is.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:",Is.theme.accent,";color:",Is.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",Is.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",IV,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',Is.gray[100],";color:",Is.gray[900],";}svg{fill:currentColor;}",""),MV=ps(Yj,{target:"e1kdzosf11"})(RV,";"),NV=ps(oV,{target:"e1kdzosf10"})(RV,";"),DV=ps(sV,{target:"e1kdzosf9"})(RV,";"),AV=ps("span",{target:"e1kdzosf8"})("grid-column:1;",NV,">&,",DV,">&{min-width:",Rh(6),";}",NV,">&,",DV,">&,&:not( :empty ){margin-inline-end:",Rh(2),";}display:flex;align-items:center;justify-content:center;color:",Is.gray[700],";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),OV=ps("div",{target:"e1kdzosf7"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",Rh(3),";pointer-events:none;"),zV=ps("div",{target:"e1kdzosf6"})("flex:1;display:inline-flex;flex-direction:column;gap:",Rh(1),";"),LV=ps("span",{target:"e1kdzosf5"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",Rh(3),";color:",Is.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not(",IV,") &,[aria-disabled='true'] *:not(",IV,") &{color:inherit;}"),FV=ps(cV,{target:"e1kdzosf4"})({name:"49aokf",styles:"display:contents"}),BV=ps(fV,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",Gg.borderWidth,";background-color:",(e=>"toolbar"===e.variant?wV:xV),";margin-block:",Rh(2),";margin-inline:",bV,";outline:2px solid transparent;"),jV=ps(ay,{target:"e1kdzosf2"})("width:",Rh(1.5),";",Yh({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),VV=ps(LS,{target:"e1kdzosf1"})("font-size:",Wb("default.fontSize"),";line-height:20px;color:inherit;"),HV=ps(LS,{target:"e1kdzosf0"})("font-size:",Wb("helpText.fontSize"),";line-height:16px;color:",Is.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not( ",IV," ) &,[aria-disabled='true'] *:not( ",IV," ) &{color:inherit;}"),$V=(0,Vo.createContext)(void 0),WV=(0,Vo.forwardRef)((function({prefix:e,suffix:t,children:n,hideOnClick:o=!0,...i},a){const s=(0,Vo.useContext)($V);return(0,r.createElement)(MV,{ref:a,...i,accessibleWhenDisabled:!0,hideOnClick:o,store:s?.store},(0,r.createElement)(AV,null,e),(0,r.createElement)(OV,null,(0,r.createElement)(zV,null,n),t&&(0,r.createElement)(LV,null,t)))})),UV=(0,Vo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...o},i){const a=(0,Vo.useContext)($V);return(0,r.createElement)(NV,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:n,store:a?.store},(0,r.createElement)(bj,{store:a?.store,render:(0,r.createElement)(AV,null),style:{width:"auto",height:"auto"}},(0,r.createElement)(ay,{icon:IS,size:24})),(0,r.createElement)(OV,null,(0,r.createElement)(zV,null,t),e&&(0,r.createElement)(LV,null,e)))})),GV=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Circle,{cx:12,cy:12,r:3})),qV=(0,Vo.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...o},i){const a=(0,Vo.useContext)($V);return(0,r.createElement)(DV,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:n,store:a?.store},(0,r.createElement)(bj,{store:a?.store,render:(0,r.createElement)(AV,null),style:{width:"auto",height:"auto"}},(0,r.createElement)(ay,{icon:GV,size:24})),(0,r.createElement)(OV,null,(0,r.createElement)(zV,null,t),e&&(0,r.createElement)(LV,null,e)))})),YV=(0,Vo.forwardRef)((function(e,t){const n=(0,Vo.useContext)($V);return(0,r.createElement)(FV,{ref:t,...e,store:n?.store})})),KV=es(((e,t)=>{var n;const{open:o,defaultOpen:i=!1,onOpenChange:a,placement:s,trigger:l,gutter:c,children:d,shift:f,modal:m=!0,variant:p,...h}=Qa(e,"DropdownMenu"),g=(0,Vo.useContext)($V),v=(0,u.isRTL)()?"rtl":"ltr";let b=null!==(n=e.placement)&&void 0!==n?n:g?.store?"right-start":"bottom-start";"rtl"===v&&(/right/.test(b)?b=b.replace("right","left"):/left/.test(b)&&(b=b.replace("left","right")));const y=Cj({parent:g?.store,open:o,defaultOpen:i,placement:b,focusLoop:!0,setOpen(e){a?.(e)},rtl:"rtl"===v}),x=(0,Vo.useMemo)((()=>({store:y,variant:p})),[y,p]),w=y.useState("placement").split("-")[0];!y.parent||(0,Vo.isValidElement)(l)&&WV===l.type||console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const E=(0,Vo.useCallback)((e=>(e.preventDefault(),!0)),[]),_=(0,Vo.useMemo)((()=>({dir:v,style:{direction:v}})),[v]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Bj,{ref:t,store:y,render:y.parent?(0,Vo.cloneElement)(l,{suffix:(0,r.createElement)(r.Fragment,null,l.props.suffix,(0,r.createElement)(jV,{"aria-hidden":"true",icon:jj,size:24,preserveAspectRatio:"xMidYMid slice"}))}):l}),(0,r.createElement)(IV,{...h,modal:m,store:y,gutter:null!=c?c:y.parent?0:8,shift:null!=f?f:y.parent?-4:0,hideOnHoverOutside:!1,"data-side":w,variant:p,wrapperProps:_,hideOnEscape:E,unmountOnHide:!0},(0,r.createElement)($V.Provider,{value:x},d)))}),"DropdownMenu"),XV=(0,Vo.forwardRef)((function(e,t){const n=(0,Vo.useContext)($V);return(0,r.createElement)(BV,{ref:t,...e,store:n?.store,variant:n?.variant})})),ZV=(0,Vo.forwardRef)((function(e,t){return(0,r.createElement)(VV,{numberOfLines:1,ref:t,...e})})),JV=(0,Vo.forwardRef)((function(e,t){return(0,r.createElement)(HV,{numberOfLines:2,ref:t,...e})}));const QV=ps("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});function eH(e){!function(e){for(const[t,n]of Object.entries(e))void 0!==n&&Og(n).isValid()}(e);const t={...tH(e.accent),...nH(e.background)};return function(e){for(const t of Object.values(e));}(function(e,t){const n=e.background||Is.white,r=e.accent||"#3858e9",o=t.foreground||Is.gray[900],i=t.gray||Is.gray;return{accent:Og(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:Og(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:Og(n).contrast(i[600])>=3&&Og(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}(e,t)),{colors:t}}function tH(e){return e?{accent:e,accentDarker10:Og(e).darken(.1).toHex(),accentDarker20:Og(e).darken(.2).toHex(),accentInverted:rH(e)}:{}}function nH(e){if(!e)return{};const t=rH(e);return{background:e,foreground:t,foregroundInverted:rH(t),gray:oH(e,t)}}function rH(e){return Og(e).isDark()?Is.white:Is.gray[900]}function oH(e,t){const n=Og(e).isDark()?"lighten":"darken",r=Math.abs(Og(e).toHsl().l-Og(t).toHsl().l)/100,o={};return Object.entries({100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821}).forEach((([t,i])=>{o[parseInt(t)]=Og(e)[n](i/.884*r).toHex()})),o}Lg([Fg,NE]);const iH=function({accent:e,background:t,className:n,...o}){const i=Ja(),a=(0,Vo.useMemo)((()=>i(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[_s("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]})(eH({accent:e,background:t})),n)),[e,t,n,i]);return(0,r.createElement)(QV,{className:a,...o})},aH=(0,Vo.createContext)(void 0),sH=()=>(0,Vo.useContext)(aH);const lH=ps("div",{target:"enfox0g2"})({name:"xbm4q1",styles:"display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}"}),cH=ps(yF,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:",Rh(12),";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ",Rh(4),";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:",Is.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::after{content:'';position:absolute;right:0;bottom:0;left:0;pointer-events:none;background:",Is.theme.accent,";height:calc( 0 * var( --wp-admin-border-width-focus ) );border-radius:0;transition:all 0.1s linear;",Rs("transition"),";}&[aria-selected='true']::after{height:calc( 1 * var( --wp-admin-border-width-focus ) );outline:2px solid transparent;outline-offset:-1px;}&::before{content:'';position:absolute;top:",Rh(3),";right:",Rh(3),";bottom:",Rh(3),";left:",Rh(3),";pointer-events:none;box-shadow:0 0 0 0 transparent;border-radius:2px;transition:all 0.1s linear;",Rs("transition"),";}&:focus-visible::before{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Is.theme.accent,";outline:2px solid transparent;}}"),uH=ps(wF,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Is.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),dH=(0,Vo.forwardRef)((function({children:e,tabId:t,disabled:n,render:o,...i},a){const s=sH();if(!s)return null;const{store:l,instanceId:c}=s,u=`${c}-${t}`;return(0,r.createElement)(cH,{ref:a,store:l,id:u,disabled:n,render:o,...i},e)})),fH=(0,Vo.forwardRef)((function({children:e,...t},n){const o=sH();if(!o)return null;const{store:i}=o,{selectedId:a,activeId:s,selectOnMove:l}=i.useState(),{setActiveId:c}=i;return(0,r.createElement)(vF,{ref:n,store:i,render:(0,r.createElement)(lH,null),onBlur:()=>{l&&a!==s&&c(a)},...t},e)})),mH=(0,Vo.forwardRef)((function({children:e,tabId:t,focusable:n=!0,...o},i){const a=sH();if(!a)return null;const{store:s,instanceId:l}=a,c=`${l}-${t}`,u=s.useState((e=>e.selectedId));return(0,r.createElement)(uH,{ref:i,store:s,id:`${c}-view`,tabId:c,focusable:n,...o},u===c&&e)}));function pH({selectOnMove:e=!0,initialTabId:t,orientation:n="horizontal",onSelect:o,children:i,selectedTabId:a}){const s=(0,d.useInstanceId)(pH,"tabs"),l=dF({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${s}-${t}`,setSelectedId:e=>{const t="string"==typeof e?e.replace(`${s}-`,""):e;o?.(t)},selectedId:a&&`${s}-${a}`}),c=void 0!==a,{items:u,selectedId:f,activeId:m}=l.useState(),{setSelectedId:p,setActiveId:h}=l,g=(0,Vo.useRef)(!1);u.length>0&&(g.current=!0);const v=u.find((e=>e.id===f)),b=u.find((e=>!e.dimmed)),y=u.find((e=>e.id===`${s}-${t}`));(0,Vo.useLayoutEffect)((()=>{if(!c&&(!t||y)&&!u.find((e=>e.id===f))){if(y&&!y.dimmed)return void p(y?.id);b?p(b.id):g.current&&p(null)}}),[b,y,t,c,u,f,p]),(0,Vo.useLayoutEffect)((()=>{v?.dimmed&&(c?p(null):!y||y.dimmed?b&&p(b.id):p(y.id))}),[b,y,c,v?.dimmed,p]),(0,Vo.useLayoutEffect)((()=>{c&&g.current&&a&&!v&&p(null)}),[c,v,a,p]),(0,Vo.useEffect)((()=>{c&&requestAnimationFrame((()=>{const e=u?.[0]?.element?.ownerDocument.activeElement;e&&u.some((t=>e===t.element))&&m!==e.id&&h(e.id)}))}),[m,c,u,h]);const x=(0,Vo.useMemo)((()=>({store:l,instanceId:s})),[l,s]);return(0,r.createElement)(aH.Provider,{value:x},i)}pH.TabList=fH,pH.Tab=dH,pH.TabPanel=mH,pH.Context=aH;const hH=pH,gH=window.wp.privateApis,{lock:vH,unlock:bH}=(0,gH.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/components"),yH={};vH(yH,{CompositeV2:nl,CompositeGroupV2:II,CompositeItemV2:qt,CompositeRowV2:ol,useCompositeStoreV2:Qs,CustomSelectControl:vM,__experimentalPopoverLegacyPositionToPlacement:Go,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...lw(t)}},ComponentsContext:si,ProgressBar:aj,Tabs:hH,Theme:iH,DropdownMenuV2:KV,DropdownMenuGroupV2:YV,DropdownMenuItemV2:WV,DropdownMenuCheckboxItemV2:UV,DropdownMenuRadioItemV2:qV,DropdownMenuSeparatorV2:XV,DropdownMenuItemLabelV2:ZV,DropdownMenuItemHelpTextV2:JV,kebabCase:jy})})(),(window.wp=window.wp||{}).components=i})(); |