/*! This file is auto-generated */ !function(){var e={4403:function(e,t){var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t0?!0===a?r.scrollTop(t,y.top+w.top):!1===a?r.scrollTop(t,y.top+x.top):w.top<0?r.scrollTop(t,y.top+w.top):r.scrollTop(t,y.top+x.top):i||((a=void 0===a||!!a)?r.scrollTop(t,y.top+w.top):r.scrollTop(t,y.top+x.top)),o&&(w.left<0||x.left>0?!0===s?r.scrollLeft(t,y.left+w.left):!1===s?r.scrollLeft(t,y.left+x.left):w.left<0?r.scrollLeft(t,y.left+w.left):r.scrollLeft(t,y.left+x.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+w.left):r.scrollLeft(t,y.left+x.left)))}},5425:function(e,t,n){"use strict";e.exports=n(1345)},5022:function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t0&&w("Invalid input not EOF"),e}function _(){return E("linear-gradient",e,k)||E("repeating-linear-gradient",t,k)||E("radial-gradient",n,S)||E("repeating-radial-gradient",r,S)}function E(e,t,n){return C(t,(function(t){var r=n();return r&&(L(p)||w("Missing comma before color stops")),{type:e,orientation:r,colorStops:M(I)}}))}function C(e,t){var n=L(e);if(n)return L(d)||w("Missing ("),result=t(n),L(f)||w("Missing )"),result}function k(){return A("directional",o,1)||A("angular",u,1)}function S(){var e,t,n=T();return n&&((e=[]).push(n),t=y,L(p)&&((n=T())?e.push(n):y=t)),e}function T(){var e=function(){var e=A("shape",/^(circle)/i,0);e&&(e.style=D()||N());return e}()||function(){var e=A("shape",/^(ellipse)/i,0);e&&(e.style=O()||N());return e}();if(e)e.at=function(){if(A("position",/^at/,0)){var e=R();return e||w("Missing positioning value"),e}}();else{var t=R();t&&(e={type:"default-radial",at:t})}return e}function N(){return A("extent-keyword",i,1)}function R(){var e={x:O(),y:O()};if(e.x||e.y)return{type:"position",value:e}}function M(e){var t=e(),n=[];if(t)for(n.push(t);L(p);)(t=e())?n.push(t):w("One extra comma");return n}function I(){var e=A("hex",m,1)||C(g,(function(){return{type:"rgba",value:M(P)}}))||C(v,(function(){return{type:"rgb",value:M(P)}}))||A("literal",h,0);return e||w("Expected color definition"),e.length=O(),e}function P(){return L(b)[1]}function O(){return A("%",l,1)||A("position-keyword",a,1)||D()}function D(){return A("px",s,1)||A("em",c,1)}function A(e,t,n){var r=L(t);if(r)return{type:e,value:r[n]}}function L(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(y))&&z(n[0].length),(t=e.exec(y))&&z(t[0].length),t}function z(e){y=y.substr(e)}return function(e){return y=e.toString(),x()}}(),t.parse=(n||{}).parse},3138:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?r:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},1281:function(e,t,n){"use strict";var r=n(338),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),h=l(n),v=0;v=0||(o[n]=e[n]);return o}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var b=window.React,y=n.n(b);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(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 _(e){for(var t=1;t=0||(o[n]=e[n]);return o}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var S=(0,b.createContext)({});var T,N=function(e,t,n){void 0===n&&(n=t.children);var r=(0,b.useContext)(S);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(E(t,["children"]))}return(0,b.createElement)(e,t,n)};function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(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 I(e){for(var t=1;t=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function D(e,t){if(void 0===t&&(t=[]),!P(e.state))return O(e,t);var n=O(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["state"]);return[I(I({},i),a),o]}function A(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;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var re=F({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=h(e,["unstable_system"]),o=t.unstable_system,i=h(t,["unstable_system"]);return!(n!==o&&!A(n,o))&&A(r,i)}}),oe=(z({as:"div",useHook:re}),ee("Mac")&&!ee("Chrome")&&(ee("Safari")||ee("Firefox")));function ie(e){!X(e)&&ne(e)&&e.focus()}function ae(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function se(e,t){return(0,b.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var le=F({name:"Tabbable",compose:re,keys:["disabled","focusable"],useOptions:function(e,t){return m({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,l=t.style,c=h(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,b.useRef)(null),d=G(o),f=G(i),p=G(a),v=G(s),g=!!e.disabled&&!e.focusable,y=(0,b.useState)(!0),w=y[0],x=y[1],_=(0,b.useState)(!0),E=_[0],C=_[1],k=e.disabled?m({pointerEvents:"none"},l):l;U((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||x(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||C(!1))}),[]);var S=se(d,e.disabled),T=se(f,e.disabled),N=se(v,e.disabled),R=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e);var n=e.currentTarget;if(!e.defaultPrevented&&oe&&!Z(e)&&Q(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),ie(n)})),o=function(){cancelAnimationFrame(r),ie(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return m({ref:V(u,n),style:k,tabIndex:ae(g,w,E,r),disabled:!(!g||!E)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:S,onMouseDownCapture:T,onMouseDown:R,onKeyPressCapture:N},c)}});z({as:"div",useHook:le});var ce=F({name:"Clickable",compose:le,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return m({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},h(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=h(t,["onKeyDown","onKeyUp"]),i=(0,b.useState)(!1),a=i[0],s=i[1],l=G(n),c=G(r),u=(0,b.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&q(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Q(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,b.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return m({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});z({as:"button",memo:!0,useHook:ce});function ue(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function de(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=ue(e.items||[]))||void 0===n?void 0:n.id}var fe=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],pe=fe,me=pe;function he(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ve(e,t){e.userFocus=t}function ge(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}function be(e){var t=Y(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ye(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var we=(0,b.createContext)(ye);var xe=F({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,b.useContext)(we),r=(0,b.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,b.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return m(m({},e),{},{id:i})},useProps:function(e,t){return m({id:e.id},t)}});z({as:"div",useHook:xe});function _e(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=j(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function Ee(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(_e(e,t,n))}(e,"input",{bubbles:!0}))}}function Ce(e){return e.querySelector("[data-composite-item-widget]")}var ke=F({name:"CompositeItem",compose:[ce,xe],keys:me,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ce.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=h(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=h(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ce.unstable_propsAreEqual(o,s)},useOptions:function(e){return m(m({},e),{},{id:e.id,currentId:de(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,l=t.onBlurCapture,c=t.onKeyDown,u=t.onClick,d=h(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,b.useRef)(null),p=e.id,v=e.disabled&&!e.focusable,y=e.currentId===p,w=G(y),x=(0,b.useRef)(!1),_=function(e){return(0,b.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),E=G(a),C=G(s),k=G(l),S=G(c),T=G(u),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,b.useEffect)((function(){var t;if(p)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:p,ref:f,disabled:!!v}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,p)}}),[p,v,e.registerItem,e.unregisterItem]),(0,b.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&w.current&&he(t)}),[e.unstable_moves]);var R=(0,b.useCallback)((function(e){var t;null===(t=E.current)||void 0===t||t.call(E,e),ve(e.currentTarget,!0)}),[]),M=(0,b.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ve(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&p&&!function(e,t){if(q(e))return!1;for(var n,r=g(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,p),o&&e.unstable_virtual&&e.baseId&&q(t))){var i=j(t.target).getElementById(e.baseId);i&&(x.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;i(e)||(e.focus({preventScroll:r}),i(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(i))}}),[p,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),I=(0,b.useCallback)((function(t){var n;null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||e.unstable_virtual&&x.current&&(x.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),P=(0,b.useCallback)((function(t){var n;if(q(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==_||!_.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=S.current)||void 0===n||n.call(S,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Ce(t.currentTarget);s&&ge(s)&&(s.focus(),Ee(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ge(l)&&(t.preventDefault(),Ee(l,""))}}}),[e.orientation,_,e.up,e.next,e.down,e.previous,e.first,e.last]),O=(0,b.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Ce(e.currentTarget);n&&!X(n)&&n.focus()}}),[]);return m({ref:V(f,r),id:p,tabIndex:N?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:R,onFocus:M,onBlurCapture:I,onKeyDown:P,onClick:O},d)}}),Se=z({as:"button",memo:!0,useHook:ke});function Te(e){return e.split("-")[0]}function Ne(e){return e.split("-")[1]}function Re(e){return["top","bottom"].includes(Te(e))?"x":"y"}function Me(e){return"y"===e?"height":"width"}function Ie(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Re(t),l=Me(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(Te(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Ne(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function Pe(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 Oe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function De(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=Pe(p),h=s[f?"floating"===d?"reference":"floating":d],v=Oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g=Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:v.top-g.top+m.top,bottom:g.bottom-v.bottom+m.bottom,left:v.left-g.left+m.left,right:g.right-v.right+m.right}}const Ae=Math.min,Le=Math.max;function ze(e,t,n){return Le(e,Ae(t,n))}const Be=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=Pe(r),u={x:o,y:i},d=Re(a),f=Ne(a),p=Me(d),m=await l.getDimensions(n),h="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=g/2-b/2,_=c[h],E=w-m[p]-c[v],C=w/2-m[p]/2+x,k=ze(_,C,E),S=("start"===f?c[h]:c[v])>0&&C!==k&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(S?C<_?_-C:E-C:0),data:{[d]:k,centerOffset:C-k}}}}),Fe={left:"right",right:"left",bottom:"top",top:"bottom"};function He(e){return e.replace(/left|right|bottom|top/g,(e=>Fe[e]))}function Ve(e,t,n){void 0===n&&(n=!1);const r=Ne(e),o=Re(e),i=Me(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=He(a)),{main:a,cross:He(a)}}const je={start:"end",end:"start"};function $e(e){return e.replace(/start|end/g,(e=>je[e]))}const We=["top","right","bottom","left"],Ue=(We.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=Te(r),v=d||(h!==a&&p?function(e){const t=He(e);return[$e(e),t,$e(t)]}(a):[He(a)]),g=[a,...v],b=await De(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=Ve(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,_;const e=(null!=(x=null==(_=o.flip)?void 0:_.index)?x:0)+1,t=g[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var E;const e=null==(E=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});const Ge=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Te(n),s=Ne(n),l="x"===Re(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function qe(e){return"x"===e?"y":"x"}const Ye=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await De(t,l),d=Re(Te(o)),f=qe(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=ze(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=ze(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Ke=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=e,l=await De(t,s),c=Te(n),u=Ne(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=Le(l.left,0),m=Le(l.right,0),h=Le(l.top,0),v=Le(l.bottom,0),g={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==v?h+v:Le(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Le(l.left,l.right)):l[f])};await a({...t,...g});const b=await o.getDimensions(i.floating);return r.floating.width!==b.width||r.floating.height!==b.height?{reset:{rects:!0}}:{}}}};function Xe(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ze(e){if(null==e)return window;if(!Xe(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Je(e){return Ze(e).getComputedStyle(e)}function Qe(e){return Xe(e)?"":e?(e.nodeName||"").toLowerCase():""}function et(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function tt(e){return e instanceof Ze(e).HTMLElement}function nt(e){return e instanceof Ze(e).Element}function rt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ze(e).ShadowRoot||e instanceof ShadowRoot)}function ot(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Je(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function it(e){return["table","td","th"].includes(Qe(e))}function at(e){const t=/firefox/i.test(et()),n=Je(e);return"none"!==n.transform||"none"!==n.perspective||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function st(){return!/^((?!chrome|android).)*safari/i.test(et())}function lt(e){return["html","body","#document"].includes(Qe(e))}const ct=Math.min,ut=Math.max,dt=Math.round;function ft(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&tt(e)&&(l=e.offsetWidth>0&&dt(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&dt(s.height)/e.offsetHeight||1);const u=nt(e)?Ze(e):window,d=!st()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function pt(e){return(t=e,(t instanceof Ze(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function mt(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ht(e){return ft(pt(e)).left+mt(e).scrollLeft}function vt(e,t,n){const r=tt(t),o=pt(t),i=ft(e,r&&function(e){const t=ft(e);return dt(t.width)!==e.offsetWidth||dt(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Qe(t)||ot(o))&&(a=mt(t)),tt(t)){const e=ft(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ht(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function gt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||(rt(e)?e.host:null)||pt(e)}function bt(e){return tt(e)&&"fixed"!==Je(e).position?e.offsetParent:null}function yt(e){const t=Ze(e);let n=bt(e);for(;n&&it(n)&&"static"===Je(n).position;)n=bt(n);return n&&("html"===Qe(n)||"body"===Qe(n)&&"static"===Je(n).position&&!at(n))?t:n||function(e){let t=gt(e);for(rt(t)&&(t=t.host);tt(t)&&!lt(t);){if(at(t))return t;{const e=t.parentNode;t=rt(e)?e.host:e}}return null}(e)||t}function wt(e){if(tt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ft(e);return{width:t.width,height:t.height}}function xt(e){const t=gt(e);return lt(t)?e.ownerDocument.body:tt(t)&&ot(t)?t:xt(t)}function _t(e,t){var n;void 0===t&&(t=[]);const r=xt(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ze(r),a=o?[i].concat(i.visualViewport||[],ot(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(_t(a))}function Et(e,t,n){return"viewport"===t?Oe(function(e,t){const n=Ze(e),r=pt(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=st();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):nt(t)?function(e,t){const n=ft(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):Oe(function(e){var t;const n=pt(e),r=mt(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ut(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ut(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+ht(e);const l=-r.scrollTop;return"rtl"===Je(o||n).direction&&(s+=ut(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(pt(e)))}function Ct(e){const t=_t(e),n=function(e,t){let n=e;for(;n&&!lt(n)&&!t.includes(n)&&(!nt(n)||!["absolute","fixed"].includes(Je(n).position));){const e=gt(n);n=rt(e)?e.host:e}return n}(e,t);let r=null;if(n&&tt(n)){const e=yt(n);ot(n)?r=n:tt(e)&&(r=e)}return nt(r)?t.filter((e=>r&&nt(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&rt(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,r)&&"body"!==Qe(e))):[]}const kt={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ct(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Et(t,n,o);return e.top=ut(r.top,e.top),e.right=ct(r.right,e.right),e.bottom=ct(r.bottom,e.bottom),e.left=ut(r.left,e.left),e}),Et(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=tt(n),i=pt(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Qe(n)||ot(i))&&(a=mt(n)),tt(n))){const e=ft(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:nt,getDimensions:wt,getOffsetParent:yt,getDocumentElement:pt,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:vt(t,yt(n),r),floating:{...wt(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Je(e).direction};const St=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=Ie(l,r,s),d=r,f={},p=0;for(let n=0;n{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||l(t);const c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(i),p=function(e){const t=b.useRef(e);return Nt((()=>{t.current=e})),t}(o),m=b.useCallback((()=>{c.current&&u.current&&St(c.current,u.current,{middleware:s,placement:n,strategy:r}).then((e=>{h.current&&!Rt(f.current,e)&&(f.current=e,Tt.flushSync((()=>{a(e)})))}))}),[s,n,r]);Nt((()=>{h.current&&m()}),[m]);const h=b.useRef(!1);Nt((()=>(h.current=!0,()=>{h.current=!1})),[]);const v=b.useCallback((()=>{if("function"==typeof d.current&&(d.current(),d.current=null),c.current&&u.current)if(p.current){const e=p.current(c.current,u.current,m);d.current=e}else m()}),[m,p]),g=b.useCallback((e=>{c.current=e,v()}),[v]),y=b.useCallback((e=>{u.current=e,v()}),[v]),w=b.useMemo((()=>({reference:c,floating:u})),[]);return b.useMemo((()=>({...i,update:m,refs:w,reference:g,floating:y})),[i,m,w,g,y])}const It=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Be({element:t.current,padding:n}).fn(e):{}:t?Be({element:t,padding:n}).fn(e):{};var r}}}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var Pt=function(e,t){return Pt=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])},Pt(e,t)};function Ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Dt=function(){return Dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Bt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o-1||/[A-Z]/.test(e))}var wn={};var xn=["","X","Y","Z"],_n=["transformPerspective","x","y","z"];function En(e,t){return _n.indexOf(e)-_n.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return xn.forEach((function(t){return _n.push(e+t)}))}));var Cn=new Set(_n);function kn(e){return Cn.has(e)}var Sn=new Set(["originX","originY","originZ"]);function Tn(e){return Sn.has(e)}function Nn(e,t){var n=t.layout,r=t.layoutId;return kn(e)||Tn(e)||(n||void 0!==r)&&(!!wn[e]||"opacity"===e)}var Rn=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Mn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function In(e){return e.startsWith("--")}var Pn=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const On=(e,t)=>n=>Math.max(Math.min(n,t),e),Dn=e=>e%1?Number(e.toFixed(5)):e,An=/(-)?([\d]*\.?[\d])+/g,Ln=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,zn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Bn(e){return"string"==typeof e}const Fn=e=>({test:t=>Bn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Hn=Fn("deg"),Vn=Fn("%"),jn=Fn("px"),$n=Fn("vh"),Wn=Fn("vw"),Un=Object.assign(Object.assign({},Vn),{parse:e=>Vn.parse(e)/100,transform:e=>Vn.transform(100*e)}),Gn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},qn=Object.assign(Object.assign({},Gn),{transform:On(0,1)}),Yn=Object.assign(Object.assign({},Gn),{default:1});var Kn=Dt(Dt({},Gn),{transform:Math.round}),Xn={borderWidth:jn,borderTopWidth:jn,borderRightWidth:jn,borderBottomWidth:jn,borderLeftWidth:jn,borderRadius:jn,radius:jn,borderTopLeftRadius:jn,borderTopRightRadius:jn,borderBottomRightRadius:jn,borderBottomLeftRadius:jn,width:jn,maxWidth:jn,height:jn,maxHeight:jn,size:jn,top:jn,right:jn,bottom:jn,left:jn,padding:jn,paddingTop:jn,paddingRight:jn,paddingBottom:jn,paddingLeft:jn,margin:jn,marginTop:jn,marginRight:jn,marginBottom:jn,marginLeft:jn,rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scale:Yn,scaleX:Yn,scaleY:Yn,scaleZ:Yn,skew:Hn,skewX:Hn,skewY:Hn,distance:jn,translateX:jn,translateY:jn,translateZ:jn,x:jn,y:jn,z:jn,perspective:jn,transformPerspective:jn,opacity:qn,originX:Un,originY:Un,originZ:jn,zIndex:Kn,fillOpacity:qn,strokeOpacity:qn,numOctaves:Kn};function Zn(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(In(p))a[p]=m;else{var h=Xn[p],v=Pn(m,h);if(kn(p)){if(u=!0,s[p]=v,l.push(p),!f)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(f=!1)}else Tn(p)?(c[p]=v,d=!0):i[p]=v}}u?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";i.sort(En);for(var d=!1,f=i.length,p=0;pn=>t(e(n)),Qr=(...e)=>e.reduce(Jr);var eo=new Set;var to=new WeakMap,no=new WeakMap,ro=function(e){var t;null===(t=to.get(e.target))||void 0===t||t(e)},oo=function(e){e.forEach(ro)};function io(e,t,n){var r=function(e){var t=e.root,n=At(e,["root"]),r=t||document;no.has(r)||no.set(r,{});var o=no.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(oo,Dt({root:t},n))),o[i]}(t);return to.set(e,n),r.observe(e),function(){to.delete(e),r.unobserve(e)}}var ao={some:0,all:1};function so(e,t,n,r){var o=r.root,i=r.margin,a=r.amount,s=void 0===a?"some":a,l=r.once;(0,b.useEffect)((function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:i,threshold:"number"==typeof s?s:ao[s]};return io(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!l||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Tr.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[e,o,i,s])}function lo(e,t,n,r){var o=r.fallback,i=void 0===o||o;(0,b.useEffect)((function(){var r,o;e&&i&&("production"!==Wt&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||eo.has(r)||(console.warn(r),o&&console.warn(o),eo.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Tr.InView,!0)})))}),[e])}var co=function(e){return function(t){return e(t),null}},uo={inView:co((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,i=e.viewport,a=void 0===i?{}:i,s=(0,b.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);a.once&&s.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?lo:so)(l,s.current,t,a)})),tap:co((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,i=e.visualElement,a=t||n||r||o,s=(0,b.useRef)(!1),l=(0,b.useRef)(null),c={passive:!(n||t||r||m)};function u(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function d(){var e;return u(),s.current=!1,null===(e=i.animationState)||void 0===e||e.setActive(Tr.Tap,!1),!Yr()}function f(e,n){d()&&(Xr(i.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){d()&&(null==r||r(e,t))}function m(e,t){var r;u(),s.current||(s.current=!0,l.current=Qr(jr(window,"pointerup",f,c),jr(window,"pointercancel",p,c)),null===(r=i.animationState)||void 0===r||r.setActive(Tr.Tap,!0),null==n||n(e,t))}$r(i,"pointerdown",a?m:void 0,c),Zr(u)})),focus:co((function(e){var t=e.whileFocus,n=e.visualElement;Ir(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Tr.Focus,!0)}:void 0),Ir(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Tr.Focus,!1)}:void 0)})),hover:co((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;$r(o,"pointerenter",t||r?Kr(o,!0,t):void 0,{passive:!t}),$r(o,"pointerleave",n||r?Kr(o,!1,n):void 0,{passive:!n})}))},fo=0,po=function(){return fo++},mo=function(){return un(po)};function ho(){var e=(0,b.useContext)(Zt);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=mo();(0,b.useEffect)((function(){return r(o)}),[]);return!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function vo(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;rMath.min(Math.max(n,e),t),bo=.001;function yo({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=go(.05,1,a),e=go(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=wo(t,a),l=Math.exp(-o);return bo-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=wo(Math.pow(t,2),a);return(-o(t)+bo>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}function wo(e,t){return e*Math.sqrt(1-t*t)}const xo=["duration","bounce"],_o=["stiffness","damping","mass"];function Eo(e,t){return t.some((t=>void 0!==e[t]))}function Co(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=At(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Eo(e,_o)&&Eo(e,xo)){const n=yo(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(i),p=ko,m=ko;function h(){const e=u?-u/1e3:0,r=n-t,i=l/(2*Math.sqrt(s*c)),a=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=wo(a,i);p=o=>{const s=Math.exp(-i*a*o);return n-s*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(i*i-1);p=o=>{const s=Math.exp(-i*a*o),l=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const i=1e3*m(e),s=Math.abs(i)<=r,l=Math.abs(n-t)<=o;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}Co.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const ko=e=>0,So=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},To=(e,t,n)=>-n*e+n*t+e,No=(e,t)=>n=>Boolean(Bn(n)&&zn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ro=(e,t,n)=>r=>{if(!Bn(r))return r;const[o,i,a,s]=r.match(An);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Mo=On(0,255),Io=Object.assign(Object.assign({},Gn),{transform:e=>Math.round(Mo(e))}),Po={test:No("rgb","red"),parse:Ro("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Io.transform(e)+", "+Io.transform(t)+", "+Io.transform(n)+", "+Dn(qn.transform(r))+")"};const Oo={test:No("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),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:Po.transform},Do={test:No("hsl","hue"),parse:Ro("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vn.transform(Dn(t))+", "+Vn.transform(Dn(n))+", "+Dn(qn.transform(r))+")"};function Ao(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}function Lo({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Ao(s,r,e+1/3),i=Ao(s,r,e),a=Ao(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const zo=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Bo=[Oo,Po,Do],Fo=e=>Bo.find((t=>t.test(e))),Ho=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Vo=(e,t)=>{let n=Fo(e),r=Fo(t);Ho(e),Ho(t);let o=n.parse(e),i=r.parse(t);n===Do&&(o=Lo(o),n=Po),r===Do&&(i=Lo(i),r=Po);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=zo(o[t],i[t],e));return a.alpha=To(o.alpha,i.alpha,e),n.transform(a)}},jo={test:e=>Po.test(e)||Oo.test(e)||Do.test(e),parse:e=>Po.test(e)?Po.parse(e):Do.test(e)?Do.parse(e):Oo.parse(e),transform:e=>Bn(e)?e:e.hasOwnProperty("red")?Po.transform(e):Do.transform(e)},$o="${c}",Wo="${n}";function Uo(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Ln);r&&(n=r.length,e=e.replace(Ln,$o),t.push(...r.map(jo.parse)));const o=e.match(An);return o&&(e=e.replace(An,Wo),t.push(...o.map(Gn.parse))),{values:t,numColors:n,tokenised:e}}function Go(e){return Uo(e).values}function qo(e){const{values:t,numColors:n,tokenised:r}=Uo(e),o=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e;const Ko={test:function(e){var t,n,r,o;return isNaN(e)&&Bn(e)&&(null!==(n=null===(t=e.match(An))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Ln))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Go,createTransformer:qo,getAnimatableNone:function(e){const t=Go(e);return qo(e)(t.map(Yo))}},Xo=e=>"number"==typeof e;function Zo(e,t){return Xo(e)?n=>To(e,t,n):jo.test(e)?Vo(e,t):ti(e,t)}const Jo=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Zo(e,t[n])));return e=>{for(let t=0;t{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Zo(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function ei(e){const t=Ko.parse(e),n=t.length;let r=0,o=0,i=0;for(let e=0;e{const n=Ko.createTransformer(t),r=ei(e),o=ei(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Qr(Jo(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},ni=(e,t)=>n=>To(e,t,n);function ri(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?ni:"string"==typeof e?jo.test(e)?Vo:ti:Array.isArray(e)?Jo:"object"==typeof e?Qo:void 0}(e[0]),i=e.length-1;for(let n=0;ne[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=ri(t,r,o),s=2===i?function([e,t],[n]){return r=>n(So(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;to||t===r);t++);i=t-1}const s=So(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(go(e[0],e[i-1],t)):s}const ii=e=>t=>1-e(1-t),ai=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,si=e=>t=>t*t*((e+1)*t-e),li=e=>e,ci=(ui=2,e=>Math.pow(e,ui));var ui;const di=ii(ci),fi=ai(ci),pi=e=>1-Math.sin(Math.acos(e)),mi=ii(pi),hi=ai(mi),vi=si(1.525),gi=ii(vi),bi=ai(vi),yi=(e=>{const t=si(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),wi=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},xi=ii(wi);function _i(e,t){return e.map((()=>t||fi)).splice(0,e.length-1)}function Ei({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function l(){return oi(s,a,{ease:Array.isArray(n)?n:_i(a,n)})}let c=l();return{next:e=>(i.value=c(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),c=l()}}}const Ci={keyframes:Ei,spring:Co,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===i?l:i(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};const ki=1/60*1e3,Si="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Ti="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Si())),ki);let Ni=!0,Ri=!1,Mi=!1;const Ii={delta:0,timestamp:0},Pi=["read","update","preRender","render","postRender"],Oi=Pi.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;nRi=!0)),e)),{}),Di=Pi.reduce(((e,t)=>{const n=Oi[t];return e[t]=(e,t=!1,r=!1)=>(Ri||Fi(),n.schedule(e,t,r)),e}),{}),Ai=Pi.reduce(((e,t)=>(e[t]=Oi[t].cancel,e)),{}),Li=Pi.reduce(((e,t)=>(e[t]=()=>Oi[t].process(Ii),e)),{}),zi=e=>Oi[e].process(Ii),Bi=e=>{Ri=!1,Ii.delta=Ni?ki:Math.max(Math.min(e-Ii.timestamp,40),1),Ii.timestamp=e,Mi=!0,Pi.forEach(zi),Mi=!1,Ri&&(Ni=!1,Ti(Bi))},Fi=()=>{Ri=!0,Ni=!0,Mi||Ti(Bi)},Hi=()=>Ii;var Vi=Di;function ji(e,t,n=0){return e-t-n}const $i=e=>{const t=({delta:t})=>e(t);return{start:()=>Vi.update(t,!0),stop:()=>Ai.update(t)}};function Wi(e){var t,n,{from:r,autoplay:o=!0,driver:i=$i,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=At(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,b,{to:y}=h,w=0,x=h.duration,_=!1,E=!0;const C=function(e){if(Array.isArray(e.to))return Ei;if(Ci[e.type])return Ci[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Ei:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Co:Ei}(h);(null===(n=(t=C).needsInterpolation)||void 0===n?void 0:n.call(t,r,y))&&(b=oi([0,100],[r,y],{clamp:!1}),r=0,y=100);const k=C(Object.assign(Object.assign({},h),{from:r,to:y}));function S(){w++,"reverse"===l?(E=w%2==0,a=function(e,t,n=0,r=!0){return r?ji(t+-e,t,n):t-(e-t)+n}(a,x,c,E)):(a=ji(a,x,c),"mirror"===l&&k.flipTarget()),_=!1,p&&p()}function T(e){if(E||(e=-e),a+=e,!_){const e=k.next(Math.max(0,a));g=e.value,b&&(g=b(g)),_=E?e.done:a<=0}null==m||m(g),_&&(0===w&&(null!=x||(x=a)),w=t+n:e<=-n}(a,x,c,E)&&S():(v.stop(),f&&f()))}return o&&(null==u||u(),v=i(T),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function Ui(e,t){return t?e*(1e3/t):0}var Gi=function(e){return 1e3*e};const qi=(e,t)=>1-3*t+3*e,Yi=(e,t)=>3*t-6*e,Ki=e=>3*e,Xi=(e,t,n)=>((qi(t,n)*e+Yi(t,n))*e+Ki(t))*e,Zi=(e,t,n)=>3*qi(t,n)*e*e+2*Yi(t,n)*e+Ki(t);const Ji=.1;function Qi(e,t,n,r){if(e===t&&n===r)return li;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Xi(t*Ji,e,n);function i(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=Ji;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*Ji,s=Zi(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=Zi(t,n,r);if(0===o)return t;t-=(Xi(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Xi(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+Ji,e,n)}return e=>0===e||1===e?e:Xi(i(e),t,r)}var ea={linear:li,easeIn:ci,easeInOut:fi,easeOut:di,circIn:pi,circInOut:hi,circOut:mi,backIn:vi,backInOut:bi,backOut:gi,anticipate:yi,bounceIn:xi,bounceInOut:e=>e<.5?.5*(1-wi(1-2*e)):.5*wi(2*e-1)+.5,bounceOut:wi},ta=function(e){if(Array.isArray(e)){e.length;var t=zt(e,4);return Qi(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),ea[e]):e},na=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Ko.test(t)||t.startsWith("url(")))},ra=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},oa=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},ia=function(){return{type:"keyframes",ease:"linear",duration:.3}},aa=function(e){return{type:"keyframes",duration:.8,values:e}},sa={x:ra,y:ra,z:ra,rotate:ra,rotateX:ra,rotateY:ra,rotateZ:ra,scaleX:oa,scaleY:oa,scale:oa,opacity:ia,backgroundColor:ia,color:ia,default:oa};const la=new Set(["brightness","contrast","saturate","opacity"]);function ca(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(An)||[];if(!r)return e;const o=n.replace(r,"");let i=la.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ua=/([a-z-]*)\(.*?\)/g,da=Object.assign(Object.assign({},Ko),{getAnimatableNone:e=>{const t=e.match(ua);return t?t.map(ca).join(" "):e}});var fa=Dt(Dt({},Xn),{color:jo,backgroundColor:jo,outlineColor:jo,fill:jo,stroke:jo,borderColor:jo,borderTopColor:jo,borderRightColor:jo,borderBottomColor:jo,borderLeftColor:jo,filter:da,WebkitFilter:da}),pa=function(e){return fa[e]};function ma(e,t){var n,r=pa(e);return r!==da&&(r=Ko),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var ha=!1;function va(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=At(e,["ease","times","yoyo","flip","loop"]),s=Dt({},a);return n&&(s.offset=n),a.duration&&(s.duration=Gi(a.duration)),a.repeatDelay&&(s.repeatDelay=Gi(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ta):ta(t)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(!0,r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}function ga(e,t,n){var r,o,i,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Bt([],zt(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=At(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Dt(Dt({},e),(o=n,i=t.to,a=xr(i)?aa:sa[o]||sa.default,Dt({to:i},a(i))))),Dt(Dt({},t),va(e))}function ba(e,t,n,r,o){var i,a=xa(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=na(e,n);"none"===s&&l&&"string"==typeof n?s=ma(e,n):ya(s)&&"string"==typeof n?s=wa(n):!Array.isArray(n)&&ya(n)&&"string"==typeof s&&(n=wa(s));var c=na(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),c&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function b(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(h(e))b({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const a=v(r),s=a===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=Ui(e-u,Hi().delta),(1===s&&e>a||-1===s&&enull==m?void 0:m.stop()}}(Dt(Dt({},r),a)):Wi(Dt(Dt({},ga(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,i=_r(n);return t.set(i),o(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,i),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}function ya(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function wa(e){return"number"==typeof e?0:ma("",e)}function xa(e,t){return e[t]||e.default||e}function _a(e,t,n,r){return void 0===r&&(r={}),ha&&(r={type:!1}),t.start((function(o){var i,a,s=ba(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(xa(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return a=s()};return l?i=window.setTimeout(c,Gi(l)):c(),function(){clearTimeout(i),null==a||a.stop()}}))}var Ea=function(e){return/^\-?\d*\.?\d+$/.test(e)},Ca=function(e){return/^0[^.\s]+$/.test(e)};function ka(e,t){-1===e.indexOf(t)&&e.push(t)}function Sa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ta=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ka(this.subscriptions,e),function(){return Sa(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;om&&g,_=Array.isArray(v)?v:[v],E=_.reduce(a,{});!1===b&&(E={});var C=h.prevResolvedValues,k=void 0===C?{}:C,S=Dt(Dt({},k),E),T=function(e){x=!0,f.delete(e),h.needsAnimating[e]=!0};for(var N in S){var R=E[N],M=k[N];p.hasOwnProperty(N)||(R!==M?xr(R)&&xr(M)?!vo(R,M)||w?T(N):h.protectedKeys[N]=!0:void 0!==R?T(N):f.add(N):void 0!==R&&f.has(N)?T(N):h.protectedKeys[N]=!0)}h.prevProp=v,h.prevResolvedValues=E,h.isActive&&(p=Dt(Dt({},p),E)),i&&e.blockInitialAnimation&&(x=!1),x&&!y&&d.push.apply(d,Bt([],zt(_.map((function(e){return{animation:e,options:Dt({type:o},t)}}))),!1))},v=0;ve.hasOwnProperty("x")&&e.hasOwnProperty("y"),Xa=e=>Ka(e)&&e.hasOwnProperty("z"),Za=(e,t)=>Math.abs(e-t);function Ja(e,t){if(Xo(e)&&Xo(t))return Za(e,t);if(Ka(e)&&Ka(t)){const n=Za(e.x,t.x),r=Za(e.y,t.y),o=Xa(e)&&Xa(t)?Za(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Qa=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=ns(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Ja(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=Hi().timestamp;r.history.push(Dt(Dt({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=es(t,r.transformPagePoint),Pr(e)&&0===e.buttons?r.handlePointerUp(e,t):Vi.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=ns(es(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(Or(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=es(zr(e),this.transformPagePoint),a=i.point,s=Hi().timestamp;this.history=[Dt(Dt({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,ns(i,this.history)),this.removeListeners=Qr(jr(window,"pointermove",this.handlePointerMove),jr(window,"pointerup",this.handlePointerUp),jr(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ai.update(this.updatePoint)},e}();function es(e,t){return t?{point:t(e.point)}:e}function ts(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ns(e,t){var n=e.point;return{point:n,delta:ts(n,os(t)),offset:ts(n,rs(t)),velocity:is(t,.1)}}function rs(e){return e[0]}function os(e){return e[e.length-1]}function is(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=os(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Gi(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function as(e){return e.max-e.min}function ss(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Ja(e,t)t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Tr.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Ls(e,r,this.currentDirection)){var o,i,a,s,l,c=this.getAxisMotionValue(e),u=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=u,i=this.constraints[e],a=this.elastic[e],s=i.min,l=i.max,void 0!==s&&ol&&(o=a?To(l,o,a.max):Math.min(o,l)),u=o),c.set(u)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&en(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:ps(e.x,r,i),y:ps(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=hs),!1===e?e=0:!0===e&&(e=hs),{x:vs(e,"left","right"),y:vs(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&bs((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!en(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=Os(e,n),o=t.scroll;return o&&(Ns(r.x,o.x),Ns(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:ms(e.x,t.x),y:ms(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=ys(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=bs((function(n){var l;if(Ls(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=i?200:1e6,f=i?40:1e7,p=Dt(Dt({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.startAxisValueAnimation(n,p)}}));return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return _a(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;bs((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;bs((function(n){if(Ls(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-To(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(en(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};bs((function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(n={min:c,max:c},r=t.constraints[e],o=.5,i=as(n),(s=as(r))>i?o=So(r.min,r.max-i,n.min):i>s&&(o=So(n.min,n.max-s,r.min)),go(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),bs((function(e){if(Ls(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(To(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Ds.set(this.visualElement,this);var n=jr(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){en(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=Mr(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(bs((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?hs:c,d=e.dragMomentum,f=void 0===d||d;return Dt(Dt({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function Ls(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var zs={pan:co((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,i=e.visualElement,a=t||n||r||o,s=(0,b.useRef)(null),l=(0,b.useContext)(Ft).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};(0,b.useEffect)((function(){null!==s.current&&s.current.updateHandlers(c)})),$r(i,"pointerdown",a&&function(e){s.current=new Qa(e,c,{transformPagePoint:l})}),Zr((function(){return s.current&&s.current.end()}))})),drag:co((function(e){var t=e.dragControls,n=e.visualElement,r=un((function(){return new As(n)}));(0,b.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,b.useEffect)((function(){return r.addListeners()}),[r])}))},Bs=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var Fs=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var b,y,w=!1,x=v.latestValues,_=v.renderState,E=function(){var e=Bs.map((function(){return new Ta})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Bs.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+Bs[t]]=function(t){return e.add(t)},n["notify"+Bs[t]]=function(){for(var t=[],n=0;n=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=el[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Ys(r,s[n]),e[n]=el[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=zt(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}};function nl(e,t,n,r){return function(e){return Object.keys(e).some(qs)}(t)?tl(e,t,n,r):{target:t,transitionEnd:r}}var rl=function(e,t,n,r){var o=function(e,t,n){var r,o=At(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=Dt({},n)),e.forEachValue((function(e){var t=e.get();if(js(t)){var n=Ws(t,i);n&&e.set(n)}})),o){var s=o[a];if(js(s)){var l=Ws(s,i);l&&(o[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return nl(e,t=o.target,n,r=o.transitionEnd)};var ol={treeType:"dom",readValueFromInstance:function(e,t){if(kn(t)){var n=pa(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(In(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Os(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=t.transition,a=t.transitionEnd,s=At(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=za(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var c=0;c5)return o;var l=Ko.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=To(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(i){var m=0;p=p.replace(ul,(function(){var e=a[m];return m++,e}))}return p}},fl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ot(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,i=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=pl,Object.assign(wn,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==i?void 0:i.register)&&a&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Dt(Dt({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),dn.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Vi.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(b.Component);var pl={borderRadius:Dt(Dt({},cl),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomLeftRadius:cl,borderBottomRightRadius:cl,boxShadow:dl},ml={measureLayout:function(e){var t=zt(ho(),2),n=t[0],r=t[1],o=(0,b.useContext)(pn);return b.createElement(fl,Dt({},e,{layoutGroup:o,switchLayoutGroup:(0,b.useContext)(mn),isPresent:n,safeToRemove:r}))}};var hl=["TopLeft","TopRight","BottomLeft","BottomRight"],vl=hl.length,gl=function(e){return"string"==typeof e?parseFloat(e):e},bl=function(e){return"number"==typeof e||jn.test(e)};function yl(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var wl=_l(0,.5,mi),xl=_l(.5,.95,li);function _l(e,t,n){return function(r){return rt?1:n(So(e,t,r))}}function El(e,t){e.min=t.min,e.max=t.max}function Cl(e,t){El(e.x,t.x),El(e.y,t.y)}function kl(e,t,n,r,o){return e=Cs(e-=t,1/n,r),void 0!==o&&(e=Cs(e,1/o,r)),e}function Sl(e,t,n,r,o){var i=zt(n,3),a=i[0],s=i[1],l=i[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),Vn.test(t)&&(t=parseFloat(t),t=To(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=To(i.min,i.max,r);e===i&&(s-=t),e.min=kl(e.min,t,n,s,o),e.max=kl(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var Tl=["x","scaleX","originX"],Nl=["y","scaleY","originY"];function Rl(e,t,n,r){Sl(e.x,t,Tl,null==n?void 0:n.x,null==r?void 0:r.x),Sl(e.y,t,Nl,null==n?void 0:n.y,null==r?void 0:r.y)}function Ml(e){return 0===e.translate&&1===e.scale}function Il(e){return Ml(e.x)&&Ml(e.y)}function Pl(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}var Ol=function(){function e(){this.members=[]}return e.prototype.add=function(e){ka(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Sa(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Dl(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),l&&(i+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(i+="scale(".concat(c,", ").concat(u,")"))?"none":i}var Al=function(e,t){return e.depth-t.depth},Ll=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){ka(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Sa(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Al),this.isDirty=!1,this.children.forEach(e)},e}();function zl(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,i=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Wl),o.nodes.forEach(Ul)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Bt(Bt([],zt(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var i=0;i=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Ql(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ec(e){Ql(e.x),Ql(e.y)}var tc=zl({attachResizeListener:function(e,t){return Mr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),nc={current:void 0},rc=zl({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!nc.current){var e=new tc(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),nc.current=e}return nc.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),oc=Dt(Dt(Dt(Dt({},Ya),uo),zs),ml),ic=gn((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=yn(e)?Nr:Rr;return Dt(Dt({},s),{preloadedFeatures:n,useRender:fr(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,oc,sl,rc)}));var ac=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),sc=window.wp.deprecated,lc=n.n(sc);var cc=function(e){let{icon:t,className:n,...r}=e;const o=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,s.createElement)("span",a({className:o},r))};var uc=function(e){let{icon:t=null,size:n=24,...r}=e;if("string"==typeof t)return(0,s.createElement)(cc,a({icon:t},r));if((0,s.isValidElement)(t)&&cc===t.type)return(0,s.cloneElement)(t,{...r});if("function"==typeof t)return t.prototype instanceof s.Component?(0,s.createElement)(t,{size:n,...r}):t({size:n,...r});if(t&&("svg"===t.type||t.type===i.SVG)){const e={...t.props,width:n,height:n,...r};return(0,s.createElement)(i.SVG,e)}return(0,s.isValidElement)(t)?(0,s.cloneElement)(t,{size:n,...r}):t},dc=(window.wp.warning,window.lodash);const fc=(0,s.createContext)({}),pc=()=>(0,s.useContext)(fc);function mc(e){let{value:t}=e;const n=pc(),r=(0,s.useRef)(t);!function(e,t){const n=(0,s.useRef)(!1);(0,s.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}((()=>{(0,dc.isEqual)(r.current,t)&&r.current!==t&&"undefined"!=typeof process&&process.env}),[t]);return(0,s.useMemo)((()=>(0,dc.merge)(JSON.parse(JSON.stringify(n)),t)),[n,t])}const hc=(0,s.memo)((e=>{let{children:t,value:n}=e;const r=mc({value:n});return(0,s.createElement)(fc.Provider,{value:r},t)})),vc="__contextSystemKey__";var gc=n(9756),bc=n.n(gc);const yc=bc()((function(e){return`components-${(0,dc.kebabCase)(e)}`}));var wc=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;t0?Tc(zc,--Ac):0,Oc--,10===Lc&&(Oc=1,Pc--),Lc}function Vc(){return Lc=Ac2||Uc(Lc)>3?"":" "}function Xc(e,t){for(;--t&&Vc()&&!(Lc<48||Lc>102||Lc>57&&Lc<65||Lc>70&&Lc<97););return Wc(e,$c()+(t<6&&32==jc()&&32==Vc()))}function Zc(e){for(;Vc();)switch(Lc){case e:return Ac;case 34:case 39:34!==e&&39!==e&&Zc(Lc);break;case 40:41===e&&Zc(e);break;case 92:Vc()}return Ac}function Jc(e,t){for(;Vc()&&e+Lc!==57&&(e+Lc!==84||47!==jc()););return"/*"+Wc(t,Ac-1)+"*"+_c(47===e?e:Vc())}function Qc(e){for(;!Uc(jc());)Vc();return Wc(e,Ac)}var eu="-ms-",tu="-moz-",nu="-webkit-",ru="comm",ou="rule",iu="decl",au="@keyframes";function su(e,t){for(var n="",r=Mc(e),o=0;o0&&Rc(E)-d&&Ic(p>32?pu(E+";",r,n,d-1):pu(kc(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Ic(_=du(E,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)uu(E,t,_,_,w,i,d,s,x);else switch(99===f&&110===Tc(E,3)?100:f){case 100:case 109:case 115:uu(e,_,_,r&&Ic(du(e,_,_,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:uu(E,_,_,_,[""],x,0,s,x)}}c=u=p=0,h=g=1,y=E="",d=a;break;case 58:d=1+Rc(E),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Hc())continue;switch(E+=_c(b),b*h){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Rc(E)-1)*g,g=1;break;case 64:45===jc()&&(E+=Yc(Vc())),f=jc(),u=d=Rc(y=E+=Qc($c())),b++;break;case 45:45===m&&2==Rc(E)&&(h=0)}}return i}function du(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Mc(f),m=0,h=0,v=0;m0?f[g]+" "+b:kc(b,/&\f/g,f[g])))&&(l[v++]=y);return Bc(e,t,n,0===o?ou:s,l,c,u)}function fu(e,t,n){return Bc(e,t,n,ru,_c(Lc),Nc(e,2,-2),0)}function pu(e,t,n,r){return Bc(e,t,n,iu,Nc(e,0,r),Nc(e,r+1,-1),r)}var mu=function(e,t,n){for(var r=0,o=0;r=o,o=jc(),38===r&&12===o&&(t[n]=1),!Uc(o);)Vc();return Wc(e,Ac)},hu=function(e,t){return qc(function(e,t){var n=-1,r=44;do{switch(Uc(r)){case 0:38===r&&12===jc()&&(t[n]=1),e[n]+=mu(Ac-1,t,n);break;case 2:e[n]+=Yc(r);break;case 4:if(44===r){e[++n]=58===jc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_c(r)}}while(r=Vc());return e}(Gc(e),t))},vu=new WeakMap,gu=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)||vu.get(n))&&!r){vu.set(e,!0);for(var o=[],i=hu(t,o),a=n.props,s=0,l=0;s6)switch(Tc(e,t+1)){case 109:if(45!==Tc(e,t+4))break;case 102:return kc(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Tc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Sc(e,"stretch")?yu(kc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Tc(e,t+1))break;case 6444:switch(Tc(e,Rc(e)-3-(~Sc(e,"!important")&&10))){case 107:return kc(e,":",":-webkit-")+e;case 101:return kc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Tc(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(Tc(e,t+11)){case 114:return nu+e+eu+kc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nu+e+eu+kc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nu+e+eu+kc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nu+e+eu+e+e}return e}var wu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case iu:e.return=yu(e.value,e.length);break;case au:return su([Fc(e,{value:kc(e.value,"@","@-webkit-")})],r);case ou: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 su([Fc(e,{props:[kc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return su([Fc(e,{props:[kc(t,/:(plac\w+)/,":-webkit-input-$1")]}),Fc(e,{props:[kc(t,/:(plac\w+)/,":-moz-$1")]}),Fc(e,{props:[kc(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],xu=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||wu;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=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)},Eu={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};var Cu=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},ku=/[A-Z]|^ms/g,Su=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tu=function(e){return 45===e.charCodeAt(1)},Nu=function(e){return null!=e&&"boolean"!=typeof e},Ru=Cu((function(e){return Tu(e)?e:e.replace(ku,"-$&").toLowerCase()})),Mu=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Su,(function(e,t,n){return Pu={name:t,styles:n,next:Pu},t}))}return 1===Eu[e]||Tu(e)||"number"!=typeof t||0===t?t:t+"px"};function Iu(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 Pu={name:n.name,styles:n.styles,next:Pu},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Pu={name:r.name,styles:r.styles,next:Pu},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;onull!=e&&["name","styles"].every((t=>void 0!==e[t])),Zu=()=>{const e=(0,b.useContext)(zu),t=(0,s.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,n=new Array(t),r=0;rXu(t)?($u(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Ju(e,t){const n=pc();void 0===t&&"undefined"!=typeof process&&process.env;const r=(null==n?void 0:n[t])||{},o={"data-wp-c16t":!0,...(i=t,{"data-wp-component":i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Zu()(yc(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function Qu(e,t){return ed(e,t,{forwardsRef:!0})}function ed(e,t,n){const r=null!=n&&n.forwardsRef?(0,s.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r.__contextSystemKey__||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[vc]:[...new Set(o)],displayName:t,selector:`.${yc(t)}`})}function td(e){if(!e)return[];let t=[];return e.__contextSystemKey__&&(t=e.__contextSystemKey__),e.type&&e.type.__contextSystemKey__&&(t=e.type.__contextSystemKey__),t}function nd(e,t){return!!e&&("string"==typeof t?td(e).includes(t):!!Array.isArray(t)&&t.some((t=>td(e).includes(t))))}const rd={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"};var od=/^((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)-.*))$/,id=Cu((function(e){return od.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ad=function(e){return"theme"!==e},sd=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?id:ad},ld=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},cd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ju(t,n,r);Lu((function(){return $u(t,n,r)}));return null},ud=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 l=ld(t,n,i),c=l||sd(s),u=!c("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{0,f.push(d[0][0]);for(var p=d.length,m=1;m{e.stopPropagation(),e.preventDefault()}}const O=!M&&(b&&x||w||!!x&&!(null!=_&&_.length)&&!1!==b),D=S?N:null,A=T["aria-describedby"]||D,L=(0,s.createElement)(I,a({},P,T,{className:R,"aria-label":T["aria-label"]||x,"aria-describedby":A,ref:n}),h&&"left"===v&&(0,s.createElement)(uc,{icon:h,size:g}),E&&(0,s.createElement)(s.Fragment,null,E),h&&"right"===v&&(0,s.createElement)(uc,{icon:h,size:g}),_);return O?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(gf,{text:null!=_&&_.length&&S?S:x,shortcut:w,position:y},L),S&&(0,s.createElement)(pd,null,(0,s.createElement)("span",{id:D},S))):(0,s.createElement)(s.Fragment,null,L,S&&(0,s.createElement)(pd,null,(0,s.createElement)("span",{id:D},S)))}));let vd=0;function gd(e){const t=document.scrollingElement||document.body;e&&(vd=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=vd)}let bd=0;var yd=function(){return(0,s.useEffect)((()=>(0===bd&&gd(!0),++bd,()=>{1===bd&&gd(!1),--bd})),[]),null};var wd=(0,s.createContext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function xd(e){const t=(0,s.useContext)(wd),n=t.slots[e]||{},r=t.fills[e],o=(0,s.useMemo)((()=>r||[]),[r]);return{...n,updateSlot:(0,s.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,s.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,s.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,s.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}var _d=(0,s.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var Ed=e=>{const{getSlot:t,subscribe:n}=(0,s.useContext)(_d),[r,o]=(0,s.useState)(t(e));return(0,s.useEffect)((()=>{o(t(e));return n((()=>{o(t(e))}))}),[e]),r};function Cd(e){let{name:t,children:n,registerFill:r,unregisterFill:o}=e;const i=Ed(t),a=(0,s.useRef)({name:t,children:n});return(0,s.useLayoutEffect)((()=>(r(t,a.current),()=>o(t,a.current))),[]),(0,s.useLayoutEffect)((()=>{a.current.children=n,i&&i.forceUpdate()}),[n]),(0,s.useLayoutEffect)((()=>{t!==a.current.name&&(o(a.current.name,a.current),a.current.name=t,r(t,a.current))}),[t]),i&&i.node?("function"==typeof n&&(n=n(i.props.fillProps)),(0,s.createPortal)(n,i.node)):null}var kd=e=>(0,s.createElement)(_d.Consumer,null,(t=>{let{registerFill:n,unregisterFill:r}=t;return(0,s.createElement)(Cd,a({},e,{registerFill:n,unregisterFill:r}))}));function Sd(e){return"function"==typeof e}class Td extends s.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;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),r(t,this))}bindNode(e){this.node=e}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=Sd(e.children)?e.children(r):e.children;return s.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,s.cloneElement)(e,{key:n})}))})).filter((e=>!(0,s.isEmptyElement)(e)));return(0,s.createElement)(s.Fragment,null,Sd(t)?t(i):i)}}var Nd,Rd=e=>(0,s.createElement)(_d.Consumer,null,(t=>{let{registerSlot:n,unregisterSlot:r,getFills:o}=t;return(0,s.createElement)(Td,a({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))})),Md=new Uint8Array(16);function Id(){if(!Nd&&!(Nd="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nd(Md)}var Pd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Od=function(e){return"string"==typeof e&&Pd.test(e)},Dd=[],Ad=0;Ad<256;++Ad)Dd.push((Ad+256).toString(16).substr(1));var Ld=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Dd[e[t+0]]+Dd[e[t+1]]+Dd[e[t+2]]+Dd[e[t+3]]+"-"+Dd[e[t+4]]+Dd[e[t+5]]+"-"+Dd[e[t+6]]+Dd[e[t+7]]+"-"+Dd[e[t+8]]+Dd[e[t+9]]+"-"+Dd[e[t+10]]+Dd[e[t+11]]+Dd[e[t+12]]+Dd[e[t+13]]+Dd[e[t+14]]+Dd[e[t+15]]).toLowerCase();if(!Od(n))throw TypeError("Stringified UUID is invalid");return n};var zd=function(e,t,n){var r=(e=e||{}).random||(e.rng||Id)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Ld(r)};const Bd=new Set,Fd=bc()((e=>{let t=zd().replace(/[0-9]/g,"");for(;Bd.has(t);)t=zd().replace(/[0-9]/g,"");return Bd.add(t),xu({container:e,key:t})}));var Hd=function(e){const{children:t,document:n}=e;if(!n)return null;const r=Fd(n.head);return(0,s.createElement)(Bu,{value:r},t)};function Vd(){const[,e]=(0,s.useState)({}),t=(0,s.useRef)(!0);return(0,s.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function jd(e){let{name:t,children:n}=e;const r=xd(t),o=(0,s.useRef)({rerender:Vd()});if((0,s.useEffect)((()=>(r.registerFill(o),()=>{r.unregisterFill(o)})),[r.registerFill,r.unregisterFill]),!r.ref||!r.ref.current)return null;"function"==typeof n&&(n=n(r.fillProps));const i=(0,s.createElement)(Hd,{document:r.ref.current.ownerDocument},n);return(0,s.createPortal)(i,r.ref.current)}var $d=(0,s.forwardRef)((function(e,t){let{name:n,fillProps:r={},as:o="div",...i}=e;const l=(0,s.useContext)(wd),c=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(l.registerSlot(n,c,r),()=>{l.unregisterSlot(n,c)})),[l.registerSlot,l.unregisterSlot,n]),(0,s.useLayoutEffect)((()=>{l.updateSlot(n,r)})),(0,s.createElement)(o,a({ref:(0,d.useMergeRefs)([t,c])},i))})),Wd=window.wp.isShallowEqual,Ud=n.n(Wd);function Gd(e){let{children:t}=e;const n=function(){const[e,t]=(0,s.useState)({}),[n,r]=(0,s.useState)({}),o=(0,s.useCallback)(((e,n,r)=>{t((t=>{const o=t[e]||{};return{...t,[e]:{...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}}}))}),[]),i=(0,s.useCallback)(((e,n)=>{t((t=>{const{[e]:r,...o}=t;return(null==r?void 0:r.ref)===n?o:t}))}),[]),a=(0,s.useCallback)(((t,r)=>{const o=e[t];if(o&&!Ud()(o.fillProps,r)){o.fillProps=r;const e=n[t];e&&e.map((e=>e.current.rerender()))}}),[e,n]),l=(0,s.useCallback)(((e,t)=>{r((n=>({...n,[e]:[...n[e]||[],t]})))}),[]),c=(0,s.useCallback)(((e,t)=>{r((n=>n[e]?{...n,[e]:n[e].filter((e=>e!==t))}:n))}),[]);return(0,s.useMemo)((()=>({slots:e,fills:n,registerSlot:o,updateSlot:a,unregisterSlot:i,registerFill:l,unregisterFill:c})),[e,n,o,a,i,l,c])}();return(0,s.createElement)(wd.Provider,{value:n},t)}class qd extends s.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.hasFills=this.hasFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,hasFills:this.hasFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n,r;this.fills[e]=null!==(n=null===(r=this.fills[e])||void 0===r?void 0:r.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}hasFills(e){return this.fills[e]&&!!this.fills[e].length}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,s.createElement)(_d.Provider,{value:this.contextValue},this.props.children)}}function Yd(e){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(kd,e),(0,s.createElement)(jd,e))}const Kd=(0,s.forwardRef)(((e,t)=>{let{bubblesVirtually:n,...r}=e;return n?(0,s.createElement)($d,a({},r,{ref:t})):(0,s.createElement)(Rd,r)}));function Xd(e){let{children:t,...n}=e;return(0,s.createElement)(qd,n,(0,s.createElement)(Gd,null,t))}function Zd(e){const t=t=>(0,s.createElement)(Yd,a({name:e},t));t.displayName=e+"Fill";const n=t=>(0,s.createElement)(Kd,a({name:e},t));return n.displayName=e+"Slot",n.__unstableName=e,{Fill:t,Slot:n}}const Jd={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}},Qd=e=>{var t;const n=null==e||null===(t=e.defaultView)||void 0===t?void 0:t.frameElement;if(!n)return;const r=n.getBoundingClientRect();return{x:r.left,y:r.top}};function ef(e){return e.split("-")[0]}function tf(e){return["top","bottom"].includes(ef(e))?"x":"y"}function nf(e){return"x"===e?"y":"x"}const rf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{options:e,fn(t){var n;const{x:r,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=e,d={x:r,y:o},f=tf(i),p=nf(f);let m=d[f],h=d[p];const v="function"==typeof l?l(t):l,g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v},b={x:0,y:0,...null===(n=s.frameOffset)||void 0===n?void 0:n.amount};if(c){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis+b[f],n=a.reference[f]+a.reference[e]-g.mainAxis+b[f];mn&&(m=n)}if(u){var y,w,x,_;const e="y"===f?"width":"height",t=["top","left"].includes(ef(i)),n=a.reference[p]-a.floating[e]+(t&&null!==(y=null===(w=s.offset)||void 0===w?void 0:w[p])&&void 0!==y?y:0)+(t?0:g.crossAxis)+b[p],r=a.reference[p]+a.reference[e]+(t?0:null!==(x=null===(_=s.offset)||void 0===_?void 0:_[p])&&void 0!==x?x:0)-(t?g.crossAxis:0)+b[p];hr&&(h=r)}return{[f]:m,[p]:h}}}},of="Popover",af=()=>(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,s.createElement)(i.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,s.createElement)(i.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),sf=(0,s.forwardRef)(((e,t)=>{let{style:n,placement:r,shouldAnimate:o=!1,...i}=e;const[l,c]=(0,s.useState)(!1),u=$t(),{style:d,...f}=(0,s.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Jd[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]}}})(r)),[r]),p=(0,s.useCallback)((()=>c(!0)),[]),m=o&&!u?{style:{...d,...n},...f,onAnimationComplete:p,animate:!l&&f.animate}:{animate:!1,style:n};return(0,s.createElement)(ic.div,a({},m,i,{ref:t}))})),lf=(0,s.createContext)(void 0),cf=(0,s.forwardRef)(((e,t)=>{var n,r,o,i;const{animate:l=!0,headerTitle:u,onClose:f,children:p,className:m,noArrow:h=!0,isAlternate:v,position:g,placement:b="bottom-start",offset:y=0,focusOnMount:w="firstElement",anchor:x,expandOnMobile:_,onFocusOutside:E,__unstableSlotName:C=of,flip:k=!0,resize:S=!0,shift:T=!1,__unstableForcePosition:N,anchorRef:R,anchorRect:M,getAnchorRect:I,...P}=e;let O=k,D=S;void 0!==N&&(lc()("`__unstableForcePosition` prop wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),O=!N,D=!N),void 0!==R&&lc()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==M&&lc()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==I&&lc()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const A=(0,s.useRef)(null),[L,z]=(0,s.useState)(null),[B,F]=(0,s.useState)(),H=(0,s.useCallback)((e=>{z(e)}),[]),V=(0,d.useViewportMatch)("medium","<"),j=_&&V,$=!j&&!h,W=g?(e=>{const[t,n,r]=e.split(" ");if(["top","bottom"].includes(t)){let e="";return r&&"left"===r||"right"===n?e="-start":(r&&"right"===r||"left"===n)&&(e="-end"),t+e}return n})(g):b,U=(0,s.useRef)(Qd(B)),G=[{name:"frameOffset",fn(e){let{x:t,y:n}=e;return U.current?{x:t+U.current.x,y:n+U.current.y,data:{amount:U.current}}:{x:t,y:n}}},Ge(y),O?Ue():void 0,D?Ke({apply(e){var t;const{firstElementChild:n}=null!==(t=ne.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,T?Ye({crossAxis:!0,limiter:rf(),padding:1}):void 0,It({element:A})].filter((e=>void 0!==e)),q=(0,s.useContext)(lf)||C,Y=xd(q);let K;(f||E)&&(K=(e,t)=>{"focus-outside"===e&&E?E(t):f&&f()});const[X,Z]=(0,d.__experimentalUseDialog)({focusOnMount:w,__unstableOnClose:K,onClose:K}),{x:J,y:Q,reference:ee,floating:te,refs:ne,strategy:re,update:oe,placement:ie,middlewareData:{arrow:ae}}=Mt({placement:W,middleware:G,whileElementsMounted:(e,t,n)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...nt(e)?_t(e):e.contextElement?_t(e.contextElement):[],..._t(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),nt(e)&&!s&&d.observe(e),nt(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?ft(e):null;return s&&function t(){const r=ft(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}(e,t,n,{animationFrame:!0})}),se=(0,s.useCallback)((e=>{A.current=e,oe()}),[oe]);(0,s.useLayoutEffect)((()=>{const e=(e=>{var t;let n,{anchor:r,anchorRef:o,anchorRect:i,getAnchorRect:a,fallbackReferenceElement:s,fallbackDocument:l}=e;if(r)n=r.ownerDocument;else if(null!=o&&o.top)n=null==o?void 0:o.top.ownerDocument;else if(null!=o&&o.startContainer)n=o.startContainer.ownerDocument;else if(null!=o&&o.current)n=o.current.ownerDocument;else if(o)n=o.ownerDocument;else if(i&&null!=i&&i.ownerDocument)n=i.ownerDocument;else if(a){var c;n=null===(c=a(s))||void 0===c?void 0:c.ownerDocument}return null!==(t=n)&&void 0!==t?t:l})({anchor:x,anchorRef:R,anchorRect:M,getAnchorRect:I,fallbackReferenceElement:L,fallbackDocument:document}),t=(e=>{var t;let{anchor:n,anchorRef:r,anchorRect:o,getAnchorRect:i,fallbackReferenceElement:a}=e,s=null;return n?s=n:null!=r&&r.top?s={getBoundingClientRect(){const e=r.top.getBoundingClientRect(),t=r.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,t.bottom-e.top)}}:null!=r&&r.current?s=r.current:r?s=r:o?s={getBoundingClientRect(){return o}}:i?s={getBoundingClientRect(){var e,t,n,r;const o=i(a);return new window.DOMRect(null!==(e=o.x)&&void 0!==e?e:o.left,null!==(t=o.y)&&void 0!==t?t:o.top,null!==(n=o.width)&&void 0!==n?n:o.right-o.left,null!==(r=o.height)&&void 0!==r?r:o.bottom-o.top)}}:a&&(s=a.parentElement),null!==(t=s)&&void 0!==t?t:null})({anchor:x,anchorRef:R,anchorRect:M,getAnchorRect:I,fallbackReferenceElement:L});ee(t),F(e)}),[x,R,null==R?void 0:R.top,null==R?void 0:R.bottom,null==R?void 0:R.startContainer,null==R?void 0:R.current,M,I,L,ee]),(0,s.useLayoutEffect)((()=>{var e,t,n;if(B===document||B===(null==ne||null===(e=ne.floating)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.ownerDocument)||null==B||null===(n=B.defaultView)||void 0===n||!n.frameElement)return void(U.current=void 0);const{defaultView:r}=B,o=()=>{U.current=Qd(B),oe()};return r.addEventListener("resize",o),o(),()=>{r.removeEventListener("resize",o)}}),[B,oe]);const le=(0,d.useMergeRefs)([te,X,t]);let ce=(0,s.createElement)(sf,a({shouldAnimate:l&&!j,placement:ie,className:c()("components-popover",m,{"is-expanded":j,"is-alternate":v})},P,{ref:le},Z,{tabIndex:-1,style:j?void 0:{position:re,left:Number.isNaN(J)?0:null!=J?J:void 0,top:Number.isNaN(Q)?0:null!=Q?Q:void 0}}),j&&(0,s.createElement)(yd,null),j&&(0,s.createElement)("div",{className:"components-popover__header"},(0,s.createElement)("span",{className:"components-popover__header-title"},u),(0,s.createElement)(hd,{className:"components-popover__close",icon:ac,onClick:f})),(0,s.createElement)("div",{className:"components-popover__content"},p),$&&(0,s.createElement)("div",{ref:se,className:["components-popover__arrow",`is-${ie.split("-")[0]}`].join(" "),style:{left:void 0!==(null==ae?void 0:ae.x)&&Number.isFinite(ae.x)?`${ae.x+(null!==(n=null===(r=U.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)}px`:"",top:void 0!==(null==ae?void 0:ae.y)&&Number.isFinite(ae.y)?`${ae.y+(null!==(o=null===(i=U.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0)}px`:""}},(0,s.createElement)(af,null)));return Y.ref&&(ce=(0,s.createElement)(Yd,{name:q},ce)),R||M||x?ce:(0,s.createElement)("span",{ref:H},ce)}));cf.Slot=(0,s.forwardRef)((function(e,t){let{name:n=of}=e;return(0,s.createElement)(Kd,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),cf.__unstableSlotNameProvider=lf.Provider;var uf=cf;var df=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,s.createElement)("span",{className:n,"aria-label":o},r)};const ff=700,pf=(0,s.createElement)("div",{className:"event-catcher"}),mf=e=>{let{eventHandlers:t,child:n,childrenWithPopover:r,mergedRefs:o}=e;return(0,s.cloneElement)((0,s.createElement)("span",{className:"disabled-element-wrapper"},(0,s.cloneElement)(pf,t),(0,s.cloneElement)(n,{children:r,ref:o})),{...t})},hf=e=>{let{child:t,eventHandlers:n,childrenWithPopover:r,mergedRefs:o}=e;return(0,s.cloneElement)(t,{...n,children:r,ref:o})},vf=(e,t,n)=>{if(1!==s.Children.count(e))return;const r=s.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var gf=function(e){var t;const{children:n,position:r="bottom middle",text:o,shortcut:i,delay:a=ff}=e,[l,c]=(0,s.useState)(!1),[u,f]=(0,s.useState)(!1),p=(0,d.useDebounce)(f,a),[m,h]=(0,s.useState)(null),v=null===(t=s.Children.toArray(n)[0])||void 0===t?void 0:t.ref,g=(0,d.useMergeRefs)([h,v]),b=e=>{"OPTION"!==e.target.tagName&&(vf(n,"onMouseDown",e),document.addEventListener("mouseup",x),c(!0))},y=e=>{"OPTION"!==e.target.tagName&&(vf(n,"onMouseUp",e),document.removeEventListener("mouseup",x),c(!1))},w=e=>"mouseUp"===e?y:"mouseDown"===e?b:void 0,x=w("mouseUp"),_=(e,t)=>r=>{if(vf(n,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&l)return;p.cancel();const o=["focus","mouseenter"].includes(r.type);o!==u&&(t?p(o):f(o))},E=()=>{p.cancel(),document.removeEventListener("mouseup",x)};if((0,s.useEffect)((()=>E),[]),1!==s.Children.count(n))return n;const C={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:w("mouseDown")},k=s.Children.only(n),{children:S,disabled:T}=k.props,N=T?mf:hf,R=(e=>{let{anchor:t,grandchildren:n,isOver:r,offset:o,position:i,shortcut:a,text:l}=e;return(0,s.concatChildren)(n,r&&(0,s.createElement)(uf,{focusOnMount:!1,position:i,className:"components-tooltip","aria-hidden":"true",animate:!1,offset:o,anchor:t,shift:!0},l,(0,s.createElement)(df,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:S,...{anchor:m,isOver:u,offset:4,position:r,shortcut:i,text:o}});return N({child:k,eventHandlers:C,childrenWithPopover:R,mergedRefs:g})};const bf=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],yf={"top left":(0,u.__)("Top Left"),"top center":(0,u.__)("Top Center"),"top right":(0,u.__)("Top Right"),"center left":(0,u.__)("Center Left"),"center center":(0,u.__)("Center Center"),"center right":(0,u.__)("Center Right"),"bottom left":(0,u.__)("Bottom Left"),"bottom center":(0,u.__)("Bottom Center"),"bottom right":(0,u.__)("Bottom Right")},wf=bf.flat();function xf(e){return("center"===e?"center center":e).replace("-"," ")}function _f(e,t){return`${e}-${xf(t).replace(" ","-")}`}n(1281);function Ef(){for(var e=arguments.length,t=new Array(e),n=0;n0:"number"==typeof e},Sf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Tf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Nf=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Rf=function(e){return{r:Tf(e.r,0,255),g:Tf(e.g,0,255),b:Tf(e.b,0,255),a:Tf(e.a)}},Mf=function(e){return{r:Sf(e.r),g:Sf(e.g),b:Sf(e.b),a:Sf(e.a,3)}},If=/^#([0-9a-f]{3,8})$/i,Pf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Of=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},Df=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},Af=function(e){return{h:Nf(e.h),s:Tf(e.s,0,100),l:Tf(e.l,0,100),a:Tf(e.a)}},Lf=function(e){return{h:Sf(e.h),s:Sf(e.s),l:Sf(e.l),a:Sf(e.a,3)}},zf=function(e){return Df((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},Bf=function(e){return{h:(t=Of(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},Ff=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hf=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vf=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jf=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$f={string:[[function(e){var t=If.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?Sf(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?Sf(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Vf.exec(e)||jf.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Rf({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=Ff.exec(e)||Hf.exec(e);if(!t)return null;var n,r,o=Af({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Cf[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return zf(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 kf(t)&&kf(n)&&kf(r)?Rf({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(!kf(t)||!kf(n)||!kf(r))return null;var a=Af({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return zf(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!kf(t)||!kf(n)||!kf(r))return null;var a=function(e){return{h:Nf(e.h),s:Tf(e.s,0,100),v:Tf(e.v,0,100),a:Tf(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Df(a)},"hsv"]]},Wf=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=(e=Mf(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?Pf(Sf(255*o)):"","#"+Pf(t)+Pf(n)+Pf(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Mf(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Mf(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 Lf(Bf(this.rgba))},e.prototype.toHslString=function(){return t=(e=Lf(Bf(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=Of(this.rgba),{h:Sf(e.h),s:Sf(e.s),v:Sf(e.v),a:Sf(e.a,3)};var e},e.prototype.invert=function(){return Xf({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),Xf(Gf(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Xf(Gf(this.rgba,-e))},e.prototype.grayscale=function(){return Xf(Gf(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Xf(Yf(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Xf(Yf(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?Xf({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Sf(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Bf(this.rgba);return"number"==typeof e?Xf({h:e,s:t.s,l:t.l,a:t.a}):Sf(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Xf(e).toHex()},e}(),Xf=function(e){return e instanceof Kf?e:new Kf(e)},Zf=[],Jf=function(e){e.forEach((function(e){Zf.indexOf(e)<0&&(e(Kf,$f),Zf.push(e))}))};function Qf(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));p0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Xf(e).alpha(t).toRgbString()}Jf([Qf]);const tp="#fff",np={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},rp={theme:"var( --wp-admin-theme-color, #007cba)",background:tp,backgroundDisabled:np[100],border:np[700],borderHover:np[700],borderFocus:"var( --wp-admin-theme-color-darker-10, #006ba1)",borderDisabled:np[400],textDisabled:np[600],textDark:tp,darkGrayPlaceholder:ep(np[900],.62),lightGrayPlaceholder:ep(tp,.65)},op=Object.freeze({gray:np,white:tp,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},ui:rp});function ip(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${e};\n\t\t}\n\t`}var ap={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const sp=()=>ap,lp=ud("div",{target:"e1od1u4s3"})(sp,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(e=>{let{size:t=92}=e;return Ef("grid-template-rows:repeat( 3, calc( ",t,"px / 3 ) );width:",t,"px;","")}),";"),cp=ud("div",{target:"e1od1u4s2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),up=e=>Ef("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",ip("transition")," ",(e=>{let{isActive:t}=e;return Ef("box-shadow:",t?`0 0 0 2px ${op.gray[900]}`:null,";color:",t?op.gray[900]:op.gray[400],";*:hover>&{color:",t?op.gray[900]:op.ui.theme,";}","")})(e),";",""),dp=ud("span",{target:"e1od1u4s1"})("height:6px;width:6px;",up,";"),fp=ud("span",{target:"e1od1u4s0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function pp(e){let{isActive:t=!1,value:n,...r}=e;const o=yf[n];return(0,s.createElement)(gf,{text:o},(0,s.createElement)(Se,a({as:fp,role:"gridcell"},r),(0,s.createElement)(pd,null,n),(0,s.createElement)(dp,{isActive:t,role:"presentation"})))}function mp(e){return(0,b.useState)(e)[0]}function hp(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=g(e);!(t=o()).done;)r();return n}function vp(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function gp(e){return e.slice().reverse()}function bp(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function yp(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function wp(e){void 0===e&&(e={});var t=mp(e).baseId,n=(0,b.useContext)(we),r=(0,b.useRef)(0),o=(0,b.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function xp(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function _p(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&xp(t.ref.current,e.ref.current)}))}function Ep(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function Cp(e){for(var t=hp(e),n=Ep(t),r=[],o=0;oi&&(n=!0),-1):(rEf({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(e=>{let{disablePointerEvents:t}=e;return Ef({pointerEvents:t?"none":null},"","")}),";"),Xp=ud("span",{target:"elqsdmc0"})("height:2px;width:2px;",up,";",(e=>{let{isActive:t}=e;return Ef("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")}),";"),Zp=fp,Jp=24;const Qp=()=>{};function em(e){let{className:t,id:n,label:r=(0,u.__)("Alignment Matrix Control"),defaultValue:o="center center",value:i,onChange:l=Qp,width:f=92,...p}=e;const[m]=(0,s.useState)(null!=i?i:o),h=function(e){const t=(0,d.useInstanceId)(em,"alignment-matrix-control");return e||t}(n),v=_f(h,m),g=Lp({baseId:h,currentId:v,rtl:(0,u.isRTL)()}),{setCurrentId:b}=g;(0,s.useEffect)((()=>{void 0!==i&&b(_f(h,i))}),[i,b,h]);const y=c()("component-alignment-matrix-control",t);return(0,s.createElement)(Up,a({},p,g,{"aria-label":r,as:lp,className:y,role:"grid",size:f}),bf.map(((e,t)=>(0,s.createElement)(Yp,a({},g,{as:cp,role:"row",key:t}),e.map((e=>{const t=_f(h,e),n=g.currentId===t;return(0,s.createElement)(pp,a({},g,{id:t,isActive:n,key:e,value:e,onFocus:()=>{l(e)},tabIndex:n?0:-1}))}))))))}function tm(e){return"appear"===e?"top":"left"}function nm(e){if("loading"===e.type)return c()("components-animate__loading");const{type:t,origin:n=tm(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return c()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?c()("components-animate__slide-in","is-from-"+n):void 0}function rm(e){let{type:t,options:n={},children:r}=e;return r({className:nm({type:t,...n})})}em.Icon=function(e){let{className:t,disablePointerEvents:n=!0,size:r=Jp,style:o={},value:i="center",...l}=e;const u=function(){const e=xf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center").replace("-"," "),t=wf.indexOf(e);return t>-1?t:void 0}(i),d=(r/Jp).toFixed(2),f=c()("component-alignment-matrix-control-icon",t),p={...o,transform:`scale(${d})`};return(0,s.createElement)(Kp,a({},l,{className:f,disablePointerEvents:n,role:"presentation",size:r,style:p}),wf.map(((e,t)=>{const n=u===t;return(0,s.createElement)(Zp,{key:e},(0,s.createElement)(Xp,{isActive:n}))})))};const om=(0,s.createContext)({flexItemDisplay:void 0});const im={name:"zjik7",styles:"display:flex"},am={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},sm={name:"82a6rk",styles:"flex:1"},lm={name:"13nosa1",styles:">*{min-height:0;}"},cm={name:"1pwxzk4",styles:">*{min-width:0;}"};function um(e){const{className:t,display:n,isBlock:r=!1,...o}=Ju(e,"FlexItem"),i={},a=(0,s.useContext)(om).flexItemDisplay;i.Base=Ef({display:n||a},"","");return{...o,className:Zu()(am,i.Base,r&&sm,t)}}var dm=Qu((function(e,t){const n=function(e){return um({isBlock:!0,...Ju(e,"FlexBlock")})}(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"FlexBlock");var fm=Qu((function(e,t){const n=um(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"FlexItem");const pm=["40em","52em","64em"],mm=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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>pm.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${pm.length} breakpoints, got index ${t}`);const[n,r]=(0,s.useState)(t);return(0,s.useEffect)((()=>{const e=()=>{const e=pm.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 hm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=mm(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function vm(e){var t,n;if(void 0===e)return;if(!e)return"0";const r="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(n=t.supports)&&void 0!==n&&n.call(t,"margin",e.toString())||Number.isNaN(r)?e.toString():`calc(4px * ${e})`}function gm(e){const{align:t="center",className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:l=!1,...c}=Ju(function(e){const{isReversed:t,...n}=e;return void 0!==t?(lc()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=hm(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f="string"==typeof u&&u.includes("reverse"),p=Zu();return{...c,className:(0,s.useMemo)((()=>{const e=Ef({alignItems:d?"normal":t,flexDirection:u,flexWrap:l?"wrap":void 0,gap:vm(i),justifyContent:a,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return p(im,e,d?lm:cm,n)}),[t,n,p,u,o,i,d,f,a,l]),isColumn:d}}var bm=Qu((function(e,t){const{children:n,isColumn:r,...o}=gm(e);return(0,s.createElement)(om.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,s.createElement)(fd,a({},o,{ref:t}),n))}),"Flex");const ym={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function wm(e){return null!=e}function xm(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(wm))&&void 0!==e?e:n}const _m=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Em="…",Cm={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},km={ellipsis:Em,ellipsizeMode:Cm.auto,limit:0,numberOfLines:0};function Sm(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=wm(r)?r:Em;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}function Tm(e){const{className:t,children:n,ellipsis:r=Em,ellipsizeMode:o=Cm.auto,limit:i=0,numberOfLines:a=0,...l}=Ju(e,"Truncate"),c=Zu(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={...km,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Cm.none)return e;let a,s;switch(o){case Cm.head:a=0,s=i;break;case Cm.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}return o!==Cm.auto?Sm(e,a,s,r):e}("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}),d=o===Cm.auto;return{...l,className:(0,s.useMemo)((()=>c(d&&!a&&ym,d&&!!a&&Ef("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,a,d]),children:u}}let Nm;Jf([Qf]);const Rm=bc()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&Xf(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const r=function(){if("undefined"!=typeof document){if(!Nm){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Nm=e}return Nm}}();if(!r)return"";r.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(r).background;return r.style.background="",o||""}));function Mm(e){const t=function(e){const t=Rm(e);return Xf(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Im="36px",Pm="12px",Om={controlSurfaceColor:op.white,controlTextActiveColor:op.ui.theme,controlPaddingX:Pm,controlPaddingXLarge:"calc(12px * 1.3334)",controlPaddingXSmall:"calc(12px / 1.3334)",controlBackgroundColor:op.white,controlBorderRadius:"2px",controlBorderColor:op.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:op.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${op.ui.theme}`,controlDestructiveBorderColor:op.alert.red,controlHeight:Im,controlHeightXSmall:"calc( 36px * 0.6 )",controlHeightSmall:"calc( 36px * 0.8 )",controlHeightLarge:"calc( 36px * 1.2 )",controlHeightXLarge:"calc( 36px * 1.4 )"},Dm={toggleGroupControlBackgroundColor:Om.controlBackgroundColor,toggleGroupControlBorderColor:op.ui.border,toggleGroupControlBackdropBackgroundColor:Om.controlSurfaceColor,toggleGroupControlBackdropBorderColor:op.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:Om.controlBackgroundColor};var Am=Object.assign({},Om,Dm,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${vm(2)}`,cardPaddingSmall:`${vm(4)}`,cardPaddingMedium:`${vm(4)} ${vm(6)}`,cardPaddingLarge:`${vm(6)} ${vm(8)}`,surfaceBackgroundColor:op.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:op.white,surfaceColor:op.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 Lm=Ef("color:",op.gray[900],";line-height:",Am.fontLineHeightBase,";margin:0;",""),zm={name:"4zleql",styles:"display:block"},Bm=Ef("color:",op.alert.green,";",""),Fm=Ef("color:",op.alert.red,";",""),Hm=Ef("color:",op.gray[700],";",""),Vm=Ef("mark{background:",op.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),jm={name:"50zrmy",styles:"text-transform:uppercase"};var $m=n(3138);const Wm=bc()((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Um={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Gm=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function qm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:13;if(e in Um)return qm(Um[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}const t=`(${e} / 13)`;return`calc(${t} * ${Am.fontSize})`}function Ym(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(!Gm.includes(e))return qm(e);const t=`fontSizeH${e}`;return Am[t]}var Km={name:"50zrmy",styles:"text-transform:uppercase"};function Xm(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:a,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:v,lineHeight:g,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:_,weight:E=Am.fontWeight,...C}=Ju(t,"Text");let k=o;const S=Array.isArray(p),T="caption"===y;if(S){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");k=function(e){let{activeClassName:t="",activeIndex:n=-1,activeStyle:r,autoEscape:o,caseSensitive:i=!1,children:a,findChunks:l,highlightClassName:c="",highlightStyle:u={},highlightTag:d="mark",sanitize:f,searchWords:p=[],unhighlightClassName:m="",unhighlightStyle:h}=e;if(!a)return null;if("string"!=typeof a)return a;const v=a,g=(0,$m.findAll)({autoEscape:o,caseSensitive:i,findChunks:l,sanitize:f,searchWords:p,textToHighlight:v}),b=d;let y,w=-1,x="";const _=g.map(((e,o)=>{const a=v.substr(e.start,e.end-e.start);if(e.highlight){let e;w++,"object"==typeof c?i?e=c[a]:(c=Wm(c),e=c[a.toLowerCase()]):e=c;const l=w===+n;x=`${e} ${l?t:""}`,y=!0===l&&null!==r?Object.assign({},u,r):u;const d={children:a,className:x,key:o,style:y};return"string"!=typeof b&&(d.highlightIndex=w),(0,s.createElement)(b,d)}return(0,s.createElement)("span",{children:a,className:m,key:o,style:h})}));return _}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const N=Zu();let R;!0===w&&(R="auto"),!1===w&&(R="none");const M=Tm({...C,className:(0,s.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Am.controlHeight} + ${vm(2)})`;switch(e){case"large":n=`calc(${Am.controlHeightLarge} + ${vm(2)})`;break;case"small":n=`calc(${Am.controlHeightSmall} + ${vm(2)})`;break;case"xSmall":n=`calc(${Am.controlHeightXSmall} + ${vm(2)})`}return n}(n,g);if(t.Base=Ef({color:a,display:u,fontSize:qm(y),fontWeight:E,lineHeight:o,letterSpacing:v,textAlign:r},"",""),t.upperCase=Km,t.optimalTextColor=null,b){const e="dark"===Mm(b);t.optimalTextColor=Ef(e?{color:op.gray[900]}:{color:op.white},"","")}return N(Lm,t.Base,t.optimalTextColor,c&&Fm,!!S&&Vm,h&&zm,T&&Hm,_&&e[_],x&&t.upperCase,i)}),[n,r,i,a,N,u,h,T,c,S,v,g,b,y,x,_,E]),children:o,ellipsizeMode:l||R});return!w&&Array.isArray(o)&&(k=s.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return nd(e,["Link"])?(0,s.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:k}}var Zm=Qu((function(e,t){const n=Xm(e);return(0,s.createElement)(fd,a({as:"span"},n,{ref:t}))}),"Text");const Jm={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},Qm=new RegExp(/-left/g),eh=new RegExp(/-right/g),th=new RegExp(/Left/g),nh=new RegExp(/Right/g);function rh(e){return"left"===e?"right":"right"===e?"left":Qm.test(e)?e.replace(Qm,"-right"):eh.test(e)?e.replace(eh,"-left"):th.test(e)?e.replace(th,"Right"):nh.test(e)?e.replace(nh,"Left"):e}const oh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[rh(t),n]})))};function ih(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,u.isRTL)()?Ef(t,""):Ef(e,""):(0,u.isRTL)()?Ef(oh(e),""):Ef(e,"")}ih.watch=()=>(0,u.isRTL)();var ah={name:"1739oy8",styles:"z-index:1"};const sh=e=>{let{isFocused:t}=e;return t?ah:""},lh=ud(bm,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",sh,";");var ch={name:"1d3w5wq",styles:"width:100%"};const uh=ud("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(e=>{let{disabled:t}=e;return Ef({backgroundColor:t?op.ui.backgroundDisabled:op.ui.background},"","")})," ",(e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":Ef("edge"===n?{flex:`0 0 ${t}`}:{width:t},"",""):ch}),";"),dh=e=>{let{inputSize:t,__next36pxDefaultSize:n}=e;const r={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:vm(4),paddingRight:vm(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:vm(2),paddingRight:vm(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:vm(4),paddingRight:vm(4)}};return n||(r.default={height:30,lineHeight:1,minHeight:30,paddingLeft:vm(2),paddingRight:vm(2)}),r[t]||r.default},fh=ud("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",op.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,n,{isDragging:r,dragCursor:o}=e;return r&&(t=Ef("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),r&&o&&(n=Ef("&:active{cursor:",o,";}","")),Ef(t," ",n,";","")})," ",(e=>{let{disabled:t}=e;return t?Ef({color:op.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"},r=n[t]||n.default;return r?Ef("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""})," ",(e=>Ef(dh(e),"",""))," ",(e=>{let{paddingInlineStart:t,paddingInlineEnd:n}=e;return Ef({paddingInlineStart:t,paddingInlineEnd:n},"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),ph=ud(Zm,{target:"em5sgkm4"})("&&&{",Jm,";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;}"),mh=e=>(0,s.createElement)(ph,a({},e,{as:"label"})),hh=ud(fm,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),vh=ud("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(e=>{let t,{disabled:n,isFocused:r}=e,o=r?op.ui.borderFocus:op.ui.border;return r&&(t=`0 0 0 1px ${op.ui.borderFocus} inset`),n&&(o=op.ui.borderDisabled),Ef({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",ih({paddingLeft:2}),";}"),gh=ud("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),bh=ud("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const yh=(0,s.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return(0,s.createElement)(vh,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})}));var wh=yh;function xh(e){let{children:t,hideLabelFromVision:n,htmlFor:r,...o}=e;return t?n?(0,s.createElement)(pd,{as:"label",htmlFor:r},t):(0,s.createElement)(hh,null,(0,s.createElement)(mh,a({htmlFor:r},o),t)):null}function _h(e,t){let{__next36pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:l=!1,hideLabelFromVision:c=!1,labelPosition:u,id:f,isFocused:p=!1,label:m,prefix:h,size:v="default",suffix:g,...b}=e;const y=function(e){const t=(0,d.useInstanceId)(_h);return e||`input-base-control-${t}`}(f),w=c||!m,{paddingLeft:x,paddingRight:_}=dh({inputSize:v,__next36pxDefaultSize:n}),E=(0,s.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:x},InputControlSuffixWrapper:{paddingRight:_}})),[x,_]);return(0,s.createElement)(lh,a({},b,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(u),{className:i,gap:2,isFocused:p,labelPosition:u,ref:t}),(0,s.createElement)(xh,{className:"components-input-control__label",hideLabelFromVision:c,labelPosition:u,htmlFor:y},m),(0,s.createElement)(uh,{__unstableInputWidth:r,className:"components-input-control__container",disabled:l,hideLabel:w,labelPosition:u},(0,s.createElement)(hc,{value:E},h&&(0,s.createElement)(gh,{className:"components-input-control__prefix"},h),o,g&&(0,s.createElement)(bh,{className:"components-input-control__suffix"},g)),(0,s.createElement)(wh,{disabled:l,isFocused:p})))}var Eh=(0,s.forwardRef)(_h);const Ch={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[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 kh(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function Sh(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?+kh(e-n,n-t,r)+n:e}function Th(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nh(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 Rh(e){for(var t=1;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 Hh(e){const t=Bh(e);return Lh(e)?t.identifier:t.pointerId}function Vh(e){const t=Bh(e);return[t.clientX,t.clientY]}function jh(e,...t){return"function"==typeof e?e(...t):e}function $h(){}function Wh(...e){return 0===e.length?$h:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Uh(e,t){return Object.assign({},t,e||{})}class Gh{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?jh(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);Ch.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,p=t._active&&!t._blocked||t.active;p&&(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=jh(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[v,g],[b,y]]=t._bounds;t.overflow=[mg?1:0,hy?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 w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[Sh(t,i,a,r),Sh(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=Ch.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=Ch.sub(t.offset,f);const e=t.delta.map(Math.abs);Ch.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o])}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Rh(Rh(Rh({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class qh extends Gh{constructor(...e){super(...e),Th(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=Ch.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Ch.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[zh(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 Yh=e=>e,Kh={enabled(e=!0){return e},eventOptions(e,t,n){return Rh(Rh({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return Ch.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?Ch.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Yh},threshold(e){return Ch.toVector(e,0)}};const Xh=Rh(Rh({},Kh),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>Xh.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]]}}),Zh={ArrowRight:(e=1)=>[10*e,0],ArrowLeft:(e=1)=>[-10*e,0],ArrowUp:(e=1)=>[0,-10*e],ArrowDown:(e=1)=>[0,10*e]};const Jh="undefined"!=typeof window&&window.document&&window.document.createElement;function Qh(){return Jh&&"ontouchstart"in window||Jh&&window.navigator.maxTouchPoints>1}const ev={isBrowser:Jh,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Qh(),touchscreen:Qh(),pointer:Jh&&"onpointerdown"in window,pointerLock:Jh&&"exitPointerLock"in window.document},tv={mouse:0,touch:0,pen:8},nv=Rh(Rh({},Xh),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&ev.pointerLock,ev.touch&&n?"touch":this.pointerLock?"mouse":ev.pointer&&!o?"pointer":ev.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,ev.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=Ch.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(Ch.toVector(e)),distance:this.transform(Ch.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Rh(Rh({},tv),e):tv}});Rh(Rh({},Kh),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ev.touch&&ev.gesture)return"gesture";if(ev.touch&&r)return"touch";if(ev.touchscreen){if(ev.pointer)return"pointer";if(ev.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Uh(jh(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Uh(jh(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 Ch.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Rh(Rh({},Xh),{},{mouseOnly:(e=!0)=>e});const rv=Rh(Rh({},Xh),{},{mouseOnly:(e=!0)=>e}),ov=new Map,iv=new Map;function av(e){ov.set(e.key,e.engine),iv.set(e.key,e.resolver)}const sv={key:"drag",engine:class extends qh{constructor(...e){super(...e),Th(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=Xh.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=Hh(e),n._pointerActive=!0,this.computeValues(Vh(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==zh(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;if(t.type===e.type&&e.timeStamp===t.timeStamp)return;const r=Hh(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Vh(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Ch.sub(o,t._values),this.computeValues(o)),Ch.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=Hh(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t.direction,[o,i]=t.velocity,[a,s]=t.movement,[l,c]=n.swipe.velocity,[u,d]=n.swipe.distance,f=n.swipe.duration;t.elapsedTimel&&Math.abs(a)>u&&(t.swipe[0]=e),Math.abs(i)>c&&Math.abs(s)>d&&(t.swipe[1]=r))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Zh[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(r),n._keyboardActive=!0,Ch.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Zh&&(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:nv},lv={key:"hover",engine:class extends qh{constructor(...e){super(...e),Th(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Vh(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Vh(e);t._movement=t._delta=Ch.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:rv};function cv(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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const uv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(ev.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},dv=["target","eventOptions","window","enabled","transform"];function fv(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]=fv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class pv{constructor(e,t){Th(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=Mh[e];return e+(n&&n[t]||t)}(t,n),s=Rh(Rh({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class mv{constructor(){Th(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 hv{constructor(e){Th(this,"gestures",new Set),Th(this,"_targetEventStore",new pv(this)),Th(this,"gestureEventStores",{}),Th(this,"gestureTimeoutStores",{}),Th(this,"handlers",{}),Th(this,"config",{}),Th(this,"pointerIds",new Set),Th(this,"touchIds",new Set),Th(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&vv(e,"drag");t.wheel&&vv(e,"wheel");t.scroll&&vv(e,"scroll");t.move&&vv(e,"move");t.pinch&&vv(e,"pinch");t.hover&&vv(e,"hover")}(this,e)}setEventIds(e){return Lh(e)?(this.touchIds=new Set(Fh(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=cv(r,dv);if(n.shared=fv({target:o,eventOptions:i,window:a,enabled:s,transform:l},uv),t){const e=iv.get(t);n[t]=fv(Rh({shared:n.shared},c),e)}else for(const e in c){const t=iv.get(e);t&&(n[e]=fv(Rh({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=gv(n,o.eventOptions,!!r);if(o.enabled){new(ov.get(t))(this,e,t).bind(i)}}const o=gv(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Rh(Rh({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Wh(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Ah(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function vv(e,t){e.gestures.add(t),e.gestureEventStores[t]=new pv(e,t),e.gestureTimeoutStores[t]=new mv}const gv=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Oh(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function bv(e,t={},n,r){const o=y().useMemo((()=>new hv(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const yv=e=>e,wv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},xv="CHANGE",_v="COMMIT",Ev="CONTROL",Cv="DRAG_END",kv="DRAG_START",Sv="DRAG",Tv="INVALIDATE",Nv="PRESS_DOWN",Rv="PRESS_ENTER",Mv="PRESS_UP",Iv="RESET";function Pv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wv;const{value:t}=e;return{...wv,...e,initialValue:t}}function Ov(e){return(t,n)=>{const r={...t};switch(n.type){case Ev:return r.value=n.payload.value,r.isDirty=!1,r._event=void 0,r;case Mv:case Nv:r.isDirty=!1;break;case kv:r.isDragging=!0;break;case Cv:r.isDragging=!1;break;case xv:r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case _v:r.value=n.payload.value,r.isDirty=!1;break;case Iv:r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case Tv:r.error=n.payload.error}return r._event=n.payload.event,e(r,n)}}const Dv=()=>{};const Av=(0,s.forwardRef)((function(e,t){let{disabled:n=!1,dragDirection:r="n",dragThreshold:o=10,id:i,isDragEnabled:l=!1,isFocused:c,isPressEnterToChange:u=!1,onBlur:d=Dv,onChange:f=Dv,onDrag:p=Dv,onDragEnd:m=Dv,onDragStart:h=Dv,onFocus:v=Dv,onKeyDown:g=Dv,onValidate:b=Dv,size:y="default",setIsFocused:w,stateReducer:x=(e=>e),value:_,type:E,...C}=e;const{state:k,change:S,commit:T,drag:N,dragEnd:R,dragStart:M,invalidate:I,pressDown:P,pressEnter:O,pressUp:D,reset:A}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yv,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wv,n=arguments.length>2?arguments[2]:void 0;const[r,o]=(0,s.useReducer)(Ov(e),Pv(t)),i=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})},c=i(xv),u=(e,t)=>o({type:Tv,payload:{error:e,event:t}}),d=i(Iv),f=i(_v),p=l(kv),m=l(Sv),h=l(Cv),v=a(Mv),g=a(Nv),b=a(Rv),y=(0,s.useRef)(r),w=(0,s.useRef)({value:t.value,onChangeHandler:n});return(0,s.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,s.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,s.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:Ev,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:u,pressDown:g,pressEnter:b,pressUp:v,reset:d,state:r}}(x,{isDragEnabled:l,value:_,isPressEnterToChange:u},f),{value:L,isDragging:z,isDirty:B}=k,F=(0,s.useRef)(!1),H=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,s.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(z,r),V=e=>{const t=e.currentTarget.value;try{b(t),T(t,e)}catch(t){I(t,e)}},j=($=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return m(e),void R(e);p(e),N(e),z||(h(e),M(e))}},W={axis:"e"===r||"w"===r?"x":"y",threshold:o,enabled:l,pointer:{capture:!1}},av(sv),bv({drag:$},W||{},"drag"));var $,W;const U=l?j():{};let G;return"number"===E&&(G=e=>{var t;null===(t=C.onMouseDown)||void 0===t||t.call(C,e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,s.createElement)(fh,a({},C,U,{className:"components-input-control__input",disabled:n,dragCursor:H,isDragging:z,id:i,onBlur:e=>{d(e),null==w||w(!1),!B&&e.target.validity.valid||(F.current=!0,V(e))},onChange:e=>{const t=e.target.value;S(t,e)},onFocus:e=>{v(e),null==w||w(!0)},onKeyDown:e=>{const{key:t}=e;switch(g(e),t){case"ArrowUp":D(e);break;case"ArrowDown":P(e);break;case"Enter":O(e),u&&(e.preventDefault(),V(e));break;case"Escape":u&&B&&(e.preventDefault(),A(_,e))}},onMouseDown:G,ref:t,inputSize:y,value:L,type:E}))}));var Lv=Av;const zv=()=>{};const Bv=(0,s.forwardRef)((function(e,t){let{__next36pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:l=!1,hideLabelFromVision:u=!1,id:f,isPressEnterToChange:p=!1,label:m,labelPosition:h="top",onChange:v=zv,onValidate:g=zv,onKeyDown:b=zv,prefix:y,size:w="default",suffix:x,value:_,...E}=e;const[C,k]=(0,s.useState)(!1),S=function(e){const t=(0,d.useInstanceId)(Bv);return e||`inspector-input-control-${t}`}(f),T=c()("components-input-control",i),N=function(e){const t=(0,s.useRef)(e.value),[n,r]=(0,s.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,s.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=>{var n;r({}),null===(n=e.onBlur)||void 0===n||n.call(e,t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:_,onBlur:E.onBlur,onChange:v});return(0,s.createElement)(Eh,{__next36pxDefaultSize:n,__unstableInputWidth:o,className:T,disabled:l,gap:3,hideLabelFromVision:u,id:S,isFocused:C,justify:"left",label:m,labelPosition:h,prefix:y,size:w,suffix:x},(0,s.createElement)(Lv,a({},E,{__next36pxDefaultSize:n,className:"components-input-control__input",disabled:l,id:S,isFocused:C,isPressEnterToChange:p,onKeyDown:b,onValidate:g,paddingInlineStart:y?vm(2):void 0,paddingInlineEnd:x?vm(2):void 0,ref:t,setIsFocused:k,size:w,stateReducer:r},N)))}));var Fv=Bv;var Hv={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 Vv=e=>{let{hideHTMLArrows:t}=e;return t?Hv:""},jv=ud(Fv,{target:"ep48uk90"})(Vv,";");function $v(e){const t=Number(e);return isNaN(t)?0:t}function Wv(){for(var e=arguments.length,t=new Array(e),n=0;ne+$v(t)),0)}function Uv(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}function Gv(e,t,n){const r=$v(e);return Math.max(t,Math.min(r,n))}function qv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=$v(e),i=$v(r),a=Uv(r),s=Math.round(o/i)*i,l=Gv(s,t,n);return a?$v(l.toFixed(a)):l}const Yv=(0,s.forwardRef)((function(e,t){let{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,isDragEnabled:l=!0,isShiftStepEnabled:d=!0,label:f,max:p=1/0,min:m=-1/0,required:h=!1,shiftStep:v=10,step:g=1,type:b="number",value:y,...w}=e;const x="any"===g,_=x?1:_m(g),E=qv(0,m,p,_),C=(e,t)=>x?Math.min(p,Math.max(m,_m(e))):qv(e,m,p,null!=t?t:_),k="number"===b?"off":void 0,S=c()("components-number-control",r),T=(e,t)=>{const n={...e},{type:r,payload:i}=t,a=i.event,s=n.value;if(r===Mv||r===Nv){const e=(null==a?void 0:a.shiftKey)&&d,t=e?_m(v)*_:_;let o=function(e){const t=""===e;return!wm(e)||t}(s)?E:s;null!=a&&a.preventDefault&&a.preventDefault(),r===Mv&&(o=Wv(o,t)),r===Nv&&(o=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const r=$v(t);return 0===n?r:e-r}),0)}(o,t)),n.value=C(o,e?t:void 0)}if(r===Sv&&l){const[e,t]=i.delta,r=i.shiftKey&&d,a=r?_m(v)*_:_;let l,c;switch(o){case"n":c=t,l=-1;break;case"e":c=e,l=(0,u.isRTL)()?-1:1;break;case"s":c=t,l=1;break;case"w":c=e,l=(0,u.isRTL)()?1:-1}if(0!==c){c=Math.ceil(Math.abs(c))*Math.sign(c);const e=c*a*l;n.value=C(Wv(s,e),r?a:void 0)}}if(r===Rv||r===_v){const e=!1===h&&""===s;n.value=e?s:C(s)}return n};return(0,s.createElement)(jv,a({autoComplete:k,inputMode:"numeric"},w,{className:S,dragDirection:o,hideHTMLArrows:i,isDragEnabled:l,label:f,max:p,min:m,ref:t,required:h,step:g,type:b,value:y,__unstableStateReducer:(e,t)=>{var r;const o=T(e,t);return null!==(r=null==n?void 0:n(o,t))&&void 0!==r?r:o}}))}));var Kv=Yv;const Xv=e=>{let{__nextHasNoMarginBottom:t}=e;return t?"":Ef("margin-bottom:",vm(2),";","")},Zv=ud(bm,{target:"e65ony43"})(Xv,";"),Jv=ud("div",{target:"e65ony42"})("border-radius:50%;border:",Am.borderWidth," solid ",op.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;"),Qv=ud("div",{target:"e65ony41"})({name:"1bhd2sw",styles:"box-sizing:border-box;position:relative;width:100%;height:100%"}),eg=ud("div",{target:"e65ony40"})("background:",op.ui.theme,";border-radius:50%;border:",3,"px solid ",op.ui.theme,";bottom:0;box-sizing:border-box;display:block;height:0px;left:0;margin:auto;position:absolute;right:0;top:-",16,"px;width:0px;");var tg=function(e){let{value:t,onChange:n,...r}=e;const o=(0,s.useRef)(),i=(0,s.useRef)(),l=(0,s.useRef)(),c=e=>{const{x:t,y:r}=i.current;e.preventDefault(),e.target.focus(),n(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(t,r,e.clientX,e.clientY))},{startDrag:u,isDragging:f}=(0,d.__experimentalUseDragging)({onDragStart:e=>{(()=>{const e=o.current.getBoundingClientRect();i.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),c(e)},onDragMove:c,onDragEnd:c});return(0,s.useEffect)((()=>{f?(void 0===l.current&&(l.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=l.current||null,l.current=void 0)}),[f]),(0,s.createElement)(Jv,a({ref:o,onMouseDown:u,className:"components-angle-picker-control__angle-circle",style:f?{cursor:"grabbing"}:void 0},r),(0,s.createElement)(Qv,{style:t?{transform:`rotate(${t}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,s.createElement)(eg,{className:"components-angle-picker-control__angle-circle-indicator"})))};const ng=e=>null!=e;const rg=Qu((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:m,paddingY:h,...v}=Ju(e,"Spacer");return{...v,className:Zu()(ng(n)&&Ef("margin:",vm(n),";",""),ng(l)&&Ef("margin-bottom:",vm(l),";margin-top:",vm(l),";",""),ng(s)&&Ef("margin-left:",vm(s),";margin-right:",vm(s),";",""),ng(a)&&Ef("margin-top:",vm(a),";",""),ng(r)&&Ef("margin-bottom:",vm(r),";",""),ng(o)&&ih({marginLeft:vm(o)})(),ng(i)&&ih({marginRight:vm(i)})(),ng(c)&&Ef("padding:",vm(c),";",""),ng(h)&&Ef("padding-bottom:",vm(h),";padding-top:",vm(h),";",""),ng(m)&&Ef("padding-left:",vm(m),";padding-right:",vm(m),";",""),ng(p)&&Ef("padding-top:",vm(p),";",""),ng(u)&&Ef("padding-bottom:",vm(u),";",""),ng(d)&&ih({paddingLeft:vm(d)})(),ng(f)&&ih({paddingRight:vm(f)})(),t)}}(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"Spacer");var og=rg;function ig(e){let{__nextHasNoMarginBottom:t=!1,className:n,label:r=(0,u.__)("Angle"),onChange:o,value:i}=e;t||lc()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const a=c()("components-angle-picker-control",n);return(0,s.createElement)(Zv,{__nextHasNoMarginBottom:t,className:a,gap:4},(0,s.createElement)(dm,null,(0,s.createElement)(Kv,{label:r,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{const t=""!==e?parseInt(e,10):0;o(t)},size:"__unstable-large",step:"1",value:i,hideHTMLArrows:!0,suffix:(0,s.createElement)(og,{as:Zm,marginBottom:0,marginRight:vm(3),style:{color:"var( --wp-admin-theme-color )"}},"°")})),(0,s.createElement)(fm,{style:{marginBottom:vm(1),marginTop:"auto"}},(0,s.createElement)(tg,{"aria-hidden":"true",value:i,onChange:o})))}var ag=n(4793),sg=n.n(ag),lg=window.wp.keycodes,cg=window.wp.richText,ug=window.wp.a11y;const dg=new RegExp(`[${["-","~","­","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),fg=e=>sg()(e).toLocaleLowerCase().replace(dg,"-");function pg(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function mg(e){return t=>{const[n,r]=(0,s.useState)([]);return(0,s.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,dc.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+pg(t),"i");r(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const r=[];for(let o=0;oe.test(sg()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}function hg(e){let{record:t,onChange:n,onReplace:r,completers:o,contentRef:i}=e;const a=(0,d.useDebounce)(ug.speak,500),l=(0,d.useInstanceId)(hg),[f,p]=(0,s.useState)(0),[m,h]=(0,s.useState)([]),[v,g]=(0,s.useState)(""),[b,y]=(0,s.useState)(null),[w,x]=(0,s.useState)(null),_=(0,s.useRef)(!1);function E(e){const{getOptionCompletion:o}=b||{};if(!e.isDisabled){if(o){const i=o(e.value,v),{action:a,value:l}=void 0===i.action||void 0===i.value?{action:"insert-at-caret",value:i}:i;if("replace"===a)return void r([l]);"insert-at-caret"===a&&function(e){const r=t.start,o=r-b.triggerPrefix.length-v.length,i=(0,cg.create)({html:(0,s.renderToString)(e)});n((0,cg.insert)(t,i,o,r))}(l)}C()}}function C(){p(0),h([]),g(""),y(null),x(null)}const k=(0,s.useMemo)((()=>{if((0,cg.isCollapsed)(t))return(0,cg.getTextContent)((0,cg.slice)(t,0))}),[t]);(0,s.useEffect)((()=>{if(!k)return void C();const e=sg()(k),n=(0,cg.getTextContent)((0,cg.slice)(t,void 0,(0,cg.getTextContent)(t).length)),r=(0,dc.find)(o,(t=>{let{triggerPrefix:r,allowContext:o}=t;const i=e.lastIndexOf(r);if(-1===i)return!1;const a=e.slice(i+r.length);if(a.length>50)return!1;const s=0===m.length,l=1===a.split(/\s/).length,c=_.current&&a.split(/\s/).length<=3;return!(s&&!c&&!l)&&(!(o&&!o(e.slice(0,i),n))&&(!/^\s/.test(a)&&!/\s\s+$/.test(a)&&/[\u0000-\uFFFF]*$/.test(a)))}));if(!r)return void C();const i=pg(r.triggerPrefix),a=e.slice(e.lastIndexOf(r.triggerPrefix)).match(new RegExp(`${i}([\0-￿]*)$`)),l=a&&a[1];y(r),x((()=>r!==b?function(e){const t=e.useItems?e.useItems:mg(e);return function(e){let{filterValue:n,instanceId:r,listBoxId:o,className:i,selectedIndex:a,onChangeOptions:l,onSelect:u,onReset:d,value:f,contentRef:p}=e;const[m]=t(n),h=(0,cg.useAnchor)({editableContentElement:p.current,value:f});return(0,s.useLayoutEffect)((()=>{l(m)}),[m]),!m.length>0?null:(0,s.createElement)(uf,{focusOnMount:!1,onClose:d,position:"top right",className:"components-autocomplete__popover",anchor:h},(0,s.createElement)("div",{id:o,role:"listbox",className:"components-autocomplete__results"},(0,dc.map)(m,((e,t)=>(0,s.createElement)(hd,{key:e.key,id:`components-autocomplete-item-${r}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:c()("components-autocomplete__result",i,{"is-selected":t===a}),onClick:()=>u(e)},e.label)))))}}(r):w)),g(l)}),[k]);const{key:S=""}=m[f]||{},{className:T}=b||{},N=!!b&&m.length>0,R=N?`components-autocomplete-listbox-${l}`:null;return{listBoxId:R,activeId:N?`components-autocomplete-item-${l}-${S}`:null,onKeyDown:function(e){if(_.current=e.keyCode===lg.BACKSPACE,b&&0!==m.length&&!e.defaultPrevented){switch(e.keyCode){case lg.UP:p((0===f?m.length:f)-1);break;case lg.DOWN:p((f+1)%m.length);break;case lg.ESCAPE:y(null),x(null),e.preventDefault();break;case lg.ENTER:E(m[f]);break;case lg.LEFT:case lg.RIGHT:return void C();default:return}e.preventDefault()}},popover:void 0!==t.start&&w&&(0,s.createElement)(w,{className:T,filterValue:v,instanceId:l,listBoxId:R,selectedIndex:f,onChangeOptions:function(e){p(e.length===m.length?f:0),h(e),function(e){a&&(e.length?a((0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):a((0,u.__)("No results."),"assertive"))}(e)},onSelect:E,value:t,contentRef:i,reset:C})}}function vg(e){const t=(0,s.useRef)(),n=(0,s.useRef)(),{popover:r,listBoxId:o,activeId:i,onKeyDown:a}=hg({...e,contentRef:t});return n.current=a,{ref:(0,d.useMergeRefs)([t,(0,d.useRefEffect)((e=>{function t(e){n.current(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]),children:r,"aria-autocomplete":o?"list":void 0,"aria-owns":o,"aria-activedescendant":i}}function gg(e){let{children:t,isSelected:n,...r}=e;const{popover:o,...i}=hg(r);return(0,s.createElement)(s.Fragment,null,t(i),n&&o)}var bg={"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 yg(e){return(0,dc.get)(bg,e,"")}const wg={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const xg=ud("div",{target:"ej5x27r4"})("font-family:",yg("default.fontFamily"),";font-size:",yg("default.fontSize"),";",wg,";"),_g=ud("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&Ef("margin-bottom:",vm(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),Eg=Ef(Jm,";display:inline-block;margin-bottom:",vm(2),";padding:0;",""),Cg=ud("label",{target:"ej5x27r2"})(Eg,";");var kg={name:"11yad0w",styles:"margin-bottom:revert"};const Sg=ud("p",{target:"ej5x27r1"})("margin-top:",vm(2),";margin-bottom:0;font-size:",yg("helpText.fontSize"),";font-style:normal;color:",op.gray[700],";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&kg}),";"),Tg=ud("span",{target:"ej5x27r0"})(Eg,";"),Ng=e=>{let{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:i,className:a,children:l}=e;return(0,s.createElement)(xg,{className:c()("components-base-control",a)},(0,s.createElement)(_g,{className:"components-base-control__field",__nextHasNoMarginBottom:t},r&&n&&(o?(0,s.createElement)(pd,{as:"label",htmlFor:n},r):(0,s.createElement)(Cg,{className:"components-base-control__label",htmlFor:n},r)),r&&!n&&(o?(0,s.createElement)(pd,{as:"label"},r):(0,s.createElement)(Ng.VisualLabel,null,r)),l),!!i&&(0,s.createElement)(Sg,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},i))};Ng.VisualLabel=e=>{let{className:t,children:n,...r}=e;return(0,s.createElement)(Tg,a({},r,{className:c()("components-base-control__label",t)}),n)};var Rg=Ng;var Mg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));var Ig=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));const Pg=Ef("",""),Og={name:"82a6rk",styles:"flex:1"},Dg=e=>{const{color:t=op.gray[200],style:n="solid",width:r=Am.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Am.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Ag={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Lg(e){const{className:t,__next36pxDefaultSize:n=!1,...r}=Ju(e,"BorderBoxControlLinkedButton"),o=Zu();return{...r,className:(0,s.useMemo)((()=>o((e=>Ef("flex:0;flex-basis:24px;line-height:0;margin-top:",e?"6px":"3px",";",""))(n),t)),[t,o,n])}}var zg=Qu(((e,t)=>{const{className:n,isLinked:r,...o}=Lg(e),i=r?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,s.createElement)(gf,{text:i},(0,s.createElement)(fd,{className:n},(0,s.createElement)(hd,a({},o,{isSmall:!0,icon:r?Mg:Ig,iconSize:24,"aria-label":i,ref:t}))))}),"BorderBoxControlLinkedButton");function Bg(e){const{className:t,value:n,__next36pxDefaultSize:r=!1,...o}=Ju(e,"BorderBoxControlVisualizer"),i=Zu(),a=ih.watch(),l=(0,s.useMemo)((()=>i(((e,t)=>Ef("position:absolute;top:",t?"18px":"15px",";right:30px;bottom:",t?"18px":"15px",";left:30px;border-top:",Dg(null==e?void 0:e.top),";border-bottom:",Dg(null==e?void 0:e.bottom),";",ih({borderLeft:Dg(null==e?void 0:e.left)})()," ",ih({borderRight:Dg(null==e?void 0:e.right)})(),";",""))(n,r),t)),[i,t,n,r,a]);return{...o,className:l,value:n}}var Fg=Qu(((e,t)=>{const{value:n,...r}=Bg(e);return(0,s.createElement)(fd,a({},r,{ref:t}))}),"BorderBoxControlVisualizer");var Hg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"}));var Vg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M5 11.25h14v1.5H5z"}));var jg=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var $g=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"}));const Wg=ud("div",{target:"e1bagdl33"})("box-sizing:border-box;position:relative;&&& ",vh,"{transition:box-shadow 0.1s linear;}");var Ug={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"};const Gg=e=>{let{disableUnits:t}=e;return t?"":Ug},qg=ud(Kv,{target:"e1bagdl32"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",Gg,";}}"),Yg=e=>{let{selectSize:t}=e;const n={default:Ef("box-sizing:border-box;padding:2px 1px;width:20px;color:",op.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:Ef("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",vm(2),";padding:",vm(1),";color:",op.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===t?n.large:n.default},Kg=ud("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Yg,";color:",op.gray[900],";}"),Xg=ud("select",{target:"e1bagdl30"})("&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Yg,";",(e=>{let{selectSize:t="default"}=e;const n={default:Ef("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",ih({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",op.gray[100],";}&:focus{border:1px solid ",op.ui.borderFocus,";box-shadow:inset 0 0 0 ",Am.borderWidth+" "+op.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:Ef("display:flex;justify-content:center;align-items:center;&:hover{color:",op.ui.borderFocus,";box-shadow:inset 0 0 0 ",Am.borderWidth+" "+op.ui.borderFocus,";outline:",Am.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Am.borderWidthFocus+" "+op.ui.borderFocus,";outline:",Am.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===t?n.large:n.default}),";&:not( :disabled ){cursor:pointer;}}");const Zg={name:"f3vz0n",styles:"font-weight:500"},Jg=Ef("box-shadow:inset 0 0 0 ",Am.borderWidth," ",op.ui.borderFocus,";",""),Qg=Ef("border:0;padding:0;margin:0;",wg,";",""),eb=Ef(Wg,"{flex:0 0 auto;}","");var tb={name:"6g24ce",styles:"height:16px;width:16px"};const nb=(e,t)=>{const{style:n}=e||{};return Ef("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?op.gray[300]:void 0;return Ef("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:",t?"28px":"22px",";height:",t?"28px":"22px",";padding:",t?"2px":"1px",";&>span{",t?"":tb," 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);}","")},rb=Ef("width:",228,"px;>div:first-of-type>",Cg,"{margin-bottom:0;",Zg,";}&& ",Cg,"+button:not( .has-text ){min-width:24px;padding:0;}",""),ob=Ef("",""),ib=Ef("",""),ab=Ef("justify-content:center;width:100%;&&{border-top:",Am.borderWidth," solid ",op.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),sb=Ef(Cg,"{",Zg,";}",""),lb={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const cb=[{label:(0,u.__)("Solid"),icon:Vg,value:"solid"},{label:(0,u.__)("Dashed"),icon:jg,value:"dashed"},{label:(0,u.__)("Dotted"),icon:$g,value:"dotted"}],ub=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(pd,{as:"label"},t):(0,s.createElement)(Cg,null,t):null};var db=Qu(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:l,...c}=function(e){const{className:t,...n}=Ju(e,"BorderControlStylePicker"),r=Zu();return{...n,className:(0,s.useMemo)((()=>r(sb,t)),[t,r]),buttonClassName:(0,s.useMemo)((()=>r(lb)),[r])}}(e);return(0,s.createElement)(fd,a({},c,{ref:t}),(0,s.createElement)(ub,{label:o,hideLabelFromVision:r}),(0,s.createElement)(bm,{justify:"flex-start",gap:1},cb.map((e=>(0,s.createElement)(hd,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===l,onClick:()=>i(e.value===l?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var fb=(0,s.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,s.createElement)("span",a({className:c()("component-color-indicator",n),style:{background:r},ref:t},o))})),pb=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},mb=function(e){return.2126*pb(e.r)+.7152*pb(e.g)+.0722*pb(e.b)};function hb(e){const{renderContent:t,renderToggle:n,className:r,contentClassName:o,expandOnMobile:i,headerTitle:l,focusOnMount:u,position:f,popoverProps:p,onClose:m,onToggle:h,style:v}=e,[g,b]=(0,s.useState)(null),y=(0,s.useRef)(),[w,x]=function(e,t){const[n,r]=(0,s.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,h);function _(){m&&m(),x(!1)}(0,s.useEffect)((()=>()=>{h&&w&&h(!1)}),[h,w]);const E={isOpen:w,onToggle:function(){x(!w)},onClose:_},C=!!(null!=p&&p.anchor||null!=p&&p.anchorRef||null!=p&&p.getAnchorRect||null!=p&&p.anchorRect);return(0,s.createElement)("div",{className:c()("components-dropdown",r),ref:(0,d.useMergeRefs)([b,y]),tabIndex:"-1",style:v},n(E),w&&(0,s.createElement)(uf,a({position:f,onClose:_,onFocusOutside:function(){const{ownerDocument:e}=y.current,t=e.activeElement.closest('[role="dialog"]');y.current.contains(e.activeElement)||t&&!t.contains(y.current)||_()},expandOnMobile:i,headerTitle:l,focusOnMount:u,offset:13,anchor:C?void 0:g},p,{className:c()("components-dropdown__content",p?p.className:void 0,o)}),t(E)))}var vb=Qu((function(e,t){const n=Ju(e,"InputControlSuffixWrapper");return(0,s.createElement)(og,a({marginBottom:0},n,{ref:t}))}),"InputControlSuffixWrapper");const gb=ud("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",op.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;",(e=>{let{disabled:t}=e;return t?Ef({color:op.ui.textDisabled},"",""):""}),";",(e=>{let{selectSize:t="default"}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"}[t];return n?Ef("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""}),";",(e=>{let{__next36pxDefaultSize:t,selectSize:n="default"}=e;const r={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};t||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return Ef(r[n]||r.default,"","")}),";",(e=>{let{__next36pxDefaultSize:t,selectSize:n="default"}=e;const r={default:{paddingLeft:16,paddingRight:34},small:{paddingLeft:8,paddingRight:26},"__unstable-large":{paddingLeft:16,paddingRight:34}};return t||(r.default={paddingLeft:8,paddingRight:26}),ih(r[n]||r.default)}),";}"),bb=ud("div",{target:"e1mv6sxx1"})("margin-inline-end:",vm(-1),";line-height:0;"),yb=ud(vb,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",ih({right:0}),";");var wb=function(e){let{icon:t,size:n=24,...r}=e;return(0,s.cloneElement)(t,{width:n,height:n,...r})};var xb=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var _b=()=>(0,s.createElement)(yb,null,(0,s.createElement)(bb,null,(0,s.createElement)(wb,{icon:xb,size:18})));const Eb=()=>{};const Cb=(0,s.forwardRef)((function(e,t){let{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:l,label:u,multiple:f=!1,onBlur:p=Eb,onChange:m=Eb,onFocus:h=Eb,options:v=[],size:g="default",value:b,labelPosition:y="top",children:w,prefix:x,suffix:_,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:C=!1,...k}=e;const[S,T]=(0,s.useState)(!1),N=function(e){const t=(0,d.useInstanceId)(Cb);return e||`inspector-select-control-${t}`}(l),R=o?`${N}__help`:void 0;if(!(null!=v&&v.length||w))return null;const M=c()("components-select-control",n);return(0,s.createElement)(Rg,{help:o,id:N,__nextHasNoMarginBottom:C},(0,s.createElement)(Eh,{className:M,disabled:r,hideLabelFromVision:i,id:N,isFocused:S,label:u,size:g,suffix:_||(0,s.createElement)(_b,null),prefix:x,labelPosition:y,__next36pxDefaultSize:E},(0,s.createElement)(gb,a({},k,{__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:N,multiple:f,onBlur:e=>{p(e),T(!1)},onChange:e=>{if(f){const t=Array.from(e.target.options).filter((e=>{let{selected:t}=e;return t})),n=t.map((e=>{let{value:t}=e;return t}));m(n)}else m(e.target.value,{event:e})},onFocus:e=>{h(e),T(!0)},ref:t,selectSize:g,value:b}),w||v.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,s.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))}));var kb=Cb;const Sb={initial:void 0,fallback:""};var Tb=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sb;const{initial:n,fallback:r}={...Sb,...t},[o,i]=(0,s.useState)(e),a=wm(e);(0,s.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]);const l=xm([e,o,n],r),c=e=>{a||i(e)};return[l,c]};const Nb=()=>{};function Rb(e,t,n){return"number"!=typeof e?null:parseFloat(`${Gv(e,t,n)}`)}const Mb=()=>Ef({height:30,minHeight:30},"",""),Ib=12,Pb=ud("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),Ob=ud("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(e=>{let{color:t=op.ui.borderFocus}=e;return Ef({color:t},"","")}),";",Mb,";",(e=>{let{marks:t,__nextHasNoMarginBottom:n}=e;return n?"":Ef({marginBottom:t?16:void 0},"","")}),";"),Db=ud("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",ih({marginRight:6}),";"),Ab=ud("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",ih({marginLeft:6}),";"),Lb=ud("span",{target:"e1epgpqk10"})("background-color:",op.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(e=>{let{disabled:t,railColor:n}=e,r=n||"";return t&&(r=op.ui.backgroundDisabled),Ef({background:r},"","")}),";"),zb=ud("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(e=>{let{disabled:t,trackColor:n}=e,r=n||"currentColor";return t&&(r=op.gray[400]),Ef({background:r},"","")}),";"),Bb=ud("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),Fb=ud("span",{target:"e1epgpqk7"})("height:",Ib,"px;left:0;position:absolute;top:-4px;width:1px;",(e=>{let{disabled:t,isFilled:n}=e,r=n?"currentColor":op.gray[300];return t&&(r=op.gray[400]),Ef({backgroundColor:r},"","")}),";"),Hb=ud("span",{target:"e1epgpqk6"})("color:",op.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(e=>{let{isFilled:t}=e;return Ef({color:t?op.gray[700]:op.gray[300]},"","")}),";");var Vb={name:"1sb75b3",styles:"background-color:var( --wp-admin-theme-color )"};const jb=e=>{let{disabled:t}=e;return t?Ef("background-color:",op.gray[400],";",""):Vb},$b=ud("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Ib,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Ib,"px;border-radius:50%;",jb,";",ih({marginLeft:-10}),";",ih({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),Wb=ud("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",jb,";",(e=>{let{isFocused:t}=e;return t?Ef("&::before{content:' ';position:absolute;background-color:var( --wp-admin-theme-color );opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""}),";"),Ub=ud("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% + ",Ib,"px );");var Gb={name:"1cypxip",styles:"top:-80%"},qb={name:"1lr98c4",styles:"bottom:-80%"};const Yb=ud("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(e=>{let{show:t}=e;return Ef({opacity:t?1:0},"","")}),";",(e=>{let{position:t}=e;return"bottom"===t?qb:Gb}),";",ip("transition"),";",ih({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Kb=ud(Kv,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",vm(16),"!important;input[type='number']&{",Mb,";}",ih({marginLeft:`${vm(4)} !important`}),";"),Xb=ud("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Mb,";}",ih({marginLeft:8}),";"),Zb=()=>{};const Jb=(0,s.forwardRef)((function(e,t){const{describedBy:n,label:r,onHideTooltip:o=Zb,onMouseLeave:i=Zb,onMouseMove:l=Zb,onShowTooltip:c=Zb,value:u,...d}=e,f=function(e){const{onHide:t=Nb,onMouseLeave:n=Nb,onMouseMove:r=Nb,onShow:o=Nb,timeout:i=300}=e,[a,l]=(0,s.useState)(!1),c=(0,s.useRef)(),u=(0,s.useCallback)((e=>{window.clearTimeout(c.current),c.current=window.setTimeout(e,i)}),[i]),d=(0,s.useCallback)((e=>{r(e),u((()=>{a||(l(!0),o())}))}),[]),f=(0,s.useCallback)((e=>{n(e),u((()=>{l(!1),t()}))}),[]);return(0,s.useEffect)((()=>()=>{window.clearTimeout(c.current)})),{onMouseMove:d,onMouseLeave:f}}({onHide:o,onMouseLeave:i,onMouseMove:l,onShow:c});return(0,s.createElement)(Ub,a({},d,f,{"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:u}))}));var Qb=Jb;function ey(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,l=c()("components-range-control__mark",n&&"is-filled",t),u=c()("components-range-control__mark-label",n&&"is-filled");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Fb,a({},i,{"aria-hidden":"true",className:l,isFilled:n,style:o})),r&&(0,s.createElement)(Hb,{"aria-hidden":"true",className:u,isFilled:n,style:o},r))}function ty(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:l=0,...c}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Lb,a({disabled:t},c)),n&&(0,s.createElement)(ny,{disabled:t,marks:n,min:r,max:o,step:i,value:l}))}function ny(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:l=0}=e,c=function(e){let{marks:t,min:n=0,max:r=100,step:o=1,value:i=0}=e;if(!t)return[];const a=r-n;if(!Array.isArray(t)){t=[];const e=1+Math.round(a/o);for(;e>t.push({value:o*t.length+n}););}const s=[];return t.forEach(((e,t)=>{if(e.valuer)return;const o=`mark-${t}`,l=e.value<=i,c=(e.value-n)/a*100+"%",d={[(0,u.isRTL)()?"right":"left"]:c};s.push({...e,isFilled:l,key:o,style:d})})),s}({marks:n,min:r,max:o,step:"any"===i?1:i,value:l});return(0,s.createElement)(Bb,{"aria-hidden":"true",className:"components-range-control__marks"},c.map((e=>(0,s.createElement)(ey,a({},e,{key:e.key,"aria-hidden":"true",disabled:t})))))}function ry(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:l=0,renderTooltipContent:u=(e=>e),zIndex:d=100,...f}=e,p=function(e){let{inputRef:t,tooltipPosition:n}=e;const[r,o]=(0,s.useState)(),i=(0,s.useCallback)((()=>{t&&t.current&&o(n)}),[n]);return(0,s.useEffect)((()=>{i()}),[i]),(0,s.useEffect)((()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}))),r}({inputRef:n,tooltipPosition:r}),m=c()("components-simple-tooltip",t),h={...i,zIndex:d};return(0,s.createElement)(Yb,a({},f,{"aria-hidden":o,className:m,position:p,show:o,role:"tooltip",style:h}),u(l))}const oy=()=>{};const iy=(0,s.forwardRef)((function e(t,n){var r;const{__nextHasNoMarginBottom:o=!1,afterIcon:i,allowReset:l=!1,beforeIcon:f,className:p,color:m=op.ui.theme,currentInput:h,disabled:v=!1,help:g,hideLabelFromVision:b=!1,initialPosition:y,isShiftStepEnabled:w=!0,label:x,marks:_=!1,max:E=100,min:C=0,onBlur:k=oy,onChange:S=oy,onFocus:T=oy,onMouseLeave:N=oy,onMouseMove:R=oy,railColor:M,renderTooltipContent:I=(e=>e),resetFallbackValue:P,shiftStep:O=10,showTooltip:D,step:A=1,trackColor:L,value:z,withInputField:B=!0,...F}=t,[H,V]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=Tb(Rb(r,t,n),{initial:Rb(null!=o?o:null,t,n),fallback:null});return[i,(0,s.useCallback)((e=>{a(null===e?null:Rb(e,t,n))}),[t,n])]}({min:C,max:E,value:null!=z?z:null,initial:y}),j=(0,s.useRef)(!1);let $=D,W=B;"any"===A&&($=!1,W=!1);const[U,G]=(0,s.useState)($),[q,Y]=(0,s.useState)(!1),K=(0,s.useRef)(),X=null===(r=K.current)||void 0===r?void 0:r.matches(":focus"),Z=!v&&q,J=null===H,Q=J?"":void 0!==H?H:h,ee=J?(E-C)/2+C:H,te=`${Gv(J?50:(H-C)/(E-C)*100,0,100)}%`,ne=c()("components-range-control",p),re=c()("components-range-control__wrapper",!!_&&"is-marked"),oe=(0,d.useInstanceId)(e,"inspector-range-control"),ie=g?`${oe}__help`:void 0,ae=!1!==$&&Number.isFinite(H),se=()=>{let e=parseFloat(`${P}`),t=e;isNaN(e)&&(e=null,t=void 0),V(e),S(t)},le={[(0,u.isRTL)()?"right":"left"]:te};return(0,s.createElement)(Rg,{__nextHasNoMarginBottom:o,className:ne,label:x,hideLabelFromVision:b,id:`${oe}`,help:g},(0,s.createElement)(Pb,{className:"components-range-control__root"},f&&(0,s.createElement)(Db,null,(0,s.createElement)(uc,{icon:f})),(0,s.createElement)(Ob,{__nextHasNoMarginBottom:o,className:re,color:m,marks:!!_},(0,s.createElement)(Qb,a({},F,{className:"components-range-control__slider",describedBy:ie,disabled:v,id:`${oe}`,label:x,max:E,min:C,onBlur:e=>{k(e),Y(!1),G(!1)},onChange:e=>{const t=parseFloat(e.target.value);V(t),S(t)},onFocus:e=>{T(e),Y(!0),G(!0)},onMouseMove:R,onMouseLeave:N,ref:(0,d.useMergeRefs)([K,n]),step:A,value:null!=Q?Q:void 0})),(0,s.createElement)(ty,{"aria-hidden":!0,disabled:v,marks:_,max:E,min:C,railColor:M,step:A,value:ee}),(0,s.createElement)(zb,{"aria-hidden":!0,className:"components-range-control__track",disabled:v,style:{width:te},trackColor:L}),(0,s.createElement)($b,{style:le,disabled:v},(0,s.createElement)(Wb,{"aria-hidden":!0,isFocused:Z,disabled:v})),ae&&(0,s.createElement)(ry,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:I,show:X||U,style:le,value:H})),i&&(0,s.createElement)(Ab,null,(0,s.createElement)(uc,{icon:i})),W&&(0,s.createElement)(Kb,{"aria-label":x,className:"components-range-control__number",disabled:v,inputMode:"decimal",isShiftStepEnabled:w,max:E,min:C,onBlur:()=>{j.current&&(se(),j.current=!1)},onChange:e=>{let t=parseFloat(e);V(t),isNaN(t)?l&&(j.current=!0):((tE)&&(t=Rb(t,C,E)),S(t),j.current=!1)},shiftStep:O,step:A,value:Q}),l&&(0,s.createElement)(Xb,null,(0,s.createElement)(hd,{className:"components-range-control__reset",disabled:v||void 0===H,variant:"secondary",isSmall:!0,onClick:se},(0,u.__)("Reset")))))}));var ay=iy;const sy={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-start",justify:"flex-end"},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"}},ly={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-start",align:"flex-end"},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:{justify:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function cy(e){return"string"==typeof e?[e]:s.Children.toArray(e).filter((e=>(0,s.isValidElement)(e)))}function uy(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Ju(e,"HStack"),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"row";if(!wm(e))return{};const n="column"===t?ly:sy;return e in n?n[e]:{align:e}}(t,r),c=cy(n).map(((e,t)=>{if(nd(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,s.createElement)(fm,a({isBlock:!0,key:r},n.props))}return e}));return gm({children:c,direction:r,justify:"center",...l,...i,gap:o})}var dy=Qu((function(e,t){const n=uy(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"HStack");const fy=ud(Kv,{target:"ez9hsf47"})(uh,"{width:",vm(24),";}"),py=ud(kb,{target:"ez9hsf46"})("margin-left:",vm(-2),";width:5em;",vh,"{display:none;}"),my=ud(ay,{target:"ez9hsf45"})("flex:1;margin-right:",vm(2),";",_g,"{margin-bottom:0;}"),hy=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${vm(2)} );\n\tmargin-left: ${vm(1)};\n}`,vy=ud("div",{target:"ez9hsf44"})("padding-top:",vm(2),";padding-right:0;padding-left:0;padding-bottom:0;"),gy=ud(dy,{target:"ez9hsf43"})("padding-left:",vm(4),";padding-right:",vm(4),";"),by=ud(bm,{target:"ez9hsf42"})("padding-top:",vm(4),";padding-left:",vm(4),";padding-right:",vm(3),";padding-bottom:",vm(5),";"),yy=ud("div",{target:"ez9hsf41"})(wg,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",vm(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",vm(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 ",Am.borderWidthFocus," #fff;}",hy," ",_g,"{margin-bottom:0;}"),wy=ud(hd,{target:"ez9hsf40"})("&&&&&{min-width:",vm(6),";padding:0;>svg{margin-right:0;}}");var xy=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function _y(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ey(e){return e instanceof _y(e).Element||e instanceof Element}function Cy(e){return e instanceof _y(e).HTMLElement||e instanceof HTMLElement}function ky(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _y(e).ShadowRoot||e instanceof ShadowRoot)}var Sy=Math.max,Ty=Math.min,Ny=Math.round;function Ry(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function My(){return!/^((?!chrome|android).)*safari/i.test(Ry())}function Iy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Cy(e)&&(o=e.offsetWidth>0&&Ny(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ny(r.height)/e.offsetHeight||1);var a=(Ey(e)?_y(e):window).visualViewport,s=!My()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Py(e){var t=_y(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Oy(e){return e?(e.nodeName||"").toLowerCase():null}function Dy(e){return((Ey(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ay(e){return Iy(Dy(e)).left+Py(e).scrollLeft}function Ly(e){return _y(e).getComputedStyle(e)}function zy(e){var t=Ly(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function By(e,t,n){void 0===n&&(n=!1);var r=Cy(t),o=Cy(t)&&function(e){var t=e.getBoundingClientRect(),n=Ny(t.width)/e.offsetWidth||1,r=Ny(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Dy(t),a=Iy(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Oy(t)||zy(i))&&(s=function(e){return e!==_y(e)&&Cy(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Py(e);var t}(t)),Cy(t)?((l=Iy(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ay(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Fy(e){var t=Iy(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Hy(e){return"html"===Oy(e)?e:e.assignedSlot||e.parentNode||(ky(e)?e.host:null)||Dy(e)}function Vy(e){return["html","body","#document"].indexOf(Oy(e))>=0?e.ownerDocument.body:Cy(e)&&zy(e)?e:Vy(Hy(e))}function jy(e,t){var n;void 0===t&&(t=[]);var r=Vy(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=_y(r),a=o?[i].concat(i.visualViewport||[],zy(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(jy(Hy(a)))}function $y(e){return["table","td","th"].indexOf(Oy(e))>=0}function Wy(e){return Cy(e)&&"fixed"!==Ly(e).position?e.offsetParent:null}function Uy(e){for(var t=_y(e),n=Wy(e);n&&$y(n)&&"static"===Ly(n).position;)n=Wy(n);return n&&("html"===Oy(n)||"body"===Oy(n)&&"static"===Ly(n).position)?t:n||function(e){var t=/firefox/i.test(Ry());if(/Trident/i.test(Ry())&&Cy(e)&&"fixed"===Ly(e).position)return null;var n=Hy(e);for(ky(n)&&(n=n.host);Cy(n)&&["html","body"].indexOf(Oy(n))<0;){var r=Ly(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Gy="top",qy="bottom",Yy="right",Ky="left",Xy="auto",Zy=[Gy,qy,Yy,Ky],Jy="start",Qy="end",ew="viewport",tw="popper",nw=Zy.reduce((function(e,t){return e.concat([t+"-"+Jy,t+"-"+Qy])}),[]),rw=[].concat(Zy,[Xy]).reduce((function(e,t){return e.concat([t,t+"-"+Jy,t+"-"+Qy])}),[]),ow=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function iw(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var aw={placement:"bottom",modifiers:[],strategy:"absolute"};function sw(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function mw(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?dw(o):null,a=o?fw(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Gy:t={x:s,y:n.y-r.height};break;case qy:t={x:s,y:n.y+n.height};break;case Yy:t={x:n.x+n.width,y:l};break;case Ky:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?pw(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Jy:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Qy:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var hw={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=mw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},vw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,v="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Ky,w=Gy,x=window;if(c){var _=Uy(n),E="clientHeight",C="clientWidth";if(_===_y(n)&&"static"!==Ly(_=Dy(n)).position&&"absolute"===s&&(E="scrollHeight",C="scrollWidth"),o===Gy||(o===Ky||o===Yy)&&i===Qy)w=qy,h-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[E])-r.height,h*=l?1:-1;if(o===Ky||(o===Gy||o===qy)&&i===Qy)y=Yy,p-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[C])-r.width,p*=l?1:-1}var k,S=Object.assign({position:s},c&&vw),T=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Ny(t*r)/r||0,y:Ny(n*r)/r||0}}({x:p,y:h}):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},S,((k={})[w]=b?"0":"",k[y]=g?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",k)):Object.assign({},S,((t={})[w]=b?h+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var bw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:dw(t.placement),variation:fw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var yw={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Cy(o)&&Oy(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Cy(r)&&Oy(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ww={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=rw.reduce((function(e,n){return e[n]=function(e,t,n){var r=dw(e),o=[Ky,Gy].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ky,Yy].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},xw={left:"right",right:"left",bottom:"top",top:"bottom"};function _w(e){return e.replace(/left|right|bottom|top/g,(function(e){return xw[e]}))}var Ew={start:"end",end:"start"};function Cw(e){return e.replace(/start|end/g,(function(e){return Ew[e]}))}function kw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ky(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Sw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tw(e,t,n){return t===ew?Sw(function(e,t){var n=_y(e),r=Dy(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=My();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Ay(e),y:l}}(e,n)):Ey(t)?function(e,t){var n=Iy(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Sw(function(e){var t,n=Dy(e),r=Py(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Sy(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Sy(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Ay(e),l=-r.scrollTop;return"rtl"===Ly(o||n).direction&&(s+=Sy(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Dy(e)))}function Nw(e,t,n,r){var o="clippingParents"===t?function(e){var t=jy(Hy(e)),n=["absolute","fixed"].indexOf(Ly(e).position)>=0&&Cy(e)?Uy(e):e;return Ey(n)?t.filter((function(e){return Ey(e)&&kw(e,n)&&"body"!==Oy(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Tw(e,n,r);return t.top=Sy(o.top,t.top),t.right=Ty(o.right,t.right),t.bottom=Ty(o.bottom,t.bottom),t.left=Sy(o.left,t.left),t}),Tw(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Rw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Mw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Iw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?ew:c,d=n.elementContext,f=void 0===d?tw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,v=void 0===h?0:h,g=Rw("number"!=typeof v?v:Mw(v,Zy)),b=f===tw?"reference":tw,y=e.rects.popper,w=e.elements[m?b:f],x=Nw(Ey(w)?w:w.contextElement||Dy(e.elements.popper),l,u,a),_=Iy(e.elements.reference),E=mw({reference:_,element:y,strategy:"absolute",placement:o}),C=Sw(Object.assign({},y,E)),k=f===tw?C:_,S={top:x.top-k.top+g.top,bottom:k.bottom-x.bottom+g.bottom,left:x.left-k.left+g.left,right:k.right-x.right+g.right},T=e.modifiersData.offset;if(f===tw&&T){var N=T[o];Object.keys(S).forEach((function(e){var t=[Yy,qy].indexOf(e)>=0?1:-1,n=[Gy,qy].indexOf(e)>=0?"y":"x";S[e]+=N[n]*t}))}return S}var Pw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,v=t.options.placement,g=dw(v),b=l||(g===v||!m?[_w(v)]:function(e){if(dw(e)===Xy)return[];var t=_w(e);return[Cw(e),t,Cw(t)]}(v)),y=[v].concat(b).reduce((function(e,n){return e.concat(dw(n)===Xy?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?rw:l,u=fw(r),d=u?s?nw:nw.filter((function(e){return fw(e)===u})):Zy,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Iw(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[dw(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,C=y[0],k=0;k=0,M=R?"width":"height",I=Iw(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=R?N?Yy:Ky:N?qy:Gy;w[M]>x[M]&&(P=_w(P));var O=_w(P),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[P]<=0,I[O]<=0),D.every((function(e){return e}))){C=S,E=!1;break}_.set(S,D)}if(E)for(var A=function(e){var t=y.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ow(e,t,n){return Sy(e,Ty(t,n))}var Dw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,v=Iw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=dw(t.placement),b=fw(t.placement),y=!b,w=pw(g),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(i){var R,M="y"===w?Gy:Ky,I="y"===w?qy:Yy,P="y"===w?"height":"width",O=_[w],D=O+v[M],A=O-v[I],L=p?-C[P]/2:0,z=b===Jy?E[P]:C[P],B=b===Jy?-C[P]:-E[P],F=t.elements.arrow,H=p&&F?Fy(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=V[M],$=V[I],W=Ow(0,E[P],H[P]),U=y?E[P]/2-L-W-j-S.mainAxis:z-W-j-S.mainAxis,G=y?-E[P]/2+L+W+$+S.mainAxis:B+W+$+S.mainAxis,q=t.elements.arrow&&Uy(t.elements.arrow),Y=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,K=null!=(R=null==T?void 0:T[w])?R:0,X=O+G-K,Z=Ow(p?Ty(D,O+U-K-Y):D,O,p?Sy(A,X):A);_[w]=Z,N[w]=Z-O}if(s){var J,Q="x"===w?Gy:Ky,ee="x"===w?qy:Yy,te=_[x],ne="y"===x?"height":"width",re=te+v[Q],oe=te-v[ee],ie=-1!==[Gy,Ky].indexOf(g),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-E[ne]-C[ne]-ae+S.altAxis,le=ie?te+E[ne]+C[ne]-ae-S.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Ow(e,t,n);return r>n?n:r}(se,te,le):Ow(p?se:re,te,p?le:oe);_[x]=ce,N[x]=ce-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};var Aw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=dw(n.placement),l=pw(s),c=[Ky,Yy].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Rw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Mw(e,Zy))}(o.padding,n),d=Fy(i),f="y"===l?Gy:Ky,p="y"===l?qy:Yy,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],v=Uy(i),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-h/2,y=u[f],w=g-d[c]-u[p],x=g/2-d[c]/2+b,_=Ow(y,x,w),E=l;n.modifiersData[r]=((t={})[E]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&kw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Lw(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zw(e){return[Gy,Yy,qy,Ky].some((function(t){return e[t]>=0}))}var Bw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Iw(t,{elementContext:"reference"}),s=Iw(t,{altBoundary:!0}),l=Lw(a,r),c=Lw(s,o,i),u=zw(l),d=zw(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Fw=lw({defaultModifiers:[uw,hw,bw,yw,ww,Pw,Dw,Aw,Bw]});function Hw(e){void 0===e&&(e={});var t,n,r=mp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=wp(h(r,["visible","animated"])),c=(0,b.useState)(i),u=c[0],d=c[1],f=(0,b.useState)(s),p=f[0],v=f[1],g=(0,b.useState)(!1),y=g[0],w=g[1],x=(t=u,n=(0,b.useRef)(null),U((function(){n.current=t}),[t]),n),_=null!=x.current&&x.current!==u;p&&!y&&_&&w(!0),(0,b.useEffect)((function(){if("number"==typeof p&&y){var e=setTimeout((function(){return w(!1)}),p);return function(){clearTimeout(e)}}return function(){}}),[p,y]);var E=(0,b.useCallback)((function(){return d(!0)}),[]),C=(0,b.useCallback)((function(){return d(!1)}),[]),k=(0,b.useCallback)((function(){return d((function(e){return!e}))}),[]),S=(0,b.useCallback)((function(){return w(!1)}),[]);return m(m({},l),{},{visible:u,animated:p,animating:y,show:E,hide:C,toggle:k,setVisible:d,setAnimated:v,stopAnimation:S})}var Vw=ee("Mac")&&!ee("Chrome")&&ee("Safari");function jw(e){return function(t){return e&&!A(t,e)?e:t}}function $w(e){void 0===e&&(e={});var t=mp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,p=t.modal,v=void 0!==p&&p,g=h(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,b.useRef)(null),w=(0,b.useRef)(null),x=(0,b.useRef)(null),_=(0,b.useRef)(null),E=(0,b.useState)(i),C=E[0],k=E[1],S=(0,b.useState)(i),T=S[0],N=S[1],R=(0,b.useState)(l||[0,r])[0],M=(0,b.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],P=M[1],O=(0,b.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=mp(e),n=t.modal,r=void 0===n||n,o=Hw(h(t,["modal"])),i=(0,b.useState)(r),a=i[0],s=i[1],l=(0,b.useRef)(null);return m(m({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(m({modal:v},g)),z=(0,b.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),B=(0,b.useCallback)((function(e){e.placement&&N(e.placement),e.styles&&(P(jw(e.styles.popper)),_.current&&A(jw(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=Fw(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:Vw?B:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:R}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=_.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!_.current,options:{element:_.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return B(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,R,u]),(0,b.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),m(m({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:_,unstable_popoverStyles:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:k})}var Ww={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var Uw=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],Gw=[].concat(Uw,["unstable_portal"]),qw=F({name:"TooltipReference",compose:re,keys:Uw,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=h(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,b.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),p=(0,b.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),v=(0,b.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),g=(0,b.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return m({ref:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:p,onMouseEnter:v,onMouseLeave:g,"aria-describedby":e.baseId},s)}}),Yw=z({as:"div",useHook:qw});const Kw=(0,s.createContext)({});var Xw=F({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=h(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,b.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?m({display:"none"},o):o,f=G(n),p=G(r),v=(0,b.useRef)(0);(0,b.useEffect)((function(){if(e.animated)return v.current=window.requestAnimationFrame((function(){v.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(v.current)}}),[e.animated,e.visible,a]);var g=(0,b.useCallback)((function(t){var n;q(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,b.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),g(e)}),[g]),w=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),g(e)}),[g]);return m({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Zw=z({as:"div",useHook:Xw});function Jw(){return W?document.body:null}var Qw=(0,b.createContext)(Jw());function ex(e){var t=e.children,n=(0,b.useContext)(Qw)||Jw(),r=(0,b.useState)((function(){if(W){var e=document.createElement("div");return e.className=ex.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,Tt.createPortal)((0,b.createElement)(Qw.Provider,{value:r},t),r):null}function tx(e){e.defaultPrevented||"Escape"===e.key&&Ww.show(null)}ex.__className="__reakit-portal",ex.__selector="."+ex.__className;var nx=F({name:"Tooltip",compose:Xw,keys:Gw,useOptions:function(e){var t=e.unstable_portal;return m({unstable_portal:void 0===t||t},h(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=h(t,["ref","style","wrapElement"]);(0,b.useEffect)((function(){var t;j(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",tx)}),[]);var a=(0,b.useCallback)((function(t){return e.unstable_portal&&(t=(0,b.createElement)(ex,null,t)),o?o(t):t}),[e.unstable_portal,o]);return m({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:m(m({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),rx=z({as:"div",memo:!0,useHook:nx});var ox=Qu((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=Ju(e,"Shortcut");if(!r)return null;let l,c;return"string"==typeof r?l=r:(l=r.display,c=r.ariaLabel),(0,s.createElement)(fd,a({as:n,className:o,"aria-label":c,ref:t},i),l)}),"Shortcut");const ix=Ef("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Am.transitionDurationFastest," ease;font-size:",Am.fontSize,";&[data-enter]{opacity:1;}",""),ax=ud("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",op.white,";padding:4px 8px;"),sx={name:"12mkfdx",styles:"outline:none"},lx=ud(ox,{target:"e7tfjmw0"})("display:inline-block;margin-left:",vm(1),";"),{TooltipPopoverView:cx}=t;var ux=Qu((function(e,t){const{children:n,className:r,...o}=Ju(e,"TooltipContent"),{tooltip:i}=(0,s.useContext)(Kw),l=Zu()(ix,r);return(0,s.createElement)(rx,a({as:fd},o,i,{className:l,ref:t}),(0,s.createElement)(cx,null,n))}),"TooltipContent");const dx=Qu((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:l,focusable:c=!0,gutter:u=4,id:d,modal:f=!0,placement:p,visible:v=!1,shortcut:g,...y}=Ju(e,"Tooltip"),w=function(e){void 0===e&&(e={});var t=mp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=h(t,["placement","unstable_timeout"]),s=(0,b.useState)(i),l=s[0],c=s[1],u=(0,b.useRef)(null),d=(0,b.useRef)(null),f=$w(m(m({},a),{},{placement:r})),p=(f.modal,f.setModal,h(f,["modal","setModal"])),v=(0,b.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),g=(0,b.useCallback)((function(){v(),p.hide(),d.current=window.setTimeout((function(){Ww.hide(p.baseId)}),l)}),[v,p.hide,l,p.baseId]),y=(0,b.useCallback)((function(){v(),!l||Ww.currentTooltipId?(Ww.show(p.baseId),p.show()):(Ww.show(null),u.current=window.setTimeout((function(){Ww.show(p.baseId),p.show()}),l))}),[v,l,p.show,p.baseId]);return(0,b.useEffect)((function(){return Ww.subscribe((function(e){e!==p.baseId&&(v(),p.visible&&p.hide())}))}),[p.baseId,v,p.visible,p.hide]),(0,b.useEffect)((function(){return function(){v(),Ww.hide(p.baseId)}}),[v,p.baseId]),m(m({},p),{},{hide:g,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||d,gutter:u,placement:p,visible:v,...y}),x=(0,s.useMemo)((()=>({tooltip:w})),[w]);return(0,s.createElement)(Kw.Provider,{value:x},l&&(0,s.createElement)(ux,{unstable_portal:f,ref:t},l,g&&(0,s.createElement)(lx,{shortcut:g})),i&&(0,s.createElement)(Yw,a({},w,i.props,{ref:null==i?void 0:i.ref}),(e=>(c||(e.tabIndex=void 0),(0,s.cloneElement)(i,e)))))}),"Tooltip");var fx=dx;const px=e=>{const{color:t,colorType:n}=e,[r,o]=(0,s.useState)(null),i=(0,s.useRef)(),a=(0,d.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,s.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,s.createElement)(fx,{content:(0,s.createElement)(Zm,{color:"white"},r===t.toHex()?(0,u.__)("Copied!"):(0,u.__)("Copy")),placement:"bottom"},(0,s.createElement)(wy,{isSmall:!0,ref:a,icon:xy,showTooltip:!1}))},mx=e=>{let{min:t,max:n,label:r,abbreviation:o,onChange:i,value:a}=e;return(0,s.createElement)(dy,{spacing:4},(0,s.createElement)(fy,{min:t,max:n,label:r,hideLabelFromVision:!0,value:a,onChange:i,prefix:(0,s.createElement)(og,{as:Zm,paddingLeft:vm(4),color:op.ui.theme,lineHeight:1},o),hideHTMLArrows:!0,size:"__unstable-large"}),(0,s.createElement)(my,{label:r,hideLabelFromVision:!0,min:t,max:n,value:a,onChange:i,withInputField:!1}))},hx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{r:o,g:i,b:a,a:l}=t.toRgb();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(mx,{min:0,max:255,label:"Red",abbreviation:"R",value:o,onChange:e=>n(Xf({r:e,g:i,b:a,a:l}))}),(0,s.createElement)(mx,{min:0,max:255,label:"Green",abbreviation:"G",value:i,onChange:e=>n(Xf({r:o,g:e,b:a,a:l}))}),(0,s.createElement)(mx,{min:0,max:255,label:"Blue",abbreviation:"B",value:a,onChange:e=>n(Xf({r:o,g:i,b:e,a:l}))}),r&&(0,s.createElement)(mx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>n(Xf({r:o,g:i,b:a,a:e/100}))}))},vx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;const{h:o,s:i,l:a,a:l}=t.toHsl();return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(mx,{min:0,max:359,label:"Hue",abbreviation:"H",value:o,onChange:e=>{n(Xf({h:e,s:i,l:a,a:l}))}}),(0,s.createElement)(mx,{min:0,max:100,label:"Saturation",abbreviation:"S",value:i,onChange:e=>{n(Xf({h:o,s:e,l:a,a:l}))}}),(0,s.createElement)(mx,{min:0,max:100,label:"Lightness",abbreviation:"L",value:a,onChange:e=>{n(Xf({h:o,s:i,l:e,a:l}))}}),r&&(0,s.createElement)(mx,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*l),onChange:e=>{n(Xf({h:o,s:i,l:a,a:e/100}))}}))},gx=e=>{let{color:t,onChange:n,enableAlpha:r}=e;return(0,s.createElement)(Bv,{prefix:(0,s.createElement)(og,{as:Zm,marginLeft:vm(4),color:op.ui.theme,lineHeight:1},"#"),value:t.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const t=e.startsWith("#")?e:"#"+e;n(Xf(t))},maxLength:r?9:7,label:(0,u.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{var n,r,o,i;const a=null===(n=t.payload)||void 0===n||null===(r=n.event)||void 0===r?void 0:r.nativeEvent;if("insertFromPaste"!==(null==a?void 0:a.inputType))return{...e};const s=null!==(o=e.value)&&void 0!==o&&o.startsWith("#")?e.value.slice(1).toUpperCase():null===(i=e.value)||void 0===i?void 0:i.toUpperCase();return{...e,value:s}},__unstableInputWidth:"9em"})},bx=e=>{let{colorType:t,color:n,onChange:r,enableAlpha:o}=e;const i={color:n,onChange:r,enableAlpha:o};switch(t){case"hsl":return(0,s.createElement)(vx,i);case"rgb":return(0,s.createElement)(hx,i);default:return(0,s.createElement)(gx,i)}};function yx(){return(yx=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function xx(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 _x=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e0:e.buttons>0)&&o.current?i(kx(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=Cx(o.current),a=n?i.addEventListener:i.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(Sx(t),!function(e,t){return t&&!Ex(e)}(t,l.current)&&r)){if(Ex(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(kx(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,i]),u=c[0],d=c[1],f=c[2];return(0,b.useEffect)((function(){return f}),[f]),b.createElement("div",yx({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),Nx=function(e){return e.filter(Boolean).join(" ")},Rx=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=Nx(["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}}))},Mx=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Ix=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Mx(e.h),s:Mx(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Mx(o/2),a:Mx(r,2)}}),Px=function(e){var t=Ix(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Ox=function(e){var t=Ix(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Dx=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:Mx(255*[r,s,a,a,l,r][c]),g:Mx(255*[l,r,r,s,a,a][c]),b:Mx(255*[a,a,l,r,r,s][c]),a:Mx(o,2)}},Ax=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?zx({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}},Lx=Ax,zx=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:Mx(60*(s<0?s+6:s)),s:Mx(i?a/i*100:0),v:Mx(i/255*100),a:o}},Bx=b.memo((function(e){var t=e.hue,n=e.onChange,r=Nx(["react-colorful__hue",e.className]);return b.createElement("div",{className:r},b.createElement(Tx,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:_x(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Mx(t),"aria-valuemax":"360","aria-valuemin":"0"},b.createElement(Rx,{className:"react-colorful__hue-pointer",left:t/360,color:Px({h:t,s:100,v:100,a:1})})))})),Fx=b.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Px({h:t.h,s:100,v:100,a:1})};return b.createElement("div",{className:"react-colorful__saturation",style:r},b.createElement(Tx,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:_x(t.s+100*e.left,0,100),v:_x(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Mx(t.s)+"%, Brightness "+Mx(t.v)+"%"},b.createElement(Rx,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Px(t)})))})),Hx=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Vx=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function jx(e,t,n){var r=xx(n),o=(0,b.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,b.useRef)({color:t,hsva:i});(0,b.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,b.useEffect)((function(){var t;Hx(i,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,b.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var $x,Wx="undefined"!=typeof window?b.useLayoutEffect:b.useEffect,Ux=new Map,Gx=function(e){Wx((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Ux.has(t)){var r=t.createElement("style");r.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,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Ux.set(t,r);var o=$x||n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}}),[])},qx=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=wx(e,["className","colorModel","color","onChange"]),s=(0,b.useRef)(null);Gx(s);var l=jx(n,o,i),c=l[0],u=l[1],d=Nx(["react-colorful",t]);return b.createElement("div",yx({},a,{ref:s,className:d}),b.createElement(Fx,{hsva:c,onChange:u}),b.createElement(Bx,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},Yx=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Ox(Object.assign({},n,{a:0}))+", "+Ox(Object.assign({},n,{a:1}))+")"},i=Nx(["react-colorful__alpha",t]),a=Mx(100*n.a);return b.createElement("div",{className:i},b.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),b.createElement(Tx,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:_x(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},b.createElement(Rx,{className:"react-colorful__alpha-pointer",left:n.a,color:Ox(n)})))},Kx=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=wx(e,["className","colorModel","color","onChange"]),s=(0,b.useRef)(null);Gx(s);var l=jx(n,o,i),c=l[0],u=l[1],d=Nx(["react-colorful",t]);return b.createElement("div",yx({},a,{ref:s,className:d}),b.createElement(Fx,{hsva:c,onChange:u}),b.createElement(Bx,{hue:c.h,onChange:u}),b.createElement(Yx,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},Xx={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ax,fromHsva:function(e){var t=Dx(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Vx},Zx=function(e){return b.createElement(Kx,yx({},e,{colorModel:Xx}))},Jx={defaultColor:"rgb(0, 0, 0)",toHsva:Lx,fromHsva:function(e){var t=Dx(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Vx},Qx=function(e){return b.createElement(qx,yx({},e,{colorModel:Jx}))};const e_=e=>{let{color:t,enableAlpha:n,onChange:r}=e;const o=n?Zx:Qx,i=(0,s.useMemo)((()=>t.toRgbString()),[t]);return(0,s.createElement)(o,{color:i,onChange:e=>{r(Xf(e))}})};function t_(e){let{defaultValue:t,onChange:n,value:r}=e;const o=void 0!==r,i=o?r:t,[a,l]=(0,s.useState)(i);let c;return c=o&&"function"==typeof n?n:o||"function"!=typeof n?l:e=>{n(e),l(e)},[o?r:a,c]}Jf([Qf]);const n_=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],r_=Qu(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:l,...c}=Ju(e,"ColorPicker"),[f,p]=t_({onChange:o,value:r,defaultValue:i}),m=(0,s.useMemo)((()=>Xf(f||"")),[f]),h=(0,d.useDebounce)(p),v=(0,s.useCallback)((e=>{h(e.toHex())}),[h]),[g,b]=(0,s.useState)(l||"hex");return(0,s.createElement)(yy,a({ref:t},c),(0,s.createElement)(e_,{onChange:v,color:m,enableAlpha:n}),(0,s.createElement)(vy,null,(0,s.createElement)(gy,{justify:"space-between"},(0,s.createElement)(py,{options:n_,value:g,onChange:e=>b(e),label:(0,u.__)("Color format"),hideLabelFromVision:!0}),(0,s.createElement)(px,{color:m,colorType:l||g})),(0,s.createElement)(by,{direction:"column",gap:2},(0,s.createElement)(bx,{colorType:g,color:m,onChange:v,enableAlpha:n}))))}),"ColorPicker");var o_=r_;function i_(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const a_=bc()((e=>{const t=Xf(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}}));const s_=e=>(0,s.createElement)(o_,function(e){const{onChangeComplete:t}=e,n=(0,s.useCallback)((e=>{t(a_(e))}),[t]);return function(e){var t;return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof(null===(t=e.color)||void 0===t?void 0:t.hex)}(e)?{color:i_(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}(e));var l_=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function c_(e){const{actions:t,className:n,options:r,children:o}=e;return(0,s.createElement)("div",{className:c()("components-circular-option-picker",n)},(0,s.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&(0,s.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}c_.Option=function(e){const{className:t,isSelected:n,selectedIconProps:r,tooltipText:o,...i}=e,l=(0,s.createElement)(hd,a({isPressed:n,className:"components-circular-option-picker__option"},i));return(0,s.createElement)("div",{className:c()(t,"components-circular-option-picker__option-wrapper")},o?(0,s.createElement)(gf,{text:o},l):l,n&&(0,s.createElement)(wb,a({icon:l_},r||{})))},c_.ButtonAction=function(e){const{className:t,children:n,...r}=e;return(0,s.createElement)(hd,a({className:c()("components-circular-option-picker__clear",t),variant:"tertiary"},r),n)},c_.DropdownLinkAction=function(e){const{buttonProps:t,className:n,dropdownProps:r,linkText:o}=e;return(0,s.createElement)(hb,a({className:c()("components-circular-option-picker__dropdown-link-action",n),renderToggle:e=>{let{isOpen:n,onToggle:r}=e;return(0,s.createElement)(hd,a({"aria-expanded":n,"aria-haspopup":"true",onClick:r,variant:"link"},t),o)}},r))};var u_=Qu((function(e,t){const n=function(e){const{expanded:t=!1,...n}=Ju(e,"VStack");return uy({direction:"column",expanded:t,...n})}(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"VStack");var d_=Qu((function(e,t){const n=Tm(e);return(0,s.createElement)(fd,a({as:"span"},n,{ref:t}))}),"Truncate");var f_=Qu((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Ju(e,"Heading"),o=t||`h${n}`,i={};return"string"==typeof o&&"h"!==o[0]&&(i.role="heading",i["aria-level"]="string"==typeof n?parseInt(n):n),{...Xm({color:op.gray[900],size:Ym(n),isBlock:!0,weight:Am.fontWeightHeading,...r}),...i,as:o}}(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"Heading");const p_=ud(f_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),m_=ud("div",{target:"eovvns30"})("margin-left:",vm(-2),";margin-right:",vm(-2),";&:first-of-type{margin-top:",vm(-2),";}&:last-of-type{margin-bottom:",vm(-2),";}",(e=>{let{paddingSize:t="small"}=e;if("none"===t)return;const n={small:vm(2),medium:vm(4)};return Ef("padding:",n[t]||n.small,";","")}),";");var h_=Qu((function(e,t){const{paddingSize:n="small",...r}=Ju(e,"DropdownContentWrapper");return(0,s.createElement)(m_,a({},r,{paddingSize:n,ref:t}))}),"DropdownContentWrapper");function v_(e){let{className:t,clearColor:n,colors:r,onChange:o,value:i,actions:a}=e;const l=(0,s.useMemo)((()=>r.map(((e,t)=>{let{color:r,name:a}=e;const l=Xf(r),c=i===r;return(0,s.createElement)(c_.Option,{key:`${r}-${t}`,isSelected:c,selectedIconProps:c?{fill:l.contrast()>l.contrast("#000")?"#fff":"#000"}:{},tooltipText:a||(0,u.sprintf)((0,u.__)("Color code: %s"),r),style:{backgroundColor:r,color:r},onClick:c?n:()=>o(r),"aria-label":a?(0,u.sprintf)((0,u.__)("Color: %s"),a):(0,u.sprintf)((0,u.__)("Color code: %s"),r)})}))),[r,i,o,n]);return 0===r.length?null:(0,s.createElement)(c_,{className:t,options:l,actions:a})}function g_(e){let{className:t,clearColor:n,colors:r,onChange:o,value:i,actions:a}=e;return 0===r.length?null:(0,s.createElement)(u_,{spacing:3,className:t},r.map(((e,t)=>{let{name:l,colors:c}=e;return(0,s.createElement)(u_,{spacing:2,key:t},(0,s.createElement)(p_,null,l),(0,s.createElement)(v_,{clearColor:n,colors:c,onChange:o,value:i,actions:r.length===t+1?a:null}))})))}function b_(e){let{isRenderedInSidebar:t,popoverProps:n,...r}=e;const o=(0,s.useMemo)((()=>({shift:!0,...t?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...n})),[t,n]);return(0,s.createElement)(hb,a({contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:o},r))}Jf([Qf,function(e){e.prototype.luminance=function(){return e=mb(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=mb(i))>(l=mb(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}]);const y_=(0,s.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i,onChange:l,value:c,__experimentalHasMultipleOrigins:d=!1,__experimentalIsRenderedInSidebar:f=!1,...p}=e,m=(0,s.useCallback)((()=>l(void 0)),[l]),h=(0,s.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return"";const r=/^var\(/.test(e),o=r?e:Xf(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Xf(n).toHex()))return t;return(0,u.__)("Custom")}(c,r,d)),[c,r,d]);if(r.length>0&&d!==(e=>e.every((e=>Array.isArray(e.colors))))(r))return console.warn("wp.components.ColorPalette: please specify a format for the `colors` prop that is compatible with the `__experimentalHasMultipleOrigins` prop."),null;const v=Xf(null!=c?c:""),g=null!=c&&c.startsWith("#")?c.substring(1):null!=c?c:"",b=g?(0,u.sprintf)((0,u.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),h,g):(0,u.__)("Custom color picker."),y={clearable:n,clearColor:m,onChange:l,value:c,actions:!!n&&(0,s.createElement)(c_.ButtonAction,{onClick:m},(0,u.__)("Clear"))};return(0,s.createElement)(u_,a({spacing:3,ref:t},p),!o&&(0,s.createElement)(b_,{isRenderedInSidebar:f,renderContent:()=>(0,s.createElement)(h_,{paddingSize:"none"},(0,s.createElement)(s_,{color:c,onChange:e=>l(e),enableAlpha:i})),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(bm,{as:"button",justify:"space-between",align:"flex-start",className:"components-color-palette__custom-color","aria-expanded":t,"aria-haspopup":"true",onClick:n,"aria-label":b,style:(r=c,void 0===r||0===Xf(r).alpha()?{color:"#000"}:{background:c,color:v.contrast()>v.contrast("#000")?"#fff":"#000"})},(0,s.createElement)(fm,{isBlock:!0,as:d_,className:"components-color-palette__custom-color-name"},h),(0,s.createElement)(fm,{as:"span",className:"components-color-palette__custom-color-value"},g));var r}}),d?(0,s.createElement)(g_,a({},y,{colors:r})):(0,s.createElement)(v_,a({},y,{colors:r})))}));var w_=y_;const x_="web"===s.Platform.OS,__={px:{value:"px",label:x_?"px":(0,u.__)("Pixels (px)"),a11yLabel:(0,u.__)("Pixels (px)"),step:1},"%":{value:"%",label:x_?"%":(0,u.__)("Percentage (%)"),a11yLabel:(0,u.__)("Percent (%)"),step:.1},em:{value:"em",label:x_?"em":(0,u.__)("Relative to parent font size (em)"),a11yLabel:(0,u._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:x_?"rem":(0,u.__)("Relative to root font size (rem)"),a11yLabel:(0,u._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:x_?"vw":(0,u.__)("Viewport width (vw)"),a11yLabel:(0,u.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:x_?"vh":(0,u.__)("Viewport height (vh)"),a11yLabel:(0,u.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:x_?"vmin":(0,u.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,u.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:x_?"vmax":(0,u.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,u.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:x_?"ch":(0,u.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,u.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:x_?"ex":(0,u.__)("x-height of the font (ex)"),a11yLabel:(0,u.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:x_?"cm":(0,u.__)("Centimeters (cm)"),a11yLabel:(0,u.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:x_?"mm":(0,u.__)("Millimeters (mm)"),a11yLabel:(0,u.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:x_?"in":(0,u.__)("Inches (in)"),a11yLabel:(0,u.__)("Inches (in)"),step:.001},pc:{value:"pc",label:x_?"pc":(0,u.__)("Picas (pc)"),a11yLabel:(0,u.__)("Picas (pc)"),step:1},pt:{value:"pt",label:x_?"pt":(0,u.__)("Points (pt)"),a11yLabel:(0,u.__)("Points (pt)"),step:1}},E_=Object.values(__),C_=[__.px,__["%"],__.em,__.rem,__.vw,__.vh],k_=__.px;function S_(e,t,n){return N_(t?`${null!=e?e:""}${t}`:e,n)}function T_(e){return Array.isArray(e)&&!!e.length}function N_(e){var t,n;let r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E_;if(void 0!==e||null===e){r=`${e}`.trim();const t=parseFloat(r);o=isFinite(t)?t:void 0}const a=null===(t=r)||void 0===t?void 0:t.match(/[\d.\-\+]*\s*(.*)/),s=null==a||null===(n=a[1])||void 0===n?void 0:n.toLowerCase();let l;if(T_(i)){const e=i.find((e=>e.value===s));l=null==e?void 0:e.value}else l=k_.value;return[o,l]}function R_(e,t,n,r){const[o,i]=N_(e,t),a=null!=o?o:n;let s=i||r;return!s&&T_(t)&&(s=t[0].value),[a,s]}const M_=e=>{let{units:t=E_,availableUnits:n=[],defaultValues:r}=e;const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(n,t);return r&&o.forEach(((e,t)=>{if(r[e.value]){const[n]=N_(r[e.value]);o[t].default=n}})),o};function I_(e){const{border:t,className:n,colors:r,onChange:o,previousStyleSelection:i,__next36pxDefaultSize:a,...l}=Ju(e,"BorderControlDropdown"),[c]=N_(null==t?void 0:t.width),u=0===c,d=Zu(),f=(0,s.useMemo)((()=>d(Ef("background:#fff;&&>button{height:100%;padding:",vm(.75),";",ih({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Am.borderWidth," solid ",op.ui.border,";&:focus,&:hover:not( :disabled ){",Jg," border-color:",op.ui.borderFocus,";z-index:1;position:relative;}}",""),n)),[n,d]),p=(0,s.useMemo)((()=>d(ib)),[d]),m=(0,s.useMemo)((()=>d(nb(t,a))),[t,d,a]),h=(0,s.useMemo)((()=>d(rb)),[d]),v=(0,s.useMemo)((()=>d(ob)),[d]),g=(0,s.useMemo)((()=>d(ab)),[d]);return{...l,border:t,className:f,colors:r,indicatorClassName:p,indicatorWrapperClassName:m,onColorChange:e=>{const n="none"===(null==t?void 0:t.style)?i:null==t?void 0:t.style,r=u&&e?"1px":null==t?void 0:t.width;o({color:e,style:n,width:r})},onStyleChange:e=>{const n=u&&e?"1px":null==t?void 0:t.width;o({...t,style:e,width:n})},onReset:()=>{o({...t,color:void 0,style:void 0})},popoverContentClassName:v,popoverControlsClassName:h,resetButtonClassName:g}}const P_=()=>{},O_=Qu(((e,t)=>{const{__experimentalHasMultipleOrigins:n,__experimentalIsRenderedInSidebar:r,border:o,colors:i,disableCustomColors:l,enableAlpha:c,indicatorClassName:d,indicatorWrapperClassName:f,onReset:p,onColorChange:m,onStyleChange:h,popoverContentClassName:v,popoverControlsClassName:g,resetButtonClassName:b,showDropdownHeader:y,enableStyle:w=!0,__unstablePopoverProps:x,..._}=I_(e),{color:E,style:C}=o||{},k=((e,t,n)=>{if(e&&t){if(n){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(E,i,!!n),S=((e,t,n,r)=>r?t?n?(0,u.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,t.color,n):(0,u.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,t.color):e?n?(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',e,n):(0,u.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',e):(0,u.__)("Border color and style picker."):t?(0,u.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,t.color):e?(0,u.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',e):(0,u.__)("Border color picker."))(E,k,C,w),T=E||C&&"none"!==C,N=r?"bottom left":void 0;return(0,s.createElement)(hb,a({renderToggle:e=>{let{onToggle:t=P_}=e;return(0,s.createElement)(hd,{onClick:t,variant:"tertiary","aria-label":S,position:N,label:(0,u.__)("Border color and style picker"),showTooltip:!0},(0,s.createElement)("span",{className:f},(0,s.createElement)(fb,{className:d,colorValue:E})))},renderContent:e=>{let{onClose:t}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(h_,{paddingSize:"medium"},(0,s.createElement)(u_,{className:g,spacing:6},y?(0,s.createElement)(dy,null,(0,s.createElement)(Cg,null,(0,u.__)("Border color")),(0,s.createElement)(hd,{isSmall:!0,label:(0,u.__)("Close border color"),icon:Hg,onClick:t})):void 0,(0,s.createElement)(w_,{className:v,value:E,onChange:m,colors:i,disableCustomColors:l,__experimentalHasMultipleOrigins:n,__experimentalIsRenderedInSidebar:r,clearable:!1,enableAlpha:c}),w&&(0,s.createElement)(db,{label:(0,u.__)("Style"),value:C,onChange:h}))),T&&(0,s.createElement)(h_,{paddingSize:"none"},(0,s.createElement)(hd,{className:b,variant:"tertiary",onClick:()=>{p(),t()}},(0,u.__)("Reset to default"))))},popoverProps:{...x}},_,{ref:t}))}),"BorderControlDropdown");var D_=O_;function A_(e){let{className:t,isUnitSelectTabbable:n=!0,onChange:r,size:o="default",unit:i="px",units:l=C_,...u}=e;if(!T_(l)||1===(null==l?void 0:l.length))return(0,s.createElement)(Kg,{className:"components-unit-control__unit-label",selectSize:o},i);const d=c()("components-unit-control__select",t);return(0,s.createElement)(Xg,a({className:d,onChange:e=>{const{value:t}=e.target,n=l.find((e=>e.value===t));null==r||r(t,{event:e,data:n})},selectSize:o,tabIndex:n?void 0:-1,value:i},u),l.map((e=>(0,s.createElement)("option",{value:e.value,key:e.value},e.label))))}const L_=(0,s.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:l=!1,disableUnits:d=!1,isPressEnterToChange:f=!1,isResetValueOnUnitChange:p=!1,isUnitSelectTabbable:m=!0,label:h,onChange:v,onUnitChange:g,size:b="default",style:y,unit:w,units:x=C_,value:_,onBlur:E,...C}=e;"unit"in e&&lc()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const k=null!=_?_:void 0,S=(0,s.useMemo)((()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E_;const r=Array.isArray(n)?[...n]:[],[,o]=S_(e,t,E_);return o&&!r.some((e=>e.value===o))&&__[o]&&r.unshift(__[o]),r}(k,w,x)),[k,w,x]),[T,N]=S_(k,w,S),[R,M]=Tb(1===S.length?S[0].value:w,{initial:N,fallback:""});(0,s.useEffect)((()=>{void 0!==N&&M(N)}),[N]);const I=(0,s.useRef)(void 0),P=c()("components-unit-control",i),O=e=>{if(!isNaN(Number(e.currentTarget.value)))return void(I.current=void 0);const[t,n]=R_(e.currentTarget.value,S,T,R);if(I.current=t,f&&n!==R){const t={event:e,data:Array.isArray(S)?S.find((e=>e.value===n)):void 0};null==g||g(n,t),M(n)}},D=(e,t)=>{const n={...e};var r;t.type===_v&&(void 0!==I.current&&(n.value=(null!==(r=I.current)&&void 0!==r?r:"").toString(),I.current=void 0));return n};let A=D;n&&(A=(e,t)=>{const r=D(e,t);return n(r,t)});const L=d?null:(0,s.createElement)(A_,{"aria-label":(0,u.__)("Select unit"),disabled:l,isUnitSelectTabbable:m,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=T?T:""}${e}`;p&&void 0!==(null==n?void 0:n.default)&&(r=`${n.default}${e}`),null==v||v(r,t),null==g||g(e,t),M(e)},size:b,unit:R,units:S,onBlur:E});let z=C.step;if(!z&&S){var B;const e=S.find((e=>e.value===R));z=null!==(B=null==e?void 0:e.step)&&void 0!==B?B:1}return(0,s.createElement)(Wg,{className:"components-unit-control-wrapper",style:y},(0,s.createElement)(qg,a({type:f?"text":"number"},C,{autoComplete:r,className:P,disabled:l,disableUnits:d,isPressEnterToChange:f,label:h,onBlur:e=>{O(e),null==E||E(e)},onKeyDown:e=>{const{key:t}=e;"Enter"===t&&O(e)},onChange:(e,t)=>{if(""===e||null==e)return void(null==v||v("",t));const n=R_(e,S,T,R).join("");null==v||v(n,t)},ref:t,size:b,suffix:L,value:null!=T?T:"",step:z,__unstableStateReducer:A})))}));var z_=L_;function B_(e){const{className:t,isCompact:n,onChange:r,shouldSanitizeBorder:o=!0,value:i,width:a,__next36pxDefaultSize:l=!1,...c}=Ju(e,"BorderControl"),[u,d]=N_(null==i?void 0:i.width),f=d||"px",p=0===u,[m,h]=(0,s.useState)(),[v,g]=(0,s.useState)(),b=(0,s.useCallback)((e=>{if(o)return r((e=>{const t=void 0===(null==e?void 0:e.width)||""===e.width,n=void 0===(null==e?void 0:e.color);if(!t||!n)return e})(e));r(e)}),[r,o]),y=(0,s.useCallback)((e=>{const t=""===e?void 0:e,[n]=N_(e),r=0===n,o={...i,width:t};r&&!p&&(h(null==i?void 0:i.color),g(null==i?void 0:i.style),o.color=void 0,o.style="none"),!r&&p&&(void 0===o.color&&(o.color=m),"none"===o.style&&(o.style=v)),b(o)}),[i,p,m,v,b]),w=(0,s.useCallback)((e=>{y(`${e}${f}`)}),[y,f]),x=Zu(),_=(0,s.useMemo)((()=>x(Qg,t)),[t,x]),E=n?"90px":a,C=(0,s.useMemo)((()=>{const e=!!E&&eb,t=(e=>Ef("height:",e?"36px":"30px",";",""))(l);return x(Ef(Wg,"{flex:1 1 40%;}&& ",Xg,"{min-height:0;}",""),e,t)}),[E,x,l]),k=(0,s.useMemo)((()=>x(Ef("flex:1 1 60%;",ih({marginRight:vm(3)})()," ",_g,"{margin-bottom:0;font-size:0;display:flex;}",""))),[x]);return{...c,className:_,innerWrapperClassName:C,inputWidth:E,onBorderChange:b,onSliderChange:w,onWidthChange:y,previousStyleSelection:v,sliderClassName:k,value:i,widthUnit:f,widthValue:u,__next36pxDefaultSize:l}}const F_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(pd,{as:"legend"},t):(0,s.createElement)(Cg,{as:"legend"},t):null},H_=Qu(((e,t)=>{const{colors:n,disableCustomColors:r,enableAlpha:o,enableStyle:i=!0,hideLabelFromVision:l,innerWrapperClassName:c,inputWidth:d,label:f,onBorderChange:p,onSliderChange:m,onWidthChange:h,placeholder:v,__unstablePopoverProps:g,previousStyleSelection:b,showDropdownHeader:y,sliderClassName:w,value:x,widthUnit:_,widthValue:E,withSlider:C,__experimentalHasMultipleOrigins:k,__experimentalIsRenderedInSidebar:S,__next36pxDefaultSize:T,...N}=B_(e);return(0,s.createElement)(fd,a({as:"fieldset"},N,{ref:t}),(0,s.createElement)(F_,{label:f,hideLabelFromVision:l}),(0,s.createElement)(dy,{spacing:3,className:c},(0,s.createElement)(z_,{prefix:(0,s.createElement)(D_,{border:x,colors:n,__unstablePopoverProps:g,disableCustomColors:r,enableAlpha:o,enableStyle:i,onChange:p,previousStyleSelection:b,showDropdownHeader:y,__experimentalHasMultipleOrigins:k,__experimentalIsRenderedInSidebar:S,__next36pxDefaultSize:T}),label:(0,u.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:h,value:(null==x?void 0:x.width)||"",placeholder:v,__unstableInputWidth:d}),C&&(0,s.createElement)(ay,{label:(0,u.__)("Border width"),hideLabelFromVision:!0,className:w,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(_)?1:.1,value:E||void 0,withInputField:!1})))}),"BorderControl");var V_=H_;const j_={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 $_(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:a=3,isInline:l=!1,justify:c,rowGap:u,rows:d,templateColumns:f,templateRows:p,...m}=Ju(e,"Grid"),h=hm(Array.isArray(i)?i:[i]),v=hm(Array.isArray(d)?d:[d]),g=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${v}, 1fr )`,y=Zu();return{...m,className:(0,s.useMemo)((()=>{const e=function(e){return e?j_[e]:{}}(n),i=Ef({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${Am.gridBase} * ${a} )`,gridTemplateColumns:g||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:c,verticalAlign:l?"middle":void 0,...e},"","");return y(i,r)}),[t,n,r,o,y,a,g,b,l,c,u])}}var W_=Qu((function(e,t){const n=$_(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"Grid");function U_(e){const{className:t,...n}=Ju(e,"BorderBoxControlSplitControls"),r=Zu(),o=ih.watch(),i=(0,s.useMemo)((()=>r(Ef("position:relative;flex:1;",ih({marginRight:vm(3)},{marginLeft:vm(3)})(),";",""),t)),[r,t,o]);return{...n,centeredClassName:(0,s.useMemo)((()=>r(Ag,t)),[r,t]),className:i,rightAlignedClassName:(0,s.useMemo)((()=>r(Ef(ih({marginLeft:"auto"},{marginRight:"auto"})(),";",""),t)),[r,t,o])}}var G_=Qu(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,onChange:c,popoverPlacement:f,popoverOffset:p,rightAlignedClassName:m,value:h,__experimentalHasMultipleOrigins:v,__experimentalIsRenderedInSidebar:g,__next36pxDefaultSize:b,...y}=U_(e),[w,x]=(0,s.useState)(null),_=(0,s.useMemo)((()=>f?{placement:f,offset:p,anchor:w,shift:!0}:void 0),[f,p,w]),E={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,isCompact:!0,__experimentalHasMultipleOrigins:v,__experimentalIsRenderedInSidebar:g,__next36pxDefaultSize:b},C=(0,d.useMergeRefs)([x,t]);return(0,s.createElement)(W_,a({},y,{ref:C,gap:4}),(0,s.createElement)(Fg,{value:h,__next36pxDefaultSize:b}),(0,s.createElement)(V_,a({className:n,hideLabelFromVision:!0,label:(0,u.__)("Top border"),onChange:e=>c(e,"top"),__unstablePopoverProps:_,value:null==h?void 0:h.top},E)),(0,s.createElement)(V_,a({hideLabelFromVision:!0,label:(0,u.__)("Left border"),onChange:e=>c(e,"left"),__unstablePopoverProps:_,value:null==h?void 0:h.left},E)),(0,s.createElement)(V_,a({className:m,hideLabelFromVision:!0,label:(0,u.__)("Right border"),onChange:e=>c(e,"right"),__unstablePopoverProps:_,value:null==h?void 0:h.right},E)),(0,s.createElement)(V_,a({className:n,hideLabelFromVision:!0,label:(0,u.__)("Bottom border"),onChange:e=>c(e,"bottom"),__unstablePopoverProps:_,value:null==h?void 0:h.bottom},E)))}),"BorderBoxControlSplitControls");const q_=["top","right","bottom","left"],Y_=["color","style","width"],K_=e=>!e||!Y_.some((t=>void 0!==e[t])),X_=e=>{if(!e)return!1;if(Z_(e)){return!q_.every((t=>K_(e[t])))}return!K_(e)},Z_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).some((e=>-1!==q_.indexOf(e)))},J_=e=>{if(!Z_(e))return!1;const t=q_.map((t=>Q_(null==e?void 0:e[t])));return!t.every((e=>e===t[0]))},Q_=(e,t)=>{if(K_(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")};function eE(e){const{className:t,onChange:n,value:r,...o}=Ju(e,"BorderBoxControl"),i=J_(r),a=Z_(r),l=a?(e=>{if(!e)return;const t=[],n=[],r=[];q_.forEach((o=>{var i,a,s;t.push(null===(i=e[o])||void 0===i?void 0:i.color),n.push(null===(a=e[o])||void 0===a?void 0:a.style),r.push(null===(s=e[o])||void 0===s?void 0:s.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:void 0}})(r):r,c=a?r:(e=>{if(e&&!K_(e))return{top:e,right:e,bottom:e,left:e}})(r),[u,d]=(0,s.useState)(!i),f=Zu(),p=(0,s.useMemo)((()=>f(Pg,t)),[f,t]),m=(0,s.useMemo)((()=>f(Og)),[f]);return{...o,className:p,hasMixedBorders:i,isLinked:u,linkedControlClassName:m,onLinkedChange:e=>{if(!e)return n(void 0);if(!i||(e=>!!e&&Y_.every((t=>void 0!==e[t])))(e))return n(K_(e)?void 0:e);const t=((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})(l,e),o={top:{...null==r?void 0:r.top,...t},right:{...null==r?void 0:r.right,...t},bottom:{...null==r?void 0:r.bottom,...t},left:{...null==r?void 0:r.left,...t}};if(J_(o))return n(o);const a=K_(o.top)?void 0:o.top;n(a)},onSplitChange:(e,t)=>{const r={...c,[t]:e};J_(r)?n(r):n(e)},toggleLinked:()=>d(!u),linkedValue:l,splitValue:c}}const tE=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,s.createElement)(pd,{as:"label"},t):(0,s.createElement)(Cg,null,t):null},nE=Qu(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,hasMixedBorders:c,hideLabelFromVision:f,isLinked:p,label:m,linkedControlClassName:h,linkedValue:v,onLinkedChange:g,onSplitChange:b,popoverPlacement:y,popoverOffset:w,splitValue:x,toggleLinked:_,__experimentalHasMultipleOrigins:E,__experimentalIsRenderedInSidebar:C,__next36pxDefaultSize:k=!1,...S}=eE(e),[T,N]=(0,s.useState)(null),R=(0,s.useMemo)((()=>y?{placement:y,offset:w,anchor:T,shift:!0}:void 0),[y,w,T]),M=(0,d.useMergeRefs)([N,t]);return(0,s.createElement)(fd,a({className:n},S,{ref:M}),(0,s.createElement)(tE,{label:m,hideLabelFromVision:f}),(0,s.createElement)(dy,{alignment:"start",expanded:!0,spacing:0},p?(0,s.createElement)(V_,{className:h,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,onChange:g,placeholder:c?(0,u.__)("Mixed"):void 0,__unstablePopoverProps:R,shouldSanitizeBorder:!1,value:v,withSlider:!0,width:"110px",__experimentalHasMultipleOrigins:E,__experimentalIsRenderedInSidebar:C,__next36pxDefaultSize:k}):(0,s.createElement)(G_,{colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:w,value:x,__experimentalHasMultipleOrigins:E,__experimentalIsRenderedInSidebar:C,__next36pxDefaultSize:k}),(0,s.createElement)(zg,{onClick:_,isLinked:p,__next36pxDefaultSize:k})))}),"BorderBoxControl");var rE=nE;const oE=ud("div",{target:"e7pk0lh6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),iE=ud(bm,{target:"e7pk0lh5"})({name:"5bhc30",styles:"margin-bottom:8px"}),aE=ud(bm,{target:"e7pk0lh4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),sE=ud("div",{target:"e7pk0lh3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),lE=ud(bm,{target:"e7pk0lh2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),cE=ud(bm,{target:"e7pk0lh1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var uE={name:"1ch9yvl",styles:"border-radius:0"},dE={name:"tg3mx0",styles:"border-radius:2px"};const fE=e=>{let{isFirst:t,isLast:n,isOnly:r}=e;return t?ih({borderTopRightRadius:0,borderBottomRightRadius:0})():n?ih({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?dE:uE},pE=e=>{let{isFirst:t,isOnly:n}=e;return ih({marginLeft:t||n?0:-1})()},mE=ud(z_,{target:"e7pk0lh0"})("max-width:60px;",fE,";",pE,";"),hE=()=>{};function vE(e){let{isFirst:t,isLast:n,isOnly:r,onHoverOn:o=hE,onHoverOff:i=hE,label:l,value:c,...u}=e;const d=(f=e=>{let{event:t,...n}=e;n.hovering?o(t,n):i(t,n)},av(lv),bv({hover:f},p||{},"hover"));var f,p;return(0,s.createElement)(sE,d(),(0,s.createElement)(gE,{text:l},(0,s.createElement)(mE,a({"aria-label":l,className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:c},u))))}function gE(e){let{children:t,text:n}=e;return n?(0,s.createElement)(gf,{text:n,position:"top"},(0,s.createElement)("div",null,t)):t}const bE={all:(0,u.__)("All"),top:(0,u.__)("Top"),bottom:(0,u.__)("Bottom"),left:(0,u.__)("Left"),right:(0,u.__)("Right"),mixed:(0,u.__)("Mixed"),vertical:(0,u.__)("Vertical"),horizontal:(0,u.__)("Horizontal")},yE={top:void 0,right:void 0,bottom:void 0,left:void 0},wE=["top","right","bottom","left"];function xE(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function _E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wE;const r=TE(n),o=r.map((t=>N_(e[t]))),i=o.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),a=o.map((e=>e[1])),s=i.every((e=>e===i[0]))?i[0]:"";let l;var c;"number"==typeof s?l=xE(a):l=null!==(c=EE(t))&&void 0!==c?c:xE(a);return[s,l].join("")}function EE(e){if(!e||"object"!=typeof e)return;return xE(Object.values(e).filter(Boolean))}function CE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wE;const r=_E(e,t,n),o=isNaN(parseFloat(r));return o}function kE(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function SE(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function TE(e){const t=[];if(null==e||!e.length)return wE;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=wE.filter((t=>e.includes(t)));t.push(...n)}return t}function NE(e,t,n){const r={...e};return null!=n&&n.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):wE.forEach((e=>r[e]=t)),r}const RE=()=>{};function ME(e){let{onChange:t=RE,onFocus:n=RE,onHoverOn:r=RE,onHoverOff:o=RE,values:i,sides:l,selectedUnits:c,setSelectedUnits:u,...d}=e;const f=_E(i,c,l),p=kE(i)&&CE(i,c,l),m=p?bE.mixed:null;return(0,s.createElement)(vE,a({},d,{disableUnits:p,isOnly:!0,value:f,onChange:e=>{const n=!isNaN(parseFloat(e)),r=NE(i,n?e:void 0,l);t(r)},onUnitChange:e=>{const t=NE(c,e,l);u(t)},onFocus:e=>{n(e,{side:"all"})},onHoverOn:()=>{r({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{o({top:!1,bottom:!1,left:!1,right:!1})},placeholder:m}))}const IE=()=>{};function PE(e){let{onChange:t=IE,onFocus:n=IE,onHoverOn:r=IE,onHoverOff:o=IE,values:i,selectedUnits:l,setSelectedUnits:c,sides:u,...d}=e;const f=e=>t=>{n(t,{side:e})},p=e=>()=>{r({[e]:!0})},m=e=>()=>{o({[e]:!1})},h=e=>(n,r)=>{let{event:o}=r;const{altKey:a}=o,s={...i},l=!isNaN(parseFloat(n))?n:void 0;if(s[e]=l,a)switch(e){case"top":s.bottom=l;break;case"bottom":s.top=l;break;case"left":s.right=l;break;case"right":s.left=l}(e=>{t(e)})(s)},v=e=>t=>{const n={...l};n[e]=t,c(n)},g=null!=u&&u.length?wE.filter((e=>u.includes(e))):wE,b=g[0],y=g[g.length-1],w=b===y&&b;return(0,s.createElement)(lE,{className:"component-box-control__input-controls-wrapper"},(0,s.createElement)(cE,{gap:0,align:"top",className:"component-box-control__input-controls"},g.map((e=>{const[t,n]=N_(i[e]),r=i[e]?n:l[e];return(0,s.createElement)(vE,a({},d,{isFirst:b===e,isLast:y===e,isOnly:w===e,value:[t,r].join(""),onChange:h(e),onUnitChange:v(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:m(e),label:bE[e],key:`box-control-${e}`}))}))))}const OE=["vertical","horizontal"];function DE(e){let{onChange:t,onFocus:n,onHoverOn:r,onHoverOff:o,values:i,selectedUnits:l,setSelectedUnits:c,sides:u,...d}=e;const f=e=>t=>{n&&n(t,{side:e})},p=e=>()=>{r&&("vertical"===e&&r({top:!0,bottom:!0}),"horizontal"===e&&r({left:!0,right:!0}))},m=e=>()=>{o&&("vertical"===e&&o({top:!1,bottom:!1}),"horizontal"===e&&o({left:!1,right:!1}))},h=e=>n=>{if(!t)return;const r={...i},o=!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(r.top=o,r.bottom=o),"horizontal"===e&&(r.left=o,r.right=o),t(r)},v=e=>t=>{const n={...l};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),c(n)},g=null!=u&&u.length?OE.filter((e=>u.includes(e))):OE,b=g[0],y=g[g.length-1],w=b===y&&b;return(0,s.createElement)(cE,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},g.map((e=>{const[t,n]=N_("vertical"===e?i.top:i.left),r="vertical"===e?l.top:l.left;return(0,s.createElement)(vE,a({},d,{isFirst:b===e,isLast:y===e,isOnly:w===e,value:[t,null!=r?r:n].join(""),onChange:h(e),onUnitChange:v(e),onFocus:f(e),onHoverOn:p(e),onHoverOff:m(e),label:bE[e],key:e}))})))}const AE=ud("span",{target:"eaw9yqk8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),LE=ud("span",{target:"eaw9yqk7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),zE=ud("span",{target:"eaw9yqk6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(e=>{let{isFocused:t}=e;return Ef({backgroundColor:"currentColor",opacity:t?1:.3},"","")}),";"),BE=ud(zE,{target:"eaw9yqk5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),FE=ud(zE,{target:"eaw9yqk4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),HE=ud(FE,{target:"eaw9yqk3"})({name:"abcix4",styles:"top:0"}),VE=ud(BE,{target:"eaw9yqk2"})({name:"1wf8jf",styles:"right:0"}),jE=ud(FE,{target:"eaw9yqk1"})({name:"8tapst",styles:"bottom:0"}),$E=ud(BE,{target:"eaw9yqk0"})({name:"1ode3cm",styles:"left:0"});function WE(e){let{size:t=24,side:n="all",sides:r,...o}=e;const i=e=>!(e=>(null==r?void 0:r.length)&&!r.includes(e))(e)&&("all"===n||n===e),l=i("top")||i("vertical"),c=i("right")||i("horizontal"),u=i("bottom")||i("vertical"),d=i("left")||i("horizontal"),f=t/24;return(0,s.createElement)(AE,a({style:{transform:`scale(${f})`}},o),(0,s.createElement)(LE,null,(0,s.createElement)(HE,{isFocused:l}),(0,s.createElement)(VE,{isFocused:c}),(0,s.createElement)(jE,{isFocused:u}),(0,s.createElement)($E,{isFocused:d})))}function UE(e){let{isLinked:t,...n}=e;const r=t?(0,u.__)("Unlink sides"):(0,u.__)("Link sides");return(0,s.createElement)(gf,{text:r},(0,s.createElement)("span",null,(0,s.createElement)(hd,a({},n,{className:"component-box-control__linked-button",isSmall:!0,icon:t?Mg:Ig,iconSize:24,"aria-label":r}))))}const GE={min:0},qE=()=>{};function YE(e){let{id:t,inputProps:n=GE,onChange:r=qE,label:o=(0,u.__)("Box Control"),values:i,units:l,sides:c,splitOnAxis:f=!1,allowReset:p=!0,resetValues:m=yE}=e;const[h,v]=Tb(i,{fallback:yE}),g=h||yE,b=kE(i),y=1===(null==c?void 0:c.length),[w,x]=(0,s.useState)(b),[_,E]=(0,s.useState)(!b||!CE(g)||y),[C,k]=(0,s.useState)(SE(_,f)),[S,T]=(0,s.useState)({top:N_(null==i?void 0:i.top)[1],right:N_(null==i?void 0:i.right)[1],bottom:N_(null==i?void 0:i.bottom)[1],left:N_(null==i?void 0:i.left)[1]}),N=function(e){const t=(0,d.useInstanceId)(YE,"inspector-box-control");return e||t}(t),R=`${N}-heading`,M={...n,onChange:e=>{r(e),v(e),x(!0)},onFocus:(e,t)=>{let{side:n}=t;k(n)},isLinked:_,units:l,selectedUnits:S,setSelectedUnits:T,sides:c,values:g};return(0,s.createElement)(oE,{id:N,role:"group","aria-labelledby":R},(0,s.createElement)(iE,{className:"component-box-control__header"},(0,s.createElement)(fm,null,(0,s.createElement)(Ng.VisualLabel,{id:R},o)),p&&(0,s.createElement)(fm,null,(0,s.createElement)(hd,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:()=>{r(m),v(m),T(m),x(!1)},disabled:!w},(0,u.__)("Reset")))),(0,s.createElement)(aE,{className:"component-box-control__header-control-wrapper"},(0,s.createElement)(fm,null,(0,s.createElement)(WE,{side:C,sides:c})),_&&(0,s.createElement)(dm,null,(0,s.createElement)(ME,a({"aria-label":o},M))),!_&&f&&(0,s.createElement)(dm,null,(0,s.createElement)(DE,M)),!y&&(0,s.createElement)(fm,null,(0,s.createElement)(UE,{onClick:()=>{E(!_),k(SE(!_,f))},isLinked:_}))),!_&&!f&&(0,s.createElement)(PE,M))}var KE=(0,s.forwardRef)((function(e,t){const{className:n,...r}=e,o=c()("components-button-group",n);return(0,s.createElement)("div",a({ref:t,role:"group",className:o},r))}));const XE={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function ZE(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const JE=Qu((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:a=!1,offset:l=0,value:c=0,...u}=Ju(e,"Elevation"),d=Zu();return{...u,className:(0,s.useMemo)((()=>{let e=wm(i)?i:2*c,s=wm(t)?t:c/2;a||(e=wm(i)?i:void 0,s=wm(t)?t:void 0);const u=`box-shadow ${Am.transitionDuration} ${Am.transitionTimingFunction}`,f={};return f.Base=Ef({borderRadius:n,bottom:l,boxShadow:ZE(c),opacity:Am.elevationIntensity,left:l,right:l,top:l,transition:u},ip("transition"),"",""),wm(e)&&(f.hover=Ef("*:hover>&{box-shadow:",ZE(e),";}","")),wm(s)&&(f.active=Ef("*:active>&{box-shadow:",ZE(s),";}","")),wm(o)&&(f.focus=Ef("*:focus>&{box-shadow:",ZE(o),";}","")),d(XE,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,d,o,i,a,l,c]),"aria-hidden":!0}}(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"Elevation");var QE=JE;const eC=`calc(${Am.cardBorderRadius} - 1px)`,tC=Ef("box-shadow:0 0 0 1px ",Am.surfaceBorderColor,";outline:none;",""),nC={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},rC={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},oC={name:"13udsys",styles:"height:100%"},iC={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},aC={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},sC={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},lC=Ef("&:first-of-type{border-top-left-radius:",eC,";border-top-right-radius:",eC,";}&:last-of-type{border-bottom-left-radius:",eC,";border-bottom-right-radius:",eC,";}",""),cC=Ef("border-color:",Am.colorDivider,";",""),uC={name:"1t90u8d",styles:"box-shadow:none"},dC={name:"1e1ncky",styles:"border:none"},fC=Ef("border-radius:",eC,";",""),pC=Ef("padding:",Am.cardPaddingXSmall,";",""),mC={large:Ef("padding:",Am.cardPaddingLarge,";",""),medium:Ef("padding:",Am.cardPaddingMedium,";",""),small:Ef("padding:",Am.cardPaddingSmall,";",""),xSmall:pC,extraSmall:pC},hC=Ef("background-color:",op.ui.backgroundDisabled,";",""),vC=Ef("background-color:",Am.surfaceColor,";color:",op.gray[900],";position:relative;","");Am.surfaceBackgroundColor;function gC(e){let{borderBottom:t,borderLeft:n,borderRight:r,borderTop:o}=e;const i=`1px solid ${Am.surfaceBorderColor}`;return Ef({borderBottom:t?i:void 0,borderLeft:n?i:void 0,borderRight:r?i:void 0,borderTop:o?i:void 0},"","")}const bC=Ef("",""),yC=Ef("background:",Am.surfaceBackgroundTintColor,";",""),wC=Ef("background:",Am.surfaceBackgroundTertiaryColor,";",""),xC=e=>[e,e].join(" "),_C=e=>["90deg",[Am.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),EC=e=>[[Am.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),CC=(e,t)=>Ef("background:",(e=>[`linear-gradient( ${_C(e)} ) center`,`linear-gradient( ${EC(e)} ) center`,Am.surfaceBorderBoldColor].join(","))(t),";background-size:",xC(e),";",""),kC=[`linear-gradient( ${[`${Am.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Am.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),SC=(e,t,n)=>{switch(e){case"dotted":return CC(t,n);case"grid":return(e=>Ef("background:",Am.surfaceBackgroundColor,";background-image:",kC,";background-size:",xC(e),";",""))(t);case"primary":return bC;case"secondary":return yC;case"tertiary":return wC}};function TC(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:a,variant:l="primary",...c}=Ju(e,"Surface"),u=Zu();return{...c,className:(0,s.useMemo)((()=>{const e={borders:gC({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(vC,e.borders,SC(l,`${t}px`,t-1+"px"),a)}),[t,n,r,o,i,a,u,l])}}function NC(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...a}=Ju(function(e){let{elevation:t,isElevated:n,...r}=e;const o={...r};let i=t;var a;return n&&(lc()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(a=i)&&void 0!==a||(i=2)),void 0!==i&&(o.elevation=i),o}(e),"Card"),l=Zu();return{...TC({...a,className:(0,s.useMemo)((()=>l(tC,r&&uC,o&&fC,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}var RC=Qu((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:l,...c}=NC(e),u=i?Am.cardBorderRadius:0,d=Zu(),f=(0,s.useMemo)((()=>d(Ef({borderRadius:u},"",""))),[d,u]),p=(0,s.useMemo)((()=>{const e={size:l,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,l]);return(0,s.createElement)(hc,{value:p},(0,s.createElement)(fd,a({},c,{ref:t}),(0,s.createElement)(fd,{className:d(oC)},n),(0,s.createElement)(QE,{className:f,isInteractive:!1,value:r?1:0}),(0,s.createElement)(QE,{className:f,isInteractive:!1,value:r})))}),"Card");const MC=Ef("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Am.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Am.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Am.colorScrollbarThumbHover,";}}",""),IC={name:"13udsys",styles:"height:100%"},PC={name:"7zq9w",styles:"scroll-behavior:smooth"},OC={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},DC={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},AC={name:"umwchj",styles:"overflow-y:auto"};var LC=Qu((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Ju(e,"Scrollable"),i=Zu();return{...o,className:(0,s.useMemo)((()=>i(IC,MC,r&&PC,"x"===n&&OC,"y"===n&&DC,"auto"===n&&AC,t)),[t,i,n,r])}}(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"Scrollable");var zC=Qu((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Ju(e,"CardBody"),a=Zu();return{...i,className:(0,s.useMemo)((()=>a(iC,lC,mC[o],r&&hC,"components-card__body",t)),[t,a,r,o]),isScrollable:n}}(e);return n?(0,s.createElement)(LC,a({},r,{ref:t})):(0,s.createElement)(fd,a({},r,{ref:t}))}),"CardBody"),BC=F({name:"Separator",compose:re,keys:["orientation"],useOptions:function(e){var t=e.orientation;return m({orientation:void 0===t?"horizontal":t},h(e,["orientation"]))},useProps:function(e,t){return m({role:"separator","aria-orientation":e.orientation},t)}}),FC=z({as:"hr",memo:!0,useHook:BC});const HC={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var VC={name:"1u4hpl4",styles:"display:inline"};const jC=ud("hr",{target:"e19on6iw0"})("border:0;margin:0;",(e=>{let{"aria-orientation":t="horizontal"}=e;return"vertical"===t?VC:void 0})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return Ef({["vertical"===t?"borderRight":"borderBottom"]:"1px solid currentColor"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return Ef({height:"vertical"===t?"auto":0,width:"vertical"===t?0:"auto"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal",margin:n,marginStart:r,marginEnd:o}=e;return Ef(ih({[HC[t].start]:vm(null!=r?r:n),[HC[t].end]:vm(null!=o?o:n)})(),"","")}),";");var $C=Qu((function(e,t){const n=Ju(e,"Divider");return(0,s.createElement)(FC,a({as:jC},n,{ref:t}))}),"Divider");var WC=Qu((function(e,t){const n=function(e){const{className:t,...n}=Ju(e,"CardDivider"),r=Zu();return{...n,className:(0,s.useMemo)((()=>r(sC,cC,"components-card__divider",t)),[t,r])}}(e);return(0,s.createElement)($C,a({},n,{ref:t}))}),"CardDivider");var UC=Qu((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...a}=Ju(e,"CardFooter"),l=Zu();return{...a,className:(0,s.useMemo)((()=>l(rC,lC,cC,mC[i],r&&dC,o&&hC,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,s.createElement)(bm,a({},n,{ref:t}))}),"CardFooter");var GC=Qu((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Ju(e,"CardHeader"),a=Zu();return{...i,className:(0,s.useMemo)((()=>a(nC,lC,cC,mC[o],n&&dC,r&&hC,"components-card__header",t)),[t,a,n,r,o])}}(e);return(0,s.createElement)(bm,a({},n,{ref:t}))}),"CardHeader");var qC=Qu((function(e,t){const n=function(e){const{className:t,...n}=Ju(e,"CardMedia"),r=Zu();return{...n,className:(0,s.useMemo)((()=>r(aC,lC,"components-card__media",t)),[t,r])}}(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"CardMedia");var YC=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M7 11.5h10V13H7z"}));var KC=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:l,indeterminate:u,help:f,onChange:p,...m}=t;i&&lc()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,v]=(0,s.useState)(!1),[g,b]=(0,s.useState)(!1),y=(0,d.useRefEffect)((e=>{e&&(e.indeterminate=!!u,v(e.matches(":checked")),b(e.matches(":indeterminate")))}),[l,u]),w=`inspector-checkbox-control-${(0,d.useInstanceId)(e)}`;return(0,s.createElement)(Rg,{__nextHasNoMarginBottom:n,label:i,id:w,help:f,className:c()("components-checkbox-control",o)},(0,s.createElement)("span",{className:"components-checkbox-control__input-container"},(0,s.createElement)("input",a({ref:y,id:w,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:l,"aria-describedby":f?w+"__help":void 0},m)),g?(0,s.createElement)(wb,{icon:YC,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,s.createElement)(wb,{icon:l_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};function XC(e){let{className:t,children:n,onCopy:r,onFinishCopy:o,text:i,...l}=e;lc()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const u=(0,s.useRef)(),f=(0,d.useCopyToClipboard)(i,(()=>{r(),clearTimeout(u.current),o&&(u.current=setTimeout((()=>o()),4e3))}));(0,s.useEffect)((()=>{clearTimeout(u.current)}),[]);const p=c()("components-clipboard-button",t);return(0,s.createElement)(hd,a({},l,{className:p,ref:f,onCopy:e=>{e.target.focus()}}),n)}var ZC=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var JC=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const QC=Ef("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:left;&:hover{color:",op.ui.theme,";}&:focus{background-color:transparent;color:",op.ui.theme,";border-color:",op.ui.theme,";outline:3px solid transparent;}",""),ek={name:"1bcj5ek",styles:"width:100%;display:block"},tk={name:"a5hqs6",styles:"width:100%;display:block;margin:0;color:inherit"},nk=Ef("border:1px solid ",Am.surfaceBorderColor,";",""),rk=Ef(">*:not( marquee )>*{border-bottom:1px solid ",Am.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),ok=Am.controlBorderRadius,ik=Ef("border-radius:",ok,";",""),ak=Ef("border-radius:",ok,";>*:first-of-type>*{border-top-left-radius:",ok,";border-top-right-radius:",ok,";}>*:last-of-type>*{border-bottom-left-radius:",ok,";border-bottom-right-radius:",ok,";}",""),sk=`calc(${Am.fontSize} * ${Am.fontLineHeightBase})`,lk=`calc((${Am.controlHeight} - ${sk} - 2px) / 2)`,ck=`calc((${Am.controlHeightSmall} - ${sk} - 2px) / 2)`,uk=`calc((${Am.controlHeightLarge} - ${sk} - 2px) / 2)`,dk={small:Ef("padding:",ck," ",Am.controlPaddingXSmall,";",""),medium:Ef("padding:",lk," ",Am.controlPaddingX,";",""),large:Ef("padding:",uk," ",Am.controlPaddingXLarge,";","")};const fk=(0,s.createContext)({size:"medium"}),pk=()=>(0,s.useContext)(fk);var mk=Qu((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",...a}=Ju(e,"ItemGroup");return{isBordered:n,className:Zu()(n&&nk,o&&rk,r&&ak,t),role:i,isSeparated:o,...a}}(e),{size:l}=pk(),c={spacedAround:!n&&!r,size:o||l};return(0,s.createElement)(fk.Provider,{value:c},(0,s.createElement)(fd,a({},i,{ref:t})))}),"ItemGroup");function hk(e){return Math.max(0,Math.min(100,e))}function vk(e,t,n){const r=e.slice();return r[t]=n,r}function gk(e,t,n){if(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some(((e,o)=>{let{position:s}=e;return o!==t&&(Math.abs(s-n)({placement:"bottom",offset:8})),[]),i=c()("components-custom-gradient-picker__control-point-dropdown",n);return(0,s.createElement)(b_,a({isRenderedInSidebar:t,popoverProps:o,className:i},r))}function _k(e){let{disableRemove:t,disableAlpha:n,gradientPickerDomRef:r,ignoreMarkerPosition:o,value:i,onChange:a,onStartControlPointChange:l,onStopControlPointChange:c,__experimentalIsRenderedInSidebar:d}=e;const f=(0,s.useRef)(),p=e=>{const t=yk(e.clientX,r.current),{initialPosition:n,index:o,significantMoveHappened:s}=f.current;!s&&Math.abs(n-t)>=5&&(f.current.significantMoveHappened=!0),a(gk(i,o,t))},m=()=>{window&&window.removeEventListener&&f.current&&f.current.listenersActivated&&(window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",m),c(),f.current.listenersActivated=!1)},h=(0,s.useRef)();return h.current=m,(0,s.useEffect)((()=>()=>{h.current()}),[]),i.map(((e,r)=>{const h=null==e?void 0:e.position;return o!==h&&(0,s.createElement)(xk,{isRenderedInSidebar:d,key:r,onClose:c,renderToggle:t=>{let{isOpen:n,onToggle:o}=t;return(0,s.createElement)(wk,{key:r,onClick:()=>{f.current&&f.current.significantMoveHappened||(n?c():l(),o())},onMouseDown:()=>{window&&window.addEventListener&&(f.current={initialPosition:h,index:r,significantMoveHappened:!1,listenersActivated:!0},l(),window.addEventListener("mousemove",p),window.addEventListener("mouseup",m))},onKeyDown:t=>{"ArrowLeft"===t.code?(t.stopPropagation(),a(gk(i,r,hk(e.position-10)))):"ArrowRight"===t.code&&(t.stopPropagation(),a(gk(i,r,hk(e.position+10))))},isOpen:n,position:e.position,color:e.color})},renderContent:o=>{let{onClose:l}=o;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(s_,{enableAlpha:!n,color:e.color,onChange:e=>{a(bk(i,r,Xf(e).toRgbString()))}}),!t&&i.length>2&&(0,s.createElement)(dy,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,s.createElement)(hd,{onClick:()=>{a(function(e,t){return e.filter(((e,n)=>n!==t))}(i,r)),l()},variant:"link"},(0,u.__)("Remove Control Point"))))},style:{left:`${e.position}%`,transform:"translateX( -50% )"}})}))}_k.InsertPoint=function(e){let{value:t,onChange:n,onOpenInserter:r,onCloseInserter:o,insertPosition:i,disableAlpha:a,__experimentalIsRenderedInSidebar:l}=e;const[c,u]=(0,s.useState)(!1);return(0,s.createElement)(xk,{isRenderedInSidebar:l,className:"components-custom-gradient-picker__inserter",onClose:()=>{o()},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,s.createElement)(hd,{"aria-expanded":t,"aria-haspopup":"true",onClick:()=>{t?o():(u(!1),r()),n()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:ZC})},renderContent:()=>(0,s.createElement)(s_,{enableAlpha:!a,onChange:e=>{c?n(function(e,t,n){const r=e.findIndex((e=>e.position===t));return bk(e,r,n)}(t,i,Xf(e).toRgbString())):(n(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}(t,i,Xf(e).toRgbString())),u(!0))}}),style:null!==i?{left:`${i}%`,transform:"translateX( -50% )"}:void 0})};var Ek=_k;function Ck(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}const kk={id:"IDLE"};function Sk(e){let{background:t,hasGradient:n,value:r,onChange:o,disableInserter:i=!1,disableAlpha:a=!1,__experimentalIsRenderedInSidebar:l}=e;const u=(0,s.useRef)(),[d,f]=(0,s.useReducer)(Ck,kk),p=e=>{const t=yk(e.clientX,u.current);(0,dc.some)(r,(e=>{let{position:n}=e;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===d.id&&f({type:"STOP_INSERTER_MOVE"}):f({type:"MOVE_INSERTER",insertPosition:t})},m="MOVING_INSERTER"===d.id,h="INSERTING_CONTROL_POINT"===d.id;return(0,s.createElement)("div",{className:c()("components-custom-gradient-picker__gradient-bar",{"has-gradient":n}),onMouseEnter:p,onMouseMove:p,style:{background:t},onMouseLeave:()=>{f({type:"STOP_INSERTER_MOVE"})}},(0,s.createElement)("div",{ref:u,className:"components-custom-gradient-picker__markers-container"},!i&&(m||h)&&(0,s.createElement)(Ek.InsertPoint,{__experimentalIsRenderedInSidebar:l,disableAlpha:a,insertPosition:d.insertPosition,value:r,onChange:o,onOpenInserter:()=>{f({type:"OPEN_INSERTER"})},onCloseInserter:()=>{f({type:"CLOSE_INSERTER"})}}),(0,s.createElement)(Ek,{__experimentalIsRenderedInSidebar:l,disableAlpha:a,disableRemove:i,gradientPickerDomRef:u,ignoreMarkerPosition:h?d.insertPosition:void 0,value:r,onChange:o,onStartControlPointChange:()=>{f({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{f({type:"STOP_CONTROL_CHANGE"})}})))}var Tk=n(7115);const Nk="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Rk={type:"angular",value:90},Mk=[{value:"linear-gradient",label:(0,u.__)("Linear")},{value:"radial-gradient",label:(0,u.__)("Radial")}],Ik={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 Pk(e){let{type:t,value:n,length:r}=e;return`${function(e){let{type:t,value:n}=e;return"literal"===t?n:"hex"===t?`#${n}`:`${t}(${n.join(",")})`}({type:t,value:n})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(r)}`}function Ok(e){let{type:t,orientation:n,colorStops:r}=e;const o=function(e){if(e&&"angular"===e.type)return`${e.value}deg`}(n);return`${t}(${[o,...r.sort(((e,t)=>{var n,r,o,i;return(null!==(n=null==e||null===(r=e.length)||void 0===r?void 0:r.value)&&void 0!==n?n:0)-(null!==(o=null==t||null===(i=t.length)||void 0===i?void 0:i.value)&&void 0!==o?o:0)})).map(Pk)].filter(Boolean).join(",")})`}function Dk(e){return void 0===e.length||"%"!==e.length.type}function Ak(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"}}Jf([Qf]);const Lk=ud(dm,{target:"e99xvul1"})({name:"1gvx10y",styles:"flex-grow:5"}),zk=ud(dm,{target:"e99xvul0"})({name:"1gvx10y",styles:"flex-grow:5"}),Bk=e=>{var t,n;let{gradientAST:r,hasGradient:o,onChange:i}=e;const a=null!==(t=null==r||null===(n=r.orientation)||void 0===n?void 0:n.value)&&void 0!==t?t:180;return(0,s.createElement)(ig,{__nextHasNoMarginBottom:!0,onChange:e=>{i(Ok({...r,orientation:{type:"angular",value:e}}))},labelPosition:"top",value:o?a:""})},Fk=e=>{let{gradientAST:t,hasGradient:n,onChange:r}=e;const{type:o}=t;return(0,s.createElement)(kb,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,u.__)("Type"),labelPosition:"top",onChange:e=>{"linear-gradient"===e&&r(Ok({...t,...t.orientation?{}:{orientation:Rk},type:"linear-gradient"})),"radial-gradient"===e&&(()=>{const{orientation:e,...n}=t;r(Ok({...n,type:"radial-gradient"}))})()},options:Mk,size:"__unstable-large",value:n&&o})};function Hk(e){let{__nextHasNoMargin:t=!1,value:n,onChange:r,__experimentalIsRenderedInSidebar:o}=e;const i=function(e){var t;let n;try{n=Tk.parse(e)[0],n.value=e}catch(e){n=Tk.parse(Nk)[0],n.value=Nk}if("directional"===(null===(t=n.orientation)||void 0===t?void 0:t.type)&&(n.orientation.type="angular",n.orientation.value=Ik[n.orientation.value].toString()),n.colorStops.some(Dk)){const{colorStops:e}=n,t=100/(e.length-1);e.forEach(((e,n)=>{e.length={value:t*n,type:"%"}})),n.value=Ok(n)}return n}(n),a=function(e){return Ok({type:"linear-gradient",orientation:Rk,colorStops:e.colorStops})}(i),l=i.value!==Nk,u=i.colorStops.map((e=>({color:Ak(e),position:parseInt(e.length.value)})));return t||lc()("Outer margin styles for wp.components.CustomGradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,s.createElement)(u_,{spacing:4,className:c()("components-custom-gradient-picker",{"is-next-has-no-margin":t})},(0,s.createElement)(Sk,{__experimentalIsRenderedInSidebar:o,background:a,hasGradient:l,value:u,onChange:e=>{r(Ok(function(e,t){return{...e,colorStops:t.map((e=>{let{position:t,color:n}=e;const{r:r,g:o,b:i,a:a}=Xf(n).toRgb();return{length:{type:"%",value:null==t?void 0:t.toString()},type:a<1?"rgba":"rgb",value:a<1?[r,o,i,a]:[r,o,i]}}))}}(i,e)))}}),(0,s.createElement)(bm,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,s.createElement)(Lk,null,(0,s.createElement)(Fk,{gradientAST:i,hasGradient:l,onChange:r})),(0,s.createElement)(zk,null,"linear-gradient"===i.type&&(0,s.createElement)(Bk,{gradientAST:i,hasGradient:l,onChange:r}))))}function Vk(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:i,actions:a}=e;const l=(0,s.useMemo)((()=>(0,dc.map)(r,(e=>{let{gradient:t,name:r}=e;return(0,s.createElement)(c_.Option,{key:t,value:t,isSelected:i===t,tooltipText:r||(0,u.sprintf)((0,u.__)("Gradient code: %s"),t),style:{color:"rgba( 0,0,0,0 )",background:t},onClick:i===t?n:()=>o(t),"aria-label":r?(0,u.sprintf)((0,u.__)("Gradient: %s"),r):(0,u.sprintf)((0,u.__)("Gradient code: %s"),t)})}))),[r,i,o,n]);return(0,s.createElement)(c_,{className:t,options:l,actions:a})}function jk(e){let{className:t,clearGradient:n,gradients:r,onChange:o,value:i,actions:l}=e;return(0,s.createElement)(u_,{spacing:3,className:t},r.map(((e,t)=>{let{name:c,gradients:u}=e;return(0,s.createElement)(u_,{spacing:2,key:t},(0,s.createElement)(p_,null,c),(0,s.createElement)(Vk,a({clearGradient:n,gradients:u,onChange:o,value:i},r.length===t+1?{actions:l}:{})))})))}function $k(e){let{__nextHasNoMargin:t=!1,className:n,gradients:r,onChange:o,value:i,clearable:l=!0,disableCustomGradients:c=!1,__experimentalHasMultipleOrigins:d,__experimentalIsRenderedInSidebar:f}=e;const p=(0,s.useCallback)((()=>o(void 0)),[o]),m=d&&null!=r&&r.length?jk:Vk;t||lc()("Outer margin styles for wp.components.GradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"});const h=t?{}:{marginTop:null!=r&&r.length?void 0:3,marginBottom:l?0:6};return(0,s.createElement)(og,a({marginBottom:0},h),(0,s.createElement)(u_,{spacing:null!=r&&r.length?4:0},!c&&(0,s.createElement)(Hk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:f,value:i,onChange:o}),((null==r?void 0:r.length)||l)&&(0,s.createElement)(m,{className:n,clearable:l,clearGradient:p,gradients:r,onChange:o,value:i,actions:l&&!c&&(0,s.createElement)(c_.ButtonAction,{onClick:p},(0,u.__)("Clear"))})))}var Wk=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})),Uk=window.wp.dom;const Gk=()=>{},qk=["menuitem","menuitemradio","menuitemcheckbox"];class Yk extends s.Component{constructor(){super(...arguments),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.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?Uk.focus.tabbable:Uk.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=Gk,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target.getAttribute("role"),n=qk.includes(t),r="Tab"===e.code;(n||r)&&e.preventDefault()}if(!a)return;const s=t(e.target.ownerDocument.activeElement);if(!s)return;const{index:l,focusables:c}=s,u=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(l,c.length,a):l+a;u>=0&&u(0,s.createElement)(Yk,a({},e,{forwardedRef:t}));Kk.displayName="NavigableContainer";var Xk=(0,s.forwardRef)(Kk);var Zk=(0,s.forwardRef)((function(e,t){let{role:n="menu",orientation:r="vertical",...o}=e;return(0,s.createElement)(Xk,a({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:r,eventToOffset:e=>{const{code:t}=e;let n=["ArrowDown"],o=["ArrowUp"];return"horizontal"===r&&(n=["ArrowRight"],o=["ArrowLeft"]),"both"===r&&(n=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),n.includes(t)?1:o.includes(t)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(t)?0:void 0}},o))}));function Jk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,...t};return t.className&&e.className&&(n.className=c()(t.className,e.className)),n}function Qk(e){return"function"==typeof e}var eS=function(e){const{children:t,className:n,controls:r,icon:o=Wk,label:i,popoverProps:l,toggleProps:u,menuProps:d,disableOpenOnArrowDown:f=!1,text:p,noIcons:m}=e;if(!(null!=r&&r.length||Qk(t)))return null;let h;null!=r&&r.length&&(h=r,Array.isArray(h[0])||(h=[h]));const v=Jk({className:"components-dropdown-menu__popover"},l);return(0,s.createElement)(hb,{className:c()("components-dropdown-menu",n),popoverProps:v,renderToggle:e=>{var t;let{isOpen:n,onToggle:r}=e;const l=Jk({className:c()("components-dropdown-menu__toggle",{"is-opened":n})},u);return(0,s.createElement)(hd,a({},l,{icon:o,onClick:e=>{r(e),l.onClick&&l.onClick(e)},onKeyDown:e=>{(e=>{f||n||"ArrowDown"!==e.code||(e.preventDefault(),r())})(e),l.onKeyDown&&l.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:i,text:p,showTooltip:null===(t=null==u?void 0:u.showTooltip)||void 0===t||t}),l.children)},renderContent:e=>{var n;const r=Jk({"aria-label":i,className:c()("components-dropdown-menu__menu",{"no-icons":m})},d);return(0,s.createElement)(Zk,a({},r,{role:"menu"}),Qk(t)?t(e):null,null===(n=h)||void 0===n?void 0:n.flatMap(((t,n)=>t.map(((t,r)=>(0,s.createElement)(hd,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:c()("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",disabled:t.isDisabled},t.title))))))}})};const tS=ud(c_.Option,{target:"e5bw3229"})("width:",vm(6),";height:",vm(6),";pointer-events:none;"),nS=ud(Fv,{target:"e5bw3228"})(uh,"{background:",op.gray[100],";border-radius:",Am.controlBorderRadius,";",fh,fh,fh,fh,"{height:",vm(8),";}",vh,vh,vh,"{border-color:transparent;box-shadow:none;}}"),rS=ud(fd,{target:"e5bw3227"})("padding:3px 0 3px ",vm(3),";height:calc( 40px - ",Am.borderWidth," );border:1px solid ",Am.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",Am.controlBorderRadius,";border-top-right-radius:",Am.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",Am.controlBorderRadius,";border-bottom-right-radius:",Am.controlBorderRadius,";border-bottom-color:",Am.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",op.ui.theme,";}"),oS=ud("div",{target:"e5bw3226"})("line-height:",vm(8),";margin-left:",vm(2),";margin-right:",vm(2),";white-space:nowrap;overflow:hidden;",rS,":hover &{color:",op.ui.theme,";}"),iS=ud(f_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",vm(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),aS=ud(fd,{target:"e5bw3224"})("height:",vm(6),";display:flex;"),sS=ud(dy,{target:"e5bw3223"})("margin-bottom:",vm(2),";"),lS=ud(fd,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),cS=ud(hd,{target:"e5bw3221"})("&&{color:",op.ui.theme,";}"),uS=ud(hd,{target:"e5bw3220"})("&&{margin-top:",vm(1),";}"),dS="#000";function fS(e){let{value:t,onChange:n,label:r}=e;return(0,s.createElement)(nS,{label:r,hideLabelFromVision:!0,value:t,onChange:n})}function pS(e){let{canOnlyChangeValues:t,element:n,onChange:r,isEditing:o,onStartEditing:i,onRemove:l,onStopEditing:c,slugPrefix:f,isGradient:p}=e;const m=(0,d.__experimentalUseFocusOutside)(c),h=p?n.gradient:n.color;return(0,s.createElement)(rS,a({className:o?"is-selected":void 0,as:"div",onClick:i},o?{...m}:{style:{cursor:"pointer"}}),(0,s.createElement)(dy,{justify:"flex-start"},(0,s.createElement)(fm,null,(0,s.createElement)(tS,{style:{background:h,color:"transparent"}})),(0,s.createElement)(fm,null,o&&!t?(0,s.createElement)(fS,{label:p?(0,u.__)("Gradient name"):(0,u.__)("Color name"),value:n.name,onChange:e=>r({...n,name:e,slug:f+(0,dc.kebabCase)(e)})}):(0,s.createElement)(oS,null,n.name)),o&&!t&&(0,s.createElement)(fm,null,(0,s.createElement)(uS,{isSmall:!0,icon:Vg,label:(0,u.__)("Remove color"),onClick:l}))),o&&(0,s.createElement)(uf,{placement:"left-start",offset:20,className:"components-palette-edit__popover"},!p&&(0,s.createElement)(s_,{color:h,enableAlpha:!0,onChange:e=>r({...n,color:e})}),p&&(0,s.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,s.createElement)(Hk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:h,onChange:e=>r({...n,gradient:e})}))))}function mS(e,t){let{slug:n,color:r,gradient:o}=t;return new RegExp(`^${e}color-([\\d]+)$`).test(n)&&(!!r&&r===dS||!!o&&o===Nk)}function hS(e){let{elements:t,onChange:n,editingElement:r,setEditingElement:o,canOnlyChangeValues:i,slugPrefix:a,isGradient:l}=e;const c=(0,s.useRef)();(0,s.useEffect)((()=>{c.current=t}),[t]),(0,s.useEffect)((()=>()=>{if(c.current.some(((e,t)=>mS(a,e)))){const e=c.current.filter((e=>!mS(a,e)));n(e.length?e:void 0)}}),[]);const u=(0,d.useDebounce)(n,100);return(0,s.createElement)(u_,{spacing:3},(0,s.createElement)(mk,{isRounded:!0},t.map(((e,c)=>(0,s.createElement)(pS,{isGradient:l,canOnlyChangeValues:i,key:c,element:e,onStartEditing:()=>{r!==c&&o(c)},onChange:e=>{u(t.map(((t,n)=>n===c?e:t)))},onRemove:()=>{o(null);const e=t.filter(((e,t)=>t!==c));n(e.length?e:void 0)},isEditing:c===r,onStopEditing:()=>{c===r&&o(null)},slugPrefix:a})))))}const vS=[];function gS(e){let{gradients:t,colors:n=vS,onChange:r,paletteLabel:o,emptyMessage:i,canOnlyChangeValues:a,canReset:l,slugPrefix:c=""}=e;const d=!!t,f=d?t:n,[p,m]=(0,s.useState)(!1),[h,v]=(0,s.useState)(null),g=p&&h&&f[h]&&!f[h].slug,b=f.length>0;return(0,s.createElement)(lS,null,(0,s.createElement)(sS,null,(0,s.createElement)(iS,null,o),(0,s.createElement)(aS,null,p&&(0,s.createElement)(cS,{isSmall:!0,onClick:()=>{m(!1),v(null)}},(0,u.__)("Done")),!a&&(0,s.createElement)(hd,{isSmall:!0,isPressed:g,icon:ZC,label:d?(0,u.__)("Add gradient"):(0,u.__)("Add color"),onClick:()=>{const e=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof(null==t?void 0:t.slug)){const r=null==t?void 0:t.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,u.sprintf)((0,u.__)("Color %s"),r)}(f,c);r([...f,{...d?{gradient:Nk}:{color:dS},name:e,slug:c+(0,dc.kebabCase)(e)}]),m(!0),v(f.length)}}),b&&(!p||!a||l)&&(0,s.createElement)(eS,{icon:JC,label:d?(0,u.__)("Gradient options"):(0,u.__)("Color options"),toggleProps:{isSmall:!0}},(e=>{let{onClose:t}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Zk,{role:"menu"},!p&&(0,s.createElement)(hd,{variant:"tertiary",onClick:()=>{m(!0),t()},className:"components-palette-edit__menu-button"},d?(0,u.__)("Edit gradients"):(0,u.__)("Edit colors")),!a&&(0,s.createElement)(hd,{variant:"tertiary",onClick:()=>{v(null),m(!1),r(),t()},className:"components-palette-edit__menu-button"},d?(0,u.__)("Remove all gradients"):(0,u.__)("Remove all colors")),l&&(0,s.createElement)(hd,{variant:"tertiary",onClick:()=>{v(null),r(),t()}},d?(0,u.__)("Reset gradient"):(0,u.__)("Reset colors"))))})))),b&&(0,s.createElement)(s.Fragment,null,p&&(0,s.createElement)(hS,{canOnlyChangeValues:a,elements:f,onChange:r,editingElement:h,setEditingElement:v,slugPrefix:c,isGradient:d}),!p&&(d?(0,s.createElement)($k,{__nextHasNoMargin:!0,gradients:t,onChange:()=>{},clearable:!1,disableCustomGradients:!0}):(0,s.createElement)(w_,{colors:n,onChange:()=>{},clearable:!1,disableCustomColors:!0}))),!b&&i)}const bS=e=>{let{__next36pxDefaultSize:t}=e;return!t&&Ef("height:28px;padding-left:",vm(1),";padding-right:",vm(1),";","")},yS=ud(bm,{target:"evuatpg0"})("height:34px;padding-left:",vm(2),";padding-right:",vm(2),";",bS,";");const wS=(0,s.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:l,onChange:u,onFocus:d,onBlur:f,...p}=e,[m,h]=(0,s.useState)(!1),v=n?n.length+1:0;return(0,s.createElement)("input",a({ref:t,id:`components-form-token-input-${o}`,type:"text"},p,{value:n||"",onChange:e=>{u&&u({value:e.target.value})},onFocus:e=>{h(!0),null==d||d(e)},onBlur:e=>{h(!1),null==f||f(e)},size:v,className:c()(l,"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":m&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`}))}));var xS=wS,_S=n(5425),ES=n.n(_S);const CS=e=>{e.preventDefault()};var kS=function(e){let{selectedIndex:t,scrollIntoView:n,match:r,onHover:o,onSelect:i,suggestions:a=[],displayTransform:l,instanceId:u,__experimentalRenderItem:f}=e;const[p,m]=(0,s.useState)(!1),h=(0,d.useRefEffect)((e=>{let r;return t>-1&&n&&e.children[t]&&(m(!0),ES()(e.children[t],e,{onlyScrollIfNeeded:!0}),r=window.setTimeout((()=>{m(!1)}),100)),()=>{void 0!==r&&window.clearTimeout(r)}}),[t,n]),v=e=>()=>{p||null==o||o(e)},g=e=>()=>{null==i||i(e)};return(0,s.createElement)("ul",{ref:h,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${u}`,role:"listbox"},a.map(((e,n)=>{const o=(e=>{const t=l(r).toLocaleLowerCase();if(0===t.length)return null;const n=l(e),o=n.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:n.substring(0,o),suggestionMatch:n.substring(o,o+t.length),suggestionAfterMatch:n.substring(o+t.length)}})(e),i=c()("components-form-token-field__suggestion",{"is-selected":n===t});let a;return a="function"==typeof f?f({item:e}):o?(0,s.createElement)("span",{"aria-label":l(e)},o.suggestionBeforeMatch,(0,s.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):l(e),(0,s.createElement)("li",{id:`components-form-token-suggestions-${u}-${n}`,role:"option",className:i,key:"object"==typeof e&&"value"in e?null==e?void 0:e.value:l(e),onMouseDown:CS,onClick:g(e),onMouseEnter:v(e),"aria-selected":n===t},a)})))},SS=(0,d.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,s.useState)(),o=(0,s.useCallback)((e=>r((()=>null!=e&&e.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,s.createElement)("div",(0,d.__experimentalUseFocusOutside)(n),(0,s.createElement)(e,a({ref:o},t)))}),"withFocusOutside");const TS=()=>{},NS=SS(class extends s.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}});var RS=function e(t){var n;let{__nextHasNoMarginBottom:r=!1,__next36pxDefaultSize:o,value:i,label:a,options:l,onChange:f,onFilterValueChange:p=TS,hideLabelFromVision:m,help:h,allowReset:v=!0,className:g,messages:b={selected:(0,u.__)("Item selected.")},__experimentalRenderItem:y}=t;const[w,x]=t_({value:i,onChange:f}),_=l.find((e=>e.value===w)),E=null!==(n=null==_?void 0:_.label)&&void 0!==n?n:"",C=(0,d.useInstanceId)(e,"combobox-control"),[k,S]=(0,s.useState)(_||null),[T,N]=(0,s.useState)(!1),[R,M]=(0,s.useState)(!1),[I,P]=(0,s.useState)(""),O=(0,s.useRef)(),D=(0,s.useMemo)((()=>{const e=[],t=[],n=fg(I);return l.forEach((r=>{const o=fg(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[I,l]),A=e=>{x(e.value),(0,ug.speak)(b.selected,"assertive"),S(e),P(""),N(!1)},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=D.indexOf(k);let n=t+e;n<0?n=D.length-1:n>=D.length&&(n=0),S(D[n]),N(!0)};return(0,s.useEffect)((()=>{const e=D.length>0,t=D.indexOf(k)>0;e&&!t&&S(D[0])}),[D,k]),(0,s.useEffect)((()=>{const e=D.length>0;if(T){const t=e?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",D.length),D.length):(0,u.__)("No results.");(0,ug.speak)(t,"polite")}}),[D,T]),(0,s.createElement)(NS,{onFocusOutside:()=>{N(!1)}},(0,s.createElement)(Rg,{__nextHasNoMarginBottom:r,className:c()(g,"components-combobox-control"),tabIndex:"-1",label:a,id:`components-form-token-input-${C}`,hideLabelFromVision:m,help:h},(0,s.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:e=>{let t=!1;if(!e.defaultPrevented){switch(e.code){case"Enter":k&&(A(k),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":N(!1),S(null),t=!0}t&&e.preventDefault()}}},(0,s.createElement)(yS,{__next36pxDefaultSize:o},(0,s.createElement)(dm,null,(0,s.createElement)(xS,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?I:E,onFocus:()=>{M(!0),N(!0),p(""),P("")},onBlur:()=>{M(!1)},isExpanded:T,selectedSuggestionIndex:D.indexOf(k),onChange:e=>{const t=e.value;P(t),p(t),R&&N(!0)}})),v&&(0,s.createElement)(fm,null,(0,s.createElement)(hd,{className:"components-combobox-control__reset",icon:Hg,disabled:!w,onClick:()=>{x(null),O.current.focus()},label:(0,u.__)("Reset")}))),T&&(0,s.createElement)(kS,{instanceId:C,match:{label:I},displayTransform:e=>e.label,suggestions:D,selectedIndex:D.indexOf(k),onHover:S,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const MS=new Set(["alert","status","log","marquee","timer"]);let IS=[],PS=!1;function OS(e){if(PS)return;Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||MS.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),IS.push(t))})),PS=!0}let DS=0;var AS=(0,s.forwardRef)((function e(t,n){const{bodyOpenClassName:r="modal-open",role:o="dialog",title:i=null,focusOnMount:l=!0,shouldCloseOnEsc:f=!0,shouldCloseOnClickOutside:p=!0,isDismissible:m=!0,aria:h={labelledby:null,describedby:null},onRequestClose:v,icon:g,closeButtonLabel:b,children:y,style:w,overlayClassName:x,className:_,contentLabel:E,onKeyDown:C,isFullScreen:k=!1,__experimentalHideHeader:S=!1}=t,T=(0,s.useRef)(),N=(0,d.useInstanceId)(e),R=i?`components-modal-header-${N}`:h.labelledby,M=(0,d.useFocusOnMount)(l),I=(0,d.useConstrainedTabbing)(),P=(0,d.useFocusReturn)(),O=(0,d.__experimentalUseFocusOutside)(v),[D,A]=(0,s.useState)(!1);(0,s.useEffect)((()=>(DS++,1===DS&&(OS(T.current),document.body.classList.add(r)),()=>{DS--,0===DS&&(document.body.classList.remove(r),PS&&(IS.forEach((e=>{e.removeAttribute("aria-hidden")})),IS=[],PS=!1))})),[r]);const L=(0,s.useCallback)((e=>{var t,n;const r=null!==(t=null==e||null===(n=e.target)||void 0===n?void 0:n.scrollTop)&&void 0!==t?t:-1;!D&&r>0?A(!0):D&&r<=0&&A(!1)}),[D]);return(0,s.createPortal)((0,s.createElement)("div",{ref:(0,d.useMergeRefs)([T,n]),className:c()("components-modal__screen-overlay",x),onKeyDown:function(e){f&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),v&&v(e))}},(0,s.createElement)(Hd,{document:document},(0,s.createElement)("div",a({className:c()("components-modal__frame",_,{"is-full-screen":k}),style:w,ref:(0,d.useMergeRefs)([I,P,M]),role:o,"aria-label":E,"aria-labelledby":E?null:R,"aria-describedby":h.describedby,tabIndex:"-1"},p?O:{},{onKeyDown:C}),(0,s.createElement)("div",{className:c()("components-modal__content",{"hide-header":S,"has-scrolled-content":D}),role:"document",onScroll:L},!S&&(0,s.createElement)("div",{className:"components-modal__header"},(0,s.createElement)("div",{className:"components-modal__header-heading-container"},g&&(0,s.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},g),i&&(0,s.createElement)("h1",{id:R,className:"components-modal__header-heading"},i)),m&&(0,s.createElement)(hd,{onClick:v,icon:ac,label:b||(0,u.__)("Close dialog")})),y)))),document.body)}));const LS={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var zS=Qu((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:l,cancelButtonText:c,...d}=Ju(e,"ConfirmDialog"),f=Zu()(LS),[p,m]=(0,s.useState)(),[h,v]=(0,s.useState)();(0,s.useEffect)((()=>{const e=void 0!==n;m(!e||n),v(!e)}),[n]);const g=(0,s.useCallback)((e=>t=>{null==e||e(t),h&&m(!1)}),[h,m]),b=(0,s.useCallback)((e=>{"Enter"===e.key&&g(r)(e)}),[g,r]),y=null!=c?c:(0,u.__)("Cancel"),w=null!=l?l:(0,u.__)("OK");return(0,s.createElement)(s.Fragment,null,p&&(0,s.createElement)(AS,a({onRequestClose:g(o),onKeyDown:b,closeButtonLabel:y,isDismissible:!0,ref:t,overlayClassName:f,__experimentalHideHeader:!0},d),(0,s.createElement)(u_,{spacing:8},(0,s.createElement)(Zm,null,i),(0,s.createElement)(bm,{direction:"row",justify:"flex-end"},(0,s.createElement)(hd,{variant:"tertiary",onClick:g(o)},y),(0,s.createElement)(hd,{variant:"primary",onClick:g(r)},w)))))}),"ConfirmDialog"),BS=n(2652),FS=n.n(BS);n(2797);function HS(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function VS(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function jS(e,t){if(e.clientHeightt||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0}let WS=0;function US(){}function GS(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!HS(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],d=e;HS(d)&&l(d);){if((d=d.parentElement)===c){u.push(d);break}null!=d&&d===document.body&&jS(d)&&!jS(document.documentElement)||null!=d&&jS(d,s)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),g=v.height,b=v.width,y=v.top,w=v.right,x=v.bottom,_=v.left,E="start"===o||"nearest"===o?y:"end"===o?x:y+g/2,C="center"===i?_+b/2:"end"===i?w:_,k=[],S=0;S=0&&_>=0&&x<=p&&w<=f&&y>=I&&x<=O&&_>=D&&w<=P)return k;var A=getComputedStyle(T),L=parseInt(A.borderLeftWidth,10),z=parseInt(A.borderTopWidth,10),B=parseInt(A.borderRightWidth,10),F=parseInt(A.borderBottomWidth,10),H=0,V=0,j="offsetWidth"in T?T.offsetWidth-T.clientWidth-L-B:0,$="offsetHeight"in T?T.offsetHeight-T.clientHeight-z-F:0;if(c===T)H="start"===o?E:"end"===o?E-p:"nearest"===o?$S(h,h+p,p,z,F,h+E,h+E+g,g):E-p/2,V="start"===i?C:"center"===i?C-f/2:"end"===i?C-f:$S(m,m+f,f,L,B,m+C,m+C+b,b),H=Math.max(0,H+h),V=Math.max(0,V+m);else{H="start"===o?E-I-z:"end"===o?E-O+F+$:"nearest"===o?$S(I,O,R,z,F+$,E,E+g,g):E-(I+R/2)+$/2,V="start"===i?C-D-L:"center"===i?C-(D+M/2)+j/2:"end"===i?C-P+B+j:$S(D,P,M,L,B+j,C,C+b,b);var W=T.scrollLeft,U=T.scrollTop;E+=U-(H=Math.max(0,Math.min(U+H,T.scrollHeight-R+$))),C+=W-(V=Math.max(0,Math.min(W+V,T.scrollWidth-M+j)))}k.push({el:T,top:H,left:V})}return k}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function qS(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function YS(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a{n=null,e(...i)}),t)}return o.cancel=r,o}function KS(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function XS(){for(var e=arguments.length,t=new Array(e),n=0;n{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function ZS(){return String(WS++)}function JS(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function QS(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=eT(t,r)?t[r]:e[r],n)),{})}function eT(e,t){return void 0!==e[t]}function tT(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function nT(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=rT(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function rT(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?rT(1,0,n,r,!1):rT(-1,n-1,n,r,!1):-1}function oT(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(qS(t,e,n)||r&&qS(t,n.document.activeElement,n))))}const iT=YS((e=>{sT(e).textContent=""}),500);function aT(e,t){const n=sT(t);e&&(n.textContent=e,iT(t))}function sT(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const lT={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function cT(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${hT(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const uT=YS(((e,t)=>{aT(e(),t)}),200),dT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?b.useLayoutEffect:b.useEffect;function fT(e){let{id:t=`downshift-${ZS()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,b.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:a||`${t}-input`});return s.current}function pT(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function mT(e){return/^\S{1}$/.test(e)}function hT(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function vT(e){const t=(0,b.useRef)(e);return t.current=e,t}function gT(e,t,n){const r=(0,b.useRef)(),o=(0,b.useRef)(),i=(0,b.useCallback)(((t,n)=>{o.current=n,t=QS(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,b.useReducer)(i,t),l=vT(n),c=(0,b.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,b.useEffect)((()=>{u&&r.current&&r.current!==a&&cT(u,QS(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function bT(e,t,n){const[r,o]=gT(e,t,n);return[QS(r,n),o]}const yT={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:GS,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function wT(e,t,n){void 0===n&&(n=lT);const r=e[`default${hT(t)}`];return void 0!==r?r:n[t]}function xT(e,t,n){void 0===n&&(n=lT);const r=e[t];if(void 0!==r)return r;const o=e[`initial${hT(t)}`];return void 0!==o?o:wT(e,t,n)}function _T(e){const t=xT(e,"selectedItem"),n=xT(e,"isOpen"),r=xT(e,"highlightedIndex"),o=xT(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ET(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):nT(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function CT(e,t,n,r){const o=(0,b.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,b.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!oT(i.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||oT(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let kT=()=>US;function ST(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,b.useEffect)((()=>{r||uT((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function TT(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,b.useRef)(!0);return dT((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let NT=US;function RT(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ET(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:ET(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:wT(o,"highlightedIndex"),isOpen:wT(o,"isOpen"),selectedItem:wT(o,"selectedItem"),inputValue:wT(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function MT(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s=0&&{selectedItem:r.items[a]}}}break;case 13:i={highlightedIndex:ET(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:i={highlightedIndex:ET(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:i={isOpen:wT(r,"isOpen"),highlightedIndex:wT(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case 3:i={highlightedIndex:rT(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case 4:i={highlightedIndex:rT(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:i={isOpen:!1,highlightedIndex:-1};break;case 7:{const n=t.key,o=`${e.inputValue}${n}`,a=MT({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case 0:i={highlightedIndex:nT(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case 1:i={highlightedIndex:nT(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case 20:i={selectedItem:t.selectedItem};break;default:return RT(e,t,OT)}return{...e,...i}}function AT(e){void 0===e&&(e={}),PT(e,AT);const t={...IT,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=_T(t),[d,f]=bT(DT,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:v}=d,g=(0,b.useRef)(null),y=(0,b.useRef)(null),w=(0,b.useRef)({}),x=(0,b.useRef)(!0),_=(0,b.useRef)(null),E=fT(t),C=(0,b.useRef)(),k=(0,b.useRef)(!0),S=vT({state:d,props:t}),T=(0,b.useCallback)((e=>w.current[E.getItemId(e)]),[E]);ST(c,[p,m,v,n],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),ST(l,[h],{isInitialMount:k.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const N=TT({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,b.useEffect)((()=>(_.current=YS((e=>{e({type:21,inputValue:""})}),500),()=>{_.current.cancel()})),[]),(0,b.useEffect)((()=>{v&&_.current(f)}),[f,v]),NT({isInitialMount:k.current,props:t,state:d}),(0,b.useEffect)((()=>{k.current?(i||a||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():o.document.activeElement===y.current&&g.current&&(x.current=!1,g.current.focus())}),[p]),(0,b.useEffect)((()=>{k.current||(C.current=n.length)}));const R=CT(p,[y,g],o,(()=>{f({type:8})})),M=kT();(0,b.useEffect)((()=>{k.current=!1}),[]),(0,b.useEffect)((()=>{p||(w.current={})}),[p]);const I=(0,b.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:13,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:14,getItemNodeFromIndex:T,shiftKey:e.shiftKey})}})),[f,T]),P=(0,b.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:0,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:1,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:3,getItemNodeFromIndex:T})},End(e){e.preventDefault(),f({type:4,getItemNodeFromIndex:T})},Escape(){f({type:2})},Enter(e){e.preventDefault(),f({type:5})}," "(e){e.preventDefault(),f({type:6})}})),[f,T]),O=(0,b.useCallback)((()=>{f({type:16})}),[f]),D=(0,b.useCallback)((()=>{f({type:18})}),[f]),A=(0,b.useCallback)((()=>{f({type:17})}),[f]),L=(0,b.useCallback)((e=>{f({type:19,highlightedIndex:e})}),[f]),z=(0,b.useCallback)((e=>{f({type:20,selectedItem:e})}),[f]),B=(0,b.useCallback)((()=>{f({type:22})}),[f]),F=(0,b.useCallback)((e=>{f({type:21,inputValue:e})}),[f]),H=(0,b.useCallback)((e=>({id:E.labelId,htmlFor:E.toggleButtonId,...e})),[E]),V=(0,b.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=S.current.state;return M("getMenuProps",l,r,y),{[r]:XS(a,(e=>{y.current=e})),id:E.menuId,role:"listbox","aria-labelledby":E.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":E.getItemId(c.highlightedIndex)},onMouseLeave:KS(n,(()=>{f({type:9})})),onKeyDown:KS(o,(e=>{const t=tT(e);t&&P[t]?P[t](e):mT(t)&&f({type:7,key:t,getItemNodeFromIndex:T})})),onBlur:KS(i,(()=>{if(!1===x.current)return void(x.current=!0);!R.current.isMouseDown&&f({type:8})})),...s}}),[f,S,P,R,M,E,T]),j=(0,b.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{f({type:12})},c=e=>{const t=tT(e);t&&I[t]?I[t](e):mT(t)&&f({type:15,key:t,getItemNodeFromIndex:T})},u={[o]:XS(i,(e=>{g.current=e})),id:E.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":S.current.state.isOpen,"aria-labelledby":`${E.labelId} ${E.toggleButtonId}`,...a};return a.disabled||(u.onClick=KS(n,l),u.onKeyDown=KS(r,c)),M("getToggleButtonProps",s,o,g),u}),[f,S,I,M,E,T]),$=(0,b.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=S.current,d=()=>{f({type:11,index:n})},p=pT(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const m={disabled:s,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:E.getItemId(p),[i]:XS(a,(e=>{e&&(w.current[E.getItemId(p)]=e)})),...l};return s||(m.onClick=KS(o,d)),m.onMouseMove=KS(r,(()=>{n!==c.highlightedIndex&&(N.current=!1,f({type:10,index:n,disabled:s}))})),m}),[f,S,N,E]);return{getToggleButtonProps:j,getLabelProps:H,getMenuProps:V,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:B,setInputValue:F,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:v}}AT.stateChangeTypes=OT;FS().array.isRequired,FS().func,FS().func,FS().func,FS().bool,FS().number,FS().number,FS().number,FS().bool,FS().bool,FS().bool,FS().any,FS().any,FS().any,FS().string,FS().string,FS().string,FS().string,FS().string,FS().string,FS().func,FS().string,FS().string,FS().func,FS().func,FS().func,FS().func,FS().func,FS().func,FS().shape({addEventListener:FS().func,removeEventListener:FS().func,document:FS().shape({getElementById:FS().func,activeElement:FS().any,body:FS().any})});FS().array,FS().array,FS().array,FS().func,FS().func,FS().func,FS().number,FS().number,FS().number,FS().func,FS().func,FS().string,FS().string,FS().shape({addEventListener:FS().func,removeEventListener:FS().func,document:FS().shape({getElementById:FS().func,activeElement:FS().any,body:FS().any})});const LT=e=>e.__nextUnconstrainedWidth?"":Ef(uh,"{min-width:130px;}",""),zT=ud(Eh,{target:"eswuck60"})(LT,";"),BT=e=>null==e?void 0:e.name,FT=(e,t)=>{let{selectedItem:n}=e,{type:r,changes:o,props:{items:i}}=t;switch(r){case AT.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case AT.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function HT(e){var t;let{__next36pxDefaultSize:n=!1,__nextUnconstrainedWidth:r=!1,className:o,hideLabelFromVision:i,label:l,describedBy:d,options:f,onChange:p,size:m="default",value:h}=e;const{getLabelProps:v,getToggleButtonProps:g,getMenuProps:b,getItemProps:y,isOpen:w,highlightedIndex:x,selectedItem:_}=AT({initialSelectedItem:f[0],items:f,itemToString:BT,onSelectedItemChange:p,...null!=h?{selectedItem:h}:void 0,stateReducer:FT}),[E,C]=(0,s.useState)(!1);r||lc()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const k=b({className:"components-custom-select-control__menu","aria-hidden":!w}),S=(0,s.useCallback)((e=>{var t;e.stopPropagation(),null==k||null===(t=k.onKeyDown)||void 0===t||t.call(k,e)}),[k]);return null!==(t=k["aria-activedescendant"])&&void 0!==t&&t.startsWith("downshift-null")&&delete k["aria-activedescendant"],(0,s.createElement)("div",{className:c()("components-custom-select-control",o)},i?(0,s.createElement)(pd,a({as:"label"},v()),l):(0,s.createElement)(Cg,v({className:"components-custom-select-control__label"}),l),(0,s.createElement)(zT,{__next36pxDefaultSize:n,__nextUnconstrainedWidth:r,isFocused:w||E,__unstableInputWidth:r?void 0:"auto",labelPosition:r?void 0:"top",size:m,suffix:(0,s.createElement)(_b,null)},(0,s.createElement)(gb,a({as:"button",onFocus:()=>C(!0),onBlur:()=>C(!1),selectSize:m,__next36pxDefaultSize:n},g({"aria-label":l,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:d||(_?(0,u.sprintf)((0,u.__)("Currently selected: %s"),_.name):(0,u.__)("No selection"))})),BT(_))),(0,s.createElement)("ul",a({},k,{onKeyDown:S}),w&&f.map(((e,t)=>(0,s.createElement)("li",y({item:e,index:t,key:e.key,className:c()(e.className,"components-custom-select-control__item",{"is-highlighted":t===x,"has-hint":!!e.__experimentalHint,"is-next-36px-default-size":n}),style:e.style}),e.name,e.__experimentalHint&&(0,s.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===_&&(0,s.createElement)(wb,{icon:l_,className:"components-custom-select-control__item-icon"}))))))}function VT(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function jT(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function $T(e){jT(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function WT(e,t){jT(2,arguments);var n=$T(e),r=VT(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function UT(e,t){jT(2,arguments);var n=$T(e),r=VT(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var GT,qT,YT={};function KT(){return YT}function XT(e,t){var n,r,o,i,a,s,l,c;jT(1,arguments);var u=KT(),d=VT(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=$T(e),p=f.getDay(),m=(p=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=$T(e),p=f.getDay(),m=6+(pr.getTime()}(e,t))&&(oN(e,n)||function(e,t){jT(2,arguments);var n=$T(e),r=$T(t);return n.getTime()-1}),[_]),k=(0,b.useCallback)((function(e,t){E(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),S=(0,b.useCallback)((function(e){return E((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!oN(t,e)}))}))}),[]),T=(0,b.useCallback)((function(e,t){return C(e)?S(e):k(e,t)}),[S,C,k]),N=(0,b.useCallback)((function(e,t,n){E(n?eN({start:e,end:t}):function(n){return n.concat(eN({start:e,end:t}))})}),[]),R=(0,b.useCallback)((function(e,t){E((function(n){return n.filter((function(n){return!eN({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),M=(0,b.useMemo)((function(){return function(e){jT(1,arguments);var t=e||{},n=$T(t.start),r=$T(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push($T(i)),i.setMonth(i.getMonth()+1);return o}({start:tN(d),end:QT(UT(d,c-1))}).map((function(e){return function(e,t){jT(1,arguments);var n=e||{},r=$T(n.start),o=$T(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=XT(r,t),s=XT(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push($T(c)),(c=ZT(c,1)).setHours(15);return l}({start:tN(e),end:QT(e)},{weekStartsOn:r}).map((function(e){return eN({start:XT(e,{weekStartsOn:r}),end:nN(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:lN,inRange:sN,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:v,viewYear:g,viewPreviousYear:y,viewNextYear:w,selected:_,setSelected:E,clearSelected:function(){return E([])},isSelected:C,select:k,deselect:S,toggle:T,selectRange:N,deselectRange:R,calendar:M}};function uN(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function dN(e){return dN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dN(e)}function fN(e){uN(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===dN(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function pN(e){uN(1,arguments);var t=fN(e);return t.setHours(0,0,0,0),t}function mN(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function hN(e,t){uN(2,arguments);var n=fN(e),r=mN(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function vN(e,t){uN(2,arguments);var n=mN(t);return hN(e,-n)}function gN(e){return gN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gN(e)}function bN(e){return uN(1,arguments),e instanceof Date||"object"===gN(e)&&"[object Date]"===Object.prototype.toString.call(e)}function yN(e){if(uN(1,arguments),!bN(e)&&"number"!=typeof e)return!1;var t=fN(e);return!isNaN(Number(t))}function wN(e,t){uN(2,arguments);var n=fN(e).getTime(),r=mN(t);return new Date(n+r)}function xN(e,t){uN(2,arguments);var n=mN(t);return wN(e,-n)}var _N=864e5;function EN(e){uN(1,arguments);var t=1,n=fN(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function kN(e){uN(1,arguments);var t=CN(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=EN(n);return r}var SN=6048e5;var TN={};function NN(){return TN}function RN(e,t){var n,r,o,i,a,s,l,c;uN(1,arguments);var u=NN(),d=mN(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=fN(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=RN(m,t),v=new Date(0);v.setUTCFullYear(d,0,p),v.setUTCHours(0,0,0,0);var g=RN(v,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}function IN(e,t){var n,r,o,i,a,s,l,c;uN(1,arguments);var u=NN(),d=mN(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=MN(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=RN(p,t);return m}var PN=6048e5;function ON(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return ON("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ON(n+1,2)},d:function(e,t){return ON(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ON(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ON(e.getUTCHours(),t.length)},m:function(e,t){return ON(e.getUTCMinutes(),t.length)},s:function(e,t){return ON(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ON(Math.floor(r*Math.pow(10,n-3)),t.length)}},AN=DN,LN="midnight",zN="noon",BN="morning",FN="afternoon",HN="evening",VN="night",jN={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return AN.y(e,t)},Y:function(e,t,n,r){var o=MN(e,r),i=o>0?o:1-o;return"YY"===t?ON(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ON(i,t.length)},R:function(e,t){return ON(CN(e),t.length)},u:function(e,t){return ON(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ON(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ON(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return AN.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return ON(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){uN(1,arguments);var n=fN(e),r=RN(n,t).getTime()-IN(n,t).getTime();return Math.round(r/PN)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ON(o,t.length)},I:function(e,t,n){var r=function(e){uN(1,arguments);var t=fN(e),n=EN(t).getTime()-kN(t).getTime();return Math.round(n/SN)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ON(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):AN.d(e,t)},D:function(e,t,n){var r=function(e){uN(1,arguments);var t=fN(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/_N)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ON(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ON(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ON(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return ON(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?zN:0===o?LN:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?HN:o>=12?FN:o>=4?BN:VN,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return AN.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):AN.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ON(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ON(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):AN.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):AN.s(e,t)},S:function(e,t){return AN.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return WN(o);case"XXXX":case"XX":return UN(o);default:return UN(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return WN(o);case"xxxx":case"xx":return UN(o);default:return UN(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$N(o,":");default:return"GMT"+UN(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$N(o,":");default:return"GMT"+UN(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return ON(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return ON((r._originalDate||e).getTime(),t.length)}};function $N(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+ON(i,2)}function WN(e,t){return e%60==0?(e>0?"-":"+")+ON(Math.abs(e)/60,2):UN(e,t)}function UN(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+ON(Math.floor(o/60),2)+n+ON(o%60,2)}var GN=jN,qN=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},YN=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},KN={p:YN,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return qN(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",qN(o,t)).replace("{{time}}",YN(i,t))}},XN=KN;function ZN(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var JN=["D","DD"],QN=["YY","YYYY"];function eR(e){return-1!==JN.indexOf(e)}function tR(e){return-1!==QN.indexOf(e)}function nR(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var rR={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"}},oR=function(e,t,n){var r,o=rR[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function iR(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var aR={date:iR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:iR({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:iR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},sR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lR=function(e,t,n,r){return sR[e]};function cR(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var uR={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:cR({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:cR({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:cR({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:cR({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:cR({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"})},dR=uR;function fR(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?mR(l,(function(e){return e.test(s)})):pR(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var u=t.slice(s.length);return{value:a,rest:u}}}function pR(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function mR(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(hR.matchPattern);if(!n)return null;var r=n[0],o=e.match(hR.parsePattern);if(!o)return null;var i=hR.valueCallback?hR.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:fR({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:fR({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:fR({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:fR({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:fR({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"})},gR={code:"en-US",formatDistance:oR,formatLong:aR,formatRelative:lR,localize:dR,match:vR,options:{weekStartsOn:0,firstWeekContainsDate:1}},bR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wR=/^'([^]*?)'?$/,xR=/''/g,_R=/[a-zA-Z]/;function ER(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,v,g,b,y,w;uN(2,arguments);var x=String(t),_=NN(),E=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:gR,C=mN(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=mN(null!==(p=null!==(m=null!==(h=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(g=n.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:_.weekStartsOn)&&void 0!==m?m:null===(y=_.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var S=fN(e);if(!yN(S))throw new RangeError("Invalid time value");var T=ZN(S),N=xN(S,T),R={firstWeekContainsDate:C,weekStartsOn:k,locale:E,_originalDate:S},M=x.match(yR).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,XN[t])(e,E.formatLong):e})).join("").match(bR).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return CR(r);var i=GN[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!tR(r)||nR(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!eR(r)||nR(r,t,String(e)),i(N,r,E.localize,R);if(o.match(_R))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return M}function CR(e){var t=e.match(wR);return t?t[1].replace(xR,"'"):e}function kR(e,t){uN(2,arguments);var n=fN(e),r=fN(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function SR(e,t){uN(2,arguments);var n=fN(e),r=fN(t);return n.getTime()===r.getTime()}function TR(e,t){uN(2,arguments);var n=pN(e),r=pN(t);return n.getTime()===r.getTime()}function NR(e,t){uN(2,arguments);var n=fN(e),r=mN(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function RR(e,t){uN(2,arguments);var n=mN(t),r=7*n;return NR(e,r)}var MR=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"}));var IR=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"})),PR=window.wp.date;const OR=ud("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),DR=ud(dy,{target:"e105ri6r4"})("margin-bottom:",vm(4),";"),AR=ud(f_,{target:"e105ri6r3"})("font-size:",Am.fontSize,";font-weight:",Am.fontWeight,";strong{font-weight:",Am.fontWeightHeading,";}"),LR=ud("div",{target:"e105ri6r2"})("column-gap:",vm(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",vm(2),";"),zR=ud("div",{target:"e105ri6r1"})("color:",op.gray[700],";font-size:",Am.fontSize,";line-height:",Am.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),BR=ud(hd,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",vm(7),";width:",vm(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${op.ui.theme};\n\t\t\tcolor: ${op.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${op.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?op.white:op.ui.theme};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 0;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function FR(e){return"string"==typeof e?new Date(e):fN(e)}const HR="yyyy-MM-dd'T'HH:mm:ss";function VR(e){let{day:t,column:n,isSelected:r,isFocusable:o,isFocusAllowed:i,isToday:a,isInvalid:l,numEvents:c,onClick:u,onKeyDown:d}=e;const f=(0,s.useRef)();return(0,s.useEffect)((()=>{f.current&&o&&i&&f.current.focus()}),[o]),(0,s.createElement)(BR,{ref:f,className:"components-datetime__date__day",disabled:l,tabIndex:o?0:-1,"aria-label":jR(t,r,c),column:n,isSelected:r,isToday:a,hasEvents:c>0,onClick:u,onKeyDown:d},(0,PR.dateI18n)("j",t,-t.getTimezoneOffset()))}function jR(e,t,n){const{formats:r}=(0,PR.getSettings)(),o=(0,PR.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,u.sprintf)((0,u._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,u.sprintf)((0,u.__)("%1$s. Selected"),o):n>0?(0,u.sprintf)((0,u._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}var $R=function(e){let{currentDate:t,onChange:n,events:r=[],isInvalidDate:o,onMonthPreviewed:i,startOfWeek:a=0}=e;const l=t?FR(t):new Date,{calendar:c,viewing:d,setSelected:f,setViewing:p,isSelected:m,viewPreviousMonth:h,viewNextMonth:v}=cN({selected:[pN(l)],viewing:pN(l),weekStartsOn:a}),[g,b]=(0,s.useState)(pN(l)),[y,w]=(0,s.useState)(!1),[x,_]=(0,s.useState)(t);return t!==x&&(_(t),f([pN(l)]),p(pN(l)),b(pN(l))),(0,s.createElement)(OR,{className:"components-datetime__date",role:"application","aria-label":(0,u.__)("Calendar")},(0,s.createElement)(DR,null,(0,s.createElement)(hd,{icon:(0,u.isRTL)()?MR:IR,variant:"tertiary","aria-label":(0,u.__)("View previous month"),onClick:()=>{h(),b(vN(g,1)),null==i||i(ER(vN(d,1),HR))}}),(0,s.createElement)(AR,{level:3},(0,s.createElement)("strong",null,(0,PR.dateI18n)("F",d,-d.getTimezoneOffset()))," ",(0,PR.dateI18n)("Y",d,-d.getTimezoneOffset())),(0,s.createElement)(hd,{icon:(0,u.isRTL)()?IR:MR,variant:"tertiary","aria-label":(0,u.__)("View next month"),onClick:()=>{v(),b(hN(g,1)),null==i||i(ER(hN(d,1),HR))}})),(0,s.createElement)(LR,{onFocus:()=>w(!0),onBlur:()=>w(!1)},c[0][0].map((e=>(0,s.createElement)(zR,{key:e.toString()},(0,PR.dateI18n)("D",e,-e.getTimezoneOffset())))),c[0].map((e=>e.map(((e,t)=>kR(e,d)?(0,s.createElement)(VR,{key:e.toString(),day:e,column:t+1,isSelected:m(e),isFocusable:SR(e,g),isFocusAllowed:y,isToday:TR(e,new Date),isInvalid:!!o&&o(e),numEvents:r.filter((t=>TR(t.date,e))).length,onClick:()=>{f([e]),b(e),null==n||n(ER(new Date(e.getFullYear(),e.getMonth(),e.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()),HR))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=NR(e,(0,u.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=NR(e,(0,u.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){uN(2,arguments);var n=mN(t);return RR(e,-n)}(e,1)),"ArrowDown"===t.key&&(n=RR(e,1)),"PageUp"===t.key&&(n=vN(e,1)),"PageDown"===t.key&&(n=hN(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;uN(1,arguments);var u=NN(),d=mN(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=fN(e),p=f.getDay(),m=(p=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=fN(e),p=f.getDay(),m=6+(p{const{timezone:e}=(0,PR.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.offset}`,o="UTC"===e.string?(0,u.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return(0,s.createElement)(gf,{position:"top center",text:o},(0,s.createElement)(iM,{className:"components-datetime__timezone"},r))};function sM(e,t){return t?(e%12+12)%24:e%12}function lM(e){return(t,n)=>{const r={...t};return n.type!==_v&&n.type!==Mv&&n.type!==Nv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var cM=function(e){let{is12Hour:t,currentTime:n,onChange:r}=e;const[o,i]=(0,s.useState)((()=>n?WR(FR(n)):new Date));(0,s.useEffect)((()=>{i(n?WR(FR(n)):new Date)}),[n]);const{day:a,month:l,year:c,minutes:d,hours:f,am:p}=(0,s.useMemo)((()=>({day:ER(o,"dd"),month:ER(o,"MM"),year:ER(o,"yyyy"),minutes:ER(o,"mm"),hours:ER(o,t?"hh":"HH"),am:ER(o,"a")})),[o,t]),m=e=>(n,a)=>{let{event:s}=a;if(!(s.target instanceof HTMLInputElement))return;if(!s.target.validity.valid)return;let l=Number(n);"hours"===e&&t&&(l=sM(l,"PM"===p));const c=function(e,t){if(uN(2,arguments),"object"!==qR(t)||null===t)throw new RangeError("values parameter must be an object");var n=fN(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=GR(n,t.month)),null!=t.date&&n.setDate(mN(t.date)),null!=t.hours&&n.setHours(mN(t.hours)),null!=t.minutes&&n.setMinutes(mN(t.minutes)),null!=t.seconds&&n.setSeconds(mN(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(mN(t.milliseconds)),n)}(o,{[e]:l});i(c),null==r||r(ER(c,HR))};function h(e){return()=>{if(p===e)return;const t=parseInt(f,10),n=function(e,t){uN(2,arguments);var n=fN(e),r=mN(t);return n.setHours(r),n}(o,sM(t,"PM"===e));i(n),null==r||r(ER(n,HR))}}const v=(0,s.createElement)(rM,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,u.__)("Day"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:a,step:1,min:1,max:31,required:!0,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("date")}),g=(0,s.createElement)(tM,null,(0,s.createElement)(nM,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,u.__)("Month"),hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,value:l,options:[{value:"01",label:(0,u.__)("January")},{value:"02",label:(0,u.__)("February")},{value:"03",label:(0,u.__)("March")},{value:"04",label:(0,u.__)("April")},{value:"05",label:(0,u.__)("May")},{value:"06",label:(0,u.__)("June")},{value:"07",label:(0,u.__)("July")},{value:"08",label:(0,u.__)("August")},{value:"09",label:(0,u.__)("September")},{value:"10",label:(0,u.__)("October")},{value:"11",label:(0,u.__)("November")},{value:"12",label:(0,u.__)("December")}],onChange:e=>{const t=GR(o,Number(e)-1);i(t),null==r||r(ER(t,HR))}}));return(0,s.createElement)(YR,{className:"components-datetime__time"},(0,s.createElement)(KR,null,(0,s.createElement)(Rg.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Time")),(0,s.createElement)(dy,{className:"components-datetime__time-wrapper"},(0,s.createElement)(XR,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,s.createElement)(JR,{className:"components-datetime__time-field-hours-input",label:(0,u.__)("Hours"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:f,step:1,min:t?1:0,max:t?12:23,required:!0,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("hours"),__unstableStateReducer:lM(2)}),(0,s.createElement)(QR,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,s.createElement)(eM,{className:"components-datetime__time-field-minutes-input",label:(0,u.__)("Minutes"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:d,step:1,min:0,max:59,required:!0,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("minutes"),__unstableStateReducer:lM(2)})),t&&(0,s.createElement)(KE,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,s.createElement)(hd,{className:"components-datetime__time-am-button",variant:"AM"===p?"primary":"secondary",onClick:h("AM")},(0,u.__)("AM")),(0,s.createElement)(hd,{className:"components-datetime__time-pm-button",variant:"PM"===p?"primary":"secondary",onClick:h("PM")},(0,u.__)("PM"))),(0,s.createElement)(og,null),(0,s.createElement)(aM,null))),(0,s.createElement)(KR,null,(0,s.createElement)(Rg.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,u.__)("Date")),(0,s.createElement)(dy,{className:"components-datetime__time-wrapper"},t?(0,s.createElement)(s.Fragment,null,g,v):(0,s.createElement)(s.Fragment,null,v,g),(0,s.createElement)(oM,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,u.__)("Year"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:c,step:1,min:1,max:9999,required:!0,hideHTMLArrows:!0,isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:m("year"),__unstableStateReducer:lM(4)}))))};const uM=ud(u_,{target:"e1p5onf01"})({name:"1khn195",styles:"box-sizing:border-box"}),dM=ud("div",{target:"e1p5onf00"})({name:"l0rwn2",styles:"min-width:260px"}),fM=()=>{};const pM=(0,s.forwardRef)((function(e,t){let{currentDate:n,is12Hour:r,isInvalidDate:o,onMonthPreviewed:i=fM,onChange:a,events:l,startOfWeek:c,__nextRemoveHelpButton:d=!1,__nextRemoveResetButton:f=!1}=e;d||lc()("Help button in wp.components.DateTimePicker",{since:"13.4",version:"14.6",hint:"Set the `__nextRemoveHelpButton` prop to `true` to remove this warning and opt in to the new behaviour, which will become the default in a future version."}),f||lc()("Reset button in wp.components.DateTimePicker",{since:"13.4",version:"14.6",hint:"Set the `__nextRemoveResetButton` prop to `true` to remove this warning and opt in to the new behaviour, which will become the default in a future version."});const[p,m]=(0,s.useState)(!1);return(0,s.createElement)(uM,{ref:t,className:"components-datetime",spacing:4},!p&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(cM,{currentTime:n,onChange:a,is12Hour:r}),(0,s.createElement)($R,{currentDate:n,onChange:a,isInvalidDate:o,events:l,onMonthPreviewed:i,startOfWeek:c})),p&&(0,s.createElement)(dM,{className:"components-datetime__calendar-help"},(0,s.createElement)(f_,{level:4},(0,u.__)("Click to Select")),(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,u.__)("Click the right or left arrows to select other months in the past or the future.")),(0,s.createElement)("li",null,(0,u.__)("Click the desired day to select it."))),(0,s.createElement)(f_,{level:4},(0,u.__)("Navigating with a keyboard")),(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u._x)("Enter","keyboard button")},"↵")," ",(0,s.createElement)("span",null,(0,u.__)("Select the date in focus."))),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Left and Right Arrows")},"←/→")," ",(0,u.__)("Move backward (left) or forward (right) by one day.")),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Up and Down Arrows")},"↑/↓")," ",(0,u.__)("Move backward (up) or forward (down) by one week.")),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Page Up and Page Down")},(0,u.__)("PgUp/PgDn"))," ",(0,u.__)("Move backward (PgUp) or forward (PgDn) by one month.")),(0,s.createElement)("li",null,(0,s.createElement)("abbr",{"aria-label":(0,u.__)("Home and End")},(0,u.__)("Home/End"))," ",(0,u.__)("Go to the first (Home) or last (End) day of a week.")))),(!f||!d)&&(0,s.createElement)(dy,{className:"components-datetime__buttons"},!f&&!p&&n&&(0,s.createElement)(hd,{className:"components-datetime__date-reset-button",variant:"link",onClick:()=>null==a?void 0:a(null)},(0,u.__)("Reset")),(0,s.createElement)(og,null),!d&&(0,s.createElement)(hd,{className:"components-datetime__date-help-toggle",variant:"link",onClick:function(){m(!p)}},p?(0,u.__)("Close"):(0,u.__)("Calendar Help"))))}));var mM=pM;var hM=[{name:(0,u._x)("None","Size of a UI element"),slug:"none"},{name:(0,u._x)("Small","Size of a UI element"),slug:"small"},{name:(0,u._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,u._x)("Large","Size of a UI element"),slug:"large"},{name:(0,u._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var vM=function(e){const{label:t,value:n,sizes:r=hM,icon:o,onChange:i,className:a=""}=e,l=(0,s.createElement)(s.Fragment,null,o&&(0,s.createElement)(uc,{icon:o}),t);return(0,s.createElement)(kb,{className:c()(a,"block-editor-dimension-control"),label:l,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(r,e);t&&n!==t.slug?"function"==typeof i&&i(t.slug):i(void 0)},options:(e=>{const t=e.map((e=>{let{name:t,slug:n}=e;return{label:t,value:n}}));return[{label:(0,u.__)("Default"),value:""}].concat(t)})(r)})};const gM={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},bM=(0,s.createContext)(!1),{Consumer:yM,Provider:wM}=bM,xM=(0,s.forwardRef)(((e,t)=>(0,s.createElement)("div",a({},e,{ref:t}))));function _M(e){let{className:t,children:n,isDisabled:r=!0,...o}=e;const i=(0,d.useDisabled)(),l=Zu();return r?(0,s.createElement)(wM,{value:!0},(0,s.createElement)(xM,a({ref:i,className:l(gM,t,"components-disabled")},o),n)):(0,s.createElement)(wM,{value:!1},(0,s.createElement)(xM,null,n))}_M.Context=bM,_M.Consumer=yM;var EM=_M;const CM="is-dragging-components-draggable";function kM(e){let{children:t,onDragStart:n,onDragOver:r,onDragEnd:o,cloneClassname:i,elementId:a,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:u}=e;const d=(0,s.useRef)(null),f=(0,s.useRef)((()=>{}));return(0,s.useEffect)((()=>()=>{f.current()}),[]),(0,s.createElement)(s.Fragment,null,t({onDraggableStart:function(e){const{ownerDocument:t}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const o=t.createElement("div");o.style.top=0,o.style.left=0;const s=t.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(s.classList.add("components-draggable__invisible-drag-image"),t.body.appendChild(s),e.dataTransfer.setDragImage(s,0,0)),o.classList.add("components-draggable__clone"),i&&o.classList.add(i);let u=0,p=0;if(d.current){u=e.clientX,p=e.clientY,o.style.transform=`translate( ${u}px, ${p}px )`;const n=t.createElement("div");n.innerHTML=d.current.innerHTML,o.appendChild(n),t.body.appendChild(o)}else{const e=t.getElementById(a),n=e.getBoundingClientRect(),r=e.parentNode,i=parseInt(n.top,10),s=parseInt(n.left,10);o.style.width=`${n.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${a}`,u=s-0,p=i-0,o.style.transform=`translate( ${u}px, ${p}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>e.parentNode.removeChild(e))),o.appendChild(l),r.appendChild(o)}let m=e.clientX,h=e.clientY;const v=(0,dc.throttle)((function(e){if(m===e.clientX&&h===e.clientY)return;const t=u+e.clientX-m,n=p+e.clientY-h;o.style.transform=`translate( ${t}px, ${n}px )`,m=e.clientX,h=e.clientY,u=t,p=n,r&&r(e)}),16);let g;t.addEventListener("dragover",v),t.body.classList.add(CM),e.persist(),n&&(g=setTimeout((()=>n(e)))),f.current=()=>{o&&o.parentNode&&o.parentNode.removeChild(o),s&&s.parentNode&&s.parentNode.removeChild(s),t.body.classList.remove(CM),t.removeEventListener("dragover",v),clearTimeout(g)}},onDraggableEnd:function(e){e.preventDefault(),f.current(),o&&o(e)}}),u&&(0,s.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:d},u))}var SM=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"}));function TM(){var e=(0,b.useRef)(!1);return Jt((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var NM=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,i=e.custom,a=e.presenceAffectsLayout,s=un(RM),l=mo(),c=(0,b.useMemo)((function(){return{id:l,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=Lt(s.values()),i=r.next();!i.done;i=r.next()){if(!i.value)return}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}}),a?void 0:[r]);return(0,b.useMemo)((function(){s.forEach((function(e,t){return s.set(t,!1)}))}),[r]),b.useEffect((function(){!r&&!s.size&&(null==o||o())}),[r]),b.createElement(Zt.Provider,{value:c},t)};function RM(){return new Map}var MM=function(e){return e.key||""};var IM=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,i=e.onExitComplete,a=e.exitBeforeEnter,s=e.presenceAffectsLayout,l=void 0===s||s,c=zt(function(){var e=TM(),t=zt((0,b.useState)(0),2),n=t[0],r=t[1],o=(0,b.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,b.useCallback)((function(){return Vi.postRender(o)}),[o]),n]}(),1),u=c[0],d=(0,b.useContext)(pn).forceRender;d&&(u=d);var f=TM(),p=function(e){var t=[];return b.Children.forEach(e,(function(e){(0,b.isValidElement)(e)&&t.push(e)})),t}(t),m=p,h=new Set,v=(0,b.useRef)(m),g=(0,b.useRef)(new Map).current,y=(0,b.useRef)(!0);if(Jt((function(){y.current=!1,function(e,t){e.forEach((function(e){var n=MM(e);t.set(n,e)}))}(p,g),v.current=m})),Zr((function(){y.current=!0,g.clear(),h.clear()})),y.current)return b.createElement(b.Fragment,null,m.map((function(e){return b.createElement(NM,{key:MM(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},e)})));m=Bt([],zt(m),!1);for(var w=v.current.map(MM),x=p.map(MM),_=w.length,E=0;E<_;E++){var C=w[E];-1===x.indexOf(C)&&h.add(C)}return a&&h.size&&(m=[]),h.forEach((function(e){if(-1===x.indexOf(e)){var t=g.get(e);if(t){var r=w.indexOf(e);m.splice(r,0,b.createElement(NM,{key:MM(t),isPresent:!1,onExitComplete:function(){g.delete(e),h.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!h.size){if(v.current=p,!1===f.current)return;u(),i&&i()}},custom:n,presenceAffectsLayout:l},t))}}})),m=m.map((function(e){var t=e.key;return h.has(t)?e:b.createElement(NM,{key:MM(e),isPresent:!0,presenceAffectsLayout:l},e)})),"production"!==Wt&&a&&m.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),b.createElement(b.Fragment,null,h.size?m:m.map((function(e){return(0,b.cloneElement)(e)})))};var PM=function(e){let{className:t,label:n,onFilesDrop:r,onHTMLDrop:o,onDrop:i,...l}=e;const[f,p]=(0,s.useState)(),[m,h]=(0,s.useState)(),[v,g]=(0,s.useState)(),b=(0,d.__experimentalUseDropZone)({onDrop(e){var t;const n=e.dataTransfer?(0,Uk.getFilesFromDataTransfer)(e.dataTransfer):[],a=null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("text/html");a&&o?o(a):n.length&&r?r(n):i&&i(e)},onDragStart(e){var t,n;p(!0);let r="default";null!==(t=e.dataTransfer)&&void 0!==t&&t.types.includes("text/html")?r="html":(null!==(n=e.dataTransfer)&&void 0!==n&&n.types.includes("Files")||(e.dataTransfer?(0,Uk.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(r="file"),g(r)},onDragEnd(){p(!1),g(void 0)},onDragEnter(){h(!0)},onDragLeave(){h(!1)}}),y=(0,d.useReducedMotion)();let w;const x={hidden:{scaleY:0,opacity:0},show:{scaleY:1,opacity:1,transition:{type:"tween",duration:.2,delay:.1,delayChildren:.2}},exit:{scaleY:1,opacity:0,transition:{duration:.3,delayChildren:0}}},_={hidden:{opacity:0,scale:.75},show:{opacity:1,scale:1},exit:{opacity:0,scale:.9}};m&&(w=(0,s.createElement)(ic.div,{variants:x,initial:y?"show":"hidden",animate:"show",exit:y?"show":"exit",className:"components-drop-zone__content"},(0,s.createElement)(ic.div,{variants:_},(0,s.createElement)(wb,{icon:SM,className:"components-drop-zone__content-icon"}),(0,s.createElement)("span",{className:"components-drop-zone__content-text"},n||(0,u.__)("Drop files to upload")))));const E=c()("components-drop-zone",t,{"is-active":(f||m)&&("file"===v&&r||"html"===v&&o||"default"===v&&i),"is-dragging-over-document":f,"is-dragging-over-element":m,[`is-dragging-${v}`]:!!v});return(0,s.createElement)("div",a({},l,{ref:b,className:E}),y?w:(0,s.createElement)(IM,null,w))};function OM(e){let{children:t}=e;return lc()("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."}),t}var DM=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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 AM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"90deg";const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Jf([Qf]);var LM=function(e){let{values:t}=e;return t?(0,s.createElement)(fb,{colorValue:AM(t,"135deg")}):(0,s.createElement)(uc,{icon:DM})};function zM(e){let{label:t,value:n,colors:r,disableCustomColors:o,enableAlpha:i,onChange:a}=e;const[l,c]=(0,s.useState)(!1);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(hd,{className:"components-color-list-picker__swatch-button",onClick:()=>c((e=>!e))},(0,s.createElement)(dy,{justify:"flex-start",spacing:2},n?(0,s.createElement)(fb,{colorValue:n,className:"components-color-list-picker__swatch-color"}):(0,s.createElement)(uc,{icon:DM}),(0,s.createElement)("span",null,t))),l&&(0,s.createElement)(w_,{className:"components-color-list-picker__color-picker",colors:r,value:n,clearable:!1,onChange:a,disableCustomColors:o,enableAlpha:i}))}var BM=function(e){let{colors:t,labels:n,value:r=[],disableCustomColors:o,enableAlpha:i,onChange:a}=e;return(0,s.createElement)("div",{className:"components-color-list-picker"},n.map(((e,n)=>(0,s.createElement)(zM,{key:n,label:e,value:r[n],colors:t,disableCustomColors:o,enableAlpha:i,onChange:e=>{const t=r.slice();t[n]=e,a(t)}}))))};const FM=["#333","#CCC"];function HM(e){let{value:t,onChange:n}=e;const r=!!t,o=r?t:FM,i=AM(o),a=(l=o).map(((e,t)=>({position:100*t/(l.length-1),color:e})));var l;return(0,s.createElement)(Sk,{disableInserter:!0,background:i,hasGradient:r,value:a,onChange:e=>{const t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{color:t}=e;return t}))}(e);n(t)}})}var VM=function(e){let{clearable:t=!0,unsetable:n=!0,colorPalette:r,duotonePalette:o,disableCustomColors:i,disableCustomDuotone:a,value:l,onChange:c}=e;const[d,f]=(0,s.useMemo)((()=>{return!(e=r)||e.length<2?["#000","#fff"]:e.map((e=>{let{color:t}=e;return{color:t,brightness:Xf(t).brightness()}})).reduce(((e,t)=>{let[n,r]=e;return[t.brightness<=n.brightness?t:n,t.brightness>=r.brightness?t:r]}),[{brightness:1},{brightness:0}]).map((e=>{let{color:t}=e;return t}));var e}),[r]),p="unset"===l,m=(0,s.createElement)(c_.Option,{key:"unset",value:"unset",isSelected:p,tooltipText:(0,u.__)("Unset"),className:"components-duotone-picker__color-indicator",onClick:()=>{c(p?void 0:"unset")}}),h=o.map((e=>{let{colors:t,slug:n,name:r}=e;const o={background:AM(t,"135deg"),color:"transparent"},i=null!=r?r:(0,u.sprintf)((0,u.__)("Duotone code: %s"),n),a=r?(0,u.sprintf)((0,u.__)("Duotone: %s"),r):i,d=(0,dc.isEqual)(t,l);return(0,s.createElement)(c_.Option,{key:n,value:t,isSelected:d,"aria-label":a,tooltipText:i,style:o,onClick:()=>{c(d?void 0:t)}})}));return(0,s.createElement)(c_,{options:n?[m,...h]:h,actions:!!t&&(0,s.createElement)(c_.ButtonAction,{onClick:()=>c(void 0)},(0,u.__)("Clear"))},(0,s.createElement)(og,{paddingTop:4},(0,s.createElement)(u_,{spacing:3},!i&&!a&&(0,s.createElement)(HM,{value:p?void 0:l,onChange:c}),!a&&(0,s.createElement)(BM,{labels:[(0,u.__)("Shadows"),(0,u.__)("Highlights")],colors:r,value:p?void 0:l,disableCustomColors:i,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=d),e[1]||(e[1]=f);const t=e.length>=2?e:void 0;c(t)}}))))};var jM=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));const $M=ud(wb,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var WM=(0,s.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...l}=e,d=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),f=c()("components-external-link",o),p=!(null==n||!n.startsWith("#"));return(0,s.createElement)("a",a({},l,{className:f,href:n,onClick:p?e=>e.preventDefault():void 0,target:"_blank",rel:d,ref:t}),r,(0,s.createElement)(pd,{as:"span"},(0,u.__)("(opens in a new tab)")),(0,s.createElement)($M,{icon:jM,className:"components-external-link__icon"}))}));const UM={width:200,height:170},GM=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function qM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split(".");return t[t.length-1]}function YM(e){return Math.round(100*e)}const KM=ud("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),XM=ud("div",{target:"eeew7dm7"})({name:"megach",styles:"align-items:center;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),ZM=ud("div",{target:"eeew7dm6"})("background:",op.gray[100],";box-sizing:border-box;height:",UM.height,"px;max-width:280px;min-width:",UM.width,"px;width:100%;"),JM=ud(z_,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var QM={name:"1mn7kwb",styles:"padding-bottom:1em"};const eI=e=>{let{__nextHasNoMarginBottom:t}=e;return t?void 0:QM};var tI={name:"1mn7kwb",styles:"padding-bottom:1em"};const nI=e=>{let{hasHelpText:t=!1}=e;return t?tI:void 0},rI=ud(bm,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",nI," ",eI,";"),oI=ud("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;opacity:",(e=>{let{showOverlay:t}=e;return t?1:0}),";"),iI=ud("div",{target:"eeew7dm2"})({name:"1d42i6k",styles:"background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),aI=ud(iI,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),sI=ud(iI,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),lI=()=>{};function cI(e){let{__nextHasNoMarginBottom:t,hasHelpText:n,onChange:r=lI,point:o={x:.5,y:.5}}=e;const i=YM(o.x),a=YM(o.y),l=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||r({...o,[t]:n/100})};return(0,s.createElement)(rI,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:t,hasHelpText:n},(0,s.createElement)(uI,{label:(0,u.__)("Left"),value:[i,"%"].join(""),onChange:e=>l(e,"x"),dragDirection:"e"}),(0,s.createElement)(uI,{label:(0,u.__)("Top"),value:[a,"%"].join(""),onChange:e=>l(e,"y"),dragDirection:"s"}))}function uI(e){return(0,s.createElement)(JM,a({className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:100,min:0,units:[{value:"%",label:"%"}]},e))}const dI=ud("div",{target:"e19snlhg3"})("background-color:transparent;cursor:grab;height:30px;margin:-15px 0 0 -15px;opacity:0.8;position:absolute;user-select:none;width:30px;will-change:transform;z-index:10000;",(e=>{let{isDragging:t}=e;return t&&"cursor: grabbing;"}),";"),fI=ud(i.SVG,{target:"e19snlhg2"})({name:"qkx60y",styles:"display:block;height:100%;left:0;position:absolute;top:0;width:100%"}),pI=ud(i.Path,{target:"e19snlhg1"})({name:"1b3qpiw",styles:"fill:white"}),mI=ud(i.Path,{target:"e19snlhg0"})("fill:",op.ui.theme,";");function hI(e){let{left:t="50%",top:n="50%",...r}=e;const o=c()("components-focal-point-picker__icon_container"),i={left:t,top:n};return(0,s.createElement)(dI,a({},r,{className:o,style:i}),(0,s.createElement)(fI,{className:"components-focal-point-picker__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30"},(0,s.createElement)(pI,{className:"components-focal-point-picker__icon-outline",d:"M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"}),(0,s.createElement)(mI,{className:"components-focal-point-picker__icon-fill",d:"M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"})))}function vI(e){let{bounds:t,...n}=e;return(0,s.createElement)(oI,a({},n,{className:"components-focal-point-picker__grid",style:{width:t.width,height:t.height}}),(0,s.createElement)(aI,{style:{top:"33%"}}),(0,s.createElement)(aI,{style:{top:"66%"}}),(0,s.createElement)(sI,{style:{left:"33%"}}),(0,s.createElement)(sI,{style:{left:"66%"}}))}function gI(e){let{alt:t,autoPlay:n,src:r,onLoad:o,mediaRef:i,muted:l=!0,...c}=e;if(!r)return(0,s.createElement)(ZM,a({className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:i},c));const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&GM.includes(qM(e))}(r);return u?(0,s.createElement)("video",a({},c,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:l,onLoadedData:o,ref:i,src:r})):(0,s.createElement)("img",a({},c,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:o,ref:i,src:r}))}var bI=function(e,t){const n=(0,s.useRef)(!1);(0,s.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};var yI=function e(t){let{__nextHasNoMarginBottom:n,autoPlay:r=!0,className:o,help:i,label:l,onChange:f,onDrag:p,onDragEnd:m,onDragStart:h,resolvePoint:v,url:g,value:b={x:.5,y:.5},...y}=t;const[w,x]=(0,s.useState)(b),[_,E]=(0,s.useState)(!1),{startDrag:C,endDrag:k,isDragging:S}=(0,d.__experimentalUseDragging)({onDragStart:e=>{var t;null===(t=R.current)||void 0===t||t.focus();const n=O(e);n&&(null==h||h(n,e),x(n))},onDragMove:e=>{e.preventDefault();const t=O(e);t&&(null==p||p(t,e),x(t))},onDragEnd:()=>{null==m||m(),null==f||f(w)}}),{x:T,y:N}=S?w:b,R=(0,s.useRef)(null),[M,I]=(0,s.useState)(UM),P=(0,s.useRef)((()=>{if(!R.current)return;const{clientWidth:e,clientHeight:t}=R.current;I(e>0&&t>0?{width:e,height:t}:{...UM})}));(0,s.useEffect)((()=>{const e=P.current;if(!R.current)return;const{defaultView:t}=R.current.ownerDocument;return null==t||t.addEventListener("resize",e),()=>null==t?void 0:t.removeEventListener("resize",e)}),[]),(0,d.useIsomorphicLayoutEffect)((()=>{P.current()}),[]);const O=e=>{let{clientX:t,clientY:n,shiftKey:r}=e;if(!R.current)return;const{top:o,left:i}=R.current.getBoundingClientRect();let a=(t-i)/M.width,s=(n-o)/M.height;return r&&(a=.1*Math.round(a/.1),s=.1*Math.round(s/.1)),D({x:a,y:s})},D=e=>{var t;const n=null!==(t=null==v?void 0:v(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},A={left:T*M.width,top:N*M.height},L=c()("components-focal-point-picker-control",o),z=`inspector-focal-point-picker-control-${(0,d.useInstanceId)(e)}`;return bI((()=>{E(!0);const e=window.setTimeout((()=>{E(!1)}),600);return()=>window.clearTimeout(e)}),[T,N]),(0,s.createElement)(Rg,a({},y,{__nextHasNoMarginBottom:n,label:l,id:z,help:i,className:L}),(0,s.createElement)(KM,{className:"components-focal-point-picker-wrapper"},(0,s.createElement)(XM,{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:T,y:N},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,null==f||f(D(r))},onMouseDown:C,onBlur:()=>{S&&k()},ref:R,role:"button",tabIndex:-1},(0,s.createElement)(vI,{bounds:M,showOverlay:_}),(0,s.createElement)(gI,{alt:(0,u.__)("Media preview"),autoPlay:r,onLoad:P.current,src:g}),(0,s.createElement)(hI,a({},A,{isDragging:S})))),(0,s.createElement)(cI,{__nextHasNoMarginBottom:n,hasHelpText:!!i,point:{x:T,y:N},onChange:e=>{null==f||f(D(e))}}))};function wI(e){let{iframeRef:t,...n}=e;const r=(0,d.useMergeRefs)([t,(0,d.useFocusableIframe)()]);return lc()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,s.createElement)("iframe",a({ref:r},n))}var xI=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function _I(e){void 0===e&&(e={});var t=mp(e),n=t.state,r=t.loop,o=void 0===r||r,i=h(t,["state","loop"]),a=(0,b.useState)(n),s=a[0],l=a[1],c=Lp(m(m({},i),{},{loop:o}));return m(m({},c),{},{state:s,setState:l})}var EI=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],CI=[].concat(EI,["value","checked","unstable_checkOnFocus"]),kI=z({as:"div",useHook:F({name:"RadioGroup",compose:Wp,keys:EI,useProps:function(e,t){return m({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return N(e,t,n)}});const SI=Ef("border-color:",op.ui.border,";&:hover{border-color:",op.ui.borderHover,";}",""),TI=e=>Ef("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),NI={name:"7whenc",styles:"display:flex;width:100%"},RI=ud("div",{target:"eakva831"})("background:",op.gray[900],";border-radius:",Am.controlBorderRadius,";box-shadow:",Am.toggleGroupControlBackdropBoxShadow,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",Am.transitionDurationFast," ease;",ip("transition")," z-index:1;"),MI=ud("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});var II=(0,s.memo)((function(e){let{containerRef:t,containerWidth:n,isAdaptiveWidth:r,state:o}=e;const[i,a]=(0,s.useState)(0),[l,c]=(0,s.useState)(0),[u,d]=(0,s.useState)(!1),[f,p]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const e=null==t?void 0:t.current;if(!e)return;const n=e.querySelector(`[data-value="${o}"]`);if(p(!!n),!n)return;const r=window.setTimeout((()=>{const{width:t,x:r}=n.getBoundingClientRect(),{x:o}=e.getBoundingClientRect();a(r-o-1),c(t)}),100);let i;return u||(i=window.requestAnimationFrame((()=>{d(!0)}))),()=>{window.clearTimeout(r),window.cancelAnimationFrame(i)}}),[u,t,n,o,r]),f?(0,s.createElement)(RI,{role:"presentation",style:{transform:`translateX(${i}px)`,transition:u?void 0:"none",width:l}}):null}));const PI=(0,s.createContext)({});var OI=PI;const DI=()=>{};const AI=Qu((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,__experimentalIsBorderless:l=!1,label:c,hideLabelFromVision:u=!1,help:f,onChange:p=DI,size:m="default",value:h,children:v,...g}=Ju(e,"ToggleGroupControl"),b=Zu(),y=(0,s.useRef)(),[w,x]=(0,d.useResizeObserver)(),_=_I({baseId:(0,d.useInstanceId)(AI,"toggle-group-control").toString(),state:h}),E=(0,d.usePrevious)(h);bI((()=>{E!==_.state&&p(_.state)}),[_.state]),bI((()=>{h!==_.state&&_.setState(h)}),[h]);const C=(0,s.useMemo)((()=>b((e=>{let{size:t}=e;return Ef("background:",op.ui.background,";border:1px solid transparent;border-radius:",Am.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",Am.transitionDurationFastest," linear;",ip("transition")," ",TI(t)," &:focus-within{border-color:",op.ui.borderFocus,";box-shadow:",Am.controlBoxShadowFocus,";outline:none;z-index:1;}","")})({size:m}),!l&&SI,i&&NI,r)),[r,b,i,l,m]);return(0,s.createElement)(Rg,{help:f,__nextHasNoMarginBottom:n},(0,s.createElement)(OI.Provider,{value:{..._,isBlock:!o,size:m}},!u&&(0,s.createElement)(MI,null,(0,s.createElement)(Rg.VisualLabel,null,c)),(0,s.createElement)(kI,a({},_,{"aria-label":c,as:fd,className:C},g,{ref:(0,d.useMergeRefs)([y,t])}),w,(0,s.createElement)(II,a({},_,{containerRef:y,containerWidth:x.width,isAdaptiveWidth:o})),v)))}),"ToggleGroupControl");var LI=AI;function zI(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function BI(e,t){var n=_e(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var FI=F({name:"Radio",compose:ke,keys:CI,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=h(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return m(m({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=h(t,["ref","onChange","onClick"]),a=(0,b.useRef)(null),s=(0,b.useState)(!0),l=s[0],c=s[1],u=zI(e),d=G(e.currentId===e.id),f=G(r),p=G(o);!function(e){var t=(0,b.useState)((function(){return zI(e)}))[0],n=(0,b.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,b.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),(0,b.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||c(!1))}),[]);var v=(0,b.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),g=(0,b.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),e.defaultPrevented||l||BI(e.currentTarget,v)}),[v,l]);return(0,b.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&BI(t,v)}),[e.unstable_moves,e.unstable_checkOnFocus,v]),m({ref:V(a,n),role:l?void 0:"radio",type:l?"radio":void 0,value:l?e.value:void 0,name:l?e.baseId:void 0,"aria-checked":u,checked:u,onChange:v,onClick:g},i)}}),HI=z({as:"input",memo:!0,useHook:FI});const VI=ud("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),jI={name:"82a6rk",styles:"flex:1"},$I=Ef("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Am.controlBorderRadius,";color:",op.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Am.transitionDurationFast," linear,color ",Am.transitionDurationFast," linear,font-weight 60ms linear;",ip("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Am.toggleGroupControlBackgroundColor,";}",""),WI=ud("div",{target:"et6ln9s0"})("font-size:",Am.fontSize,";line-height:1;"),UI={name:"1qsuvl4",styles:"background:transparent"},GI=e=>{let{size:t}=e;return Ef("color:",op.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[t],";padding-left:0;padding-right:0;","")},qI=Ef("color:",op.white,";&:active{background:transparent;}",""),{ButtonContentView:YI,LabelView:KI}=o,XI=e=>{let{showTooltip:t,text:n,children:r}=e;return t&&n?(0,s.createElement)(gf,{text:n,position:"top center"},r):(0,s.createElement)(s.Fragment,null,r)};const ZI=Qu((function e(t,n){const r=(0,s.useContext)(PI),o=Ju({...t,id:(0,d.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{className:i,isBlock:l=!1,isIcon:c=!1,value:u,children:f,size:p="default",showTooltip:m=!1,...h}={...r,...o},v=h.state===u,g=Zu(),b=g(l&&jI),y=g($I,c&&GI({size:p}),i,v&&qI);return(0,s.createElement)(KI,{className:b,"data-active":v},(0,s.createElement)(XI,{showTooltip:m,text:h["aria-label"]},(0,s.createElement)(HI,a({},h,{as:"button","aria-label":h["aria-label"],className:y,"data-value":u,ref:n,value:u}),(0,s.createElement)(YI,null,f))))}),"ToggleGroupControlOptionBase");var JI=ZI;var QI=(0,s.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,s.createElement)(JI,a({},r,{"aria-label":o,ref:t}),n)}));const eP={slug:"default",name:(0,u.__)("Default")},tP="custom",nP={slug:tP,name:(0,u.__)("Custom")},rP=[(0,u.__)("S"),(0,u.__)("M"),(0,u.__)("L"),(0,u.__)("XL"),(0,u.__)("XXL")];function oP(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(e)}function iP(e,t,n){return n&&!t.length?null:e?function(e,t){return[eP,...e,...t?[]:[nP]].map((e=>{let{slug:t,name:n,size:r}=e;return{key:t,name:n||t,size:r,__experimentalHint:r&&oP(r)&&parseFloat(r)}}))}(t,n):function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rP;return e.map(((e,n)=>{let{slug:r,size:o,name:i}=e;return{key:r,value:o,label:t[n],name:i||t[n]}}))}(t)}const aP=e=>{let{__nextHasNoMarginBottom:t,children:n}=e;return t?(0,s.createElement)(u_,{spacing:6,children:n}):n};var sP=(0,s.forwardRef)((function(e,t){var n,r;let{__nextHasNoMarginBottom:o=!1,fallbackFontSize:i,fontSizes:l=[],disableCustomFontSizes:d=!1,onChange:f,size:p="default",value:m,withSlider:h=!1,withReset:v=!0}=e;o||lc()("Bottom margin styles for wp.components.FontSizePicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const g=[typeof m,typeof(null==l||null===(n=l[0])||void 0===n?void 0:n.size)].includes("string"),b=g?parseInt(m):m,y="number"==typeof m||(null==m||null===(r=m.endsWith)||void 0===r?void 0:r.call(m,"px")),w=M_({availableUnits:["px","em","rem"]}),x=l.some((e=>{let{size:t}=e;return!oP(t)})),_=l.length>5,E=(0,s.useMemo)((()=>iP(_,l,d)),[_,l,d]),C=function(e,t){return t?e.find((e=>e.size===t))||nP:eP}(l,m),k=C.slug===tP,[S,T]=(0,s.useState)(!d&&k),N=(0,s.useMemo)((()=>{if(S)return`(${(0,u.__)("Custom")})`;if(k)return oP(m)&&`(${m})`;if(_)return oP(null==C?void 0:C.size)&&`(${null==C?void 0:C.size})`;let e=(null==C?void 0:C.name)||C.slug;if(!x&&"string"==typeof C.size){const[,t]=function(e){const[t,n]=`${e}`.match(/[\d\.]+|\D+/g);return!isNaN(parseFloat(t))&&isFinite(t)?[t,n]:[]}(C.size);e+=`(${t})`}return e}),[S,null==C?void 0:C.name,null==C?void 0:C.size,m,k,_,x]);if(!E)return null;const R=(0,u.sprintf)((0,u.__)("Currently selected font size: %s"),C.name),M="components-font-size-picker";return(0,s.createElement)("fieldset",a({className:M},t?{}:{ref:t}),(0,s.createElement)(pd,{as:"legend"},(0,u.__)("Font size")),(0,s.createElement)(dy,{className:`${M}__header`},(0,s.createElement)(Ng.VisualLabel,null,(0,u.__)("Size"),N&&(0,s.createElement)("span",{className:`${M}__header__hint`},N)),!d&&(0,s.createElement)(hd,{label:S?(0,u.__)("Use size preset"):(0,u.__)("Set custom size"),icon:xI,onClick:()=>{T(!S)},isPressed:S,isSmall:!0})),(0,s.createElement)(aP,{__nextHasNoMarginBottom:o},(0,s.createElement)("div",{className:c()(`${M}__controls`,{"is-next-has-no-margin-bottom":o})},!!l.length&&_&&!S&&(0,s.createElement)(HT,{__nextUnconstrainedWidth:!0,className:`${M}__select`,label:(0,u.__)("Font size"),hideLabelFromVision:!0,describedBy:R,options:E,value:E.find((e=>e.key===C.slug)),onChange:e=>{let{selectedItem:t}=e;f(g?t.size:Number(t.size)),t.key===tP&&T(!0)},size:p}),!_&&!S&&(0,s.createElement)(LI,{__nextHasNoMarginBottom:o,label:(0,u.__)("Font size"),hideLabelFromVision:!0,value:m,onChange:e=>{f(g?e:Number(e))},isBlock:!0,size:p},E.map((e=>(0,s.createElement)(QI,{key:e.key,value:e.value,label:e.label,"aria-label":e.name,showTooltip:!0})))),!h&&!d&&S&&(0,s.createElement)(bm,{justify:"space-between",className:`${M}__custom-size-control`},(0,s.createElement)(fm,{isBlock:!0},(0,s.createElement)(z_,{label:(0,u.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:m,onChange:e=>{0!==parseFloat(e)&&e?f(g?e:parseInt(e,10)):f(void 0)},size:p,units:g?w:[]})),v&&(0,s.createElement)(fm,{isBlock:!0},(0,s.createElement)(hd,{className:"components-color-palette__clear",disabled:void 0===m,onClick:()=>{f(void 0)},isSmall:!0,variant:"secondary"},(0,u.__)("Reset"))))),h&&(0,s.createElement)(ay,{__nextHasNoMarginBottom:o,className:`${M}__custom-input`,label:(0,u.__)("Custom Size"),value:y&&b||"",initialPosition:i,onChange:e=>{f(g?e+"px":e)},min:12,max:100})))}));var lP=function(e){let{accept:t,children:n,multiple:r=!1,onChange:o,onClick:i,render:l,...c}=e;const u=(0,s.useRef)(null),d=()=>{var e;null===(e=u.current)||void 0===e||e.click()},f=l?l({openFileDialog:d}):(0,s.createElement)(hd,a({onClick:d},c),n);return(0,s.createElement)("div",{className:"components-form-file-upload"},f,(0,s.createElement)("input",{type:"file",ref:u,multiple:r,style:{display:"none"},accept:t,onChange:o,onClick:i,"data-testid":"form-file-upload-input"}))};const cP=()=>{};var uP=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=cP,...l}=e,u=c()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,s.createElement)("span",{className:u},(0,s.createElement)("input",a({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o},l)),(0,s.createElement)("span",{className:"components-form-toggle__track"}),(0,s.createElement)("span",{className:"components-form-toggle__thumb"}))};const dP=()=>{};function fP(e){let{value:t,status:n,title:r,displayTransform:o,isBorderless:i=!1,disabled:a=!1,onClickRemove:l=dP,onMouseEnter:f,onMouseLeave:p,messages:m,termPosition:h,termsCount:v}=e;const g=(0,d.useInstanceId)(fP),b=c()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":i,"is-disabled":a}),y=o(t),w=(0,u.sprintf)((0,u.__)("%1$s (%2$s of %3$s)"),y,h,v);return(0,s.createElement)("span",{className:b,onMouseEnter:f,onMouseLeave:p,title:r},(0,s.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,s.createElement)(pd,{as:"span"},w),(0,s.createElement)("span",{"aria-hidden":"true"},y)),(0,s.createElement)(hd,{className:"components-form-token-field__remove-token",icon:Hg,onClick:!a&&(()=>l({value:t})),label:m.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const pP=e=>{let{__next36pxDefaultSize:t,hasTokens:n}=e;return!t&&Ef("padding-top:",vm(n?1:.5),";padding-bottom:",vm(n?1:.5),";","")},mP=ud(bm,{target:"ehq8nmi0"})("padding:5px ",vm(1),";",pP,";"),hP=e=>e;var vP=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:l=(0,u.__)("Add item"),className:f,suggestions:p=[],maxSuggestions:m=100,value:h=[],displayTransform:v=hP,saveTransform:g=(e=>e.trim()),onChange:b=(()=>{}),onInputChange:y=(()=>{}),onFocus:w,isBorderless:x=!1,disabled:_=!1,tokenizeOnSpace:E=!1,messages:C={added:(0,u.__)("Item added."),removed:(0,u.__)("Item removed."),remove:(0,u.__)("Remove item"),__experimentalInvalid:(0,u.__)("Invalid item")},__experimentalRenderItem:k,__experimentalExpandOnFocus:S=!1,__experimentalValidateInput:T=(()=>!0),__experimentalShowHowTo:N=!0,__next36pxDefaultSize:R=!1,__experimentalAutoSelectFirstMatch:M=!1}=t,I=(0,d.useInstanceId)(e),[P,O]=(0,s.useState)(""),[D,A]=(0,s.useState)(0),[L,z]=(0,s.useState)(!1),[B,F]=(0,s.useState)(!1),[H,V]=(0,s.useState)(-1),[j,$]=(0,s.useState)(!1),W=(0,d.usePrevious)(p),U=(0,d.usePrevious)(h),G=(0,s.useRef)(null),q=(0,s.useRef)(null),Y=(0,d.useDebounce)(ug.speak,500);function K(){var e;null===(e=G.current)||void 0===e||e.focus()}function X(){var e;return G.current===(null===(e=G.current)||void 0===e?void 0:e.ownerDocument.activeElement)}function Z(){fe()?z(!1):(O(""),A(0),z(!1),F(!1),V(-1),$(!1))}function J(e){e.target===q.current&&L&&e.preventDefault()}function Q(e){se(e.value),K()}function ee(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),O(o),y(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&se(h[e])}function re(){const e=ue();e!function(e){return h.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...h];e.splice(ue(),0,...t),b(e)}}function ae(e){T(e)?(ie([e]),(0,ug.speak)(C.added,"assertive"),O(""),V(-1),$(!1),F(!S),L&&K()):(0,ug.speak)(C.__experimentalInvalid,"assertive")}function se(e){const t=h.filter((t=>le(t)!==le(e)));b(t),(0,ug.speak)(C.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:g,i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function ue(){return h.length-D}function de(){return 0===P.length}function fe(){return g(P).length>0}function pe(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=P.trim().length>1,n=ce(P),r=n.length>0,o=X()&&S;if(F(o||t&&r),e&&(M&&t&&r?(V(0),$(!0)):(V(-1),$(!1))),t){const e=r?(0,u.sprintf)((0,u._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,u.__)("No results.");Y(e,"assertive")}}function me(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,a=n.length;return(0,s.createElement)(fm,{key:"token-"+r},(0,s.createElement)(fP,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:v,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||x,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&_,messages:C,termsCount:a,termPosition:i}))}(0,s.useEffect)((()=>{L&&!X()&&K()}),[L]),(0,s.useEffect)((()=>{const e=!Ud()(p,W||[]);(e||h!==U)&&pe(e)}),[p,W,h,U]),(0,s.useEffect)((()=>{pe()}),[P]),(0,s.useEffect)((()=>{pe()}),[M]),_&&L&&(z(!1),O(""));const he=c()(f,"components-form-token-field__input-container",{"is-active":L,"is-disabled":_});let ve={className:"components-form-token-field",tabIndex:-1};const ge=ce();return _||(ve=Object.assign({},ve,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented){switch(e.keyCode){case lg.BACKSPACE:t=te(ne);break;case lg.ENTER:t=oe();break;case lg.LEFT:t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,h.length))),e=!0),e}();break;case lg.UP:V((e=>(0===e?ce(P,p,h,m,g).length:e)-1)),$(!0),t=!0;break;case lg.RIGHT:t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case lg.DOWN:V((e=>(e+1)%ce(P,p,h,m,g).length)),$(!0),t=!0;break;case lg.DELETE:t=te(re);break;case lg.SPACE:E&&(t=oe());break;case lg.ESCAPE:t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),F(!1),V(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;44===e.charCode&&(fe()&&ae(P),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===q.current?(z(!0),F(S||B)):z(!1),"function"==typeof w&&w(e)}})),(0,s.createElement)("div",ve,(0,s.createElement)(Cg,{htmlFor:`components-form-token-input-${I}`,className:"components-form-token-field__label"},l),(0,s.createElement)("div",{ref:q,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,s.createElement)(mP,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next36pxDefaultSize:R,hasTokens:!!h.length},function(){const e=h.map(me);return e.splice(ue(),0,function(){const e={instanceId:I,autoCapitalize:n,autoComplete:r,placeholder:0===h.length?i:"",key:"input",disabled:_,value:P,onBlur:Z,isExpanded:B,selectedSuggestionIndex:H};return(0,s.createElement)(xS,a({},e,{onChange:o&&h.length>=o?void 0:ee,ref:G}))}()),e}()),B&&(0,s.createElement)(kS,{instanceId:I,match:g(P),displayTransform:v,suggestions:ge,selectedIndex:H,scrollIntoView:j,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:k})),N&&(0,s.createElement)("p",{id:`components-form-token-suggestions-howto-${I}`,className:"components-form-token-field__help"},E?(0,u.__)("Separate with commas, spaces, or the Enter key."):(0,u.__)("Separate with commas or the Enter key.")))};const gP=e=>{let{isSelected:t}=e;return(0,s.createElement)(i.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Circle,{cx:"4",cy:"4",r:"4",fill:t?"#419ECD":"#E1E3E6"}))};function bP(e){let{currentPage:t,numberOfPages:n,setCurrentPage:r}=e;return(0,s.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,u.__)("Guide controls")},Array.from({length:n}).map(((e,o)=>(0,s.createElement)("li",{key:o,"aria-current":o===t?"step":void 0},(0,s.createElement)(hd,{key:o,icon:(0,s.createElement)(gP,{isSelected:o===t}),"aria-label":(0,u.sprintf)((0,u.__)("Page %1$d of %2$d"),o+1,n),onClick:()=>r(o)})))))}function yP(e){let{children:t,className:n,contentLabel:r,finishButtonText:o,onFinish:i,pages:a=[]}=e;const l=(0,s.useRef)(),[d,f]=(0,s.useState)(0);(0,s.useEffect)((()=>{s.Children.count(t)&&lc()("Passing children to ",{since:"5.5",alternative:"the `pages` prop"})}),[t]),(0,s.useEffect)((()=>{var e,t;l.current&&(null===(e=Uk.focus.tabbable.find(l.current))||void 0===e||null===(t=e[0])||void 0===t||t.focus())}),[d]),s.Children.count(t)&&(a=s.Children.map(t,(e=>({content:e}))));const p=d>0,m=d{p&&f(d-1)},v=()=>{m&&f(d+1)};return 0===a.length?null:(0,s.createElement)(AS,{className:c()("components-guide",n),contentLabel:r,onRequestClose:i,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(v(),e.preventDefault())},ref:l},(0,s.createElement)("div",{className:"components-guide__container"},(0,s.createElement)("div",{className:"components-guide__page"},a[d].image,a.length>1&&(0,s.createElement)(bP,{currentPage:d,numberOfPages:a.length,setCurrentPage:f}),a[d].content),(0,s.createElement)("div",{className:"components-guide__footer"},p&&(0,s.createElement)(hd,{className:"components-guide__back-button",onClick:h},(0,u.__)("Previous")),m&&(0,s.createElement)(hd,{className:"components-guide__forward-button",onClick:v},(0,u.__)("Next")),!m&&(0,s.createElement)(hd,{className:"components-guide__finish-button",onClick:i},o||(0,u.__)("Finish")))))}function wP(e){return(0,s.useEffect)((()=>{lc()("",{since:"5.5",alternative:"the `pages` prop in "})}),[]),(0,s.createElement)("div",e)}var xP=(0,s.forwardRef)((function(e,t){let{labelPosition:n,size:r,tooltip:o,label:i,...l}=e;return lc()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,s.createElement)(hd,a({},l,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==o?!!o:void 0,label:o||i}))}));var _P=Qu((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=Ju(e,"Item"),{spacedAround:l,size:c}=pk(),u=i||c,d=t||(void 0!==r?"button":"div"),f=Zu(),p=(0,s.useMemo)((()=>f("button"===d&&QC,dk[u]||dk.medium,tk,l&&ik,n)),[d,n,f,u,l]),m=f(ek);return{as:d,className:p,onClick:r,wrapperClassName:m,role:o,...a}}(e);return(0,s.createElement)("div",{role:n,className:r},(0,s.createElement)(fd,a({},o,{ref:t})))}),"Item");var EP=Qu((function(e,t){const n=Ju(e,"InputControlPrefixWrapper");return(0,s.createElement)(og,a({marginBottom:0},n,{ref:t}))}),"InputControlPrefixWrapper");function CP(e){let{target:t,callback:n,shortcut:r,bindGlobal:o,eventName:i}=e;return(0,d.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:i}),null}var kP=function(e){let{children:t,shortcuts:n,bindGlobal:r,eventName:o}=e;const i=(0,s.useRef)(),a=(0,dc.map)(n,((e,t)=>(0,s.createElement)(CP,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:i})));return s.Children.count(t)?(0,s.createElement)("div",{ref:i},a,t):a};var SP=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=(0,d.useInstanceId)(e);if(!s.Children.count(n))return null;const l=`components-menu-group-label-${a}`,u=c()(r,"components-menu-group",{"has-hidden-separator":i});return(0,s.createElement)("div",{className:u},o&&(0,s.createElement)("div",{className:"components-menu-group__label",id:l,"aria-hidden":"true"},o),(0,s.createElement)("div",{role:"group","aria-labelledby":o?l:null},n))};var TP=(0,s.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:l="right",shortcut:u,isSelected:d,role:f="menuitem",...p}=e;return o=c()("components-menu-item__button",o),r&&(n=(0,s.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,s.createElement)("span",{className:"components-menu-item__item"},n),(0,s.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,s.cloneElement)(i,{className:c()("components-menu-items__item-icon",{"has-icon-right":"right"===l})})),(0,s.createElement)(hd,a({ref:t,"aria-checked":"menuitemcheckbox"===f||"menuitemradio"===f?d:void 0,role:f,icon:"left"===l?i:void 0,className:o},p),(0,s.createElement)("span",{className:"components-menu-item__item"},n),(0,s.createElement)(df,{className:"components-menu-item__shortcut",shortcut:u}),i&&"right"===l&&(0,s.createElement)(uc,{icon:i}))}));const NP=()=>{};function RP(e){let{choices:t=[],onHover:n=NP,onSelect:r,value:o}=e;return t.map((e=>{const t=o===e.value;return(0,s.createElement)(TP,{key:e.value,role:"menuitemradio",icon:t&&l_,info:e.info,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{t||r(e.value)},onMouseEnter:()=>n(e.value),onMouseLeave:()=>n(null),"aria-label":e["aria-label"]},e.label)}))}var MP=(0,s.forwardRef)((function(e,t){let{eventToOffset:n,...r}=e;return(0,s.createElement)(Xk,a({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{code:t,shiftKey:r}=e;return"Tab"===t?r?-1:1:n?n(e):void 0}},r))}));const IP="root",PP=()=>{},OP=(0,s.createContext)({activeItem:void 0,activeMenu:IP,setActiveMenu:PP,isMenuEmpty:PP,navigationTree:{items:{},getItem:PP,addItem:PP,removeItem:PP,menus:{},getMenu:PP,addMenu:PP,removeMenu:PP,childMenu:{},traverseMenu:PP,isMenuEmpty:PP}}),DP=()=>(0,s.useContext)(OP);var AP=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));const LP=(0,s.forwardRef)((function(e,t){let{__nextHasNoMarginBottom:n,className:r,onChange:o,onKeyDown:i,value:l,label:f,placeholder:p=(0,u.__)("Search"),hideLabelFromVision:m=!0,help:h,onClose:v,...g}=e;const b=(0,s.useRef)(),y=`components-search-control-${(0,d.useInstanceId)(LP)}`;return(0,s.createElement)(Rg,{__nextHasNoMarginBottom:n,label:f,id:y,hideLabelFromVision:m,help:h,className:c()(r,"components-search-control")},(0,s.createElement)("div",{className:"components-search-control__input-wrapper"},(0,s.createElement)("input",a({},g,{ref:(0,d.useMergeRefs)([b,t]),className:"components-search-control__input",id:y,type:"search",placeholder:p,onChange:e=>o(e.target.value),onKeyDown:i,autoComplete:"off",value:l||""})),(0,s.createElement)("div",{className:"components-search-control__icon"},v?(0,s.createElement)(hd,{icon:Hg,label:(0,u.__)("Close search"),onClick:v}):l?(0,s.createElement)(hd,{icon:Hg,label:(0,u.__)("Reset search"),onClick:()=>{var e;o(""),null===(e=b.current)||void 0===e||e.focus()}}):(0,s.createElement)(wb,{icon:AP}))))}));var zP=LP;const BP=ud("div",{target:"ejwewyf11"})("width:100%;box-sizing:border-box;padding:0 ",vm(4),";overflow:hidden;"),FP=ud("div",{target:"ejwewyf10"})("margin-top:",vm(6),";margin-bottom:",vm(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",vm(6),";}.components-navigation__group+.components-navigation__group{margin-top:",vm(6),";}"),HP=ud(hd,{target:"ejwewyf9"})({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;}}"}),VP=ud("div",{target:"ejwewyf8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),jP=ud("span",{target:"ejwewyf7"})("height:",vm(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",vm(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),$P=ud(zP,{target:"ejwewyf6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),WP=ud(f_,{target:"ejwewyf5"})("min-height:",vm(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",vm(2),";padding:",(()=>(0,u.isRTL)()?`${vm(1)} ${vm(4)} ${vm(1)} ${vm(2)}`:`${vm(1)} ${vm(2)} ${vm(1)} ${vm(4)}`),";"),UP=ud("li",{target:"ejwewyf4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",vm(2)," ",vm(4),";",ih({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:",op.ui.theme,";color:",op.white,";>button,>a{color:",op.white,";opacity:1;}}>svg path{color:",op.gray[600],";}"),GP=ud("div",{target:"ejwewyf3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",vm(1.5)," ",vm(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),qP=ud("span",{target:"ejwewyf2"})("display:flex;margin-right:",vm(2),";"),YP=ud("span",{target:"ejwewyf1"})("margin-left:",(()=>(0,u.isRTL)()?"0":vm(2)),";margin-right:",(()=>(0,u.isRTL)()?vm(2):"0"),";display:inline-flex;padding:",vm(1)," ",vm(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",ip("animation"),";"),KP=ud(Zm,{target:"ejwewyf0"})((()=>(0,u.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;"),XP=()=>{const[e,t]=(0,s.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}))}},ZP=()=>{};function JP(e){let{activeItem:t,activeMenu:n=IP,children:r,className:o,onActivateMenu:i=ZP}=e;const[a,l]=(0,s.useState)(n),[d,f]=(0,s.useState)(),p=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=XP(),{nodes:o,getNode:i,addNode:a,removeNode:l}=XP(),[c,u]=(0,s.useState)({}),d=e=>c[e]||[],f=(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 r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r})),a(e,t)},removeMenu:l,childMenu:c,traverseMenu:f,isMenuEmpty:e=>{let t=!0;return f(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),m=(0,u.isRTL)()?"right":"left",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;p.getMenu(e)&&(f(t),l(e),i(e))},v=(0,s.useRef)(!1);(0,s.useEffect)((()=>{v.current||(v.current=!0)}),[]),(0,s.useEffect)((()=>{n!==a&&h(n)}),[n]);const g={activeItem:t,activeMenu:a,setActiveMenu:h,navigationTree:p},b=c()("components-navigation",o),y=nm({type:"slide-in",origin:d});return(0,s.createElement)(BP,{className:b},(0,s.createElement)("div",{key:a,className:c()({[y]:v.current&&d})},(0,s.createElement)(OP.Provider,{value:g},r)))}var QP=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var eO=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var tO=(0,s.forwardRef)((function(e,t){var n;let{backButtonLabel:r,className:o,href:i,onClick:a,parentMenu:l}=e;const{setActiveMenu:d,navigationTree:f}=DP(),p=c()("components-navigation__back-button",o),m=null===(n=f.getMenu(l))||void 0===n?void 0:n.title,h=(0,u.isRTL)()?QP:eO;return(0,s.createElement)(HP,{className:p,href:i,variant:"tertiary",ref:t,onClick:e=>{"function"==typeof a&&a(e);const t=(0,u.isRTL)()?"left":"right";l&&!e.defaultPrevented&&d(l,t)}},(0,s.createElement)(wb,{icon:h}),r||m||(0,u.__)("Back"))}));const nO=(0,s.createContext)({group:void 0});let rO=0;function oO(e){let{children:t,className:n,title:r}=e;const[o]=(0,s.useState)("group-"+ ++rO),{navigationTree:{items:i}}=DP(),a={group:o};if(!Object.values(i).some((e=>e.group===o&&e._isVisible)))return(0,s.createElement)(nO.Provider,{value:a},t);const l=`components-navigation__group-title-${o}`,u=c()("components-navigation__group",n);return(0,s.createElement)(nO.Provider,{value:a},(0,s.createElement)("li",{className:u},r&&(0,s.createElement)(WP,{className:"components-navigation__group-title",id:l,level:3},r),(0,s.createElement)("ul",{"aria-labelledby":l,role:"group"},t)))}function iO(e){const{badge:t,title:n}=e;return(0,s.createElement)(s.Fragment,null,n&&(0,s.createElement)(KP,{className:"components-navigation__item-title",variant:"body.small",as:"span"},n),t&&(0,s.createElement)(YP,{className:"components-navigation__item-badge"},t))}const aO=(0,s.createContext)({menu:void 0,search:""}),sO=()=>(0,s.useContext)(aO),lO=e=>sg()(e).replace(/^\//,"").toLowerCase(),cO=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=DP(),{group:i}=(0,s.useContext)(nO),{menu:a,search:l}=sO();(0,s.useEffect)((()=>{const s=n===a,c=!l||((e,t)=>-1!==lO(e).indexOf(lO(t)))(t.title,l);return r(e,{...t,group:i,menu:a,_isVisible:s&&c}),()=>{o(e)}}),[n,l])};let uO=0;function dO(e){var t;const{children:n,className:r,title:o,href:i,...l}=e,[u]=(0,s.useState)("item-"+ ++uO);cO(u,e);const{navigationTree:d}=DP();if(null===(t=d.getItem(u))||void 0===t||!t._isVisible)return null;const f=c()("components-navigation__item",r);return(0,s.createElement)(UP,a({className:f},l),n)}const fO=()=>{};function pO(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:l,onClick:d=fO,title:f,icon:p,hideIfTargetMenuEmpty:m,isText:h,...v}=e,{activeItem:g,setActiveMenu:b,navigationTree:{isMenuEmpty:y}}=DP();if(m&&l&&y(l))return null;const w=i&&g===i,x=c()(r,{"is-active":w}),_=(0,u.isRTL)()?eO:QP,E=n?e:{...e,onClick:void 0},C=h?v:{as:hd,href:o,onClick:e=>{l&&b(l),d(e)},"aria-current":w?"page":void 0,...v};return(0,s.createElement)(dO,a({},E,{className:x}),n||(0,s.createElement)(GP,C,p&&(0,s.createElement)(qP,null,(0,s.createElement)(wb,{icon:p})),(0,s.createElement)(iO,{title:f,badge:t}),l&&(0,s.createElement)(wb,{icon:_})))}var mO=(0,d.createHigherOrderComponent)((e=>t=>(0,s.createElement)(e,a({},t,{speak:ug.speak,debouncedSpeak:(0,d.useDebounce)(ug.speak,500)}))),"withSpokenMessages");var hO=mO((function(e){let{debouncedSpeak:t,onCloseSearch:n,onSearch:r,search:o,title:i}=e;const{navigationTree:{items:a}}=DP(),{menu:l}=sO(),c=(0,s.useRef)();(0,s.useEffect)((()=>{const e=setTimeout((()=>{c.current.focus()}),100);return()=>{clearTimeout(e)}}),[]),(0,s.useEffect)((()=>{if(!o)return;const e=Object.values(a).filter((e=>e._isVisible)).length,n=(0,u.sprintf)((0,u._n)("%d result found.","%d results found.",e),e);t(n)}),[a,o]);const d=()=>{r(""),n()},f=`components-navigation__menu-title-search-${l}`,p=(0,u.sprintf)((0,u.__)("Search %s"),null==i?void 0:i.toLowerCase()).trim();return(0,s.createElement)("div",{className:"components-navigation__menu-title-search"},(0,s.createElement)($P,{autoComplete:"off",className:"components-navigation__menu-search-input",id:f,onChange:e=>r(e),onKeyDown:function(e){"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),d())},placeholder:p,onClose:d,ref:c,type:"search",value:o}))}));function vO(e){let{hasSearch:t,onSearch:n,search:r,title:o,titleAction:i}=e;const[a,l]=(0,s.useState)(!1),{menu:c}=sO(),d=(0,s.useRef)();if(!o)return null;const f=`components-navigation__menu-title-${c}`,p=(0,u.sprintf)((0,u.__)("Search in %s"),o);return(0,s.createElement)(VP,{className:"components-navigation__menu-title"},!a&&(0,s.createElement)(WP,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,s.createElement)("span",{id:f},o),(t||i)&&(0,s.createElement)(jP,null,i,t&&(0,s.createElement)(hd,{isSmall:!0,variant:"tertiary",label:p,onClick:()=>l(!0),ref:d},(0,s.createElement)(wb,{icon:AP})))),a&&(0,s.createElement)("div",{className:nm({type:"slide-in",origin:"left"})},(0,s.createElement)(hO,{onCloseSearch:()=>{l(!1),setTimeout((()=>{d.current.focus()}),100)},onSearch:n,search:r,title:o})))}function gO(e){let{search:t}=e;const{navigationTree:{items:n}}=DP(),r=Object.values(n).filter((e=>e._isVisible)).length;return!t||r?null:(0,s.createElement)(UP,null,(0,s.createElement)(GP,null,(0,u.__)("No results found.")," "))}function bO(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=IP,onBackButtonClick:a,onSearch:l,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,v]=(0,s.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=DP(),r=e.menu||IP;(0,s.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:g}=DP(),b={menu:i,search:h};if(g!==i)return(0,s.createElement)(aO.Provider,{value:b},n);const y=!!l,w=y?d:h,x=y?l:v,_=`components-navigation__menu-title-${i}`,E=c()("components-navigation__menu",r);return(0,s.createElement)(aO.Provider,{value:b},(0,s.createElement)(FP,{className:E},(u||a)&&(0,s.createElement)(tO,{backButtonLabel:t,parentMenu:u,onClick:a}),p&&(0,s.createElement)(vO,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,s.createElement)(Zk,null,(0,s.createElement)("ul",{"aria-labelledby":_},n,w&&!f&&(0,s.createElement)(gO,{search:w})))))}const yO=(0,s.createContext)({location:{},goTo:()=>{},goBack:()=>{}});var wO={name:"15bx5k",styles:"overflow-x:hidden"};const xO=Qu((function(e,t){const{initialPath:n,children:r,className:o,...i}=Ju(e,"NavigatorProvider"),[l,c]=(0,s.useState)([{path:n}]),u=(0,s.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c([...l,{...t,path:e,isBack:!1,hasRestoredFocus:!1}])}),[l]),d=(0,s.useCallback)((()=>{l.length>1&&c([...l.slice(0,-2),{...l[l.length-2],isBack:!0,hasRestoredFocus:!1}])}),[l]),f=(0,s.useMemo)((()=>({location:{...l[l.length-1],isInitial:1===l.length},goTo:u,goBack:d})),[l,u,d]),p=Zu(),m=(0,s.useMemo)((()=>p(wO,o)),[o,p]);return(0,s.createElement)(fd,a({ref:t,className:m},i),(0,s.createElement)(yO.Provider,{value:f},r))}),"NavigatorProvider");var _O=xO,EO=window.wp.escapeHtml;var CO={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const kO=Qu((function(e,t){const{children:n,className:r,path:o,...i}=Ju(e,"NavigatorScreen"),l=(0,d.useReducedMotion)(),{location:c}=(0,s.useContext)(yO),f=c.path===(0,EO.escapeAttribute)(o),p=(0,s.useRef)(null),m=(0,d.usePrevious)(c),h=Zu(),v=(0,s.useMemo)((()=>h(CO,r)),[r,h]),g=c.isInitial&&!c.isBack;(0,s.useEffect)((()=>{if(g||!f||!p.current||c.hasRestoredFocus)return;let e=null;if(c.isBack&&null!=m&&m.focusTargetSelector&&(e=p.current.querySelector(m.focusTargetSelector)),!e){const t=Uk.focus.tabbable.find(p.current)[0];e=null!=t?t:p.current}c.hasRestoredFocus=!0,e.focus()}),[g,f,c.hasRestoredFocus,c.isBack,null==m?void 0:m.focusTargetSelector]);const b=(0,d.useMergeRefs)([t,p]);if(!f)return null;if(l)return(0,s.createElement)(fd,a({ref:b,className:v},i),n);const y={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},w={opacity:0,x:(0,u.isRTL)()&&c.isBack||!(0,u.isRTL)()&&!c.isBack?50:-50},x={animate:y,exit:{delay:0,opacity:0,x:!(0,u.isRTL)()&&c.isBack||(0,u.isRTL)()&&!c.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:w};return(0,s.createElement)(ic.div,a({ref:b,className:v},i,x),n)}),"NavigatorScreen");var SO=kO;var TO=function(){const{location:e,goTo:t,goBack:n}=(0,s.useContext)(yO);return{location:e,goTo:t,goBack:n}};var NO=Qu((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=hd,attributeName:o="id",...i}=Ju(e,"NavigatorButton"),a=(0,EO.escapeAttribute)(t),{goTo:l}=TO();return{as:r,onClick:(0,s.useCallback)((e=>{var t,r;e.preventDefault(),l(a,{focusTargetSelector:(t=o,r=a,`[${t}="${r}"]`)}),null==n||n(e)}),[l,n,o,a]),...i,[o]:a}}(e);return(0,s.createElement)(fd,a({ref:t},n))}),"NavigatorButton");var RO=Qu((function(e,t){const n=function(e){const{onClick:t,as:n=hd,...r}=Ju(e,"NavigatorBackButton"),{goBack:o}=TO();return{as:n,onClick:(0,s.useCallback)((e=>{e.preventDefault(),o(),null==t||t(e)}),[o,t]),...r}}(e);return(0,s.createElement)(fd,a({ref:t},n))}),"NavigatorBackButton");const MO=()=>{};function IO(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var PO=function(e){let{className:t,status:n="info",children:r,spokenMessage:o=r,onRemove:i=MO,isDismissible:a=!0,actions:l=[],politeness:d=IO(n),__unstableHTML:f,onDismiss:p=MO}=e;!function(e,t){const n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((()=>{n&&(0,ug.speak)(n,t)}),[n,t])}(o,d);const m=c()(t,"components-notice","is-"+n,{"is-dismissible":a});return f&&(r=(0,s.createElement)(s.RawHTML,null,r)),(0,s.createElement)("div",{className:m},(0,s.createElement)("div",{className:"components-notice__content"},r,(0,s.createElement)("div",{className:"components-notice__actions"},l.map(((e,t)=>{let{className:n,label:r,isPrimary:o,variant:i,noDefaultClasses:a=!1,onClick:l,url:u}=e,d=i;return"primary"===i||a||(d=u?"link":"secondary"),void 0===d&&o&&(d="primary"),(0,s.createElement)(hd,{key:t,href:u,variant:d,onClick:u?void 0:l,className:c()("components-notice__action",n)},r)})))),a&&(0,s.createElement)(hd,{className:"components-notice__dismiss",icon:ac,label:(0,u.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),p(),i()},showTooltip:!1}))};const OO=()=>{};var DO=function(e){let{notices:t,onRemove:n=OO,className:r,children:o}=e;const i=e=>()=>n(e);return r=c()("components-notice-list",r),(0,s.createElement)("div",{className:r},o,[...t].reverse().map((e=>{const{content:t,...n}=e;return(0,s.createElement)(PO,a({},n,{key:e.id,onRemove:i(e.id)}),e.content)})))};var AO=function(e){let{label:t,children:n}=e;return(0,s.createElement)("div",{className:"components-panel__header"},t&&(0,s.createElement)("h2",null,t),n)};var LO=(0,s.forwardRef)((function(e,t){let{header:n,className:r,children:o}=e;const i=c()(r,"components-panel");return(0,s.createElement)("div",{className:i,ref:t},n&&(0,s.createElement)(AO,{label:n}),o)}));var zO=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));const BO=()=>{};const FO=(0,s.forwardRef)(((e,t)=>{let{isOpened:n,icon:r,title:o,...i}=e;return o?(0,s.createElement)("h2",{className:"components-panel__body-title"},(0,s.createElement)(hd,a({className:"components-panel__body-toggle","aria-expanded":n,ref:t},i),(0,s.createElement)("span",{"aria-hidden":"true"},(0,s.createElement)(uc,{className:"components-panel__arrow",icon:n?zO:xb})),o,r&&(0,s.createElement)(uc,{icon:r,className:"components-panel__icon",size:20}))):null})),HO=(0,s.forwardRef)((function(e,t){let{buttonProps:n={},children:r,className:o,icon:i,initialOpen:l,onToggle:u=BO,opened:f,title:p,scrollAfterOpen:m=!0}=e;const[h,v]=Tb(f,{initial:void 0===l||l}),g=(0,s.useRef)(),b=(0,d.useReducedMotion)()?"auto":"smooth",y=(0,s.useRef)();y.current=m,bI((()=>{var e;h&&y.current&&null!==(e=g.current)&&void 0!==e&&e.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:b})}),[h,b]);const w=c()("components-panel__body",o,{"is-opened":h});return(0,s.createElement)("div",{className:w,ref:(0,d.useMergeRefs)([g,t])},(0,s.createElement)(FO,a({icon:i,isOpened:h,onClick:e=>{e.preventDefault();const t=!h;v(t),u(t)},title:p},n)),"function"==typeof r?r({opened:h}):h&&r)}));HO.displayName="PanelBody";var VO=HO;const jO=(0,s.forwardRef)(((e,t)=>{let{className:n,children:r}=e;return(0,s.createElement)("div",{className:c()("components-panel__row",n),ref:t},r)}));var $O=jO;const WO=(0,s.createElement)(i.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,s.createElement)(i.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));var UO=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:l,preview:u,isColumnLayout:f,withIllustration:p,...m}=e,[h,{width:v}]=(0,d.useResizeObserver)();let g;"number"==typeof v&&(g={"is-large":v>=480,"is-medium":v>=160&&v<480,"is-small":v<160});const b=c()("components-placeholder",i,g,p?"has-illustration":null),y=c()("components-placeholder__fieldset",{"is-column-layout":f});return(0,s.createElement)("div",a({},m,{className:b}),p?WO:null,h,l,u&&(0,s.createElement)("div",{className:"components-placeholder__preview"},u),(0,s.createElement)("div",{className:"components-placeholder__label"},(0,s.createElement)(uc,{icon:t}),r),(0,s.createElement)("fieldset",{className:y},!!o&&(0,s.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};function GO(e){const t=e.map((e=>({children:[],parent:null,...e}))),n=(0,dc.groupBy)(t,"parent");if(n.null&&n.null.length)return t;const r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}function qO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,dc.unescape)(e.name)},...qO(e.children||[],t+1)]))}var YO=function(e){let{label:t,noOptionLabel:n,onChange:r,selectedId:o,tree:i=[],...l}=e;const c=(0,s.useMemo)((()=>[n&&{value:"",label:n},...qO(i)].filter((e=>!!e))),[n,i]);return(0,s.createElement)(Cb,a({label:t,options:c,onChange:r,value:o},l))};function KO(e){let{label:t,noOptionLabel:n,categoriesList:r,selectedCategoryId:o,onChange:i,...l}=e;const c=(0,s.useMemo)((()=>GO(r)),[r]);return(0,s.createElement)(YO,a({label:t,noOptionLabel:n,onChange:i,tree:c,selectedId:o},l))}function XO(e){let{label:t,noOptionLabel:n,authorList:r,selectedAuthorId:o,onChange:i}=e;if(!r)return null;const a=GO(r);return(0,s.createElement)(YO,{label:t,noOptionLabel:n,onChange:i,tree:a,selectedId:o})}const ZO=1,JO=100;function QO(e){let{authorList:t,selectedAuthorId:n,categoriesList:r,selectedCategoryId:o,categorySuggestions:i,selectedCategories:a,numberOfItems:l,order:c,orderBy:d,maxItems:f=JO,minItems:p=ZO,onCategoryChange:m,onAuthorChange:h,onNumberOfItemsChange:v,onOrderChange:g,onOrderByChange:b}=e;return[g&&b&&(0,s.createElement)(kb,{key:"query-controls-order-select",label:(0,u.__)("Order by"),value:`${d}/${c}`,options:[{label:(0,u.__)("Newest to oldest"),value:"date/desc"},{label:(0,u.__)("Oldest to newest"),value:"date/asc"},{label:(0,u.__)("A → Z"),value:"title/asc"},{label:(0,u.__)("Z → A"),value:"title/desc"}],onChange:e=>{const[t,n]=e.split("/");n!==c&&g(n),t!==d&&b(t)}}),r&&m&&(0,s.createElement)(KO,{key:"query-controls-category-select",categoriesList:r,label:(0,u.__)("Category"),noOptionLabel:(0,u.__)("All"),selectedCategoryId:o,onChange:m}),i&&m&&(0,s.createElement)(vP,{key:"query-controls-categories-select",label:(0,u.__)("Categories"),value:a&&a.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(i),onChange:m,maxSuggestions:20}),h&&(0,s.createElement)(XO,{key:"query-controls-author-select",authorList:t,label:(0,u.__)("Author"),noOptionLabel:(0,u.__)("All"),selectedAuthorId:n,onChange:h}),v&&(0,s.createElement)(ay,{key:"query-controls-range-control",label:(0,u.__)("Number of items"),value:l,onChange:v,min:p,max:f,required:!0})]}var eD=(0,s.createContext)({state:null,setState:()=>{}});var tD=(0,s.forwardRef)((function(e,t){let{children:n,value:r,...o}=e;const i=(0,s.useContext)(eD),l=i.state===r;return(0,s.createElement)(HI,a({ref:t,as:hd,variant:l?"primary":"secondary",value:r},i,o),n||r)}));var nD=(0,s.forwardRef)((function(e,t){let{label:n,checked:r,defaultChecked:o,disabled:i,onChange:l,...c}=e;const u=_I({state:o,baseId:c.id}),d={...u,disabled:i,state:null!=r?r:u.state,setState:null!=l?l:u.setState};return(0,s.createElement)(eD.Provider,{value:d},(0,s.createElement)(kI,a({ref:t,as:KE,"aria-label":n},u,c)))}));var rD=function e(t){const{label:n,className:r,selected:o,help:i,onChange:l,hideLabelFromVision:u,options:f=[],...p}=t,m=`inspector-radio-control-${(0,d.useInstanceId)(e)}`,h=e=>l(e.target.value);return null!=f&&f.length?(0,s.createElement)(Rg,{__nextHasNoMarginBottom:!0,label:n,id:m,hideLabelFromVision:u,help:i,className:c()(r,"components-radio-control")},(0,s.createElement)(u_,{spacing:1},f.map(((e,t)=>(0,s.createElement)("div",{key:`${m}-${t}`,className:"components-radio-control__option"},(0,s.createElement)("input",a({id:`${m}-${t}`,className:"components-radio-control__input",type:"radio",name:m,value:e.value,onChange:h,checked:e.value===o,"aria-describedby":i?`${m}__help`:void 0},p)),(0,s.createElement)("label",{htmlFor:`${m}-${t}`},e.label)))))):null},oD=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)}}(),iD=function(){return iD=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{},kD={bottom:"bottom",corner:"corner"};function SD(e){let{axis:t,fadeTimeout:n=180,onResize:r=CD,position:o=kD.bottom,showPx:i=!1}=e;const[a,l]=(0,d.useResizeObserver)(),c=!!t,[u,f]=(0,s.useState)(!1),[p,m]=(0,s.useState)(!1),{width:h,height:v}=l,g=(0,s.useRef)(v),b=(0,s.useRef)(h),y=(0,s.useRef)(),w=()=>{c||(f(!1),m(!1))};(0,s.useEffect)((()=>{if(!(null!==h||null!==v))return;const e=h!==b.current,t=v!==g.current;if(e||t){if(h&&!b.current&&v&&!g.current)return b.current=h,void(g.current=v);e&&(f(!0),b.current=h),t&&(m(!0),g.current=v),r({width:h,height:v}),y.current&&window.clearTimeout(y.current),y.current=window.setTimeout(w,n)}}),[h,v]);const x=function(e){let{axis:t,height:n,moveX:r=!1,moveY:o=!1,position:i=kD.bottom,showPx:a=!1,width:s}=e;if(!r&&!o)return;if(i===kD.corner)return`${s} x ${n}`;const l=a?" px":"";if(t){if("x"===t&&r)return`${s}${l}`;if("y"===t&&o)return`${n}${l}`}if(r&&o)return`${s} x ${n}`;if(r)return`${s}${l}`;if(o)return`${n}${l}`;return}({axis:t,height:v,moveX:u,moveY:p,position:o,showPx:i,width:h});return{label:x,resizeListener:a}}const TD=ud("div",{target:"ekdag503"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),ND=ud("div",{target:"ekdag502"})({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"}),RD=ud("div",{target:"ekdag501"})("background:",op.gray[900],";border-radius:2px;box-sizing:border-box;font-size:12px;color:",op.ui.textDark,";padding:4px 8px;position:relative;"),MD=ud(Zm,{target:"ekdag500"})("&&&{color:",op.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const ID=(0,s.forwardRef)((function(e,t){let{label:n,position:r=kD.corner,zIndex:o=1e3,...i}=e;const l=!!n,c=r===kD.bottom,d=r===kD.corner;if(!l)return null;let f={opacity:l?1:void 0,zIndex:o},p={};return c&&(f={...f,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},p={transform:"translate(0, 100%)"}),d&&(f={...f,position:"absolute",top:4,right:(0,u.isRTL)()?void 0:4,left:(0,u.isRTL)()?4:void 0}),(0,s.createElement)(ND,a({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:t,style:f},i),(0,s.createElement)(RD,{className:"components-resizable-tooltip__tooltip",style:p},(0,s.createElement)(MD,{as:"span"},n)))}));var PD=ID;const OD=()=>{};const DD=(0,s.forwardRef)((function(e,t){let{axis:n,className:r,fadeTimeout:o=180,isVisible:i=!0,labelRef:l,onResize:u=OD,position:d=kD.bottom,showPx:f=!0,zIndex:p=1e3,...m}=e;const{label:h,resizeListener:v}=SD({axis:n,fadeTimeout:o,onResize:u,showPx:f,position:d});if(!i)return null;const g=c()("components-resize-tooltip",r);return(0,s.createElement)(TD,a({"aria-hidden":"true",className:g,ref:t},m),v,(0,s.createElement)(PD,{"aria-hidden":m["aria-hidden"],label:h,position:d,ref:l,zIndex:p}))}));var AD=DD;const LD="components-resizable-box__handle",zD="components-resizable-box__side-handle",BD="components-resizable-box__corner-handle",FD={top:c()(LD,zD,"components-resizable-box__handle-top"),right:c()(LD,zD,"components-resizable-box__handle-right"),bottom:c()(LD,zD,"components-resizable-box__handle-bottom"),left:c()(LD,zD,"components-resizable-box__handle-left"),topLeft:c()(LD,BD,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:c()(LD,BD,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:c()(LD,BD,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:c()(LD,BD,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},HD={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},VD={top:HD,right:HD,bottom:HD,left:HD,topLeft:HD,topRight:HD,bottomRight:HD,bottomLeft:HD};var jD=(0,s.forwardRef)((function(e,t){let{className:n,children:r,showHandle:o=!0,__experimentalShowTooltip:i=!1,__experimentalTooltipProps:l={},...u}=e;return(0,s.createElement)(ED,a({className:c()("components-resizable-box__container",o&&"has-show-handle",n),handleClasses:FD,handleStyles:VD,ref:t},u),r,i&&(0,s.createElement)(AD,l))}));var $D=function(e){let{naturalWidth:t,naturalHeight:n,children:r,isInline:o=!1}=e;const[i,{width:a}]=(0,d.useResizeObserver)();if(1!==s.Children.count(r))return null;const l={paddingBottom:t0&&void 0!==arguments[0]&&arguments[0];if(!m())return;const{contentDocument:a,ownerDocument:c}=l.current,{body:u}=a;if(!e&&null!==u.getAttribute("data-resizable-iframe-connected"))return;const d=(0,s.createElement)("html",{lang:c.documentElement.lang,className:r},(0,s.createElement)("head",null,(0,s.createElement)("title",null,n),(0,s.createElement)("style",{dangerouslySetInnerHTML:{__html:UD}}),o.map(((e,t)=>(0,s.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,s.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:r},(0,s.createElement)("div",{dangerouslySetInnerHTML:{__html:t}}),(0,s.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:WD}}),i.map((e=>(0,s.createElement)("script",{key:e,src:e})))));a.open(),a.write(""+(0,s.renderToString)(d)),a.close()}return(0,s.useEffect)((()=>{function e(){h(!1)}function t(e){const t=l.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(u(n.width),p(n.height))}h();const{ownerDocument:n}=l.current,{defaultView:r}=n;return l.current.addEventListener("load",e,!1),r.addEventListener("message",t),()=>{var n;null===(n=l.current)||void 0===n||n.removeEventListener("load",e,!1),r.addEventListener("message",t)}}),[]),(0,s.useEffect)((()=>{h()}),[n,o,i]),(0,s.useEffect)((()=>{h(!0)}),[t,r]),(0,s.createElement)("iframe",{ref:(0,d.useMergeRefs)([l,(0,d.useFocusableIframe)()]),title:n,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:a,width:Math.ceil(c),height:Math.ceil(f)})}const qD=()=>{};var YD=(0,s.forwardRef)((function(e,t){let{className:n,children:r,spokenMessage:o=r,politeness:i="polite",actions:a=[],onRemove:l=qD,icon:d=null,explicitDismiss:f=!1,onDismiss:p=qD,listRef:m}=e;function h(e){e&&e.preventDefault&&e.preventDefault(),m.current.focus(),p(),l()}p=p||qD,function(e,t){const n="string"==typeof e?e:(0,s.renderToString)(e);(0,s.useEffect)((()=>{n&&(0,ug.speak)(n,t)}),[n,t])}(o,i),(0,s.useEffect)((()=>{const e=setTimeout((()=>{f||(p(),l())}),1e4);return()=>clearTimeout(e)}),[p,l]);const v=c()(n,"components-snackbar",{"components-snackbar-explicit-dismiss":!!f});a&&a.length>1&&("undefined"!=typeof process&&process.env,a=[a[0]]);const g=c()("components-snackbar__content",{"components-snackbar__content-with-icon":!!d});return(0,s.createElement)("div",{ref:t,className:v,onClick:f?qD:h,tabIndex:"0",role:f?"":"button",onKeyPress:f?qD:h,"aria-label":f?"":(0,u.__)("Dismiss this notice")},(0,s.createElement)("div",{className:g},d&&(0,s.createElement)("div",{className:"components-snackbar__icon"},d),r,a.map(((e,t)=>{let{label:n,onClick:r,url:o}=e;return(0,s.createElement)(hd,{key:t,href:o,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),l(),t&&t(e)}(e,r),className:"components-snackbar__action"},n)})),f&&(0,s.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:h,onKeyPress:h},"✕")))}));const KD=()=>{},XD={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}},ZD={init:!1,open:!1,exit:!1};var JD=function(e){let{notices:t,className:n,children:r,onRemove:o=KD}=e;const i=(0,s.useRef)(),l=(0,d.useReducedMotion)();n=c()("components-snackbar-list",n);const u=e=>()=>o(e.id);return(0,s.createElement)("div",{className:n,tabIndex:-1,ref:i},r,(0,s.createElement)(IM,null,t.map((e=>{const{content:t,...n}=e;return(0,s.createElement)(ic.div,{layout:!l,initial:"init",animate:"open",exit:"exit",key:e.id,variants:l?ZD:XD},(0,s.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,s.createElement)(YD,a({},n,{onRemove:u(e),listRef:i}),e.content)))}))))};const QD=(function(){var e=Ef.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_"}}})` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,eA=ud("svg",{target:"ea4tfvq2"})("width:",Am.spinnerSize,"px;height:",Am.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:var( --wp-admin-theme-color );overflow:visible;"),tA={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},nA=ud("circle",{target:"ea4tfvq1"})(tA,";stroke:",op.gray[300],";"),rA=ud("path",{target:"ea4tfvq0"})(tA,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",QD,";");const oA=(0,s.forwardRef)((function(e,t){let{className:n,...r}=e;return(0,s.createElement)(eA,a({className:c()("components-spinner",n),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false"},r,{ref:t}),(0,s.createElement)(nA,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,s.createElement)(rA,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var iA=oA;var aA=Qu((function(e,t){const n=TC(e);return(0,s.createElement)(fd,a({},n,{ref:t}))}),"Surface");const sA=e=>{let{tabId:t,onClick:n,children:r,selected:o,...i}=e;return(0,s.createElement)(hd,a({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,onClick:n},i),r)};var lA=function e(t){var n;let{className:r,children:o,tabs:i,initialTabName:a,orientation:l="horizontal",activeClass:u="is-active",onSelect:f}=t;const p=(0,d.useInstanceId)(e,"tab-panel"),[m,h]=(0,s.useState)(),v=(0,dc.find)(i,{name:m}),g=`${p}-${null!==(n=null==v?void 0:v.name)&&void 0!==n?n:"none"}`;return(0,s.useEffect)((()=>{(0,dc.find)(i,{name:m})||h(a||(i.length>0?i[0].name:void 0))}),[i]),(0,s.createElement)("div",{className:r},(0,s.createElement)(Zk,{role:"tablist",orientation:l,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},i.map((e=>(0,s.createElement)(sA,{className:c()("components-tab-panel__tabs-item",e.className,{[u]:e.name===m}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===m,key:e.name,onClick:()=>{return t=e.name,h(t),void(null==f||f(t));var t}},e.title)))),v&&(0,s.createElement)("div",{key:g,"aria-labelledby":g,role:"tabpanel",id:`${g}-view`,className:"components-tab-panel__tab-content"},o(v)))};const cA=(0,s.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:l,className:c,onChange:u,type:f="text",...p}=e,m=`inspector-text-control-${(0,d.useInstanceId)(cA)}`;return(0,s.createElement)(Rg,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:m,help:l,className:c},(0,s.createElement)("input",a({className:"components-text-control__input",type:f,id:m,value:i,onChange:e=>u(e.target.value),"aria-describedby":l?m+"__help":void 0,ref:t},p)))}));var uA=cA;const dA=Ef("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Am.radiusBlockUi,";border:",Am.borderWidth," solid ",op.ui.border,";",""),fA=Ef("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Am.borderWidthFocus," - ",Am.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;","");var pA={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const mA=Ef("font-family:",yg("default.fontFamily"),";padding:6px 8px;",dA,";font-size:",yg("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${pA["small"]})`,"{font-size:",yg("default.fontSize"),";line-height:normal;}&:focus{",fA,";}&::-webkit-input-placeholder{color:",op.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",op.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",op.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",op.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",op.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",op.ui.lightGrayPlaceholder,";}}","");const hA=ud("textarea",{target:"e1w5nnrk0"})("width:100%;",mA,";");var vA=function e(t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:l,onChange:c,rows:u=4,className:f,...p}=t,m=`inspector-textarea-control-${(0,d.useInstanceId)(e)}`;return(0,s.createElement)(Rg,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:m,help:l,className:f},(0,s.createElement)(hA,a({className:"components-textarea-control__input",id:m,rows:u,onChange:e=>c(e.target.value),"aria-describedby":l?m+"__help":void 0,value:i},p)))};var gA=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,s.createElement)(s.Fragment,null,t);const o=new RegExp(`(${pg(r)})`,"gi");return(0,s.createInterpolateElement)(t.replace(o,"$&"),{mark:(0,s.createElement)("mark",null)})};var bA=(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.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"}));var yA=function(e){const{children:t}=e;return(0,s.createElement)("div",{className:"components-tip"},(0,s.createElement)(wb,{icon:bA}),(0,s.createElement)("p",null,t))};var wA=function e(t){let{__nextHasNoMarginBottom:n,label:r,checked:o,help:i,className:a,onChange:l,disabled:c}=t;const u=`inspector-toggle-control-${(0,d.useInstanceId)(e)}`,f=Zu()("components-toggle-control",a,!n&&Ef({marginBottom:vm(3)},"",""));let p,m;return i&&(p=u+"__help",m="function"==typeof i?i(o):i),(0,s.createElement)(Rg,{id:u,help:m,className:f,__nextHasNoMarginBottom:!0},(0,s.createElement)(dy,{justify:"flex-start",spacing:3},(0,s.createElement)(uP,{id:u,checked:o,onChange:function(e){l(e.target.checked)},"aria-describedby":p,disabled:c}),(0,s.createElement)("label",{htmlFor:u,className:"components-toggle-control__label"},r)))};var xA=(0,s.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,s.createElement)(JI,a({},o,{isIcon:!0,"aria-label":r,showTooltip:!0,ref:t}),(0,s.createElement)(uc,{icon:n}))})),_A=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],EA=_A,CA=z({as:"button",memo:!0,useHook:F({name:"ToolbarItem",compose:ke,keys:EA})});var kA=(0,s.createContext)();var SA=(0,s.forwardRef)((function(e,t){let{children:n,as:r,...o}=e;const i=(0,s.useContext)(kA);if("function"!=typeof n&&!r)return"undefined"!=typeof process&&process.env,null;const l={...o,ref:t,"data-toolbar-item":!0};return i?(0,s.createElement)(CA,a({},i,l,{as:r}),n):r?(0,s.createElement)(r,l,n):n(l)}));var TA=e=>(0,s.createElement)("div",{className:e.className},e.children);var NA=(0,s.forwardRef)((function(e,t){let{containerClassName:n,className:r,extraProps:o,children:i,title:l,isActive:u,isDisabled:d,...f}=e;return(0,s.useContext)(kA)?(0,s.createElement)(SA,a({className:c()("components-toolbar-button",r)},o,f,{ref:t}),(e=>(0,s.createElement)(hd,a({label:l,isPressed:u,disabled:d},e),i))):(0,s.createElement)(TA,{className:n},(0,s.createElement)(hd,a({ref:t,icon:f.icon,label:l,shortcut:f.shortcut,"data-subscript":f.subscript,onClick:e=>{e.stopPropagation(),f.onClick&&f.onClick(e)},className:c()("components-toolbar__control",r),isPressed:u,disabled:d,"data-toolbar-item":!0},o,f),i))}));var RA=e=>{let{className:t,children:n,...r}=e;return(0,s.createElement)("div",a({className:t},r),n)};var MA=function(e){let{controls:t=[],toggleProps:n,...r}=e;const o=e=>(0,s.createElement)(eS,a({controls:t,toggleProps:{...e,"data-toolbar-item":!0}},r));return(0,s.useContext)(kA)?(0,s.createElement)(SA,n,o):o(n)};var IA=function(e){var t;let{controls:n=[],children:r,className:o,isCollapsed:i,title:l,...u}=e;const d=(0,s.useContext)(kA);if(!(n&&n.length||r))return null;const f=c()(d?"components-toolbar-group":"components-toolbar",o);let p=n;return Array.isArray(p[0])||(p=[p]),i?(0,s.createElement)(MA,a({label:l,controls:p,className:f,children:r},u)):(0,s.createElement)(RA,a({className:f},u),null===(t=p)||void 0===t?void 0:t.flatMap(((e,t)=>e.map(((e,n)=>(0,s.createElement)(NA,a({key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null},e)))))),r)};var PA=F({name:"Toolbar",compose:Wp,keys:_A,useProps:function(e,t){return m({role:"toolbar","aria-orientation":e.orientation},t)}}),OA=z({as:"div",useHook:PA,useCreateElement:function(e,t,n){return N(e,t,n)}});var DA=(0,s.forwardRef)((function(e,t){let{label:n,...r}=e;const o=function(e){void 0===e&&(e={});var t=mp(e),n=t.orientation;return Lp(m({orientation:void 0===n?"horizontal":n},h(t,["orientation"])))}({loop:!0,baseId:r.id,rtl:(0,u.isRTL)()});return(0,s.createElement)(kA.Provider,{value:o},(0,s.createElement)(OA,a({ref:t,"aria-label":n},o,r)))}));var AA=(0,s.forwardRef)((function(e,t){let{className:n,label:r,...o}=e;if(!r)return lc()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,s.createElement)(IA,a({},o,{className:n}));const i=c()("components-accessible-toolbar",n);return(0,s.createElement)(DA,a({className:i,label:r,ref:t},o))}));var LA=(0,s.forwardRef)((function(e,t){return(0,s.useContext)(kA)?(0,s.createElement)(SA,a({ref:t},e.toggleProps),(t=>(0,s.createElement)(eS,a({},e,{popoverProps:{isAlternate:!0,...e.popoverProps},toggleProps:t})))):(0,s.createElement)(eS,e)}));const zA={columns:e=>Ef("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Ef("column-gap:",vm(2),";row-gap:",vm(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},BA={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},FA=Ef(zA.item.fullWidth," gap:",vm(2),";.components-dropdown-menu{margin:",vm(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",vm(6),";}",""),HA={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},VA=Ef(zA.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",xg,"{margin-bottom:0;",_g,":last-child{margin-bottom:0;}}",Sg,"{margin-bottom:0;}&& ",hh,"{label{line-height:1.4em;}}",""),jA={name:"eivff4",styles:"display:none"},$A={name:"16gsvie",styles:"min-width:200px"},WA=()=>{},UA=(0,s.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:WA,deregisterPanelItem:WA,flagItemCustomization:WA,areAllOptionalControlsHidden:!0}),GA=()=>(0,s.useContext)(UA);const qA=e=>{let{items:t,toggleItem:n}=e;return t.length?(0,s.createElement)(SP,null,t.map((e=>{let[t,r]=e;return r?(0,s.createElement)(TP,{key:t,role:"menuitem",icon:YC,label:(0,u.sprintf)((0,u.__)("Reset %s"),t),onClick:()=>{n(t),(0,ug.speak)((0,u.sprintf)((0,u.__)("%s reset to default"),t),"assertive")}},t):(0,s.createElement)(TP,{key:t,role:"menuitemcheckbox",icon:l_,isSelected:!0,"aria-disabled":!0},t)}))):null},YA=e=>{let{items:t,toggleItem:n}=e;return t.length?(0,s.createElement)(SP,null,t.map((e=>{let[t,r]=e;const o=r?(0,u.sprintf)((0,u.__)("Hide and reset %s"),t):(0,u.sprintf)((0,u.__)("Show %s"),t);return(0,s.createElement)(TP,{key:t,icon:r&&l_,isSelected:r,label:o,onClick:()=>{r?(0,ug.speak)((0,u.sprintf)((0,u.__)("%s hidden and reset to default"),t),"assertive"):(0,ug.speak)((0,u.sprintf)((0,u.__)("%s is now visible"),t),"assertive"),n(t)},role:"menuitemcheckbox"},t)}))):null};var KA=Qu(((e,t)=>{const{areAllOptionalControlsHidden:n,dropdownMenuClassName:r,hasMenuItems:o,headingClassName:i,label:l,menuItems:c,resetAll:d,toggleItem:f,...p}=function(e){const{className:t,...n}=Ju(e,"ToolsPanelHeader"),r=Zu(),o=(0,s.useMemo)((()=>r(FA,t)),[t,r]),i=(0,s.useMemo)((()=>r($A)),[r]),a=(0,s.useMemo)((()=>r(HA)),[r]),{menuItems:l,hasMenuItems:c,areAllOptionalControlsHidden:u}=GA();return{...n,areAllOptionalControlsHidden:u,dropdownMenuClassName:i,hasMenuItems:c,headingClassName:a,menuItems:l,className:o}}(e);if(!l)return null;const m=Object.entries((null==c?void 0:c.default)||{}),h=Object.entries((null==c?void 0:c.optional)||{}),v=n?ZC:JC,g=(0,u.sprintf)((0,u._x)("%s options","Button label to reveal tool panel options"),l),b=n?(0,u.__)("All options are currently hidden"):void 0,y=[...m,...h].some((e=>{let[,t]=e;return t}));return(0,s.createElement)(dy,a({},p,{ref:t}),(0,s.createElement)(f_,{level:2,className:i},l),o&&(0,s.createElement)(eS,{icon:v,label:g,menuProps:{className:r},toggleProps:{isSmall:!0,describedBy:b}},(()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(qA,{items:m,toggleItem:f}),(0,s.createElement)(YA,{items:h,toggleItem:f}),(0,s.createElement)(SP,null,(0,s.createElement)(TP,{"aria-disabled":!y,variant:"tertiary",onClick:()=>{y&&(d(),(0,ug.speak)((0,u.__)("All options reset"),"assertive"))}},(0,u.__)("Reset all")))))))}),"ToolsPanelHeader");const XA=e=>{let{panelItems:t,shouldReset:n,currentMenuItems:r}=e;const o={default:{},optional:{}};return t.forEach((e=>{var t;let{hasValue:i,isShownByDefault:a,label:s}=e;const l=a?"default":"optional",c=null==r||null===(t=r[l])||void 0===t?void 0:t[s],u=void 0!==c?c:i();o[l][s]=!n&&u})),o},ZA=e=>e&&0===Object.keys(e).length;function JA(e){const{className:t,resetAll:n,panelId:r,hasInnerWrapper:o,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l,...c}=Ju(e,"ToolsPanel"),u=(0,s.useRef)(!1),d=u.current;(0,s.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[f,p]=(0,s.useState)([]),m=(0,s.useCallback)((e=>{p((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]}))}),[p]),h=(0,s.useCallback)((e=>{p((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[p]),[v,g]=(0,s.useState)({default:{},optional:{}});(0,s.useEffect)((()=>{g((e=>XA({panelItems:f,shouldReset:!1,currentMenuItems:e})))}),[XA,f,g]);const b=(0,s.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";g((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[g]),[y,w]=(0,s.useState)(!1);(0,s.useEffect)((()=>{if(ZA(null==v?void 0:v.default)&&!ZA(null==v?void 0:v.optional)){const e=!Object.entries(v.optional).some((e=>{let[,t]=e;return t}));w(e)}}),[v,w]);const x=Zu(),_=(0,s.useMemo)((()=>{const e=o&&Ef(">div:not( :first-of-type ){display:grid;",zA.columns(2)," ",zA.spacing," ",zA.item.fullWidth,";}","");const n=ZA(null==v?void 0:v.default)&&y&&BA;return x((e=>Ef(zA.columns(e)," ",zA.spacing," border-top:",Am.borderWidth," solid ",op.gray[300],";margin-top:-1px;padding:",vm(4),";",""))(2),e,n,t)}),[y,t,x,o,v]),E=(0,s.useCallback)((e=>{const t=f.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={...v,[n]:{...v[n],[e]:!v[n][e]}};g(r)}),[v,f,g]),C=(0,s.useCallback)((()=>{if("function"==typeof n){u.current=!0;const e=[];f.forEach((t=>{t.resetAllFilter&&e.push(t.resetAllFilter)})),n(e)}const e=XA({panelItems:f,shouldReset:!0});g(e)}),[XA,u.current,f,n,g]),k=e=>{const t=v.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return null==n?void 0:n.label},S=k(f),T=k([...f].reverse());return{...c,panelContext:(0,s.useMemo)((()=>({areAllOptionalControlsHidden:y,deregisterPanelItem:h,firstDisplayedItem:S,flagItemCustomization:b,hasMenuItems:!!f.length,isResetting:u.current,lastDisplayedItem:T,menuItems:v,panelId:r,registerPanelItem:m,shouldRenderPlaceholderItems:i,__experimentalFirstVisibleItemClass:a,__experimentalLastVisibleItemClass:l})),[y,h,S,b,u.current,T,v,r,f,m,i,a,l]),resetAllItems:C,toggleItem:E,className:_}}var QA=Qu(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:l,...c}=JA(e);return(0,s.createElement)(W_,a({},c,{columns:2,ref:t}),(0,s.createElement)(UA.Provider,{value:o},(0,s.createElement)(KA,{label:r,resetAll:i,toggleItem:l}),n))}),"ToolsPanel");var eL=Qu(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){var t,n;const{className:r,hasValue:o,isShownByDefault:i,label:a,panelId:l,resetAllFilter:c,onDeselect:u,onSelect:f,...p}=Ju(e,"ToolsPanelItem"),{panelId:m,menuItems:h,registerPanelItem:v,deregisterPanelItem:g,flagItemCustomization:b,isResetting:y,shouldRenderPlaceholderItems:w,firstDisplayedItem:x,lastDisplayedItem:_,__experimentalFirstVisibleItemClass:E,__experimentalLastVisibleItemClass:C}=GA(),k=(0,s.useCallback)(o,[l]),S=(0,s.useCallback)(c,[l]),T=(0,d.usePrevious)(m),N=m===l||null===m;(0,s.useEffect)((()=>(N&&null!==T&&v({hasValue:k,isShownByDefault:i,label:a,resetAllFilter:S,panelId:l}),()=>{(null===T&&m||m===l)&&g(a)})),[m,N,i,a,k,l,T,S]);const R=o(),M=(0,d.usePrevious)(R);(0,s.useEffect)((()=>{i&&R&&!M&&b(a)}),[R,M,i,a]);const I=i?"default":"optional",P=null==h||null===(t=h[I])||void 0===t?void 0:t[a],O=(0,d.usePrevious)(P);(0,s.useEffect)((()=>{!y&&N&&(!P||R||O||null==f||f(),!P&&O&&(null==u||u()))}),[N,P,y,R,O]);const D=i?void 0!==(null==h||null===(n=h[I])||void 0===n?void 0:n[a]):P,A=Zu(),L=(0,s.useMemo)((()=>A(VA,w&&!D&&jA,r,x===a&&E,_===a&&C)),[D,w,r,A,x,_,E,C]);return{...p,isShown:D,shouldRenderPlaceholder:w,className:L}}(e);return r?(0,s.createElement)(fd,a({},i,{ref:t}),n):o?(0,s.createElement)(fd,a({},i,{ref:t})):null}),"ToolsPanelItem");const tL=(0,s.createContext)(),nL=tL.Provider;function rL(e){let{children:t}=e;const[n,r]=(0,s.useState)(),o=(0,s.useMemo)((()=>({lastFocusedElement:n,setLastFocusedElement:r})),[n]);return(0,s.createElement)(nL,{value:o},t)}function oL(e){const t=Uk.focus.focusable.find(e,{sequential:!0});if(t&&t.length)return t.filter((t=>t.closest('[role="row"]')===e))}var iL=(0,s.forwardRef)((function(e,t){let{children:n,onExpandRow:r=(()=>{}),onCollapseRow:o=(()=>{}),onFocusRow:i=(()=>{}),applicationAriaLabel:l,...c}=e;const u=(0,s.useCallback)((e=>{const{keyCode:t,metaKey:n,ctrlKey:a,altKey:s}=e;if(n||a||s||![lg.UP,lg.DOWN,lg.LEFT,lg.RIGHT,lg.HOME,lg.END].includes(t))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!c.contains(l))return;const u=l.closest('[role="row"]'),d=oL(u),f=d.indexOf(l),p=0===f,m=p&&"false"===u.getAttribute("aria-expanded")&&t===lg.RIGHT;if([lg.LEFT,lg.RIGHT].includes(t)){let n;if(n=t===lg.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(t===lg.LEFT){var h,v,g;if("true"===u.getAttribute("aria-expanded"))return o(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=null==u?void 0:u.getAttribute("aria-level"))&&void 0!==h?h:1,10)-1,1),n=Array.from(c.querySelectorAll('[role="row"]'));let r=u;for(let e=n.indexOf(u);e>=0;e--)if(parseInt(n[e].getAttribute("aria-level"),10)===t){r=n[e];break}null===(v=oL(r))||void 0===v||null===(g=v[0])||void 0===g||g.focus()}if(t===lg.RIGHT){if("false"===u.getAttribute("aria-expanded"))return r(u),void e.preventDefault();const t=oL(u);var b;if(t.length>0)null===(b=t[t.length-1])||void 0===b||b.focus()}return void e.preventDefault()}if(m)return;d[n].focus(),e.preventDefault()}else if([lg.UP,lg.DOWN].includes(t)){const n=Array.from(c.querySelectorAll('[role="row"]')),r=n.indexOf(u);let o;if(o=t===lg.UP?Math.max(0,r-1):Math.min(r+1,n.length-1),o===r)return void e.preventDefault();const a=oL(n[o]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),i(e,u,n[o]),e.preventDefault()}else if([lg.HOME,lg.END].includes(t)){const n=Array.from(c.querySelectorAll('[role="row"]')),r=n.indexOf(u);let o;if(o=t===lg.HOME?0:n.length-1,o===r)return void e.preventDefault();const a=oL(n[o]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),i(e,u,n[o]),e.preventDefault()}}),[r,o,i]);return(0,s.createElement)(rL,null,(0,s.createElement)("div",{role:"application","aria-label":l},(0,s.createElement)("table",a({},c,{role:"treegrid",onKeyDown:u,ref:t}),(0,s.createElement)("tbody",null,n))))}));var aL=(0,s.forwardRef)((function(e,t){let{children:n,level:r,positionInSet:o,setSize:i,isExpanded:l,...c}=e;return(0,s.createElement)("tr",a({},c,{ref:t,role:"row","aria-level":r,"aria-posinset":o,"aria-setsize":i,"aria-expanded":l}),n)})),sL=(0,s.forwardRef)((function(e,t){let{children:n,as:r,...o}=e;const i=(0,s.useRef)(),a=t||i,{lastFocusedElement:l,setLastFocusedElement:c}=(0,s.useContext)(tL);let u;l&&(u=l===a.current?0:-1);const d={ref:a,tabIndex:u,onFocus:e=>c(e.target),...o};return"function"==typeof n?n(d):(0,s.createElement)(r,d,n)})),lL=(0,s.forwardRef)((function(e,t){let{children:n,...r}=e;return(0,s.createElement)(sL,a({ref:t},r),n)})),cL=(0,s.forwardRef)((function(e,t){let{children:n,withoutGridItem:r=!1,...o}=e;return(0,s.createElement)("td",a({},o,{role:"gridcell"}),r?n:(0,s.createElement)(lL,{ref:t},n))}));function uL(e){e.stopPropagation()}var dL=(0,s.forwardRef)(((e,t)=>{let{children:n,...r}=e;return lc()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,s.createElement)("div",a({},r,{ref:t,onMouseDown:uL}),n)}));const fL=ud("div",{target:"ebn2ljm1"})({name:"5ob2ly",styles:"display:flex;position:relative"}),pL=ud("div",{target:"ebn2ljm0"})((e=>{let{isLayered:t,offsetAmount:n}=e;return Ef(t?ih({marginLeft:n})():ih({right:-1*n})(),"","")})," ",(e=>{let{isLayered:t}=e;return t?mL:hL})," ",(e=>{let{zIndex:t}=e;return Ef({zIndex:t},"","")}),";"),mL={name:"a4hmbt",styles:"position:absolute"},hL={name:"bjn8wh",styles:"position:relative"};const vL=Qu((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:l=0,...c}=Ju(e,"ZStack"),u=cy(n),d=u.length-1,f=u.map(((e,t)=>{const n=i?d-t:t,r=l*t,a=(0,s.isValidElement)(e)?e.key:t;return(0,s.createElement)(pL,{isLayered:o,offsetAmount:r,zIndex:n,key:a},e)}));return(0,s.createElement)(fL,a({},c,{className:r,ref:t}),f)}),"ZStack");var gL=vL;const bL={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function yL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bL;const t=(0,s.useRef)(),[n,r]=(0,s.useState)(!1);function o(e){const n=Array.from(t.current.querySelectorAll('[role="region"]'));if(!n.length)return;let o=n[0];const i=n.indexOf(t.current.ownerDocument.activeElement);if(-1!==i){let t=i+e;t=-1===t?n.length-1:t,t=t===n.length?0:t,o=n[t]}o.focus(),r(!0)}const i=(0,d.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,d.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((e=>{let{modifier:n,character:r}=e;return lg.isKeyboardEvent[n](t,r)}))?o(-1):e.next.some((e=>{let{modifier:n,character:r}=e;return lg.isKeyboardEvent[n](t,r)}))&&o(1)}}}var wL=(0,d.createHigherOrderComponent)((e=>t=>{let{shortcuts:n,...r}=t;return(0,s.createElement)("div",yL(n),(0,s.createElement)(e,r))}),"navigateRegions");var xL=(0,d.createHigherOrderComponent)((e=>function(t){const n=(0,d.useConstrainedTabbing)();return(0,s.createElement)("div",{ref:n,tabIndex:-1},(0,s.createElement)(e,t))}),"withConstrainedTabbing"),_L=e=>(0,d.createHigherOrderComponent)((t=>class extends s.Component{constructor(){super(...arguments),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);(0,dc.isEqual)(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:!!(0,dc.every)(t)})}}render(){const e=(0,s.createElement)(t,a({},this.props,this.state.fallbackStyles));return this.props.node?e:(0,s.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),EL=window.wp.hooks;function CL(e){return(0,d.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends s.Component{constructor(){super(...arguments),void 0===r&&(r=(0,EL.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,EL.addAction)("hookRemoved",n,a),(0,EL.addAction)("hookAdded",n,a))}componentWillUnmount(){o.instances=(0,dc.without)(o.instances,this),0===o.instances.length&&((0,EL.removeAction)("hookRemoved",n),(0,EL.removeAction)("hookAdded",n))}render(){return(0,s.createElement)(r,this.props)}}o.instances=[];const i=(0,dc.debounce)((()=>{r=(0,EL.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),16);function a(t){t===e&&i()}return o}),"withFilters")}var kL=(0,d.createHigherOrderComponent)((e=>{const t=function(){let{onFocusReturn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>n=>{const r=(0,d.useFocusReturn)(e);return(0,s.createElement)("div",{ref:r},(0,s.createElement)(t,n))}};if((n=e)instanceof s.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn");const SL=e=>{let{children:t}=e;return lc()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),t};var TL=(0,d.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,s.useState)([]),l=(0,s.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:zd()};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([])}}}),[]),c={...t,noticeList:o,noticeOperations:l,noticeUI:o.length>0&&(0,s.createElement)(DO,{className:"components-with-notices-ui",notices:o,onRemove:l.removeNotice})};return n?(0,s.createElement)(e,a({},c,{ref:r})):(0,s.createElement)(e,c)}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,s.forwardRef)(t)):t}))}(),(window.wp=window.wp||{}).components=r}();