Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.144.227.73
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/wavevlvu/blog.diixadigital.com/wp-includes/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/wavevlvu/blog.diixadigital.com/wp-includes/js/dist/components.min.js
/*! This file is auto-generated */
(()=>{var e,t,n={66: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 s(e,t){try{return t in e}catch(e){return!1}}function a(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 s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(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 s=Array.isArray(n);return s===Array.isArray(e)?s?i.arrayMerge(e,n,i):a(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},7734: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 s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},8924:(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=p(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,a)||i("repeating-linear-gradient",e.repeatingLinearGradient,a)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return s(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:p(f)}}))}function s(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function a(){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=m()||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:m(),y:m()};if(e.x||e.y)return{type:"position",value:e}}function p(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 f(){var t=v("hex",e.hexColor,1)||s(e.rgbaColor,(function(){return{type:"rgba",value:p(h)}}))||s(e.rgbColor,(function(){return{type:"rgb",value:p(h)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=m(),t}function h(){return b(e.number)[1]}function m(){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))&&x(r[0].length),(n=e.exec(t))&&x(n[0].length),n}function x(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},9664: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,s=void 0!==i&&i,a=e.findChunks,l=void 0===a?r:a,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:s,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,s=e.searchWords,a=e.textToHighlight;return a=o(a),s.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"),s=void 0;s=i.exec(a);){var l=s.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),s.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}}])},1880:(e,t,n)=>{"use strict";var r=n(1178),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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!(i[v]||r&&r[v]||m&&m[v]||a&&a[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},2950:(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,s=n?Symbol.for("react.strict_mode"):60108,a=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,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=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,x=n?Symbol.for("react.responder"):60118,y=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 a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,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)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y||e.$$typeof===v)},t.typeOf=w},1178:(e,t,n)=>{"use strict";e.exports=n(2950)},9681: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 s=function(e){return e.replace(r,i)};e.exports=s,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=s},8477:(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(1609);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,s=r.useEffect,a=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 a((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),s((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},422:(e,t,n)=>{"use strict";e.exports=n(8477)},1609: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 s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),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,{AlignmentMatrixControl:()=>Fl,AnglePickerControl:()=>Ty,Animate:()=>$l,Autocomplete:()=>$w,BaseControl:()=>Qx,BlockQuotation:()=>n.BlockQuotation,Button:()=>sy,ButtonGroup:()=>CE,Card:()=>iP,CardBody:()=>mP,CardDivider:()=>EP,CardFooter:()=>TP,CardHeader:()=>IP,CardMedia:()=>MP,CheckboxControl:()=>AP,Circle:()=>n.Circle,ClipboardButton:()=>OP,ColorIndicator:()=>Q_,ColorPalette:()=>Bk,ColorPicker:()=>vk,ComboboxControl:()=>yR,Composite:()=>Dn,CustomGradientPicker:()=>PT,CustomSelectControl:()=>nN,Dashicon:()=>ny,DatePicker:()=>KM,DateTimePicker:()=>mA,Disabled:()=>CA,Draggable:()=>EA,DropZone:()=>TA,DropZoneProvider:()=>RA,Dropdown:()=>rS,DropdownMenu:()=>GT,DuotonePicker:()=>LA,DuotoneSwatch:()=>MA,ExternalLink:()=>FA,Fill:()=>jw,Flex:()=>Ig,FlexBlock:()=>Mg,FlexItem:()=>Gg,FocalPointPicker:()=>dD,FocusReturnProvider:()=>JB,FocusableIframe:()=>pD,FontSizePicker:()=>PD,FormFileUpload:()=>TD,FormToggle:()=>ND,FormTokenField:()=>LD,G:()=>n.G,GradientPicker:()=>MT,Guide:()=>VD,GuidePage:()=>$D,HorizontalRule:()=>n.HorizontalRule,Icon:()=>ry,IconButton:()=>HD,IsolatedEventContainer:()=>zB,KeyboardShortcuts:()=>KD,Line:()=>n.Line,MenuGroup:()=>qD,MenuItem:()=>XD,MenuItemsChoice:()=>QD,Modal:()=>LR,NavigableMenu:()=>$T,Notice:()=>wz,NoticeList:()=>Sz,Panel:()=>kz,PanelBody:()=>Rz,PanelHeader:()=>Cz,PanelRow:()=>Iz,Path:()=>n.Path,Placeholder:()=>Mz,Polygon:()=>n.Polygon,Popover:()=>Dw,ProgressBar:()=>Fz,QueryControls:()=>Xz,RadioControl:()=>iL,RangeControl:()=>dC,Rect:()=>n.Rect,ResizableBox:()=>WL,ResponsiveWrapper:()=>UL,SVG:()=>n.SVG,SandBox:()=>KL,ScrollLock:()=>Xy,SearchControl:()=>WO,SelectControl:()=>_S,Slot:()=>Ew,SlotFillProvider:()=>Pw,Snackbar:()=>YL,SnackbarList:()=>ZL,Spinner:()=>rF,TabPanel:()=>xF,TabbableContainer:()=>JD,TextControl:()=>wF,TextHighlight:()=>PF,TextareaControl:()=>EF,TimePicker:()=>dA,Tip:()=>RF,ToggleControl:()=>NF,Toolbar:()=>ZF,ToolbarButton:()=>$F,ToolbarDropdownMenu:()=>QF,ToolbarGroup:()=>UF,ToolbarItem:()=>BF,Tooltip:()=>Yi,TreeSelect:()=>Uz,VisuallyHidden:()=>pl,__experimentalAlignmentMatrixControl:()=>Fl,__experimentalApplyValueToSides:()=>pE,__experimentalBorderBoxControl:()=>Fj,__experimentalBorderControl:()=>yj,__experimentalBoxControl:()=>SE,__experimentalConfirmDialog:()=>BR,__experimentalDimensionControl:()=>bA,__experimentalDivider:()=>kP,__experimentalDropdownContentWrapper:()=>Mk,__experimentalElevation:()=>PE,__experimentalGrid:()=>Sj,__experimentalHStack:()=>yy,__experimentalHasSplitBorders:()=>Nj,__experimentalHeading:()=>Tk,__experimentalInputControl:()=>ty,__experimentalInputControlPrefixWrapper:()=>SC,__experimentalInputControlSuffixWrapper:()=>oS,__experimentalIsDefinedBorder:()=>Ij,__experimentalIsEmptyBorder:()=>Rj,__experimentalItem:()=>UD,__experimentalItemGroup:()=>JP,__experimentalNavigation:()=>yO,__experimentalNavigationBackButton:()=>CO,__experimentalNavigationGroup:()=>EO,__experimentalNavigationItem:()=>OO,__experimentalNavigationMenu:()=>qO,__experimentalNavigatorBackButton:()=>gz,__experimentalNavigatorButton:()=>mz,__experimentalNavigatorProvider:()=>uz,__experimentalNavigatorScreen:()=>pz,__experimentalNavigatorToParentButton:()=>vz,__experimentalNumberControl:()=>Sy,__experimentalPaletteEdit:()=>cR,__experimentalParseQuantityAndUnitFromRawValue:()=>lj,__experimentalRadio:()=>Jz,__experimentalRadioGroup:()=>tL,__experimentalScrollable:()=>fP,__experimentalSpacer:()=>Hg,__experimentalStyleProvider:()=>vw,__experimentalSurface:()=>oF,__experimentalText:()=>Xv,__experimentalToggleGroupControl:()=>R_,__experimentalToggleGroupControlOption:()=>aA,__experimentalToggleGroupControlOptionIcon:()=>Y_,__experimentalToolbarContext:()=>FF,__experimentalToolsPanel:()=>wB,__experimentalToolsPanelContext:()=>cB,__experimentalToolsPanelItem:()=>CB,__experimentalTreeGrid:()=>RB,__experimentalTreeGridCell:()=>DB,__experimentalTreeGridItem:()=>AB,__experimentalTreeGridRow:()=>IB,__experimentalTruncate:()=>Ek,__experimentalUnitControl:()=>mj,__experimentalUseCustomUnits:()=>cj,__experimentalUseNavigator:()=>fz,__experimentalUseSlot:()=>Jy,__experimentalUseSlotFills:()=>LB,__experimentalVStack:()=>jk,__experimentalView:()=>dl,__experimentalZStack:()=>HB,__unstableAnimatePresence:()=>xg,__unstableComposite:()=>kR,__unstableCompositeGroup:()=>jR,__unstableCompositeItem:()=>ER,__unstableDisclosureContent:()=>kA,__unstableGetAnimateClassName:()=>Vl,__unstableMotion:()=>dg,__unstableMotionContext:()=>Wl,__unstableUseAutocompleteProps:()=>Vw,__unstableUseCompositeState:()=>PR,__unstableUseNavigateRegions:()=>UB,createSlotFill:()=>Tw,navigateRegions:()=>GB,privateApis:()=>rH,useBaseControlProps:()=>Hw,withConstrainedTabbing:()=>KB,withFallbackStyles:()=>qB,withFilters:()=>ZB,withFocusOutside:()=>gR,withFocusReturn:()=>QB,withNotices:()=>eV,withSpokenMessages:()=>LO});var e={};o.r(e),o.d(e,{Text:()=>Av,block:()=>Dv,destructive:()=>zv,highlighterText:()=>Fv,muted:()=>Lv,positive:()=>Ov,upperCase:()=>Bv});var t={};o.r(t),o.d(t,{ButtonContentView:()=>F_,LabelView:()=>A_,ou:()=>V_,uG:()=>O_,eh:()=>D_});const n=window.wp.primitives;function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const s=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o},a=window.wp.i18n,l=window.wp.compose,c=window.wp.element;var u=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))m.call(t,n)&&g(e,n,t[n]);return e},b=(e,t)=>d(e,p(t)),x=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&m.call(e,r)&&(n[r]=e[r]);return n},y=Object.defineProperty,w=Object.defineProperties,_=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,j=(e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t)=>{for(var n in t||(t={}))C.call(t,n)&&j(e,n,t[n]);if(S)for(var n of S(t))k.call(t,n)&&j(e,n,t[n]);return e},P=(e,t)=>w(e,_(t)),T=(e,t)=>{var n={};for(var r in e)C.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&S)for(var r of S(e))t.indexOf(r)<0&&k.call(e,r)&&(n[r]=e[r]);return n};function R(...e){}function I(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function N(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function M(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function A(e){return e}function D(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function O(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function z(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function L(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function F(...e){for(const t of e)if(void 0!==t)return t}var B=o(1609),V=o.t(B,2),$=o.n(B);function H(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function W(e){if(!function(e){return!!e&&!!(0,B.isValidElement)(e)&&("ref"in e.props||"ref"in e)}(e))return null;return v({},e.props).ref||e.ref}var U,G="undefined"!=typeof window&&!!(null==(U=window.document)?void 0:U.createElement);function K(e){return e?e.ownerDocument||e:document}function q(e,t=!1){const{activeElement:n}=K(e);if(!(null==n?void 0:n.nodeName))return null;if(X(n)&&n.contentDocument)return q(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=K(n).getElementById(e);if(t)return t}}return n}function Y(e,t){return e===t||e.contains(t)}function X(e){return"IFRAME"===e.tagName}function Z(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Q.indexOf(e.type)}var Q=["button","color","file","image","reset","submit"];function J(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function ee(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function te(e){return e.isContentEditable||ee(e)}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"}[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!!G&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function se(){return G&&ie()&&/apple/i.test(navigator.vendor)}function ae(){return G&&navigator.platform.startsWith("Mac")&&!(G&&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){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)}function de(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))}function pe(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=P(E({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function fe(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function he(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Y(n,r)}function me(e,t,n,r){const o=(e=>{if(r){const t=setTimeout(e,r);return()=>clearTimeout(t)}const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})((()=>{e.removeEventListener(t,i,!0),n()})),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),o}function ge(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(ge(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var ve=v({},V),be=ve.useId,xe=(ve.useDeferredValue,ve.useInsertionEffect),ye=G?B.useLayoutEffect:B.useEffect;function we(e){const[t]=(0,B.useState)(e);return t}function _e(e){const t=(0,B.useRef)(e);return ye((()=>{t.current=e})),t}function Se(e){const t=(0,B.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return xe?xe((()=>{t.current=e})):t.current=e,(0,B.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Ce(e){const[t,n]=(0,B.useState)(null);return ye((()=>{if(null==t)return;if(!e)return;let n=null;return e((e=>(n=e,t))),()=>{e(n)}}),[t,e]),[t,n]}function ke(...e){return(0,B.useMemo)((()=>{if(e.some(Boolean))return t=>{for(const n of e)H(n,t)}}),e)}function je(e){if(be){const t=be();return e||t}const[t,n]=(0,B.useState)(e);return ye((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Ee(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,B.useState)((()=>n(t)));return ye((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function Pe(e,t){const n=(0,B.useRef)(!1);(0,B.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,B.useEffect)((()=>()=>{n.current=!1}),[])}function Te(){return(0,B.useReducer)((()=>[]),[])}function Re(e){return Se("function"==typeof e?e:()=>e)}function Ie(e,t,n=[]){const r=(0,B.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return b(v({},e),{wrapElement:r})}function Ne(e=!1,t){const[n,r]=(0,B.useState)(null);return{portalRef:ke(r,t),portalNode:n,domReady:!e||n}}function Me(e,t,n){const r=e.onLoadedMetadataCapture,o=(0,B.useMemo)((()=>Object.assign((()=>{}),b(v({},r),{[t]:n}))),[r,t,n]);return[null==r?void 0:r[t],{onLoadedMetadataCapture:o}]}function Ae(){(0,B.useEffect)((()=>{ge("mousemove",Le,!0),ge("mousedown",Fe,!0),ge("mouseup",Fe,!0),ge("keydown",Fe,!0),ge("scroll",Fe,!0)}),[]);return Se((()=>De))}var De=!1,Oe=0,ze=0;function Le(e){(function(e){const t=e.movementX||e.screenX-Oe,n=e.movementY||e.screenY-ze;return Oe=e.screenX,ze=e.screenY,t||n||!1})(e)&&(De=!0)}function Fe(){De=!1}function Be(e,t){const n=e.__unstableInternals;return D(n,"Invalid store"),n[t]}function Ve(e,...t){let n=e,r=n,o=Symbol(),i=R;const s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,p=new WeakMap,f=(e,t,n=c)=>(n.add(t),p.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),p.delete(t),n.delete(t)}),h=(e,i,s=!1)=>{var l;if(!N(n,e))return;const f=I(i,n[e]);if(f===n[e])return;if(!s)for(const n of t)null==(l=null==n?void 0:n.setState)||l.call(n,e,f);const h=n;n=P(E({},n),{[e]:f});const m=Symbol();o=m,a.add(e);const g=(t,r,o)=>{var i;const s=p.get(t);s&&!s.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};for(const e of c)g(e,h);queueMicrotask((()=>{if(o!==m)return;const e=n;for(const e of u)g(e,r,a);r=e,a.clear()}))},m={getState:()=>n,setState:h,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=s.size,r=Symbol();s.add(r);const o=()=>{s.delete(r),s.size||i()};if(e)return o;const a=(c=n,Object.keys(c)).map((e=>M(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&N(r,e))return Ue(t,[e],(t=>{h(e,t[e],!0)}))})))));var c;const u=[];for(const e of l)u.push(e());const d=t.map(He);return i=M(...a,...u,...d),o},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(d.set(t,t(n,n)),f(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),f(e,t,u)),pick:e=>Ve(function(e,t){const n={};for(const r of t)N(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>Ve(function(e,t){const n=E({},e);for(const e of t)N(n,e)&&delete n[e];return n}(n,e),m)}};return m}function $e(e,...t){if(e)return Be(e,"setup")(...t)}function He(e,...t){if(e)return Be(e,"init")(...t)}function We(e,...t){if(e)return Be(e,"subscribe")(...t)}function Ue(e,...t){if(e)return Be(e,"sync")(...t)}function Ge(e,...t){if(e)return Be(e,"batch")(...t)}function Ke(e,...t){if(e)return Be(e,"omit")(...t)}function qe(...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?Object.assign(e,r):e}),{});return Ve(t,...e)}var Ye=o(422),{useSyncExternalStore:Xe}=Ye,Ze=()=>()=>{};function Qe(e,t=A){const n=B.useCallback((t=>e?We(e,null,t):Ze()),[e]),r=()=>{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&&N(o,n)?o[n]:void 0};return Xe(n,r,r)}function Je(e,t,n,r){const o=N(t,n)?t[n]:void 0,i=r?t[r]:void 0,s=_e({value:o,setValue:i});ye((()=>Ue(e,[n],((e,t)=>{const{value:r,setValue:o}=s.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),ye((()=>{if(void 0!==o)return e.setState(n,o),Ge(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function et(e,t){const[n,r]=B.useState((()=>e(t)));ye((()=>He(n)),[n]);const o=B.useCallback((e=>Qe(n,e)),[n]);return[B.useMemo((()=>b(v({},n),{useState:o})),[n,o]),Se((()=>{r((n=>e(v(v({},t),n.getState()))))}))]}function tt(e,t,n){return Pe(t,[n.store]),Je(e,n,"items","setItems"),e}function nt(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,s=o.element;return i===s?0:i&&s?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,s)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function rt(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=F(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:F(null==n?void 0:n.renderedItems,[])},s=null==(a=e.store)?void 0:a.__unstablePrivateStore;var a;const l=Ve({items:r,renderedItems:i.renderedItems},s),c=Ve(i,e.store),u=e=>{const t=nt(e);l.setState("renderedItems",t),c.setState("renderedItems",t)};$e(c,(()=>He(l))),$e(l,(()=>Ge(l,["items"],(e=>{c.setState("items",e.items)})))),$e(l,(()=>Ge(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 K(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 s=E(E({},r),e);i[n]=s,o.set(e.id,s)}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 s=t.slice();return s[i]=r,o.set(e.id,r),s}))}},p=e=>d(e,(e=>l.setState("items",e)),!0);return P(E({},c),{registerItem:p,renderItem:e=>M(p(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 ot(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function it(e){const t=[];for(const n of e)t.push(...n);return t}function st(e){return e.slice().reverse()}var at={id:null};function lt(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function ct(e,t){return e.filter((e=>e.rowId===t))}function ut(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 dt(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function pt(e,t,n){const r=dt(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?lt(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 ft(e){const t=ut(e),n=dt(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(P(E({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function ht(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=rt(e),o=F(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=Ve(P(E({},r.getState()),{activeId:o,baseElement:F(null==n?void 0:n.baseElement,null),includesBaseElement:F(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:F(null==n?void 0:n.moves,0),orientation:F(e.orientation,null==n?void 0:n.orientation,"both"),rtl:F(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:F(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:F(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:F(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:F(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);$e(i,(()=>Ue(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=lt(e.renderedItems))?void 0:n.id}))}))));const s=(e,t,n,r)=>{var o,s;const{activeId:a,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),p=l&&"vertical"!==t?st(e):e;if(null==a)return null==(o=lt(p))?void 0:o.id;const f=p.find((e=>e.id===a));if(!f)return null==(s=lt(p))?void 0:s.id;const h=!!f.rowId,m=p.indexOf(f),g=p.slice(m+1),v=ct(g,f.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,a),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}(h?t||"horizontal":t),x=c&&c!==b,y=h&&u&&u!==b;if(n=n||!h&&x&&d,x){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[at]:[],...e.slice(0,r)]}(y&&!n?p:ct(p,f.rowId),a,n),t=lt(e,a);return null==t?void 0:t.id}if(y){const e=lt(n?v:g,a);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=lt(v,a);return!w&&n?null:null==w?void 0:w.id};return P(E(E({},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=lt(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=lt(st(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return s(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),a=!!!(null==(t=lt(n))?void 0:t.rowId)&&o;return s(st(n),r,a,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:a}=i.getState(),l=r&&!e,c=ft(it(pt(ut(n),t,l)));return s(c,"vertical",o&&"horizontal"!==o&&a,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),a=r&&!e,l=ft(st(it(pt(ut(n),t,a))));return s(l,"vertical",o,e)}})}function mt(e,t,n){return Je(e=tt(e,t,n),n,"activeId","setActiveId"),Je(e,n,"includesBaseElement"),Je(e,n,"virtualFocus"),Je(e,n,"orientation"),Je(e,n,"rtl"),Je(e,n,"focusLoop"),Je(e,n,"focusWrap"),Je(e,n,"focusShift"),e}function gt(e={}){const[t,n]=et(ht,e);return mt(t,n,e)}var vt={id:null};function bt(e,t){return t&&e.item(t)||null}var xt=Symbol("FOCUS_SILENTLY");function yt(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}const wt=window.ReactJSXRuntime;function _t(e){const t=B.forwardRef(((t,n)=>e(b(v({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function St(e,t){return B.memo(e,t)}function Ct(e,t){const n=t,{wrapElement:r,render:o}=n,i=x(n,["wrapElement","render"]),s=ke(t.ref,W(o));let a;if(B.isValidElement(o)){const e=b(v({},o.props),{ref:s});a=B.cloneElement(o,function(e,t){const n=v({},e);for(const r in t){if(!N(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]?v(v({},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}(i,e))}else a=o?o(i):(0,wt.jsx)(e,v({},i));return r?r(a):a}function kt(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function jt(e=[],t=[]){const n=B.createContext(void 0),r=B.createContext(void 0),o=()=>B.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,wt.jsx)(n,b(v({},t),{children:e}))),(0,wt.jsx)(n.Provider,v({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=B.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=B.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,wt.jsx)(i,b(v({},e),{children:t.reduceRight(((t,n)=>(0,wt.jsx)(n,b(v({},e),{children:t}))),(0,wt.jsx)(r.Provider,v({},e)))}))}}var Et=jt(),Pt=Et.useContext,Tt=(Et.useScopedContext,Et.useProviderContext,jt([Et.ContextProvider],[Et.ScopedContextProvider])),Rt=Tt.useContext,It=(Tt.useScopedContext,Tt.useProviderContext),Nt=Tt.ContextProvider,Mt=Tt.ScopedContextProvider,At=(0,B.createContext)(void 0),Dt=(0,B.createContext)(void 0),Ot=(0,B.createContext)(!0),zt="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function Lt(e){return!!e.matches(zt)&&(!!J(e)&&!e.closest("[inert]"))}function Ft(e){if(!Lt(e))return!1;if(function(e){return Number.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 Bt(e,t){const n=Array.from(e.querySelectorAll(zt));t&&n.unshift(e);const r=n.filter(Lt);return r.forEach(((e,t)=>{if(X(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...Bt(n))}})),r}function Vt(e,t,n){const r=Array.from(e.querySelectorAll(zt)),o=r.filter(Ft);return t&&Ft(e)&&o.unshift(e),o.forEach(((e,t)=>{if(X(e)&&e.contentDocument){const r=Vt(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function $t(e,t,n){const[r]=Vt(e,t,n);return r||null}function Ht(e,t){return function(e,t,n,r){const o=q(e),i=Bt(e,t),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ft)||(n?i.find(Ft):null)||(r?a[0]:null)||null}(document.body,!1,e,t)}function Wt(e,t){return function(e,t,n,r){const o=q(e),i=Bt(e,t).reverse(),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ft)||(n?i.find(Ft):null)||(r?a[0]:null)||null}(document.body,!1,e,t)}function Ut(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 Gt(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 Kt(e){!Gt(e)&&Lt(e)&&e.focus()}function qt(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var Yt=se(),Xt=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],Zt=Symbol("safariFocusAncestor");function Qt(e,t){e&&(e[Zt]=t)}function Jt(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function en(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function tn(e,t){return Se((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var nn=!0;function rn(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(nn=!1))}function on(e){e.metaKey||e.ctrlKey||e.altKey||(nn=!0)}var sn=kt((function(e){var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,s=x(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const a=(0,B.useRef)(null);(0,B.useEffect)((()=>{n&&(ge("mousedown",rn,!0),ge("keydown",on,!0))}),[n]),Yt&&(0,B.useEffect)((()=>{if(!n)return;const e=a.current;if(!e)return;if(!Jt(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",r);return()=>{for(const e of t)e.removeEventListener("mouseup",r)}}),[n]);const l=n&&z(s),c=!!l&&!r,[u,d]=(0,B.useState)(!1);(0,B.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,B.useEffect)((()=>{if(!n)return;if(!u)return;const e=a.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{Lt(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const p=tn(s.onKeyPressCapture,l),f=tn(s.onMouseDownCapture,l),h=tn(s.onClickCapture,l),m=s.onMouseDown,g=Se((e=>{if(null==m||m(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!Yt)return;if(le(e))return;if(!Z(t)&&!Jt(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!Lt(e);)e=e.closest(zt);return e||null}(t.parentElement);Qt(i,!0),me(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),Qt(i,!1),r||Kt(t)}))})),y=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&Ut(r)&&(null==i||i(e),e.defaultPrevented||(r.dataset.focusVisible="true",d(!0)))},w=s.onKeyDownCapture,_=Se((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!ce(e))return;const t=e.currentTarget;me(t,"focusout",(()=>y(e,t)))})),S=s.onFocusCapture,C=Se((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return void d(!1);const t=e.currentTarget,r=()=>y(e,t);nn||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||("SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):Xt.includes(r)))}(e.target)?me(e.target,"focusout",r):d(!1)})),k=s.onBlur,j=Se((e=>{null==k||k(e),n&&he(e)&&d(!1)})),E=(0,B.useContext)(Ot),P=Se((e=>{n&&o&&e&&E&&queueMicrotask((()=>{Ut(e)||Lt(e)&&e.focus()}))})),T=Ee(a),R=n&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),I=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),N=s.style,M=(0,B.useMemo)((()=>c?v({pointerEvents:"none"},N):N),[c,N]);return L(s=b(v({"data-focus-visible":n&&u||void 0,"data-autofocus":o||void 0,"aria-disabled":l||void 0},s),{ref:ke(a,P,s.ref),style:M,tabIndex:en(n,c,R,I,s.tabIndex),disabled:!(!I||!c)||void 0,contentEditable:l?void 0:s.contentEditable,onKeyPressCapture:p,onClickCapture:h,onMouseDownCapture:f,onMouseDown:g,onKeyDownCapture:_,onFocusCapture:C,onBlur:j}))}));_t((function(e){return Ct("div",sn(e))}));function an(e,t,n){return Se((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&&!ee(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),s=null==(o=bt(e,i.activeId))?void 0:o.element;if(!s)return;const a=r,{view:l}=a,c=x(a,["view"]);s!==(null==n?void 0:n.current)&&s.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(s,r.type,c)||r.preventDefault(),r.currentTarget.contains(s)&&r.stopPropagation()}))}var ln=kt((function(e){var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,s=x(t,["store","composite","focusOnMove","moveOnKeyPress"]);const a=It();D(n=n||a,!1);const l=(0,B.useRef)(null),c=(0,B.useRef)(null),u=function(e){const[t,n]=(0,B.useState)(!1),r=(0,B.useCallback)((()=>n(!0)),[]),o=e.useState((t=>bt(e,t.activeId)));return(0,B.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),d=n.useState("moves"),[,p]=Ce(r?n.setBaseElement:null);(0,B.useEffect)((()=>{var e;if(!n)return;if(!d)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=bt(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(E({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[n,d,r,o]),ye((()=>{if(!n)return;if(!d)return;if(!r)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=c.current;c.current=null,o&&pe(o,{relatedTarget:e}),Ut(e)||e.focus()}),[n,d,r]);const f=n.useState("activeId"),h=n.useState("virtualFocus");ye((()=>{var e;if(!n)return;if(!r)return;if(!h)return;const t=c.current;if(c.current=null,!t)return;const o=(null==(e=bt(n,f))?void 0:e.element)||q(t);o!==t&&pe(t,{relatedTarget:o})}),[n,f,h,r]);const m=an(n,s.onKeyDownCapture,c),g=an(n,s.onKeyUpCapture,c),y=s.onFocusCapture,w=Se((e=>{if(null==y||y(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)})),_=s.onFocus,S=Se((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?ce(e)&&!yt(n,t)&&queueMicrotask(u):ce(e)&&n.setActiveId(null)})),C=s.onBlurCapture,k=Se((e=>{var t;if(null==C||C(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=bt(n,o))?void 0:t.element,s=e.relatedTarget,a=yt(n,s),l=c.current;if(c.current=null,ce(e)&&a)s===i?l&&l!==s&&pe(l,e):i?pe(i,e):l&&pe(l,e),e.stopPropagation();else{!yt(n,e.target)&&i&&pe(i,e)}})),j=s.onKeyDown,P=Re(i),T=Se((e=>{var t;if(null==j||j(e),e.defaultPrevented)return;if(!n)return;if(!ce(e))return;const{orientation:r,items:o,renderedItems:i,activeId:s}=n.getState(),a=bt(n,s);if(null==(t=null==a?void 0:a.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)&&ee(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))}(it(st(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},p=d[e.key];if(p){const t=p();if(void 0!==t){if(!P(e))return;e.preventDefault(),n.move(t)}}}));s=Ie(s,(e=>(0,wt.jsx)(Nt,{value:n,children:e})),[n]);const R=n.useState((e=>{var t;if(n&&r&&e.virtualFocus)return null==(t=bt(n,e.activeId))?void 0:t.id}));s=b(v({"aria-activedescendant":R},s),{ref:ke(l,p,s.ref),onKeyDownCapture:m,onKeyUpCapture:g,onFocusCapture:w,onFocus:S,onBlurCapture:k,onKeyDown:T});const I=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return s=sn(v({focusable:I},s))})),cn=_t((function(e){return Ct("div",ln(e))}));const un=(0,c.createContext)({}),dn=()=>(0,c.useContext)(un);var pn=(0,B.createContext)(void 0),fn=kt((function(e){const[t,n]=(0,B.useState)();return e=Ie(e,(e=>(0,wt.jsx)(pn.Provider,{value:n,children:e})),[]),L(e=v({role:"group","aria-labelledby":t},e))})),hn=(_t((function(e){return Ct("div",fn(e))})),kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);return r=fn(r)}))),mn=_t((function(e){return Ct("div",hn(e))}));const gn=(0,c.forwardRef)((function(e,t){var n;const r=dn(),o=null!==(n=e.store)&&void 0!==n?n:r.store;return(0,wt.jsx)(mn,{store:o,...e,ref:t})}));var vn=kt((function(e){const t=(0,B.useContext)(pn),n=je(e.id);return ye((()=>(null==t||t(n),()=>null==t?void 0:t(void 0))),[t,n]),L(e=v({id:n,"aria-hidden":!0},e))})),bn=(_t((function(e){return Ct("div",vn(e))})),kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);return r=vn(r)}))),xn=_t((function(e){return Ct("div",bn(e))}));const yn=(0,c.forwardRef)((function(e,t){var n;const r=dn(),o=null!==(n=e.store)&&void 0!==n?n:r.store;return(0,wt.jsx)(xn,{store:o,...e,ref:t})})),wn=(0,c.forwardRef)((function(e,t){var n;const r=dn(),o=null!==(n=e.store)&&void 0!==n?n:r.store;return(0,wt.jsx)(mn,{store:o,...e,ref:t})}));var _n=kt((function(e){var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=A,element:i}=t,s=x(t,["store","shouldRegisterItem","getItem","element"]);const a=Pt();n=n||a;const l=je(s.id),c=(0,B.useRef)(i);return(0,B.useEffect)((()=>{const e=c.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),L(s=b(v({},s),{ref:ke(c,s.ref)}))}));_t((function(e){return Ct("div",_n(e))}));function Sn(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Z(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Z(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var Cn=Symbol("command"),kn=kt((function(e){var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=x(t,["clickOnEnter","clickOnSpace"]);const i=(0,B.useRef)(null),s=Ee(i),a=o.type,[l,c]=(0,B.useState)((()=>!!s&&Z({tagName:s,type:a})));(0,B.useEffect)((()=>{i.current&&c(Z(i.current))}),[]);const[u,d]=(0,B.useState)(!1),p=(0,B.useRef)(!1),f=z(o),[h,m]=Me(o,Cn,!0),g=o.onKeyDown,y=Se((e=>{null==g||g(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(h)return;if(f)return;if(!ce(e))return;if(ee(t))return;if(t.isContentEditable)return;const o=n&&"Enter"===e.key,i=r&&" "===e.key,s="Enter"===e.key&&!n,a=" "===e.key&&!r;if(s||a)e.preventDefault();else if(o||i){const n=Sn(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=x(n,["view"]),i=()=>fe(t,o);G&&/firefox\//i.test(navigator.userAgent)?me(t,"keyup",i):queueMicrotask(i)}}else i&&(p.current=!0,n||(e.preventDefault(),d(!0)))}})),w=o.onKeyUp,_=Se((e=>{if(null==w||w(e),e.defaultPrevented)return;if(h)return;if(f)return;if(e.metaKey)return;const t=r&&" "===e.key;if(p.current&&t&&(p.current=!1,!Sn(e))){e.preventDefault(),d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=x(n,["view"]);queueMicrotask((()=>fe(t,o)))}}));return o=b(v(v({"data-active":u||void 0,type:l?"button":void 0},m),o),{ref:ke(i,o.ref),onKeyDown:y,onKeyUp:_}),o=sn(o)}));_t((function(e){return Ct("button",kn(e))}));function jn(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function En(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),s=oe(e);if(!s)return;const a=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}(s,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 s=null==(o=bt(t,l))?void 0:o.element;if(!s)continue;const u=jn(s,r)-a,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Pn=kt((function(e){var t=e,{store:n,rowId:r,preventScrollOnKeyDown:o=!1,moveOnKeyPress:i=!0,tabbable:s=!1,getItem:a,"aria-setsize":l,"aria-posinset":c}=t,u=x(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const d=Rt();n=n||d;const p=je(u.id),f=(0,B.useRef)(null),h=(0,B.useContext)(Dt),m=Qe(n,(e=>r||(e&&(null==h?void 0:h.baseElement)&&h.baseElement===e.baseElement?h.id:void 0))),g=z(u)&&!u.accessibleWhenDisabled,y=(0,B.useCallback)((e=>{const t=b(v({},e),{id:p||e.id,rowId:m,disabled:!!g});return a?a(t):t}),[p,m,g,a]),w=u.onFocus,_=(0,B.useRef)(!1),S=Se((e=>{if(null==w||w(e),e.defaultPrevented)return;if(le(e))return;if(!p)return;if(!n)return;if(function(e,t){return!ce(e)&&yt(t,e.target)}(e,n))return;const{virtualFocus:t,baseElement:r}=n.getState();if(n.setActiveId(p),te(e.currentTarget)&&function(e,t=!1){if(ee(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=K(e).getSelection();null==n||n.selectAllChildren(e),t&&(null==n||n.collapseToEnd())}}(e.currentTarget),!t)return;if(!ce(e))return;if(te(o=e.currentTarget)||"INPUT"===o.tagName&&!Z(o))return;var o;if(!(null==r?void 0:r.isConnected))return;se()&&e.currentTarget.hasAttribute("data-autofocus")&&e.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),_.current=!0;e.relatedTarget===r||yt(n,e.relatedTarget)?function(e){e[xt]=!0,e.focus({preventScroll:!0})}(r):r.focus()})),C=u.onBlurCapture,k=Se((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())})),j=u.onKeyDown,E=Re(o),P=Re(i),T=Se((e=>{if(null==j||j(e),e.defaultPrevented)return;if(!ce(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(p),i=!!(null==o?void 0:o.rowId),s="horizontal"!==r.orientation,a="vertical"!==r.orientation,l=()=>!!i||(!!a||(!r.baseElement||!ee(r.baseElement))),c={ArrowUp:(i||s)&&n.up,ArrowRight:(i||a)&&n.next,ArrowDown:(i||s)&&n.down,ArrowLeft:(i||a)&&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:()=>En(t,n,null==n?void 0:n.up,!0),PageDown:()=>En(t,n,null==n?void 0:n.down)}[e.key];if(c){if(te(t)){const n=function(e){let t=0,n=0;if(ee(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=K(e).getSelection();if((null==r?void 0:r.rangeCount)&&r.anchorNode&&Y(e,r.anchorNode)&&r.focusNode&&Y(e,r.focusNode)){const o=r.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(e),i.setEnd(o.startContainer,o.startOffset),t=i.toString().length,i.setEnd(o.endContainer,o.endOffset),n=i.toString().length}}return{start:t,end:n}}(t),r=a&&"ArrowLeft"===e.key,o=a&&"ArrowRight"===e.key,i=s&&"ArrowUp"===e.key,l=s&&"ArrowDown"===e.key;if(o||l){const{length:e}=function(e){if(ee(e))return e.value;if(e.isContentEditable){const t=K(e).createRange();return t.selectNodeContents(e),t.toString()}return""}(t);if(n.end!==e)return}else if((r||i)&&0!==n.start)return}const r=c();if(E(e)||void 0!==r){if(!P(e))return;e.preventDefault(),n.move(r)}}})),R=Qe(n,(e=>(null==e?void 0:e.baseElement)||void 0)),I=(0,B.useMemo)((()=>({id:p,baseElement:R})),[p,R]);u=Ie(u,(e=>(0,wt.jsx)(At.Provider,{value:I,children:e})),[I]);const N=Qe(n,(e=>!!e&&e.activeId===p)),M=Qe(n,(e=>null!=l?l:e&&(null==h?void 0:h.ariaSetSize)&&h.baseElement===e.baseElement?h.ariaSetSize:void 0)),A=Qe(n,(e=>{if(null!=c)return c;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===m));return h.ariaPosInSet+t.findIndex((e=>e.id===p))})),D=Qe(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!s||e.activeId===p)));return u=b(v({id:p,"data-active-item":N||void 0},u),{ref:ke(f,u.ref),tabIndex:D?u.tabIndex:-1,onFocus:S,onBlurCapture:k,onKeyDown:T}),u=kn(u),u=_n(b(v({store:n},u),{getItem:y,shouldRegisterItem:!!p&&u.shouldRegisterItem})),L(b(v({},u),{"aria-setsize":M,"aria-posinset":A}))})),Tn=St(_t((function(e){return Ct("button",Pn(e))})));const Rn=(0,c.forwardRef)((function(e,t){var n;const r=dn(),o=null!==(n=e.store)&&void 0!==n?n:r.store,i=Qe(o,(e=>null!==e?.activeId&&!o?.item(e?.activeId)?.element?.isConnected));return(0,wt.jsx)(Tn,{store:o,tabbable:i,...e,ref:t})}));var In=kt((function(e){var t=e,{store:n,"aria-setsize":r,"aria-posinset":o}=t,i=x(t,["store","aria-setsize","aria-posinset"]);const s=Rt();D(n=n||s,!1);const a=je(i.id),l=n.useState((e=>e.baseElement||void 0)),c=(0,B.useMemo)((()=>({id:a,baseElement:l,ariaSetSize:r,ariaPosInSet:o})),[a,l,r,o]);return i=Ie(i,(e=>(0,wt.jsx)(Dt.Provider,{value:c,children:e})),[c]),L(i=v({id:a},i))})),Nn=_t((function(e){return Ct("div",In(e))}));const Mn=(0,c.forwardRef)((function(e,t){var n;const r=dn(),o=null!==(n=e.store)&&void 0!==n?n:r.store;return(0,wt.jsx)(Nn,{store:o,...e,ref:t})})),An=(0,c.forwardRef)((function(e,t){var n;const r=dn(),o=null!==(n=e.store)&&void 0!==n?n:r.store;return(0,wt.jsx)(Nn,{store:o,...e,ref:t})})),Dn=Object.assign((0,c.forwardRef)((function({activeId:e,defaultActiveId:t,setActiveId:n,focusLoop:r=!1,focusWrap:o=!1,focusShift:i=!1,virtualFocus:s=!1,orientation:l="both",rtl:u=(0,a.isRTL)(),children:d,disabled:p=!1,...f},h){const m=f.store,g=gt({activeId:e,defaultActiveId:t,setActiveId:n,focusLoop:r,focusWrap:o,focusShift:i,virtualFocus:s,orientation:l,rtl:u}),v=null!=m?m:g,b=(0,c.useMemo)((()=>({store:v})),[v]);return(0,wt.jsx)(cn,{disabled:p,store:v,...f,ref:h,children:(0,wt.jsx)(un.Provider,{value:b,children:d})})})),{Group:Object.assign(gn,{displayName:"Composite.Group"}),GroupLabel:Object.assign(yn,{displayName:"Composite.GroupLabel"}),Item:Object.assign(Rn,{displayName:"Composite.Item"}),Row:Object.assign(Mn,{displayName:"Composite.Row"}),Hover:Object.assign(wn,{displayName:"Composite.Hover"}),Typeahead:Object.assign(An,{displayName:"Composite.Typeahead"}),Context:Object.assign(un,{displayName:"Composite.Context"})});function On(e={}){const t=qe(e.store,Ke(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=F(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=F(e.animated,null==n?void 0:n.animated,!1),i=Ve({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:F(null==n?void 0:n.contentElement,null),disclosureElement:F(null==n?void 0:n.disclosureElement,null)},t);return $e(i,(()=>Ue(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),$e(i,(()=>We(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),$e(i,(()=>Ue(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),P(E({},i),{disclosure:e.disclosure,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 zn(e,t,n){return Pe(t,[n.store,n.disclosure]),Je(e,n,"open","setOpen"),Je(e,n,"mounted","setMounted"),Je(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Ln(e={}){const[t,n]=et(On,e);return zn(t,n,e)}function Fn(e={}){return On(e)}function Bn(e,t,n){return zn(e,t,n)}function Vn(e,t,n){return Pe(t,[n.popover]),Je(e,n,"placement"),Bn(e,t,n)}function $n(e,t,n){return Je(e,n,"timeout"),Je(e,n,"showTimeout"),Je(e,n,"hideTimeout"),Vn(e,t,n)}function Hn(e={}){var t=e,{popover:n}=t,r=T(t,["popover"]);const o=qe(r.store,Ke(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),s=Fn(P(E({},r),{store:o})),a=F(r.placement,null==i?void 0:i.placement,"bottom"),l=Ve(P(E({},s.getState()),{placement:a,currentPlacement:a,anchorElement:F(null==i?void 0:i.anchorElement,null),popoverElement:F(null==i?void 0:i.popoverElement,null),arrowElement:F(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),s,o);return P(E(E({},s),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"))})}function Wn(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Hn(P(E({},e),{placement:F(e.placement,null==n?void 0:n.placement,"bottom")})),o=F(e.timeout,null==n?void 0:n.timeout,500),i=Ve(P(E({},r.getState()),{timeout:o,showTimeout:F(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:F(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:F(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return P(E(E({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function Un(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Wn(P(E({},e),{placement:F(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:F(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Ve(P(E({},r.getState()),{type:F(e.type,null==n?void 0:n.type,"description"),skipTimeout:F(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return E(E({},r),o)}function Gn(e={}){const[t,n]=et(Un,e);return function(e,t,n){return Je(e,n,"type"),Je(e,n,"skipTimeout"),$n(e,t,n)}(t,n,e)}kt((function(e){return e}));var Kn=_t((function(e){return Ct("div",e)}));Object.assign(Kn,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce(((e,t)=>(e[t]=_t((function(e){return Ct(t,e)})),e)),{}));var qn=jt(),Yn=(qn.useContext,qn.useScopedContext,qn.useProviderContext),Xn=jt([qn.ContextProvider],[qn.ScopedContextProvider]),Zn=(Xn.useContext,Xn.useScopedContext,Xn.useProviderContext),Qn=Xn.ContextProvider,Jn=Xn.ScopedContextProvider,er=(0,B.createContext)(void 0),tr=(0,B.createContext)(void 0),nr=jt([Qn],[Jn]),rr=nr.useContext,or=(nr.useScopedContext,nr.useProviderContext),ir=nr.ContextProvider,sr=nr.ScopedContextProvider,ar=jt([ir],[sr]),lr=(ar.useContext,ar.useScopedContext,ar.useProviderContext),cr=ar.ContextProvider,ur=ar.ScopedContextProvider,dr=kt((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=x(t,["store","showOnHover"]);const i=lr();D(n=n||i,!1);const s=z(o),a=(0,B.useRef)(0);(0,B.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,B.useEffect)((()=>ge("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(a.current),a.current=0)}),!0)),[n]);const l=o.onMouseMove,c=Re(r),u=Ae(),d=Se((e=>{if(null==l||l(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(a.current)return;if(!u())return;if(!c(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{a.current=0,u()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},d=null!=r?r:o;0===d?i():a.current=window.setTimeout(i,d)})),p=o.onClick,f=Se((e=>{null==p||p(e),n&&(window.clearTimeout(a.current),a.current=0)})),h=(0,B.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=b(v({},o),{ref:ke(h,o.ref),onMouseMove:d,onClick:f}),o=sn(o)})),pr=(_t((function(e){return Ct("a",dr(e))})),jt([cr],[ur])),fr=(pr.useContext,pr.useScopedContext,pr.useProviderContext),hr=(pr.ContextProvider,pr.ScopedContextProvider),mr=Ve({activeStore:null});function gr(e){return()=>{const{activeStore:t}=mr.getState();t===e&&mr.setState("activeStore",null)}}var vr=kt((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=x(t,["store","showOnHover"]);const i=fr();D(n=n||i,!1);const s=(0,B.useRef)(!1);(0,B.useEffect)((()=>Ue(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,B.useEffect)((()=>{if(n)return M(gr(n),Ue(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=mr.getState();return e!==n&&(null==e||e.hide()),mr.setState("activeStore",n)}const t=setTimeout(gr(n),e.skipTimeout);return()=>clearTimeout(t)})))}),[n]);const a=o.onMouseEnter,l=Se((e=>{null==a||a(e),s.current=!0})),c=o.onFocusVisible,u=Se((e=>{null==c||c(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),d=o.onBlur,p=Se((e=>{if(null==d||d(e),e.defaultPrevented)return;const{activeStore:t}=mr.getState();s.current=!1,t===n&&mr.setState("activeStore",null)})),f=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=b(v({"aria-labelledby":"label"===f?h:void 0},o),{onMouseEnter:l,onFocusVisible:u,onBlur:p}),o=dr(v({store:n,showOnHover(e){if(!s.current)return!1;if(O(r,e))return!1;const{activeStore:t}=mr.getState();return!t||(null==n||n.show(),!1)}},o))})),br=_t((function(e){return Ct("div",vr(e))}));function xr(e){return[e.clientX,e.clientY]}function yr(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,s=e-1;i<e;s=i++){const[a,l]=t[i],[c,u]=t[s],[,d]=t[0===s?e-1:s-1]||[0,0],p=(l-u)*(n-a)-(a-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===p)return!0;p>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===p)return!0;p<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r===l&&(n>=c&&n<=a||n>=a&&n<=c))return!0}return o}function wr(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:s}=n,[a,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[s,a]=e;return[s<i?"left":s>r?"right":null,a<n?"top":a>o?"bottom":null]}(t,n),c=[t];return a?("top"!==l&&c.push(["left"===a?s:o,r]),c.push(["left"===a?o:s,r]),c.push(["left"===a?o:s,i]),"bottom"!==l&&c.push(["left"===a?s:o,i])):"top"===l?(c.push([s,r]),c.push([s,i]),c.push([o,i]),c.push([o,r])):(c.push([s,i]),c.push([s,r]),c.push([o,r]),c.push([o,i])),c}function _r(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 Sr=new WeakMap;function Cr(e,t,n){Sr.has(e)||Sr.set(e,new Map);const r=Sr.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(),s=()=>{i(),o(),r.delete(t)};return r.set(t,s),()=>{r.get(t)===s&&(i(),r.set(t,o))}}function kr(e,t,n){return Cr(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function jr(e,t,n){return Cr(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Er(e,t){if(!e)return()=>{};return Cr(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Pr=["SCRIPT","STYLE"];function Tr(e){return`__ariakit-dialog-snapshot-${e}`}function Rr(e,t,n){return!Pr.includes(t.tagName)&&(!!function(e,t){const n=K(t),r=Tr(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 Ir(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)))),s=K(o),a=o;for(;o.parentElement&&o!==s.body;){if(null==r||r(o.parentElement,a),!i)for(const r of o.parentElement.children)Rr(e,r,t)&&n(r,a);o=o.parentElement}}}function Nr(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function Mr(e,t=""){return M(jr(e,Nr("",!0),!0),jr(e,Nr(t,!0),!0))}function Ar(e,t){if(e[Nr(t,!0)])return!0;const n=Nr(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Dr(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Ir(e,t,(t=>{_r(t,...r)||n.unshift(function(e,t=""){return M(jr(e,Nr(),!0),jr(e,Nr(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(Mr(t,e))}));return()=>{for(const e of n)e()}}const Or=window.ReactDOM;function zr(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Lr(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t||"0s")*n;return r>e?r:e}),0)}function Fr(e,t,n){return!(n||!1===t||e&&!t)}var Br=kt((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=x(t,["store","alwaysVisible"]);const i=Yn();D(n=n||i,!1);const s=(0,B.useRef)(null),a=je(o.id),[l,c]=(0,B.useState)(null),u=n.useState("open"),d=n.useState("mounted"),p=n.useState("animated"),f=n.useState("contentElement"),h=Qe(n.disclosure,"contentElement");ye((()=>{s.current&&(null==n||n.setContentElement(s.current))}),[n]),ye((()=>{let e;return null==n||n.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==n||n.setState("animated",e))}}),[n]),ye((()=>{if(p){if(null==f?void 0:f.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{c(u?"enter":d?"leave":null)}));c(null)}}),[p,f,u,d]),ye((()=>{if(!n)return;if(!p)return;const e=()=>null==n?void 0:n.setState("animating",!1),t=()=>(0,Or.flushSync)(e);if(!l||!f)return void e();if("leave"===l&&u)return;if("enter"===l&&!u)return;if("number"==typeof p){return zr(p,t)}const{transitionDuration:r,animationDuration:o,transitionDelay:i,animationDelay:s}=getComputedStyle(f),{transitionDuration:a="0",animationDuration:c="0",transitionDelay:d="0",animationDelay:m="0"}=h?getComputedStyle(h):{},g=Lr(i,s,d,m)+Lr(r,o,a,c);if(!g)return"enter"===l&&n.setState("animated",!1),void e();return zr(Math.max(g-1e3/60,0),t)}),[n,p,f,h,u,l]),o=Ie(o,(e=>(0,wt.jsx)(Jn,{value:n,children:e})),[n]);const m=Fr(d,o.hidden,r),g=o.style,y=(0,B.useMemo)((()=>m?b(v({},g),{display:"none"}):g),[m,g]);return L(o=b(v({id:a,"data-open":u||void 0,"data-enter":"enter"===l||void 0,"data-leave":"leave"===l||void 0,hidden:m},o),{ref:ke(a?n.setContentElement:null,s,o.ref),style:y}))})),Vr=_t((function(e){return Ct("div",Br(e))})),$r=_t((function(e){var t=e,{unmountOnHide:n}=t,r=x(t,["unmountOnHide"]);const o=Yn();return!1===Qe(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,wt.jsx)(Vr,v({},r))}));function Hr({store:e,backdrop:t,alwaysVisible:n,hidden:r}){const o=(0,B.useRef)(null),i=Ln({disclosure:e}),s=e.useState("contentElement");ye((()=>{const e=o.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),ye((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=o.current;return t?Mr(t,e):void 0}),[s]);const a=Br({ref:o,store:i,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:n,hidden:null!=r?r:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if((0,B.isValidElement)(t))return(0,wt.jsx)(Kn,b(v({},a),{render:t}));const l="boolean"!=typeof t?t:"div";return(0,wt.jsx)(Kn,b(v({},a),{render:(0,wt.jsx)(l,{})}))}function Wr(e){return kr(e,"aria-hidden","true")}function Ur(){return"inert"in HTMLElement.prototype}function Gr(e,t){if(!("style"in e))return R;if(Ur())return jr(e,"inert",!0);const n=Vt(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&Y(t,e))))return R;const n=Cr(e,"focus",(()=>(e.focus=R,()=>{delete e.focus})));return M(kr(e,"tabindex","-1"),n)}));return M(...n,Wr(e),Er(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function Kr(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=Te(),s=(0,B.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=K(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,B.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=K(n);if(s())return o.setAttribute(e,t),()=>o.removeAttribute(e);const a=new MutationObserver((()=>(0,Or.flushSync)(i)));return a.observe(o,{attributeFilter:[e]}),()=>a.disconnect()}),[o,r,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,B.useEffect)((()=>{if(!r())return;if(!e)return;const t=K(e),n=function(e){return K(e).defaultView||window}(e),{documentElement:o,body:i}=t,s=o.style.getPropertyValue("--scrollbar-width"),a=s?Number.parseInt(s):n.innerWidth-o.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),c=ie()&&!ae();return M((d="--scrollbar-width",p=`${a}px`,(u=o)?Cr(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,p),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:s}=n,c=null!=(e=null==s?void 0:s.offsetLeft)?e:0,u=null!=(t=null==s?void 0:s.offsetTop)?t:0,d=Er(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${a}px`});return()=>{d(),n.scrollTo({left:r,top:o,behavior:"instant"})}})():Er(i,{overflow:"hidden",[l]:`${a}px`}));var u,d,p}),[r,e])}var qr=(0,B.createContext)({});function Yr({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Se(n),s=Qe(e,"open"),a=(0,B.useRef)(!1);ye((()=>{if(!s)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{a.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,o]),(0,B.useEffect)((()=>{if(!s)return;return ge(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(K(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=K(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;var s;a.current&&!Ar(o,n.id)||((s=o)&&s[Zt]||i(t))}),r)}),[s,r])}function Xr(e,t){return"function"==typeof e?e(t):!!e}function Zr(e,t,n){const r=function(e){const t=(0,B.useRef)();return(0,B.useEffect)((()=>{if(e)return ge("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(Qe(e,"open")),o={store:e,domReady:n,capture:!0};Yr(b(v({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&J(i)&&Ar(i,null==o?void 0:o.id)&&Xr(t,n)&&e.hide()}})),Yr(b(v({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==K(r)&&Xr(t,n)&&e.hide()}})),Yr(b(v({},o),{type:"contextmenu",listener:n=>{Xr(t,n)&&e.hide()}}))}var Qr=kt((function(e){var t=e,{autoFocusOnShow:n=!0}=t,r=x(t,["autoFocusOnShow"]);return r=Ie(r,(e=>(0,wt.jsx)(Ot.Provider,{value:n,children:e})),[n])})),Jr=(_t((function(e){return Ct("div",Qr(e))})),(0,B.createContext)(0));function eo({level:e,children:t}){const n=(0,B.useContext)(Jr),r=Math.max(Math.min(e||n+1,6),1);return(0,wt.jsx)(Jr.Provider,{value:r,children:t})}var to=kt((function(e){return e=b(v({},e),{style:v({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})})),no=(_t((function(e){return Ct("span",to(e))})),kt((function(e){return e=b(v({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:v({position:"fixed",top:0,left:0},e.style)}),e=to(e)}))),ro=_t((function(e){return Ct("span",no(e))})),oo=(0,B.createContext)(null);function io(e){queueMicrotask((()=>{null==e||e.focus()}))}var so=kt((function(e){var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:o,portalRef:i,portal:s=!0}=t,a=x(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const l=(0,B.useRef)(null),c=ke(l,a.ref),u=(0,B.useContext)(oo),[d,p]=(0,B.useState)(null),[f,h]=(0,B.useState)(null),m=(0,B.useRef)(null),g=(0,B.useRef)(null),y=(0,B.useRef)(null),w=(0,B.useRef)(null);return ye((()=>{const e=l.current;if(!e||!s)return void p(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:K(e).createElement("div")}(e,o);if(!t)return void p(null);const n=t.isConnected;if(!n){const n=u||function(e){return K(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)}`}()),p(t),H(i,t),n?void 0:()=>{t.remove(),H(i,null)}}),[s,o,u,i]),ye((()=>{if(!s)return;if(!n)return;if(!r)return;const e=K(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),h(e),()=>{e.remove(),h(null)}}),[s,n,r]),(0,B.useEffect)((()=>{if(!d)return;if(!n)return;let e=0;const t=t=>{if(!he(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);for(const e of t)n(e)}(d);e=requestAnimationFrame((()=>{!function(e,t){const n=Vt(e,t);for(const e of n)qt(e)}(d,!0)}))};return d.addEventListener("focusin",t,!0),d.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),d.removeEventListener("focusin",t,!0),d.removeEventListener("focusout",t,!0)}}),[d,n]),a=Ie(a,(e=>{if(e=(0,wt.jsx)(oo.Provider,{value:d||u,children:e}),!s)return e;if(!d)return(0,wt.jsx)("span",{ref:c,id:a.id,style:{position:"fixed"},hidden:!0});e=(0,wt.jsxs)(wt.Fragment,{children:[n&&d&&(0,wt.jsx)(ro,{ref:g,className:"__focus-trap-inner-before",onFocus:e=>{he(e,d)?io(Ht()):io(m.current)}}),e,n&&d&&(0,wt.jsx)(ro,{ref:y,className:"__focus-trap-inner-after",onFocus:e=>{he(e,d)?io(Wt()):io(w.current)}})]}),d&&(e=(0,Or.createPortal)(e,d));let t=(0,wt.jsxs)(wt.Fragment,{children:[n&&d&&(0,wt.jsx)(ro,{ref:m,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===w.current)&&he(e,d)?io(g.current):io(Wt())}}),n&&(0,wt.jsx)("span",{"aria-owns":null==d?void 0:d.id,style:{position:"fixed"}}),n&&d&&(0,wt.jsx)(ro,{ref:w,className:"__focus-trap-outer-after",onFocus:e=>{if(he(e,d))io(y.current);else{const e=Ht();if(e===g.current)return void requestAnimationFrame((()=>{var e;return null==(e=Ht())?void 0:e.focus()}));io(e)}}})]});return f&&n&&(t=(0,Or.createPortal)(t,f)),(0,wt.jsxs)(wt.Fragment,{children:[t,e]})}),[d,u,s,a.id,n,f]),a=b(v({},a),{ref:c})})),ao=(_t((function(e){return Ct("div",so(e))})),se());function lo(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?Lt(n)?n:null:n:null}var co=kt((function(e){var t=e,{store:n,open:r,onClose:o,focusable:i=!0,modal:s=!0,portal:a=!!s,backdrop:l=!!s,hideOnEscape:c=!0,hideOnInteractOutside:u=!0,getPersistentElements:d,preventBodyScroll:p=!!s,autoFocusOnShow:f=!0,autoFocusOnHide:h=!0,initialFocus:m,finalFocus:g,unmountOnHide:y,unstable_treeSnapshotKey:w}=t,_=x(t,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const S=Zn(),C=(0,B.useRef)(null),k=function(e={}){const[t,n]=et(Fn,e);return Bn(t,n,e)}({store:n||S,open:r,setOpen(e){if(e)return;const t=C.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});o&&t.addEventListener("close",o,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&k.setOpen(!0)}}),{portalRef:j,domReady:E}=Ne(a,_.portalRef),P=_.preserveTabOrder,T=k.useState((e=>P&&!s&&e.mounted)),R=je(_.id),I=k.useState("open"),N=k.useState("mounted"),A=k.useState("contentElement"),D=Fr(N,_.hidden,_.alwaysVisible);Kr(A,R,p&&!D),Zr(k,u,E);const{wrapElement:O,nestedDialogs:z}=function(e){const t=(0,B.useContext)(qr),[n,r]=(0,B.useState)([]),o=(0,B.useCallback)((e=>{var n;return r((t=>[...t,e])),M(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);ye((()=>Ue(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 i=(0,B.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,B.useCallback)((e=>(0,wt.jsx)(qr.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(k);_=Ie(_,O,[O]),ye((()=>{if(!I)return;const e=C.current,t=q(e,!0);t&&"BODY"!==t.tagName&&(e&&Y(e,t)||k.setDisclosureElement(t))}),[k,I]),ao&&(0,B.useEffect)((()=>{if(!N)return;const{disclosureElement:e}=k.getState();if(!e)return;if(!Z(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||Kt(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[k,N]),(0,B.useEffect)((()=>{if(!s)return;if(!N)return;if(!E)return;const e=C.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=K(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,N,E]),ye((()=>{if(!Ur())return;if(I)return;if(!N)return;if(!E)return;const e=C.current;return e?Gr(e):void 0}),[I,N,E]);const L=I&&E;ye((()=>{if(!R)return;if(!L)return;const e=C.current;return function(e,t){const{body:n}=K(t[0]),r=[];return Ir(e,t,(t=>{r.push(jr(t,Tr(e),!0))})),M(jr(n,Tr(e),!0),(()=>{for(const e of r)e()}))}(R,[e])}),[R,L,w]);const F=Se(d);ye((()=>{if(!R)return;if(!L)return;const{disclosureElement:e}=k.getState(),t=[C.current,...F()||[],...z.map((e=>e.getState().contentElement))];return s?M(Dr(R,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Ir(e,t,(e=>{_r(e,...r)||n.unshift(Gr(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&Y(t,e)))||n.unshift(kr(e,"role","none")))})),()=>{for(const e of n)e()}}(R,t)):Dr(R,[e,...t])}),[R,k,L,F,z,s,w]);const V=!!f,$=Re(f),[H,W]=(0,B.useState)(!1);(0,B.useEffect)((()=>{if(!I)return;if(!V)return;if(!E)return;if(!(null==A?void 0:A.isConnected))return;const e=lo(m,!0)||A.querySelector("[data-autofocus=true],[autofocus]")||$t(A,!0,a&&T)||A,t=Lt(e);$(t?e:null)&&(W(!0),queueMicrotask((()=>{e.focus(),ao&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[I,V,E,A,m,a,T,$]);const U=!!h,G=Re(h),[X,Q]=(0,B.useState)(!1);(0,B.useEffect)((()=>{if(I)return Q(!0),()=>Q(!1)}),[I]);const J=(0,B.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=k.getState();if(function(e){const t=q();return!(!t||e&&Y(e,t)||!Lt(t))}(e))return;let r=lo(g)||n;if(null==r?void 0:r.id){const e=K(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!Lt(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=K(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&Lt(r);o||!t?G(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>J(e,!1)))}),[k,g,G]),ee=(0,B.useRef)(!1);ye((()=>{if(I)return;if(!X)return;if(!U)return;const e=C.current;ee.current=!0,J(e)}),[I,X,E,U,J]),(0,B.useEffect)((()=>{if(!X)return;if(!U)return;const e=C.current;return()=>{ee.current?ee.current=!1:J(e)}}),[X,U,J]);const te=Re(c);(0,B.useEffect)((()=>{if(!E)return;if(!N)return;return ge("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=C.current;if(!t)return;if(Ar(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,E,N,te]);const ne=(_=Ie(_,(e=>(0,wt.jsx)(eo,{level:s?1:void 0,children:e})),[s])).hidden,re=_.alwaysVisible;_=Ie(_,(e=>l?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Hr,{store:k,backdrop:l,hidden:ne,alwaysVisible:re}),e]}):e),[k,l,ne,re]);const[oe,ie]=(0,B.useState)(),[se,ae]=(0,B.useState)();return _=Ie(_,(e=>(0,wt.jsx)(Jn,{value:k,children:(0,wt.jsx)(er.Provider,{value:ie,children:(0,wt.jsx)(tr.Provider,{value:ae,children:e})})})),[k]),_=b(v({id:R,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":oe,"aria-describedby":se},_),{ref:ke(C,_.ref)}),_=Qr(b(v({},_),{autoFocusOnShow:H})),_=Br(v({store:k},_)),_=sn(b(v({},_),{focusable:i})),_=so(b(v({portal:a},_),{portalRef:j,preserveTabOrder:T}))}));function uo(e,t=Zn){return _t((function(n){const r=t();return Qe(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,wt.jsx)(e,v({},n)):null}))}uo(_t((function(e){return Ct("div",co(e))})),Zn);const po=Math.min,fo=Math.max,ho=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),mo={start:"end",end:"start"};function go(e,t,n){return fo(e,po(t,n))}function vo(e,t){return"function"==typeof e?e(t):e}function bo(e){return e.split("-")[0]}function xo(e){return e.split("-")[1]}function yo(e){return"x"===e?"y":"x"}function wo(e){return"y"===e?"height":"width"}function _o(e){return["top","bottom"].includes(bo(e))?"y":"x"}function So(e){return yo(_o(e))}function Co(e){return e.replace(/start|end/g,(e=>mo[e]))}function ko(e){return e.replace(/left|right|bottom|top/g,(e=>ho[e]))}function jo(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 Eo(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Po(e,t,n){let{reference:r,floating:o}=e;const i=_o(t),s=So(t),a=wo(s),l=bo(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(xo(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1)}return f}async function To(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=vo(t,e),h=jo(f),m=a[p?"floating"===d?"reference":"floating":d],g=Eo(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...s.floating,x:r,y:o}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Eo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+h.top)/x.y,bottom:(y.bottom-g.bottom+h.bottom)/x.y,left:(g.left-y.left+h.left)/x.x,right:(y.right-g.right+h.right)/x.x}}const Ro=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)),s=bo(n),a=xo(n),l="y"===_o(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=vo(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Io=Math.min,No=Math.max,Mo=Math.round,Ao=Math.floor,Do=e=>({x:e,y:e});function Oo(){return"undefined"!=typeof window}function zo(e){return Bo(e)?(e.nodeName||"").toLowerCase():"#document"}function Lo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Fo(e){var t;return null==(t=(Bo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Bo(e){return!!Oo()&&(e instanceof Node||e instanceof Lo(e).Node)}function Vo(e){return!!Oo()&&(e instanceof Element||e instanceof Lo(e).Element)}function $o(e){return!!Oo()&&(e instanceof HTMLElement||e instanceof Lo(e).HTMLElement)}function Ho(e){return!(!Oo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Lo(e).ShadowRoot)}function Wo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Uo(e){return["table","td","th"].includes(zo(e))}function Go(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ko(e){const t=qo(),n=Vo(e)?Xo(e):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 qo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yo(e){return["html","body","#document"].includes(zo(e))}function Xo(e){return Lo(e).getComputedStyle(e)}function Zo(e){return Vo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qo(e){if("html"===zo(e))return e;const t=e.assignedSlot||e.parentNode||Ho(e)&&e.host||Fo(e);return Ho(t)?t.host:t}function Jo(e){const t=Qo(e);return Yo(t)?e.ownerDocument?e.ownerDocument.body:e.body:$o(t)&&Wo(t)?t:Jo(t)}function ei(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Jo(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Lo(o);if(i){const e=function(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}(s);return t.concat(s,s.visualViewport||[],Wo(o)?o:[],e&&n?ei(e):[])}return t.concat(o,ei(o,[],n))}function ti(e){const t=Xo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$o(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Mo(n)!==i||Mo(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ni(e){return Vo(e)?e:e.contextElement}function ri(e){const t=ni(e);if(!$o(t))return Do(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ti(t);let s=(i?Mo(n.width):n.width)/r,a=(i?Mo(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const oi=Do(0);function ii(e){const t=Lo(e);return qo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:oi}function si(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ni(e);let s=Do(1);t&&(r?Vo(r)&&(s=ri(r)):s=ri(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Lo(e))&&t}(i,n,r)?ii(i):Do(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=Lo(i),t=r&&Vo(r)?Lo(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=ri(o),t=o.getBoundingClientRect(),r=Xo(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=Lo(o),o=n.frameElement}}return Eo({width:u,height:d,x:l,y:c})}const ai=[":popover-open",":modal"];function li(e){return ai.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ci(e){return si(Fo(e)).left+Zo(e).scrollLeft}function ui(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Lo(e),r=Fo(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=qo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Fo(e),n=Zo(e),r=e.ownerDocument.body,o=No(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=No(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ci(e);const a=-n.scrollTop;return"rtl"===Xo(r).direction&&(s+=No(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Fo(e));else if(Vo(t))r=function(e,t){const n=si(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$o(e)?ri(e):Do(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=ii(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Eo(r)}function di(e,t){const n=Qo(e);return!(n===t||!Vo(n)||Yo(n))&&("fixed"===Xo(n).position||di(n,t))}function pi(e,t,n){const r=$o(t),o=Fo(t),i="fixed"===n,s=si(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Do(0);if(r||!r&&!i)if(("body"!==zo(t)||Wo(o))&&(a=Zo(t)),r){const e=si(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=ci(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function fi(e,t){return $o(e)&&"fixed"!==Xo(e).position?t?t(e):e.offsetParent:null}function hi(e,t){const n=Lo(e);if(!$o(e)||li(e))return n;let r=fi(e,t);for(;r&&Uo(r)&&"static"===Xo(r).position;)r=fi(r,t);return r&&("html"===zo(r)||"body"===zo(r)&&"static"===Xo(r).position&&!Ko(r))?n:r||function(e){let t=Qo(e);for(;$o(t)&&!Yo(t);){if(Ko(t))return t;if(Go(t))return null;t=Qo(t)}return null}(e)||n}const mi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Fo(r),a=!!t&&li(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Do(1);const u=Do(0),d=$o(r);if((d||!d&&!i)&&(("body"!==zo(r)||Wo(s))&&(l=Zo(r)),$o(r))){const e=si(r);c=ri(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Fo,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=ei(e,[],!1).filter((e=>Vo(e)&&"body"!==zo(e))),o=null;const i="fixed"===Xo(e).position;let s=i?Qo(e):e;for(;Vo(s)&&!Yo(s);){const t=Xo(s),n=Ko(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Wo(s)&&!n&&di(e,s))?r=r.filter((e=>e!==s)):o=t,s=Qo(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=ui(t,n,o);return e.top=No(r.top,e.top),e.right=Io(r.right,e.right),e.bottom=Io(r.bottom,e.bottom),e.left=No(r.left,e.left),e}),ui(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:hi,getElementRects:async function(e){const t=this.getOffsetParent||hi,n=this.getDimensions;return{reference:pi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ti(e);return{width:t,height:n}},getScale:ri,isElement:Vo,isRTL:function(e){return"rtl"===Xo(e).direction}};function gi(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=ni(e),u=o||i?[...c?ei(c):[],...ei(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=Fo(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const f={rootMargin:-Ao(u)+"px "+-Ao(o.clientWidth-(c+d))+"px "+-Ao(o.clientHeight-(u+p))+"px "+-Ao(c)+"px",threshold:No(0,Io(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?si(e):null;return l&&function t(){const r=si(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const vi=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:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=vo(e,t),c={x:n,y:r},u=await To(t,l),d=_o(bo(o)),p=yo(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=go(f+u["y"===p?"top":"left"],f,f-u[e])}if(s){const e="y"===d?"bottom":"right";h=go(h+u["y"===d?"top":"left"],h,h-u[e])}const m=a.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},bi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=vo(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=bo(o),b=bo(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=p||(b||!m?[ko(a)]:function(e){const t=ko(e);return[Co(e),t,Co(t)]}(a));p||"none"===h||y.push(...function(e,t,n,r){const o=xo(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(bo(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Co)))),i}(a,m,h,x));const w=[a,...y],_=await To(t,g),S=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(_[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=xo(e),o=So(e),i=wo(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ko(s)),[s,ko(s)]}(o,s,x);S.push(_[e[0]],_[e[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every((e=>e<=0))){var k,j;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(j=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(f){case"bestFit":{var E;const e=null==(E=C.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:E[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},xi=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:s=(()=>{}),...a}=vo(e,t),l=await To(t,a),c=bo(n),u=xo(n),d="y"===_o(n),{width:p,height:f}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=f-l[h],v=p-l[m],b=!t.middlewareData.shift;let x=g,y=v;if(d){const e=p-l.left-l.right;y=u||b?po(v,e):e}else{const e=f-l.top-l.bottom;x=u||b?po(g,e):e}if(b&&!u){const e=fo(l.left,0),t=fo(l.right,0),n=fo(l.top,0),r=fo(l.bottom,0);d?y=p-2*(0!==e||0!==t?e+t:fo(l.left,l.right)):x=f-2*(0!==n||0!==r?n+r:fo(l.top,l.bottom))}await s({...t,availableWidth:y,availableHeight:x});const w=await o.getDimensions(i.floating);return p!==w.width||f!==w.height?{reset:{rects:!0}}:{}}}},yi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=vo(e,t)||{};if(null==c)return{};const d=jo(u),p={x:n,y:r},f=So(o),h=wo(f),m=await s.getDimensions(c),g="y"===f,v=g?"top":"left",b=g?"bottom":"right",x=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[f]-p[f]-i.floating[h],w=p[f]-i.reference[f],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=_?_[x]:0;S&&await(null==s.isElement?void 0:s.isElement(_))||(S=a.floating[x]||i.floating[h]);const C=y/2-w/2,k=S/2-m[h]/2-1,j=po(d[v],k),E=po(d[b],k),P=j,T=S-m[h]-E,R=S/2-m[h]/2+C,I=go(P,R,T),N=!l.arrow&&null!=xo(o)&&R!=I&&i.reference[h]/2-(R<P?j:E)-m[h]/2<0,M=N?R<P?R-P:R-T:0;return{[f]:p[f]+M,data:{[f]:I,centerOffset:R-I-M,...N&&{alignmentOffset:M}},reset:N}}}),wi=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=vo(e,t),u={x:n,y:r},d=_o(o),p=yo(d);let f=u[p],h=u[d];const m=vo(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var v,b;const e="y"===p?"width":"height",t=["top","left"].includes(bo(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},_i=(e,t,n)=>{const r=new Map,o={platform:mi,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Po(c,r,l),p=r,f={},h=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:v,data:b,reset:x}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[i]:{...f[i],...b}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=Po(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};function Si(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 b(v({},o),{toJSON:()=>o})}function Ci(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 Si();const{x:t,y:n,width:r,height:o}=e;return Si(t,n,r,o)}(r):n.getBoundingClientRect()}}}function ki(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function ji(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Ei(e,t){return Ro((({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 Pi(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return D(!t||t.every(ki),!1),bi({padding:e.overflowPadding,fallbackPlacements:t})}function Ti(e){if(e.slide||e.overlap)return vi({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:wi()})}function Ri(e){return xi({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,s=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${s}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${s}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function Ii(e,t){if(e)return yi({element:e,padding:t.arrowPadding})}var Ni=kt((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,preserveTabOrder:i=!0,autoFocusOnShow:s=!0,wrapperProps:a,fixed:l=!1,flip:c=!0,shift:u=0,slide:d=!0,overlap:p=!1,sameWidth:f=!1,fitViewport:h=!1,gutter:m,arrowPadding:g=4,overflowPadding:y=8,getAnchorRect:w,updatePosition:_}=t,S=x(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const C=or();D(n=n||C,!1);const k=n.useState("arrowElement"),j=n.useState("anchorElement"),E=n.useState("disclosureElement"),P=n.useState("popoverElement"),T=n.useState("contentElement"),R=n.useState("placement"),I=n.useState("mounted"),N=n.useState("rendered"),M=(0,B.useRef)(null),[A,O]=(0,B.useState)(!1),{portalRef:z,domReady:L}=Ne(o,S.portalRef),F=Se(w),V=Se(_),$=!!_;ye((()=>{if(!(null==P?void 0:P.isConnected))return;P.style.setProperty("--popover-overflow-padding",`${y}px`);const e=Ci(j,F),t=async()=>{if(!I)return;k||(M.current=M.current||document.createElement("div"));const t=k||M.current,r=[Ei(t,{gutter:m,shift:u}),Pi({flip:c,overflowPadding:y}),Ti({slide:d,shift:u,overlap:p,overflowPadding:y}),Ii(t,{arrowPadding:g}),Ri({sameWidth:f,fitViewport:h,overflowPadding:y})],o=await _i(e,P,{placement:R,strategy:l?"fixed":"absolute",middleware:r});null==n||n.setState("currentPlacement",o.placement),O(!0);const i=ji(o.x),s=ji(o.y);if(Object.assign(P.style,{top:"0",left:"0",transform:`translate3d(${i}px,${s}px,0)`}),t&&o.middlewareData.arrow){const{x:e,y:n}=o.middlewareData.arrow,r=o.placement.split("-")[0],i=t.clientWidth/2,s=t.clientHeight/2,a=null!=e?e+i:-i,l=null!=n?n+s:-s;P.style.setProperty("--popover-transform-origin",{top:`${a}px calc(100% + ${s}px)`,bottom:`${a}px ${-s}px`,left:`calc(100% + ${i}px) ${l}px`,right:`${-i}px ${l}px`}[r]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[r]:"100%"})}},r=gi(e,P,(async()=>{$?(await V({updatePosition:t}),O(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{O(!1),r()}}),[n,N,P,k,j,P,R,I,L,l,c,u,d,p,f,h,m,g,y,F,$,V]),ye((()=>{if(!I)return;if(!L)return;if(!(null==P?void 0:P.isConnected))return;if(!(null==T?void 0:T.isConnected))return;const e=()=>{P.style.zIndex=getComputedStyle(T).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[I,L,P,T]);const H=l?"fixed":"absolute";return S=Ie(S,(e=>(0,wt.jsx)("div",b(v({},a),{style:v({position:H,top:0,left:0,width:"max-content"},null==a?void 0:a.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,H,a]),S=Ie(S,(e=>(0,wt.jsx)(sr,{value:n,children:e})),[n]),S=b(v({"data-placing":!A||void 0},S),{style:v({position:"relative"},S.style)}),S=co(b(v({store:n,modal:r,portal:o,preserveTabOrder:i,preserveTabOrderAnchor:E||j,autoFocusOnShow:A&&s},S),{portalRef:z}))}));uo(_t((function(e){return Ct("div",Ni(e))})),or);function Mi(e,t,n,r){return!!Gt(t)||!!e&&(!!Y(t,e)||(!(!n||!Y(n,e))||!!(null==r?void 0:r.some((t=>Mi(e,t,n))))))}var Ai=(0,B.createContext)(null),Di=kt((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:a=!!s}=t,l=x(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const c=lr();D(n=n||c,!1);const u=(0,B.useRef)(null),[d,p]=(0,B.useState)([]),f=(0,B.useRef)(0),h=(0,B.useRef)(null),{portalRef:m,domReady:g}=Ne(o,l.portalRef),y=Ae(),w=!!s,_=Re(s),S=!!a,C=Re(a),k=n.useState("open"),j=n.useState("mounted");(0,B.useEffect)((()=>{if(!g)return;if(!j)return;if(!w&&!S)return;const e=u.current;if(!e)return;return M(ge("mousemove",(t=>{if(!n)return;if(!y())return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),s=h.current,[a]=t.composedPath(),l=r;if(Mi(a,e,l,d))return h.current=a&&l&&Y(l,a)?xr(t):null,window.clearTimeout(f.current),void(f.current=0);if(!f.current){if(s){const n=xr(t);if(yr(n,wr(e,s))){if(h.current=n,!C(t))return;return t.preventDefault(),void t.stopPropagation()}}_(t)&&(f.current=window.setTimeout((()=>{f.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(f.current)))}),[n,y,g,j,w,S,d,C,_]),(0,B.useEffect)((()=>{if(!g)return;if(!j)return;if(!S)return;const e=e=>{const t=u.current;if(!t)return;const n=h.current;if(!n)return;const r=wr(t,n);if(yr(xr(e),r)){if(!C(e))return;e.preventDefault(),e.stopPropagation()}};return M(ge("mouseenter",e,!0),ge("mouseover",e,!0),ge("mouseout",e,!0),ge("mouseleave",e,!0))}),[g,j,S,C]),(0,B.useEffect)((()=>{g&&(k||null==n||n.setAutoFocusOnShow(!1))}),[n,g,k]);const E=_e(k);(0,B.useEffect)((()=>{if(g)return()=>{E.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,g]);const P=(0,B.useContext)(Ai);ye((()=>{if(r)return;if(!o)return;if(!j)return;if(!g)return;const e=u.current;return e?null==P?void 0:P(e):void 0}),[r,o,j,g]);const T=(0,B.useCallback)((e=>{p((t=>[...t,e]));const t=null==P?void 0:P(e);return()=>{p((t=>t.filter((t=>t!==e)))),null==t||t()}}),[P]);l=Ie(l,(e=>(0,wt.jsx)(ur,{value:n,children:(0,wt.jsx)(Ai.Provider,{value:T,children:e})})),[n,T]),l=b(v({},l),{ref:ke(u,l.ref)}),l=function(e){var t=e,{store:n}=t,r=x(t,["store"]);const[o,i]=(0,B.useState)(!1),s=n.useState("mounted");(0,B.useEffect)((()=>{s||i(!1)}),[s]);const a=r.onFocus,l=Se((e=>{null==a||a(e),e.defaultPrevented||i(!0)})),c=(0,B.useRef)(null);return(0,B.useEffect)((()=>Ue(n,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),b(v({autoFocusOnHide:o,finalFocus:c},r),{onFocus:l})}(v({store:n},l));const R=n.useState((e=>r||e.autoFocusOnShow));return l=Ni(b(v({store:n,modal:r,portal:o,autoFocusOnShow:R},l),{portalRef:m,hideOnEscape:e=>!O(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))})),Oi=(uo(_t((function(e){return Ct("div",Di(e))})),lr),kt((function(e){var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:a=!0}=t,l=x(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=fr();D(n=n||c,!1),l=Ie(l,(e=>(0,wt.jsx)(hr,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=v({role:u},l),l=Di(b(v({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside(e){if(O(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(O(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Y(t,e.target)}}))}))),zi=uo(_t((function(e){return Ct("div",Oi(e))})),fr);const Li=window.wp.deprecated;var Fi=o.n(Li);const Bi=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,wt.jsx)("span",{className:n,"aria-label":o,children:r})},Vi={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"},$i=e=>{var t;return null!==(t=Vi[e])&&void 0!==t?t:"bottom"},Hi={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 Wi=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Ui=(0,c.createContext)({isNestedInTooltip:!1}),Gi=700,Ki={isNestedInTooltip:!0};const qi=(0,c.forwardRef)((function(e,t){const{children:n,className:r,delay:o=Gi,hideOnClick:i=!0,placement:a,position:u,shortcut:d,text:p,...f}=e,{isNestedInTooltip:h}=(0,c.useContext)(Ui),m=(0,l.useInstanceId)(qi,"tooltip"),g=p||d?m:void 0,v=1===c.Children.count(n);let b;void 0!==a?b=a:void 0!==u&&(b=$i(u),Fi()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),b=b||"bottom";const x=Gn({placement:b,showTimeout:o}),y=Qe(x,"mounted");return h?v?(0,wt.jsx)(Kn,{...f,render:n}):n:(0,wt.jsxs)(Ui.Provider,{value:Ki,children:[(0,wt.jsx)(br,{onClick:i?x.hide:void 0,store:x,render:v?(w=n,g&&y&&void 0===w.props["aria-describedby"]&&w.props["aria-label"]!==p?(0,c.cloneElement)(w,{"aria-describedby":g}):w):void 0,ref:t,children:v?void 0:n}),v&&(p||d)&&(0,wt.jsxs)(zi,{...f,className:s("components-tooltip",r),unmountOnHide:!0,gutter:4,id:g,overflowPadding:.5,store:x,children:[p,d&&(0,wt.jsx)(Bi,{className:p?"components-tooltip__shortcut":"",shortcut:d})]})]});var w})),Yi=qi;window.wp.warning;var Xi=o(66),Zi=o.n(Xi),Qi=o(7734),Ji=o.n(Qi);
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
function es(e){return"[object Object]"===Object.prototype.toString.call(e)}function ts(e){var t,n;return!1!==es(e)&&(void 0===(t=e.constructor)||!1!==es(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const ns=function(e,t){const n=(0,c.useRef)(!1);(0,c.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,c.useEffect)((()=>()=>{n.current=!1}),[])},rs=(0,c.createContext)({}),os=()=>(0,c.useContext)(rs);const is=(0,c.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=os(),n=(0,c.useRef)(e);return ns((()=>{Ji()(n.current,e)&&n.current}),[e]),(0,c.useMemo)((()=>Zi()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ts})),[t,e])}({value:t});return(0,wt.jsx)(rs.Provider,{value:n,children:e})})),ss="data-wp-component",as="data-wp-c16t",ls="__contextSystemKey__";var cs=function(){return cs=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},cs.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function us(e){return e.toLowerCase()}var ds=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ps=/[^A-Z0-9]+/gi;function fs(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function hs(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?ds:n,o=t.stripRegexp,i=void 0===o?ps:o,s=t.transform,a=void 0===s?us:s,l=t.delimiter,c=void 0===l?" ":l,u=fs(fs(e,r,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(a).join(c)}(e,cs({delimiter:"."},t))}function ms(e,t){return void 0===t&&(t={}),hs(e,cs({delimiter:"-"},t))}function gs(e,t){var n,r,o=0;function i(){var i,s,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<l;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const vs=gs((function(e){return`components-${ms(e)}`}));var bs=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}(),xs=Math.abs,ys=String.fromCharCode,ws=Object.assign;function _s(e){return e.trim()}function Ss(e,t,n){return e.replace(t,n)}function Cs(e,t){return e.indexOf(t)}function ks(e,t){return 0|e.charCodeAt(t)}function js(e,t,n){return e.slice(t,n)}function Es(e){return e.length}function Ps(e){return e.length}function Ts(e,t){return t.push(e),e}var Rs=1,Is=1,Ns=0,Ms=0,As=0,Ds="";function Os(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Rs,column:Is,length:s,return:""}}function zs(e,t){return ws(Os("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ls(){return As=Ms>0?ks(Ds,--Ms):0,Is--,10===As&&(Is=1,Rs--),As}function Fs(){return As=Ms<Ns?ks(Ds,Ms++):0,Is++,10===As&&(Is=1,Rs++),As}function Bs(){return ks(Ds,Ms)}function Vs(){return Ms}function $s(e,t){return js(Ds,e,t)}function Hs(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 Ws(e){return Rs=Is=1,Ns=Es(Ds=e),Ms=0,[]}function Us(e){return Ds="",e}function Gs(e){return _s($s(Ms-1,Ys(91===e?e+2:40===e?e+1:e)))}function Ks(e){for(;(As=Bs())&&As<33;)Fs();return Hs(e)>2||Hs(As)>3?"":" "}function qs(e,t){for(;--t&&Fs()&&!(As<48||As>102||As>57&&As<65||As>70&&As<97););return $s(e,Vs()+(t<6&&32==Bs()&&32==Fs()))}function Ys(e){for(;Fs();)switch(As){case e:return Ms;case 34:case 39:34!==e&&39!==e&&Ys(As);break;case 40:41===e&&Ys(e);break;case 92:Fs()}return Ms}function Xs(e,t){for(;Fs()&&e+As!==57&&(e+As!==84||47!==Bs()););return"/*"+$s(t,Ms-1)+"*"+ys(47===e?e:Fs())}function Zs(e){for(;!Hs(Bs());)Fs();return $s(e,Ms)}var Qs="-ms-",Js="-moz-",ea="-webkit-",ta="comm",na="rule",ra="decl",oa="@keyframes";function ia(e,t){for(var n="",r=Ps(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sa(e,t,n,r){switch(e.type){case"@import":case ra:return e.return=e.return||e.value;case ta:return"";case oa:return e.return=e.value+"{"+ia(e.children,r)+"}";case na:e.value=e.props.join(",")}return Es(n=ia(e.children,r))?e.return=e.value+"{"+n+"}":""}function aa(e){return Us(la("",null,null,null,[""],e=Ws(e),0,[0],e))}function la(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,f=0,h=0,m=1,g=1,v=1,b=0,x="",y=o,w=i,_=r,S=x;g;)switch(h=b,b=Fs()){case 40:if(108!=h&&58==ks(S,d-1)){-1!=Cs(S+=Ss(Gs(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Gs(b);break;case 9:case 10:case 13:case 32:S+=Ks(h);break;case 92:S+=qs(Vs()-1,7);continue;case 47:switch(Bs()){case 42:case 47:Ts(ua(Xs(Fs(),Vs()),t,n),l);break;default:S+="/"}break;case 123*m:a[c++]=Es(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:f>0&&Es(S)-d&&Ts(f>32?da(S+";",r,n,d-1):da(Ss(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Ts(_=ca(S,t,n,c,u,o,a,x,y=[],w=[],d),i),123===b)if(0===u)la(S,t,_,_,y,i,d,a,w);else switch(99===p&&110===ks(S,3)?100:p){case 100:case 109:case 115:la(e,_,_,r&&Ts(ca(e,_,_,0,0,o,a,x,o,y=[],d),w),o,w,d,a,r?y:w);break;default:la(S,_,_,_,[""],w,0,a,w)}}c=u=f=0,m=v=1,x=S="",d=s;break;case 58:d=1+Es(S),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Ls())continue;switch(S+=ys(b),b*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(Es(S)-1)*v,v=1;break;case 64:45===Bs()&&(S+=Gs(Fs())),p=Bs(),u=d=Es(x=S+=Zs(Vs())),b++;break;case 45:45===h&&2==Es(S)&&(m=0)}}return i}function ca(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Ps(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=js(e,d+1,d=xs(m=s[h])),x=e;v<f;++v)(x=_s(m>0?p[v]+" "+b:Ss(b,/&\f/g,p[v])))&&(l[g++]=x);return Os(e,t,n,0===o?na:a,l,c,u)}function ua(e,t,n){return Os(e,t,n,ta,ys(As),js(e,2,-2),0)}function da(e,t,n,r){return Os(e,t,n,ra,js(e,0,r),js(e,r+1,-1),r)}var pa=function(e,t,n){for(var r=0,o=0;r=o,o=Bs(),38===r&&12===o&&(t[n]=1),!Hs(o);)Fs();return $s(e,Ms)},fa=function(e,t){return Us(function(e,t){var n=-1,r=44;do{switch(Hs(r)){case 0:38===r&&12===Bs()&&(t[n]=1),e[n]+=pa(Ms-1,t,n);break;case 2:e[n]+=Gs(r);break;case 4:if(44===r){e[++n]=58===Bs()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ys(r)}}while(r=Fs());return e}(Ws(e),t))},ha=new WeakMap,ma=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)||ha.get(n))&&!r){ha.set(e,!0);for(var o=[],i=fa(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},ga=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function va(e,t){switch(function(e,t){return 45^ks(e,0)?(((t<<2^ks(e,0))<<2^ks(e,1))<<2^ks(e,2))<<2^ks(e,3):0}(e,t)){case 5103:return ea+"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 ea+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ea+e+Js+e+Qs+e+e;case 6828:case 4268:return ea+e+Qs+e+e;case 6165:return ea+e+Qs+"flex-"+e+e;case 5187:return ea+e+Ss(e,/(\w+).+(:[^]+)/,ea+"box-$1$2"+Qs+"flex-$1$2")+e;case 5443:return ea+e+Qs+"flex-item-"+Ss(e,/flex-|-self/,"")+e;case 4675:return ea+e+Qs+"flex-line-pack"+Ss(e,/align-content|flex-|-self/,"")+e;case 5548:return ea+e+Qs+Ss(e,"shrink","negative")+e;case 5292:return ea+e+Qs+Ss(e,"basis","preferred-size")+e;case 6060:return ea+"box-"+Ss(e,"-grow","")+ea+e+Qs+Ss(e,"grow","positive")+e;case 4554:return ea+Ss(e,/([^-])(transform)/g,"$1"+ea+"$2")+e;case 6187:return Ss(Ss(Ss(e,/(zoom-|grab)/,ea+"$1"),/(image-set)/,ea+"$1"),e,"")+e;case 5495:case 3959:return Ss(e,/(image-set\([^]*)/,ea+"$1$`$1");case 4968:return Ss(Ss(e,/(.+:)(flex-)?(.*)/,ea+"box-pack:$3"+Qs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ea+e+e;case 4095:case 3583:case 4068:case 2532:return Ss(e,/(.+)-inline(.+)/,ea+"$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(Es(e)-1-t>6)switch(ks(e,t+1)){case 109:if(45!==ks(e,t+4))break;case 102:return Ss(e,/(.+:)(.+)-([^]+)/,"$1"+ea+"$2-$3$1"+Js+(108==ks(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Cs(e,"stretch")?va(Ss(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ks(e,t+1))break;case 6444:switch(ks(e,Es(e)-3-(~Cs(e,"!important")&&10))){case 107:return Ss(e,":",":"+ea)+e;case 101:return Ss(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ea+(45===ks(e,14)?"inline-":"")+"box$3$1"+ea+"$2$3$1"+Qs+"$2box$3")+e}break;case 5936:switch(ks(e,t+11)){case 114:return ea+e+Qs+Ss(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ea+e+Qs+Ss(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ea+e+Qs+Ss(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ea+e+Qs+e+e}return e}var ba=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ra:e.return=va(e.value,e.length);break;case oa:return ia([zs(e,{value:Ss(e.value,"@","@"+ea)})],r);case na: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 ia([zs(e,{props:[Ss(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ia([zs(e,{props:[Ss(t,/:(plac\w+)/,":"+ea+"input-$1")]}),zs(e,{props:[Ss(t,/:(plac\w+)/,":-moz-$1")]}),zs(e,{props:[Ss(t,/:(plac\w+)/,Qs+"input-$1")]})],r)}return""}))}}];const xa=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||ba;var o,i,s={},a=[];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++)s[t[n]]=!0;a.push(e)}));var l,c,u,d,p=[sa,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[ma,ga].concat(r,p),u=Ps(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){ia(aa(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new bs({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return h.sheet.hydrate(a),h};const ya=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 wa={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 _a(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Sa=/[A-Z]|^ms/g,Ca=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ka=function(e){return 45===e.charCodeAt(1)},ja=function(e){return null!=e&&"boolean"!=typeof e},Ea=_a((function(e){return ka(e)?e:e.replace(Sa,"-$&").toLowerCase()})),Pa=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ca,(function(e,t,n){return Ra={name:t,styles:n,next:Ra},t}))}return 1===wa[e]||ka(e)||"number"!=typeof t||0===t?t:t+"px"};function Ta(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 Ra={name:n.name,styles:n.styles,next:Ra},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ra={name:r.name,styles:r.styles,next:Ra},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+=Ta(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ja(s)&&(r+=Ea(i)+":"+Pa(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=Ta(e,t,s);switch(i){case"animation":case"animationName":r+=Ea(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var l=0;l<s.length;l++)ja(s[l])&&(r+=Ea(i)+":"+Pa(i,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ra,i=n(e);return Ra=o,Ta(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var Ra,Ia=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Na=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="";Ra=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ta(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=Ta(n,t,e[s]),r&&(o+=i[s]);Ia.lastIndex=0;for(var a,l="";null!==(a=Ia.exec(o));)l+="-"+a[1];return{name:ya(o)+l,styles:o,next:Ra}},Ma=!!B.useInsertionEffect&&B.useInsertionEffect,Aa=Ma||function(e){return e()},Da=(0,B.createContext)("undefined"!=typeof HTMLElement?xa({key:"css"}):null);var Oa=Da.Provider,za=function(e){return(0,B.forwardRef)((function(t,n){var r=(0,B.useContext)(Da);return e(t,r,n)}))},La=(0,B.createContext)({});function Fa(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ba=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Va=function(e,t,n){Ba(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 $a(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Ha(e,t,n){var r=[],o=Fa(e,r,n);return r.length<2?n:o+t(r)}var Wa=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 s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n};const Ua=function(e){var t=xa(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=Na(n,t.registered,void 0);return Va(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 Ha(t.registered,n,Wa(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Na(n,t.registered);$a(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Na(n,t.registered),i="animation-"+o.name;return $a(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:Fa.bind(null,t.registered),merge:Ha.bind(null,t.registered,n)}};var Ga=Ua({key:"css"}),Ka=(Ga.flush,Ga.hydrate,Ga.cx);Ga.merge,Ga.getRegisteredStyles,Ga.injectGlobal,Ga.keyframes,Ga.css,Ga.sheet,Ga.cache;const qa=()=>{const e=(0,B.useContext)(Da),t=(0,c.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Ka(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Va(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Ya(e,t){const n=os(),r=n?.[t]||{},o={[as]:!0,...(i=t,{[ss]:i})};var i;const{_overrides:s,...a}=r,l=Object.entries(a).length?Object.assign({},a,e):e,c=qa()(vs(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 s)o[e]=s[e];return void 0!==u&&(o.children=u),o.className=c,o}function Xa(e,t){return Qa(e,t,{forwardsRef:!0})}function Za(e,t){return Qa(e,t)}function Qa(e,t,n){const r=n?.forwardsRef?(0,c.forwardRef)(e):e;let o=r[ls]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[ls]:[...new Set(o)],displayName:t,selector:`.${vs(t)}`})}function Ja(e){if(!e)return[];let t=[];return e[ls]&&(t=e[ls]),e.type&&e.type[ls]&&(t=e.type[ls]),t}function el(e,t){return!!e&&("string"==typeof t?Ja(e).includes(t):!!Array.isArray(t)&&t.some((t=>Ja(e).includes(t))))}const tl={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 nl(){return nl=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},nl.apply(this,arguments)}var rl=/^((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)-.*))$/,ol=_a((function(e){return rl.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),il=function(e){return"theme"!==e},sl=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ol:il},al=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},ll=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ba(t,n,r);Aa((function(){return Va(t,n,r)}));return null};const cl=function e(t,n){var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=al(t,n,i),l=a||sl(s),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=za((function(e,t,n){var r=c&&e.as||s,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=(0,B.useContext)(La)}"string"==typeof e.className?i=Fa(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=Na(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===a?sl(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,g.ref=n,(0,B.createElement)(B.Fragment,null,(0,B.createElement)(ll,{cache:t,serialized:h,isStringTag:"string"==typeof r}),(0,B.createElement)(r,g))}));return h.displayName=void 0!==r?r:"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=d,h.__emotion_forwardProp=a,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,nl({},n,r,{shouldForwardProp:al(h,r,!0)})).apply(void 0,d)},h}},ul=cl("div",{target:"e19lxcc00"})("");const dl=Object.assign((0,c.forwardRef)((function({as:e,...t},n){return(0,wt.jsx)(ul,{as:e,ref:n,...t})})),{selector:".components-view"});const pl=Xa((function(e,t){const{style:n,...r}=Ya(e,"VisuallyHidden");return(0,wt.jsx)(dl,{ref:t,...r,style:{...tl,...n||{}}})}),"VisuallyHidden"),fl=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],hl={"top left":(0,a.__)("Top Left"),"top center":(0,a.__)("Top Center"),"top right":(0,a.__)("Top Right"),"center left":(0,a.__)("Center Left"),"center center":(0,a.__)("Center"),center:(0,a.__)("Center"),"center right":(0,a.__)("Center Right"),"bottom left":(0,a.__)("Bottom Left"),"bottom center":(0,a.__)("Bottom Center"),"bottom right":(0,a.__)("Bottom Right")},ml=fl.flat();function gl(e){const t="center"===e?"center center":e,n=t?.replace("-"," ");return ml.includes(n)?n:void 0}function vl(e,t){const n=gl(t);if(!n)return;return`${e}-${n.replace(" ","-")}`}o(1880);function bl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Na(t)}var xl=function(){var e=bl.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 yl="4px";function wl(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(${yl} * ${e})`}const _l="#fff",Sl={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Cl={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, ${_l})`,background:`var(--wp-components-color-background, ${_l})`,foreground:`var(--wp-components-color-foreground, ${Sl[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${_l})`,gray:{900:`var(--wp-components-color-foreground, ${Sl[900]})`,800:`var(--wp-components-color-gray-800, ${Sl[800]})`,700:`var(--wp-components-color-gray-700, ${Sl[700]})`,600:`var(--wp-components-color-gray-600, ${Sl[600]})`,400:`var(--wp-components-color-gray-400, ${Sl[400]})`,300:`var(--wp-components-color-gray-300, ${Sl[300]})`,200:`var(--wp-components-color-gray-200, ${Sl[200]})`,100:`var(--wp-components-color-gray-100, ${Sl[100]})`}},kl={background:Cl.background,backgroundDisabled:Cl.gray[100],border:Cl.gray[600],borderHover:Cl.gray[700],borderFocus:Cl.accent,borderDisabled:Cl.gray[400],textDisabled:Cl.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Cl.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Cl.background}, transparent 35%)`},jl=Object.freeze({gray:Sl,white:_l,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Cl,ui:kl}),El="36px",Pl={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBackgroundColor:jl.white,controlBoxShadowFocus:`0 0 0 0.5px ${jl.theme.accent}`,controlHeight:El,controlHeightXSmall:`calc( ${El} * 0.6 )`,controlHeightSmall:`calc( ${El} * 0.8 )`,controlHeightLarge:`calc( ${El} * 1.2 )`,controlHeightXLarge:`calc( ${El} * 1.4 )`},Tl=Object.assign({},Pl,{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,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",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.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardPaddingXSmall:`${wl(2)}`,cardPaddingSmall:`${wl(4)}`,cardPaddingMedium:`${wl(4)} ${wl(6)}`,cardPaddingLarge:`${wl(6)} ${wl(8)}`,elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBackgroundColor:jl.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:jl.white,surfaceColor:jl.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 Rl=({size:e=92})=>bl("direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );grid-template-rows:repeat( 3, 1fr );box-sizing:border-box;width:",e,"px;aspect-ratio:1;border-radius:",Tl.radiusMedium,";outline:none;","");var Il={name:"e0dnmk",styles:"cursor:pointer"};const Nl=cl("div",{target:"e1r95csn3"})(Rl," border:1px solid transparent;",(e=>e.disablePointerEvents?bl("",""):Il),";"),Ml=cl("div",{target:"e1r95csn2"})({name:"1fbxn64",styles:"grid-column:1/-1;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Al=cl("span",{target:"e1r95csn1"})({name:"e2kws5",styles:"position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;padding:0;appearance:none;border:none;outline:none"}),Dl=cl("span",{target:"e1r95csn0"})("display:block;contain:strict;box-sizing:border-box;width:",6,"px;aspect-ratio:1;margin:auto;color:",jl.theme.gray[400],";border:",3,"px solid currentColor;",Al,"[data-active-item] &{color:",jl.gray[900],";transform:scale( calc( 5 / 3 ) );}",Al,":not([data-active-item]):hover &{color:",jl.theme.accent,";}",Al,"[data-focus-visible] &{outline:1px solid ",jl.theme.accent,";outline-offset:1px;}@media not ( prefers-reduced-motion ){transition-property:color,transform;transition-duration:120ms;transition-timing-function:linear;}");function Ol({id:e,value:t,...n}){return(0,wt.jsx)(Yi,{text:hl[t],children:(0,wt.jsxs)(Dn.Item,{id:e,render:(0,wt.jsx)(Al,{...n,role:"gridcell"}),children:[(0,wt.jsx)(pl,{children:t}),(0,wt.jsx)(Dl,{role:"presentation"})]})})}const zl=function({className:e,disablePointerEvents:t=!0,size:r,width:o,height:i,style:a={},value:l="center",...c}){var u,d;return(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:null!==(u=null!=r?r:o)&&void 0!==u?u:24,height:null!==(d=null!=r?r:i)&&void 0!==d?d:24,role:"presentation",className:s("component-alignment-matrix-control-icon",e),style:{pointerEvents:t?"none":void 0,...a},...c,children:ml.map(((e,t)=>{const r=function(e="center"){const t=gl(e);if(!t)return;const n=ml.indexOf(t);return n>-1?n:void 0}(l)===t?4:2;return(0,wt.jsx)(n.Rect,{x:1.5+t%3*7+(7-r)/2,y:1.5+7*Math.floor(t/3)+(7-r)/2,width:r,height:r,fill:"currentColor"},e)}))})};const Ll=Object.assign((function e({className:t,id:n,label:r=(0,a.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:u,width:d=92,...p}){const f=(0,l.useInstanceId)(e,"alignment-matrix-control",n),h=(0,c.useCallback)((e=>{const t=function(e,t){const n=t?.replace(e+"-","");return gl(n)}(f,e);t&&u?.(t)}),[f,u]),m=s("component-alignment-matrix-control",t);return(0,wt.jsx)(Dn,{defaultActiveId:vl(f,o),activeId:vl(f,i),setActiveId:h,rtl:(0,a.isRTL)(),render:(0,wt.jsx)(Nl,{...p,"aria-label":r,className:m,id:f,role:"grid",size:d}),children:fl.map(((e,t)=>(0,wt.jsx)(Dn.Row,{render:(0,wt.jsx)(Ml,{role:"row"}),children:e.map((e=>(0,wt.jsx)(Ol,{id:vl(f,e),value:e},e)))},t)))})}),{Icon:Object.assign(zl,{displayName:"AlignmentMatrixControl.Icon"})}),Fl=Ll;function Bl(e){return"appear"===e?"top":"left"}function Vl(e){if("loading"===e.type)return"components-animate__loading";const{type:t,origin:n=Bl(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return s("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?s("components-animate__slide-in","is-from-"+n):void 0}const $l=function({type:e,options:t={},children:n}){return n({className:Vl({type:e,...t})})},Hl=(0,B.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wl=(0,B.createContext)({}),Ul=(0,B.createContext)(null),Gl="undefined"!=typeof document,Kl=Gl?B.useLayoutEffect:B.useEffect,ql=(0,B.createContext)({strict:!1}),Yl=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xl="data-"+Yl("framerAppearId"),Zl=!1,Ql=!1;class Jl{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 ec=["read","resolveKeyframes","update","preRender","render","postRender"];function tc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ec.reduce(((e,t)=>(e[t]=function(e){let t=new Jl,n=new Jl,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.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];s.has(r)&&(a.schedule(r),e()),r(l)}o=!1,i&&(i=!1,a.process(l))}}};return a}((()=>n=!0)),e)),{}),s=e=>{i[e].process(o)},a=()=>{const i=Ql?o.timestamp:performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,ec.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))};return{schedule:ec.reduce(((t,s)=>{const l=i[s];return t[s]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(a)),l.schedule(t,i,s)),t}),{}),cancel:e=>ec.forEach((t=>i[t].cancel(e))),state:o,steps:i}}const{schedule:nc,cancel:rc}=tc(queueMicrotask,!1);function oc(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ic(e,t,n){return(0,B.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):oc(n)&&(n.current=r))}),[t])}function sc(e){return"string"==typeof e||Array.isArray(e)}function ac(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const lc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cc=["initial",...lc];function uc(e){return ac(e.animate)||cc.some((t=>sc(e[t])))}function dc(e){return Boolean(uc(e)||e.variants)}function pc(e){const{initial:t,animate:n}=function(e,t){if(uc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||sc(t)?t:void 0,animate:sc(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,B.useContext)(Wl));return(0,B.useMemo)((()=>({initial:t,animate:n})),[fc(t),fc(n)])}function fc(e){return Array.isArray(e)?e.join(" "):e}const hc={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"]},mc={};for(const e in hc)mc[e]={isEnabled:t=>hc[e].some((e=>!!t[e]))};const gc=(0,B.createContext)({}),vc=(0,B.createContext)({}),bc=Symbol.for("motionComponentSymbol");function xc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)mc[t]={...mc[t],...e[t]}}(e);const i=(0,B.forwardRef)((function(i,s){let a;const l={...(0,B.useContext)(Hl),...i,layoutId:yc(i)},{isStatic:c}=l,u=pc(i),d=r(i,c);if(!c&&Gl){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,B.useContext)(Wl),i=(0,B.useContext)(ql),s=(0,B.useContext)(Ul),a=(0,B.useContext)(Hl).reducedMotion,l=(0,B.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));const c=l.current;(0,B.useInsertionEffect)((()=>{c&&c.update(n,s)}));const u=(0,B.useRef)(Boolean(n[Xl]&&!window.HandoffComplete));return Kl((()=>{c&&(nc.render(c.render),u.current&&c.animationState&&c.animationState.animateChanges())})),(0,B.useEffect)((()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))})),c}(o,d,l,t);const n=(0,B.useContext)(vc),r=(0,B.useContext)(ql).strict;u.visualElement&&(a=u.visualElement.loadFeatures(l,r,e,n))}return(0,wt.jsxs)(Wl.Provider,{value:u,children:[a&&u.visualElement?(0,wt.jsx)(a,{visualElement:u.visualElement,...l}):null,n(o,i,ic(d,u.visualElement,s),d,c,u.visualElement)]})}));return i[bc]=o,i}function yc({layoutId:e}){const t=(0,B.useContext)(gc).id;return t&&void 0!==e?t+"-"+e:e}function wc(e){function t(t,n={}){return xc(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 _c=["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 Sc(e){return"string"==typeof e&&!e.includes("-")&&!!(_c.indexOf(e)>-1||/[A-Z]/u.test(e))}const Cc={};const kc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jc=new Set(kc);function Ec(e,{layout:t,layoutId:n}){return jc.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Cc[e]||"opacity"===e)}const Pc=e=>Boolean(e&&e.getVelocity),Tc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rc=kc.length;const Ic=e=>t=>"string"==typeof t&&t.startsWith(e),Nc=Ic("--"),Mc=Ic("var(--"),Ac=e=>!!Mc(e)&&Dc.test(e.split("/*")[0].trim()),Dc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Oc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,zc=(e,t,n)=>n>t?t:n<e?e:n,Lc={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Fc={...Lc,transform:e=>zc(0,1,e)},Bc={...Lc,default:1},Vc=e=>Math.round(1e5*e)/1e5,$c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Hc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Wc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Uc(e){return"string"==typeof e}const Gc=e=>({test:t=>Uc(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Kc=Gc("deg"),qc=Gc("%"),Yc=Gc("px"),Xc=Gc("vh"),Zc=Gc("vw"),Qc={...qc,parse:e=>qc.parse(e)/100,transform:e=>qc.transform(100*e)},Jc={...Lc,transform:Math.round},eu={borderWidth:Yc,borderTopWidth:Yc,borderRightWidth:Yc,borderBottomWidth:Yc,borderLeftWidth:Yc,borderRadius:Yc,radius:Yc,borderTopLeftRadius:Yc,borderTopRightRadius:Yc,borderBottomRightRadius:Yc,borderBottomLeftRadius:Yc,width:Yc,maxWidth:Yc,height:Yc,maxHeight:Yc,size:Yc,top:Yc,right:Yc,bottom:Yc,left:Yc,padding:Yc,paddingTop:Yc,paddingRight:Yc,paddingBottom:Yc,paddingLeft:Yc,margin:Yc,marginTop:Yc,marginRight:Yc,marginBottom:Yc,marginLeft:Yc,rotate:Kc,rotateX:Kc,rotateY:Kc,rotateZ:Kc,scale:Bc,scaleX:Bc,scaleY:Bc,scaleZ:Bc,skew:Kc,skewX:Kc,skewY:Kc,distance:Yc,translateX:Yc,translateY:Yc,translateZ:Yc,x:Yc,y:Yc,z:Yc,perspective:Yc,transformPerspective:Yc,opacity:Fc,originX:Qc,originY:Qc,originZ:Yc,zIndex:Jc,backgroundPositionX:Yc,backgroundPositionY:Yc,fillOpacity:Fc,strokeOpacity:Fc,numOctaves:Jc};function tu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Nc(e)){i[e]=n;continue}const r=eu[e],d=Oc(n,r);if(jc.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[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<Rc;t++){const n=kc[t];void 0!==e[n]&&(i+=`${Tc[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}=a;o.transformOrigin=`${e} ${t} ${n}`}}const nu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ru(e,t,n){for(const r in t)Pc(t[r])||Ec(r,n)||(e[r]=t[r])}function ou(e,t,n){const r={};return ru(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,B.useMemo)((()=>{const r=nu();return tu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),r}function iu(e,t,n){const r={},o=ou(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 su=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function au(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||su.has(e)}let lu=e=>!au(e);try{(cu=require("@emotion/is-prop-valid").default)&&(lu=e=>e.startsWith("on")?!au(e):cu(e))}catch(U){}var cu;function uu(e,t,n){return"string"==typeof e?e:Yc.transform(t+n*e)}const du={offset:"stroke-dashoffset",array:"stroke-dasharray"},pu={offset:"strokeDashoffset",array:"strokeDasharray"};function fu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(tu(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${uu(t,e.x,e.width)} ${uu(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?du:pu;e[i.offset]=Yc.transform(-r);const s=Yc.transform(t),a=Yc.transform(n);e[i.array]=`${s} ${a}`}(f,s,a,l,!1)}const hu=()=>({...nu(),attrs:{}}),mu=e=>"string"==typeof e&&"svg"===e.toLowerCase();function gu(e,t,n,r){const o=(0,B.useMemo)((()=>{const n=hu();return fu(n,t,{enableHardwareAcceleration:!1},mu(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};ru(t,e.style,e),o.style={...t,...o.style}}return o}function vu(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(Sc(t)?gu:iu)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(lu(o)||!0===n&&au(o)||!t&&!au(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==B.Fragment?{...a,...s,ref:r}:{},{children:c}=n,u=(0,B.useMemo)((()=>Pc(c)?c.get():c),[c]);return(0,B.createElement)(t,{...l,children:u})}}function bu(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 xu=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 yu(e,t,n,r){bu(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(xu.has(n)?n:Yl(n),t.attrs[n])}function wu(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Pc(o[s])||t.style&&Pc(t.style[s])||Ec(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return i}function _u(e,t,n){const r=wu(e,t,n);for(const n in e)if(Pc(e[n])||Pc(t[n])){r[-1!==kc.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function Su(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Cu(e,t,n,r){if("function"==typeof t){const[o,i]=Su(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=Su(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function ku(e){const t=(0,B.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ju=e=>Array.isArray(e),Eu=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Pu=e=>ju(e)?e[e.length-1]||0:e;function Tu(e){const t=Pc(e)?e.get():e;return Eu(t)?t.toValue():t}const Ru=e=>(t,n)=>{const r=(0,B.useContext)(Wl),o=(0,B.useContext)(Ul),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Iu(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,t,r,o);return n?i():ku(i)};function Iu(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Tu(i[e]);let{initial:s,animate:a}=e;const l=uc(e),c=dc(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!ac(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Cu(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[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 Nu=e=>e,{schedule:Mu,cancel:Au,state:Du,steps:Ou}=tc("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Nu,!0),zu={useVisualState:Ru({scrapeMotionValuesFromProps:_u,createRenderState:hu,onMount:(e,t,{renderState:n,latestValues:r})=>{Mu.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Mu.render((()=>{fu(n,r,{enableHardwareAcceleration:!1},mu(t.tagName),e.transformTemplate),yu(t,n)}))}})},Lu={useVisualState:Ru({scrapeMotionValuesFromProps:wu,createRenderState:nu})};function Fu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Bu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Vu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const $u=e=>t=>Bu(t)&&e(t,Vu(t));function Hu(e,t,n,r){return Fu(e,t,$u(n),r)}const Wu=(e,t)=>n=>t(e(n)),Uu=(...e)=>e.reduce(Wu);function Gu(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Ku=Gu("dragHorizontal"),qu=Gu("dragVertical");function Yu(e){let t=!1;if("y"===e)t=qu();else if("x"===e)t=Ku();else{const e=Ku(),n=qu();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Xu(){const e=Yu(!0);return!e||(e(),!1)}class Zu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Qu(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return Hu(e.current,n,((n,o)=>{if("touch"===n.pointerType||Xu())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const s=i[r];s&&Mu.postRender((()=>s(n,o)))}),{passive:!e.getProps()[r]})}const Ju=(e,t)=>!!t&&(e===t||Ju(e,t.parentElement));function ed(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Vu(n))}const td=new WeakMap,nd=new WeakMap,rd=e=>{const t=td.get(e.target);t&&t(e)},od=e=>{e.forEach(rd)};function id(e,t,n){const r=function({root:e,...t}){const n=e||document;nd.has(n)||nd.set(n,{});const r=nd.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(od,{root:e,...t})),r[o]}(t);return td.set(e,n),r.observe(e),()=>{td.delete(e),r.unobserve(e)}}const sd={some:0,all:1};const ad={inView:{Feature:class extends Zu{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:sd[r]};return id(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 Zu{constructor(){super(...arguments),this.removeStartListeners=Nu,this.removeEndListeners=Nu,this.removeAccessibleListeners=Nu,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Hu(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps(),i=o||Ju(this.node.current,e.target)?n:r;i&&Mu.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),o=Hu(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Uu(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Fu(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Fu(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&ed("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Mu.postRender((()=>n(e,t)))}))})),ed("down",((e,t)=>{this.startPress(e,t)}))})),t=Fu(this.node.current,"blur",(()=>{this.isPressing&&ed("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Uu(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&&Mu.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xu()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Mu.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Hu(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Fu(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Uu(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Zu{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=Uu(Fu(this.node.current,"focus",(()=>this.onFocus())),Fu(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Zu{mount(){this.unmount=Uu(Qu(this.node,!0),Qu(this.node,!1))}unmount(){}}}};function ld(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 cd(e,t,n){const r=e.getProps();return Cu(r,t,void 0!==n?n:r.custom,e)}const ud=e=>1e3*e,dd=e=>e/1e3,pd={type:"spring",stiffness:500,damping:25,restSpeed:10},fd={type:"keyframes",duration:.8},hd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},md=(e,{keyframes:t})=>t.length>2?fd:jc.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:pd:hd;function gd(e,t){return e[t]||e.default||e}const vd=!1,bd=e=>null!==e;function xd(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(bd),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}let yd;function wd(){yd=void 0}const _d={now:()=>(void 0===yd&&_d.set(Du.isProcessing||Ql?Du.timestamp:performance.now()),yd),set:e=>{yd=e,queueMicrotask(wd)}},Sd=e=>/^0[^.\s]+$/u.test(e);let Cd=Nu,kd=Nu;const jd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ed=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pd(e,t,n=1){kd(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Ed.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return jd(e)?parseFloat(e):e}return Ac(o)?Pd(o,t,n+1):o}const Td=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rd=e=>e===Lc||e===Yc,Id=(e,t)=>parseFloat(e.split(", ")[t]),Nd=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Id(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Id(t[1],e):0}},Md=new Set(["x","y","z"]),Ad=kc.filter((e=>!Md.has(e)));const Dd={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:Nd(4,13),y:Nd(5,14)};Dd.translateX=Dd.x,Dd.translateY=Dd.y;const Od=e=>t=>t.test(e),zd=[Lc,Yc,qc,Kc,Zc,Xc,{test:e=>"auto"===e,parse:e=>e}],Ld=e=>zd.find(Od(e)),Fd=new Set;let Bd=!1,Vd=!1;function $d(){if(Vd){const e=Array.from(Fd).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Ad.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Vd=!1,Bd=!1,Fd.forEach((e=>e.complete())),Fd.clear()}function Hd(){Fd.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Vd=!0)}))}class Wd{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fd.add(this),Bd||(Bd=!0,Mu.read(Hd),Mu.resolveKeyframes($d))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fd.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fd.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ud=(e,t)=>n=>Boolean(Uc(n)&&Wc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Gd=(e,t,n)=>r=>{if(!Uc(r))return r;const[o,i,s,a]=r.match($c);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Kd={...Lc,transform:e=>Math.round((e=>zc(0,255,e))(e))},qd={test:Ud("rgb","red"),parse:Gd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kd.transform(e)+", "+Kd.transform(t)+", "+Kd.transform(n)+", "+Vc(Fc.transform(r))+")"};const Yd={test:Ud("#"),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:qd.transform},Xd={test:Ud("hsl","hue"),parse:Gd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qc.transform(Vc(t))+", "+qc.transform(Vc(n))+", "+Vc(Fc.transform(r))+")"},Zd={test:e=>qd.test(e)||Yd.test(e)||Xd.test(e),parse:e=>qd.test(e)?qd.parse(e):Xd.test(e)?Xd.parse(e):Yd.parse(e),transform:e=>Uc(e)?e:e.hasOwnProperty("red")?qd.transform(e):Xd.transform(e)};const Qd="number",Jd="color",ep="var",tp="var(",np="${}",rp=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function op(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(rp,(e=>(Zd.test(e)?(r.color.push(i),o.push(Jd),n.push(Zd.parse(e))):e.startsWith(tp)?(r.var.push(i),o.push(ep),n.push(e)):(r.number.push(i),o.push(Qd),n.push(parseFloat(e))),++i,np))).split(np);return{values:n,split:s,indexes:r,types:o}}function ip(e){return op(e).values}function sp(e){const{split:t,types:n}=op(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Qd?Vc(e[i]):t===Jd?Zd.transform(e[i]):e[i]}return o}}const ap=e=>"number"==typeof e?0:e;const lp={test:function(e){var t,n;return isNaN(e)&&Uc(e)&&((null===(t=e.match($c))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Hc))||void 0===n?void 0:n.length)||0)>0},parse:ip,createTransformer:sp,getAnimatableNone:function(e){const t=ip(e);return sp(e)(t.map(ap))}},cp=new Set(["brightness","contrast","saturate","opacity"]);function up(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match($c)||[];if(!r)return e;const o=n.replace(r,"");let i=cp.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const dp=/\b([a-z-]*)\(.*?\)/gu,pp={...lp,getAnimatableNone:e=>{const t=e.match(dp);return t?t.map(up).join(" "):e}},fp={...eu,color:Zd,backgroundColor:Zd,outlineColor:Zd,fill:Zd,stroke:Zd,borderColor:Zd,borderTopColor:Zd,borderRightColor:Zd,borderBottomColor:Zd,borderLeftColor:Zd,filter:pp,WebkitFilter:pp},hp=e=>fp[e];function mp(e,t){let n=hp(e);return n!==pp&&(n=lp),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gp=new Set(["auto","none","0"]);class vp extends Wd{constructor(e,t,n,r){super(e,t,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){const r=e[n];if("string"==typeof r&&Ac(r)){const o=Pd(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Td.has(n)||2!==e.length)return;const[r,o]=e,i=Ld(r),s=Ld(o);if(i!==s)if(Rd(i)&&Rd(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||Sd(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!gp.has(t)&&op(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=mp(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Dd[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Dd[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const bp=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!lp.test(e)&&"0"!==e||e.startsWith("url(")));class xp{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(Hd(),$d()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=bp(o,t),a=bp(i,t);return Cd(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,o)){if(vd||!i)return null==a||a(xd(e,this.options,t)),null==s||s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function yp(e,t){return t?e*(1e3/t):0}const wp=5;function _p(e,t,n){const r=Math.max(t-wp,0);return yp(n-e(r),t-r)}const Sp=.001,Cp=.01,kp=10,jp=.05,Ep=1;function Pp({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Cd(e<=ud(kp),"Spring duration must be 10 seconds or less");let s=1-t;s=zc(jp,Ep,s),e=zc(Cp,kp,dd(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=Rp(t,s),l=Math.exp(-o);return Sp-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Rp(Math.pow(t,2),s);return(-o(t)+Sp>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Sp,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<Tp;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=ud(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const Tp=12;function Rp(e,t){return e*Math.sqrt(1-t*t)}const Ip=["duration","bounce"],Np=["stiffness","damping","mass"];function Mp(e,t){return t.some((t=>void 0!==e[t]))}function Ap({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mp(e,Np)&&Mp(e,Ip)){const n=Pp(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-dd(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(a*c)),m=i-o,g=dd(Math.sqrt(a/c)),v=Math.abs(m)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),h<1){const e=Rp(g,h);b=t=>{const n=Math.exp(-h*g*t);return i-n*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)b=e=>i-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((f+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&u||null,next:e=>{const r=b(e);if(p)s.done=e>=u;else{let o=f;0!==e&&(o=h<1?_p(b,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function Dp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const m=d+h,g=void 0===s?m:s(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/r),b=e=>g+v(e),x=e=>{const t=v(e),n=b(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,w;const _=e=>{(e=>void 0!==a&&e<a||void 0!==l&&e>l)(p.value)&&(y=e,w=Ap({keyframes:[p.value,f(p.value)],velocity:_p(b,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==y||(t=!0,x(e),_(e)),void 0!==y&&e>=y?w.next(e-y):(!t&&x(e),p)}}}const Op=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zp=1e-7,Lp=12;function Fp(e,t,n,r){if(e===t&&n===r)return Nu;const o=t=>function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Op(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>zp&&++a<Lp);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Op(o(e),t,r)}const Bp=Fp(.42,0,1,1),Vp=Fp(0,0,.58,1),$p=Fp(.42,0,.58,1),Hp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wp=e=>t=>1-e(1-t),Up=e=>1-Math.sin(Math.acos(e)),Gp=Wp(Up),Kp=Hp(Up),qp=Fp(.33,1.53,.69,.99),Yp=Wp(qp),Xp=Hp(Yp),Zp={linear:Nu,easeIn:Bp,easeInOut:$p,easeOut:Vp,circIn:Up,circInOut:Kp,circOut:Gp,backIn:Yp,backInOut:Xp,backOut:qp,anticipate:e=>(e*=2)<1?.5*Yp(e):.5*(2-Math.pow(2,-10*(e-1)))},Qp=e=>{if(Array.isArray(e)){kd(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Fp(t,n,r,o)}return"string"==typeof e?(kd(void 0!==Zp[e],`Invalid easing type '${e}'`),Zp[e]):e},Jp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ef=(e,t,n)=>e+(t-e)*n;function tf(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 nf=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},rf=[Yd,qd,Xd];function of(e){const t=(e=>rf.find((t=>t.test(e))))(e);kd(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Xd&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=tf(a,r,e+1/3),i=tf(a,r,e),s=tf(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(n)),n}const sf=(e,t)=>{const n=of(e),r=of(t),o={...n};return e=>(o.red=nf(n.red,r.red,e),o.green=nf(n.green,r.green,e),o.blue=nf(n.blue,r.blue,e),o.alpha=ef(n.alpha,r.alpha,e),qd.transform(o))},af=new Set(["none","hidden"]);function lf(e,t){return n=>n>0?t:e}function cf(e,t){return n=>ef(e,t,n)}function uf(e){return"number"==typeof e?cf:"string"==typeof e?Ac(e)?lf:Zd.test(e)?sf:ff:Array.isArray(e)?df:"object"==typeof e?Zd.test(e)?sf:pf:lf}function df(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>uf(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function pf(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=uf(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const ff=(e,t)=>{const n=lp.createTransformer(t),r=op(e),o=op(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?af.has(e)&&!o.values.length||af.has(t)&&!r.values.length?function(e,t){return af.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Uu(df(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[i]=l,o[s]++}return r}(r,o),o.values),n):(Cd(!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.`),lf(e,t))};function hf(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return ef(e,t,n);return uf(e)(e,t)}function mf(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(kd(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||hf,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]||Nu:t;i=Uu(e,i)}r.push(i)}return r}(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Jp(e[n],e[n+1],t);return s[n](r)};return n?t=>l(zc(e[0],e[i-1],t)):l}function gf(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Jp(0,t,r);e.push(ef(n,1,o))}}(t,e.length-1),t}function vf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Qp):Qp(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:gf(t),e),a=mf(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||$p)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const bf=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Mu.update(t,!0),stop:()=>Au(t),now:()=>Du.isProcessing?Du.timestamp:_d.now()}},xf={decay:Dp,inertia:Dp,tween:vf,keyframes:vf,spring:Ap},yf=e=>e/100;class wf extends xp{constructor({KeyframeResolver:e=Wd,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:n,motionValue:r,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,i,n,r):this.resolver=new e(o,i,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=xf[t]||vf;let a,l;s!==vf&&"number"!=typeof e[0]&&(a=Uu(yf,hf(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:p,repeatType:f,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,x=o;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===f?(n=1-n,h&&(n-=h/u)):"mirror"===f&&(x=i)),b=zc(0,1,n)*u}const y=v?{done:!1,value:a[0]}:x.next(b);s&&(y.value=s(y.value));let{done:w}=y;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&void 0!==r&&(y.value=xd(a,this.options,r)),m&&m(y.value),_&&this.finish(),y}get duration(){const{resolved:e}=this;return e?dd(e.calculatedDuration):0}get time(){return dd(this.currentTime)}set time(e){e=ud(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=dd(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=bf,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const _f=e=>Array.isArray(e)&&"number"==typeof e[0];function Sf(e){return Boolean(!e||"string"==typeof e&&e in kf||_f(e)||Array.isArray(e)&&e.every(Sf))}const Cf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,kf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cf([0,.65,.55,1]),circOut:Cf([.55,0,1,.45]),backIn:Cf([.31,.01,.66,-.59]),backOut:Cf([.33,1.53,.69,.99])};function jf(e){return Ef(e)||kf.easeOut}function Ef(e){return e?_f(e)?Cf(e):Array.isArray(e)?e.map(jf):kf[e]:void 0}const Pf=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Tf=new Set(["opacity","clipPath","filter","transform"]);class Rf extends xp{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new vp(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if(function(e){return"spring"===e.type||"backgroundColor"===e.name||!Sf(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:a,...l}=this.options,c=function(e,t){const n=new wf({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,l);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,o=c.times,i=c.ease,s="keyframes"}const c=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Ef(a);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"===s?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:o,ease:i});return c.startTime=_d.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(xd(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:s,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return dd(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return dd(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=ud(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Nu;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return Nu}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,...l}=this.options,c=new wf({...l,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),u=ud(this.time);e.setWithVelocity(c.sample(u-10).value,c.sample(u).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;return Pf()&&n&&Tf.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const If=(e,t,n,r={},o,i)=>s=>{const a=gd(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=ud(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...md(e,u)}),u.duration&&(u.duration=ud(u.duration)),u.repeatDelay&&(u.repeatDelay=ud(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),(vd||Zl)&&(d=!0,u.duration=0,u.delay=0),d&&!i&&void 0!==t.get()){const e=xd(u.keyframes,a);if(void 0!==e)return void Mu.update((()=>{u.onUpdate(e),u.onComplete()}))}return!i&&Rf.supports(u)?new Rf(u):new wf(u)};function Nf(e){return Boolean(Pc(e)&&e.add)}function Mf(e,t){-1===e.indexOf(t)&&e.push(t)}function Af(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Df{constructor(){this.subscriptions=[]}add(e){return Mf(this.subscriptions,e),()=>Af(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 Of={current:void 0};class zf{constructor(e,t={}){this.version="11.2.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=_d.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=_d.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Df);const n=this.events[e].add(t);return"change"===e?()=>{n(),Mu.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=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Of.current&&Of.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=_d.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return yp(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}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 Lf(e,t){return new zf(e,t)}function Ff(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Lf(n))}function Bf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Vf(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;const c=e.getValue("willChange");r&&(s=r);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||d&&Bf(d,t))continue;const a={delay:n,elapsed:0,...gd(s||{},t)};let p=!1;if(window.HandoffAppearAnimations){const n=e.getProps()[Xl];if(n){const e=window.HandoffAppearAnimations(n,t,r,Mu);null!==e&&(a.elapsed=e,p=!0)}}r.start(If(t,r,o,e.shouldReduceMotion&&jc.has(t)?{type:!1}:a,e,p));const f=r.animation;f&&(Nf(c)&&(c.add(t),f.then((()=>c.remove(t)))),u.push(f))}return a&&Promise.all(u).then((()=>{Mu.update((()=>{a&&function(e,t){const n=cd(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)Ff(e,t,Pu(i[t]))}(e,a)}))})),u}function $f(e,t,n={}){var r;const o=cd(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Vf(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Hf).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push($f(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function Hf(e,t){return e.sortNodePosition(t)}const Wf=[...lc].reverse(),Uf=lc.length;function Gf(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=>$f(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=$f(e,t,n);else{const o="function"==typeof t?cd(e,t,n.custom):t;r=Promise.all(Vf(e,o,n))}return r.then((()=>{Mu.postRender((()=>{e.notify("AnimationComplete",t)}))}))}(e,t,n))))}function Kf(e){let t=Gf(e);const n={animate:Yf(!0),whileInView:Yf(),whileHover:Yf(),whileTap:Yf(),whileDrag:Yf(),whileFocus:Yf(),exit:Yf()};let r=!0;const o=t=>(n,r)=>{var o;const i=cd(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const s=e.getProps(),a=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<Uf;t++){const p=Wf[t],f=n[p],h=void 0!==s[p]?s[p]:a[p],m=sc(h),g=p===i?f.isActive:null;!1===g&&(d=t);let v=h===a[p]&&h!==s[p]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...u},!f.isActive&&null===g||!h&&!f.prevProp||ac(h)||"boolean"==typeof h)continue;let b=qf(f.prevProp,h)||p===i&&f.isActive&&!v&&m||t>d&&m,x=!1;const y=Array.isArray(h)?h:[h];let w=y.reduce(o(p),{});!1===g&&(w={});const{prevResolvedValues:_={}}=f,S={..._,...w},C=t=>{b=!0,c.has(t)&&(x=!0,c.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=w[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ju(t)&&ju(n)?!ld(t,n):t!==n,r?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):f.protectedKeys[e]=!0}f.prevProp=h,f.prevResolvedValues=w,f.isActive&&(u={...u,...w}),r&&e.blockInitialAnimation&&(b=!1),!b||v&&!x||l.push(...y.map((e=>({animation:e,options:{type:p}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.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(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function qf(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ld(t,e)}function Yf(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Xf=0;const Zf={animation:{Feature:class extends Zu{constructor(e){super(e),e.animationState||(e.animationState=Kf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ac(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 Zu{constructor(){super(...arguments),this.id=Xf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Qf=(e,t)=>Math.abs(e-t);class Jf{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=nh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Qf(e.x,t.x),r=Qf(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}=Du;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=eh(t,this.transformPagePoint),Mu.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=nh("pointercancel"===e.type?this.lastMoveEventInfo:eh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Bu(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=eh(Vu(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=Du;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,nh(i,this.history)),this.removeListeners=Uu(Hu(this.contextWindow,"pointermove",this.handlePointerMove),Hu(this.contextWindow,"pointerup",this.handlePointerUp),Hu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Au(this.updatePoint)}}function eh(e,t){return t?{point:t(e.point)}:e}function th(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nh({point:e},t){return{point:e,delta:th(e,oh(t)),offset:th(e,rh(t)),velocity:ih(t,.1)}}function rh(e){return e[0]}function oh(e){return e[e.length-1]}function ih(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=oh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ud(t)));)n--;if(!r)return{x:0,y:0};const i=dd(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function sh(e){return e.max-e.min}function ah(e,t=0,n=.01){return Math.abs(e-t)<=n}function lh(e,t,n,r=.5){e.origin=r,e.originPoint=ef(t.min,t.max,e.origin),e.scale=sh(n)/sh(t),(ah(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ef(n.min,n.max,e.origin)-e.originPoint,(ah(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ch(e,t,n,r){lh(e.x,t.x,n.x,r?r.originX:void 0),lh(e.y,t.y,n.y,r?r.originY:void 0)}function uh(e,t,n){e.min=n.min+t.min,e.max=e.min+sh(t)}function dh(e,t,n){e.min=t.min-n.min,e.max=e.min+sh(t)}function ph(e,t,n){dh(e.x,t.x,n.x),dh(e.y,t.y,n.y)}function fh(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 hh(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 mh=.35;function gh(e,t,n){return{min:vh(e,t),max:vh(e,n)}}function vh(e,t){return"number"==typeof e?e:e[t]||0}const bh=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),xh=()=>({x:{min:0,max:0},y:{min:0,max:0}});function yh(e){return[e("x"),e("y")]}function wh({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _h(e){return void 0===e||1===e}function Sh({scale:e,scaleX:t,scaleY:n}){return!_h(e)||!_h(t)||!_h(n)}function Ch(e){return Sh(e)||kh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function kh(e){return jh(e.x)||jh(e.y)}function jh(e){return e&&"0%"!==e}function Eh(e,t,n){return n+t*(e-n)}function Ph(e,t,n,r,o){return void 0!==o&&(e=Eh(e,o,r)),Eh(e,n,r)+t}function Th(e,t=0,n=1,r,o){e.min=Ph(e.min,t,n,r,o),e.max=Ph(e.max,t,n,r,o)}function Rh(e,{x:t,y:n}){Th(e.x,t.translate,t.scale,t.originPoint),Th(e.y,n.translate,n.scale,n.originPoint)}function Ih(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Nh(e,t){e.min=e.min+t,e.max=e.max+t}function Mh(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=ef(e.min,e.max,i);Th(e,t[n],t[r],s,t.scale)}const Ah=["x","scaleX","originX"],Dh=["y","scaleY","originY"];function Oh(e,t){Mh(e.x,t,Ah),Mh(e.y,t,Dh)}function zh(e,t){return wh(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 Lh=({current:e})=>e?e.ownerDocument.defaultView:null,Fh=new WeakMap;class Bh{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=xh(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Jf(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Vu(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Yu(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),yh((e=>{let t=this.getAxisMotionValue(e).get()||0;if(qc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=sh(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Mu.postRender((()=>o(e,t)));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:s}=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}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>yh((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Lh(this.visualElement)})}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&&Mu.postRender((()=>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||!Vh(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?ef(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?ef(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&oc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:fh(e.x,n,o),y:fh(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=mh){return!1===e?e=0:!0===e&&(e=mh),{x:gh(e,"left","right"),y:gh(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yh((e=>{!1!==this.constraints&&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}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!oc(e))return!1;const n=e.current;kd(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=zh(e,n),{scroll:o}=t;return o&&(Nh(r.x,o.offset.x),Nh(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:hh(e.x,t.x),y:hh(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=wh(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=yh((s=>{if(!Vh(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(If(e,n,0,t,this.visualElement))}stopAnimation(){yh((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){yh((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}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){yh((t=>{const{drag:n}=this.getProps();if(!Vh(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]-ef(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!oc(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};yh((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=sh(e),o=sh(t);return o>r?n=Jp(t.min,t.max-r,e.min):r>o&&(n=Jp(e.min,e.max-o,t.min)),zc(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(),yh((t=>{if(!Vh(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(ef(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Fh.set(this.visualElement,this);const e=Hu(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();oc(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=Fu(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(yh((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=mh,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Vh(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const $h=e=>(t,n)=>{e&&Mu.postRender((()=>e(t,n)))};const Hh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Uh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Yc.test(e))return e;e=parseFloat(e)}return`${Wh(e,t.target.x)}% ${Wh(e,t.target.y)}%`}},Gh={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=lp.parse(e);if(o.length>5)return r;const i=lp.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=ef(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class Kh extends B.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Yh,Object.assign(Cc,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()})),Hh.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()||Mu.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nc.postRender((()=>{!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 qh(e){const[t,n]=function(){const e=(0,B.useContext)(Ul);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,B.useId)();return(0,B.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,B.useContext)(gc);return(0,wt.jsx)(Kh,{...e,layoutGroup:r,switchLayoutGroup:(0,B.useContext)(vc),isPresent:t,safeToRemove:n})}const Yh={borderRadius:{...Uh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Uh,borderTopRightRadius:Uh,borderBottomLeftRadius:Uh,borderBottomRightRadius:Uh,boxShadow:Gh},Xh=["TopLeft","TopRight","BottomLeft","BottomRight"],Zh=Xh.length,Qh=e=>"string"==typeof e?parseFloat(e):e,Jh=e=>"number"==typeof e||Yc.test(e);function em(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const tm=rm(0,.5,Gp),nm=rm(.5,.95,Nu);function rm(e,t,n){return r=>r<e?0:r>t?1:n(Jp(e,t,r))}function om(e,t){e.min=t.min,e.max=t.max}function im(e,t){om(e.x,t.x),om(e.y,t.y)}function sm(e,t,n,r,o){return e=Eh(e-=t,1/n,r),void 0!==o&&(e=Eh(e,1/o,r)),e}function am(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){qc.test(t)&&(t=parseFloat(t),t=ef(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=ef(i.min,i.max,r);e===i&&(a-=t),e.min=sm(e.min,t,n,a,o),e.max=sm(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const lm=["x","scaleX","originX"],cm=["y","scaleY","originY"];function um(e,t,n,r){am(e.x,t,lm,n?n.x:void 0,r?r.x:void 0),am(e.y,t,cm,n?n.y:void 0,r?r.y:void 0)}function dm(e){return 0===e.translate&&1===e.scale}function pm(e){return dm(e.x)&&dm(e.y)}function fm(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 hm(e){return sh(e.x)/sh(e.y)}class mm{constructor(){this.members=[]}add(e){Mf(this.members,e),e.scheduleRender()}remove(e){if(Af(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 gm(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}const vm=(e,t)=>e.depth-t.depth;class bm{constructor(){this.children=[],this.isDirty=!1}add(e){Mf(this.children,e),this.isDirty=!0}remove(e){Af(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vm),this.isDirty=!1,this.children.forEach(e)}}const xm=["","X","Y","Z"],ym={visibility:"hidden"};let wm=0;const _m={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Sm(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=wm++,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.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,_m.totalNodes=_m.resolvedTargetDeltas=_m.recalculatedProjection=0,this.nodes.forEach(Em),this.nodes.forEach(Am),this.nodes.forEach(Dm),this.nodes.forEach(Pm),e=_m,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 bm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Df),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:s}=this.options;if(s&&!s.current&&s.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=_d.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Au(r),e(i-t))};return Mu.read(r,!0),()=>Au(r)}(r,250),Hh.hasAnimatedSinceResize&&(Hh.hasAnimatedSinceResize=!1,this.nodes.forEach(Mm))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(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||s.getDefaultTransition()||Vm,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!fm(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={...gd(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Mm(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,Au(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,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes&&this.nodes.forEach(Om),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(Rm);this.isUpdating||this.nodes.forEach(Im),this.isUpdating=!1,this.nodes.forEach(Nm),this.nodes.forEach(km),this.nodes.forEach(jm),this.clearAllSnapshots();const e=_d.now();Du.delta=zc(0,1e3/60,e-Du.timestamp),Du.timestamp=e,Du.isProcessing=!0,Ou.update.process(Du),Ou.preRender.process(Du),Ou.render.process(Du),Du.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nc.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Tm),this.sharedNodes.forEach(zm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mu.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mu.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=xh(),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&&!pm(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Ch(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)),Wm((r=n).x),Wm(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return xh();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Nh(t.x,n.offset.x),Nh(t.y,n.offset.y)),t}removeElementScroll(e){const t=xh();im(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){im(t,e);const{scroll:n}=this.root;n&&(Nh(t.x,-n.offset.x),Nh(t.y,-n.offset.y))}Nh(t.x,o.offset.x),Nh(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=xh();im(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&&Oh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Ch(r.latestValues)&&Oh(n,r.latestValues)}return Ch(this.latestValues)&&Oh(n,this.latestValues),n}removeTransform(e){const t=xh();im(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Ch(n.latestValues))continue;Sh(n.latestValues)&&n.updateSnapshot();const r=xh();im(r,n.measurePageBox()),um(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Ch(this.latestValues)&&um(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!==Du.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=Du.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xh(),this.relativeTargetOrigin=xh(),ph(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),im(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=xh(),this.targetWithTransforms=xh()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,uh(s.x,a.x,l.x),uh(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):im(this.target,this.layout.layoutBox),Rh(this.target,this.targetDelta)):im(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=xh(),this.relativeTargetOrigin=xh(),ph(this.relativeTargetOrigin,this.target,e.target),im(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_m.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Sh(this.parent.latestValues)&&!kh(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===Du.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;im(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Oh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Rh(e,s)),r&&Ch(i.latestValues)&&Oh(e,i.latestValues))}t.x=Ih(t.x),t.y=Ih(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,t.targetWithTransforms=xh());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=bh(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=bh(),this.projectionDeltaWithTransform=bh());const c=this.projectionTransform;ch(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=gm(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),_m.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=bh();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=xh(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Bm));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Lm(i.x,e.x,n),Lm(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ph(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Fm(e.x,t.x,n.x,r),Fm(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,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=xh()),im(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=ef(0,void 0!==n.opacity?n.opacity:1,tm(r)),e.opacityExit=ef(void 0!==t.opacity?t.opacity:1,0,nm(r))):i&&(e.opacity=ef(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Zh;o++){const i=`border${Xh[o]}Radius`;let s=em(t,i),a=em(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Jh(s)===Jh(a)?(e[i]=Math.max(ef(Qh(s),Qh(a),r),0),(qc.test(a)||qc.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=ef(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&&(Au(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mu.update((()=>{Hh.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Pc(e)?e:Lf(e);return r.start(If("",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&&Um(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||xh();const t=sh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=sh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}im(t,n),Oh(t,o),ch(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new mm);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)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Sm("z",e,r,this.animationValues);for(let t=0;t<xm.length;t++)Sm(`rotate${xm[t]}`,e,r,this.animationValues),Sm(`skew${xm[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ym;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Tu(null==e?void 0: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=Tu(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Ch(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=gm(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Cc){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Cc[e],o="none"===r.transform?s[e]:t(s[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?Tu(null==e?void 0: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(Rm),this.root.sharedNodes.clear()}}}function km(e){e.updateLayout()}function jm(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?yh((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=sh(r);r.min=t[e].min,r.max=r.min+o})):Um(o,n.layoutBox,t)&&yh((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=sh(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=bh();ch(s,t,n.layoutBox);const a=bh();i?ch(a,e.applyTransform(r,!0),n.measuredBox):ch(a,t,n.layoutBox);const l=!pm(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=xh();ph(s,n.layoutBox,o.layoutBox);const a=xh();ph(a,t,i.layoutBox),fm(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Em(e){_m.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 Pm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Tm(e){e.clearSnapshot()}function Rm(e){e.clearMeasurements()}function Im(e){e.isLayoutDirty=!1}function Nm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Mm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Am(e){e.resolveTargetDelta()}function Dm(e){e.calcProjection()}function Om(e){e.resetSkewAndRotation()}function zm(e){e.removeLeadSnapshot()}function Lm(e,t,n){e.translate=ef(t.translate,0,n),e.scale=ef(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fm(e,t,n,r){e.min=ef(t.min,n.min,r),e.max=ef(t.max,n.max,r)}function Bm(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Vm={duration:.45,ease:[.4,0,.1,1]},$m=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hm=$m("applewebkit/")&&!$m("chrome/")?Math.round:Nu;function Wm(e){e.min=Hm(e.min),e.max=Hm(e.max)}function Um(e,t,n){return"position"===e||"preserve-aspect"===e&&!ah(hm(t),hm(n),.2)}const Gm=Cm({attachResizeListener:(e,t)=>Fu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Km={current:void 0},qm=Cm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Km.current){const e=new Gm({});e.mount(window),e.setOptions({layoutScroll:!0}),Km.current=e}return Km.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Ym={pan:{Feature:class extends Zu{constructor(){super(...arguments),this.removePointerDownListener=Nu}onPointerDown(e){this.session=new Jf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lh(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:$h(e),onStart:$h(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Mu.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Hu(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 Zu{constructor(e){super(e),this.removeGroupControls=Nu,this.removeListeners=Nu,this.controls=new Bh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nu}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:qm,MeasureLayout:qh}},Xm={current:null},Zm={current:!1};const Qm=new WeakMap,Jm=[...zd,Zd,lp],eg=Object.keys(mc),tg=eg.length,ng=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rg=cc.length;function og(e){if(e)return!1!==e.options.allowProjection?e.projection:og(e.parent)}class ig{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wd,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=()=>Mu.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=uc(t),this.isVariantNode=dc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==a[e]&&Pc(t)&&(t.set(a[e],!1),Nf(c)&&c.add(e))}}mount(e){this.current=e,Qm.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))),Zm.current||function(){if(Zm.current=!0,Gl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xm.current=e.matches;e.addListener(t),t()}else Xm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xm.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;Qm.delete(this.current),this.projection&&this.projection.unmount(),Au(this.notifyUpdate),Au(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 t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){const n=jc.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Mu.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o(),t.owner&&t.stop()}))}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,s;for(let e=0;e<tg;e++){const n=eg[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=mc[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection=new i(this.latestValues,t["data-framer-portal-id"]?void 0:og(this.parent)),this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&oc(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}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):xh()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=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<ng.length;t++){const n=ng[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],s=n[o];if(Pc(i))e.addValue(o,i),Nf(r)&&r.add(o);else if(Pc(s))e.addValue(o,Lf(i,{owner:e})),Nf(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,Lf(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),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<rg;e++){const n=cc[e],r=this.props[n];(sc(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){const n=this.values.get(e);t!==n&&(n&&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=Lf(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(jd(r)||Sd(r))?r=parseFloat(r):!(e=>Jm.find(Od(e)))(r)&&lp.test(t)&&(r=mp(e,t)),this.setBaseTarget(e,Pc(r)?r.get():r)),Pc(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=Cu(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Pc(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 Df),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class sg extends ig{constructor(){super(...arguments),this.KeyframeResolver=vp}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]}}class ag extends sg{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(jc.has(t)){const e=hp(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Nc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return zh(e,t)}build(e,t,n,r){tu(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return wu(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Pc(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){bu(e,t,n,r)}}class lg extends sg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(jc.has(t)){const e=hp(t);return e&&e.default||0}return t=xu.has(t)?t:Yl(t),e.getAttribute(t)}measureInstanceViewportBox(){return xh()}scrapeMotionValuesFromProps(e,t,n){return _u(e,t,n)}build(e,t,n,r){fu(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){yu(e,t,0,r)}mount(e){this.isSVGTag=mu(e.tagName),super.mount(e)}}const cg=(e,t)=>Sc(e)?new lg(t,{enableHardwareAcceleration:!1}):new ag(t,{allowProjection:e!==B.Fragment,enableHardwareAcceleration:!0}),ug={...Zf,...ad,...Ym,...{layout:{ProjectionNode:qm,MeasureLayout:qh}}},dg=wc(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Sc(e)?zu:Lu,preloadedFeatures:n,useRender:vu(t),createVisualElement:r,Component:e}}(e,t,ug,cg)));function pg(){const e=(0,B.useRef)(!1);return Kl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function fg(){const e=pg(),[t,n]=(0,B.useState)(0),r=(0,B.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,B.useCallback)((()=>Mu.postRender(r)),[r]),t]}class hg extends B.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 mg({children:e,isPresent:t}){const n=(0,B.useId)(),r=(0,B.useRef)(null),o=(0,B.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,B.useContext)(Hl);return(0,B.useInsertionEffect)((()=>{const{width:e,height:s,top:a,left:l}=o.current;if(t||!r.current||!e||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${s}px !important;\n            top: ${a}px !important;\n            left: ${l}px !important;\n          }\n        `),()=>{document.head.removeChild(c)}}),[t]),(0,wt.jsx)(hg,{isPresent:t,childRef:r,sizeRef:o,children:B.cloneElement(e,{ref:r})})}const gg=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ku(vg),l=(0,B.useId)(),c=(0,B.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{a.set(e,!0);for(const e of a.values())if(!e)return;r&&r()},register:e=>(a.set(e,!1),()=>a.delete(e))})),i?[Math.random()]:[n]);return(0,B.useMemo)((()=>{a.forEach(((e,t)=>a.set(t,!1)))}),[n]),B.useEffect((()=>{!n&&!a.size&&r&&r()}),[n]),"popLayout"===s&&(e=(0,wt.jsx)(mg,{isPresent:n,children:e})),(0,wt.jsx)(Ul.Provider,{value:c,children:e})};function vg(){return new Map}const bg=e=>e.key||"";const xg=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{kd(!o,"Replace exitBeforeEnter with mode='wait'");const a=(0,B.useContext)(gc).forceRender||fg()[0],l=pg(),c=function(e){const t=[];return B.Children.forEach(e,(e=>{(0,B.isValidElement)(e)&&t.push(e)})),t}(e);let u=c;const d=(0,B.useRef)(new Map).current,p=(0,B.useRef)(u),f=(0,B.useRef)(new Map).current,h=(0,B.useRef)(!0);var m;if(Kl((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=bg(e);t.set(n,e)}))}(c,f),p.current=u})),m=()=>{h.current=!0,f.clear(),d.clear()},(0,B.useEffect)((()=>()=>m()),[]),h.current)return(0,wt.jsx)(wt.Fragment,{children:u.map((e=>(0,wt.jsx)(gg,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:s,children:e},bg(e))))});u=[...u];const g=p.current.map(bg),v=c.map(bg),b=g.length;for(let e=0;e<b;e++){const t=g[e];-1!==v.indexOf(t)||d.has(t)||d.set(t,void 0)}return"wait"===s&&d.size&&(u=[]),d.forEach(((e,n)=>{if(-1!==v.indexOf(n))return;const o=f.get(n);if(!o)return;const h=g.indexOf(n);let m=e;if(!m){const e=()=>{d.delete(n);const e=Array.from(f.keys()).filter((e=>!v.includes(e)));if(e.forEach((e=>f.delete(e))),p.current=c.filter((t=>{const r=bg(t);return r===n||e.includes(r)})),!d.size){if(!1===l.current)return;a(),r&&r()}};m=(0,wt.jsx)(gg,{isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:s,children:o},bg(o)),d.set(n,m)}u.splice(h,0,m)})),u=u.map((e=>{const t=e.key;return d.has(t)?e:(0,wt.jsx)(gg,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:e},bg(e))})),(0,wt.jsx)(wt.Fragment,{children:d.size?u:u.map((e=>(0,B.cloneElement)(e)))})},yg=["40em","52em","64em"],wg=(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>yg.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${yg.length} breakpoints, got index ${t}`);const[n,r]=(0,c.useState)(t);return(0,c.useEffect)((()=>{const e=()=>{const e=yg.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 _g(e,t={}){const n=wg(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const Sg={name:"zjik7",styles:"display:flex"},Cg={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},kg={name:"82a6rk",styles:"flex:1"},jg={name:"13nosa1",styles:">*{min-height:0;}"},Eg={name:"1pwxzk4",styles:">*{min-width:0;}"};function Pg(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:a=!1,...l}=Ya(function(e){const{isReversed:t,...n}=e;return void 0!==t?(Fi()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=_g(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),p=qa();return{...l,className:(0,c.useMemo)((()=>{const e=bl({alignItems:null!=t?t:d?"normal":"center",flexDirection:u,flexWrap:a?"wrap":void 0,gap:wl(i),justifyContent:s,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return p(Sg,e,d?jg:Eg,n)}),[t,n,p,u,o,i,d,s,a]),isColumn:d}}const Tg=(0,c.createContext)({flexItemDisplay:void 0}),Rg=()=>(0,c.useContext)(Tg);const Ig=Xa((function(e,t){const{children:n,isColumn:r,...o}=Pg(e);return(0,wt.jsx)(Tg.Provider,{value:{flexItemDisplay:r?"block":void 0},children:(0,wt.jsx)(dl,{...o,ref:t,children:n})})}),"Flex");function Ng(e){const{className:t,display:n,isBlock:r=!1,...o}=Ya(e,"FlexItem"),i={},s=Rg().flexItemDisplay;i.Base=bl({display:n||s},"","");return{...o,className:qa()(Cg,i.Base,r&&kg,t)}}const Mg=Xa((function(e,t){const n=function(e){return Ng({isBlock:!0,...Ya(e,"FlexBlock")})}(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"FlexBlock"),Ag=new RegExp(/-left/g),Dg=new RegExp(/-right/g),Og=new RegExp(/Left/g),zg=new RegExp(/Right/g);function Lg(e){return"left"===e?"right":"right"===e?"left":Ag.test(e)?e.replace(Ag,"-right"):Dg.test(e)?e.replace(Dg,"-left"):Og.test(e)?e.replace(Og,"Right"):zg.test(e)?e.replace(zg,"Left"):e}const Fg=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Lg(e),t])));function Bg(e={},t){return()=>t?(0,a.isRTL)()?bl(t,"",""):bl(e,"",""):(0,a.isRTL)()?bl(Fg(e),"",""):bl(e,"","")}Bg.watch=()=>(0,a.isRTL)();const Vg=e=>null!=e;const $g=Xa((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:s,marginX:a,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:p,paddingTop:f,paddingX:h,paddingY:m,...g}=Ya(e,"Spacer");return{...g,className:qa()(Vg(n)&&bl("margin:",wl(n),";",""),Vg(l)&&bl("margin-bottom:",wl(l),";margin-top:",wl(l),";",""),Vg(a)&&bl("margin-left:",wl(a),";margin-right:",wl(a),";",""),Vg(s)&&bl("margin-top:",wl(s),";",""),Vg(r)&&bl("margin-bottom:",wl(r),";",""),Vg(o)&&Bg({marginLeft:wl(o)})(),Vg(i)&&Bg({marginRight:wl(i)})(),Vg(c)&&bl("padding:",wl(c),";",""),Vg(m)&&bl("padding-bottom:",wl(m),";padding-top:",wl(m),";",""),Vg(h)&&bl("padding-left:",wl(h),";padding-right:",wl(h),";",""),Vg(f)&&bl("padding-top:",wl(f),";",""),Vg(u)&&bl("padding-bottom:",wl(u),";",""),Vg(d)&&Bg({paddingLeft:wl(d)})(),Vg(p)&&Bg({paddingRight:wl(p)})(),t)}}(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"Spacer"),Hg=$g,Wg=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),Ug=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M7 11.5h10V13H7z"})});const Gg=Xa((function(e,t){const n=Ng(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"FlexItem");const Kg={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function qg(e){return null!=e}const Yg=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Xg="…",Zg={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Qg={ellipsis:Xg,ellipsizeMode:Zg.auto,limit:0,numberOfLines:0};function Jg(e="",t){const n={...Qg,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Zg.none)return e;let s,a;switch(o){case Zg.head:s=0,a=i;break;case Zg.middle:s=Math.floor(i/2),a=Math.floor(i/2);break;default:s=i,a=0}const l=o!==Zg.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,s=~~n,a=qg(r)?r:Xg;return 0===i&&0===s||i>=o||s>=o||i+s>=o?e:0===s?e.slice(0,i)+a:e.slice(0,i)+a+e.slice(o-s)}(e,s,a,r):e;return l}function ev(e){const{className:t,children:n,ellipsis:r=Xg,ellipsizeMode:o=Zg.auto,limit:i=0,numberOfLines:s=0,...a}=Ya(e,"Truncate"),l=qa();let u;"string"==typeof n?u=n:"number"==typeof n&&(u=n.toString());const d=u?Jg(u,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}):n,p=!!u&&o===Zg.auto;return{...a,className:(0,c.useMemo)((()=>l(p&&!s&&Kg,p&&!!s&&bl(1===s?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,s,p]),children:d}}var tv={grad:.9,turn:360,rad:360/(2*Math.PI)},nv=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},rv=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},ov=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},iv=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},sv=function(e){return{r:ov(e.r,0,255),g:ov(e.g,0,255),b:ov(e.b,0,255),a:ov(e.a)}},av=function(e){return{r:rv(e.r),g:rv(e.g),b:rv(e.b),a:rv(e.a,3)}},lv=/^#([0-9a-f]{3,8})$/i,cv=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},uv=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},dv=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),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},pv=function(e){return{h:iv(e.h),s:ov(e.s,0,100),l:ov(e.l,0,100),a:ov(e.a)}},fv=function(e){return{h:rv(e.h),s:rv(e.s),l:rv(e.l),a:rv(e.a,3)}},hv=function(e){return dv((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},mv=function(e){return{h:(t=uv(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},gv=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vv=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bv=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xv=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yv={string:[[function(e){var t=lv.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?rv(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?rv(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=bv.exec(e)||xv.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:sv({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=gv.exec(e)||vv.exec(e);if(!t)return null;var n,r,o=pv({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(tv[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return hv(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 nv(t)&&nv(n)&&nv(r)?sv({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(!nv(t)||!nv(n)||!nv(r))return null;var s=pv({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return hv(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!nv(t)||!nv(n)||!nv(r))return null;var s=function(e){return{h:iv(e.h),s:ov(e.s,0,100),v:ov(e.v,0,100),a:ov(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return dv(s)},"hsv"]]},wv=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]},_v=function(e){return"string"==typeof e?wv(e.trim(),yv.string):"object"==typeof e&&null!==e?wv(e,yv.object):[null,void 0]},Sv=function(e,t){var n=mv(e);return{h:n.h,s:ov(n.s+100*t,0,100),l:n.l,a:n.a}},Cv=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},kv=function(e,t){var n=mv(e);return{h:n.h,s:n.s,l:ov(n.l+100*t,0,100),a:n.a}},jv=function(){function e(e){this.parsed=_v(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 rv(Cv(this.rgba),2)},e.prototype.isDark=function(){return Cv(this.rgba)<.5},e.prototype.isLight=function(){return Cv(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=av(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?cv(rv(255*o)):"","#"+cv(t)+cv(n)+cv(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return av(this.rgba)},e.prototype.toRgbString=function(){return t=(e=av(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 fv(mv(this.rgba))},e.prototype.toHslString=function(){return t=(e=fv(mv(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=uv(this.rgba),{h:rv(e.h),s:rv(e.s),v:rv(e.v),a:rv(e.a,3)};var e},e.prototype.invert=function(){return Ev({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),Ev(Sv(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ev(Sv(this.rgba,-e))},e.prototype.grayscale=function(){return Ev(Sv(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ev(kv(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ev(kv(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?Ev({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):rv(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=mv(this.rgba);return"number"==typeof e?Ev({h:e,s:t.s,l:t.l,a:t.a}):rv(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ev(e).toHex()},e}(),Ev=function(e){return e instanceof jv?e:new jv(e)},Pv=[],Tv=function(e){e.forEach((function(e){Pv.indexOf(e)<0&&(e(jv,yv),Pv.push(e))}))};function Rv(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,s,a=r[this.toHex()];if(a)return a;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 p in n){var f=(o=l,s=i[p],Math.pow(o.r-s.r,2)+Math.pow(o.g-s.g,2)+Math.pow(o.b-s.b,2));f<c&&(c=f,u=p)}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 Iv;Tv([Rv]);const Nv=gs((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Ev(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Iv){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Iv=e}return Iv}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Mv(e){const t=function(e){const t=Nv(e);return Ev(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Av=bl("color:",jl.gray[900],";line-height:",Tl.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),Dv={name:"4zleql",styles:"display:block"},Ov=bl("color:",jl.alert.green,";",""),zv=bl("color:",jl.alert.red,";",""),Lv=bl("color:",jl.gray[700],";",""),Fv=bl("mark{background:",jl.alert.yellow,";border-radius:",Tl.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Bv={name:"50zrmy",styles:"text-transform:uppercase"};var Vv=o(9664);const $v=gs((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Hv=13,Wv={body:Hv,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Uv=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Gv(e=Hv){if(e in Wv)return Gv(Wv[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Hv})`} * ${Tl.fontSize})`}function Kv(e=3){if(!Uv.includes(e))return Gv(e);return Tl[`fontSizeH${e}`]}var qv={name:"50zrmy",styles:"text-transform:uppercase"};function Yv(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:a,isDestructive:l=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:p=!1,highlightWords:f,highlightSanitize:h,isBlock:m=!1,letterSpacing:g,lineHeight:v,optimizeReadabilityFor:b,size:x,truncate:y=!1,upperCase:w=!1,variant:_,weight:S=Tl.fontWeight,...C}=Ya(t,"Text");let k=o;const j=Array.isArray(f),E="caption"===x;if(j){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");k=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:a="",highlightStyle:l={},highlightTag:u="mark",sanitize:d,searchWords:p=[],unhighlightClassName:f="",unhighlightStyle:h}){if(!i)return null;if("string"!=typeof i)return i;const m=i,g=(0,Vv.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:d,searchWords:p,textToHighlight:m}),v=u;let b,x=-1,y="";const w=g.map(((r,i)=>{const s=m.substr(r.start,r.end-r.start);if(r.highlight){let r;x++,r="object"==typeof a?o?a[s]:(a=$v(a))[s.toLowerCase()]:a;const u=x===+t;y=`${r} ${u?e:""}`,b=!0===u&&null!==n?Object.assign({},l,n):l;const d={children:s,className:y,key:i,style:b};return"string"!=typeof v&&(d.highlightIndex=x),(0,c.createElement)(v,d)}return(0,c.createElement)("span",{children:s,className:f,key:i,style:h})}));return w}({autoEscape:d,children:o,caseSensitive:p,searchWords:f,sanitize:h})}const P=qa();let T;!0===y&&(T="auto"),!1===y&&(T="none");const R=ev({...C,className:(0,c.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Tl.controlHeight} + ${wl(2)})`;switch(e){case"large":n=`calc(${Tl.controlHeightLarge} + ${wl(2)})`;break;case"small":n=`calc(${Tl.controlHeightSmall} + ${wl(2)})`;break;case"xSmall":n=`calc(${Tl.controlHeightXSmall} + ${wl(2)})`}return n}(n,v);if(t.Base=bl({color:s,display:u,fontSize:Gv(x),fontWeight:S,lineHeight:o,letterSpacing:g,textAlign:r},"",""),t.upperCase=qv,t.optimalTextColor=null,b){const e="dark"===Mv(b);t.optimalTextColor=bl(e?{color:jl.gray[900]}:{color:jl.white},"","")}return P(Av,t.Base,t.optimalTextColor,l&&zv,!!j&&Fv,m&&Dv,E&&Lv,_&&e[_],w&&t.upperCase,i)}),[n,r,i,s,P,u,m,E,l,j,g,v,b,x,w,_,S]),children:o,ellipsizeMode:a||T});return!y&&Array.isArray(o)&&(k=c.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return el(e,["Link"])?(0,c.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...R,children:y?R.children:k}}const Xv=Xa((function(e,t){const n=Yv(e);return(0,wt.jsx)(dl,{as:"span",...n,ref:t})}),"Text");const Zv={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};const Qv=cl("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Jv=cl("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),eb=({disabled:e,isBorderless:t})=>t?"transparent":e?jl.ui.borderDisabled:jl.ui.border,tb=cl("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",eb,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",Bg({paddingLeft:2}),";}"),nb=cl(Ig,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",Tl.radiusSmall,";padding-top:0;&:focus-within:not( :has( :is( ",Qv,", ",Jv," ):focus-within ) ){",tb,"{border-color:",jl.ui.borderFocus,";box-shadow:",Tl.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),rb=({disabled:e})=>bl({backgroundColor:e?jl.ui.backgroundDisabled:jl.ui.background},"","");var ob={name:"1d3w5wq",styles:"width:100%"};const ib=({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":bl("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):ob,sb=cl("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",rb," ",ib,";"),ab=({disabled:e})=>e?bl({color:jl.ui.textDisabled},"",""):"",lb=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?bl("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},cb=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Tl.controlPaddingX,paddingRight:Tl.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Tl.controlPaddingXSmall,paddingRight:Tl.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Tl.controlPaddingXSmall,paddingRight:Tl.controlPaddingXSmall},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Tl.controlPaddingX,paddingRight:Tl.controlPaddingX}};return t||(n.default=n.compact),n[e]||n.default},ub=e=>bl(cb(e),"",""),db=({paddingInlineStart:e,paddingInlineEnd:t})=>bl({paddingInlineStart:e,paddingInlineEnd:t},"",""),pb=({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=bl("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=bl("&:active{cursor:",t,";}","")),bl(n," ",r,";","")},fb=cl("input",{target:"em5sgkm3"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",jl.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",pb," ",ab," ",lb," ",ub," ",db," &::-webkit-input-placeholder{line-height:normal;}}"),hb=cl(Xv,{target:"em5sgkm2"})("&&&{",Zv,";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;}"),mb=e=>(0,wt.jsx)(hb,{...e,as:"label"}),gb=cl(Gg,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),vb=({variant:e="default",size:t,__next40pxDefaultSize:n,isPrefix:r})=>{const{paddingLeft:o}=cb({inputSize:t,__next40pxDefaultSize:n}),i=r?"paddingInlineStart":"paddingInlineEnd";return bl("default"===e?{[i]:o}:{display:"flex",[i]:o-4},"","")},bb=cl("div",{target:"em5sgkm0"})(vb,";");const xb=(0,c.memo)((function({disabled:e=!1,isBorderless:t=!1}){return(0,wt.jsx)(tb,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})})),yb=xb;function wb({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,wt.jsx)(pl,{as:"label",htmlFor:n,children:e}):(0,wt.jsx)(gb,{children:(0,wt.jsx)(mb,{htmlFor:n,...r,children:e})}):null}function _b(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}function Sb(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 Cb(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:s=!1,hideLabelFromVision:a=!1,labelPosition:u,id:d,isBorderless:p=!1,label:f,prefix:h,size:m="default",suffix:g,...v}=_b(Ya(e,"InputBase")),b=function(e){const t=(0,l.useInstanceId)(Cb);return e||`input-base-control-${t}`}(d),x=a||!f,y=(0,c.useMemo)((()=>({InputControlPrefixWrapper:{__next40pxDefaultSize:n,size:m},InputControlSuffixWrapper:{__next40pxDefaultSize:n,size:m}})),[n,m]);return(0,wt.jsxs)(nb,{...v,...Sb(u),className:i,gap:2,ref:t,children:[(0,wt.jsx)(wb,{className:"components-input-control__label",hideLabelFromVision:a,labelPosition:u,htmlFor:b,children:f}),(0,wt.jsxs)(sb,{__unstableInputWidth:r,className:"components-input-control__container",disabled:s,hideLabel:x,labelPosition:u,children:[(0,wt.jsxs)(is,{value:y,children:[h&&(0,wt.jsx)(Qv,{className:"components-input-control__prefix",children:h}),o,g&&(0,wt.jsx)(Jv,{className:"components-input-control__suffix",children:g})]}),(0,wt.jsx)(yb,{disabled:s,isBorderless:p})]})]})}const kb=Xa(Cb,"InputBase");const jb={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 Eb(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Pb(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?-Eb(t-e,n-t,r)+t:e>n?+Eb(e-n,n-t,r)+n:e}function Tb(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 Rb(e,t,n){return(t=Tb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ib(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 Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ib(Object(n),!0).forEach((function(t){Rb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ib(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Mb={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 Ab(e){return e?e[0].toUpperCase()+e.slice(1):""}const Db=["enter","leave"];function Ob(e,t="",n=!1){const r=Mb[e],o=r&&r[t]||t;return"on"+Ab(e)+Ab(o)+(function(e=!1,t){return e&&!Db.includes(t)}(n,o)?"Capture":"")}const zb=["gotpointercapture","lostpointercapture"];function Lb(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=zb.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Fb(e){return"touches"in e}function Bb(e){return Fb(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Vb(e){return Fb(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function $b(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 Hb(e){const t=Vb(e);return Fb(e)?t.identifier:t.pointerId}function Wb(e){const t=Vb(e);return[t.clientX,t.clientY]}function Ub(e,...t){return"function"==typeof e?e(...t):e}function Gb(){}function Kb(...e){return 0===e.length?Gb:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function qb(e,t){return Object.assign({},t,e||{})}class Yb{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=e.timeDelta=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?Ub(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);jb.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,s]=t._movement,[a,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=a&&u[0]),!1===c[1]&&(c[1]=Math.abs(s)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=a&&Math.sign(i)*a),!1===c[1]&&(c[1]=Math.abs(s)>=l&&Math.sign(s)*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]?s-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const p=t.offset,f=t._active&&!t._blocked||t.active;f&&(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=Ub(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[h,m]=t.offset,[[g,v],[b,x]]=t._bounds;t.overflow=[h<g?-1:h>v?1:0,m<b?-1:m>x?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 y=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,s],[a,l]]=e;return[Pb(t,i,s,r),Pb(n,a,l,o)]}(t._bounds,t.offset,y),t.delta=jb.sub(t.offset,p),this.computeMovement(),f&&(!t.last||o>32)){t.delta=jb.sub(t.offset,p);const e=t.delta.map(Math.abs);jb.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],t.timeDelta=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(Nb(Nb(Nb({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Xb extends Yb{constructor(...e){super(...e),Rb(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=jb.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=jb.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[Bb(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 Zb=e=>e,Qb={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>Nb(Nb({},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 jb.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?jb.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Zb},threshold:e=>jb.toVector(e,0)};const Jb=Nb(Nb({},Qb),{},{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=>Jb.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]]}}),ex={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 tx="undefined"!=typeof window&&window.document&&window.document.createElement;function nx(){return tx&&"ontouchstart"in window}const rx={isBrowser:tx,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:nx(),touchscreen:nx()||tx&&window.navigator.maxTouchPoints>1,pointer:tx&&"onpointerdown"in window,pointerLock:tx&&"exitPointerLock"in window.document},ox={mouse:0,touch:0,pen:8},ix=Nb(Nb({},Jb),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&rx.pointerLock,rx.touch&&n?"touch":this.pointerLock?"mouse":rx.pointer&&!o?"pointer":rx.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,rx.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=jb.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(jb.toVector(e)),distance:this.transform(jb.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?Nb(Nb({},ox),e):ox,keyboardDisplacement:(e=10)=>e});Nb(Nb({},Qb),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!rx.touch&&rx.gesture)return"gesture";if(rx.touch&&r)return"touch";if(rx.touchscreen){if(rx.pointer)return"pointer";if(rx.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=qb(Ub(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=qb(Ub(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 jb.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});Nb(Nb({},Jb),{},{mouseOnly:(e=!0)=>e});Nb(Nb({},Jb),{},{mouseOnly:(e=!0)=>e});const sx=new Map,ax=new Map;const lx={key:"drag",engine:class extends Xb{constructor(...e){super(...e),Rb(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=Jb.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=Hb(e),n._pointerActive=!0,this.computeValues(Wb(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Bb(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;const r=Hb(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Wb(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=jb.sub(o,t._values),this.computeValues(o)),jb.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=Hb(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._delta,[o,i]=t._movement,[s,a]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){const n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>s&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>a&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(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=ex[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,jb.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in ex&&(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:ix};function cx(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 ux={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(rx.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},dx=["target","eventOptions","window","enabled","transform"];function px(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]=px(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class fx{constructor(e,t){Rb(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,s=function(e,t=""){const n=Mb[e];return e+(n&&n[t]||t)}(t,n),a=Nb(Nb({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(s,r,a);const l=()=>{e.removeEventListener(s,r,a),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class hx{constructor(){Rb(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 mx{constructor(e){Rb(this,"gestures",new Set),Rb(this,"_targetEventStore",new fx(this)),Rb(this,"gestureEventStores",{}),Rb(this,"gestureTimeoutStores",{}),Rb(this,"handlers",{}),Rb(this,"config",{}),Rb(this,"pointerIds",new Set),Rb(this,"touchIds",new Set),Rb(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&gx(e,"drag");t.wheel&&gx(e,"wheel");t.scroll&&gx(e,"scroll");t.move&&gx(e,"move");t.pinch&&gx(e,"pinch");t.hover&&gx(e,"hover")}(this,e)}setEventIds(e){return Fb(e)?(this.touchIds=new Set($b(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:s,enabled:a,transform:l}=r,c=cx(r,dx);if(n.shared=px({target:o,eventOptions:i,window:s,enabled:a,transform:l},ux),t){const e=ax.get(t);n[t]=px(Nb({shared:n.shared},c),e)}else for(const e in c){const t=ax.get(e);t&&(n[e]=px(Nb({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=vx(n,o.eventOptions,!!r);if(o.enabled){new(sx.get(t))(this,e,t).bind(i)}}const o=vx(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Nb(Nb({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Kb(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Lb(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function gx(e,t){e.gestures.add(t),e.gestureEventStores[t]=new fx(e,t),e.gestureTimeoutStores[t]=new hx}const vx=(e,t,n)=>(r,o,i,s={},a=!1)=>{var l,c;const u=null!==(l=s.capture)&&void 0!==l?l:t.capture,d=null!==(c=s.passive)&&void 0!==c?c:t.passive;let p=a?r:Ob(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function bx(e,t={},n,r){const o=$().useMemo((()=>new mx(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),$().useEffect(o.effect.bind(o)),$().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}function xx(e,t){var n;return n=lx,sx.set(n.key,n.engine),ax.set(n.key,n.resolver),bx({drag:e},t||{},"drag")}const yx=e=>e,wx={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},_x="CHANGE",Sx="COMMIT",Cx="CONTROL",kx="DRAG_END",jx="DRAG_START",Ex="DRAG",Px="INVALIDATE",Tx="PRESS_DOWN",Rx="PRESS_ENTER",Ix="PRESS_UP",Nx="RESET";function Mx(e=yx,t=wx,n){const[r,o]=(0,c.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case Cx:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case Ix:case Tx:n.isDirty=!1;break;case jx:n.isDragging=!0;break;case kx:n.isDragging=!1;break;case _x:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case Sx:n.value=t.payload.value,n.isDirty=!1;break;case Nx:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case Px:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=wx){const{value:t}=e;return{...wx,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},a=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},u=s(_x),d=s(Nx),p=s(Sx),f=l(jx),h=l(Ex),m=l(kx),g=a(Ix),v=a(Tx),b=a(Rx),x=(0,c.useRef)(r),y=(0,c.useRef)({value:t.value,onChangeHandler:n});return(0,c.useLayoutEffect)((()=>{x.current=r,y.current={value:t.value,onChangeHandler:n}})),(0,c.useLayoutEffect)((()=>{var e;void 0===x.current._event||r.value===y.current.value||r.isDirty||y.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:x.current._event})}),[r.value,r.isDirty]),(0,c.useLayoutEffect)((()=>{var e;t.value===x.current.value||x.current.isDirty||o({type:Cx,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:u,commit:p,dispatch:o,drag:h,dragEnd:m,dragStart:f,invalidate:(e,t)=>o({type:Px,payload:{error:e,event:t}}),pressDown:v,pressEnter:b,pressUp:g,reset:d,state:r}}function Ax(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||229===t.keyCode||e(t)}}const Dx=()=>{};const Ox=(0,c.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isPressEnterToChange:i=!1,onBlur:s=Dx,onChange:a=Dx,onDrag:l=Dx,onDragEnd:u=Dx,onDragStart:d=Dx,onKeyDown:p=Dx,onValidate:f=Dx,size:h="default",stateReducer:m=(e=>e),value:g,type:v,...b},x){const{state:y,change:w,commit:_,drag:S,dragEnd:C,dragStart:k,invalidate:j,pressDown:E,pressEnter:P,pressUp:T,reset:R}=Mx(m,{isDragEnabled:o,value:g,isPressEnterToChange:i},a),{value:I,isDragging:N,isDirty:M}=y,A=(0,c.useRef)(!1),D=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,c.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(N,t),O=e=>{const t=e.currentTarget.value;try{f(t),_(t,e)}catch(t){j(t,e)}},z=xx((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return u(e),void C(e);l(e),S(e),N||(d(e),k(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}}),L=o?z():{};let F;return"number"===v&&(F=e=>{b.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,wt.jsx)(fb,{...b,...L,className:"components-input-control__input",disabled:e,dragCursor:D,isDragging:N,id:r,onBlur:e=>{s(e),!M&&e.target.validity.valid||(A.current=!0,O(e))},onChange:e=>{const t=e.target.value;w(t,e)},onKeyDown:Ax((e=>{const{key:t}=e;switch(p(e),t){case"ArrowUp":T(e);break;case"ArrowDown":E(e);break;case"Enter":P(e),i&&(e.preventDefault(),O(e));break;case"Escape":i&&M&&(e.preventDefault(),R(g,e))}})),onMouseDown:F,ref:x,inputSize:h,value:null!=I?I:"",type:v})})),zx=Ox,Lx={"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 Fx(e){var t;return null!==(t=Lx[e])&&void 0!==t?t:""}const Bx={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Vx=cl("div",{target:"ej5x27r4"})("font-family:",Fx("default.fontFamily"),";font-size:",Fx("default.fontSize"),";",Bx,";"),$x=({__nextHasNoMarginBottom:e=!1})=>!e&&bl("margin-bottom:",wl(2),";",""),Hx=cl("div",{target:"ej5x27r3"})($x," .components-panel__row &{margin-bottom:inherit;}"),Wx=bl(Zv,";display:block;margin-bottom:",wl(2),";padding:0;",""),Ux=cl("label",{target:"ej5x27r2"})(Wx,";");var Gx={name:"11yad0w",styles:"margin-bottom:revert"};const Kx=({__nextHasNoMarginBottom:e=!1})=>!e&&Gx,qx=cl("p",{target:"ej5x27r1"})("margin-top:",wl(2),";margin-bottom:0;font-size:",Fx("helpText.fontSize"),";font-style:normal;color:",jl.gray[700],";",Kx,";"),Yx=cl("span",{target:"ej5x27r0"})(Wx,";"),Xx=(0,c.forwardRef)(((e,t)=>{const{className:n,children:r,...o}=e;return(0,wt.jsx)(Yx,{ref:t,...o,className:s("components-base-control__label",n),children:r})})),Zx=Object.assign(Za((e=>{const{__nextHasNoMarginBottom:t=!1,__associatedWPComponentName:n="BaseControl",id:r,label:o,hideLabelFromVision:i=!1,help:s,className:a,children:l}=Ya(e,"BaseControl");return t||Fi()(`Bottom margin styles for wp.components.${n}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),(0,wt.jsxs)(Vx,{className:a,children:[(0,wt.jsxs)(Hx,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[o&&r&&(i?(0,wt.jsx)(pl,{as:"label",htmlFor:r,children:o}):(0,wt.jsx)(Ux,{className:"components-base-control__label",htmlFor:r,children:o})),o&&!r&&(i?(0,wt.jsx)(pl,{as:"label",children:o}):(0,wt.jsx)(Xx,{children:o})),l]}),!!s&&(0,wt.jsx)(qx,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:s})]})}),"BaseControl"),{VisualLabel:Xx}),Qx=Zx,Jx=()=>{};const ey=(0,c.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:a=!1,help:u,hideLabelFromVision:d=!1,id:p,isPressEnterToChange:f=!1,label:h,labelPosition:m="top",onChange:g=Jx,onValidate:v=Jx,onKeyDown:b=Jx,prefix:x,size:y="default",style:w,suffix:_,value:S,...C}=_b(e),k=function(e){const t=(0,l.useInstanceId)(ey);return e||`inspector-input-control-${t}`}(p),j=s("components-input-control",i),E=function(e){const t=(0,c.useRef)(e.value),[n,r]=(0,c.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,c.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:S,onBlur:C.onBlur,onChange:g}),P=u?{"aria-describedby":`${k}__help`}:{};return(0,wt.jsx)(Qx,{className:j,help:u,id:k,__nextHasNoMarginBottom:!0,children:(0,wt.jsx)(kb,{__next40pxDefaultSize:n,__unstableInputWidth:o,disabled:a,gap:3,hideLabelFromVision:d,id:k,justify:"left",label:h,labelPosition:m,prefix:x,size:y,style:w,suffix:_,children:(0,wt.jsx)(zx,{...C,...P,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:k,isPressEnterToChange:f,onKeyDown:b,onValidate:v,paddingInlineStart:x?wl(1):void 0,paddingInlineEnd:_?wl(1):void 0,ref:t,size:y,stateReducer:r,...E})})})})),ty=ey;const ny=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,wt.jsx)("span",{className:i,style:s,...o})};const ry=function({icon:e=null,size:t=("string"==typeof e?20:24),...r}){if("string"==typeof e)return(0,wt.jsx)(ny,{icon:e,size:t,...r});if((0,c.isValidElement)(e)&&ny===e.type)return(0,c.cloneElement)(e,{...r});if("function"==typeof e)return(0,c.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,wt.jsx)(n.SVG,{...o})}return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,{size:t,...r}):e},oy=["onMouseDown","onClick"];const iy=(0,c.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,accessibleWhenDisabled:r,isBusy:o,isDestructive:i,className:a,disabled:c,icon:u,iconPosition:d="left",iconSize:p,showTooltip:f,tooltipPosition:h,shortcut:m,label:g,children:v,size:b="default",text:x,variant:y,description:w,..._}=function({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:i,isPressed:s,isSmall:a,size:l,variant:c,describedBy:u,...d}){let p=l,f=c;const h={accessibleWhenDisabled:e,"aria-pressed":s,description:u};var m,g,v,b,x,y;return a&&(null!==(m=p)&&void 0!==m||(p="small")),n&&(null!==(g=f)&&void 0!==g||(f="primary")),o&&(null!==(v=f)&&void 0!==v||(f="tertiary")),r&&(null!==(b=f)&&void 0!==b||(f="secondary")),t&&(Fi()("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(x=f)&&void 0!==x||(f="secondary")),i&&(null!==(y=f)&&void 0!==y||(f="link")),{...h,...d,size:p,variant:f}}(e),{href:S,target:C,"aria-checked":k,"aria-pressed":j,"aria-selected":E,...P}="href"in _?_:{href:void 0,target:void 0,..._},T=(0,l.useInstanceId)(iy,"components-button__description"),R="string"==typeof v&&!!v||Array.isArray(v)&&v?.[0]&&null!==v[0]&&"components-tooltip"!==v?.[0]?.props?.className,I=s("components-button",a,{"is-next-40px-default-size":n,"is-secondary":"secondary"===y,"is-primary":"primary"===y,"is-small":"small"===b,"is-compact":"compact"===b,"is-tertiary":"tertiary"===y,"is-pressed":[!0,"true","mixed"].includes(j),"is-pressed-mixed":"mixed"===j,"is-busy":o,"is-link":"link"===y,"is-destructive":i,"has-text":!!u&&(R||x),"has-icon":!!u}),N=c&&!r,M=void 0===S||c?"button":"a",A="button"===M?{type:"button",disabled:N,"aria-checked":k,"aria-pressed":j,"aria-selected":E}:{},D="a"===M?{href:S,target:C}:{},O={};if(c&&r){A["aria-disabled"]=!0,D["aria-disabled"]=!0;for(const e of oy)O[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const z=!N&&(f&&!!g||!!m||!!g&&!v?.length&&!1!==f),L=w?T:void 0,F=P["aria-describedby"]||L,B={className:I,"aria-label":P["aria-label"]||g,"aria-describedby":F,ref:t},V=(0,wt.jsxs)(wt.Fragment,{children:[u&&"left"===d&&(0,wt.jsx)(ry,{icon:u,size:p}),x&&(0,wt.jsx)(wt.Fragment,{children:x}),v,u&&"right"===d&&(0,wt.jsx)(ry,{icon:u,size:p})]}),$="a"===M?(0,wt.jsx)("a",{...D,...P,...O,...B,children:V}):(0,wt.jsx)("button",{...A,...P,...O,...B,children:V}),H=z?{text:v?.length&&w?w:g,shortcut:m,placement:h&&$i(h)}:{};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Yi,{...H,children:$}),w&&(0,wt.jsx)(pl,{children:(0,wt.jsx)("span",{id:L,children:w})})]})})),sy=iy;var ay={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 ly=({hideHTMLArrows:e})=>e?ay:"",cy=cl(ty,{target:"ep09it41"})(ly,";"),uy=cl(sy,{target:"ep09it40"})("&&&&&{color:",jl.theme.accent,";}"),dy={smallSpinButtons:bl("width:",wl(5),";min-width:",wl(5),";height:",wl(5),";","")};function py(e){const t=Number(e);return isNaN(t)?0:t}function fy(...e){return e.reduce(((e,t)=>e+py(t)),0)}function hy(e,t,n){const r=py(e);return Math.max(t,Math.min(r,n))}function my(e=0,t=1/0,n=1/0,r=1){const o=py(e),i=py(r),s=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),a=hy(Math.round(o/i)*i,t,n);return s?py(a.toFixed(s)):a}const gy={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"}},vy={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 by(e){return"string"==typeof e?[e]:c.Children.toArray(e).filter((e=>(0,c.isValidElement)(e)))}function xy(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Ya(e,"HStack"),s=function(e,t="row"){if(!qg(e))return{};const n="column"===t?vy:gy;return e in n?n[e]:{align:e}}(t,r),a=by(n).map(((e,t)=>{if(el(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,wt.jsx)(Gg,{isBlock:!0,...n.props},r)}return e})),l={children:a,direction:r,justify:"center",...s,...i,gap:o},{isColumn:c,...u}=Pg(l);return u}const yy=Xa((function(e,t){const n=xy(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"HStack"),wy=()=>{};const _y=(0,c.forwardRef)((function(e,t){const{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,spinControls:u=(i?"none":"native"),isDragEnabled:d=!0,isShiftStepEnabled:p=!0,label:f,max:h=1/0,min:m=-1/0,required:g=!1,shiftStep:v=10,step:b=1,spinFactor:x=1,type:y="number",value:w,size:_="default",suffix:S,onChange:C=wy,...k}=_b(e);i&&Fi()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const j=(0,c.useRef)(),E=(0,l.useMergeRefs)([j,t]),P="any"===b,T=P?1:Yg(b),R=Yg(x)*T,I=my(0,m,h,T),N=(e,t)=>P?""+Math.min(h,Math.max(m,Yg(e))):""+my(e,m,h,null!=t?t:T),M="number"===y?"off":void 0,A=s("components-number-control",r),D=qa()("small"===_&&dy.smallSpinButtons),O=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&p,o=r?Yg(v)*R:R;let i=function(e){const t=""===e;return!qg(e)||t}(e)?I:e;return"up"===t?i=fy(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=py(t);return 0===n?r:e-r}),0)}(i,o)),N(i,r?o:void 0)},z=e=>t=>C(String(O(w,e,t)),{event:{...t,target:j.current}});return(0,wt.jsx)(cy,{autoComplete:M,inputMode:"numeric",...k,className:A,dragDirection:o,hideHTMLArrows:"native"!==u,isDragEnabled:d,label:f,max:h,min:m,ref:E,required:g,step:b,type:y,value:w,__unstableStateReducer:(e,t)=>{var r;const i=((e,t)=>{const n={...e},{type:r,payload:i}=t,s=i.event,l=n.value;if(r!==Ix&&r!==Tx||(n.value=O(l,r===Ix?"up":"down",s)),r===Ex&&d){const[e,t]=i.delta,r=i.shiftKey&&p,s=r?Yg(v)*R:R;let c,u;switch(o){case"n":u=t,c=-1;break;case"e":u=e,c=(0,a.isRTL)()?-1:1;break;case"s":u=t,c=1;break;case"w":u=e,c=(0,a.isRTL)()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const e=u*s*c;n.value=N(fy(l,e),r?s:void 0)}}if(r===Rx||r===Sx){const e=!1===g&&""===l;n.value=e?l:N(l)}return n})(e,t);return null!==(r=n?.(i,t))&&void 0!==r?r:i},size:_,suffix:"custom"===u?(0,wt.jsxs)(wt.Fragment,{children:[S,(0,wt.jsx)(Hg,{marginBottom:0,marginRight:2,children:(0,wt.jsxs)(yy,{spacing:1,children:[(0,wt.jsx)(uy,{className:D,icon:Wg,size:"small",label:(0,a.__)("Increment"),onClick:z("up")}),(0,wt.jsx)(uy,{className:D,icon:Ug,size:"small",label:(0,a.__)("Decrement"),onClick:z("down")})]})})]}):S,onChange:C})})),Sy=_y;const Cy=cl("div",{target:"eln3bjz3"})("border-radius:",Tl.radiusRound,";border:",Tl.borderWidth," solid ",jl.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),ky=cl("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),jy=cl("div",{target:"eln3bjz1"})("background:",jl.theme.accent,";border-radius:",Tl.radiusRound,";box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),Ey=cl(Xv,{target:"eln3bjz0"})("color:",jl.theme.accent,";margin-right:",wl(3),";");const Py=function({value:e,onChange:t,...n}){const r=(0,c.useRef)(null),o=(0,c.useRef)(),i=(0,c.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,s=Math.atan2(o,i),a=Math.round(s*(180/Math.PI))+90;if(a<0)return 360+a;return a}(n,r,e.clientX,e.clientY))}},{startDrag:a,isDragging:u}=(0,l.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,c.useEffect)((()=>{u?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[u]),(0,wt.jsx)(Cy,{ref:r,onMouseDown:a,className:"components-angle-picker-control__angle-circle",...n,children:(0,wt.jsx)(ky,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1,children:(0,wt.jsx)(jy,{className:"components-angle-picker-control__angle-circle-indicator"})})})};const Ty=(0,c.forwardRef)((function(e,t){const{className:n,label:r=(0,a.__)("Angle"),onChange:o,value:i,...l}=e,c=s("components-angle-picker-control",n),u=(0,wt.jsx)(Ey,{children:"°"}),[d,p]=(0,a.isRTL)()?[u,null]:[null,u];return(0,wt.jsxs)(Ig,{...l,ref:t,className:c,gap:2,children:[(0,wt.jsx)(Mg,{children:(0,wt.jsx)(Sy,{label:r,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===o)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;o(t)},size:"__unstable-large",step:"1",value:i,spinControls:"none",prefix:d,suffix:p})}),(0,wt.jsx)(Hg,{marginBottom:"1",marginTop:"auto",children:(0,wt.jsx)(Py,{"aria-hidden":"true",value:i,onChange:o})})]})}));var Ry=o(9681),Iy=o.n(Ry);const Ny=window.wp.richText,My=window.wp.a11y,Ay=window.wp.keycodes,Dy=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),Oy=e=>Iy()(e).toLocaleLowerCase().replace(Dy,"-");function zy(e){var t;let n=null!==(t=e?.toString?.())&&void 0!==t?t:"";return n=n.replace(/['\u2019]/,""),ms(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 Ly(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Fy(e){return t=>{const[n,r]=(0,c.useState)([]);return(0,c.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,l.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)}))),s=new RegExp("(?:\\b|\\s|^)"+Ly(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:s=[]}=i;if("string"==typeof i.label&&(s=[...s,i.label]),s.some((t=>e.test(Iy()(t))))&&(r.push(i),r.length===n))break}return r}(s,i))}));return o}),o?250:0),s=i();return()=>{i.cancel(),s&&(s.canceled=!0)}}),[t]),[n]}}const By=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?yi({element:n.current,padding:r}).fn(t):{}:n?yi({element:n,padding:r}).fn(t):{};var o}});var Vy="undefined"!=typeof document?B.useLayoutEffect:B.useEffect;function $y(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(!$y(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)&&!$y(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Hy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wy(e,t){const n=Hy(e);return Math.round(t*n)/n}function Uy(e){const t=B.useRef(e);return Vy((()=>{t.current=e})),t}const Gy=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});let Ky=0;function qy(e){const t=document.scrollingElement||document.body;e&&(Ky=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Ky)}let Yy=0;const Xy=function(){return(0,c.useEffect)((()=>(0===Yy&&qy(!0),++Yy,()=>{1===Yy&&qy(!1),--Yy})),[]),null},Zy={slots:(0,l.observableMap)(),fills:(0,l.observableMap)(),registerSlot:()=>{},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},Qy=(0,c.createContext)(Zy);function Jy(e){const t=(0,c.useContext)(Qy);return{...(0,l.useObservableValue)(t.slots,e),...(0,c.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 ew={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},tw=(0,c.createContext)(ew),nw=e=>{const{getSlot:t,subscribe:n}=(0,c.useContext)(tw);return(0,c.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function rw({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,c.useContext)(tw),o=nw(e),i=(0,c.useRef)({name:e,children:t});return(0,c.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,c.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,c.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function ow(e){return"function"==typeof e}class iw extends c.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:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=ow(e.children)?e.children(r):e.children;return c.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,c.cloneElement)(e,{key:n})}))})).filter((e=>!(0,c.isEmptyElement)(e)));return(0,wt.jsx)(wt.Fragment,{children:ow(t)?t(i):i})}}const sw=e=>(0,wt.jsx)(tw.Consumer,{children:({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,wt.jsx)(iw,{...e,registerSlot:t,unregisterSlot:n,getFills:r})}),aw={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let lw;const cw=new Uint8Array(16);function uw(){if(!lw&&(lw="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lw))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lw(cw)}const dw=[];for(let e=0;e<256;++e)dw.push((e+256).toString(16).slice(1));function pw(e,t=0){return dw[e[t+0]]+dw[e[t+1]]+dw[e[t+2]]+dw[e[t+3]]+"-"+dw[e[t+4]]+dw[e[t+5]]+"-"+dw[e[t+6]]+dw[e[t+7]]+"-"+dw[e[t+8]]+dw[e[t+9]]+"-"+dw[e[t+10]]+dw[e[t+11]]+dw[e[t+12]]+dw[e[t+13]]+dw[e[t+14]]+dw[e[t+15]]}const fw=function(e,t,n){if(aw.randomUUID&&!t&&!e)return aw.randomUUID();const r=(e=e||{}).random||(e.rng||uw)();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 pw(r)},hw=new Set,mw=new WeakMap;function gw(e){const{children:t,document:n}=e;if(!n)return null;const r=(e=>{if(mw.has(e))return mw.get(e);let t=fw().replace(/[0-9]/g,"");for(;hw.has(t);)t=fw().replace(/[0-9]/g,"");hw.add(t);const n=xa({container:e,key:t});return mw.set(e,n),n})(n.head);return(0,wt.jsx)(Oa,{value:r,children:t})}const vw=gw;function bw(e){var t;const{name:n,children:r}=e,{registerFill:o,unregisterFill:i,...s}=Jy(n),a=function(){const[,e]=(0,c.useState)({}),t=(0,c.useRef)(!0);return(0,c.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),l=(0,c.useRef)({rerender:a});if((0,c.useEffect)((()=>(o(l),()=>{i(l)})),[o,i]),!s.ref||!s.ref.current)return null;const u=(0,wt.jsx)(vw,{document:s.ref.current.ownerDocument,children:"function"==typeof r?r(null!==(t=s.fillProps)&&void 0!==t?t:{}):r});return(0,c.createPortal)(u,s.ref.current)}const xw=(0,c.forwardRef)((function(e,t){const{name:n,fillProps:r={},as:o,children:i,...s}=e,{registerSlot:a,unregisterSlot:u,...d}=(0,c.useContext)(Qy),p=(0,c.useRef)(null);return(0,c.useLayoutEffect)((()=>(a(n,p,r),()=>{u(n,p)})),[a,u,n]),(0,c.useLayoutEffect)((()=>{d.updateSlot(n,r)})),(0,wt.jsx)(dl,{as:o,ref:(0,l.useMergeRefs)([t,p]),...s})})),yw=window.wp.isShallowEqual;var ww=o.n(yw);function _w(){const e=(0,l.observableMap)(),t=(0,l.observableMap)();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,{...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}})},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ww()(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,[...t.get(e)||[],n])},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,r.filter((e=>e!==n)))}}}function Sw({children:e}){const[t]=(0,c.useState)(_w);return(0,wt.jsx)(Qy.Provider,{value:t,children:e})}function Cw(){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 kw=function({children:e}){const[t]=(0,c.useState)(Cw);return(0,wt.jsx)(tw.Provider,{value:t,children:e})};function jw(e){return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(rw,{...e}),(0,wt.jsx)(bw,{...e})]})}const Ew=(0,c.forwardRef)((function(e,t){const{bubblesVirtually:n,...r}=e;return n?(0,wt.jsx)(xw,{...r,ref:t}):(0,wt.jsx)(sw,{...r})}));function Pw({children:e,passthrough:t=!1}){return!(0,c.useContext)(Qy).isDefault&&t?(0,wt.jsx)(wt.Fragment,{children:e}):(0,wt.jsx)(kw,{children:(0,wt.jsx)(Sw,{children:e})})}function Tw(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,wt.jsx)(jw,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,wt.jsx)(Ew,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}Pw.displayName="SlotFillProvider";const Rw="Popover",Iw=()=>(0,wt.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[(0,wt.jsx)(n.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,wt.jsx)(n.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),Nw=(0,c.createContext)(void 0),Mw="components-popover__fallback-container",Aw=Xa(((e,t)=>{const{animate:n=!0,headerTitle:r,constrainTabbing:o,onClose:i,children:a,className:u,noArrow:d=!0,position:p,placement:f="bottom-start",offset:h=0,focusOnMount:m="firstElement",anchor:g,expandOnMobile:v,onFocusOutside:b,__unstableSlotName:x=Rw,flip:y=!0,resize:w=!0,shift:_=!1,inline:S=!1,variant:C,style:k,__unstableForcePosition:j,anchorRef:E,anchorRect:P,getAnchorRect:T,isAlternate:R,...I}=Ya(e,"Popover");let N=y,M=w;void 0!==j&&(Fi()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and  `resize={ false }`"}),N=!j,M=!j),void 0!==E&&Fi()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==P&&Fi()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&Fi()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const A=R?"toolbar":C;void 0!==R&&Fi()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const D=(0,c.useRef)(null),[O,z]=(0,c.useState)(null),L=(0,c.useCallback)((e=>{z(e)}),[]),F=(0,l.useViewportMatch)("medium","<"),V=v&&F,$=!V&&!d,H=p?$i(p):f,W=[..."overlay"===f?[{name:"overlay",fn:({rects:e})=>e.reference},xi({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`})}})]:[],Ro(h),N&&bi(),M&&xi({apply(e){var t;const{firstElementChild:n}=null!==(t=Q.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),_&&vi({crossAxis:!0,limiter:wi(),padding:1}),By({element:D})],U=(0,c.useContext)(Nw)||x,G=Jy(U);let K;(i||b)&&(K=(e,t)=>{"focus-outside"===e&&b?b(t):i&&i()});const[q,Y]=(0,l.__experimentalUseDialog)({constrainTabbing:o,focusOnMount:m,__unstableOnClose:K,onClose:K}),{x:X,y:Z,refs:Q,strategy:J,update:ee,placement:te,middlewareData:{arrow:ne}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=B.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=B.useState(r);$y(p,r)||f(r);const[h,m]=B.useState(null),[g,v]=B.useState(null),b=B.useCallback((e=>{e!==_.current&&(_.current=e,m(e))}),[]),x=B.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),y=i||h,w=s||g,_=B.useRef(null),S=B.useRef(null),C=B.useRef(u),k=null!=l,j=Uy(l),E=Uy(o),P=B.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};E.current&&(e.platform=E.current),_i(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!$y(C.current,t)&&(C.current=t,Or.flushSync((()=>{d(t)})))}))}),[p,t,n,E]);Vy((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const T=B.useRef(!1);Vy((()=>(T.current=!0,()=>{T.current=!1})),[]),Vy((()=>{if(y&&(_.current=y),w&&(S.current=w),y&&w){if(j.current)return j.current(y,w,P);P()}}),[y,w,P,j,k]);const R=B.useMemo((()=>({reference:_,floating:S,setReference:b,setFloating:x})),[b,x]),I=B.useMemo((()=>({reference:y,floating:w})),[y,w]),N=B.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=Wy(I.floating,u.x),r=Wy(I.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...Hy(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,I.floating,u.x,u.y]);return B.useMemo((()=>({...u,update:P,refs:R,elements:I,floatingStyles:N})),[u,P,R,I,N])}({placement:"overlay"===H?void 0:H,middleware:W,whileElementsMounted:(e,t,n)=>gi(e,t,n,{layoutShift:!1,animationFrame:!0})}),re=(0,c.useCallback)((e=>{D.current=e,ee()}),[ee]),oe=E?.top,ie=E?.bottom,se=E?.startContainer,ae=E?.current;(0,c.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let s=null;return e?s=e:function(e){return!!e?.top}(t)?s={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)?s=t.current:t?s=t:n?s={getBoundingClientRect:()=>n}:r?s={getBoundingClientRect(){var e,t,n,i;const s=r(o);return new window.DOMRect(null!==(e=s.x)&&void 0!==e?e:s.left,null!==(t=s.y)&&void 0!==t?t:s.top,null!==(n=s.width)&&void 0!==n?n:s.right-s.left,null!==(i=s.height)&&void 0!==i?i:s.bottom-s.top)}}:o&&(s=o.parentElement),null!==(i=s)&&void 0!==i?i:null})({anchor:g,anchorRef:E,anchorRect:P,getAnchorRect:T,fallbackReferenceElement:O});Q.setReference(e)}),[g,E,oe,ie,se,ae,P,T,O,Q]);const le=(0,l.useMergeRefs)([Q.setFloating,q,t]),ce=V?void 0:{position:J,top:0,left:0,x:Wi(X),y:Wi(Z)},ue=(0,l.useReducedMotion)(),de=n&&!V&&!ue,[pe,fe]=(0,c.useState)(!1),{style:he,...me}=(0,c.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Hi[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]}}})(te)),[te]),ge=de?{style:{...k,...he,...ce},onAnimationComplete:()=>fe(!0),...me}:{animate:!1,style:{...k,...ce}},ve=(!de||pe)&&null!==X&&null!==Z;let be=(0,wt.jsxs)(dg.div,{className:s(u,{"is-expanded":V,"is-positioned":ve,[`is-${"toolbar"===A?"alternate":A}`]:A}),...ge,...I,ref:le,...Y,tabIndex:-1,children:[V&&(0,wt.jsx)(Xy,{}),V&&(0,wt.jsxs)("div",{className:"components-popover__header",children:[(0,wt.jsx)("span",{className:"components-popover__header-title",children:r}),(0,wt.jsx)(sy,{className:"components-popover__close",icon:Gy,onClick:i})]}),(0,wt.jsx)("div",{className:"components-popover__content",children:a}),$&&(0,wt.jsx)("div",{ref:re,className:["components-popover__arrow",`is-${te.split("-")[0]}`].join(" "),style:{left:void 0!==ne?.x&&Number.isFinite(ne.x)?`${ne.x}px`:"",top:void 0!==ne?.y&&Number.isFinite(ne.y)?`${ne.y}px`:""},children:(0,wt.jsx)(Iw,{})})]});const xe=G.ref&&!S,ye=E||P||g;return xe?be=(0,wt.jsx)(jw,{name:U,children:be}):S||(be=(0,c.createPortal)((0,wt.jsx)(gw,{document,children:be}),(()=>{let e=document.body.querySelector("."+Mw);return e||(e=document.createElement("div"),e.className=Mw,document.body.append(e)),e})())),ye?be:(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)("span",{ref:L}),be]})}),"Popover");Aw.Slot=(0,c.forwardRef)((function({name:e=Rw},t){return(0,wt.jsx)(Ew,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),Aw.__unstableSlotNameProvider=Nw.Provider;const Dw=Aw;function Ow({items:e,onSelect:t,selectedIndex:n,instanceId:r,listBoxId:o,className:i,Component:a="div"}){return(0,wt.jsx)(a,{id:o,role:"listbox",className:"components-autocomplete__results",children:e.map(((e,o)=>(0,wt.jsx)(sy,{id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":o===n,accessibleWhenDisabled:!0,disabled:e.isDisabled,className:s("components-autocomplete__result",i,{"is-selected":o===n}),variant:o===n?"primary":void 0,onClick:()=>t(e),children:e.label},e.key)))})}function zw(e){var t;const n=null!==(t=e.useItems)&&void 0!==t?t:Fy(e);return function({filterValue:e,instanceId:t,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:u,onReset:d,reset:p,contentRef:f}){const[h]=n(e),m=(0,Ny.useAnchor)({editableContentElement:f.current}),[g,v]=(0,c.useState)(!1),b=(0,c.useRef)(null),x=(0,l.useMergeRefs)([b,(0,l.useRefEffect)((e=>{f.current&&v(e.ownerDocument!==f.current.ownerDocument)}),[f])]);var y,w;y=b,w=p,(0,c.useEffect)((()=>{const e=e=>{y.current&&!y.current.contains(e.target)&&w(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[w]);const _=(0,l.useDebounce)(My.speak,500);return(0,c.useLayoutEffect)((()=>{s(h),function(t){_&&(t.length?_(e?(0,a.sprintf)((0,a._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,a.sprintf)((0,a._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"):_((0,a.__)("No results."),"assertive"))}(h)}),[h]),0===h.length?null:(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Dw,{focusOnMount:!1,onClose:d,placement:"top-start",className:"components-autocomplete__popover",anchor:m,ref:x,children:(0,wt.jsx)(Ow,{items:h,onSelect:u,selectedIndex:i,instanceId:t,listBoxId:r,className:o})}),f.current&&g&&(0,Or.createPortal)((0,wt.jsx)(Ow,{items:h,onSelect:u,selectedIndex:i,instanceId:t,listBoxId:r,className:o,Component:pl}),f.current.ownerDocument.body)]})}}const Lw=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(Lw).join("");if("props"in e)return Lw(e.props.children)}return""},Fw=[];function Bw({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,l.useInstanceId)(Bw),[s,a]=(0,c.useState)(0),[u,d]=(0,c.useState)(Fw),[p,f]=(0,c.useState)(""),[h,m]=(0,c.useState)(null),[g,v]=(0,c.useState)(null),b=(0,c.useRef)(!1);function x(r){const{getOptionCompletion:o}=h||{};if(!r.isDisabled){if(o){const i=o(r.value,p),s=(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"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===h)return;const r=e.start,o=r-h.triggerPrefix.length-p.length,i=(0,Ny.create)({html:(0,c.renderToString)(n)});t((0,Ny.insert)(e,i,o,r))}(s.value)}y()}}function y(){a(0),d(Fw),f(""),m(null),v(null)}const w=(0,c.useMemo)((()=>(0,Ny.isCollapsed)(e)?(0,Ny.getTextContent)((0,Ny.slice)(e,0)):""),[e]);(0,c.useEffect)((()=>{if(!w)return void(h&&y());const t=r.reduce(((e,t)=>w.lastIndexOf(t.triggerPrefix)>(null!==e?w.lastIndexOf(e.triggerPrefix):-1)?t:e),null);if(!t)return void(h&&y());const{allowContext:n,triggerPrefix:o}=t,i=w.lastIndexOf(o),s=w.slice(i+o.length);if(s.length>50)return;const a=0===u.length,l=s.split(/\s/),c=1===l.length,d=b.current&&l.length<=3;if(a&&!d&&!c)return void(h&&y());const p=(0,Ny.getTextContent)((0,Ny.slice)(e,void 0,(0,Ny.getTextContent)(e).length));if(n&&!n(w.slice(0,i),p))return void(h&&y());if(/^\s/.test(s)||/\s\s+$/.test(s))return void(h&&y());if(!/[\u0000-\uFFFF]*$/.test(s))return void(h&&y());const x=Ly(t.triggerPrefix),_=Iy()(w),S=_.slice(_.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${x}([\0-￿]*)$`)),C=S&&S[1];m(t),v((()=>t!==h?zw(t):g)),f(null===C?"":C)}),[w]);const{key:_=""}=u[s]||{},{className:S}=h||{},C=!!h&&u.length>0,k=C?`components-autocomplete-listbox-${i}`:void 0,j=C?`components-autocomplete-item-${i}-${_}`:null,E=void 0!==e.start;return{listBoxId:k,activeId:j,onKeyDown:Ax((function(e){if(b.current="Backspace"===e.key,h&&0!==u.length&&!e.defaultPrevented){switch(e.key){case"ArrowUp":{const e=(0===s?u.length:s)-1;a(e),(0,Ay.isAppleOS)()&&(0,My.speak)(Lw(u[e].label),"assertive");break}case"ArrowDown":{const e=(s+1)%u.length;a(e),(0,Ay.isAppleOS)()&&(0,My.speak)(Lw(u[e].label),"assertive");break}case"Escape":m(null),v(null),e.preventDefault();break;case"Enter":x(u[s]);break;case"ArrowLeft":case"ArrowRight":return void y();default:return}e.preventDefault()}})),popover:E&&g&&(0,wt.jsx)(g,{className:S,filterValue:p,instanceId:i,listBoxId:k,selectedIndex:s,onChangeOptions:function(e){a(e.length===u.length?s:0),d(e)},onSelect:x,value:e,contentRef:o,reset:y})}}function Vw(e){const t=(0,c.useRef)(null),n=(0,c.useRef)(),{record:r}=e,o=function(e){const t=(0,c.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:s,activeId:a,onKeyDown:u}=Bw({...e,contentRef:t});n.current=u;const d=(0,l.useMergeRefs)([t,(0,l.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:d,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":a}:{ref:d}}function $w({children:e,isSelected:t,...n}){const{popover:r,...o}=Bw(n);return(0,wt.jsxs)(wt.Fragment,{children:[e(o),t&&r]})}function Hw(e){const{help:t,id:n,...r}=e,o=(0,l.useInstanceId)(Qx,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{"aria-describedby":`${o}__help`}:{}}}}const Ww=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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"})}),Uw=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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 Gw=bl("",""),Kw={name:"bjn8wh",styles:"position:relative"},qw=e=>{const{color:t=jl.gray[200],style:n="solid",width:r=Tl.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Tl.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Yw={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Xw(e){const{className:t,size:n="default",...r}=Ya(e,"BorderBoxControlLinkedButton"),o=qa();return{...r,className:(0,c.useMemo)((()=>o((e=>bl("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",Bg({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Zw=Xa(((e,t)=>{const{className:n,isLinked:r,...o}=Xw(e),i=r?(0,a.__)("Unlink sides"):(0,a.__)("Link sides");return(0,wt.jsx)(Yi,{text:i,children:(0,wt.jsx)(dl,{className:n,children:(0,wt.jsx)(sy,{...o,size:"small",icon:r?Ww:Uw,iconSize:24,"aria-label":i,ref:t})})})}),"BorderBoxControlLinkedButton");function Qw(e){const{className:t,value:n,size:r="default",...o}=Ya(e,"BorderBoxControlVisualizer"),i=qa(),s=(0,c.useMemo)((()=>i(((e,t)=>bl("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:",qw(e?.top),";border-bottom:",qw(e?.bottom),";",Bg({borderLeft:qw(e?.left)})()," ",Bg({borderRight:qw(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}const Jw=Xa(((e,t)=>{const{value:n,...r}=Qw(e);return(0,wt.jsx)(dl,{...r,ref:t})}),"BorderBoxControlVisualizer"),e_=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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"})}),t_=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M5 11.25h14v1.5H5z"})}),n_=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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"})}),r_=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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"})}),o_=(0,B.createContext)(null),i_=e=>!e.isLayoutDirty&&e.willUpdate(!1);function s_(){const e=new Set,t=new WeakMap,n=()=>e.forEach(i_);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 a_=e=>!0===e,l_=({children:e,id:t,inherit:n=!0})=>{const r=(0,B.useContext)(gc),o=(0,B.useContext)(o_),[i,s]=fg(),a=(0,B.useRef)(null),l=r.id||o;null===a.current&&((e=>a_(!0===e)||"id"===e)(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:a_(n)&&r.group||s_()});const c=(0,B.useMemo)((()=>({...a.current,forceRender:i})),[s]);return(0,wt.jsx)(gc.Provider,{value:c,children:e})};const c_=e=>{const t=bl("border-color:",jl.ui.border,";","");return bl(e&&t," &:hover{border-color:",jl.ui.borderHover,";}&:focus-within{border-color:",jl.ui.borderFocus,";box-shadow:",Tl.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var u_={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},d_={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const p_=e=>({default:d_,"__unstable-large":u_}[e]),f_={name:"7whenc",styles:"display:flex;width:100%"},h_=cl("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function m_(e={}){var t,n=T(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=ht(P(E({},n),{focusLoop:F(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=Ve(P(E({},o.getState()),{value:F(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return P(E(E({},o),i),{setValue:e=>i.setState("value",e)})}function g_(e={}){const[t,n]=et(m_,e);return function(e,t,n){return Je(e=mt(e,t,n),n,"value","setValue"),e}(t,n,e)}var v_=jt([Nt],[Mt]),b_=v_.useContext,x_=(v_.useScopedContext,v_.useProviderContext),y_=(v_.ContextProvider,v_.ScopedContextProvider),w_=kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=x_();return D(n=n||o,!1),r=Ie(r,(e=>(0,wt.jsx)(y_,{value:n,children:e})),[n]),r=v({role:"radiogroup"},r),r=ln(v({store:n},r))})),__=_t((function(e){return Ct("div",w_(e))}));const S_=(0,c.createContext)({}),C_=S_;function k_(e){const t=(0,c.useRef)(!0),n=(0,l.usePrevious)(e),r=(0,c.useRef)(!1);(0,c.useEffect)((()=>{t.current&&(t.current=!1)}),[]);const o=r.current||!t.current&&n!==e;return(0,c.useEffect)((()=>{r.current=o}),[o]),o?{value:null!=e?e:"",defaultValue:void 0}:{value:void 0,defaultValue:e}}const j_=(0,c.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,...u},d){const p=(0,l.useInstanceId)(j_,"toggle-group-control-as-radio-group"),f=s||p,{value:h,defaultValue:m}=k_(i),g=r?e=>{r(null!=e?e:void 0)}:void 0,v=g_({defaultValue:m,value:h,setValue:g,rtl:(0,a.isRTL)()}),b=Qe(v,"value"),x=v.setValue;(0,c.useEffect)((()=>{""===b&&v.setActiveId(void 0)}),[v,b]);const y=(0,c.useMemo)((()=>({activeItemIsNotFirstItem:()=>v.getState().activeId!==v.first(),baseId:f,isBlock:!t,size:o,value:b,setValue:x})),[f,t,v,o,b,x]);return(0,wt.jsx)(C_.Provider,{value:y,children:(0,wt.jsx)(__,{store:v,"aria-label":n,render:(0,wt.jsx)(dl,{}),...u,id:f,ref:d,children:e})})}));function E_({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,c.useState)(o);let a;return a=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,a]}const P_=(0,c.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:s,...a},u){const d=(0,l.useInstanceId)(P_,"toggle-group-control-as-button-group"),p=s||d,{value:f,defaultValue:h}=k_(i),[m,g]=E_({defaultValue:h,value:f,onChange:r}),v=(0,c.useMemo)((()=>({baseId:p,value:m,setValue:g,isBlock:!t,isDeselectable:!0,size:o})),[p,m,g,t,o]);return(0,wt.jsx)(C_.Provider,{value:v,children:(0,wt.jsx)(dl,{"aria-label":n,...a,ref:u,role:"group",children:e})})}));const T_=Xa((function(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:r=!1,className:o,isAdaptiveWidth:i=!1,isBlock:s=!1,isDeselectable:a=!1,label:u,hideLabelFromVision:d=!1,help:p,onChange:f,size:h="default",value:m,children:g,...v}=Ya(e,"ToggleGroupControl"),b=(0,l.useInstanceId)(T_,"toggle-group-control"),x=r&&"default"===h?"__unstable-large":h,y=qa(),w=(0,c.useMemo)((()=>y((({isBlock:e,isDeselectable:t,size:n})=>bl("background:",jl.ui.background,";border:1px solid transparent;border-radius:",Tl.radiusSmall,";display:inline-flex;min-width:0;position:relative;",p_(n)," ",!t&&c_(e),";",""))({isBlock:s,isDeselectable:a,size:x}),s&&f_,o)),[o,y,s,a,x]),_=a?P_:j_;return(0,wt.jsxs)(Qx,{help:p,__nextHasNoMarginBottom:n,__associatedWPComponentName:"ToggleGroupControl",children:[!d&&(0,wt.jsx)(h_,{children:(0,wt.jsx)(Qx.VisualLabel,{children:u})}),(0,wt.jsx)(_,{...v,className:w,isAdaptiveWidth:i,label:u,onChange:f,ref:t,size:x,value:m,children:(0,wt.jsx)(l_,{id:b,children:g})})]})}),"ToggleGroupControl"),R_=T_;var I_="input";var N_=kt((function(e){var t=e,{store:n,name:r,value:o,checked:i}=t,s=x(t,["store","name","value","checked"]);const a=b_();n=n||a;const l=je(s.id),c=(0,B.useRef)(null),u=Qe(n,(e=>null!=i?i:function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(o,null==e?void 0:e.value)));(0,B.useEffect)((()=>{if(!l)return;if(!u)return;(null==n?void 0:n.getState().activeId)===l||null==n||n.setActiveId(l)}),[n,u,l]);const d=s.onChange,p=function(e,t){return"input"===e&&(!t||"radio"===t)}(Ee(c,I_),s.type),f=z(s),[h,m]=Te();(0,B.useEffect)((()=>{const e=c.current;e&&(p||(void 0!==u&&(e.checked=u),void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[h,p,u,r,o]);const g=Se((e=>{if(f)return e.preventDefault(),void e.stopPropagation();p||(e.currentTarget.checked=!0,m()),null==d||d(e),e.defaultPrevented||null==n||n.setValue(o)})),y=s.onClick,w=Se((e=>{null==y||y(e),e.defaultPrevented||p||g(e)})),_=s.onFocus,S=Se((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!p)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(l&&r!==l||g(e))}));return s=b(v({id:l,role:p?void 0:"radio",type:p?"radio":void 0,"aria-checked":u},s),{ref:ke(c,s.ref),onChange:g,onClick:w,onFocus:S}),s=Pn(v({store:n,clickOnEnter:!p},s)),L(v({name:p?r:void 0,value:p?o:void 0,checked:u},s))})),M_=St(_t((function(e){const t=N_(e);return Ct(I_,t)})));const A_=cl("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),D_={name:"82a6rk",styles:"flex:1"},O_=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>bl("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Tl.radiusXSmall,";color:",jl.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",Tl.transitionDurationFast," linear,color ",Tl.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&[disabled]{opacity:0.4;cursor:default;}&:active{background:",Tl.controlBackgroundColor,";}",e&&L_," ",t&&B_({size:r})," ",n&&z_,";",""),z_=bl("color:",jl.white,";&:active{background:transparent;}",""),L_=bl("color:",jl.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",jl.white,",0 0 0 ",Tl.borderWidthFocus," ",jl.theme.accent,";outline:2px solid transparent;}",""),F_=cl("div",{target:"et6ln9s0"})("display:flex;font-size:",Tl.fontSize,";line-height:1;"),B_=({size:e="default"})=>bl("color:",jl.gray[900],";height:",{default:"30px","__unstable-large":"32px"}[e],";aspect-ratio:1;padding-left:0;padding-right:0;",""),V_=bl("background:",jl.gray[900],";border-radius:",Tl.radiusXSmall,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:$_,LabelView:H_}=t,W_={duration:0},U_=({showTooltip:e,text:t,children:n})=>e&&t?(0,wt.jsx)(Yi,{text:t,placement:"top",children:n}):(0,wt.jsx)(wt.Fragment,{children:n});const G_=Xa((function e(t,n){const r=(0,l.useReducedMotion)(),o=(0,c.useContext)(S_),i=Ya({...t,id:(0,l.useInstanceId)(e,o.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:s=!1,isDeselectable:a=!1,size:u="default"}=o,{className:d,isIcon:p=!1,value:f,children:h,showTooltip:m=!1,disabled:g,...v}=i,b=o.value===f,x=qa(),y=(0,c.useMemo)((()=>x(s&&D_)),[x,s]),w=(0,c.useMemo)((()=>x(O_({isDeselectable:a,isIcon:p,isPressed:b,size:u}),d)),[x,a,p,b,u,d]),_=(0,c.useMemo)((()=>x(V_)),[x]),S={...v,className:w,"data-value":f,ref:n};return(0,wt.jsxs)(H_,{className:y,children:[(0,wt.jsx)(U_,{showTooltip:m,text:v["aria-label"],children:a?(0,wt.jsx)("button",{...S,disabled:g,"aria-pressed":b,type:"button",onClick:()=>{a&&b?o.setValue(void 0):o.setValue(f)},children:(0,wt.jsx)($_,{children:h})}):(0,wt.jsx)(M_,{disabled:g,onFocusVisible:()=>{(null===o.value||""===o.value)&&!o.activeItemIsNotFirstItem?.()||o.setValue(f)},render:(0,wt.jsx)("button",{type:"button",...S}),value:f,children:(0,wt.jsx)($_,{children:h})})}),b?(0,wt.jsx)(dg.div,{layout:!0,layoutRoot:!0,children:(0,wt.jsx)(dg.div,{className:_,transition:r?W_:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"})}):null]})}),"ToggleGroupControlOptionBase"),K_=G_;const q_=(0,c.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,wt.jsx)(K_,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t,children:(0,wt.jsx)(ry,{icon:n})})})),Y_=q_,X_=[{label:(0,a.__)("Solid"),icon:t_,value:"solid"},{label:(0,a.__)("Dashed"),icon:n_,value:"dashed"},{label:(0,a.__)("Dotted"),icon:r_,value:"dotted"}];const Z_=Xa((function({onChange:e,...t},n){return(0,wt.jsx)(R_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:t=>{e?.(t)},...t,children:X_.map((e=>(0,wt.jsx)(Y_,{value:e.value,icon:e.icon,label:e.label},e.value)))})}),"BorderControlStylePicker");const Q_=(0,c.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,wt.jsx)("span",{className:s("component-color-indicator",n),style:{background:r},ref:t,...o})}));var J_=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},eS=function(e){return.2126*J_(e.r)+.7152*J_(e.g)+.0722*J_(e.b)};function tS(e){e.prototype.luminance=function(){return e=eS(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,s,a,l,c=t instanceof e?t:new e(t);return i=this.rgba,s=c.toRgb(),n=(a=eS(i))>(l=eS(s))?(a+.05)/(l+.05):(l+.05)/(a+.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)>=(s=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===s?7:"AA"===o&&"large"===s?3:4.5);var n,r,o,i,s}}const nS=Xa(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:a,headerTitle:u,focusOnMount:d,popoverProps:p,onClose:f,onToggle:h,style:m,open:g,defaultOpen:v,position:b,variant:x}=Ya(e,"Dropdown");void 0!==b&&Fi()("`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[y,w]=(0,c.useState)(null),_=(0,c.useRef)(),[S,C]=E_({defaultValue:v,value:g,onChange:h});function k(){f?.(),C(!1)}const j={isOpen:!!S,onToggle:()=>C(!S),onClose:k},E=!!(p?.anchor||p?.anchorRef||p?.getAnchorRect||p?.anchorRect);return(0,wt.jsxs)("div",{className:o,ref:(0,l.useMergeRefs)([_,t,w]),tabIndex:-1,style:m,children:[r(j),S&&(0,wt.jsx)(Dw,{position:b,onClose:k,onFocusOutside:function(){if(!_.current)return;const{ownerDocument:e}=_.current,t=e?.activeElement?.closest('[role="dialog"]');_.current.contains(e.activeElement)||t&&!t.contains(_.current)||k()},expandOnMobile:a,headerTitle:u,focusOnMount:d,offset:13,anchor:E?void 0:y,variant:x,...p,className:s("components-dropdown__content",p?.className,i),children:n(j)})]})}),"Dropdown"),rS=nS;const oS=Xa((function(e,t){const n=Ya(e,"InputControlSuffixWrapper");return(0,wt.jsx)(bb,{...n,ref:t})}),"InputControlSuffixWrapper");const iS=({disabled:e})=>e?bl("color:",jl.ui.textDisabled,";cursor:default;",""):"";var sS={name:"1lv1yo7",styles:"display:inline-flex"};const aS=({variant:e})=>"minimal"===e?sS:"",lS=cl(kb,{target:"e1mv6sxx3"})("color:",jl.theme.foreground,";cursor:pointer;",iS," ",aS,";"),cS=({__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 bl(r[n]||r.default,"","")},uS=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:Tl.controlPaddingX,small:Tl.controlPaddingXSmall,compact:Tl.controlPaddingXSmall,"__unstable-large":Tl.controlPaddingX};e||(r.default=r.compact);const o=r[n]||r.default;return Bg({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})},dS=({multiple:e})=>({overflow:e?"auto":"hidden"});var pS={name:"n1jncc",styles:"field-sizing:content"};const fS=({variant:e})=>"minimal"===e?pS:"",hS=cl("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",lb,";",cS,";",uS,";",dS," ",fS,";}"),mS=cl("div",{target:"e1mv6sxx1"})("margin-inline-end:",wl(-1),";line-height:0;path{fill:currentColor;}"),gS=cl(oS,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Bg({right:0}),";");const vS=(0,c.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,c.cloneElement)(e,{width:t,height:t,...n,ref:r})})),bS=(0,wt.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),xS=()=>(0,wt.jsx)(gS,{children:(0,wt.jsx)(mS,{children:(0,wt.jsx)(vS,{icon:bS,size:18})})});function yS({options:e}){return e.map((({id:e,label:t,value:n,...r},o)=>{const i=e||`${t}-${n}-${o}`;return(0,wt.jsx)("option",{value:n,...r,children:t},i)}))}const wS=(0,c.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:a,label:c,multiple:u=!1,onChange:d,options:p=[],size:f="default",value:h,labelPosition:m="top",children:g,prefix:v,suffix:b,variant:x="default",__next40pxDefaultSize:y=!1,__nextHasNoMarginBottom:w=!1,..._}=_b(e),S=function(e){const t=(0,l.useInstanceId)(wS);return e||`inspector-select-control-${t}`}(a),C=o?`${S}__help`:void 0;if(!p?.length&&!g)return null;const k=s("components-select-control",n);return(0,wt.jsx)(Qx,{help:o,id:S,__nextHasNoMarginBottom:w,__associatedWPComponentName:"SelectControl",children:(0,wt.jsx)(lS,{className:k,disabled:r,hideLabelFromVision:i,id:S,isBorderless:"minimal"===x,label:c,size:f,suffix:b||!u&&(0,wt.jsx)(xS,{}),prefix:v,labelPosition:m,__unstableInputWidth:"minimal"===x?"auto":void 0,variant:x,__next40pxDefaultSize:y,children:(0,wt.jsx)(hS,{..._,__next40pxDefaultSize:y,"aria-describedby":C,className:"components-select-control__input",disabled:r,id:S,multiple:u,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})},ref:t,selectSize:f,value:h,variant:x,children:g||(0,wt.jsx)(yS,{options:p})})})})})),_S=wS,SS={initial:void 0,fallback:""};const CS=function(e,t=SS){const{initial:n,fallback:r}={...SS,...t},[o,i]=(0,c.useState)(e),s=qg(e);return(0,c.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(qg))&&void 0!==n?n:t}([e,o,n],r),(0,c.useCallback)((e=>{s||i(e)}),[s])]};function kS(e,t,n){return"number"!=typeof e?null:parseFloat(`${hy(e,t,n)}`)}const jS=30,ES=()=>bl({height:jS,minHeight:jS},"",""),PS=12,TS=({__next40pxDefaultSize:e})=>!e&&bl({minHeight:jS},"",""),RS=cl("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;",TS,";"),IS=({color:e=jl.ui.borderFocus})=>bl({color:e},"",""),NS=({marks:e,__nextHasNoMarginBottom:t})=>t?"":bl({marginBottom:e?16:void 0},"",""),MS=cl("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",IS,";",ES,";",NS,";"),AS=cl("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",Bg({marginRight:6}),";"),DS=cl("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",Bg({marginLeft:6}),";"),OS=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=jl.ui.backgroundDisabled),bl({background:n},"","")},zS=cl("span",{target:"e1epgpqk10"})("background-color:",jl.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",Tl.radiusFull,";",OS,";"),LS=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=jl.gray[400]),bl({background:n},"","")},FS=cl("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",Tl.radiusFull,";height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",LS,";"),BS=cl("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),VS=({disabled:e,isFilled:t})=>{let n=t?"currentColor":jl.gray[300];return e&&(n=jl.gray[400]),bl({backgroundColor:n},"","")},$S=cl("span",{target:"e1epgpqk7"})("height:",PS,"px;left:0;position:absolute;top:9px;width:1px;",VS,";"),HS=({isFilled:e})=>bl({color:e?jl.gray[700]:jl.gray[300]},"",""),WS=cl("span",{target:"e1epgpqk6"})("color:",jl.gray[300],";font-size:11px;position:absolute;top:22px;white-space:nowrap;",Bg({left:0}),";",Bg({transform:"translateX( -50% )"},{transform:"translateX( 50% )"}),";",HS,";"),US=({disabled:e})=>bl("background-color:",e?jl.gray[400]:jl.theme.accent,";",""),GS=cl("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",PS,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",PS,"px;border-radius:",Tl.radiusRound,";",US,";",Bg({marginLeft:-10}),";",Bg({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),KS=({isFocused:e})=>e?bl("&::before{content:' ';position:absolute;background-color:",jl.theme.accent,";opacity:0.4;border-radius:",Tl.radiusRound,";height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):"",qS=cl("span",{target:"e1epgpqk4"})("align-items:center;border-radius:",Tl.radiusRound,";height:100%;outline:0;position:absolute;user-select:none;width:100%;box-shadow:",Tl.elevationXSmall,";",US,";",KS,";"),YS=cl("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% + ",PS,"px );"),XS=({show:e})=>bl({opacity:e?1:0},"","");var ZS={name:"1cypxip",styles:"top:-80%"},QS={name:"1lr98c4",styles:"bottom:-80%"};const JS=({position:e})=>"bottom"===e?QS:ZS,eC=cl("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:",Tl.radiusSmall,";color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}",XS,";",JS,";",Bg({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),tC=cl(Sy,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",ES,";}",Bg({marginLeft:`${wl(4)} !important`}),";"),nC=cl("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",ES,";}",Bg({marginLeft:8}),";");const rC=(0,c.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,wt.jsx)(YS,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function oC(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,a=s("components-range-control__mark",n&&"is-filled",t),l=s("components-range-control__mark-label",n&&"is-filled");return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)($S,{...i,"aria-hidden":"true",className:a,isFilled:n,style:o}),r&&(0,wt.jsx)(WS,{"aria-hidden":"true",className:l,isFilled:n,style:o,children:r})]})}function iC(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...a}=e;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(zS,{disabled:t,...a}),n&&(0,wt.jsx)(sC,{disabled:t,marks:n,min:r,max:o,step:i,value:s})]})}function sC(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=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 s=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const l=`mark-${r}`,c=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,a.isRTL)()?"right":"left"]:u};s.push({...e,isFilled:c,key:l,style:d})})),s}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,wt.jsx)(BS,{"aria-hidden":"true",className:"components-range-control__marks",children:l.map((e=>(0,B.createElement)(oC,{...e,key:e.key,"aria-hidden":"true",disabled:t})))})}function aC(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:a=0,renderTooltipContent:l=(e=>e),zIndex:u=100,...d}=e,p=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,c.useState)(),o=(0,c.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,c.useEffect)((()=>{o()}),[o]),(0,c.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),f=s("components-simple-tooltip",t),h={...i,zIndex:u};return(0,wt.jsx)(eC,{...d,"aria-hidden":o,className:f,position:p,show:o,role:"tooltip",style:h,children:l(a)})}const lC=()=>{};function cC({resetFallbackValue:e,initialPosition:t}){return void 0!==e?Number.isNaN(e)?null:e:void 0!==t?Number.isNaN(t)?null:t:null}const uC=(0,c.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:u,className:d,color:p=jl.theme.accent,currentInput:f,disabled:h=!1,help:m,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:x,marks:y=!1,max:w=100,min:_=0,onBlur:S=lC,onChange:C=lC,onFocus:k=lC,onMouseLeave:j=lC,onMouseMove:E=lC,railColor:P,renderTooltipContent:T=(e=>e),resetFallbackValue:R,__next40pxDefaultSize:I=!1,shiftStep:N=10,showTooltip:M,step:A=1,trackColor:D,value:O,withInputField:z=!0,...L}=t,[F,B]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=CS(kS(r,t,n),{initial:kS(null!=o?o:null,t,n),fallback:null});return[i,(0,c.useCallback)((e=>{s(null===e?null:kS(e,t,n))}),[t,n,s])]}({min:_,max:w,value:null!=O?O:null,initial:v}),V=(0,c.useRef)(!1);let $=M,H=z;"any"===A&&($=!1,H=!1);const[W,U]=(0,c.useState)($),[G,K]=(0,c.useState)(!1),q=(0,c.useRef)(),Y=q.current?.matches(":focus"),X=!h&&G,Z=null===F,Q=Z?"":void 0!==F?F:f,J=Z?(w-_)/2+_:F,ee=`${hy(Z?50:(F-_)/(w-_)*100,0,100)}%`,te=s("components-range-control",d),ne=s("components-range-control__wrapper",!!y&&"is-marked"),re=(0,l.useInstanceId)(e,"inspector-range-control"),oe=m?`${re}__help`:void 0,ie=!1!==$&&Number.isFinite(F),se=()=>{const e=Number.isNaN(R)?null:null!=R?R:null;B(e),C(null!=e?e:void 0)},ae={[(0,a.isRTL)()?"right":"left"]:ee};return(0,wt.jsx)(Qx,{__nextHasNoMarginBottom:r,__associatedWPComponentName:"RangeControl",className:te,label:x,hideLabelFromVision:g,id:`${re}`,help:m,children:(0,wt.jsxs)(RS,{className:"components-range-control__root",__next40pxDefaultSize:I,children:[u&&(0,wt.jsx)(AS,{children:(0,wt.jsx)(ry,{icon:u})}),(0,wt.jsxs)(MS,{__nextHasNoMarginBottom:r,className:ne,color:p,marks:!!y,children:[(0,wt.jsx)(rC,{...L,className:"components-range-control__slider",describedBy:oe,disabled:h,id:`${re}`,label:x,max:w,min:_,onBlur:e=>{S(e),K(!1),U(!1)},onChange:e=>{const t=parseFloat(e.target.value);B(t),C(t)},onFocus:e=>{k(e),K(!0),U(!0)},onMouseMove:E,onMouseLeave:j,ref:(0,l.useMergeRefs)([q,n]),step:A,value:null!=Q?Q:void 0}),(0,wt.jsx)(iC,{"aria-hidden":!0,disabled:h,marks:y,max:w,min:_,railColor:P,step:A,value:J}),(0,wt.jsx)(FS,{"aria-hidden":!0,className:"components-range-control__track",disabled:h,style:{width:ee},trackColor:D}),(0,wt.jsx)(GS,{className:"components-range-control__thumb-wrapper",style:ae,disabled:h,children:(0,wt.jsx)(qS,{"aria-hidden":!0,isFocused:X,disabled:h})}),ie&&(0,wt.jsx)(aC,{className:"components-range-control__tooltip",inputRef:q,tooltipPosition:"bottom",renderTooltipContent:T,show:Y||W,style:ae,value:F})]}),o&&(0,wt.jsx)(DS,{children:(0,wt.jsx)(ry,{icon:o})}),H&&(0,wt.jsx)(tC,{"aria-label":x,className:"components-range-control__number",disabled:h,inputMode:"decimal",isShiftStepEnabled:b,max:w,min:_,onBlur:()=>{V.current&&(se(),V.current=!1)},onChange:e=>{let t=parseFloat(e);B(t),isNaN(t)?i&&(V.current=!0):((t<_||t>w)&&(t=kS(t,_,w)),C(t),V.current=!1)},shiftStep:N,size:I?"__unstable-large":"default",__unstableInputWidth:wl(I?20:16),step:A,value:Q}),i&&(0,wt.jsx)(nC,{children:(0,wt.jsx)(sy,{className:"components-range-control__reset",accessibleWhenDisabled:!h,disabled:h||F===cC({resetFallbackValue:R,initialPosition:v}),variant:"secondary",size:"small",onClick:se,children:(0,a.__)("Reset")})})]})})})),dC=uC,pC=cl(Sy,{target:"ez9hsf47"})("width:",wl(24),";"),fC=cl(_S,{target:"ez9hsf46"})("margin-left:",wl(-2),";width:5em;"),hC=cl(dC,{target:"ez9hsf45"})("flex:1;margin-right:",wl(2),";"),mC=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${wl(2)} );\n\tmargin-left: ${wl(1)};\n}`,gC=cl("div",{target:"ez9hsf44"})("padding-top:",wl(2),";padding-right:0;padding-left:0;padding-bottom:0;"),vC=cl(yy,{target:"ez9hsf43"})("padding-left:",wl(4),";padding-right:",wl(4),";"),bC=cl(Ig,{target:"ez9hsf42"})("padding-top:",wl(4),";padding-left:",wl(4),";padding-right:",wl(3),";padding-bottom:",wl(5),";"),xC=cl("div",{target:"ez9hsf41"})(Bx,";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:",wl(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:",Tl.radiusFull,";margin-bottom:",wl(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 ",Tl.borderWidthFocus," #fff;}",mC,";"),yC=cl(sy,{target:"ez9hsf40"})("&&&&&{min-width:",wl(6),";padding:0;>svg{margin-right:0;}}"),wC=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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"})}),_C=e=>{const{color:t,colorType:n}=e,[r,o]=(0,c.useState)(null),i=(0,c.useRef)(),s=(0,l.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,c.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,wt.jsx)(Yi,{delay:0,hideOnClick:!1,text:r===t.toHex()?(0,a.__)("Copied!"):(0,a.__)("Copy"),children:(0,wt.jsx)(yC,{size:"small",ref:s,icon:wC,showTooltip:!1})})};const SC=Xa((function(e,t){const n=Ya(e,"InputControlPrefixWrapper");return(0,wt.jsx)(bb,{...n,isPrefix:!0,ref:t})}),"InputControlPrefixWrapper"),CC=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,wt.jsxs)(yy,{spacing:4,children:[(0,wt.jsx)(pC,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,wt.jsx)(SC,{children:(0,wt.jsx)(Xv,{color:jl.theme.accent,lineHeight:1,children:r})}),spinControls:"none",size:"__unstable-large"}),(0,wt.jsx)(hC,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})]}),kC=({color:e,onChange:t,enableAlpha:n})=>{const{r,g:o,b:i,a:s}=e.toRgb();return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(CC,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(Ev({r:e,g:o,b:i,a:s}))}),(0,wt.jsx)(CC,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(Ev({r,g:e,b:i,a:s}))}),(0,wt.jsx)(CC,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(Ev({r,g:o,b:e,a:s}))}),n&&(0,wt.jsx)(CC,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Ev({r,g:o,b:i,a:e/100}))})]})},jC=({color:e,onChange:t,enableAlpha:n})=>{const r=(0,c.useMemo)((()=>e.toHsl()),[e]),[o,i]=(0,c.useState)({...r}),s=e.isEqual(Ev(o));(0,c.useEffect)((()=>{s||i(r)}),[r,s]);const a=s?o:r,l=n=>{const r=Ev({...a,...n});e.isEqual(r)?i((e=>({...e,...n}))):t(r)};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(CC,{min:0,max:359,label:"Hue",abbreviation:"H",value:a.h,onChange:e=>{l({h:e})}}),(0,wt.jsx)(CC,{min:0,max:100,label:"Saturation",abbreviation:"S",value:a.s,onChange:e=>{l({s:e})}}),(0,wt.jsx)(CC,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a.l,onChange:e=>{l({l:e})}}),n&&(0,wt.jsx)(CC,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a.a),onChange:e=>{l({a:e/100})}})]})},EC=({color:e,onChange:t,enableAlpha:n})=>(0,wt.jsx)(ey,{prefix:(0,wt.jsx)(SC,{children:(0,wt.jsx)(Xv,{color:jl.theme.accent,lineHeight:1,children:"#"})}),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Ev(n))},maxLength:n?9:7,label:(0,a.__)("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"}),PC=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,wt.jsx)(jC,{...o});case"rgb":return(0,wt.jsx)(kC,{...o});default:return(0,wt.jsx)(EC,{...o})}};function TC(){return(TC=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 RC(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 IC(e){var t=(0,B.useRef)(e),n=(0,B.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var NC=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},MC=function(e){return"touches"in e},AC=function(e){return e&&e.ownerDocument.defaultView||self},DC=function(e,t,n){var r=e.getBoundingClientRect(),o=MC(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:NC((o.pageX-(r.left+AC(e).pageXOffset))/r.width),top:NC((o.pageY-(r.top+AC(e).pageYOffset))/r.height)}},OC=function(e){!MC(e)&&e.preventDefault()},zC=B.memo((function(e){var t=e.onMove,n=e.onKey,r=RC(e,["onMove","onKey"]),o=(0,B.useRef)(null),i=IC(t),s=IC(n),a=(0,B.useRef)(null),l=(0,B.useRef)(!1),c=(0,B.useMemo)((function(){var e=function(e){OC(e),(MC(e)?e.touches.length>0:e.buttons>0)&&o.current?i(DC(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=AC(o.current),s=n?i.addEventListener:i.removeEventListener;s(r?"touchmove":"mousemove",e),s(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(OC(t),!function(e,t){return t&&!MC(e)}(t,l.current)&&r)){if(MC(t)){l.current=!0;var s=t.changedTouches||[];s.length&&(a.current=s[0].identifier)}r.focus(),i(DC(r,t,a.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,i]),u=c[0],d=c[1],p=c[2];return(0,B.useEffect)((function(){return p}),[p]),B.createElement("div",TC({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),LC=function(e){return e.filter(Boolean).join(" ")},FC=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=LC(["react-colorful__pointer",e.className]);return B.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},B.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},BC=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},VC=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:BC(e.h),s:BC(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:BC(o/2),a:BC(r,2)}}),$C=function(e){var t=VC(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},HC=function(e){var t=VC(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},WC=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),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:BC(255*[r,a,s,s,l,r][c]),g:BC(255*[l,r,r,a,s,s][c]),b:BC(255*[s,s,l,r,r,a][c]),a:BC(o,2)}},UC=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?KC({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}},GC=UC,KC=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:BC(60*(a<0?a+6:a)),s:BC(i?s/i*100:0),v:BC(i/255*100),a:o}},qC=B.memo((function(e){var t=e.hue,n=e.onChange,r=LC(["react-colorful__hue",e.className]);return B.createElement("div",{className:r},B.createElement(zC,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:NC(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":BC(t),"aria-valuemax":"360","aria-valuemin":"0"},B.createElement(FC,{className:"react-colorful__hue-pointer",left:t/360,color:$C({h:t,s:100,v:100,a:1})})))})),YC=B.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:$C({h:t.h,s:100,v:100,a:1})};return B.createElement("div",{className:"react-colorful__saturation",style:r},B.createElement(zC,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:NC(t.s+100*e.left,0,100),v:NC(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+BC(t.s)+"%, Brightness "+BC(t.v)+"%"},B.createElement(FC,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:$C(t)})))})),XC=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},ZC=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function QC(e,t,n){var r=IC(n),o=(0,B.useState)((function(){return e.toHsva(t)})),i=o[0],s=o[1],a=(0,B.useRef)({color:t,hsva:i});(0,B.useEffect)((function(){if(!e.equal(t,a.current.color)){var n=e.toHsva(t);a.current={hsva:n,color:t},s(n)}}),[t,e]),(0,B.useEffect)((function(){var t;XC(i,a.current.hsva)||e.equal(t=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,B.useCallback)((function(e){s((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var JC,ek="undefined"!=typeof window?B.useLayoutEffect:B.useEffect,tk=new Map,nk=function(e){ek((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!tk.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}',tk.set(t,n);var r=JC||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},rk=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=RC(e,["className","colorModel","color","onChange"]),a=(0,B.useRef)(null);nk(a);var l=QC(n,o,i),c=l[0],u=l[1],d=LC(["react-colorful",t]);return B.createElement("div",TC({},s,{ref:a,className:d}),B.createElement(YC,{hsva:c,onChange:u}),B.createElement(qC,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},ok=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+HC(Object.assign({},n,{a:0}))+", "+HC(Object.assign({},n,{a:1}))+")"},i=LC(["react-colorful__alpha",t]),s=BC(100*n.a);return B.createElement("div",{className:i},B.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),B.createElement(zC,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:NC(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},B.createElement(FC,{className:"react-colorful__alpha-pointer",left:n.a,color:HC(n)})))},ik=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,s=RC(e,["className","colorModel","color","onChange"]),a=(0,B.useRef)(null);nk(a);var l=QC(n,o,i),c=l[0],u=l[1],d=LC(["react-colorful",t]);return B.createElement("div",TC({},s,{ref:a,className:d}),B.createElement(YC,{hsva:c,onChange:u}),B.createElement(qC,{hue:c.h,onChange:u}),B.createElement(ok,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},sk={defaultColor:"rgba(0, 0, 0, 1)",toHsva:UC,fromHsva:function(e){var t=WC(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:ZC},ak=function(e){return B.createElement(ik,TC({},e,{colorModel:sk}))},lk={defaultColor:"rgb(0, 0, 0)",toHsva:GC,fromHsva:function(e){var t=WC(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:ZC},ck=function(e){return B.createElement(rk,TC({},e,{colorModel:lk}))};const uk=({color:e,enableAlpha:t,onChange:n})=>{const r=t?ak:ck,o=(0,c.useMemo)((()=>e.toRgbString()),[e]);return(0,wt.jsx)(r,{color:o,onChange:e=>{n(Ev(e))},onPointerDown:({currentTarget:e,pointerId:t})=>{e.setPointerCapture(t)},onPointerUp:({currentTarget:e,pointerId:t})=>{e.releasePointerCapture(t)}})};Tv([Rv]);const dk=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],pk=Xa(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...u}=Ya(e,"ColorPicker"),[d,p]=E_({onChange:o,value:r,defaultValue:i}),f=(0,c.useMemo)((()=>Ev(d||"")),[d]),h=(0,l.useDebounce)(p),m=(0,c.useCallback)((e=>{h(e.toHex())}),[h]),[g,v]=(0,c.useState)(s||"hex");return(0,wt.jsxs)(xC,{ref:t,...u,children:[(0,wt.jsx)(uk,{onChange:m,color:f,enableAlpha:n}),(0,wt.jsxs)(gC,{children:[(0,wt.jsxs)(vC,{justify:"space-between",children:[(0,wt.jsx)(fC,{__nextHasNoMarginBottom:!0,options:dk,value:g,onChange:e=>v(e),label:(0,a.__)("Color format"),hideLabelFromVision:!0,variant:"minimal"}),(0,wt.jsx)(_C,{color:f,colorType:s||g})]}),(0,wt.jsx)(bC,{direction:"column",gap:2,children:(0,wt.jsx)(PC,{colorType:g,color:f,onChange:m,enableAlpha:n})})]})]})}),"ColorPicker"),fk=pk;function hk(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const mk=gs((e=>{const t=Ev(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 gk(e){const{onChangeComplete:t}=e,n=(0,c.useCallback)((e=>{t(mk(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:hk(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const vk=e=>(0,wt.jsx)(fk,{...gk(e)}),bk=(0,c.createContext)({}),xk=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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 yk=(0,c.forwardRef)((function(e,t){const{isPressed:n,...r}=e;return(0,wt.jsx)(sy,{...r,"aria-pressed":n,ref:t})}));const wk=(0,c.forwardRef)((function(e,t){const{id:n,isSelected:r,...o}=e,{setActiveId:i,activeId:s}=(0,c.useContext)(bk);return(0,c.useEffect)((()=>{r&&!s&&window.setTimeout((()=>i?.(n)),0)}),[r,i,s,n]),(0,wt.jsx)(Dn.Item,{render:(0,wt.jsx)(sy,{...o,role:"option","aria-selected":!!r,ref:t}),id:n})}));function _k(e){const{actions:t,options:n,baseId:r,className:o,loop:i=!0,children:s,...l}=e,[u,d]=(0,c.useState)(void 0),p=(0,c.useMemo)((()=>({baseId:r,activeId:u,setActiveId:d})),[r,u,d]);return(0,wt.jsx)("div",{className:o,children:(0,wt.jsxs)(bk.Provider,{value:p,children:[(0,wt.jsx)(Dn,{...l,id:r,focusLoop:i,rtl:(0,a.isRTL)(),role:"listbox",activeId:u,setActiveId:d,children:n}),s,t]})})}function Sk(e){const{actions:t,options:n,children:r,baseId:o,...i}=e,s=(0,c.useMemo)((()=>({baseId:o})),[o]);return(0,wt.jsx)("div",{...i,id:o,children:(0,wt.jsxs)(bk.Provider,{value:s,children:[n,r,t]})})}function Ck(e){const{asButtons:t,actions:n,options:r,children:o,className:i,...a}=e,c=(0,l.useInstanceId)(Ck,"components-circular-option-picker",a.id),u=t?Sk:_k,d=n?(0,wt.jsx)("div",{className:"components-circular-option-picker__custom-clear-wrapper",children:n}):void 0,p=(0,wt.jsx)("div",{className:"components-circular-option-picker__swatches",children:r});return(0,wt.jsx)(u,{...a,baseId:c,className:s("components-circular-option-picker",i),actions:d,options:p,children:o})}Ck.Option=function e({className:t,isSelected:n,selectedIconProps:r={},tooltipText:o,...i}){const{baseId:a,setActiveId:u}=(0,c.useContext)(bk),d={id:(0,l.useInstanceId)(e,a||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...i},p=void 0!==u?(0,wt.jsx)(wk,{...d,isSelected:n}):(0,wt.jsx)(yk,{...d,isPressed:n});return(0,wt.jsxs)("div",{className:s(t,"components-circular-option-picker__option-wrapper"),children:[o?(0,wt.jsx)(Yi,{text:o,children:p}):p,n&&(0,wt.jsx)(vS,{icon:xk,...r})]})},Ck.OptionGroup=function({className:e,options:t,...n}){const r="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,wt.jsx)("div",{...n,role:r,className:s("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e),children:t})},Ck.ButtonAction=function({className:e,children:t,...n}){return(0,wt.jsx)(sy,{className:s("components-circular-option-picker__clear",e),variant:"tertiary",...n,children:t})},Ck.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,wt.jsx)(rS,{className:s("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,wt.jsx)(sy,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e,children:r}),...n})};const kk=Ck;const jk=Xa((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Ya(e,"VStack");return xy({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"VStack");const Ek=Xa((function(e,t){const n=ev(e);return(0,wt.jsx)(dl,{as:"span",...n,ref:t})}),"Truncate");const Pk=Xa((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=jl.gray[900],isBlock:o=!0,weight:i=Tl.fontWeightHeading,...s}=Ya(e,"Heading"),a=t||`h${n}`,l={};return"string"==typeof a&&"h"!==a[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...Yv({color:r,isBlock:o,weight:i,size:Kv(n),...s}),...l,as:a}}(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"Heading"),Tk=Pk;const Rk=cl(Tk,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),Ik=({paddingSize:e="small"})=>{if("none"===e)return;const t={small:wl(2),medium:wl(4)};return bl("padding:",t[e]||t.small,";","")},Nk=cl("div",{target:"eovvns30"})("margin-left:",wl(-2),";margin-right:",wl(-2),";&:first-of-type{margin-top:",wl(-2),";}&:last-of-type{margin-bottom:",wl(-2),";}",Ik,";");const Mk=Xa((function(e,t){const{paddingSize:n="small",...r}=Ya(e,"DropdownContentWrapper");return(0,wt.jsx)(Nk,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");Tv([Rv,tS]);const Ak=e=>{const t=/var\(/.test(null!=e?e:""),n=/color-mix\(/.test(null!=e?e:"");return!t&&!n},Dk=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function Ok({className:e,clearColor:t,colors:n,onChange:r,value:o,...i}){const s=(0,c.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=Ev(e),l=o===e;return(0,wt.jsx)(kk.Option,{isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,a.sprintf)((0,a.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,a.sprintf)((0,a.__)("Color: %s"),n):(0,a.sprintf)((0,a.__)("Color code: %s"),e)},`${e}-${i}`)}))),[n,o,r,t]);return(0,wt.jsx)(kk.OptionGroup,{className:e,options:s,...i})}function zk({className:e,clearColor:t,colors:n,onChange:r,value:o,headingLevel:i}){const s=(0,l.useInstanceId)(zk,"color-palette");return 0===n.length?null:(0,wt.jsx)(jk,{spacing:3,className:e,children:n.map((({name:e,colors:n},a)=>{const l=`${s}-${a}`;return(0,wt.jsxs)(jk,{spacing:2,children:[(0,wt.jsx)(Rk,{id:l,level:i,children:e}),(0,wt.jsx)(Ok,{clearColor:t,colors:n,onChange:e=>r(e,a),value:o,"aria-labelledby":l})]},a)}))})}function Lk({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,c.useMemo)((()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,wt.jsx)(rS,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}Tv([Rv,tS]);const Fk=(0,c.forwardRef)((function(e,t){const{asButtons:n,loop:r,clearable:o=!0,colors:i=[],disableCustomColors:l=!1,enableAlpha:u=!1,onChange:d,value:p,__experimentalIsRenderedInSidebar:f=!1,headingLevel:h=2,"aria-label":m,"aria-labelledby":g,...v}=e,[b,x]=(0,c.useState)(p),y=(0,c.useCallback)((()=>d(void 0)),[d]),w=(0,c.useCallback)((e=>{x(((e,t)=>{if(!e||!t||Ak(e))return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Ev(o).toHex():e})(p,e))}),[p]),_=Dk(i),S=(0,c.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=!!e&&Ak(e),o=r?Ev(e).toHex():e,i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?Ev(n).toHex():n))return t;return(0,a.__)("Custom")})(p,i,_)),[p,i,_]),C=p?.startsWith("#"),k=p?.replace(/^var\((.+)\)$/,"$1"),j=k?(0,a.sprintf)((0,a.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),S,k):(0,a.__)("Custom color picker."),E={clearColor:y,onChange:d,value:p},P=!!o&&(0,wt.jsx)(kk.ButtonAction,{onClick:y,children:(0,a.__)("Clear")});let T;if(n)T={asButtons:!0};else{const e={asButtons:!1,loop:r};T=m?{...e,"aria-label":m}:g?{...e,"aria-labelledby":g}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}return(0,wt.jsxs)(jk,{spacing:3,ref:t,...v,children:[!l&&(0,wt.jsx)(Lk,{isRenderedInSidebar:f,renderContent:()=>(0,wt.jsx)(Mk,{paddingSize:"none",children:(0,wt.jsx)(vk,{color:b,onChange:e=>d(e),enableAlpha:u})}),renderToggle:({isOpen:e,onToggle:t})=>(0,wt.jsxs)(jk,{className:"components-color-palette__custom-color-wrapper",spacing:0,children:[(0,wt.jsx)("button",{ref:w,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":j,style:{background:p},type:"button"}),(0,wt.jsxs)(jk,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5,children:[(0,wt.jsx)(Ek,{className:"components-color-palette__custom-color-name",children:p?S:(0,a.__)("No color selected")}),(0,wt.jsx)(Ek,{className:s("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":C}),children:k})]})]})}),(i.length>0||P)&&(0,wt.jsx)(kk,{...T,actions:P,options:_?(0,wt.jsx)(zk,{...E,headingLevel:h,colors:i,value:p}):(0,wt.jsx)(Ok,{...E,colors:i,value:p})})]})})),Bk=Fk,Vk=cl(Sy,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",tb,"{transition:box-shadow 0.1s linear;}}"),$k=({selectSize:e})=>({small:bl("box-sizing:border-box;padding:2px 1px;width:20px;font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;&:not( :disabled ){color:",jl.gray[800],";}",""),default:bl("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",wl(2),";padding:",wl(1),";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;field-sizing:content;&:not( :disabled ){color:",jl.theme.accent,";}","")}[e]),Hk=cl("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",$k,";color:",jl.gray[900],";}"),Wk=({selectSize:e="default"})=>({small:bl("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",Bg({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",jl.gray[100],";}&:focus{border:1px solid ",jl.ui.borderFocus,";box-shadow:inset 0 0 0 ",Tl.borderWidth+" "+jl.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:bl("display:flex;justify-content:center;align-items:center;&:where( :not( :disabled ) ):hover{box-shadow:0 0 0 ",Tl.borderWidth+" "+jl.ui.borderFocus,";outline:",Tl.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Tl.borderWidthFocus+" "+jl.ui.borderFocus,";outline:",Tl.borderWidthFocus," solid transparent;}","")}[e]),Uk=cl("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:",Tl.radiusXSmall,";border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",$k,";",Wk,";&:not( :disabled ){cursor:pointer;}}"),Gk=bl("box-shadow:inset ",Tl.controlBoxShadowFocus,";",""),Kk=bl("border:0;padding:0;margin:0;",Bx,";",""),qk=bl(Vk,"{flex:0 0 auto;}",""),Yk=bl("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",Bg({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Tl.borderWidth," solid ",jl.ui.border,";&:focus,&:hover:not( :disabled ){",Gk," border-color:",jl.ui.borderFocus,";z-index:1;position:relative;}}",""),Xk=(e,t)=>{const{style:n}=e||{};return bl("border-radius:",Tl.radiusFull,";border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?jl.gray[300]:void 0;return bl("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:",wl(4),";width:",wl(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);}","")},Zk=bl("width:",228,"px;>div:first-of-type>",Ux,"{margin-bottom:0;}&& ",Ux,"+button:not( .has-text ){min-width:24px;padding:0;}",""),Qk=bl("",""),Jk=bl("",""),ej=bl("justify-content:center;width:100%;&&{border-top:",Tl.borderWidth," solid ",jl.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),tj="web"===c.Platform.OS,nj={px:{value:"px",label:tj?"px":(0,a.__)("Pixels (px)"),a11yLabel:(0,a.__)("Pixels (px)"),step:1},"%":{value:"%",label:tj?"%":(0,a.__)("Percentage (%)"),a11yLabel:(0,a.__)("Percent (%)"),step:.1},em:{value:"em",label:tj?"em":(0,a.__)("Relative to parent font size (em)"),a11yLabel:(0,a._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:tj?"rem":(0,a.__)("Relative to root font size (rem)"),a11yLabel:(0,a._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:tj?"vw":(0,a.__)("Viewport width (vw)"),a11yLabel:(0,a.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:tj?"vh":(0,a.__)("Viewport height (vh)"),a11yLabel:(0,a.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:tj?"vmin":(0,a.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,a.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:tj?"vmax":(0,a.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,a.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:tj?"ch":(0,a.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,a.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:tj?"ex":(0,a.__)("x-height of the font (ex)"),a11yLabel:(0,a.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:tj?"cm":(0,a.__)("Centimeters (cm)"),a11yLabel:(0,a.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:tj?"mm":(0,a.__)("Millimeters (mm)"),a11yLabel:(0,a.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:tj?"in":(0,a.__)("Inches (in)"),a11yLabel:(0,a.__)("Inches (in)"),step:.001},pc:{value:"pc",label:tj?"pc":(0,a.__)("Picas (pc)"),a11yLabel:(0,a.__)("Picas (pc)"),step:1},pt:{value:"pt",label:tj?"pt":(0,a.__)("Points (pt)"),a11yLabel:(0,a.__)("Points (pt)"),step:1},svw:{value:"svw",label:tj?"svw":(0,a.__)("Small viewport width (svw)"),a11yLabel:(0,a.__)("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:tj?"svh":(0,a.__)("Small viewport height (svh)"),a11yLabel:(0,a.__)("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:tj?"svi":(0,a.__)("Viewport smallest size in the inline direction (svi)"),a11yLabel:(0,a.__)("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:tj?"svb":(0,a.__)("Viewport smallest size in the block direction (svb)"),a11yLabel:(0,a.__)("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:tj?"svmin":(0,a.__)("Small viewport smallest dimension (svmin)"),a11yLabel:(0,a.__)("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:tj?"lvw":(0,a.__)("Large viewport width (lvw)"),a11yLabel:(0,a.__)("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:tj?"lvh":(0,a.__)("Large viewport height (lvh)"),a11yLabel:(0,a.__)("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:tj?"lvi":(0,a.__)("Large viewport width or height (lvi)"),a11yLabel:(0,a.__)("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:tj?"lvb":(0,a.__)("Large viewport width or height (lvb)"),a11yLabel:(0,a.__)("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:tj?"lvmin":(0,a.__)("Large viewport smallest dimension (lvmin)"),a11yLabel:(0,a.__)("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:tj?"dvw":(0,a.__)("Dynamic viewport width (dvw)"),a11yLabel:(0,a.__)("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:tj?"dvh":(0,a.__)("Dynamic viewport height (dvh)"),a11yLabel:(0,a.__)("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:tj?"dvi":(0,a.__)("Dynamic viewport width or height (dvi)"),a11yLabel:(0,a.__)("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:tj?"dvb":(0,a.__)("Dynamic viewport width or height (dvb)"),a11yLabel:(0,a.__)("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:tj?"dvmin":(0,a.__)("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:(0,a.__)("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:tj?"dvmax":(0,a.__)("Dynamic viewport largest dimension (dvmax)"),a11yLabel:(0,a.__)("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:tj?"svmax":(0,a.__)("Small viewport largest dimension (svmax)"),a11yLabel:(0,a.__)("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:tj?"lvmax":(0,a.__)("Large viewport largest dimension (lvmax)"),a11yLabel:(0,a.__)("Large viewport largest dimension (lvmax)"),step:.1}},rj=Object.values(nj),oj=[nj.px,nj["%"],nj.em,nj.rem,nj.vw,nj.vh],ij=nj.px;function sj(e,t,n){return lj(t?`${null!=e?e:""}${t}`:e,n)}function aj(e){return Array.isArray(e)&&!!e.length}function lj(e,t=rj){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 s;if(aj(t)){const e=t.find((e=>e.value===i));s=e?.value}else s=ij.value;return[r,s]}const cj=({units:e=rj,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]=lj(n[e.value]);r[t].default=o}})),r};const uj=e=>e.replace(/^var\((.+)\)$/,"$1"),dj=Xa(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:u,indicatorWrapperClassName:d,isStyleSettable:p,onReset:f,onColorChange:h,onStyleChange:m,popoverContentClassName:g,popoverControlsClassName:v,resetButtonClassName:b,showDropdownHeader:x,size:y,__unstablePopoverProps:w,..._}=function(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:a,size:l="default",__experimentalIsRenderedInSidebar:u=!1,...d}=Ya(e,"BorderControlDropdown"),[p]=lj(t?.width),f=0===p,h=qa(),m=(0,c.useMemo)((()=>h(Yk,n)),[n,h]),g=(0,c.useMemo)((()=>h(Jk)),[h]),v=(0,c.useMemo)((()=>h(Xk(t,l))),[t,h,l]),b=(0,c.useMemo)((()=>h(Zk)),[h]),x=(0,c.useMemo)((()=>h(Qk)),[h]),y=(0,c.useMemo)((()=>h(ej)),[h]);return{...d,border:t,className:m,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:g,indicatorWrapperClassName:v,onColorChange:e=>{s({color:e,style:"none"===t?.style?a:t?.style,width:f&&e?"1px":t?.width})},onStyleChange:e=>{const n=f&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:x,popoverControlsClassName:b,resetButtonClassName:y,size:l,__experimentalIsRenderedInSidebar:u}}(e),{color:S,style:C}=r||{},k=((e,t)=>{if(e&&t){if(Dk(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))}})(S,o),j=((e,t,n,r)=>{if(r){if(t){const e=uj(t.color);return n?(0,a.sprintf)((0,a.__)('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,a.sprintf)((0,a.__)('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=uj(e);return n?(0,a.sprintf)((0,a.__)('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,a.sprintf)((0,a.__)('Border color and style picker. The currently selected color has a value of "%s".'),t)}return(0,a.__)("Border color and style picker.")}return t?(0,a.sprintf)((0,a.__)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),t.name,uj(t.color)):e?(0,a.sprintf)((0,a.__)('Border color picker. The currently selected color has a value of "%s".'),uj(e)):(0,a.__)("Border color picker.")})(S,k,C,l),E=S||C&&"none"!==C,P=n?"bottom left":void 0;return(0,wt.jsx)(rS,{renderToggle:({onToggle:e})=>(0,wt.jsx)(sy,{onClick:e,variant:"tertiary","aria-label":j,tooltipPosition:P,label:(0,a.__)("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===y,children:(0,wt.jsx)("span",{className:d,children:(0,wt.jsx)(Q_,{className:u,colorValue:S})})}),renderContent:({onClose:e})=>(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Mk,{paddingSize:"medium",children:(0,wt.jsxs)(jk,{className:v,spacing:6,children:[x?(0,wt.jsxs)(yy,{children:[(0,wt.jsx)(Ux,{children:(0,a.__)("Border color")}),(0,wt.jsx)(sy,{size:"small",label:(0,a.__)("Close border color"),icon:e_,onClick:e})]}):void 0,(0,wt.jsx)(Bk,{className:g,value:S,onChange:h,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&p&&(0,wt.jsx)(Z_,{label:(0,a.__)("Style"),value:C,onChange:m})]})}),E&&(0,wt.jsx)(Mk,{paddingSize:"none",children:(0,wt.jsx)(sy,{className:b,variant:"tertiary",onClick:()=>{f(),e()},children:(0,a.__)("Reset")})})]}),popoverProps:{...w},..._,ref:t})}),"BorderControlDropdown"),pj=dj;const fj=(0,c.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=oj,...a},l){if(!aj(i)||1===i?.length)return(0,wt.jsx)(Hk,{className:"components-unit-control__unit-label",selectSize:r,children:o});const c=s("components-unit-control__select",e);return(0,wt.jsx)(Uk,{ref:l,className:c,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...a,children:i.map((e=>(0,wt.jsx)("option",{value:e.value,children:e.label},e.value)))})}));const hj=(0,c.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:l=!1,disableUnits:u=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:p=!1,isUnitSelectTabbable:f=!0,label:h,onChange:m,onUnitChange:g,size:v="default",unit:b,units:x=oj,value:y,onFocus:w,..._}=_b(e);"unit"in e&&Fi()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const S=null!=y?y:void 0,[C,k]=(0,c.useMemo)((()=>{const e=function(e,t,n=rj){const r=Array.isArray(n)?[...n]:[],[,o]=sj(e,t,rj);return o&&!r.some((e=>e.value===o))&&nj[o]&&r.unshift(nj[o]),r}(S,b,x),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=Ly(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),Ly(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[S,b,x]),[j,E]=sj(S,b,C),[P,T]=CS(1===C.length?C[0].value:b,{initial:E,fallback:""});(0,c.useEffect)((()=>{void 0!==E&&T(E)}),[E,T]);const R=s("components-unit-control","components-unit-control-wrapper",i);let I;!u&&f&&C.length&&(I=e=>{_.onKeyDown?.(e),e.metaKey||e.ctrlKey||!k.test(e.key)||N.current?.focus()});const N=(0,c.useRef)(null),M=u?null:(0,wt.jsx)(fj,{ref:N,"aria-label":(0,a.__)("Select unit"),disabled:l,isUnitSelectTabbable:f,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=j?j:""}${e}`;p&&void 0!==n?.default&&(r=`${n.default}${e}`),m?.(r,t),g?.(e,t),T(e)},size:["small","compact"].includes(v)||"default"===v&&!_.__next40pxDefaultSize?"small":"default",unit:P,units:C,onFocus:w,onBlur:e.onBlur});let A=_.step;if(!A&&C){var D;const e=C.find((e=>e.value===P));A=null!==(D=e?.step)&&void 0!==D?D:1}return(0,wt.jsx)(Vk,{..._,autoComplete:r,className:R,disabled:l,spinControls:"none",isPressEnterToChange:d,label:h,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void m?.("",t);const n=function(e,t,n,r){const[o,i]=lj(e,t),s=null!=o?o:n;let a=i||r;return!a&&aj(t)&&(a=t[0].value),[s,a]}(e,C,j,P).join("");m?.(n,t)},ref:t,size:v,suffix:M,type:d?"text":"number",value:null!=j?j:"",step:A,onFocus:w,__unstableStateReducer:n})})),mj=hj,gj=e=>void 0!==e?.width&&""!==e.width||void 0!==e?.color;function vj(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:a=!0,size:l="default",value:u,width:d,__experimentalIsRenderedInSidebar:p=!1,__next40pxDefaultSize:f,...h}=Ya(e,"BorderControl"),m="default"===l&&f?"__unstable-large":l,[g,v]=lj(u?.width),b=v||"px",x=0===g,[y,w]=(0,c.useState)(),[_,S]=(0,c.useState)(),C=!a||gj(u),k=(0,c.useCallback)((e=>{!a||gj(e)?o(e):o(void 0)}),[o,a]),j=(0,c.useCallback)((e=>{const t=""===e?void 0:e,[n]=lj(e),r=0===n,o={...u,width:t};r&&!x&&(w(u?.color),S(u?.style),o.color=void 0,o.style="none"),!r&&x&&(void 0===o.color&&(o.color=y),"none"===o.style&&(o.style=_)),k(o)}),[u,x,y,_,k]),E=(0,c.useCallback)((e=>{j(`${e}${b}`)}),[j,b]),P=qa(),T=(0,c.useMemo)((()=>P(Kk,t)),[t,P]);let R=d;r&&(R="__unstable-large"===l?"116px":"90px");const I=(0,c.useMemo)((()=>{const e=!!R&&qk,t=(e=>bl("height:","__unstable-large"===e?"40px":"30px",";",""))(m);return P(bl(Vk,"{flex:1 1 40%;}&& ",Uk,"{min-height:0;}",""),e,t)}),[R,P,m]),N=(0,c.useMemo)((()=>P(bl("flex:1 1 60%;",Bg({marginRight:wl(3)})(),";",""))),[P]);return{...h,className:T,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:I,inputWidth:R,isStyleSettable:C,onBorderChange:k,onSliderChange:E,onWidthChange:j,previousStyleSelection:_,sliderClassName:N,value:u,widthUnit:b,widthValue:g,size:m,__experimentalIsRenderedInSidebar:p,__next40pxDefaultSize:f}}const bj=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,wt.jsx)(pl,{as:"legend",children:t}):(0,wt.jsx)(Ux,{as:"legend",children:t}):null},xj=Xa(((e,t)=>{const{__next40pxDefaultSize:n=!1,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hideLabelFromVision:c,innerWrapperClassName:u,inputWidth:d,isStyleSettable:p,label:f,onBorderChange:h,onSliderChange:m,onWidthChange:g,placeholder:v,__unstablePopoverProps:b,previousStyleSelection:x,showDropdownHeader:y,size:w,sliderClassName:_,value:S,widthUnit:C,widthValue:k,withSlider:j,__experimentalIsRenderedInSidebar:E,...P}=vj(e);return(0,wt.jsxs)(dl,{as:"fieldset",...P,ref:t,children:[(0,wt.jsx)(bj,{label:f,hideLabelFromVision:c}),(0,wt.jsxs)(yy,{spacing:4,className:u,children:[(0,wt.jsx)(mj,{prefix:(0,wt.jsx)(Hg,{marginRight:1,marginBottom:0,children:(0,wt.jsx)(pj,{border:S,colors:r,__unstablePopoverProps:b,disableCustomColors:o,enableAlpha:s,enableStyle:l,isStyleSettable:p,onChange:h,previousStyleSelection:x,showDropdownHeader:y,__experimentalIsRenderedInSidebar:E,size:w})}),label:(0,a.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:g,value:S?.width||"",placeholder:v,disableUnits:i,__unstableInputWidth:d,size:w}),j&&(0,wt.jsx)(dC,{__nextHasNoMarginBottom:!0,label:(0,a.__)("Border width"),hideLabelFromVision:!0,className:_,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(C)?1:.1,value:k||void 0,withInputField:!1,__next40pxDefaultSize:n})]})]})}),"BorderControl"),yj=xj,wj={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 _j(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:a=!1,justify:l,rowGap:u,rows:d,templateColumns:p,templateRows:f,...h}=Ya(e,"Grid"),m=_g(Array.isArray(i)?i:[i]),g=_g(Array.isArray(d)?d:[d]),v=p||!!i&&`repeat( ${m}, 1fr )`,b=f||!!d&&`repeat( ${g}, 1fr )`,x=qa();return{...h,className:(0,c.useMemo)((()=>{const e=function(e){return e?wj[e]:{}}(n),i=bl({alignItems:t,display:a?"inline-grid":"grid",gap:`calc( ${Tl.gridBase} * ${s} )`,gridTemplateColumns:v||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:l,verticalAlign:a?"middle":void 0,...e},"","");return x(i,r)}),[t,n,r,o,x,s,v,b,a,l,u])}}const Sj=Xa((function(e,t){const n=_j(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"Grid");function Cj(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...a}=Ya(e,"BorderBoxControlSplitControls"),l=qa(),u=(0,c.useMemo)((()=>l((e=>bl("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...a,centeredClassName:(0,c.useMemo)((()=>l(Yw,t)),[l,t]),className:u,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,c.useMemo)((()=>l(bl(Bg({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:s}}const kj=Xa(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:u,popoverPlacement:d,popoverOffset:p,rightAlignedClassName:f,size:h="default",value:m,__experimentalIsRenderedInSidebar:g,...v}=Cj(e),[b,x]=(0,c.useState)(null),y=(0,c.useMemo)((()=>d?{placement:d,offset:p,anchor:b,shift:!0}:void 0),[d,p,b]),w={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:h},_=(0,l.useMergeRefs)([x,t]);return(0,wt.jsxs)(Sj,{...v,ref:_,gap:4,children:[(0,wt.jsx)(Jw,{value:m,size:h}),(0,wt.jsx)(yj,{className:n,hideLabelFromVision:!0,label:(0,a.__)("Top border"),onChange:e=>u(e,"top"),__unstablePopoverProps:y,value:m?.top,...w}),(0,wt.jsx)(yj,{hideLabelFromVision:!0,label:(0,a.__)("Left border"),onChange:e=>u(e,"left"),__unstablePopoverProps:y,value:m?.left,...w}),(0,wt.jsx)(yj,{className:f,hideLabelFromVision:!0,label:(0,a.__)("Right border"),onChange:e=>u(e,"right"),__unstablePopoverProps:y,value:m?.right,...w}),(0,wt.jsx)(yj,{className:n,hideLabelFromVision:!0,label:(0,a.__)("Bottom border"),onChange:e=>u(e,"bottom"),__unstablePopoverProps:y,value:m?.bottom,...w})]})}),"BorderBoxControlSplitControls"),jj=kj,Ej=/^([\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 Pj=["top","right","bottom","left"],Tj=["color","style","width"],Rj=e=>!e||!Tj.some((t=>void 0!==e[t])),Ij=e=>{if(!e)return!1;if(Nj(e)){return!Pj.every((t=>Rj(e[t])))}return!Rj(e)},Nj=(e={})=>Object.keys(e).some((e=>-1!==Pj.indexOf(e))),Mj=e=>{if(!Nj(e))return!1;const t=Pj.map((t=>Aj(e?.[t])));return!t.every((e=>e===t[0]))},Aj=(e,t)=>{if(Rj(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:s=r,width:a=o}=e;return[a,!!a&&"0"!==a||!!i?s||"solid":s,i].filter(Boolean).join(" ")},Dj=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(Ej);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 Oj(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:a,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:u,...d}=Ya(e,"BorderBoxControl"),p="default"===s&&u?"__unstable-large":s,f=Mj(a),h=Nj(a),m=h?(e=>{if(!e)return;const t=[],n=[],r=[];Pj.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])),s=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:s?r[0]:Dj(r)}})(a):a,g=h?a:(e=>{if(e&&!Rj(e))return{top:e,right:e,bottom:e,left:e}})(a),v=!isNaN(parseFloat(`${m?.width}`)),[b,x]=(0,c.useState)(!f),y=qa(),w=(0,c.useMemo)((()=>y(Gw,t)),[y,t]),_=(0,c.useMemo)((()=>y(bl("flex:1;",Bg({marginRight:"24px"})(),";",""))),[y]),S=(0,c.useMemo)((()=>y(Kw)),[y]);return{...d,className:w,colors:n,disableUnits:f&&!v,enableAlpha:o,enableStyle:i,hasMixedBorders:f,isLinked:b,linkedControlClassName:_,onLinkedChange:e=>{if(!e)return r(void 0);if(!f||(t=e)&&Tj.every((e=>void 0!==t[e])))return r(Rj(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})(m,e),o={top:{...a?.top,...n},right:{...a?.right,...n},bottom:{...a?.bottom,...n},left:{...a?.left,...n}};if(Mj(o))return r(o);const i=Rj(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...g,[t]:e};Mj(n)?r(n):r(e)},toggleLinked:()=>x(!b),linkedValue:m,size:p,splitValue:g,wrapperClassName:S,__experimentalIsRenderedInSidebar:l}}const zj=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,wt.jsx)(pl,{as:"label",children:t}):(0,wt.jsx)(Ux,{children:t}):null},Lj=Xa(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:u,hasMixedBorders:d,hideLabelFromVision:p,isLinked:f,label:h,linkedControlClassName:m,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:x,popoverOffset:y,size:w,splitValue:_,toggleLinked:S,wrapperClassName:C,__experimentalIsRenderedInSidebar:k,...j}=Oj(e),[E,P]=(0,c.useState)(null),T=(0,c.useMemo)((()=>x?{placement:x,offset:y,anchor:E,shift:!0}:void 0),[x,y,E]),R=(0,l.useMergeRefs)([P,t]);return(0,wt.jsxs)(dl,{className:n,...j,ref:R,children:[(0,wt.jsx)(zj,{label:h,hideLabelFromVision:p}),(0,wt.jsxs)(dl,{className:C,children:[f?(0,wt.jsx)(yj,{className:m,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:u,onChange:v,placeholder:d?(0,a.__)("Mixed"):void 0,__unstablePopoverProps:T,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===w?"116px":"110px",__experimentalIsRenderedInSidebar:k,size:w}):(0,wt.jsx)(jj,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:u,onChange:b,popoverPlacement:x,popoverOffset:y,value:_,__experimentalIsRenderedInSidebar:k,size:w}),(0,wt.jsx)(Zw,{onClick:S,isLinked:f,size:w})]})]})}),"BorderBoxControl"),Fj=Lj;const Bj=cl("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),Vj=cl("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),$j=({isFocused:e})=>bl({backgroundColor:"currentColor",opacity:e?1:.3},"",""),Hj=cl("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",$j,";"),Wj=cl(Hj,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),Uj=cl(Hj,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),Gj=cl(Uj,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),Kj=cl(Wj,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),qj=cl(Uj,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),Yj=cl(Wj,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"});function Xj({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),a=o("bottom")||o("vertical"),l=o("left")||o("horizontal"),c=e/24;return(0,wt.jsx)(Bj,{style:{transform:`scale(${c})`},...r,children:(0,wt.jsxs)(Vj,{children:[(0,wt.jsx)(Gj,{isFocused:i}),(0,wt.jsx)(Kj,{isFocused:s}),(0,wt.jsx)(qj,{isFocused:a}),(0,wt.jsx)(Yj,{isFocused:l})]})})}const Zj=cl(mj,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),Qj=cl(yy,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),Jj=cl(sy,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),eE=cl("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),tE=cl(Xj,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),nE=cl(dC,{target:"e1jovhle0"})("width:100%;margin-inline-end:",wl(2),";"),rE={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}},oE={all:(0,a.__)("All sides"),top:(0,a.__)("Top side"),bottom:(0,a.__)("Bottom side"),left:(0,a.__)("Left side"),right:(0,a.__)("Right side"),mixed:(0,a.__)("Mixed"),vertical:(0,a.__)("Top and bottom sides"),horizontal:(0,a.__)("Left and right sides")},iE={top:void 0,right:void 0,bottom:void 0,left:void 0},sE=["top","right","bottom","left"];function aE(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function lE(e={},t,n=sE){const r=function(e){const t=[];if(!e?.length)return sE;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=sE.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>lj(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),s=o.every((e=>e===o[0]))?o[0]:"";let a;var l;"number"==typeof s?a=aE(i):a=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return aE(t)}(t))&&void 0!==l?l:aE(i);return[s,a].join("")}function cE(e={},t,n=sE){const r=lE(e,t,n);return isNaN(parseFloat(r))}function uE(e){return e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function dE(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function pE(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})):sE.forEach((e=>r[e]=t)),r}const fE=()=>{};function hE({__next40pxDefaultSize:e,onChange:t=fE,onFocus:n=fE,values:r,sides:o,selectedUnits:i,setSelectedUnits:s,...a}){var c,u;const d=(0,l.useInstanceId)(hE,"box-control-input-all"),p=lE(r,i,o),f=uE(r)&&cE(r,i,o),h=f?oE.mixed:void 0,[m,g]=lj(p),v=e=>{const n=void 0!==e&&!isNaN(parseFloat(e)),i=pE(r,n?e:void 0,o);t(i)};return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Zj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:f,id:d,isPressEnterToChange:!0,value:p,onChange:v,onUnitChange:e=>{const t=pE(i,e,o);s(t)},onFocus:e=>{n(e,{side:"all"})},placeholder:h,label:oE.all,hideLabelFromVision:!0}),(0,wt.jsx)(nE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":d,label:oE.all,hideLabelFromVision:!0,onChange:e=>{v(void 0!==e?[e,g].join(""):void 0)},min:0,max:null!==(c=rE[null!=g?g:"px"]?.max)&&void 0!==c?c:10,step:null!==(u=rE[null!=g?g:"px"]?.step)&&void 0!==u?u:.1,value:null!=m?m:0,withInputField:!1})]})}const mE=()=>{};function gE({__next40pxDefaultSize:e,onChange:t=mE,onFocus:n=mE,values:r,selectedUnits:o,setSelectedUnits:i,sides:s,...a}){const c=(0,l.useInstanceId)(gE,"box-control-input"),u=e=>t=>{n(t,{side:e})},d=(e,n,o)=>{const i={...r},s=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[e]=s,o?.event.altKey)switch(e){case"top":i.bottom=s;break;case"bottom":i.top=s;break;case"left":i.right=s;break;case"right":i.left=s}(e=>{t(e)})(i)},p=e=>t=>{const n={...o};n[e]=t,i(n)},f=s?.length?sE.filter((e=>s.includes(e))):sE;return(0,wt.jsx)(wt.Fragment,{children:f.map((t=>{var n,i;const[l,f]=lj(r[t]),h=r[t]?f:o[t],m=[c,t].join("-");return(0,wt.jsxs)(Qj,{expanded:!0,children:[(0,wt.jsx)(tE,{side:t,sides:s}),(0,wt.jsx)(Yi,{placement:"top-end",text:oE[t],children:(0,wt.jsx)(Zj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:m,isPressEnterToChange:!0,value:[l,h].join(""),onChange:(e,n)=>d(t,e,n),onUnitChange:p(t),onFocus:u(t),label:oE[t],hideLabelFromVision:!0})}),(0,wt.jsx)(nE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":m,label:oE[t],hideLabelFromVision:!0,onChange:e=>{d(t,void 0!==e?[e,h].join(""):void 0)},min:0,max:null!==(n=rE[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=rE[null!=h?h:"px"]?.step)&&void 0!==i?i:.1,value:null!=l?l:0,withInputField:!1})]},`box-control-${t}`)}))})}const vE=["vertical","horizontal"];function bE({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:r,selectedUnits:o,setSelectedUnits:i,sides:s,...a}){const c=(0,l.useInstanceId)(bE,"box-control-input"),u=e=>t=>{n&&n(t,{side:e})},d=(e,n)=>{if(!t)return;const o={...r},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(o.top=i,o.bottom=i),"horizontal"===e&&(o.left=i,o.right=i),t(o)},p=e=>t=>{const n={...o};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),i(n)},f=s?.length?vE.filter((e=>s.includes(e))):vE;return(0,wt.jsx)(wt.Fragment,{children:f.map((t=>{var n,i;const[l,f]=lj("vertical"===t?r.top:r.left),h="vertical"===t?o.top:o.left,m=[c,t].join("-");return(0,wt.jsxs)(Qj,{children:[(0,wt.jsx)(tE,{side:t,sides:s}),(0,wt.jsx)(Yi,{placement:"top-end",text:oE[t],children:(0,B.createElement)(Zj,{...a,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:m,isPressEnterToChange:!0,value:[l,null!=h?h:f].join(""),onChange:e=>d(t,e),onUnitChange:p(t),onFocus:u(t),label:oE[t],hideLabelFromVision:!0,key:t})}),(0,wt.jsx)(nE,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":m,label:oE[t],hideLabelFromVision:!0,onChange:e=>d(t,void 0!==e?[e,null!=h?h:f].join(""):void 0),min:0,max:null!==(n=rE[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=rE[null!=h?h:"px"]?.step)&&void 0!==i?i:.1,value:null!=l?l:0,withInputField:!1})]},t)}))})}function xE({isLinked:e,...t}){const n=e?(0,a.__)("Unlink sides"):(0,a.__)("Link sides");return(0,wt.jsx)(Yi,{text:n,children:(0,wt.jsx)(sy,{...t,className:"component-box-control__linked-button",size:"small",icon:e?Ww:Uw,iconSize:24,"aria-label":n})})}const yE={min:0},wE=()=>{};function _E({__next40pxDefaultSize:e=!1,id:t,inputProps:n=yE,onChange:r=wE,label:o=(0,a.__)("Box Control"),values:i,units:s,sides:u,splitOnAxis:d=!1,allowReset:p=!0,resetValues:f=iE,onMouseOver:h,onMouseOut:m}){const[g,v]=CS(i,{fallback:iE}),b=g||iE,x=uE(i),y=1===u?.length,[w,_]=(0,c.useState)(x),[S,C]=(0,c.useState)(!x||!cE(b)||y),[k,j]=(0,c.useState)(dE(S,d)),[E,P]=(0,c.useState)({top:lj(i?.top)[1],right:lj(i?.right)[1],bottom:lj(i?.bottom)[1],left:lj(i?.left)[1]}),T=function(e){const t=(0,l.useInstanceId)(_E,"inspector-box-control");return e||t}(t),R=`${T}-heading`,I={...n,onChange:e=>{r(e),v(e),_(!0)},onFocus:(e,{side:t})=>{j(t)},isLinked:S,units:s,selectedUnits:E,setSelectedUnits:P,sides:u,values:b,onMouseOver:h,onMouseOut:m,__next40pxDefaultSize:e};return(0,wt.jsxs)(Sj,{id:T,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":R,children:[(0,wt.jsx)(Zx.VisualLabel,{id:R,children:o}),S&&(0,wt.jsxs)(Qj,{children:[(0,wt.jsx)(tE,{side:k,sides:u}),(0,wt.jsx)(hE,{...I})]}),!y&&(0,wt.jsx)(eE,{children:(0,wt.jsx)(xE,{onClick:()=>{C(!S),j(dE(!S,d))},isLinked:S})}),!S&&d&&(0,wt.jsx)(bE,{...I}),!S&&!d&&(0,wt.jsx)(gE,{...I}),p&&(0,wt.jsx)(Jj,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:()=>{r(f),v(f),P(f),_(!1)},disabled:!w,children:(0,a.__)("Reset")})]})}const SE=_E;const CE=(0,c.forwardRef)((function(e,t){const{className:n,...r}=e,o=s("components-button-group",n);return(0,wt.jsx)("div",{ref:t,role:"group",className:o,...r})}));const kE={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function jE(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const EE=Xa((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:a=0,value:l=0,...u}=Ya(e,"Elevation"),d=qa();return{...u,className:(0,c.useMemo)((()=>{let e=qg(i)?i:2*l,c=qg(t)?t:l/2;s||(e=qg(i)?i:void 0,c=qg(t)?t:void 0);const u=`box-shadow ${Tl.transitionDuration} ${Tl.transitionTimingFunction}`,p={};return p.Base=bl({borderRadius:n,bottom:a,boxShadow:jE(l),opacity:Tl.elevationIntensity,left:a,right:a,top:a},bl("@media not ( prefers-reduced-motion ){transition:",u,";}",""),"",""),qg(e)&&(p.hover=bl("*:hover>&{box-shadow:",jE(e),";}","")),qg(c)&&(p.active=bl("*:active>&{box-shadow:",jE(c),";}","")),qg(o)&&(p.focus=bl("*:focus>&{box-shadow:",jE(o),";}","")),d(kE,p.Base,p.hover,p.focus,p.active,r)}),[t,n,r,d,o,i,s,a,l]),"aria-hidden":!0}}(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"Elevation"),PE=EE;const TE=`calc(${Tl.radiusLarge} - 1px)`,RE=bl("box-shadow:0 0 0 1px ",Tl.surfaceBorderColor,";outline:none;",""),IE={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},NE={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},ME={name:"13udsys",styles:"height:100%"},AE={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},DE={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},OE={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},zE=bl("&:first-of-type{border-top-left-radius:",TE,";border-top-right-radius:",TE,";}&:last-of-type{border-bottom-left-radius:",TE,";border-bottom-right-radius:",TE,";}",""),LE=bl("border-color:",Tl.colorDivider,";",""),FE={name:"1t90u8d",styles:"box-shadow:none"},BE={name:"1e1ncky",styles:"border:none"},VE=bl("border-radius:",TE,";",""),$E=bl("padding:",Tl.cardPaddingXSmall,";",""),HE={large:bl("padding:",Tl.cardPaddingLarge,";",""),medium:bl("padding:",Tl.cardPaddingMedium,";",""),small:bl("padding:",Tl.cardPaddingSmall,";",""),xSmall:$E,extraSmall:$E},WE=bl("background-color:",jl.ui.backgroundDisabled,";",""),UE=bl("background-color:",Tl.surfaceColor,";color:",jl.gray[900],";position:relative;","");Tl.surfaceBackgroundColor;function GE({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Tl.surfaceBorderColor}`;return bl({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const KE=bl("",""),qE=bl("background:",Tl.surfaceBackgroundTintColor,";",""),YE=bl("background:",Tl.surfaceBackgroundTertiaryColor,";",""),XE=e=>[e,e].join(" "),ZE=e=>["90deg",[Tl.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),QE=e=>[[Tl.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),JE=(e,t)=>bl("background:",(e=>[`linear-gradient( ${ZE(e)} ) center`,`linear-gradient( ${QE(e)} ) center`,Tl.surfaceBorderBoldColor].join(","))(t),";background-size:",XE(e),";",""),eP=[`linear-gradient( ${[`${Tl.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Tl.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),tP=(e,t,n)=>{switch(e){case"dotted":return JE(t,n);case"grid":return(e=>bl("background:",Tl.surfaceBackgroundColor,";background-image:",eP,";background-size:",XE(e),";",""))(t);case"primary":return KE;case"secondary":return qE;case"tertiary":return YE}};function nP(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:a="primary",...l}=Ya(e,"Surface"),u=qa();return{...l,className:(0,c.useMemo)((()=>{const e={borders:GE({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(UE,e.borders,tP(a,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,u,a])}}function rP(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Ya(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(Fi()("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"),a=qa();return{...nP({...s,className:(0,c.useMemo)((()=>a(RE,r&&FE,o&&VE,t)),[t,a,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const oP=Xa((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...a}=rP(e),l=i?Tl.radiusLarge:0,u=qa(),d=(0,c.useMemo)((()=>u(bl({borderRadius:l},"",""))),[u,l]),p=(0,c.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,wt.jsx)(is,{value:p,children:(0,wt.jsxs)(dl,{...a,ref:t,children:[(0,wt.jsx)(dl,{className:u(ME),children:n}),(0,wt.jsx)(PE,{className:d,isInteractive:!1,value:r?1:0}),(0,wt.jsx)(PE,{className:d,isInteractive:!1,value:r})]})})}),"Card"),iP=oP;const sP=bl("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Tl.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Tl.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Tl.colorScrollbarThumbHover,";}}",""),aP={name:"13udsys",styles:"height:100%"},lP={name:"7zq9w",styles:"scroll-behavior:smooth"},cP={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},uP={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},dP={name:"umwchj",styles:"overflow-y:auto"};const pP=Xa((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Ya(e,"Scrollable"),i=qa();return{...o,className:(0,c.useMemo)((()=>i(aP,sP,r&&lP,"x"===n&&cP,"y"===n&&uP,"auto"===n&&dP,t)),[t,i,n,r])}}(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"Scrollable"),fP=pP;const hP=Xa((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Ya(e,"CardBody"),s=qa();return{...i,className:(0,c.useMemo)((()=>s(AE,zE,HE[o],r&&WE,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,wt.jsx)(fP,{...r,ref:t}):(0,wt.jsx)(dl,{...r,ref:t})}),"CardBody"),mP=hP;var gP=kt((function(e){var t=e,{orientation:n="horizontal"}=t,r=x(t,["orientation"]);return r=v({role:"separator","aria-orientation":n},r)})),vP=_t((function(e){return Ct("hr",gP(e))}));const bP={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}},xP=({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>bl(Bg({[bP[e].start]:wl(null!=n?n:t),[bP[e].end]:wl(null!=r?r:t)})(),"","");var yP={name:"1u4hpl4",styles:"display:inline"};const wP=({"aria-orientation":e="horizontal"})=>"vertical"===e?yP:void 0,_P=({"aria-orientation":e="horizontal"})=>bl({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""),SP=({"aria-orientation":e="horizontal"})=>bl({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""),CP=cl("hr",{target:"e19on6iw0"})("border:0;margin:0;",wP," ",_P," ",SP," ",xP,";");const kP=Xa((function(e,t){const n=Ya(e,"Divider");return(0,wt.jsx)(vP,{render:(0,wt.jsx)(CP,{}),...n,ref:t})}),"Divider");const jP=Xa((function(e,t){const n=function(e){const{className:t,...n}=Ya(e,"CardDivider"),r=qa();return{...n,className:(0,c.useMemo)((()=>r(OE,LE,"components-card__divider",t)),[t,r])}}(e);return(0,wt.jsx)(kP,{...n,ref:t})}),"CardDivider"),EP=jP;const PP=Xa((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=Ya(e,"CardFooter"),a=qa();return{...s,className:(0,c.useMemo)((()=>a(NE,zE,LE,HE[i],r&&BE,o&&WE,"components-card__footer",t)),[t,a,r,o,i]),justify:n}}(e);return(0,wt.jsx)(Ig,{...n,ref:t})}),"CardFooter"),TP=PP;const RP=Xa((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Ya(e,"CardHeader"),s=qa();return{...i,className:(0,c.useMemo)((()=>s(IE,zE,LE,HE[o],n&&BE,r&&WE,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,wt.jsx)(Ig,{...n,ref:t})}),"CardHeader"),IP=RP;const NP=Xa((function(e,t){const n=function(e){const{className:t,...n}=Ya(e,"CardMedia"),r=qa();return{...n,className:(0,c.useMemo)((()=>r(DE,zE,"components-card__media",t)),[t,r])}}(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"CardMedia"),MP=NP;const AP=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:a,indeterminate:u,help:d,id:p,onChange:f,...h}=t;i&&Fi()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[m,g]=(0,c.useState)(!1),[v,b]=(0,c.useState)(!1),x=(0,l.useRefEffect)((e=>{e&&(e.indeterminate=!!u,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[a,u]),y=(0,l.useInstanceId)(e,"inspector-checkbox-control",p);return(0,wt.jsx)(Qx,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"CheckboxControl",label:i,id:y,help:d&&(0,wt.jsx)("span",{className:"components-checkbox-control__help",children:d}),className:s("components-checkbox-control",o),children:(0,wt.jsxs)(yy,{spacing:0,justify:"start",alignment:"top",children:[(0,wt.jsxs)("span",{className:"components-checkbox-control__input-container",children:[(0,wt.jsx)("input",{ref:x,id:y,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>f(e.target.checked),checked:a,"aria-describedby":d?y+"__help":void 0,...h}),v?(0,wt.jsx)(vS,{icon:Ug,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,m?(0,wt.jsx)(vS,{icon:xk,className:"components-checkbox-control__checked",role:"presentation"}):null]}),r&&(0,wt.jsx)("label",{className:"components-checkbox-control__label",htmlFor:y,children:r})]})})},DP=4e3;function OP({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){Fi()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const a=(0,c.useRef)(),u=(0,l.useCopyToClipboard)(o,(()=>{n(),a.current&&clearTimeout(a.current),r&&(a.current=setTimeout((()=>r()),DP))}));(0,c.useEffect)((()=>{a.current&&clearTimeout(a.current)}),[]);const d=s("components-clipboard-button",e);return(0,wt.jsx)(sy,{...i,className:d,ref:u,onCopy:e=>{e.target.focus()},children:t})}const zP=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});const LP=e=>bl("font-size:",Fx("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:",jl.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",jl.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),FP={name:"1bcj5ek",styles:"width:100%;display:block"},BP={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},VP=bl("border:1px solid ",Tl.surfaceBorderColor,";",""),$P=bl(">*:not( marquee )>*{border-bottom:1px solid ",Tl.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),HP=Tl.radiusSmall,WP=bl("border-radius:",HP,";",""),UP=bl("border-radius:",HP,";>*:first-of-type>*{border-top-left-radius:",HP,";border-top-right-radius:",HP,";}>*:last-of-type>*{border-bottom-left-radius:",HP,";border-bottom-right-radius:",HP,";}",""),GP=`calc(${Tl.fontSize} * ${Tl.fontLineHeightBase})`,KP=`calc((${Tl.controlHeight} - ${GP} - 2px) / 2)`,qP=`calc((${Tl.controlHeightSmall} - ${GP} - 2px) / 2)`,YP=`calc((${Tl.controlHeightLarge} - ${GP} - 2px) / 2)`,XP={small:bl("padding:",qP," ",Tl.controlPaddingXSmall,"px;",""),medium:bl("padding:",KP," ",Tl.controlPaddingX,"px;",""),large:bl("padding:",YP," ",Tl.controlPaddingXLarge,"px;","")};const ZP=(0,c.createContext)({size:"medium"}),QP=()=>(0,c.useContext)(ZP);const JP=Xa((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...s}=Ya(e,"ItemGroup");return{isBordered:n,className:qa()(n&&VP,o&&$P,r&&UP,t),role:i,isSeparated:o,...s}}(e),{size:s}=QP(),a={spacedAround:!n&&!r,size:o||s};return(0,wt.jsx)(ZP.Provider,{value:a,children:(0,wt.jsx)(dl,{...i,ref:t})})}),"ItemGroup"),eT=10,tT=0,nT=eT;function rT(e){return Math.max(0,Math.min(100,e))}function oT(e,t,n){const r=e.slice();return r[t]=n,r}function iT(e,t,n){if(function(e,t,n,r=tT){const o=e[t].position,i=Math.min(o,n),s=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<s)))}(e,t,n))return e;return oT(e,t,{...e[t],position:n})}function sT(e,t,n){return oT(e,t,{...e[t],color:n})}function aT(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(rT(100*o/r))}function lT({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${(0,l.useInstanceId)(lT)}`;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sy,{"aria-label":(0,a.sprintf)((0,a.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:s("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,wt.jsx)(pl,{id:o,children:(0,a.__)("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 cT({isRenderedInSidebar:e,className:t,...n}){const r=(0,c.useMemo)((()=>({placement:"bottom",offset:8,resize:!1})),[]),o=s("components-custom-gradient-picker__control-point-dropdown",t);return(0,wt.jsx)(Lk,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function uT({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:u}){const d=(0,c.useRef)(),p=e=>{if(void 0===d.current||null===n.current)return;const t=aT(e.clientX,n.current),{initialPosition:r,index:s,significantMoveHappened:a}=d.current;!a&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),i(iT(o,s,t))},f=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",f),l(),d.current.listenersActivated=!1)},h=(0,c.useRef)();return h.current=f,(0,c.useEffect)((()=>()=>{h.current?.()}),[]),(0,wt.jsx)(wt.Fragment,{children:o.map(((n,c)=>{const h=n?.position;return r!==h&&(0,wt.jsx)(cT,{isRenderedInSidebar:u,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,wt.jsx)(lT,{onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:c,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",p),window.addEventListener("mouseup",f))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(iT(o,c,rT(n.position-nT)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(iT(o,c,rT(n.position+nT))))},isOpen:e,position:n.position,color:n.color},c),renderContent:({onClose:r})=>(0,wt.jsxs)(Mk,{paddingSize:"none",children:[(0,wt.jsx)(vk,{enableAlpha:!t,color:n.color,onChange:e=>{i(sT(o,c,Ev(e).toRgbString()))}}),!e&&o.length>2&&(0,wt.jsx)(yy,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center",children:(0,wt.jsx)(sy,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,c)),r()},variant:"link",children:(0,a.__)("Remove Control Point")})})]}),style:{left:`${n.position}%`,transform:"translateX( -50% )"}},c)}))})}uT.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[a,l]=(0,c.useState)(!1);return(0,wt.jsx)(cT,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,wt.jsx)(sy,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(l(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:Wg}),renderContent:()=>(0,wt.jsx)(Mk,{paddingSize:"none",children:(0,wt.jsx)(vk,{enableAlpha:!i,onChange:n=>{a?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return sT(e,r,n)}(e,o,Ev(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,o,Ev(n).toRgbString())),l(!0))}})}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};const dT=uT,pT=(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},fT={id:"IDLE"};function hT({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:a=!1}){const l=(0,c.useRef)(null),[u,d]=(0,c.useReducer)(pT,fT),p=e=>{if(!l.current)return;const t=aT(e.clientX,l.current);n.some((({position:e})=>Math.abs(t-e)<eT))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},f="MOVING_INSERTER"===u.id,h="INSERTING_CONTROL_POINT"===u.id;return(0,wt.jsxs)("div",{className:s("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:p,onMouseMove:p,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})},children:[(0,wt.jsx)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,wt.jsxs)("div",{ref:l,className:"components-custom-gradient-picker__markers-container",children:[!o&&(f||h)&&(0,wt.jsx)(dT.InsertPoint,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,insertPosition:u.insertPosition,value:n,onChange:r,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,wt.jsx)(dT,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,disableRemove:o,gradientPickerDomRef:l,ignoreMarkerPosition:h?u.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})]})]})}var mT=o(8924);const gT="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",vT={type:"angular",value:"90"},bT=[{value:"linear-gradient",label:(0,a.__)("Linear")},{value:"radial-gradient",label:(0,a.__)("Radial")}],xT={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 yT({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 wT({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(yT)].filter(Boolean).join(",")})`}function _T(e){return void 0===e.length||"%"!==e.length.type}function ST(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"}}Tv([Rv]);const CT=cl(Mg,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),kT=cl(Mg,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),jT=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,wt.jsx)(Ty,{onChange:t=>{n(wT({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},ET=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,wt.jsx)(_S,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,a.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(wT({...e,orientation:e.orientation?void 0:vT,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(wT({...r,type:"radial-gradient"}))})()},options:bT,size:"__unstable-large",value:t?r:void 0})};const PT=function({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:r,hasGradient:o}=function(e){let t,n=!!e;const r=null!=e?e:gT;try{t=mT.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=mT.parse(gT)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:xT[t.orientation.value].toString()}),t.colorStops.some(_T)){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),i=function(e){return wT({type:"linear-gradient",orientation:vT,colorStops:e.colorStops})}(r),s=r.colorStops.map((e=>({color:ST(e),position:parseInt(e.length.value)})));return(0,wt.jsxs)(jk,{spacing:4,className:"components-custom-gradient-picker",children:[(0,wt.jsx)(hT,{__experimentalIsRenderedInSidebar:n,background:i,hasGradient:o,value:s,onChange:e=>{t(wT(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Ev(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(r,e)))}}),(0,wt.jsxs)(Ig,{gap:3,className:"components-custom-gradient-picker__ui-line",children:[(0,wt.jsx)(CT,{children:(0,wt.jsx)(ET,{gradientAST:r,hasGradient:o,onChange:t})}),(0,wt.jsx)(kT,{children:"linear-gradient"===r.type&&(0,wt.jsx)(jT,{gradientAST:r,hasGradient:o,onChange:t})})]})]})},TT=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function RT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,...i}){const s=(0,c.useMemo)((()=>n.map((({gradient:e,name:n,slug:i},s)=>(0,wt.jsx)(kk.Option,{value:e,isSelected:o===e,tooltipText:n||(0,a.sprintf)((0,a.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,s),"aria-label":n?(0,a.sprintf)((0,a.__)("Gradient: %s"),n):(0,a.sprintf)((0,a.__)("Gradient code: %s"),e)},i)))),[n,o,r,t]);return(0,wt.jsx)(kk.OptionGroup,{className:e,options:s,...i})}function IT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,headingLevel:i}){const s=(0,l.useInstanceId)(IT);return(0,wt.jsx)(jk,{spacing:3,className:e,children:n.map((({name:e,gradients:n},a)=>{const l=`color-palette-${s}-${a}`;return(0,wt.jsxs)(jk,{spacing:2,children:[(0,wt.jsx)(Rk,{level:i,id:l,children:e}),(0,wt.jsx)(RT,{clearGradient:t,gradients:n,onChange:e=>r(e,a),value:o,"aria-labelledby":l})]},a)}))})}function NT(e){const{asButtons:t,loop:n,actions:r,headingLevel:o,"aria-label":i,"aria-labelledby":s,...l}=e,c=TT(e.gradients)?(0,wt.jsx)(IT,{headingLevel:o,...l}):(0,wt.jsx)(RT,{...l});let u;if(t)u={asButtons:!0};else{const e={asButtons:!1,loop:n};u=i?{...e,"aria-label":i}:s?{...e,"aria-labelledby":s}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}return(0,wt.jsx)(kk,{...u,actions:r,options:c})}const MT=function({className:e,gradients:t=[],onChange:n,value:r,clearable:o=!0,disableCustomGradients:i=!1,__experimentalIsRenderedInSidebar:s,headingLevel:l=2,...u}){const d=(0,c.useCallback)((()=>n(void 0)),[n]);return(0,wt.jsxs)(jk,{spacing:t.length?4:0,children:[!i&&(0,wt.jsx)(PT,{__experimentalIsRenderedInSidebar:s,value:r,onChange:n}),(t.length>0||o)&&(0,wt.jsx)(NT,{...u,className:e,clearGradient:d,gradients:t,onChange:n,value:r,actions:o&&!i&&(0,wt.jsx)(kk.ButtonAction,{onClick:d,children:(0,a.__)("Clear")}),headingLevel:l})]})},AT=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})}),DT=window.wp.dom,OT=()=>{},zT=["menuitem","menuitemradio","menuitemcheckbox"];class LT extends c.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?DT.focus.tabbable:DT.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=OT,stopNavigationEvents:i}=this.props,s=r(e);if(void 0!==s&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&zT.includes(t)&&e.preventDefault()}if(!s)return;const a=e.target?.ownerDocument?.activeElement;if(!a)return;const l=t(a);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,s):c+s;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:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:s,forwardedRef:a,...l}=this.props;return(0,wt.jsx)("div",{ref:this.bindContainer,...l,children:e})}}const FT=(e,t)=>(0,wt.jsx)(LT,{...e,forwardedRef:t});FT.displayName="NavigableContainer";const BT=(0,c.forwardRef)(FT);const VT=(0,c.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,wt.jsx)(BT,{ref:r,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})})),$T=VT;function HT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=s(t.className,e.className)),n}function WT(e){return"function"==typeof e}const UT=Za((function(e){const{children:t,className:n,controls:r,icon:o=AT,label:i,popoverProps:a,toggleProps:l,menuProps:c,disableOpenOnArrowDown:u=!1,text:d,noIcons:p,open:f,defaultOpen:h,onToggle:m,variant:g}=Ya(e,"DropdownMenu");if(!r?.length&&!WT(t))return null;let v;r?.length&&(v=r,Array.isArray(v[0])||(v=[r]));const b=HT({className:"components-dropdown-menu__popover",variant:g},a);return(0,wt.jsx)(rS,{className:n,popoverProps:b,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=sy,...a}=null!=l?l:{},c=HT({className:s("components-dropdown-menu__toggle",{"is-opened":e})},a);return(0,wt.jsx)(r,{...c,icon:o,onClick:e=>{t(),c.onClick&&c.onClick(e)},onKeyDown:n=>{(n=>{u||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),c.onKeyDown&&c.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:d,showTooltip:null===(n=l?.showTooltip)||void 0===n||n,children:c.children})},renderContent:e=>{const n=HT({"aria-label":i,className:s("components-dropdown-menu__menu",{"no-icons":p})},c);return(0,wt.jsxs)($T,{...n,role:"menu",children:[WT(t)?t(e):null,v?.flatMap(((t,n)=>t.map(((t,r)=>(0,wt.jsx)(sy,{onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:s("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"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",accessibleWhenDisabled:!0,disabled:t.isDisabled,children:t.title},[n,r].join())))))]})},open:f,defaultOpen:h,onToggle:m})}),"DropdownMenu"),GT=UT;const KT=cl(Q_,{target:"e1lpqc909"})("&&{flex-shrink:0;width:",wl(6),";height:",wl(6),";}"),qT=cl(ty,{target:"e1lpqc908"})(sb,"{background:",jl.gray[100],";border-radius:",Tl.radiusXSmall,";",fb,fb,fb,fb,"{height:",wl(8),";}",tb,tb,tb,"{border-color:transparent;box-shadow:none;}}"),YT=({as:e})=>"button"===e?bl("display:flex;align-items:center;width:100%;appearance:none;background:transparent;border:none;border-radius:0;padding:0;cursor:pointer;&:hover{color:",jl.theme.accent,";}",""):null,XT=cl(dl,{target:"e1lpqc907"})(YT," padding-block:3px;padding-inline-start:",wl(3),";border:1px solid ",Tl.surfaceBorderColor,";border-bottom-color:transparent;font-size:",Fx("default.fontSize"),";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",jl.theme.accent,";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:",Tl.radiusSmall,";border-top-right-radius:",Tl.radiusSmall,";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:",Tl.radiusSmall,";border-bottom-right-radius:",Tl.radiusSmall,";border-bottom-color:",Tl.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",jl.theme.accent,";}"),ZT=cl("div",{target:"e1lpqc906"})("line-height:",wl(8),";margin-left:",wl(2),";margin-right:",wl(2),";white-space:nowrap;overflow:hidden;"),QT=cl(Tk,{target:"e1lpqc905"})("text-transform:uppercase;line-height:",wl(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),JT=cl(dl,{target:"e1lpqc904"})("height:",wl(6),";display:flex;"),eR=cl(dl,{target:"e1lpqc903"})("margin-top:",wl(2),";"),tR=cl(dl,{target:"e1lpqc902"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),nR=cl(sy,{target:"e1lpqc901"})("&&{color:",jl.theme.accent,";}"),rR=cl(sy,{target:"e1lpqc900"})("&&{margin-top:",wl(1),";}");function oR({value:e,onChange:t,label:n}){return(0,wt.jsx)(qT,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function iR({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,c.useMemo)((()=>({shift:!0,offset:20,resize:!1,placement:"left-start",...r,className:s("components-palette-edit__popover",r?.className)})),[r]);return(0,wt.jsxs)(Dw,{...i,onClose:o,children:[!e&&(0,wt.jsx)(vk,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,wt.jsx)("div",{className:"components-palette-edit__popover-gradient-picker",children:(0,wt.jsx)(PT,{__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})})]})}function sR({canOnlyChangeValues:e,element:t,onChange:n,onRemove:r,popoverProps:o,slugPrefix:i,isGradient:s}){const l=s?t.gradient:t.color,[u,d]=(0,c.useState)(!1),[p,f]=(0,c.useState)(null),h=(0,c.useMemo)((()=>({...o,anchor:p})),[p,o]);return(0,wt.jsxs)(XT,{ref:f,as:"div",children:[(0,wt.jsxs)(yy,{justify:"flex-start",children:[(0,wt.jsx)(sy,{onClick:()=>{d(!0)},"aria-label":(0,a.sprintf)((0,a.__)("Edit: %s"),t.name.trim().length?t.name:l),style:{padding:0},children:(0,wt.jsx)(KT,{colorValue:l})}),(0,wt.jsx)(Gg,{children:e?(0,wt.jsx)(ZT,{children:t.name.trim().length?t.name:" "}):(0,wt.jsx)(oR,{label:s?(0,a.__)("Gradient name"):(0,a.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:i+zy(null!=e?e:"")})})}),!e&&(0,wt.jsx)(Gg,{children:(0,wt.jsx)(rR,{size:"small",icon:t_,label:(0,a.sprintf)((0,a.__)("Remove color: %s"),t.name.trim().length?t.name:l),onClick:r})})]}),u&&(0,wt.jsx)(iR,{isGradient:s,onChange:n,element:t,popoverProps:h,onClose:()=>d(!1)})]})}function aR({elements:e,onChange:t,canOnlyChangeValues:n,slugPrefix:r,isGradient:o,popoverProps:i,addColorRef:s}){const a=(0,c.useRef)();(0,c.useEffect)((()=>{a.current=e}),[e]);const u=(0,l.useDebounce)((e=>t(function(e){const t={};return e.map((e=>{var n;let r;const{slug:o}=e;return t[o]=(t[o]||0)+1,t[o]>1&&(r=`${o}-${t[o]-1}`),{...e,slug:null!==(n=r)&&void 0!==n?n:o}}))}(e))),100);return(0,wt.jsx)(jk,{spacing:3,children:(0,wt.jsx)(JP,{isRounded:!0,children:e.map(((a,l)=>(0,wt.jsx)(sR,{isGradient:o,canOnlyChangeValues:n,element:a,onChange:t=>{u(e.map(((e,n)=>n===l?t:e)))},onRemove:()=>{const n=e.filter(((e,t)=>t!==l));t(n.length?n:void 0),s.current?.focus()},slugPrefix:r,popoverProps:i},l)))})})}const lR=[];const cR=function({gradients:e,colors:t=lR,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:u,slugPrefix:d="",popoverProps:p}){const f=!!e,h=f?e:t,[m,g]=(0,c.useState)(!1),[v,b]=(0,c.useState)(null),x=m&&!!v&&h[v]&&!h[v].slug,y=h.length>0,w=(0,l.useDebounce)(n,100),_=(0,c.useCallback)(((e,t)=>{const n=void 0===t?void 0:h[t];n&&n[f?"gradient":"color"]===e?b(t):g(!0)}),[f,h]),S=(0,c.useRef)(null);return(0,wt.jsxs)(tR,{children:[(0,wt.jsxs)(yy,{children:[(0,wt.jsx)(QT,{level:o,children:r}),(0,wt.jsxs)(JT,{children:[y&&m&&(0,wt.jsx)(nR,{size:"small",onClick:()=>{g(!1),b(null)},children:(0,a.__)("Done")}),!s&&(0,wt.jsx)(sy,{ref:S,size:"small",isPressed:x,icon:Wg,label:f?(0,a.__)("Add gradient"):(0,a.__)("Add color"),onClick:()=>{const{name:r,slug:o}=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{name:(0,a.sprintf)((0,a.__)("Color %s"),r),slug:`${t}color-${r}`}}(h,d);n(e?[...e,{gradient:gT,name:r,slug:o}]:[...t,{color:"#000",name:r,slug:o}]),g(!0),b(h.length)}}),y&&(!m||!s||u)&&(0,wt.jsx)(GT,{icon:zP,label:f?(0,a.__)("Gradient options"):(0,a.__)("Color options"),toggleProps:{size:"small"},children:({onClose:e})=>(0,wt.jsx)(wt.Fragment,{children:(0,wt.jsxs)($T,{role:"menu",children:[!m&&(0,wt.jsx)(sy,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button",children:(0,a.__)("Show details")}),!s&&(0,wt.jsx)(sy,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button",children:f?(0,a.__)("Remove all gradients"):(0,a.__)("Remove all colors")}),u&&(0,wt.jsx)(sy,{variant:"tertiary",onClick:()=>{b(null),n(),e()},children:f?(0,a.__)("Reset gradient"):(0,a.__)("Reset colors")})]})})})]})]}),y&&(0,wt.jsxs)(eR,{children:[m&&(0,wt.jsx)(aR,{canOnlyChangeValues:s,elements:h,onChange:n,slugPrefix:d,isGradient:f,popoverProps:p,addColorRef:S}),!m&&null!==v&&(0,wt.jsx)(iR,{isGradient:f,onClose:()=>b(null),onChange:e=>{w(h.map(((t,n)=>n===v?e:t)))},element:h[null!=v?v:-1],popoverProps:p}),!m&&(f?(0,wt.jsx)(MT,{gradients:e,onChange:_,clearable:!1,disableCustomGradients:!0}):(0,wt.jsx)(Bk,{colors:t,onChange:_,clearable:!1,disableCustomColors:!0}))]}),!y&&i&&(0,wt.jsx)(eR,{children:i})]})},uR=({__next40pxDefaultSize:e})=>!e&&bl("height:28px;padding-left:",wl(1),";padding-right:",wl(1),";",""),dR=cl(Ig,{target:"evuatpg0"})("height:38px;padding-left:",wl(2),";padding-right:",wl(2),";",uR,";");const pR=(0,c.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:a,onChange:l,onFocus:u,onBlur:d,...p}=e,[f,h]=(0,c.useState)(!1),m=n?n.length+1:0;return(0,wt.jsx)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...p,value:n||"",onChange:e=>{l&&l({value:e.target.value})},onFocus:e=>{h(!0),u?.(e)},onBlur:e=>{h(!1),d?.(e)},size:m,className:s(a,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":f&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})})),fR=pR,hR=e=>{e.preventDefault()};const mR=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:a,instanceId:c,__experimentalRenderItem:u}){const d=(0,l.useRefEffect)((n=>(e>-1&&t&&n.children[e]&&n.children[e].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),()=>{0})),[e,t]),p=e=>()=>{r?.(e)},f=e=>()=>{o?.(e)};return(0,wt.jsx)("ul",{ref:d,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox",children:i.map(((t,r)=>{const o=(e=>{const t=a(n).toLocaleLowerCase();if(0===t.length)return null;const r=a(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),i=r===e,l="object"==typeof t&&t?.disabled,d="object"==typeof t&&"value"in t?t?.value:a(t),h=s("components-form-token-field__suggestion",{"is-selected":i});let m;return m="function"==typeof u?u({item:t}):o?(0,wt.jsxs)("span",{"aria-label":a(t),children:[o.suggestionBeforeMatch,(0,wt.jsx)("strong",{className:"components-form-token-field__suggestion-match",children:o.suggestionMatch}),o.suggestionAfterMatch]}):a(t),(0,wt.jsx)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:h,onMouseDown:hR,onClick:f(t),onMouseEnter:p(t),"aria-selected":r===e,"aria-disabled":l,children:m},d)}))})},gR=(0,l.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,c.useState)(void 0),o=(0,c.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,wt.jsx)("div",{...(0,l.__experimentalUseFocusOutside)(n),children:(0,wt.jsx)(e,{ref:o,...t})})}),"withFocusOutside"),vR=()=>{},bR=gR(class extends c.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),xR=(e,t)=>null===e?-1:t.indexOf(e);const yR=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:u,options:d,onChange:p,onFilterValueChange:f=vR,hideLabelFromVision:h,help:m,allowReset:g=!0,className:v,messages:b={selected:(0,a.__)("Item selected.")},__experimentalRenderItem:x,expandOnFocus:y=!0,placeholder:w}=_b(t),[_,S]=E_({value:i,onChange:p}),C=d.find((e=>e.value===_)),k=null!==(n=C?.label)&&void 0!==n?n:"",j=(0,l.useInstanceId)(e,"combobox-control"),[E,P]=(0,c.useState)(C||null),[T,R]=(0,c.useState)(!1),[I,N]=(0,c.useState)(!1),[M,A]=(0,c.useState)(""),D=(0,c.useRef)(null),O=(0,c.useMemo)((()=>{const e=[],t=[],n=Oy(M);return d.forEach((r=>{const o=Oy(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,d]),z=e=>{e.disabled||(S(e.value),(0,My.speak)(b.selected,"assertive"),P(e),A(""),R(!1))},L=(e=1)=>{let t=xR(E,O)+e;t<0?t=O.length-1:t>=O.length&&(t=0),P(O[t]),R(!0)},F=Ax((e=>{let t=!1;if(!e.defaultPrevented){switch(e.code){case"Enter":E&&(z(E),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":R(!1),P(null),t=!0}t&&e.preventDefault()}}));return(0,c.useEffect)((()=>{const e=O.length>0,t=xR(E,O)>0;e&&!t&&P(O[0])}),[O,E]),(0,c.useEffect)((()=>{const e=O.length>0;if(T){const t=e?(0,a.sprintf)((0,a._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",O.length),O.length):(0,a.__)("No results.");(0,My.speak)(t,"polite")}}),[O,T]),(0,wt.jsx)(bR,{onFocusOutside:()=>{R(!1)},children:(0,wt.jsx)(Qx,{__nextHasNoMarginBottom:r,__associatedWPComponentName:"ComboboxControl",className:s(v,"components-combobox-control"),label:u,id:`components-form-token-input-${j}`,hideLabelFromVision:h,help:m,children:(0,wt.jsxs)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:F,children:[(0,wt.jsxs)(dR,{__next40pxDefaultSize:o,children:[(0,wt.jsx)(Mg,{children:(0,wt.jsx)(fR,{className:"components-combobox-control__input",instanceId:j,ref:D,placeholder:w,value:T?M:k,onFocus:()=>{N(!0),y&&R(!0),f(""),A("")},onBlur:()=>{N(!1)},onClick:()=>{R(!0)},isExpanded:T,selectedSuggestionIndex:xR(E,O),onChange:e=>{const t=e.value;A(t),f(t),I&&R(!0)}})}),g&&(0,wt.jsx)(Gg,{children:(0,wt.jsx)(sy,{className:"components-combobox-control__reset",icon:e_,disabled:!_,onClick:()=>{S(null),D.current?.focus()},onKeyDown:e=>{e.stopPropagation()},label:(0,a.__)("Reset")})})]}),T&&(0,wt.jsx)(mR,{instanceId:j,match:{label:M,value:""},displayTransform:e=>e.label,suggestions:O,selectedIndex:xR(E,O),onHover:P,onSelect:z,scrollIntoView:!0,__experimentalRenderItem:x})]})})})};function wR(e){if(e.state){const{state:t,...n}=e,{store:r,...o}=wR(t);return{...n,...o,store:r}}return e}const _R={__unstableComposite:"Composite",__unstableCompositeGroup:"Composite.Group or Composite.Row",__unstableCompositeItem:"Composite.Item",__unstableUseCompositeState:"Composite"};function SR(e,t={}){var n;const r=null!==(n=e.displayName)&&void 0!==n?n:"",o=n=>{Fi()(`wp.components.${r}`,{since:"6.7",alternative:_R.hasOwnProperty(r)?_R[r]:void 0});const{store:o,...i}=wR(n),s=i;return s.id=(0,l.useInstanceId)(o,s.baseId,s.id),Object.entries(t).forEach((([e,t])=>{s.hasOwnProperty(e)&&(Object.assign(s,{[t]:s[e]}),delete s[e])})),delete s.baseId,(0,wt.jsx)(e,{...s,store:o})};return o.displayName=r,o}const CR=(0,c.forwardRef)((({role:e,...t},n)=>{const r="row"===e?Dn.Row:Dn.Group;return(0,wt.jsx)(r,{ref:n,role:e,...t})})),kR=SR(Object.assign(Dn,{displayName:"__unstableComposite"}),{baseId:"id"}),jR=SR(Object.assign(CR,{displayName:"__unstableCompositeGroup"})),ER=SR(Object.assign(Dn.Item,{displayName:"__unstableCompositeItem"}),{focusable:"accessibleWhenDisabled"});function PR(e={}){Fi()("wp.components.__unstableUseCompositeState",{since:"6.7",alternative:_R.__unstableUseCompositeState});const{baseId:t,currentId:n,orientation:r,rtl:o=!1,loop:i=!1,wrap:s=!1,shift:a=!1,unstable_virtual:c}=e;return{baseId:(0,l.useInstanceId)(kR,"composite",t),store:gt({defaultActiveId:n,rtl:o,orientation:r,focusLoop:i,focusShift:a,focusWrap:s,virtualFocus:c})}}const TR=new Set(["alert","status","log","marquee","timer"]),RR=[];function IR(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&TR.has(t))}const NR=Tl.transitionDuration,MR=Number.parseInt(Tl.transitionDuration),AR="components-modal__disappear-animation";const DR=(0,c.createContext)(new Set),OR=new Map;const zR=(0,c.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:u=!0,shouldCloseOnClickOutside:d=!0,isDismissible:p=!0,aria:f={labelledby:void 0,describedby:void 0},onRequestClose:h,icon:m,closeButtonLabel:g,children:v,style:b,overlayClassName:x,className:y,contentLabel:w,onKeyDown:_,isFullScreen:S=!1,size:C,headerActions:k=null,__experimentalHideHeader:j=!1}=e,E=(0,c.useRef)(),P=(0,l.useInstanceId)(zR),T=o?`components-modal-header-${P}`:f.labelledby,R=(0,l.useFocusOnMount)("firstContentElement"===i?"firstElement":i),I=(0,l.useConstrainedTabbing)(),N=(0,l.useFocusReturn)(),M=(0,c.useRef)(null),A=(0,c.useRef)(null),[D,O]=(0,c.useState)(!1),[z,L]=(0,c.useState)(!1);let F;S||"fill"===C?F="is-full-screen":C&&(F=`has-size-${C}`);const B=(0,c.useCallback)((()=>{if(!M.current)return;const e=(0,DT.getScrollContainer)(M.current);M.current===e?L(!0):L(!1)}),[M]);(0,c.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];RR.push(n);for(const r of t)r!==e&&IR(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(E.current),()=>function(){const e=RR.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]);const V=(0,c.useRef)();(0,c.useEffect)((()=>{V.current=h}),[h]);const $=(0,c.useContext)(DR),[H]=(0,c.useState)((()=>new Set));(0,c.useEffect)((()=>{$.add(V);for(const e of $)e!==V&&e.current?.();return()=>{for(const e of H)e.current?.();$.delete(V)}}),[$,H]),(0,c.useEffect)((()=>{var e;const t=n,r=1+(null!==(e=OR.get(t))&&void 0!==e?e:0);return OR.set(t,r),document.body.classList.add(n),()=>{const e=OR.get(t)-1;0===e?(document.body.classList.remove(t),OR.delete(t)):OR.set(t,e)}}),[n]);const{closeModal:W,frameRef:U,frameStyle:G,overlayClassname:K}=function(){const e=(0,c.useRef)(),[t,n]=(0,c.useState)(!1),r=(0,l.useReducedMotion)(),o=(0,c.useCallback)((()=>new Promise((t=>{const o=e.current;if(r)return void t();if(!o)return void t();let i;Promise.race([new Promise((e=>{i=t=>{t.animationName===AR&&e()},o.addEventListener("animationend",i),n(!0)})),new Promise((e=>{setTimeout((()=>e()),1.2*MR)}))]).then((()=>{i&&o.removeEventListener("animationend",i),n(!1),t()}))}))),[r]);return{overlayClassname:t?"is-animating-out":void 0,frameRef:e,frameStyle:{"--modal-frame-animation-duration":`${NR}`},closeModal:o}}();(0,c.useLayoutEffect)((()=>{if(!window.ResizeObserver||!A.current)return;const e=new ResizeObserver(B);return e.observe(A.current),B(),()=>{e.disconnect()}}),[B,A]);const q=(0,c.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!D&&n>0?O(!0):D&&n<=0&&O(!1)}),[D]);let Y=null;const X={onPointerDown:e=>{e.target===e.currentTarget&&(Y=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===Y;Y=null,0===t&&n&&W().then((()=>h()))}},Z=(0,wt.jsx)("div",{ref:(0,l.useMergeRefs)([E,t]),className:s("components-modal__screen-overlay",K,x),onKeyDown:Ax((function(e){!u||"Escape"!==e.code&&"Escape"!==e.key||e.defaultPrevented||(e.preventDefault(),W().then((()=>h(e))))})),...d?X:{},children:(0,wt.jsx)(vw,{document,children:(0,wt.jsx)("div",{className:s("components-modal__frame",F,y),style:{...G,...b},ref:(0,l.useMergeRefs)([U,I,N,"firstContentElement"!==i?R:null]),role:r,"aria-label":w,"aria-labelledby":w?void 0:T,"aria-describedby":f.describedby,tabIndex:-1,onKeyDown:_,children:(0,wt.jsxs)("div",{className:s("components-modal__content",{"hide-header":j,"is-scrollable":z,"has-scrolled-content":D}),role:"document",onScroll:q,ref:M,"aria-label":z?(0,a.__)("Scrollable section"):void 0,tabIndex:z?0:void 0,children:[!j&&(0,wt.jsxs)("div",{className:"components-modal__header",children:[(0,wt.jsxs)("div",{className:"components-modal__header-heading-container",children:[m&&(0,wt.jsx)("span",{className:"components-modal__icon-container","aria-hidden":!0,children:m}),o&&(0,wt.jsx)("h1",{id:T,className:"components-modal__header-heading",children:o})]}),k,p&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(Hg,{marginBottom:0,marginLeft:3}),(0,wt.jsx)(sy,{size:"small",onClick:e=>W().then((()=>h(e))),icon:Gy,label:g||(0,a.__)("Close")})]})]}),(0,wt.jsx)("div",{ref:(0,l.useMergeRefs)([A,"firstContentElement"===i?R:null]),children:v})]})})})});return(0,c.createPortal)((0,wt.jsx)(DR.Provider,{value:H,children:Z}),document.body)})),LR=zR;const FR={name:"7g5ii0",styles:"&&{z-index:1000001;}"},BR=Xa(((e,t)=>{const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...u}=Ya(e,"ConfirmDialog"),d=qa()(FR),p=(0,c.useRef)(),f=(0,c.useRef)(),[h,m]=(0,c.useState)(),[g,v]=(0,c.useState)();(0,c.useEffect)((()=>{const e=void 0!==n;m(!e||n),v(!e)}),[n]);const b=(0,c.useCallback)((e=>t=>{e?.(t),g&&m(!1)}),[g,m]),x=(0,c.useCallback)((e=>{e.target===p.current||e.target===f.current||"Enter"!==e.key||b(r)(e)}),[b,r]),y=null!=l?l:(0,a.__)("Cancel"),w=null!=s?s:(0,a.__)("OK");return(0,wt.jsx)(wt.Fragment,{children:h&&(0,wt.jsx)(LR,{onRequestClose:b(o),onKeyDown:x,closeButtonLabel:y,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...u,children:(0,wt.jsxs)(jk,{spacing:8,children:[(0,wt.jsx)(Xv,{children:i}),(0,wt.jsxs)(Ig,{direction:"row",justify:"flex-end",children:[(0,wt.jsx)(sy,{__next40pxDefaultSize:!0,ref:p,variant:"tertiary",onClick:b(o),children:y}),(0,wt.jsx)(sy,{__next40pxDefaultSize:!0,ref:f,variant:"primary",onClick:b(r),children:w})]})]})})})}),"ConfirmDialog");(0,B.createContext)(void 0);var VR=jt([ir,Nt],[sr,Mt]),$R=VR.useContext,HR=(VR.useScopedContext,VR.useProviderContext);VR.ContextProvider,VR.ScopedContextProvider,(0,B.createContext)(void 0),(0,B.createContext)(!1);function WR(e={}){var t=e,{combobox:n}=t,r=T(t,["combobox"]);const o=qe(r.store,Ke(n,["value","items","renderedItems","baseElement","arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=o.getState(),s=ht(P(E({},r),{store:o,virtualFocus:F(r.virtualFocus,i.virtualFocus,!0),includesBaseElement:F(r.includesBaseElement,i.includesBaseElement,!1),activeId:F(r.activeId,i.activeId,r.defaultActiveId,null),orientation:F(r.orientation,i.orientation,"vertical")})),a=Hn(P(E({},r),{store:o,placement:F(r.placement,i.placement,"bottom-start")})),l=new String(""),c=P(E(E({},s.getState()),a.getState()),{value:F(r.value,i.value,r.defaultValue,l),setValueOnMove:F(r.setValueOnMove,i.setValueOnMove,!1),labelElement:F(i.labelElement,null),selectElement:F(i.selectElement,null),listElement:F(i.listElement,null)}),u=Ve(c,s,a,o);return $e(u,(()=>Ue(u,["value","items"],(e=>{if(e.value!==l)return;if(!e.items.length)return;const t=e.items.find((e=>!e.disabled&&null!=e.value));null!=(null==t?void 0:t.value)&&u.setState("value",t.value)})))),$e(u,(()=>Ue(u,["mounted"],(e=>{e.mounted||u.setState("activeId",c.activeId)})))),$e(u,(()=>Ue(u,["mounted","items","value"],(e=>{if(n)return;if(e.mounted)return;const t=ot(e.value),r=t[t.length-1];if(null==r)return;const o=e.items.find((e=>!e.disabled&&e.value===r));o&&u.setState("activeId",o.id)})))),$e(u,(()=>Ge(u,["setValueOnMove","moves"],(e=>{const{mounted:t,value:n,activeId:r}=u.getState();if(!e.setValueOnMove&&t)return;if(Array.isArray(n))return;if(!e.moves)return;if(!r)return;const o=s.item(r);o&&!o.disabled&&null!=o.value&&u.setState("value",o.value)})))),P(E(E(E({},s),a),u),{combobox:n,setValue:e=>u.setState("value",e),setLabelElement:e=>u.setState("labelElement",e),setSelectElement:e=>u.setState("selectElement",e),setListElement:e=>u.setState("listElement",e)})}function UR(e={}){const t=HR();e=b(v({},e),{combobox:void 0!==e.combobox?e.combobox:t});const[n,r]=et(WR,e);return function(e,t,n){return Pe(t,[n.combobox]),Je(e,n,"value","setValue"),Je(e,n,"setValueOnMove"),Object.assign(Vn(mt(e,t,n),t,n),{combobox:n.combobox})}(n,r,e)}var GR=jt([ir,Nt],[sr,Mt]),KR=GR.useContext,qR=GR.useScopedContext,YR=GR.useProviderContext,XR=(GR.ContextProvider,GR.ScopedContextProvider),ZR=(0,B.createContext)(!1),QR=(0,B.createContext)(null),JR=kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=YR();D(n=n||o,!1);const i=je(r.id),s=r.onClick,a=Se((e=>{null==s||s(e),e.defaultPrevented||queueMicrotask((()=>{const e=null==n?void 0:n.getState().selectElement;null==e||e.focus()}))}));return L(r=b(v({id:i},r),{ref:ke(n.setLabelElement,r.ref),onClick:a,style:v({cursor:"default"},r.style)}))})),eI=St(_t((function(e){return Ct("div",JR(e))}))),tI="button",nI=kt((function(e){const t=(0,B.useRef)(null),n=Ee(t,tI),[r,o]=(0,B.useState)((()=>!!n&&Z({tagName:n,type:e.type})));return(0,B.useEffect)((()=>{t.current&&o(Z(t.current))}),[]),e=b(v({role:r||"a"===n?void 0:"button"},e),{ref:ke(t,e.ref)}),e=kn(e)})),rI=(_t((function(e){const t=nI(e);return Ct(tI,t)})),Symbol("disclosure")),oI=kt((function(e){var t=e,{store:n,toggleOnClick:r=!0}=t,o=x(t,["store","toggleOnClick"]);const i=Yn();D(n=n||i,!1);const s=(0,B.useRef)(null),[a,l]=(0,B.useState)(!1),c=n.useState("disclosureElement"),u=n.useState("open");(0,B.useEffect)((()=>{let e=c===s.current;(null==c?void 0:c.isConnected)||(null==n||n.setDisclosureElement(s.current),e=!0),l(u&&e)}),[c,n,u]);const d=o.onClick,p=Re(r),[f,h]=Me(o,rI,!0),m=Se((e=>{null==d||d(e),e.defaultPrevented||f||p(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),g=n.useState("contentElement");return o=b(v(v({"aria-expanded":a,"aria-controls":null==g?void 0:g.id},h),o),{ref:ke(s,o.ref),onClick:m}),o=nI(o)})),iI=(_t((function(e){return Ct("button",oI(e))})),kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=Zn();D(n=n||o,!1);const i=n.useState("contentElement");return r=v({"aria-haspopup":ne(i,"dialog")},r),r=oI(v({store:n},r))}))),sI=(_t((function(e){return Ct("button",iI(e))})),kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=or();return n=n||o,r=b(v({},r),{ref:ke(null==n?void 0:n.setAnchorElement,r.ref)})}))),aI=(_t((function(e){return Ct("div",sI(e))})),kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=or();D(n=n||o,!1);const i=r.onClick,s=Se((e=>{null==n||n.setAnchorElement(e.currentTarget),null==i||i(e)}));return r=Ie(r,(e=>(0,wt.jsx)(sr,{value:n,children:e})),[n]),r=b(v({},r),{onClick:s}),r=sI(v({store:n},r)),r=iI(v({store:n},r))}))),lI=(_t((function(e){return Ct("button",aI(e))})),{top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"}),cI=kt((function(e){var t=e,{store:n,placement:r}=t,o=x(t,["store","placement"]);const i=rr();D(n=n||i,!1);const s=n.useState((e=>r||e.placement)).split("-")[0],a=lI[s],l=(0,B.useMemo)((()=>(0,wt.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,wt.jsx)("polyline",{points:a})})),[a]);return L(o=b(v({children:l,"aria-hidden":!0},o),{style:v({width:"1em",height:"1em",pointerEvents:"none"},o.style)}))})),uI=(_t((function(e){return Ct("span",cI(e))})),kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=KR();return r=cI(v({store:n=n||o},r))}))),dI=_t((function(e){return Ct("span",uI(e))})),pI="";function fI(){pI=""}function hI(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children||"value"in e&&e.value;return!!r&&(o=r,o.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).trim().toLowerCase().startsWith(t.toLowerCase());var o}function mI(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&hI(r,t)?pI!==t&&hI(r,pI)?e:(pI=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[vt]:[],...e.slice(0,r)]}(e.filter((e=>hI(e,pI))),n).filter((e=>e.id!==n))):e}var gI=kt((function(e){var t=e,{store:n,typeahead:r=!0}=t,o=x(t,["store","typeahead"]);const i=Rt();D(n=n||i,!1);const s=o.onKeyDownCapture,a=(0,B.useRef)(0),l=Se((e=>{if(null==s||s(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{renderedItems:t,items:o,activeId:i}=n.getState();if(!function(e){const t=e.target;return(!t||!ee(t))&&(!(" "!==e.key||!pI.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return fI();let l=function(e){return e.filter((e=>!e.disabled))}(t.length?t:o);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,l))return fI();e.preventDefault(),window.clearTimeout(a.current),a.current=window.setTimeout((()=>{pI=""}),500);const c=e.key.toLowerCase();pI+=c,l=mI(l,c,i);const u=l.find((e=>hI(e,pI)));u?n.move(u.id):fI()}));return L(o=b(v({},o),{onKeyDownCapture:l}))}));_t((function(e){return Ct("div",gI(e))}));function vI(e,t){return()=>{const n=t();if(!n)return;let r=0,o=e.item(n);const i=o;for(;o&&null==o.value;){const n=t(++r);if(!n)return;if(o=e.item(n),o===i)break}return null==o?void 0:o.id}}var bI=kt((function(e){var t=e,{store:n,name:r,form:o,required:i,showOnKeyDown:s=!0,moveOnKeyDown:a=!0,toggleOnPress:l=!0,toggleOnClick:c=l}=t,u=x(t,["store","name","form","required","showOnKeyDown","moveOnKeyDown","toggleOnPress","toggleOnClick"]);const d=YR();D(n=n||d,!1);const p=u.onKeyDown,f=Re(s),h=Re(a),m=n.useState("placement").split("-")[0],g=n.useState("value"),y=Array.isArray(g),w=Se((e=>{var t;if(null==p||p(e),e.defaultPrevented)return;if(!n)return;const{orientation:r,items:o,activeId:i}=n.getState(),s="horizontal"!==r,a="vertical"!==r,l=!!(null==(t=o.find((e=>!e.disabled&&null!=e.value)))?void 0:t.rowId),c={ArrowUp:(l||s)&&vI(n,n.up),ArrowRight:(l||a)&&vI(n,n.next),ArrowDown:(l||s)&&vI(n,n.down),ArrowLeft:(l||a)&&vI(n,n.previous)}[e.key];c&&h(e)&&(e.preventDefault(),n.move(c()));const u="top"===m||"bottom"===m;({ArrowDown:u,ArrowUp:u,ArrowLeft:"left"===m,ArrowRight:"right"===m})[e.key]&&f(e)&&(e.preventDefault(),n.move(i),me(e.currentTarget,"keyup",n.show))}));u=Ie(u,(e=>(0,wt.jsx)(XR,{value:n,children:e})),[n]);const[_,S]=(0,B.useState)(!1),C=(0,B.useRef)(!1);(0,B.useEffect)((()=>{const e=C.current;C.current=!1,e||S(!1)}),[g]);const k=n.useState((e=>{var t;return null==(t=e.labelElement)?void 0:t.id})),j=u["aria-label"],E=u["aria-labelledby"]||k,P=n.useState((e=>{if(r)return e.items})),T=(0,B.useMemo)((()=>[...new Set(null==P?void 0:P.map((e=>e.value)).filter((e=>null!=e)))]),[P]);u=Ie(u,(e=>r?(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)("select",{style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},tabIndex:-1,"aria-hidden":!0,"aria-label":j,"aria-labelledby":E,name:r,form:o,required:i,value:g,multiple:y,onFocus:()=>{var e;return null==(e=null==n?void 0:n.getState().selectElement)?void 0:e.focus()},onChange:e=>{var t;C.current=!0,S(!0),null==n||n.setValue(y?(t=e.target,Array.from(t.selectedOptions).map((e=>e.value))):e.target.value)},children:[ot(g).map((e=>null==e||T.includes(e)?null:(0,wt.jsx)("option",{value:e,children:e},e))),T.map((e=>(0,wt.jsx)("option",{value:e,children:e},e)))]}),e]}):e),[n,j,E,r,o,i,g,y,T]);const R=(0,wt.jsxs)(wt.Fragment,{children:[g,(0,wt.jsx)(dI,{})]}),I=n.useState("contentElement");return u=b(v({role:"combobox","aria-autocomplete":"none","aria-labelledby":k,"aria-haspopup":ne(I,"listbox"),"data-autofill":_||void 0,"data-name":r,children:R},u),{ref:ke(n.setSelectElement,u.ref),onKeyDown:w}),u=aI(v({store:n,toggleOnClick:c},u)),u=gI(v({store:n},u))})),xI=_t((function(e){return Ct("button",bI(e))})),yI=(0,B.createContext)(null),wI=kt((function(e){var t=e,{store:n,resetOnEscape:r=!0,hideOnEnter:o=!0,focusOnMove:i=!0,composite:s,alwaysVisible:a}=t,l=x(t,["store","resetOnEscape","hideOnEnter","focusOnMove","composite","alwaysVisible"]);const c=KR();D(n=n||c,!1);const u=je(l.id),d=n.useState("value"),p=Array.isArray(d),[f,h]=(0,B.useState)(d),m=n.useState("mounted");(0,B.useEffect)((()=>{m||h(d)}),[m,d]),r=r&&!p;const g=l.onKeyDown,y=Re(r),w=Re(o),_=Se((e=>{null==g||g(e),e.defaultPrevented||("Escape"===e.key&&y(e)&&(null==n||n.setValue(f))," "!==e.key&&"Enter"!==e.key||ce(e)&&w(e)&&(e.preventDefault(),null==n||n.hide()))})),S=(0,B.useContext)(QR),C=(0,B.useState)(),[k,j]=S||C,E=(0,B.useMemo)((()=>[k,j]),[k]),[P,T]=(0,B.useState)(null),R=(0,B.useContext)(yI);(0,B.useEffect)((()=>{if(R)return R(n),()=>R(null)}),[R,n]),l=Ie(l,(e=>(0,wt.jsx)(XR,{value:n,children:(0,wt.jsx)(yI.Provider,{value:T,children:(0,wt.jsx)(QR.Provider,{value:E,children:e})})})),[n,E]);const I=!!n.combobox;s=null!=s?s:!I&&P!==n;const[N,M]=Ce(s?n.setListElement:null),A=function(e,t,n){const[r,o]=(0,B.useState)(n);return ye((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;const r=()=>{const e=n.getAttribute(t);null!=e&&o(e)},i=new MutationObserver(r);return i.observe(n,{attributeFilter:[t]}),r(),()=>i.disconnect()}),[e,t]),r}(N,"role",l.role),O=(s||("listbox"===A||"menu"===A||"tree"===A||"grid"===A))&&p||void 0,z=Fr(m,l.hidden,a),L=z?b(v({},l.style),{display:"none"}):l.style;s&&(l=v({role:"listbox","aria-multiselectable":O},l));const F=n.useState((e=>{var t;return k||(null==(t=e.labelElement)?void 0:t.id)}));return l=b(v({id:u,"aria-labelledby":F,hidden:z},l),{ref:ke(M,l.ref),style:L,onKeyDown:_}),l=ln(b(v({store:n},l),{composite:s})),l=gI(v({store:n,typeahead:!I},l))})),_I=(_t((function(e){return Ct("div",wI(e))})),kt((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=x(t,["store","alwaysVisible"]);const i=YR();return o=wI(v({store:n=n||i,alwaysVisible:r},o)),o=Ni(v({store:n,alwaysVisible:r},o))}))),SI=uo(_t((function(e){return Ct("div",_I(e))})),YR);function CI(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var kI=Symbol("composite-hover");var jI=kt((function(e){var t=e,{store:n,focusOnHover:r=!0,blurOnHoverEnd:o=!!r}=t,i=x(t,["store","focusOnHover","blurOnHoverEnd"]);const s=Rt();D(n=n||s,!1);const a=Ae(),l=i.onMouseMove,c=Re(r),u=Se((e=>{if(null==l||l(e),!e.defaultPrevented&&a()&&c(e)){if(!Gt(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!Ut(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),d=i.onMouseLeave,p=Re(o),f=Se((e=>{var t;null==d||d(e),e.defaultPrevented||a()&&(function(e){const t=CI(e);return!!t&&Y(e.currentTarget,t)}(e)||function(e){let t=CI(e);if(!t)return!1;do{if(N(t,kI)&&t[kI])return!0;t=t.parentElement}while(t);return!1}(e)||c(e)&&p(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),h=(0,B.useCallback)((e=>{e&&(e[kI]=!0)}),[]);return L(i=b(v({},i),{ref:ke(h,i.ref),onMouseMove:u,onMouseLeave:f}))}));St(_t((function(e){return Ct("div",jI(e))})));var EI=kt((function(e){var t,n=e,{store:r,value:o,getItem:i,hideOnClick:s,setValueOnClick:a=null!=o,preventScrollOnKeyDown:l=!0,focusOnHover:c=!0}=n,u=x(n,["store","value","getItem","hideOnClick","setValueOnClick","preventScrollOnKeyDown","focusOnHover"]);const d=qR();D(r=r||d,!1);const p=je(u.id),f=z(u),h=(0,B.useCallback)((e=>{const t=b(v({},e),{value:f?void 0:o,children:o});return i?i(t):t}),[f,o,i]),m=r.useState((e=>Array.isArray(e.value)));s=null!=s?s:null!=o&&!m;const g=u.onClick,y=Re(a),w=Re(s),_=Se((e=>{null==g||g(e),e.defaultPrevented||de(e)||ue(e)||(y(e)&&null!=o&&(null==r||r.setValue((e=>Array.isArray(e)?e.includes(o)?e.filter((e=>e!==o)):[...e,o]:o))),w(e)&&(null==r||r.hide()))})),S=r.useState((e=>function(e,t){if(null!=t)return null!=e&&(Array.isArray(e)?e.includes(t):e===t)}(e.value,o)));u=Ie(u,(e=>(0,wt.jsx)(ZR.Provider,{value:null!=S&&S,children:e})),[S]);const C=r.useState("listElement"),k=r.useState((e=>null!=o&&(null!=e.value&&((e.activeId===p||!(null==r?void 0:r.item(e.activeId)))&&(Array.isArray(e.value)?e.value[e.value.length-1]===o:e.value===o)))));u=b(v({id:p,role:re(C),"aria-selected":S,children:o},u),{autoFocus:null!=(t=u.autoFocus)?t:k,onClick:_}),u=Pn(v({store:r,getItem:h,preventScrollOnKeyDown:l},u));const j=Re(c);return u=jI(b(v({store:r},u),{focusOnHover(e){if(!j(e))return!1;const t=null==r?void 0:r.getState();return!!(null==t?void 0:t.open)}}))})),PI=St(_t((function(e){return Ct("div",EI(e))}))),TI=(0,B.createContext)(!1),RI=(0,wt.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,wt.jsx)("polyline",{points:"4,8 7,12 12,4"})});var II=kt((function(e){var t=e,{store:n,checked:r}=t,o=x(t,["store","checked"]);const i=(0,B.useContext)(TI),s=function(e){return e.checked?e.children||RI:"function"==typeof e.children?e.children:null}({checked:r=null!=r?r:i,children:o.children});return L(o=b(v({"aria-hidden":!0},o),{children:s,style:v({width:"1em",height:"1em",pointerEvents:"none"},o.style)}))})),NI=(_t((function(e){return Ct("span",II(e))})),kt((function(e){var t=e,{store:n,checked:r}=t,o=x(t,["store","checked"]);const i=(0,B.useContext)(ZR);return r=null!=r?r:i,o=II(b(v({},o),{checked:r}))}))),MI=_t((function(e){return Ct("span",NI(e))}));const AI="2px",DI="400ms",OI="cubic-bezier( 0.16, 1, 0.3, 1 )",zI={compact:Tl.controlPaddingXSmall,small:Tl.controlPaddingXSmall,default:Tl.controlPaddingX},LI=cl(xI,{shouldForwardProp:e=>"hasCustomRenderProp"!==e,target:"e1p3eej77"})((({size:e,hasCustomRenderProp:t})=>bl("display:block;background-color:",jl.theme.background,";border:none;color:",jl.theme.foreground,";cursor:pointer;font-family:inherit;text-align:start;user-select:none;width:100%;&[data-focus-visible]{outline:none;}",((e,t)=>{const n={compact:{[t]:32,paddingInlineStart:zI.compact,paddingInlineEnd:zI.compact+18},default:{[t]:40,paddingInlineStart:zI.default,paddingInlineEnd:zI.default+18},small:{[t]:24,paddingInlineStart:zI.small,paddingInlineEnd:zI.small+18}};return n[e]||n.default})(e,t?"minHeight":"height")," ",!t&&$I," ",lb({inputSize:e}),";","")),""),FI=xl({"0%":{opacity:0,transform:`translateY(-${AI})`},"100%":{opacity:1,transform:"translateY(0)"}}),BI=cl(SI,{target:"e1p3eej76"})("display:flex;flex-direction:column;background-color:",jl.theme.background,";border-radius:",Tl.radiusSmall,";border:1px solid ",jl.theme.foreground,";box-shadow:",Tl.elevationMedium,";z-index:1000000;max-height:min( var( --popover-available-height, 400px ), 400px );overflow:auto;overscroll-behavior:contain;min-width:min-content;&[data-open]{@media not ( prefers-reduced-motion ){animation-duration:",DI,";animation-timing-function:",OI,";animation-name:",FI,";will-change:transform,opacity;}}&[data-focus-visible]{outline:none;}"),VI=cl(PI,{target:"e1p3eej75"})((({size:e})=>bl("cursor:default;display:flex;align-items:center;justify-content:space-between;font-size:",Tl.fontSize,";line-height:28px;padding-block:",wl(2),";scroll-margin:",wl(1),";user-select:none;&[aria-disabled='true']{cursor:not-allowed;}&[data-active-item]{background-color:",jl.theme.gray[300],";}",(e=>{const t={compact:{paddingInlineStart:zI.compact,paddingInlineEnd:zI.compact-6},default:{paddingInlineStart:zI.default,paddingInlineEnd:zI.default-6},small:{paddingInlineStart:zI.small,paddingInlineEnd:zI.small-6}};return t[e]||t.default})(e),";","")),""),$I={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},HI=cl("div",{target:"e1p3eej74"})($I,";"),WI=cl("span",{target:"e1p3eej73"})("color:",jl.theme.gray[600],";margin-inline-start:",wl(2),";"),UI=cl("div",{target:"e1p3eej72"})("display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;flex:1;column-gap:",wl(4),";"),GI=cl("span",{target:"e1p3eej71"})("color:",jl.theme.gray[600],";text-align:initial;line-height:",Tl.fontLineHeightBase,";padding-inline-end:",wl(1),";margin-block:",wl(1),";"),KI=cl(MI,{target:"e1p3eej70"})("display:flex;align-items:center;margin-inline-start:",wl(2),";align-self:start;margin-block-start:2px;font-size:0;",UI,"~&,&:not(:empty){font-size:24px;}"),qI=(0,c.createContext)(void 0);function YI(e){return(Array.isArray(e)?0===e.length:null==e)?(0,a.__)("Select an item"):Array.isArray(e)?1===e.length?e[0]:(0,a.sprintf)((0,a.__)("%s items selected"),e.length):e}const XI=({renderSelectedValue:e,size:t="default",store:n,...r})=>{const{value:o}=Qe(n),i=(0,c.useMemo)((()=>null!=e?e:YI),[e]);return(0,wt.jsx)(LI,{...r,size:t,hasCustomRenderProp:!!e,store:n,children:i(o)})};const ZI=function(e){const{children:t,hideLabelFromVision:n=!1,label:r,size:o,store:i,className:s,isLegacy:a=!1,...l}=e,u=(0,c.useCallback)((e=>{a&&e.stopPropagation()}),[a]),d=(0,c.useMemo)((()=>({store:i,size:o})),[i,o]);return(0,wt.jsxs)("div",{className:s,children:[(0,wt.jsx)(eI,{store:i,render:n?(0,wt.jsx)(pl,{}):(0,wt.jsx)(Qx.VisualLabel,{as:"div"}),children:r}),(0,wt.jsxs)(kb,{__next40pxDefaultSize:!0,size:o,suffix:(0,wt.jsx)(xS,{}),children:[(0,wt.jsx)(XI,{...l,size:o,store:i,showOnKeyDown:!a}),(0,wt.jsx)(BI,{gutter:12,store:i,sameWidth:!0,slide:!1,onKeyDown:u,flip:!a,children:(0,wt.jsx)(qI.Provider,{value:d,children:t})})]})]})};function QI({children:e,...t}){var n;const r=(0,c.useContext)(qI);return(0,wt.jsxs)(VI,{store:r?.store,size:null!==(n=r?.size)&&void 0!==n?n:"default",...t,children:[null!=e?e:t.value,(0,wt.jsx)(KI,{children:(0,wt.jsx)(vS,{icon:xk})})]})}QI.displayName="CustomSelectControlV2.Item";const JI=QI;function eN({__experimentalHint:e,...t}){return{hint:e,...t}}function tN(e,t){return t||(0,a.sprintf)((0,a.__)("Currently selected: %s"),e)}const nN=function e(t){const{__next40pxDefaultSize:n=!1,describedBy:r,options:o,onChange:i,size:a="default",value:c,className:u,showSelectedHint:d=!1,...p}=function({__experimentalShowSelectedHint:e,...t}){return{showSelectedHint:e,...t}}(t),f=(0,l.useInstanceId)(e,"custom-select-control__description"),h=UR({async setValue(e){const t=o.find((t=>t.name===e));if(!i||!t)return;await Promise.resolve();const n=h.getState(),r={highlightedIndex:n.renderedItems.findIndex((t=>t.value===e)),inputValue:"",isOpen:n.open,selectedItem:t,type:""};i(r)},value:c?.name,defaultValue:o[0]?.name}),m=o.map(eN).map((({name:e,key:t,hint:n,style:r,className:o})=>{const i=(0,wt.jsxs)(UI,{children:[(0,wt.jsx)("span",{children:e}),(0,wt.jsx)(GI,{className:"components-custom-select-control__item-hint",children:n})]});return(0,wt.jsx)(JI,{value:e,children:n?i:e,style:r,className:s(o,"components-custom-select-control__item",{"has-hint":n})},t)})),{value:g}=h.getState(),v=n&&"default"===a||"__unstable-large"===a?"default":n||"default"!==a?a:"compact";return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(ZI,{"aria-describedby":f,renderSelectedValue:d?()=>{const e=o?.map(eN)?.find((({name:e})=>g===e))?.hint;return(0,wt.jsxs)(HI,{children:[g,e&&(0,wt.jsx)(WI,{className:"components-custom-select-control__hint",children:e})]})}:void 0,size:v,store:h,className:s("components-custom-select-control",u),isLegacy:!0,...p,children:m}),(0,wt.jsx)(pl,{children:(0,wt.jsx)("span",{id:f,children:tN(g,r)})})]})};function rN(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function oN(e){const t=rN(e);return t.setHours(0,0,0,0),t}function iN(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function sN(e,t){const n=rN(e);if(isNaN(t))return iN(e,NaN);if(!t)return n;const r=n.getDate(),o=iN(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function aN(e,t){return sN(e,-t)}const lN={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"}};function cN(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const uN={date:cN({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:cN({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:cN({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},dN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function pN(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const fN={ordinalNumber:(e,t)=>{const 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:pN({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:pN({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:pN({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:pN({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:pN({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"})};function hN(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(a,(e=>e.test(s))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(a,(e=>e.test(s)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(s.length)}}}const mN={ordinalNumber:(gN={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(gN.matchPattern);if(!n)return null;const r=n[0],o=e.match(gN.parsePattern);if(!o)return null;let i=gN.valueCallback?gN.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:hN({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:hN({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:e=>e+1}),month:hN({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:hN({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:hN({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"})};var gN;const vN={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=lN[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:uN,formatRelative:(e,t,n,r)=>dN[e],localize:fN,match:mN,options:{weekStartsOn:0,firstWeekContainsDate:1}};let bN={};function xN(){return bN}Math.pow(10,8);const yN=6048e5,wN=864e5;function _N(e){const t=rN(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function SN(e,t){const n=oN(e),r=oN(t),o=+n-_N(n),i=+r-_N(r);return Math.round((o-i)/wN)}function CN(e){const t=rN(e),n=iN(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function kN(e){const t=rN(e);return SN(t,CN(t))+1}function jN(e,t){const n=xN(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=rN(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function EN(e){return jN(e,{weekStartsOn:1})}function PN(e){const t=rN(e),n=t.getFullYear(),r=iN(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=EN(r),i=iN(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=EN(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function TN(e){const t=PN(e),n=iN(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),EN(n)}function RN(e){const t=rN(e),n=+EN(t)-+TN(t);return Math.round(n/yN)+1}function IN(e,t){const n=rN(e),r=n.getFullYear(),o=xN(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=iN(e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const a=jN(s,t),l=iN(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=jN(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function NN(e,t){const n=xN(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=IN(e,t),i=iN(e,0);i.setFullYear(o,0,r),i.setHours(0,0,0,0);return jN(i,t)}function MN(e,t){const n=rN(e),r=+jN(n,t)-+NN(n,t);return Math.round(r/yN)+1}function AN(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const DN={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return AN("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):AN(n+1,2)},d:(e,t)=>AN(e.getDate(),t.length),a(e,t){const n=e.getHours()/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:(e,t)=>AN(e.getHours()%12||12,t.length),H:(e,t)=>AN(e.getHours(),t.length),m:(e,t)=>AN(e.getMinutes(),t.length),s:(e,t)=>AN(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return AN(Math.trunc(r*Math.pow(10,n-3)),t.length)}},ON="midnight",zN="noon",LN="morning",FN="afternoon",BN="evening",VN="night",$N={G:function(e,t,n){const r=e.getFullYear()>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){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return DN.y(e,t)},Y:function(e,t,n,r){const o=IN(e,r),i=o>0?o:1-o;if("YY"===t){return AN(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):AN(i,t.length)},R:function(e,t){return AN(PN(e),t.length)},u:function(e,t){return AN(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return AN(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){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return AN(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){const r=e.getMonth();switch(t){case"M":case"MM":return DN.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){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return AN(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){const o=MN(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):AN(o,t.length)},I:function(e,t,n){const r=RN(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):AN(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):DN.d(e,t)},D:function(e,t,n){const r=kN(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):AN(r,t.length)},E:function(e,t,n){const r=e.getDay();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){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return AN(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){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return AN(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){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return AN(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){const r=e.getHours()/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){const r=e.getHours();let o;switch(o=12===r?zN:0===r?ON:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?BN:r>=12?FN:r>=4?LN:VN,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return DN.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):DN.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):AN(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):AN(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):DN.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):DN.s(e,t)},S:function(e,t){return DN.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return WN(r);case"XXXX":case"XX":return UN(r);default:return UN(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return WN(r);case"xxxx":case"xx":return UN(r);default:return UN(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+HN(r,":");default:return"GMT"+UN(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+HN(r,":");default:return"GMT"+UN(r,":")}},t:function(e,t,n){return AN(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return AN(e.getTime(),t.length)}};function HN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+AN(i,2)}function WN(e,t){if(e%60==0){return(e>0?"-":"+")+AN(Math.abs(e)/60,2)}return UN(e,t)}function UN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+AN(Math.trunc(r/60),2)+t+AN(r%60,2)}const GN=(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"})}},KN=(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"})}},qN={p:KN,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return GN(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",GN(r,t)).replace("{{time}}",KN(o,t))}},YN=/^D+$/,XN=/^Y+$/,ZN=["D","DD","YY","YYYY"];function QN(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function JN(e){if(!QN(e)&&"number"!=typeof e)return!1;const t=rN(e);return!isNaN(Number(t))}const eM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nM=/^'([^]*?)'?$/,rM=/''/g,oM=/[a-zA-Z]/;function iM(e,t,n){const r=xN(),o=n?.locale??r.locale??vN,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=rN(e);if(!JN(a))throw new RangeError("Invalid time value");let l=t.match(tM).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,qN[t])(e,o.formatLong)}return e})).join("").match(eM).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:sM(e)};if($N[t])return{isToken:!0,value:e};if(t.match(oM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return XN.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return YN.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),ZN.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,$N[i[0]])(a,i,o.localize,c)})).join("")}function sM(e){const t=e.match(nM);return t?t[1].replace(rM,"'"):e}function aM(e,t){const n=rN(e),r=rN(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function lM(e,t){return+rN(e)==+rN(t)}function cM(e,t){return+oN(e)==+oN(t)}function uM(e,t){const n=rN(e);return isNaN(t)?iN(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function dM(e,t){return uM(e,7*t)}function pM(e,t){return dM(e,-t)}function fM(e,t){const n=xN(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=rN(e),i=o.getDay(),s=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}const hM=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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"})}),mM=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),gM=window.wp.date;function vM(e,t){const n=rN(e),r=rN(t);return n.getTime()>r.getTime()}function bM(e,t){return+rN(e)<+rN(t)}function xM(e){const t=rN(e),n=t.getFullYear(),r=t.getMonth(),o=iN(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function yM(e,t){const n=rN(e),r=n.getFullYear(),o=n.getDate(),i=iN(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=xM(i);return n.setMonth(t,Math.min(o,s)),n}function wM(e,t){let n=rN(e);return isNaN(+n)?iN(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=yM(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function _M(){return oN(Date.now())}function SM(e,t){const n=rN(e);return isNaN(+n)?iN(e,NaN):(n.setFullYear(t),n)}function CM(e,t){return sN(e,12*t)}function kM(e,t){return CM(e,-t)}function jM(e,t){const n=rN(e.start),r=rN(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(rN(s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}function EM(e,t){const n=rN(e.start),r=rN(e.end);let o=+n>+r;const i=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);const l=[];for(;+s<=i;)l.push(rN(s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}function PM(e){const t=rN(e);return t.setDate(1),t.setHours(0,0,0,0),t}function TM(e){const t=rN(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function RM(e,t){const n=rN(e.start),r=rN(e.end);let o=+n>+r;const i=jN(o?r:n,t),s=jN(o?n:r,t);i.setHours(15),s.setHours(15);const a=+s.getTime();let l=i,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);const u=[];for(;+l<=a;)l.setHours(0),u.push(rN(l)),l=dM(l,c),l.setHours(15);return o?u.reverse():u}let IM=function(e){return 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",e}({});const NM=(e,t,n)=>(lM(e,t)||vM(e,t))&&(lM(e,n)||bM(e,n)),MM=e=>wM(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),AM=cl("div",{target:"e105ri6r5"})(Bx,";"),DM=cl(yy,{target:"e105ri6r4"})("margin-bottom:",wl(4),";"),OM=cl(Tk,{target:"e105ri6r3"})("font-size:",Tl.fontSize,";font-weight:",Tl.fontWeight,";strong{font-weight:",Tl.fontWeightHeading,";}"),zM=cl("div",{target:"e105ri6r2"})("column-gap:",wl(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",wl(2),";"),LM=cl("div",{target:"e105ri6r1"})("color:",jl.theme.gray[700],";font-size:",Tl.fontSize,";line-height:",Tl.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),FM=cl(sy,{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:",Tl.radiusRound,";height:",wl(7),";width:",wl(7),";",(e=>e.isSelected&&`\n\t\t\t\tbackground: ${jl.theme.accent};\n\n\t\t\t\t&,\n\t\t\t\t&:hover:not(:disabled, [aria-disabled=true]) {\n\t\t\t\t\tcolor: ${jl.theme.accentInverted};\n\t\t\t\t}\n\n\t\t\t\t&:focus:not(:disabled),\n\t\t\t\t&:focus:not(:disabled) {\n\t\t\t\t\tborder: ${Tl.borderWidthFocus} solid currentColor;\n\t\t\t\t}\n\n\t\t\t\t/* Highlight the selected day for high-contrast mode */\n\t\t\t\t&::after {\n\t\t\t\t\tcontent: '';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\tinset: 0;\n\t\t\t\t\tborder-radius: inherit;\n\t\t\t\t\tborder: 1px solid transparent;\n\t\t\t\t}\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${jl.theme.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tborder: 2px solid ${e.isSelected?jl.theme.accentInverted:jl.theme.accent};\n\t\t\tborder-radius: ${Tl.radiusRound};\n\t\t\tcontent: " ";\n\t\t\tleft: 50%;\n\t\t\tposition: absolute;\n\t\t\ttransform: translate(-50%, 9px);\n\t\t}\n\t\t`),";");function BM(e){return"string"==typeof e?new Date(e):rN(e)}function VM(e,t){return t?(e%12+12)%24:e%12}function $M(e){return(t,n)=>{const r={...t};return n.type!==Sx&&n.type!==Ix&&n.type!==Tx||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}function HM(e){var t;const n=null!==(t=e.target?.ownerDocument.defaultView?.HTMLInputElement)&&void 0!==t?t:HTMLInputElement;return e.target instanceof n&&e.target.validity.valid}const WM="yyyy-MM-dd'T'HH:mm:ss";function UM({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:a,onClick:l,onKeyDown:u}){const d=(0,c.useRef)();return(0,c.useEffect)((()=>{d.current&&r&&o&&d.current.focus()}),[r]),(0,wt.jsx)(FM,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":GM(e,n,a),column:t,isSelected:n,isToday:i,hasEvents:a>0,onClick:l,onKeyDown:u,children:(0,gM.dateI18n)("j",e,-e.getTimezoneOffset())})}function GM(e,t,n){const{formats:r}=(0,gM.getSettings)(),o=(0,gM.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,a.sprintf)((0,a._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,a.sprintf)((0,a.__)("%1$s. Selected"),o):n>0?(0,a.sprintf)((0,a._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}const KM=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?BM(e):new Date,{calendar:l,viewing:u,setSelected:d,setViewing:p,isSelected:f,viewPreviousMonth:h,viewNextMonth:m}=(({weekStartsOn:e=IM.SUNDAY,viewing:t=new Date,selected:n=[],numberOfMonths:r=1}={})=>{const[o,i]=(0,c.useState)(t),s=(0,c.useCallback)((()=>i(_M())),[i]),a=(0,c.useCallback)((e=>i((t=>yM(t,e)))),[]),l=(0,c.useCallback)((()=>i((e=>aN(e,1)))),[]),u=(0,c.useCallback)((()=>i((e=>sN(e,1)))),[]),d=(0,c.useCallback)((e=>i((t=>SM(t,e)))),[]),p=(0,c.useCallback)((()=>i((e=>kM(e,1)))),[]),f=(0,c.useCallback)((()=>i((e=>CM(e,1)))),[]),[h,m]=(0,c.useState)(n.map(MM)),g=(0,c.useCallback)((e=>h.findIndex((t=>lM(t,e)))>-1),[h]),v=(0,c.useCallback)(((e,t)=>{m(t?Array.isArray(e)?e:[e]:t=>t.concat(Array.isArray(e)?e:[e]))}),[]),b=(0,c.useCallback)((e=>m((t=>Array.isArray(e)?t.filter((t=>!e.map((e=>e.getTime())).includes(t.getTime()))):t.filter((t=>!lM(t,e)))))),[]),x=(0,c.useCallback)(((e,t)=>g(e)?b(e):v(e,t)),[b,g,v]),y=(0,c.useCallback)(((e,t,n)=>{m(n?jM({start:e,end:t}):n=>n.concat(jM({start:e,end:t})))}),[]),w=(0,c.useCallback)(((e,t)=>{m((n=>n.filter((n=>!jM({start:e,end:t}).map((e=>e.getTime())).includes(n.getTime())))))}),[]),_=(0,c.useMemo)((()=>EM({start:PM(o),end:TM(sN(o,r-1))}).map((t=>RM({start:PM(t),end:TM(t)},{weekStartsOn:e}).map((t=>jM({start:jN(t,{weekStartsOn:e}),end:fM(t,{weekStartsOn:e})})))))),[o,e,r]);return{clearTime:MM,inRange:NM,viewing:o,setViewing:i,viewToday:s,viewMonth:a,viewPreviousMonth:l,viewNextMonth:u,viewYear:d,viewPreviousYear:p,viewNextYear:f,selected:h,setSelected:m,clearSelected:()=>m([]),isSelected:g,select:v,deselect:b,toggle:x,selectRange:y,deselectRange:w,calendar:_}})({selected:[oN(s)],viewing:oN(s),weekStartsOn:i}),[g,v]=(0,c.useState)(oN(s)),[b,x]=(0,c.useState)(!1),[y,w]=(0,c.useState)(e);return e!==y&&(w(e),d([oN(s)]),p(oN(s)),v(oN(s))),(0,wt.jsxs)(AM,{className:"components-datetime__date",role:"application","aria-label":(0,a.__)("Calendar"),children:[(0,wt.jsxs)(DM,{children:[(0,wt.jsx)(sy,{icon:(0,a.isRTL)()?hM:mM,variant:"tertiary","aria-label":(0,a.__)("View previous month"),onClick:()=>{h(),v(aN(g,1)),o?.(iM(aN(u,1),WM))},size:"compact"}),(0,wt.jsxs)(OM,{level:3,children:[(0,wt.jsx)("strong",{children:(0,gM.dateI18n)("F",u,-u.getTimezoneOffset())})," ",(0,gM.dateI18n)("Y",u,-u.getTimezoneOffset())]}),(0,wt.jsx)(sy,{icon:(0,a.isRTL)()?mM:hM,variant:"tertiary","aria-label":(0,a.__)("View next month"),onClick:()=>{m(),v(sN(g,1)),o?.(iM(sN(u,1),WM))},size:"compact"})]}),(0,wt.jsxs)(zM,{onFocus:()=>x(!0),onBlur:()=>x(!1),children:[l[0][0].map((e=>(0,wt.jsx)(LM,{children:(0,gM.dateI18n)("D",e,-e.getTimezoneOffset())},e.toString()))),l[0].map((e=>e.map(((e,i)=>aM(e,u)?(0,wt.jsx)(UM,{day:e,column:i+1,isSelected:f(e),isFocusable:lM(e,g),isFocusAllowed:b,isToday:cM(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>cM(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(iM(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),WM))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=uM(e,(0,a.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=uM(e,(0,a.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=pM(e,1)),"ArrowDown"===t.key&&(n=dM(e,1)),"PageUp"===t.key&&(n=aN(e,1)),"PageDown"===t.key&&(n=sN(e,1)),"Home"===t.key&&(n=jN(e)),"End"===t.key&&(n=oN(fM(e))),n&&(t.preventDefault(),v(n),aM(n,u)||(p(n),o?.(iM(n,WM))))}},e.toString()):null))))]})]})};function qM(e){const t=rN(e);return t.setSeconds(0,0),t}const YM=cl("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",Tl.fontSize,";"),XM=cl("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",wl(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),ZM=cl("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),QM=bl("&&& ",fb,"{padding-left:",wl(2),";padding-right:",wl(2),";text-align:center;}",""),JM=cl(Sy,{target:"evcr2316"})(QM," width:",wl(9),";&&& ",fb,"{padding-right:0;}&&& ",tb,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),eA=cl("span",{target:"evcr2315"})("border-top:",Tl.borderWidth," solid ",jl.gray[700],";border-bottom:",Tl.borderWidth," solid ",jl.gray[700],";font-size:",Tl.fontSize,";line-height:calc(\n\t\t",Tl.controlHeight," - ",Tl.borderWidth," * 2\n\t);display:inline-block;"),tA=cl(Sy,{target:"evcr2314"})(QM," width:",wl(9),";&&& ",fb,"{padding-left:0;}&&& ",tb,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),nA=cl("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),rA=cl(Sy,{target:"evcr2312"})(QM," width:",wl(9),";"),oA=cl(Sy,{target:"evcr2311"})(QM," width:",wl(14),";"),iA=cl("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),sA=()=>{const{timezone:e}=(0,gM.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offsetFormatted}`,o=e.string.replace("_"," "),i="UTC"===e.string?(0,a.__)("Coordinated Universal Time"):`(${r}) ${o}`;return 0===o.trim().length?(0,wt.jsx)(iA,{className:"components-datetime__timezone",children:r}):(0,wt.jsx)(Yi,{placement:"top",text:i,children:(0,wt.jsx)(iA,{className:"components-datetime__timezone",children:r})})};const aA=(0,c.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,wt.jsx)(K_,{...r,"aria-label":o,ref:t,children:n})}));function lA({value:e,defaultValue:t,is12Hour:n,label:r,minutesProps:o,onChange:i}){const[l={hours:(new Date).getHours(),minutes:(new Date).getMinutes()},u]=E_({value:e,onChange:i,defaultValue:t}),d=l.hours<12?"AM":"PM";const p=l.hours%12||12;const f=e=>(t,{event:r})=>{if(!HM(r))return;const o=Number(t);u({...l,[e]:"hours"===e&&n?VM(o,"PM"===d):o})};const h=r?XM:c.Fragment;return(0,wt.jsxs)(h,{children:[r&&(0,wt.jsx)(Qx.VisualLabel,{as:"legend",children:r}),(0,wt.jsxs)(yy,{alignment:"left",expanded:!1,children:[(0,wt.jsxs)(ZM,{className:"components-datetime__time-field components-datetime__time-field-time",children:[(0,wt.jsx)(JM,{className:"components-datetime__time-field-hours-input",label:(0,a.__)("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(n?p:l.hours).padStart(2,"0"),step:1,min:n?1:0,max:n?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:f("hours"),__unstableStateReducer:$M(2)}),(0,wt.jsx)(eA,{className:"components-datetime__time-separator","aria-hidden":"true",children:":"}),(0,wt.jsx)(tA,{className:s("components-datetime__time-field-minutes-input",o?.className),label:(0,a.__)("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(l.minutes).padStart(2,"0"),step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:(...e)=>{f("minutes")(...e),o?.onChange?.(...e)},__unstableStateReducer:$M(2),...o})]}),n&&(0,wt.jsxs)(R_,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,isBlock:!0,label:(0,a.__)("Select AM or PM"),hideLabelFromVision:!0,value:d,onChange:e=>{var t;(t=e,()=>{d!==t&&u({...l,hours:VM(p,"PM"===t)})})()},children:[(0,wt.jsx)(aA,{value:"AM",label:(0,a.__)("AM")}),(0,wt.jsx)(aA,{value:"PM",label:(0,a.__)("PM")})]})]})]})}const cA=["dmy","mdy","ymd"];function uA({is12Hour:e,currentTime:t,onChange:n,dateOrder:r,hideLabelFromVision:o=!1}){const[i,s]=(0,c.useState)((()=>t?qM(BM(t)):new Date));(0,c.useEffect)((()=>{s(t?qM(BM(t)):new Date)}),[t]);const l=[{value:"01",label:(0,a.__)("January")},{value:"02",label:(0,a.__)("February")},{value:"03",label:(0,a.__)("March")},{value:"04",label:(0,a.__)("April")},{value:"05",label:(0,a.__)("May")},{value:"06",label:(0,a.__)("June")},{value:"07",label:(0,a.__)("July")},{value:"08",label:(0,a.__)("August")},{value:"09",label:(0,a.__)("September")},{value:"10",label:(0,a.__)("October")},{value:"11",label:(0,a.__)("November")},{value:"12",label:(0,a.__)("December")}],{day:u,month:d,year:p,minutes:f,hours:h}=(0,c.useMemo)((()=>({day:iM(i,"dd"),month:iM(i,"MM"),year:iM(i,"yyyy"),minutes:iM(i,"mm"),hours:iM(i,"HH"),am:iM(i,"a")})),[i]),m=e=>(t,{event:r})=>{if(!HM(r))return;const o=Number(t),a=wM(i,{[e]:o});s(a),n?.(iM(a,WM))},g=(0,wt.jsx)(rA,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,a.__)("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:u,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("date")},"day"),v=(0,wt.jsx)(nA,{children:(0,wt.jsx)(_S,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,a.__)("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:d,options:l,onChange:e=>{const t=yM(i,Number(e)-1);s(t),n?.(iM(t,WM))}})},"month"),b=(0,wt.jsx)(oA,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,a.__)("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:p,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("year"),__unstableStateReducer:$M(4)},"year"),x=e?"mdy":"dmy",y=(r&&cA.includes(r)?r:x).split("").map((e=>{switch(e){case"d":return g;case"m":return v;case"y":return b;default:return null}}));return(0,wt.jsxs)(YM,{className:"components-datetime__time",children:[(0,wt.jsxs)(XM,{children:[o?(0,wt.jsx)(pl,{as:"legend",children:(0,a.__)("Time")}):(0,wt.jsx)(Qx.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:(0,a.__)("Time")}),(0,wt.jsxs)(yy,{className:"components-datetime__time-wrapper",children:[(0,wt.jsx)(lA,{value:{hours:Number(h),minutes:Number(f)},is12Hour:e,onChange:({hours:e,minutes:t})=>{const r=wM(i,{hours:e,minutes:t});s(r),n?.(iM(r,WM))}}),(0,wt.jsx)(Hg,{}),(0,wt.jsx)(sA,{})]})]}),(0,wt.jsxs)(XM,{children:[o?(0,wt.jsx)(pl,{as:"legend",children:(0,a.__)("Date")}):(0,wt.jsx)(Qx.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:(0,a.__)("Date")}),(0,wt.jsx)(yy,{className:"components-datetime__time-wrapper",children:y})]})]})}uA.TimeInput=lA,Object.assign(uA.TimeInput,{displayName:"TimePicker.TimeInput"});const dA=uA;const pA=cl(jk,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),fA=()=>{};const hA=(0,c.forwardRef)((function({currentDate:e,is12Hour:t,dateOrder:n,isInvalidDate:r,onMonthPreviewed:o=fA,onChange:i,events:s,startOfWeek:a},l){return(0,wt.jsx)(pA,{ref:l,className:"components-datetime",spacing:4,children:(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(dA,{currentTime:e,onChange:i,is12Hour:t,dateOrder:n}),(0,wt.jsx)(KM,{currentDate:e,onChange:i,isInvalidDate:r,events:s,onMonthPreviewed:o,startOfWeek:a})]})})})),mA=hA,gA=[{name:(0,a._x)("None","Size of a UI element"),slug:"none"},{name:(0,a._x)("Small","Size of a UI element"),slug:"small"},{name:(0,a._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,a._x)("Large","Size of a UI element"),slug:"large"},{name:(0,a._x)("Extra Large","Size of a UI element"),slug:"xlarge"}],vA={BaseControl:{_overrides:{__associatedWPComponentName:"DimensionControl"}}};const bA=function(e){const{__next40pxDefaultSize:t=!1,__nextHasNoMarginBottom:n=!1,label:r,value:o,sizes:i=gA,icon:l,onChange:c,className:u=""}=e;Fi()("wp.components.DimensionControl",{since:"6.7",version:"7.0"});const d=(0,wt.jsxs)(wt.Fragment,{children:[l&&(0,wt.jsx)(ry,{icon:l}),r]});return(0,wt.jsx)(is,{value:vA,children:(0,wt.jsx)(_S,{__next40pxDefaultSize:t,__nextHasNoMarginBottom:n,className:s(u,"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 c&&c(t.slug):c?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,a.__)("Default"),value:""},...t]})(i)})})};const xA={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},yA=(0,c.createContext)(!1),{Consumer:wA,Provider:_A}=yA;function SA({className:e,children:t,isDisabled:n=!0,...r}){const o=qa();return(0,wt.jsx)(_A,{value:n,children:(0,wt.jsx)("div",{inert:n?"true":void 0,className:n?o(xA,e,"components-disabled"):void 0,...r,children:t})})}SA.Context=yA,SA.Consumer=wA;const CA=SA,kA=(0,c.forwardRef)((({visible:e,children:t,...n},r)=>{const o=Ln({open:e});return(0,wt.jsx)($r,{store:o,ref:r,...n,children:t})})),jA="is-dragging-components-draggable";const EA=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:a,__experimentalTransferDataType:u="text",__experimentalDragComponent:d}){const p=(0,c.useRef)(null),f=(0,c.useRef)((()=>{}));return(0,c.useEffect)((()=>()=>{f.current()}),[]),(0,wt.jsxs)(wt.Fragment,{children:[e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(u,JSON.stringify(a));const c=r.createElement("div");c.style.top="0",c.style.left="0";const d=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(d.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(d),e.dataTransfer.setDragImage(d,0,0)),c.classList.add("components-draggable__clone"),i&&c.classList.add(i);let h=0,m=0;if(p.current){h=e.clientX,m=e.clientY,c.style.transform=`translate( ${h}px, ${m}px )`;const t=r.createElement("div");t.innerHTML=p.current.innerHTML,c.appendChild(t),r.body.appendChild(c)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,a=t.left;c.style.width=`${t.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${s}`,h=a-0,m=i-0,c.style.transform=`translate( ${h}px, ${m}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),c.appendChild(l),o?r.body.appendChild(c):n?.appendChild(c)}let g=e.clientX,v=e.clientY;const b=(0,l.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=h+e.clientX-g,r=m+e.clientY-v;c.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,h=t,m=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(jA),t&&t(e),f.current=()=>{c&&c.parentNode&&c.parentNode.removeChild(c),d&&d.parentNode&&d.parentNode.removeChild(d),r.body.classList.remove(jA),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),f.current(),r&&r(e)}}),d&&(0,wt.jsx)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:p,children:d})]})},PA=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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 TA=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[u,d]=(0,c.useState)(),[p,f]=(0,c.useState)(),[h,m]=(0,c.useState)(),g=(0,l.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,DT.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){d(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,DT.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),m(t)},onDragEnd(){f(!1),d(!1),m(void 0)},onDragEnter(){f(!0)},onDragLeave(){f(!1)}}),v=s("components-drop-zone",e,{"is-active":(u||p)&&("file"===h&&n||"html"===h&&r||"default"===h&&o),"is-dragging-over-document":u,"is-dragging-over-element":p,[`is-dragging-${h}`]:!!h});return(0,wt.jsx)("div",{...i,ref:g,className:v,children:(0,wt.jsx)("div",{className:"components-drop-zone__content",children:(0,wt.jsxs)("div",{className:"components-drop-zone__content-inner",children:[(0,wt.jsx)(vS,{icon:PA,className:"components-drop-zone__content-icon"}),(0,wt.jsx)("span",{className:"components-drop-zone__content-text",children:t||(0,a.__)("Drop files to upload")})]})})})};function RA({children:e}){return Fi()("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 IA=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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 NA(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} )`}Tv([Rv]);const MA=function({values:e}){return e?(0,wt.jsx)(Q_,{colorValue:NA(e,"135deg")}):(0,wt.jsx)(ry,{icon:IA})};function AA({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,u]=(0,c.useState)(!1),d=(0,l.useInstanceId)(AA,"color-list-picker-option"),p=`${d}__label`,f=`${d}__content`;return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(sy,{className:"components-color-list-picker__swatch-button",onClick:()=>u((e=>!e)),"aria-expanded":s,"aria-controls":f,children:(0,wt.jsxs)(yy,{justify:"flex-start",spacing:2,children:[t?(0,wt.jsx)(Q_,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,wt.jsx)(ry,{icon:IA}),(0,wt.jsx)("span",{id:p,children:e})]})}),(0,wt.jsx)("div",{role:"group",id:f,"aria-labelledby":p,"aria-hidden":!s,children:s&&(0,wt.jsx)(Bk,{"aria-label":(0,a.__)("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o})})]})}const DA=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,wt.jsx)("div",{className:"components-color-list-picker",children:t.map(((t,s)=>(0,wt.jsx)(AA,{label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}},s)))})},OA=["#333","#CCC"];function zA({value:e,onChange:t}){const n=!!e,r=n?e:OA,o=NA(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,wt.jsx)(hT,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const LA=function({asButtons:e,loop:t,clearable:n=!0,unsetable:r=!0,colorPalette:o,duotonePalette:i,disableCustomColors:s,disableCustomDuotone:l,value:u,onChange:d,"aria-label":p,"aria-labelledby":f,...h}){const[m,g]=(0,c.useMemo)((()=>{return!(e=o)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Ev(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}),[o]),v="unset"===u,b=(0,a.__)("Unset"),x=(0,wt.jsx)(kk.Option,{value:"unset",isSelected:v,tooltipText:b,"aria-label":b,className:"components-duotone-picker__color-indicator",onClick:()=>{d(v?void 0:"unset")}},"unset"),y=i.map((({colors:e,slug:t,name:n})=>{const r={background:NA(e,"135deg"),color:"transparent"},o=null!=n?n:(0,a.sprintf)((0,a.__)("Duotone code: %s"),t),i=n?(0,a.sprintf)((0,a.__)("Duotone: %s"),n):o,s=Ji()(e,u);return(0,wt.jsx)(kk.Option,{value:e,isSelected:s,"aria-label":i,tooltipText:o,style:r,onClick:()=>{d(s?void 0:e)}},t)}));let w;if(e)w={asButtons:!0};else{const e={asButtons:!1,loop:t};w=p?{...e,"aria-label":p}:f?{...e,"aria-labelledby":f}:{...e,"aria-label":(0,a.__)("Custom color picker.")}}const _=r?[x,...y]:y;return(0,wt.jsx)(kk,{...h,...w,options:_,actions:!!n&&(0,wt.jsx)(kk.ButtonAction,{onClick:()=>d(void 0),children:(0,a.__)("Clear")}),children:(0,wt.jsx)(Hg,{paddingTop:0===_.length?0:4,children:(0,wt.jsxs)(jk,{spacing:3,children:[!s&&!l&&(0,wt.jsx)(zA,{value:v?void 0:u,onChange:d}),!l&&(0,wt.jsx)(DA,{labels:[(0,a.__)("Shadows"),(0,a.__)("Highlights")],colors:o,value:v?void 0:u,disableCustomColors:s,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=m),e[1]||(e[1]=g);const t=e.length>=2?e:void 0;d(t)}})]})})})};const FA=(0,c.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...l}=e,c=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),u=s("components-external-link",o),d=!!n?.startsWith("#");return(0,wt.jsxs)("a",{...l,className:u,href:n,onClick:t=>{d&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:c,ref:t,children:[(0,wt.jsx)("span",{className:"components-external-link__contents",children:r}),(0,wt.jsx)("span",{className:"components-external-link__icon","aria-label":(0,a.__)("(opens in a new tab)"),children:"↗"})]})})),BA={width:200,height:170},VA=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function $A(e){return Math.round(100*e)}const HA=cl("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),WA=cl("div",{target:"eeew7dm7"})("align-items:center;border-radius:",Tl.radiusSmall,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),UA=cl("div",{target:"eeew7dm6"})("background:",jl.gray[100],";border-radius:inherit;box-sizing:border-box;height:",BA.height,"px;max-width:280px;min-width:",BA.width,"px;width:100%;"),GA=cl(mj,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var KA={name:"1mn7kwb",styles:"padding-bottom:1em"};const qA=({__nextHasNoMarginBottom:e})=>e?void 0:KA;var YA={name:"1mn7kwb",styles:"padding-bottom:1em"};const XA=({hasHelpText:e=!1})=>e?YA:void 0,ZA=cl(Ig,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",XA," ",qA,";"),QA=cl("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );z-index:1;@media not ( prefers-reduced-motion ){transition:opacity 100ms linear;}opacity:",(({showOverlay:e})=>e?1:0),";"),JA=cl("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),eD=cl(JA,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),tD=cl(JA,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),nD=0,rD=100,oD=()=>{};function iD({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=oD,point:r={x:.5,y:.5}}){const o=$A(r.x),i=$A(r.y),s=(e,t)=>{if(void 0===e)return;const o=parseInt(e,10);isNaN(o)||n({...r,[t]:o/100})};return(0,wt.jsxs)(ZA,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t,gap:4,children:[(0,wt.jsx)(sD,{label:(0,a.__)("Left"),"aria-label":(0,a.__)("Focal point left position"),value:[o,"%"].join(""),onChange:e=>s(e,"x"),dragDirection:"e"}),(0,wt.jsx)(sD,{label:(0,a.__)("Top"),"aria-label":(0,a.__)("Focal point top position"),value:[i,"%"].join(""),onChange:e=>s(e,"y"),dragDirection:"s"})]})}function sD(e){return(0,wt.jsx)(GA,{__next40pxDefaultSize:!0,className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:rD,min:nD,units:[{value:"%",label:"%"}],...e})}const aD=cl("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:",Tl.radiusRound,";backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;@media not ( prefers-reduced-motion ){transition:transform 100ms linear;}",(({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 lD({left:e="50%",top:t="50%",...n}){const r={left:e,top:t};return(0,wt.jsx)(aD,{...n,className:"components-focal-point-picker__icon_container",style:r})}function cD({bounds:e,...t}){return(0,wt.jsxs)(QA,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height},children:[(0,wt.jsx)(eD,{style:{top:"33%"}}),(0,wt.jsx)(eD,{style:{top:"66%"}}),(0,wt.jsx)(tD,{style:{left:"33%"}}),(0,wt.jsx)(tD,{style:{left:"66%"}})]})}function uD({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,wt.jsx)(UA,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||VA.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,wt.jsx)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,wt.jsx)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}const dD=function e({__nextHasNoMarginBottom:t,autoPlay:n=!0,className:r,help:o,label:i,onChange:u,onDrag:d,onDragEnd:p,onDragStart:f,resolvePoint:h,url:m,value:g={x:.5,y:.5},...v}){const[b,x]=(0,c.useState)(g),[y,w]=(0,c.useState)(!1),{startDrag:_,endDrag:S,isDragging:C}=(0,l.__experimentalUseDragging)({onDragStart:e=>{E.current?.focus();const t=I(e);t&&(f?.(t,e),x(t))},onDragMove:e=>{e.preventDefault();const t=I(e);t&&(d?.(t,e),x(t))},onDragEnd:()=>{p?.(),u?.(b)}}),{x:k,y:j}=C?b:g,E=(0,c.useRef)(null),[P,T]=(0,c.useState)(BA),R=(0,c.useRef)((()=>{if(!E.current)return;const{clientWidth:e,clientHeight:t}=E.current;T(e>0&&t>0?{width:e,height:t}:{...BA})}));(0,c.useEffect)((()=>{const e=R.current;if(!E.current)return;const{defaultView:t}=E.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,l.useIsomorphicLayoutEffect)((()=>{R.current()}),[]);const I=({clientX:e,clientY:t,shiftKey:n})=>{if(!E.current)return;const{top:r,left:o}=E.current.getBoundingClientRect();let i=(e-o)/P.width,s=(t-r)/P.height;return n&&(i=.1*Math.round(i/.1),s=.1*Math.round(s/.1)),N({x:i,y:s})},N=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)}},M={left:void 0!==k?k*P.width:.5*P.width,top:void 0!==j?j*P.height:.5*P.height},A=s("components-focal-point-picker-control",r),D=`inspector-focal-point-picker-control-${(0,l.useInstanceId)(e)}`;return ns((()=>{w(!0);const e=window.setTimeout((()=>{w(!1)}),600);return()=>window.clearTimeout(e)}),[k,j]),(0,wt.jsxs)(Qx,{...v,__nextHasNoMarginBottom:t,__associatedWPComponentName:"FocalPointPicker",label:i,id:D,help:o,className:A,children:[(0,wt.jsx)(HA,{className:"components-focal-point-picker-wrapper",children:(0,wt.jsxs)(WA,{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:j},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,s="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[s]=r[s]+i,u?.(N(r))},onMouseDown:_,onBlur:()=>{C&&S()},ref:E,role:"button",tabIndex:-1,children:[(0,wt.jsx)(cD,{bounds:P,showOverlay:y}),(0,wt.jsx)(uD,{alt:(0,a.__)("Media preview"),autoPlay:n,onLoad:R.current,src:m}),(0,wt.jsx)(lD,{...M,isDragging:C})]})}),(0,wt.jsx)(iD,{__nextHasNoMarginBottom:t,hasHelpText:!!o,point:{x:k,y:j},onChange:e=>{u?.(N(e))}})]})};function pD({iframeRef:e,...t}){const n=(0,l.useMergeRefs)([e,(0,l.useFocusableIframe)()]);return Fi()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,wt.jsx)("iframe",{ref:n,...t})}const fD=(0,wt.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,wt.jsx)(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,wt.jsx)(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 hD(e){const[t,...n]=e;if(!t)return null;const[,r]=lj(t.size);return n.every((e=>{const[,t]=lj(e.size);return t===r}))?r:null}const mD=cl("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),gD=cl(yy,{target:"e8tqeku3"})("height:",wl(4),";"),vD=cl(sy,{target:"e8tqeku2"})("margin-top:",wl(-1),";"),bD=cl(Qx.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",wl(1),";justify-content:flex-start;margin-bottom:0;"),xD=cl("span",{target:"e8tqeku0"})("color:",jl.gray[700],";"),yD={key:"default",name:(0,a.__)("Default"),value:void 0},wD={key:"custom",name:(0,a.__)("Custom")},_D=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:r,value:o,disableCustomFontSizes:i,size:s,onChange:l,onSelectCustom:c}=e,u=!!hD(r),d=[yD,...r.map((e=>{let t;if(u){const[n]=lj(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,hint:t}})),...i?[]:[wD]],p=o?null!==(t=d.find((e=>e.value===o)))&&void 0!==t?t:wD:yD;return(0,wt.jsx)(nN,{__next40pxDefaultSize:n,className:"components-font-size-picker__select",label:(0,a.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,a.sprintf)((0,a.__)("Currently selected font size: %s"),p.name),options:d,value:p,showSelectedHint:!0,onChange:({selectedItem:e})=>{e===wD?c():l(e.value)},size:s})},SD=[(0,a.__)("S"),(0,a.__)("M"),(0,a.__)("L"),(0,a.__)("XL"),(0,a.__)("XXL")],CD=[(0,a.__)("Small"),(0,a.__)("Medium"),(0,a.__)("Large"),(0,a.__)("Extra Large"),(0,a.__)("Extra Extra Large")],kD=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:r,size:o,onChange:i}=e;return(0,wt.jsx)(R_,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:r,label:(0,a.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o,children:t.map(((e,t)=>(0,wt.jsx)(aA,{value:e.size,label:SD[t],"aria-label":e.name||CD[t],showTooltip:!0},e.slug)))})},jD=["px","em","rem","vw","vh"],ED=(0,c.forwardRef)(((e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:u=jD,value:d,withSlider:p=!1,withReset:f=!0}=e,h=cj({availableUnits:u}),m=o.find((e=>e.size===d)),g=!!d&&!m,[v,b]=(0,c.useState)(g);let x;x=!i&&v?"custom":o.length>5?"select":"togglegroup";const y=(0,c.useMemo)((()=>{switch(x){case"custom":return(0,a.__)("Custom");case"togglegroup":if(m)return m.name||CD[o.indexOf(m)];break;case"select":const e=hD(o);if(e)return`(${e})`}return""}),[x,m,o]);if(0===o.length&&i)return null;const w="string"==typeof d||"string"==typeof o[0]?.size,[_,S]=lj(d,h),C=!!S&&["em","rem","vw","vh"].includes(S),k=void 0===d;return(0,wt.jsxs)(mD,{ref:t,className:"components-font-size-picker",children:[(0,wt.jsx)(pl,{as:"legend",children:(0,a.__)("Font size")}),(0,wt.jsx)(Hg,{children:(0,wt.jsxs)(gD,{className:"components-font-size-picker__header",children:[(0,wt.jsxs)(bD,{"aria-label":`${(0,a.__)("Size")} ${y||""}`,children:[(0,a.__)("Size"),y&&(0,wt.jsx)(xD,{className:"components-font-size-picker__header__hint",children:y})]}),!i&&(0,wt.jsx)(vD,{label:"custom"===x?(0,a.__)("Use size preset"):(0,a.__)("Set custom size"),icon:fD,onClick:()=>b(!v),isPressed:"custom"===x,size:"small"})]})}),(0,wt.jsxs)("div",{children:["select"===x&&(0,wt.jsx)(_D,{__next40pxDefaultSize:n,fontSizes:o,value:d,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>b(!0)}),"togglegroup"===x&&(0,wt.jsx)(kD,{fontSizes:o,value:d,__next40pxDefaultSize:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(w?e:Number(e),o.find((t=>t.size===e)))}}),"custom"===x&&(0,wt.jsxs)(Ig,{className:"components-font-size-picker__custom-size-control",children:[(0,wt.jsx)(Gg,{isBlock:!0,children:(0,wt.jsx)(mj,{__next40pxDefaultSize:n,label:(0,a.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{b(!0),s?.(void 0===e?void 0:w?e:parseInt(e,10))},size:l,units:w?h:[],min:0})}),p&&(0,wt.jsx)(Gg,{isBlock:!0,children:(0,wt.jsx)(Hg,{marginX:2,marginBottom:0,children:(0,wt.jsx)(dC,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:(0,a.__)("Custom Size"),hideLabelFromVision:!0,value:_,initialPosition:r,withInputField:!1,onChange:e=>{b(!0),s?.(void 0===e?void 0:w?e+(null!=S?S:"px"):e)},min:0,max:C?10:100,step:C?.1:1})})}),f&&(0,wt.jsx)(Gg,{children:(0,wt.jsx)(iy,{disabled:k,accessibleWhenDisabled:!0,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"===l||e.__next40pxDefaultSize?"default":"small",children:(0,a.__)("Reset")})})]})]})]})})),PD=ED;const TD=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const a=(0,c.useRef)(null),l=()=>{a.current?.click()},u=i?i({openFileDialog:l}):(0,wt.jsx)(sy,{onClick:l,...s,children:t}),d=!(globalThis.window?.navigator.userAgent.includes("Safari")&&!globalThis.window?.navigator.userAgent.includes("Chrome")&&!globalThis.window?.navigator.userAgent.includes("Chromium"))&&e?.includes("image/*")?`${e}, image/heic, image/heif`:e;return(0,wt.jsxs)("div",{className:"components-form-file-upload",children:[u,(0,wt.jsx)("input",{type:"file",ref:a,multiple:n,style:{display:"none"},accept:d,onChange:r,onClick:o,"data-testid":"form-file-upload-input"})]})},RD=()=>{};const ID=(0,c.forwardRef)((function(e,t){const{className:n,checked:r,id:o,disabled:i,onChange:a=RD,...l}=e,c=s("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return(0,wt.jsxs)("span",{className:c,children:[(0,wt.jsx)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:r,onChange:a,disabled:i,...l,ref:t}),(0,wt.jsx)("span",{className:"components-form-toggle__track"}),(0,wt.jsx)("span",{className:"components-form-toggle__thumb"})]})})),ND=ID,MD=()=>{};function AD({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:c=MD,onMouseEnter:u,onMouseLeave:d,messages:p,termPosition:f,termsCount:h}){const m=(0,l.useInstanceId)(AD),g=s("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),v=r(e),b=(0,a.sprintf)((0,a.__)("%1$s (%2$s of %3$s)"),v,f,h);return(0,wt.jsxs)("span",{className:g,onMouseEnter:u,onMouseLeave:d,title:n,children:[(0,wt.jsxs)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${m}`,children:[(0,wt.jsx)(pl,{as:"span",children:b}),(0,wt.jsx)("span",{"aria-hidden":"true",children:v})]}),(0,wt.jsx)(sy,{className:"components-form-token-field__remove-token",icon:e_,onClick:i?void 0:()=>c({value:e}),disabled:i,label:p.remove,"aria-describedby":`components-form-token-field__token-text-${m}`})]})}const DD=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&bl("padding-top:",wl(t?1:.5),";padding-bottom:",wl(t?1:.5),";",""),OD=cl(Ig,{target:"ehq8nmi0"})("padding:7px;",Bx," ",DD,";"),zD=e=>e;const LD=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:u=(0,a.__)("Add item"),className:d,suggestions:p=[],maxSuggestions:f=100,value:h=[],displayTransform:m=zD,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:x,isBorderless:y=!1,disabled:w=!1,tokenizeOnSpace:_=!1,messages:S={added:(0,a.__)("Item added."),removed:(0,a.__)("Item removed."),remove:(0,a.__)("Remove item"),__experimentalInvalid:(0,a.__)("Invalid item")},__experimentalRenderItem:C,__experimentalExpandOnFocus:k=!1,__experimentalValidateInput:j=(()=>!0),__experimentalShowHowTo:E=!0,__next40pxDefaultSize:P=!1,__experimentalAutoSelectFirstMatch:T=!1,__nextHasNoMarginBottom:R=!1,tokenizeOnBlur:I=!1}=_b(t);R||Fi()("Bottom margin styles for wp.components.FormTokenField",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const N=(0,l.useInstanceId)(e),[M,A]=(0,c.useState)(""),[D,O]=(0,c.useState)(0),[z,L]=(0,c.useState)(!1),[F,B]=(0,c.useState)(!1),[V,$]=(0,c.useState)(-1),[H,W]=(0,c.useState)(!1),U=(0,l.usePrevious)(p),G=(0,l.usePrevious)(h),K=(0,c.useRef)(null),q=(0,c.useRef)(null),Y=(0,l.useDebounce)(My.speak,500);function X(){K.current?.focus()}function Z(){return K.current===K.current?.ownerDocument.activeElement}function Q(e){if(fe()&&j(M))L(!1),I&&fe()&&ae(M);else{if(A(""),O(0),L(!1),k){const t=e.relatedTarget===q.current;B(t)}else B(!1);$(-1),W(!1)}}function J(e){e.target===q.current&&z&&e.preventDefault()}function ee(e){le(e.value),X()}function te(e){const t=e.value,n=_?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&se(r.slice(0,-1)),A(o),b(o)}function ne(e){let t=!1;return Z()&&pe()&&(e(),t=!0),t}function re(){const e=de()-1;e>-1&&le(h[e])}function oe(){const e=de();e<h.length&&(le(h[e]),function(e){O(h.length-Math.max(e,-1)-1)}(e))}function ie(){let e=!1;const t=function(){if(-1!==V)return ue()[V];return}();return t?(ae(t),e=!0):fe()&&(ae(M),e=!0),e}function se(e){const t=[...new Set(e.map(g).filter(Boolean).filter((e=>!function(e){return h.some((t=>ce(e)===ce(t)))}(e))))];if(t.length>0){const e=[...h];e.splice(de(),0,...t),v(e)}}function ae(e){j(e)?(se([e]),(0,My.speak)(S.added,"assertive"),A(""),$(-1),W(!1),B(!k),z&&!I&&X()):(0,My.speak)(S.__experimentalInvalid,"assertive")}function le(e){const t=h.filter((t=>ce(t)!==ce(e)));v(t),(0,My.speak)(S.removed,"assertive")}function ce(e){return"object"==typeof e?e.value:e}function ue(e=M,t=p,n=h,r=f,o=g){let i=o(e);const s=[],a=[],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?s.push(e):t>0&&a.push(e))})),t=s.concat(a)),t.slice(0,r)}function de(){return h.length-D}function pe(){return 0===M.length}function fe(){return g(M).length>0}function he(e=!0){const t=M.trim().length>1,n=ue(M),r=n.length>0,o=Z()&&k;if(B(o||t&&r),e&&(T&&t&&r?($(0),W(!0)):($(-1),W(!1))),t){const e=r?(0,a.sprintf)((0,a._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,a.__)("No results.");Y(e,"assertive")}}function me(e,t,n){const r=ce(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,wt.jsx)(Gg,{children:(0,wt.jsx)(AD,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:m,onClickRemove:ee,isBorderless:"string"!=typeof e&&e.isBorderless||y,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&w,messages:S,termsCount:s,termPosition:i})},"token-"+r)}(0,c.useEffect)((()=>{z&&!Z()&&X()}),[z]),(0,c.useEffect)((()=>{const e=!ww()(p,U||[]);(e||h!==G)&&he(e)}),[p,U,h,G]),(0,c.useEffect)((()=>{he()}),[M]),(0,c.useEffect)((()=>{he()}),[T]),w&&z&&(L(!1),A(""));const ge=s(d,"components-form-token-field__input-container",{"is-active":z,"is-disabled":w});let ve={className:"components-form-token-field",tabIndex:-1};const be=ue();return w||(ve=Object.assign({},ve,{onKeyDown:Ax((function(e){let t=!1;if(!e.defaultPrevented){switch(e.key){case"Backspace":t=ne(re);break;case"Enter":t=ie();break;case"ArrowLeft":t=function(){let e=!1;return pe()&&(O((e=>Math.min(e+1,h.length))),e=!0),e}();break;case"ArrowUp":$((e=>(0===e?ue(M,p,h,f,g).length:e)-1)),W(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return pe()&&(O((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":$((e=>(e+1)%ue(M,p,h,f,g).length)),W(!0),t=!0;break;case"Delete":t=ne(oe);break;case"Space":_&&(t=ie());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(A(e.target.value),B(!1),$(-1),W(!1)),!0}(e)}t&&e.preventDefault()}})),onKeyPress:function(e){let t=!1;","===e.key&&(fe()&&ae(M),t=!0);t&&e.preventDefault()},onFocus:function(e){Z()||e.target===q.current?(L(!0),B(k||F)):L(!1),"function"==typeof x&&x(e)}})),(0,wt.jsxs)("div",{...ve,children:[u&&(0,wt.jsx)(Ux,{htmlFor:`components-form-token-input-${N}`,className:"components-form-token-field__label",children:u}),(0,wt.jsxs)("div",{ref:q,className:ge,tabIndex:-1,onMouseDown:J,onTouchStart:J,children:[(0,wt.jsx)(OD,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:P,hasTokens:!!h.length,children:function(){const e=h.map(me);return e.splice(de(),0,function(){const e={instanceId:N,autoCapitalize:n,autoComplete:r,placeholder:0===h.length?i:"",disabled:w,value:M,onBlur:Q,isExpanded:F,selectedSuggestionIndex:V};return(0,wt.jsx)(fR,{...e,onChange:o&&h.length>=o?void 0:te,ref:K},"input")}()),e}()}),F&&(0,wt.jsx)(mR,{instanceId:N,match:g(M),displayTransform:m,suggestions:be,selectedIndex:V,scrollIntoView:H,onHover:function(e){const t=ue().indexOf(e);t>=0&&($(t),W(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:C})]}),!R&&(0,wt.jsx)(Hg,{marginBottom:2}),E&&(0,wt.jsx)(qx,{id:`components-form-token-suggestions-howto-${N}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:R,children:_?(0,a.__)("Separate with commas, spaces, or the Enter key."):(0,a.__)("Separate with commas or the Enter key.")})]})},FD=()=>(0,wt.jsx)(n.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)(n.Circle,{cx:"4",cy:"4",r:"4"})});function BD({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,wt.jsx)("ul",{className:"components-guide__page-control","aria-label":(0,a.__)("Guide controls"),children:Array.from({length:t}).map(((r,o)=>(0,wt.jsx)("li",{"aria-current":o===e?"step":void 0,children:(0,wt.jsx)(sy,{icon:(0,wt.jsx)(FD,{}),"aria-label":(0,a.sprintf)((0,a.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)},o)},o)))})}const VD=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,a.__)("Finish"),onFinish:o,pages:i=[]}){const l=(0,c.useRef)(null),[u,d]=(0,c.useState)(0);var p;(0,c.useEffect)((()=>{const e=l.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[u]),(0,c.useEffect)((()=>{c.Children.count(e)&&Fi()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),c.Children.count(e)&&(i=null!==(p=c.Children.map(e,(e=>({content:e}))))&&void 0!==p?p:[]);const f=u>0,h=u<i.length-1,m=()=>{f&&d(u-1)},g=()=>{h&&d(u+1)};return 0===i.length?null:(0,wt.jsx)(LR,{className:s("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(m(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:l,children:(0,wt.jsxs)("div",{className:"components-guide__container",children:[(0,wt.jsxs)("div",{className:"components-guide__page",children:[i[u].image,i.length>1&&(0,wt.jsx)(BD,{currentPage:u,numberOfPages:i.length,setCurrentPage:d}),i[u].content]}),(0,wt.jsxs)("div",{className:"components-guide__footer",children:[f&&(0,wt.jsx)(sy,{className:"components-guide__back-button",variant:"tertiary",onClick:m,__next40pxDefaultSize:!0,children:(0,a.__)("Previous")}),h&&(0,wt.jsx)(sy,{className:"components-guide__forward-button",variant:"primary",onClick:g,__next40pxDefaultSize:!0,children:(0,a.__)("Next")}),!h&&(0,wt.jsx)(sy,{className:"components-guide__finish-button",variant:"primary",onClick:o,__next40pxDefaultSize:!0,children:r})]})]})})};function $D(e){return(0,c.useEffect)((()=>{Fi()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,wt.jsx)("div",{...e})}const HD=(0,c.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return Fi()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,wt.jsx)(sy,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const WD=Xa((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=Ya(e,"Item"),{spacedAround:a,size:l}=QP(),u=i||l,d=t||(void 0!==r?"button":"div"),p=qa(),f=(0,c.useMemo)((()=>p(("button"===d||"a"===d)&&LP(d),XP[u]||XP.medium,BP,a&&WP,n)),[d,n,p,u,a]),h=p(FP);return{as:d,className:f,onClick:r,wrapperClassName:h,role:o,...s}}(e);return(0,wt.jsx)("div",{role:n,className:r,children:(0,wt.jsx)(dl,{...o,ref:t})})}),"Item"),UD=WD;function GD({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,l.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}const KD=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,c.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,wt.jsx)(GD,{shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o},e)));return c.Children.count(e)?(0,wt.jsxs)("div",{ref:o,children:[i,e]}):(0,wt.jsx)(wt.Fragment,{children:i})};const qD=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=(0,l.useInstanceId)(e);if(!c.Children.count(n))return null;const u=`components-menu-group-label-${a}`,d=s(r,"components-menu-group",{"has-hidden-separator":i});return(0,wt.jsxs)("div",{className:d,children:[o&&(0,wt.jsx)("div",{className:"components-menu-group__label",id:u,"aria-hidden":"true",children:o}),(0,wt.jsx)("div",{role:"group","aria-labelledby":o?u:void 0,children:n})]})};const YD=(0,c.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:a="right",shortcut:l,isSelected:u,role:d="menuitem",suffix:p,...f}=e;return o=s("components-menu-item__button",o),r&&(n=(0,wt.jsxs)("span",{className:"components-menu-item__info-wrapper",children:[(0,wt.jsx)("span",{className:"components-menu-item__item",children:n}),(0,wt.jsx)("span",{className:"components-menu-item__info",children:r})]})),i&&"string"!=typeof i&&(i=(0,c.cloneElement)(i,{className:s("components-menu-items__item-icon",{"has-icon-right":"right"===a})})),(0,wt.jsxs)(sy,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===a?i:void 0,className:o,...f,children:[(0,wt.jsx)("span",{className:"components-menu-item__item",children:n}),!p&&(0,wt.jsx)(Bi,{className:"components-menu-item__shortcut",shortcut:l}),!p&&i&&"right"===a&&(0,wt.jsx)(ry,{icon:i}),p]})})),XD=YD,ZD=()=>{};const QD=function({choices:e=[],onHover:t=ZD,onSelect:n,value:r}){return(0,wt.jsx)(wt.Fragment,{children:e.map((e=>{const o=r===e.value;return(0,wt.jsx)(XD,{role:"menuitemradio",disabled:e.disabled,icon:o?xk:null,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"],children:e.label},e.value)}))})};const JD=(0,c.forwardRef)((function({eventToOffset:e,...t},n){return(0,wt.jsx)(BT,{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})})),eO="root",tO=100,nO=()=>{},rO=()=>{},oO=(0,c.createContext)({activeItem:void 0,activeMenu:eO,setActiveMenu:nO,navigationTree:{items:{},getItem:rO,addItem:nO,removeItem:nO,menus:{},getMenu:rO,addMenu:nO,removeMenu:nO,childMenu:{},traverseMenu:nO,isMenuEmpty:()=>!1}}),iO=()=>(0,c.useContext)(oO);const sO=cl("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",wl(4),";overflow:hidden;"),aO=cl("div",{target:"eeiismy10"})("margin-top:",wl(6),";margin-bottom:",wl(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",wl(6),";}.components-navigation__group+.components-navigation__group{margin-top:",wl(6),";}"),lO=cl(sy,{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=cl("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),uO=cl("div",{target:"eeiismy7"})({name:"rgorny",styles:"margin:11px 0;padding:1px"}),dO=cl("span",{target:"eeiismy6"})("height:",wl(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",wl(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),pO=cl(Tk,{target:"eeiismy5"})("min-height:",wl(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",wl(2),";padding:",(()=>(0,a.isRTL)()?`${wl(1)} ${wl(4)} ${wl(1)} ${wl(2)}`:`${wl(1)} ${wl(2)} ${wl(1)} ${wl(4)}`),";"),fO=cl("li",{target:"eeiismy4"})("border-radius:",Tl.radiusSmall,";color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",wl(2)," ",wl(4),";",Bg({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:",jl.theme.accent,";color:",jl.white,";>button,>a{color:",jl.white,";opacity:1;}}>svg path{color:",jl.gray[600],";}"),hO=cl("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",wl(1.5)," ",wl(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),mO=cl("span",{target:"eeiismy2"})("display:flex;margin-right:",wl(2),";"),gO=cl("span",{target:"eeiismy1"})("margin-left:",(()=>(0,a.isRTL)()?"0":wl(2)),";margin-right:",(()=>(0,a.isRTL)()?wl(2):"0"),";display:inline-flex;padding:",wl(1)," ",wl(3),";border-radius:",Tl.radiusSmall,";@keyframes fade-in{from{opacity:0;}to{opacity:1;}}@media not ( prefers-reduced-motion ){animation:fade-in 250ms ease-out;}"),vO=cl(Xv,{target:"eeiismy0"})((()=>(0,a.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function bO(){const[e,t]=(0,c.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 xO=()=>{};const yO=function({activeItem:e,activeMenu:t=eO,children:n,className:r,onActivateMenu:o=xO}){const[i,l]=(0,c.useState)(t),[u,d]=(0,c.useState)(),p=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=bO(),{nodes:o,getNode:i,addNode:s,removeNode:a}=bO(),[l,u]=(0,c.useState)({}),d=e=>l[e]||[],p=(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,...d(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{u((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:a,childMenu:l,traverseMenu:p,isMenuEmpty:e=>{let t=!0;return p(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),f=(0,a.isRTL)()?"right":"left",h=(e,t=f)=>{p.getMenu(e)&&(d(t),l(e),o(e))},m=(0,c.useRef)(!1);(0,c.useEffect)((()=>{m.current||(m.current=!0)}),[]),(0,c.useEffect)((()=>{t!==i&&h(t)}),[t]);const g={activeItem:e,activeMenu:i,setActiveMenu:h,navigationTree:p},v=s("components-navigation",r),b=Vl({type:"slide-in",origin:u});return(0,wt.jsx)(sO,{className:v,children:(0,wt.jsx)("div",{className:b?s({[b]:m.current&&u}):void 0,children:(0,wt.jsx)(oO.Provider,{value:g,children:n})},i)})},wO=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),_O=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});const SO=(0,c.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:l,navigationTree:c}=iO(),u=s("components-navigation__back-button",t),d=void 0!==o?c.getMenu(o)?.title:void 0,p=(0,a.isRTL)()?wO:_O;return(0,wt.jsxs)(lO,{className:u,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,a.isRTL)()?"left":"right";o&&!e.defaultPrevented&&l(o,t)},children:[(0,wt.jsx)(vS,{icon:p}),e||d||(0,a.__)("Back")]})})),CO=SO,kO=(0,c.createContext)({group:void 0});let jO=0;const EO=function({children:e,className:t,title:n}){const[r]=(0,c.useState)("group-"+ ++jO),{navigationTree:{items:o}}=iO(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,wt.jsx)(kO.Provider,{value:i,children:e});const a=`components-navigation__group-title-${r}`,l=s("components-navigation__group",t);return(0,wt.jsx)(kO.Provider,{value:i,children:(0,wt.jsxs)("li",{className:l,children:[n&&(0,wt.jsx)(pO,{className:"components-navigation__group-title",id:a,level:3,children:n}),(0,wt.jsx)("ul",{"aria-labelledby":a,role:"group",children:e})]})})};function PO(e){const{badge:t,title:n}=e;return(0,wt.jsxs)(wt.Fragment,{children:[n&&(0,wt.jsx)(vO,{className:"components-navigation__item-title",as:"span",children:n}),t&&(0,wt.jsx)(gO,{className:"components-navigation__item-badge",children:t})]})}const TO=(0,c.createContext)({menu:void 0,search:""}),RO=()=>(0,c.useContext)(TO),IO=e=>Iy()(e).replace(/^\//,"").toLowerCase(),NO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=iO(),{group:i}=(0,c.useContext)(kO),{menu:s,search:a}=RO();(0,c.useEffect)((()=>{const l=n===s,c=!a||void 0!==t.title&&((e,t)=>-1!==IO(e).indexOf(IO(t)))(t.title,a);return r(e,{...t,group:i,menu:s,_isVisible:l&&c}),()=>{o(e)}}),[n,a])};let MO=0;function AO(e){const{children:t,className:n,title:r,href:o,...i}=e,[a]=(0,c.useState)("item-"+ ++MO);NO(a,e);const{navigationTree:l}=iO();if(!l.getItem(a)?._isVisible)return null;const u=s("components-navigation__item",n);return(0,wt.jsx)(fO,{className:u,...i,children:t})}const DO=()=>{};const OO=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:l,onClick:c=DO,title:u,icon:d,hideIfTargetMenuEmpty:p,isText:f,...h}=e,{activeItem:m,setActiveMenu:g,navigationTree:{isMenuEmpty:v}}=iO();if(p&&l&&v(l))return null;const b=i&&m===i,x=s(r,{"is-active":b}),y=(0,a.isRTL)()?_O:wO,w=n?e:{...e,onClick:void 0},_=f?h:{as:sy,href:o,onClick:e=>{l&&g(l),c(e)},"aria-current":b?"page":void 0,...h};return(0,wt.jsx)(AO,{...w,className:x,children:n||(0,wt.jsxs)(hO,{..._,children:[d&&(0,wt.jsx)(mO,{children:(0,wt.jsx)(vS,{icon:d})}),(0,wt.jsx)(PO,{title:u,badge:t}),l&&(0,wt.jsx)(vS,{icon:y})]})})},zO=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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"})}),LO=(0,l.createHigherOrderComponent)((e=>t=>(0,wt.jsx)(e,{...t,speak:My.speak,debouncedSpeak:(0,l.useDebounce)(My.speak,500)})),"withSpokenMessages"),FO=({size:e})=>wl("compact"===e?1:2),BO=cl("div",{target:"effl84m1"})("display:flex;padding-inline-end:",FO,";svg{fill:currentColor;}"),VO=cl(ty,{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:",jl.theme.gray[100],";}");function $O({searchRef:e,value:t,onChange:n,onClose:r}){if(!r&&!t)return(0,wt.jsx)(vS,{icon:zO});return(0,wt.jsx)(sy,{size:"small",icon:e_,label:r?(0,a.__)("Close search"):(0,a.__)("Reset search"),onClick:null!=r?r:()=>{n(""),e.current?.focus()}})}const HO=(0,c.forwardRef)((function({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:r,label:o=(0,a.__)("Search"),placeholder:i=(0,a.__)("Search"),hideLabelFromVision:u=!0,onClose:d,size:p="default",...f},h){delete f.disabled;const m=(0,c.useRef)(null),g=(0,l.useInstanceId)(HO,"components-search-control"),v=(0,c.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e},__associatedWPComponentName:"SearchControl"},InputBase:{isBorderless:!0}})),[e]);return(0,wt.jsx)(is,{value:v,children:(0,wt.jsx)(VO,{__next40pxDefaultSize:!0,id:g,hideLabelFromVision:u,label:o,ref:(0,l.useMergeRefs)([m,h]),type:"search",size:p,className:s("components-search-control",t),onChange:e=>n(null!=e?e:""),autoComplete:"off",placeholder:i,value:null!=r?r:"",suffix:(0,wt.jsx)(BO,{size:p,children:(0,wt.jsx)($O,{searchRef:m,value:r,onChange:n,onClose:d})}),...f})})})),WO=HO;const UO=LO((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=iO(),{menu:s}=RO(),l=(0,c.useRef)(null);(0,c.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),tO);return()=>{clearTimeout(e)}}),[]),(0,c.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,a.sprintf)((0,a._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const u=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,p=(0,a.sprintf)((0,a.__)("Search %s"),o?.toLowerCase()).trim();return(0,wt.jsx)(uO,{children:(0,wt.jsx)(WO,{__nextHasNoMarginBottom:!0,className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),u())},placeholder:p,onClose:u,ref:l,value:r})})}));function GO({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,c.useState)(!1),{menu:l}=RO(),u=(0,c.useRef)(null);if(!r)return null;const d=`components-navigation__menu-title-${l}`,p=(0,a.sprintf)((0,a.__)("Search in %s"),r);return(0,wt.jsxs)(cO,{className:"components-navigation__menu-title",children:[!i&&(0,wt.jsxs)(pO,{as:"h2",className:"components-navigation__menu-title-heading",level:3,children:[(0,wt.jsx)("span",{id:d,children:r}),(e||o)&&(0,wt.jsxs)(dO,{children:[o,e&&(0,wt.jsx)(sy,{size:"small",variant:"tertiary",label:p,onClick:()=>s(!0),ref:u,children:(0,wt.jsx)(vS,{icon:zO})})]})]}),i&&(0,wt.jsx)("div",{className:Vl({type:"slide-in",origin:"left"}),children:(0,wt.jsx)(UO,{onCloseSearch:()=>{s(!1),setTimeout((()=>{u.current?.focus()}),tO)},onSearch:t,search:n,title:r})})]})}function KO({search:e}){const{navigationTree:{items:t}}=iO(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,wt.jsx)(fO,{children:(0,wt.jsxs)(hO,{children:[(0,a.__)("No results found.")," "]})})}const qO=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=eO,onBackButtonClick:a,onSearch:l,parentMenu:u,search:d,isSearchDebouncing:p,title:f,titleAction:h}=e,[m,g]=(0,c.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=iO(),r=e.menu||eO;(0,c.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=iO(),b={menu:i,search:m};if(v!==i)return(0,wt.jsx)(TO.Provider,{value:b,children:n});const x=!!l,y=x?d:m,w=x?l:g,_=`components-navigation__menu-title-${i}`,S=s("components-navigation__menu",r);return(0,wt.jsx)(TO.Provider,{value:b,children:(0,wt.jsxs)(aO,{className:S,children:[(u||a)&&(0,wt.jsx)(CO,{backButtonLabel:t,parentMenu:u,onClick:a}),f&&(0,wt.jsx)(GO,{hasSearch:o,onSearch:w,search:y,title:f,titleAction:h}),(0,wt.jsx)($T,{children:(0,wt.jsxs)("ul",{"aria-labelledby":_,children:[n,y&&!p&&(0,wt.jsx)(KO,{search:y})]})})]})})};function YO(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[a=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;)if("\\"!==e[a]){if(")"===e[a]){if(0==--o){a++;break}}else if("("===e[a]&&(o++,"?"!==e[a+1]))throw new TypeError("Capturing groups are not allowed at ".concat(a));i+=e[a++]}else i+=e[a++]+e[a++];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=a}else{for(var s="",a=n+1;a<e.length;){var l=e.charCodeAt(a);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;s+=e[a++]}if(!s)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:s}),n=a}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=t.delimiter,s=void 0===i?"/#?":i,a=[],l=0,c=0,u="",d=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var r=n[c],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=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},h=function(e){var t=a[a.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=s;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(ZO(s),"]+?"):"(?:(?!".concat(ZO(n),")[^").concat(ZO(s),"])+?")};c<n.length;){var m=d("CHAR"),g=d("NAME"),v=d("PATTERN");if(g||v){var b=m||"";-1===o.indexOf(b)&&(u+=b,b=""),u&&(a.push(u),u=""),a.push({name:g||l++,prefix:b,suffix:"",pattern:v||h(b),modifier:d("MODIFIER")||""})}else{var x=m||d("ESCAPED_CHAR");if(x)u+=x;else if(u&&(a.push(u),u=""),d("OPEN")){b=f();var y=d("NAME")||"",w=d("PATTERN")||"",_=f();p("CLOSE"),a.push({name:y||(w?l++:""),pattern:y&&!w?h(b):w,prefix:b,suffix:_,modifier:d("MODIFIER")||""})}else p("END")}}return a}function XO(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],s=r.index,a=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?a[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):a[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:s,params:a}}}(ez(e,n,t),n,t)}function ZO(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function QO(e){return e&&e.sensitive?"":"i"}function JO(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,s=void 0===i||i,a=n.end,l=void 0===a||a,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,p=void 0===d?"/#?":d,f=n.endsWith,h="[".concat(ZO(void 0===f?"":f),"]|$"),m="[".concat(ZO(p),"]"),g=s?"^":"",v=0,b=e;v<b.length;v++){var x=b[v];if("string"==typeof x)g+=ZO(u(x));else{var y=ZO(u(x.prefix)),w=ZO(u(x.suffix));if(x.pattern)if(t&&t.push(x),y||w)if("+"===x.modifier||"*"===x.modifier){var _="*"===x.modifier?"?":"";g+="(?:".concat(y,"((?:").concat(x.pattern,")(?:").concat(w).concat(y,"(?:").concat(x.pattern,"))*)").concat(w,")").concat(_)}else g+="(?:".concat(y,"(").concat(x.pattern,")").concat(w,")").concat(x.modifier);else{if("+"===x.modifier||"*"===x.modifier)throw new TypeError('Can not repeat "'.concat(x.name,'" without a prefix and suffix'));g+="(".concat(x.pattern,")").concat(x.modifier)}else g+="(?:".concat(y).concat(w,")").concat(x.modifier)}}if(l)o||(g+="".concat(m,"?")),g+=n.endsWith?"(?=".concat(h,")"):"$";else{var S=e[e.length-1],C="string"==typeof S?m.indexOf(S[S.length-1])>-1:void 0===S;o||(g+="(?:".concat(m,"(?=").concat(h,"))?")),C||(g+="(?=".concat(m,"|").concat(h,")"))}return new RegExp(g,QO(n))}(YO(e,n),t,n)}function ez(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 ez(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),QO(n))}(e,t,n):JO(e,t,n)}function tz(e,t){return XO(t,{decode:decodeURIComponent})(e)}const nz=(0,c.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const rz={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},oz=xl({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),iz=xl({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),sz=e=>bl("overflow-x:auto;max-height:100%;",(({isInitial:e,isBack:t,isRTL:n})=>{if(e&&!t)return;return bl("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?oz:iz,";@media ( prefers-reduced-motion ){animation-duration:0s;}","")})(e),";","");function az(e,t,n={}){var r;const{focusSelectors:o}=e,i={...e.currentLocation},{isBack:s=!1,skipFocus:a=!1,replace:l,focusTargetSelector:c,...u}=n;if(i.path===t)return{currentLocation:i,focusSelectors:o};let d,p;function f(){var t;return d=null!==(t=d)&&void 0!==t?t:new Map(e.focusSelectors),d}return c&&i.path&&f().set(i.path,c),o.get(t)&&(s&&(p=o.get(t)),f().delete(t)),{currentLocation:{...u,isInitial:!1,path:t,isBack:s,hasRestoredFocus:!1,focusTargetSelector:p,skipFocus:a},focusSelectors:null!==(r=d)&&void 0!==r?r:o}}function lz(e,t={}){const{screens:n,focusSelectors:r}=e,o={...e.currentLocation},i=o.path;if(void 0===i)return{currentLocation:o,focusSelectors:r};const s=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!==tz(e,t.path)))&&(r=e)}return r}(i,n);return void 0===s?{currentLocation:o,focusSelectors:r}:az(e,s,{...t,isBack:!0})}function cz(e,t){let{screens:n,currentLocation:r,matchedPath:o,focusSelectors:i,...s}=e;switch(t.type){case"add":n=function({screens:e},t){return e.some((e=>e.path===t.path))?e:[...e,t]}(e,t.screen);break;case"remove":n=function({screens:e},t){return e.filter((e=>e.id!==t.id))}(e,t.screen);break;case"goto":({currentLocation:r,focusSelectors:i}=az(e,t.path,t.options));break;case"gotoparent":({currentLocation:r,focusSelectors:i}=lz(e,t.options))}if(n===e.screens&&r===e.currentLocation)return e;const a=r.path;return o=void 0!==a?function(e,t){for(const n of t){const t=tz(e,n.path);if(t)return{params:t.params,id:n.id}}}(a,n):void 0,o&&e.matchedPath&&o.id===e.matchedPath.id&&ww()(o.params,e.matchedPath.params)&&(o=e.matchedPath),{...s,screens:n,currentLocation:r,matchedPath:o,focusSelectors:i}}const uz=Xa((function(e,t){const{initialPath:n,children:r,className:o,...i}=Ya(e,"NavigatorProvider"),[s,a]=(0,c.useReducer)(cz,n,(e=>({screens:[],currentLocation:{path:e,isInitial:!0},matchedPath:void 0,focusSelectors:new Map,initialPath:n}))),l=(0,c.useMemo)((()=>({goBack:e=>a({type:"gotoparent",options:e}),goTo:(e,t)=>a({type:"goto",path:e,options:t}),goToParent:e=>{Fi()("wp.components.useNavigator().goToParent",{since:"6.7",alternative:"wp.components.useNavigator().goBack"}),a({type:"gotoparent",options:e})},addScreen:e=>a({type:"add",screen:e}),removeScreen:e=>a({type:"remove",screen:e})})),[]),{currentLocation:u,matchedPath:d}=s,p=(0,c.useMemo)((()=>{var e;return{location:u,params:null!==(e=d?.params)&&void 0!==e?e:{},match:d?.id,...l}}),[u,d,l]),f=qa(),h=(0,c.useMemo)((()=>f(rz,o)),[o,f]);return(0,wt.jsx)(dl,{ref:t,className:h,...i,children:(0,wt.jsx)(nz.Provider,{value:p,children:r})})}),"NavigatorProvider"),dz=window.wp.escapeHtml;const pz=Xa((function(e,t){/^\//.test(e.path);const n=(0,c.useId)(),{children:r,className:o,path:i,...s}=Ya(e,"NavigatorScreen"),{location:u,match:d,addScreen:p,removeScreen:f}=(0,c.useContext)(nz),h=d===n,m=(0,c.useRef)(null);(0,c.useEffect)((()=>{const e={id:n,path:(0,dz.escapeAttribute)(i)};return p(e),()=>f(e)}),[n,i,p,f]);const g=(0,a.isRTL)(),{isInitial:v,isBack:b}=u,x=qa(),y=(0,c.useMemo)((()=>x(sz({isInitial:v,isBack:b,isRTL:g}),o)),[o,x,v,b,g]),w=(0,c.useRef)(u);(0,c.useEffect)((()=>{w.current=u}),[u]);const _=u.isInitial&&!u.isBack;(0,c.useEffect)((()=>{if(_||!h||!m.current||w.current.hasRestoredFocus||u.skipFocus)return;const e=m.current.ownerDocument.activeElement;if(m.current.contains(e))return;let t=null;if(u.isBack&&u.focusTargetSelector&&(t=m.current.querySelector(u.focusTargetSelector)),!t){const[e]=DT.focus.tabbable.find(m.current);t=null!=e?e:m.current}w.current.hasRestoredFocus=!0,t.focus()}),[_,h,u.isBack,u.focusTargetSelector,u.skipFocus]);const S=(0,l.useMergeRefs)([t,m]);return h?(0,wt.jsx)(dl,{ref:S,className:y,...s,children:r}):null}),"NavigatorScreen");function fz(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,c.useContext)(nz);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}}const hz=(e,t)=>`[${e}="${t}"]`;const mz=Xa((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=sy,attributeName:o="id",...i}=Ya(e,"NavigatorButton"),s=(0,dz.escapeAttribute)(t),{goTo:a}=fz();return{as:r,onClick:(0,c.useCallback)((e=>{e.preventDefault(),a(s,{focusTargetSelector:hz(o,s)}),n?.(e)}),[a,n,o,s]),...i,[o]:s}}(e);return(0,wt.jsx)(dl,{ref:t,...n})}),"NavigatorButton");const gz=Xa((function(e,t){const n=function(e){const{onClick:t,as:n=sy,...r}=Ya(e,"NavigatorBackButton"),{goBack:o}=fz();return{as:n,onClick:(0,c.useCallback)((e=>{e.preventDefault(),o(),t?.(e)}),[o,t]),...r}}(e);return(0,wt.jsx)(dl,{ref:t,...n})}),"NavigatorBackButton");const vz=Xa((function(e,t){return Fi()("wp.components.NavigatorToParentButton",{since:"6.7",alternative:"wp.components.NavigatorBackButton"}),(0,wt.jsx)(gz,{ref:t,...e})}),"NavigatorToParentButton"),bz=()=>{};function xz(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function yz(e){switch(e){case"warning":return(0,a.__)("Warning notice");case"info":return(0,a.__)("Information notice");case"error":return(0,a.__)("Error notice");default:return(0,a.__)("Notice")}}const wz=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=bz,isDismissible:i=!0,actions:l=[],politeness:u=xz(t),__unstableHTML:d,onDismiss:p=bz}){!function(e,t){const n="string"==typeof e?e:(0,c.renderToString)(e);(0,c.useEffect)((()=>{n&&(0,My.speak)(n,t)}),[n,t])}(r,u);const f=s(e,"components-notice","is-"+t,{"is-dismissible":i});return d&&"string"==typeof n&&(n=(0,wt.jsx)(c.RawHTML,{children:n})),(0,wt.jsxs)("div",{className:f,children:[(0,wt.jsx)(pl,{children:yz(t)}),(0,wt.jsxs)("div",{className:"components-notice__content",children:[n,(0,wt.jsx)("div",{className:"components-notice__actions",children:l.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:a},l)=>{let c=r;return"primary"===r||o||(c=a?"link":"secondary"),void 0===c&&n&&(c="primary"),(0,wt.jsx)(sy,{href:a,variant:c,onClick:a?void 0:i,className:s("components-notice__action",e),children:t},l)}))})]}),i&&(0,wt.jsx)(sy,{className:"components-notice__dismiss",icon:Gy,label:(0,a.__)("Close"),onClick:()=>{p(),o()}})]})},_z=()=>{};const Sz=function({notices:e,onRemove:t=_z,className:n,children:r}){const o=e=>()=>t(e);return n=s("components-notice-list",n),(0,wt.jsxs)("div",{className:n,children:[r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,B.createElement)(wz,{...n,key:e.id,onRemove:o(e.id)},e.content)}))]})};const Cz=function({label:e,children:t}){return(0,wt.jsxs)("div",{className:"components-panel__header",children:[e&&(0,wt.jsx)("h2",{children:e}),t]})};const kz=(0,c.forwardRef)((function({header:e,className:t,children:n},r){const o=s(t,"components-panel");return(0,wt.jsxs)("div",{className:o,ref:r,children:[e&&(0,wt.jsx)(Cz,{label:e}),n]})})),jz=(0,wt.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,wt.jsx)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),Ez=()=>{};const Pz=(0,c.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,wt.jsx)("h2",{className:"components-panel__body-title",children:(0,wt.jsxs)(sy,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r,children:[(0,wt.jsx)("span",{"aria-hidden":"true",children:(0,wt.jsx)(ry,{className:"components-panel__arrow",icon:e?jz:bS})}),n,t&&(0,wt.jsx)(ry,{icon:t,className:"components-panel__icon",size:20})]})}):null)),Tz=(0,c.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:a,onToggle:u=Ez,opened:d,title:p,scrollAfterOpen:f=!0}=e,[h,m]=CS(d,{initial:void 0===a||a,fallback:!1}),g=(0,c.useRef)(null),v=(0,l.useReducedMotion)()?"auto":"smooth",b=(0,c.useRef)();b.current=f,ns((()=>{h&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[h,v]);const x=s("components-panel__body",o,{"is-opened":h});return(0,wt.jsxs)("div",{className:x,ref:(0,l.useMergeRefs)([g,t]),children:[(0,wt.jsx)(Pz,{icon:i,isOpened:Boolean(h),onClick:e=>{e.preventDefault();const t=!h;m(t),u(t)},title:p,...n}),"function"==typeof r?r({opened:Boolean(h)}):h&&r]})})),Rz=Tz;const Iz=(0,c.forwardRef)((function({className:e,children:t},n){return(0,wt.jsx)("div",{className:s("components-panel__row",e),ref:n,children:t})})),Nz=(0,wt.jsx)(n.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",children:(0,wt.jsx)(n.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})});const Mz=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:a,preview:u,isColumnLayout:d,withIllustration:p,...f}=e,[h,{width:m}]=(0,l.useResizeObserver)();let g;"number"==typeof m&&(g={"is-large":m>=480,"is-medium":m>=160&&m<480,"is-small":m<160});const v=s("components-placeholder",i,g,p?"has-illustration":null),b=s("components-placeholder__fieldset",{"is-column-layout":d});return(0,c.useEffect)((()=>{o&&(0,My.speak)(o)}),[o]),(0,wt.jsxs)("div",{...f,className:v,children:[p?Nz:null,h,a,u&&(0,wt.jsx)("div",{className:"components-placeholder__preview",children:u}),(0,wt.jsxs)("div",{className:"components-placeholder__label",children:[(0,wt.jsx)(ry,{icon:t}),r]}),!!o&&(0,wt.jsx)("div",{className:"components-placeholder__instructions",children:o}),(0,wt.jsx)("div",{className:b,children:n})]})};function Az(e=!1){const t=e?"right":"left";return xl({"0%":{[t]:"-50%"},"100%":{[t]:"100%"}})}const Dz=cl("div",{target:"e15u147w2"})("position:relative;overflow:hidden;height:",Tl.borderWidthFocus,";background-color:color-mix(\n\t\tin srgb,\n\t\t",jl.theme.foreground,",\n\t\ttransparent 90%\n\t);border-radius:",Tl.radiusFull,";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}");var Oz={name:"152sa26",styles:"width:var(--indicator-width);transition:width 0.4s ease-in-out"};const zz=cl("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",Tl.radiusFull,";background-color:color-mix(\n\t\tin srgb,\n\t\t",jl.theme.foreground,",\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;",(({isIndeterminate:e})=>e?bl({animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:Az((0,a.isRTL)()),width:"50%"},"",""):Oz),";"),Lz=cl("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const Fz=(0,c.forwardRef)((function(e,t){const{className:n,value:r,...o}=e,i=!Number.isFinite(r);return(0,wt.jsxs)(Dz,{className:n,children:[(0,wt.jsx)(zz,{style:{"--indicator-width":i?void 0:`${r}%`},isIndeterminate:i}),(0,wt.jsx)(Lz,{max:100,value:r,"aria-label":(0,a.__)("Loading …"),ref:t,...o})]})})),Bz=e=>e.every((e=>null!==e.parent));function Vz(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!Bz(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 $z=window.wp.htmlEntities,Hz={BaseControl:{_overrides:{__associatedWPComponentName:"TreeSelect"}}};function Wz(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,$z.decodeEntities)(e.name)},...Wz(e.children||[],t+1)]))}const Uz=function(e){const{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:i=[],...s}=_b(e),a=(0,c.useMemo)((()=>[n&&{value:"",label:n},...Wz(i)].filter((e=>!!e))),[n,i]);return(0,wt.jsx)(is,{value:Hz,children:(0,wt.jsx)(wS,{label:t,options:a,onChange:r,value:o,...s})})};function Gz({__next40pxDefaultSize:e,label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:i}){if(!r)return null;const s=Vz(r);return(0,wt.jsx)(Uz,{label:t,noOptionLabel:n,onChange:i,tree:s,selectedId:void 0!==o?String(o):void 0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function Kz({__next40pxDefaultSize:e,label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:i,...s}){const a=(0,c.useMemo)((()=>Vz(r)),[r]);return(0,wt.jsx)(Uz,{label:t,noOptionLabel:n,onChange:i,tree:a,selectedId:void 0!==o?String(o):void 0,...s,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e})}function qz(e){return"categoriesList"in e}function Yz(e){return"categorySuggestions"in e}const Xz=function({authorList:e,selectedAuthorId:t,numberOfItems:n,order:r,orderBy:o,maxItems:i=100,minItems:s=1,onAuthorChange:l,onNumberOfItemsChange:c,onOrderChange:u,onOrderByChange:d,...p}){return(0,wt.jsx)(jk,{spacing:"4",className:"components-query-controls",children:[u&&d&&(0,wt.jsx)(_S,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,a.__)("Order by"),value:void 0===o||void 0===r?void 0:`${o}/${r}`,options:[{label:(0,a.__)("Newest to oldest"),value:"date/desc"},{label:(0,a.__)("Oldest to newest"),value:"date/asc"},{label:(0,a.__)("A → Z"),value:"title/asc"},{label:(0,a.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==r&&u(n),t!==o&&d(t)}},"query-controls-order-select"),qz(p)&&p.categoriesList&&p.onCategoryChange&&(0,wt.jsx)(Kz,{__next40pxDefaultSize:!0,categoriesList:p.categoriesList,label:(0,a.__)("Category"),noOptionLabel:(0,a._x)("All","categories"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange},"query-controls-category-select"),Yz(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,wt.jsx)(LD,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,a.__)("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},"query-controls-categories-select"),l&&(0,wt.jsx)(Gz,{__next40pxDefaultSize:!0,authorList:e,label:(0,a.__)("Author"),noOptionLabel:(0,a._x)("All","authors"),selectedAuthorId:t,onChange:l},"query-controls-author-select"),c&&(0,wt.jsx)(dC,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,a.__)("Number of items"),value:n,onChange:c,min:s,max:i,required:!0},"query-controls-range-control")]})},Zz=(0,c.createContext)({store:void 0,disabled:void 0});const Qz=(0,c.forwardRef)((function({value:e,children:t,...n},r){const{store:o,disabled:i}=(0,c.useContext)(Zz),s=Qe(o,"value"),a=void 0!==s&&s===e;return(0,wt.jsx)(M_,{disabled:i,store:o,ref:r,value:e,render:(0,wt.jsx)(sy,{variant:a?"primary":"secondary",...n}),children:t||e})})),Jz=Qz;const eL=(0,c.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,children:i,...s},a){const l=g_({value:t,defaultValue:n,setValue:e=>{o?.(null!=e?e:void 0)}}),u=(0,c.useMemo)((()=>({store:l,disabled:r})),[l,r]);return(0,wt.jsx)(Zz.Provider,{value:u,children:(0,wt.jsx)(__,{store:l,render:(0,wt.jsx)(CE,{children:i}),"aria-label":e,ref:a,...s})})})),tL=eL;function nL(e,t){return`${e}-${t}-option-description`}function rL(e,t){return`${e}-${t}`}function oL(e){return`${e}__help`}const iL=function e(t){const{label:n,className:r,selected:o,help:i,onChange:a,hideLabelFromVision:c,options:u=[],id:d,...p}=t,f=(0,l.useInstanceId)(e,"inspector-radio-control",d),h=e=>a(e.target.value);return u?.length?(0,wt.jsxs)("fieldset",{id:f,className:s(r,"components-radio-control"),"aria-describedby":i?oL(f):void 0,children:[c?(0,wt.jsx)(pl,{as:"legend",children:n}):(0,wt.jsx)(Qx.VisualLabel,{as:"legend",children:n}),(0,wt.jsx)(jk,{spacing:3,className:s("components-radio-control__group-wrapper",{"has-help":!!i}),children:u.map(((e,t)=>(0,wt.jsxs)("div",{className:"components-radio-control__option",children:[(0,wt.jsx)("input",{id:rL(f,t),className:"components-radio-control__input",type:"radio",name:f,value:e.value,onChange:h,checked:e.value===o,"aria-describedby":e.description?nL(f,t):void 0,...p}),(0,wt.jsx)("label",{className:"components-radio-control__label",htmlFor:rL(f,t),children:e.label}),e.description?(0,wt.jsx)(qx,{__nextHasNoMarginBottom:!0,id:nL(f,t),className:"components-radio-control__option-description",children:e.description}):null]},rL(f,t))))}),!!i&&(0,wt.jsx)(qx,{__nextHasNoMarginBottom:!0,id:oL(f),className:"components-base-control__help",children:i})]}):null};var sL=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)}}(),aL=function(){return aL=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},aL.apply(this,arguments)},lL={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},cL={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},uL={width:"20px",height:"20px",position:"absolute"},dL={top:aL(aL({},lL),{top:"-5px"}),right:aL(aL({},cL),{left:void 0,right:"-5px"}),bottom:aL(aL({},lL),{top:void 0,bottom:"-5px"}),left:aL(aL({},cL),{left:"-5px"}),topRight:aL(aL({},uL),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:aL(aL({},uL),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:aL(aL({},uL),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:aL(aL({},uL),{left:"-10px",top:"-10px",cursor:"nw-resize"})},pL=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 sL(t,e),t.prototype.render=function(){return B.createElement("div",{className:this.props.className||"",style:aL(aL({position:"absolute",userSelect:"none"},dL[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(B.PureComponent),fL=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)}}(),hL=function(){return hL=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},hL.apply(this,arguments)},mL={width:"auto",height:"auto"},gL=function(e,t,n){return Math.max(Math.min(e,n),t)},vL=function(e,t){return Math.round(e/t)*t},bL=function(e,t){return new RegExp(e,"i").test(t)},xL=function(e){return Boolean(e.touches&&e.touches.length)},yL=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},wL=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"},_L=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},SL=["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"],CL="__resizable_base__",kL=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(CL):t.className+=CL,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 fL(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||mL},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 wL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?wL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?wL(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,s=o&&bL("left",i),a=o&&bL("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=a?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,s=o.original,a=this.props,l=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,u=a.lockAspectRatioExtraWidth,d=s.width,p=s.height,f=c||0,h=u||0;return bL("right",i)&&(d=s.width+(e-s.x)*r/n,l&&(p=(d-h)/this.ratio+f)),bL("left",i)&&(d=s.width-(e-s.x)*r/n,l&&(p=(d-h)/this.ratio+f)),bL("bottom",i)&&(p=s.height+(t-s.y)*r/n,l&&(d=(p-f)*this.ratio+h)),bL("top",i)&&(p=s.height-(t-s.y)*r/n,l&&(d=(p-f)*this.ratio+h)),{newWidth:d,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,s=o.lockAspectRatioExtraHeight,a=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,p=s||0,f=a||0;if(i){var h=(u-p)*this.ratio+f,m=(d-p)*this.ratio+f,g=(l-f)/this.ratio+p,v=(c-f)/this.ratio+p,b=Math.max(l,h),x=Math.min(c,m),y=Math.max(u,g),w=Math.min(d,v);e=gL(e,b,x),t=gL(t,y,w)}else e=gL(e,l,c),t=gL(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,s=r.right,a=r.bottom;this.resizableLeft=o,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=a}},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&&xL(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 s=this.parentNode;if(s){var a=this.window.getComputedStyle(s).flexDirection;this.flexDir=a.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:hL(hL({},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&&xL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,s=n.minHeight,a=xL(e)?e.touches[0].clientX:e.clientX,l=xL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,p=c.width,f=c.height,h=this.getParentSize(),m=function(e,t,n,r,o,i,s){return r=_L(r,e.width,t,n),o=_L(o,e.height,t,n),i=_L(i,e.width,t,n),s=_L(s,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===s?void 0:Number(s)}}(h,this.window.innerWidth,this.window.innerHeight,r,o,i,s);r=m.maxWidth,o=m.maxHeight,i=m.minWidth,s=m.minHeight;var g=this.calculateNewSizeFromDirection(a,l),v=g.newHeight,b=g.newWidth,x=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=yL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=yL(v,this.props.snap.y,this.props.snapGap));var y=this.calculateNewSizeFromAspectRatio(b,v,{width:x.maxWidth,height:x.maxHeight},{width:i,height:s});if(b=y.newWidth,v=y.newHeight,this.props.grid){var w=vL(b,this.props.grid[0]),_=vL(v,this.props.grid[1]),S=this.props.snapGap||0;b=0===S||Math.abs(w-b)<=S?w:b,v=0===S||Math.abs(_-v)<=S?_:v}var C={width:b-d.width,height:v-d.height};if(p&&"string"==typeof p)if(p.endsWith("%"))b=b/h.width*100+"%";else if(p.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(f.endsWith("%"))v=v/h.height*100+"%";else if(f.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var k={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?k.flexBasis=k.width:"column"===this.flexDir&&(k.flexBasis=k.height),(0,Or.flushSync)((function(){t.setState(k)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},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:hL(hL({},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,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,s=t.handleWrapperClass,a=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?B.createElement(pL,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},a&&a[t]?a[t]:null):null}));return B.createElement("div",{className:s,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==SL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=hL(hL(hL({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 r=this.props.as||"div";return B.createElement(r,hL({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&B.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}(B.PureComponent);const jL=()=>{},EL={bottom:"bottom",corner:"corner"};function PL({axis:e,fadeTimeout:t=180,onResize:n=jL,position:r=EL.bottom,showPx:o=!1}){const[i,s]=(0,l.useResizeObserver)(),a=!!e,[u,d]=(0,c.useState)(!1),[p,f]=(0,c.useState)(!1),{width:h,height:m}=s,g=(0,c.useRef)(m),v=(0,c.useRef)(h),b=(0,c.useRef)(),x=(0,c.useCallback)((()=>{b.current&&window.clearTimeout(b.current),b.current=window.setTimeout((()=>{a||(d(!1),f(!1))}),t)}),[t,a]);(0,c.useEffect)((()=>{if(!(null!==h||null!==m))return;const e=h!==v.current,t=m!==g.current;if(e||t){if(h&&!v.current&&m&&!g.current)return v.current=h,void(g.current=m);e&&(d(!0),v.current=h),t&&(f(!0),g.current=m),n({width:h,height:m}),x()}}),[h,m,n,x]);const y=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=EL.bottom,showPx:i=!1,width:s}){if(!n&&!r)return;if(o===EL.corner)return`${s} x ${t}`;const a=i?" px":"";if(e){if("x"===e&&n)return`${s}${a}`;if("y"===e&&r)return`${t}${a}`}if(n&&r)return`${s} x ${t}`;if(n)return`${s}${a}`;if(r)return`${t}${a}`;return}({axis:e,height:m,moveX:u,moveY:p,position:r,showPx:o,width:h});return{label:y,resizeListener:i}}const TL=cl("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),RL=cl("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"}),IL=cl("div",{target:"e1wq7y4k1"})("background:",jl.theme.foreground,";border-radius:",Tl.radiusSmall,";box-sizing:border-box;font-family:",Fx("default.fontFamily"),";font-size:12px;color:",jl.theme.foregroundInverted,";padding:4px 8px;position:relative;"),NL=cl(Xv,{target:"e1wq7y4k0"})("&&&{color:",jl.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const ML=(0,c.forwardRef)((function({label:e,position:t=EL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===EL.bottom,l=t===EL.corner;if(!i)return null;let c={opacity:i?1:void 0,zIndex:n},u={};return s&&(c={...c,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},u={transform:"translate(0, 100%)"}),l&&(c={...c,position:"absolute",top:4,right:(0,a.isRTL)()?void 0:4,left:(0,a.isRTL)()?4:void 0}),(0,wt.jsx)(RL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:c,...r,children:(0,wt.jsx)(IL,{className:"components-resizable-tooltip__tooltip",style:u,children:(0,wt.jsx)(NL,{as:"span",children:e})})})})),AL=ML,DL=()=>{};const OL=(0,c.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=DL,position:a=EL.bottom,showPx:l=!0,zIndex:c=1e3,...u},d){const{label:p,resizeListener:f}=PL({axis:e,fadeTimeout:n,onResize:i,showPx:l,position:a});if(!r)return null;const h=s("components-resize-tooltip",t);return(0,wt.jsxs)(TL,{"aria-hidden":"true",className:h,ref:d,...u,children:[f,(0,wt.jsx)(AL,{"aria-hidden":u["aria-hidden"],label:p,position:a,ref:o,zIndex:c})]})})),zL=OL,LL="components-resizable-box__handle",FL="components-resizable-box__side-handle",BL="components-resizable-box__corner-handle",VL={top:s(LL,FL,"components-resizable-box__handle-top"),right:s(LL,FL,"components-resizable-box__handle-right"),bottom:s(LL,FL,"components-resizable-box__handle-bottom"),left:s(LL,FL,"components-resizable-box__handle-left"),topLeft:s(LL,BL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:s(LL,BL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:s(LL,BL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:s(LL,BL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},$L={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},HL={top:$L,right:$L,bottom:$L,left:$L,topLeft:$L,topRight:$L,bottomRight:$L,bottomLeft:$L};const WL=(0,c.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},a){return(0,wt.jsxs)(kL,{className:s("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:VL,handleStyles:HL,ref:a,...i,children:[t,r&&(0,wt.jsx)(zL,{...o})]})}));const UL=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==c.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,wt.jsx)(o,{className:"components-responsive-wrapper",children:(0,wt.jsx)("div",{children:(0,c.cloneElement)(n,{className:s("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})})})},GL=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 KL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i,tabIndex:s}){const a=(0,c.useRef)(),[u,d]=(0,c.useState)(0),[p,f]=(0,c.useState)(0);function h(i=!1){if(!function(){try{return!!a.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:s,ownerDocument:l}=a.current;if(!i&&null!==s?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,wt.jsxs)("html",{lang:l.documentElement.lang,className:n,children:[(0,wt.jsxs)("head",{children:[(0,wt.jsx)("title",{children:t}),(0,wt.jsx)("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"}}),r.map(((e,t)=>(0,wt.jsx)("style",{dangerouslySetInnerHTML:{__html:e}},t)))]}),(0,wt.jsxs)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n,children:[(0,wt.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,wt.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${GL.toString()})();`}}),o.map((e=>(0,wt.jsx)("script",{src:e},e)))]})]});s.open(),s.write("<!DOCTYPE html>"+(0,c.renderToString)(u)),s.close()}return(0,c.useEffect)((()=>{function e(){h(!1)}function t(e){const t=a.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&&(d(n.width),f(n.height))}h();const n=a.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,c.useEffect)((()=>{h()}),[t,r,o]),(0,c.useEffect)((()=>{h(!0)}),[e,n]),(0,wt.jsx)("iframe",{ref:(0,l.useMergeRefs)([a,(0,l.useFocusableIframe)()]),title:t,tabIndex:s,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(u),height:Math.ceil(p)})};const qL=(0,c.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:l=null,explicitDismiss:u=!1,onDismiss:d,listRef:p},f){function h(e){e&&e.preventDefault&&e.preventDefault(),p?.current?.focus(),d?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,c.renderToString)(e);(0,c.useEffect)((()=>{n&&(0,My.speak)(n,t)}),[n,t])}(n,r);const m=(0,c.useRef)({onDismiss:d,onRemove:i});(0,c.useLayoutEffect)((()=>{m.current={onDismiss:d,onRemove:i}})),(0,c.useEffect)((()=>{const e=setTimeout((()=>{u||(m.current.onDismiss?.(),m.current.onRemove?.())}),1e4);return()=>clearTimeout(e)}),[u]);const g=s(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!u});o&&o.length>1&&(o=[o[0]]);const v=s("components-snackbar__content",{"components-snackbar__content-with-icon":!!l});return(0,wt.jsx)("div",{ref:f,className:g,onClick:u?void 0:h,tabIndex:0,role:u?void 0:"button",onKeyPress:u?void 0:h,"aria-label":u?void 0:(0,a.__)("Dismiss this notice"),"data-testid":"snackbar",children:(0,wt.jsxs)("div",{className:v,children:[l&&(0,wt.jsx)("div",{className:"components-snackbar__icon",children:l}),t,o.map((({label:e,onClick:t,url:n},r)=>(0,wt.jsx)(sy,{href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action",children:e},r))),u&&(0,wt.jsx)("span",{role:"button","aria-label":(0,a.__)("Dismiss this notice"),tabIndex:0,className:"components-snackbar__dismiss-button",onClick:h,onKeyPress:h,children:"✕"})]})})})),YL=qL,XL={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 ZL=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,c.useRef)(null),i=(0,l.useReducedMotion)();t=s("components-snackbar-list",t);const a=e=>()=>r?.(e.id);return(0,wt.jsxs)("div",{className:t,tabIndex:-1,ref:o,"data-testid":"snackbar-list",children:[n,(0,wt.jsx)(xg,{children:e.map((e=>{const{content:t,...n}=e;return(0,wt.jsx)(dg.div,{layout:!i,initial:"init",animate:"open",exit:"exit",variants:i?void 0:XL,children:(0,wt.jsx)("div",{className:"components-snackbar-list__notice-container",children:(0,wt.jsx)(YL,{...n,onRemove:a(e),listRef:o,children:e.content})})},e.id)}))})]})};const QL=xl`
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
 `,JL=cl("svg",{target:"ea4tfvq2"})("width:",Tl.spinnerSize,"px;height:",Tl.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",jl.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),eF={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},tF=cl("circle",{target:"ea4tfvq1"})(eF,";stroke:",jl.gray[300],";"),nF=cl("path",{target:"ea4tfvq0"})(eF,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",QL,";");const rF=(0,c.forwardRef)((function({className:e,...t},n){return(0,wt.jsxs)(JL,{className:s("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,children:[(0,wt.jsx)(tF,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,wt.jsx)(nF,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}));const oF=Xa((function(e,t){const n=nP(e);return(0,wt.jsx)(dl,{...n,ref:t})}),"Surface");function iF(e={}){var t=e,{composite:n,combobox:r}=t,o=T(t,["composite","combobox"]);const i=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],s=qe(o.store,Ke(n,i),Ke(r,i)),a=null==s?void 0:s.getState(),l=ht(P(E({},o),{store:s,includesBaseElement:F(o.includesBaseElement,null==a?void 0:a.includesBaseElement,!1),orientation:F(o.orientation,null==a?void 0:a.orientation,"horizontal"),focusLoop:F(o.focusLoop,null==a?void 0:a.focusLoop,!0)})),c=rt(),u=Ve(P(E({},l.getState()),{selectedId:F(o.selectedId,null==a?void 0:a.selectedId,o.defaultSelectedId),selectOnMove:F(o.selectOnMove,null==a?void 0:a.selectOnMove,!0)}),l,s);$e(u,(()=>Ue(u,["moves"],(()=>{const{activeId:e,selectOnMove:t}=u.getState();if(!t)return;if(!e)return;const n=l.item(e);n&&(n.dimmed||n.disabled||u.setState("selectedId",n.id))}))));let d=!0;$e(u,(()=>Ge(u,["selectedId"],((e,t)=>{d?n&&e.selectedId===t.selectedId||u.setState("activeId",e.selectedId):d=!0})))),$e(u,(()=>Ue(u,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=u.getState(),r=l.item(t);if(!r||r.disabled||r.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));u.setState("selectedId",null==e?void 0:e.id)}else u.setState("selectedId",r.id)})))),$e(u,(()=>Ue(u,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return Ue(c,["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&&c.renderItem(P(E({},e),{tabId:r.id}))}))}))}))));let p=null;return $e(u,(()=>{const e=()=>{p=u.getState().selectedId},t=()=>{d=!1,u.setState("selectedId",p)};return n&&"setSelectElement"in n?M(Ue(n,["value"],e),Ue(n,["mounted"],t)):r?M(Ue(r,["selectedValue"],e),Ue(r,["mounted"],t)):void 0})),P(E(E({},l),u),{panels:c,setSelectedId:e=>u.setState("selectedId",e),select:e=>{u.setState("selectedId",e),l.move(e)}})}function sF(e={}){const t=$R(),n=KR()||t;e=b(v({},e),{composite:void 0!==e.composite?e.composite:n,combobox:void 0!==e.combobox?e.combobox:t});const[r,o]=et(iF,e);return function(e,t,n){Pe(t,[n.composite,n.combobox]),Je(e=mt(e,t,n),n,"selectedId","setSelectedId"),Je(e,n,"selectOnMove");const[r,o]=et((()=>e.panels),{});return Pe(o,[e,o]),Object.assign((0,B.useMemo)((()=>b(v({},e),{panels:r})),[e,r]),{composite:n.composite,combobox:n.combobox})}(r,o,e)}var aF=jt([Nt],[Mt]),lF=(aF.useContext,aF.useScopedContext),cF=aF.useProviderContext,uF=(aF.ContextProvider,aF.ScopedContextProvider),dF=kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=cF();D(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Ie(r,(e=>(0,wt.jsx)(uF,{value:n,children:e})),[n]),n.composite&&(r=v({focusable:!1},r)),r=v({role:"tablist","aria-orientation":i},r),r=ln(v({store:n},r))})),pF=_t((function(e){return Ct("div",dF(e))})),fF=kt((function(e){var t,n=e,{store:r,getItem:o}=n,i=x(n,["store","getItem"]);const s=lF();D(r=r||s,!1);const a=je(),l=i.id||a,c=z(i),u=(0,B.useCallback)((e=>{const t=b(v({},e),{dimmed:c});return o?o(t):t}),[c,o]),d=i.onClick,p=Se((e=>{null==d||d(e),e.defaultPrevented||null==r||r.setSelectedId(l)})),f=r.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===l)))?void 0:t.id})),h=!!a&&i.shouldRegisterItem,m=r.useState((e=>!!l&&e.activeId===l)),g=r.useState((e=>!!l&&e.selectedId===l)),y=r.useState((e=>!!r.item(e.activeId))),w=m||g&&!y,_=g||null==(t=i.accessibleWhenDisabled)||t;if(Qe(r.combobox||r.composite,"virtualFocus")&&(i=b(v({},i),{tabIndex:-1})),i=b(v({id:l,role:"tab","aria-selected":g,"aria-controls":f||void 0},i),{onClick:p}),r.composite){const e={id:l,accessibleWhenDisabled:_,store:r.composite,shouldRegisterItem:w&&h,render:i.render};i=b(v({},i),{render:(0,wt.jsx)(Tn,b(v({},e),{render:r.combobox&&r.composite!==r.combobox?(0,wt.jsx)(Tn,b(v({},e),{store:r.combobox})):e.render}))})}return i=Pn(b(v({store:r},i),{accessibleWhenDisabled:_,getItem:u,shouldRegisterItem:h}))})),hF=St(_t((function(e){return Ct("button",fF(e))}))),mF=kt((function(e){var t=e,{store:n,unmountOnHide:r,tabId:o,getItem:i}=t,s=x(t,["store","unmountOnHide","tabId","getItem"]);const a=cF();D(n=n||a,!1);const l=(0,B.useRef)(null),c=je(s.id),[u,d]=(0,B.useState)(!1);(0,B.useEffect)((()=>{const e=l.current;if(!e)return;const t=Vt(e);d(!!t.length)}),[]);const p=(0,B.useCallback)((e=>{const t=b(v({},e),{id:c||e.id,tabId:o});return i?i(t):t}),[c,o,i]),f=s.onKeyDown,h=Se((e=>{if(null==f||f(e),e.defaultPrevented)return;if(!(null==n?void 0:n.composite))return;const t=n.getState(),r=iF(b(v({},t),{activeId:t.selectedId}));r.setState("renderedItems",t.renderedItems);const o={ArrowLeft:r.previous,ArrowRight:r.next,Home:r.first,End:r.last}[e.key];if(!o)return;const i=o();i&&(e.preventDefault(),n.move(i))}));s=Ie(s,(e=>(0,wt.jsx)(uF,{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)})),g=Ln({open:n.useState((e=>!!m&&e.selectedId===m))}),y=g.useState("mounted");return s=b(v({id:c,role:"tabpanel","aria-labelledby":m||void 0},s),{children:r&&!y?null:s.children,ref:ke(l,s.ref),onKeyDown:h}),s=sn(v({focusable:!n.composite&&!u},s)),s=Br(v({store:g},s)),s=_n(b(v({store:n.panels},s),{getItem:p}))})),gF=_t((function(e){return Ct("div",mF(e))}));const vF=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},bF=(0,c.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:a="is-active",onSelect:u},d)=>{const p=(0,l.useInstanceId)(bF,"tab-panel"),f=(0,c.useCallback)((e=>{if(void 0!==e)return`${p}-${e}`}),[p]),h=sF({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>f(t.name)===e));if(t?.disabled||t===v)return;const r=vF(e);void 0!==r&&u?.(r)},orientation:i,selectOnMove:r,defaultSelectedId:f(o)}),m=vF(Qe(h,"selectedId")),g=(0,c.useCallback)((e=>{h.setState("selectedId",f(e))}),[f,h]),v=n.find((({name:e})=>e===m)),b=(0,l.usePrevious)(m);return(0,c.useEffect)((()=>{b!==m&&m===o&&m&&u?.(m)}),[m,o,u,b]),(0,c.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,o,p,g]),(0,c.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g,p]),(0,wt.jsxs)("div",{className:e,ref:d,children:[(0,wt.jsx)(pF,{store:h,className:"components-tab-panel__tabs",children:n.map((e=>(0,wt.jsx)(hF,{id:f(e.name),className:s("components-tab-panel__tabs-item",e.className,{[a]:e.name===m}),disabled:e.disabled,"aria-controls":`${f(e.name)}-view`,render:(0,wt.jsx)(sy,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon}),children:!e.icon&&e.title},e.name)))}),v&&(0,wt.jsx)(gF,{id:`${f(v.name)}-view`,store:h,tabId:f(v.name),className:"components-tab-panel__tab-content",children:t(v)})]})})),xF=bF;const yF=(0,c.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:r=!1,label:o,hideLabelFromVision:i,value:a,help:c,id:u,className:d,onChange:p,type:f="text",...h}=e,m=(0,l.useInstanceId)(yF,"inspector-text-control",u);return(0,wt.jsx)(Qx,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextControl",label:o,hideLabelFromVision:i,id:m,help:c,className:d,children:(0,wt.jsx)("input",{className:s("components-text-control__input",{"is-next-40px-default-size":r}),type:f,id:m,value:a,onChange:e=>p(e.target.value),"aria-describedby":c?m+"__help":void 0,ref:t,...h})})})),wF=yF,_F={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},SF=bl("box-shadow:0 0 0 transparent;border-radius:",Tl.radiusSmall,";border:",Tl.borderWidth," solid ",jl.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),CF=bl("border-color:",jl.theme.accent,";box-shadow:0 0 0 calc( ",Tl.borderWidthFocus," - ",Tl.borderWidth," ) ",jl.theme.accent,";outline:2px solid transparent;",""),kF=cl("textarea",{target:"e1w5nnrk0"})("width:100%;display:block;font-family:",Fx("default.fontFamily"),";line-height:20px;padding:9px 11px;",SF,";font-size:",Fx("mobileTextMinFontSize"),";",`@media (min-width: ${_F["small"]})`,"{font-size:",Fx("default.fontSize"),";}&:focus{",CF,";}&::-webkit-input-placeholder{color:",jl.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",jl.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",jl.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",jl.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",jl.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",jl.ui.lightGrayPlaceholder,";}}");const jF=(0,c.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:a,rows:c=4,className:u,...d}=e,p=`inspector-textarea-control-${(0,l.useInstanceId)(jF)}`;return(0,wt.jsx)(Qx,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextareaControl",label:r,hideLabelFromVision:o,id:p,help:s,className:u,children:(0,wt.jsx)(kF,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>a(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,ref:t,...d})})})),EF=jF,PF=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,wt.jsx)(wt.Fragment,{children:t});const o=new RegExp(`(${Ly(r)})`,"gi");return(0,c.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,wt.jsx)("mark",{})})},TF=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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 RF=function(e){const{children:t}=e;return(0,wt.jsxs)("div",{className:"components-tip",children:[(0,wt.jsx)(vS,{icon:TF}),(0,wt.jsx)("p",{children:t})]})};const IF=(0,c.forwardRef)((function({__nextHasNoMarginBottom:e,label:t,checked:n,help:r,className:o,onChange:i,disabled:a},c){const u=`inspector-toggle-control-${(0,l.useInstanceId)(IF)}`,d=qa()("components-toggle-control",o,!e&&bl({marginBottom:wl(3)},"",""));let p,f;return e||Fi()("Bottom margin styles for wp.components.ToggleControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),r&&("function"==typeof r?void 0!==n&&(f=r(n)):f=r,f&&(p=u+"__help")),(0,wt.jsx)(Qx,{id:u,help:f&&(0,wt.jsx)("span",{className:"components-toggle-control__help",children:f}),className:d,__nextHasNoMarginBottom:!0,children:(0,wt.jsxs)(yy,{justify:"flex-start",spacing:2,children:[(0,wt.jsx)(ND,{id:u,checked:n,onChange:function(e){i(e.target.checked)},"aria-describedby":p,disabled:a,ref:c}),(0,wt.jsx)(Mg,{as:"label",htmlFor:u,className:s("components-toggle-control__label",{"is-disabled":a}),children:t})]})})})),NF=IF;var MF=jt([Nt],[Mt]),AF=MF.useContext,DF=(MF.useScopedContext,MF.useProviderContext),OF=(MF.ContextProvider,MF.ScopedContextProvider),zF=kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=AF();return r=Pn(v({store:n=n||o},r))})),LF=St(_t((function(e){return Ct("button",zF(e))})));const FF=(0,c.createContext)(void 0);const BF=(0,c.forwardRef)((function({children:e,as:t,...n},r){const o=(0,c.useContext)(FF),i="function"==typeof e;if(!i&&!t)return null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,wt.jsx)(t,{...s,children:e}):i?e(s):null;const a=i?e:t&&(0,wt.jsx)(t,{children:e});return(0,wt.jsx)(LF,{accessibleWhenDisabled:!0,...s,store:o,render:a})})),VF=({children:e,className:t})=>(0,wt.jsx)("div",{className:t,children:e});const $F=(0,c.forwardRef)((function(e,t){const{children:n,className:r,containerClassName:o,extraProps:i,isActive:a,title:l,...u}=function({isDisabled:e,...t}){return{disabled:e,...t}}(e);return(0,c.useContext)(FF)?(0,wt.jsx)(BF,{className:s("components-toolbar-button",r),...i,...u,ref:t,children:e=>(0,wt.jsx)(sy,{label:l,isPressed:a,...e,children:n})}):(0,wt.jsx)(VF,{className:o,children:(0,wt.jsx)(sy,{ref:t,icon:u.icon,label:l,shortcut:u.shortcut,"data-subscript":u.subscript,onClick:e=>{e.stopPropagation(),u.onClick&&u.onClick(e)},className:s("components-toolbar__control",r),isPressed:a,accessibleWhenDisabled:!0,"data-toolbar-item":!0,...i,...u,children:n})})})),HF=({className:e,children:t,...n})=>(0,wt.jsx)("div",{className:e,...n,children:t});const WF=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,wt.jsx)(GT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,c.useContext)(FF)?(0,wt.jsx)(BF,{...t,children:r}):r(t)};const UF=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const a=(0,c.useContext)(FF);if(!(e&&e.length||t))return null;const l=s(a?"components-toolbar-group":"components-toolbar",n);let u;var d;return d=e,u=Array.isArray(d)&&Array.isArray(d[0])?e:[e],r?(0,wt.jsx)(WF,{label:o,controls:u,className:l,children:t,...i}):(0,wt.jsxs)(HF,{className:l,...i,children:[u?.flatMap(((e,t)=>e.map(((e,n)=>(0,wt.jsx)($F,{containerClassName:t>0&&0===n?"has-left-divider":void 0,...e},[t,n].join()))))),t]})};function GF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return ht(P(E({},e),{orientation:F(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:F(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}function KF(e={}){const[t,n]=et(GF,e);return function(e,t,n){return mt(e,t,n)}(t,n,e)}var qF=kt((function(e){var t=e,{store:n,orientation:r,virtualFocus:o,focusLoop:i,rtl:s}=t,a=x(t,["store","orientation","virtualFocus","focusLoop","rtl"]);const l=DF(),c=KF({store:n=n||l,orientation:r,virtualFocus:o,focusLoop:i,rtl:s}),u=c.useState((e=>"both"===e.orientation?void 0:e.orientation));return a=Ie(a,(e=>(0,wt.jsx)(OF,{value:c,children:e})),[c]),a=v({role:"toolbar","aria-orientation":u},a),a=ln(v({store:c},a))})),YF=_t((function(e){return Ct("div",qF(e))}));const XF=(0,c.forwardRef)((function({label:e,...t},n){const r=KF({focusLoop:!0,rtl:(0,a.isRTL)()});return(0,wt.jsx)(FF.Provider,{value:r,children:(0,wt.jsx)(YF,{ref:n,"aria-label":e,store:r,...t})})}));const ZF=(0,c.forwardRef)((function({className:e,label:t,variant:n,...r},o){const i=void 0!==n,a=(0,c.useMemo)((()=>i?{}:{DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}}),[i]);if(!t){Fi()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"});const{title:t,...n}=r;return(0,wt.jsx)(UF,{isCollapsed:!1,...n,className:e})}const l=s("components-accessible-toolbar",e,n&&`is-${n}`);return(0,wt.jsx)(is,{value:a,children:(0,wt.jsx)(XF,{className:l,label:t,ref:o,...r})})}));const QF=(0,c.forwardRef)((function(e,t){return(0,c.useContext)(FF)?(0,wt.jsx)(BF,{ref:t,...e.toggleProps,children:t=>(0,wt.jsx)(GT,{...e,popoverProps:{...e.popoverProps},toggleProps:t})}):(0,wt.jsx)(GT,{...e})}));const JF={columns:e=>bl("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:bl("column-gap:",wl(4),";row-gap:",wl(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},eB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},tB=bl(JF.item.fullWidth," gap:",wl(2),";.components-dropdown-menu{margin:",wl(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",wl(6),";}",""),nB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},rB=bl(JF.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Vx,"{margin-bottom:0;",Hx,":last-child{margin-bottom:0;}}",qx,"{margin-bottom:0;}&& ",gb,"{label{line-height:1.4em;}}",""),oB={name:"eivff4",styles:"display:none"},iB={name:"16gsvie",styles:"min-width:200px"},sB=cl("span",{target:"ews648u0"})("color:",jl.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",Bg({marginLeft:wl(3)})," text-transform:uppercase;"),aB=bl("color:",jl.gray[900],";&&[aria-disabled='true']{color:",jl.gray[700],";opacity:1;&:hover{color:",jl.gray[700],";}",sB,"{opacity:0.3;}}",""),lB=()=>{},cB=(0,c.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:lB,deregisterPanelItem:lB,flagItemCustomization:lB,registerResetAllFilter:lB,deregisterResetAllFilter:lB,areAllOptionalControlsHidden:!0}),uB=()=>(0,c.useContext)(cB);const dB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,wt.jsx)(sB,{"aria-hidden":!0,children:(0,a.__)("Reset")});return(0,wt.jsx)(wt.Fragment,{children:t.map((([t,o])=>o?(0,wt.jsx)(XD,{className:e,role:"menuitem",label:(0,a.sprintf)((0,a.__)("Reset %s"),t),onClick:()=>{n(t),(0,My.speak)((0,a.sprintf)((0,a.__)("%s reset to default"),t),"assertive")},suffix:r,children:t},t):(0,wt.jsx)(XD,{icon:xk,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0,children:t},t)))})},pB=({items:e,toggleItem:t})=>e.length?(0,wt.jsx)(wt.Fragment,{children:e.map((([e,n])=>{const r=n?(0,a.sprintf)((0,a.__)("Hide and reset %s"),e):(0,a.sprintf)((0,a._x)("Show %s","input control"),e);return(0,wt.jsx)(XD,{icon:n?xk:null,isSelected:n,label:r,onClick:()=>{n?(0,My.speak)((0,a.sprintf)((0,a.__)("%s hidden and reset to default"),e),"assertive"):(0,My.speak)((0,a.sprintf)((0,a.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox",children:e},e)}))}):null,fB=Xa(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:u,menuItems:d,resetAll:p,toggleItem:f,dropdownMenuProps:h,...m}=function(e){const{className:t,headingLevel:n=2,...r}=Ya(e,"ToolsPanelHeader"),o=qa(),i=(0,c.useMemo)((()=>o(tB,t)),[t,o]),s=(0,c.useMemo)((()=>o(iB)),[o]),a=(0,c.useMemo)((()=>o(nB)),[o]),l=(0,c.useMemo)((()=>o(aB)),[o]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:p}=uB();return{...r,areAllOptionalControlsHidden:p,defaultControlsItemClassName:l,dropdownMenuClassName:s,hasMenuItems:d,headingClassName:a,headingLevel:n,menuItems:u,className:i}}(e);if(!u)return null;const g=Object.entries(d?.default||{}),v=Object.entries(d?.optional||{}),b=n?Wg:zP,x=(0,a.sprintf)((0,a._x)("%s options","Button label to reveal tool panel options"),u),y=n?(0,a.__)("All options are currently hidden"):void 0,w=[...g,...v].some((([,e])=>e));return(0,wt.jsxs)(yy,{...m,ref:t,children:[(0,wt.jsx)(Tk,{level:l,className:s,children:u}),i&&(0,wt.jsx)(GT,{...h,icon:b,label:x,menuProps:{className:o},toggleProps:{size:"small",description:y},children:()=>(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsxs)(qD,{label:u,children:[(0,wt.jsx)(dB,{items:g,toggleItem:f,itemClassName:r}),(0,wt.jsx)(pB,{items:v,toggleItem:f})]}),(0,wt.jsx)(qD,{children:(0,wt.jsx)(XD,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(p(),(0,My.speak)((0,a.__)("All options reset"),"assertive"))},children:(0,a.__)("Reset all")})})]})})]})}),"ToolsPanelHeader"),hB=fB;function mB(){return{panelItems:[],menuItemOrder:[],menuItems:{default:{},optional:{}}}}const gB=({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 s=r?"default":"optional",a=n?.[s]?.[i],l=a||e();o[s][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};function vB(e,t){const n=function(e,t){switch(t.type){case"REGISTER_PANEL":{const n=[...e],r=n.findIndex((e=>e.label===t.item.label));return-1!==r&&n.splice(r,1),n.push(t.item),n}case"UNREGISTER_PANEL":{const n=e.findIndex((e=>e.label===t.label));if(-1!==n){const t=[...e];return t.splice(n,1),t}return e}default:return e}}(e.panelItems,t),r=function(e,t){return"REGISTER_PANEL"===t.type?e.includes(t.item.label)?e:[...e,t.item.label]:e}(e.menuItemOrder,t),o=function(e,t){switch(t.type){case"REGISTER_PANEL":case"UNREGISTER_PANEL":return gB({currentMenuItems:e.menuItems,panelItems:e.panelItems,menuItemOrder:e.menuItemOrder,shouldReset:!1});case"RESET_ALL":return gB({panelItems:e.panelItems,menuItemOrder:e.menuItemOrder,shouldReset:!0});case"UPDATE_VALUE":{const n=e.menuItems[t.group][t.label];return t.value===n?e.menuItems:{...e.menuItems,[t.group]:{...e.menuItems[t.group],[t.label]:t.value}}}case"TOGGLE_VALUE":{const n=e.panelItems.find((e=>e.label===t.label));if(!n)return e.menuItems;const r=n.isShownByDefault?"default":"optional";return{...e.menuItems,[r]:{...e.menuItems[r],[t.label]:!e.menuItems[r][t.label]}}}default:return e.menuItems}}({panelItems:n,menuItemOrder:r,menuItems:e.menuItems},t);return{panelItems:n,menuItemOrder:r,menuItems:o}}function bB(e,t){switch(t.type){case"REGISTER":return[...e,t.filter];case"UNREGISTER":return e.filter((e=>e!==t.filter));default:return e}}const xB=e=>0===Object.keys(e).length;function yB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l,...u}=Ya(e,"ToolsPanel"),d=(0,c.useRef)(!1),p=d.current;(0,c.useEffect)((()=>{p&&(d.current=!1)}),[p]);const[{panelItems:f,menuItems:h},m]=(0,c.useReducer)(vB,void 0,mB),[g,v]=(0,c.useReducer)(bB,[]),b=(0,c.useCallback)((e=>{m({type:"REGISTER_PANEL",item:e})}),[]),x=(0,c.useCallback)((e=>{m({type:"UNREGISTER_PANEL",label:e})}),[]),y=(0,c.useCallback)((e=>{v({type:"REGISTER",filter:e})}),[]),w=(0,c.useCallback)((e=>{v({type:"UNREGISTER",filter:e})}),[]),_=(0,c.useCallback)(((e,t,n="default")=>{m({type:"UPDATE_VALUE",group:n,label:t,value:e})}),[]),S=(0,c.useMemo)((()=>xB(h.default)&&!xB(h.optional)&&Object.values(h.optional).every((e=>!e))),[h]),C=qa(),k=(0,c.useMemo)((()=>{const e=i&&bl(">div:not( :first-of-type ){display:grid;",JF.columns(2)," ",JF.spacing," ",JF.item.fullWidth,";}","");const n=S&&eB;return C((e=>bl(JF.columns(e)," ",JF.spacing," border-top:",Tl.borderWidth," solid ",jl.gray[300],";margin-top:-1px;padding:",wl(4),";",""))(2),e,n,t)}),[S,t,C,i]),j=(0,c.useCallback)((e=>{m({type:"TOGGLE_VALUE",label:e})}),[]),E=(0,c.useCallback)((()=>{"function"==typeof r&&(d.current=!0,r(g)),m({type:"RESET_ALL"})}),[g,r]),P=e=>{const t=h.optional||{},n=e.find((e=>e.isShownByDefault||t[e.label]));return n?.label},T=P(f),R=P([...f].reverse()),I=f.length>0;return{...u,headingLevel:n,panelContext:(0,c.useMemo)((()=>({areAllOptionalControlsHidden:S,deregisterPanelItem:x,deregisterResetAllFilter:w,firstDisplayedItem:T,flagItemCustomization:_,hasMenuItems:I,isResetting:d.current,lastDisplayedItem:R,menuItems:h,panelId:o,registerPanelItem:b,registerResetAllFilter:y,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l})),[S,x,w,T,_,R,h,o,I,y,b,s,a,l]),resetAllItems:E,toggleItem:j,className:k}}const wB=Xa(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:a,dropdownMenuProps:l,...c}=yB(e);return(0,wt.jsx)(Sj,{...c,columns:2,ref:t,children:(0,wt.jsxs)(cB.Provider,{value:o,children:[(0,wt.jsx)(hB,{label:r,resetAll:i,toggleItem:s,headingLevel:a,dropdownMenuProps:l}),n]})})}),"ToolsPanel"),_B=()=>{};const SB=Xa(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=_B,onDeselect:a,onSelect:u,...d}=Ya(e,"ToolsPanelItem"),{panelId:p,menuItems:f,registerResetAllFilter:h,deregisterResetAllFilter:m,registerPanelItem:g,deregisterPanelItem:v,flagItemCustomization:b,isResetting:x,shouldRenderPlaceholderItems:y,firstDisplayedItem:w,lastDisplayedItem:_,__experimentalFirstVisibleItemClass:S,__experimentalLastVisibleItemClass:C}=uB(),k=(0,c.useCallback)(n,[i]),j=(0,c.useCallback)(s,[i]),E=(0,l.usePrevious)(p),P=p===i||null===p;(0,c.useLayoutEffect)((()=>(P&&null!==E&&g({hasValue:k,isShownByDefault:r,label:o,panelId:i}),()=>{(null===E&&p||p===i)&&v(o)})),[p,P,r,o,k,i,E,g,v]),(0,c.useEffect)((()=>(P&&h(j),()=>{P&&m(j)})),[h,m,j,P]);const T=r?"default":"optional",R=f?.[T]?.[o],I=(0,l.usePrevious)(R),N=void 0!==f?.[T]?.[o],M=n();(0,c.useEffect)((()=>{(r||M)&&b(M,o,T)}),[M,T,o,b,r]),(0,c.useEffect)((()=>{N&&!x&&P&&(!R||M||I||u?.(),!R&&M&&I&&a?.())}),[P,R,N,x,M,I,u,a]);const A=r?void 0!==f?.[T]?.[o]:R,D=qa(),O=(0,c.useMemo)((()=>{const e=y&&!A;return D(rB,e&&oB,!e&&t,w===o&&S,_===o&&C)}),[A,y,t,D,w,_,S,C,o]);return{...d,isShown:A,shouldRenderPlaceholder:y,className:O}}(e);return r?(0,wt.jsx)(dl,{...i,ref:t,children:n}):o?(0,wt.jsx)(dl,{...i,ref:t}):null}),"ToolsPanelItem"),CB=SB,kB=(0,c.createContext)(void 0),jB=kB.Provider;function EB({children:e}){const[t,n]=(0,c.useState)(),r=(0,c.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,wt.jsx)(jB,{value:r,children:e})}function PB(e){return DT.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const TB=(0,c.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const a=(0,c.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:s,altKey:a}=e;if(i||s||a||![Ay.UP,Ay.DOWN,Ay.LEFT,Ay.RIGHT,Ay.HOME,Ay.END].includes(o))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=PB(u),p=d.indexOf(l),f=0===p,h=f&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===Ay.RIGHT;if([Ay.LEFT,Ay.RIGHT].includes(o)){let r;if(r=o===Ay.LEFT?Math.max(0,p-1):Math.min(p+1,d.length-1),f){if(o===Ay.LEFT){var m;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(m=u?.getAttribute("aria-level"))&&void 0!==m?m:"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}}PB(o)?.[0]?.focus()}if(o===Ay.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=PB(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(h)return;d[r].focus(),e.preventDefault()}else if([Ay.UP,Ay.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===Ay.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const s=PB(t[i]);if(!s||!s.length)return void e.preventDefault();s[Math.min(p,s.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([Ay.HOME,Ay.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===Ay.HOME?0:t.length-1,i===n)return void e.preventDefault();const s=PB(t[i]);if(!s||!s.length)return void e.preventDefault();s[Math.min(p,s.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,wt.jsx)(EB,{children:(0,wt.jsx)("div",{role:"application","aria-label":o,children:(0,wt.jsx)("table",{...i,role:"treegrid",onKeyDown:a,ref:s,children:(0,wt.jsx)("tbody",{children:e})})})})})),RB=TB;const IB=(0,c.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,wt.jsx)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o,children:e})})),NB=(0,c.forwardRef)((function({children:e,as:t,...n},r){const o=(0,c.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:a}=(0,c.useContext)(kB);let l;s&&(l=s===("current"in i?i.current:void 0)?0:-1);const u={ref:i,tabIndex:l,onFocus:e=>a?.(e.target),...n};return"function"==typeof e?e(u):t?(0,wt.jsx)(t,{...u,children:e}):null})),MB=NB;const AB=(0,c.forwardRef)((function({children:e,...t},n){return(0,wt.jsx)(MB,{ref:n,...t,children:e})}));const DB=(0,c.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,wt.jsx)("td",{...n,role:"gridcell",children:t?(0,wt.jsx)(wt.Fragment,{children:e}):(0,wt.jsx)(AB,{ref:r,children:e})})}));function OB(e){e.stopPropagation()}const zB=(0,c.forwardRef)(((e,t)=>(Fi()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,wt.jsx)("div",{...e,ref:t,onMouseDown:OB}))));function LB(e){const t=(0,c.useContext)(Qy);return(0,l.useObservableValue)(t.fills,e)}const FB=cl("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>bl({marginInlineStart:e},"","")),";}",(({zIndex:e})=>bl({zIndex:e},"","")),";");var BB={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const VB=cl("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",FB,"{position:relative;justify-self:start;",(({isLayered:e})=>e?BB:void 0),";}");const $B=Xa((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...a}=Ya(e,"ZStack"),l=by(n),u=l.length-1,d=l.map(((e,t)=>{const n=i?u-t:t,r=o?s*t:s,a=(0,c.isValidElement)(e)?e.key:t;return(0,wt.jsx)(FB,{offsetAmount:r,zIndex:n,children:e},a)}));return(0,wt.jsx)(VB,{...a,className:r,isLayered:o,ref:t,children:d})}),"ZStack"),HB=$B,WB={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function UB(e=WB){const t=(0,c.useRef)(null),[n,r]=(0,c.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 s=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),a=s?o.indexOf(s):-1;if(-1!==a){let t=a+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,l.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,l.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>Ay.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>Ay.isKeyboardEvent[e](t,n)))&&o(1)}}}const GB=(0,l.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,wt.jsx)("div",{...UB(t),children:(0,wt.jsx)(e,{...n})})),"navigateRegions"),KB=(0,l.createHigherOrderComponent)((e=>function(t){const n=(0,l.useConstrainedTabbing)();return(0,wt.jsx)("div",{ref:n,tabIndex:-1,children:(0,wt.jsx)(e,{...t})})}),"withConstrainedTabbing"),qB=e=>(0,l.createHigherOrderComponent)((t=>class extends c.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);Ji()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,wt.jsx)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,wt.jsxs)("div",{ref:this.bindRef,children:[" ",e," "]})}}),"withFallbackStyles"),YB=window.wp.hooks,XB=16;function ZB(e){return(0,l.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends c.Component{constructor(n){super(n),void 0===r&&(r=(0,YB.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,YB.addAction)("hookRemoved",n,s),(0,YB.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,YB.removeAction)("hookRemoved",n),(0,YB.removeAction)("hookAdded",n))}render(){return(0,wt.jsx)(r,{...this.props})}}o.instances=[];const i=(0,l.debounce)((()=>{r=(0,YB.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),XB);function s(t){t===e&&i()}return o}),"withFilters")}const QB=(0,l.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,l.useFocusReturn)(e);return(0,wt.jsx)("div",{ref:r,children:(0,wt.jsx)(t,{...n})})};if((n=e)instanceof c.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn"),JB=({children:e})=>(Fi()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e),eV=(0,l.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,c.useState)([]),s=(0,c.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:fw()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),a={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,wt.jsx)(Sz,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,wt.jsx)(e,{...a,ref:r}):(0,wt.jsx)(e,{...a})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,c.forwardRef)(t)):t}),"withNotices");var tV=jt([Nt,cr],[Mt,ur]),nV=tV.useContext,rV=tV.useScopedContext,oV=tV.useProviderContext,iV=tV.ContextProvider,sV=tV.ScopedContextProvider,aV=(0,B.createContext)(void 0),lV=jt([Nt],[Mt]),cV=lV.useContext,uV=lV.useScopedContext;lV.useProviderContext,lV.ContextProvider,lV.ScopedContextProvider,(0,B.createContext)(void 0);function dV(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=T(t,["combobox","parent","menubar"]);const s=!!o&&!r,a=qe(i.store,function(e,...t){if(e)return Be(e,"pick")(...t)}(r,["values"]),Ke(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=a.getState(),c=ht(P(E({},i),{store:a,orientation:F(i.orientation,l.orientation,"vertical")})),u=Wn(P(E({},i),{store:a,placement:F(i.placement,l.placement,"bottom-start"),timeout:F(i.timeout,l.timeout,s?0:150),hideTimeout:F(i.hideTimeout,l.hideTimeout,0)})),d=Ve(P(E(E({},c.getState()),u.getState()),{initialFocus:F(l.initialFocus,"container"),values:F(i.values,l.values,i.defaultValues,{})}),c,u,a);return $e(d,(()=>Ue(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),$e(d,(()=>Ue(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),P(E(E(E({},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=I(t,r);return o===r?n:P(E({},n),{[e]:void 0!==o&&o})})))}})}function pV(e={}){const t=nV(),n=cV(),r=HR();e=b(v({},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]=et(dV,e);return function(e,t,n){return Pe(t,[n.combobox,n.parent,n.menubar]),Je(e,n,"values","setValues"),Object.assign($n(mt(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}function fV(e,t){return!!(null==e?void 0:e.some((e=>!!e.element&&(e.element!==t&&"true"===e.element.getAttribute("aria-expanded")))))}var hV=kt((function(e){var t=e,{store:n,focusable:r,accessibleWhenDisabled:o,showOnHover:i}=t,s=x(t,["store","focusable","accessibleWhenDisabled","showOnHover"]);const a=oV();D(n=n||a,!1);const l=(0,B.useRef)(null),c=n.parent,u=n.menubar,d=!!c,p=!!u&&!d,f=z(s),h=()=>{const e=l.current;e&&(null==n||n.setDisclosureElement(e),null==n||n.setAnchorElement(e),null==n||n.show())},m=s.onFocus,g=Se((e=>{if(null==m||m(e),f)return;if(e.defaultPrevented)return;if(null==n||n.setAutoFocusOnShow(!1),null==n||n.setActiveId(null),!u)return;if(!p)return;const{items:t}=u.getState();fV(t,e.currentTarget)&&h()})),y=n.useState((e=>e.placement.split("-")[0])),w=s.onKeyDown,_=Se((e=>{if(null==w||w(e),f)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,y);t&&(e.preventDefault(),h(),null==n||n.setAutoFocusOnShow(!0),null==n||n.setInitialFocus(t))})),S=s.onClick,C=Se((e=>{if(null==S||S(e),e.defaultPrevented)return;if(!n)return;const t=!e.detail,{open:r}=n.getState();r&&!t||(d&&!t||n.setAutoFocusOnShow(!0),n.setInitialFocus(t?"first":"container")),d&&h()}));s=Ie(s,(e=>(0,wt.jsx)(iV,{value:n,children:e})),[n]),d&&(s=b(v({},s),{render:(0,wt.jsx)(Kn.div,{render:s.render})}));const k=je(s.id),j=Qe((null==c?void 0:c.combobox)||c,"contentElement"),E=d||p?re(j,"menuitem"):void 0,P=n.useState("contentElement");return s=b(v({id:k,role:E,"aria-haspopup":ne(P,"menu")},s),{ref:ke(l,s.ref),onFocus:g,onKeyDown:_,onClick:C}),s=dr(b(v({store:n,focusable:r,accessibleWhenDisabled:o},s),{showOnHover:e=>{if(!(()=>{if("function"==typeof i)return i(e);if(null!=i)return i;if(d)return!0;if(!u)return!1;const{items:t}=u.getState();return p&&fV(t)})())return!1;const t=p?u:c;return!t||(t.setActiveId(e.currentTarget.id),!0)}})),s=aI(v({store:n,toggleOnClick:!d,focusable:r,accessibleWhenDisabled:o},s)),s=gI(v({store:n,typeahead:p},s))})),mV=_t((function(e){return Ct("button",hV(e))}));var gV=kt((function(e){var t=e,{store:n,alwaysVisible:r,composite:o}=t,i=x(t,["store","alwaysVisible","composite"]);const s=oV();D(n=n||s,!1);const a=n.parent,l=n.menubar,c=!!a,u=je(i.id),d=i.onKeyDown,p=n.useState((e=>e.placement.split("-")[0])),f=n.useState((e=>"both"===e.orientation?void 0:e.orientation)),h="vertical"!==f,m=Qe(l,(e=>!!e&&"vertical"!==e.orientation)),g=Se((e=>{if(null==d||d(e),!e.defaultPrevented){if(c||l&&!h){const t={ArrowRight:()=>"left"===p&&!h,ArrowLeft:()=>"right"===p&&!h,ArrowUp:()=>"bottom"===p&&h,ArrowDown:()=>"top"===p&&h}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==n?void 0:n.hide()}if(l){const t={ArrowRight:()=>{if(m)return l.next()},ArrowLeft:()=>{if(m)return l.previous()},ArrowDown:()=>{if(!m)return l.next()},ArrowUp:()=>{if(!m)return l.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),l.move(n))}}}));i=Ie(i,(e=>(0,wt.jsx)(sV,{value:n,children:e})),[n]);const y=function(e){var t=e,{store:n}=t,r=x(t,["store"]);const[o,i]=(0,B.useState)(void 0),s=r["aria-label"],a=Qe(n,"disclosureElement"),l=Qe(n,"contentElement");return(0,B.useEffect)((()=>{const e=a;e&&l&&(s||l.hasAttribute("aria-label")?i(void 0):e.id&&i(e.id))}),[s,a,l]),o}(v({store:n},i)),w=Fr(n.useState("mounted"),i.hidden,r),_=w?b(v({},i.style),{display:"none"}):i.style;i=b(v({id:u,"aria-labelledby":y,hidden:w},i),{ref:ke(u?n.setContentElement:null,i.ref),style:_,onKeyDown:g});const S=!!n.combobox;return(o=null!=o?o:!S)&&(i=v({role:"menu","aria-orientation":f},i)),i=ln(v({store:n,composite:o},i)),i=gI(v({store:n,typeahead:!S},i))})),vV=(_t((function(e){return Ct("div",gV(e))})),kt((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,autoFocusOnShow:s=!0,hideOnHoverOutside:a,alwaysVisible:l}=t,c=x(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const u=oV();D(n=n||u,!1);const d=(0,B.useRef)(null),p=n.parent,f=n.menubar,h=!!p,m=!!f&&!h;c=b(v({},c),{ref:ke(d,c.ref)});const g=gV(v({store:n,alwaysVisible:l},c)),{"aria-labelledby":y}=g;c=x(g,["aria-labelledby"]);const[w,_]=(0,B.useState)(),S=n.useState("autoFocusOnShow"),C=n.useState("initialFocus"),k=n.useState("baseElement"),j=n.useState("renderedItems");(0,B.useEffect)((()=>{let e=!1;return _((t=>{var n,r,o;if(e)return;if(!S)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const i=(0,B.createRef)();switch(C){case"first":i.current=(null==(r=j.find((e=>!e.disabled&&e.element)))?void 0:r.element)||null;break;case"last":i.current=(null==(o=[...j].reverse().find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;default:i.current=k}return i})),()=>{e=!0}}),[n,S,C,j,k]);const E=!h&&r,P=!!s,T=!!w||!!c.initialFocus||!!E,R=Qe(n.combobox||n,"contentElement"),I=Qe((null==p?void 0:p.combobox)||p,"contentElement"),N=(0,B.useMemo)((()=>{if(!I)return;if(!R)return;const e=R.getAttribute("role"),t=I.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?I:void 0}),[R,I]);return void 0!==N&&(c=v({preserveTabOrderAnchor:N},c)),c=Di(b(v({store:n,alwaysVisible:l,initialFocus:w,autoFocusOnShow:P?T&&s:S||!!E},c),{hideOnEscape:e=>!O(i,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside(e){const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof a?a(e):null!=a?a:h||m&&(!t||!Gt(t)))&&(!!e.defaultPrevented||(!h||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!Gt(t)||(requestAnimationFrame((()=>{Gt(t)||null==n||n.hide()})),!1)))))},modal:E,portal:o,backdrop:!h&&c.backdrop})),c=v({"aria-labelledby":y},c)}))),bV=uo(_t((function(e){return Ct("div",vV(e))})),oV);const xV=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(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 yV=kt((function(e){var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:s}=t,a=x(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=rV(!0),c=uV();D(n=n||l||c,!1);const u=a.onClick,d=Re(r),p="hideAll"in n?n.hideAll:void 0,f=!!p,h=Se((e=>{if(null==u||u(e),e.defaultPrevented)return;if(de(e))return;if(ue(e))return;if(!p)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&p()})),m=re(Qe(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return a=b(v({role:m},a),{onClick:h}),a=Pn(v({store:n,preventScrollOnKeyDown:o},a)),a=jI(b(v({store:n},a),{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 f?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(Gt(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 s=K(e).getElementById(i);return!(!s||!Gt(s)&&!s.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof s?s(e):null!=s?s:f})),a})),wV=St(_t((function(e){return Ct("div",yV(e))}))),_V=jt(),SV=_V.useContext,CV=(_V.useScopedContext,_V.useProviderContext,_V.ContextProvider,_V.ScopedContextProvider,"input");function kV(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function jV(e){return Array.isArray(e)?e.toString():e}var EV=kt((function(e){var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:s}=t,a=x(t,["store","name","value","checked","defaultChecked"]);const l=SV();n=n||l;const[c,u]=(0,B.useState)(null!=s&&s),d=Qe(n,(e=>{if(void 0!==i)return i;if(void 0===(null==e?void 0:e.value))return c;if(null!=o){if(Array.isArray(e.value)){const t=jV(o);return e.value.includes(t)}return e.value===o}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),p=(0,B.useRef)(null),f=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(Ee(p,CV),a.type),h=d?"mixed"===d:void 0,m="mixed"!==d&&d,g=z(a),[y,w]=Te();(0,B.useEffect)((()=>{const e=p.current;e&&(kV(e,h),f||(e.checked=m,void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[y,h,f,m,r,o]);const _=a.onChange,S=Se((e=>{if(g)return e.stopPropagation(),void e.preventDefault();if(kV(e.currentTarget,h),f||(e.currentTarget.checked=!e.currentTarget.checked,w()),null==_||_(e),e.defaultPrevented)return;const t=e.currentTarget.checked;u(t),null==n||n.setValue((e=>{if(null==o)return t;const n=jV(o);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),C=a.onClick,k=Se((e=>{null==C||C(e),e.defaultPrevented||f||S(e)}));return a=Ie(a,(e=>(0,wt.jsx)(TI.Provider,{value:m,children:e})),[m]),a=b(v({role:f?void 0:"checkbox",type:f?"checkbox":void 0,"aria-checked":d},a),{ref:ke(p,a.ref),onChange:S,onClick:k}),a=kn(v({clickOnEnter:!f},a)),L(v({name:f?r:void 0,value:f?o:void 0,checked:m},a))}));_t((function(e){const t=EV(e);return Ct(CV,t)}));function PV(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=Ve({value:F(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return P(E({},r),{setValue:e=>r.setState("value",e)})}function TV(e={}){const[t,n]=et(PV,e);return function(e,t,n){return Pe(t,[n.store]),Je(e,n,"value","setValue"),e}(t,n,e)}function RV(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 IV=kt((function(e){var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:s,hideOnClick:a=!1}=t,l=x(t,["store","name","value","checked","defaultChecked","hideOnClick"]);const c=rV();D(n=n||c,!1);const u=we(s);(0,B.useEffect)((()=>{null==n||n.setValue(r,((e=[])=>u?RV(e,o,!0):e))}),[n,r,o,u]),(0,B.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>RV(e,o,i))))}),[n,r,o,i]);const d=TV({value:n.useState((e=>e.values[r])),setValue(e){null==n||n.setValue(r,(()=>{if(void 0===i)return e;const t=RV(e,o,i);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 l=v({role:"menuitemcheckbox"},l),l=EV(v({store:d,name:r,value:o,checked:i},l)),l=yV(v({store:n,hideOnClick:a},l))})),NV=St(_t((function(e){return Ct("div",IV(e))})));function MV(e,t,n){return void 0===n?e:n?t:e}var AV=kt((function(e){var t=e,{store:n,name:r,value:o,checked:i,onChange:s,hideOnClick:a=!1}=t,l=x(t,["store","name","value","checked","onChange","hideOnClick"]);const c=rV();D(n=n||c,!1);const u=we(l.defaultChecked);(0,B.useEffect)((()=>{null==n||n.setValue(r,((e=!1)=>MV(e,o,u)))}),[n,r,o,u]),(0,B.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>MV(e,o,i))))}),[n,r,o,i]);const d=n.useState((e=>e.values[r]===o));return l=Ie(l,(e=>(0,wt.jsx)(aV.Provider,{value:!!d,children:e})),[d]),l=v({role:"menuitemradio"},l),l=N_(v({name:r,value:o,checked:d,onChange(e){if(null==s||s(e),e.defaultPrevented)return;const t=e.currentTarget;null==n||n.setValue(r,(e=>MV(e,o,null!=i?i:t.checked)))}},l)),l=yV(v({store:n,hideOnClick:a},l))})),DV=St(_t((function(e){return Ct("div",AV(e))}))),OV=kt((function(e){return e=hn(e)})),zV=_t((function(e){return Ct("div",OV(e))})),LV=kt((function(e){return e=bn(e)})),FV=_t((function(e){return Ct("div",LV(e))})),BV=kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=Rt();D(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=gP(b(v({},r),{orientation:i}))})),VV=(_t((function(e){return Ct("hr",BV(e))})),kt((function(e){var t=e,{store:n}=t,r=x(t,["store"]);const o=nV();return r=BV(v({store:n=n||o},r))}))),$V=_t((function(e){return Ct("hr",VV(e))}));const HV=.82,WV=.9,UV={IN:"400ms",OUT:"200ms"},GV="cubic-bezier(0.33, 0, 0, 1)",KV=wl(1),qV=wl(2),YV=wl(3),XV=jl.theme.gray[300],ZV=jl.theme.gray[200],QV=jl.theme.gray[700],JV=jl.theme.gray[100],e$=jl.theme.foreground,t$=`0 0 0 ${Tl.borderWidth} ${XV}, ${Tl.elevationMedium}`,n$=`0 0 0 ${Tl.borderWidth} ${e$}`,r$="minmax( 0, max-content ) 1fr",o$=cl("div",{target:"e1kdzosf14"})("position:relative;background-color:",jl.ui.background,";border-radius:",Tl.radiusMedium,";",(e=>bl("box-shadow:","toolbar"===e.variant?n$:t$,";",""))," overflow:hidden;@media not ( prefers-reduced-motion ){transition-property:transform,opacity;transition-timing-function:",GV,";transition-duration:",UV.IN,";will-change:transform,opacity;opacity:0;&:has( [data-enter] ){opacity:1;}&:has( [data-leave] ){transition-duration:",UV.OUT,";}&:has( [data-side='bottom'] ),&:has( [data-side='top'] ){transform:scaleY( ",HV," );}&:has( [data-side='bottom'] ){transform-origin:top;}&:has( [data-side='top'] ){transform-origin:bottom;}&:has( [data-enter][data-side='bottom'] ),&:has( [data-enter][data-side='top'] ),&:has( [data-leave][data-side='bottom'] ),&:has( [data-leave][data-side='top'] ){transform:scaleY( 1 );}}"),i$=cl("div",{target:"e1kdzosf13"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",r$,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",KV,";overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;@media not ( prefers-reduced-motion ){transition:inherit;transform-origin:inherit;&[data-side='bottom'],&[data-side='top']{transform:scaleY(\n\t\t\t\tcalc(\n\t\t\t\t\t1 / ",HV," *\n\t\t\t\t\t\t",WV,"\n\t\t\t\t)\n\t\t\t);}&[data-enter][data-side='bottom'],&[data-enter][data-side='top'],&[data-leave][data-side='bottom'],&[data-leave][data-side='top']{transform:scaleY( 1 );}}"),s$=bl("all:unset;position:relative;min-height:",wl(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",r$,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",Fx("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",jl.theme.foreground,";border-radius:",Tl.radiusSmall,";padding-block:",qV,";padding-inline:",YV,";scroll-margin:",KV,";user-select:none;outline:none;&[aria-disabled='true']{color:",jl.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:",jl.theme.accent,";color:",jl.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",jl.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",i$,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',JV,";color:",jl.theme.foreground,";}svg{fill:currentColor;}",""),a$=cl(wV,{target:"e1kdzosf12"})(s$,";"),l$=cl(NV,{target:"e1kdzosf11"})(s$,";"),c$=cl(DV,{target:"e1kdzosf10"})(s$,";"),u$=cl("span",{target:"e1kdzosf9"})("grid-column:1;",l$,">&,",c$,">&{min-width:",wl(6),";}",l$,">&,",c$,">&,&:not( :empty ){margin-inline-end:",wl(2),";}display:flex;align-items:center;justify-content:center;color:",QV,";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),d$=cl("div",{target:"e1kdzosf8"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",wl(3),";pointer-events:none;"),p$=cl("div",{target:"e1kdzosf7"})("flex:1;display:inline-flex;flex-direction:column;gap:",wl(1),";"),f$=cl("span",{target:"e1kdzosf6"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",wl(3),";color:",QV,";[data-active-item]:not( [data-focus-visible] ) *:not(",i$,") &,[aria-disabled='true'] *:not(",i$,") &{color:inherit;}"),h$=cl(zV,{target:"e1kdzosf5"})({name:"49aokf",styles:"display:contents"}),m$=cl(FV,{target:"e1kdzosf4"})("grid-column:1/-1;padding-block-start:",wl(3),";padding-block-end:",wl(2),";padding-inline:",YV,";"),g$=cl($V,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",Tl.borderWidth,";background-color:",(e=>"toolbar"===e.variant?e$:ZV),";margin-block:",wl(2),";margin-inline:",YV,";outline:2px solid transparent;"),v$=cl(ry,{target:"e1kdzosf2"})("width:",wl(1.5),";",Bg({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),b$=cl(Ek,{target:"e1kdzosf1"})("font-size:",Fx("default.fontSize"),";line-height:20px;color:inherit;"),x$=cl(Ek,{target:"e1kdzosf0"})("font-size:",Fx("helpText.fontSize"),";line-height:16px;color:",QV,";word-break:break-all;[data-active-item]:not( [data-focus-visible] ) *:not( ",i$," ) &,[aria-disabled='true'] *:not( ",i$," ) &{color:inherit;}"),y$=(0,c.createContext)(void 0);function w$({onBlur:e}){const[t,n]=(0,c.useState)(!1);return{"data-focus-visible":t||void 0,onFocusVisible:()=>{(0,c.flushSync)((()=>n(!0)))},onBlur:t=>{e?.(t),n(!1)}}}const _$=(0,c.forwardRef)((function({prefix:e,suffix:t,children:n,onBlur:r,hideOnClick:o=!0,...i},s){const a=w$({onBlur:r}),l=(0,c.useContext)(y$);return(0,wt.jsxs)(a$,{ref:s,...i,...a,accessibleWhenDisabled:!0,hideOnClick:o,store:l?.store,children:[(0,wt.jsx)(u$,{children:e}),(0,wt.jsxs)(d$,{children:[(0,wt.jsx)(p$,{children:n}),t&&(0,wt.jsx)(f$,{children:t})]})]})}));var S$=kt((function(e){var t=e,{store:n,checked:r}=t,o=x(t,["store","checked"]);const i=(0,B.useContext)(aV);return r=null!=r?r:i,o=II(b(v({},o),{checked:r}))})),C$=_t((function(e){return Ct("span",S$(e))}));const k$=(0,c.forwardRef)((function({suffix:e,children:t,onBlur:n,hideOnClick:r=!1,...o},i){const s=w$({onBlur:n}),a=(0,c.useContext)(y$);return(0,wt.jsxs)(l$,{ref:i,...o,...s,accessibleWhenDisabled:!0,hideOnClick:r,store:a?.store,children:[(0,wt.jsx)(C$,{store:a?.store,render:(0,wt.jsx)(u$,{}),style:{width:"auto",height:"auto"},children:(0,wt.jsx)(vS,{icon:xk,size:24})}),(0,wt.jsxs)(d$,{children:[(0,wt.jsx)(p$,{children:t}),e&&(0,wt.jsx)(f$,{children:e})]})]})})),j$=(0,wt.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(n.Circle,{cx:12,cy:12,r:3})}),E$=(0,c.forwardRef)((function({suffix:e,children:t,onBlur:n,hideOnClick:r=!1,...o},i){const s=w$({onBlur:n}),a=(0,c.useContext)(y$);return(0,wt.jsxs)(c$,{ref:i,...o,...s,accessibleWhenDisabled:!0,hideOnClick:r,store:a?.store,children:[(0,wt.jsx)(C$,{store:a?.store,render:(0,wt.jsx)(u$,{}),style:{width:"auto",height:"auto"},children:(0,wt.jsx)(vS,{icon:j$,size:24})}),(0,wt.jsxs)(d$,{children:[(0,wt.jsx)(p$,{children:t}),e&&(0,wt.jsx)(f$,{children:e})]})]})})),P$=(0,c.forwardRef)((function(e,t){const n=(0,c.useContext)(y$);return(0,wt.jsx)(h$,{ref:t,...e,store:n?.store})})),T$=(0,c.forwardRef)((function(e,t){const n=(0,c.useContext)(y$);return(0,wt.jsx)(m$,{ref:t,render:(0,wt.jsx)(Xv,{upperCase:!0,variant:"muted",size:"11px",weight:500,lineHeight:"16px"}),...e,store:n?.store})})),R$=(0,c.forwardRef)((function(e,t){const n=(0,c.useContext)(y$);return(0,wt.jsx)(g$,{ref:t,...e,store:n?.store,variant:n?.variant})})),I$=(0,c.forwardRef)((function(e,t){return(0,wt.jsx)(b$,{numberOfLines:1,ref:t,...e})})),N$=(0,c.forwardRef)((function(e,t){return(0,wt.jsx)(x$,{numberOfLines:2,ref:t,...e})})),M$=Object.assign(Xa(((e,t)=>{var n;const{open:r,defaultOpen:o=!1,onOpenChange:i,placement:s,trigger:l,gutter:u,children:d,shift:p,modal:f=!0,variant:h,...m}=Ya(e,"DropdownMenu"),g=(0,c.useContext)(y$),v=(0,a.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 x=pV({parent:g?.store,open:r,defaultOpen:o,placement:b,focusLoop:!0,setOpen(e){i?.(e)},rtl:"rtl"===v}),y=(0,c.useMemo)((()=>({store:x,variant:h})),[x,h]),w=Qe(x,"currentPlacement").split("-")[0];!x.parent||(0,c.isValidElement)(l)&&_$===l.type||console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const _=(0,c.useCallback)((e=>(e.preventDefault(),!0)),[]),S=(0,c.useMemo)((()=>({dir:v,style:{direction:v}})),[v]);return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(mV,{ref:t,store:x,render:x.parent?(0,c.cloneElement)(l,{suffix:(0,wt.jsxs)(wt.Fragment,{children:[l.props.suffix,(0,wt.jsx)(v$,{"aria-hidden":"true",icon:xV,size:24,preserveAspectRatio:"xMidYMid slice"})]})}):l}),(0,wt.jsx)(bV,{...m,modal:f,store:x,gutter:null!=u?u:x.parent?0:8,shift:null!=p?p:x.parent?-4:0,hideOnHoverOutside:!1,"data-side":w,wrapperProps:S,hideOnEscape:_,unmountOnHide:!0,render:e=>(0,wt.jsx)(o$,{variant:h,children:(0,wt.jsx)(i$,{...e})}),children:(0,wt.jsx)(y$.Provider,{value:y,children:d})})]})}),"DropdownMenu"),{Context:Object.assign(y$,{displayName:"DropdownMenuV2.Context"}),Item:Object.assign(_$,{displayName:"DropdownMenuV2.Item"}),RadioItem:Object.assign(E$,{displayName:"DropdownMenuV2.RadioItem"}),CheckboxItem:Object.assign(k$,{displayName:"DropdownMenuV2.CheckboxItem"}),Group:Object.assign(P$,{displayName:"DropdownMenuV2.Group"}),GroupLabel:Object.assign(T$,{displayName:"DropdownMenuV2.GroupLabel"}),Separator:Object.assign(R$,{displayName:"DropdownMenuV2.Separator"}),ItemLabel:Object.assign(I$,{displayName:"DropdownMenuV2.ItemLabel"}),ItemHelpText:Object.assign(N$,{displayName:"DropdownMenuV2.ItemHelpText"})});const A$=cl("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});function D$(e){!function(e){for(const[t,n]of Object.entries(e))void 0!==n&&Ev(n).isValid()}(e);const t={...O$(e.accent),...z$(e.background)};return function(e){for(const t of Object.values(e));}(function(e,t){const n=e.background||jl.white,r=e.accent||"#3858e9",o=t.foreground||jl.gray[900],i=t.gray||jl.gray;return{accent:Ev(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:Ev(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:Ev(n).contrast(i[600])>=3&&Ev(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 O$(e){return e?{accent:e,accentDarker10:Ev(e).darken(.1).toHex(),accentDarker20:Ev(e).darken(.2).toHex(),accentInverted:L$(e)}:{}}function z$(e){if(!e)return{};const t=L$(e);return{background:e,foreground:t,foregroundInverted:L$(t),gray:F$(e,t)}}function L$(e){return Ev(e).isDark()?jl.white:jl.gray[900]}function F$(e,t){const n=Ev(e).isDark()?"lighten":"darken",r=Math.abs(Ev(e).toHsl().l-Ev(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)]=Ev(e)[n](i/.884*r).toHex()})),o}Tv([Rv,tS]);const B$=function({accent:e,background:t,className:n,...r}){const o=qa(),i=(0,c.useMemo)((()=>o(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[bl("--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,";","")]})(D$({accent:e,background:t})),n)),[e,t,n,o]);return(0,wt.jsx)(A$,{className:i,...r})},V$=(0,c.createContext)(void 0),$$=()=>(0,c.useContext)(V$),H$=cl("div",{target:"enfox0g2"})("position:relative;display:flex;align-items:stretch;flex-direction:row;text-align:center;&[aria-orientation='vertical']{flex-direction:column;text-align:start;}@media not ( prefers-reduced-motion ){&.is-animation-enabled::after{transition-property:transform;transition-duration:0.2s;transition-timing-function:ease-out;}}--direction-factor:1;--direction-origin-x:left;--indicator-start:var( --indicator-left );&:dir( rtl ){--direction-factor:-1;--direction-origin-x:right;--indicator-start:var( --indicator-right );}&::after{content:'';position:absolute;pointer-events:none;transform-origin:var( --direction-origin-x ) top;outline:2px solid transparent;outline-offset:-1px;}--antialiasing-factor:100;&:not( [aria-orientation='vertical'] ){&::after{bottom:0;height:0;width:calc( var( --antialiasing-factor ) * 1px );transform:translateX(\n\t\t\t\t\tcalc(\n\t\t\t\t\t\tvar( --indicator-start ) * var( --direction-factor ) *\n\t\t\t\t\t\t\t1px\n\t\t\t\t\t)\n\t\t\t\t) scaleX(\n\t\t\t\t\tcalc(\n\t\t\t\t\t\tvar( --indicator-width ) / var( --antialiasing-factor )\n\t\t\t\t\t)\n\t\t\t\t);border-bottom:var( --wp-admin-border-width-focus ) solid ",jl.theme.accent,";}}&[aria-orientation='vertical']::after{z-index:-1;top:0;left:0;width:100%;height:calc( var( --antialiasing-factor ) * 1px );transform:translateY( calc( var( --indicator-top ) * 1px ) ) scaleY(\n\t\t\t\tcalc( var( --indicator-height ) / var( --antialiasing-factor ) )\n\t\t\t);background-color:",jl.theme.gray[100],";}"),W$=cl(hF,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;min-height:",wl(12),";height:auto;background:transparent;border:none;box-shadow:none;cursor:pointer;line-height:1.2;padding:",wl(3)," ",wl(4),";margin-left:0;font-weight:500;text-align:inherit;hyphens:auto;color:",jl.theme.foreground,";&[aria-disabled='true']{cursor:default;color:",jl.ui.textDisabled,";}&:not( [aria-disabled='true'] ):hover{color:",jl.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::before{content:'';position:absolute;top:",wl(3),";right:",wl(3),";bottom:",wl(3),";left:",wl(3),";pointer-events:none;outline:var( --wp-admin-border-width-focus ) solid ",jl.theme.accent,";border-radius:",Tl.radiusSmall,";opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&:focus-visible::before{opacity:1;}}[aria-orientation='vertical'] &{min-height:",wl(10),";}"),U$=cl(gF,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",jl.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),G$=(0,c.forwardRef)((function({children:e,tabId:t,disabled:n,render:r,...o},i){const s=$$();if(!s)return null;const{store:a,instanceId:l}=s,c=`${l}-${t}`;return(0,wt.jsx)(W$,{ref:i,store:a,id:c,disabled:n,render:r,...o,children:e})}));function K$(e){const t=(0,c.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return(0,c.useInsertionEffect)((()=>{t.current=e})),(0,c.useCallback)(((...e)=>t.current?.(...e)),[])}const q$={top:0,right:0,bottom:0,left:0,width:0,height:0};function Y$(e){const[t,n]=(0,c.useState)(q$),r=(0,c.useRef)(),o=K$((()=>{if(e){const t=function(e){var t;const n=e.getBoundingClientRect();if(0===n.width||0===n.height)return;const r=null!==(t=e.offsetParent?.getBoundingClientRect())&&void 0!==t?t:q$,o=parseFloat(getComputedStyle(e).width),i=parseFloat(getComputedStyle(e).height),s=o/n.width,a=i/n.height;return{top:(n.top-r?.top)*a,right:(r?.right-n.right)*s,bottom:(r?.bottom-n.bottom)*a,left:(n.left-r?.left)*s,width:o,height:i}}(e);if(t)return n(t),clearInterval(r.current),!0}else clearInterval(r.current);return!1})),i=(0,l.useResizeObserver)((()=>{o()||requestAnimationFrame((()=>{o()||(r.current=setInterval(o,100))}))}));return(0,c.useLayoutEffect)((()=>i(e)),[i,e]),t}const X$=(0,c.forwardRef)((function({children:e,...t},n){const r=$$(),o=Qe(r?.store),i=o?.selectedId,a=Y$(r?.store.item(i)?.element),[l,u]=(0,c.useState)(!1);if(function(e,t){const n=(0,c.useRef)(e),r=K$(t);(0,c.useEffect)((()=>{n.current!==e&&(r({previousValue:n.current}),n.current=e)}),[r,e])}(i,(({previousValue:e})=>e&&u(!0))),!r||!o)return null;const{store:d}=r,{activeId:p,selectOnMove:f}=o,{setActiveId:h}=d;return(0,wt.jsx)(pF,{ref:n,store:d,render:(0,wt.jsx)(H$,{onTransitionEnd:e=>{"::after"===e.pseudoElement&&u(!1)}}),onBlur:()=>{f&&i!==p&&h(i)},...t,style:{"--indicator-top":a.top,"--indicator-right":a.right,"--indicator-left":a.left,"--indicator-width":a.width,"--indicator-height":a.height,...t.style},className:s(l?"is-animation-enabled":"",t.className),children:e})})),Z$=(0,c.forwardRef)((function({children:e,tabId:t,focusable:n=!0,...r},o){const i=$$(),s=Qe(i?.store,"selectedId");if(!i)return null;const{store:a,instanceId:l}=i,c=`${l}-${t}`;return(0,wt.jsx)(U$,{ref:o,store:a,id:`${c}-view`,tabId:c,focusable:n,...r,children:s===c&&e})}));function Q$({selectOnMove:e=!0,defaultTabId:t,orientation:n="horizontal",onSelect:r,children:o,selectedTabId:i}){const s=(0,l.useInstanceId)(Q$,"tabs"),a=sF({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${s}-${t}`,setSelectedId:e=>{const t="string"==typeof e?e.replace(`${s}-`,""):e;r?.(t)},selectedId:i&&`${s}-${i}`}),u=void 0!==i,{items:d,selectedId:p,activeId:f}=Qe(a),{setSelectedId:h,setActiveId:m}=a,g=(0,c.useRef)(!1);d.length>0&&(g.current=!0);const v=d.find((e=>e.id===p)),b=d.find((e=>!e.dimmed)),x=d.find((e=>e.id===`${s}-${t}`));(0,c.useLayoutEffect)((()=>{if(!u&&(!t||x)&&!d.find((e=>e.id===p))){if(x&&!x.dimmed)return void h(x?.id);b?h(b.id):g.current&&h(null)}}),[b,x,t,u,d,p,h]),(0,c.useLayoutEffect)((()=>{v?.dimmed&&(u?h(null):!x||x.dimmed?b&&h(b.id):h(x.id))}),[b,x,u,v?.dimmed,h]),(0,c.useLayoutEffect)((()=>{u&&g.current&&i&&!v&&h(null)}),[u,v,i,h]),(0,c.useEffect)((()=>{null===i&&!f&&b?.id&&m(b.id)}),[i,f,b?.id,m]),(0,c.useEffect)((()=>{u&&requestAnimationFrame((()=>{const e=d?.[0]?.element?.ownerDocument.activeElement;e&&d.some((t=>e===t.element))&&f!==e.id&&m(e.id)}))}),[f,u,d,m]);const y=(0,c.useMemo)((()=>({store:a,instanceId:s})),[a,s]);return(0,wt.jsx)(V$.Provider,{value:y,children:o})}Q$.TabList=X$,Q$.Tab=G$,Q$.TabPanel=Z$,Q$.Context=V$;const J$=Q$,eH=window.wp.privateApis,{lock:tH,unlock:nH}=(0,eH.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/components"),rH={};tH(rH,{__experimentalPopoverLegacyPositionToPlacement:$i,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...Tw(t)}},ComponentsContext:rs,Tabs:J$,Theme:B$,DropdownMenuV2:M$,kebabCase:zy})})(),(window.wp=window.wp||{}).components=i})();

Youez - 2016 - github.com/yon3zu
LinuXploit