|
2
|
|
-(()=>{var e,t,n={9367:function(e,t){var n,r,o;r=[e,t],n=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t=null,n=null,r=null,a=function(){e.clientWidth!==n&&f()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",f,!1),e.removeEventListener("keyup",f,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",f,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",f,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",f,!1),e.addEventListener("autosize:update",f,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:f}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),f()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var r=u(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,r.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function f(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(c("scroll"),d(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==o){r=o;var a=i("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}}function s(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return a(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2152:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return _}});var r=n(279),o=n.n(r),i=n(370),a=n.n(i),s=n(817),l=n.n(s);function c(e){try{return document.execCommand(e)}catch(e){return!1}}var u=function(e){var t=l()(e);return c("cut"),t},d=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=l()(n);return c("copy"),n.remove(),r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=l()(e),c("copy")),n};function p(e){return p="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},p(e)}var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,i=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?f(i,{container:r}):o?"cut"===n?u(o):f(o,{container:r}):void 0};function h(e){return h="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},h(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function k(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(i,e);var t,n,r,o=b(i);function i(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return t=i,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=m({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return k("action",e)}},{key:"defaultTarget",value:function(e){var t=k("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return k("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return u(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&g(t.prototype,n),r&&g(t,r),i}(o()),_=w},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var a=i.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,r,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},1934:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,':root{--fcal_block_dark:#1b2533;--fcal_block_bg:#fff;--fcal_block_input_bg:#fff;--fcal_block_border_color:#d6dae1;--fcal_block_gray_color:#8f97a2;--fcal_block_primary_color:#306ae0;--fcal_block_enable_day_bg:#e5e7eb}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap.dark{--fcal_block_dark:#dddbdb;--fcal_block_bg:#1c1c1c;--fcal_block_border_color:#2b2b2b;--fcal_block_enable_day_bg:#2b2b2b;--fcal_block_primary_color:#fff;--fcal_block_input_bg:#2b2b2b}.fcal_block_landing_page{background:#f5f6f7;border:1px solid var(--fcal_block_border_color);border-radius:8px;padding:24px;position:relative}.fcal_block_landing_page .fcal_block_loading,.fcal_block_landing_page .fcal_calendar_not_found h2{font-size:20px;margin:0}.fcal_block_landing_page .fcal_block_header{text-align:center}.fcal_block_landing_page .fcal_block_header .fcal_block_logo{display:block;margin:auto auto 20px}.fcal_block_landing_page #fcal_select_calendar{border-radius:8px;max-width:100%;padding:6px 20px;width:100%}.fcal_block_landing_page #fcal_select_calendar:focus{box-shadow:none;outline:none}.fcal_block_landing_page.fcal_block_landing_preview{background:none;border:none;margin:auto;padding:0}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap{background:var(--fcal_block_bg);border:1px solid var(--fcal_block_border_color);border-radius:8px;display:flex}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside{border-right:1px solid var(--fcal_block_border_color);flex:40%;padding:24px;width:100%}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_author{margin-bottom:10px}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_author .fcal_author_avatar{height:80px;margin-bottom:10px;width:80px}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_author .fcal_author_avatar img{border-radius:8px;display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_author .fcal_author_name{color:var(--fcal_block_dark);font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-transform:capitalize}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_slot_info .fcal_slot_heading{color:var(--fcal_block_dark);font-size:24px;font-weight:700;line-height:32px;margin:0 0 20px}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_slot_info .fcal_icon_item{align-items:center;color:var(--fcal_block_dark);-moz-column-gap:8px;column-gap:8px;display:flex;font-size:14px;font-weight:500;line-height:20px;margin-bottom:10px}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_slot_info .fcal_icon_item svg{fill:#697483;stroke:#697483}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside .fcal_slot_description p{color:var(--fcal_block_dark);font-size:16px;font-weight:400;line-height:24px;margin:0}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_date_wrapper{flex:60%;padding:30px 20px}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_date_wrapper img{display:block}.fcal_block_settings{width:100%}.fcal_block_settings .fcal_block_inspector_widget{margin-bottom:20px}.fcal_block_settings .fcal_block_inspector_widget h3{margin-bottom:5px}.fcal_block_settings .fcal_block_inspector_widget select{border:1px solid var(--fcal_block_border_color);border-radius:8px;padding:3px 16px;width:100%}.fcal_block_settings .fcal_block_inspector_widget .fcal_checkbox_control{margin-bottom:12px}.fcal_block_settings .fcal_block_inspector_host_info .components-flex{gap:12px}.fcal_block_settings .fcal_block_inspector_host_info .components-base-control__field .components-v-stack{flex-direction:row;justify-content:flex-start}.fcal_block_settings .fcal_block_inspector_host_info .components-base-control__field .components-v-stack input{height:16px;margin-right:0;transition:.3s;width:16px}.fcal_block_settings .fcal_block_inspector_host_info .components-base-control__field .components-v-stack input:focus{box-shadow:none;outline:none}.fcal_block_settings .fcal_block_inspector_host_info .components-base-control__field .components-v-stack input:before{border-width:3px;height:6px;transition:.3s;width:6px}.fcal_block_settings .fcal_block_inspector_host_info .components-base-control__field .components-v-stack input:checked:before{transform:translate(4px,4px)}.fcal_block_settings .fcal_block_inspector_host_info .components-base-control__field .components-v-stack label{margin-right:0;padding-left:6px}.fcal_block_calendar_container .fcal_block_calendar_header{margin-bottom:8px}.fcal_block_calendar_container .fcal_block_calendar_header h3{color:var(--fcal_block_dark);font-size:18px;line-height:28px;margin:0}.fcal_block_calendar_container .fcal_block_calendar_header h3 span{color:var(--fcal_block_gray_color)}.fcal_block_calendar_container .fcal_block_timezone{margin-top:20px}.fcal_block_calendar_container .fcal_block_timezone h3{color:var(--fcal_block_dark);display:block;font-size:17px;font-weight:500;line-height:27px;margin:0 0 5px}.fcal_block_calendar_container .fcal_block_timezone .timezone{background:var(--fcal_block_input_bg);border:1px solid var(--fcal_block_border_color);border-radius:8px;color:var(--fcal_block_dark);display:block;font-size:16px;line-height:26px;padding:6px 20px}.fcal_block_calendar{align-items:center;display:grid;gap:.6rem;grid-template-columns:repeat(7,minmax(0,3rem));overflow:auto;width:100%}.fcal_block_calendar .day{box-sizing:border-box;color:var(--fcal_block_gray_color);display:block;font-size:14px;font-weight:500;padding-top:100%!important;position:relative;text-align:center;z-index:1}.fcal_block_calendar .day>span{align-items:center;border-radius:4px;bottom:0;display:flex;justify-content:center;left:0;position:absolute!important;right:0;top:0}.fcal_block_calendar .day .is-today{color:var(--fcal_block_primary_color);margin:auto;z-index:1}.fcal_block_calendar .day .is-today:before{background:var(--fcal_block_primary_color);border-radius:4px;bottom:4px;content:"";height:6px;left:50%;position:absolute;transform:translateX(-50%);width:6px;z-index:-1}.fcal_block_calendar .day:nth-of-type(7n+7){border-right:0}.fcal_block_calendar .day:nth-of-type(n+1):nth-of-type(-n+7){grid-row:1}.fcal_block_calendar .day:nth-of-type(n+8):nth-of-type(-n+14){grid-row:2}.fcal_block_calendar .day:nth-of-type(n+15):nth-of-type(-n+21){grid-row:3}.fcal_block_calendar .day:nth-of-type(n+22):nth-of-type(-n+28){grid-row:4}.fcal_block_calendar .day:nth-of-type(n+29):nth-of-type(-n+35){grid-row:5}.fcal_block_calendar .day:nth-of-type(n+36):nth-of-type(-n+42){grid-row:6}.fcal_block_calendar .day:nth-of-type(7n+1){grid-column:1/1}.fcal_block_calendar .day:nth-of-type(7n+2){grid-column:2/2}.fcal_block_calendar .day:nth-of-type(7n+3){grid-column:3/3}.fcal_block_calendar .day:nth-of-type(7n+4){grid-column:4/4}.fcal_block_calendar .day:nth-of-type(7n+5){grid-column:5/5}.fcal_block_calendar .day:nth-of-type(7n+6){grid-column:6/6}.fcal_block_calendar .day:nth-of-type(7n+7){grid-column:7/7}.fcal_block_calendar .day.day-enabled{color:var(--fcal_block_dark)}.fcal_block_calendar .day.day-enabled span{background-color:var(--fcal_block_enable_day_bg);border-radius:4px;color:var(--fcal_block_dark);font-weight:500;transition:.3s;-webkit-transition:.3s;-moz-transition:.3s;-ms-transition:.3s;-o-transition:.3s}.fcal_block_calendar .day-name{word-wrap:normal;color:var(--fcal_block_dark);font-size:14px;font-weight:500;line-height:41px;text-align:center;text-transform:uppercase}@media (max-width:650px){.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap{flex-direction:column}.fcal_block_landing_page.fcal_block_landing_preview .fcal_block_preview_wrap .fcal_block_preview_aside{border:none;max-width:100%}}',""]);const i=o},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},5913:(e,t)=>{"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,a=t.length,s=0,l=0;i<a;i++){var c=t[i];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,i&&t[i-1].added){var u=t[i-1];t[i-1]=t[i],t[i]=u}}else{if(!c.added&&o){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var f=t[a-1];return a>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[a-2].value+=f.value,t.pop()),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var i=this;function a(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,c=1,u=s+l,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=s&&f+1>=l)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*c;n<=c;n+=2){var o=void 0,u=d[n-1],f=d[n+1],p=(f?f.newPos:0)-n;u&&(d[n-1]=void 0);var m=u&&u.newPos+1<s,h=f&&0<=p&&p<l;if(m||h){if(!m||h&&u.newPos<f.newPos?(o={newPos:(g=f).newPos,components:g.components.slice(0)},i.pushComponent(o.components,void 0,!0)):((o=u).newPos++,i.pushComponent(o.components,!0,void 0)),p=i.extractCommon(o,t,e,n),o.newPos+1>=s&&p+1>=l)return a(r(i,o.components,t,e,i.useLongestToken));d[n]=o}else d[n]=void 0}var g;c++}if(o)!function e(){setTimeout((function(){if(c>u)return o();p()||e()}),0)}();else for(;c<=u;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,a=e.newPos,s=a-r,l=0;a+1<o&&s+1<i&&this.equals(t[a+1],n[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},7630:(e,t,n)=>{"use strict";var r;t.Kx=function(e,t,n){return o.diff(e,t,n)};var o=new(((r=n(5913))&&r.__esModule?r:{default:r}).default)},9010:(e,t,n)=>{"use strict";var r=n(4657);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,s=n.alignWithLeft,l=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),m=r.outerHeight(e),h=r.outerWidth(e),g=void 0,v=void 0,b=void 0,y=void 0,k=void 0,w=void 0,_=void 0,E=void 0,x=void 0,S=void 0;f?(_=t,S=r.height(_),x=r.width(_),E={left:r.scrollLeft(_),top:r.scrollTop(_)},k={left:p.left-E.left-c,top:p.top-E.top-l},w={left:p.left+h-(E.left+x)+d,top:p.top+m-(E.top+S)+u},y=E):(g=r.offset(t),v=t.clientHeight,b=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},k={left:p.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:p.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},w={left:p.left+h-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(g.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),k.top<0||w.top>0?!0===a?r.scrollTop(t,y.top+k.top):!1===a?r.scrollTop(t,y.top+w.top):k.top<0?r.scrollTop(t,y.top+k.top):r.scrollTop(t,y.top+w.top):i||((a=void 0===a||!!a)?r.scrollTop(t,y.top+k.top):r.scrollTop(t,y.top+w.top)),o&&(k.left<0||w.left>0?!0===s?r.scrollLeft(t,y.left+k.left):!1===s?r.scrollLeft(t,y.left+w.left):k.left<0?r.scrollLeft(t,y.left+k.left):r.scrollLeft(t,y.left+w.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+k.left):r.scrollLeft(t,y.left+w.left)))}},4979:(e,t,n)=>{"use strict";e.exports=n(9010)},4657:e=>{"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function o(e){return r(e)}function i(e){return r(e,!0)}function a(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=o(r),t.top+=i(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",d="left";var f=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function m(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[c]&&e[c][t];if(s.test(n)&&!l.test(t)){var r=e.style,o=r[d],i=e[u][d];e[u][d]=e[c][d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e[u][d]=i}return""===n?"auto":n});var h=["margin","border","padding"],g=-1,v=2,b=1;function y(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,s))||0}return r}function k(e){return null!=e&&e==e.window}var w={};function _(e,t,n){if(k(e))return"width"===t?w.viewportWidth(e):w.viewportHeight(e);if(9===e.nodeType)return"width"===t?w.docWidth(e):w.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),m(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?b:g);var s=void 0!==o||i,l=o||a;if(n===g)return s?l-y(e,["border","padding"],r):a;if(s){var c=n===v?-y(e,["border"],r):y(e,["margin"],r);return l+(n===b?0:c)}return a+y(e,h.slice(n),r)}p(["Width","Height"],(function(e){w["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],w["viewport"+e](n))},w["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var E={position:"absolute",visibility:"hidden",display:"block"};function x(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=_.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,E,(function(){t=_.apply(void 0,n)})),t}function S(e,t,r){var o=r;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&S(e,i,t[i])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);w["outer"+t]=function(t,n){return t&&x(t,e,n?0:b)};var n="width"===e?["Left","Right"]:["Top","Bottom"];w[e]=function(t,r){if(void 0===r)return t&&x(t,e,g);if(t){f(t);return m(t)&&(r+=y(t,["padding","border"],n)),S(t,e,r)}}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===S(e,"position")&&(e.style.position="relative");var n=a(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(S(e,i))||0,r[i]=o+t[i]-n[i]);S(e,r)}(e,t)},isWindow:k,each:p,css:S,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(k(e)){if(void 0===t)return o(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(k(e)){if(void 0===t)return i(e);window.scrollTo(o(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},w)},6781:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,m=60121,h=60122,g=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),l=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),p=y("react.lazy"),m=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}},1726:(e,t,n)=>{"use strict";n(6781)},3909:e=>{"use strict";function t(e){return t="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},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){var n=e._map,r=e._arrayTreeMap,o=e._objectTreeMap;if(n.has(t))return n.get(t);for(var i=Object.keys(t).sort(),a=Array.isArray(t)?r:o,s=0;s<i.length;s++){var l=i[s];if(void 0===(a=a.get(l)))return;var c=t[l];if(void 0===(a=a.get(c)))return}var u=a.get("_ekm_value");return u?(n.delete(u[0]),u[0]=t,a.set("_ekm_value",u),n.set(t,u),u):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var n=[];t.forEach((function(e,t){n.push([t,e])})),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var o,i,a;return o=e,i=[{key:"set",value:function(n,r){if(null===n||"object"!==t(n))return this._map.set(n,r),this;for(var o=Object.keys(n).sort(),i=[n,r],a=Array.isArray(n)?this._arrayTreeMap:this._objectTreeMap,s=0;s<o.length;s++){var l=o[s];a.has(l)||a.set(l,new e),a=a.get(l);var c=n[l];a.has(c)||a.set(c,new e),a=a.get(c)}var u=a.get("_ekm_value");return u&&this._map.delete(u[0]),a.set("_ekm_value",i),this._map.set(n,i),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var n=r(this,e);return n?n[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==r(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===t(i)&&(o=o[1]),e.call(r,o,i,n)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],i&&n(o.prototype,i),a&&n(o,a),e}();e.exports=o},2991:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},8208:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/;const o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},9948:(e,t)=>{var n={};n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=f(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,s)||i("repeating-linear-gradient",e.repeatingLinearGradient,s)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return a(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:f(p)}}))}function a(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function s(){return v("directional",e.sideOrCorner,1)||v("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=v("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=v("shape",/^(ellipse)/i,0);e&&(e.style=h()||u());return e}();if(e)e.at=function(){if(v("position",/^at/,0)){var e=d();return e||n("Missing positioning value"),e}}();else{var t=d();t&&(e={type:"default-radial",at:t})}return e}function u(){return v("extent-keyword",e.extentKeywords,1)}function d(){var e={x:h(),y:h()};if(e.x||e.y)return{type:"position",value:e}}function f(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function p(){var t=v("hex",e.hexColor,1)||a(e.rgbaColor,(function(){return{type:"rgba",value:f(m)}}))||a(e.rgbColor,(function(){return{type:"rgb",value:f(m)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=h(),t}function m(){return b(e.number)[1]}function h(){return v("%",e.percentageValue,1)||v("position-keyword",e.positionKeywords,1)||g()}function g(){return v("px",e.pixelValue,1)||v("em",e.emValue,1)}function v(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&y(r[0].length),(n=e.exec(t))&&y(n[0].length),n}function y(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},6928: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}}])},8679:(e,t,n)=>{"use strict";var r=n(9864),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),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||h&&h[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},8303:(e,t,n)=>{var r=n(1934);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,a=document.createElement(i);a.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&a.setAttribute("rows","1");var s=r(e,"font-size");a.style.fontSize=s,a.style.padding="0px",a.style.border="0px";var l=document.body;l.appendChild(a),n=a.offsetHeight,l.removeChild(a)}return n}},4155:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4857:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var s=n(7294),l=n(5697),c=n(9367),u=n(8303),d="autosize:resized",f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),r=(t.onChange,t.style),o=(t.innerRef,t.children),l=a(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",i({},l,{onChange:this.onChange,style:u?i({},r,{maxHeight:u}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(s.Component);t.TextareaAutosize=s.forwardRef((function(e,t){return s.createElement(f,i({},e,{innerRef:t}))}))},4042:(e,t,n)=>{"use strict";var r=n(4857);t.Z=r.TextareaAutosize},4448:(e,t,n)=>{"use strict";var r=n(7294),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),_=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),I=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function B(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var L,D=Object.assign;function z(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function j(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function V(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case S:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){Z(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ye=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,_e=null,Ee=null;function xe(e){if(e=go(e)){if("function"!=typeof we)throw Error(i(280));var t=e.stateNode;t&&(t=bo(t),we(e.stateNode,e.type,t))}}function Se(e){_e?Ee?Ee.push(e):Ee=[e]:_e=e}function Ce(){if(_e){var e=_e,t=Ee;if(Ee=_e=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Ie(e,t){return e(t)}function Te(){}var Pe=!1;function Ne(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Ie(e,t,n)}finally{Pe=!1,(null!==_e||null!==Ee)&&(Te(),Ce())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=bo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ae=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(e){Ae=!1}function Re(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Be=!1,Le=null,De=!1,ze=null,Fe={onError:function(e){Be=!0,Le=e}};function je(e,t,n,r,o,i,a,s,l){Be=!1,Le=null,Re.apply(Fe,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $e(e){if(Ve(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return $e(o),e;if(a===r)return $e(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Qe=o.unstable_ImmediatePriority,Je=o.unstable_UserBlockingPriority,et=o.unstable_NormalPriority,tt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,rt=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/st|0)|0},at=Math.log,st=Math.LN2;var lt=64,ct=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ut(s):0!==(i&=a)&&(r=ut(i))}else 0!==(a=n&~o)?r=ut(a):0!==i&&(r=ut(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function yt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var kt,wt,_t,Et,xt,St=!1,Ct=[],It=null,Tt=null,Pt=null,Nt=new Map,Ot=new Map,At=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Bt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=go(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=ho(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void xt(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=go(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ye=r,n.target.dispatchEvent(r),ye=null,t.shift()}return!0}function zt(e,t,n){Dt(e)&&n.delete(t)}function Ft(){St=!1,null!==It&&Dt(It)&&(It=null),null!==Tt&&Dt(Tt)&&(Tt=null),null!==Pt&&Dt(Pt)&&(Pt=null),Nt.forEach(zt),Ot.forEach(zt)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function Vt(e){function t(t){return jt(t,e)}if(0<Ct.length){jt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&jt(It,e),null!==Tt&&jt(Tt,e),null!==Pt&&jt(Pt,e),Nt.forEach(t),Ot.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Lt(n),null===n.blockedOn&&At.shift()}var Ht=k.ReactCurrentBatchConfig,$t=!0;function Ut(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Wt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Kt(e,t,n,r){if($t){var o=qt(e,t,n,r);if(null===o)jr(e,t,r,Gt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Bt(It,e,t,n,r,o),!0;case"dragenter":return Tt=Bt(Tt,e,t,n,r,o),!0;case"mouseover":return Pt=Bt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,Bt(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ot.set(i,Bt(Ot.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var i=go(o);if(null!==i&&kt(i),null===(i=qt(e,t,n,r))&&jr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else jr(e,t,r,null,n)}}var Gt=null;function qt(e,t,n,r){if(Gt=null,null!==(e=ho(e=ke(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Qe:return 1;case Je:return 4;case et:case tt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Qt=null;function Jt(){if(Qt)return Qt;var e,t,n=Zt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Qt=o.slice(e,1<t?1-t:void 0)}function en(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tn(){return!0}function nn(){return!1}function rn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?tn:nn,this.isPropagationStopped=nn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tn)},persist:function(){},isPersistent:tn}),t}var on,an,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=rn(ln),un=D({},ln,{view:0,detail:0}),dn=rn(un),fn=D({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,an=e.screenY-sn.screenY):an=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:an}}),pn=rn(fn),mn=rn(D({},fn,{dataTransfer:0})),hn=rn(D({},un,{relatedTarget:0})),gn=rn(D({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=rn(D({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),bn=rn(D({},ln,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function En(){return _n}var xn=rn(D({},un,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=en(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?en(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?en(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Sn=rn(D({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=rn(D({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),In=rn(D({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=rn(D({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Pn=[9,13,27,32],Nn=u&&"CompositionEvent"in window,On=null;u&&"documentMode"in document&&(On=document.documentMode);var An=u&&"TextEvent"in window&&!On,Mn=u&&(!Nn||On&&8<On&&11>=On),Rn=String.fromCharCode(32),Bn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){Se(r),0<(t=Hr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,$n=null;function Un(e){Rr(e,0)}function Wn(e){if(G(vo(e)))return e}function Kn(e,t){if("change"===e)return t}var Gn=!1;if(u){var qn;if(u){var Yn="oninput"in document;if(!Yn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Yn="function"==typeof Xn.oninput}qn=Yn}else qn=!1;Gn=qn&&(!document.documentMode||9<document.documentMode)}function Zn(){Hn&&(Hn.detachEvent("onpropertychange",Qn),$n=Hn=null)}function Qn(e){if("value"===e.propertyName&&Wn($n)){var t=[];Vn(t,$n,e,ke(e)),Ne(Un,t)}}function Jn(e,t,n){"focusin"===e?(Zn(),$n=n,(Hn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Zn()}function er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn($n)}function tr(e,t){if("click"===e)return Wn(t)}function nr(e,t){if("input"===e||"change"===e)return Wn(t)}var rr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(rr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!rr(e[o],t[o]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ar(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ur(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ar(n,i);var a=ar(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dr=u&&"documentMode"in document&&11>=document.documentMode,fr=null,pr=null,mr=null,hr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;hr||null==fr||fr!==q(r)||("selectionStart"in(r=fr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=Hr(pr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionend:vr("Transition","TransitionEnd")},yr={},kr={};function wr(e){if(yr[e])return yr[e];if(!br[e])return e;var t,n=br[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return yr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var _r=wr("animationend"),Er=wr("animationiteration"),xr=wr("animationstart"),Sr=wr("transitionend"),Cr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Cr.set(e,t),l(t,[e])}for(var Pr=0;Pr<Ir.length;Pr++){var Nr=Ir[Pr];Tr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Tr(_r,"onAnimationEnd"),Tr(Er,"onAnimationIteration"),Tr(xr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Sr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(je.apply(this,arguments),Be){if(!Be)throw Error(i(198));var u=Le;Be=!1,Le=null,De||(De=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function Rr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Mr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Mr(o,s,c),i=l}}}if(De)throw e=ze,De=!1,ze=null,e}function Br(e,t){var n=t[fo];void 0===n&&(n=t[fo]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Lr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var Dr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Dr]){e[Dr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||Lr(t,!1,e),Lr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Dr]||(t[Dr]=!0,Lr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Yt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=ho(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=i,o=ke(n),a=[];e:{var s=Cr.get(e);if(void 0!==s){var l=cn,c=e;switch(e){case"keypress":if(0===en(n))break e;case"keydown":case"keyup":l=xn;break;case"focusin":c="focus",l=hn;break;case"focusout":c="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Cn;break;case _r:case Er:case xr:l=gn;break;case Sr:l=In;break;case"scroll":l=dn;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sn}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=Oe(m,f))&&u.push(Vr(m,h,p)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ye||!(c=n.relatedTarget||n.fromElement)||!ho(c)&&!c[uo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ho(c):null)&&(c!==(d=Ve(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Sn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==l?s:vo(l),p=null==c?s:vo(c),(s=new u(h,m+"leave",l,n,o)).target=d,s.relatedTarget=p,h=null,ho(o)===r&&((u=new u(f,m+"enter",c,n,o)).target=p,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(f=c,m=0,p=u=l;p;p=$r(p))m++;for(p=0,h=f;h;h=$r(h))p++;for(;0<m-p;)u=$r(u),m--;for(;0<p-m;)f=$r(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=$r(u),f=$r(f)}u=null}else u=null;null!==l&&Ur(a,s,l,u,!1),null!==c&&null!==d&&Ur(a,d,c,u,!0)}if("select"===(l=(s=r?vo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Kn;else if(jn(s))if(Gn)g=nr;else{g=er;var v=Jn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=tr);switch(g&&(g=g(e,r))?Vn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?vo(r):window,e){case"focusin":(jn(v)||"true"===v.contentEditable)&&(fr=v,pr=r,mr=null);break;case"focusout":mr=pr=fr=null;break;case"mousedown":hr=!0;break;case"contextmenu":case"mouseup":case"dragend":hr=!1,gr(a,n,o);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":gr(a,n,o)}var b;if(Nn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zn?Ln(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Mn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&zn&&(b=Jt()):(Zt="value"in(Xt=o)?Xt.value:Xt.textContent,zn=!0)),0<(v=Hr(r,y)).length&&(y=new bn(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Dn(n))&&(y.data=b))),(b=An?function(e,t){switch(e){case"compositionend":return Dn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Rn);case"textInput":return(e=t.data)===Rn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Nn&&Ln(e,t)?(e=Jt(),Qt=Zt=Xt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Hr(r,"onBeforeInput")).length&&(o=new bn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Rr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Oe(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Oe(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ur(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Oe(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Oe(n,i))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Wr,"\n").replace(Kr,"")}function qr(e,t,n){if(t=Gr(t),Gr(e)!==t&&n)throw Error(i(425))}function Yr(){}var Xr=null,Zr=null;function Qr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jr="function"==typeof setTimeout?setTimeout:void 0,eo="function"==typeof clearTimeout?clearTimeout:void 0,to="function"==typeof Promise?Promise:void 0,no="function"==typeof queueMicrotask?queueMicrotask:void 0!==to?function(e){return to.resolve(null).then(e).catch(ro)}:Jr;function ro(e){setTimeout((function(){throw e}))}function oo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function io(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ao(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),lo="__reactFiber$"+so,co="__reactProps$"+so,uo="__reactContainer$"+so,fo="__reactEvents$"+so,po="__reactListeners$"+so,mo="__reactHandles$"+so;function ho(e){var t=e[lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[uo]||n[lo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ao(e);null!==e;){if(n=e[lo])return n;e=ao(e)}return t}n=(e=n).parentNode}return null}function go(e){return!(e=e[lo]||e[uo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function vo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function bo(e){return e[co]||null}var yo=[],ko=-1;function wo(e){return{current:e}}function _o(e){0>ko||(e.current=yo[ko],yo[ko]=null,ko--)}function Eo(e,t){ko++,yo[ko]=e.current,e.current=t}var xo={},So=wo(xo),Co=wo(!1),Io=xo;function To(e,t){var n=e.type.contextTypes;if(!n)return xo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Po(e){return null!=(e=e.childContextTypes)}function No(){_o(Co),_o(So)}function Oo(e,t,n){if(So.current!==xo)throw Error(i(168));Eo(So,t),Eo(Co,n)}function Ao(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return D({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xo,Io=So.current,Eo(So,e),Eo(Co,Co.current),!0}function Ro(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ao(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,_o(Co),_o(So),Eo(So,e)):_o(Co),Eo(Co,n)}var Bo=null,Lo=!1,Do=!1;function zo(e){null===Bo?Bo=[e]:Bo.push(e)}function Fo(){if(!Do&&null!==Bo){Do=!0;var e=0,t=bt;try{var n=Bo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Lo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ke(Qe,Fo),t}finally{bt=t,Do=!1}}return null}var jo=[],Vo=0,Ho=null,$o=0,Uo=[],Wo=0,Ko=null,Go=1,qo="";function Yo(e,t){jo[Vo++]=$o,jo[Vo++]=Ho,Ho=e,$o=t}function Xo(e,t,n){Uo[Wo++]=Go,Uo[Wo++]=qo,Uo[Wo++]=Ko,Ko=e;var r=Go;e=qo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var i=32-it(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Go=1<<32-it(t)+o|n<<o|r,qo=i+e}else Go=1<<i|n<<o|r,qo=e}function Zo(e){null!==e.return&&(Yo(e,1),Xo(e,1,0))}function Qo(e){for(;e===Ho;)Ho=jo[--Vo],jo[Vo]=null,$o=jo[--Vo],jo[Vo]=null;for(;e===Ko;)Ko=Uo[--Wo],Uo[Wo]=null,qo=Uo[--Wo],Uo[Wo]=null,Go=Uo[--Wo],Uo[Wo]=null}var Jo=null,ei=null,ti=!1,ni=null;function ri(e,t){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Jo=e,ei=io(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Jo=e,ei=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Go,overflow:qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Jo=e,ei=null,!0);default:return!1}}function ii(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ai(e){if(ti){var t=ei;if(t){var n=t;if(!oi(e,t)){if(ii(e))throw Error(i(418));t=io(n.nextSibling);var r=Jo;t&&oi(e,t)?ri(r,n):(e.flags=-4097&e.flags|2,ti=!1,Jo=e)}}else{if(ii(e))throw Error(i(418));e.flags=-4097&e.flags|2,ti=!1,Jo=e}}}function si(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Jo=e}function li(e){if(e!==Jo)return!1;if(!ti)return si(e),ti=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Qr(e.type,e.memoizedProps)),t&&(t=ei)){if(ii(e))throw ci(),Error(i(418));for(;t;)ri(e,t),t=io(t.nextSibling)}if(si(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ei=io(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ei=null}}else ei=Jo?io(e.stateNode.nextSibling):null;return!0}function ci(){for(var e=ei;e;)e=io(e.nextSibling)}function ui(){ei=Jo=null,ti=!1}function di(e){null===ni?ni=[e]:ni.push(e)}var fi=k.ReactCurrentBatchConfig;function pi(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mi=wo(null),hi=null,gi=null,vi=null;function bi(){vi=gi=hi=null}function yi(e){var t=mi.current;_o(mi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wi(e,t){hi=e,vi=gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(gs=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(vi!==e)if(e={context:e,memoizedValue:t,next:null},null===gi){if(null===hi)throw Error(i(308));gi=e,hi.dependencies={lanes:0,firstContext:e}}else gi=gi.next=e;return t}var Ei=null;function xi(e){null===Ei?Ei=[e]:Ei.push(e)}function Si(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,xi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ci(e,r)}function Ci(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ni(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Sl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ci(e,n)}return null===(o=r.interleaved)?(t.next=t,xi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ci(e,n)}function Ai(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Mi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ri(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=D({},d,f);break e;case 2:Ii=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Li=(new r.Component).refs;function Di(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zi={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zl(),o=Ql(e),i=Ni(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Oi(e,i,o))&&(Jl(t,e,o,r),Ai(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zl(),o=Ql(e),i=Ni(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Oi(e,i,o))&&(Jl(t,e,o,r),Ai(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),r=Ql(e),o=Ni(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Oi(e,o,r))&&(Jl(t,e,r,n),Ai(t,e,r))}};function Fi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(o,i))}function ji(e,t,n){var r=!1,o=xo,i=t.contextType;return"object"==typeof i&&null!==i?i=_i(i):(o=Po(t)?Io:So.current,i=(r=null!=(r=t.contextTypes))?To(e,o):xo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zi.enqueueReplaceState(t,t.state,null)}function Hi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Li,Ti(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_i(i):(i=Po(t)?Io:So.current,o.context=To(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Di(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&zi.enqueueReplaceState(o,o.state,null),Ri(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function $i(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Li&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ui(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wi(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Nc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Rc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===A&&Wi(i)===t.type)?((r=o(t,n.props)).ref=$i(e,t,n),r.return=e,r):((r=Oc(n.type,n.key,n.props,null,e.mode,r)).ref=$i(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ac(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Oc(t.type,t.key,t.props,null,e.mode,n)).ref=$i(e,null,t),n.return=e,n;case _:return(t=Bc(t,e.mode,n)).return=e,t;case A:return f(e,(0,t._init)(t._payload),n)}if(te(t)||B(t))return(t=Ac(t,e.mode,n,null)).return=e,t;Ui(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null;case A:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||B(n))return null!==o?null:d(e,t,n,r,null);Ui(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case A:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||B(r))return d(t,e=e.get(n)||null,r,o,null);Ui(t,r)}return null}function h(o,i,s,l){for(var c=null,u=null,d=i,h=i=0,g=null;null!==d&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var v=p(o,d,s[h],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,h),null===u?c=v:u.sibling=v,u=v,d=g}if(h===s.length)return n(o,d),ti&&Yo(o,h),c;if(null===d){for(;h<s.length;h++)null!==(d=f(o,s[h],l))&&(i=a(d,i,h),null===u?c=d:u.sibling=d,u=d);return ti&&Yo(o,h),c}for(d=r(o,d);h<s.length;h++)null!==(g=m(d,o,h,s[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),i=a(g,i,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ti&&Yo(o,h),c}function g(o,s,l,c){var u=B(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,h=s,g=s=0,v=null,b=l.next();null!==h&&!b.done;g++,b=l.next()){h.index>g?(v=h,h=null):v=h.sibling;var y=p(o,h,b.value,c);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,h=v}if(b.done)return n(o,h),ti&&Yo(o,g),u;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=f(o,b.value,c))&&(s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return ti&&Yo(o,g),u}for(h=r(o,h);!b.done;g++,b=l.next())null!==(b=m(h,o,g,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(o,e)})),ti&&Yo(o,g),u}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===E){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===A&&Wi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=$i(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((i=Ac(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Oc(a.type,a.key,a.props,null,r.mode,l)).ref=$i(r,i,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Bc(a,r.mode,l)).return=r,r=i}return s(r);case A:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return h(r,i,a,l);if(B(a))return g(r,i,a,l);Ui(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Rc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Gi=Ki(!0),qi=Ki(!1),Yi={},Xi=wo(Yi),Zi=wo(Yi),Qi=wo(Yi);function Ji(e){if(e===Yi)throw Error(i(174));return e}function ea(e,t){switch(Eo(Qi,t),Eo(Zi,e),Eo(Xi,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Xi),Eo(Xi,t)}function ta(){_o(Xi),_o(Zi),_o(Qi)}function na(e){Ji(Qi.current);var t=Ji(Xi.current),n=le(t,e.type);t!==n&&(Eo(Zi,e),Eo(Xi,n))}function ra(e){Zi.current===e&&(_o(Xi),_o(Zi))}var oa=wo(0);function ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aa=[];function sa(){for(var e=0;e<aa.length;e++)aa[e]._workInProgressVersionPrimary=null;aa.length=0}var la=k.ReactCurrentDispatcher,ca=k.ReactCurrentBatchConfig,ua=0,da=null,fa=null,pa=null,ma=!1,ha=!1,ga=0,va=0;function ba(){throw Error(i(321))}function ya(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,o,a){if(ua=a,da=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,la.current=null===e||null===e.memoizedState?rs:os,e=n(r,o),ha){a=0;do{if(ha=!1,ga=0,25<=a)throw Error(i(301));a+=1,pa=fa=null,t.updateQueue=null,la.current=is,e=n(r,o)}while(ha)}if(la.current=ns,t=null!==fa&&null!==fa.next,ua=0,pa=fa=da=null,ma=!1,t)throw Error(i(300));return e}function wa(){var e=0!==ga;return ga=0,e}function _a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===pa?da.memoizedState=pa=e:pa=pa.next=e,pa}function Ea(){if(null===fa){var e=da.alternate;e=null!==e?e.memoizedState:null}else e=fa.next;var t=null===pa?da.memoizedState:pa.next;if(null!==t)pa=t,fa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(fa=e).memoizedState,baseState:fa.baseState,baseQueue:fa.baseQueue,queue:fa.queue,next:null},null===pa?da.memoizedState=pa=e:pa=pa.next=e}return pa}function xa(e,t){return"function"==typeof t?t(e):t}function Sa(e){var t=Ea(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=fa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((ua&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,da.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,rr(r,t.memoizedState)||(gs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,da.lanes|=a,Ml|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=Ea(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);rr(a,t.memoizedState)||(gs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ia(){}function Ta(e,t){var n=da,r=Ea(),o=t(),a=!rr(r.memoizedState,o);if(a&&(r.memoizedState=o,gs=!0),r=r.queue,ja(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==pa&&1&pa.memoizedState.tag){if(n.flags|=2048,Ba(9,Na.bind(null,n,r,o,t),void 0,null),null===Cl)throw Error(i(349));0!=(30&ua)||Pa(n,t,o)}return o}function Pa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=da.updateQueue)?(t={lastEffect:null,stores:null},da.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Ma(e)}function Oa(e,t,n){return n((function(){Aa(t)&&Ma(e)}))}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rr(e,n)}catch(e){return!0}}function Ma(e){var t=Ci(e,1);null!==t&&Jl(t,e,1,-1)}function Ra(e){var t=_a();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Qa.bind(null,da,e),[t.memoizedState,e]}function Ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=da.updateQueue)?(t={lastEffect:null,stores:null},da.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return Ea().memoizedState}function Da(e,t,n,r){var o=_a();da.flags|=e,o.memoizedState=Ba(1|t,n,void 0,void 0===r?null:r)}function za(e,t,n,r){var o=Ea();r=void 0===r?null:r;var i=void 0;if(null!==fa){var a=fa.memoizedState;if(i=a.destroy,null!==r&&ya(r,a.deps))return void(o.memoizedState=Ba(t,n,i,r))}da.flags|=e,o.memoizedState=Ba(1|t,n,i,r)}function Fa(e,t){return Da(8390656,8,e,t)}function ja(e,t){return za(2048,8,e,t)}function Va(e,t){return za(4,2,e,t)}function Ha(e,t){return za(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!=n?n.concat([e]):null,za(4,4,$a.bind(null,t,e),n)}function Wa(){}function Ka(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ya(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ga(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ya(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qa(e,t,n){return 0==(21&ua)?(e.baseState&&(e.baseState=!1,gs=!0),e.memoizedState=n):(rr(n,t)||(n=mt(),da.lanes|=n,Ml|=n,e.baseState=!0),t)}function Ya(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ca.transition;ca.transition={};try{e(!1),t()}finally{bt=n,ca.transition=r}}function Xa(){return Ea().memoizedState}function Za(e,t,n){var r=Ql(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ja(e))es(t,n);else if(null!==(n=Si(e,t,n,r))){Jl(n,e,r,Zl()),ts(n,t,r)}}function Qa(e,t,n){var r=Ql(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ja(e))es(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;return null===l?(o.next=o,xi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Si(e,t,o,r))&&(Jl(n,e,r,o=Zl()),ts(n,t,r))}}function Ja(e){var t=e.alternate;return e===da||null!==t&&t===da}function es(e,t){ha=ma=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ts(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var ns={readContext:_i,useCallback:ba,useContext:ba,useEffect:ba,useImperativeHandle:ba,useInsertionEffect:ba,useLayoutEffect:ba,useMemo:ba,useReducer:ba,useRef:ba,useState:ba,useDebugValue:ba,useDeferredValue:ba,useTransition:ba,useMutableSource:ba,useSyncExternalStore:ba,useId:ba,unstable_isNewReconciler:!1},rs={readContext:_i,useCallback:function(e,t){return _a().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Fa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Da(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=_a();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_a();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Za.bind(null,da,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_a().memoizedState=e},useState:Ra,useDebugValue:Wa,useDeferredValue:function(e){return _a().memoizedState=e},useTransition:function(){var e=Ra(!1),t=e[0];return e=Ya.bind(null,e[1]),_a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=da,o=_a();if(ti){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Cl)throw Error(i(349));0!=(30&ua)||Pa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Fa(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ba(9,Na.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=_a(),t=Cl.identifierPrefix;if(ti){var n=qo;t=":"+t+"R"+(n=(Go&~(1<<32-it(Go)-1)).toString(32)+n),0<(n=ga++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=va++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},os={readContext:_i,useCallback:Ka,useContext:_i,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:Va,useLayoutEffect:Ha,useMemo:Ga,useReducer:Sa,useRef:La,useState:function(){return Sa(xa)},useDebugValue:Wa,useDeferredValue:function(e){return qa(Ea(),fa.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],Ea().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Ta,useId:Xa,unstable_isNewReconciler:!1},is={readContext:_i,useCallback:Ka,useContext:_i,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:Va,useLayoutEffect:Ha,useMemo:Ga,useReducer:Ca,useRef:La,useState:function(){return Ca(xa)},useDebugValue:Wa,useDeferredValue:function(e){var t=Ea();return null===fa?t.memoizedState=e:qa(t,fa.memoizedState,e)},useTransition:function(){return[Ca(xa)[0],Ea().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Ta,useId:Xa,unstable_isNewReconciler:!1};function as(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ss(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ls(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var cs="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=Ni(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Hl=r),ls(0,t)},n}function ds(e,t,n){(n=Ni(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ls(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ls(0,t),"function"!=typeof r&&(null===$l?$l=new Set([this]):$l.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function ps(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ms(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ni(-1,1)).tag=2,Oi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var hs=k.ReactCurrentOwner,gs=!1;function vs(e,t,n,r){t.child=null===e?qi(t,null,n,r):Gi(t,e.child,n,r)}function bs(e,t,n,r,o){n=n.render;var i=t.ref;return wi(t,o),r=ka(e,t,n,r,i,o),n=wa(),null===e||gs?(ti&&n&&Zo(t),t.flags|=1,vs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function ys(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Oc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:or)(a,r)&&e.ref===t.ref)return Vs(e,t,o)}return t.flags|=1,(e=Nc(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(or(i,r)&&e.ref===t.ref){if(gs=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Vs(e,t,o);0!=(131072&e.flags)&&(gs=!0)}}return Es(e,t,n,r,o)}function ws(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Eo(Nl,Pl),Pl|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Eo(Nl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Eo(Nl,Pl),Pl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Eo(Nl,Pl),Pl|=r;return vs(e,t,o,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Po(n)?Io:So.current;return i=To(t,i),wi(t,o),n=ka(e,t,n,r,i,o),r=wa(),null===e||gs?(ti&&r&&Zo(t),t.flags|=1,vs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function xs(e,t,n,r,o){if(Po(n)){var i=!0;Mo(t)}else i=!1;if(wi(t,o),null===t.stateNode)js(e,t),ji(t,n,r),Hi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=_i(c):c=To(t,c=Po(n)?Io:So.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Vi(t,a,r,c),Ii=!1;var f=t.memoizedState;a.state=f,Ri(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Co.current||Ii?("function"==typeof u&&(Di(t,n,u,r),l=t.memoizedState),(s=Ii||Fi(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:pi(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=_i(l):l=To(t,l=Po(n)?Io:So.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Vi(t,a,r,l),Ii=!1,f=t.memoizedState,a.state=f,Ri(t,r,a,o);var m=t.memoizedState;s!==d||f!==m||Co.current||Ii?("function"==typeof p&&(Di(t,n,p,r),m=t.memoizedState),(c=Ii||Fi(t,n,c,r,f,m,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ss(e,t,n,r,i,o)}function Ss(e,t,n,r,o,i){_s(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Ro(t,n,!1),Vs(e,t,i);r=t.stateNode,hs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Gi(t,e.child,null,i),t.child=Gi(t,null,s,i)):vs(e,t,s,i),t.memoizedState=r.state,o&&Ro(t,n,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?Oo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oo(0,t.context,!1),ea(e,t.containerInfo)}function Is(e,t,n,r,o){return ui(),di(o),t.flags|=256,vs(e,t,n,r),t.child}var Ts,Ps,Ns,Os,As={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,n){var r,o=t.pendingProps,a=oa.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Eo(oa,1&a),null===e)return ai(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,o,0,null),e=Ac(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=As,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Ls(e,t,s,r=ss(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(a=Ac(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Gi(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=As,a);if(0==(1&t.mode))return Ls(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ls(e,t,s,r=ss(a=Error(i(419)),r,void 0))}if(l=0!=(s&e.childLanes),gs||l){if(null!==(r=Cl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ci(e,o),Jl(r,e,o,-1))}return fc(),Ls(e,t,s,r=ss(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=xc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,ei=io(o.nextSibling),Jo=t,ti=!0,ni=null,null!==e&&(Uo[Wo++]=Go,Uo[Wo++]=qo,Uo[Wo++]=Ko,Go=e.id,qo=e.overflow,Ko=t),t=Bs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Nc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Nc(r,s):(s=Ac(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=As,o}return e=(s=e.child).sibling,o=Nc(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Bs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ls(e,t,n,r){return null!==r&&di(r),Gi(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ds(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function zs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Fs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(vs(e,t,r.children,n),0!=(2&(r=oa.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ds(e,n,t);else if(19===e.tag)Ds(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Eo(oa,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ia(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ia(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,i);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function js(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Nc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!ti)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $s(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Us(e,t,n){var r=t.pendingProps;switch(Qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $s(t),null;case 1:case 17:return Po(t.type)&&No(),$s(t),null;case 3:return r=t.stateNode,ta(),_o(Co),_o(So),sa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(li(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ni&&(rc(ni),ni=null))),Ps(e,t),$s(t),null;case 5:ra(t);var o=Ji(Qi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ns(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return $s(t),null}if(e=Ji(Xi.current),li(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[lo]=t,r[co]=a,e=0!=(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Or.length;o++)Br(Or[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":X(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var l in ve(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&qr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&qr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":K(r),J(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Yr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[lo]=t,e[co]=r,Ts(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Or.length;o++)Br(Or[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":X(e,r),o=Y(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in ve(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?he(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&ue(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&de(e,u):"number"==typeof u&&de(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&y(e,a,u,l))}switch(n){case"input":K(e),J(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Yr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $s(t),null;case 6:if(e&&null!=t.stateNode)Os(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ji(Qi.current),Ji(Xi.current),li(t)){if(r=t.stateNode,n=t.memoizedProps,r[lo]=t,(a=r.nodeValue!==n)&&null!==(e=Jo))switch(e.tag){case 3:qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[lo]=t,t.stateNode=r}return $s(t),null;case 13:if(_o(oa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ti&&null!==ei&&0!=(1&t.mode)&&0==(128&t.flags))ci(),ui(),t.flags|=98560,a=!1;else if(a=li(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[lo]=t}else ui(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$s(t),a=!1}else null!==ni&&(rc(ni),ni=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&oa.current)?0===Ol&&(Ol=3):fc())),null!==t.updateQueue&&(t.flags|=4),$s(t),null);case 4:return ta(),Ps(e,t),null===e&&zr(t.stateNode.containerInfo),$s(t),null;case 10:return yi(t.type._context),$s(t),null;case 19:if(_o(oa),null===(a=t.memoizedState))return $s(t),null;if(r=0!=(128&t.flags),null===(l=a.rendering))if(r)Hs(a,!1);else{if(0!==Ol||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ia(e))){for(t.flags|=128,Hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Eo(oa,1&oa.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Fl&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ia(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ti)return $s(t),null}else 2*Xe()-a.renderingStartTime>Fl&&1073741824!==n&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=oa.current,Eo(oa,r?1&n|2:1&n),t):($s(t),null);case 22:case 23:return lc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Pl)&&($s(t),6&t.subtreeFlags&&(t.flags|=8192)):$s(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ws(e,t){switch(Qo(t),t.tag){case 1:return Po(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ta(),_o(Co),_o(So),sa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ra(t),null;case 13:if(_o(oa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));ui()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(oa),null;case 4:return ta(),null;case 10:return yi(t.type._context),null;case 22:case 23:return lc(),null;default:return null}}Ts=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Ns=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ji(Xi.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Os=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Gs=!1,qs="function"==typeof WeakSet?WeakSet:Set,Ys=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){wc(e,t,n)}else n.current=null}function Zs(e,t,n){try{n()}catch(n){wc(e,t,n)}}var Qs=!1;function Js(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Zs(t,n,i)}o=o.next}while(o!==r)}}function el(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function nl(e){var t=e.alternate;null!==t&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[lo],delete t[co],delete t[fo],delete t[po],delete t[mo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rl(e){return 5===e.tag||3===e.tag||4===e.tag}function ol(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function il(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(il(e,t,n),e=e.sibling;null!==e;)il(e,t,n),e=e.sibling}function al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}var sl=null,ll=!1;function cl(e,t,n){for(n=n.child;null!==n;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(rt,n)}catch(e){}switch(n.tag){case 5:Gs||Xs(n,t);case 6:var r=sl,o=ll;sl=null,cl(e,t,n),ll=o,null!==(sl=r)&&(ll?(e=sl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):sl.removeChild(n.stateNode));break;case 18:null!==sl&&(ll?(e=sl,n=n.stateNode,8===e.nodeType?oo(e.parentNode,n):1===e.nodeType&&oo(e,n),Vt(e)):oo(sl,n.stateNode));break;case 4:r=sl,o=ll,sl=n.stateNode.containerInfo,ll=!0,cl(e,t,n),sl=r,ll=o;break;case 0:case 11:case 14:case 15:if(!Gs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Zs(n,t,a),o=o.next}while(o!==r)}cl(e,t,n);break;case 1:if(!Gs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){wc(n,t,e)}cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,cl(e,t,n),Gs=r):cl(e,t,n);break;default:cl(e,t,n)}}function dl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new qs),t.forEach((function(t){var r=Sc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function fl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:sl=l.stateNode,ll=!1;break e;case 3:case 4:sl=l.stateNode.containerInfo,ll=!0;break e}l=l.return}if(null===sl)throw Error(i(160));ul(a,s,o),sl=null,ll=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){wc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)pl(t,e),t=t.sibling}function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fl(t,e),ml(e),4&r){try{Js(3,e,e.return),el(3,e)}catch(t){wc(e,e.return,t)}try{Js(5,e,e.return)}catch(t){wc(e,e.return,t)}}break;case 1:fl(t,e),ml(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(fl(t,e),ml(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){wc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?he(o,f):"dangerouslySetInnerHTML"===d?ue(o,f):"children"===d?de(o,f):y(o,d,f,u)}switch(l){case"input":Q(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?ne(o,!!a.multiple,m,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[co]=a}catch(t){wc(e,e.return,t)}}break;case 6:if(fl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){wc(e,e.return,t)}}break;case 3:if(fl(t,e),ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){wc(e,e.return,t)}break;case 4:default:fl(t,e),ml(e);break;case 13:fl(t,e),ml(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Xe())),4&r&&dl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(u=Gs)||d,fl(t,e),Gs=u):fl(t,e),ml(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ys=e,d=e.child;null!==d;){for(f=Ys=d;null!==Ys;){switch(m=(p=Ys).child,p.tag){case 0:case 11:case 14:case 15:Js(4,p,p.return);break;case 1:Xs(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){wc(r,n,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){bl(f);continue}}null!==m?(m.return=p,Ys=m):bl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){wc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){wc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:fl(t,e),ml(e),4&r&&dl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(rl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),al(e,ol(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;il(e,ol(e),a);break;default:throw Error(i(161))}}catch(t){wc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function hl(e,t,n){Ys=e,gl(e,t,n)}function gl(e,t,n){for(var r=0!=(1&e.mode);null!==Ys;){var o=Ys,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ks;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Ks;var c=Gs;if(Ks=a,(Gs=l)&&!c)for(Ys=o;null!==Ys;)l=(a=Ys).child,22===a.tag&&null!==a.memoizedState?yl(o):null!==l?(l.return=a,Ys=l):yl(o);for(;null!==i;)Ys=i,gl(i,t,n),i=i.sibling;Ys=o,Ks=s,Gs=c}vl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ys=i):vl(e)}}function vl(e){for(;null!==Ys;){var t=Ys;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gs||el(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:pi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(i(163))}Gs||512&t.flags&&tl(t)}catch(e){wc(t,t.return,e)}}if(t===e){Ys=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ys=n;break}Ys=t.return}}function bl(e){for(;null!==Ys;){var t=Ys;if(t===e){Ys=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ys=n;break}Ys=t.return}}function yl(e){for(;null!==Ys;){var t=Ys;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{el(4,t)}catch(e){wc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){wc(t,o,e)}}var i=t.return;try{tl(t)}catch(e){wc(t,i,e)}break;case 5:var a=t.return;try{tl(t)}catch(e){wc(t,a,e)}}}catch(e){wc(t,t.return,e)}if(t===e){Ys=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Ys=s;break}Ys=t.return}}var kl,wl=Math.ceil,_l=k.ReactCurrentDispatcher,El=k.ReactCurrentOwner,xl=k.ReactCurrentBatchConfig,Sl=0,Cl=null,Il=null,Tl=0,Pl=0,Nl=wo(0),Ol=0,Al=null,Ml=0,Rl=0,Bl=0,Ll=null,Dl=null,zl=0,Fl=1/0,jl=null,Vl=!1,Hl=null,$l=null,Ul=!1,Wl=null,Kl=0,Gl=0,ql=null,Yl=-1,Xl=0;function Zl(){return 0!=(6&Sl)?Xe():-1!==Yl?Yl:Yl=Xe()}function Ql(e){return 0==(1&e.mode)?1:0!=(2&Sl)&&0!==Tl?Tl&-Tl:null!==fi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function Jl(e,t,n,r){if(50<Gl)throw Gl=0,ql=null,Error(i(185));gt(e,n,r),0!=(2&Sl)&&e===Cl||(e===Cl&&(0==(2&Sl)&&(Rl|=n),4===Ol&&oc(e,Tl)),ec(e,r),1===n&&0===Sl&&0==(1&t.mode)&&(Fl=Xe()+500,Lo&&Fo()))}function ec(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-it(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===Cl?Tl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Lo=!0,zo(e)}(ic.bind(null,e)):zo(ic.bind(null,e)),no((function(){0==(6&Sl)&&Fo()})),n=null;else{switch(yt(r)){case 1:n=Qe;break;case 4:n=Je;break;case 16:default:n=et;break;case 536870912:n=nt}n=Cc(n,tc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tc(e,t){if(Yl=-1,Xl=0,0!=(6&Sl))throw Error(i(327));var n=e.callbackNode;if(yc()&&e.callbackNode!==n)return null;var r=dt(e,e===Cl?Tl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=pc(e,r);else{t=r;var o=Sl;Sl|=2;var a=dc();for(Cl===e&&Tl===t||(jl=null,Fl=Xe()+500,cc(e,t));;)try{hc();break}catch(t){uc(e,t)}bi(),_l.current=a,Sl=o,null!==Il?t=0:(Cl=null,Tl=0,t=Ol)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=nc(e,o))),1===t)throw n=Al,cc(e,0),oc(e,r),ec(e,Xe()),n;if(6===t)oc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!rr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=pc(e,r))&&(0!==(a=pt(e))&&(r=a,t=nc(e,a))),1===t))throw n=Al,cc(e,0),oc(e,r),ec(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:bc(e,Dl,jl);break;case 3:if(oc(e,r),(130023424&r)===r&&10<(t=zl+500-Xe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Zl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jr(bc.bind(null,e,Dl,jl),t);break}bc(e,Dl,jl);break;case 4:if(oc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wl(r/1960))-r)){e.timeoutHandle=Jr(bc.bind(null,e,Dl,jl),r);break}bc(e,Dl,jl);break;default:throw Error(i(329))}}}return ec(e,Xe()),e.callbackNode===n?tc.bind(null,e):null}function nc(e,t){var n=Ll;return e.current.memoizedState.isDehydrated&&(cc(e,t).flags|=256),2!==(e=pc(e,t))&&(t=Dl,Dl=n,null!==t&&rc(t)),e}function rc(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function oc(e,t){for(t&=~Bl,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function ic(e){if(0!=(6&Sl))throw Error(i(327));yc();var t=dt(e,0);if(0==(1&t))return ec(e,Xe()),null;var n=pc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=nc(e,r))}if(1===n)throw n=Al,cc(e,0),oc(e,t),ec(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bc(e,Dl,jl),ec(e,Xe()),null}function ac(e,t){var n=Sl;Sl|=1;try{return e(t)}finally{0===(Sl=n)&&(Fl=Xe()+500,Lo&&Fo())}}function sc(e){null!==Wl&&0===Wl.tag&&0==(6&Sl)&&yc();var t=Sl;Sl|=1;var n=xl.transition,r=bt;try{if(xl.transition=null,bt=1,e)return e()}finally{bt=r,xl.transition=n,0==(6&(Sl=t))&&Fo()}}function lc(){Pl=Nl.current,_o(Nl)}function cc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,eo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(Qo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:ta(),_o(Co),_o(So),sa();break;case 5:ra(r);break;case 4:ta();break;case 13:case 19:_o(oa);break;case 10:yi(r.type._context);break;case 22:case 23:lc()}n=n.return}if(Cl=e,Il=e=Nc(e.current,null),Tl=Pl=t,Ol=0,Al=null,Bl=Rl=Ml=0,Dl=Ll=null,null!==Ei){for(t=0;t<Ei.length;t++)if(null!==(r=(n=Ei[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ei=null}return e}function uc(e,t){for(;;){var n=Il;try{if(bi(),la.current=ns,ma){for(var r=da.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ma=!1}if(ua=0,pa=fa=da=null,ha=!1,ga=0,El.current=null,null===n||null===n.return){Ol=1,Al=t,Il=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Tl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ps(s);if(null!==m){m.flags&=-257,ms(m,s,l,0,t),1&m.mode&&fs(a,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(c),t.updateQueue=g}else h.add(c);break e}if(0==(1&t)){fs(a,u,t),fc();break e}c=Error(i(426))}else if(ti&&1&l.mode){var v=ps(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ms(v,s,l,0,t),di(as(c,l));break e}}a=c=as(c,l),4!==Ol&&(Ol=2),null===Ll?Ll=[a]:Ll.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Mi(a,us(0,c,t));break e;case 1:l=c;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===$l||!$l.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Mi(a,ds(a,l,t));break e}}a=a.return}while(null!==a)}vc(n)}catch(e){t=e,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function dc(){var e=_l.current;return _l.current=ns,null===e?ns:e}function fc(){0!==Ol&&3!==Ol&&2!==Ol||(Ol=4),null===Cl||0==(268435455&Ml)&&0==(268435455&Rl)||oc(Cl,Tl)}function pc(e,t){var n=Sl;Sl|=2;var r=dc();for(Cl===e&&Tl===t||(jl=null,cc(e,t));;)try{mc();break}catch(t){uc(e,t)}if(bi(),Sl=n,_l.current=r,null!==Il)throw Error(i(261));return Cl=null,Tl=0,Ol}function mc(){for(;null!==Il;)gc(Il)}function hc(){for(;null!==Il&&!qe();)gc(Il)}function gc(e){var t=kl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?vc(e):Il=t,El.current=null}function vc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Us(n,t,Pl)))return void(Il=n)}else{if(null!==(n=Ws(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Ol=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Ol&&(Ol=5)}function bc(e,t,n){var r=bt,o=xl.transition;try{xl.transition=null,bt=1,function(e,t,n,r){do{yc()}while(null!==Wl);if(0!=(6&Sl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Cl&&(Il=Cl=null,Tl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Ul||(Ul=!0,Cc(et,(function(){return yc(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=xl.transition,xl.transition=null;var s=bt;bt=1;var l=Sl;Sl|=4,El.current=null,function(e,t){if(Xr=$t,cr(e=lr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===a&&++d===r&&(c=s),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zr={focusedElem:e,selectionRange:n},$t=!1,Ys=t;null!==Ys;)if(e=(t=Ys).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ys=e;else for(;null!==Ys;){t=Ys;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:pi(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var k=t.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(i(163))}}catch(e){wc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ys=e;break}Ys=t.return}h=Qs,Qs=!1}(e,n),pl(n,e),ur(Zr),$t=!!Xr,Zr=Xr=null,e.current=n,hl(n,e,o),Ye(),Sl=l,bt=s,xl.transition=a}else e.current=n;if(Ul&&(Ul=!1,Wl=e,Kl=o),a=e.pendingLanes,0===a&&($l=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(rt,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ec(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Vl)throw Vl=!1,e=Hl,Hl=null,e;0!=(1&Kl)&&0!==e.tag&&yc(),a=e.pendingLanes,0!=(1&a)?e===ql?Gl++:(Gl=0,ql=e):Gl=0,Fo()}(e,t,n,r)}finally{xl.transition=o,bt=r}return null}function yc(){if(null!==Wl){var e=yt(Kl),t=xl.transition,n=bt;try{if(xl.transition=null,bt=16>e?16:e,null===Wl)var r=!1;else{if(e=Wl,Wl=null,Kl=0,0!=(6&Sl))throw Error(i(331));var o=Sl;for(Sl|=4,Ys=e.current;null!==Ys;){var a=Ys,s=a.child;if(0!=(16&Ys.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Ys=u;null!==Ys;){var d=Ys;switch(d.tag){case 0:case 11:case 15:Js(8,d,a)}var f=d.child;if(null!==f)f.return=d,Ys=f;else for(;null!==Ys;){var p=(d=Ys).sibling,m=d.return;if(nl(d),d===u){Ys=null;break}if(null!==p){p.return=m,Ys=p;break}Ys=m}}}var h=a.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Ys=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Ys=s;else e:for(;null!==Ys;){if(0!=(2048&(a=Ys).flags))switch(a.tag){case 0:case 11:case 15:Js(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Ys=b;break e}Ys=a.return}}var y=e.current;for(Ys=y;null!==Ys;){var k=(s=Ys).child;if(0!=(2064&s.subtreeFlags)&&null!==k)k.return=s,Ys=k;else e:for(s=y;null!==Ys;){if(0!=(2048&(l=Ys).flags))try{switch(l.tag){case 0:case 11:case 15:el(9,l)}}catch(e){wc(l,l.return,e)}if(l===s){Ys=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Ys=w;break e}Ys=l.return}}if(Sl=o,Fo(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(rt,e)}catch(e){}r=!0}return r}finally{bt=n,xl.transition=t}}return!1}function kc(e,t,n){e=Oi(e,t=us(0,t=as(n,t),1),1),t=Zl(),null!==e&&(gt(e,1,t),ec(e,t))}function wc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$l||!$l.has(r))){t=Oi(t,e=ds(t,e=as(n,e),1),1),e=Zl(),null!==t&&(gt(t,1,e),ec(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,Cl===e&&(Tl&n)===n&&(4===Ol||3===Ol&&(130023424&Tl)===Tl&&500>Xe()-zl?cc(e,0):Bl|=n),ec(e,t)}function Ec(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=Zl();null!==(e=Ci(e,t))&&(gt(e,t,n),ec(e,n))}function xc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ec(e,n)}function Sc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ec(e,n)}function Cc(e,t){return Ke(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(e,t,n,r){return new Ic(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nc(e,t){var n=e.alternate;return null===n?((n=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oc(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Pc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return Ac(n.children,o,a,t);case x:s=8,o|=8;break;case S:return(e=Tc(12,n,t,2|o)).elementType=S,e.lanes=a,e;case P:return(e=Tc(13,n,t,o)).elementType=P,e.lanes=a,e;case N:return(e=Tc(19,n,t,o)).elementType=N,e.lanes=a,e;case M:return Mc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case I:s=9;break e;case T:s=11;break e;case O:s=14;break e;case A:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Tc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ac(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Rc(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Dc(e,t,n,r,o,i,a,s,l){return e=new Lc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Tc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ti(i),e}function zc(e){if(!e)return xo;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Po(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Po(n))return Ao(e,n,t)}return t}function Fc(e,t,n,r,o,i,a,s,l){return(e=Dc(n,r,!0,e,0,i,0,s,l)).context=zc(null),n=e.current,(i=Ni(r=Zl(),o=Ql(n))).callback=null!=t?t:null,Oi(n,i,o),e.current.lanes=o,gt(e,o,r),ec(e,r),e}function jc(e,t,n,r){var o=t.current,i=Zl(),a=Ql(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ni(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Oi(o,t,a))&&(Jl(e,o,a,i),Ai(e,o,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $c(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Co.current)gs=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return gs=!1,function(e,t,n){switch(t.tag){case 3:Cs(t),ui();break;case 5:na(t);break;case 1:Po(t.type)&&Mo(t);break;case 4:ea(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Eo(mi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Eo(oa,1&oa.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Rs(e,t,n):(Eo(oa,1&oa.current),null!==(e=Vs(e,t,n))?e.sibling:null);Eo(oa,1&oa.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Fs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Eo(oa,oa.current),r)break;return null;case 22:case 23:return t.lanes=0,ws(e,t,n)}return Vs(e,t,n)}(e,t,n);gs=0!=(131072&e.flags)}else gs=!1,ti&&0!=(1048576&t.flags)&&Xo(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;js(e,t),e=t.pendingProps;var o=To(t,So.current);wi(t,n),o=ka(null,t,r,e,o,n);var a=wa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Po(r)?(a=!0,Mo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ti(t),o.updater=zi,t.stateNode=o,o._reactInternals=t,Hi(t,r,e,n),t=Ss(null,t,r,!0,a,n)):(t.tag=0,ti&&a&&Zo(t),vs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(js(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Pc(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===O)return 14}return 2}(r),e=pi(r,e),o){case 0:t=Es(null,t,r,e,n);break e;case 1:t=xs(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=ys(null,t,r,pi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:pi(r,o),n);case 1:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:pi(r,o),n);case 3:e:{if(Cs(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Pi(e,t),Ri(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Is(e,t,r,n,o=as(Error(i(423)),t));break e}if(r!==o){t=Is(e,t,r,n,o=as(Error(i(424)),t));break e}for(ei=io(t.stateNode.containerInfo.firstChild),Jo=t,ti=!0,ni=null,n=qi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ui(),r===o){t=Vs(e,t,n);break e}vs(e,t,r,n)}t=t.child}return t;case 5:return na(t),null===e&&ai(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,Qr(r,o)?s=null:null!==a&&Qr(r,a)&&(t.flags|=32),_s(e,t),vs(e,t,s,n),t.child;case 6:return null===e&&ai(t),null;case 13:return Rs(e,t,n);case 4:return ea(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Gi(t,null,r,n):vs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,bs(e,t,r,o=t.elementType===r?o:pi(r,o),n);case 7:return vs(e,t,t.pendingProps,n),t.child;case 8:case 12:return vs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Eo(mi,r._currentValue),r._currentValue=s,null!==a)if(rr(a.value,s)){if(a.children===o.children&&!Co.current){t=Vs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Ni(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),ki(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),ki(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}vs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wi(t,n),r=r(o=_i(o)),t.flags|=1,vs(e,t,r,n),t.child;case 14:return o=pi(r=t.type,t.pendingProps),ys(e,t,r,o=pi(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pi(r,o),js(e,t),t.tag=1,Po(r)?(e=!0,Mo(t)):e=!1,wi(t,n),ji(t,r,o),Hi(t,r,o,n),Ss(null,t,r,!0,e,n);case 19:return Fs(e,t,n);case 22:return ws(e,t,n)}throw Error(i(156,t.tag))};var Uc="function"==typeof reportError?reportError:function(e){console.error(e)};function Wc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Gc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yc(){}function Xc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Vc(a);s.call(e)}}jc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Vc(a);i.call(e)}}var a=Fc(t,r,e,0,null,!1,0,"",Yc);return e._reactRootContainer=a,e[uo]=a.current,zr(8===e.nodeType?e.parentNode:e),sc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Vc(l);s.call(e)}}var l=Dc(e,0,!1,null,0,!1,0,"",Yc);return e._reactRootContainer=l,e[uo]=l.current,zr(8===e.nodeType?e.parentNode:e),sc((function(){jc(t,l,n,r)})),l}(n,t,e,o,r);return Vc(a)}Kc.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));jc(e,t,null,null)},Kc.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;sc((function(){jc(null,e,null,null)})),t[uo]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Lt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(vt(t,1|n),ec(t,Xe()),0==(6&Sl)&&(Fl=Xe()+500,Fo()))}break;case 13:sc((function(){var t=Ci(e,1);if(null!==t){var n=Zl();Jl(t,e,1,n)}})),$c(e,1)}},wt=function(e){if(13===e.tag){var t=Ci(e,134217728);if(null!==t)Jl(t,e,134217728,Zl());$c(e,134217728)}},_t=function(e){if(13===e.tag){var t=Ql(e),n=Ci(e,t);if(null!==n)Jl(n,e,t,Zl());$c(e,t)}},Et=function(){return bt},xt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=bo(r);if(!o)throw Error(i(90));G(r),Q(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=ac,Te=sc;var Zc={usingClientEntryPoint:!1,Events:[go,vo,bo,Se,Ce,ac]},Qc={findFiberByHostInstance:ho,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Jc={bundleType:Qc.bundleType,version:Qc.version,rendererPackageName:Qc.rendererPackageName,rendererConfig:Qc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:Qc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eu.isDisabled&&eu.supportsFiber)try{rt=eu.inject(Jc),ot=eu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gc(e))throw Error(i(299));var n=!1,r="",o=Uc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Dc(e,1,!1,null,0,n,0,r,o),e[uo]=t.current,zr(8===e.nodeType?e.parentNode:e),new Wc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return sc(e)},t.hydrate=function(e,t,n){if(!qc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Uc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Fc(t,null,e,1,null!=n?n:null,o,0,a,s),e[uo]=t.current,zr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Kc(t)},t.render=function(e,t,n){if(!qc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qc(e))throw Error(i(40));return!!e._reactRootContainer&&(sc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[uo]=null}))})),!0)},t.unstable_batchedUpdates=ac,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},2834:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===k||e.$$typeof===v)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},5251:(e,t,n)=>{"use strict";var r=n(7294),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var k=y.prototype=new b;k.constructor=y,h(k,v.prototype),k.isPureReactComponent=!0;var w=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,o)&&!x.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var I=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,w(a)?(o="",null!=e&&(o=e.replace(I,"$&/")+"/"),P(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=P(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},M={transition:null},R={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!x.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},6826:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var a=function(e){return e.replace(r,i)};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a},6308:(e,t,n)=>{var r,o,i;o=[],void 0===(i="function"==typeof(r=function(){"use strict";var e,t,r,o,i="undefined"!=typeof window?window:null!=typeof n.g?n.g:this||{},a=i.cancelRequestAnimationFrame&&i.requestAnimationFrame||setTimeout,s=i.cancelRequestAnimationFrame||clearTimeout,l=[],c=0,u=!1,d=7,f=35,p=125,m=0,h=0,g=0,v={get didTimeout(){return!1},timeRemaining:function(){var e=d-(Date.now()-h);return e<0?0:e}},b=y((function(){d=22,p=66,f=0}));function y(e){var t,n,r=99,o=function(){var i=Date.now()-n;i<r?t=setTimeout(o,r-i):(t=null,e())};return function(){n=Date.now(),t||(t=setTimeout(o,r))}}function k(){u&&(o&&s(o),r&&clearTimeout(r),u=!1)}function w(){125!=p&&(d=7,p=125,f=35,u&&(k(),x())),b()}function _(){o=null,r=setTimeout(S,0)}function E(){r=null,a(_)}function x(){u||(t=p-(Date.now()-h),e=Date.now(),u=!0,f&&t<f&&(t=f),t>9?r=setTimeout(E,t):(t=0,E()))}function S(){var n,o,i,a=d>9?9:1;if(h=Date.now(),u=!1,r=null,c>2||h-t-50<e)for(o=0,i=l.length;o<i&&v.timeRemaining()>a;o++)n=l.shift(),g++,n&&n(v);l.length?x():c=0}function C(e){return m++,l.push(e),x(),m}function I(e){var t=e-1-g;l[t]&&(l[t]=null)}if(i.requestIdleCallback&&i.cancelIdleCallback)try{i.requestIdleCallback((function(){}),{timeout:0})}catch(e){!function(e){var t,n;if(i.requestIdleCallback=function(t,n){return n&&"number"==typeof n.timeout?e(t,n.timeout):e(t)},i.IdleCallbackDeadline&&(t=IdleCallbackDeadline.prototype)){if(!(n=Object.getOwnPropertyDescriptor(t,"timeRemaining"))||!n.configurable||!n.get)return;Object.defineProperty(t,"timeRemaining",{value:function(){return n.get.call(this)},enumerable:!0,configurable:!0})}}(i.requestIdleCallback)}else i.requestIdleCallback=C,i.cancelIdleCallback=I,i.document&&document.addEventListener&&(i.addEventListener("scroll",w,!0),i.addEventListener("resize",w),document.addEventListener("focus",w,!0),document.addEventListener("mouseover",w,!0),["click","keypress","touchstart","mousedown"].forEach((function(e){document.addEventListener(e,w,{capture:!0,passive:!0})})),i.MutationObserver&&new MutationObserver(w).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));return{request:C,cancel:I}})?r.apply(t,o):r)||(e.exports=i)},3859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.race=t.join=t.fork=t.promise=void 0;var r=a(n(7333)),o=n(3467),i=a(n(701));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.promise=function(e,t,n,o,i){return!!r.default.promise(e)&&(e.then(t,i),!0)},l=new Map,c=t.fork=function(e,t,n){if(!r.default.fork(e))return!1;var a=Symbol("fork"),s=(0,i.default)();l.set(a,s),n(e.iterator.apply(null,e.args),(function(e){return s.dispatch(e)}),(function(e){return s.dispatch((0,o.error)(e))}));var c=s.subscribe((function(){c(),l.delete(a)}));return t(a),!0},u=t.join=function(e,t,n,o,i){if(!r.default.join(e))return!1;var a,s=l.get(e.task);return s?a=s.subscribe((function(e){a(),t(e)})):i("join error : task not found"),!0},d=t.race=function(e,t,n,o,i){if(!r.default.race(e))return!1;var a=!1,s=function(e,n,r){a||(a=!0,e[n]=r,t(e))},l=function(e){a||i(e)};return r.default.array(e.competitors)?function(){var t=e.competitors.map((function(){return!1}));e.competitors.forEach((function(e,r){n(e,(function(e){return s(t,r,e)}),l)}))}():function(){var t=Object.keys(e.competitors).reduce((function(e,t){return e[t]=!1,e}),{});Object.keys(e.competitors).forEach((function(r){n(e.competitors[r],(function(e){return s(t,r,e)}),l)}))}(),!0};t.default=[s,c,u,d,function(e,t){if(!r.default.subscribe(e))return!1;if(!r.default.channel(e.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var n=e.channel.subscribe((function(e){n&&n(),t(e)}));return!0}]},8016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.array=t.object=t.error=t.any=void 0;var r,o=n(7333),i=(r=o)&&r.__esModule?r:{default:r};var a=t.any=function(e,t,n,r){return r(e),!0},s=t.error=function(e,t,n,r,o){return!!i.default.error(e)&&(o(e.error),!0)},l=t.object=function(e,t,n,r,o){if(!i.default.all(e)||!i.default.obj(e.value))return!1;var a={},s=Object.keys(e.value),l=0,c=!1;return s.map((function(t){n(e.value[t],(function(e){return function(e,t){c||(a[e]=t,++l===s.length&&r(a))}(t,e)}),(function(e){return function(e,t){c||(c=!0,o(t))}(0,e)}))})),!0},c=t.array=function(e,t,n,r,o){if(!i.default.all(e)||!i.default.array(e.value))return!1;var a=[],s=0,l=!1;return e.value.map((function(t,i){n(t,(function(t){return function(t,n){l||(a[t]=n,++s===e.value.length&&r(a))}(i,t)}),(function(e){return function(e,t){l||(l=!0,o(t))}(0,e)}))})),!0},u=t.iterator=function(e,t,n,r,o){return!!i.default.iterator(e)&&(n(e,t,o),!0)};t.default=[s,u,c,l,a]},1850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cps=t.call=void 0;var r,o=n(7333),i=(r=o)&&r.__esModule?r:{default:r};var a=t.call=function(e,t,n,r,o){if(!i.default.call(e))return!1;try{t(e.func.apply(e.context,e.args))}catch(e){o(e)}return!0},s=t.cps=function(e,t,n,r,o){var a;return!!i.default.cps(e)&&((a=e.func).call.apply(a,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.args),[function(e,n){e?o(e):t(n)}])),!0)};t.default=[a,s]},8909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(8016)),o=i(n(7333));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=[].concat(a(arguments.length<=0||void 0===arguments[0]?[]:arguments[0]),a(r.default));return function t(n){var r,i,a,s=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],l=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],c=o.default.iterator(n)?n:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n;case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))();r=c,i=function(e){return function(t){try{var n=e?r.throw(t):r.next(t),o=n.value;if(n.done)return s(o);a(o)}catch(e){return l(e)}}},a=function n(r){e.some((function(e){return e(r,n,t,i(!1),i(!0))}))},i(!1)()}}},4320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapControls=t.asyncControls=t.create=void 0;var r=n(3467);Object.keys(r).forEach((function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=s(n(8909)),i=s(n(3859)),a=s(n(1850));function s(e){return e&&e.__esModule?e:{default:e}}t.create=o.default,t.asyncControls=i.default,t.wrapControls=a.default},701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(){var e=[];return{subscribe:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},dispatch:function(t){e.slice().forEach((function(e){return e(t)}))}}}},3467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createChannel=t.subscribe=t.cps=t.apply=t.call=t.invoke=t.delay=t.race=t.join=t.fork=t.error=t.all=void 0;var r,o=n(1309),i=(r=o)&&r.__esModule?r:{default:r};t.all=function(e){return{type:i.default.all,value:e}},t.error=function(e){return{type:i.default.error,error:e}},t.fork=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:i.default.fork,iterator:e,args:n}},t.join=function(e){return{type:i.default.join,task:e}},t.race=function(e){return{type:i.default.race,competitors:e}},t.delay=function(e){return new Promise((function(t){setTimeout((function(){return t(!0)}),e)}))},t.invoke=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:i.default.call,func:e,context:null,args:n}},t.call=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:i.default.call,func:e,context:t,args:r}},t.apply=function(e,t,n){return{type:i.default.call,func:e,context:t,args:n}},t.cps=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:i.default.cps,func:e,args:n}},t.subscribe=function(e){return{type:i.default.subscribe,channel:e}},t.createChannel=function(e){var t=[];return e((function(e){return t.forEach((function(t){return t(e)}))})),{subscribe:function(e){return t.push(e),function(){return t.splice(t.indexOf(e),1)}}}}},7333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(1309),a=(r=i)&&r.__esModule?r:{default:r};var s={obj:function(e){return"object"===(void 0===e?"undefined":o(e))&&!!e},all:function(e){return s.obj(e)&&e.type===a.default.all},error:function(e){return s.obj(e)&&e.type===a.default.error},array:Array.isArray,func:function(e){return"function"==typeof e},promise:function(e){return e&&s.func(e.then)},iterator:function(e){return e&&s.func(e.next)&&s.func(e.throw)},fork:function(e){return s.obj(e)&&e.type===a.default.fork},join:function(e){return s.obj(e)&&e.type===a.default.join},race:function(e){return s.obj(e)&&e.type===a.default.race},call:function(e){return s.obj(e)&&e.type===a.default.call},cps:function(e){return s.obj(e)&&e.type===a.default.cps},subscribe:function(e){return s.obj(e)&&e.type===a.default.subscribe},channel:function(e){return s.obj(e)&&s.func(e.subscribe)}};t.default=s},1309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};t.default=n},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,m=!1,h=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,k(e),!h)if(null!==r(c))h=!0,M(_);else{var t=r(u);null!==t&&R(w,t.startTime-e)}}function _(e,n){h=!1,g&&(g=!1,b(C),C=-1),m=!0;var i=p;try{for(k(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!P());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(c)&&o(c),k(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&R(w,d.startTime-n),l=!1}return l}finally{f=null,p=i,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,x=!1,S=null,C=-1,I=5,T=-1;function P(){return!(t.unstable_now()-T<I)}function N(){if(null!==S){var e=t.unstable_now();T=e;var n=!0;try{n=S(!0,e)}finally{n?E():(x=!1,S=null)}}else x=!1}if("function"==typeof y)E=function(){y(N)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,A=O.port2;O.port1.onmessage=N,E=function(){A.postMessage(null)}}else E=function(){v(N,0)};function M(e){S=e,x||(x=!0,E())}function R(e,n){C=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,M(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(b(C),C=-1):g=!0,R(w,i-a))):(e.sortIndex=s,n(c,e),h||m||(h=!0,M(_))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},3787:function(e,t,n){var r;(function(){function o(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var i={},a={},s={},l=o(!0),c="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:o(!0),allOn:function(){"use strict";var e=o(!0),t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=!0);return t}()};function d(e,t){"use strict";var n=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:!0,error:""};i.helper.isArray(e)||(e=[e]);for(var o=0;o<e.length;++o){var a=n+" sub-extension "+o+": ",s=e[o];if("object"!=typeof s)return r.valid=!1,r.error=a+"must be an object, but "+typeof s+" given",r;if(!i.helper.isString(s.type))return r.valid=!1,r.error=a+'property "type" must be a string, but '+typeof s.type+" given",r;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return r.valid=!1,r.error=a+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',r;if("listener"===l){if(i.helper.isUndefined(s.listeners))return r.valid=!1,r.error=a+'. Extensions of type "listener" must have a property called "listeners"',r}else if(i.helper.isUndefined(s.filter)&&i.helper.isUndefined(s.regex))return r.valid=!1,r.error=a+l+' extensions must define either a "regex" property or a "filter" method',r;if(s.listeners){if("object"!=typeof s.listeners)return r.valid=!1,r.error=a+'"listeners" property must be an object but '+typeof s.listeners+" given",r;for(var c in s.listeners)if(s.listeners.hasOwnProperty(c)&&"function"!=typeof s.listeners[c])return r.valid=!1,r.error=a+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+c+" must be a function but "+typeof s.listeners[c]+" given",r}if(s.filter){if("function"!=typeof s.filter)return r.valid=!1,r.error=a+'"filter" must be a function, but '+typeof s.filter+" given",r}else if(s.regex){if(i.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return r.valid=!1,r.error=a+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",r;if(i.helper.isUndefined(s.replace))return r.valid=!1,r.error=a+'"regex" extensions must implement a replace string or function',r}}return r}function f(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}i.helper={},i.extensions={},i.setOption=function(e,t){"use strict";return l[e]=t,this},i.getOption=function(e){"use strict";return l[e]},i.getOptions=function(){"use strict";return l},i.resetOptions=function(){"use strict";l=o(!0)},i.setFlavor=function(e){"use strict";if(!u.hasOwnProperty(e))throw Error(e+" flavor was not found");i.resetOptions();var t=u[e];for(var n in c=e,t)t.hasOwnProperty(n)&&(l[n]=t[n])},i.getFlavor=function(){"use strict";return c},i.getFlavorOptions=function(e){"use strict";if(u.hasOwnProperty(e))return u[e]},i.getDefaultOptions=function(e){"use strict";return o(e)},i.subParser=function(e,t){"use strict";if(i.helper.isString(e)){if(void 0===t){if(a.hasOwnProperty(e))return a[e];throw Error("SubParser named "+e+" not registered!")}a[e]=t}},i.extension=function(e,t){"use strict";if(!i.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=i.helper.stdExtName(e),i.helper.isUndefined(t)){if(!s.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return s[e]}"function"==typeof t&&(t=t()),i.helper.isArray(t)||(t=[t]);var n=d(t,e);if(!n.valid)throw Error(n.error);s[e]=t},i.getAllExtensions=function(){"use strict";return s},i.removeExtension=function(e){"use strict";delete s[e]},i.resetExtensions=function(){"use strict";s={}},i.validateExtension=function(e){"use strict";var t=d(e,null);return!!t.valid||(console.warn(t.error),!1)},i.hasOwnProperty("helper")||(i.helper={}),i.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},i.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},i.helper.isArray=function(e){"use strict";return Array.isArray(e)},i.helper.isUndefined=function(e){"use strict";return void 0===e},i.helper.forEach=function(e,t){"use strict";if(i.helper.isUndefined(e))throw new Error("obj param is required");if(i.helper.isUndefined(t))throw new Error("callback param is required");if(!i.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(i.helper.isArray(e))for(var n=0;n<e.length;n++)t(e[n],n,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}},i.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},i.helper.escapeCharactersCallback=f,i.helper.escapeCharacters=function(e,t,n){"use strict";var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var o=new RegExp(r,"g");return e=e.replace(o,f)},i.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var p=function(e,t,n,r){"use strict";var o,i,a,s,l,c=r||"",u=c.indexOf("g")>-1,d=new RegExp(t+"|"+n,"g"+c.replace(/g/g,"")),f=new RegExp(t,c.replace(/g/g,"")),p=[];do{for(o=0;a=d.exec(e);)if(f.test(a[0]))o++||(s=(i=d.lastIndex)-a[0].length);else if(o&&! --o){l=a.index+a[0].length;var m={left:{start:s,end:i},match:{start:i,end:a.index},right:{start:a.index,end:l},wholeMatch:{start:s,end:l}};if(p.push(m),!u)return p}}while(o&&(d.lastIndex=i));return p};i.helper.matchRecursiveRegExp=function(e,t,n,r){"use strict";for(var o=p(e,t,n,r),i=[],a=0;a<o.length;++a)i.push([e.slice(o[a].wholeMatch.start,o[a].wholeMatch.end),e.slice(o[a].match.start,o[a].match.end),e.slice(o[a].left.start,o[a].left.end),e.slice(o[a].right.start,o[a].right.end)]);return i},i.helper.replaceRecursiveRegExp=function(e,t,n,r,o){"use strict";if(!i.helper.isFunction(t)){var a=t;t=function(){return a}}var s=p(e,n,r,o),l=e,c=s.length;if(c>0){var u=[];0!==s[0].wholeMatch.start&&u.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d<c;++d)u.push(t(e.slice(s[d].wholeMatch.start,s[d].wholeMatch.end),e.slice(s[d].match.start,s[d].match.end),e.slice(s[d].left.start,s[d].left.end),e.slice(s[d].right.start,s[d].right.end))),d<c-1&&u.push(e.slice(s[d].wholeMatch.end,s[d+1].wholeMatch.start));s[c-1].wholeMatch.end<e.length&&u.push(e.slice(s[c-1].wholeMatch.end)),l=u.join("")}return l},i.helper.regexIndexOf=function(e,t,n){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var r=e.substring(n||0).search(t);return r>=0?r+(n||0):r},i.helper.splitAtIndex=function(e,t){"use strict";if(!i.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},i.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}))},i.helper.padEnd=function(e,t,n){"use strict";return t>>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),i.helper.regexes={asteriskDashAndColon:/([*_:~])/g},i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},i.Converter=function(e){"use strict";var t={},n=[],r=[],o={},a=c,f={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,i.helper.isString(e)){if(t=e=i.helper.stdExtName(e),i.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new i.Converter));i.helper.isArray(e)||(e=[e]);var o=d(e,t);if(!o.valid)throw Error(o.error);for(var a=0;a<e.length;++a)switch(e[a].type){case"lang":n.push(e[a]);break;case"output":r.push(e[a]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(i.extensions[e],e);if(i.helper.isUndefined(s[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=s[e]}"function"==typeof e&&(e=e()),i.helper.isArray(e)||(e=[e]);var o=d(e,t);if(!o.valid)throw Error(o.error);for(var a=0;a<e.length;++a){switch(e[a].type){case"lang":n.push(e[a]);break;case"output":r.push(e[a])}if(e[a].hasOwnProperty("listeners"))for(var l in e[a].listeners)e[a].listeners.hasOwnProperty(l)&&m(l,e[a].listeners[l])}}function m(e,t){if(!i.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");o.hasOwnProperty(e)||(o[e]=[]),o[e].push(t)}!function(){for(var n in e=e||{},l)l.hasOwnProperty(n)&&(t[n]=l[n]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.extensions&&i.helper.forEach(t.extensions,p)}(),this._dispatch=function(e,t,n,r){if(o.hasOwnProperty(e))for(var i=0;i<o[e].length;++i){var a=o[e][i](e,t,this,n,r);a&&void 0!==a&&(t=a)}return t},this.listen=function(e,t){return m(e,t),this},this.makeHtml=function(e){if(!e)return e;var o={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:n,outputModifiers:r,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=i.subParser("detab")(e,t,o)).replace(/^[ \t]+$/gm,""),i.helper.forEach(n,(function(n){e=i.subParser("runExtension")(n,e,t,o)})),e=i.subParser("metadata")(e,t,o),e=i.subParser("hashPreCodeTags")(e,t,o),e=i.subParser("githubCodeBlocks")(e,t,o),e=i.subParser("hashHTMLBlocks")(e,t,o),e=i.subParser("hashCodeTags")(e,t,o),e=i.subParser("stripLinkDefinitions")(e,t,o),e=i.subParser("blockGamut")(e,t,o),e=i.subParser("unhashHTMLSpans")(e,t,o),e=(e=(e=i.subParser("unescapeSpecialChars")(e,t,o)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=i.subParser("completeHTMLDocument")(e,t,o),i.helper.forEach(r,(function(n){e=i.subParser("runExtension")(n,e,t,o)})),f=o.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var n=t.createElement("div");n.innerHTML=e;var r={preList:function(e){for(var t=e.querySelectorAll("pre"),n=[],r=0;r<t.length;++r)if(1===t[r].childElementCount&&"code"===t[r].firstChild.tagName.toLowerCase()){var o=t[r].firstChild.innerHTML.trim(),a=t[r].firstChild.getAttribute("data-language")||"";if(""===a)for(var s=t[r].firstChild.className.split(" "),l=0;l<s.length;++l){var c=s[l].match(/^language-(.+)$/);if(null!==c){a=c[1];break}}o=i.helper.unescapeHTMLEntities(o),n.push(o),t[r].outerHTML='<precode language="'+a+'" precodenum="'+r.toString()+'"></precode>'}else n.push(t[r].innerHTML),t[r].innerHTML="",t[r].setAttribute("prenum",r.toString());return n}(n)};!function e(t){for(var n=0;n<t.childNodes.length;++n){var r=t.childNodes[n];3===r.nodeType?/\S/.test(r.nodeValue)?(r.nodeValue=r.nodeValue.split("\n").join(" "),r.nodeValue=r.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(r),--n):1===r.nodeType&&e(r)}}(n);for(var o=n.childNodes,a="",s=0;s<o.length;s++)a+=i.subParser("makeMarkdown.node")(o[s],r);return a},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){p(e,t=t||null)},this.useExtension=function(e){p(e)},this.setFlavor=function(e){if(!u.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=u[e];for(var r in a=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return a},this.removeExtension=function(e){i.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var o=e[t],a=0;a<n.length;++a)n[a]===o&&n[a].splice(a,1);for(;0<r.length;++a)r[0]===o&&r[0].splice(a,1)}},this.getAllExtensions=function(){return{language:n,output:r}},this.getMetadata=function(e){return e?f.raw:f.parsed},this.getMetadataFormat=function(){return f.format},this._setMetadataPair=function(e,t){f.parsed[e]=t},this._setMetadataFormat=function(e){f.format=e},this._setMetadataRaw=function(e){f.raw=e}},i.subParser("anchors",(function(e,t,n){"use strict";var r=function(e,r,o,a,s,l,c){if(i.helper.isUndefined(c)&&(c=""),o=o.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(o||(o=r.toLowerCase().replace(/ ?\n/g," ")),a="#"+o,i.helper.isUndefined(n.gUrls[o]))return e;a=n.gUrls[o],i.helper.isUndefined(n.gTitles[o])||(c=n.gTitles[o])}var u='<a href="'+(a=a.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback))+'"';return""!==c&&null!==c&&(u+=' title="'+(c=(c=c.replace(/"/g,""")).replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(a)&&(u+=' rel="noopener noreferrer" target="¨E95Eblank"'),u+=">"+r+"</a>"};return e=(e=(e=(e=(e=n.converter._dispatch("anchors.before",e,t,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[([^\[\]]+)]()()()()()/g,r),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,n,r,o,a){if("\\"===r)return n+o;if(!i.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,a),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),n+'<a href="'+s+'"'+l+">"+o+"</a>"}))),e=n.converter._dispatch("anchors.after",e,t,n)}));var m=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,v=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,b=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,y=function(e){"use strict";return function(t,n,r,o,a,s,l){var c=r=r.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback),u="",d="",f=n||"",p=l||"";return/^www\./i.test(r)&&(r=r.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),f+'<a href="'+r+'"'+d+">"+c+"</a>"+u+p}},k=function(e,t){"use strict";return function(n,r,o){var a="mailto:";return r=r||"",o=i.subParser("unescapeSpecialChars")(o,e,t),e.encodeEmails?(a=i.helper.encodeEmailAddress(a+o),o=i.helper.encodeEmailAddress(o)):a+=o,r+'<a href="'+a+'">'+o+"</a>"}};i.subParser("autoLinks",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(g,y(t))).replace(b,k(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)})),i.subParser("simplifiedAutoLinks",(function(e,t,n){"use strict";return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(h,y(t)):e.replace(m,y(t))).replace(v,k(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e})),i.subParser("blockGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("blockGamut.before",e,t,n),e=i.subParser("blockQuotes")(e,t,n),e=i.subParser("headers")(e,t,n),e=i.subParser("horizontalRule")(e,t,n),e=i.subParser("lists")(e,t,n),e=i.subParser("codeBlocks")(e,t,n),e=i.subParser("tables")(e,t,n),e=i.subParser("hashHTMLBlocks")(e,t,n),e=i.subParser("paragraphs")(e,t,n),e=n.converter._dispatch("blockGamut.after",e,t,n)})),i.subParser("blockQuotes",(function(e,t,n){"use strict";e=n.converter._dispatch("blockQuotes.before",e,t,n),e+="\n\n";var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(r,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=i.subParser("githubCodeBlocks")(e,t,n),e=(e=(e=i.subParser("blockGamut")(e,t,n)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return n=(n=n.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),i.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,n)})),e=n.converter._dispatch("blockQuotes.after",e,t,n)})),i.subParser("codeBlocks",(function(e,t,n){"use strict";e=n.converter._dispatch("codeBlocks.before",e,t,n);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,r,o){var a=r,s=o,l="\n";return a=i.subParser("outdent")(a,t,n),a=i.subParser("encodeCode")(a,t,n),a=(a=(a=i.subParser("detab")(a,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),a="<pre><code>"+a+l+"</code></pre>",i.subParser("hashBlock")(a,t,n)+s}))).replace(/¨0/,""),e=n.converter._dispatch("codeBlocks.after",e,t,n)})),i.subParser("codeSpans",(function(e,t,n){"use strict";return void 0===(e=n.converter._dispatch("codeSpans.before",e,t,n))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,o,a){var s=a;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=r+"<code>"+(s=i.subParser("encodeCode")(s,t,n))+"</code>",s=i.subParser("hashHTMLSpans")(s,t,n)})),e=n.converter._dispatch("codeSpans.after",e,t,n)})),i.subParser("completeHTMLDocument",(function(e,t,n){"use strict";if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",o="<!DOCTYPE HTML>\n",i="",a='<meta charset="utf-8">\n',s="",l="";for(var c in void 0!==n.metadata.parsed.doctype&&(o="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(r=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==r||(a='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":i="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":a="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[c]+'"',l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n';break;default:l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n'}return e=o+"<html"+s+">\n<head>\n"+i+a+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)})),i.subParser("detab",(function(e,t,n){"use strict";return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,r=4-n.length%4,o=0;o<r;o++)n+=" ";return n}))).replace(/¨A/g," ")).replace(/¨B/g,""),e=n.converter._dispatch("detab.after",e,t,n)})),i.subParser("ellipsis",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"…"),e=n.converter._dispatch("ellipsis.after",e,t,n)})),i.subParser("emoji",(function(e,t,n){"use strict";if(!t.emoji)return e;return e=(e=n.converter._dispatch("emoji.before",e,t,n)).replace(/:([\S]+?):/g,(function(e,t){return i.helper.emojis.hasOwnProperty(t)?i.helper.emojis[t]:e})),e=n.converter._dispatch("emoji.after",e,t,n)})),i.subParser("encodeAmpsAndAngles",(function(e,t,n){"use strict";return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)})),i.subParser("encodeBackslashEscapes",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n)).replace(/\\(\\)/g,i.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,i.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n)})),i.subParser("encodeCode",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("encodeCode.before",e,t,n)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeCode.after",e,t,n)})),i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)})),e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n)})),i.subParser("githubCodeBlocks",(function(e,t,n){"use strict";return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,r,o,a){var s=t.omitExtraWLInCodeBlocks?"":"\n";return a=i.subParser("encodeCode")(a,t,n),a="<pre><code"+(o?' class="'+o+" language-"+o+'"':"")+">"+(a=(a=(a=i.subParser("detab")(a,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",a=i.subParser("hashBlock")(a,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"}))).replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e})),i.subParser("hashBlock",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)})),i.subParser("hashCodeTags",(function(e,t,n){"use strict";e=n.converter._dispatch("hashCodeTags.before",e,t,n);return e=i.helper.replaceRecursiveRegExp(e,(function(e,r,o,a){var s=o+i.subParser("encodeCode")(r,t,n)+a;return"¨C"+(n.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),e=n.converter._dispatch("hashCodeTags.after",e,t,n)})),i.subParser("hashElement",(function(e,t,n){"use strict";return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}})),i.subParser("hashHTMLBlocks",(function(e,t,n){"use strict";e=n.converter._dispatch("hashHTMLBlocks.before",e,t,n);var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],o=function(e,t,r,o){var i=e;return-1!==r.search(/\bmarkdown\b/)&&(i=r+n.converter.makeHtml(t)+o),"\n\n¨K"+(n.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var a=0;a<r.length;++a)for(var s,l=new RegExp("^ {0,3}(<"+r[a]+"\\b[^>]*>)","im"),c="<"+r[a]+"\\b[^>]*>",u="</"+r[a]+">";-1!==(s=i.helper.regexIndexOf(e,l));){var d=i.helper.splitAtIndex(e,s),f=i.helper.replaceRecursiveRegExp(d[1],o,c,u,"im");if(f===d[1])break;e=d[0].concat(f)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n)),e=(e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n)),e=n.converter._dispatch("hashHTMLBlocks.after",e,t,n)})),i.subParser("hashHTMLSpans",(function(e,t,n){"use strict";function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,(function(e){return r(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<[^>]+?>/gi,(function(e){return r(e)})),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)})),i.subParser("unhashHTMLSpans",(function(e,t,n){"use strict";e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r<n.gHtmlSpans.length;++r){for(var o=n.gHtmlSpans[r],i=0;/¨C(\d+)C/.test(o);){var a=RegExp.$1;if(o=o.replace("¨C"+a+"C",n.gHtmlSpans[a]),10===i){console.error("maximum nesting of 10 spans reached!!!");break}++i}e=e.replace("¨C"+r+"C",o)}return e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n)})),i.subParser("hashPreCodeTags",(function(e,t,n){"use strict";e=n.converter._dispatch("hashPreCodeTags.before",e,t,n);return e=i.helper.replaceRecursiveRegExp(e,(function(e,r,o,a){var s=o+i.subParser("encodeCode")(r,t,n)+a;return"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=n.converter._dispatch("hashPreCodeTags.after",e,t,n)})),i.subParser("headers",(function(e,t,n){"use strict";e=n.converter._dispatch("headers.before",e,t,n);var r=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),o=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,a=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(o,(function(e,o){var a=i.subParser("spanGamut")(o,t,n),s=t.noHeaderId?"":' id="'+l(o)+'"',c="<h"+r+s+">"+a+"</h"+r+">";return i.subParser("hashBlock")(c,t,n)}))).replace(a,(function(e,o){var a=i.subParser("spanGamut")(o,t,n),s=t.noHeaderId?"":' id="'+l(o)+'"',c=r+1,u="<h"+c+s+">"+a+"</h"+c+">";return i.subParser("hashBlock")(u,t,n)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var r,o;if(t.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return r=e,o=i.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(r=o+r),r=t.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?r.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():r.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(r=o+r),n.hashLinkCounts[r]?r=r+"-"+n.hashLinkCounts[r]++:n.hashLinkCounts[r]=1,r}return e=e.replace(s,(function(e,o,a){var s=a;t.customizedHeaderId&&(s=a.replace(/\s?\{([^{]+?)}\s*$/,""));var c=i.subParser("spanGamut")(s,t,n),u=t.noHeaderId?"":' id="'+l(a)+'"',d=r-1+o.length,f="<h"+d+u+">"+c+"</h"+d+">";return i.subParser("hashBlock")(f,t,n)})),e=n.converter._dispatch("headers.after",e,t,n)})),i.subParser("horizontalRule",(function(e,t,n){"use strict";e=n.converter._dispatch("horizontalRule.before",e,t,n);var r=i.subParser("hashBlock")("<hr />",t,n);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r),e=n.converter._dispatch("horizontalRule.after",e,t,n)})),i.subParser("images",(function(e,t,n){"use strict";function r(e,t,r,o,a,s,l,c){var u=n.gUrls,d=n.gTitles,f=n.gDimensions;if(r=r.toLowerCase(),c||(c=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)o="";else if(""===o||null===o){if(""!==r&&null!==r||(r=t.toLowerCase().replace(/ ?\n/g," ")),o="#"+r,i.helper.isUndefined(u[r]))return e;o=u[r],i.helper.isUndefined(d[r])||(c=d[r]),i.helper.isUndefined(f[r])||(a=f[r].width,s=f[r].height)}t=t.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var p='<img src="'+(o=o.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback))+'" alt="'+t+'"';return c&&i.helper.isString(c)&&(p+=' title="'+(c=c.replace(/"/g,""").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback))+'"'),a&&s&&(p+=' width="'+(a="*"===a?"auto":a)+'"',p+=' height="'+(s="*"===s?"auto":s)+'"'),p+=" />"}return e=(e=(e=(e=(e=(e=n.converter._dispatch("images.before",e,t,n)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,n,o,i,a,s,l){return r(e,t,n,o=o.replace(/\s/g,""),i,a,s,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,r)).replace(/!\[([^\[\]]+)]()()()()()/g,r),e=n.converter._dispatch("images.after",e,t,n)})),i.subParser("italicsAndBold",(function(e,t,n){"use strict";function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return r(t,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e})),e=n.converter._dispatch("italicsAndBold.after",e,t,n)})),i.subParser("lists",(function(e,t,n){"use strict";function r(e,r){n.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(o,(function(e,r,o,s,l,c,u){u=u&&""!==u.trim();var d=i.subParser("outdent")(l,t,n),f="";return c&&t.tasklists&&(f=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return u&&(e+=" checked"),e+=">"}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),r||d.search(/\n{2,}/)>-1?(d=i.subParser("githubCodeBlocks")(d,t,n),d=i.subParser("blockGamut")(d,t,n)):(d=(d=i.subParser("lists")(d,t,n)).replace(/\n$/,""),d=(d=i.subParser("hashHTMLBlocks")(d,t,n)).replace(/\n\n+/g,"\n\n"),d=a?i.subParser("paragraphs")(d,t,n):i.subParser("spanGamut")(d,t,n)),d="<li"+f+">"+(d=d.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),n.gListLevel--,r&&(e=e.replace(/\s+$/,"")),e}function o(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(e,n,i){var a=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?a:s,c="";if(-1!==e.search(l))!function t(u){var d=u.search(l),f=o(e,n);-1!==d?(c+="\n\n<"+n+f+">\n"+r(u.slice(0,d),!!i)+"</"+n+">\n",l="ul"===(n="ul"===n?"ol":"ul")?a:s,t(u.slice(d))):c+="\n\n<"+n+f+">\n"+r(u,!!i)+"</"+n+">\n"}(e);else{var u=o(e,n);c="\n\n<"+n+u+">\n"+r(e,!!i)+"</"+n+">\n"}return c}return e=n.converter._dispatch("lists.before",e,t,n),e+="¨0",e=(e=n.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){return a(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){return a(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=n.converter._dispatch("lists.after",e,t,n)})),i.subParser("metadata",(function(e,t,n){"use strict";if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=(e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return r(n),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,o){return t&&(n.metadata.format=t),r(o),"¨M"}))).replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n)})),i.subParser("outdent",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n)})),i.subParser("paragraphs",(function(e,t,n){"use strict";for(var r=(e=(e=(e=n.converter._dispatch("paragraphs.before",e,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),o=[],a=r.length,s=0;s<a;s++){var l=r[s];l.search(/¨(K|G)(\d+)\1/g)>=0?o.push(l):l.search(/\S/)>=0&&(l=(l=i.subParser("spanGamut")(l,t,n)).replace(/^([ \t]*)/g,"<p>"),l+="</p>",o.push(l))}for(a=o.length,s=0;s<a;s++){for(var c="",u=o[s],d=!1;/¨(K|G)(\d+)\1/.test(u);){var f=RegExp.$1,p=RegExp.$2;c=(c="K"===f?n.gHtmlBlocks[p]:d?i.subParser("encodeCode")(n.ghCodeBlocks[p].text,t,n):n.ghCodeBlocks[p].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,c),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)&&(d=!0)}o[s]=u}return e=(e=(e=o.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",e,t,n)})),i.subParser("runExtension",(function(e,t,n,r){"use strict";if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var o=e.regex;o instanceof RegExp||(o=new RegExp(o,"g")),t=t.replace(o,e.replace)}return t})),i.subParser("spanGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("spanGamut.before",e,t,n),e=i.subParser("codeSpans")(e,t,n),e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n),e=i.subParser("encodeBackslashEscapes")(e,t,n),e=i.subParser("images")(e,t,n),e=i.subParser("anchors")(e,t,n),e=i.subParser("autoLinks")(e,t,n),e=i.subParser("simplifiedAutoLinks")(e,t,n),e=i.subParser("emoji")(e,t,n),e=i.subParser("underline")(e,t,n),e=i.subParser("italicsAndBold")(e,t,n),e=i.subParser("strikethrough")(e,t,n),e=i.subParser("ellipsis")(e,t,n),e=i.subParser("hashHTMLSpans")(e,t,n),e=i.subParser("encodeAmpsAndAngles")(e,t,n),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=n.converter._dispatch("spanGamut.after",e,t,n)})),i.subParser("strikethrough",(function(e,t,n){"use strict";return t.strikethrough&&(e=(e=n.converter._dispatch("strikethrough.before",e,t,n)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,r){return function(e){return t.simplifiedAutoLink&&(e=i.subParser("simplifiedAutoLinks")(e,t,n)),"<del>"+e+"</del>"}(r)})),e=n.converter._dispatch("strikethrough.after",e,t,n)),e})),i.subParser("stripLinkDefinitions",(function(e,t,n){"use strict";var r=function(e,r,o,a,s,l,c){return r=r.toLowerCase(),o.match(/^data:.+?\/.+?;base64,/)?n.gUrls[r]=o.replace(/\s/g,""):n.gUrls[r]=i.subParser("encodeAmpsAndAngles")(o,t,n),l?l+c:(c&&(n.gTitles[r]=c.replace(/"|'/g,""")),t.parseImgDimensions&&a&&s&&(n.gDimensions[r]={width:a,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,r)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,r)).replace(/¨0/,"")})),i.subParser("tables",(function(e,t,n){"use strict";if(!t.tables)return e;function r(e,r){return"<td"+r+">"+i.subParser("spanGamut")(e,t,n)+"</td>\n"}function o(e){var o,a=e.split("\n");for(o=0;o<a.length;++o)/^ {0,3}\|/.test(a[o])&&(a[o]=a[o].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(a[o])&&(a[o]=a[o].replace(/\|[ \t]*$/,"")),a[o]=i.subParser("codeSpans")(a[o],t,n);var s,l,c,u,d=a[0].split("|").map((function(e){return e.trim()})),f=a[1].split("|").map((function(e){return e.trim()})),p=[],m=[],h=[],g=[];for(a.shift(),a.shift(),o=0;o<a.length;++o)""!==a[o].trim()&&p.push(a[o].split("|").map((function(e){return e.trim()})));if(d.length<f.length)return e;for(o=0;o<f.length;++o)h.push((s=f[o],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(o=0;o<d.length;++o)i.helper.isUndefined(h[o])&&(h[o]=""),m.push((l=d[o],c=h[o],u=void 0,u="",l=l.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(u=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+u+c+">"+(l=i.subParser("spanGamut")(l,t,n))+"</th>\n"));for(o=0;o<p.length;++o){for(var v=[],b=0;b<m.length;++b)i.helper.isUndefined(p[o][b]),v.push(r(p[o][b],h[b]));g.push(v)}return function(e,t){for(var n="<table>\n<thead>\n<tr>\n",r=e.length,o=0;o<r;++o)n+=e[o];for(n+="</tr>\n</thead>\n<tbody>\n",o=0;o<t.length;++o){n+="<tr>\n";for(var i=0;i<r;++i)n+=t[o][i];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(m,g)}return e=(e=(e=(e=n.converter._dispatch("tables.before",e,t,n)).replace(/\\(\|)/g,i.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),e=n.converter._dispatch("tables.after",e,t,n)})),i.subParser("underline",(function(e,t,n){"use strict";return t.underline?(e=n.converter._dispatch("underline.before",e,t,n),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,i.helper.escapeCharactersCallback),e=n.converter._dispatch("underline.after",e,t,n)):e})),i.subParser("unescapeSpecialChars",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)})),i.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var r=e.childNodes,o=r.length,a=0;a<o;++a){var s=i.subParser("makeMarkdown.node")(r[a],t);""!==s&&(n+=s)}return n="> "+(n=n.trim()).split("\n").join("\n> ")})),i.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),i.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),i.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="*";for(var r=e.childNodes,o=r.length,a=0;a<o;++a)n+=i.subParser("makeMarkdown.node")(r[a],t);n+="*"}return n})),i.subParser("makeMarkdown.header",(function(e,t,n){"use strict";var r=new Array(n+1).join("#"),o="";if(e.hasChildNodes()){o=r+" ";for(var a=e.childNodes,s=a.length,l=0;l<s;++l)o+=i.subParser("makeMarkdown.node")(a[l],t)}return o})),i.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),i.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),i.subParser("makeMarkdown.links",(function(e,t){"use strict";var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){var r=e.childNodes,o=r.length;n="[";for(var a=0;a<o;++a)n+=i.subParser("makeMarkdown.node")(r[a],t);n+="](",n+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(n+=' "'+e.getAttribute("title")+'"'),n+=")"}return n})),i.subParser("makeMarkdown.list",(function(e,t,n){"use strict";var r="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,a=o.length,s=e.getAttribute("start")||1,l=0;l<a;++l)if(void 0!==o[l].tagName&&"li"===o[l].tagName.toLowerCase()){r+=("ol"===n?s.toString()+". ":"- ")+i.subParser("makeMarkdown.listItem")(o[l],t),++s}return(r+="\n\x3c!-- --\x3e\n").trim()})),i.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var n="",r=e.childNodes,o=r.length,a=0;a<o;++a)n+=i.subParser("makeMarkdown.node")(r[a],t);return/\n$/.test(n)?n=n.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):n+="\n",n})),i.subParser("makeMarkdown.node",(function(e,t,n){"use strict";n=n||!1;var r="";if(3===e.nodeType)return i.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":n||(r=i.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":n||(r=i.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":n||(r=i.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":n||(r=i.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":n||(r=i.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":n||(r=i.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":n||(r=i.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":n||(r=i.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":n||(r=i.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":n||(r=i.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":n||(r=i.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":n||(r=i.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":n||(r=i.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":n||(r=i.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":r=i.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":r=i.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":r=i.subParser("makeMarkdown.strong")(e,t);break;case"del":r=i.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":r=i.subParser("makeMarkdown.links")(e,t);break;case"img":r=i.subParser("makeMarkdown.image")(e,t);break;default:r=e.outerHTML+"\n\n"}return r})),i.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var r=e.childNodes,o=r.length,a=0;a<o;++a)n+=i.subParser("makeMarkdown.node")(r[a],t);return n=n.trim()})),i.subParser("makeMarkdown.pre",(function(e,t){"use strict";var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"})),i.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="~~";for(var r=e.childNodes,o=r.length,a=0;a<o;++a)n+=i.subParser("makeMarkdown.node")(r[a],t);n+="~~"}return n})),i.subParser("makeMarkdown.strong",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="**";for(var r=e.childNodes,o=r.length,a=0;a<o;++a)n+=i.subParser("makeMarkdown.node")(r[a],t);n+="**"}return n})),i.subParser("makeMarkdown.table",(function(e,t){"use strict";var n,r,o="",a=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(n=0;n<s.length;++n){var c=i.subParser("makeMarkdown.tableCell")(s[n],t),u="---";if(s[n].hasAttribute("style"))switch(s[n].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:"}a[0][n]=c.trim(),a[1][n]=u}for(n=0;n<l.length;++n){var d=a.push([])-1,f=l[n].getElementsByTagName("td");for(r=0;r<s.length;++r){var p=" ";void 0!==f[r]&&(p=i.subParser("makeMarkdown.tableCell")(f[r],t)),a[d].push(p)}}var m=3;for(n=0;n<a.length;++n)for(r=0;r<a[n].length;++r){var h=a[n][r].length;h>m&&(m=h)}for(n=0;n<a.length;++n){for(r=0;r<a[n].length;++r)1===n?":"===a[n][r].slice(-1)?a[n][r]=i.helper.padEnd(a[n][r].slice(-1),m-1,"-")+":":a[n][r]=i.helper.padEnd(a[n][r],m,"-"):a[n][r]=i.helper.padEnd(a[n][r],m);o+="| "+a[n].join(" | ")+" |\n"}return o.trim()})),i.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var n="";if(!e.hasChildNodes())return"";for(var r=e.childNodes,o=r.length,a=0;a<o;++a)n+=i.subParser("makeMarkdown.node")(r[a],t,!0);return n.trim()})),i.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=i.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(r=function(){"use strict";return i}.call(t,n,t,e))||(e.exports=r)}).call(this)},8975:(e,t,n)=>{var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,a,s,l,c,u,d,f,p=1,m=e.length,h="";for(r=0;r<m;r++)if("string"==typeof e[r])h+=e[r];else if("object"==typeof e[r]){if((s=e[r]).keys)for(n=t[p],a=0;a<s.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));n=n[s.keys[a]]}else n=s.param_no?t[s.param_no]:t[p++];if(o.not_type.test(s.type)&&o.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(s.type)&&(d=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s.type)?h+=n:(!o.number.test(s.type)||d&&!s.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(f+n).length,l=s.width&&u>0?c.repeat(u):"",h+=s.align?f+n+l:"0"===c?f+l+n:l+f+n)}return h}(function(e){if(s[e])return s[e];var t,n=e,r=[],i=0;for(;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],l=t[2],c=[];if(null===(c=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=o.key_access.exec(l)))a.push(c[1]);else{if(null===(c=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(c[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}var s=Object.create(null);t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},3379:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],l=t.base?i[0]+t.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:g(f,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,h=0;function g(e,t){var n,r,o;if(t.singleton){var i=h++;n=m||(m=c(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=c(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},3692:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)}var o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},i=Object.prototype.hasOwnProperty||function(e,t){return t in e};function a(e){if("object"==typeof e&&null!==e){var i;if(n(e))i=[];else if("[object Date]"===t(e))i=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))i=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))i={message:e.message};else if(function(e){return"[object Boolean]"===t(e)}(e)||function(e){return"[object Number]"===t(e)}(e)||function(e){return"[object String]"===t(e)}(e))i=Object(e);else if(Object.create&&Object.getPrototypeOf)i=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)i={};else{var a=e.constructor&&e.constructor.prototype||e.__proto__||{},s=function(){};s.prototype=a,i=new s}return r(o(e),(function(t){i[t]=e[t]})),i}return e}function s(e,t,s){var l=[],c=[],u=!0;return function e(d){var f=s?a(d):d,p={},m=!0,h={node:f,node_:d,path:[].concat(l),parent:c[c.length-1],parents:c,key:l[l.length-1],isRoot:0===l.length,level:l.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(m=!1)},delete:function(e){delete h.parent.node[h.key],e&&(m=!1)},remove:function(e){n(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(m=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return h;function g(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=o(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<c.length;e++)if(c[e].node_===d){h.circular=c[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}g();var v=t.call(h,h.node);return void 0!==v&&h.update&&h.update(v),p.before&&p.before.call(h,h.node),m?("object"!=typeof h.node||null===h.node||h.circular||(c.push(h),g(),r(h.keys,(function(t,n){l.push(t),p.pre&&p.pre.call(h,h.node[t],t);var r=e(h.node[t]);s&&i.call(h.node,t)&&(h.node[t]=r.node),r.isLast=n===h.keys.length-1,r.isFirst=0===n,p.post&&p.post.call(h,r),l.pop()})),c.pop()),p.after&&p.after.call(h,h.node),h):h}(e).node}function l(e){this.value=e}function c(e){return new l(e)}l.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!i.call(t,r))return;t=t[r]}return t},l.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!i.call(t,r))return!1;t=t[r]}return!0},l.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];i.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},l.prototype.map=function(e){return s(this.value,e,!0)},l.prototype.forEach=function(e){return this.value=s(this.value,e,!1),this.value},l.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},l.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},l.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},l.prototype.clone=function(){var e=[],t=[];return function n(i){for(var s=0;s<e.length;s++)if(e[s]===i)return t[s];if("object"==typeof i&&null!==i){var l=a(i);return e.push(i),t.push(l),r(o(i),(function(e){l[e]=n(i[e])})),e.pop(),t.pop(),l}return i}(this.value)},r(o(l.prototype),(function(e){c[e]=function(t){var n=[].slice.call(arguments,1),r=new l(t);return r[e].apply(r,n)}})),e.exports=c},3250:(e,t,n)=>{"use strict";var r=n(7294);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},1688:(e,t,n)=>{"use strict";e.exports=n(3250)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0,(()=>{"use strict";var e={};o.r(e),o.d(e,{countSelectorsByStatus:()=>ft,getCachedResolvers:()=>ut,getIsResolving:()=>ot,getResolutionError:()=>lt,getResolutionState:()=>rt,hasFinishedResolution:()=>at,hasResolutionFailed:()=>st,hasResolvingSelectors:()=>dt,hasStartedResolution:()=>it,isResolving:()=>ct});var t={};o.r(t),o.d(t,{failResolution:()=>ht,failResolutions:()=>bt,finishResolution:()=>mt,finishResolutions:()=>vt,invalidateResolution:()=>yt,invalidateResolutionForStore:()=>kt,invalidateResolutionForStoreSelector:()=>wt,startResolution:()=>pt,startResolutions:()=>gt});var n={};o.r(n),o.d(n,{__experimentalHasContentRoleAttribute:()=>$o,getActiveBlockVariation:()=>Po,getBlockStyles:()=>Io,getBlockSupport:()=>zo,getBlockType:()=>Co,getBlockTypes:()=>So,getBlockVariations:()=>To,getCategories:()=>Oo,getChildBlockNames:()=>Do,getCollections:()=>Ao,getDefaultBlockName:()=>Mo,getDefaultBlockVariation:()=>No,getFreeformFallbackBlockName:()=>Ro,getGroupingBlockName:()=>Lo,getUnregisteredFallbackBlockName:()=>Bo,hasBlockSupport:()=>Fo,hasChildBlocks:()=>Vo,hasChildBlocksWithInserterSupport:()=>Ho,isMatchingSearchTerm:()=>jo});var r={};o.r(r),o.d(r,{getBootstrappedBlockType:()=>Go,getSupportedStyles:()=>Ko,getUnprocessedBlockTypes:()=>qo});var i={};o.r(i),o.d(i,{__experimentalReapplyBlockFilters:()=>ti,addBlockCollection:()=>pi,addBlockStyles:()=>ri,addBlockTypes:()=>Jo,addBlockVariations:()=>ii,reapplyBlockTypeFilters:()=>ei,removeBlockCollection:()=>mi,removeBlockStyles:()=>oi,removeBlockTypes:()=>ni,removeBlockVariations:()=>ai,setCategories:()=>di,setDefaultBlockName:()=>si,setFreeformFallbackBlockName:()=>li,setGroupingBlockName:()=>ui,setUnregisteredFallbackBlockName:()=>ci,updateCategory:()=>fi});var a={};o.r(a),o.d(a,{addBootstrappedBlockType:()=>hi,addUnprocessedBlockType:()=>gi});var s={};o.r(s),o.d(s,{find:()=>Nx});var l={};o.r(l),o.d(l,{find:()=>Dx,findNext:()=>Fx,findPrevious:()=>zx,isTabbableIndex:()=>Ax});var c={};o.r(c),o.d(c,{getFormatType:()=>oI,getFormatTypeForBareElement:()=>iI,getFormatTypeForClassName:()=>aI,getFormatTypes:()=>rI});var u={};o.r(u),o.d(u,{addFormatTypes:()=>sI,removeFormatTypes:()=>lI});var d={};o.r(d),o.d(d,{__experimentalGetActiveBlockIdByBlockNames:()=>qP,__experimentalGetAllowedBlocks:()=>EP,__experimentalGetAllowedPatterns:()=>NP,__experimentalGetBlockListSettingsForBlocks:()=>DP,__experimentalGetDirectInsertBlock:()=>SP,__experimentalGetGlobalBlocksByName:()=>nT,__experimentalGetLastBlockAttributeChanges:()=>jP,__experimentalGetParsedPattern:()=>TP,__experimentalGetPatternTransformItems:()=>MP,__experimentalGetPatternsByBlockTypes:()=>AP,__experimentalGetReusableBlockTitle:()=>zP,__experimentalUserPatternCategories:()=>IP,__unstableGetBlockWithoutInnerBlocks:()=>YI,__unstableGetClientIdWithClientIdsTree:()=>ZI,__unstableGetClientIdsTree:()=>QI,__unstableGetContentLockingParent:()=>QP,__unstableGetEditorMode:()=>$P,__unstableGetSelectedBlocksWithPartialSelection:()=>DT,__unstableGetTemporarilyEditingAsBlocks:()=>JP,__unstableGetVisibleBlocks:()=>ZP,__unstableHasActiveBlockOverlayActive:()=>eN,__unstableIsFullySelected:()=>MT,__unstableIsLastBlockChangeIgnored:()=>FP,__unstableIsSelectionCollapsed:()=>RT,__unstableIsSelectionMergeable:()=>LT,__unstableIsWithinBlockOverlay:()=>tN,__unstableSelectionHasUnmergeableBlock:()=>BT,areInnerBlocksControlled:()=>GP,canEditBlock:()=>pP,canInsertBlockType:()=>sP,canInsertBlocks:()=>lP,canLockBlockType:()=>mP,canMoveBlock:()=>dP,canMoveBlocks:()=>fP,canRemoveBlock:()=>cP,canRemoveBlocks:()=>uP,didAutomaticChange:()=>WP,getAdjacentBlockClientId:()=>yT,getAllowedBlocks:()=>_P,getBlock:()=>qI,getBlockAttributes:()=>GI,getBlockCount:()=>iT,getBlockEditingMode:()=>nN,getBlockHierarchyRootClientId:()=>vT,getBlockIndex:()=>FT,getBlockInsertionPoint:()=>eP,getBlockListSettings:()=>RP,getBlockMode:()=>GT,getBlockName:()=>WI,getBlockNamesByClientId:()=>oT,getBlockOrder:()=>zT,getBlockParents:()=>hT,getBlockParentsByBlockName:()=>gT,getBlockRootClientId:()=>mT,getBlockSelectionEnd:()=>cT,getBlockSelectionStart:()=>lT,getBlockTransformItems:()=>kP,getBlocks:()=>XI,getBlocksByClientId:()=>rT,getClientIdsOfDescendants:()=>JI,getClientIdsWithDescendants:()=>eT,getDirectInsertBlock:()=>xP,getDraggedBlockClientIds:()=>XT,getFirstMultiSelectedBlockClientId:()=>CT,getGlobalBlockCount:()=>tT,getInserterItems:()=>yP,getLastMultiSelectedBlockClientId:()=>IT,getLowestCommonAncestorWithSelectedBlock:()=>bT,getMultiSelectedBlockClientIds:()=>xT,getMultiSelectedBlocks:()=>ST,getMultiSelectedBlocksEndClientId:()=>AT,getMultiSelectedBlocksStartClientId:()=>OT,getNextBlockClientId:()=>wT,getPatternsByBlockTypes:()=>OP,getPreviousBlockClientId:()=>kT,getSelectedBlock:()=>pT,getSelectedBlockClientId:()=>fT,getSelectedBlockClientIds:()=>ET,getSelectedBlockCount:()=>uT,getSelectedBlocksInitialCaretPosition:()=>_T,getSelectionEnd:()=>sT,getSelectionStart:()=>aT,getSettings:()=>BP,getTemplate:()=>rP,getTemplateLock:()=>oP,hasBlockMovingClientId:()=>UP,hasDraggedInnerBlock:()=>HT,hasInserterItems:()=>wP,hasMultiSelection:()=>UT,hasSelectedBlock:()=>dT,hasSelectedInnerBlock:()=>VT,isAncestorBeingDragged:()=>QT,isAncestorMultiSelected:()=>NT,isBlockBeingDragged:()=>ZT,isBlockHighlighted:()=>KP,isBlockInsertionPointVisible:()=>tP,isBlockMultiSelected:()=>PT,isBlockSelected:()=>jT,isBlockValid:()=>KI,isBlockVisible:()=>XP,isBlockWithinSelection:()=>$T,isCaretWithinFormattedText:()=>JT,isDraggingBlocks:()=>YT,isFirstMultiSelectedBlock:()=>TT,isGroupable:()=>oN,isLastBlockChangePersistent:()=>LP,isMultiSelecting:()=>WT,isNavigationMode:()=>HP,isSelectionEnabled:()=>KT,isTyping:()=>qT,isUngroupable:()=>rN,isValidTemplate:()=>nP,wasBlockJustInserted:()=>YP});var f={};o.r(f),o.d(f,{__experimentalUpdateSettings:()=>aN,clearBlockRemovalPrompt:()=>dN,deleteStyleOverride:()=>hN,ensureDefaultBlock:()=>uN,hideBlockInterface:()=>sN,privateRemoveBlocks:()=>cN,setBlockRemovalRules:()=>fN,setOpenedBlockSettingsMenu:()=>pN,setStyleOverride:()=>mN,showBlockInterface:()=>lN});var p={};o.r(p),o.d(p,{getBlockRemovalRules:()=>_N,getEnabledBlockParents:()=>kN,getEnabledClientIdsTree:()=>yN,getInserterMediaCategories:()=>CN,getLastInsertedBlocksClientIds:()=>vN,getOpenedBlockSettingsMenu:()=>EN,getRegisteredInserterMediaCategories:()=>SN,getRemovalPromptData:()=>wN,getStyleOverrides:()=>xN,isBlockInterfaceHidden:()=>gN,isBlockSubtreeDisabled:()=>bN});var m={};o.r(m),o.d(m,{__unstableDeleteSelection:()=>lO,__unstableExpandSelection:()=>uO,__unstableMarkAutomaticChange:()=>PO,__unstableMarkLastChangeAsPersistent:()=>IO,__unstableMarkNextChangeAsNotPersistent:()=>TO,__unstableSaveReusableBlock:()=>CO,__unstableSetEditorMode:()=>OO,__unstableSetTemporarilyEditingAsBlocks:()=>jO,__unstableSplitSelection:()=>cO,clearSelectedBlock:()=>KN,duplicateBlocks:()=>MO,enterFormattedText:()=>kO,exitFormattedText:()=>wO,flashBlock:()=>DO,hideInsertionPoint:()=>iO,insertAfterBlock:()=>BO,insertBeforeBlock:()=>RO,insertBlock:()=>nO,insertBlocks:()=>rO,insertDefaultBlock:()=>EO,mergeBlocks:()=>dO,moveBlockToPosition:()=>tO,moveBlocksDown:()=>QN,moveBlocksToPosition:()=>eO,moveBlocksUp:()=>JN,multiSelect:()=>WN,receiveBlocks:()=>DN,registerInserterMediaCategory:()=>VO,removeBlock:()=>pO,removeBlocks:()=>fO,replaceBlock:()=>XN,replaceBlocks:()=>YN,replaceInnerBlocks:()=>mO,resetBlocks:()=>RN,resetSelection:()=>LN,selectBlock:()=>jN,selectNextBlock:()=>HN,selectPreviousBlock:()=>VN,selectionChange:()=>_O,setBlockEditingMode:()=>HO,setBlockMovingClientId:()=>AO,setBlockVisibility:()=>FO,setHasControlledInnerBlocks:()=>zO,setNavigationMode:()=>NO,setTemplateValidity:()=>aO,showInsertionPoint:()=>oO,startDraggingBlocks:()=>bO,startMultiSelect:()=>$N,startTyping:()=>gO,stopDraggingBlocks:()=>yO,stopMultiSelect:()=>UN,stopTyping:()=>vO,synchronizeTemplate:()=>sO,toggleBlockHighlight:()=>LO,toggleBlockMode:()=>hO,toggleSelection:()=>GN,unsetBlockEditingMode:()=>$O,updateBlock:()=>FN,updateBlockAttributes:()=>zN,updateBlockListSettings:()=>xO,updateSettings:()=>SO,validateBlocksToTemplate:()=>BN});var h={};o.r(h),o.d(h,{Text:()=>NR,block:()=>OR,destructive:()=>MR,highlighterText:()=>BR,muted:()=>RR,positive:()=>AR,upperCase:()=>LR});var g={};o.r(g),o.d(g,{ButtonContentView:()=>I$,LabelView:()=>_$,Uz:()=>P$,Ji:()=>x$,IA:()=>E$});var v={};o.r(v),o.d(v,{registerShortcut:()=>w1,unregisterShortcut:()=>_1});var b={};o.r(b),o.d(b,{getAllShortcutKeyCombinations:()=>N1,getAllShortcutRawKeyCombinations:()=>O1,getCategoryShortcuts:()=>A1,getShortcutAliases:()=>P1,getShortcutDescription:()=>T1,getShortcutKeyCombination:()=>C1,getShortcutRepresentation:()=>I1});var y={};o.r(y),o.d(y,{createErrorNotice:()=>S2,createInfoNotice:()=>x2,createNotice:()=>_2,createSuccessNotice:()=>E2,createWarningNotice:()=>C2,removeAllNotices:()=>T2,removeNotice:()=>I2,removeNotices:()=>P2});var k={};o.r(k),o.d(k,{getNotices:()=>O2});var w={};o.r(w),o.d(w,{set:()=>e7,setDefaults:()=>t7,setPersistenceLayer:()=>n7,toggle:()=>J9});var _={};o.r(_),o.d(_,{get:()=>r7});var E=wp.blockEditor,x=E.InspectorControls,S=E.PanelColorSettings,C=wp.i18n.__,I=wp.components,T=I.PanelBody,P=I.PanelRow;const N=function(e){var t=e.attributes,n=t.slotId,r=t.calendarId,o=t.calendars,i=t.primary_color,a=t.date_round,s=t.avatarStyle,l=t.hideHostInfo,c=t.theme,u=e.setAttributes,d=[{value:i,onChange:function(e){u({primary_color:e})},label:C("Primary Color")}];return React.createElement(x,null,React.createElement(T,{title:"General Settings",initialOpen:!0},React.createElement(P,null,React.createElement("div",{className:"fcal_block_settings"},React.createElement("div",{className:"fcal_block_inspector_widget"},React.createElement("h3",{className:"label"},C("Select An Event")),React.createElement("select",{value:[n,r],onChange:function(e){var t=e.target.value.split(",");u({slotId:t[0]}),u({calendarId:t[1]})}},React.createElement("option",{key:"default",value:""},C("---Select a Event---")),o.map((function(e,t){return React.createElement("optgroup",{label:e.title,key:t},e.slots.map((function(t,n){return React.createElement("option",{key:n,value:[t.id,e.id]},t.title)})))})))),React.createElement("div",{className:"fcal_block_inspector_widget"},React.createElement("h3",{className:"label"},C("Date Style")),React.createElement("select",{value:a,onChange:function(e){u({date_round:e.target.value})}},React.createElement("option",{value:"4px"},C("Square")),React.createElement("option",{value:"50%"},C("Rounded")))),React.createElement("div",{className:"fcal_block_inspector_widget"},React.createElement("h3",{className:"label"},C("Avatar Style")),React.createElement("select",{value:s,onChange:function(e){u({avatarStyle:e.target.value})}},React.createElement("option",{value:"8px"},C("Square")),React.createElement("option",{value:"50%"},C("Rounded")))),React.createElement("div",{className:"fcal_block_inspector_widget fcal_block_inspector_host_info"},React.createElement("h3",{className:"label"},C("Host Info")),React.createElement("select",{value:l,onChange:function(e){u({hideHostInfo:e.target.value})}},React.createElement("option",{value:"no"},C("Show")),React.createElement("option",{value:"yes"},C("Hide")))),React.createElement("div",{className:"fcal_block_inspector_widget fcal_block_theme"},React.createElement("h3",{className:"label"},C("Color Schema")),React.createElement("select",{value:c,onChange:function(e){u({theme:e.target.value})}},React.createElement("option",{value:"system-default"},C("System Default")),React.createElement("option",{value:"light"},C("Light")),React.createElement("option",{value:"dark"},C("Dark"))))))),"dark"!=c?React.createElement("div",{className:"fluent-latest-posts-content-color-settings"},React.createElement(S,{title:C("Customization"),colorSettings:d})):"")};function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var M=wp.i18n.__,R=wp.element,B=R.Fragment,L=R.useEffect,D=R.useState,z=function(e){var t=e.attributes.slotId,n=(e.setAttributes,new Date),r=n.getFullYear(),o=n.getMonth(),i=O(D([]),2),a=i[0],s=i[1],l=O(D({}),2),c=l[0],u=l[1],d=O(D(""),2),f=d[0],p=d[1];L((function(){!function(){var e=(new Date).getFullYear(),n=(new Date).getMonth(),r={event_id:t,action:"fluent_cal_get_available_dates",start_date:"".concat(e,"-").concat(n+1,"-01")},o=new URLSearchParams(r).toString();fetch("".concat(window.fluentCalendarGutenbergVars.ajaxurl,"?").concat(o),{method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((function(e){u(null==e?void 0:e.available_slots),p(e.timezone)})).catch((function(e){console.error("There was an error!",e)}))}(),function(){for(var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=[],o=new Date(t,n,1).getDay(),i=new Date(t,n+1,0).getDate(),a=new Date(t,n,0).getDate(),l=0===n?11:n-1,u=a-o;u<a;u++){var d=new Date(11===l?t-1:t,l,u+1);r.push({name:"",enabled:!1,date:d})}for(var f=0;f<i;f++){var p=new Date(t,n,f+1).toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}),m=!!c[p];r.push({name:"".concat(f+1),enabled:m,date:p})}s(r)}()}),[c]);var m=new Date;function h(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)}return[React.createElement(B,null,React.createElement("div",{className:"fcal_block_calendar_container"},React.createElement("div",{className:"fcal_block_calendar_header"},React.createElement("div",{className:"fcal_block_calendar_month_year"},React.createElement("h3",null,["January","February","March","April","May","June","July","August","September","October","November","December"][o]," ",React.createElement("span",null,r)))),React.createElement("div",{className:"fcal_block_calendar"},["sun","mon","tue","wed","thu","fri","sat"].map((function(e,t){return React.createElement("span",{className:"day-name",key:t},e)})),a.map((function(e,t){return React.createElement(B,{key:t},e.enabled?React.createElement("span",{role:"button",tabIndex:"0","aria-label":"Select Day ".concat(e.name),className:"day day-enabled"},React.createElement("span",{className:h(m)===e.date?"is-today":""},e.name)):React.createElement("span",{className:"day day-disabled"},React.createElement("span",{className:h(m)===e.date?"is-today":""},e.name)))}))),f?React.createElement("div",{className:"fcal_block_timezone"},React.createElement("h3",null,M("Timezone")),React.createElement("span",{className:"timezone"},f)):""))]},F=o(3379),j=o.n(F),V=o(734),H={insert:"head",singleton:!1};j()(V.Z,H);V.Z.locals;function $(e){return $="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},$(e)}function U(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 W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y=wp.element,X=Y.Fragment,Z=Y.useEffect,Q=Y.useState,J=wp.i18n.__,ee=wp.components.Spinner,te=function(e){var t,n,r,o=e.attributes,i=o.slotId,a=o.calendars,s=o.calendarId,l=o.avatarStyle,c=o.hideHostInfo,u=o.theme,d=e.setAttributes,f=G(Q(!1),2),p=f[0],m=f[1],h=G(Q(""),2),g=h[0],v=h[1],b=G(Q(!1),2),y=b[0],k=b[1],w=wp.apiFetch,_=wp.url.addQueryArgs;Z((function(){E(),x()}),[i,s]);var E=function(e){m(!0),w({path:_("fluent-booking/v2/calendars",W({},e))}).then((function(e){d({calendars:e.calendars.data})})).catch((function(e){k(e)})).finally((function(){m(!1)}))},x=function(e){if(!i)return!1;m(!0),w({path:_("fluent-booking/v2/calendars/"+s+"/events/"+i,W({},e))}).then((function(e){v(e.calendar_event)})).catch((function(e){k(e)})).finally((function(){m(!1)}))};return[React.createElement(X,null,React.createElement("div",{className:i?"fcal_block_landing_page fcal_block_landing_preview":"fcal_block_landing_page "},i&&g?React.createElement("div",{className:u+" fcal_block_preview_wrap"},"no"==c?React.createElement("div",{className:"fcal_block_preview_aside"},React.createElement("div",{className:"fcal_author"},React.createElement("div",{className:"fcal_author_avatar"},React.createElement("img",{style:{borderRadius:l||"8px"},src:null===(t=g.calendar.author_profile)||void 0===t?void 0:t.avatar,alt:null===(n=g.calendar)||void 0===n?void 0:n.title})),React.createElement("h3",{className:"fcal_author_name"},null===(r=g.calendar)||void 0===r?void 0:r.title)),React.createElement("div",{className:"fcal_slot_info"},React.createElement("h2",{className:"fcal_slot_heading"},g.title),React.createElement("div",{className:"slot_timing fcal_icon_item"},React.createElement("svg",{fill:"#000000",width:"16px",height:"16px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000"},React.createElement("g",{strokeWidth:"0"}),React.createElement("g",{strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("g",null,React.createElement("path",{d:"M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm5,11H12a1,1,0,0,1-1-1V6a1,1,0,0,1,2,0v5h4a1,1,0,0,1,0,2Z"}))),React.createElement("span",null,g.duration," ",J("Minutes"))),"in_person_organizer"==g.location_settings.type?React.createElement("div",{className:"slot_location fcal_icon_item"},React.createElement("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px","data-testid":"location-marker-icon","data-id":"details-item-icon"},React.createElement("title",null,"Physical location"),React.createElement("path",{d:"M12 0C7.453 0 3.623 3.853 3.623 8.429c0 6.502 7.18 14.931 7.42 15.172.479.482 1.197.482 1.675.24l.24-.24c.239-.24 7.419-8.67 7.419-15.172C20.377 3.853 16.547 0 12 0zm0 11.56c-1.675 0-2.872-1.445-2.872-2.89S10.566 5.78 12 5.78c1.436 0 2.872 1.445 2.872 2.89S13.675 11.56 12 11.56z",fill:"currentColor"})),React.createElement("span",null,g.location_settings.title)):null,"phone_organizer"==g.location_settings.type?React.createElement("div",{className:"slot_location fcal_icon_item"},React.createElement("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px","data-testid":"location-marker-icon","data-id":"details-item-icon"},React.createElement("title",null,"Physical location"),React.createElement("path",{d:"M12 0C7.453 0 3.623 3.853 3.623 8.429c0 6.502 7.18 14.931 7.42 15.172.479.482 1.197.482 1.675.24l.24-.24c.239-.24 7.419-8.67 7.419-15.172C20.377 3.853 16.547 0 12 0zm0 11.56c-1.675 0-2.872-1.445-2.872-2.89S10.566 5.78 12 5.78c1.436 0 2.872 1.445 2.872 2.89S13.675 11.56 12 11.56z",fill:"currentColor"})),React.createElement("span",null,J("Phone Call"))):null),React.createElement("div",{className:"fcal_slot_description"},React.createElement("p",null,g.description))):null,React.createElement("div",{className:"fcal_block_preview_date_wrapper"},React.createElement(z,{attributes:e.attributes,setAttributes:e.setAttributes}))):React.createElement("div",{className:"fcal_block_select_cal"},p?React.createElement("h2",{className:"fcal_block_loading"},J("Loading..."),React.createElement(ee,null)):React.createElement("div",null,a&&a.length&&!y?React.createElement("select",{value:[i,s],id:"fcal_select_calendar",onChange:function(e){var t=e.target.value.split(",");d({slotId:t[0]}),d({calendarId:t[1]})}},React.createElement("option",{key:"default",value:""},J("---Select a Event---")),a.map((function(e,t){return React.createElement("optgroup",{label:e.title,key:t},e.slots.map((function(t,n){return React.createElement("option",{key:n,value:[t.id,e.id]},t.title)})))}))):React.createElement("div",{className:"fcal_calendar_not_found"},React.createElement("h2",null,J(y?"Something went wrong!":"No Calendars found!")))))))]},ne=wp.element.Fragment;const re=function(e){return React.createElement(ne,null,React.createElement("div",{className:"fluent-booking-block"},React.createElement(te,{attributes:e.attributes,setAttributes:e.setAttributes})),React.createElement(N,{attributes:e.attributes,setAttributes:e.setAttributes}))};function oe(e){return oe="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},oe(e)}function ie(e){var t=function(e,t){if("object"!==oe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oe(t)?t:String(t)}function ae(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 se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ie(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ce="function"==typeof Symbol&&Symbol.observable||"@@observable",ue=function(){return Math.random().toString(36).substring(7).split("").join(".")},de={INIT:"@@redux/INIT"+ue(),REPLACE:"@@redux/REPLACE"+ue(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ue()}};function fe(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function pe(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(le(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(le(1));return n(pe)(e,t)}if("function"!=typeof e)throw new Error(le(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(le(3));return i}function d(e){if("function"!=typeof e)throw new Error(le(4));if(l)throw new Error(le(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(le(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!fe(e))throw new Error(le(7));if(void 0===e.type)throw new Error(le(8));if(l)throw new Error(le(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:de.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(le(10));o=e,f({type:de.REPLACE})}})[ce]=function(){var e,t=d;return e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(le(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[ce]=function(){return this},e},r}function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function he(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(le(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=me.apply(void 0,i)(n.dispatch),se(se({},n),{},{dispatch:r})}}}var ge=o(3909),ve=o.n(ge);var be=o(4320);function ye(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function ke(e){return"[object Object]"===Object.prototype.toString.call(e)}function we(e){var t,n;return!1!==ke(e)&&(void 0===(t=e.constructor)||!1!==ke(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function _e(e){return we(e)&&"string"==typeof e.type}function Ee(e={},t){const n=Object.entries(e).map((([e,t])=>(n,r,o,i,a)=>{if(l=e,!_e(s=n)||s.type!==l)return!1;var s,l;const c=t(n);return ye(c)?c.then(i,a):i(c),!0}));n.push(((e,n)=>!!_e(e)&&(t(e),n(),!0)));const r=(0,be.create)(n);return e=>new Promise(((n,o)=>r(e,(e=>{_e(e)&&t(e),n(e)}),o)))}function xe(e={}){return t=>{const n=Ee(e,t.dispatch);return e=>t=>{return(r=t)&&"function"==typeof r[Symbol.iterator]&&"function"==typeof r.next?n(t):e(t);var r}}}const Se=(e=!1)=>(...t)=>(...n)=>{const r=t.flat();return e&&r.reverse(),r.reduce(((e,t)=>[t(...e)]),n)[0]},Ce=Se(),Ie=Se(!0);function Te(e){const t=Object.keys(e);return function(n={},r){const o={};let i=!1;for(const a of t){const t=e[a],s=n[a],l=t(s,r);o[a]=l,i=i||l!==s}return i?o:n}}function Pe(e){const t=(...n)=>e(t.registry.select)(...n);return t.isRegistrySelector=!0,t}function Ne(e){return e.isRegistryControl=!0,e}const Oe="@@data/SELECT",Ae="@@data/RESOLVE_SELECT",Me="@@data/DISPATCH";const Re={[Oe]:Ne((e=>({storeKey:t,selectorName:n,args:r})=>e.select(t)[n](...r))),[Ae]:Ne((e=>({storeKey:t,selectorName:n,args:r})=>{const o=e.select(t)[n].hasResolver?"resolveSelect":"select";return e[o](t)[n](...r)})),[Me]:Ne((e=>({storeKey:t,actionName:n,args:r})=>e.dispatch(t)[n](...r)))};var Be=o(4155);const Le=["@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/patterns","@wordpress/reusable-blocks","@wordpress/router"],De=[];let ze;try{ze=!Be.env.IS_WORDPRESS_CORE}catch(Yo){ze=!0}const Fe=(e,t)=>{if(!Le.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!ze&&De.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return De.push(t),{lock:je,unlock:Ve}};function je(e,t){if(!e)throw new Error("Cannot lock an undefined object.");$e in e||(e[$e]={}),He.set(e[$e],t)}function Ve(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!($e in e))throw new Error("Cannot unlock an object that was not locked before. ");return He.get(e[$e])}const He=new WeakMap,$e=Symbol("Private API ID");const{lock:Ue,unlock:We}=Fe("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/data"),Ke=()=>e=>t=>ye(t)?t.then((t=>{if(t)return e(t)})):e(t),Ge=(e,t)=>()=>n=>r=>{const o=e.select(t).getCachedResolvers();return Object.entries(o).forEach((([n,o])=>{const i=e.stores[t]?.resolvers?.[n];i&&i.shouldInvalidate&&o.forEach(((o,a)=>{void 0!==o&&("finished"!==o.status&&"error"!==o.status||i.shouldInvalidate(r,...a)&&e.dispatch(t).invalidateResolution(n,a))}))})),n(r)};function qe(e){return()=>t=>n=>"function"==typeof n?n(e):t(n)}function Ye(e){if(null==e)return[];const t=e.length;let n=t;for(;n>0&&void 0===e[n-1];)n--;return n===t?e:e.slice(0,n)}const Xe=(Ze="selectorName",e=>(t={},n)=>{const r=n[Ze];if(void 0===r)return t;const o=e(t[r],n);return o===t[r]?t:{...t,[r]:o}})(((e=new(ve()),t)=>{switch(t.type){case"START_RESOLUTION":{const n=new(ve())(e);return n.set(Ye(t.args),{status:"resolving"}),n}case"FINISH_RESOLUTION":{const n=new(ve())(e);return n.set(Ye(t.args),{status:"finished"}),n}case"FAIL_RESOLUTION":{const n=new(ve())(e);return n.set(Ye(t.args),{status:"error",error:t.error}),n}case"START_RESOLUTIONS":{const n=new(ve())(e);for(const e of t.args)n.set(Ye(e),{status:"resolving"});return n}case"FINISH_RESOLUTIONS":{const n=new(ve())(e);for(const e of t.args)n.set(Ye(e),{status:"finished"});return n}case"FAIL_RESOLUTIONS":{const n=new(ve())(e);return t.args.forEach(((e,r)=>{const o={status:"error",error:void 0},i=t.errors[r];i&&(o.error=i),n.set(Ye(e),o)})),n}case"INVALIDATE_RESOLUTION":{const n=new(ve())(e);return n.delete(Ye(t.args)),n}}return e}));var Ze;const Qe=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:n,...r}=e;return r}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return Xe(e,t)}return e};var Je={};function et(e){return[e]}function tt(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function nt(e,t){var n,r=t||et;function o(){n=new WeakMap}function i(){var t,o,i,a,s,l=arguments.length;for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];for(t=function(e){var t,r,o,i,a,s=n,l=!0;for(t=0;t<e.length;t++){if(!(a=r=e[t])||"object"!=typeof a){l=!1;break}s.has(r)?s=s.get(r):(o=new WeakMap,s.set(r,o),s=o)}return s.has(Je)||((i=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,s.set(Je,i)),s.get(Je)}(s=r.apply(null,a)),t.isUniqueByDependants||(t.lastDependants&&!tt(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),o=t.head;o;){if(tt(o.args,a,1))return o!==t.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=t.head,o.prev=null,t.head.prev=o,t.head=o),o.val;o=o.next}return o={val:e.apply(null,a)},a[0]=null,o.args=a,t.head&&(t.head.prev=o,o.next=t.head),t.head=o,o.val}return i.getDependants=r,i.clear=o,o(),i}function rt(e,t,n){const r=e[t];if(r)return r.get(Ye(n))}function ot(e,t,n){const r=rt(e,t,n);return r&&"resolving"===r.status}function it(e,t,n){return void 0!==rt(e,t,n)}function at(e,t,n){const r=rt(e,t,n)?.status;return"finished"===r||"error"===r}function st(e,t,n){return"error"===rt(e,t,n)?.status}function lt(e,t,n){const r=rt(e,t,n);return"error"===r?.status?r.error:null}function ct(e,t,n){return"resolving"===rt(e,t,n)?.status}function ut(e){return e}function dt(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}const ft=nt((e=>{const t={};return Object.values(e).forEach((e=>Array.from(e._map.values()).forEach((e=>{var n;const r=null!==(n=e[1]?.status)&&void 0!==n?n:"error";t[r]||(t[r]=0),t[r]++})))),t}),(e=>[e]));function pt(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function mt(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function ht(e,t,n){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:n}}function gt(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function vt(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function bt(e,t,n){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:n}}function yt(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function kt(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function wt(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const _t=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},Et=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,n])=>[e,t(n,e)]))),xt=(e,t)=>t instanceof Map?Object.fromEntries(t):t;function St(e){const t=new WeakMap;return{get(n,r){let o=t.get(n);return o||(o=e(n,r),t.set(n,o)),o}}}function Ct(n,r){const o={},i={},a={privateActions:o,registerPrivateActions:e=>{Object.assign(o,e)},privateSelectors:i,registerPrivateSelectors:e=>{Object.assign(i,e)}},s={name:n,instantiate:s=>{const l=new Set,c=r.reducer,u=function(e,t,n,r){const o={...t.controls,...Re},i=Et(o,(e=>e.isRegistryControl?e(n):e)),a=[Ge(n,e),Ke,xe(i),qe(r)],s=[he(...a)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&s.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:xt}}));const{reducer:l,initialState:c}=t,u=Te({metadata:Qe,root:l});return pe(u,{root:c},Ie(s))}(n,r,s,{registry:s,get dispatch(){return g},get select(){return _},get resolveSelect(){return S()}});Ue(u,a);const d=function(){const e={};return{isRunning:(t,n)=>e[t]&&e[t].get(_t(n)),clear(t,n){e[t]&&e[t].delete(_t(n))},markAsRunning(t,n){e[t]||(e[t]=new(ve())),e[t].set(_t(n),!0)}}}();function f(e){return(...t)=>Promise.resolve(u.dispatch(e(...t)))}const p={...Et(t,f),...Et(r.actions,f)},m=St(f),h=new Proxy((()=>{}),{get:(e,t)=>{const n=o[t];return n?m.get(n,t):p[t]}}),g=new Proxy(h,{apply:(e,t,[n])=>u.dispatch(n)});Ue(p,h);const v=r.resolvers?function(e){return Et(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(r.resolvers):{};function b(e,t){e.isRegistrySelector&&(e.registry=s);const n=(...t)=>{const n=u.__unstableOriginalGetState();return e(n.root,...t)},r=v[t];return r?function(e,t,n,r,o){function i(e){const i=r.getState();if(o.isRunning(t,e)||"function"==typeof n.isFulfilled&&n.isFulfilled(i,...e))return;const{metadata:a}=r.__unstableOriginalGetState();it(a,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),r.dispatch(pt(t,e));try{const o=n.fulfill(...e);o&&await r.dispatch(o),r.dispatch(mt(t,e))}catch(n){r.dispatch(ht(t,e,n))}}),0))}const a=(...t)=>(i(t),e(...t));return a.hasResolver=!0,a}(n,t,r,u,d):(n.hasResolver=!1,n)}const y={...Et(e,(function(e){const t=(...t)=>{const n=u.__unstableOriginalGetState();return e(n.metadata,...t)};return t.hasResolver=!1,t})),...Et(r.selectors,b)},k=St(b);for(const[e,t]of Object.entries(i))k.get(t,e);const w=new Proxy((()=>{}),{get:(e,t)=>{const n=i[t];return n?k.get(n,t):y[t]}}),_=new Proxy(w,{apply:(e,t,[n])=>n(u.__unstableOriginalGetState())});Ue(y,w);const E=function(e,t){const{getIsResolving:n,hasStartedResolution:r,hasFinishedResolution:o,hasResolutionFailed:i,isResolving:a,getCachedResolvers:s,getResolutionState:l,getResolutionError:c,hasResolvingSelectors:u,countSelectorsByStatus:d,...f}=e;return Et(f,((n,r)=>n.hasResolver?(...o)=>new Promise(((i,a)=>{const s=()=>e.hasFinishedResolution(r,o),l=t=>{if(e.hasResolutionFailed(r,o)){const t=e.getResolutionError(r,o);a(t)}else i(t)},c=()=>n.apply(null,o),u=c();if(s())return l(u);const d=t.subscribe((()=>{s()&&(d(),l(c()))}))})):async(...e)=>n.apply(null,e)))}(y,u),x=function(e,t){return Et(e,((n,r)=>n.hasResolver?(...o)=>{const i=n.apply(null,o);if(e.hasFinishedResolution(r,o)){if(e.hasResolutionFailed(r,o))throw e.getResolutionError(r,o);return i}throw new Promise((n=>{const i=t.subscribe((()=>{e.hasFinishedResolution(r,o)&&(n(),i())}))}))}:n))}(y,u),S=()=>E;u.__unstableOriginalGetState=u.getState,u.getState=()=>u.__unstableOriginalGetState().root;const C=u&&(e=>(l.add(e),()=>l.delete(e)));let I=u.__unstableOriginalGetState();return u.subscribe((()=>{const e=u.__unstableOriginalGetState(),t=e!==I;if(I=e,t)for(const e of l)e()})),{reducer:c,store:u,actions:p,selectors:y,resolvers:v,getSelectors:()=>y,getResolveSelectors:S,getSuspendSelectors:()=>x,getActions:()=>p,subscribe:C}}};return Ue(s,a),s}const It=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const Tt=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const Pt=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!Tt(n))return;if(!It(r))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const s={callback:o,priority:i,namespace:r};if(a[n]){const e=a[n].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=s:e.splice(t,0,s),a.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++}))}else a[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}};const Nt=function(e,t,n=!1){return function(r,o){const i=e[t];if(!Tt(r))return;if(!n&&!It(o))return;if(!i[r])return 0;let a=0;if(n)a=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const e=i[r].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),a++,i.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),a}};const Ot=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some((e=>e.namespace===r)):n in o}};const At=function(e,t,n=!1){return function(r,...o){const i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const a=i[r].handlers;if(!a||!a.length)return n?o[0]:void 0;const s={name:r,currentIndex:0};for(i.__current.push(s);s.currentIndex<a.length;){const e=a[s.currentIndex].callback.apply(null,o);n&&(o[0]=e),s.currentIndex++}return i.__current.pop(),n?o[0]:void 0}};const Mt=function(e,t){return function(){var n;const r=e[t];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}};const Rt=function(e,t){return function(n){const r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};const Bt=function(e,t){return function(n){const r=e[t];if(Tt(n))return r[n]&&r[n].runs?r[n].runs:0}};class Lt{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Pt(this,"actions"),this.addFilter=Pt(this,"filters"),this.removeAction=Nt(this,"actions"),this.removeFilter=Nt(this,"filters"),this.hasAction=Ot(this,"actions"),this.hasFilter=Ot(this,"filters"),this.removeAllActions=Nt(this,"actions",!0),this.removeAllFilters=Nt(this,"filters",!0),this.doAction=At(this,"actions"),this.applyFilters=At(this,"filters",!0),this.currentAction=Mt(this,"actions"),this.currentFilter=Mt(this,"filters"),this.doingAction=Rt(this,"actions"),this.doingFilter=Rt(this,"filters"),this.didAction=Bt(this,"actions"),this.didFilter=Bt(this,"filters")}}const Dt=function(){return new Lt},zt=Dt(),{addAction:Ft,addFilter:jt,removeAction:Vt,removeFilter:Ht,hasAction:$t,hasFilter:Ut,removeAllActions:Wt,removeAllFilters:Kt,doAction:Gt,applyFilters:qt,currentAction:Yt,currentFilter:Xt,doingAction:Zt,doingFilter:Qt,didAction:Jt,didFilter:en,actions:tn,filters:nn}=zt,rn=Object.create(null);function on(e,t={}){const{since:n,version:r,alternative:o,plugin:i,link:a,hint:s}=t,l=`${e} is deprecated${n?` since version ${n}`:""}${r?` and will be removed${i?` from ${i}`:""} in version ${r}`:""}.${o?` Please use ${o} instead.`:""}${a?` See: ${a}`:""}${s?` Note: ${s}`:""}`;l in rn||(Gt("deprecated",e,t,l),console.warn(l),rn[l]=!0)}const an={name:"core/data",instantiate(e){const t=t=>(n,...r)=>e.select(n)[t](...r),n=t=>(n,...r)=>e.dispatch(n)[t](...r);return{getSelectors:()=>Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)]))),getActions:()=>Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,n(e)]))),subscribe:()=>()=>()=>{}}}};function sn(){let e=!1,t=!1;const n=new Set,r=()=>Array.from(n).forEach((e=>e()));return{get isPaused(){return e},subscribe:e=>(n.add(e),()=>n.delete(e)),pause(){e=!0},resume(){e=!1,t&&(t=!1,r())},emit(){e?t=!0:r()}}}function ln(e){return"string"==typeof e?e:e.name}function cn(e={},t=null){const n={},r=sn();let o=null;function i(){r.emit()}function a(e,r){if(n[e])return console.error('Store "'+e+'" is already registered.'),n[e];const o=r();if("function"!=typeof o.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof o.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof o.subscribe)throw new TypeError("store.subscribe must be a function");o.emitter=sn();const a=o.subscribe;if(o.subscribe=e=>{const t=o.emitter.subscribe(e),n=a((()=>{o.emitter.isPaused?o.emitter.emit():e()}));return()=>{n?.(),t?.()}},n[e]=o,o.subscribe(i),t)try{We(o.store).registerPrivateActions(We(t).privateActionsOf(e)),We(o.store).registerPrivateSelectors(We(t).privateSelectorsOf(e))}catch(e){}return o}let s={batch:function(e){r.isPaused?e():(r.pause(),Object.values(n).forEach((e=>e.emitter.pause())),e(),r.resume(),Object.values(n).forEach((e=>e.emitter.resume())))},stores:n,namespaces:n,subscribe:(e,o)=>{if(!o)return r.subscribe(e);const i=ln(o),a=n[i];return a?a.subscribe(e):t?t.subscribe(e,o):r.subscribe(e)},select:function(e){const r=ln(e);o?.add(r);const i=n[r];return i?i.getSelectors():t?.select(r)},resolveSelect:function(e){const r=ln(e);o?.add(r);const i=n[r];return i?i.getResolveSelectors():t&&t.resolveSelect(r)},suspendSelect:function(e){const r=ln(e);o?.add(r);const i=n[r];return i?i.getSuspendSelectors():t&&t.suspendSelect(r)},dispatch:function(e){const r=ln(e),o=n[r];return o?o.getActions():t&&t.dispatch(r)},use:function(e,t){if(!e)return;return s={...s,...e(s,t)},s},register:function(e){a(e.name,(()=>e.instantiate(s)))},registerGenericStore:function(e,t){on("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),a(e,(()=>t))},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return a(e,(()=>Ct(e,t).instantiate(s))).store},__unstableMarkListeningStores:function(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}};s.register(an);for(const[t,n]of Object.entries(e))s.register(Ct(t,n));t&&t.subscribe(i);const l=function(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>"function"!=typeof t?[e,t]:[e,function(){return s[e].apply(null,arguments)}])))}(s);return Ue(l,{privateActionsOf:e=>{try{return We(n[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return We(n[e].store).privateSelectors}catch(e){return{}}}}),l}const un=cn(),dn=Te,fn=(un.resolveSelect,un.suspendSelect,un.subscribe,un.registerGenericStore,un.registerStore),pn=(un.use,un.register);var mn=function(){return mn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mn.apply(this,arguments)};function hn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function gn(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function vn(e){return e.toLowerCase()}var bn=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],yn=/[^A-Z0-9]+/gi;function kn(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?bn:n,o=t.stripRegexp,i=void 0===o?yn:o,a=t.transform,s=void 0===a?vn:a,l=t.delimiter,c=void 0===l?" ":l,u=wn(wn(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(s).join(c)}function wn(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function _n(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function En(e,t){return void 0===t&&(t={}),kn(e,mn({delimiter:"",transform:_n},t))}function xn(e,t){return 0===t?e.toLowerCase():_n(e,t)}function Sn(e,t){return void 0===t&&(t={}),En(e,mn({transform:xn},t))}function Cn(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}var In=o(8975),Tn=o.n(In);const Pn=Cn(console.error);function Nn(e,...t){try{return Tn().sprintf(e,...t)}catch(t){return t instanceof Error&&Pn("sprintf error: \n\n"+t.toString()),e}}var On,An,Mn,Rn;On={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},An=["(","?"],Mn={")":["("],":":["?","?:"]},Rn=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Bn={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Ln(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(Rn);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Mn[n]){if(Mn[n][0]===o){n=Mn[n][1]||n;break}}else if(An.indexOf(o)>=0||On[o]<On[n]){a.push(o);break}i.push(o)}Mn[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,s,l=[];for(n=0;n<e.length;n++){if(a=e[n],i=Bn[a]){for(r=i.length,o=Array(r);r--;)o[r]=l.pop();try{s=i.apply(null,o)}catch(e){return e}}else s=t.hasOwnProperty(a)?t[a]:+a;l.push(s)}return l[0]}(t,e)}}var Dn={contextDelimiter:"",onMissingKey:null};function zn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Dn)this.options[n]=void 0!==t&&n in t?t[n]:Dn[n]}zn.prototype.getPluralForm=function(e,t){var n,r,o,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=function(e){var t=Ln(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},zn.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};const Fn={plural_forms:e=>1===e?0:1},jn=/^i18n\.(n?gettext|has_translation)(_|$)/,Vn=((e,t,n)=>{const r=new zn({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...Fn,...r.data[t]?.[""]},delete r.pluralForms[t]},s=(e,t)=>{a(e,t),i()},l=(e="default",t,n,o,i)=>(r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)),c=(e="default")=>e,u=(e,t,r)=>{let o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),o,e,t,r)):o};if(e&&s(e,t),n){const e=e=>{jn.test(e)&&i()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>r.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{r.data[t]={...r.data[t],...e,"":{...Fn,...r.data[t]?.[""],...e?.[""]}},delete r.pluralForms[t],i()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},s(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x:u,_n:(e,t,r,o)=>{let i=l(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+c(o),i,e,t,r,o)):i},_nx:(e,t,r,o,i)=>{let a=l(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+c(i),a,e,t,r,o,i)):a},isRTL:()=>"rtl"===u("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+""+e:e;let a=!!r.data?.[null!=o?o:"default"]?.[i];return n&&(a=n.applyFilters("i18n.has_translation",a,e,t,o),a=n.applyFilters("i18n.has_translation_"+c(o),a,e,t,o)),a}}})(void 0,void 0,zt),Hn=(Vn.getLocaleData.bind(Vn),Vn.setLocaleData.bind(Vn),Vn.resetLocaleData.bind(Vn),Vn.subscribe.bind(Vn),Vn.__.bind(Vn)),$n=Vn._x.bind(Vn),Un=Vn._n.bind(Vn),Wn=(Vn._nx.bind(Vn),Vn.isRTL.bind(Vn));Vn.hasTranslation.bind(Vn);var Kn={grad:.9,turn:360,rad:360/(2*Math.PI)},Gn=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},qn=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Yn=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Xn=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Zn=function(e){return{r:Yn(e.r,0,255),g:Yn(e.g,0,255),b:Yn(e.b,0,255),a:Yn(e.a)}},Qn=function(e){return{r:qn(e.r),g:qn(e.g),b:qn(e.b),a:qn(e.a,3)}},Jn=/^#([0-9a-f]{3,8})$/i,er=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},tr=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}},nr=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}},rr=function(e){return{h:Xn(e.h),s:Yn(e.s,0,100),l:Yn(e.l,0,100),a:Yn(e.a)}},or=function(e){return{h:qn(e.h),s:qn(e.s),l:qn(e.l),a:qn(e.a,3)}},ir=function(e){return nr((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},ar=function(e){return{h:(t=tr(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},sr=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lr=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,cr=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ur=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,dr={string:[[function(e){var t=Jn.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?qn(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?qn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=cr.exec(e)||ur.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Zn({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=sr.exec(e)||lr.exec(e);if(!t)return null;var n,r,o=rr({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Kn[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ir(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 Gn(t)&&Gn(n)&&Gn(r)?Zn({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(!Gn(t)||!Gn(n)||!Gn(r))return null;var a=rr({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return ir(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Gn(t)||!Gn(n)||!Gn(r))return null;var a=function(e){return{h:Xn(e.h),s:Yn(e.s,0,100),v:Yn(e.v,0,100),a:Yn(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return nr(a)},"hsv"]]},fr=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},pr=function(e){return"string"==typeof e?fr(e.trim(),dr.string):"object"==typeof e&&null!==e?fr(e,dr.object):[null,void 0]},mr=function(e,t){var n=ar(e);return{h:n.h,s:Yn(n.s+100*t,0,100),l:n.l,a:n.a}},hr=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},gr=function(e,t){var n=ar(e);return{h:n.h,s:n.s,l:Yn(n.l+100*t,0,100),a:n.a}},vr=function(){function e(e){this.parsed=pr(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return qn(hr(this.rgba),2)},e.prototype.isDark=function(){return hr(this.rgba)<.5},e.prototype.isLight=function(){return hr(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Qn(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?er(qn(255*o)):"","#"+er(t)+er(n)+er(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Qn(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Qn(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 or(ar(this.rgba))},e.prototype.toHslString=function(){return t=(e=or(ar(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=tr(this.rgba),{h:qn(e.h),s:qn(e.s),v:qn(e.v),a:qn(e.a,3)};var e},e.prototype.invert=function(){return br({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),br(mr(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),br(mr(this.rgba,-e))},e.prototype.grayscale=function(){return br(mr(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),br(gr(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),br(gr(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?br({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):qn(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ar(this.rgba);return"number"==typeof e?br({h:e,s:t.s,l:t.l,a:t.a}):qn(t.h)},e.prototype.isEqual=function(e){return this.toHex()===br(e).toHex()},e}(),br=function(e){return e instanceof vr?e:new vr(e)},yr=[],kr=function(e){e.forEach((function(e){yr.indexOf(e)<0&&(e(vr,dr),yr.push(e))}))};function wr(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));p<c&&(c=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}var _r=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Er=function(e){return.2126*_r(e.r)+.7152*_r(e.g)+.0722*_r(e.b)};function xr(e){e.prototype.luminance=function(){return e=Er(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=Er(i))>(l=Er(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}}var Sr=o(7294),Cr=o.t(Sr,2);const Ir="block-default",Tr=["attributes","supports","save","migrate","isEligible","apiVersion"],Pr={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},borderColor:{value:["border","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"],properties:{borderTopLeftRadius:"topLeft",borderTopRightRadius:"topRight",borderBottomLeftRadius:"bottomLeft",borderBottomRightRadius:"bottomRight"},useEngine:!0},borderStyle:{value:["border","style"],support:["__experimentalBorder","style"],useEngine:!0},borderWidth:{value:["border","width"],support:["__experimentalBorder","width"],useEngine:!0},borderTopColor:{value:["border","top","color"],support:["__experimentalBorder","color"],useEngine:!0},borderTopStyle:{value:["border","top","style"],support:["__experimentalBorder","style"],useEngine:!0},borderTopWidth:{value:["border","top","width"],support:["__experimentalBorder","width"],useEngine:!0},borderRightColor:{value:["border","right","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRightStyle:{value:["border","right","style"],support:["__experimentalBorder","style"],useEngine:!0},borderRightWidth:{value:["border","right","width"],support:["__experimentalBorder","width"],useEngine:!0},borderBottomColor:{value:["border","bottom","color"],support:["__experimentalBorder","color"],useEngine:!0},borderBottomStyle:{value:["border","bottom","style"],support:["__experimentalBorder","style"],useEngine:!0},borderBottomWidth:{value:["border","bottom","width"],support:["__experimentalBorder","width"],useEngine:!0},borderLeftColor:{value:["border","left","color"],support:["__experimentalBorder","color"],useEngine:!0},borderLeftStyle:{value:["border","left","style"],support:["__experimentalBorder","style"],useEngine:!0},borderLeftWidth:{value:["border","left","width"],support:["__experimentalBorder","width"],useEngine:!0},color:{value:["color","text"],support:["color","text"],requiresOptOut:!0,useEngine:!0},columnCount:{value:["typography","textColumns"],support:["typography","textColumns"],useEngine:!0},filter:{value:["filter","duotone"],support:["filter","duotone"]},linkColor:{value:["elements","link","color","text"],support:["color","link"]},captionColor:{value:["elements","caption","color","text"],support:["color","caption"]},buttonColor:{value:["elements","button","color","text"],support:["color","button"]},buttonBackgroundColor:{value:["elements","button","color","background"],support:["color","button"]},headingColor:{value:["elements","heading","color","text"],support:["color","heading"]},headingBackgroundColor:{value:["elements","heading","color","background"],support:["color","heading"]},fontFamily:{value:["typography","fontFamily"],support:["typography","__experimentalFontFamily"],useEngine:!0},fontSize:{value:["typography","fontSize"],support:["typography","fontSize"],useEngine:!0},fontStyle:{value:["typography","fontStyle"],support:["typography","__experimentalFontStyle"],useEngine:!0},fontWeight:{value:["typography","fontWeight"],support:["typography","__experimentalFontWeight"],useEngine:!0},lineHeight:{value:["typography","lineHeight"],support:["typography","lineHeight"],useEngine:!0},margin:{value:["spacing","margin"],support:["spacing","margin"],properties:{marginTop:"top",marginRight:"right",marginBottom:"bottom",marginLeft:"left"},useEngine:!0},minHeight:{value:["dimensions","minHeight"],support:["dimensions","minHeight"],useEngine:!0},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:{paddingTop:"top",paddingRight:"right",paddingBottom:"bottom",paddingLeft:"left"},useEngine:!0},textDecoration:{value:["typography","textDecoration"],support:["typography","__experimentalTextDecoration"],useEngine:!0},textTransform:{value:["typography","textTransform"],support:["typography","__experimentalTextTransform"],useEngine:!0},letterSpacing:{value:["typography","letterSpacing"],support:["typography","__experimentalLetterSpacing"],useEngine:!0},writingMode:{value:["typography","writingMode"],support:["typography","__experimentalWritingMode"],useEngine:!0},"--wp--style--root--padding":{value:["spacing","padding"],support:["spacing","padding"],properties:{"--wp--style--root--padding-top":"top","--wp--style--root--padding-right":"right","--wp--style--root--padding-bottom":"bottom","--wp--style--root--padding-left":"left"},rootOnly:!0}},Nr={link:"a",heading:"h1, h2, h3, h4, h5, h6",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",button:".wp-element-button, .wp-block-button__link",caption:".wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption",cite:"cite"},Or={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"typography.fontFamilies":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0};function Ar(e){return un.select(e)}function Mr(){return Ar(yi).getFreeformFallbackBlockName()}function Rr(){return Ar(yi).getUnregisteredFallbackBlockName()}function Br(){return Ar(yi).getDefaultBlockName()}function Lr(e){return Ar(yi)?.getBlockType(e)}function Dr(){return Ar(yi).getBlockTypes()}function zr(e,t,n){return Ar(yi).getBlockSupport(e,t,n)}function Fr(e,t,n){return Ar(yi).hasBlockSupport(e,t,n)}function jr(e){return"core/block"===e?.name}function Vr(e){return"core/template-part"===e?.name}const Hr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let $r;const Ur=new Uint8Array(16);function Wr(){if(!$r&&($r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $r(Ur)}const Kr=[];for(let e=0;e<256;++e)Kr.push((e+256).toString(16).slice(1));function Gr(e,t=0){return Kr[e[t+0]]+Kr[e[t+1]]+Kr[e[t+2]]+Kr[e[t+3]]+"-"+Kr[e[t+4]]+Kr[e[t+5]]+"-"+Kr[e[t+6]]+Kr[e[t+7]]+"-"+Kr[e[t+8]]+Kr[e[t+9]]+"-"+Kr[e[t+10]]+Kr[e[t+11]]+Kr[e[t+12]]+Kr[e[t+13]]+Kr[e[t+14]]+Kr[e[t+15]]}const qr=function(e,t,n){if(Hr.randomUUID&&!t&&!e)return Hr.randomUUID();const r=(e=e||{}).random||(e.rng||Wr)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Gr(r)};function Yr(e,t={},n=[]){const r=mo(e,t);return{clientId:qr(),name:e,isValid:!0,attributes:r,innerBlocks:n}}function Xr(e=[]){return e.map((e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],[n,r,o=[]]=t;return Yr(n,r,Xr(o))}))}function Zr(e,t={},n){const r=qr(),o=mo(e.name,{...e.attributes,...t});return{...e,clientId:r,attributes:o,innerBlocks:n||e.innerBlocks.map((e=>Zr(e)))}}function Qr(e,t={},n){const r=qr();return{...e,clientId:r,attributes:{...e.attributes,...t},innerBlocks:n||e.innerBlocks.map((e=>Qr(e)))}}const Jr=(e,t,n)=>{if(!n.length)return!1;const r=n.length>1,o=n[0].name;if(!(eo(e)||!r||e.isMultiBlock))return!1;if(!eo(e)&&!n.every((e=>e.name===o)))return!1;if(!("block"===e.type))return!1;const i=n[0];return!("from"===t&&-1===e.blocks.indexOf(i.name)&&!eo(e))&&(!(!r&&"from"===t&&to(i.name)&&to(e.blockName))&&!!io(e,n))},eo=e=>e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*"),to=e=>e===Ar(yi).getGroupingBlockName();function no(e){if(!e.length)return[];const t=(e=>e.length?Dr().filter((t=>!!ro(oo("from",t.name),(t=>Jr(t,"from",e))))):[])(e),n=(e=>{if(!e.length)return[];const t=Lr(e[0].name);return(t?oo("to",t.name):[]).filter((t=>t&&Jr(t,"to",e))).map((e=>e.blocks)).flat().map(Lr)})(e);return[...new Set([...t,...n])]}function ro(e,t){const n=Dt();for(let r=0;r<e.length;r++){const o=e[r];t(o)&&n.addFilter("transform","transform/"+r.toString(),(e=>e||o),o.priority)}return n.applyFilters("transform",null)}function oo(e,t){if(void 0===t)return Dr().map((({name:t})=>oo(e,t))).flat();const n=po(t),{name:r,transforms:o}=n||{};if(!o||!Array.isArray(o[e]))return[];const i=o.supportedMobileTransforms&&Array.isArray(o.supportedMobileTransforms),a=i?o[e].filter((e=>"raw"===e.type||!(!e.blocks||!e.blocks.length)&&(!!eo(e)||e.blocks.every((e=>o.supportedMobileTransforms.includes(e)))))):o[e];return a.map((e=>({...e,blockName:r,usingMobileTransformations:i})))}function io(e,t){if("function"!=typeof e.isMatch)return!0;const n=t[0],r=e.isMultiBlock?t.map((e=>e.attributes)):n.attributes,o=e.isMultiBlock?t:n;return e.isMatch(r,o)}function ao(e,t){const n=Array.isArray(e)?e:[e],r=n.length>1,o=n[0],i=o.name,a=oo("from",t),s=ro(oo("to",i),(e=>"block"===e.type&&(eo(e)||-1!==e.blocks.indexOf(t))&&(!r||e.isMultiBlock)&&io(e,n)))||ro(a,(e=>"block"===e.type&&(eo(e)||-1!==e.blocks.indexOf(i))&&(!r||e.isMultiBlock)&&io(e,n)));if(!s)return null;let l;if(l=s.isMultiBlock?"__experimentalConvert"in s?s.__experimentalConvert(n):s.transform(n.map((e=>e.attributes)),n.map((e=>e.innerBlocks))):"__experimentalConvert"in s?s.__experimentalConvert(o):s.transform(o.attributes,o.innerBlocks),null===l||"object"!=typeof l)return null;if(l=Array.isArray(l)?l:[l],l.some((e=>!Lr(e.name))))return null;if(!l.some((e=>e.name===t)))return null;const c=l.map(((t,n,r)=>qt("blocks.switchToBlockType.transformedBlock",t,e,n,r)));return c}const so=(e,t)=>{var n;return Yr(e,t.attributes,(null!==(n=t.innerBlocks)&&void 0!==n?n:[]).map((e=>so(e.name,e))))};kr([wr,xr]);const lo=["#191e23","#f8f9f9"];function co(e){var t;co[e.name]||(co[e.name]=Yr(e.name));const n=co[e.name],r=Lr(e.name);return Object.keys(null!==(t=r?.attributes)&&void 0!==t?t:{}).every((t=>n.attributes[t]===e.attributes[t]))}function uo(e){return e.name===Br()&&co(e)}function fo(e){return!!e&&("string"==typeof e||(0,Sr.isValidElement)(e)||"function"==typeof e||e instanceof Sr.Component)}function po(e){return"string"==typeof e?Lr(e):e}function mo(e,t){const n=Lr(e);if(void 0===n)throw new Error(`Block type '${e}' is not registered.`);return Object.entries(n.attributes).reduce(((e,[n,r])=>{const o=t[n];return void 0!==o?e[n]=o:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{})}function ho(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const go=[{slug:"text",title:Hn("Text")},{slug:"media",title:Hn("Media")},{slug:"design",title:Hn("Design")},{slug:"widgets",title:Hn("Widgets")},{slug:"theme",title:Hn("Theme")},{slug:"embed",title:Hn("Embeds")},{slug:"reusable",title:Hn("Reusable blocks")}];function vo(e){return e.reduce(((e,t)=>({...e,[t.name]:t})),{})}function bo(e){return e.reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[])}function yo(e){return(t=null,n)=>{switch(n.type){case"REMOVE_BLOCK_TYPES":return-1!==n.names.indexOf(t)?null:t;case e:return n.name||null}return t}}const ko=dn({bootstrappedBlockTypes:function(e={},t){switch(t.type){case"ADD_BOOTSTRAPPED_BLOCK_TYPE":const{name:n,blockType:r}=t,o=e[n];let i;return o?(void 0===o.selectors&&r.selectors&&(i={...o,selectors:r.selectors}),void 0===o.blockHooks&&r.blockHooks&&(i={...o,...i,blockHooks:r.blockHooks})):(i=Object.fromEntries(Object.entries(r).filter((([,e])=>null!=e)).map((([e,t])=>[Sn(e),t]))),i.name=n),i?{...e,[n]:i}:e;case"REMOVE_BLOCK_TYPES":return ho(e,t.names)}return e},unprocessedBlockTypes:function(e={},t){switch(t.type){case"ADD_UNPROCESSED_BLOCK_TYPE":return{...e,[t.name]:t.blockType};case"REMOVE_BLOCK_TYPES":return ho(e,t.names)}return e},blockTypes:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...vo(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return ho(e,t.names)}return e},blockStyles:function(e={},t){var n,r;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(vo(t.blockTypes)).map((([t,n])=>{var r,o;return[t,bo([...(null!==(r=n.styles)&&void 0!==r?r:[]).map((e=>({...e,source:"block"}))),...(null!==(o=e[n.name])&&void 0!==o?o:[]).filter((({source:e})=>"block"!==e))])]})))};case"ADD_BLOCK_STYLES":return{...e,[t.blockName]:bo([...null!==(n=e[t.blockName])&&void 0!==n?n:[],...t.styles])};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:(null!==(r=e[t.blockName])&&void 0!==r?r:[]).filter((e=>-1===t.styleNames.indexOf(e.name)))}}return e},blockVariations:function(e={},t){var n,r;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(vo(t.blockTypes)).map((([t,n])=>{var r,o;return[t,bo([...(null!==(r=n.variations)&&void 0!==r?r:[]).map((e=>({...e,source:"block"}))),...(null!==(o=e[n.name])&&void 0!==o?o:[]).filter((({source:e})=>"block"!==e))])]})))};case"ADD_BLOCK_VARIATIONS":return{...e,[t.blockName]:bo([...null!==(n=e[t.blockName])&&void 0!==n?n:[],...t.variations])};case"REMOVE_BLOCK_VARIATIONS":return{...e,[t.blockName]:(null!==(r=e[t.blockName])&&void 0!==r?r:[]).filter((e=>-1===t.variationNames.indexOf(e.name)))}}return e},defaultBlockName:yo("SET_DEFAULT_BLOCK_NAME"),freeformFallbackBlockName:yo("SET_FREEFORM_FALLBACK_BLOCK_NAME"),unregisteredFallbackBlockName:yo("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),groupingBlockName:yo("SET_GROUPING_BLOCK_NAME"),categories:function(e=go,t){switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||!Object.keys(t.category).length)return e;if(e.find((({slug:e})=>e===t.slug)))return e.map((e=>e.slug===t.slug?{...e,...t.category}:e))}return e},collections:function(e={},t){switch(t.type){case"ADD_BLOCK_COLLECTION":return{...e,[t.namespace]:{title:t.title,icon:t.icon}};case"REMOVE_BLOCK_COLLECTION":return ho(e,t.namespace)}return e}});var wo=o(6826),_o=o.n(wo);const Eo=(e,t,n)=>{var r;const o=Array.isArray(t)?t:t.split(".");let i=e;return o.forEach((e=>{i=i?.[e]})),null!==(r=i)&&void 0!==r?r:n},xo=(e,t)=>"string"==typeof t?Co(e,t):t,So=nt((e=>Object.values(e.blockTypes)),(e=>[e.blockTypes]));function Co(e,t){return e.blockTypes[t]}function Io(e,t){return e.blockStyles[t]}const To=nt(((e,t,n)=>{const r=e.blockVariations[t];return r&&n?r.filter((e=>(e.scope||["block","inserter"]).includes(n))):r}),((e,t)=>[e.blockVariations[t]]));function Po(e,t,n,r){const o=To(e,t,r),i=o?.find((r=>{if(Array.isArray(r.isActive)){const o=Co(e,t),i=Object.keys(o?.attributes||{}),a=r.isActive.filter((e=>i.includes(e)));return 0!==a.length&&a.every((e=>n[e]===r.attributes[e]))}return r.isActive?.(n,r.attributes)}));return i}function No(e,t,n){const r=To(e,t,n);return[...r].reverse().find((({isDefault:e})=>!!e))||r[0]}function Oo(e){return e.categories}function Ao(e){return e.collections}function Mo(e){return e.defaultBlockName}function Ro(e){return e.freeformFallbackBlockName}function Bo(e){return e.unregisteredFallbackBlockName}function Lo(e){return e.groupingBlockName}const Do=nt(((e,t)=>So(e).filter((e=>e.parent?.includes(t))).map((({name:e})=>e))),(e=>[e.blockTypes])),zo=(e,t,n,r)=>{const o=xo(e,t);return o?.supports?Eo(o.supports,n,r):r};function Fo(e,t,n,r){return!!zo(e,t,n,r)}function jo(e,t,n){const r=xo(e,t),o=Ce([e=>_o()(null!=e?e:""),e=>e.toLowerCase(),e=>e.trim()]),i=o(n),a=Ce([o,e=>e.includes(i)]);return a(r.title)||r.keywords?.some(a)||a(r.category)||"string"==typeof r.description&&a(r.description)}const Vo=(e,t)=>Do(e,t).length>0,Ho=(e,t)=>Do(e,t).some((t=>Fo(e,t,"inserter",!0))),$o=nt(((e,t)=>{const n=Co(e,t);return!!n&&Object.entries(n.attributes).some((([,{__experimentalRole:e}])=>"content"===e))}),((e,t)=>[e.blockTypes[t]?.attributes])),Uo=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textDecoration","textTransform","letterSpacing"];function Wo(e,t,n){return e.filter((e=>("fontSize"!==e||"heading"!==n)&&(!("textDecoration"===e&&!t&&"link"!==n)&&(!("textTransform"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(n))&&(!("letterSpacing"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(n))&&!("textColumns"===e&&!t))))))}const Ko=nt(((e,t,n)=>{if(!t)return Wo(Uo,t,n);const r=Co(e,t);if(!r)return[];const o=[];return r?.supports?.spacing?.blockGap&&o.push("blockGap"),r?.supports?.shadow&&o.push("shadow"),Object.keys(Pr).forEach((e=>{Pr[e].support&&(Pr[e].requiresOptOut&&Pr[e].support[0]in r.supports&&!1!==Eo(r.supports,Pr[e].support)||Eo(r.supports,Pr[e].support,!1))&&o.push(e)})),Wo(o,t,n)}),((e,t)=>[e.blockTypes[t]]));function Go(e,t){return e.bootstrappedBlockTypes[t]}function qo(e){return e.unprocessedBlockTypes}const{error:Yo,warn:Xo}=window.console,Zo={common:"text",formatting:"text",layout:"design"},Qo=(e,t)=>({select:n})=>{const r={name:e,icon:Ir,keywords:[],attributes:{},providesContext:{},usesContext:[],selectors:{},supports:{},styles:[],variations:[],blockHooks:{},save:()=>null,...n.getBootstrappedBlockType(e),...t},o=qt("blocks.registerBlockType",r,e,null);if(o.description&&"string"!=typeof o.description&&on("Declaring non-string block descriptions",{since:"6.2"}),o.deprecated&&(o.deprecated=o.deprecated.map((e=>Object.fromEntries(Object.entries(qt("blocks.registerBlockType",{...ho(r,Tr),...e},r.name,e)).filter((([e])=>Tr.includes(e))))))),we(o))if("function"==typeof o.save)if("edit"in o&&"function"!=typeof o.edit)Yo('The "edit" property must be a valid function.');else if(Zo.hasOwnProperty(o.category)&&(o.category=Zo[o.category]),"category"in o&&!n.getCategories().some((({slug:e})=>e===o.category))&&(Xo('The block "'+e+'" is registered with an invalid category "'+o.category+'".'),delete o.category),"title"in o&&""!==o.title)if("string"==typeof o.title){if(o.icon=function(e){if(fo(e=e||Ir))return{src:e};if("background"in e){const t=br(e.background),n=e=>t.contrast(e),r=Math.max(...lo.map(n));return{...e,foreground:e.foreground?e.foreground:lo.find((e=>n(e)===r)),shadowColor:t.alpha(.3).toRgbString()}}return e}(o.icon),fo(o.icon.src))return o;Yo("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional")}else Yo("Block titles must be strings.");else Yo('The block "'+e+'" must have a title.');else Yo('The "save" property must be a valid function.');else Yo("Block settings must be a valid object.")};function Jo(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Array.isArray(e)?e:[e]}}function ei(){return({dispatch:e,select:t})=>{const n=[];for(const[r,o]of Object.entries(t.getUnprocessedBlockTypes())){const t=e(Qo(r,o));t&&n.push(t)}n.length&&e.addBlockTypes(n)}}function ti(){return on('wp.data.dispatch( "core/blocks" ).__experimentalReapplyBlockFilters',{since:"6.4",alternative:"reapplyBlockFilters"}),ei()}function ni(e){return{type:"REMOVE_BLOCK_TYPES",names:Array.isArray(e)?e:[e]}}function ri(e,t){return{type:"ADD_BLOCK_STYLES",styles:Array.isArray(t)?t:[t],blockName:e}}function oi(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Array.isArray(t)?t:[t],blockName:e}}function ii(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Array.isArray(t)?t:[t],blockName:e}}function ai(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Array.isArray(t)?t:[t],blockName:e}}function si(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function li(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function ci(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function ui(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function di(e){return{type:"SET_CATEGORIES",categories:e}}function fi(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function pi(e,t,n){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:n}}function mi(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}function hi(e,t){return{type:"ADD_BOOTSTRAPPED_BLOCK_TYPE",name:e,blockType:t}}function gi(e,t){return({dispatch:n})=>{n({type:"ADD_UNPROCESSED_BLOCK_TYPE",name:e,blockType:t});const r=n(Qo(e,t));r&&n.addBlockTypes(r)}}const{lock:vi,unlock:bi}=Fe("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/blocks"),yi=Ct("core/blocks",{reducer:ko,selectors:n,actions:i});let ki,wi,_i,Ei;pn(yi),bi(yi).registerPrivateSelectors(r),bi(yi).registerPrivateActions(a);const xi=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function Si(e,t,n,r,o){return{blockName:e,attrs:t,innerBlocks:n,innerHTML:r,innerContent:o}}function Ci(e){return Si(null,{},[],e,[e])}const Ii=e=>{ki=e,wi=0,_i=[],Ei=[],xi.lastIndex=0;do{}while(Ti());return _i};function Ti(){const e=Ei.length,t=function(){const e=xi.exec(ki);if(null===e)return["no-more-tokens","",null,0,0];const t=e.index,[n,r,o,i,a,,s]=e,l=n.length,c=!!r,u=!!s,d=o||"core/",f=d+i,p=!!a,m=p?function(e){try{return JSON.parse(e)}catch(e){return null}}(a):{};if(u)return["void-block",f,m,t,l];if(c)return["block-closer",f,null,t,l];return["block-opener",f,m,t,l]}(),[n,r,o,i,a]=t,s=i>wi?wi:null;switch(n){case"no-more-tokens":if(0===e)return Pi(),!1;if(1===e)return Oi(),!1;for(;0<Ei.length;)Oi();return!1;case"void-block":return 0===e?(null!==s&&_i.push(Ci(ki.substr(s,i-s))),_i.push(Si(r,o,[],"",[])),wi=i+a,!0):(Ni(Si(r,o,[],"",[]),i,a),wi=i+a,!0);case"block-opener":return Ei.push(function(e,t,n,r,o){return{block:e,tokenStart:t,tokenLength:n,prevOffset:r||t+n,leadingHtmlStart:o}}(Si(r,o,[],"",[]),i,a,i+a,s)),wi=i+a,!0;case"block-closer":if(0===e)return Pi(),!1;if(1===e)return Oi(i),wi=i+a,!0;const t=Ei.pop(),n=ki.substr(t.prevOffset,i-t.prevOffset);return t.block.innerHTML+=n,t.block.innerContent.push(n),t.prevOffset=i+a,Ni(t.block,t.tokenStart,t.tokenLength,i+a),wi=i+a,!0;default:return Pi(),!1}}function Pi(e){const t=e||ki.length-wi;0!==t&&_i.push(Ci(ki.substr(wi,t)))}function Ni(e,t,n,r){const o=Ei[Ei.length-1];o.block.innerBlocks.push(e);const i=ki.substr(o.prevOffset,t-o.prevOffset);i&&(o.block.innerHTML+=i,o.block.innerContent.push(i)),o.block.innerContent.push(null),o.prevOffset=r||t+n}function Oi(e){const{block:t,leadingHtmlStart:n,prevOffset:r,tokenStart:o}=Ei.pop(),i=e?ki.substr(r,e-r):ki.substr(r);i&&(t.innerHTML+=i,t.innerContent.push(i)),null!==n&&_i.push(Ci(ki.substr(n,o-n))),_i.push(t)}const Ai=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function Mi(e,t){const n=function(e){const t=[];let n,r=e;for(;n=r.match(Ai);){const e=n.index;t.push(r.slice(0,e)),t.push(n[0]),r=r.slice(e+n[0].length)}return r.length&&t.push(r),t}(e);let r=!1;const o=Object.keys(t);for(let e=1;e<n.length;e+=2)for(let i=0;i<o.length;i++){const a=o[i];if(-1!==n[e].indexOf(a)){n[e]=n[e].replace(new RegExp(a,"g"),t[a]),r=!0;break}}return r&&(e=n.join("")),e}function Ri({children:e,...t}){let n="";return Sr.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(n+=e)})),(0,Sr.createElement)("div",{dangerouslySetInnerHTML:{__html:n},...t})}function Bi(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),kn(e,mn({delimiter:"."},t))}(e,mn({delimiter:"-"},t))}const Li=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function Di(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function zi(e){return e.replace(/</g,"<")}function Fi(e){return function(e){return e.replace(/>/g,">")}(function(e){return e.replace(/"/g,""")}(Di(e)))}function ji(e){return!Li.test(e)}const{Provider:Vi,Consumer:Hi}=(0,Sr.createContext)(void 0),$i=(0,Sr.forwardRef)((()=>null)),Ui=new Set(["string","boolean","number"]),Wi=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Ki=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),Gi=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),qi=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function Yi(e,t){return t.some((t=>0===e.indexOf(t)))}function Xi(e){return"key"===e||"children"===e}function Zi(e,t){return"style"===e?function(e){if(!we(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=na(n)+":"+ra(n,r)}return t}(t):t}const Qi=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),Ji=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),ea=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e)),{});function ta(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return Ji[t]?Ji[t]:Qi[t]?Bi(Qi[t]):ea[t]?ea[t]:t}function na(e){return e.startsWith("--")?e:Yi(e,["ms","O","Moz","Webkit"])?"-"+Bi(e):Bi(e)}function ra(e,t){return"number"!=typeof t||0===t||qi.has(e)?t:t+"px"}function oa(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return aa(e,t,n);switch(typeof e){case"string":return zi(Di(e));case"number":return e.toString()}const{type:r,props:o}=e;switch(r){case Sr.StrictMode:case Sr.Fragment:return aa(o.children,t,n);case Ri:const{children:e,...r}=o;return ia(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return ia(r,o,t,n);case"function":return r.prototype&&"function"==typeof r.prototype.render?function(e,t,n,r={}){const o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());const i=oa(o.render(),n,r);return i}(r,o,t,n):oa(r(o,n),t,n)}switch(r&&r.$$typeof){case Vi.$$typeof:return aa(o.children,o.value,n);case Hi.$$typeof:return oa(o.children(t||r._currentValue),t,n);case $i.$$typeof:return oa(r.render(o),t,n)}return""}function ia(e,t,n,r={}){let o="";if("textarea"===e&&t.hasOwnProperty("value")){o=aa(t.value,n,r);const{value:e,...i}=t;t=i}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=aa(t.children,n,r));if(!e)return o;const i=function(e){let t="";for(const n in e){const r=ta(n);if(!ji(r))continue;let o=Zi(n,e[n]);if(!Ui.has(typeof o))continue;if(Xi(n))continue;const i=Ki.has(r);if(i&&!1===o)continue;const a=i||Yi(n,["data-","aria-"])||Gi.has(r);("boolean"!=typeof o||a)&&(t+=" "+r,i||("string"==typeof o&&(o=Fi(o)),t+='="'+o+'"'))}return t}(t);return Wi.has(e)?"<"+e+i+"/>":"<"+e+i+">"+o+"</"+e+">"}function aa(e,t,n={}){let r="";e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++){r+=oa(e[o],t,n)}return r}const sa=oa;function la(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;let o=0;for(;o<n.length;){const r=n[o],i=e[r];if(void 0===i&&!t.hasOwnProperty(r)||i!==t[r])return!1;o++}return!0}function ca(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return la(e,t);if(Array.isArray(e)&&Array.isArray(t))return function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}(e,t)}return e===t}function ua(e,t={}){const{isCommentDelimited:n=!0}=t,{blockName:r,attrs:o={},innerBlocks:i=[],innerContent:a=[]}=e;let s=0;const l=a.map((e=>null!==e?e:ua(i[s++],t))).join("\n").replace(/\n+/g,"\n").trim();return n?va(r,o,l):l}function da(e){const t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return qt("blocks.getBlockDefaultClassName",t,e)}function fa(e){const t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return qt("blocks.getBlockMenuDefaultClassName",t,e)}const pa={},ma={};function ha(e,t,n){const r=po(e);return sa(function(e,t,n=[]){const r=po(e);if(!r?.save)return null;let{save:o}=r;if(o.prototype instanceof Sr.Component){const e=new o({attributes:t});o=e.render.bind(e)}pa.blockType=r,pa.attributes=t,ma.innerBlocks=n;let i=o({attributes:t,innerBlocks:n});if(null!==i&&"object"==typeof i&&Ut("blocks.getSaveContent.extraProps")&&!(r.apiVersion>1)){const e=qt("blocks.getSaveContent.extraProps",{...i.props},r,t);ca(e,i.props)||(i=(0,Sr.cloneElement)(i,e))}return qt("blocks.getSaveElement",i,r,t)}(r,t,n))}function ga(e){let t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=ha(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function va(e,t,n){const r=t&&Object.entries(t).length?function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ":"",o=e?.startsWith("core/")?e.slice(5):e;return n?`\x3c!-- wp:${o} ${r}--\x3e\n`+n+`\n\x3c!-- /wp:${o} --\x3e`:`\x3c!-- wp:${o} ${r}/--\x3e`}function ba(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return ua(e.__unstableBlockSource);const n=e.name,r=ga(e);if(n===Rr()||!t&&n===Mr())return r;const o=Lr(n);if(!o)return r;const i=function(e,t){var n;return Object.entries(null!==(n=e.attributes)&&void 0!==n?n:{}).reduce(((e,[n,r])=>{const o=t[n];return void 0===o||void 0!==r.source||"default"in r&&JSON.stringify(r.default)===JSON.stringify(o)||(e[n]=o),e}),{})}(o,e.attributes);return va(n,i,r)}function ya(e,t){return(Array.isArray(e)?e:[e]).map((e=>ba(e,t))).join("\n\n")}var ka=/^#[xX]([A-Fa-f0-9]+)$/,wa=/^#([0-9]+)$/,_a=/^([A-Za-z0-9]+)$/,Ea=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(ka);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(wa))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(_a))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),xa=/[A-Za-z]/,Sa=/\r\n?/g;function Ca(e){return Ea.test(e)}function Ia(e){return xa.test(e)}var Ta=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||Ia(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){Ca(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();Ca(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();Ca(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!Ca(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();Ca(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();Ca(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();Ca(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();Ca(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();Ca(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Ca(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();Ca(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();Ca(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();Ca(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();Ca(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();Ca(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();Ca(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||Ia(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Sa,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Pa=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Ta(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();var Na=o(2991),Oa=o.n(Na);let Aa;function Ma(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===Aa&&(Aa=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),Aa.innerHTML=e;const t=Aa.textContent;return Aa.innerHTML="",t}function Ra(){function e(e){return(t,...n)=>e("Block validation: "+t,...n)}return{error:e(console.error),warning:e(console.warn),getItems:()=>[]}}const Ba=/[\t\n\r\v\f ]+/g,La=/^[\t\n\r\v\f ]*$/,Da=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,za=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],Fa=[...za,"autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],ja=[e=>e,function(e){return Wa(e).join(" ")}],Va=/^[\da-z]+$/i,Ha=/^#\d+$/,$a=/^#x[\da-f]+$/i;class Ua{parse(e){if(t=e,Va.test(t)||Ha.test(t)||$a.test(t))return Ma("&"+e+";");var t}}function Wa(e){return e.trim().split(Ba)}function Ka(e){return e.attributes.filter((e=>{const[t,n]=e;return n||0===t.indexOf("data-")||Fa.includes(t)}))}function Ga(e,t,n=Ra()){let r=e.chars,o=t.chars;for(let e=0;e<ja.length;e++){const t=ja[e];if(r=t(r),o=t(o),r===o)return!0}return n.warning("Expected text `%s`, saw `%s`.",t.chars,e.chars),!1}function qa(e){return 0===parseFloat(e)?"0":0===e.indexOf(".")?"0"+e:e}function Ya(e){return Wa(e).map(qa).join(" ").replace(Da,"url($1)")}function Xa(e){const t=e.replace(/;?\s*$/,"").split(";").map((e=>{const[t,...n]=e.split(":"),r=n.join(":");return[t.trim(),Ya(r.trim())]}));return Object.fromEntries(t)}const Za={class:(e,t)=>{const[n,r]=[e,t].map(Wa),o=n.filter((e=>!r.includes(e))),i=r.filter((e=>!n.includes(e)));return 0===o.length&&0===i.length},style:(e,t)=>Oa()(...[e,t].map(Xa)),...Object.fromEntries(za.map((e=>[e,()=>!0])))};const Qa={StartTag:(e,t,n=Ra())=>e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(n.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):function(e,t,n=Ra()){if(e.length!==t.length)return n.warning("Expected attributes %o, instead saw %o.",t,e),!1;const r={};for(let e=0;e<t.length;e++)r[t[e][0].toLowerCase()]=t[e][1];for(let t=0;t<e.length;t++){const[o,i]=e[t],a=o.toLowerCase();if(!r.hasOwnProperty(a))return n.warning("Encountered unexpected attribute `%s`.",o),!1;const s=r[a],l=Za[a];if(l){if(!l(i,s))return n.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,s,i),!1}else if(i!==s)return n.warning("Expected attribute `%s` of value `%s`, saw `%s`.",o,s,i),!1}return!0}(...[e,t].map(Ka),n),Chars:Ga,Comment:Ga};function Ja(e){let t;for(;t=e.shift();){if("Chars"!==t.type)return t;if(!La.test(t.chars))return t}}function es(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function ts(e,t,n=Ra()){if(e===t)return!0;const[r,o]=[e,t].map((e=>function(e,t=Ra()){try{return new Pa(new Ua).tokenize(e)}catch(n){t.warning("Malformed HTML detected: %s",e)}return null}(e,n)));if(!r||!o)return!1;let i,a;for(;i=Ja(r);){if(a=Ja(o),!a)return n.warning("Expected end of content, instead saw %o.",i),!1;if(i.type!==a.type)return n.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,i.type,i),!1;const e=Qa[i.type];if(e&&!e(i,a,n))return!1;es(i,o[0])?Ja(o):es(a,r[0])&&Ja(r)}return!(a=Ja(o))||(n.warning("Expected %o, instead saw end of content.",a),!1)}function ns(e,t=e.name){if(e.name===Mr()||e.name===Rr())return[!0,[]];const n=function(){const e=[],t=Ra();return{error(...n){e.push({log:t.error,args:n})},warning(...n){e.push({log:t.warning,args:n})},getItems:()=>e}}(),r=po(t);let o;try{o=ha(r,e.attributes)}catch(e){return n.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),[!1,n.getItems()]}const i=ts(e.originalContent,o,n);return i||n.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",r.name,r,o,e.originalContent),[i,n.getItems()]}function rs(e,t){const n={...t};if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(n.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){const t=e.substring(11),r={speaker:"speaker-deck",polldaddy:"crowdsignal"};n.providerNameSlug=t in r?r[t]:t,["amazon-kindle","wordpress"].includes(t)||(n.responsive=!0),e="core/embed"}if("core/post-comment-author"===e&&(e="core/comment-author-name"),"core/post-comment-content"===e&&(e="core/comment-content"),"core/post-comment-date"===e&&(e="core/comment-date"),"core/comments-query-loop"===e){e="core/comments";const{className:t=""}=n;t.includes("wp-block-comments-query-loop")||(n.className=["wp-block-comments-query-loop",t].join(" "))}return"core/post-comments"===e&&(e="core/comments",n.legacy=!0),[e,n]}var os,is=function(){return os||(os=document.implementation.createHTMLDocument("")),os};function as(e,t){if(t){if("string"==typeof e){var n=is();n.body.innerHTML=e,e=n.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(n,r){var o=t[r];return n[r]=as(e,o),n}),{})}}function ss(e,t){var n,r;return 1===arguments.length?(n=e,r=void 0):(n=t,r=e),function(e){var t=e;if(r&&(t=e.querySelector(r)),t)return function(e,t){for(var n,r=t.split(".");n=r.shift();){if(!(n in e))return;e=e[n]}return e}(t,n)}}function ls(e){const t={};for(let n=0;n<e.length;n++){const{name:r,value:o}=e[n];t[r]=o}return t}function cs(e){if(on("wp.blocks.node.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e.nodeType===e.TEXT_NODE)return e.nodeValue;if(e.nodeType!==e.ELEMENT_NODE)throw new TypeError("A block node can only be created from a node of type text or element.");return{type:e.nodeName.toLowerCase(),props:{...ls(e.attributes),children:ds(e.childNodes)}}}function us(e){return on("wp.blocks.node.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let n=t;e&&(n=t.querySelector(e));try{return cs(n)}catch(e){return null}}}function ds(e){on("wp.blocks.children.fromDOM",{since:"6.1",version:"6.3",alternative:"wp.richText.create",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"});const t=[];for(let n=0;n<e.length;n++)try{t.push(cs(e[n]))}catch(e){}return t}function fs(e){return on("wp.blocks.children.matcher",{since:"6.1",version:"6.3",alternative:"html source",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),t=>{let n=t;return e&&(n=t.querySelector(e)),n?ds(n.childNodes):[]}}function ps(e,t){return t.some((t=>function(e,t){switch(t){case"string":return"string"==typeof e;case"boolean":return"boolean"==typeof e;case"object":return!!e&&e.constructor===Object;case"null":return null===e;case"array":return Array.isArray(e);case"integer":case"number":return"number"==typeof e}return!0}(e,t)))}function ms(e,t,n,r,o){let i;switch(t.source){case void 0:i=r?r[e]:void 0;break;case"raw":i=o;break;case"attribute":case"property":case"html":case"text":case"children":case"node":case"query":case"tag":i=vs(n,t)}return function(e,t){return void 0===t||ps(e,Array.isArray(t)?t:[t])}(i,t.type)&&function(e,t){return!Array.isArray(t)||t.includes(e)}(i,t.enum)||(i=void 0),void 0===i&&(i=t.default),i}const hs=Cn((e=>{switch(e.source){case"attribute":let t=function(e,t){var n,r;return 1===arguments.length?(n=e,r=void 0):(n=t,r=e),function(e){var t=ss(r,"attributes")(e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n].value}}(e.selector,e.attribute);return"boolean"===e.type&&(t=(e=>Ce([e,e=>void 0!==e]))(t)),t;case"html":return function(e,t){return n=>{let r=n;if(e&&(r=n.querySelector(e)),!r)return"";if(t){let e="";const n=r.children.length;for(let o=0;o<n;o++){const n=r.children[o];n.nodeName.toLowerCase()===t&&(e+=n.outerHTML)}return e}return r.innerHTML}}(e.selector,e.multiline);case"text":return function(e){return ss(e,"textContent")}(e.selector);case"children":return fs(e.selector);case"node":return us(e.selector);case"query":const n=Object.fromEntries(Object.entries(e.query).map((([e,t])=>[e,hs(t)])));return function(e,t){return function(n){var r=n.querySelectorAll(e);return[].map.call(r,(function(e){return as(e,t)}))}}(e.selector,n);case"tag":return Ce([ss(e.selector,"nodeName"),e=>e?e.toLowerCase():void 0]);default:console.error(`Unknown source type "${e.source}"`)}}));function gs(e){return as(e,(e=>e))}function vs(e,t){return hs(t)(gs(e))}function bs(e,t,n={}){var r;const o=gs(t),i=po(e),a=Object.fromEntries(Object.entries(null!==(r=i.attributes)&&void 0!==r?r:{}).map((([e,r])=>[e,ms(e,r,o,n,t)])));return qt("blocks.getBlockAttributes",a,i,t,n)}const ys={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function ks(e){const t=vs(`<div data-custom-class-name>${e}</div>`,ys);return t?t.trim().split(/\s+/):[]}function ws(e,t){const n=function(e,t,n){if(Fr(t,"customClassName",!0)){const{className:r,...o}=e,i=ha(t,o),a=ks(i),s=ks(n).filter((e=>!a.includes(e)));s.length?e.className=s.join(" "):i&&delete e.className}return e}(e.attributes,t,e.originalContent);return{...e,attributes:n}}function _s(){return!1}function Es(e,t){const n=Mr(),r=e.blockName||Mr(),o=e.attrs||{},i=e.innerBlocks||[];let a=e.innerHTML.trim();return r!==n||"core/freeform"!==r||t?.__unstableSkipAutop||(a=function(e,t=!0){const n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const t=e.split("</pre>"),r=t.pop();e="";for(let r=0;r<t.length;r++){const o=t[r],i=o.indexOf("<pre");if(-1===i){e+=o;continue}const a="<pre wp-pre-tag-"+r+"></pre>";n.push([a,o.substr(i)+"</pre>"]),e+=o.substr(0,i)+a}e+=r}const r="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=Mi(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+r+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+r+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));const o=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",o.forEach((t=>{e+="<p>"+t.replace(/^\n*|\n*$/g,"")+"</p>\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+r+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+r+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+r+"[^>]*>)\\s*</p>","g"),"$1"),t&&(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(e=>e[0].replace(/\n/g,"<WPPreserveNewline />")))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,((e,t)=>t?e:"<br />\n")),e=e.replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+r+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach((t=>{const[n,r]=t;e=e.replace(n,r)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}(a).trim()),{...e,blockName:r,attrs:o,innerHTML:a,innerBlocks:i}}function xs(e,t){let n=Es(e,t);n=function(e){const[t,n]=rs(e.blockName,e.attrs);return{...e,blockName:t,attrs:n}}(n);let r=Lr(n.blockName);r||(n=function(e){const t=Rr()||Mr(),n=ua(e,{isCommentDelimited:!1}),r=ua(e,{isCommentDelimited:!0});return{blockName:t,attrs:{originalName:e.blockName,originalContent:r,originalUndelimitedContent:n},innerHTML:e.blockName?r:e.innerHTML,innerBlocks:e.innerBlocks,innerContent:e.innerContent}}(n),r=Lr(n.blockName));const o=n.blockName===Mr()||n.blockName===Rr();if(!r||!n.innerHTML&&o)return;const i=n.innerBlocks.map((e=>xs(e,t))).filter((e=>!!e)),a=Yr(n.blockName,bs(r,n.innerHTML,n.attrs),i);a.originalContent=n.innerHTML;const s=function(e,t){const[n]=ns(e,t);if(n)return{...e,isValid:n,validationIssues:[]};const r=ws(e,t),[o,i]=ns(e,t);return{...r,isValid:o,validationIssues:i}}(a,r),{validationIssues:l}=s,c=function(e,t,n){const r=t.attrs,{deprecated:o}=n;if(!o||!o.length)return e;for(let i=0;i<o.length;i++){const{isEligible:a=_s}=o[i];if(e.isValid&&!a(r,e.innerBlocks,{blockNode:t,block:e}))continue;const s=Object.assign(ho(n,Tr),o[i]);let l={...e,attributes:bs(s,e.originalContent,r)},[c]=ns(l,s);if(c||(l=ws(l,s),[c]=ns(l,s)),!c)continue;let u=l.innerBlocks,d=l.attributes;const{migrate:f}=s;if(f){let t=f(d,e.innerBlocks);Array.isArray(t)||(t=[t]),[d=r,u=e.innerBlocks]=t}e={...e,attributes:d,innerBlocks:u,isValid:!0,validationIssues:[]}}return e}(s,n,r);return c.isValid||(c.__unstableBlockSource=e),s.isValid||!c.isValid||t?.__unstableSkipMigrationLogs?s.isValid||c.isValid||l.forEach((({log:e,args:t})=>e(...t))):(console.groupCollapsed("Updated Block: %s",r.name),console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",r.name,r,ha(r,c.attributes),c.originalContent),console.groupEnd()),c}function Ss(e,t){return Ii(e).reduce(((e,n)=>{const r=xs(n,t);return r&&e.push(r),e}),[])}function Cs(){return oo("from").filter((({type:e})=>"raw"===e)).map((e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)}))}function Is(e,t){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Array.from(n.body.children).flatMap((e=>{const n=ro(Cs(),(({isMatch:t})=>t(e)));if(!n)return Yr("core/html",bs("core/html",e.outerHTML));const{transform:r,blockName:o}=n;return r?r(e,t):Yr(o,bs(o,e.outerHTML))}))}function Ts(e){switch(e.nodeType){case e.TEXT_NODE:return/^[ \f\n\r\t\v\u00a0]*$/.test(e.nodeValue||"");case e.ELEMENT_NODE:return!e.hasAttributes()&&(!e.hasChildNodes()||Array.from(e.childNodes).every(Ts));default:return!0}}const Ps={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel","id"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}},Ns=["#text","br"];Object.keys(Ps).filter((e=>!Ns.includes(e))).forEach((e=>{const{[e]:t,...n}=Ps;Ps[e].children=n}));const Os={...Ps,audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","autoplay","mediagroup","loop","muted","controls","width","height"]}};function As(e){if("paste"!==e)return Os;const{u:t,abbr:n,data:r,time:o,wbr:i,bdi:a,bdo:s,...l}={...Os,ins:{children:Os.ins.children},del:{children:Os.del.children}};return l}function Ms(e){const t=e.nodeName.toLowerCase();return As().hasOwnProperty(t)||"span"===t}function Rs(e){const t=e.nodeName.toLowerCase();return Ps.hasOwnProperty(t)||"span"===t}function Bs(e){const t=document.implementation.createHTMLDocument(""),n=document.implementation.createHTMLDocument(""),r=t.body,o=n.body;for(r.innerHTML=e;r.firstChild;){const e=r.firstChild;e.nodeType===e.TEXT_NODE?Ts(e)?r.removeChild(e):(o.lastChild&&"P"===o.lastChild.nodeName||o.appendChild(n.createElement("P")),o.lastChild.appendChild(e)):e.nodeType===e.ELEMENT_NODE?"BR"===e.nodeName?(e.nextSibling&&"BR"===e.nextSibling.nodeName&&(o.appendChild(n.createElement("P")),r.removeChild(e.nextSibling)),o.lastChild&&"P"===o.lastChild.nodeName&&o.lastChild.hasChildNodes()?o.lastChild.appendChild(e):r.removeChild(e)):"P"===e.nodeName?Ts(e)?r.removeChild(e):o.appendChild(e):Ms(e)?(o.lastChild&&"P"===o.lastChild.nodeName||o.appendChild(n.createElement("P")),o.lastChild.appendChild(e)):o.appendChild(e):r.removeChild(e)}return o.innerHTML}function Ls(e,t){0}function Ds(e,t){Ls(t.parentNode),t.parentNode.insertBefore(e,t.nextSibling)}function zs(e){Ls(e.parentNode),e.parentNode.removeChild(e)}function Fs(e,t){Ls(e.parentNode),Ds(t,e.parentNode),zs(e)}function js(e,t){e.nodeType===e.COMMENT_NODE&&("nextpage"!==e.nodeValue?0===e.nodeValue.indexOf("more")&&function(e,t){const n=e.nodeValue.slice(4).trim();let r=e,o=!1;for(;r=r.nextSibling;)if(r.nodeType===r.COMMENT_NODE&&"noteaser"===r.nodeValue){o=!0,zs(r);break}const i=function(e,t,n){const r=n.createElement("wp-block");r.dataset.block="core/more",e&&(r.dataset.customText=e);t&&(r.dataset.noTeaser="");return r}(n,o,t);if(e.parentNode&&"P"===e.parentNode.nodeName&&1!==e.parentNode.childNodes.length){const n=Array.from(e.parentNode.childNodes),r=n.indexOf(e),o=e.parentNode.parentNode||t.body,a=(e,n)=>(e||(e=t.createElement("p")),e.appendChild(n),e);[n.slice(0,r).reduce(a,null),i,n.slice(r+1).reduce(a,null)].forEach((t=>t&&o.insertBefore(t,e.parentNode))),zs(e.parentNode)}else Fs(e,i)}(e,t):Fs(e,function(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t)))}function Vs(e){const t=e.parentNode;for(Ls();e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function Hs(e){return"OL"===e.nodeName||"UL"===e.nodeName}function $s(e){if(!Hs(e))return;const t=e,n=e.previousElementSibling;if(n&&n.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)n.appendChild(t.firstChild);t.parentNode.removeChild(t)}const r=e.parentNode;if(r&&"LI"===r.nodeName&&1===r.children.length&&!/\S/.test((o=r,Array.from(o.childNodes).map((({nodeValue:e=""})=>e)).join("")))){const e=r,n=e.previousElementSibling,o=e.parentNode;n?(n.appendChild(t),o.removeChild(e)):(o.parentNode.insertBefore(t,o),o.parentNode.removeChild(o))}var o;if(r&&Hs(r)){const t=e.previousElementSibling;t?t.appendChild(e):Vs(e)}}function Us(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Bs(e.innerHTML))}function Ws(e,t=e){const n=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(n,t),n.appendChild(e)}function Ks(e,t,n){if(!function(e,t){var n;const r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Rs(e)&&r in(null!==(n=t?.figure?.children)&&void 0!==n?n:{})}(e,n))return;let r=e;const o=e.parentNode;(function(e,t){var n;return e.nodeName.toLowerCase()in(null!==(n=t?.figure?.children?.a?.children)&&void 0!==n?n:{})})(e,n)&&"A"===o.nodeName&&1===o.childNodes.length&&(r=e.parentNode);const i=r.closest("p,div");i?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!i.textContent.trim())&&Ws(r,i):Ws(r,i):"BODY"===r.parentNode.nodeName&&Ws(r)}function Gs(e,t,n=0){const r=qs(e);r.lastIndex=n;const o=r.exec(t);if(!o)return;if("["===o[1]&&"]"===o[7])return Gs(e,t,r.lastIndex);const i={index:o.index,content:o[0],shortcode:Xs(o)};return o[1]&&(i.content=i.content.slice(1),i.index++),o[7]&&(i.content=i.content.slice(0,-1)),i}function qs(e){return new RegExp("\\[(\\[?)("+e+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const Ys=Cn((e=>{const t={},n=[],r=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;let o;for(e=e.replace(/[\u00a0\u200b]/g," ");o=r.exec(e);)o[1]?t[o[1].toLowerCase()]=o[2]:o[3]?t[o[3].toLowerCase()]=o[4]:o[5]?t[o[5].toLowerCase()]=o[6]:o[7]?n.push(o[7]):o[8]?n.push(o[8]):o[9]&&n.push(o[9]);return{named:t,numeric:n}}));function Xs(e){let t;return t=e[4]?"self-closing":e[6]?"closed":"single",new Zs({tag:e[2],attrs:e[3],type:t,content:e[5]})}const Zs=Object.assign((function(e){const{tag:t,attrs:n,type:r,content:o}=e||{};if(Object.assign(this,{tag:t,type:r,content:o}),this.attrs={named:{},numeric:[]},!n)return;const i=["named","numeric"];"string"==typeof n?this.attrs=Ys(n):n.length===i.length&&i.every(((e,t)=>e===n[t]))?this.attrs=n:Object.entries(n).forEach((([e,t])=>{this.set(e,t)}))}),{next:Gs,replace:function(e,t,n){return t.replace(qs(e),(function(e,t,r,o,i,a,s,l){if("["===t&&"]"===l)return e;const c=n(Xs(arguments));return c||""===c?t+c+l:e}))},string:function(e){return new Zs(e).string()},regexp:qs,attrs:Ys,fromMatch:Xs});Object.assign(Zs.prototype,{get(e){return this.attrs["number"==typeof e?"numeric":"named"][e]},set(e,t){return this.attrs["number"==typeof e?"numeric":"named"][e]=t,this},string(){let e="["+this.tag;return this.attrs.numeric.forEach((t=>{/\s/.test(t)?e+=' "'+t+'"':e+=" "+t})),Object.entries(this.attrs.named).forEach((([t,n])=>{e+=" "+t+'="'+n+'"'})),"single"===this.type?e+"]":"self-closing"===this.type?e+" /]":(e+="]",this.content&&(e+=this.content),e+"[/"+this.tag+"]")}});const Qs=e=>Array.isArray(e)?e:[e];const Js=function e(t,n=0,r=[]){const o=ro(oo("from"),(e=>-1===r.indexOf(e.blockName)&&"shortcode"===e.type&&Qs(e.tag).some((e=>qs(e).test(t)))));if(!o)return[t];const i=Qs(o.tag).find((e=>qs(e).test(t)));let a;const s=n;if(a=Gs(i,t,n)){n=a.index+a.content.length;const i=t.substr(0,a.index),l=t.substr(n);if(!(a.shortcode.content?.includes("<")||/(\n|<p>)\s*$/.test(i)&&/^\s*(\n|<\/p>)/.test(l)))return e(t,n);if(o.isMatch&&!o.isMatch(a.shortcode.attrs))return e(t,s,[...r,o.blockName]);let c=[];if("function"==typeof o.transform)c=[].concat(o.transform(a.shortcode.attrs,a)),c=c.map((e=>(e.originalContent=a.shortcode.content,ws(e,Lr(e.name)))));else{const e=Object.fromEntries(Object.entries(o.attributes).filter((([,e])=>e.shortcode)).map((([e,t])=>[e,t.shortcode(a.shortcode.attrs,a)]))),n=Lr(o.blockName);if(!n)return[t];const r={...n,attributes:o.attributes};let i=Yr(o.blockName,bs(r,a.shortcode.content,e));i.originalContent=a.shortcode.content,i=ws(i,r),c=[i]}return[...e(i),...c,...e(l)]}return[t]};var el=o(9996),tl=o.n(el);const nl=e=>(t,n)=>{switch(e){case"children":return"*"===n||"*"===t?"*":{...n,...t};case"attributes":case"require":return[...n||[],...t||[]];case"isMatch":if(!n||!t)return;return(...e)=>n(...e)||t(...e)}return tl()(n,t,{customMerge:nl,clone:!1})};function rl(e){return function(e,t){const n={phrasingContentSchema:As(t),isPaste:"paste"===t},r=e.map((({isMatch:e,blockName:t,schema:r})=>{const o=Fr(t,"anchor");return r="function"==typeof r?r(n):r,o||e?r?Object.fromEntries(Object.entries(r).map((([t,n])=>{let r=n.attributes||[];return o&&(r=[...r,"id"]),[t,{...n,attributes:r,isMatch:e||void 0}]}))):{}:r}));return tl().all(r,{customMerge:nl,clone:!1})}(Cs(),e)}function ol(e,t,n,r){Array.from(e).forEach((e=>{ol(e.childNodes,t,n,r),t.forEach((t=>{n.contains(e)&&t(e,n,r)}))}))}function il(e,t=[],n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,ol(r.body.childNodes,t,r,n),r.body.innerHTML}function al(e,t){const n=e[`${t}Sibling`];if(n&&Ms(n))return n;const{parentNode:r}=e;return r&&Ms(r)?al(r,t):void 0}function sl({HTML:e=""}){if(-1!==e.indexOf("\x3c!-- wp:"))return Ss(e);const t=Js(e),n=rl();return t.map((e=>{if("string"!=typeof e)return e;return Is(e=Bs(e=il(e,[$s,js,Ks,Us],n)),sl)})).flat().filter(Boolean)}const ll=()=>{};function cl(e,t,n,r){Array.from(e).forEach((e=>{const o=e.nodeName.toLowerCase();if(!n.hasOwnProperty(o)||n[o].isMatch&&!n[o].isMatch?.(e))cl(e.childNodes,t,n,r),r&&!Ms(e)&&e.nextElementSibling&&Ds(t.createElement("br"),e),Vs(e);else if(function(e){return!!e&&e.nodeType===e.ELEMENT_NODE}(e)){const{attributes:i=[],classes:a=[],children:s,require:l=[],allowEmpty:c}=n[o];if(s&&!c&&Ts(e))return void zs(e);if(e.hasAttributes()&&(Array.from(e.attributes).forEach((({name:t})=>{"class"===t||i.includes(t)||e.removeAttribute(t)})),e.classList&&e.classList.length)){const t=a.map((e=>"string"==typeof e?t=>t===e:e instanceof RegExp?t=>e.test(t):ll));Array.from(e.classList).forEach((n=>{t.some((e=>e(n)))||e.classList.remove(n)})),e.classList.length||e.removeAttribute("class")}if(e.hasChildNodes()){if("*"===s)return;if(s)l.length&&!e.querySelector(l.join(","))?(cl(e.childNodes,t,n,r),Vs(e)):e.parentNode&&"BODY"===e.parentNode.nodeName&&Ms(e)?(cl(e.childNodes,t,n,r),Array.from(e.childNodes).some((e=>!Ms(e)))&&Vs(e)):cl(e.childNodes,t,s,r);else for(;e.firstChild;)zs(e.firstChild)}}}))}function ul(e,t,n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,cl(r.body.childNodes,r,t,n),r.body.innerHTML}function dl(e){e.nodeType===e.COMMENT_NODE&&zs(e)}function fl(e,t){return e.every((e=>function(e,t){if(Rs(e))return!0;if(!t)return!1;const n=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((e=>0===[n,t].filter((t=>!e.includes(t))).length))}(e,t)&&fl(Array.from(e.children),t)))}function pl(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function ml(e,t){Ls(t.parentNode),t.parentNode.insertBefore(e,t),e.appendChild(t)}function hl(e,t){const n=e.ownerDocument.createElement(t);for(;e.firstChild;)n.appendChild(e.firstChild);return Ls(e.parentNode),e.parentNode.replaceChild(n,e),n}function gl(e,t){if("SPAN"===e.nodeName&&e.style){const{fontWeight:n,fontStyle:r,textDecorationLine:o,textDecoration:i,verticalAlign:a}=e.style;"bold"!==n&&"700"!==n||ml(t.createElement("strong"),e),"italic"===r&&ml(t.createElement("em"),e),("line-through"===o||i.includes("line-through"))&&ml(t.createElement("s"),e),"super"===a?ml(t.createElement("sup"),e):"sub"===a&&ml(t.createElement("sub"),e)}else"B"===e.nodeName?e=hl(e,"strong"):"I"===e.nodeName?e=hl(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")),e.name&&!e.id&&(e.id=e.name),e.id&&!e.ownerDocument.querySelector(`[href="#${e.id}"]`)&&e.removeAttribute("id"))}function vl(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}const{parseInt:bl}=window;function yl(e){return"OL"===e.nodeName||"UL"===e.nodeName}function kl(e,t){if("P"!==e.nodeName)return;const n=e.getAttribute("style");if(!n)return;if(-1===n.indexOf("mso-list"))return;const r=/mso-list\s*:[^;]+level([0-9]+)/i.exec(n);if(!r)return;let o=bl(r[1],10)-1||0;const i=e.previousElementSibling;if(!i||!yl(i)){const n=e.textContent.trim().slice(0,1),r=/[1iIaA]/.test(n),o=t.createElement(r?"ol":"ul");r&&o.setAttribute("type",n),e.parentNode.insertBefore(o,e)}const a=e.previousElementSibling,s=a.nodeName,l=t.createElement("li");let c=a;for(e.removeChild(e.firstChild);e.firstChild;)l.appendChild(e.firstChild);for(;o--;)c=c.lastChild||c,yl(c)&&(c=c.lastChild||c);yl(c)||(c=c.appendChild(t.createElement(s))),c.appendChild(l),e.parentNode.removeChild(e)}const wl={};function _l(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}const{atob:El,File:xl}=window;function Sl(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){const[t,n]=e.src.split(","),[r]=t.slice(5).split(";");if(!n||!r)return void(e.src="");let o;try{o=El(n)}catch(t){return void(e.src="")}const i=new Uint8Array(o.length);for(let e=0;e<i.length;e++)i[e]=o.charCodeAt(e);const a=r.replace("/","."),s=new xl([i],a,{type:r});e.src=function(e){const t=window.URL.createObjectURL(e);return wl[t]=e,t}(s)}1!==e.height&&1!==e.width||e.parentNode.removeChild(e)}}function Cl(e){"DIV"===e.nodeName&&(e.innerHTML=Bs(e.innerHTML))}var Il=o(3787);const Tl=new(o.n(Il)().Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function Pl(e){if("IFRAME"===e.nodeName){const t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Nl(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&("B"===e.tagName?Vs(e):e.removeAttribute("id"))}function Ol(e){if(e.nodeType!==e.TEXT_NODE)return;let t=e;for(;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;let n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){const t=al(e,"previous");t&&"BR"!==t.nodeName&&" "!==t.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){const t=al(e,"next");(!t||"BR"===t.nodeName||t.nodeType===t.TEXT_NODE&&function(e){return" "===e||"\r"===e||"\n"===e||"\t"===e}(t.textContent[0]))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}function Al(e){"BR"===e.nodeName&&(al(e,"next")||e.parentNode.removeChild(e))}function Ml(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Rl(e){if("SPAN"!==e.nodeName)return;if("paragraph-break"!==e.getAttribute("data-stringify-type"))return;const{parentNode:t}=e;t.insertBefore(e.ownerDocument.createElement("br"),e),t.insertBefore(e.ownerDocument.createElement("br"),e),t.removeChild(e)}const{console:Bl}=window;function Ll(e,t){return e=ul(e=il(e,[vl,Nl,gl,dl]),As("paste"),{inline:!0}),t||(e=il(e,[Ol,Al])),Bl.log("Processed inline HTML:\n\n",e),e}function Dl({HTML:e="",plainText:t="",mode:n="AUTO",tagName:r,preserveWhiteSpace:o}){if(e=(e=(e=e.replace(/<meta[^>]+>/g,"")).replace(/^\s*<html[^>]*>\s*<body[^>]*>(?:\s*<!--\s*StartFragment\s*-->)?/i,"")).replace(/(?:<!--\s*EndFragment\s*-->\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==n){const n=e||t;if(-1!==n.indexOf("\x3c!-- wp:"))return Ss(n)}String.prototype.normalize&&(e=e.normalize()),e=il(e,[Rl]);const i=t&&(!e||function(e){return!/<(?!br[ />])/i.test(e)}(e));var a;i&&(e=t,/^\s+$/.test(t)||(a=e,e=Tl.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,((e,t,n,r)=>`${t}\n${n}\n${r}`))}(function(e){return e.replace(/(^|\n)•( +)/g,"$1*$2")}(a)))));const s=Js(e),l=s.length>1;if(i&&!l&&"AUTO"===n&&-1===t.indexOf("\n")&&0!==t.indexOf("<p>")&&0===e.indexOf("<p>")&&(n="INLINE"),"INLINE"===n)return Ll(e,o);if("AUTO"===n&&!l&&function(e,t){const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=Array.from(n.body.children);return!r.some(pl)&&fl(r,t)}(e,r))return Ll(e,o);const c=As("paste"),u=rl("paste"),d=s.map((e=>{if("string"!=typeof e)return e;const t=[Nl,kl,vl,$s,Sl,gl,js,dl,Pl,Ks,Us,Cl],n={...u,...c};return e=il(e,t,u),e=il(e=Bs(e=ul(e,n)),[Ol,Al,Ml],u),Bl.log("Processed HTML piece:\n\n",e),Is(e,Dl)})).flat().filter(Boolean);if("AUTO"===n&&1===d.length&&Fr(d[0].name,"__unstablePasteTextInline",!1)){const e=/^[\n]+|[\n]+$/g,n=t.replace(e,"");if(""!==n&&-1===n.indexOf("\n"))return ul(ga(d[0]),c).replace(e,"")}return d}function zl(e=[],t=[]){return e.length===t.length&&t.every((([t,,n],r)=>{const o=e[r];return t===o.name&&zl(o.innerBlocks,n)}))}function Fl(e=[],t){return t?t.map((([t,n,r],o)=>{var i;const a=e[o];if(a&&a.name===t){const e=Fl(a.innerBlocks,r);return{...a,innerBlocks:e}}const s=Lr(t),l=(e,t)=>t?Object.fromEntries(Object.entries(t).map((([t,n])=>[t,c(e[t],n)]))):{},c=(e,t)=>{return n=e,"html"===n?.source&&Array.isArray(t)?sa(t):(e=>"query"===e?.source)(e)&&t?t.map((t=>l(e.query,t))):t;var n},u=l(null!==(i=s?.attributes)&&void 0!==i?i:{},n);let[d,f]=rs(t,u);return void 0===Lr(d)&&(f={originalName:t,originalContent:"",originalUndelimitedContent:""},d="core/missing"),Yr(d,f,Fl([],r))})):e}jt("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&Fr(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var jl=o(4184),Vl=o.n(jl);function Hl(e,t){return n=>{const r=e(n);return r.displayName=$l(t,n),r}}const $l=(e,t)=>{const n=t.displayName||t.name||"Component";return`${En(null!=e?e:"")}(${n})`},Ul=new WeakMap;const Wl=function(e,t,n){return(0,Sr.useMemo)((()=>{if(n)return n;const r=function(e){const t=Ul.get(e)||0;return Ul.set(e,t+1),t}(e);return t?`${t}-${r}`:r}),[e,n,t])};var Kl=Object.defineProperty,Gl=Object.defineProperties,ql=Object.getOwnPropertyDescriptors,Yl=Object.getOwnPropertySymbols,Xl=Object.prototype.hasOwnProperty,Zl=Object.prototype.propertyIsEnumerable,Ql=(e,t,n)=>t in e?Kl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jl=(e,t)=>{for(var n in t||(t={}))Xl.call(t,n)&&Ql(e,n,t[n]);if(Yl)for(var n of Yl(t))Zl.call(t,n)&&Ql(e,n,t[n]);return e},ec=(e,t)=>Gl(e,ql(t)),tc=(e,t)=>{var n={};for(var r in e)Xl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Yl)for(var r of Yl(e))t.indexOf(r)<0&&Zl.call(e,r)&&(n[r]=e[r]);return n},nc=Object.defineProperty,rc=Object.defineProperties,oc=Object.getOwnPropertyDescriptors,ic=Object.getOwnPropertySymbols,ac=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,lc=(e,t,n)=>t in e?nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cc=(e,t)=>{for(var n in t||(t={}))ac.call(t,n)&&lc(e,n,t[n]);if(ic)for(var n of ic(t))sc.call(t,n)&&lc(e,n,t[n]);return e},uc=(e,t)=>rc(e,oc(t)),dc=(e,t)=>{var n={};for(var r in e)ac.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ic)for(var r of ic(e))t.indexOf(r)<0&&sc.call(e,r)&&(n[r]=e[r]);return n};function fc(...e){}function pc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mc(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function hc(e){return e}function gc(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function vc(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function bc(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function yc(...e){for(const t of e)if(void 0!==t)return t}function kc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function wc(e){return function(e){return!!e&&!!(0,Sr.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var _c,Ec="undefined"!=typeof window&&!!(null==(_c=window.document)?void 0:_c.createElement);function xc(e){return e?e.ownerDocument||e:document}function Sc(e,t=!1){const{activeElement:n}=xc(e);if(!(null==n?void 0:n.nodeName))return null;if(Ic(n)&&n.contentDocument)return Sc(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=xc(n).getElementById(e);if(t)return t}}return n}function Cc(e,t){return e===t||e.contains(t)}function Ic(e){return"IFRAME"===e.tagName}function Tc(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Pc.indexOf(e.type)}var Pc=["button","color","file","image","reset","submit"];function Nc(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Oc(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function Ac(e,t){if("closest"in e)return e.closest(t);do{if(Nc(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Mc(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Rc(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return Rc(e.parentElement)||document.scrollingElement||document.body}function Bc(e){return Boolean(e.currentTarget&&!Cc(e.currentTarget,e.target))}function Lc(e){return e.target===e.currentTarget}function Dc(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=uc(cc({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function zc(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function Fc(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Cc(n,r)}function jc(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function Vc(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(Vc(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var Hc=Jl({},Cr),$c=Hc.useId,Uc=(Hc.useDeferredValue,Hc.useInsertionEffect),Wc=Ec?Sr.useLayoutEffect:Sr.useEffect;function Kc(e){const t=(0,Sr.useRef)(e);return Wc((()=>{t.current=e})),t}function Gc(e){const t=(0,Sr.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Uc?Uc((()=>{t.current=e})):t.current=e,(0,Sr.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function qc(...e){return(0,Sr.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>kc(e,t)))}}),e)}function Yc(e){if($c){const t=$c();return e||t}const[t,n]=(0,Sr.useState)(e);return Wc((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Xc(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,Sr.useState)((()=>n(t)));return Wc((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function Zc(e,t){const n=(0,Sr.useRef)(!1);(0,Sr.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,Sr.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function Qc(){return(0,Sr.useReducer)((()=>[]),[])}function Jc(e){return Gc("function"==typeof e?e:()=>e)}function eu(e,t,n=[]){const r=(0,Sr.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return ec(Jl({},e),{wrapElement:r})}function tu(e=!1,t){const[n,r]=(0,Sr.useState)(null);return{portalRef:qc(r,t),portalNode:n,domReady:!e||n}}var nu=!1,ru=0,ou=0;function iu(e){(function(e){const t=e.movementX||e.screenX-ru,n=e.movementY||e.screenY-ou;return ru=e.screenX,ou=e.screenY,t||n||!1})(e)&&(nu=!0)}function au(){nu=!1}function su(e,t){const n=e.__unstableInternals;return gc(n,"Invalid store"),n[t]}function lu(e,...t){let n=e,r=n,o=Symbol(),i=!1;const a=new Set,s=new Set,l=new Set,c=new Set,u=new WeakMap,d=new WeakMap,f=(e,t,n=l)=>(n.add(t),d.set(t,e),()=>{var e;null==(e=u.get(t))||e(),u.delete(t),d.delete(t),n.delete(t)}),p=(e,i,s=!1)=>{if(!pc(n,e))return;const f=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(i,n[e]);if(f===n[e])return;s||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,f)}));const p=n;n=uc(cc({},n),{[e]:f});const m=Symbol();o=m,a.add(e);const h=(t,r,o)=>{var i;const a=d.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=u.get(t))||i(),u.set(t,t(n,r)))};l.forEach((e=>{h(e,p)})),queueMicrotask((()=>{if(o!==m)return;const e=n;c.forEach((e=>{h(e,r,a)})),r=e,a.clear()}))},m={getState:()=>n,setState:p,__unstableInternals:{setup:e=>(s.add(e),()=>s.delete(e)),init:()=>{if(i)return fc;if(!t.length)return fc;i=!0;const e=(r=n,Object.keys(r)).map((e=>mc(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&pc(r,e))return fu(t,[e],(t=>p(e,t[e],!0)))})))));var r;const o=[];s.forEach((e=>o.push(e())));const a=t.map(uu);return mc(...e,...o,...a,(()=>{i=!1}))},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(u.set(t,t(n,n)),f(e,t)),batch:(e,t)=>(u.set(t,t(n,r)),f(e,t,c)),pick:e=>lu(function(e,t){const n={};for(const r of t)pc(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>lu(function(e,t){const n=cc({},e);for(const e of t)pc(n,e)&&delete n[e];return n}(n,e),m)}};return m}function cu(e,...t){if(e)return su(e,"setup")(...t)}function uu(e,...t){if(e)return su(e,"init")(...t)}function du(e,...t){if(e)return su(e,"subscribe")(...t)}function fu(e,...t){if(e)return su(e,"sync")(...t)}function pu(e,...t){if(e)return su(e,"batch")(...t)}function mu(e,...t){if(e)return su(e,"omit")(...t)}function hu(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?cc(cc({},e),r):e}),{});return lu(t,...e)}var gu=o(1688),{useSyncExternalStore:vu}=gu,bu=()=>()=>{};function yu(e,t=hc){const n=Sr.useCallback((t=>e?du(e,null,t):bu()),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&pc(o,n)?o[n]:void 0};return vu(n,r,r)}function ku(e,t,n,r){const o=pc(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=Kc({value:o,setValue:i}),s=Sr.useRef(!0);Wc((()=>fu(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&(s.current=!1,o(e[n]))}))),[e,n]),Wc((()=>{if(void 0!==o)return s.current=!0,fu(e,[n],(()=>{void 0!==o&&s.current&&e.setState(n,o)}))}))}function wu(e,t){const[n,r]=Sr.useState((()=>e(t)));Wc((()=>uu(n)),[n]);const o=Sr.useCallback((e=>yu(n,e)),[n]);return[Sr.useMemo((()=>ec(Jl({},n),{useState:o})),[n,o]),Gc((()=>{r((n=>e(Jl(Jl({},t),n.getState()))))}))]}function _u(e={}){const t=hu(e.store,mu(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=yc(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=yc(e.animated,null==n?void 0:n.animated,!1),i=lu({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:yc(null==n?void 0:n.contentElement,null),disclosureElement:yc(null==n?void 0:n.disclosureElement,null)},t);return cu(i,(()=>fu(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),cu(i,(()=>du(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),cu(i,(()=>fu(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),uc(cc({},i),{setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function Eu(e,t,n){return Zc(t,[n.store,n.disclosure]),ku(e,n,"open","setOpen"),ku(e,n,"mounted","setMounted"),ku(e,n,"animated"),e}function xu(e={}){const[t,n]=wu(_u,e);return Eu(t,n,e)}function Su(e={}){return _u(e)}function Cu(e,t,n){return Eu(e,t,n)}function Iu(e,t,n){return Zc(t,[n.popover]),ku(e=Cu(e,t,n),n,"placement"),e}function Tu(e,t,n){return ku(e=Iu(e,t,n),n,"timeout"),ku(e,n,"showTimeout"),ku(e,n,"hideTimeout"),e}function Pu(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=dc(t,["popover"]);const o=hu(r.store,mu(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Su(uc(cc({},r),{store:o})),s=yc(r.placement,null==i?void 0:i.placement,"bottom"),l=lu(uc(cc({},a.getState()),{placement:s,currentPlacement:s,anchorElement:yc(null==i?void 0:i.anchorElement,null),popoverElement:yc(null==i?void 0:i.popoverElement,null),arrowElement:yc(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return uc(cc(cc({},a),l),{setAnchorElement:e=>l.setState("anchorElement",e),setPopoverElement:e=>l.setState("popoverElement",e),setArrowElement:e=>l.setState("arrowElement",e),render:()=>l.setState("rendered",Symbol("rendered"))})}(uc(cc({},e),{placement:yc(e.placement,null==n?void 0:n.placement,"bottom")})),o=yc(e.timeout,null==n?void 0:n.timeout,500),i=lu(uc(cc({},r.getState()),{timeout:o,showTimeout:yc(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:yc(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:yc(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return uc(cc(cc({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function Nu(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Pu(uc(cc({},e),{placement:yc(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:yc(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=lu(uc(cc({},r.getState()),{type:yc(e.type,null==n?void 0:n.type,"description"),skipTimeout:yc(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return cc(cc({},r),o)}function Ou(e={}){const[t,n]=wu(Nu,e);return function(e,t,n){return ku(e=Tu(e,t,n),n,"type"),ku(e,n,"skipTimeout"),e}(t,n,e)}var Au=o(5893);function Mu(e){return Sr.forwardRef(((t,n)=>e(Jl({ref:n},t))))}function Ru(e){const t=Mu(e);return Sr.memo(t)}function Bu(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=tc(n,["as","wrapElement","render"]);let s;const l=qc(t.ref,wc(i));if(r&&"string"!=typeof r)s=(0,Au.jsx)(r,ec(Jl({},a),{render:i}));else if(Sr.isValidElement(i)){const e=ec(Jl({},i.props),{ref:l});s=Sr.cloneElement(i,function(e,t){const n=Jl({},e);for(const r in t){if(!pc(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?Jl(Jl({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(a,e))}else if(i)s=i(a);else if(function(e){return"function"==typeof e}(t.children)){0;const e=a,{children:n}=e,r=tc(e,["children"]);s=t.children(r)}else s=r?(0,Au.jsx)(r,Jl({},a)):(0,Au.jsx)(e,Jl({},a));return o?o(s):s}function Lu(e){return(t={})=>{const n=e(t),r={};for(const e in n)pc(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function Du(e=[],t=[]){const n=Sr.createContext(void 0),r=Sr.createContext(void 0),o=()=>Sr.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,Au.jsx)(n,ec(Jl({},t),{children:e}))),(0,Au.jsx)(n.Provider,Jl({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=Sr.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=Sr.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,Au.jsx)(i,ec(Jl({},e),{children:t.reduceRight(((t,n)=>(0,Au.jsx)(n,ec(Jl({},e),{children:t}))),(0,Au.jsx)(r.Provider,Jl({},e)))}))}}var zu=Du(),Fu=(zu.useContext,zu.useScopedContext,zu.useProviderContext),ju=Du([zu.ContextProvider],[zu.ScopedContextProvider]),Vu=(ju.useContext,ju.useScopedContext,ju.useProviderContext),Hu=ju.ContextProvider,$u=ju.ScopedContextProvider,Uu=(0,Sr.createContext)(void 0),Wu=(0,Sr.createContext)(void 0),Ku=Du([Hu],[$u]),Gu=(Ku.useContext,Ku.useScopedContext,Ku.useProviderContext),qu=Ku.ContextProvider,Yu=Ku.ScopedContextProvider,Xu=Du([qu],[Yu]),Zu=(Xu.useContext,Xu.useScopedContext,Xu.useProviderContext),Qu=Xu.ContextProvider,Ju=Xu.ScopedContextProvider,ed=(0,Sr.createContext)(!0),td="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function nd(e){return!!Nc(e,td)&&(!!Oc(e)&&!Ac(e,"[inert]"))}function rd(e){if(!nd(e))return!1;if(function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=Sc(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function od(e,t){const n=Array.from(e.querySelectorAll(td));t&&n.unshift(e);const r=n.filter(nd);return r.forEach(((e,t)=>{if(Ic(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...od(n))}})),r}function id(e,t,n){const r=Array.from(e.querySelectorAll(td)),o=r.filter(rd);return t&&rd(e)&&o.unshift(e),o.forEach(((e,t)=>{if(Ic(e)&&e.contentDocument){const r=id(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function ad(e,t,n){const[r]=id(e,t,n);return r||null}function sd(e,t){return function(e,t,n,r){const o=Sc(e),i=od(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(rd)||(n?i.find(rd):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function ld(e,t){return function(e,t,n,r){const o=Sc(e),i=od(e,t).reverse(),a=i.indexOf(o),s=i.slice(a+1);return s.find(rd)||(n?i.find(rd):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function cd(e){const t=Sc(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ud(e){const t=Sc(e);if(!t)return!1;if(Cc(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function dd(e){!ud(e)&&nd(e)&&e.focus()}function fd(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function pd(){return!!Ec&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function md(){return Ec&&pd()&&/apple/i.test(navigator.vendor)}function hd(){return Ec&&navigator.platform.startsWith("Mac")&&!(Ec&&navigator.maxTouchPoints)}var gd=md(),vd=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function bd(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function yd(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function kd(e,t){return Gc((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var wd=!0;function _d(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(wd=!1))}function Ed(e){e.metaKey||e.ctrlKey||e.altKey||(wd=!0)}var xd=Lu((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=tc(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,Sr.useRef)(null);(0,Sr.useEffect)((()=>{n&&(Vc("mousedown",_d,!0),Vc("keydown",Ed,!0))}),[n]),gd&&(0,Sr.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!bd(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&bc(a),c=!!l&&!r,[u,d]=(0,Sr.useState)(!1);(0,Sr.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,Sr.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{nd(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const f=kd(a.onKeyPressCapture,l),p=kd(a.onMouseDownCapture,l),m=kd(a.onClickCapture,l),h=a.onMouseDown,g=Gc((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!gd)return;if(Bc(e))return;if(!Tc(t)&&!bd(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),jc(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||dd(t)}))})),v=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&cd(r)&&(null==i||i(e),e.defaultPrevented||d(!0))},b=a.onKeyDownCapture,y=Gc((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!Lc(e))return;const t=e.currentTarget;queueMicrotask((()=>v(e,t)))})),k=a.onFocusCapture,w=Gc((e=>{if(null==k||k(e),e.defaultPrevented)return;if(!n)return;if(!Lc(e))return void d(!1);const t=e.currentTarget,r=()=>v(e,t);wd||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:vd.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):jc(e.target,"focusout",r)})),_=a.onBlur,E=Gc((e=>{null==_||_(e),n&&Fc(e)&&d(!1)})),x=(0,Sr.useContext)(ed),S=Gc((e=>{n&&o&&e&&x&&queueMicrotask((()=>{cd(e)||nd(e)&&e.focus()}))})),C=Xc(s,a.as),I=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(C),T=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(C),P=c?Jl({pointerEvents:"none"},a.style):a.style;return a=ec(Jl({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:qc(s,S,a.ref),style:P,tabIndex:yd(n,c,I,T,a.tabIndex),disabled:!(!T||!c)||void 0,contentEditable:l?void 0:a.contentEditable,onKeyPressCapture:f,onClickCapture:m,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:y,onFocusCapture:w,onBlur:E})}));Mu((e=>Bu("div",e=xd(e))));var Sd=Lu((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=tc(t,["store","showOnHover"]);const i=Zu();gc(n=n||i,!1);const a=n.useState("mounted"),s=bc(o),l=(0,Sr.useRef)(0);(0,Sr.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,Sr.useEffect)((()=>Vc("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(l.current),l.current=0)}),!0)),[n]);const c=o.onMouseMove,u=Jc(r),d=((0,Sr.useEffect)((()=>{Vc("mousemove",iu,!0),Vc("mousedown",au,!0),Vc("mouseup",au,!0),Vc("keydown",au,!0),Vc("scroll",au,!0)}),[]),Gc((()=>nu))),f=Gc((e=>{if(null==n||n.setAnchorElement(e.currentTarget),null==c||c(e),s)return;if(e.defaultPrevented)return;if(l.current)return;if(!d())return;if(!n)return;if(!u(e))return;const{showTimeout:t,timeout:r}=n.getState();l.current=window.setTimeout((()=>{l.current=0,d()&&(null==n||n.show())}),null!=t?t:r)}));return o=ec(Jl({},o),{ref:qc(n.setAnchorElement,a?n.setDisclosureElement:void 0,o.ref),onMouseMove:f}),o=xd(o)}));Mu((e=>Bu("a",Sd(e))));var Cd=Du([Qu],[Ju]),Id=(Cd.useContext,Cd.useScopedContext,Cd.useProviderContext),Td=(Cd.ContextProvider,Cd.ScopedContextProvider),Pd=lu({activeStore:null}),Nd=Lu((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=tc(t,["store","showOnHover"]);const i=Id();gc(n=n||i,!1);const a=(0,Sr.useRef)(!1);(0,Sr.useEffect)((()=>fu(n,["mounted"],(e=>{e.mounted||(a.current=!1)}))),[n]),(0,Sr.useEffect)((()=>fu(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=Pd.getState();return e!==n&&(null==e||e.hide()),Pd.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=Pd.getState();e===n&&Pd.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const s=o.onMouseEnter,l=Gc((e=>{null==s||s(e),a.current=!0})),c=o.onFocusVisible,u=Gc((e=>{null==c||c(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),d=o.onBlur,f=Gc((e=>{if(null==d||d(e),e.defaultPrevented)return;const{activeStore:t}=Pd.getState();t===n&&Pd.setState("activeStore",null)})),p=n.useState("type"),m=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=ec(Jl({"aria-labelledby":"label"===p?m:void 0,"aria-describedby":"description"===p?m:void 0},o),{onMouseEnter:l,onFocusVisible:u,onBlur:f}),o=Sd(Jl({store:n,showOnHover:e=>{if(!a.current)return!1;if(vc(r,e))return!1;const{activeStore:t}=Pd.getState();return!t||(null==n||n.show(),!1)}},o))})),Od=Mu((e=>Bu("div",Nd(e))));function Ad(e){return[e.clientX,e.clientY]}function Md(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,a=e-1;i<e;a=i++){const[s,l]=t[i],[c,u]=t[a],[,d]=t[0===a?e-1:a-1]||[0,0],f=(l-u)*(n-s)-(s-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===f)return!0;f>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===f)return!0;f<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r==l&&(n>=c&&n<=s||n>=s&&n<=c))return!0}return o}function Rd(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:a}=n,[s,l]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[a,s]=e;return[a<i?"left":a>r?"right":null,s<n?"top":s>o?"bottom":null]}(t,n),c=[t];return s?("top"!==l&&c.push(["left"===s?a:o,r]),c.push(["left"===s?o:a,r]),c.push(["left"===s?o:a,i]),"bottom"!==l&&c.push(["left"===s?a:o,i])):"top"===l?(c.push([a,r]),c.push([a,i]),c.push([o,i]),c.push([o,r])):(c.push([a,i]),c.push([a,r]),c.push([o,r]),c.push([o,i])),c}function Bd(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||("true"===n||(!t.length||t.some((e=>n===e)))))}var Ld=new WeakMap;function Dd(e,t,n){Ld.has(e)||Ld.set(e,new Map);const r=Ld.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),a=()=>{i(),o(),r.delete(t)};return r.set(t,a),()=>{r.get(t)===a&&(i(),r.set(t,o))}}function zd(e,t,n){return Dd(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function Fd(e,t,n){return Dd(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function jd(e,t){if(!e)return()=>{};return Dd(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Vd=["SCRIPT","STYLE"];function Hd(e){return`__ariakit-dialog-snapshot-${e}`}function $d(e,t,n){return!Vd.includes(t.tagName)&&(!!function(e,t){const n=xc(t),r=Hd(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&Cc(t,e))))}function Ud(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&(e!==o&&e.contains(o)))),a=xc(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)$d(e,r,t)&&n(r,s);o=o.parentElement}}}function Wd(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function Kd(e,t=""){return mc(Fd(e,Wd("",!0),!0),Fd(e,Wd(t,!0),!0))}function Gd(e,t){if(e[Wd(t,!0)])return!0;const n=Wd(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function qd(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Ud(e,t,(t=>{Bd(t,...r)||n.unshift(function(e,t=""){return mc(Fd(e,Wd(),!0),Fd(e,Wd(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(Kd(t,e))}));return()=>{n.forEach((e=>e()))}}Lu((e=>e));var Yd=Mu((e=>Bu("div",e)));function Xd(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Zd(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function Qd(e,t,n){return!(n||!1===t||e&&!t)}Object.assign(Yd,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","textarea","ul","svg"].reduce(((e,t)=>(e[t]=Mu((e=>Bu(t,e))),e)),{}));var Jd=Lu((e=>{var t=e,{store:n,alwaysVisible:r}=t,o=tc(t,["store","alwaysVisible"]);const i=Fu();gc(n=n||i,!1);const a=Yc(o.id),[s,l]=(0,Sr.useState)(null),c=n.useState("open"),u=n.useState("mounted"),d=n.useState("animated"),f=n.useState("contentElement");Wc((()=>{if(d){if(null==f?void 0:f.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{l(c?"enter":"leave")}));l(null)}}),[d,f,c]),Wc((()=>{if(!n)return;if(!d)return;if(!f)return;if(!s)return;if("enter"===s&&!c)return;if("leave"===s&&c)return;if("number"==typeof d){return Xd(d,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(f),i=Zd(r,o)+Zd(e,t);return i?Xd(i,n.stopAnimation):void 0}),[n,d,f,c,s]);const p=Qd(u,(o=eu(o,(e=>(0,Au.jsx)($u,{value:n,children:e})),[n])).hidden,r),m=p?ec(Jl({},o.style),{display:"none"}):o.style;return o=ec(Jl({id:a,"data-enter":"enter"===s?"":void 0,"data-leave":"leave"===s?"":void 0,hidden:p},o),{ref:qc(a?n.setContentElement:null,o.ref),style:m})})),ef=Mu((e=>Bu("div",Jd(e))));Mu((e=>{var t=e,{unmountOnHide:n}=t,r=tc(t,["unmountOnHide"]);const o=Fu();return!1===yu(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,Au.jsx)(ef,Jl({},r))}));function tf({store:e,backdrop:t,backdropProps:n,alwaysVisible:r,hidden:o}){const i=(0,Sr.useRef)(null),a=xu({disclosure:e}),s=e.useState("contentElement");Wc((()=>{const e=i.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),Wc((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=i.current;return t?Kd(t,e):void 0}),[s]),null!=o&&(n=ec(Jl({},n),{hidden:o}));const l=Jd(ec(Jl({store:a,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:r},n),{ref:qc(null==n?void 0:n.ref,i),style:Jl({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,Sr.isValidElement)(t))return(0,Au.jsx)(Yd,ec(Jl({},l),{render:t}));const c="boolean"!=typeof t?t:"div";return(0,Au.jsx)(Yd,ec(Jl({},l),{render:(0,Au.jsx)(c,{})}))}var nf=(0,Sr.createContext)({});function rf({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Gc(n),a=e.useState("open"),s=(0,Sr.useRef)(!1);Wc((()=>{if(!a)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{s.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,a,o]),(0,Sr.useEffect)((()=>{if(!a)return;return Vc(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;if(!n)return;if(!o)return;if(!function(e){return"HTML"===e.tagName||Cc(xc(e).body,e)}(o))return;if(Cc(n,o))return;if(function(e,t){if(!e)return!1;if(Cc(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=xc(e).getElementById(n);if(t)return Cc(e,t)}return!1}(r,o))return;if(o.hasAttribute("data-focus-trap"))return;if(function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n))return;s.current&&!Gd(o,n.id)||i(t)}),r)}),[a,r])}function of(e,t){return"function"==typeof e?e(t):!!e}function af(e,t,n){const r=function(e){const t=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>{if(e)return Vc("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),o={store:e,domReady:n,capture:!0};rf(ec(Jl({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&Oc(i)&&Gd(i,null==o?void 0:o.id)&&of(t,n)&&e.hide()}})),rf(ec(Jl({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==xc(r)&&of(t,n)&&e.hide()}})),rf(ec(Jl({},o),{type:"contextmenu",listener:n=>{of(t,n)&&e.hide()}}))}function sf(e){return zd(e,"aria-hidden","true")}function lf(e,t){if(!("style"in e))return fc;if("inert"in HTMLElement.prototype)return Fd(e,"inert",!0);return mc(...id(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Cc(t,e))))?fc:zd(e,"tabindex","-1"))),sf(e),jd(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}var cf=o(2834);function uf(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=Qc(),a=(0,Sr.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=xc(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,Sr.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=xc(n);if(a())return o.setAttribute(e,t),()=>o.removeAttribute(e);const s=new MutationObserver((()=>(0,cf.flushSync)(i)));return s.observe(o,{attributeFilter:[e]}),()=>s.disconnect()}),[o,r,t,n,a,e]),a}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,Sr.useEffect)((()=>{if(!r())return;if(!e)return;const t=xc(e),n=function(e){return xc(e).defaultView||window}(e),{documentElement:o,body:i}=t,a=o.style.getPropertyValue("--scrollbar-width"),s=a?parseInt(a):n.innerWidth-o.clientWidth,l=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),c=pd()&&!hd();return mc((d="--scrollbar-width",f=`${s}px`,(u=o)?Dd(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,f),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:a}=n,c=null!=(e=null==a?void 0:a.offsetLeft)?e:0,u=null!=(t=null==a?void 0:a.offsetTop)?t:0,d=jd(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(c))+"px",right:"0",[l]:`${s}px`});return()=>{d(),n.scrollTo(r,o)}})():jd(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[r,e])}var df=Lu((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=tc(t,["autoFocusOnShow"]);return r=eu(r,(e=>(0,Au.jsx)(ed.Provider,{value:n,children:e})),[n])}));Mu((e=>Bu("div",df(e))));var ff=(0,Sr.createContext)(0);function pf({level:e,children:t}){const n=(0,Sr.useContext)(ff),r=Math.max(Math.min(e||n+1,6),1);return(0,Au.jsx)(ff.Provider,{value:r,children:t})}var mf=Lu((e=>e=ec(Jl({},e),{style:Jl({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));Mu((e=>Bu("span",mf(e))));var hf=Lu((e=>(e=ec(Jl({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:Jl({position:"fixed",top:0,left:0},e.style)}),e=mf(e)))),gf=Mu((e=>Bu("span",hf(e))));var vf=(0,Sr.createContext)(null);function bf(e){queueMicrotask((()=>{null==e||e.focus()}))}var yf=Lu((e=>{var t=e,{preserveTabOrder:n,portalElement:r,portalRef:o,portal:i=!0}=t,a=tc(t,["preserveTabOrder","portalElement","portalRef","portal"]);const s=(0,Sr.useRef)(null),l=qc(s,a.ref),c=(0,Sr.useContext)(vf),[u,d]=(0,Sr.useState)(null),f=(0,Sr.useRef)(null),p=(0,Sr.useRef)(null),m=(0,Sr.useRef)(null),h=(0,Sr.useRef)(null);return Wc((()=>{const e=s.current;if(!e||!i)return void d(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:xc(e).createElement("div")}(e,r);if(!t)return void d(null);const n=t.isConnected;if(!n){const n=c||function(e){return xc(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}()),d(t),kc(o,t),n?void 0:()=>{t.remove(),kc(o,null)}}),[i,r,c,o]),(0,Sr.useEffect)((()=>{if(!u)return;if(!n)return;let e=0;const t=t=>{if(!Fc(t))return;if("focusin"===t.type)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e),t.forEach(n)}(u);cancelAnimationFrame(e),e=requestAnimationFrame((()=>{!function(e,t){id(e,t).forEach(fd)}(u,!0)}))};return u.addEventListener("focusin",t,!0),u.addEventListener("focusout",t,!0),()=>{u.removeEventListener("focusin",t,!0),u.removeEventListener("focusout",t,!0)}}),[u,n]),a=eu(a,(e=>(e=(0,Au.jsx)(vf.Provider,{value:u||c,children:e}),i?u?(e=(0,Au.jsxs)(Au.Fragment,{children:[n&&u&&(0,Au.jsx)(gf,{ref:p,className:"__focus-trap-inner-before",onFocus:e=>{Fc(e,u)?bf(sd()):bf(f.current)}}),e,n&&u&&(0,Au.jsx)(gf,{ref:m,className:"__focus-trap-inner-after",onFocus:e=>{Fc(e,u)?bf(ld()):bf(h.current)}})]}),u&&(e=(0,cf.createPortal)(e,u)),e=(0,Au.jsxs)(Au.Fragment,{children:[n&&u&&(0,Au.jsx)(gf,{ref:f,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===h.current)&&Fc(e,u)?bf(p.current):bf(ld())}}),n&&(0,Au.jsx)("span",{"aria-owns":null==u?void 0:u.id,style:{position:"fixed"}}),e,n&&u&&(0,Au.jsx)(gf,{ref:h,className:"__focus-trap-outer-after",onFocus:e=>{if(Fc(e,u))bf(m.current);else{const e=sd();if(e===p.current)return void requestAnimationFrame((()=>{var e;return null==(e=sd())?void 0:e.focus()}));bf(e)}}})]})):(0,Au.jsx)("span",{ref:l,id:a.id,style:{position:"fixed"},hidden:!0}):e)),[u,c,i,a.id,n]),a=ec(Jl({},a),{ref:l})}));Mu((e=>Bu("div",yf(e))));var kf=md();function wf(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?nd(n)?n:null:n:null}var _f=Lu((e=>{var t=e,{store:n,open:r,onClose:o,focusable:i=!0,modal:a=!0,portal:s=!!a,backdrop:l=!!a,backdropProps:c,hideOnEscape:u=!0,hideOnInteractOutside:d=!0,getPersistentElements:f,preventBodyScroll:p=!!a,autoFocusOnShow:m=!0,autoFocusOnHide:h=!0,initialFocus:g,finalFocus:v,unmountOnHide:b}=t,y=tc(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const k=Vu(),w=(0,Sr.useRef)(null),_=function(e={}){const[t,n]=wu(Su,e);return Cu(t,n,e)}({store:n||k,open:r,setOpen(e){if(e)return;const t=w.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});o&&t.addEventListener("close",o,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&_.setOpen(!0)}}),{portalRef:E,domReady:x}=tu(s,y.portalRef),S=y.preserveTabOrder,C=_.useState((e=>S&&!a&&e.mounted)),I=Yc(y.id),T=_.useState("open"),P=_.useState("mounted"),N=_.useState("contentElement"),O=Qd(P,y.hidden,y.alwaysVisible);uf(N,I,p&&!O),af(_,d,x);const{wrapElement:A,nestedDialogs:M}=function(e){const t=(0,Sr.useContext)(nf),[n,r]=(0,Sr.useState)([]),o=(0,Sr.useCallback)((e=>{var n;return r((t=>[...t,e])),mc(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);Wc((()=>fu(e,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=t.add)?void 0:r.call(t,e)}))),[e,t]);const i=(0,Sr.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,Sr.useCallback)((e=>(0,Au.jsx)(nf.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(_);y=eu(y,A,[A]),Wc((()=>{if(!T)return;const e=w.current,t=Sc(e,!0);t&&"BODY"!==t.tagName&&(e&&Cc(e,t)||_.setDisclosureElement(t))}),[_,T]),kf&&(0,Sr.useEffect)((()=>{if(!P)return;const{disclosureElement:e}=_.getState();if(!e)return;if(!Tc(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),jc(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||dd(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[_,P]);const R=a||s&&C&&md();(0,Sr.useEffect)((()=>{if(!P)return;if(!x)return;const e=w.current;if(!e)return;if(!R)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=xc(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,_.hide)}),[_,P,x,R]),Wc((()=>{if(T)return;if(!P)return;if(!x)return;const e=w.current;return e?lf(e):void 0}),[T,P,x]);const B=T&&x;Wc((()=>{if(!I)return;if(!B)return;const e=w.current;return function(e,t){const{body:n}=xc(t[0]),r=[];return Ud(e,t,(t=>{r.push(Fd(t,Hd(e),!0))})),mc(Fd(n,Hd(e),!0),(()=>r.forEach((e=>e()))))}(I,[e])}),[I,B]);const L=Gc(f);Wc((()=>{if(!I)return;if(!B)return;const{disclosureElement:e}=_.getState(),t=[w.current,...L()||[],...M.map((e=>e.getState().contentElement))];return R?a?mc(qd(I,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Ud(e,t,(e=>{Bd(e,...r)||n.unshift(lf(e,t))})),()=>{n.forEach((e=>e()))}}(I,t)):mc(qd(I,[e,...t]),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Ud(e,t,(e=>{Bd(e,...r)||n.unshift(sf(e))})),()=>{n.forEach((e=>e()))}}(I,t)):qd(I,[e,...t])}),[I,_,B,L,M,R,a]);const D=!!m,z=Jc(m),[F,j]=(0,Sr.useState)(!1);(0,Sr.useEffect)((()=>{if(!T)return;if(!D)return;if(!x)return;if(!(null==N?void 0:N.isConnected))return;const e=wf(g,!0)||N.querySelector("[data-autofocus=true],[autofocus]")||ad(N,!0,s&&C)||N,t=nd(e);z(t?e:null)&&(j(!0),queueMicrotask((()=>{e.focus(),kf&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[T,D,x,N,g,s,C,z]);const V=!!h,H=Jc(h),[$,U]=(0,Sr.useState)(!1);(0,Sr.useEffect)((()=>{if(T)return U(!0),()=>U(!1)}),[T]);const W=(0,Sr.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=_.getState();if(function(e){const t=Sc();return!(!t||e&&Cc(e,t)||!nd(t))}(e))return;let r=wf(v)||n;if(null==r?void 0:r.id){const e=xc(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!nd(r)){const e=Ac(r,"[data-dialog]");if(e&&e.id){const t=xc(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&nd(r);o||!t?H(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>W(e,!1)))}),[_,v,H]);Wc((()=>{if(T)return;if(!$)return;if(!V)return;const e=w.current;W(e)}),[T,$,x,V,W]),(0,Sr.useEffect)((()=>{if(!$)return;if(!V)return;const e=w.current;return()=>W(e)}),[$,V,W]);const K=Jc(u);(0,Sr.useEffect)((()=>{if(!x)return;if(!P)return;return Vc("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=w.current;if(!t)return;if(Gd(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=_.getState();("BODY"===n.tagName||Cc(t,n)||!r||Cc(r,n))&&K(e)&&_.hide()}),!0)}),[_,x,P,K]);const G=(y=eu(y,(e=>(0,Au.jsx)(pf,{level:a?1:void 0,children:e})),[a])).hidden,q=y.alwaysVisible;y=eu(y,(e=>l?(0,Au.jsxs)(Au.Fragment,{children:[(0,Au.jsx)(tf,{store:_,backdrop:l,backdropProps:c,hidden:G,alwaysVisible:q}),e]}):e),[_,l,c,G,q]);const[Y,X]=(0,Sr.useState)(),[Z,Q]=(0,Sr.useState)();return y=eu(y,(e=>(0,Au.jsx)($u,{value:_,children:(0,Au.jsx)(Uu.Provider,{value:X,children:(0,Au.jsx)(Wu.Provider,{value:Q,children:e})})})),[_]),y=ec(Jl({id:I,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":Y,"aria-describedby":Z},y),{ref:qc(w,y.ref)}),y=df(ec(Jl({},y),{autoFocusOnShow:F})),y=Jd(Jl({store:_},y)),y=xd(ec(Jl({},y),{focusable:i})),y=yf(ec(Jl({portal:s},y),{portalRef:E,preserveTabOrder:C}))}));function Ef(e,t=Vu){return Mu((n=>{const r=t();return yu(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,Au.jsx)(e,Jl({},n)):null}))}Ef(Mu((e=>Bu("div",_f(e)))),Vu);const xf=Math.min,Sf=Math.max,Cf=Math.round,If=Math.floor,Tf=e=>({x:e,y:e}),Pf={left:"right",right:"left",bottom:"top",top:"bottom"},Nf={start:"end",end:"start"};function Of(e,t,n){return Sf(e,xf(t,n))}function Af(e,t){return"function"==typeof e?e(t):e}function Mf(e){return e.split("-")[0]}function Rf(e){return e.split("-")[1]}function Bf(e){return"x"===e?"y":"x"}function Lf(e){return"y"===e?"height":"width"}function Df(e){return["top","bottom"].includes(Mf(e))?"y":"x"}function zf(e){return Bf(Df(e))}function Ff(e){return e.replace(/start|end/g,(e=>Nf[e]))}function jf(e){return e.replace(/left|right|bottom|top/g,(e=>Pf[e]))}function Vf(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 Hf(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function $f(e,t,n){let{reference:r,floating:o}=e;const i=Df(t),a=zf(t),s=Lf(a),l=Mf(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Rf(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Uf(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}=Af(t,e),m=Vf(p),h=s[f?"floating"===d?"reference":"floating":d],g=Hf(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},k=Hf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-k.top+m.top)/y.y,bottom:(k.bottom-g.bottom+m.bottom)/y.y,left:(g.left-k.left+m.left)/y.x,right:(k.right-g.right+m.right)/y.x}}const Wf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Af(e,t)||{};if(null==c)return{};const d=Vf(u),f={x:n,y:r},p=zf(o),m=Lf(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",k=i.reference[m]+i.reference[p]-f[p]-i.floating[m],w=f[p]-i.reference[p],_=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=_?_[y]:0;E&&await(null==a.isElement?void 0:a.isElement(_))||(E=s.floating[y]||i.floating[m]);const x=k/2-w/2,S=E/2-h[m]/2-1,C=xf(d[v],S),I=xf(d[b],S),T=C,P=E-h[m]-I,N=E/2-h[m]/2+x,O=Of(T,N,P),A=!l.arrow&&null!=Rf(o)&&N!=O&&i.reference[m]/2-(N<T?C:I)-h[m]/2<0,M=A?N<T?N-T:N-P:0;return{[p]:f[p]+M,data:{[p]:O,centerOffset:N-O-M,...A&&{alignmentOffset:M}},reset:A}}});const Kf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Af(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Mf(o),b=Mf(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),k=f||(b||!h?[jf(s)]:function(e){const t=jf(e);return[Ff(e),t,Ff(t)]}(s));f||"none"===m||k.push(...function(e,t,n,r){const o=Rf(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Mf(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Ff)))),i}(s,h,m,y));const w=[s,...k],_=await Uf(t,g),E=[];let x=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(_[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Rf(e),o=zf(e),i=Lf(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=jf(a)),[a,jf(a)]}(o,a,y);E.push(_[e[0]],_[e[1]])}if(x=[...x,{placement:o,overflows:E}],!E.every((e=>e<=0))){var S,C;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(C=x.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var I;const e=null==(I=x.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};const Gf=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=Mf(n),s=Rf(n),l="y"===Df(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Af(t,e);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}}}},qf=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}=Af(e,t),c={x:n,y:r},u=await Uf(t,l),d=Df(Mf(o)),f=Bf(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=Of(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=Of(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Yf=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Af(e,t),u={x:n,y:r},d=Df(o),f=Bf(d);let p=u[f],m=u[d];const h=Af(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(Mf(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Xf=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}=Af(e,t),l=await Uf(t,s),c=Mf(n),u=Rf(n),d="y"===Df(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-l[m],v=f-l[h],b=!t.middlewareData.shift;let y=g,k=v;if(d){const e=f-l.left-l.right;k=u||b?xf(v,e):e}else{const e=p-l.top-l.bottom;y=u||b?xf(g,e):e}if(b&&!u){const e=Sf(l.left,0),t=Sf(l.right,0),n=Sf(l.top,0),r=Sf(l.bottom,0);d?k=f-2*(0!==e||0!==t?e+t:Sf(l.left,l.right)):y=p-2*(0!==n||0!==r?n+r:Sf(l.top,l.bottom))}await a({...t,availableWidth:k,availableHeight:y});const w=await o.getDimensions(i.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Zf(e){return ep(e)?(e.nodeName||"").toLowerCase():"#document"}function Qf(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Jf(e){var t;return null==(t=(ep(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ep(e){return e instanceof Node||e instanceof Qf(e).Node}function tp(e){return e instanceof Element||e instanceof Qf(e).Element}function np(e){return e instanceof HTMLElement||e instanceof Qf(e).HTMLElement}function rp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Qf(e).ShadowRoot)}function op(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=cp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ip(e){return["table","td","th"].includes(Zf(e))}function ap(e){const t=sp(),n=cp(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function sp(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function lp(e){return["html","body","#document"].includes(Zf(e))}function cp(e){return Qf(e).getComputedStyle(e)}function up(e){return tp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dp(e){if("html"===Zf(e))return e;const t=e.assignedSlot||e.parentNode||rp(e)&&e.host||Jf(e);return rp(t)?t.host:t}function fp(e){const t=dp(e);return lp(t)?e.ownerDocument?e.ownerDocument.body:e.body:np(t)&&op(t)?t:fp(t)}function pp(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=fp(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Qf(o);return i?t.concat(a,a.visualViewport||[],op(o)?o:[],a.frameElement&&n?pp(a.frameElement):[]):t.concat(o,pp(o,[],n))}function mp(e){const t=cp(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=np(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Cf(n)!==i||Cf(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function hp(e){return tp(e)?e:e.contextElement}function gp(e){const t=hp(e);if(!np(t))return Tf(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=mp(t);let a=(i?Cf(n.width):n.width)/r,s=(i?Cf(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const vp=Tf(0);function bp(e){const t=Qf(e);return sp()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:vp}function yp(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=hp(e);let a=Tf(1);t&&(r?tp(r)&&(a=gp(r)):a=gp(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Qf(e))&&t}(i,n,r)?bp(i):Tf(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Qf(i),t=r&&tp(r)?Qf(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=gp(n),t=n.getBoundingClientRect(),r=cp(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=Qf(n).frameElement}}return Hf({width:u,height:d,x:l,y:c})}function kp(e){return yp(Jf(e)).left+up(e).scrollLeft}function _p(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Qf(e),r=Jf(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=sp();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Jf(e),n=up(e),r=e.ownerDocument.body,o=Sf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Sf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+kp(e);const s=-n.scrollTop;return"rtl"===cp(r).direction&&(a+=Sf(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Jf(e));else if(tp(t))r=function(e,t){const n=yp(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=np(e)?gp(e):Tf(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=bp(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Hf(r)}function Ep(e,t){const n=dp(e);return!(n===t||!tp(n)||lp(n))&&("fixed"===cp(n).position||Ep(n,t))}function xp(e,t,n){const r=np(t),o=Jf(t),i="fixed"===n,a=yp(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Tf(0);if(r||!r&&!i)if(("body"!==Zf(t)||op(o))&&(s=up(t)),r){const e=yp(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=kp(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Sp(e,t){return np(e)&&"fixed"!==cp(e).position?t?t(e):e.offsetParent:null}function Cp(e,t){const n=Qf(e);if(!np(e))return n;let r=Sp(e,t);for(;r&&ip(r)&&"static"===cp(r).position;)r=Sp(r,t);return r&&("html"===Zf(r)||"body"===Zf(r)&&"static"===cp(r).position&&!ap(r))?n:r||function(e){let t=dp(e);for(;np(t)&&!lp(t);){if(ap(t))return t;t=dp(t)}return null}(e)||n}const Ip={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=np(n),i=Jf(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Tf(1);const l=Tf(0);if((o||!o&&"fixed"!==r)&&(("body"!==Zf(n)||op(i))&&(a=up(n)),np(n))){const e=yp(n);s=gp(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Jf,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=pp(e,[],!1).filter((e=>tp(e)&&"body"!==Zf(e))),o=null;const i="fixed"===cp(e).position;let a=i?dp(e):e;for(;tp(a)&&!lp(a);){const t=cp(a),n=ap(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||op(a)&&!n&&Ep(e,a))?r=r.filter((e=>e!==a)):o=t,a=dp(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=_p(t,n,o);return e.top=Sf(r.top,e.top),e.right=xf(r.right,e.right),e.bottom=xf(r.bottom,e.bottom),e.left=Sf(r.left,e.left),e}),_p(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Cp,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Cp,i=this.getDimensions;return{reference:xp(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return mp(e)},getScale:gp,isElement:tp,isRTL:function(e){return"rtl"===cp(e).direction}};function Tp(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=hp(e),u=o||i?[...c?pp(c):[],...pp(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Jf(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-If(u)+"px "+-If(o.clientWidth-(c+d))+"px "+-If(o.clientHeight-(u+f))+"px "+-If(c)+"px",threshold:Sf(0,xf(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?yp(e):null;return l&&function t(){const r=yp(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Pp=(e,t,n)=>{const r=new Map,o={platform:Ip,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=$f(c,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=$f(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};function Np(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return ec(Jl({},o),{toJSON:()=>o})}function Op(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return Np();const{x:t,y:n,width:r,height:o}=e;return Np(t,n,r,o)}(r):n.getBoundingClientRect()}}}function Ap(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Mp(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Rp(e,t){return Gf((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:!!n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function Bp(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return gc(!t||t.every(Ap),!1),Kf({padding:e.overflowPadding,fallbackPlacements:t})}function Lp(e){if(e.slide||e.overlap)return qf({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding})}function Dp(e){return Xf({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,a=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${a}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${a}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function zp(e,t){if(e)return Wf({element:e,padding:t.arrowPadding})}var Fp=Lu((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,preserveTabOrder:i=!0,autoFocusOnShow:a=!0,wrapperProps:s,fixed:l=!1,flip:c=!0,shift:u=0,slide:d=!0,overlap:f=!1,sameWidth:p=!1,fitViewport:m=!1,gutter:h,arrowPadding:g=4,overflowPadding:v=8,getAnchorRect:b,updatePosition:y}=t,k=tc(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const w=Gu();gc(n=n||w,!1);const _=n.useState("arrowElement"),E=n.useState("anchorElement"),x=n.useState("popoverElement"),S=n.useState("contentElement"),C=n.useState("placement"),I=n.useState("mounted"),T=n.useState("rendered"),[P,N]=(0,Sr.useState)(!1),{portalRef:O,domReady:A}=tu(o,k.portalRef),M=Gc(b),R=Gc(y),B=!!y;Wc((()=>{if(!(null==x?void 0:x.isConnected))return;x.style.setProperty("--popover-overflow-padding",`${v}px`);const e=Op(E,M),t=async()=>{if(!I)return;const t=[Rp(_,{gutter:h,shift:u}),Bp({flip:c,overflowPadding:v}),Lp({slide:d,overlap:f,overflowPadding:v}),zp(_,{arrowPadding:g}),Dp({sameWidth:p,fitViewport:m,overflowPadding:v})],r=await Pp(e,x,{placement:C,strategy:l?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),N(!0);const o=Mp(r.x),i=Mp(r.y);if(Object.assign(x.style,{top:"0",left:"0",transform:`translate3d(${o}px,${i}px,0)`}),_&&r.middlewareData.arrow){const{x:e,y:t}=r.middlewareData.arrow,n=r.placement.split("-")[0];Object.assign(_.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",[n]:"100%"})}},r=Tp(e,x,(async()=>{B?(await R({updatePosition:t}),N(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{N(!1),r()}}),[n,T,x,_,E,x,C,I,A,l,c,u,d,f,p,m,h,g,v,M,B,R]),Wc((()=>{if(!I)return;if(!A)return;if(!(null==x?void 0:x.isConnected))return;if(!(null==S?void 0:S.isConnected))return;const e=()=>{x.style.zIndex=getComputedStyle(S).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[I,A,x,S]);const L=l?"fixed":"absolute";return k=eu(k,(e=>(0,Au.jsx)("div",ec(Jl({role:"presentation"},s),{style:Jl({position:L,top:0,left:0,width:"max-content"},null==s?void 0:s.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,L,s]),k=eu(k,(e=>(0,Au.jsx)(Yu,{value:n,children:e})),[n]),k=ec(Jl({"data-placing":P?void 0:""},k),{style:Jl({position:"relative"},k.style)}),k=_f(ec(Jl({store:n,modal:r,preserveTabOrder:i,portal:o,autoFocusOnShow:P&&a},k),{portalRef:O}))}));Ef(Mu((e=>Bu("div",Fp(e)))),Gu);function jp(e,t,n,r){return!!ud(t)||!!e&&(!!Cc(t,e)||(!(!n||!Cc(n,e))||!!(null==r?void 0:r.some((t=>jp(e,t,n))))))}var Vp=(0,Sr.createContext)(null),Hp=Lu((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:s=!!a}=t,l=tc(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const c=Zu();gc(n=n||c,!1);const u=(0,Sr.useRef)(null),[d,f]=(0,Sr.useState)([]),p=(0,Sr.useRef)(0),m=(0,Sr.useRef)(null),{portalRef:h,domReady:g}=tu(o,l.portalRef),v=!!a,b=Jc(a),y=!!s,k=Jc(s),w=n.useState("open"),_=n.useState("mounted");(0,Sr.useEffect)((()=>{if(!g)return;if(!_)return;if(!v&&!y)return;const e=u.current;if(!e)return;return mc(Vc("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),a=m.current,s=t.target,l=r;if(jp(s,e,l,d))return m.current=s&&l&&Cc(l,s)?Ad(t):null,window.clearTimeout(p.current),void(p.current=0);if(!p.current){if(a){const n=Ad(t);if(Md(n,Rd(e,a))){if(m.current=n,!k(t))return;return t.preventDefault(),void t.stopPropagation()}}b(t)&&(p.current=window.setTimeout((()=>{p.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(p.current)))}),[n,g,_,v,y,d,k,b]),(0,Sr.useEffect)((()=>{if(!g)return;if(!_)return;if(!y)return;const e=e=>{const t=u.current;if(!t)return;const n=m.current;if(!n)return;const r=Rd(t,n);if(Md(Ad(e),r)){if(!k(e))return;e.preventDefault(),e.stopPropagation()}};return mc(Vc("mouseenter",e,!0),Vc("mouseover",e,!0),Vc("mouseout",e,!0),Vc("mouseleave",e,!0))}),[g,_,y,k]),(0,Sr.useEffect)((()=>{g&&(w||null==n||n.setAutoFocusOnShow(!1))}),[n,g,w]);const E=Kc(w);(0,Sr.useEffect)((()=>{if(g)return()=>{E.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,g]);const x=(0,Sr.useContext)(Vp);Wc((()=>{if(r)return;if(!o)return;if(!_)return;if(!g)return;const e=u.current;return e?null==x?void 0:x(e):void 0}),[r,o,_,g]);const S=(0,Sr.useCallback)((e=>{f((t=>[...t,e]));const t=null==x?void 0:x(e);return()=>{f((t=>t.filter((t=>t!==e)))),null==t||t()}}),[x]);l=eu(l,(e=>(0,Au.jsx)(Ju,{value:n,children:(0,Au.jsx)(Vp.Provider,{value:S,children:e})})),[n,S]),l=ec(Jl({},l),{ref:qc(u,l.ref)}),l=function(e){var t=e,{store:n}=t,r=tc(t,["store"]);const[o,i]=(0,Sr.useState)(!1),a=n.useState("mounted");(0,Sr.useEffect)((()=>{a||i(!1)}),[a]);const s=r.onFocus,l=Gc((e=>{null==s||s(e),e.defaultPrevented||i(!0)})),c=(0,Sr.useRef)(null);return(0,Sr.useEffect)((()=>fu(n,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),ec(Jl({autoFocusOnHide:o,finalFocus:c},r),{onFocus:l})}(Jl({store:n},l));const C=n.useState((e=>r||e.autoFocusOnShow));return l=Fp(ec(Jl({store:n,modal:r,portal:o,autoFocusOnShow:C},l),{portalRef:h,hideOnEscape:e=>!vc(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));Ef(Mu((e=>Bu("div",Hp(e)))),Zu);var $p=Lu((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:s=!0}=t,l=tc(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Id();gc(n=n||c,!1),l=eu(l,(e=>(0,Au.jsx)(Td,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=Jl({role:u},l),l=Hp(ec(Jl({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(vc(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(vc(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Cc(t,e.target)}}))})),Up=Ef(Mu((e=>Bu("div",$p(e)))),Id);const Wp=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,Sr.createElement)("span",{className:n,"aria-label":o},r)},Kp={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Gp=e=>{var t;return null!==(t=Kp[e])&&void 0!==t?t:"bottom"},qp={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}};const Yp=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Xp=700;const Zp=function e(t){const{children:n,delay:r=Xp,hideOnClick:o=!0,placement:i,position:a,shortcut:s,text:l}=t,c=Wl(e,"tooltip"),u=l||s?c:void 0,d=1===Sr.Children.count(n);let f;void 0!==i?f=i:void 0!==a&&(f=Gp(a),on("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),f=f||"bottom";const p=Ou({placement:f,timeout:r}),m=p.useState("open");return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Od,{onClick:o?p.hide:void 0,store:p,render:d?n:void 0},d?void 0:n),d&&(l||s)&&m&&(0,Sr.createElement)(Up,{className:"components-tooltip",gutter:4,id:u,overflowPadding:.5,store:p},l,s&&(0,Sr.createElement)(Wp,{className:l?"components-tooltip__shortcut":"",shortcut:s})))},Qp=e=>(0,Sr.createElement)("path",e),Jp=(0,Sr.forwardRef)((({className:e,isPressed:t,...n},r)=>{const o={...n,className:Vl()(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,Sr.createElement)("svg",{...o,ref:r})}));Jp.displayName="SVG";const em=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),a={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,Sr.createElement)("span",{className:i,style:a,...o})};const tm=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,Sr.createElement)(em,{icon:e,size:t,...n});if((0,Sr.isValidElement)(e)&&em===e.type)return(0,Sr.cloneElement)(e,{...n});if("function"==typeof e)return(0,Sr.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===Jp)){const r={...e.props,width:t,height:t,...n};return(0,Sr.createElement)(Jp,{...r})}return(0,Sr.isValidElement)(e)?(0,Sr.cloneElement)(e,{size:t,...n}):e},nm=new Set;function rm(e){if("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&!nm.has(e)){console.warn(e);try{throw Error(e)}catch(e){}nm.add(e)}}const om=function(e,t){const n=(0,Sr.useRef)(!1);(0,Sr.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},im=(0,Sr.createContext)({}),am=()=>(0,Sr.useContext)(im);const sm=(0,Sr.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=am(),n=(0,Sr.useRef)(e);return om((()=>{Oa()(n.current,e)&&n.current!==e&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm(`Please memoize your context: ${JSON.stringify(e)}`)}),[e]),(0,Sr.useMemo)((()=>tl()(null!=t?t:{},null!=e?e:{},{isMergeableObject:we})),[t,e])}({value:t});return(0,Sr.createElement)(im.Provider,{value:n},e)})),lm="data-wp-component",cm="data-wp-c16t",um="__contextSystemKey__";const dm=Cn((function(e){return`components-${Bi(e)}`}));var fm=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),pm=Math.abs,mm=String.fromCharCode,hm=Object.assign;function gm(e){return e.trim()}function vm(e,t,n){return e.replace(t,n)}function bm(e,t){return e.indexOf(t)}function ym(e,t){return 0|e.charCodeAt(t)}function km(e,t,n){return e.slice(t,n)}function wm(e){return e.length}function _m(e){return e.length}function Em(e,t){return t.push(e),e}var xm=1,Sm=1,Cm=0,Im=0,Tm=0,Pm="";function Nm(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xm,column:Sm,length:a,return:""}}function Om(e,t){return hm(Nm("",null,null,"",null,null,0),e,{length:-e.length},t)}function Am(){return Tm=Im>0?ym(Pm,--Im):0,Sm--,10===Tm&&(Sm=1,xm--),Tm}function Mm(){return Tm=Im<Cm?ym(Pm,Im++):0,Sm++,10===Tm&&(Sm=1,xm++),Tm}function Rm(){return ym(Pm,Im)}function Bm(){return Im}function Lm(e,t){return km(Pm,e,t)}function Dm(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zm(e){return xm=Sm=1,Cm=wm(Pm=e),Im=0,[]}function Fm(e){return Pm="",e}function jm(e){return gm(Lm(Im-1,$m(91===e?e+2:40===e?e+1:e)))}function Vm(e){for(;(Tm=Rm())&&Tm<33;)Mm();return Dm(e)>2||Dm(Tm)>3?"":" "}function Hm(e,t){for(;--t&&Mm()&&!(Tm<48||Tm>102||Tm>57&&Tm<65||Tm>70&&Tm<97););return Lm(e,Bm()+(t<6&&32==Rm()&&32==Mm()))}function $m(e){for(;Mm();)switch(Tm){case e:return Im;case 34:case 39:34!==e&&39!==e&&$m(Tm);break;case 40:41===e&&$m(e);break;case 92:Mm()}return Im}function Um(e,t){for(;Mm()&&e+Tm!==57&&(e+Tm!==84||47!==Rm()););return"/*"+Lm(t,Im-1)+"*"+mm(47===e?e:Mm())}function Wm(e){for(;!Dm(Rm());)Mm();return Lm(e,Im)}var Km="-ms-",Gm="-moz-",qm="-webkit-",Ym="comm",Xm="rule",Zm="decl",Qm="@keyframes";function Jm(e,t){for(var n="",r=_m(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function eh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Zm:return e.return=e.return||e.value;case Ym:return"";case Qm:return e.return=e.value+"{"+Jm(e.children,r)+"}";case Xm:e.value=e.props.join(",")}return wm(n=Jm(e.children,r))?e.return=e.value+"{"+n+"}":""}function th(e){return Fm(nh("",null,null,null,[""],e=zm(e),0,[0],e))}function nh(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",k=o,w=i,_=r,E=y;g;)switch(m=b,b=Mm()){case 40:if(108!=m&&58==ym(E,d-1)){-1!=bm(E+=vm(jm(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=jm(b);break;case 9:case 10:case 13:case 32:E+=Vm(m);break;case 92:E+=Hm(Bm()-1,7);continue;case 47:switch(Rm()){case 42:case 47:Em(oh(Um(Mm(),Bm()),t,n),l);break;default:E+="/"}break;case 123*h:s[c++]=wm(E)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=vm(E,/\f/g,"")),p>0&&wm(E)-d&&Em(p>32?ih(E+";",r,n,d-1):ih(vm(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Em(_=rh(E,t,n,c,u,o,s,y,k=[],w=[],d),i),123===b)if(0===u)nh(E,t,_,_,k,i,d,s,w);else switch(99===f&&110===ym(E,3)?100:f){case 100:case 108:case 109:case 115:nh(e,_,_,r&&Em(rh(e,_,_,0,0,o,s,y,o,k=[],d),w),o,w,d,s,r?k:w);break;default:nh(E,_,_,_,[""],w,0,s,w)}}c=u=p=0,h=v=1,y=E="",d=a;break;case 58:d=1+wm(E),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Am())continue;switch(E+=mm(b),b*h){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(wm(E)-1)*v,v=1;break;case 64:45===Rm()&&(E+=jm(Mm())),f=Rm(),u=d=wm(y=E+=Wm(Bm())),b++;break;case 45:45===m&&2==wm(E)&&(h=0)}}return i}function rh(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=_m(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=km(e,d+1,d=pm(h=a[m])),y=e;v<p;++v)(y=gm(h>0?f[v]+" "+b:vm(b,/&\f/g,f[v])))&&(l[g++]=y);return Nm(e,t,n,0===o?Xm:s,l,c,u)}function oh(e,t,n){return Nm(e,t,n,Ym,mm(Tm),km(e,2,-2),0)}function ih(e,t,n,r){return Nm(e,t,n,Zm,km(e,0,r),km(e,r+1,-1),r)}var ah=function(e,t,n){for(var r=0,o=0;r=o,o=Rm(),38===r&&12===o&&(t[n]=1),!Dm(o);)Mm();return Lm(e,Im)},sh=function(e,t){return Fm(function(e,t){var n=-1,r=44;do{switch(Dm(r)){case 0:38===r&&12===Rm()&&(t[n]=1),e[n]+=ah(Im-1,t,n);break;case 2:e[n]+=jm(r);break;case 4:if(44===r){e[++n]=58===Rm()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=mm(r)}}while(r=Mm());return e}(zm(e),t))},lh=new WeakMap,ch=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)||lh.get(n))&&!r){lh.set(e,!0);for(var o=[],i=sh(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},uh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function dh(e,t){switch(function(e,t){return 45^ym(e,0)?(((t<<2^ym(e,0))<<2^ym(e,1))<<2^ym(e,2))<<2^ym(e,3):0}(e,t)){case 5103:return qm+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qm+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qm+e+Gm+e+Km+e+e;case 6828:case 4268:return qm+e+Km+e+e;case 6165:return qm+e+Km+"flex-"+e+e;case 5187:return qm+e+vm(e,/(\w+).+(:[^]+)/,qm+"box-$1$2"+Km+"flex-$1$2")+e;case 5443:return qm+e+Km+"flex-item-"+vm(e,/flex-|-self/,"")+e;case 4675:return qm+e+Km+"flex-line-pack"+vm(e,/align-content|flex-|-self/,"")+e;case 5548:return qm+e+Km+vm(e,"shrink","negative")+e;case 5292:return qm+e+Km+vm(e,"basis","preferred-size")+e;case 6060:return qm+"box-"+vm(e,"-grow","")+qm+e+Km+vm(e,"grow","positive")+e;case 4554:return qm+vm(e,/([^-])(transform)/g,"$1"+qm+"$2")+e;case 6187:return vm(vm(vm(e,/(zoom-|grab)/,qm+"$1"),/(image-set)/,qm+"$1"),e,"")+e;case 5495:case 3959:return vm(e,/(image-set\([^]*)/,qm+"$1$`$1");case 4968:return vm(vm(e,/(.+:)(flex-)?(.*)/,qm+"box-pack:$3"+Km+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qm+e+e;case 4095:case 3583:case 4068:case 2532:return vm(e,/(.+)-inline(.+)/,qm+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wm(e)-1-t>6)switch(ym(e,t+1)){case 109:if(45!==ym(e,t+4))break;case 102:return vm(e,/(.+:)(.+)-([^]+)/,"$1"+qm+"$2-$3$1"+Gm+(108==ym(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bm(e,"stretch")?dh(vm(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ym(e,t+1))break;case 6444:switch(ym(e,wm(e)-3-(~bm(e,"!important")&&10))){case 107:return vm(e,":",":"+qm)+e;case 101:return vm(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qm+(45===ym(e,14)?"inline-":"")+"box$3$1"+qm+"$2$3$1"+Km+"$2box$3")+e}break;case 5936:switch(ym(e,t+11)){case 114:return qm+e+Km+vm(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qm+e+Km+vm(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qm+e+Km+vm(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qm+e+Km+e+e}return e}var fh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zm:e.return=dh(e.value,e.length);break;case Qm:return Jm([Om(e,{value:vm(e.value,"@","@"+qm)})],r);case Xm: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 Jm([Om(e,{props:[vm(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Jm([Om(e,{props:[vm(t,/:(plac\w+)/,":"+qm+"input-$1")]}),Om(e,{props:[vm(t,/:(plac\w+)/,":-moz-$1")]}),Om(e,{props:[vm(t,/:(plac\w+)/,Km+"input-$1")]})],r)}return""}))}}],ph=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||fh;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[eh,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[ch,uh].concat(r,f),u=_m(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){Jm(th(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new fm({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(s),m};var mh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function hh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var gh=/[A-Z]|^ms/g,vh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bh=function(e){return 45===e.charCodeAt(1)},yh=function(e){return null!=e&&"boolean"!=typeof e},kh=hh((function(e){return bh(e)?e:e.replace(gh,"-$&").toLowerCase()})),wh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vh,(function(e,t,n){return Eh={name:t,styles:n,next:Eh},t}))}return 1===mh[e]||bh(e)||"number"!=typeof t||0===t?t:t+"px"};function _h(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 Eh={name:n.name,styles:n.styles,next:Eh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Eh={name:r.name,styles:r.styles,next:Eh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_h(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":yh(a)&&(r+=kh(i)+":"+wh(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=_h(e,t,a);switch(i){case"animation":case"animationName":r+=kh(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)yh(a[l])&&(r+=kh(i)+":"+wh(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Eh,i=n(e);return Eh=o,_h(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Eh,xh=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Sh=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Eh=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=_h(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=_h(n,t,e[a]),r&&(o+=i[a]);xh.lastIndex=0;for(var s,l="";null!==(s=xh.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Eh}},Ch=!!Cr.useInsertionEffect&&Cr.useInsertionEffect,Ih=Ch||function(e){return e()},Th=(Ch||Sr.useLayoutEffect,Sr.createContext("undefined"!=typeof HTMLElement?ph({key:"css"}):null));var Ph=Th.Provider,Nh=function(e){return(0,Sr.forwardRef)((function(t,n){var r=(0,Sr.useContext)(Th);return e(t,r,n)}))};var Oh=Sr.createContext({});function Ah(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Mh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Rh=function(e,t,n){Mh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function Bh(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Lh(e,t,n){var r=[],o=Ah(e,r,n);return r.length<2?n:o+t(r)}var Dh=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},zh=function(e){var t=ph(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Sh(n,t.registered,void 0);return Rh(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Lh(t.registered,n,Dh(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Sh(n,t.registered);Bh(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Sh(n,t.registered),i="animation-"+o.name;return Bh(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ah.bind(null,t.registered),merge:Lh.bind(null,t.registered,n)}}({key:"css"}),Fh=(zh.flush,zh.hydrate,zh.cx);zh.merge,zh.getRegisteredStyles,zh.injectGlobal,zh.keyframes,zh.css,zh.sheet,zh.cache;const jh=()=>{const e=(0,Sr.useContext)(Th),t=(0,Sr.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Fh(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Rh(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Vh(e,t){const n=am();void 0===t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm("useContextSystem: Please provide a namespace");const r=n?.[t]||{},o={[cm]:!0,...(i=t,{[lm]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=jh()(dm(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 Hh(e,t){return Uh(e,t,{forwardsRef:!0})}function $h(e,t){return Uh(e,t)}function Uh(e,t,n){const r=n?.forwardsRef?(0,Sr.forwardRef)(e):e;void 0===t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm("contextConnect: Please provide a namespace");let o=r[um]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[um]:[...new Set(o)],displayName:t,selector:`.${dm(t)}`})}function Wh(e){if(!e)return[];let t=[];return e[um]&&(t=e[um]),e.type&&e.type[um]&&(t=e.type[um]),t}function Kh(e,t){return!!e&&("string"==typeof t?Wh(e).includes(t):!!Array.isArray(t)&&t.some((t=>Wh(e).includes(t))))}const Gh={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qh.apply(this,arguments)}var Yh=/^((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)-.*))$/,Xh=hh((function(e){return Yh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Zh=Xh,Qh=function(e){return"theme"!==e},Jh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Zh:Qh},eg=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},tg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Mh(t,n,r),Ih((function(){return Rh(t,n,r)})),null},ng=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=eg(t,n,i),l=s||Jh(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=Nh((function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=Sr.useContext(Oh)}"string"==typeof e.className?i=Ah(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=Sh(d.concat(u),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?Jh(r):l,g={};for(var v in e)c&&"as"===v||h(v)&&(g[v]=e[v]);return g.className=i,g.ref=n,Sr.createElement(Sr.Fragment,null,Sr.createElement(tg,{cache:t,serialized:m,isStringTag:"string"==typeof r}),Sr.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,qh({},n,r,{shouldForwardProp:eg(m,r,!0)})).apply(void 0,d)},m}};const rg=ng("div",{target:"e19lxcc00"})("");rg.selector=".components-view",rg.displayName="View";const og=rg;const ig=Hh((function(e,t){const{style:n,...r}=Vh(e,"VisuallyHidden");return(0,Sr.createElement)(og,{ref:t,...r,style:{...Gh,...n||{}}})}),"VisuallyHidden"),ag=["onMouseDown","onClick"];const sg=(0,Sr.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isBusy:r,isDestructive:o,className:i,disabled:a,icon:s,iconPosition:l="left",iconSize:c,showTooltip:u,tooltipPosition:d,shortcut:f,label:p,children:m,size:h="default",text:g,variant:v,__experimentalIsFocusable:b,describedBy:y,...k}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isPressed:i,isSmall:a,size:s,variant:l,...c}){let u=s,d=l;const f={"aria-pressed":i};var p,m,h,g,v,b;return a&&(null!==(p=u)&&void 0!==p||(u="small")),t&&(null!==(m=d)&&void 0!==m||(d="primary")),r&&(null!==(h=d)&&void 0!==h||(d="tertiary")),n&&(null!==(g=d)&&void 0!==g||(d="secondary")),e&&(on("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(v=d)&&void 0!==v||(d="secondary")),o&&(null!==(b=d)&&void 0!==b||(d="link")),{...f,...c,size:u,variant:d}}(e),{href:w,target:_,"aria-checked":E,"aria-pressed":x,"aria-selected":S,...C}="href"in k?k:{href:void 0,target:void 0,...k},I=Wl(sg,"components-button__description"),T="string"==typeof m&&!!m||Array.isArray(m)&&m?.[0]&&null!==m[0]&&"components-tooltip"!==m?.[0]?.props?.className,P=Vl()("components-button",i,{"is-next-40px-default-size":n,"is-secondary":"secondary"===v,"is-primary":"primary"===v,"is-small":"small"===h,"is-compact":"compact"===h,"is-tertiary":"tertiary"===v,"is-pressed":[!0,"true","mixed"].includes(x),"is-pressed-mixed":"mixed"===x,"is-busy":r,"is-link":"link"===v,"is-destructive":o,"has-text":!!s&&T,"has-icon":!!s}),N=a&&!b,O=void 0===w||N?"button":"a",A="button"===O?{type:"button",disabled:N,"aria-checked":E,"aria-pressed":x,"aria-selected":S}:{},M="a"===O?{href:w,target:_}:{};if(a&&b){A["aria-disabled"]=!0,M["aria-disabled"]=!0;for(const e of ag)C[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const R=!N&&(u&&p||f||!!p&&!m?.length&&!1!==u),B=y?I:void 0,L=C["aria-describedby"]||B,D={className:P,"aria-label":C["aria-label"]||p,"aria-describedby":L,ref:t},z=(0,Sr.createElement)(Sr.Fragment,null,s&&"left"===l&&(0,Sr.createElement)(tm,{icon:s,size:c}),g&&(0,Sr.createElement)(Sr.Fragment,null,g),s&&"right"===l&&(0,Sr.createElement)(tm,{icon:s,size:c}),m),F="a"===O?(0,Sr.createElement)("a",{...M,...C,...D},z):(0,Sr.createElement)("button",{...A,...C,...D},z);let j;return void 0!==d&&(j=Gp(d)),R?(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Zp,{text:m?.length&&y?y:p,shortcut:f,placement:j},F),y&&(0,Sr.createElement)(ig,null,(0,Sr.createElement)("span",{id:B},y))):(0,Sr.createElement)(Sr.Fragment,null,F,y&&(0,Sr.createElement)(ig,null,(0,Sr.createElement)("span",{id:B},y)))})),lg=sg;function cg(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Tc(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Tc(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var ug=Lu((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=tc(t,["clickOnEnter","clickOnSpace"]);const i=(0,Sr.useRef)(null),a=Xc(i,o.as),s=o.type,[l,c]=(0,Sr.useState)((()=>!!a&&Tc({tagName:a,type:s})));(0,Sr.useEffect)((()=>{i.current&&c(Tc(i.current))}),[]);const[u,d]=(0,Sr.useState)(!1),f=(0,Sr.useRef)(!1),p="data-command"in o,m=bc(o),h=o.onKeyDown,g=Gc((e=>{null==h||h(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(m)return;if(!Lc(e))return;if(Mc(t))return;if(t.isContentEditable)return;const o=n&&"Enter"===e.key,i=r&&" "===e.key,a="Enter"===e.key&&!n,s=" "===e.key&&!r;if(a||s)e.preventDefault();else if(o||i){const n=cg(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=tc(n,["view"]),i=()=>zc(t,o);Ec&&/firefox\//i.test(navigator.userAgent)?jc(t,"keyup",i):queueMicrotask(i)}}else i&&(f.current=!0,n||(e.preventDefault(),d(!0)))}})),v=o.onKeyUp,b=Gc((e=>{if(null==v||v(e),e.defaultPrevented)return;if(p)return;if(m)return;if(e.metaKey)return;const t=r&&" "===e.key;if(f.current&&t&&(f.current=!1,!cg(e))){e.preventDefault(),d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=tc(n,["view"]);queueMicrotask((()=>zc(t,o)))}}));return o=ec(Jl({"data-command":"","data-active":u?"":void 0,type:l?"button":void 0},o),{ref:qc(i,o.ref),onKeyDown:g,onKeyUp:b}),o=xd(o)}));Mu((e=>Bu("button",e=ug(e))));var dg=Du(),fg=dg.useContext,pg=(dg.useScopedContext,dg.useProviderContext,dg.ContextProvider),mg=dg.ScopedContextProvider,hg=Lu((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=hc,element:i}=t,a=tc(t,["store","shouldRegisterItem","getItem","element"]);const s=fg();n=n||s;const l=Yc(a.id),c=(0,Sr.useRef)(i);return(0,Sr.useEffect)((()=>{const e=c.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),a=ec(Jl({},a),{ref:qc(c,a.ref)})}));Mu((e=>Bu("div",hg(e))));function gg(e,t){return t&&e.item(t)||null}var vg=Symbol("FOCUS_SILENTLY");function bg(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var yg=Du([pg],[mg]),kg=yg.useContext,wg=(yg.useScopedContext,yg.useProviderContext),_g=yg.ContextProvider,Eg=yg.ScopedContextProvider,xg=(0,Sr.createContext)(void 0),Sg=(0,Sr.createContext)(void 0);function Cg(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Ig(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=Rc(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=gg(t,l))?void 0:o.element;if(!a)continue;const u=Cg(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var Tg=Lu((e=>{var t=e,{store:n,rowId:r,preventScrollOnKeyDown:o=!1,moveOnKeyPress:i=!0,getItem:a,"aria-setsize":s,"aria-posinset":l}=t,c=tc(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","getItem","aria-setsize","aria-posinset"]);const u=kg();n=n||u;const d=Yc(c.id),f=(0,Sr.useRef)(null),p=(0,Sr.useContext)(Sg),m=yu(n,(e=>r||(e&&(null==p?void 0:p.baseElement)&&p.baseElement===e.baseElement?p.id:void 0))),h=bc(c)&&!c.accessibleWhenDisabled,g=(0,Sr.useCallback)((e=>{const t=ec(Jl({},e),{id:d||e.id,rowId:m,disabled:!!h});return a?a(t):t}),[d,m,h,a]),v=c.onFocus,b=(0,Sr.useRef)(!1),y=Gc((e=>{if(null==v||v(e),e.defaultPrevented)return;if(Bc(e))return;if(!d)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!Lc(e)&&bg(t,e.target)}(e,n))return;if(t!==d&&n.setActiveId(d),!r)return;if(!Lc(e))return;if((i=e.currentTarget).isContentEditable||Mc(i)||"INPUT"===i.tagName&&!Tc(i))return;var i;if(!o)return;b.current=!0;e.relatedTarget===o||bg(n,e.relatedTarget)?function(e){e[vg]=!0,e.focus()}(o):o.focus()})),k=c.onBlurCapture,w=Gc((e=>{if(null==k||k(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&b.current&&(b.current=!1,e.preventDefault(),e.stopPropagation())})),_=c.onKeyDown,E=Jc(o),x=Jc(i),S=Gc((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!Lc(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(d),i=!!(null==o?void 0:o.rowId),a="horizontal"!==r.orientation,s="vertical"!==r.orientation,l={ArrowUp:(i||a)&&n.up,ArrowRight:(i||s)&&n.next,ArrowDown:(i||a)&&n.down,ArrowLeft:(i||s)&&n.previous,Home:()=>!i||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1),End:()=>!i||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1),PageUp:()=>Ig(t,n,null==n?void 0:n.up,!0),PageDown:()=>Ig(t,n,null==n?void 0:n.down)}[e.key];if(l){const t=l();if(E(e)||void 0!==t){if(!x(e))return;e.preventDefault(),n.move(t)}}})),C=yu(n,(e=>(null==e?void 0:e.baseElement)||void 0)),I=(0,Sr.useMemo)((()=>({id:d,baseElement:C})),[d,C]);c=eu(c,(e=>(0,Au.jsx)(xg.Provider,{value:I,children:e})),[I]);const T=yu(n,(e=>!!e&&e.activeId===d)),P=yu(n,"virtualFocus"),N=function(e,t){const n=t.role,[r,o]=(0,Sr.useState)(n);return Wc((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(f,c);let O;T&&(!function(e){return"option"===e||"treeitem"===e}(N)?P&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(N)&&(O=!0):O=!0);const A=yu(n,(e=>null!=s?s:e&&(null==p?void 0:p.ariaSetSize)&&p.baseElement===e.baseElement?p.ariaSetSize:void 0)),M=yu(n,(e=>{if(null!=l)return l;if(!e)return;if(!(null==p?void 0:p.ariaPosInSet))return;if(p.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===m));return p.ariaPosInSet+t.findIndex((e=>e.id===d))})),R=yu(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&e.activeId===d));return c=ec(Jl({id:d,"aria-selected":O,"data-active-item":T?"":void 0},c),{ref:qc(f,c.ref),tabIndex:R?c.tabIndex:-1,onFocus:y,onBlurCapture:w,onKeyDown:S}),c=ug(c),c=hg(ec(Jl({store:n},c),{getItem:g,shouldRegisterItem:!!d&&c.shouldRegisterItem})),ec(Jl({},c),{"aria-setsize":A,"aria-posinset":M})}));Ru((e=>Bu("button",Tg(e))));var Pg=Du([_g],[Eg]),Ng=Pg.useContext,Og=(Pg.useScopedContext,Pg.useProviderContext,Pg.ContextProvider,Pg.ScopedContextProvider,Lu((e=>{var t=e,{store:n}=t,r=tc(t,["store"]);const o=Ng();return r=Tg(Jl({store:n=n||o},r))}))),Ag=Ru((e=>Bu("button",Og(e))));const Mg=(0,Sr.createContext)(void 0);const Rg=(0,Sr.forwardRef)((function({children:e,as:t,...n},r){const o=(0,Sr.useContext)(Mg),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm("`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component. See https://developer.wordpress.org/block-editor/components/toolbar-item/"),null;const a={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,Sr.createElement)(t,{...a},e):i?e(a):null;const s=i?e:t&&(0,Sr.createElement)(t,null,e);return(0,Sr.createElement)(Ag,{...a,store:o,render:s})})),Bg=({children:e,className:t})=>(0,Sr.createElement)("div",{className:t},e);const Lg=(0,Sr.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:a,...s},l){return(0,Sr.useContext)(Mg)?(0,Sr.createElement)(Rg,{className:Vl()("components-toolbar-button",t),...r,...s,ref:l},(t=>(0,Sr.createElement)(lg,{label:a,isPressed:o,disabled:i,...t},e))):(0,Sr.createElement)(Bg,{className:n},(0,Sr.createElement)(lg,{ref:l,icon:s.icon,label:a,shortcut:s.shortcut,"data-subscript":s.subscript,onClick:e=>{e.stopPropagation(),s.onClick&&s.onClick(e)},className:Vl()("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...s},e))})),Dg=Lg,zg=({className:e,children:t,...n})=>(0,Sr.createElement)("div",{className:e,...n},t),Fg=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function jg(e,t){"function"==typeof e?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function Vg(e){const t=(0,Sr.useRef)(),n=(0,Sr.useRef)(!1),r=(0,Sr.useRef)(!1),o=(0,Sr.useRef)([]),i=(0,Sr.useRef)(e);return i.current=e,(0,Sr.useLayoutEffect)((()=>{!1===r.current&&!0===n.current&&e.forEach(((e,n)=>{const r=o.current[n];e!==r&&(jg(r,null),jg(e,t.current))})),o.current=e}),e),(0,Sr.useLayoutEffect)((()=>{r.current=!1})),(0,Sr.useCallback)((e=>{jg(t,e),r.current=!0,n.current=null!==e;const a=e?i.current:o.current;for(const t of a)jg(t,e)}),[])}function Hg({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,a]=(0,Sr.useState)(o);let s;return s=r&&"function"==typeof t?t:r||"function"!=typeof t?a:e=>{t(e),a(e)},[r?n:i,s]}const $g=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Wf({element:n.current,padding:r}).fn(t):{}:n?Wf({element:n,padding:r}).fn(t):{};var o}});var Ug="undefined"!=typeof document?Sr.useLayoutEffect:Sr.useEffect;function Wg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Wg(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Wg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Kg(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gg(e,t){const n=Kg(e);return Math.round(t*n)/n}function qg(e){const t=Sr.useRef(e);return Ug((()=>{t.current=e})),t}const Yg="undefined"!=typeof document,Xg={current:null},Zg={current:!1};function Qg(){if(Zg.current=!0,Yg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xg.current=e.matches;e.addListener(t),t()}else Xg.current=!1}function Jg(){!Zg.current&&Qg();const[e]=(0,Sr.useState)(Xg.current);return e}const ev=(0,Sr.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),tv=(0,Sr.createContext)({}),nv=(0,Sr.createContext)(null),rv=Yg?Sr.useLayoutEffect:Sr.useEffect,ov=(0,Sr.createContext)({strict:!1});function iv(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function av(e){return"string"==typeof e||Array.isArray(e)}function sv(e){return"object"==typeof e&&"function"==typeof e.start}const lv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cv=["initial",...lv];function uv(e){return sv(e.animate)||cv.some((t=>av(e[t])))}function dv(e){return Boolean(uv(e)||e.variants)}function fv(e){const{initial:t,animate:n}=function(e,t){if(uv(e)){const{initial:t,animate:n}=e;return{initial:!1===t||av(t)?t:void 0,animate:av(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,Sr.useContext)(tv));return(0,Sr.useMemo)((()=>({initial:t,animate:n})),[pv(t),pv(n)])}function pv(e){return Array.isArray(e)?e.join(" "):e}const mv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hv={};for(const e in mv)hv[e]={isEnabled:t=>mv[e].some((e=>!!t[e]))};const gv=(0,Sr.createContext)({}),vv=(0,Sr.createContext)({}),bv=Symbol.for("motionComponentSymbol");function yv({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)hv[t]={...hv[t],...e[t]}}(e);const i=(0,Sr.forwardRef)((function(i,a){let s;const l={...(0,Sr.useContext)(ev),...i,layoutId:kv(i)},{isStatic:c}=l,u=fv(i),d=r(i,c);if(!c&&Yg){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,Sr.useContext)(tv),i=(0,Sr.useContext)(ov),a=(0,Sr.useContext)(nv),s=(0,Sr.useContext)(ev).reducedMotion,l=(0,Sr.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;(0,Sr.useInsertionEffect)((()=>{c&&c.update(n,a)}));const u=(0,Sr.useRef)(Boolean(window.HandoffAppearAnimations));return rv((()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())})),(0,Sr.useEffect)((()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1)})),c}(o,d,l,t);const n=(0,Sr.useContext)(vv),r=(0,Sr.useContext)(ov).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,n))}return Sr.createElement(tv.Provider,{value:u},s&&u.visualElement?Sr.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,function(e,t,n){return(0,Sr.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):iv(n)&&(n.current=r))}),[t])}(d,u.visualElement,a),d,c,u.visualElement))}));return i[bv]=o,i}function kv({layoutId:e}){const t=(0,Sr.useContext)(gv).id;return t&&void 0!==e?t+"-"+e:e}function wv(e){function t(t,n={}){return yv(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const _v=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ev(e){return"string"==typeof e&&!e.includes("-")&&!!(_v.indexOf(e)>-1||/[A-Z]/.test(e))}const xv={};const Sv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cv=new Set(Sv);function Iv(e,{layout:t,layoutId:n}){return Cv.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!xv[e]||"opacity"===e)}const Tv=e=>Boolean(e&&e.getVelocity),Pv={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nv=Sv.length;const Ov=e=>t=>"string"==typeof t&&t.startsWith(e),Av=Ov("--"),Mv=Ov("var(--"),Rv=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Bv=(e,t,n)=>Math.min(Math.max(n,e),t),Lv={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Dv={...Lv,transform:e=>Bv(0,1,e)},zv={...Lv,default:1},Fv=e=>Math.round(1e5*e)/1e5,jv=/(-)?([\d]*\.?[\d])+/g,Vv=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Hv=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $v(e){return"string"==typeof e}const Uv=e=>({test:t=>$v(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Wv=Uv("deg"),Kv=Uv("%"),Gv=Uv("px"),qv=Uv("vh"),Yv=Uv("vw"),Xv={...Kv,parse:e=>Kv.parse(e)/100,transform:e=>Kv.transform(100*e)},Zv={...Lv,transform:Math.round},Qv={borderWidth:Gv,borderTopWidth:Gv,borderRightWidth:Gv,borderBottomWidth:Gv,borderLeftWidth:Gv,borderRadius:Gv,radius:Gv,borderTopLeftRadius:Gv,borderTopRightRadius:Gv,borderBottomRightRadius:Gv,borderBottomLeftRadius:Gv,width:Gv,maxWidth:Gv,height:Gv,maxHeight:Gv,size:Gv,top:Gv,right:Gv,bottom:Gv,left:Gv,padding:Gv,paddingTop:Gv,paddingRight:Gv,paddingBottom:Gv,paddingLeft:Gv,margin:Gv,marginTop:Gv,marginRight:Gv,marginBottom:Gv,marginLeft:Gv,rotate:Wv,rotateX:Wv,rotateY:Wv,rotateZ:Wv,scale:zv,scaleX:zv,scaleY:zv,scaleZ:zv,skew:Wv,skewX:Wv,skewY:Wv,distance:Gv,translateX:Gv,translateY:Gv,translateZ:Gv,x:Gv,y:Gv,z:Gv,perspective:Gv,transformPerspective:Gv,opacity:Dv,originX:Xv,originY:Xv,originZ:Gv,zIndex:Zv,fillOpacity:Dv,strokeOpacity:Dv,numOctaves:Zv};function Jv(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Av(e)){i[e]=n;continue}const r=Qv[e],d=Rv(n,r);if(Cv.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Nv;t++){const n=Sv[t];void 0!==e[n]&&(i+=`${Pv[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const eb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tb(e,t,n){for(const r in t)Tv(t[r])||Iv(r,n)||(e[r]=t[r])}function nb(e,t,n){const r={};return tb(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,Sr.useMemo)((()=>{const r=eb();return Jv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function rb(e,t,n){const r={},o=nb(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const ob=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ib(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||ob.has(e)}let ab=e=>!ib(e);try{(sb=o(8208).Z)&&(ab=e=>e.startsWith("on")?!ib(e):sb(e))}catch(_c){}var sb;function lb(e,t,n){return"string"==typeof e?e:Gv.transform(t+n*e)}const cb={offset:"stroke-dashoffset",array:"stroke-dasharray"},ub={offset:"strokeDashoffset",array:"strokeDasharray"};function db(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(Jv(e,c,u,f),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:h}=e;p.transform&&(h&&(m.transform=p.transform),delete p.transform),h&&(void 0!==o||void 0!==i||m.transform)&&(m.transformOrigin=function(e,t,n){return`${lb(t,e.x,e.width)} ${lb(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?cb:ub;e[i.offset]=Gv.transform(-r);const a=Gv.transform(t),s=Gv.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const fb=()=>({...eb(),attrs:{}}),pb=e=>"string"==typeof e&&"svg"===e.toLowerCase();function mb(e,t,n,r){const o=(0,Sr.useMemo)((()=>{const n=fb();return db(n,t,{enableHardwareAcceleration:!1},pb(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};tb(t,e.style,e),o.style={...t,...o.style}}return o}function hb(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(Ev(t)?mb:rb)(n,o,i,t),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(ab(o)||!0===n&&ib(o)||!t&&!ib(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l={...s,...a,ref:r},{children:c}=n,u=(0,Sr.useMemo)((()=>Tv(c)?c.get():c),[c]);return(0,Sr.createElement)(t,{...l,children:u})}}const gb=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function vb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const bb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yb(e,t,n,r){vb(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(bb.has(n)?n:gb(n),t.attrs[n])}function kb(e,t){const{style:n}=e,r={};for(const o in n)(Tv(n[o])||t.style&&Tv(t.style[o])||Iv(o,e))&&(r[o]=n[o]);return r}function wb(e,t){const n=kb(e,t);for(const r in e)if(Tv(e[r])||Tv(t[r])){n[-1!==Sv.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function _b(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Eb(e){const t=(0,Sr.useRef)(null);return null===t.current&&(t.current=e()),t.current}const xb=e=>Array.isArray(e),Sb=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Cb=e=>xb(e)?e[e.length-1]||0:e;function Ib(e){const t=Tv(e)?e.get():e;return Sb(t)?t.toValue():t}const Tb=e=>(t,n)=>{const r=(0,Sr.useContext)(tv),o=(0,Sr.useContext)(nv),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Pb(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():Eb(i)};function Pb(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Ib(i[e]);let{initial:a,animate:s}=e;const l=uv(e),c=dv(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!sv(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=_b(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const Nb=e=>e;class Ob{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Ab=["prepare","read","update","preRender","render","postRender"];const{schedule:Mb,cancel:Rb,state:Bb,steps:Lb}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Ab.reduce(((e,t)=>(e[t]=function(e){let t=new Ob,n=new Ob,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),a=e=>i[e].process(o),s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,Ab.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=Ab.reduce(((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t}),{});return{schedule:l,cancel:e=>Ab.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Nb,!0),Db={useVisualState:Tb({scrapeMotionValuesFromProps:wb,createRenderState:fb,onMount:(e,t,{renderState:n,latestValues:r})=>{Mb.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Mb.render((()=>{db(n,r,{enableHardwareAcceleration:!1},pb(t.tagName),e.transformTemplate),yb(t,n)}))}})},zb={useVisualState:Tb({scrapeMotionValuesFromProps:kb,createRenderState:eb})};function Fb(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const jb=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Vb(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Hb=e=>t=>jb(t)&&e(t,Vb(t));function $b(e,t,n,r){return Fb(e,t,Hb(n),r)}const Ub=(e,t)=>n=>t(e(n)),Wb=(...e)=>e.reduce(Ub);function Kb(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Gb=Kb("dragHorizontal"),qb=Kb("dragVertical");function Yb(e){let t=!1;if("y"===e)t=qb();else if("x"===e)t=Gb();else{const e=Gb(),n=qb();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Xb(){const e=Yb(!0);return!e||(e(),!1)}class Zb{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Qb(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return $b(e.current,n,((n,o)=>{if("touch"===n.type||Xb())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Mb.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Jb=(e,t)=>!!t&&(e===t||Jb(e,t.parentElement));function ey(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Vb(n))}const ty=new WeakMap,ny=new WeakMap,ry=e=>{const t=ty.get(e.target);t&&t(e)},oy=e=>{e.forEach(ry)};function iy(e,t,n){const r=function({root:e,...t}){const n=e||document;ny.has(n)||ny.set(n,{});const r=ny.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(oy,{root:e,...t})),r[o]}(t);return ty.set(e,n),r.observe(e),()=>{ty.delete(e),r.unobserve(e)}}const ay={some:0,all:1};const sy={inView:{Feature:class extends Zb{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ay[r]};return iy(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Zb{constructor(){super(...arguments),this.removeStartListeners=Nb,this.removeEndListeners=Nb,this.removeAccessibleListeners=Nb,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=$b(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Mb.update((()=>{Jb(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=$b(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Wb(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Fb(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Fb(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&ey("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Mb.update((()=>n(e,t)))}))})),ey("down",((e,t)=>{this.startPress(e,t)}))})),t=Fb(this.node.current,"blur",(()=>{this.isPressing&&ey("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Wb(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Mb.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xb()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Mb.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=$b(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Fb(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Wb(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Zb{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wb(Fb(this.node.current,"focus",(()=>this.onFocus())),Fb(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Zb{mount(){this.unmount=Wb(Qb(this.node,!0),Qb(this.node,!1))}unmount(){}}}};function ly(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function cy(e,t,n){const r=e.getProps();return _b(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const uy="data-"+gb("framerAppearId");let dy=Nb,fy=Nb;const py=e=>1e3*e,my=e=>e/1e3,hy=!1,gy=e=>Array.isArray(e)&&"number"==typeof e[0];function vy(e){return Boolean(!e||"string"==typeof e&&yy[e]||gy(e)||Array.isArray(e)&&e.every(vy))}const by=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:by([0,.65,.55,1]),circOut:by([.55,0,1,.45]),backIn:by([.31,.01,.66,-.59]),backOut:by([.33,1.53,.69,.99])};function ky(e){if(e)return gy(e)?by(e):Array.isArray(e)?e.map(ky):yy[e]}const wy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_y=1e-7,Ey=12;function xy(e,t,n,r){if(e===t&&n===r)return Nb;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=wy(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>_y&&++s<Ey);return a}(t,0,1,e,n);return e=>0===e||1===e?e:wy(o(e),t,r)}const Sy=xy(.42,0,1,1),Cy=xy(0,0,.58,1),Iy=xy(.42,0,.58,1),Ty=e=>Array.isArray(e)&&"number"!=typeof e[0],Py=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ny=e=>t=>1-e(1-t),Oy=e=>1-Math.sin(Math.acos(e)),Ay=Ny(Oy),My=Py(Ay),Ry=xy(.33,1.53,.69,.99),By=Ny(Ry),Ly=Py(By),Dy={linear:Nb,easeIn:Sy,easeInOut:Iy,easeOut:Cy,circIn:Oy,circInOut:My,circOut:Ay,backIn:By,backInOut:Ly,backOut:Ry,anticipate:e=>(e*=2)<1?.5*By(e):.5*(2-Math.pow(2,-10*(e-1)))},zy=e=>{if(Array.isArray(e)){fy(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return xy(t,n,r,o)}return"string"==typeof e?(fy(void 0!==Dy[e],`Invalid easing type '${e}'`),Dy[e]):e},Fy=(e,t)=>n=>Boolean($v(n)&&Hv.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),jy=(e,t,n)=>r=>{if(!$v(r))return r;const[o,i,a,s]=r.match(jv);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Vy={...Lv,transform:e=>Math.round((e=>Bv(0,255,e))(e))},Hy={test:Fy("rgb","red"),parse:jy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vy.transform(e)+", "+Vy.transform(t)+", "+Vy.transform(n)+", "+Fv(Dv.transform(r))+")"};const $y={test:Fy("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Hy.transform},Uy={test:Fy("hsl","hue"),parse:jy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Kv.transform(Fv(t))+", "+Kv.transform(Fv(n))+", "+Fv(Dv.transform(r))+")"},Wy={test:e=>Hy.test(e)||$y.test(e)||Uy.test(e),parse:e=>Hy.test(e)?Hy.parse(e):Uy.test(e)?Uy.parse(e):$y.parse(e),transform:e=>$v(e)?e:e.hasOwnProperty("red")?Hy.transform(e):Uy.transform(e)},Ky=(e,t,n)=>-n*e+n*t+e;function Gy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const qy=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Yy=[$y,Hy,Uy];function Xy(e){const t=(e=>Yy.find((t=>t.test(e))))(e);fy(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Uy&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Gy(s,r,e+1/3),i=Gy(s,r,e),a=Gy(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const Zy=(e,t)=>{const n=Xy(e),r=Xy(t),o={...n};return e=>(o.red=qy(n.red,r.red,e),o.green=qy(n.green,r.green,e),o.blue=qy(n.blue,r.blue,e),o.alpha=Ky(n.alpha,r.alpha,e),Hy.transform(o))};const Qy={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Nb},Jy={regex:Vv,countKey:"Colors",token:"${c}",parse:Wy.parse},ek={regex:jv,countKey:"Numbers",token:"${n}",parse:Lv.parse};function tk(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function nk(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tk(n,Qy),tk(n,Jy),tk(n,ek),n}function rk(e){return nk(e).values}function ok(e){const{values:t,numColors:n,numVars:r,tokenised:o}=nk(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(Qy.token,e[o]):o<r+n?t.replace(Jy.token,Wy.transform(e[o])):t.replace(ek.token,Fv(e[o]));return t}}const ik=e=>"number"==typeof e?0:e;const ak={test:function(e){var t,n;return isNaN(e)&&$v(e)&&((null===(t=e.match(jv))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Vv))||void 0===n?void 0:n.length)||0)>0},parse:rk,createTransformer:ok,getAnimatableNone:function(e){const t=rk(e);return ok(e)(t.map(ik))}},sk=(e,t)=>n=>`${n>0?t:e}`;function lk(e,t){return"number"==typeof e?n=>Ky(e,t,n):Wy.test(e)?Zy(e,t):e.startsWith("var(")?sk(e,t):dk(e,t)}const ck=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>lk(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},uk=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=lk(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},dk=(e,t)=>{const n=ak.createTransformer(t),r=nk(e),o=nk(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Wb(ck(r.values,o.values),n):(dy(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),sk(e,t))},fk=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},pk=(e,t)=>n=>Ky(e,t,n);function mk(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?pk:"string"==typeof e?Wy.test(e)?Zy:dk:Array.isArray(e)?ck:"object"==typeof e?uk:pk}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Nb:t;i=Wb(e,i)}r.push(i)}return r}function hk(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(fy(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=mk(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=fk(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Bv(e[0],e[i-1],t)):l}function gk(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=fk(0,t,r);e.push(Ky(n,1,o))}}(t,e.length-1),t}function vk({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Ty(r)?r.map(zy):zy(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:gk(t),e),s=hk(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Iy)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function bk(e,t){return t?e*(1e3/t):0}const yk=5;function kk(e,t,n){const r=Math.max(t-yk,0);return bk(n-e(r),t-r)}const wk=.001,_k=.01,Ek=10,xk=.05,Sk=1;function Ck({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;dy(e<=py(Ek),"Spring duration must be 10 seconds or less");let a=1-t;a=Bv(xk,Sk,a),e=Bv(_k,Ek,my(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Tk(t,a),l=Math.exp(-o);return wk-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=Tk(Math.pow(t,2),a);return(-o(t)+wk>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-wk,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Ik;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=py(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Ik=12;function Tk(e,t){return e*Math.sqrt(1-t*t)}const Pk=["duration","bounce"],Nk=["stiffness","damping","mass"];function Ok(e,t){return t.some((t=>void 0!==e[t]))}function Ak({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ok(e,Nk)&&Ok(e,Pk)){const n=Ck(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-my(u):0,m=l/(2*Math.sqrt(s*c)),h=i-o,g=my(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=Tk(g,m);b=t=>{const n=Math.exp(-m*g*t);return i-n*((p+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)b=e=>i-Math.exp(-g*e)*(h+(p+g*h)*e);else{const e=g*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*g*t),r=Math.min(e*t,300);return i-n*((p+m*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=m<1?kk(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Mk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let k,w;const _=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(k=e,w=Ak({keyframes:[f.value,p(f.value)],velocity:kk(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==k||(t=!0,y(e),_(e)),void 0!==k&&e>k?w.next(e-k):(!t&&y(e),f)}}}const Rk=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Mb.update(t,!0),stop:()=>Rb(t),now:()=>Bb.isProcessing?Bb.timestamp:performance.now()}},Bk=2e4;function Lk(e){let t=0;let n=e.next(t);for(;!n.done&&t<Bk;)t+=50,n=e.next(t);return t>=Bk?1/0:t}const Dk={decay:Mk,inertia:Mk,tween:vk,keyframes:vk,spring:Ak};function zk({autoplay:e=!0,delay:t=0,driver:n=Rk,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,m,h=1,g=!1;const v=()=>{m=new Promise((e=>{p=e}))};let b;v();const y=Dk[o]||vk;let k;y!==vk&&"number"!=typeof r[0]&&(k=hk([0,100],r,{clamp:!1}),r=[0,100]);const w=y({...f,keyframes:r});let _;"mirror"===s&&(_=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let E="idle",x=null,S=null,C=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=Lk(w));const{calculatedDuration:I}=w;let T=1/0,P=1/0;null!==I&&(T=I+a,P=T*(i+1)-a);let N=0;const O=e=>{if(null===S)return;h>0&&(S=Math.min(S,e)),h<0&&(S=Math.min(e-P/h,S)),N=null!==x?x:Math.round(e-S)*h;const n=N-t*(h>=0?1:-1),o=h>=0?n<0:n>P;N=Math.max(n,0),"finished"===E&&null===x&&(N=P);let l=N,c=w;if(i){const e=N/T;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(c=_));let o=Bv(0,1,n);N>P&&(o="reverse"===s&&r?1:0),l=o*T}const u=o?{done:!1,value:r[0]}:c.next(l);k&&(u.value=k(u.value));let{done:f}=u;o||null===I||(f=h>=0?N>=P:N<=0);const p=null===x&&("finished"===E||"running"===E&&f);return d&&d(u.value),p&&R(),u},A=()=>{b&&b.stop(),b=void 0},M=()=>{E="idle",A(),p(),v(),S=C=null},R=()=>{E="finished",u&&u(),A(),p()},B=()=>{if(g)return;b||(b=n(O));const e=b.now();l&&l(),null!==x?S=e-x:S&&"finished"!==E||(S=e),"finished"===E&&v(),C=S,x=null,E="running",b.start()};e&&B();const L={then:(e,t)=>m.then(e,t),get time(){return my(N)},set time(e){e=py(e),N=e,null===x&&b&&0!==h?S=b.now()-e/h:x=e},get duration(){const e=null===w.calculatedDuration?Lk(w):w.calculatedDuration;return my(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,L.time=my(N))},get state(){return E},play:B,pause:()=>{E="paused",x=N},stop:()=>{g=!0,"idle"!==E&&(E="idle",c&&c(),M())},cancel:()=>{null!==C&&O(C),M()},complete:()=>{E="finished"},sample:e=>(S=0,O(e))};return L}const Fk=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),jk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Vk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Fk()&&jk.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!vy(t.ease))(t,o)){const e=zk({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const p=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=ky(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f});o.syncStart&&(p.startTime=Bb.isProcessing?Bb.timestamp:document.timeline?document.timeline.currentTime:performance.now());const m=()=>p.cancel(),h=()=>{Mb.update(m),i(),l()};p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,Nb),get time(){return my(p.currentTime||0)},set time(e){p.currentTime=py(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return my(u)},play:()=>{s||(p.play(),Rb(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=zk({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}const Hk={type:"spring",stiffness:500,damping:25,restSpeed:10},$k={type:"keyframes",duration:.8},Uk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Wk=(e,{keyframes:t})=>t.length>2?$k:Cv.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Hk:Uk,Kk=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ak.test(t)&&"0"!==t||t.startsWith("url("))),Gk=new Set(["brightness","contrast","saturate","opacity"]);function qk(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(jv)||[];if(!r)return e;const o=n.replace(r,"");let i=Gk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Yk=/([a-z-]*)\(.*?\)/g,Xk={...ak,getAnimatableNone:e=>{const t=e.match(Yk);return t?t.map(qk).join(" "):e}},Zk={...Qv,color:Wy,backgroundColor:Wy,outlineColor:Wy,fill:Wy,stroke:Wy,borderColor:Wy,borderTopColor:Wy,borderRightColor:Wy,borderBottomColor:Wy,borderLeftColor:Wy,filter:Xk,WebkitFilter:Xk},Qk=e=>Zk[e];function Jk(e,t){let n=Qk(e);return n!==Xk&&(n=ak),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ew=e=>/^0[^.\s]+$/.test(e);function tw(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||ew(e):void 0}function nw(e,t){return e[t]||e.default||e}const rw=(e,t,n,r={})=>o=>{const i=nw(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=py(a);const l=function(e,t,n,r){const o=Kk(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),tw(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=Jk(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Kk(e,c),f=Kk(e,u);dy(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Wk(e,p)}),p.duration&&(p.duration=py(p.duration)),p.repeatDelay&&(p.repeatDelay=py(p.repeatDelay)),!d||!f||hy||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Nb,pause:Nb,stop:Nb,then:e=>(e(),Promise.resolve()),cancel:Nb,complete:Nb});return t?zk({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(hy?{...p,delay:0}:p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Vk(t,e,p);if(n)return n}return zk(p)};function ow(e){return Boolean(Tv(e)&&e.add)}const iw=e=>/^\-?\d*\.?\d+$/.test(e);function aw(e,t){-1===e.indexOf(t)&&e.push(t)}function sw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class lw{constructor(){this.subscriptions=[]}add(e){return aw(this.subscriptions,e),()=>sw(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cw={current:void 0};class uw{constructor(e,t={}){var n;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=Bb;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Mb.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Mb.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new lw);const n=this.events[e].add(t);return"change"===e?()=>{n(),Mb.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return cw.current&&cw.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dw(e,t){return new uw(e,t)}const fw=e=>t=>t.test(e),pw=[Lv,Gv,Kv,Wv,Yv,qv,{test:e=>"auto"===e,parse:e=>e}],mw=e=>pw.find(fw(e)),hw=[...pw,Wy,ak],gw=e=>hw.find(fw(e));function vw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dw(n))}function bw(e,t){const n=cy(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){vw(e,t,Cb(i[t]))}}function yw(e,t){if(!t)return;return(t[e]||t.default||t).from}function kw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ww(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&kw(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[uy];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Mb),a.syncStart=!0)}r.start(rw(t,r,o,e.shouldReduceMotion&&Cv.has(t)?{type:!1}:a));const d=r.animation;ow(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&bw(e,a)})),c}function _w(e,t,n={}){const r=cy(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ww(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Ew).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(_w(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function Ew(e,t){return e.sortNodePosition(t)}const xw=[...lv].reverse(),Sw=lv.length;function Cw(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>_w(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=_w(e,t,n);else{const o="function"==typeof t?cy(e,t,n.custom):t;r=Promise.all(ww(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Iw(e){let t=Cw(e);const n={animate:Pw(!0),whileInView:Pw(),whileHover:Pw(),whileTap:Pw(),whileDrag:Pw(),whileFocus:Pw(),exit:Pw()};let r=!0;const o=(t,n)=>{const r=cy(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<Sw;t++){const p=xw[t],m=n[p],h=void 0!==s[p]?s[p]:l[p],g=av(h),v=p===a?m.isActive:null;!1===v&&(f=t);let b=h===l[p]&&h!==s[p]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...d},!m.isActive&&null===v||!h&&!m.prevProp||sv(h)||"boolean"==typeof h)continue;const y=Tw(m.prevProp,h);let k=y||p===a&&m.isActive&&!b&&g||t>f&&g;const w=Array.isArray(h)?h:[h];let _=w.reduce(o,{});!1===v&&(_={});const{prevResolvedValues:E={}}=m,x={...E,..._},S=e=>{k=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in x){const t=_[e],n=E[e];d.hasOwnProperty(e)||(t!==n?xb(t)&&xb(n)?!ly(t,n)||y?S(e):m.protectedKeys[e]=!0:void 0!==t?S(e):u.add(e):void 0!==t&&u.has(e)?S(e):m.protectedKeys[e]=!0)}m.prevProp=h,m.prevResolvedValues=_,m.isActive&&(d={...d,..._}),r&&e.blockInitialAnimation&&(k=!1),k&&!b&&c.push(...w.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Tw(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ly(t,e)}function Pw(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Nw=0;const Ow={animation:{Feature:class extends Zb{constructor(e){super(e),e.animationState||(e.animationState=Iw(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),sv(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Zb{constructor(){super(...arguments),this.id=Nw++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Aw=(e,t)=>Math.abs(e-t);class Mw{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Lw(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Aw(e.x,t.x),r=Aw(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Bb;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Rw(t,this.transformPagePoint),Mb.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Lw("pointercancel"===e.type?this.lastMoveEventInfo:Rw(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!jb(e))return;this.handlers=t,this.transformPagePoint=n;const r=Rw(Vb(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Bb;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Lw(r,this.history)),this.removeListeners=Wb($b(window,"pointermove",this.handlePointerMove),$b(window,"pointerup",this.handlePointerUp),$b(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Rb(this.updatePoint)}}function Rw(e,t){return t?{point:t(e.point)}:e}function Bw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lw({point:e},t){return{point:e,delta:Bw(e,zw(t)),offset:Bw(e,Dw(t)),velocity:Fw(t,.1)}}function Dw(e){return e[0]}function zw(e){return e[e.length-1]}function Fw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=zw(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>py(t)));)n--;if(!r)return{x:0,y:0};const i=my(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function jw(e){return e.max-e.min}function Vw(e,t=0,n=.01){return Math.abs(e-t)<=n}function Hw(e,t,n,r=.5){e.origin=r,e.originPoint=Ky(t.min,t.max,e.origin),e.scale=jw(n)/jw(t),(Vw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ky(n.min,n.max,e.origin)-e.originPoint,(Vw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $w(e,t,n,r){Hw(e.x,t.x,n.x,r?r.originX:void 0),Hw(e.y,t.y,n.y,r?r.originY:void 0)}function Uw(e,t,n){e.min=n.min+t.min,e.max=e.min+jw(t)}function Ww(e,t,n){e.min=t.min-n.min,e.max=e.min+jw(t)}function Kw(e,t,n){Ww(e.x,t.x,n.x),Ww(e.y,t.y,n.y)}function Gw(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function qw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Yw=.35;function Xw(e,t,n){return{min:Zw(e,t),max:Zw(e,n)}}function Zw(e,t){return"number"==typeof e?e:e[t]||0}const Qw=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Jw=()=>({x:{min:0,max:0},y:{min:0,max:0}});function e_(e){return[e("x"),e("y")]}function t_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function n_(e){return void 0===e||1===e}function r_({scale:e,scaleX:t,scaleY:n}){return!n_(e)||!n_(t)||!n_(n)}function o_(e){return r_(e)||i_(e)||e.z||e.rotate||e.rotateX||e.rotateY}function i_(e){return a_(e.x)||a_(e.y)}function a_(e){return e&&"0%"!==e}function s_(e,t,n){return n+t*(e-n)}function l_(e,t,n,r,o){return void 0!==o&&(e=s_(e,o,r)),s_(e,n,r)+t}function c_(e,t=0,n=1,r,o){e.min=l_(e.min,t,n,r,o),e.max=l_(e.max,t,n,r,o)}function u_(e,{x:t,y:n}){c_(e.x,t.translate,t.scale,t.originPoint),c_(e.y,n.translate,n.scale,n.originPoint)}function d_(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function f_(e,t){e.min=e.min+t,e.max=e.max+t}function p_(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=Ky(e.min,e.max,i);c_(e,t[n],t[r],a,t.scale)}const m_=["x","scaleX","originX"],h_=["y","scaleY","originY"];function g_(e,t){p_(e.x,t,m_),p_(e.y,t,h_)}function v_(e,t){return t_(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const b_=new WeakMap;class y_{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Jw(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Mw(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Vb(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Yb(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),e_((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Kv.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=jw(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Mb.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Mb.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!k_(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Ky(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Ky(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&iv(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Gw(e.x,n,o),y:Gw(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Yw){return!1===e?e=0:!0===e&&(e=Yw),{x:Xw(e,"left","right"),y:Xw(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&e_((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!iv(e))return!1;const n=e.current;fy(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=v_(e,n),{scroll:o}=t;return o&&(f_(r.x,o.offset.x),f_(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:qw(e.x,t.x),y:qw(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=t_(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=e_((a=>{if(!k_(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(rw(e,n,0,t))}stopAnimation(){e_((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){e_((t=>{const{drag:n}=this.getProps();if(!k_(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Ky(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!iv(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};e_((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=jw(e),o=jw(t);return o>r?n=fk(t.min,t.max-r,e.min):r>o&&(n=fk(e.min,e.max-o,t.min)),Bv(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),e_((t=>{if(!k_(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Ky(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;b_.set(this.visualElement,this);const e=$b(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();iv(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Fb(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(e_((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Yw,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function k_(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const w_=e=>(t,n)=>{e&&Mb.update((()=>e(t,n)))};const __={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function E_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const x_={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Gv.test(e))return e;e=parseFloat(e)}return`${E_(e,t.target.x)}% ${E_(e,t.target.y)}%`}},S_={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ak.parse(e);if(o.length>5)return r;const i=ak.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ky(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class C_ extends Sr.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=T_,Object.assign(xv,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),__.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Mb.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function I_(e){const[t,n]=function(){const e=(0,Sr.useContext)(nv);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,Sr.useId)();return(0,Sr.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,Sr.useContext)(gv);return Sr.createElement(C_,{...e,layoutGroup:r,switchLayoutGroup:(0,Sr.useContext)(vv),isPresent:t,safeToRemove:n})}const T_={borderRadius:{...x_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:x_,borderTopRightRadius:x_,borderBottomLeftRadius:x_,borderBottomRightRadius:x_,boxShadow:S_},P_=["TopLeft","TopRight","BottomLeft","BottomRight"],N_=P_.length,O_=e=>"string"==typeof e?parseFloat(e):e,A_=e=>"number"==typeof e||Gv.test(e);function M_(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const R_=L_(0,.5,Ay),B_=L_(.5,.95,Nb);function L_(e,t,n){return r=>r<e?0:r>t?1:n(fk(e,t,r))}function D_(e,t){e.min=t.min,e.max=t.max}function z_(e,t){D_(e.x,t.x),D_(e.y,t.y)}function F_(e,t,n,r,o){return e=s_(e-=t,1/n,r),void 0!==o&&(e=s_(e,1/o,r)),e}function j_(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Kv.test(t)&&(t=parseFloat(t),t=Ky(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ky(i.min,i.max,r);e===i&&(s-=t),e.min=F_(e.min,t,n,s,o),e.max=F_(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const V_=["x","scaleX","originX"],H_=["y","scaleY","originY"];function $_(e,t,n,r){j_(e.x,t,V_,n?n.x:void 0,r?r.x:void 0),j_(e.y,t,H_,n?n.y:void 0,r?r.y:void 0)}function U_(e){return 0===e.translate&&1===e.scale}function W_(e){return U_(e.x)&&U_(e.y)}function K_(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function G_(e){return jw(e.x)/jw(e.y)}class q_{constructor(){this.members=[]}add(e){aw(this.members,e),e.scheduleRender()}remove(e){if(sw(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Y_(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const X_=(e,t)=>e.depth-t.depth;class Z_{constructor(){this.children=[],this.isDirty=!1}add(e){aw(this.children,e),this.isDirty=!0}remove(e){sw(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(X_),this.isDirty=!1,this.children.forEach(e)}}const Q_=["","X","Y","Z"];let J_=0;const eE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=J_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;eE.totalNodes=eE.resolvedTargetDeltas=eE.recalculatedProjection=0,this.nodes.forEach(oE),this.nodes.forEach(dE),this.nodes.forEach(fE),this.nodes.forEach(iE),e=eE,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Z_)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new lw),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Rb(r),e(i-t))};return Mb.read(r,!0),()=>Rb(r)}(r,250),__.hasAnimatedSinceResize&&(__.hasAnimatedSinceResize=!1,this.nodes.forEach(uE))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||bE,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!K_(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...nw(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||uE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rb(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pE),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(sE);this.isUpdating||this.nodes.forEach(lE),this.isUpdating=!1,this.nodes.forEach(cE),this.nodes.forEach(nE),this.nodes.forEach(rE),this.clearAllSnapshots();const e=performance.now();Bb.delta=Bv(0,1e3/60,e-Bb.timestamp),Bb.timestamp=e,Bb.isProcessing=!0,Lb.update.process(Bb),Lb.preRender.process(Bb),Lb.render.process(Bb),Bb.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(aE),this.sharedNodes.forEach(mE)}scheduleUpdateProjection(){Mb.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Mb.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Jw(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!W_(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||o_(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),wE((r=n).x),wE(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Jw();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(f_(t.x,n.offset.x),f_(t.y,n.offset.y)),t}removeElementScroll(e){const t=Jw();z_(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){z_(t,e);const{scroll:n}=this.root;n&&(f_(t.x,-n.offset.x),f_(t.y,-n.offset.y))}f_(t.x,o.offset.x),f_(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=Jw();z_(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&g_(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o_(r.latestValues)&&g_(n,r.latestValues)}return o_(this.latestValues)&&g_(n,this.latestValues),n}removeTransform(e){const t=Jw();z_(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!o_(n.latestValues))continue;r_(n.latestValues)&&n.updateSnapshot();const r=Jw();z_(r,n.measurePageBox()),$_(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return o_(this.latestValues)&&$_(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bb.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Bb.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jw(),this.relativeTargetOrigin=Jw(),Kw(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),z_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Jw(),this.targetWithTransforms=Jw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Uw(a.x,s.x,l.x),Uw(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):z_(this.target,this.layout.layoutBox),u_(this.target,this.targetDelta)):z_(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jw(),this.relativeTargetOrigin=Jw(),Kw(this.relativeTargetOrigin,this.target,e.target),z_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}eE.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!r_(this.parent.latestValues)&&!i_(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Bb.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;z_(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&g_(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,u_(e,a)),r&&o_(i.latestValues)&&g_(e,i.latestValues))}t.x=d_(t.x),t.y=d_(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Qw(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Qw(),this.projectionDeltaWithTransform=Qw());const c=this.projectionTransform;$w(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Y_(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),eE.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Qw();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=Jw(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(vE));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;hE(i.x,e.x,n),hE(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Kw(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){gE(e.x,t.x,n.x,r),gE(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Jw()),z_(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Ky(0,void 0!==n.opacity?n.opacity:1,R_(r)),e.opacityExit=Ky(void 0!==t.opacity?t.opacity:1,0,B_(r))):i&&(e.opacity=Ky(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<N_;o++){const i=`border${P_[o]}Radius`;let a=M_(t,i),s=M_(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||A_(a)===A_(s)?(e[i]=Math.max(Ky(O_(a),O_(s),r),0),(Kv.test(s)||Kv.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Ky(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rb(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mb.update((()=>{__.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Tv(e)?e:dw(e);return r.start(rw("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&_E(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Jw();const t=jw(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=jw(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}z_(t,n),g_(t,o),$w(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new q_);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<Q_.length;t++){const o="rotate"+Q_[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Ib(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Ib(e.pointerEvents)||""),this.hasProjected&&!o_(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Y_(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in xv){if(void 0===a[e])continue;const{correct:t,applyTo:n}=xv[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Ib(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(sE),this.root.sharedNodes.clear()}}}function nE(e){e.updateLayout()}function rE(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?e_((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=jw(r);r.min=t[e].min,r.max=r.min+o})):_E(o,n.layoutBox,t)&&e_((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=jw(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=Qw();$w(a,t,n.layoutBox);const s=Qw();i?$w(s,e.applyTransform(r,!0),n.measuredBox):$w(s,t,n.layoutBox);const l=!W_(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=Jw();Kw(a,n.layoutBox,o.layoutBox);const s=Jw();Kw(s,t,i.layoutBox),K_(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function oE(e){eE.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aE(e){e.clearSnapshot()}function sE(e){e.clearMeasurements()}function lE(e){e.isLayoutDirty=!1}function cE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function uE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dE(e){e.resolveTargetDelta()}function fE(e){e.calcProjection()}function pE(e){e.resetRotation()}function mE(e){e.removeLeadSnapshot()}function hE(e,t,n){e.translate=Ky(t.translate,0,n),e.scale=Ky(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gE(e,t,n,r){e.min=Ky(t.min,n.min,r),e.max=Ky(t.max,n.max,r)}function vE(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const bE={duration:.45,ease:[.4,0,.1,1]},yE=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),kE=yE("applewebkit/")&&!yE("chrome/")?Math.round:Nb;function wE(e){e.min=kE(e.min),e.max=kE(e.max)}function _E(e,t,n){return"position"===e||"preserve-aspect"===e&&!Vw(G_(t),G_(n),.2)}const EE=tE({attachResizeListener:(e,t)=>Fb(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xE={current:void 0},SE=tE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xE.current){const e=new EE({});e.mount(window),e.setOptions({layoutScroll:!0}),xE.current=e}return xE.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),CE={pan:{Feature:class extends Zb{constructor(){super(...arguments),this.removePointerDownListener=Nb}onPointerDown(e){this.session=new Mw(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:w_(e),onStart:w_(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Mb.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=$b(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Zb{constructor(e){super(e),this.removeGroupControls=Nb,this.removeListeners=Nb,this.controls=new y_(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nb}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:SE,MeasureLayout:I_}},IE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const TE=4;function PE(e,t,n=1){fy(n<=TE,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=IE.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return iw(e)?parseFloat(e):e}return Mv(o)?PE(o,t,n+1):o}const NE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),OE=e=>NE.has(e),AE=e=>e===Lv||e===Gv,ME=(e,t)=>parseFloat(e.split(", ")[t]),RE=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return ME(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?ME(t[1],e):0}},BE=new Set(["x","y","z"]),LE=Sv.filter((e=>!BE.has(e)));const DE={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:RE(4,13),y:RE(5,14)};DE.translateX=DE.x,DE.translateY=DE.y;const zE=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(OE);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=mw(c);const d=t[o];let f;if(xb(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=mw(c);for(let n=t;n<e&&null!==d[n];n++)f?fy(mw(d[n])===f,"All keyframes must be of the same type"):(f=mw(d[n]),fy(f===u||AE(u)&&AE(f),"Keyframes must be of the same dimension as the current value"))}else f=mw(d);if(u!==f)if(AE(u)&&AE(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Gv&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return LE.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=DE[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=DE[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Yg&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function FE(e,t,n,r){return(e=>Object.keys(e).some(OE))(t)?zE(e,t,n,r):{target:t,transitionEnd:r}}const jE=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!Mv(t))return;const n=PE(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Mv(o))continue;const i=PE(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return FE(e,t=o.target,n,r=o.transitionEnd)};const VE=new WeakMap,HE=Object.keys(hv),$E=HE.length,UE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],WE=cv.length;class KE{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Mb.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=uv(t),this.isVariantNode=dv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&Tv(t)&&(t.set(a[e],!1),ow(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,VE.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Zg.current||Qg(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xg.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){VE.delete(this.current),this.projection&&this.projection.unmount(),Rb(this.notifyUpdate),Rb(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Cv.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Mb.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;for(let e=0;e<$E;e++){const n=HE[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=hv[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&iv(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jw()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<UE.length;t++){const n=UE[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Tv(i))e.addValue(o,i),ow(r)&&r.add(o);else if(Tv(a))e.addValue(o,dw(i,{owner:e})),ow(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,dw(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<WE;e++){const n=cv[e],r=this.props[n];(av(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=dw(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=_b(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Tv(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new lw),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class GE extends KE{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=yw(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(iw(c)||ew(c))?c=parseFloat(c):!gw(c)&&ak.test(l)&&(c=Jk(a,l)),e.addValue(a,dw(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=jE(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class qE extends GE{readValueFromInstance(e,t){if(Cv.has(t)){const e=Qk(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Av(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return v_(e,t)}build(e,t,n,r){Jv(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return kb(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Tv(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){vb(e,t,n,r)}}class YE extends GE{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Cv.has(t)){const e=Qk(t);return e&&e.default||0}return t=bb.has(t)?t:gb(t),e.getAttribute(t)}measureInstanceViewportBox(){return Jw()}scrapeMotionValuesFromProps(e,t){return wb(e,t)}build(e,t,n,r){db(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){yb(e,t,0,r)}mount(e){this.isSVGTag=pb(e.tagName),super.mount(e)}}const XE=(e,t)=>Ev(e)?new YE(t,{enableHardwareAcceleration:!1}):new qE(t,{enableHardwareAcceleration:!0}),ZE={...Ow,...sy,...CE,...{layout:{ProjectionNode:SE,MeasureLayout:I_}}},QE=wv(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Ev(e)?Db:zb,preloadedFeatures:n,useRender:hb(t),createVisualElement:r,Component:e}}(e,t,ZE,XE)));function JE(e){const t=(0,Sr.useMemo)((()=>{const t=function(e){return e&&"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia(e):null}(e);return{subscribe:e=>t?(t.addEventListener?.("change",e),()=>{t.removeEventListener?.("change",e)}):()=>{},getValue(){var e;return null!==(e=t?.matches)&&void 0!==e&&e}}}),[e]);return(0,Sr.useSyncExternalStore)(t.subscribe,t.getValue,(()=>!1))}const ex={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},tx={">=":"min-width","<":"max-width"},nx={">=":(e,t)=>t>=e,"<":(e,t)=>t<e},rx=(0,Sr.createContext)(null),ox=(e,t=">=")=>{const n=(0,Sr.useContext)(rx),r=JE(!n&&`(${tx[t]}: ${ex[e]}px)`||void 0);return n?nx[t](ex[e],n):r};ox.__experimentalWidthProvider=rx.Provider;const ix=ox;function ax(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function sx(e,t){return void 0===t&&(t={}),kn(e,mn({delimiter:" ",transform:ax},t))}function lx(e=null){if(!e){if("undefined"==typeof window)return!1;e=window}const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}const cx=8,ux=9,dx=13,fx=27,px=37,mx=38,hx=39,gx=40,vx=46,bx="alt",yx="ctrl",kx="meta",wx="shift";function _x(e,t){return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,t(n)])))}const Ex={primary:e=>e()?[kx]:[yx],primaryShift:e=>e()?[wx,kx]:[yx,wx],primaryAlt:e=>e()?[bx,kx]:[yx,bx],secondary:e=>e()?[wx,bx,kx]:[yx,wx,bx],access:e=>e()?[yx,bx]:[wx,bx],ctrl:()=>[yx],alt:()=>[bx],ctrlShift:()=>[yx,wx],shift:()=>[wx],shiftAlt:()=>[wx,bx],undefined:()=>[]},xx=_x(Ex,(e=>(t,n=lx)=>[...e(n),t.toLowerCase()].join("+"))),Sx=_x(Ex,(e=>(t,n=lx)=>{const r=n(),o={[bx]:r?"⌥":"Alt",[yx]:r?"⌃":"Ctrl",[kx]:"⌘",[wx]:r?"⇧":"Shift"};return[...e(n).reduce(((e,t)=>{var n;const i=null!==(n=o[t])&&void 0!==n?n:t;return r?[...e,i]:[...e,i,"+"]}),[]),sx(t,{stripRegexp:/[^A-Z0-9~`,\.\\\-]/gi})]})),Cx=_x(Sx,(e=>(t,n=lx)=>e(t,n).join(""))),Ix=_x(Ex,(e=>(t,n=lx)=>{const r=n(),o={[wx]:"Shift",[kx]:r?"Command":"Control",[yx]:"Control",[bx]:r?"Option":"Alt",",":Hn("Comma"),".":Hn("Period"),"`":Hn("Backtick"),"~":Hn("Tilde")};return[...e(n),t].map((e=>{var t;return sx(null!==(t=o[e])&&void 0!==t?t:e)})).join(r?" ":" + ")}));const Tx=_x(Ex,(e=>(t,n,r=lx)=>{const o=e(r),i=function(e){return[bx,yx,kx,wx].filter((t=>e[`${t}Key`]))}(t),a={Comma:",",Backslash:"\\",IntlRo:"\\",IntlYen:"\\"},s=o.filter((e=>!i.includes(e))),l=i.filter((e=>!o.includes(e)));if(s.length>0||l.length>0)return!1;let c=t.key.toLowerCase();return n?(t.altKey&&1===n.length&&(c=String.fromCharCode(t.keyCode).toLowerCase()),t.shiftKey&&1===n.length&&a[t.code]&&(c=a[t.code]),"del"===n&&(n="delete"),c===n.toLowerCase()):o.includes(c)}));function Px(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function Nx(e,{sequential:t=!1}={}){const n=e.querySelectorAll(function(e){return[e?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}(t));return Array.from(n).filter((e=>{if(!Px(e))return!1;const{nodeName:t}=e;return"AREA"!==t||function(e){const t=e.closest("map[name]");if(!t)return!1;const n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&Px(n)}(e)}))}function Ox(e){const t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function Ax(e){return-1!==Ox(e)}function Mx(e,t){return{element:e,index:t}}function Rx(e){return e.element}function Bx(e,t){const n=Ox(e.element),r=Ox(t.element);return n===r?e.index-t.index:n-r}function Lx(e){return e.filter(Ax).map(Mx).sort(Bx).map(Rx).reduce(function(){const e={};return function(t,n){const{nodeName:r,type:o,checked:i,name:a}=n;if("INPUT"!==r||"radio"!==o||!a)return t.concat(n);const s=e.hasOwnProperty(a);if(!i&&s)return t;if(s){const n=e[a];t=t.filter((e=>e!==n))}return e[a]=n,t.concat(n)}}(),[])}function Dx(e){return Lx(Nx(e))}function zx(e){return Lx(Nx(e.ownerDocument.body)).reverse().find((t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING))}function Fx(e){return Lx(Nx(e.ownerDocument.body)).find((t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING))}const jx={focusable:s,tabbable:l};function Vx(e,t){const n=(0,Sr.useRef)();return(0,Sr.useCallback)((t=>{t?n.current=e(t):n.current&&n.current()}),t)}const Hx=function(){return Vx((e=>{function t(t){const{keyCode:n,shiftKey:r,target:o}=t;if(n!==ux)return;const i=r?"findPrevious":"findNext",a=jx.tabbable[i](o)||null;if(o.contains(a))return t.preventDefault(),void a?.focus();if(e.contains(a))return;const s=r?"append":"prepend",{ownerDocument:l}=e,c=l.createElement("div");c.tabIndex=-1,e[s](c),c.addEventListener("blur",(()=>e.removeChild(c))),c.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])};function $x(e="firstElement"){const t=(0,Sr.useRef)(e),n=e=>{e.focus({preventScroll:!0})},r=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>{t.current=e}),[e]),(0,Sr.useEffect)((()=>()=>{r.current&&clearTimeout(r.current)}),[]),(0,Sr.useCallback)((e=>{var o;e&&!1!==t.current&&(e.contains(null!==(o=e.ownerDocument?.activeElement)&&void 0!==o?o:null)||("firstElement"!==t.current?n(e):r.current=setTimeout((()=>{const t=jx.tabbable.find(e)[0];t&&n(t)}),0)))}),[])}let Ux=null;const Wx=function(e){const t=(0,Sr.useRef)(null),n=(0,Sr.useRef)(null),r=(0,Sr.useRef)(e);return(0,Sr.useEffect)((()=>{r.current=e}),[e]),(0,Sr.useCallback)((e=>{if(e){if(t.current=e,n.current)return;n.current=e.ownerDocument.activeElement}else if(n.current){const e=t.current?.contains(t.current?.ownerDocument.activeElement);var o;if(t.current?.isConnected&&!e)return void(null!==(o=Ux)&&void 0!==o||(Ux=n.current));r.current?r.current():(n.current.isConnected?n.current:Ux)?.focus(),Ux=null}}),[])},Kx=["button","submit"];function Gx(e){const t=(0,Sr.useRef)(e);(0,Sr.useEffect)((()=>{t.current=e}),[e]);const n=(0,Sr.useRef)(!1),r=(0,Sr.useRef)(),o=(0,Sr.useCallback)((()=>{clearTimeout(r.current)}),[]);(0,Sr.useEffect)((()=>()=>o()),[]),(0,Sr.useEffect)((()=>{e||o()}),[e,o]);const i=(0,Sr.useCallback)((e=>{const{type:t,target:r}=e;["mouseup","touchend"].includes(t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Kx.includes(e.type)}return!1}(r)&&(n.current=!0)}),[]),a=(0,Sr.useCallback)((e=>{if(e.persist(),n.current)return;const o=e.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");o&&e.relatedTarget?.closest(o)||(r.current=setTimeout((()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:i,onMouseUp:i,onTouchStart:i,onTouchEnd:i,onBlur:a}}const qx=function(e){const t=(0,Sr.useRef)();(0,Sr.useEffect)((()=>{t.current=e}),Object.values(e));const n=Hx(),r=$x(e.focusOnMount),o=Wx(),i=Gx((e=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",e):t.current?.onClose&&t.current.onClose()})),a=(0,Sr.useCallback)((e=>{e&&e.addEventListener("keydown",(e=>{e.keyCode===fx&&!e.defaultPrevented&&t.current?.onClose&&(e.preventDefault(),t.current.onClose())}))}),[]);return[Vg([!1!==e.focusOnMount?n:null,!1!==e.focusOnMount?o:null,!1!==e.focusOnMount?r:null,a]),{...i,tabIndex:-1}]},Yx=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));let Xx=0;function Zx(e){const t=document.scrollingElement||document.body;e&&(Xx=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Xx)}let Qx=0;const Jx=function(){return(0,Sr.useEffect)((()=>(0===Qx&&Zx(!0),++Qx,()=>{1===Qx&&Zx(!1),--Qx})),[]),null},eS=Symbol(),tS=Symbol(),nS=Symbol();let rS=(e,t)=>new Proxy(e,t);const oS=Object.getPrototypeOf,iS=new WeakMap,aS=e=>e&&(iS.has(e)?iS.get(e):oS(e)===Object.prototype||oS(e)===Array.prototype),sS=e=>"object"==typeof e&&null!==e,lS=new WeakMap,cS=e=>e[nS]||e,uS=(e,t,n)=>{if(!aS(e))return e;const r=cS(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(eS)||r.add(t)}},i={get:(t,r)=>r===nS?e:(o(r),uS(t[r],n.a,n.c)),has:(t,i)=>i===tS?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(eS),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=rS(o?(e=>{let t=lS.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(oS(e),n)}lS.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},dS=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},fS=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!sS(e)||!sS(t))return!0;const o=n.get(cS(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===eS?dS(e,t):fS(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},pS=(e,t=!0)=>{iS.set(e,t)},mS=e=>"object"==typeof e&&null!==e,hS=new WeakSet,gS=Symbol("VERSION"),vS=Symbol("LISTENERS"),bS=Symbol("SNAPSHOT"),yS=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>mS(e)&&!hS.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return pS(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(hS.has(i))pS(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[vS])?s[e]=i[bS]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!mS(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},p=new Map,m=e=>{let t=p.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},p.set(e,t)),t},h=e=>{const t=p.get(e);return p.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get:(e,t,n)=>t===gS?u:t===vS?d:t===bS?a(u,e,n):Reflect.get(e,t,n),deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[vS];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[vS];let p;return d&&d.delete(h(i)),mS(a)&&(a=(e=>aS(e)&&e[nS]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?p=a:a instanceof Promise?p=a.then((e=>(p[r]=e,f(["resolve",[i],e]),e))).catch((e=>{p[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[vS])?(p=a,p[vS].add(m(i))):n(a)?(p=wS(a),p[vS].add(m(i))):p=a,Reflect.set(t,i,p,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,hS,gS,vS,bS,e,t,n,r,o,i,a,s,l],[kS]=yS();function wS(e={}){return kS(e)}function _S(e,t,n){let r;(null==e?void 0:e[vS])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[vS].add(i),()=>{e[vS].delete(i)}}function ES(e){return(null==e?void 0:e[bS])||console.warn("Please use proxy object"),e[bS]}function xS(e){return hS.add(e),e}const{useSyncExternalStore:SS}=gu,CS=(e,t)=>{const n=(0,Sr.useRef)();(0,Sr.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;sS(e)&&r.add(e);const a=sS(e)&&t.get(cS(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,Sr.useDebugValue)(n.current)};function IS(e,t){const n=null==t?void 0:t.sync,r=(0,Sr.useRef)(),o=(0,Sr.useRef)();let i=!0;const a=SS((0,Sr.useCallback)((t=>{const r=_S(e,t,n);return t(),r}),[e,n]),(()=>{const t=ES(e);try{if(!i&&r.current&&o.current&&!fS(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>ES(e)));i=!1;const s=new WeakMap;(0,Sr.useEffect)((()=>{r.current=a,o.current=s})),CS(a,s);const l=(0,Sr.useMemo)((()=>new WeakMap),[]);return uS(a,s,l)}Symbol();function TS(e){const t=wS({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON:()=>({}),forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const PS={slots:TS(),fills:TS(),registerSlot:()=>{"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},NS=(0,Sr.createContext)(PS);function OS(e){const t=(0,Sr.useContext)(NS);return{...IS(t.slots,{sync:!0}).get(e),...(0,Sr.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}const AS={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},MS=(0,Sr.createContext)(AS),RS=e=>{const{getSlot:t,subscribe:n}=(0,Sr.useContext)(MS);return(0,Sr.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function BS({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,Sr.useContext)(MS),o=RS(e),i=(0,Sr.useRef)({name:e,children:t});return(0,Sr.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,Sr.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,Sr.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function LS(e){return"function"==typeof e}class DS extends Sr.Component{constructor(e){super(e),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name,this),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=LS(e.children)?e.children(r):e.children;return Sr.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;let n=t;return"object"==typeof e&&"key"in e&&e?.key&&(n=e.key),(0,Sr.cloneElement)(e,{key:n})}))})).filter((e=>!(e=>"number"!=typeof e&&("string"==typeof e?.valueOf()||Array.isArray(e)?!e.length:!e))(e)));return(0,Sr.createElement)(Sr.Fragment,null,LS(t)?t(i):i)}}const zS=e=>(0,Sr.createElement)(MS.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,Sr.createElement)(DS,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),FS=new Set,jS=new WeakMap;function VS(e){const{children:t,document:n}=e;if(!n)return null;const r=(e=>{if(jS.has(e))return jS.get(e);let t=qr().replace(/[0-9]/g,"");for(;FS.has(t);)t=qr().replace(/[0-9]/g,"");FS.add(t);const n=ph({container:e,key:t});return jS.set(e,n),n})(n.head);return(0,Sr.createElement)(Ph,{value:r},t)}const HS=VS;function $S(e){var t;const{name:n,children:r}=e,{registerFill:o,unregisterFill:i,...a}=OS(n),s=function(){const[,e]=(0,Sr.useState)({}),t=(0,Sr.useRef)(!0);return(0,Sr.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),l=(0,Sr.useRef)({rerender:s});if((0,Sr.useEffect)((()=>(o(l),()=>{i(l)})),[o,i]),!a.ref||!a.ref.current)return null;const c=(0,Sr.createElement)(HS,{document:a.ref.current.ownerDocument},"function"==typeof r?r(null!==(t=a.fillProps)&&void 0!==t?t:{}):r);return(0,cf.createPortal)(c,a.ref.current)}const US=(0,Sr.forwardRef)((function(e,t){const{name:n,fillProps:r={},as:o,children:i,...a}=e,{registerSlot:s,unregisterSlot:l,...c}=(0,Sr.useContext)(NS),u=(0,Sr.useRef)(null);return(0,Sr.useLayoutEffect)((()=>(s(n,u,r),()=>{l(n,u)})),[s,l,n]),(0,Sr.useLayoutEffect)((()=>{c.updateSlot(n,r)})),(0,Sr.createElement)(og,{as:o,ref:Vg([t,u]),...a})}));function WS(){const e=TS(),t=TS();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,xS({...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}}))},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ca(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.map((e=>e.current.rerender()))},unregisterSlot:(t,n)=>{e.get(t)?.ref===n&&e.delete(t)},registerFill:(e,n)=>{t.set(e,xS([...t.get(e)||[],n]))},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,xS(r.filter((e=>e!==n))))}}}function KS({children:e}){const t=(0,Sr.useMemo)(WS,[]);return(0,Sr.createElement)(NS.Provider,{value:t},e)}function GS(){const e={},t={};let n=[];function r(t){return e[t]}function o(e){const t=r(e);t&&t.forceUpdate()}function i(){n.forEach((e=>e()))}return{registerSlot:function(t,n){const r=e[t];e[t]=n,i(),o(t),r&&r.forceUpdate()},unregisterSlot:function(t,n){e[t]===n&&(delete e[t],i())},registerFill:function(e,n){t[e]=[...t[e]||[],n],o(e)},unregisterFill:function(e,n){var r;t[e]=null!==(r=t[e]?.filter((e=>e!==n)))&&void 0!==r?r:[],o(e)},getSlot:r,getFills:function(n,r){return e[n]!==r?[]:t[n]},subscribe:function(e){return n.push(e),()=>{n=n.filter((t=>t!==e))}}}}const qS=function({children:e}){const t=(0,Sr.useMemo)(GS,[]);return(0,Sr.createElement)(MS.Provider,{value:t},e)};function YS(e){return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(BS,{...e}),(0,Sr.createElement)($S,{...e}))}const XS=(0,Sr.forwardRef)((function(e,t){const{bubblesVirtually:n,...r}=e;return n?(0,Sr.createElement)(US,{...r,ref:t}):(0,Sr.createElement)(zS,{...r})}));function ZS({children:e}){return(0,Sr.useContext)(NS).isDefault?(0,Sr.createElement)(qS,null,(0,Sr.createElement)(KS,null,e)):(0,Sr.createElement)(Sr.Fragment,null,e)}function QS(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,Sr.createElement)(YS,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,Sr.createElement)(XS,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const JS="Popover",eC=()=>(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,Sr.createElement)(Qp,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,Sr.createElement)(Qp,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),tC=(0,Sr.createContext)(void 0),nC="components-popover__fallback-container",rC=(0,Sr.forwardRef)(((e,t)=>{const{animate:n=!0,headerTitle:r,onClose:o,children:i,className:a,noArrow:s=!0,position:l,placement:c="bottom-start",offset:u=0,focusOnMount:d="firstElement",anchor:f,expandOnMobile:p,onFocusOutside:m,__unstableSlotName:h=JS,flip:g=!0,resize:v=!0,shift:b=!1,inline:y=!1,variant:k,__unstableForcePosition:w,anchorRef:_,anchorRect:E,getAnchorRect:x,isAlternate:S,...C}=e;let I=g,T=v;void 0!==w&&(on("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),I=!w,T=!w),void 0!==_&&on("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==E&&on("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==x&&on("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const P=S?"toolbar":k;void 0!==S&&on("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const N=(0,Sr.useRef)(null),[O,A]=(0,Sr.useState)(null),M=(0,Sr.useCallback)((e=>{A(e)}),[]),R=ix("medium","<"),B=p&&R,L=!B&&!s,D=l?Gp(l):c,z=[..."overlay"===c?[{name:"overlay",fn:({rects:e})=>e.reference},Xf({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],Gf(u),I&&Kf(),T&&Xf({apply(e){var t;const{firstElementChild:n}=null!==(t=K.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),b&&qf({crossAxis:!0,limiter:Yf(),padding:1}),$g({element:N})],F=(0,Sr.useContext)(tC)||h,j=OS(F);let V;(o||m)&&(V=(e,t)=>{"focus-outside"===e&&m?m(t):o&&o()});const[H,$]=qx({focusOnMount:d,__unstableOnClose:V,onClose:V}),{x:U,y:W,refs:K,strategy:G,update:q,placement:Y,middlewareData:{arrow:X}}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Sr.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Sr.useState(r);Wg(f,r)||p(r);const[m,h]=Sr.useState(null),[g,v]=Sr.useState(null),b=Sr.useCallback((e=>{e!=_.current&&(_.current=e,h(e))}),[h]),y=Sr.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[v]),k=i||m,w=a||g,_=Sr.useRef(null),E=Sr.useRef(null),x=Sr.useRef(u),S=qg(l),C=qg(o),I=Sr.useCallback((()=>{if(!_.current||!E.current)return;const e={placement:t,strategy:n,middleware:f};C.current&&(e.platform=C.current),Pp(_.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!Wg(x.current,t)&&(x.current=t,cf.flushSync((()=>{d(t)})))}))}),[f,t,n,C]);Ug((()=>{!1===c&&x.current.isPositioned&&(x.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const T=Sr.useRef(!1);Ug((()=>(T.current=!0,()=>{T.current=!1})),[]),Ug((()=>{if(k&&(_.current=k),w&&(E.current=w),k&&w){if(S.current)return S.current(k,w,I);I()}}),[k,w,I,S]);const P=Sr.useMemo((()=>({reference:_,floating:E,setReference:b,setFloating:y})),[b,y]),N=Sr.useMemo((()=>({reference:k,floating:w})),[k,w]),O=Sr.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Gg(N.floating,u.x),r=Gg(N.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Kg(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,N.floating,u.x,u.y]);return Sr.useMemo((()=>({...u,update:I,refs:P,elements:N,floatingStyles:O})),[u,I,P,N,O])}({placement:"overlay"===D?void 0:D,middleware:z,whileElementsMounted:(e,t,n)=>Tp(e,t,n,{layoutShift:!1,animationFrame:!0})}),Z=(0,Sr.useCallback)((e=>{N.current=e,q()}),[q]),Q=_?.top,J=_?.bottom,ee=_?.startContainer,te=_?.current;(0,Sr.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o})=>{var i;let a=null;return e?a=e:function(e){return!!e?.top}(t)?a={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:function(e){return!!e?.current}(t)?a=t.current:t?a=t:n?a={getBoundingClientRect:()=>n}:r?a={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(a=o.parentElement),null!==(i=a)&&void 0!==i?i:null})({anchor:f,anchorRef:_,anchorRect:E,getAnchorRect:x,fallbackReferenceElement:O});K.setReference(e)}),[f,_,Q,J,ee,te,E,x,O,K]);const ne=Vg([K.setFloating,H,t]),re=B?void 0:{position:G,top:0,left:0,x:Yp(U),y:Yp(W)},oe=Jg(),ie=n&&!B&&!oe,[ae,se]=(0,Sr.useState)(!1),{style:le,...ce}=(0,Sr.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:qp[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]}}})(Y)),[Y]),ue=ie?{style:{...le,...re},onAnimationComplete:()=>se(!0),...ce}:{animate:!1,style:re},de=(!ie||ae)&&null!==U&&null!==W;let fe=(0,Sr.createElement)(QE.div,{className:Vl()("components-popover",a,{"is-expanded":B,"is-positioned":de,[`is-${"toolbar"===P?"alternate":P}`]:P}),...ue,...C,ref:ne,...$,tabIndex:-1},B&&(0,Sr.createElement)(Jx,null),B&&(0,Sr.createElement)("div",{className:"components-popover__header"},(0,Sr.createElement)("span",{className:"components-popover__header-title"},r),(0,Sr.createElement)(lg,{className:"components-popover__close",icon:Yx,onClick:o})),(0,Sr.createElement)("div",{className:"components-popover__content"},i),L&&(0,Sr.createElement)("div",{ref:Z,className:["components-popover__arrow",`is-${Y.split("-")[0]}`].join(" "),style:{left:void 0!==X?.x&&Number.isFinite(X.x)?`${X.x}px`:"",top:void 0!==X?.y&&Number.isFinite(X.y)?`${X.y}px`:""}},(0,Sr.createElement)(eC,null)));const pe=j.ref&&!y,me=_||E||f;return pe?fe=(0,Sr.createElement)(YS,{name:F},fe):y||(fe=(0,cf.createPortal)((0,Sr.createElement)(VS,{document},fe),(()=>{let e=document.body.querySelector("."+nC);return e||(e=document.createElement("div"),e.className=nC,document.body.append(e)),e})())),me?fe:(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("span",{ref:M}),fe)}));rC.Slot=(0,Sr.forwardRef)((function({name:e=JS},t){return(0,Sr.createElement)(XS,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),rC.__unstableSlotNameProvider=tC.Provider;const oC=rC,iC=Hh(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:a,headerTitle:s,focusOnMount:l,popoverProps:c,onClose:u,onToggle:d,style:f,open:p,defaultOpen:m,position:h,variant:g}=Vh(e,"Dropdown");void 0!==h&&on("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[v,b]=(0,Sr.useState)(null),y=(0,Sr.useRef)(),[k,w]=Hg({defaultValue:m,value:p,onChange:d});function _(){u?.(),w(!1)}const E={isOpen:!!k,onToggle:()=>w(!k),onClose:_},x=!!(c?.anchor||c?.anchorRef||c?.getAnchorRect||c?.anchorRect);return(0,Sr.createElement)("div",{className:o,ref:Vg([y,t,b]),tabIndex:-1,style:f},r(E),k&&(0,Sr.createElement)(oC,{position:h,onClose:_,onFocusOutside:function(){if(!y.current)return;const{ownerDocument:e}=y.current,t=e?.activeElement?.closest('[role="dialog"]');y.current.contains(e.activeElement)||t&&!t.contains(y.current)||_()},expandOnMobile:a,headerTitle:s,focusOnMount:l,offset:13,anchor:x?void 0:v,variant:g,...c,className:Vl()("components-dropdown__content",c?.className,i)},n(E)))}),"Dropdown"),aC=iC,sC=()=>{},lC=["menuitem","menuitemradio","menuitemcheckbox"];class cC extends Sr.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?jx.tabbable:jx.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=sC,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&lC.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:a,forwardedRef:s,...l}=this.props;return(0,Sr.createElement)("div",{ref:this.bindContainer,...l},e)}}const uC=(e,t)=>(0,Sr.createElement)(cC,{...e,forwardedRef:t});uC.displayName="NavigableContainer";const dC=(0,Sr.forwardRef)(uC);const fC=(0,Sr.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,Sr.createElement)(dC,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})})),pC=fC;function mC(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=Vl()(t.className,e.className)),n}function hC(e){return"function"==typeof e}const gC=$h((function(e){const{children:t,className:n,controls:r,icon:o=Fg,label:i,popoverProps:a,toggleProps:s,menuProps:l,disableOpenOnArrowDown:c=!1,text:u,noIcons:d,open:f,defaultOpen:p,onToggle:m,variant:h}=Vh(e,"DropdownMenu");if(!r?.length&&!hC(t))return null;let g;r?.length&&(g=r,Array.isArray(g[0])||(g=[r]));const v=mC({className:"components-dropdown-menu__popover",variant:h},a);return(0,Sr.createElement)(aC,{className:n,popoverProps:v,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=lg,...a}=null!=s?s:{},l=mC({className:Vl()("components-dropdown-menu__toggle",{"is-opened":e})},a);return(0,Sr.createElement)(r,{...l,icon:o,onClick:e=>{t(),l.onClick&&l.onClick(e)},onKeyDown:n=>{(n=>{c||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),l.onKeyDown&&l.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:u,showTooltip:null===(n=s?.showTooltip)||void 0===n||n},l.children)},renderContent:e=>{const n=mC({"aria-label":i,className:Vl()("components-dropdown-menu__menu",{"no-icons":d})},l);return(0,Sr.createElement)(pC,{...n,role:"menu"},hC(t)?t(e):null,g?.flatMap(((t,n)=>t.map(((t,r)=>(0,Sr.createElement)(lg,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:Vl()("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))))))},open:f,defaultOpen:p,onToggle:m})}),"DropdownMenu"),vC=gC;const bC=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,Sr.createElement)(vC,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,Sr.useContext)(Mg)?(0,Sr.createElement)(Rg,{...t},r):r(t)};const yC=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const a=(0,Sr.useContext)(Mg);if(!(e&&e.length||t))return null;const s=Vl()(a?"components-toolbar-group":"components-toolbar",n);let l;var c;return c=e,l=Array.isArray(c)&&Array.isArray(c[0])?e:[e],r?(0,Sr.createElement)(bC,{label:o,controls:l,className:s,children:t,...i}):(0,Sr.createElement)(zg,{className:s,...i},l?.flatMap(((e,t)=>e.map(((e,n)=>(0,Sr.createElement)(Dg,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":void 0,...e}))))),t)};o(6308);const kC="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback,wC=()=>{const e=new Map;let t=!1;const n=r=>{for(const[t,n]of e)if(e.delete(t),n(),"number"==typeof r||r.timeRemaining()<=0)break;0!==e.size?kC(n):t=!1};return{add:(r,o)=>{e.set(r,o),t||(t=!0,kC(n))},flush:t=>{const n=e.get(t);return void 0!==n&&(e.delete(t),n(),!0)},cancel:t=>e.delete(t),reset:()=>{e.clear(),t=!1}}},_C=(0,Sr.createContext)(un),{Consumer:EC,Provider:xC}=_C,SC=EC,CC=xC;function IC(){return(0,Sr.useContext)(_C)}const TC=(0,Sr.createContext)(!1),{Consumer:PC,Provider:NC}=TC,OC=NC;const AC=wC();function MC(e,t){const n=t?e.suspendSelect:e.select,r={};let o,i,a,s,l=!1;return(t,c)=>{function u(){if(l&&t===o)return i;const c={current:null},u=e.__unstableMarkListeningStores((()=>t(n,e)),c);s?s.updateStores(c.current):s=(t=>{const n=[...t],o=new Set;return{subscribe:function(t){l=!1;const i=()=>{l=!1,t()},s=()=>{a?AC.add(r,i):i()},c=[];function u(t){c.push(e.subscribe(s,t))}for(const e of n)u(e);return o.add(u),()=>{o.delete(u);for(const e of c.values())e?.();AC.cancel(r)}},updateStores:function(e){for(const t of e)if(!n.includes(t)){n.push(t);for(const e of o)e(t)}}}})(c.current),ca(i,u)||(i=u),o=t,l=!0}return a&&!c&&(l=!1,AC.cancel(r)),u(),a=c,{subscribe:s.subscribe,getValue:function(){return u(),i}}}}function RC(e,t,n){const r=IC(),o=(0,Sr.useContext)(TC),i=(0,Sr.useMemo)((()=>MC(r,e)),[r]),a=(0,Sr.useCallback)(t,n),{subscribe:s,getValue:l}=i(a,o),c=(0,Sr.useSyncExternalStore)(s,l,l);return(0,Sr.useDebugValue)(c),c}function BC(e,t){const n="function"!=typeof e,r=(0,Sr.useRef)(n);if(n!==r.current){const e=r.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${n?"static":"mapping"} is not allowed`)}return n?(o=e,IC().select(o)):RC(!1,e,t);var o}const LC={default:QS("BlockControls"),block:QS("BlockControlsBlock"),inline:QS("BlockFormatControls"),other:QS("BlockControlsOther"),parent:QS("BlockControlsParent")},DC={insertUsage:{}},zC={alignWide:!1,supportsLayout:!0,colors:[{name:Hn("Black"),slug:"black",color:"#000000"},{name:Hn("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Hn("White"),slug:"white",color:"#ffffff"},{name:Hn("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Hn("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Hn("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Hn("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Hn("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Hn("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Hn("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Hn("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Hn("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:$n("Small","font size name"),size:13,slug:"small"},{name:$n("Normal","font size name"),size:16,slug:"normal"},{name:$n("Medium","font size name"),size:20,slug:"medium"},{name:$n("Large","font size name"),size:36,slug:"large"},{name:$n("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Hn("Thumbnail")},{slug:"medium",name:Hn("Medium")},{slug:"large",name:Hn("Large")},{slug:"full",name:Hn("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:Hn("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Hn("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Hn("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Hn("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Hn("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Hn("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Hn("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Hn("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Hn("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Hn("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Hn("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Hn("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function FC(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function jC(e,t,n,r=1){const o=[...e];return o.splice(t,r),FC(o,e.slice(t,t+r),n)}const VC=e=>e;function HC(e,t=""){const n=new Map,r=[];return n.set(t,r),e.forEach((e=>{const{clientId:t,innerBlocks:o}=e;r.push(t),HC(o,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function $C(e,t=""){const n=[],r=[[t,e]];for(;r.length;){const[e,t]=r.shift();t.forEach((({innerBlocks:t,...o})=>{n.push([o.clientId,e]),t?.length&&r.push([o.clientId,t])}))}return n}function UC(e,t=VC){const n=[],r=[...e];for(;r.length;){const{innerBlocks:e,...o}=r.shift();r.push(...e),n.push([o.clientId,t(o)])}return n}function WC(e){return UC(e,(e=>{const{attributes:t,...n}=e;return n}))}function KC(e){return UC(e,(e=>e.attributes))}function GC(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Oa()(e.clientIds,t.clientIds)&&function(e,t){return Oa()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function qC(e,t){const n=e.tree,r=[...t],o=[...t];for(;r.length;){const e=r.shift();r.push(...e.innerBlocks),o.push(...e.innerBlocks)}for(const e of o)n.set(e.clientId,{});for(const t of o)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function YC(e,t,n=!1){const r=e.tree,o=new Set([]),i=new Set;for(const r of t){let t=n?r:e.parents.get(r);do{if(e.controlledInnerBlocks[t]){i.add(t);break}o.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of o)r.set(e,{...r.get(e)});for(const t of o)r.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>r.get(e)));for(const t of i)r.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>r.get(e)))})}const XC=Ce(dn,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:r}=n;if(e===r)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,o)=>{const{name:i}=t.byClientId.get(o);"core/block"===i&&n.ref===e&&t.attributes.set(o,{...n,ref:r})}))}return e(t,n)}),(e=>(t={},n)=>{const r=e(t,n);if(r===t)return t;switch(r.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":r.tree=new Map(r.tree),qC(r,n.blocks),YC(r,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":r.tree=new Map(r.tree),r.tree.set(n.clientId,{...r.tree.get(n.clientId),...r.byClientId.get(n.clientId),attributes:r.attributes.get(n.clientId)}),YC(r,[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":r.tree=new Map(r.tree),n.clientIds.forEach((e=>{r.tree.set(e,{...r.tree.get(e),attributes:r.attributes.get(e)})})),YC(r,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...r}=n.shift();n.push(...e),t[r.clientId]=!0}return t}(n.blocks);r.tree=new Map(r.tree),n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e))).forEach((e=>{r.tree.delete(e)})),qC(r,n.blocks),YC(r,n.blocks.map((e=>e.clientId)),!1);const o=[];for(const e of n.clientIds)void 0===t.parents.get(e)||""!==t.parents.get(e)&&!r.byClientId.get(t.parents.get(e))||o.push(t.parents.get(e));YC(r,o,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const o of n.clientIds)void 0===t.parents.get(o)||""!==t.parents.get(o)&&!r.byClientId.get(t.parents.get(o))||e.push(t.parents.get(o));r.tree=new Map(r.tree),n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e))).forEach((e=>{r.tree.delete(e)})),YC(r,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),r.tree=new Map(r.tree),YC(r,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];r.tree=new Map(r.tree),YC(r,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];r.attributes.forEach(((t,o)=>{"core/block"===r.byClientId.get(o).name&&t.ref===n.updatedId&&e.push(o)})),r.tree=new Map(r.tree),e.forEach((e=>{r.tree.set(e,{...r.byClientId.get(e),attributes:r.attributes.get(e),innerBlocks:r.tree.get(e).innerBlocks})})),YC(r,e,!1)}}return r}),(e=>(t,n)=>{const r=e=>{let r=e;for(let o=0;o<r.length;o++)!t.order.get(r[o])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=[...r]),r.push(...t.order.get(r[o])));return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const r={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...o}=e.shift();e.push(...n),t.controlledInnerBlocks[o.clientId]&&(r[o.clientId]=!0)}}let o=t;t.order.get(n.rootClientId)&&(o=e(o,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order.get(n.rootClientId)}));let i=o;if(n.blocks.length){i=e(i,{...n,type:"INSERT_BLOCKS",index:0});const o=new Map(i.order);Object.keys(r).forEach((e=>{t.order.get(e)&&o.set(e,t.order.get(e))})),i.order=o,i.tree=new Map(i.tree),Object.keys(r).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&i.tree.set(n,t.tree.get(n))}))}return i}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(WC(n.blocks)),attributes:new Map(KC(n.blocks)),order:HC(n.blocks),parents:new Map($C(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),qC(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n=!1;return(r,o)=>{let i=e(r,o);const a="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===i&&!a){var s;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;const e=null===(s=r?.isPersistentChange)||void 0===s||s;return r.isPersistentChange===e?r:{...i,isPersistentChange:e}}return i={...i,isPersistentChange:a?!n:!GC(o,t)},t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,i}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,r)=>{const o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const r=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(r,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return WC(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...r}=t.updates;if(0===Object.values(r).length)return e;const o=new Map(e);return o.set(t.clientId,{...e.get(t.clientId),...r}),o}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),WC(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return KC(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let r=!1;const o=new Map(e);for(const i of t.clientIds){var n;const a=Object.entries(t.uniqueByBlock?t.attributes[i]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===a.length)continue;let s=!1;const l=e.get(i),c={};a.forEach((([e,t])=>{l[e]!==t&&(s=!0,c[e]=t)})),r=r||s,s&&o.set(i,{...l,...c})}return r?o:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),KC(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const r=HC(t.blocks),o=new Map(e);return r.forEach(((e,t)=>{""!==t&&o.set(t,e)})),o.set("",(null!==(n=e.get(""))&&void 0!==n?n:[]).concat(r[""])),o}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,r=e.get(n)||[],o=HC(t.blocks,n),{index:i=r.length}=t,a=new Map(e);return o.forEach(((e,t)=>{a.set(t,e)})),a.set(n,FC(r,o.get(n),i)),a}case"MOVE_BLOCKS_TO_POSITION":{var r;const{fromRootClientId:n="",toRootClientId:o="",clientIds:i}=t,{index:a=e.get(o).length}=t;if(n===o){const t=e.get(o).indexOf(i[0]),n=new Map(e);return n.set(o,jC(e.get(o),t,a,i.length)),n}const s=new Map(e);return s.set(n,null!==(r=e.get(n)?.filter((e=>!i.includes(e))))&&void 0!==r?r:[]),s.set(o,FC(e.get(o),i,a)),s}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:r=""}=t,o=n[0],i=e.get(r);if(!i.length||o===i[0])return e;const a=i.indexOf(o),s=new Map(e);return s.set(r,jC(i,a,a-1,n.length)),s}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:r=""}=t,o=n[0],i=n[n.length-1],a=e.get(r);if(!a.length||i===a[a.length-1])return e;const s=a.indexOf(o),l=new Map(e);return l.set(r,jC(a,s,s+1,n.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const r=HC(t.blocks),o=new Map(e);return t.replacedClientIds.forEach((e=>{o.delete(e)})),r.forEach(((e,t)=>{""!==t&&o.set(t,e)})),o.forEach(((e,t)=>{const i=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...r.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);o.set(t,i)})),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,r)=>{var o;const i=null!==(o=e?.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==o?o:[];i.length!==e.length&&n.set(r,i)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return $C(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return $C(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),$C(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:r})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:r}:e});function ZC(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const QC=dn({blocks:XC,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:r}=t;return{selectionStart:n,selectionEnd:r};case"MULTI_SELECT":const{start:o,end:i}=t;return o===e.selectionStart?.clientId&&i===e.selectionEnd?.clientId?e:{selectionStart:{clientId:o},selectionEnd:{clientId:i}};case"RESET_BLOCKS":const a=e?.selectionStart?.clientId,s=e?.selectionEnd?.clientId;if(!a&&!s)return e;if(!t.blocks.some((e=>e.clientId===a)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===s)))return{...e,selectionEnd:e.selectionStart}}const n=ZC(e.selectionStart,t),r=ZC(e.selectionEnd,t);return n===e.selectionStart&&r===e.selectionEnd?e:{selectionStart:n,selectionEnd:r}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;if(!t.settings){if(e.hasOwnProperty(n)){const{[n]:t,...r}=e;return r}return e}return Oa()(e[n],t.settings)?e:{...e,[n]:t.settings}}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:r,__unstableWithInserter:o,operation:i}=t,a={rootClientId:n,index:r,__unstableWithInserter:o,operation:i};return Oa()(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=zC,t){return"UPDATE_SETTINGS"===t.type?t.reset?{...zC,...t.settings}:{...e,...t.settings}:e},preferences:function(e=DC,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:r,name:o}=n;let i=o;const a=Ar(yi).getActiveBlockVariation(o,r);return a?.name&&(i+="/"+a.name),"core/block"===o&&(i+="/"+r.ref),{...e,insertUsage:{...e.insertUsage,[i]:{time:t.time,count:e.insertUsage[i]?e.insertUsage[i].count+1:1}}}}),e)}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(e="edit",t){return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:r}=t;return r?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),r=t.meta?.source;return{clientIds:n,source:r};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},styleOverrides:function(e=new Map,t){switch(t.type){case"SET_STYLE_OVERRIDE":return new Map(e).set(t.id,t.style);case"DELETE_STYLE_OVERRIDE":{const n=new Map(e);return n.delete(t.id),n}}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,blockNamesForPrompt:r}=t;return{clientIds:e,selectPrevious:n,blockNamesForPrompt:r};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e},openedBlockSettingsMenu:function(e=null,t){var n;return"SET_OPENED_BLOCK_SETTINGS_MENU"===t.type?null!==(n=t?.clientId)&&void 0!==n?n:null:e},registeredInserterMediaCategories:function(e=[],t){return"REGISTER_INSERTER_MEDIA_CATEGORY"===t.type?[...e,t.category]:e}});const JC=function(e){return(t,n)=>{const r=e(t,n);return t?(r.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...r,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...r,automaticChangeStatus:"final"}:r.blocks===t.blocks&&r.selection===t.selection||"final"!==r.automaticChangeStatus&&r.selection!==t.selection?r:{...r,automaticChangeStatus:void 0}):r}}(QC),eI={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0},tI=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));const nI=dn({formatTypes:function(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...t.formatTypes.reduce(((e,t)=>({...e,[t.name]:t})),{})};case"REMOVE_FORMAT_TYPES":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.names.includes(e))))}return e}}),rI=nt((e=>Object.values(e.formatTypes)),(e=>[e.formatTypes]));function oI(e,t){return e.formatTypes[t]}function iI(e,t){const n=rI(e);return n.find((({className:e,tagName:n})=>null===e&&t===n))||n.find((({className:e,tagName:t})=>null===e&&"*"===t))}function aI(e,t){return rI(e).find((({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0))}function sI(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function lI(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}const cI=Ct("core/rich-text",{reducer:nI,selectors:c,actions:u});function uI({implementation:e},t){return uI.body||(uI.body=e.createHTMLDocument("").body),uI.body.innerHTML=t,uI.body}function dI(e,t){return e.formats=e.formats.concat(t.formats),e.replacements=e.replacements.concat(t.replacements),e.text+=t.text,e}pn(cI);const fI="",pI="\ufeff";function mI({tagName:e,attributes:t}){let n;if(t&&t.class&&(n=Ar(cI).getFormatTypeForClassName(t.class),n&&(t.class=` ${t.class} `.replace(` ${n.className} `," ").trim(),t.class||delete t.class)),n||(n=Ar(cI).getFormatTypeForBareElement(e)),!n)return t?{type:e,attributes:t}:{type:e};if(n.__experimentalCreatePrepareEditableTree&&!n.__experimentalCreateOnChangeEditableValue)return null;if(!t)return{formatType:n,type:n.name,tagName:e};const r={},o={},i={...t};for(const e in n.attributes){const t=n.attributes[e];r[e]=i[t],n.__unstableFilterAttributeValue&&(r[e]=n.__unstableFilterAttributeValue(e,r[e])),delete i[t],void 0===r[e]&&delete r[e]}for(const e in i)o[e]=t[e];return!1===n.contentEditable&&delete o.contenteditable,{formatType:n,type:n.name,tagName:e,attributes:r,unregisteredAttributes:o}}function hI({element:e,text:t,html:n,range:r,__unstableIsEditableTree:o,preserveWhiteSpace:i}={}){return"string"==typeof t&&t.length>0?{formats:Array(t.length),replacements:Array(t.length),text:t}:("string"==typeof n&&n.length>0&&(e=uI(document,n)),"object"!=typeof e?{formats:[],replacements:[],text:""}:kI({element:e,range:r,isEditableTree:o,preserveWhiteSpace:i}))}function gI(e,t,n,r){if(!n)return;const{parentNode:o}=t,{startContainer:i,startOffset:a,endContainer:s,endOffset:l}=n,c=e.text.length;void 0!==r.start?e.start=c+r.start:t===i&&t.nodeType===t.TEXT_NODE?e.start=c+a:o===i&&t===i.childNodes[a]?e.start=c:o===i&&t===i.childNodes[a-1]?e.start=c+r.text.length:t===i&&(e.start=c),void 0!==r.end?e.end=c+r.end:t===s&&t.nodeType===t.TEXT_NODE?e.end=c+l:o===s&&t===s.childNodes[l-1]?e.end=c+r.text.length:o===s&&t===s.childNodes[l]?e.end=c:t===s&&(e.end=c+l)}function vI(e,t,n){if(!t)return;const{startContainer:r,endContainer:o}=t;let{startOffset:i,endOffset:a}=t;return e===r&&(i=n(e.nodeValue.slice(0,i)).length),e===o&&(a=n(e.nodeValue.slice(0,a)).length),{startContainer:r,startOffset:i,endContainer:o,endOffset:a}}function bI(e){return e.replace(/[\n\r\t]+/g," ")}function yI(e){return e.replace(new RegExp(`[${pI}${fI}]`,"gu"),"")}function kI({element:e,range:t,isEditableTree:n,preserveWhiteSpace:r}){const o={formats:[],replacements:[],text:""};if(!e)return o;if(!e.hasChildNodes())return gI(o,e,t,{formats:[],replacements:[],text:""}),o;const i=e.childNodes.length;for(let a=0;a<i;a++){const s=e.childNodes[a],l=s.nodeName.toLowerCase();if(s.nodeType===s.TEXT_NODE){let d=yI;r||(d=e=>yI(bI(e)));const f=d(s.nodeValue);gI(o,s,t=vI(s,t,d),{text:f}),o.formats.length+=f.length,o.replacements.length+=f.length,o.text+=f;continue}if(s.nodeType!==s.ELEMENT_NODE)continue;if(n&&(s.getAttribute("data-rich-text-placeholder")||"br"===l&&!s.getAttribute("data-rich-text-line-break"))){gI(o,s,t,{formats:[],replacements:[],text:""});continue}if("script"===l){const p={formats:[,],replacements:[{type:l,attributes:{"data-rich-text-script":s.getAttribute("data-rich-text-script")||encodeURIComponent(s.innerHTML)}}],text:fI};gI(o,s,t,p),dI(o,p);continue}if("br"===l){gI(o,s,t,{formats:[],replacements:[],text:""}),dI(o,hI({text:"\n"}));continue}const c=mI({tagName:l,attributes:wI({element:s})});if(!1===c?.formatType?.contentEditable){delete c.formatType,gI(o,s,t,{formats:[],replacements:[],text:""}),dI(o,{formats:[,],replacements:[{...c,innerHTML:s.innerHTML}],text:fI});continue}c&&delete c.formatType;const u=kI({element:s,range:t,isEditableTree:n,preserveWhiteSpace:r});if(gI(o,s,t,u),c)if(0===u.text.length)c.attributes&&dI(o,{formats:[,],replacements:[c],text:fI});else{function m(e){if(m.formats===e)return m.newFormats;const t=e?[c,...e]:[c];return m.formats=e,m.newFormats=t,t}m.newFormats=[c],dI(o,{...u,formats:Array.from(u.formats,m)})}else dI(o,u)}return o}function wI({element:e}){if(!e.hasAttributes())return;const t=e.attributes.length;let n;for(let r=0;r<t;r++){const{name:t,value:o}=e.attributes[r];if(0===t.indexOf("data-rich-text-"))continue;n=n||{},n[/^on/i.test(t)?"data-disable-rich-text-"+t:t]=o}return n}function _I(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;const n=e.attributes,r=t.attributes;if(n===r)return!0;if(!n||!r)return!1;const o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;const a=o.length;for(let e=0;e<a;e++){const t=o[e];if(n[t]!==r[t])return!1}return!0}function EI(e,t,n=e.start,r=e.end){const{formats:o,replacements:i,text:a}=e;"string"==typeof t&&(t=hI({text:t}));const s=n+t.text.length;return function(e){const t=e.formats.slice();return t.forEach(((e,n)=>{const r=t[n-1];if(r){const o=e.slice();o.forEach(((e,t)=>{const n=r[t];_I(e,n)&&(o[t]=n)})),t[n]=o}})),{...e,formats:t}}({formats:o.slice(0,n).concat(t.formats,o.slice(r)),replacements:i.slice(0,n).concat(t.replacements,i.slice(r)),text:a.slice(0,n)+t.text+a.slice(r),start:s,end:s})}function xI(e,t,n){return EI(e,hI(),t,n)}function SI(e){return Ar(cI).getFormatType(e)}function CI(e,t){if(t)return e;const n={};for(const t in e){let r=t;t.startsWith("data-disable-rich-text-")&&(r=t.slice(23)),n[r]=e[t]}return n}function II({type:e,tagName:t,attributes:n,unregisteredAttributes:r,object:o,boundaryClass:i,isEditableTree:a}){const s=SI(e);let l={};if(i&&a&&(l["data-rich-text-format-boundary"]="true"),!s)return n&&(l={...n,...l}),{type:e,attributes:CI(l,a),object:o};l={...r,...l};for(const e in n){const t=!!s.attributes&&s.attributes[e];t?l[t]=n[e]:l[e]=n[e]}return s.className&&(l.class?l.class=`${s.className} ${l.class}`:l.class=s.className),a&&!1===s.contentEditable&&(l.contenteditable="false"),{type:t||s.tagName,object:s.object,attributes:CI(l,a)}}function TI(e,t,n){do{if(e[n]!==t[n])return!1}while(n--);return!0}function PI({value:e,preserveWhiteSpace:t,createEmpty:n,append:r,getLastChild:o,getParent:i,isText:a,getText:s,remove:l,appendText:c,onStartIndex:u,onEndIndex:d,isEditableTree:f,placeholder:p}){const{formats:m,replacements:h,text:g,start:v,end:b}=e,y=m.length+1,k=n(),w=function(e,t=[]){const{formats:n,start:r,end:o,activeFormats:i}=e;if(void 0===r)return t;if(r===o){if(i)return i;const e=n[r-1]||t,o=n[r]||t;return e.length<o.length?e:o}if(!n[r])return t;const a=n.slice(r,o),s=[...a[0]];let l=a.length;for(;l--;){const e=a[l];if(!e)return t;let n=s.length;for(;n--;){const t=s[n];e.find((e=>_I(t,e)))||s.splice(n,1)}if(0===s.length)return t}return s||t}(e),_=w[w.length-1];let E,x;r(k,"");for(let e=0;e<y;e++){const n=g.charAt(e),y=f&&(!x||"\n"===x),w=m[e];let S=o(k);if(w&&w.forEach(((e,t)=>{if(S&&E&&TI(w,E,t))return void(S=o(S));const{type:n,tagName:c,attributes:u,unregisteredAttributes:d}=e,p=f&&e===_,m=i(S),h=r(m,II({type:n,tagName:c,attributes:u,unregisteredAttributes:d,boundaryClass:p,isEditableTree:f}));a(S)&&0===s(S).length&&l(S),S=r(h,"")})),0===e&&(u&&0===v&&u(k,S),d&&0===b&&d(k,S)),n===fI){const t=h[e];if(!t)continue;const{type:n,attributes:o,innerHTML:a}=t,s=SI(n);f||"script"!==n?!1===s?.contentEditable?(S=r(i(S),II({...t,isEditableTree:f,boundaryClass:v===e&&b===e+1})),a&&r(S,{html:a})):S=r(i(S),II({...t,object:!0,isEditableTree:f})):(S=r(i(S),II({type:"script",isEditableTree:f})),r(S,{html:decodeURIComponent(o["data-rich-text-script"])})),S=r(i(S),"")}else t||"\n"!==n?a(S)?c(S,n):S=r(i(S),n):(S=r(i(S),{type:"br",attributes:f?{"data-rich-text-line-break":"true"}:void 0,object:!0}),S=r(i(S),""));u&&v===e+1&&u(k,S),d&&b===e+1&&d(k,S),y&&e===g.length&&(r(i(S),pI),p&&0===g.length&&r(i(S),{type:"span",attributes:{"data-rich-text-placeholder":p,style:"pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;"}})),E=w,x=n}return k}function NI({value:e,preserveWhiteSpace:t}){return FI(PI({value:e,preserveWhiteSpace:t,createEmpty:OI,append:MI,getLastChild:AI,getParent:BI,isText:LI,getText:DI,remove:zI,appendText:RI}).children)}function OI(){return{}}function AI({children:e}){return e&&e[e.length-1]}function MI(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function RI(e,t){e.text+=t}function BI({parent:e}){return e}function LI({text:e}){return"string"==typeof e}function DI({text:e}){return e}function zI(e){const t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function FI(e=[]){return e.map((e=>void 0!==e.html?e.html:void 0===e.text?function({type:e,attributes:t,object:n,children:r}){let o="";for(const e in t)ji(e)&&(o+=` ${e}="${Fi(t[e])}"`);return n?`<${e}${o}>`:`<${e}${o}>${FI(r)}</${e}>`}(e):zi(e.text.replace(/&/g,"&")))).join("")}function jI(e){const{__unstablePreserveWhiteSpace:t}=e;return{preserveWhiteSpace:t}}const VI=(e,t,n)=>(r,o)=>{let i,a;if("function"==typeof e?(i=e(r),a=e(o)):(i=r[e],a=o[e]),i>a)return"asc"===n?1:-1;if(a>i)return"asc"===n?-1:1;const s=t.findIndex((e=>e===r)),l=t.findIndex((e=>e===o));return s>l?1:l>s?-1:0};function HI(e,t,n="asc"){return e.concat().sort(VI(t,e,n))}const $I=[],UI=new Set;function WI(e,t){const n=e.blocks.byClientId.get(t),r="core/social-link";if("web"!==eI.OS&&n?.name===r){const n=e.blocks.attributes.get(t),{service:o}=null!=n?n:{};return o?`${r}-${o}`:r}return n?n.name:null}function KI(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function GI(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function qI(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const YI=nt(((e,t)=>e.blocks.byClientId.has(t)?{...e.blocks.byClientId.get(t),attributes:GI(e,t)}:null),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function XI(e,t){const n=t&&GP(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||$I}const ZI=nt(((e,t)=>(on("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:QI(e,t)})),(e=>[e.blocks.order])),QI=nt(((e,t="")=>(on("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),zT(e,t).map((t=>ZI(e,t))))),(e=>[e.blocks.order])),JI=nt(((e,t)=>{const n=Array.isArray(t)?t:[t],r=[];for(const t of n)for(const n of zT(e,t))r.push(n,...JI(e,n));return r}),(e=>[e.blocks.order])),eT=nt((e=>{const t=[];for(const n of zT(e))t.push(n,...JI(e,n));return t}),(e=>[e.blocks.order])),tT=nt(((e,t)=>{const n=eT(e);return t?n.reduce(((n,r)=>e.blocks.byClientId.get(r).name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),nT=nt(((e,t)=>{if(!t)return $I;const n=Array.isArray(t)?t:[t],r=eT(e).filter((t=>{const r=e.blocks.byClientId.get(t);return n.includes(r.name)}));return r.length>0?r:$I}),(e=>[e.blocks.order,e.blocks.byClientId])),rT=nt(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>qI(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),oT=nt(((e,t)=>rT(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>rT(e,t)));function iT(e,t){return zT(e,t).length}function aT(e){return e.selection.selectionStart}function sT(e){return e.selection.selectionEnd}function lT(e){return e.selection.selectionStart.clientId}function cT(e){return e.selection.selectionEnd.clientId}function uT(e){const t=xT(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function dT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function fT(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:r}=t;return r&&r===n.clientId?r:null}function pT(e){const t=fT(e);return t?qI(e,t):null}function mT(e,t){return e.blocks.parents.has(t)?e.blocks.parents.get(t):null}const hT=nt(((e,t,n=!1)=>{const r=[];let o=t;for(;e.blocks.parents.get(o);)o=e.blocks.parents.get(o),r.push(o);return r.length?n?r:r.reverse():$I}),(e=>[e.blocks.parents])),gT=nt(((e,t,n,r=!1)=>{const o=hT(e,t,r),i=Array.isArray(n)?e=>n.includes(e):e=>n===e;return o.filter((t=>i(WI(e,t))))}),(e=>[e.blocks.parents]));function vT(e,t){let n,r=t;do{n=r,r=e.blocks.parents.get(r)}while(r);return n}function bT(e,t){const n=fT(e),r=[...hT(e,t),t],o=[...hT(e,n),n];let i;const a=Math.min(r.length,o.length);for(let e=0;e<a&&r[e]===o[e];e++)i=r[e];return i}function yT(e,t,n=1){if(void 0===t&&(t=fT(e)),void 0===t&&(t=n<0?CT(e):IT(e)),!t)return null;const r=mT(e,t);if(null===r)return null;const{order:o}=e.blocks,i=o.get(r),a=i.indexOf(t)+1*n;return a<0||a===i.length?null:i[a]}function kT(e,t){return yT(e,t,-1)}function wT(e,t){return yT(e,t,1)}function _T(e){return e.initialPosition}const ET=nt((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return $I;if(t.clientId===n.clientId)return[t.clientId];const r=mT(e,t.clientId);if(null===r)return $I;const o=zT(e,r),i=o.indexOf(t.clientId),a=o.indexOf(n.clientId);return i>a?o.slice(a,i+1):o.slice(i,a+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function xT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?$I:ET(e)}const ST=nt((e=>{const t=xT(e);return t.length?t.map((t=>qI(e,t))):$I}),(e=>[...ET.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function CT(e){return xT(e)[0]||null}function IT(e){const t=xT(e);return t[t.length-1]||null}function TT(e,t){return CT(e)===t}function PT(e,t){return-1!==xT(e).indexOf(t)}const NT=nt(((e,t)=>{let n=t,r=!1;for(;n&&!r;)n=mT(e,n),r=PT(e,n);return r}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function OT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function AT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function MT(e){const t=aT(e),n=sT(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function RT(e){const t=aT(e),n=sT(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function BT(e){return ET(e).some((t=>!Lr(WI(e,t)).merge))}function LT(e,t){const n=aT(e),r=sT(e);if(n.clientId===r.clientId)return!1;if(!n.attributeKey||!r.attributeKey||void 0===n.offset||void 0===r.offset)return!1;const o=mT(e,n.clientId);if(o!==mT(e,r.clientId))return!1;const i=zT(e,o);let a,s;i.indexOf(n.clientId)>i.indexOf(r.clientId)?(a=r,s=n):(a=n,s=r);const l=t?s.clientId:a.clientId,c=t?a.clientId:s.clientId,u=WI(e,l);if(!Lr(u).merge)return!1;const d=qI(e,c);if(d.name===u)return!0;const f=ao(d,u);return f&&f.length}const DT=e=>{const t=aT(e),n=sT(e);if(t.clientId===n.clientId)return $I;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return $I;const r=mT(e,t.clientId);if(r!==mT(e,n.clientId))return $I;const o=zT(e,r),i=o.indexOf(t.clientId),a=o.indexOf(n.clientId),[s,l]=i>a?[n,t]:[t,n],c=qI(e,s.clientId),u=Lr(c.name),d=qI(e,l.clientId),f=Lr(d.name),p=c.attributes[s.attributeKey],m=d.attributes[l.attributeKey],h=u.attributes[s.attributeKey],g=f.attributes[l.attributeKey];let v=hI({html:p,...jI(h)}),b=hI({html:m,...jI(g)});return v=xI(v,0,s.offset),b=xI(b,l.offset,b.text.length),[{...c,attributes:{...c.attributes,[s.attributeKey]:NI({value:v,...jI(h)})}},{...d,attributes:{...d.attributes,[l.attributeKey]:NI({value:b,...jI(g)})}}]};function zT(e,t){return e.blocks.order.get(t||"")||$I}function FT(e,t){return zT(e,mT(e,t)).indexOf(t)}function jT(e,t){const{selectionStart:n,selectionEnd:r}=e.selection;return n.clientId===r.clientId&&n.clientId===t}function VT(e,t,n=!1){return zT(e,t).some((t=>jT(e,t)||PT(e,t)||n&&VT(e,t,n)))}function HT(e,t,n=!1){return zT(e,t).some((t=>ZT(e,t)||n&&HT(e,t,n)))}function $T(e,t){if(!t)return!1;const n=xT(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function UT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function WT(e){return e.isMultiSelecting}function KT(e){return e.isSelectionEnabled}function GT(e,t){return e.blocksMode[t]||"visual"}function qT(e){return e.isTyping}function YT(e){return!!e.draggedBlocks.length}function XT(e){return e.draggedBlocks}function ZT(e,t){return e.draggedBlocks.includes(t)}function QT(e,t){if(!YT(e))return!1;return hT(e,t).some((t=>ZT(e,t)))}function JT(){return on('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const eP=nt((e=>{let t,n;const{insertionPoint:r,selection:{selectionEnd:o}}=e;if(null!==r)return r;const{clientId:i}=o;return i?(t=mT(e,i)||void 0,n=FT(e,o.clientId)+1):n=zT(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function tP(e){return null!==e.insertionPoint}function nP(e){return e.template.isValid}function rP(e){return e.settings.template}function oP(e,t){var n,r;return t?null!==(n=RP(e,t)?.templateLock)&&void 0!==n&&n:null!==(r=e.settings.templateLock)&&void 0!==r&&r}const iP=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,aP=(e,t,n=null)=>{let r;if(t&&"object"==typeof t?(r=t,t=r.name):r=Lr(t),!r)return!1;const{allowedBlockTypes:o}=BP(e);if(!iP(o,t,!0))return!1;if(!!oP(e,n))return!1;if("disabled"===nN(e,null!=n?n:""))return!1;const i=RP(e,n);if(n&&void 0===i)return!1;const a=i?.allowedBlocks,s=iP(a,t),l=r.parent,c=WI(e,n),u=iP(l,c);let d=!0;const f=r.ancestor;if(f){d=[n,...hT(e,n)].some((t=>iP(f,WI(e,t))))}const p=d&&(null===s&&null===u||!0===s||!0===u);return p?qt("blockEditor.__unstableCanInsertBlockType",p,r,n,{getBlock:qI.bind(null,e),getBlockParentsByBlockName:gT.bind(null,e)}):p},sP=nt(aP,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]));function lP(e,t,n=null){return t.every((t=>sP(e,WI(e,t),n)))}function cP(e,t,n=null){const r=GI(e,t);return null===r||(void 0!==r.lock?.remove?!r.lock.remove:!oP(e,n)&&"disabled"!==nN(e,n))}function uP(e,t,n=null){return t.every((t=>cP(e,t,n)))}function dP(e,t,n=null){const r=GI(e,t);return null===r||(void 0!==r.lock?.move?!r.lock.move:"all"!==oP(e,n)&&"disabled"!==nN(e,n))}function fP(e,t,n=null){return t.every((t=>dP(e,t,n)))}function pP(e,t){const n=GI(e,t);if(null===n)return!0;const{lock:r}=n;return!r?.edit}function mP(e,t){return!!Fr(t,"lock",!0)&&!!e.settings?.canLockBlocks}function hP(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const gP=(e,t,n)=>!!Fr(t,"inserter",!0)&&aP(e,t.name,n),vP=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},bP=(e,{buildScope:t="inserter"})=>n=>{const r=n.name;let o=!1;Fr(n.name,"multiple",!0)||(o=rT(e,eT(e)).some((({name:e})=>e===n.name)));const{time:i,count:a=0}=hP(e,r)||{},s={id:r,name:n.name,title:n.title,icon:n.icon,isDisabled:o,frecency:vP(i,a)};if("transform"===t)return s;const l=(c=n.name,u="inserter",Ar(yi).getBlockVariations(c,u));var c,u;return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:l,example:n.example,utility:1}},yP=nt(((e,t=null)=>{const n=aP(e,"core/block",t)?VP(e).map((t=>{const n=t.wp_pattern_sync_status?tI:{src:tI,foreground:"var(--wp-block-synced-color)"},r=`core/block/${t.id}`,{time:o,count:i=0}=hP(e,r)||{},a=vP(o,i);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title?.raw,icon:n,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:a,content:t.content?.raw,syncStatus:t.wp_pattern_sync_status}})):[],r=bP(e,{buildScope:"inserter"}),o=Dr().filter((n=>gP(e,n,t))).map(r).reduce(((t,n)=>{const{variations:r=[]}=n;if(r.some((({isDefault:e})=>e))||t.push(n),r.length){const o=((e,t)=>n=>{const r=`${t.id}/${n.name}`,{time:o,count:i=0}=hP(e,r)||{};return{...t,id:r,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:vP(o,i)}})(e,n);t.push(...r.map(o))}return t}),[]),{core:i,noncore:a}=o.reduce(((e,t)=>{const{core:n,noncore:r}=e;return(t.name.startsWith("core/")?n:r).push(t),e}),{core:[],noncore:[]});return[...[...i,...a],...n]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,VP(e),Dr()])),kP=nt(((e,t,n=null)=>{const r=Array.isArray(t)?t:[t],o=bP(e,{buildScope:"transform"}),i=Dr().filter((t=>gP(e,t,n))).map(o),a=Object.fromEntries(Object.entries(i).map((([,e])=>[e.name,e]))),s=no(r).reduce(((e,t)=>(a[t?.name]&&e.push(a[t.name]),e)),[]);return HI(s,(e=>a[e.name].frecency),"desc")}),((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Dr()])),wP=nt(((e,t=null)=>{if(Dr().some((n=>gP(e,n,t))))return!0;return aP(e,"core/block",t)&&VP(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,VP(e),Dr()])),_P=nt(((e,t=null)=>{if(!t)return;return[...Dr().filter((n=>gP(e,n,t))),...aP(e,"core/block",t)&&VP(e).length>0?["core/block"]:[]]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,VP(e),Dr()])),EP=nt(((e,t=null)=>(on('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),_P(e,t))),((e,t)=>[..._P.getDependants(e,t)])),xP=nt(((e,t=null)=>{if(!t)return;const n=e.blockListSettings[t]?.defaultBlock,r=e.blockListSettings[t]?.directInsert;return n&&r?"function"==typeof r?r(qI(e,t))?n:null:n:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)])),SP=nt(((e,t=null)=>(on('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),xP(e,t))),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)]));function CP(e){var t,n;const r=null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:$I,o=null!==(n=e?.settings?.__experimentalUserPatternCategories)&&void 0!==n?n:[],i=new Map;return o.forEach((e=>i.set(e.id,e))),r.map((e=>({name:`core/block/${e.id}`,id:e.id,title:e.title.raw,categories:e.wp_pattern_category.map((e=>i&&i.get(e)?i.get(e).slug:e)),content:e.content.raw,syncStatus:e.wp_pattern_sync_status})))}const IP=nt((e=>e?.settings?.__experimentalUserPatternCategories),(e=>[e.settings.__experimentalUserPatternCategories])),TP=nt(((e,t)=>{const n=[...e.settings.__experimentalBlockPatterns,...CP(e)].find((({name:e})=>e===t));return n?{...n,blocks:Ss(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e?.settings?.__experimentalUserPatternCategories])),PP=nt((e=>{const t=e.settings.__experimentalBlockPatterns,n=CP(e),{allowedBlockTypes:r}=BP(e),o=[...n,...t].filter((({inserter:e=!0})=>!!e)).map((({name:t})=>TP(e,t))),i=o.filter((({blocks:e})=>((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!iP(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0})(e,r)));return i}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes,e?.settings?.__experimentalUserPatternCategories])),NP=nt(((e,t=null)=>{const n=PP(e).filter((({blocks:n})=>n.every((({name:n})=>sP(e,n,t)))));return n}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId.get(t)])),OP=nt(((e,t,n=null)=>{if(!t)return $I;const r=NP(e,n),o=Array.isArray(t)?t:[t],i=r.filter((e=>e?.blockTypes?.some?.((e=>o.includes(e)))));return 0===i.length?$I:i}),((e,t,n)=>[...NP.getDependants(e,n)])),AP=nt(((e,t,n=null)=>(on('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),OP(e,t,n))),((e,t,n)=>[...NP.getDependants(e,n)])),MP=nt(((e,t,n=null)=>{if(!t)return $I;if(t.some((({clientId:t,innerBlocks:n})=>n.length||GP(e,t))))return $I;const r=Array.from(new Set(t.map((({name:e})=>e))));return OP(e,r,n)}),((e,t,n)=>[...OP.getDependants(e,n)]));function RP(e,t){return e.blockListSettings[t]}function BP(e){return e.settings}function LP(e){return e.blocks.isPersistentChange}const DP=nt(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),zP=nt(((e,t)=>{const n=VP(e).find((e=>e.id===t));return n?n.title?.raw:null}),(e=>[VP(e)]));function FP(e){return e.blocks.isIgnoredChange}function jP(e){return e.lastBlockAttributesChange}function VP(e){var t;return null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:$I}function HP(e){return"navigation"===e.editorMode}function $P(e){return e.editorMode}function UP(e){return e.hasBlockMovingClientId}function WP(e){return!!e.automaticChangeStatus}function KP(e,t){return e.highlightedBlock===t}function GP(e,t){return!!e.blocks.controlledInnerBlocks[t]}const qP=nt(((e,t)=>{if(!t.length)return null;const n=fT(e);if(t.includes(WI(e,n)))return n;const r=xT(e),o=gT(e,n||r[0],t);return o?o[o.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function YP(e,t,n){const{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===n}function XP(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const ZP=nt((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?UI:t}),(e=>[e.blockVisibility])),QP=nt(((e,t)=>{let n,r=t;for(;e.blocks.parents.has(r);)r=e.blocks.parents.get(r),r&&"contentOnly"===oP(e,r)&&(n=r);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function JP(e){return e.temporarilyEditingAsBlocks}function eN(e,t){if("default"!==nN(e,t))return!1;if(!pP(e,t))return!0;const n=$P(e);if("zoom-out"===n&&t&&!mT(e,t))return!0;const r=Fr(WI(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!r&&GP(e,t))&&!jT(e,t)&&!VT(e,t,!0)}function tN(e,t){let n=e.blocks.parents.get(t);for(;n;){if(eN(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const nN=Pe((e=>(t,n="")=>{if(t.blockEditingModes.has(n))return t.blockEditingModes.get(n);if(!n)return"default";const r=mT(t,n);if("contentOnly"===oP(t,r)){const r=WI(t,n);return e(yi).__experimentalHasContentRoleAttribute(r)?"contentOnly":"disabled"}const o=nN(t,r);return"contentOnly"===o?"default":o})),rN=Pe((e=>(t,n="")=>{const r=n||fT(t);if(!r)return!1;const{getGroupingBlockName:o}=e(yi),i=qI(t,r),a=o();return i&&(i.name===a||Lr(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&cP(t,r)})),oN=Pe((e=>(t,n=$I)=>{const{getGroupingBlockName:r}=e(yi),o=r(),i=n?.length?n:ET(t),a=i?.length?mT(t,i[0]):void 0;return sP(t,o,a)&&i.length&&uP(t,i,a)})),iN=["inserterMediaCategories","blockInspectorAnimation"];function aN(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let r=e;if(t&&"web"===eI.OS){r={};for(const t in e)iN.includes(t)||(r[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:r,reset:n}}function sN(){return{type:"HIDE_BLOCK_INTERFACE"}}function lN(){return{type:"SHOW_BLOCK_INTERFACE"}}const cN=(e,t=!0,n=!1)=>({select:r,dispatch:o,registry:i})=>{if(!e||!e.length)return;var a;a=e,e=Array.isArray(a)?a:[a];const s=r.getBlockRootClientId(e[0]);if(!r.canRemoveBlocks(e,s))return;const l=!n&&r.getBlockRemovalRules();if(l){const n=new Set,i=[...e];for(;i.length;){const e=i.shift(),t=r.getBlockName(e);l[t]&&n.add(t);const o=r.getBlockOrder(e);i.push(...o)}if(n.size)return void o(function(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,blockNamesForPrompt:n}}(e,t,Array.from(n)))}t&&o.selectPreviousBlock(e[0],t),i.batch((()=>{o({type:"REMOVE_BLOCKS",clientIds:e}),o(uN())}))},uN=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function dN(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function fN(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function pN(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function mN(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function hN(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function gN(e){return e.isBlockInterfaceHidden}function vN(e){return e?.lastBlockInserted?.clientIds}const bN=nt(((e,t)=>{const n=t=>"disabled"===nN(e,t)&&zT(e,t).every(n);return"disabled"===nN(e,t)&&zT(e,t).every(n)}),(e=>[e.blocks.parents,e.blocks.order,e.blockEditingModes,e.blockListSettings])),yN=nt(((e,t="")=>zT(e,t).flatMap((t=>"disabled"!==nN(e,t)?[{clientId:t,innerBlocks:yN(e,t)}]:yN(e,t)))),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),kN=nt(((e,t,n=!1)=>hT(e,t,n).filter((t=>"disabled"!==nN(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function wN(e){return e.removalPromptData}function _N(e){return e.blockRemovalRules}function EN(e){return e.openedBlockSettingsMenu}function xN(e){return e.styleOverrides}function SN(e){return e.registeredInserterMediaCategories}const CN=nt((e=>{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:r},registeredInserterMediaCategories:o}=e;if(!t&&!o.length||!n)return;const i=t?.map((({name:e})=>e))||[];return[...t||[],...(o||[]).filter((({name:e})=>!i.includes(e)))].filter((e=>!(!r&&"openverse"===e.name)&&Object.values(n).some((t=>t.startsWith(`${e.mediaType}/`)))))}),(e=>[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories]));function IN(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}let TN="";var PN;function NN(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),TN===e&&(e+=" "),TN=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");r&&"assertive"===t?r.textContent=e:o&&(o.textContent=e),n&&n.removeAttribute("hidden")}PN=function(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=Hn("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&IN("assertive"),null===n&&IN("polite")},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",PN):PN());const ON="";function AN(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(ON)}))}const MN=e=>Array.isArray(e)?e:[e],RN=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(BN(e))},BN=e=>({select:t,dispatch:n})=>{const r=t.getTemplate(),o=t.getTemplateLock(),i=!r||"all"!==o||zl(e,r);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function LN(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function DN(e){return on('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function zN(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:MN(e),attributes:t,uniqueByBlock:n}}function FN(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function jN(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const VN=(e,t=!1)=>({select:n,dispatch:r})=>{const o=n.getPreviousBlockClientId(e);if(o)r.selectBlock(o,-1);else if(t){const t=n.getBlockRootClientId(e);t&&r.selectBlock(t,-1)}},HN=e=>({select:t,dispatch:n})=>{const r=t.getNextBlockClientId(e);r&&n.selectBlock(r)};function $N(){return{type:"START_MULTI_SELECT"}}function UN(){return{type:"STOP_MULTI_SELECT"}}const WN=(e,t,n=0)=>({select:r,dispatch:o})=>{if(r.getBlockRootClientId(e)!==r.getBlockRootClientId(t))return;o({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const i=r.getSelectedBlockCount();NN(Nn(Un("%s block selected.","%s blocks selected.",i),i),"assertive")};function KN(){return{type:"CLEAR_SELECTED_BLOCK"}}function GN(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function qN(e,t){var n;const r=null!==(n=t?.__experimentalPreferredStyleVariations?.value)&&void 0!==n?n:{};return e.map((e=>{const t=e.name;if(!Fr(t,"defaultStylePicker",!0))return e;if(!r[t])return e;const n=e.attributes?.className;if(n?.includes("is-style-"))return e;const{attributes:o={}}=e,i=r[t];return{...e,attributes:{...o,className:`${n||""} is-style-${i}`.trim()}}}))}const YN=(e,t,n,r=0,o)=>({select:i,dispatch:a,registry:s})=>{e=MN(e),t=qN(MN(t),i.getSettings());const l=i.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,l))return}s.batch((()=>{a({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o}),a.ensureDefaultBlock()}))};function XN(e,t){return YN(e,t)}const ZN=e=>(t,n)=>({select:r,dispatch:o})=>{r.canMoveBlocks(t,n)&&o({type:e,clientIds:MN(t),rootClientId:n})},QN=ZN("MOVE_BLOCKS_DOWN"),JN=ZN("MOVE_BLOCKS_UP"),eO=(e,t="",n="",r)=>({select:o,dispatch:i})=>{if(o.canMoveBlocks(e,t)){if(t!==n){if(!o.canRemoveBlocks(e,t))return;if(!o.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r})}};function tO(e,t="",n="",r){return eO([e],t,n,r)}function nO(e,t,n,r,o){return rO([e],t,n,r,0,o)}const rO=(e,t,n,r=!0,o=0,i)=>({select:a,dispatch:s})=>{null!==o&&"object"==typeof o&&(i=o,o=0,on("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=qN(MN(e),a.getSettings());const l=[];for(const t of e){a.canInsertBlockType(t.name,n)&&l.push(t)}l.length&&s({type:"INSERT_BLOCKS",blocks:l,index:t,rootClientId:n,time:Date.now(),updateSelection:r,initialPosition:r?o:null,meta:i})};function oO(e,t,n={}){const{__unstableWithInserter:r,operation:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:o}}const iO=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function aO(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const sO=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=Fl(e.getBlocks(),e.getTemplate());t.resetBlocks(n)},lO=e=>({registry:t,select:n,dispatch:r})=>{const o=n.getSelectionStart(),i=n.getSelectionEnd();if(o.clientId===i.clientId)return;if(!o.attributeKey||!i.attributeKey||void 0===o.offset||void 0===i.offset)return!1;const a=n.getBlockRootClientId(o.clientId);if(a!==n.getBlockRootClientId(i.clientId))return;const s=n.getBlockOrder(a);let l,c;s.indexOf(o.clientId)>s.indexOf(i.clientId)?(l=i,c=o):(l=o,c=i);const u=e?c:l,d=n.getBlock(u.clientId),f=Lr(d.name);if(!f.merge)return;const p=l,m=c,h=n.getBlock(p.clientId),g=Lr(h.name),v=n.getBlock(m.clientId),b=Lr(v.name),y=h.attributes[p.attributeKey],k=v.attributes[m.attributeKey],w=g.attributes[p.attributeKey],_=b.attributes[m.attributeKey];let E=hI({html:y,...jI(w)}),x=hI({html:k,...jI(_)});E=xI(E,p.offset,E.text.length),x=EI(x,ON,0,m.offset);const S=Qr(h,{[p.attributeKey]:NI({value:E,...jI(w)})}),C=Qr(v,{[m.attributeKey]:NI({value:x,...jI(_)})}),I=e?S:C,T=h.name===v.name?[I]:ao(I,f.name);if(!T||!T.length)return;let P;if(e){const e=T.pop();P=f.merge(e.attributes,C.attributes)}else{const e=T.shift();P=f.merge(S.attributes,e.attributes)}const N=AN(P),O=hI({html:P[N],...jI(f.attributes[N])}),A=O.text.indexOf(ON),M=NI({value:xI(O,A,A+1),...jI(f.attributes[N])});P[N]=M;const R=n.getSelectedBlockClientIds(),B=[...e?T:[],{...d,attributes:{...d.attributes,...P}},...e?[]:T];t.batch((()=>{r.selectionChange(d.clientId,N,A,A),r.replaceBlocks(R,B,0,n.getSelectedBlocksInitialCaretPosition())}))},cO=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),r=e.getSelectionEnd();if(n.clientId===r.clientId)return;if(!n.attributeKey||!r.attributeKey||void 0===n.offset||void 0===r.offset)return;const o=e.getBlockRootClientId(n.clientId);if(o!==e.getBlockRootClientId(r.clientId))return;const i=e.getBlockOrder(o);let a,s;i.indexOf(n.clientId)>i.indexOf(r.clientId)?(a=r,s=n):(a=n,s=r);const l=a,c=s,u=e.getBlock(l.clientId),d=Lr(u.name),f=e.getBlock(c.clientId),p=Lr(f.name),m=u.attributes[l.attributeKey],h=f.attributes[c.attributeKey],g=d.attributes[l.attributeKey],v=p.attributes[c.attributeKey];let b=hI({html:m,...jI(g)}),y=hI({html:h,...jI(v)});b=xI(b,l.offset,b.text.length),y=xI(y,0,c.offset),t.replaceBlocks(e.getSelectedBlockClientIds(),[{...u,attributes:{...u.attributes,[l.attributeKey]:NI({value:b,...jI(g)})}},{...f,attributes:{...f.attributes,[c.attributeKey]:NI({value:y,...jI(v)})}}])},uO=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:r.clientId}})},dO=(e,t)=>({registry:n,select:r,dispatch:o})=>{const i=[e,t];o({type:"MERGE_BLOCKS",blocks:i});const[a,s]=i,l=r.getBlock(a),c=Lr(l.name);if(!c)return;if(!c.merge&&!zr(l.name,"__experimentalOnMerge"))return void o.selectBlock(l.clientId);const u=r.getBlock(s);if(!c.merge){const e=ao(u,c.name);if(1!==e?.length)return void o.selectBlock(l.clientId);const[t]=e;return t.innerBlocks.length<1?void o.selectBlock(l.clientId):void n.batch((()=>{o.insertBlocks(t.innerBlocks,void 0,a),o.removeBlock(s),o.selectBlock(t.innerBlocks[0].clientId);const e=r.getNextBlockClientId(a);if(e&&r.getBlockName(a)===r.getBlockName(e)){const t=r.getBlockAttributes(a),n=r.getBlockAttributes(e);Object.keys(t).every((e=>t[e]===n[e]))&&(o.moveBlocksToPosition(r.getBlockOrder(e),e,a),o.removeBlock(e,!1))}}))}const d=Lr(u.name),{clientId:f,attributeKey:p,offset:m}=r.getSelectionStart(),h=(f===a?c:d).attributes[p],g=(f===a||f===s)&&void 0!==p&&void 0!==m&&!!h;h||("number"==typeof p?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof p):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const v=Qr(l),b=Qr(u);if(g){const e=f===a?v:b,t=EI(hI({html:e.attributes[p],...jI(h)}),ON,m,m);e.attributes[p]=NI({value:t,...jI(h)})}const y=l.name===u.name?[b]:ao(b,l.name);if(!y||!y.length)return;const k=c.merge(v.attributes,y[0].attributes);if(g){const e=AN(k),t=hI({html:k[e],...jI(c.attributes[e])}),n=t.text.indexOf(ON),r=NI({value:xI(t,n,n+1),...jI(c.attributes[e])});k[e]=r,o.selectionChange(l.clientId,e,n,n)}o.replaceBlocks([l.clientId,u.clientId],[{...l,attributes:{...l.attributes,...k}},...y.slice(1)],0)},fO=(e,t=!0)=>cN(e,t);function pO(e,t){return fO([e],t)}function mO(e,t,n=!1,r=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?r:null,time:Date.now()}}function hO(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function gO(){return{type:"START_TYPING"}}function vO(){return{type:"STOP_TYPING"}}function bO(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function yO(){return{type:"STOP_DRAGGING_BLOCKS"}}function kO(){return on('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function wO(){return on('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function _O(e,t,n,r){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}:{type:"SELECTION_CHANGE",...e}}const EO=(e,t,n)=>({dispatch:r})=>{const o=Br();if(!o)return;const i=Yr(o,e);return r.insertBlock(i,n,t)};function xO(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function SO(e){return aN(e,{stripExperimentalSettings:!0})}function CO(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function IO(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function TO(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const PO=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},NO=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},OO=e=>({dispatch:t,select:n})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart();e&&t.selectBlock(n.getBlockHierarchyRootClientId(e))}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?NN(Hn("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):"edit"===e?NN(Hn("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&NN(Hn("You are currently in zoom-out mode."))},AO=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&NN(Hn("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},MO=(e,t=!0)=>({select:n,dispatch:r})=>{if(!e||!e.length)return;const o=n.getBlocksByClientId(e);if(o.some((e=>!e)))return;const i=o.map((e=>e.name));if(i.some((e=>!Fr(e,"multiple",!0))))return;const a=n.getBlockRootClientId(e[0]),s=MN(e),l=n.getBlockIndex(s[s.length-1]),c=o.map((e=>Zr(e)));return r.insertBlocks(c,l+1,a,t),c.length>1&&t&&r.multiSelect(c[0].clientId,c[c.length-1].clientId),c.map((e=>e.clientId))},RO=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e);if(t.getTemplateLock(r))return;const o=t.getBlockIndex(e);return n.insertDefaultBlock({},r,o)},BO=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e);if(t.getTemplateLock(r))return;const o=t.getBlockIndex(e);return n.insertDefaultBlock({},r,o+1)};function LO(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const DO=e=>async({dispatch:t})=>{t(LO(e,!0)),await new Promise((e=>setTimeout(e,150))),t(LO(e,!1))};function zO(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function FO(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function jO(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const VO=e=>({select:t,dispatch:n})=>{if(!e||"object"!=typeof e)return void console.error("Category should be an `InserterMediaCategory` object.");if(!e.name)return void console.error("Category should have a `name` that should be unique among all media categories.");if(!e.labels?.name)return void console.error("Category should have a `labels.name`.");if(!["image","audio","video"].includes(e.mediaType))return void console.error("Category should have `mediaType` property that is one of `image|audio|video`.");if(!e.fetch||"function"!=typeof e.fetch)return void console.error("Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) => Promise<InserterMediaItem[]>`.");const r=t.getRegisteredInserterMediaCategories();r.some((({name:t})=>t===e.name))?console.error(`A category is already registered with the same name: "${e.name}".`):r.some((({labels:{name:t}={}})=>t===e.labels?.name))?console.error(`A category is already registered with the same labels.name: "${e.labels.name}".`):n({type:"REGISTER_INSERTER_MEDIA_CATEGORY",category:{...e,isExternalResource:!0}})};function HO(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function $O(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const UO="core/block-editor",{lock:WO,unlock:KO}=Fe("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-editor"),GO={reducer:JC,selectors:d,actions:m},qO=Ct(UO,{...GO,persist:["preferences"]}),YO=fn(UO,{...GO,persist:["preferences"]});KO(YO).registerPrivateActions(f),KO(YO).registerPrivateSelectors(p),KO(qO).registerPrivateActions(f),KO(qO).registerPrivateSelectors(p);const XO={name:"",isSelected:!1},ZO=(0,Sr.createContext)(XO),{Provider:QO}=ZO;function JO(){return(0,Sr.useContext)(ZO)}function eA(){const{isSelected:e,clientId:t,name:n}=JO();return BC((r=>{if(e)return!0;const{getBlockName:o,isFirstMultiSelectedBlock:i,getMultiSelectedBlockClientIds:a}=r(qO);return!!i(t)&&a().every((e=>o(e)===n))}),[t,e,n])}function tA({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:r=!1}){const o=function(e,t){const n=eA(),{clientId:r}=JO(),o=BC((e=>{const{getBlockName:n,hasSelectedInnerBlock:o}=e(qO),{hasBlockSupport:i}=e(yi);return t&&i(n(r),"__experimentalExposeControlsToChildren",!1)&&o(r)}),[t,r]);return n?LC[e]?.Fill:o?LC.parent.Fill:null}(e,r);if(!o)return null;const i=(0,Sr.createElement)(Sr.Fragment,null,"default"===e&&(0,Sr.createElement)(yC,{controls:t}),n);return(0,Sr.createElement)(HS,{document},(0,Sr.createElement)(o,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,Sr.createElement)(t,{...n},e)),i)})))}var nA=o(5697),rA=o.n(nA);o(1726);function oA(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function iA(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function aA(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return iA(n.overflowY,t)||iA(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function sA(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let lA=0;function cA(){}function uA(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(!oA(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;oA(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&aA(p)&&!aA(document.documentElement)||null!=p&&aA(p,s)&&f.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,k=b.width,w=b.top,_=b.right,E=b.bottom,x=b.left,S="start"===o||"nearest"===o?w:"end"===o?E:w+y/2,C="center"===i?x+k/2:"end"===i?_:x,I=[],T=0;T<f.length;T++){var P=f[T],N=P.getBoundingClientRect(),O=N.height,A=N.width,M=N.top,R=N.right,B=N.bottom,L=N.left;if("if-needed"===r&&w>=0&&x>=0&&E<=h&&_<=m&&w>=M&&E<=B&&x>=L&&_<=R)return I;var D=getComputedStyle(P),z=parseInt(D.borderLeftWidth,10),F=parseInt(D.borderTopWidth,10),j=parseInt(D.borderRightWidth,10),V=parseInt(D.borderBottomWidth,10),H=0,$=0,U="offsetWidth"in P?P.offsetWidth-P.clientWidth-z-j:0,W="offsetHeight"in P?P.offsetHeight-P.clientHeight-F-V:0,K="offsetWidth"in P?0===P.offsetWidth?0:A/P.offsetWidth:0,G="offsetHeight"in P?0===P.offsetHeight?0:O/P.offsetHeight:0;if(d===P)H="start"===o?S:"end"===o?S-h:"nearest"===o?sA(v,v+h,h,F,V,v+S,v+S+y,y):S-h/2,$="start"===i?C:"center"===i?C-m/2:"end"===i?C-m:sA(g,g+m,m,z,j,g+C,g+C+k,k),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?S-M-F:"end"===o?S-B+V+W:"nearest"===o?sA(M,B,O,F,V+W,S,S+y,y):S-(M+O/2)+W/2,$="start"===i?C-L-z:"center"===i?C-(L+A/2)+U/2:"end"===i?C-R+j+U:sA(L,R,A,z,j+U,C,C+k,k);var q=P.scrollLeft,Y=P.scrollTop;S+=Y-(H=Math.max(0,Math.min(Y+H/G,P.scrollHeight-O/G+W))),C+=q-($=Math.max(0,Math.min(q+$/K,P.scrollWidth-A/K+U)))}I.push({el:P,top:H,left:$})}return I}(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 dA(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function fA(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function pA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function mA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function hA(){return String(lA++)}function gA(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 vA(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=bA(t,r)?t[r]:e[r],n)),{})}function bA(e,t){return void 0!==e[t]}function yA(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function kA(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=wA(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function wA(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?wA(1,0,n,r,!1):wA(-1,n-1,n,r,!1):-1}function _A(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(dA(t,e,n)||r&&dA(t,n.document.activeElement,n))))}const EA=fA((e=>{SA(e).textContent=""}),500);function xA(e,t){const n=SA(t);e&&(n.textContent=e,EA(t))}function SA(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 CA={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function IA(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${MA(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 TA=fA(((e,t)=>{xA(e(),t)}),200),PA="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Sr.useLayoutEffect:Sr.useEffect;function NA(e){let{id:t=`downshift-${hA()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,Sr.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 OA(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function AA(e){return/^\S{1}$/.test(e)}function MA(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function RA(e){const t=(0,Sr.useRef)(e);return t.current=e,t}function BA(e,t,n){const r=(0,Sr.useRef)(),o=(0,Sr.useRef)(),i=(0,Sr.useCallback)(((t,n)=>{o.current=n,t=vA(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,Sr.useReducer)(i,t),l=RA(n),c=(0,Sr.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,Sr.useEffect)((()=>{u&&r.current&&r.current!==a&&IA(u,vA(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function LA(e,t,n){const[r,o]=BA(e,t,n);return[vA(r,n),o]}const DA={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:uA,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function zA(e,t,n){void 0===n&&(n=CA);const r=e[`default${MA(t)}`];return void 0!==r?r:n[t]}function FA(e,t,n){void 0===n&&(n=CA);const r=e[t];if(void 0!==r)return r;const o=e[`initial${MA(t)}`];return void 0!==o?o:zA(e,t,n)}function jA(e){const t=FA(e,"selectedItem"),n=FA(e,"isOpen"),r=FA(e,"highlightedIndex"),o=FA(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function VA(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):kA(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function HA(e,t,n,r){const o=(0,Sr.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,Sr.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!_A(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||_A(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 $A=()=>cA;function UA(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,Sr.useEffect)((()=>{r||TA((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function WA(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,Sr.useRef)(!0);return PA((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let KA=cA;function GA(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:VA(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:VA(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:zA(o,"highlightedIndex"),isOpen:zA(o,"isOpen"),selectedItem:zA(o,"selectedItem"),inputValue:zA(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function qA(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}rA().array.isRequired,rA().func,rA().func,rA().func,rA().bool,rA().number,rA().number,rA().number,rA().bool,rA().bool,rA().bool,rA().any,rA().any,rA().any,rA().string,rA().string,rA().string,rA().func,rA().string,rA().func,rA().func,rA().func,rA().func,rA().func,rA().shape({addEventListener:rA().func,removeEventListener:rA().func,document:rA().shape({getElementById:rA().func,activeElement:rA().any,body:rA().any})});var YA=mn(mn({},DA),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),XA=cA;const ZA=0,QA=1,JA=2,eM=3,tM=4,nM=5,rM=6,oM=7,iM=8,aM=9,sM=10,lM=11,cM=12,uM=13,dM=14,fM=15,pM=16,mM=17,hM=18,gM=19,vM=20,bM=21,yM=22;var kM=Object.freeze({__proto__:null,MenuKeyDownArrowDown:ZA,MenuKeyDownArrowUp:QA,MenuKeyDownEscape:JA,MenuKeyDownHome:eM,MenuKeyDownEnd:tM,MenuKeyDownEnter:nM,MenuKeyDownSpaceButton:rM,MenuKeyDownCharacter:oM,MenuBlur:iM,MenuMouseLeave:aM,ItemMouseMove:sM,ItemClick:lM,ToggleButtonClick:cM,ToggleButtonKeyDownArrowDown:uM,ToggleButtonKeyDownArrowUp:dM,ToggleButtonKeyDownCharacter:fM,FunctionToggleMenu:pM,FunctionOpenMenu:mM,FunctionCloseMenu:hM,FunctionSetHighlightedIndex:gM,FunctionSelectItem:vM,FunctionSetInputValue:bM,FunctionReset:yM});function wM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case lM:i={isOpen:zA(r,"isOpen"),highlightedIndex:zA(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case fM:{const n=t.key,o=`${e.inputValue}${n}`,a=qA({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{selectedItem:r.items[a]}}}break;case uM:i={highlightedIndex:VA(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case dM:i={highlightedIndex:VA(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case nM:case rM:i={isOpen:zA(r,"isOpen"),highlightedIndex:zA(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case eM:i={highlightedIndex:wA(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case tM:i={highlightedIndex:wA(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case JA:case iM:i={isOpen:!1,highlightedIndex:-1};break;case oM:{const n=t.key,o=`${e.inputValue}${n}`,a=qA({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case ZA:i={highlightedIndex:kA(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case QA:i={highlightedIndex:kA(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case vM:i={selectedItem:t.selectedItem};break;default:return GA(e,t,kM)}return{...e,...i}}function _M(e){void 0===e&&(e={}),XA(e,_M);const t={...YA,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=jA(t),[d,f]=LA(wM,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,v=(0,Sr.useRef)(null),b=(0,Sr.useRef)(null),y=(0,Sr.useRef)({}),k=(0,Sr.useRef)(!0),w=(0,Sr.useRef)(null),_=NA(t),E=(0,Sr.useRef)(),x=(0,Sr.useRef)(!0),S=RA({state:d,props:t}),C=(0,Sr.useCallback)((e=>y.current[_.getItemId(e)]),[_]);UA(c,[p,m,g,n],{isInitialMount:x.current,previousResultCount:E.current,items:n,environment:o,itemToString:s,...d}),UA(l,[h],{isInitialMount:x.current,previousResultCount:E.current,items:n,environment:o,itemToString:s,...d});const I=WA({menuElement:b.current,highlightedIndex:m,isOpen:p,itemRefs:y,scrollIntoView:r,getItemNodeFromIndex:C});(0,Sr.useEffect)((()=>(w.current=fA((e=>{e({type:bM,inputValue:""})}),500),()=>{w.current.cancel()})),[]),(0,Sr.useEffect)((()=>{g&&w.current(f)}),[f,g]),KA({isInitialMount:x.current,props:t,state:d}),(0,Sr.useEffect)((()=>{x.current?(i||a||p)&&b.current&&b.current.focus():p?b.current&&b.current.focus():o.document.activeElement===b.current&&v.current&&(k.current=!1,v.current.focus())}),[p]),(0,Sr.useEffect)((()=>{x.current||(E.current=n.length)}));const T=HA(p,[b,v],o,(()=>{f({type:iM})})),P=$A("getMenuProps","getToggleButtonProps");(0,Sr.useEffect)((()=>{x.current=!1}),[]),(0,Sr.useEffect)((()=>{p||(y.current={})}),[p]);const N=(0,Sr.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:uM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:dM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})}})),[f,C]),O=(0,Sr.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:ZA,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:QA,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:eM,getItemNodeFromIndex:C})},End(e){e.preventDefault(),f({type:tM,getItemNodeFromIndex:C})},Escape(){f({type:JA})},Enter(e){e.preventDefault(),f({type:nM})}," "(e){e.preventDefault(),f({type:rM})}})),[f,C]),A=(0,Sr.useCallback)((()=>{f({type:pM})}),[f]),M=(0,Sr.useCallback)((()=>{f({type:hM})}),[f]),R=(0,Sr.useCallback)((()=>{f({type:mM})}),[f]),B=(0,Sr.useCallback)((e=>{f({type:gM,highlightedIndex:e})}),[f]),L=(0,Sr.useCallback)((e=>{f({type:vM,selectedItem:e})}),[f]),D=(0,Sr.useCallback)((()=>{f({type:yM})}),[f]),z=(0,Sr.useCallback)((e=>{f({type:bM,inputValue:e})}),[f]),F=(0,Sr.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),j=(0,Sr.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 P("getMenuProps",l,r,b),{[r]:mA(a,(e=>{b.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:pA(n,(()=>{f({type:aM})})),onKeyDown:pA(o,(e=>{const t=yA(e);t&&O[t]?O[t](e):AA(t)&&f({type:oM,key:t,getItemNodeFromIndex:C})})),onBlur:pA(i,(()=>{if(!1===k.current)return void(k.current=!0);!T.current.isMouseDown&&f({type:iM})})),...s}}),[f,S,O,T,P,_,C]),V=(0,Sr.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:cM})},c=e=>{const t=yA(e);t&&N[t]?N[t](e):AA(t)&&f({type:fM,key:t,getItemNodeFromIndex:C})},u={[o]:mA(i,(e=>{v.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":S.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=pA(n,l),u.onKeyDown=pA(r,c)),P("getToggleButtonProps",s,o,v),u}),[f,S,N,P,_,C]),H=(0,Sr.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:lM,index:n})},p=OA(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:_.getItemId(p),[i]:mA(a,(e=>{e&&(y.current[_.getItemId(p)]=e)})),...l};return s||(m.onClick=pA(o,d)),m.onMouseMove=pA(r,(()=>{n!==c.highlightedIndex&&(I.current=!1,f({type:sM,index:n,disabled:s}))})),m}),[f,S,I,_]);return{getToggleButtonProps:V,getLabelProps:F,getMenuProps:j,getItemProps:H,toggleMenu:A,openMenu:R,closeMenu:M,setHighlightedIndex:B,selectItem:L,reset:D,setInputValue:z,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}_M.stateChangeTypes=kM;rA().array.isRequired,rA().func,rA().func,rA().func,rA().bool,rA().number,rA().number,rA().number,rA().bool,rA().bool,rA().bool,rA().any,rA().any,rA().any,rA().string,rA().string,rA().string,rA().string,rA().string,rA().string,rA().func,rA().string,rA().string,rA().func,rA().func,rA().func,rA().func,rA().func,rA().func,rA().shape({addEventListener:rA().func,removeEventListener:rA().func,document:rA().shape({getElementById:rA().func,activeElement:rA().any,body:rA().any})});rA().array,rA().array,rA().array,rA().func,rA().func,rA().func,rA().number,rA().number,rA().number,rA().func,rA().func,rA().string,rA().string,rA().shape({addEventListener:rA().func,removeEventListener:rA().func,document:rA().shape({getElementById:rA().func,activeElement:rA().any,body:rA().any})});const EM=(0,Sr.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Sr.cloneElement)(e,{width:t,height:t,...n,ref:r})})),xM=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));o(8679);function SM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Sh(t)}var CM=function(){var e=SM.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_"}}};let IM;function TM(e="",t=1){return br(e).alpha(t).toRgbString()}kr([wr]);const PM=Cn((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&br(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!IM){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),IM=e}return IM}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function NM(e){const t=function(e){const t=PM(e);return br(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const OM="#fff",AM={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},MM="var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",RM="var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",BM={background:OM,backgroundDisabled:AM[100],border:AM[600],borderHover:AM[700],borderFocus:MM,borderDisabled:AM[400],textDisabled:AM[600],textDark:OM,darkGrayPlaceholder:TM(AM[900],.62),lightGrayPlaceholder:TM(OM,.65)},LM={accent:MM,accentDarker10:RM},DM=Object.freeze({gray:AM,white:OM,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:LM,ui:BM}),zM=new RegExp(/-left/g),FM=new RegExp(/-right/g),jM=new RegExp(/Left/g),VM=new RegExp(/Right/g);function HM(e){return"left"===e?"right":"right"===e?"left":zM.test(e)?e.replace(zM,"-right"):FM.test(e)?e.replace(FM,"-left"):jM.test(e)?e.replace(jM,"Right"):VM.test(e)?e.replace(VM,"Left"):e}const $M=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[HM(e),t])));function UM(e={},t){return()=>t?Wn()?SM(t,""):SM(e,""):Wn()?SM($M(e),""):SM(e,"")}UM.watch=()=>Wn();const WM="4px";function KM(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${WM} * ${e})`}const GM=e=>null!=e;const qM=Hh((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,...g}=Vh(e,"Spacer");return{...g,className:jh()(GM(n)&&SM("margin:",KM(n),";",""),GM(l)&&SM("margin-bottom:",KM(l),";margin-top:",KM(l),";",""),GM(s)&&SM("margin-left:",KM(s),";margin-right:",KM(s),";",""),GM(a)&&SM("margin-top:",KM(a),";",""),GM(r)&&SM("margin-bottom:",KM(r),";",""),GM(o)&&UM({marginLeft:KM(o)})(),GM(i)&&UM({marginRight:KM(i)})(),GM(c)&&SM("padding:",KM(c),";",""),GM(h)&&SM("padding-bottom:",KM(h),";padding-top:",KM(h),";",""),GM(m)&&SM("padding-left:",KM(m),";padding-right:",KM(m),";",""),GM(p)&&SM("padding-top:",KM(p),";",""),GM(u)&&SM("padding-bottom:",KM(u),";",""),GM(d)&&UM({paddingLeft:KM(d)})(),GM(f)&&UM({paddingRight:KM(f)})(),t)}}(e);return(0,Sr.createElement)(og,{...n,ref:t})}),"Spacer"),YM=qM;const XM=Hh((function(e,t){const n=Vh(e,"InputControlSuffixWrapper");return(0,Sr.createElement)(YM,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),ZM=ng("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",DM.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?SM({color:DM.ui.textDisabled},"",""):""),";",(({selectSize:e="default"})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"}[e];return t?SM("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""}),";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return SM(r[n]||r.default,"","")}),";",(({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,"__unstable-large":16};e||(r.default=8);const o=r[n]||r.default;return UM({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),QM=ng("div",{target:"e1mv6sxx1"})("margin-inline-end:",KM(-1),";line-height:0;"),JM=ng(XM,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",UM({right:0}),";"),eR=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),tR=()=>(0,Sr.createElement)(JM,null,(0,Sr.createElement)(QM,null,(0,Sr.createElement)(EM,{icon:eR,size:18}))),nR=["40em","52em","64em"],rR=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>nR.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${nR.length} breakpoints, got index ${t}`);const[n,r]=(0,Sr.useState)(t);return(0,Sr.useEffect)((()=>{const e=()=>{const e=nR.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 oR(e,t={}){const n=rR(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const iR={name:"zjik7",styles:"display:flex"},aR={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},sR={name:"82a6rk",styles:"flex:1"},lR={name:"13nosa1",styles:">*{min-height:0;}"},cR={name:"1pwxzk4",styles:">*{min-width:0;}"};function uR(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...l}=Vh(function(e){const{isReversed:t,...n}=e;return void 0!==t?(on("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=oR(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=jh();return{...l,className:(0,Sr.useMemo)((()=>{const e=SM({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:s?"wrap":void 0,gap:KM(i),justifyContent:a,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(iR,e,u?lR:cR,n)}),[t,n,d,c,o,i,u,a,s]),isColumn:u}}const dR=(0,Sr.createContext)({flexItemDisplay:void 0}),fR=()=>(0,Sr.useContext)(dR);const pR=Hh((function(e,t){const{children:n,isColumn:r,...o}=uR(e);return(0,Sr.createElement)(dR.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,Sr.createElement)(og,{...o,ref:t},n))}),"Flex"),mR=pR;function hR(e){const{className:t,display:n,isBlock:r=!1,...o}=Vh(e,"FlexItem"),i={},a=fR().flexItemDisplay;i.Base=SM({display:n||a},"","");return{...o,className:jh()(aR,i.Base,r&&sR,t)}}const gR=Hh((function(e,t){const n=hR(e);return(0,Sr.createElement)(og,{...n,ref:t})}),"FlexItem");const vR={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function bR(e){return null!=e}const yR=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,kR="…",wR={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},_R={ellipsis:kR,ellipsizeMode:wR.auto,limit:0,numberOfLines:0};function ER(e="",t){const n={..._R,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===wR.none)return e;let a,s;switch(o){case wR.head:a=0,s=i;break;case wR.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==wR.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=bR(r)?r:kR;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function xR(e){const{className:t,children:n,ellipsis:r=kR,ellipsizeMode:o=wR.auto,limit:i=0,numberOfLines:a=0,...s}=Vh(e,"Truncate"),l=jh(),c=ER("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}),u=o===wR.auto;return{...s,className:(0,Sr.useMemo)((()=>l(u&&!a&&vR,u&&!!a&&SM("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,a,u]),children:c}}const SR="36px",CR="12px",IR={controlSurfaceColor:DM.white,controlTextActiveColor:DM.theme.accent,controlPaddingX:CR,controlPaddingXLarge:`calc(${CR} * 1.3334)`,controlPaddingXSmall:`calc(${CR} / 1.3334)`,controlBackgroundColor:DM.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${DM.theme.accent}`,controlDestructiveBorderColor:DM.alert.red,controlHeight:SR,controlHeightXSmall:`calc( ${SR} * 0.6 )`,controlHeightSmall:`calc( ${SR} * 0.8 )`,controlHeightLarge:`calc( ${SR} * 1.2 )`,controlHeightXLarge:`calc( ${SR} * 1.4 )`},TR={toggleGroupControlBackgroundColor:IR.controlBackgroundColor,toggleGroupControlBorderColor:DM.ui.border,toggleGroupControlBackdropBackgroundColor:IR.controlSurfaceColor,toggleGroupControlBackdropBorderColor:DM.ui.border,toggleGroupControlButtonColorActive:IR.controlBackgroundColor},PR=Object.assign({},IR,TR,{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:`${KM(2)}`,cardPaddingSmall:`${KM(4)}`,cardPaddingMedium:`${KM(4)} ${KM(6)}`,cardPaddingLarge:`${KM(6)} ${KM(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:DM.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:DM.white,surfaceColor:DM.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 NR=SM("color:",DM.gray[900],";line-height:",PR.fontLineHeightBase,";margin:0;",""),OR={name:"4zleql",styles:"display:block"},AR=SM("color:",DM.alert.green,";",""),MR=SM("color:",DM.alert.red,";",""),RR=SM("color:",DM.gray[700],";",""),BR=SM("mark{background:",DM.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;}",""),LR={name:"50zrmy",styles:"text-transform:uppercase"};var DR=o(6928);const zR=Cn((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const FR=13,jR={body:FR,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},VR=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function HR(e=FR){if(e in jR)return HR(jR[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${FR})`} * ${PR.fontSize})`}function $R(e=3){if(!VR.includes(e))return HR(e);return PR[`fontSizeH${e}`]}var UR={name:"50zrmy",styles:"text-transform:uppercase"};function WR(e){const{adjustLineHeightForInnerControls:t,align:n,children:r,className:o,color:i,ellipsizeMode:a,isDestructive:s=!1,display:l,highlightEscape:c=!1,highlightCaseSensitive:u=!1,highlightWords:d,highlightSanitize:f,isBlock:p=!1,letterSpacing:m,lineHeight:g,optimizeReadabilityFor:v,size:b,truncate:y=!1,upperCase:k=!1,variant:w,weight:_=PR.fontWeight,...E}=Vh(e,"Text");let x=r;const S=Array.isArray(d),C="caption"===b;if(S){if("string"!=typeof r)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");x=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:a,highlightClassName:s="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:f="",unhighlightStyle:p}){if(!i)return null;if("string"!=typeof i)return i;const m=i,h=(0,DR.findAll)({autoEscape:r,caseSensitive:o,findChunks:a,sanitize:u,searchWords:d,textToHighlight:m}),g=c;let v,b=-1,y="";const k=h.map(((r,i)=>{const a=m.substr(r.start,r.end-r.start);if(r.highlight){let r;b++,r="object"==typeof s?o?s[a]:(s=zR(s))[a.toLowerCase()]:s;const c=b===+t;y=`${r} ${c?e:""}`,v=!0===c&&null!==n?Object.assign({},l,n):l;const u={children:a,className:y,key:i,style:v};return"string"!=typeof g&&(u.highlightIndex=b),(0,Sr.createElement)(g,u)}return(0,Sr.createElement)("span",{children:a,className:f,key:i,style:p})}));return k}({autoEscape:c,children:r,caseSensitive:u,searchWords:d,sanitize:f})}const I=jh(),T=(0,Sr.useMemo)((()=>{const e={},r=function(e,t){if(t)return t;if(!e)return;let n=`calc(${PR.controlHeight} + ${KM(2)})`;switch(e){case"large":n=`calc(${PR.controlHeightLarge} + ${KM(2)})`;break;case"small":n=`calc(${PR.controlHeightSmall} + ${KM(2)})`;break;case"xSmall":n=`calc(${PR.controlHeightXSmall} + ${KM(2)})`}return n}(t,g);if(e.Base=SM({color:i,display:l,fontSize:HR(b),fontWeight:_,lineHeight:r,letterSpacing:m,textAlign:n},"",""),e.upperCase=UR,e.optimalTextColor=null,v){const t="dark"===NM(v);e.optimalTextColor=SM(t?{color:DM.gray[900]}:{color:DM.white},"","")}return I(NR,e.Base,e.optimalTextColor,s&&MR,!!S&&BR,p&&OR,C&&RR,w&&h[w],k&&e.upperCase,o)}),[t,n,o,i,I,l,p,C,s,S,m,g,v,b,k,w,_]);let P;!0===y&&(P="auto"),!1===y&&(P="none");const N=xR({...E,className:T,children:r,ellipsizeMode:a||P});return!y&&Array.isArray(r)&&(x=Sr.Children.map(r,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return Kh(e,["Link"])?(0,Sr.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...N,children:y?N.children:x}}const KR=Hh((function(e,t){const n=WR(e);return(0,Sr.createElement)(og,{as:"span",...n,ref:t})}),"Text");const GR={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var qR={name:"1739oy8",styles:"z-index:1"};const YR=({isFocused:e})=>e?qR:"",XR=ng(mR,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",YR,";");var ZR={name:"1d3w5wq",styles:"width:100%"};const QR=ng("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>SM({backgroundColor:e?DM.ui.backgroundDisabled:DM.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":SM("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):ZR),";"),JR=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:KM(4),paddingRight:KM(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:KM(2),paddingRight:KM(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:KM(4),paddingRight:KM(4)}};return t||(n.default={height:30,lineHeight:1,minHeight:30,paddingLeft:KM(2),paddingRight:KM(2)}),n[e]||n.default},eB=ng("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",DM.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=SM("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=SM("&:active{cursor:",t,";}","")),SM(n," ",r,";","")})," ",(({disabled:e})=>e?SM({color:DM.ui.textDisabled},"",""):"")," ",(({inputSize:e})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"},n=t[e]||t.default;return n?SM("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>SM(JR(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>SM({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),tB=ng(KR,{target:"em5sgkm4"})("&&&{",GR,";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;}"),nB=e=>(0,Sr.createElement)(tB,{...e,as:"label"}),rB=ng(gR,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),oB=ng("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isFocused:t})=>{let n,r,o,i=t?DM.ui.borderFocus:DM.ui.border;return t&&(n=PR.controlBoxShadowFocus,r="2px solid transparent",o="-2px"),e&&(i=DM.ui.borderDisabled),SM({boxShadow:n,borderColor:i,borderStyle:"solid",borderWidth:1,outline:r,outlineOffset:o},"","")})," ",UM({paddingLeft:2}),";}"),iB=ng("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),aB=ng("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const sB=(0,Sr.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,Sr.createElement)(oB,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})})),lB=sB;function cB({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,Sr.createElement)(ig,{as:"label",htmlFor:n},e):(0,Sr.createElement)(rB,null,(0,Sr.createElement)(nB,{htmlFor:n,...r},e)):null}function uB(e,t,n="6.3"){const{__next36pxDefaultSize:r,__next40pxDefaultSize:o,...i}=e;return void 0!==r&&on("`__next36pxDefaultSize` prop in "+t,{alternative:"`__next40pxDefaultSize`",since:n}),{...i,__next40pxDefaultSize:null!=o?o:r}}function dB(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function fB(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:a=!1,hideLabelFromVision:s=!1,labelPosition:l,id:c,isFocused:u=!1,label:d,prefix:f,size:p="default",suffix:m,...h}=uB(e,"wp.components.InputBase","6.4"),g=function(e){const t=Wl(fB);return e||`input-base-control-${t}`}(c),v=s||!d,{paddingLeft:b,paddingRight:y}=JR({inputSize:p,__next40pxDefaultSize:n}),k=(0,Sr.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:b},InputControlSuffixWrapper:{paddingRight:y}})),[b,y]);return(0,Sr.createElement)(XR,{...h,...dB(l),className:i,gap:2,isFocused:u,labelPosition:l,ref:t},(0,Sr.createElement)(cB,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:l,htmlFor:g},d),(0,Sr.createElement)(QR,{__unstableInputWidth:r,className:"components-input-control__container",disabled:a,hideLabel:v,labelPosition:l},(0,Sr.createElement)(sm,{value:k},f&&(0,Sr.createElement)(iB,{className:"components-input-control__prefix"},f),o,m&&(0,Sr.createElement)(aB,{className:"components-input-control__suffix"},m)),(0,Sr.createElement)(lB,{disabled:a,isFocused:u})))}const pB=(0,Sr.forwardRef)(fB),mB=e=>e.__nextUnconstrainedWidth?"":SM(QR,"{min-width:130px;}",""),hB=ng(pB,{target:"eswuck60"})(mB,";"),gB={"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 vB(e){var t;return null!==(t=gB[e])&&void 0!==t?t:""}const bB={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const yB=ng("div",{target:"ej5x27r4"})("font-family:",vB("default.fontFamily"),";font-size:",vB("default.fontSize"),";",bB,";"),kB=ng("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&SM("margin-bottom:",KM(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),wB=SM(GR,";display:inline-block;margin-bottom:",KM(2),";padding:0;",""),_B=ng("label",{target:"ej5x27r2"})(wB,";");var EB={name:"11yad0w",styles:"margin-bottom:revert"};const xB=ng("p",{target:"ej5x27r1"})("margin-top:",KM(2),";margin-bottom:0;font-size:",vB("helpText.fontSize"),";font-style:normal;color:",DM.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&EB),";"),SB=ng("span",{target:"ej5x27r0"})(wB,";"),CB=e=>e?.name,IB=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case _M.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case _M.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function TB(e){const{__next40pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:r,hideLabelFromVision:o,label:i,describedBy:a,options:s,onChange:l,size:c="default",value:u,onMouseOver:d,onMouseOut:f,onFocus:p,onBlur:m,__experimentalShowSelectedHint:h=!1}=uB(e,"wp.components.CustomSelectControl","6.4"),{getLabelProps:g,getToggleButtonProps:v,getMenuProps:b,getItemProps:y,isOpen:k,highlightedIndex:w,selectedItem:_}=_M({initialSelectedItem:s[0],items:s,itemToString:CB,onSelectedItemChange:l,...null!=u?{selectedItem:u}:void 0,stateReducer:IB}),[E,x]=(0,Sr.useState)(!1);n||on("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 S=b({className:"components-custom-select-control__menu","aria-hidden":!k}),C=(0,Sr.useCallback)((e=>{e.stopPropagation(),S?.onKeyDown?.(e)}),[S]);return S["aria-activedescendant"]?.startsWith("downshift-null")&&delete S["aria-activedescendant"],(0,Sr.createElement)("div",{className:Vl()("components-custom-select-control",r)},o?(0,Sr.createElement)(ig,{as:"label",...g()},i):(0,Sr.createElement)(_B,{...g({className:"components-custom-select-control__label"})},i),(0,Sr.createElement)(hB,{__next40pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:k||E,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:c,suffix:(0,Sr.createElement)(tR,null)},(0,Sr.createElement)(ZM,{onMouseOver:d,onMouseOut:f,as:"button",onFocus:function(e){x(!0),p?.(e)},onBlur:function(e){x(!1),m?.(e)},selectSize:c,__next40pxDefaultSize:t,...v({"aria-label":i,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:a||(_?Nn(Hn("Currently selected: %s"),_.name):Hn("No selection"))})},CB(_),h&&_.__experimentalHint&&(0,Sr.createElement)("span",{className:"components-custom-select-control__hint"},_.__experimentalHint))),(0,Sr.createElement)("ul",{...S,onKeyDown:C},k&&s.map(((e,n)=>(0,Sr.createElement)("li",{...y({item:e,index:n,key:e.key,className:Vl()(e.className,"components-custom-select-control__item",{"is-highlighted":n===w,"has-hint":!!e.__experimentalHint,"is-next-40px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,Sr.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===_&&(0,Sr.createElement)(EM,{icon:xM,className:"components-custom-select-control__item-icon"}))))))}function PB(e){return(0,Sr.createElement)(TB,{...e,__experimentalShowSelectedHint:!1})}const NB=CM({"0%":{left:"-50%"},"100%":{left:"100%"}}),OB=ng("div",{target:"e15u147w2"})("position:relative;overflow:hidden;width:100%;max-width:160px;height:",PR.borderWidthFocus,";background-color:var(\n\t\t--wp-components-color-gray-300,\n\t\t",DM.gray[300],"\n\t);border-radius:",PR.radiusBlockUi,";"),AB=ng("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",PR.radiusBlockUi,";background-color:",DM.theme.accent,";",(({isIndeterminate:e,value:t})=>SM(e?{animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:NB,width:"50%"}:{width:`${t}%`,transition:"width 0.4s ease-in-out"},"","")),";"),MB=ng("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const RB=(0,Sr.forwardRef)((function(e,t){const{className:n,value:r,...o}=e,i=!Number.isFinite(r);return(0,Sr.createElement)(OB,{className:n},(0,Sr.createElement)(AB,{isIndeterminate:i,value:r}),(0,Sr.createElement)(MB,{max:100,value:r,"aria-label":Hn("Loading …"),ref:t,...o}))}));function BB(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function LB(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function DB(...e){return(0,Sr.useCallback)(LB(...e),e)}function zB(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,Sr.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,Sr.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,Sr.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=(0,Sr.useMemo)((()=>a),Object.values(a));return(0,Sr.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=(0,Sr.useContext)(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},FB(r,...t)]}function FB(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,Sr.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function jB(e){const t=(0,Sr.useRef)(e);return(0,Sr.useEffect)((()=>{t.current=e})),(0,Sr.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function VB({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,Sr.useState)(e),[r]=n,o=(0,Sr.useRef)(r),i=jB(t);return(0,Sr.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=jB(n);return[a,(0,Sr.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const HB=(0,Sr.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=Sr.Children.toArray(n),i=o.find(WB);if(i){const e=i.props.children,n=o.map((t=>t===i?Sr.Children.count(e)>1?Sr.Children.only(null):(0,Sr.isValidElement)(e)?e.props.children:null:t));return(0,Sr.createElement)($B,qh({},r,{ref:t}),(0,Sr.isValidElement)(e)?(0,Sr.cloneElement)(e,void 0,n):null)}return(0,Sr.createElement)($B,qh({},r,{ref:t}),n)}));HB.displayName="Slot";const $B=(0,Sr.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,Sr.isValidElement)(n)?(0,Sr.cloneElement)(n,{...KB(r,n.props),ref:LB(t,n.ref)}):Sr.Children.count(n)>1?Sr.Children.only(null):null}));$B.displayName="SlotClone";const UB=({children:e})=>(0,Sr.createElement)(Sr.Fragment,null,e);function WB(e){return(0,Sr.isValidElement)(e)&&e.type===UB}function KB(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const GB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,Sr.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?HB:t;return(0,Sr.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,Sr.createElement)(i,qh({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function qB(e,t){e&&(0,cf.flushSync)((()=>e.dispatchEvent(t)))}function YB(e){const t=e+"CollectionProvider",[n,r]=zB(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=Sr.useRef(null),i=Sr.useRef(new Map).current;return Sr.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},s=e+"CollectionSlot",l=Sr.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=DB(t,i(s,n).collectionRef);return Sr.createElement(HB,{ref:o},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=Sr.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=Sr.useRef(null),s=DB(t,a),l=i(c,n);return Sr.useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),Sr.createElement(HB,{[u]:"",ref:s},r)}));return[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),r=Sr.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const XB=(0,Sr.createContext)(void 0);function ZB(e){const t=(0,Sr.useContext)(XB);return e||t||"ltr"}const QB="dismissableLayer.update",JB="dismissableLayer.pointerDownOutside",eL="dismissableLayer.focusOutside";let tL;const nL=(0,Sr.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rL=(0,Sr.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=(0,Sr.useContext)(nL),[d,f]=(0,Sr.useState)(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,Sr.useState)({}),h=DB(t,(e=>f(e))),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),y=d?g.indexOf(d):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,w=y>=b,_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=jB(e),r=(0,Sr.useRef)(!1),o=(0,Sr.useRef)((()=>{}));return(0,Sr.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){iL(JB,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));w&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),E=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=jB(e),r=(0,Sr.useRef)(!1);return(0,Sr.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){iL(eL,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=jB(e);(0,Sr.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{y===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),(0,Sr.useEffect)((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(tL=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),oL(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=tL)}}),[d,p,r,u]),(0,Sr.useEffect)((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),oL())}),[d,u]),(0,Sr.useEffect)((()=>{const e=()=>m({});return document.addEventListener(QB,e),()=>document.removeEventListener(QB,e)}),[]),(0,Sr.createElement)(GB.div,qh({},c,{ref:h,style:{pointerEvents:k?w?"auto":"none":void 0,...e.style},onFocusCapture:BB(e.onFocusCapture,E.onFocusCapture),onBlurCapture:BB(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:BB(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function oL(){const e=new CustomEvent(QB);document.dispatchEvent(e)}function iL(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qB(o,i):o.dispatchEvent(i)}let aL=0;function sL(){(0,Sr.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:lL()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:lL()),aL++,()=>{1===aL&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),aL--}}),[])}function lL(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const cL="focusScope.autoFocusOnMount",uL="focusScope.autoFocusOnUnmount",dL={bubbles:!1,cancelable:!0},fL=(0,Sr.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=(0,Sr.useState)(null),c=jB(o),u=jB(i),d=(0,Sr.useRef)(null),f=DB(t,(e=>l(e))),p=(0,Sr.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Sr.useEffect)((()=>{if(r){function e(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:gL(d.current,{select:!0})}function t(e){!p.paused&&s&&(s.contains(e.relatedTarget)||gL(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),(0,Sr.useEffect)((()=>{if(s){vL.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(cL,dL);s.addEventListener(cL,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gL(r,{select:t}),document.activeElement!==n)return}((e=pL(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&gL(s))}return()=>{s.removeEventListener(cL,c),setTimeout((()=>{const e=new CustomEvent(uL,dL);s.addEventListener(uL,u),s.dispatchEvent(e),e.defaultPrevented||gL(null!=t?t:document.body,{select:!0}),s.removeEventListener(uL,u),vL.remove(p)}),0)}}var e}),[s,c,u,p]);const m=(0,Sr.useCallback)((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=pL(e),n=mL(t,e),r=mL(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&gL(i,{select:!0})):(e.preventDefault(),n&&gL(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return(0,Sr.createElement)(GB.div,qh({tabIndex:-1},a,{ref:f,onKeyDown:m}))}));function pL(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mL(e,t){for(const n of e)if(!hL(n,{upTo:t}))return n}function hL(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function gL(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const vL=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=bL(e,t),e.unshift(t)},remove(t){var n;e=bL(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function bL(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const yL=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?Sr.useLayoutEffect:()=>{},kL=Cr["useId".toString()]||(()=>{});let wL=0;function _L(e){const[t,n]=Sr.useState(kL());return yL((()=>{e||n((e=>null!=e?e:String(wL++)))}),[e]),e||(t?`radix-${t}`:"")}function EL(e){return e.split("-")[0]}function xL(e){return e.split("-")[1]}function SL(e){return["top","bottom"].includes(EL(e))?"x":"y"}function CL(e){return"y"===e?"height":"width"}function IL(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=SL(t),l=CL(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(EL(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(xL(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function TL(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 PL(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function NL(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=TL(p),h=s[f?"floating"===d?"reference":"floating":d],g=PL(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=PL(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:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const OL=Math.min,AL=Math.max;function ML(e,t,n){return AL(e,OL(t,n))}const RL=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=TL(r),u={x:o,y:i},d=SL(a),f=xL(a),p=CL(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=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 k=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===k&&(k=s.floating[p]);const w=v/2-b/2,_=c[h],E=k-m[p]-c[g],x=k/2-m[p]/2+w,S=ML(_,x,E),C=("start"===f?c[h]:c[g])>0&&x!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(C?x<_?_-x:E-x:0),data:{[d]:S,centerOffset:x-S}}}}),BL={left:"right",right:"left",bottom:"top",top:"bottom"};function LL(e){return e.replace(/left|right|bottom|top/g,(e=>BL[e]))}function DL(e,t,n){void 0===n&&(n=!1);const r=xL(e),o=SL(e),i=CL(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=LL(a)),{main:a,cross:LL(a)}}const zL={start:"end",end:"start"};function FL(e){return e.replace(/start|end/g,(e=>zL[e]))}const jL=["top","right","bottom","left"],VL=(jL.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=EL(r),g=d||(h!==a&&p?function(e){const t=LL(e);return[FL(e),t,FL(t)]}(a):[LL(a)]),v=[a,...g],b=await NL(t,m),y=[];let k=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=DL(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(k=[...k,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,_;const e=(null!=(w=null==(_=o.flip)?void 0:_.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var E;const e=null==(E=k.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{}}}});function HL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $L(e){return jL.some((t=>e[t]>=0))}const UL=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=HL(await NL(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:$L(t)}}}case"escaped":{const t=HL(await NL(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:$L(t)}}}default:return{}}}}},WL=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=EL(n),s=xL(n),l="x"===SL(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 KL(e){return"x"===e?"y":"x"}const GL=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 NL(t,l),d=SL(EL(o)),f=KL(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=ML(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=ML(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}}}}},qL=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=SL(o),f=KL(d);let p=u[d],m=u[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b,y,k;const e="y"===d?"width":"height",t=["top","left"].includes(EL(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(b=a.offset)?void 0:b[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(y=null==(k=a.offset)?void 0:k[f])?y:0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},YL=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 NL(t,s),c=EL(n),u=xL(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=AL(l.left,0),m=AL(l.right,0),h=AL(l.top,0),g=AL(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:AL(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:AL(l.left,l.right)):l[f])},b=await o.getDimensions(i.floating);null==a||a({...t,...v});const y=await o.getDimensions(i.floating);return b.width!==y.width||b.height!==y.height?{reset:{rects:!0}}:{}}}};function XL(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ZL(e){if(null==e)return window;if(!XL(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function QL(e){return ZL(e).getComputedStyle(e)}function JL(e){return XL(e)?"":e?(e.nodeName||"").toLowerCase():""}function eD(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function tD(e){return e instanceof ZL(e).HTMLElement}function nD(e){return e instanceof ZL(e).Element}function rD(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ZL(e).ShadowRoot||e instanceof ShadowRoot)}function oD(e){const{overflow:t,overflowX:n,overflowY:r}=QL(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function iD(e){return["table","td","th"].includes(JL(e))}function aD(e){const t=/firefox/i.test(eD()),n=QL(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function sD(){return!/^((?!chrome|android).)*safari/i.test(eD())}const lD=Math.min,cD=Math.max,uD=Math.round;function dD(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&&tD(e)&&(l=e.offsetWidth>0&&uD(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&uD(s.height)/e.offsetHeight||1);const u=nD(e)?ZL(e):window,d=!sD()&&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 fD(e){return(t=e,(t instanceof ZL(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function pD(e){return nD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function mD(e){return dD(fD(e)).left+pD(e).scrollLeft}function hD(e,t,n){const r=tD(t),o=fD(t),i=dD(e,r&&function(e){const t=dD(e);return uD(t.width)!==e.offsetWidth||uD(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"!==JL(t)||oD(o))&&(a=pD(t)),tD(t)){const e=dD(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=mD(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function gD(e){return"html"===JL(e)?e:e.assignedSlot||e.parentNode||(rD(e)?e.host:null)||fD(e)}function vD(e){return tD(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function bD(e){const t=ZL(e);let n=vD(e);for(;n&&iD(n)&&"static"===getComputedStyle(n).position;)n=vD(n);return n&&("html"===JL(n)||"body"===JL(n)&&"static"===getComputedStyle(n).position&&!aD(n))?t:n||function(e){let t=gD(e);for(rD(t)&&(t=t.host);tD(t)&&!["html","body"].includes(JL(t));){if(aD(t))return t;t=t.parentNode}return null}(e)||t}function yD(e){if(tD(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=dD(e);return{width:t.width,height:t.height}}function kD(e){const t=gD(e);return["html","body","#document"].includes(JL(t))?e.ownerDocument.body:tD(t)&&oD(t)?t:kD(t)}function wD(e,t){var n;void 0===t&&(t=[]);const r=kD(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ZL(r),a=o?[i].concat(i.visualViewport||[],oD(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(wD(a))}function _D(e,t,n){return"viewport"===t?PL(function(e,t){const n=ZL(e),r=fD(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=sD();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):nD(t)?function(e,t){const n=dD(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):PL(function(e){var t;const n=fD(e),r=pD(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=cD(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cD(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+mD(e);const l=-r.scrollTop;return"rtl"===QL(o||n).direction&&(s+=cD(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(fD(e)))}function ED(e){const t=wD(e),n=["absolute","fixed"].includes(QL(e).position)&&tD(e)?bD(e):e;return nD(n)?t.filter((e=>nD(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&rD(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==JL(e))):[]}const xD={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ED(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=_D(t,n,o);return e.top=cD(r.top,e.top),e.right=lD(r.right,e.right),e.bottom=lD(r.bottom,e.bottom),e.left=cD(r.left,e.left),e}),_D(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=tD(n),i=fD(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==JL(n)||oD(i))&&(a=pD(n)),tD(n))){const e=dD(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:nD,getDimensions:yD,getOffsetParent:bD,getDocumentElement:fD,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:hD(t,bD(n),r),floating:{...yD(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===QL(e).direction};function SD(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=i&&!s,u=l||c?[...nD(e)?wD(e):[],...wD(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),nD(e)&&!s&&f.observe(e),f.observe(t)}let p=s?dD(e):null;return s&&function t(){const r=dD(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const CD=(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}=IL(l,r,s),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:g,y:v,data:b,reset:y}=await h({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,u=null!=v?v:u,f={...f,[m]:{...f[m],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(l=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:c,y:u}=IL(l,d,s))),n=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:xD,...n});var ID="undefined"!=typeof document?Sr.useLayoutEffect:Sr.useEffect;function TD(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!TD(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!TD(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function PD(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=Sr.useRef(null),a=Sr.useRef(null),s=function(e){const t=Sr.useRef(e);return ID((()=>{t.current=e})),t}(o),l=Sr.useRef(null),[c,u]=Sr.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=Sr.useState(t);TD(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=Sr.useCallback((()=>{i.current&&a.current&&CD(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&cf.flushSync((()=>{u(e)}))}))}),[d,n,r]);ID((()=>{m.current&&p()}),[p]);const m=Sr.useRef(!1);ID((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=Sr.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),g=Sr.useCallback((e=>{i.current=e,h()}),[h]),v=Sr.useCallback((e=>{a.current=e,h()}),[h]),b=Sr.useMemo((()=>({reference:i,floating:a})),[]);return Sr.useMemo((()=>({...c,update:p,refs:b,reference:g,floating:v})),[c,p,b,g,v])}const ND=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?RL({element:t.current,padding:n}).fn(e):{}:t?RL({element:t,padding:n}).fn(e):{};var r}}};const OD="Popper",[AD,MD]=zB(OD),[RD,BD]=AD(OD),LD=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,Sr.useState)(null);return(0,Sr.createElement)(RD,{scope:t,anchor:r,onAnchorChange:o},n)},DD="PopperAnchor",zD=(0,Sr.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=BD(DD,n),a=(0,Sr.useRef)(null),s=DB(t,a);return(0,Sr.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,Sr.createElement)(GB.div,qh({},o,{ref:s}))})),FD="PopperContent",[jD,VD]=AD(FD),[HD,$D]=AD(FD,{hasParent:!1,positionUpdateFns:new Set}),UD=(0,Sr.forwardRef)(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:b="partial",hideWhenDetached:y=!1,avoidCollisions:k=!0,onPlaced:w,..._}=e,E=BD(FD,u),[x,S]=(0,Sr.useState)(null),C=DB(t,(e=>S(e))),[I,T]=(0,Sr.useState)(null),P=function(e){const[t,n]=(0,Sr.useState)(void 0);return yL((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(I),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,O=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,A=d+("center"!==p?"-"+p:""),M="number"==typeof v?v:{top:0,right:0,bottom:0,left:0,...v},R=Array.isArray(g)?g:[g],B=R.length>0,L={padding:M,boundary:R.filter(KD),altBoundary:B},{reference:D,floating:z,strategy:F,x:j,y:V,placement:H,middlewareData:$,update:U}=PD({strategy:"fixed",placement:A,whileElementsMounted:SD,middleware:[GD(),WL({mainAxis:f+O,alignmentAxis:m}),k?GL({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?qL():void 0,...L}):void 0,I?ND({element:I,padding:h}):void 0,k?VL({...L}):void 0,YL({...L,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),qD({arrowWidth:N,arrowHeight:O}),y?UL({strategy:"referenceHidden"}):void 0].filter(WD)});yL((()=>{D(E.anchor)}),[D,E.anchor]);const W=null!==j&&null!==V,[K,G]=YD(H),q=jB(w);yL((()=>{W&&(null==q||q())}),[W,q]);const Y=null===(o=$.arrow)||void 0===o?void 0:o.x,X=null===(i=$.arrow)||void 0===i?void 0:i.y,Z=0!==(null===(a=$.arrow)||void 0===a?void 0:a.centerOffset),[Q,J]=(0,Sr.useState)();yL((()=>{x&&J(window.getComputedStyle(x).zIndex)}),[x]);const{hasParent:ee,positionUpdateFns:te}=$D(FD,u),ne=!ee;(0,Sr.useLayoutEffect)((()=>{if(!ne)return te.add(U),()=>{te.delete(U)}}),[ne,te,U]),yL((()=>{ne&&W&&Array.from(te).reverse().forEach((e=>requestAnimationFrame(e)))}),[ne,W,te]);const re={"data-side":K,"data-align":G,..._,ref:C,style:{..._.style,animation:W?void 0:"none",opacity:null!==(s=$.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,Sr.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:F,left:0,top:0,transform:W?`translate3d(${Math.round(j)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=$.transformOrigin)||void 0===l?void 0:l.x,null===(c=$.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},(0,Sr.createElement)(jD,{scope:u,placedSide:K,onArrowChange:T,arrowX:Y,arrowY:X,shouldHideArrow:Z},ne?(0,Sr.createElement)(HD,{scope:u,hasParent:!0,positionUpdateFns:te},(0,Sr.createElement)(GB.div,re)):(0,Sr.createElement)(GB.div,re)))}));function WD(e){return void 0!==e}function KD(e){return null!==e}const GD=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),qD=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=YD(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y}}}});function YD(e){const[t,n="center"]=e.split("-");return[t,n]}const XD=LD,ZD=zD,QD=UD,JD=(0,Sr.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?cf.createPortal((0,Sr.createElement)(GB.div,qh({},o,{ref:t})),r):null}));const ez=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,Sr.useState)(),r=(0,Sr.useRef)({}),o=(0,Sr.useRef)(e),i=(0,Sr.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return(0,Sr.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,Sr.useEffect)((()=>{const e=tz(r.current);i.current="mounted"===s?e:"none"}),[s]),yL((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=tz(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),yL((()=>{if(t){const e=e=>{const n=tz(r.current).includes(e.animationName);e.target===t&&n&&(0,cf.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=tz(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,Sr.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):Sr.Children.only(n),i=DB(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,Sr.cloneElement)(o,{ref:i}):null};function tz(e){return(null==e?void 0:e.animationName)||"none"}ez.displayName="Presence";const nz="rovingFocusGroup.onEntryFocus",rz={bubbles:!1,cancelable:!0},oz="RovingFocusGroup",[iz,az,sz]=YB(oz),[lz,cz]=zB(oz,[sz]),[uz,dz]=lz(oz),fz=(0,Sr.forwardRef)(((e,t)=>(0,Sr.createElement)(iz.Provider,{scope:e.__scopeRovingFocusGroup},(0,Sr.createElement)(iz.Slot,{scope:e.__scopeRovingFocusGroup},(0,Sr.createElement)(pz,qh({},e,{ref:t})))))),pz=(0,Sr.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=(0,Sr.useRef)(null),f=DB(t,d),p=ZB(i),[m=null,h]=VB({prop:a,defaultProp:s,onChange:l}),[g,v]=(0,Sr.useState)(!1),b=jB(c),y=az(n),k=(0,Sr.useRef)(!1),[w,_]=(0,Sr.useState)(0);return(0,Sr.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(nz,b),()=>e.removeEventListener(nz,b)}),[b]),(0,Sr.createElement)(uz,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:(0,Sr.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,Sr.useCallback)((()=>v(!0)),[]),onFocusableItemAdd:(0,Sr.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,Sr.useCallback)((()=>_((e=>e-1))),[])},(0,Sr.createElement)(GB.div,qh({tabIndex:g||0===w?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:BB(e.onMouseDown,(()=>{k.current=!0})),onFocus:BB(e.onFocus,(e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(nz,rz);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=y().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===m)),r=[t,n,...e].filter(Boolean).map((e=>e.ref.current));vz(r)}}k.current=!1})),onBlur:BB(e.onBlur,(()=>v(!1)))})))})),mz="RovingFocusGroupItem",hz=(0,Sr.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=_L(),l=i||s,c=dz(mz,n),u=c.currentTabStopId===l,d=az(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return(0,Sr.useEffect)((()=>{if(r)return f(),()=>p()}),[r,f,p]),(0,Sr.createElement)(iz.ItemSlot,{scope:n,id:l,focusable:r,active:o},(0,Sr.createElement)(GB.span,qh({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:BB(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:BB(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:BB(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:gz[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();const o=d().filter((e=>e.focusable));let i=o.map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=c.loop?(r=o+1,(n=i).map(((e,t)=>n[(r+t)%n.length]))):i.slice(o+1)}setTimeout((()=>vz(i)))}var n,r}))})))})),gz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vz(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const bz=fz,yz=hz;var kz=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},wz=new WeakMap,_z=new WeakMap,Ez={},xz=0,Sz=function(e){return e&&(e.host||Sz(e.parentNode))},Cz=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Sz(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Ez[n]||(Ez[n]=new WeakMap);var i=Ez[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(wz.get(e)||0)+1,c=(i.get(e)||0)+1;wz.set(e,l),i.set(e,c),a.push(e),1===l&&o&&_z.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),xz++,function(){a.forEach((function(e){var t=wz.get(e)-1,o=i.get(e)-1;wz.set(e,t),i.set(e,o),t||(_z.has(e)||e.removeAttribute(r),_z.delete(e)),o||e.removeAttribute(n)})),--xz||(wz=new WeakMap,wz=new WeakMap,_z=new WeakMap,Ez={})}},Iz=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||kz(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Cz(r,o,n,"aria-hidden")):function(){return null}},Tz="right-scroll-bar-position",Pz="width-before-scroll-bar";function Nz(e,t){return function(e,t){var n=(0,Sr.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function Oz(e){return e}function Az(e,t){void 0===t&&(t=Oz);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var Mz=function(e){void 0===e&&(e={});var t=Az(null);return t.options=mn({async:!0,ssr:!1},e),t}(),Rz=function(){},Bz=Sr.forwardRef((function(e,t){var n=Sr.useRef(null),r=Sr.useState({onScrollCapture:Rz,onWheelCapture:Rz,onTouchMoveCapture:Rz}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,v=void 0===g?"div":g,b=hn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=f,k=Nz([n,t]),w=mn(mn({},b),o);return Sr.createElement(Sr.Fragment,null,u&&Sr.createElement(y,{sideCar:Mz,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?Sr.cloneElement(Sr.Children.only(s),mn(mn({},w),{ref:k})):Sr.createElement(v,mn({},w,{className:l,ref:k}),s))}));Bz.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bz.classNames={fullWidth:Pz,zeroRight:Tz};var Lz,Dz=function(e){var t=e.sideCar,n=hn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Sr.createElement(r,mn({},n))};Dz.isSideCarExport=!0;function zz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Lz||o.nc;return t&&e.setAttribute("nonce",t),e}var Fz=function(){var e=0,t=null;return{add:function(n){0==e&&(t=zz())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jz=function(){var e=function(){var e=Fz();return function(t,n){Sr.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Vz={left:0,top:0,right:0,gap:0},Hz=function(e){return parseInt(e||"",10)||0},$z=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Vz;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Hz(n),Hz(r),Hz(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Uz=jz(),Wz=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Tz," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Pz," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Tz," .").concat(Tz," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Pz," .").concat(Pz," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Kz=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=Sr.useMemo((function(){return $z(o)}),[o]);return Sr.createElement(Uz,{styles:Wz(i,!t,o,n?"":"!important")})},Gz=!1;if("undefined"!=typeof window)try{var qz=Object.defineProperty({},"passive",{get:function(){return Gz=!0,!0}});window.addEventListener("test",qz,qz),window.removeEventListener("test",qz,qz)}catch(e){Gz=!1}var Yz=!!Gz&&{passive:!1},Xz=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Zz=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Qz(e,n)){var r=Jz(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Qz=function(e,t){return"v"===e?function(e){return Xz(e,"overflowY")}(t):function(e){return Xz(e,"overflowX")}(t)},Jz=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},eF=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tF=function(e){return[e.deltaX,e.deltaY]},nF=function(e){return e&&"current"in e?e.current:e},rF=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},oF=0,iF=[];const aF=(sF=function(e){var t=Sr.useRef([]),n=Sr.useRef([0,0]),r=Sr.useRef(),o=Sr.useState(oF++)[0],i=Sr.useState((function(){return jz()}))[0],a=Sr.useRef(e);Sr.useEffect((function(){a.current=e}),[e]),Sr.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=gn([e.lockRef.current],(e.shards||[]).map(nF),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=Sr.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=eF(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Zz(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Zz(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=Jz(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&Qz(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),l=Sr.useCallback((function(e){var n=e;if(iF.length&&iF[iF.length-1]===i){var r="deltaY"in n?tF(n):eF(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(nF).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=Sr.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=Sr.useCallback((function(e){n.current=eF(e),r.current=void 0}),[]),d=Sr.useCallback((function(t){c(t.type,tF(t),t.target,s(t,e.lockRef.current))}),[]),f=Sr.useCallback((function(t){c(t.type,eF(t),t.target,s(t,e.lockRef.current))}),[]);Sr.useEffect((function(){return iF.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Yz),document.addEventListener("touchmove",l,Yz),document.addEventListener("touchstart",u,Yz),function(){iF=iF.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,Yz),document.removeEventListener("touchmove",l,Yz),document.removeEventListener("touchstart",u,Yz)}}),[]);var p=e.removeScrollBar,m=e.inert;return Sr.createElement(Sr.Fragment,null,m?Sr.createElement(i,{styles:rF(o)}):null,p?Sr.createElement(Kz,{gapMode:"margin"}):null)},Mz.useMedium(sF),Dz);var sF,lF=Sr.forwardRef((function(e,t){return Sr.createElement(Bz,mn({},e,{ref:t,sideCar:aF}))}));lF.classNames=Bz.classNames;const cF=lF,uF=["Enter"," "],dF=["ArrowUp","PageDown","End"],fF=["ArrowDown","PageUp","Home",...dF],pF={ltr:[...uF,"ArrowRight"],rtl:[...uF,"ArrowLeft"]},mF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hF="Menu",[gF,vF,bF]=YB(hF),[yF,kF]=zB(hF,[bF,MD,cz]),wF=MD(),_F=cz(),[EF,xF]=yF(hF),[SF,CF]=yF(hF),IF=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=wF(t),[l,c]=(0,Sr.useState)(null),u=(0,Sr.useRef)(!1),d=jB(i),f=ZB(o);return(0,Sr.useEffect)((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,Sr.createElement)(XD,s,(0,Sr.createElement)(EF,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},(0,Sr.createElement)(SF,{scope:t,onClose:(0,Sr.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a},r)))},TF=(0,Sr.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=wF(n);return(0,Sr.createElement)(ZD,qh({},o,r,{ref:t}))})),PF="MenuPortal",[NF,OF]=yF(PF,{forceMount:void 0}),AF=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=xF(PF,t);return(0,Sr.createElement)(NF,{scope:t,forceMount:n},(0,Sr.createElement)(ez,{present:n||i.open},(0,Sr.createElement)(JD,{asChild:!0,container:o},r)))},MF="MenuContent",[RF,BF]=yF(MF),LF=(0,Sr.forwardRef)(((e,t)=>{const n=OF(MF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=xF(MF,e.__scopeMenu),a=CF(MF,e.__scopeMenu);return(0,Sr.createElement)(gF.Provider,{scope:e.__scopeMenu},(0,Sr.createElement)(ez,{present:r||i.open},(0,Sr.createElement)(gF.Slot,{scope:e.__scopeMenu},a.modal?(0,Sr.createElement)(DF,qh({},o,{ref:t})):(0,Sr.createElement)(zF,qh({},o,{ref:t})))))})),DF=(0,Sr.forwardRef)(((e,t)=>{const n=xF(MF,e.__scopeMenu),r=(0,Sr.useRef)(null),o=DB(t,r);return(0,Sr.useEffect)((()=>{const e=r.current;if(e)return Iz(e)}),[]),(0,Sr.createElement)(FF,qh({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:BB(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),zF=(0,Sr.forwardRef)(((e,t)=>{const n=xF(MF,e.__scopeMenu);return(0,Sr.createElement)(FF,qh({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),FF=(0,Sr.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=xF(MF,n),v=CF(MF,n),b=wF(n),y=_F(n),k=vF(n),[w,_]=(0,Sr.useState)(null),E=(0,Sr.useRef)(null),x=DB(t,E,g.onContentChange),S=(0,Sr.useRef)(0),C=(0,Sr.useRef)(""),I=(0,Sr.useRef)(0),T=(0,Sr.useRef)(null),P=(0,Sr.useRef)("right"),N=(0,Sr.useRef)(0),O=m?cF:Sr.Fragment,A=m?{as:HB,allowPinchZoom:!0}:void 0,M=e=>{var t,n;const r=C.current+e,o=k().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=o.map((e=>e.textValue)),l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;1===o.length&&(a=a.filter((e=>e!==n)));const c=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}(s,r,a),c=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){C.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};(0,Sr.useEffect)((()=>()=>window.clearTimeout(S.current)),[]),sL();const R=(0,Sr.useCallback)((e=>{var t,n;return P.current===(null===(t=T.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,null===(n=T.current)||void 0===n?void 0:n.area)}),[]);return(0,Sr.createElement)(RF,{scope:n,searchRef:C,onItemEnter:(0,Sr.useCallback)((e=>{R(e)&&e.preventDefault()}),[R]),onItemLeave:(0,Sr.useCallback)((e=>{var t;R(e)||(null===(t=E.current)||void 0===t||t.focus(),_(null))}),[R]),onTriggerLeave:(0,Sr.useCallback)((e=>{R(e)&&e.preventDefault()}),[R]),pointerGraceTimerRef:I,onPointerGraceIntentChange:(0,Sr.useCallback)((e=>{T.current=e}),[])},(0,Sr.createElement)(O,A,(0,Sr.createElement)(fL,{asChild:!0,trapped:o,onMountAutoFocus:BB(i,(e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,Sr.createElement)(rL,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p},(0,Sr.createElement)(bz,qh({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:_,onEntryFocus:BB(l,(e=>{v.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,Sr.createElement)(QD,qh({role:"menu","aria-orientation":"vertical","data-state":fj(g.open),"data-radix-menu-content":"",dir:v.dir},b,h,{ref:x,style:{outline:"none",...h.style},onKeyDown:BB(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&M(e.key));const o=E.current;if(e.target!==o)return;if(!fF.includes(e.key))return;e.preventDefault();const i=k().filter((e=>!e.disabled)),a=i.map((e=>e.ref.current));dF.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:BB(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),C.current="")})),onPointerMove:BB(e.onPointerMove,hj((e=>{const t=e.target,n=N.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>N.current?"right":"left";P.current=t,N.current=e.clientX}})))})))))))})),jF=(0,Sr.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Sr.createElement)(GB.div,qh({role:"group"},r,{ref:t}))})),VF=(0,Sr.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Sr.createElement)(GB.div,qh({},r,{ref:t}))})),HF="MenuItem",$F="menu.itemSelect",UF=(0,Sr.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,Sr.useRef)(null),a=CF(HF,e.__scopeMenu),s=BF(HF,e.__scopeMenu),l=DB(t,i),c=(0,Sr.useRef)(!1);return(0,Sr.createElement)(WF,qh({},o,{ref:l,disabled:n,onClick:BB(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent($F,{bubbles:!0,cancelable:!0});e.addEventListener($F,(e=>null==r?void 0:r(e)),{once:!0}),qB(e,t),t.defaultPrevented?c.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:BB(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:BB(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||uF.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),WF=(0,Sr.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=BF(HF,n),s=_F(n),l=(0,Sr.useRef)(null),c=DB(t,l),[u,d]=(0,Sr.useState)(!1),[f,p]=(0,Sr.useState)("");return(0,Sr.useEffect)((()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,Sr.createElement)(gF.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:f},(0,Sr.createElement)(yz,qh({asChild:!0},s,{focusable:!r}),(0,Sr.createElement)(GB.div,qh({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:BB(e.onPointerMove,hj((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:BB(e.onPointerLeave,hj((e=>a.onItemLeave(e)))),onFocus:BB(e.onFocus,(()=>d(!0))),onBlur:BB(e.onBlur,(()=>d(!1)))}))))})),KF=(0,Sr.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,Sr.createElement)(ej,{scope:e.__scopeMenu,checked:n},(0,Sr.createElement)(UF,qh({role:"menuitemcheckbox","aria-checked":pj(n)?"mixed":n},o,{ref:t,"data-state":mj(n),onSelect:BB(o.onSelect,(()=>null==r?void 0:r(!!pj(n)||!n)),{checkForDefaultPrevented:!1})})))})),GF="MenuRadioGroup",[qF,YF]=yF(GF,{value:void 0,onValueChange:()=>{}}),XF=(0,Sr.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=jB(r);return(0,Sr.createElement)(qF,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,Sr.createElement)(jF,qh({},o,{ref:t})))})),ZF="MenuRadioItem",QF=(0,Sr.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=YF(ZF,e.__scopeMenu),i=n===o.value;return(0,Sr.createElement)(ej,{scope:e.__scopeMenu,checked:i},(0,Sr.createElement)(UF,qh({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":mj(i),onSelect:BB(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),JF="MenuItemIndicator",[ej,tj]=yF(JF,{checked:!1}),nj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=tj(JF,n);return(0,Sr.createElement)(ez,{present:r||pj(i.checked)||!0===i.checked},(0,Sr.createElement)(GB.span,qh({},o,{ref:t,"data-state":mj(i.checked)})))})),rj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Sr.createElement)(GB.div,qh({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),oj="MenuSub",[ij,aj]=yF(oj),sj=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=xF(oj,t),a=wF(t),[s,l]=(0,Sr.useState)(null),[c,u]=(0,Sr.useState)(null),d=jB(o);return(0,Sr.useEffect)((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),(0,Sr.createElement)(XD,a,(0,Sr.createElement)(EF,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u},(0,Sr.createElement)(ij,{scope:t,contentId:_L(),triggerId:_L(),trigger:s,onTriggerChange:l},n)))},lj="MenuSubTrigger",cj=(0,Sr.forwardRef)(((e,t)=>{const n=xF(lj,e.__scopeMenu),r=CF(lj,e.__scopeMenu),o=aj(lj,e.__scopeMenu),i=BF(lj,e.__scopeMenu),a=(0,Sr.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=(0,Sr.useCallback)((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return(0,Sr.useEffect)((()=>u),[u]),(0,Sr.useEffect)((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,Sr.createElement)(TF,qh({asChild:!0},c),(0,Sr.createElement)(WF,qh({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":fj(n.open)},e,{ref:LB(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:BB(e.onPointerMove,hj((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:BB(e.onPointerLeave,hj((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,l=a?-5:5,c=r[a?"left":"right"],u=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:BB(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||pF[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),uj="MenuSubContent",dj=(0,Sr.forwardRef)(((e,t)=>{const n=OF(MF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=xF(MF,e.__scopeMenu),a=CF(MF,e.__scopeMenu),s=aj(uj,e.__scopeMenu),l=(0,Sr.useRef)(null),c=DB(t,l);return(0,Sr.createElement)(gF.Provider,{scope:e.__scopeMenu},(0,Sr.createElement)(ez,{present:r||i.open},(0,Sr.createElement)(gF.Slot,{scope:e.__scopeMenu},(0,Sr.createElement)(FF,qh({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:BB(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:BB(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:BB(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=mF[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function fj(e){return e?"open":"closed"}function pj(e){return"indeterminate"===e}function mj(e){return pj(e)?"indeterminate":e?"checked":"unchecked"}function hj(e){return t=>"mouse"===t.pointerType?e(t):void 0}const gj=IF,vj=TF,bj=AF,yj=LF,kj=jF,wj=VF,_j=UF,Ej=KF,xj=XF,Sj=QF,Cj=nj,Ij=rj,Tj=sj,Pj=cj,Nj=dj,Oj="DropdownMenu",[Aj,Mj]=zB(Oj,[kF]),Rj=kF(),[Bj,Lj]=Aj(Oj),Dj=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=Rj(t),c=(0,Sr.useRef)(null),[u=!1,d]=VB({prop:o,defaultProp:i,onChange:a});return(0,Sr.createElement)(Bj,{scope:t,triggerId:_L(),triggerRef:c,contentId:_L(),open:u,onOpenChange:d,onOpenToggle:(0,Sr.useCallback)((()=>d((e=>!e))),[d]),modal:s},(0,Sr.createElement)(gj,qh({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},zj="DropdownMenuTrigger",Fj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Lj(zj,n),a=Rj(n);return(0,Sr.createElement)(vj,qh({asChild:!0},a),(0,Sr.createElement)(GB.button,qh({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:LB(t,i.triggerRef),onPointerDown:BB(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:BB(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),jj=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Rj(t);return(0,Sr.createElement)(bj,qh({},r,n))},Vj="DropdownMenuContent",Hj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(Vj,n),i=Rj(n),a=(0,Sr.useRef)(!1);return(0,Sr.createElement)(yj,qh({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:BB(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:BB(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),$j=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(kj,qh({},o,r,{ref:t}))})),Uj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(wj,qh({},o,r,{ref:t}))})),Wj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(_j,qh({},o,r,{ref:t}))})),Kj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(Ej,qh({},o,r,{ref:t}))})),Gj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(xj,qh({},o,r,{ref:t}))})),qj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(Sj,qh({},o,r,{ref:t}))})),Yj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(Cj,qh({},o,r,{ref:t}))})),Xj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(Ij,qh({},o,r,{ref:t}))})),Zj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(Pj,qh({},o,r,{ref:t}))})),Qj=(0,Sr.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Rj(n);return(0,Sr.createElement)(Nj,qh({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Jj=Dj,eV=Fj,tV=jj,nV=Hj,rV=$j,oV=Uj,iV=Wj,aV=Kj,sV=Gj,lV=qj,cV=Yj,uV=Xj,dV=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=Rj(t),[s=!1,l]=VB({prop:r,defaultProp:i,onChange:o});return(0,Sr.createElement)(Tj,qh({},a,{open:s,onOpenChange:l}),n)},fV=Zj,pV=Qj,mV=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),hV=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M5 11.25h14v1.5H5z"}));const gV="2px",vV="400ms",bV="cubic-bezier( 0.16, 1, 0.3, 1 )",yV=KM(2),kV=KM(7),wV=KM(2),_V=KM(2.5),EV=DM.ui.borderDisabled,xV=DM.gray[900],SV=`0 0 0 ${PR.borderWidth} ${EV}, ${PR.popoverShadow}`,CV=`0 0 0 ${PR.borderWidth} ${xV}`,IV=CM({"0%":{opacity:0,transform:`translateY(${gV})`},"100%":{opacity:1,transform:"translateY(0)"}}),TV=CM({"0%":{opacity:0,transform:`translateX(-${gV})`},"100%":{opacity:1,transform:"translateX(0)"}}),PV=CM({"0%":{opacity:0,transform:`translateY(-${gV})`},"100%":{opacity:1,transform:"translateY(0)"}}),NV=CM({"0%":{opacity:0,transform:`translateX(${gV})`},"100%":{opacity:1,transform:"translateX(0)"}}),OV=e=>SM("min-width:220px;background-color:",DM.ui.background,";border-radius:",PR.radiusBlockUi,";padding:",yV,";box-shadow:","toolbar"===e?CV:SV,";animation-duration:",vV,";animation-timing-function:",bV,";will-change:transform,opacity;&[data-side='top']{animation-name:",PV,";}&[data-side='right']{animation-name:",NV,";}&[data-side='bottom']{animation-name:",IV,";}&[data-side='left']{animation-name:",TV,";}@media ( prefers-reduced-motion ){animation-duration:0s;}",""),AV=SM("width:",kV,";display:inline-flex;align-items:center;justify-content:center;margin-inline-start:calc( -1 * ",wV," );margin-top:",KM(-2),";margin-bottom:",KM(-2),";",""),MV=SM("width:max-content;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;padding-inline-start:",KM(6),";margin-top:",KM(-2),";margin-bottom:",KM(-2),";opacity:0.6;[data-highlighted]>&,[data-state='open']>&,[data-disabled]>&{opacity:1;}",""),RV=ng("span",{target:"e1kdzosf11"})(AV,";"),BV=ng("span",{target:"e1kdzosf10"})(MV,";"),LV=SM("all:unset;font-size:",vB("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",DM.gray[900],";border-radius:",PR.radiusBlockUi,";display:flex;align-items:center;padding:",KM(2)," ",_V," ",KM(2)," ",wV,";position:relative;user-select:none;outline:none;&[data-disabled]{opacity:0.5;pointer-events:none;}&[data-highlighted]{background-color:",DM.gray[100],";outline:2px solid transparent;}svg{fill:currentColor;}&:not( :has( ",RV," ) ){padding-inline-start:",kV,";}",""),DV=ng(nV,{target:"e1kdzosf9"})((e=>OV(e.variant)),";"),zV=ng(pV,{target:"e1kdzosf8"})((e=>OV(e.variant)),";"),FV=ng(iV,{target:"e1kdzosf7"})(LV,";"),jV=ng(aV,{target:"e1kdzosf6"})(LV,";"),VV=ng(lV,{target:"e1kdzosf5"})(LV,";"),HV=ng(fV,{target:"e1kdzosf4"})(LV," &[data-state='open']{background-color:",DM.gray[100],";}"),$V=ng(oV,{target:"e1kdzosf3"})("box-sizing:border-box;display:flex;align-items:center;min-height:",KM(8),";padding:",KM(2)," ",_V," ",KM(2)," ",kV,";color:",DM.gray[700],";font-size:11px;line-height:1.4;font-weight:500;text-transform:uppercase;"),UV=ng(uV,{target:"e1kdzosf2"})("height:",PR.borderWidth,";background-color:",(e=>"toolbar"===e.variant?xV:EV),";margin:",KM(2)," calc( -1 * ",yV," );"),WV=ng(cV,{target:"e1kdzosf1"})({name:"pl708y",styles:"display:inline-flex;align-items:center;justify-content:center"}),KV=ng(tm,{target:"e1kdzosf0"})(UM({transform:`scaleX(1) translateX(${KM(2)})`},{transform:`scaleX(-1) translateX(${KM(2)})`}),";"),GV=(0,Sr.createContext)({variant:void 0,portalContainer:null}),qV=$h((e=>{const{defaultOpen:t,open:n,onOpenChange:r,modal:o=!0,side:i="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,children:c,trigger:u,variant:d}=Vh(e,"DropdownMenu"),f=OS(JS),p=f.ref?.current,m=(0,Sr.useMemo)((()=>({variant:d,portalContainer:p})),[d,p]);return(0,Sr.createElement)(Jj,{defaultOpen:t,open:n,onOpenChange:r,modal:o,dir:Wn()?"rtl":"ltr"},(0,Sr.createElement)(eV,{asChild:!0},u),(0,Sr.createElement)(tV,{container:p},(0,Sr.createElement)(DV,{side:i,align:s,sideOffset:a,alignOffset:l,loop:!0,variant:d},(0,Sr.createElement)(GV.Provider,{value:m},c))))}),"DropdownMenu"),YV=(0,Sr.forwardRef)((({children:e,prefix:t,suffix:n,...r},o)=>(0,Sr.createElement)(FV,{...r,ref:o},t&&(0,Sr.createElement)(RV,null,t),e,n&&(0,Sr.createElement)(BV,null,n)))),XV=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)((e=>(0,Sr.createElement)("circle",e)),{cx:12,cy:12,r:3,fill:"currentColor"})),ZV=ng("div",{target:"e1krjpvb0"})("");function QV(e){!function(e){for(const[t,n]of Object.entries(e))void 0===n||br(n).isValid()||"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm(`wp.components.Theme: "${n}" is not a valid color value for the '${t}' prop.`)}(e);const t={...JV(e.accent),...eH(e.background)};return function(e){for(const t of Object.values(e))t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm("wp.components.Theme: "+t)}(function(e,t){const n=e.background||DM.white,r=e.accent||"#3858e9",o=t.foreground||DM.gray[900],i=t.gray||DM.gray;return{accent:br(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:br(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:br(n).contrast(i[600])>=3&&br(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}(e,t)),{colors:t}}function JV(e){return e?{accent:e,accentDarker10:br(e).darken(.1).toHex(),accentDarker20:br(e).darken(.2).toHex(),accentInverted:tH(e)}:{}}function eH(e){if(!e)return{};const t=tH(e);return{background:e,foreground:t,foregroundInverted:tH(t),gray:nH(e,t)}}function tH(e){return br(e).isDark()?DM.white:DM.gray[900]}function nH(e,t){const n=br(e).isDark()?"lighten":"darken",r=Math.abs(br(e).toHsl().l-br(t).toHsl().l)/100,o={};return Object.entries({100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821}).forEach((([t,i])=>{o[parseInt(t)]=br(e)[n](i/.884*r).toHex()})),o}kr([wr,xr]);const rH=function({accent:e,background:t,className:n,...r}){const o=jh(),i=(0,Sr.useMemo)((()=>o(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[SM("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]})(QV({accent:e,background:t})),n)),[e,t,n,o]);return(0,Sr.createElement)(ZV,{className:i,...r})},{lock:oH,unlock:iH}=Fe("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),aH={};function sH(e){return IS((0,Sr.useContext)(NS).fills,{sync:!0}).get(e)}oH(aH,{CustomSelectControl:TB,__experimentalPopoverLegacyPositionToPlacement:Gp,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...QS(t)}},ComponentsContext:im,DropdownMenuV2:qV,DropdownMenuCheckboxItemV2:({children:e,checked:t=!1,suffix:n,...r})=>(0,Sr.createElement)(jV,{...r,checked:t},(0,Sr.createElement)(RV,null,(0,Sr.createElement)(WV,null,("indeterminate"===t||!0===t)&&(0,Sr.createElement)(tm,{icon:"indeterminate"===t?hV:xM,size:24}))),e,n&&(0,Sr.createElement)(BV,null,n)),DropdownMenuGroupV2:e=>(0,Sr.createElement)(rV,{...e}),DropdownMenuItemV2:YV,DropdownMenuLabelV2:e=>(0,Sr.createElement)($V,{...e}),DropdownMenuRadioGroupV2:e=>(0,Sr.createElement)(sV,{...e}),DropdownMenuRadioItemV2:({children:e,suffix:t,...n})=>(0,Sr.createElement)(VV,{...n},(0,Sr.createElement)(RV,null,(0,Sr.createElement)(WV,null,(0,Sr.createElement)(tm,{icon:XV,size:22}))),e,t&&(0,Sr.createElement)(BV,null,t)),DropdownMenuSeparatorV2:e=>{const{variant:t}=(0,Sr.useContext)(GV);return(0,Sr.createElement)(UV,{...e,variant:t})},DropdownSubMenuV2:({defaultOpen:e,open:t,onOpenChange:n,disabled:r,textValue:o,children:i,trigger:a})=>{const{variant:s,portalContainer:l}=(0,Sr.useContext)(GV);return(0,Sr.createElement)(dV,{defaultOpen:e,open:t,onOpenChange:n},(0,Sr.createElement)(HV,{disabled:r,textValue:o},a),(0,Sr.createElement)(tV,{container:l},(0,Sr.createElement)(zV,{loop:!0,sideOffset:16,alignOffset:-8,variant:s},i)))},DropdownSubMenuTriggerV2:({prefix:e,suffix:t=(0,Sr.createElement)(KV,{icon:mV,size:24}),children:n})=>(0,Sr.createElement)(Sr.Fragment,null,e&&(0,Sr.createElement)(RV,null,e),n,t&&(0,Sr.createElement)(BV,null,t)),ProgressBar:RB,Theme:rH});const{ComponentsContext:lH}=KO(aH);function cH({group:e="default",...t}){const n=(0,Sr.useContext)(Mg),r=(0,Sr.useContext)(lH),o=(0,Sr.useMemo)((()=>({forwardedContext:[[Mg.Provider,{value:n}],[lH.Provider,{value:r}]]})),[n,r]),i=LC[e]?.Slot,a=sH(i?.__unstableName);if(!i)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm(`Unknown BlockControls group "${e}" provided.`),null;if(!a?.length)return null;const s=(0,Sr.createElement)(i,{...t,bubblesVirtually:!0,fillProps:o});return"default"===e?s:(0,Sr.createElement)(yC,null,s)}const uH=tA;uH.Slot=cH;const dH=uH;const fH=(0,Sr.forwardRef)((function(e,t){return(0,Sr.useContext)(Mg)?(0,Sr.createElement)(Rg,{ref:t,...e.toggleProps},(t=>(0,Sr.createElement)(vC,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,Sr.createElement)(vC,{...e})}));const pH=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=Wl(e);if(!Sr.Children.count(n))return null;const s=`components-menu-group-label-${a}`,l=Vl()(r,"components-menu-group",{"has-hidden-separator":i});return(0,Sr.createElement)("div",{className:l},o&&(0,Sr.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},o),(0,Sr.createElement)("div",{role:"group","aria-labelledby":o?s:void 0},n))};const mH=(0,Sr.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:a="right",shortcut:s,isSelected:l,role:c="menuitem",suffix:u,...d}=e;return o=Vl()("components-menu-item__button",o),r&&(n=(0,Sr.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,Sr.createElement)("span",{className:"components-menu-item__item"},n),(0,Sr.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,Sr.cloneElement)(i,{className:Vl()("components-menu-items__item-icon",{"has-icon-right":"right"===a})})),(0,Sr.createElement)(lg,{ref:t,"aria-checked":"menuitemcheckbox"===c||"menuitemradio"===c?l:void 0,role:c,icon:"left"===a?i:void 0,className:o,...d},(0,Sr.createElement)("span",{className:"components-menu-item__item"},n),!u&&(0,Sr.createElement)(Wp,{className:"components-menu-item__shortcut",shortcut:s}),!u&&i&&"right"===a&&(0,Sr.createElement)(tm,{icon:i}),u)})),hH=mH,gH={type:"default"},vH=(0,Sr.createContext)(gH),bH=vH.Provider;function yH(){return(0,Sr.useContext)(vH)}const kH=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),wH=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),_H=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),EH=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),xH=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),SH=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),CH=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})),IH=(0,Sr.createContext)(null);function TH(){const e=(0,Sr.useRef)(!1);return rv((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function PH(){const e=TH(),[t,n]=(0,Sr.useState)(0),r=(0,Sr.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,Sr.useCallback)((()=>Mb.postRender(r)),[r]),t]}const NH=e=>!e.isLayoutDirty&&e.willUpdate(!1);function OH(){const e=new Set,t=new WeakMap,n=()=>e.forEach(NH);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const AH=e=>!0===e,MH=({children:e,id:t,inherit:n=!0})=>{const r=(0,Sr.useContext)(gv),o=(0,Sr.useContext)(IH),[i,a]=PH(),s=(0,Sr.useRef)(null),l=r.id||o;null===s.current&&((e=>AH(!0===e)||"id"===e)(n)&&l&&(t=t?l+"-"+t:l),s.current={id:t,group:AH(n)&&r.group||OH()});const c=(0,Sr.useMemo)((()=>({...s.current,forceRender:i})),[a]);return Sr.createElement(gv.Provider,{value:c},e)},RH=({__nextHasNoMarginBottom:e=!1,id:t,label:n,hideLabelFromVision:r=!1,help:o,className:i,children:a})=>(0,Sr.createElement)(yB,{className:Vl()("components-base-control",i)},(0,Sr.createElement)(kB,{className:"components-base-control__field",__nextHasNoMarginBottom:e},n&&t&&(r?(0,Sr.createElement)(ig,{as:"label",htmlFor:t},n):(0,Sr.createElement)(_B,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,Sr.createElement)(ig,{as:"label"},n):(0,Sr.createElement)(RH.VisualLabel,null,n)),a),!!o&&(0,Sr.createElement)(xB,{id:t?t+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:e},o));RH.VisualLabel=({className:e,children:t,...n})=>(0,Sr.createElement)(SB,{...n,className:Vl()("components-base-control__label",e)},t);const BH=RH;const LH=e=>{const t=SM("border-color:",DM.ui.border,";","");return SM(e&&t," &:hover{border-color:",DM.ui.borderHover,";}&:focus-within{border-color:",DM.ui.borderFocus,";box-shadow:",PR.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},DH=e=>SM("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),zH={name:"7whenc",styles:"display:flex;width:100%"},FH=ng("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function jH(e,t,n){return Zc(t,[n.store]),ku(e,n,"items","setItems"),e}function VH(e,t,n){return ku(e=jH(e,t,n),n,"activeId","setActiveId"),ku(e,n,"includesBaseElement"),ku(e,n,"virtualFocus"),ku(e,n,"orientation"),ku(e,n,"rtl"),ku(e,n,"focusLoop"),ku(e,n,"focusWrap"),ku(e,n,"focusShift"),e}function HH(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function $H(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=yc(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:yc(null==n?void 0:n.renderedItems,[])},a=lu({renderedItems:i.renderedItems}),s=lu(i,e.store),l=()=>{const e=HH(a.getState().renderedItems);a.setState("renderedItems",e),s.setState("renderedItems",e)};cu(s,(()=>pu(a,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame(l);if("function"!=typeof IntersectionObserver)return;const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return xc(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame(l))}),{root:r});return e.renderedItems.forEach((e=>{e.element&&o.observe(e.element)})),()=>{cancelAnimationFrame(n),o.disconnect()}}))));const c=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=cc(cc({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},u=e=>c(e,(e=>s.setState("items",e)),!0);return uc(cc({},s),{registerItem:u,renderItem:e=>mc(u(e),c(e,(e=>a.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=s.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null}})}function UH(e){const t=[];for(const n of e)t.push(...n);return t}function WH(e){return e.slice().reverse()}var KH={id:null};function GH(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function qH(e,t){return e.filter((e=>e.rowId===t))}function YH(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function XH(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function ZH(e,t,n){const r=XH(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?GH(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function QH(e){const t=YH(e),n=XH(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(uc(cc({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function JH(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=$H(e),o=yc(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=lu(uc(cc({},r.getState()),{activeId:o,baseElement:yc(null==n?void 0:n.baseElement,null),includesBaseElement:yc(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:yc(null==n?void 0:n.moves,0),orientation:yc(e.orientation,null==n?void 0:n.orientation,"both"),rtl:yc(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:yc(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:yc(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:yc(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:yc(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);cu(i,(()=>fu(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=GH(e.renderedItems))?void 0:n.id}))}))));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?WH(e):e;if(null==s)return null==(o=GH(f))?void 0:o.id;const p=f.find((e=>e.id===s));if(!p)return null==(a=GH(f))?void 0:a.id;const m=!!p.rowId,h=f.indexOf(p),g=f.slice(h+1),v=qH(g,p.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(m?t||"horizontal":t),y=c&&c!==b,k=m&&u&&u!==b;if(n=n||!m&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[KH]:[],...e.slice(0,r)]}(k&&!n?f:qH(f,p.rowId),s,n),t=GH(e,s);return null==t?void 0:t.id}if(k){const e=GH(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=GH(v,s);return!w&&n?null:null==w?void 0:w.id};return uc(cc(cc({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=GH(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=GH(WH(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=GH(n))?void 0:t.rowId)&&o;return a(WH(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=QH(UH(ZH(YH(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=QH(WH(UH(ZH(YH(n),t,s))));return a(l,"vertical",o,e)}})}function e$(e={}){var t,n=dc(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=JH(uc(cc({},n),{focusLoop:yc(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=lu(uc(cc({},o.getState()),{value:yc(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return uc(cc(cc({},o),i),{setValue:e=>i.setState("value",e)})}function t$(e={}){const[t,n]=wu(e$,e);return function(e,t,n){return ku(e=VH(e,t,n),n,"value","setValue"),e}(t,n,e)}var n$=Du([_g],[Eg]),r$=n$.useContext,o$=(n$.useScopedContext,n$.useProviderContext),i$=(n$.ContextProvider,n$.ScopedContextProvider);function a$(e){return e.some((e=>!!e.rowId))}function s$(e,t,n){return Gc((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;const i=e.getState(),a=null==(o=gg(e,i.activeId))?void 0:o.element;if(!a)return;if(!function(e,t){if(!Lc(e))return!1;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(e))return!1;const n=e.target;if(!n)return!0;if(Mc(n)){if(function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}(e))return!1;const n=a$(t.renderedItems),r=null===t.activeId,o=n&&!r,i="Home"===e.key||"End"===e.key;if(!o&&i)return!1}return!e.isPropagationStopped()}(r,i))return;const s=r,{view:l}=s,c=tc(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var l$=Lu((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=tc(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=wg();gc(n=n||s,!1);const l=(0,Sr.useRef)(null),c=function(e){const[t,n]=(0,Sr.useState)(!1),r=(0,Sr.useCallback)((()=>n(!0)),[]),o=e.useState((t=>gg(e,t.activeId)));return(0,Sr.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),u=n.useState("moves");(0,Sr.useEffect)((()=>{var e;if(!n)return;if(!u)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=gg(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(cc({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[n,u,r,o]),Wc((()=>{if(!n)return;if(!u)return;if(!r)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=l.current;l.current=null,o&&Dc(o,{relatedTarget:e}),cd(e)?function(e,t){const n=new FocusEvent("focus",t),r=e.dispatchEvent(n),o=uc(cc({},t),{bubbles:!0});e.dispatchEvent(new FocusEvent("focusin",o))}(e,{relatedTarget:o}):e.focus()}),[n,u,r]);const d=n.useState("activeId"),f=n.useState("virtualFocus");Wc((()=>{var e;if(!n)return;if(!r)return;if(!f)return;const t=l.current;if(l.current=null,!t)return;Dc(t,{relatedTarget:(null==(e=gg(n,d))?void 0:e.element)||Sc(t)})}),[n,d,f,r]);const p=s$(n,a.onKeyDownCapture,l),m=s$(n,a.onKeyUpCapture,l),h=a.onFocusCapture,g=Gc((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[vg];return delete e[vg],t}(e.currentTarget);Lc(e)&&o&&(e.stopPropagation(),l.current=r)})),v=a.onFocus,b=Gc((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?Lc(e)&&!bg(n,t)&&queueMicrotask(c):Lc(e)&&n.setActiveId(null)})),y=a.onBlurCapture,k=Gc((e=>{var t;if(null==y||y(e),e.defaultPrevented)return;if(!n)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=gg(n,o))?void 0:t.element,a=e.relatedTarget,s=bg(n,a),c=l.current;if(l.current=null,Lc(e)&&s)a===i?c&&c!==a&&Dc(c,e):i&&Dc(i,e),e.stopPropagation();else{!bg(n,e.target)&&i&&Dc(i,e)}})),w=a.onKeyDown,_=Jc(i),E=Gc((e=>{var t;if(null==w||w(e),e.defaultPrevented)return;if(!n)return;if(!Lc(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=gg(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=a$(i),d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(UH(WH(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!_(e))return;e.preventDefault(),n.move(t)}}}));a=eu(a,(e=>(0,Au.jsx)(_g,{value:n,children:e})),[n]);const x=n.useState((e=>{var t;if(n&&r&&e.virtualFocus)return null==(t=gg(n,e.activeId))?void 0:t.id}));a=ec(Jl({"aria-activedescendant":x},a),{ref:qc(r?n.setBaseElement:null,a.ref),onKeyDownCapture:p,onKeyUpCapture:m,onFocusCapture:g,onFocus:b,onBlurCapture:k,onKeyDown:E});const S=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return a=xd(Jl({focusable:S},a))}));Mu((e=>Bu("div",l$(e))));var c$=Lu((e=>{var t=e,{store:n}=t,r=tc(t,["store"]);const o=o$();return gc(n=n||o,!1),r=eu(r,(e=>(0,Au.jsx)(i$,{value:n,children:e})),[n]),r=Jl({role:"radiogroup"},r),r=l$(Jl({store:n},r))})),u$=Mu((e=>Bu("div",c$(e))));const d$=(0,Sr.createContext)({}),f$=d$;function p$(e){const t=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>{t.current=e}),[e]),t.current}function m$(e){const t=(0,Sr.useRef)(!1),n=p$(e);let r,o;return(0,Sr.useEffect)((()=>{t.current||(t.current=void 0!==e&&void 0!==n&&e!==n)}),[e,n]),t.current?r=null!=e?e:"":o=e,{value:r,defaultValue:o}}const h$=(0,Sr.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:a,...s},l){const c=Wl(h$,"toggle-group-control-as-radio-group"),u=a||c,{value:d,defaultValue:f}=m$(i),p=r?e=>{r(null!=e?e:void 0)}:void 0,m=t$({defaultValue:f,value:d,setValue:p}),h=m.useState("value"),g=m.setValue,v=(0,Sr.useMemo)((()=>({baseId:u,isBlock:!t,size:o,value:h,setValue:g})),[u,t,o,h,g]);return(0,Sr.createElement)(f$.Provider,{value:v},(0,Sr.createElement)(u$,{store:m,"aria-label":n,render:(0,Sr.createElement)(og,null),...s,id:u,ref:l},e))}));const g$=(0,Sr.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:a,...s},l){const c=Wl(g$,"toggle-group-control-as-button-group"),u=a||c,{value:d,defaultValue:f}=m$(i),[p,m]=Hg({defaultValue:f,value:d,onChange:r}),h=(0,Sr.useMemo)((()=>({baseId:u,value:p,setValue:m,isBlock:!t,isDeselectable:!0,size:o})),[u,p,m,t,o]);return(0,Sr.createElement)(f$.Provider,{value:h},(0,Sr.createElement)(og,{"aria-label":n,...s,ref:l,role:"group"},e))}));const v$=Hh((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,isDeselectable:a=!1,label:s,hideLabelFromVision:l=!1,help:c,onChange:u,size:d="default",value:f,children:p,...m}=Vh(e,"ToggleGroupControl"),h=Wl(v$,"toggle-group-control"),g=jh(),v=(0,Sr.useMemo)((()=>g((({isBlock:e,isDeselectable:t,size:n})=>SM("background:",DM.ui.background,";border:1px solid transparent;border-radius:",PR.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;",DH(n)," ",!t&&LH(e),";",""))({isBlock:i,isDeselectable:a,size:d}),i&&zH,r)),[r,g,i,a,d]),b=a?g$:h$;return(0,Sr.createElement)(BH,{help:c,__nextHasNoMarginBottom:n},!l&&(0,Sr.createElement)(FH,null,(0,Sr.createElement)(BH.VisualLabel,null,s)),(0,Sr.createElement)(b,{...m,className:v,isAdaptiveWidth:o,label:s,onChange:u,ref:t,size:d,value:f},(0,Sr.createElement)(MH,{id:h},p)))}),"ToggleGroupControl"),b$=v$;var y$=Lu((e=>{var t=e,{store:n,name:r,value:o,checked:i}=t,a=tc(t,["store","name","value","checked"]);const s=r$();n=n||s;const l=Yc(a.id),c=(0,Sr.useRef)(null),u=yu(n,(e=>null!=i?i:function(e,t){if(void 0!==t)return null!=e&&null!=t?t===e:!!t}(o,null==e?void 0:e.value)));(0,Sr.useEffect)((()=>{if(!l)return;if(!u)return;(null==n?void 0:n.getState().activeId)===l||null==n||n.setActiveId(l)}),[n,u,l]);const d=a.onChange,f=function(e,t){return"input"===e&&(!t||"radio"===t)}(Xc(c,a.as||"input"),a.type),p=bc(a),[m,h]=Qc();(0,Sr.useEffect)((()=>{const e=c.current;e&&(f||(void 0!==u&&(e.checked=u),void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[m,f,u,r,o]);const g=Gc((e=>{if(p)return e.preventDefault(),void e.stopPropagation();f||(e.currentTarget.checked=!0,h()),null==d||d(e),e.defaultPrevented||null==n||n.setValue(o)})),v=a.onClick,b=Gc((e=>{null==v||v(e),e.defaultPrevented||f||g(e)})),y=a.onFocus,k=Gc((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!f)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(l&&r!==l||g(e))}));return a=ec(Jl({id:l,role:f?void 0:"radio",type:f?"radio":void 0,"aria-checked":u},a),{ref:qc(c,a.ref),onChange:g,onClick:b,onFocus:k}),a=Tg(Jl({store:n,clickOnEnter:!f},a)),Jl({name:f?r:void 0,value:f?o:void 0,checked:u},a)})),k$=Ru((e=>Bu("input",y$(e))));function w$(e="transition"){let t;switch(e){case"transition":t="transition-duration: 0ms;";break;case"animation":t="animation-duration: 1ms;";break;default:t="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${t};\n\t\t}\n\t`}const _$=ng("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),E$={name:"82a6rk",styles:"flex:1"},x$=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>SM("align-items:center;appearance:none;background:transparent;border:none;border-radius:",PR.controlBorderRadius,";color:",DM.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 ",PR.transitionDurationFast," linear,color ",PR.transitionDurationFast," linear,font-weight 60ms linear;",w$("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",PR.toggleGroupControlBackgroundColor,";}",e&&C$," ",t&&T$({size:r})," ",n&&S$,";",""),S$=SM("color:",DM.white,";&:active{background:transparent;}",""),C$=SM("color:",DM.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",DM.white,",0 0 0 ",PR.borderWidthFocus," ",DM.theme.accent,";outline:2px solid transparent;}",""),I$=ng("div",{target:"et6ln9s0"})("display:flex;font-size:",PR.fontSize,";line-height:1;"),T$=({size:e="default"})=>SM("color:",DM.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[e],";padding-left:0;padding-right:0;",""),P$=SM("background:",DM.gray[900],";border-radius:",PR.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:N$,LabelView:O$}=g,A$={duration:0},M$=({showTooltip:e,text:t,children:n})=>e&&t?(0,Sr.createElement)(Zp,{text:t,placement:"top"},n):(0,Sr.createElement)(Sr.Fragment,null,n);const R$=Hh((function e(t,n){const r=Jg(),o=(0,Sr.useContext)(d$),i=Vh({...t,id:Wl(e,o.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:a=!1,isDeselectable:s=!1,size:l="default"}=o,{className:c,isIcon:u=!1,value:d,children:f,showTooltip:p=!1,onFocus:m,...h}=i,g=o.value===d,v=jh(),b=(0,Sr.useMemo)((()=>v(a&&E$)),[v,a]),y=(0,Sr.useMemo)((()=>v(x$({isDeselectable:s,isIcon:u,isPressed:g,size:l}),c)),[v,s,u,g,l,c]),k=(0,Sr.useMemo)((()=>v(P$)),[v]),w={...h,className:y,"data-value":d,ref:n};return(0,Sr.createElement)(O$,{className:b},(0,Sr.createElement)(M$,{showTooltip:p,text:h["aria-label"]},s?(0,Sr.createElement)("button",{...w,onFocus:m,"aria-pressed":g,type:"button",onClick:()=>{s&&g?o.setValue(void 0):o.setValue(d)}},(0,Sr.createElement)(N$,null,f)):(0,Sr.createElement)(k$,{render:(0,Sr.createElement)("button",{...w,onFocus:e=>{m?.(e),e.defaultPrevented||o.setValue(d)}}),value:d},(0,Sr.createElement)(N$,null,f))),g?(0,Sr.createElement)(QE.div,{className:k,transition:r?A$:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"}):null)}),"ToggleGroupControlOptionBase"),B$=R$;const L$=(0,Sr.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,Sr.createElement)(B$,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,Sr.createElement)(tm,{icon:n}))}));const D$=Hh((function(e,t){const n=function(e){return hR({isBlock:!0,...Vh(e,"FlexBlock")})}(e);return(0,Sr.createElement)(og,{...n,ref:t})}),"FlexBlock"),z$=()=>{};const F$=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=z$,...a}=e,s=Vl()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,Sr.createElement)("span",{className:s},(0,Sr.createElement)("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o,...a}),(0,Sr.createElement)("span",{className:"components-form-toggle__track"}),(0,Sr.createElement)("span",{className:"components-form-toggle__thumb"}))},j$={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},V$={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function H$(e){return"string"==typeof e?[e]:Sr.Children.toArray(e).filter((e=>(0,Sr.isValidElement)(e)))}function $$(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Vh(e,"HStack"),a=function(e,t="row"){if(!bR(e))return{};const n="column"===t?V$:j$;return e in n?n[e]:{align:e}}(t,r),s=H$(n).map(((e,t)=>{if(Kh(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,Sr.createElement)(gR,{isBlock:!0,key:r,...n.props})}return e}));return uR({children:s,direction:r,justify:"center",...a,...i,gap:o})}const U$=Hh((function(e,t){const n=$$(e);return(0,Sr.createElement)(og,{...n,ref:t})}),"HStack");const W$=function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:a,disabled:s}){const l=`inspector-toggle-control-${Wl(e)}`,c=jh()("components-toggle-control",i,!t&&SM({marginBottom:KM(3)},"",""));let u,d;return o&&("function"==typeof o?void 0!==r&&(d=o(r)):d=o,d&&(u=l+"__help")),(0,Sr.createElement)(BH,{id:l,help:d,className:c,__nextHasNoMarginBottom:!0},(0,Sr.createElement)(U$,{justify:"flex-start",spacing:3},(0,Sr.createElement)(F$,{id:l,checked:r,onChange:function(e){a(e.target.checked)},"aria-describedby":u,disabled:s}),(0,Sr.createElement)(D$,{as:"label",htmlFor:l,className:"components-toggle-control__label"},n)))},K$={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function G$(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function q$(e,t=K$,n,r){let o="";return t?.[n]?.spacingStyles?.length&&r&&t[n].spacingStyles.forEach((t=>{o+=`${G$(e,t.selector.trim())} { `,o+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||r}`)).join("; "),o+="; }"})),o}function Y$(e){const{contentSize:t,wideSize:n,type:r="default"}=e,o={},i=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return i.test(t)&&"constrained"===r&&(o.none=Nn(Hn("Max %s wide"),t)),i.test(n)&&(o.wide=Nn(Hn("Max %s wide"),n)),o}const X$=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})),Z$=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Sr.createElement)(Qp,{d:"m4.5 7.5v9h1.5v-9z"}),(0,Sr.createElement)(Qp,{d:"m18 7.5v9h1.5v-9z"})),Q$=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9z"}),(0,Sr.createElement)(Qp,{d:"m7.5 19.5h9v-1.5h-9z"})),J$=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Sr.createElement)(Qp,{d:"m16.5 6h-9v-1.5h9z"})),eU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Sr.createElement)(Qp,{d:"m18 16.5v-9h1.5v9z"})),tU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Sr.createElement)(Qp,{d:"m16.5 19.5h-9v-1.5h9z",style:{fill:"#1e1e1e"}})),nU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z",style:{opacity:.25}}),(0,Sr.createElement)(Qp,{d:"m4.5 16.5v-9h1.5v9z"})),rU=["top","right","bottom","left"],oU={top:void 0,right:void 0,bottom:void 0,left:void 0},iU={custom:X$,axial:X$,horizontal:Z$,vertical:Q$,top:J$,right:eU,bottom:tU,left:nU},aU={default:Hn("Spacing control"),top:Hn("Top"),bottom:Hn("Bottom"),left:Hn("Left"),right:Hn("Right"),mixed:Hn("Mixed"),vertical:Hn("Vertical"),horizontal:Hn("Horizontal"),axial:Hn("Horizontal & vertical"),custom:Hn("Custom")},sU={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function lU(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function cU(e,t){if(!e||lU(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function uU(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function dU(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function fU(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),r=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?r:n||r}function pU(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const r=uU(n?.top)||t,o=uU(n?.left)||t;return r===o?r:`${r} ${o}`}const mU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),hU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),gU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),vU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),bU=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),yU={top:{icon:gU,title:$n("Align top","Block vertical alignment setting")},center:{icon:hU,title:$n("Align middle","Block vertical alignment setting")},bottom:{icon:mU,title:$n("Align bottom","Block vertical alignment setting")},stretch:{icon:vU,title:$n("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:bU,title:$n("Space between","Block vertical alignment setting")}},kU=["top","center","bottom"];const wU=function({value:e,onChange:t,controls:n=kU,isCollapsed:r=!0,isToolbar:o}){const i=yU[e],a=yU.top,s=o?yC:fH,l=o?{isCollapsed:r}:{};return(0,Sr.createElement)(s,{icon:i?i.icon:a.icon,label:$n("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...yU[n],isActive:e===n,role:r?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})),...l})},_U=e=>(0,Sr.createElement)(wU,{...e,isToolbar:!1}),EU={left:kH,center:wH,right:_H,"space-between":EH,stretch:xH};const xU=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:r,popoverProps:o,isToolbar:i}){const a=e=>{n(e===r?void 0:e)},s=r?EU[r]:EU.left,l=[{name:"left",icon:kH,title:Hn("Justify items left"),isActive:"left"===r,onClick:()=>a("left")},{name:"center",icon:wH,title:Hn("Justify items center"),isActive:"center"===r,onClick:()=>a("center")},{name:"right",icon:_H,title:Hn("Justify items right"),isActive:"right"===r,onClick:()=>a("right")},{name:"space-between",icon:EH,title:Hn("Space between items"),isActive:"space-between"===r,onClick:()=>a("space-between")},{name:"stretch",icon:xH,title:Hn("Stretch items"),isActive:"stretch"===r,onClick:()=>a("stretch")}],c=i?yC:fH,u=i?{isCollapsed:t}:{};return(0,Sr.createElement)(c,{icon:s,popoverProps:o,label:Hn("Change items justification"),controls:l.filter((t=>e.includes(t.name))),...u})},SU=e=>(0,Sr.createElement)(xU,{...e,isToolbar:!1});function CU(e){let t=e;var n;"string"!=typeof e&&(t=null!==(n=e?.toString?.())&&void 0!==n?n:"");return t=t.replace(/['\u2019]/,""),Bi(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function IU(e){return Array.isArray(e)?e.map(IU):e&&"object"==typeof e?{...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,IU(t)])))}:e}function TU(e,t,n){const r=function(e){return Array.isArray(e)?e:"number"==typeof e?[e.toString()]:[e]}(t),o=e?IU(e):{};return r.reduce(((e,o,i)=>(void 0===e[o]&&(Number.isInteger(t[i+1])?e[o]=[]:e[o]={}),i===r.length-1&&(e[o]=n),e[o])),o),o}const PU=(e,t,n)=>{var r;const o=Array.isArray(t)?t:t.split(".");let i=e;return o.forEach((e=>{i=i?.[e]})),null!==(r=i)&&void 0!==r?r:n},NU=["color","border","dimensions","typography","spacing"],OU={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},AU={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},MU=e=>AU[e]||e;function RU(e){const{name:t,clientId:n}=JO();return BC((r=>{if(NU.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let o=qt("blockEditor.useSetting.before",void 0,e,n,t);if(void 0!==o)return o;const i=MU(e),a=[n,...r(qO).getBlockParents(n,!0)];for(const e of a){if(Fr(r(qO).getBlockName(e),"__experimentalSettings",!1)){var s;const n=r(qO).getBlockAttributes(e);if(o=null!==(s=PU(n,`settings.blocks.${t}.${i}`))&&void 0!==s?s:PU(n,`settings.${i}`),void 0!==o)break}}const l=r(qO).getSettings();if(void 0===o){var c;const e=`__experimentalFeatures.${i}`;o=null!==(c=PU(l,`__experimentalFeatures.blocks.${t}.${i}`))&&void 0!==c?c:PU(l,e)}var u,d;if(void 0!==o)return Or[i]?null!==(u=null!==(d=o.custom)&&void 0!==d?d:o.theme)&&void 0!==u?u:o.default:o;const f=OU[i]?OU[i](l):void 0;return void 0!==f?f:"typography.dropCap"===i||void 0}),[t,n,e])}function BU(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,r=e?.color?.palette?.default,o=e?.color?.defaultPalette;return(0,Sr.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:$n("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:$n("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:$n("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,r,o])}function LU(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,o=e?.color?.defaultGradients;return(0,Sr.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:$n("Theme","Indicates this palette comes from the theme."),gradients:n}),o&&r&&r.length&&e.push({name:$n("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&e.push({name:$n("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,r,o])}const DU=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,DU(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function zU(e,t,n,r,o,i){if(Object.values(null!=e?e:{}).every((e=>!e)))return n;if(1===i.length&&n.innerBlocks.length===r.length)return n;let a=r[0]?.attributes;if(i.length>1&&r.length>1){if(!r[o])return n;a=r[o]?.attributes}let s=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=PU(a,e);t&&(s={...s,attributes:TU(s.attributes,e,t)})}))})),s}function FU(e,t,n){const r=zr(e,t),o=r?.__experimentalSkipSerialization;return Array.isArray(o)?o.includes(n):o}function jU(e,t){const n=RU("typography.fontFamilies"),r=RU("typography.fontSizes"),o=RU("typography.customFontSize"),i=RU("typography.fontStyle"),a=RU("typography.fontWeight"),s=RU("typography.lineHeight"),l=RU("typography.textColumns"),c=RU("typography.textDecoration"),u=RU("typography.writingMode"),d=RU("typography.textTransform"),f=RU("typography.letterSpacing"),p=RU("spacing.padding"),m=RU("spacing.margin"),h=RU("spacing.blockGap"),g=RU("spacing.spacingSizes"),v=RU("spacing.units"),b=RU("dimensions.minHeight"),y=RU("layout"),k=RU("border.color"),w=RU("border.radius"),_=RU("border.style"),E=RU("border.width"),x=RU("color.custom"),S=RU("color.palette.custom"),C=RU("color.customDuotone"),I=RU("color.palette.theme"),T=RU("color.palette.default"),P=RU("color.defaultPalette"),N=RU("color.defaultDuotone"),O=RU("color.duotone.custom"),A=RU("color.duotone.theme"),M=RU("color.duotone.default"),R=RU("color.gradients.custom"),B=RU("color.gradients.theme"),L=RU("color.gradients.default"),D=RU("color.defaultGradients"),z=RU("color.customGradient"),F=RU("color.background"),j=RU("color.link"),V=RU("color.text"),H=RU("color.heading"),$=RU("color.button");return function(e,t,n){const{supportedStyles:r,supports:o}=BC((e=>({supportedStyles:KO(e(yi)).getSupportedStyles(t,n),supports:e(yi).getBlockType(t)?.supports})),[t,n]);return(0,Sr.useMemo)((()=>{const t={...e};return r.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1}),r.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&r.includes("color"),background:t.color?.background&&(r.includes("background")||r.includes("backgroundColor")),button:t.color?.button&&r.includes("buttonColor"),heading:t.color?.heading&&r.includes("headingColor"),link:t.color?.link&&r.includes("linkColor"),caption:t.color?.caption&&r.includes("captionColor")},r.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),r.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textTransform","textDecoration","writingMode"].forEach((e=>{r.includes(e)||(t.typography={...t.typography,[e]:!1})})),r.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{r.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{r.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(o?.spacing?.[e])?o?.spacing?.[e]:o?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),r.includes("minHeight")||(t.dimensions={...t.dimensions,minHeight:!1}),["radius","color","style","width"].forEach((e=>{r.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),t.shadow=!!r.includes("shadow")&&t.shadow,t}),[e,r,o])}((0,Sr.useMemo)((()=>({color:{palette:{custom:S,theme:I,default:T},gradients:{custom:R,theme:B,default:L},duotone:{custom:O,theme:A,default:M},defaultGradients:D,defaultPalette:P,defaultDuotone:N,custom:x,customGradient:z,customDuotone:C,background:F,link:j,heading:H,button:$,text:V},typography:{fontFamilies:{custom:n},fontSizes:{custom:r},customFontSize:o,fontStyle:i,fontWeight:a,lineHeight:s,textColumns:l,textDecoration:c,textTransform:d,letterSpacing:f,writingMode:u},spacing:{spacingSizes:{custom:g},padding:p,margin:m,blockGap:h,units:v},border:{color:k,radius:w,style:_,width:E},dimensions:{minHeight:b},layout:y,parentLayout:t})),[n,r,o,i,a,s,l,c,d,f,u,p,m,h,g,v,b,y,t,k,w,_,E,x,S,C,I,T,P,N,O,A,M,R,B,L,D,z,F,j,V]),e)}const VU={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},HU={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},$U={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},UU=["wrap","nowrap"],WU={name:"flex",label:Hn("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:r=!0}=n;return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(mR,null,(0,Sr.createElement)(gR,null,(0,Sr.createElement)(qU,{layout:e,onChange:t})),(0,Sr.createElement)(gR,null,r&&(0,Sr.createElement)(XU,{layout:e,onChange:t}))),(0,Sr.createElement)(YU,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=n;return(0,Sr.createElement)(dH,{group:"block",__experimentalShareWithChildBlocks:!0},(0,Sr.createElement)(qU,{layout:e,onChange:t,isToolbar:!0}),r&&(0,Sr.createElement)(KU,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=K$}){const{orientation:a="horizontal"}=t,s=n?.spacing?.blockGap&&!FU(r,"spacing","blockGap")?pU(n?.spacing?.blockGap,"0.5em"):void 0,l=VU[t.justifyContent],c=UU.includes(t.flexWrap)?t.flexWrap:"wrap",u=$U[t.verticalAlignment],d=HU[t.justifyContent]||HU.left;let f="";const p=[];return c&&"wrap"!==c&&p.push(`flex-wrap: ${c}`),"horizontal"===a?(u&&p.push(`align-items: ${u}`),l&&p.push(`justify-content: ${l}`)):(u&&p.push(`justify-content: ${u}`),p.push("flex-direction: column"),p.push(`align-items: ${d}`)),p.length&&(f=`${G$(e)} {\n\t\t\t\t${p.join("; ")};\n\t\t\t}`),o&&s&&(f+=q$(e,i,"flex",s)),f},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function KU({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:r="horizontal"}=e,o="horizontal"===r?$U.center:$U.top,{verticalAlignment:i=o}=e,a=n=>{t({...e,verticalAlignment:n})};if(n)return(0,Sr.createElement)(_U,{onChange:a,value:i,controls:"horizontal"===r?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const s=[{value:"flex-start",label:Hn("Align items top")},{value:"center",label:Hn("Align items center")},{value:"flex-end",label:Hn("Align items bottom")}];return(0,Sr.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,Sr.createElement)("legend",null,Hn("Vertical alignment")),(0,Sr.createElement)("div",null,s.map(((e,t,n)=>(0,Sr.createElement)(lg,{key:e,label:n,icon:t,isPressed:i===e,onClick:()=>a(e)})))))}const GU={placement:"bottom-start"};function qU({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:r="left",orientation:o="horizontal"}=e,i=n=>{t({...e,justifyContent:n})},a=["left","center","right"];if("horizontal"===o?a.push("space-between"):a.push("stretch"),n)return(0,Sr.createElement)(SU,{allowedControls:a,value:r,onChange:i,popoverProps:GU});const s=[{value:"left",icon:kH,label:Hn("Justify items left")},{value:"center",icon:wH,label:Hn("Justify items center")},{value:"right",icon:_H,label:Hn("Justify items right")}];return"horizontal"===o?s.push({value:"space-between",icon:EH,label:Hn("Space between items")}):s.push({value:"stretch",icon:xH,label:Hn("Stretch items")}),(0,Sr.createElement)(b$,{__nextHasNoMarginBottom:!0,label:Hn("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls"},s.map((({value:e,icon:t,label:n})=>(0,Sr.createElement)(L$,{key:e,value:e,icon:t,label:n}))))}function YU({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,Sr.createElement)(W$,{__nextHasNoMarginBottom:!0,label:Hn("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function XU({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:r,justifyContent:o}=e;return(0,Sr.createElement)(b$,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:Hn("Orientation"),value:n,onChange:n=>{let i=r,a=o;return"horizontal"===n?("space-between"===r&&(i="center"),"stretch"===o&&(a="left")):("stretch"===r&&(i="top"),"space-between"===o&&(a="left")),t({...e,orientation:n,verticalAlignment:i,justifyContent:a})}},(0,Sr.createElement)(L$,{icon:SH,value:"horizontal",label:Hn("Horizontal")}),(0,Sr.createElement)(L$,{icon:CH,value:"vertical",label:Hn("Vertical")}))}const ZU={name:"default",label:Hn("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:r,layoutDefinitions:o=K$}){const i=pU(t?.spacing?.blockGap);let a="";FU(n,"spacing","blockGap")||(i?.top?a=pU(i?.top):"string"==typeof i&&(a=pU(i)));let s="";return r&&a&&(s+=q$(e,o,"default",a)),s},getOrientation:()=>"vertical",getAlignments(e,t){const n=Y$(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const r=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:o}=e;t&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:n.wide})}return r.unshift({name:"none",info:n.none}),r}},QU="web"===eI.OS,JU={px:{value:"px",label:QU?"px":Hn("Pixels (px)"),a11yLabel:Hn("Pixels (px)"),step:1},"%":{value:"%",label:QU?"%":Hn("Percentage (%)"),a11yLabel:Hn("Percent (%)"),step:.1},em:{value:"em",label:QU?"em":Hn("Relative to parent font size (em)"),a11yLabel:$n("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:QU?"rem":Hn("Relative to root font size (rem)"),a11yLabel:$n("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:QU?"vw":Hn("Viewport width (vw)"),a11yLabel:Hn("Viewport width (vw)"),step:.1},vh:{value:"vh",label:QU?"vh":Hn("Viewport height (vh)"),a11yLabel:Hn("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:QU?"vmin":Hn("Viewport smallest dimension (vmin)"),a11yLabel:Hn("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:QU?"vmax":Hn("Viewport largest dimension (vmax)"),a11yLabel:Hn("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:QU?"ch":Hn("Width of the zero (0) character (ch)"),a11yLabel:Hn("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:QU?"ex":Hn("x-height of the font (ex)"),a11yLabel:Hn("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:QU?"cm":Hn("Centimeters (cm)"),a11yLabel:Hn("Centimeters (cm)"),step:.001},mm:{value:"mm",label:QU?"mm":Hn("Millimeters (mm)"),a11yLabel:Hn("Millimeters (mm)"),step:.1},in:{value:"in",label:QU?"in":Hn("Inches (in)"),a11yLabel:Hn("Inches (in)"),step:.001},pc:{value:"pc",label:QU?"pc":Hn("Picas (pc)"),a11yLabel:Hn("Picas (pc)"),step:1},pt:{value:"pt",label:QU?"pt":Hn("Points (pt)"),a11yLabel:Hn("Points (pt)"),step:1}},eW=Object.values(JU),tW=[JU.px,JU["%"],JU.em,JU.rem,JU.vw,JU.vh],nW=JU.px;function rW(e,t,n){return iW(t?`${null!=e?e:""}${t}`:e,n)}function oW(e){return Array.isArray(e)&&!!e.length}function iW(e,t=eW){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(oW(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=nW.value;return[r,a]}const aW=({units:e=eW,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=iW(n[e.value]);r[t].default=o}})),r};const sW=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),lW=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M7 11.5h10V13H7z"}));const cW={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function uW(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function dW(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-uW(t-e,n-t,r)+t:e>n?+uW(e-n,n-t,r)+n:e}function fW(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function pW(e,t,n){return(t=fW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mW(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 hW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mW(Object(n),!0).forEach((function(t){pW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gW={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function vW(e){return e?e[0].toUpperCase()+e.slice(1):""}const bW=["enter","leave"];function yW(e,t="",n=!1){const r=gW[e],o=r&&r[t]||t;return"on"+vW(e)+vW(o)+(function(e=!1,t){return e&&!bW.includes(t)}(n,o)?"Capture":"")}const kW=["gotpointercapture","lostpointercapture"];function wW(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=kW.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function _W(e){return"touches"in e}function EW(e){return _W(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function xW(e){return _W(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function SW(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function CW(e){const t=xW(e);return _W(e)?t.identifier:t.pointerId}function IW(e){const t=xW(e);return[t.clientX,t.clientY]}function TW(e,...t){return"function"==typeof e?e(...t):e}function PW(){}function NW(...e){return 0===e.length?PW:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function OW(e,t){return Object.assign({},t,e||{})}class AW{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?TW(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);cW.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=TW(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[m<g?-1:m>v?1:0,h<b?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const k=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[dW(t,i,a,r),dW(n,s,l,o)]}(t._bounds,t.offset,k),t.delta=cW.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=cW.sub(t.offset,f);const e=t.delta.map(Math.abs);cW.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(hW(hW(hW({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class MW extends AW{constructor(...e){super(...e),pW(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=cW.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=cW.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[EW(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 RW=e=>e,BW={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>hW(hW({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return cW.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?cW.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||RW},threshold:e=>cW.toVector(e,0)};const LW=hW(hW({},BW),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=0)=>e,bounds(e={}){if("function"==typeof e)return t=>LW.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]]}}),DW={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const zW="undefined"!=typeof window&&window.document&&window.document.createElement;function FW(){return zW&&"ontouchstart"in window}const jW={isBrowser:zW,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:FW(),touchscreen:FW()||zW&&window.navigator.maxTouchPoints>1,pointer:zW&&"onpointerdown"in window,pointerLock:zW&&"exitPointerLock"in window.document},VW={mouse:0,touch:0,pen:8},HW=hW(hW({},LW),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&jW.pointerLock,jW.touch&&n?"touch":this.pointerLock?"mouse":jW.pointer&&!o?"pointer":jW.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,jW.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=cW.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(cW.toVector(e)),distance:this.transform(cW.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?hW(hW({},VW),e):VW,keyboardDisplacement:(e=10)=>e});hW(hW({},BW),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!jW.touch&&jW.gesture)return"gesture";if(jW.touch&&r)return"touch";if(jW.touchscreen){if(jW.pointer)return"pointer";if(jW.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=OW(TW(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=OW(TW(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 cW.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});hW(hW({},LW),{},{mouseOnly:(e=!0)=>e});const $W=hW(hW({},LW),{},{mouseOnly:(e=!0)=>e}),UW=new Map,WW=new Map;function KW(e){UW.set(e.key,e.engine),WW.set(e.key,e.resolver)}const GW={key:"drag",engine:class extends MW{constructor(...e){super(...e),pW(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=LW.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=CW(e),n._pointerActive=!0,this.computeValues(IW(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==EW(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=CW(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=IW(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=cW.sub(o,t._values),this.computeValues(o)),cW.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=CW(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[a,s]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){const n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>a&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>s&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=DW[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,cW.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in DW&&(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:HW},qW={key:"hover",engine:class extends MW{constructor(...e){super(...e),pW(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(IW(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=IW(e);t._movement=t._delta=cW.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:$W};function YW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const XW={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(jW.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},ZW=["target","eventOptions","window","enabled","transform"];function QW(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]=QW(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class JW{constructor(e,t){pW(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=gW[e];return e+(n&&n[t]||t)}(t,n),s=hW(hW({},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 eK{constructor(){pW(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 tK{constructor(e){pW(this,"gestures",new Set),pW(this,"_targetEventStore",new JW(this)),pW(this,"gestureEventStores",{}),pW(this,"gestureTimeoutStores",{}),pW(this,"handlers",{}),pW(this,"config",{}),pW(this,"pointerIds",new Set),pW(this,"touchIds",new Set),pW(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&nK(e,"drag");t.wheel&&nK(e,"wheel");t.scroll&&nK(e,"scroll");t.move&&nK(e,"move");t.pinch&&nK(e,"pinch");t.hover&&nK(e,"hover")}(this,e)}setEventIds(e){return _W(e)?(this.touchIds=new Set(SW(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=YW(r,ZW);if(n.shared=QW({target:o,eventOptions:i,window:a,enabled:s,transform:l},XW),t){const e=WW.get(t);n[t]=QW(hW({shared:n.shared},c),e)}else for(const e in c){const t=WW.get(e);t&&(n[e]=QW(hW({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=rK(n,o.eventOptions,!!r);if(o.enabled){new(UW.get(t))(this,e,t).bind(i)}}const o=rK(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](hW(hW({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=NW(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=wW(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function nK(e,t){e.gestures.add(t),e.gestureEventStores[t]=new JW(e,t),e.gestureTimeoutStores[t]=new eK}const rK=(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:yW(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function oK(e,t={},n,r){const o=Sr.useMemo((()=>new tK(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),Sr.useEffect(o.effect.bind(o)),Sr.useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const iK=e=>e,aK={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},sK="CHANGE",lK="COMMIT",cK="CONTROL",uK="DRAG_END",dK="DRAG_START",fK="DRAG",pK="INVALIDATE",mK="PRESS_DOWN",hK="PRESS_ENTER",gK="PRESS_UP",vK="RESET";function bK(e=iK,t=aK,n){const[r,o]=(0,Sr.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case cK:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case gK:case mK:n.isDirty=!1;break;case dK:n.isDragging=!0;break;case uK:n.isDragging=!1;break;case sK:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case lK:n.value=t.payload.value,n.isDirty=!1;break;case vK:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case pK:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=aK){const{value:t}=e;return{...aK,...e,initialValue:t}}(t));var i;const a=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},s=e=>t=>{o({type:e,payload:{event:t}})},l=e=>t=>{o({type:e,payload:t})},c=a(sK),u=a(vK),d=a(lK),f=l(dK),p=l(fK),m=l(uK),h=s(gK),g=s(mK),v=s(hK),b=(0,Sr.useRef)(r),y=(0,Sr.useRef)({value:t.value,onChangeHandler:n});return(0,Sr.useLayoutEffect)((()=>{b.current=r,y.current={value:t.value,onChangeHandler:n}})),(0,Sr.useLayoutEffect)((()=>{var e;void 0===b.current._event||r.value===y.current.value||r.isDirty||y.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:b.current._event})}),[r.value,r.isDirty]),(0,Sr.useLayoutEffect)((()=>{var e;t.value===b.current.value||b.current.isDirty||o({type:cK,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:d,dispatch:o,drag:p,dragEnd:m,dragStart:f,invalidate:(e,t)=>o({type:pK,payload:{error:e,event:t}}),pressDown:g,pressEnter:v,pressUp:h,reset:u,state:r}}const yK=()=>{};const kK=(0,Sr.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isFocused:i,isPressEnterToChange:a=!1,onBlur:s=yK,onChange:l=yK,onDrag:c=yK,onDragEnd:u=yK,onDragStart:d=yK,onFocus:f=yK,onKeyDown:p=yK,onValidate:m=yK,size:h="default",setIsFocused:g,stateReducer:v=(e=>e),value:b,type:y,...k},w){const{state:_,change:E,commit:x,drag:S,dragEnd:C,dragStart:I,invalidate:T,pressDown:P,pressEnter:N,pressUp:O,reset:A}=bK(v,{isDragEnabled:o,value:b,isPressEnterToChange:a},l),{value:M,isDragging:R,isDirty:B}=_,L=(0,Sr.useRef)(!1),D=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,Sr.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(R,t),z=e=>{const t=e.currentTarget.value;try{m(t),x(t,e)}catch(t){T(t,e)}},F=function(e,t){return KW(GW),oK({drag:e},t||{},"drag")}((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return u(e),void C(e);c(e),S(e),R||(d(e),I(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}}),j=o?F():{};let V;return"number"===y&&(V=e=>{k.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,Sr.createElement)(eB,{...k,...j,className:"components-input-control__input",disabled:e,dragCursor:D,isDragging:R,id:r,onBlur:e=>{s(e),g?.(!1),!B&&e.target.validity.valid||(L.current=!0,z(e))},onChange:e=>{const t=e.target.value;E(t,e)},onFocus:e=>{f(e),g?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(p(e),t){case"ArrowUp":O(e);break;case"ArrowDown":P(e);break;case"Enter":N(e),a&&(e.preventDefault(),z(e));break;case"Escape":a&&B&&(e.preventDefault(),A(b,e))}},onMouseDown:V,ref:w,inputSize:h,value:null!=M?M:"",type:y})})),wK=kK,_K=()=>{};const EK=(0,Sr.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,__unstableStateReducer:r=(e=>e),__unstableInputWidth:o,className:i,disabled:a=!1,help:s,hideLabelFromVision:l=!1,id:c,isPressEnterToChange:u=!1,label:d,labelPosition:f="top",onChange:p=_K,onValidate:m=_K,onKeyDown:h=_K,prefix:g,size:v="default",style:b,suffix:y,value:k,...w}=uB(e,"wp.components.InputControl","6.4"),[_,E]=(0,Sr.useState)(!1),x=function(e){const t=Wl(EK);return e||`inspector-input-control-${t}`}(c),S=Vl()("components-input-control",i),C=function(e){const t=(0,Sr.useRef)(e.value),[n,r]=(0,Sr.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,Sr.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:k,onBlur:w.onBlur,onChange:p}),I=s?{["string"==typeof s?"aria-describedby":"aria-details"]:`${x}__help`}:{};return(0,Sr.createElement)(BH,{className:S,help:s,id:x,__nextHasNoMarginBottom:!0},(0,Sr.createElement)(pB,{__next40pxDefaultSize:n,__unstableInputWidth:o,disabled:a,gap:3,hideLabelFromVision:l,id:x,isFocused:_,justify:"left",label:d,labelPosition:f,prefix:g,size:v,style:b,suffix:y},(0,Sr.createElement)(wK,{...w,...I,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:x,isFocused:_,isPressEnterToChange:u,onKeyDown:h,onValidate:m,paddingInlineStart:g?KM(2):void 0,paddingInlineEnd:y?KM(2):void 0,ref:t,setIsFocused:E,size:v,stateReducer:r,...C})))}));var xK={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 SK=({hideHTMLArrows:e})=>e?xK:"",CK=ng(EK,{target:"ep09it41"})(SK,";"),IK=ng(lg,{target:"ep09it40"})("&&&&&{color:",DM.theme.accent,";}"),TK={smallSpinButtons:SM("width:",KM(5),";min-width:",KM(5),";height:",KM(5),";","")};function PK(e){const t=Number(e);return isNaN(t)?0:t}function NK(...e){return e.reduce(((e,t)=>e+PK(t)),0)}function OK(e,t,n){const r=PK(e);return Math.max(t,Math.min(r,n))}function AK(e=0,t=1/0,n=1/0,r=1){const o=PK(e),i=PK(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=OK(Math.round(o/i)*i,t,n);return a?PK(s.toFixed(a)):s}const MK=()=>{};const RK=(0,Sr.forwardRef)((function(e,t){const{__unstableStateReducer:n,className:r,dragDirection:o="n",hideHTMLArrows:i=!1,spinControls:a=(i?"none":"native"),isDragEnabled:s=!0,isShiftStepEnabled:l=!0,label:c,max:u=1/0,min:d=-1/0,required:f=!1,shiftStep:p=10,step:m=1,spinFactor:h=1,type:g="number",value:v,size:b="default",suffix:y,onChange:k=MK,...w}=uB(e,"wp.components.NumberControl","6.4");i&&on("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const _=(0,Sr.useRef)(),E=Vg([_,t]),x="any"===m,S=x?1:yR(m),C=yR(h)*S,I=AK(0,d,u,S),T=(e,t)=>x?""+Math.min(u,Math.max(d,yR(e))):""+AK(e,d,u,null!=t?t:S),P="number"===g?"off":void 0,N=Vl()("components-number-control",r),O=jh()("small"===b&&TK.smallSpinButtons),A=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&l,o=r?yR(p)*C:C;let i=function(e){const t=""===e;return!bR(e)||t}(e)?I:e;return"up"===t?i=NK(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=PK(t);return 0===n?r:e-r}),0)}(i,o)),T(i,r?o:void 0)},M=e=>t=>k(String(A(v,e,t)),{event:{...t,target:_.current}});return(0,Sr.createElement)(CK,{autoComplete:P,inputMode:"numeric",...w,className:N,dragDirection:o,hideHTMLArrows:"native"!==a,isDragEnabled:s,label:c,max:u,min:d,ref:E,required:f,step:m,type:g,value:v,__unstableStateReducer:(e,t)=>{var r;const i=((e,t)=>{const n={...e},{type:r,payload:i}=t,a=i.event,c=n.value;if(r!==gK&&r!==mK||(n.value=A(c,r===gK?"up":"down",a)),r===fK&&s){const[e,t]=i.delta,r=i.shiftKey&&l,a=r?yR(p)*C:C;let s,u;switch(o){case"n":u=t,s=-1;break;case"e":u=e,s=Wn()?-1:1;break;case"s":u=t,s=1;break;case"w":u=e,s=Wn()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const e=u*a*s;n.value=T(NK(c,e),r?a:void 0)}}if(r===hK||r===lK){const e=!1===f&&""===c;n.value=e?c:T(c)}return n})(e,t);return null!==(r=n?.(i,t))&&void 0!==r?r:i},size:b,suffix:"custom"===a?(0,Sr.createElement)(Sr.Fragment,null,y,(0,Sr.createElement)(YM,{marginBottom:0,marginRight:2},(0,Sr.createElement)(U$,{spacing:1},(0,Sr.createElement)(IK,{className:O,icon:sW,isSmall:!0,"aria-hidden":"true","aria-label":Hn("Increment"),tabIndex:-1,onClick:M("up")}),(0,Sr.createElement)(IK,{className:O,icon:lW,isSmall:!0,"aria-hidden":"true","aria-label":Hn("Decrement"),tabIndex:-1,onClick:M("down")})))):y,onChange:k})})),BK=RK,LK=ng(BK,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",oB,"{transition:box-shadow 0.1s linear;}}"),DK=({selectSize:e})=>({small:SM("box-sizing:border-box;padding:2px 1px;width:20px;color:",DM.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:SM("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",KM(2),";padding:",KM(1),";color:",DM.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),zK=ng("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",DK,";color:",DM.gray[900],";}"),FK=ng("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",DK,";",(({selectSize:e="default"})=>({small:SM("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",UM({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",DM.gray[100],";}&:focus{border:1px solid ",DM.ui.borderFocus,";box-shadow:inset 0 0 0 ",PR.borderWidth+" "+DM.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:SM("display:flex;justify-content:center;align-items:center;&:hover{color:",DM.ui.borderFocus,";box-shadow:inset 0 0 0 ",PR.borderWidth+" "+DM.ui.borderFocus,";outline:",PR.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",PR.borderWidthFocus+" "+DM.ui.borderFocus,";outline:",PR.borderWidthFocus," solid transparent;}","")}[e])),";&:not( :disabled ){cursor:pointer;}}");const jK=(0,Sr.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=tW,...a},s){if(!oW(i)||1===i?.length)return(0,Sr.createElement)(zK,{className:"components-unit-control__unit-label",selectSize:r},o);const l=Vl()("components-unit-control__select",e);return(0,Sr.createElement)(FK,{ref:s,className:l,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...a},i.map((e=>(0,Sr.createElement)("option",{value:e.value,key:e.value},e.label))))})),VK={initial:void 0,fallback:""};const HK=function(e,t=VK){const{initial:n,fallback:r}={...VK,...t},[o,i]=(0,Sr.useState)(e),a=bR(e);return(0,Sr.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]),[function(e=[],t){var n;return null!==(n=e.find(bR))&&void 0!==n?n:t}([e,o,n],r),(0,Sr.useCallback)((e=>{a||i(e)}),[a])]};new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g");function $K(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const UK=(0,Sr.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:a=!1,disableUnits:s=!1,isPressEnterToChange:l=!1,isResetValueOnUnitChange:c=!1,isUnitSelectTabbable:u=!0,label:d,onChange:f,onUnitChange:p,size:m="default",unit:h,units:g=tW,value:v,onFocus:b,...y}=uB(e,"wp.components.UnitControl","6.4");"unit"in e&&on("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const k=null!=v?v:void 0,[w,_]=(0,Sr.useMemo)((()=>{const e=function(e,t,n=eW){const r=Array.isArray(n)?[...n]:[],[,o]=rW(e,t,eW);return o&&!r.some((e=>e.value===o))&&JU[o]&&r.unshift(JU[o]),r}(k,h,g),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=$K(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),$K(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[k,h,g]),[E,x]=rW(k,h,w),[S,C]=HK(1===w.length?w[0].value:h,{initial:x,fallback:""});(0,Sr.useEffect)((()=>{void 0!==x&&C(x)}),[x,C]);const I=Vl()("components-unit-control","components-unit-control-wrapper",i);let T;!s&&u&&w.length&&(T=e=>{y.onKeyDown?.(e),!e.metaKey&&_.test(e.key)&&P.current?.focus()});const P=(0,Sr.useRef)(null),N=s?null:(0,Sr.createElement)(jK,{ref:P,"aria-label":Hn("Select unit"),disabled:a,isUnitSelectTabbable:u,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=E?E:""}${e}`;c&&void 0!==n?.default&&(r=`${n.default}${e}`),f?.(r,t),p?.(e,t),C(e)},size:"small"===m||"default"===m&&!y.__next40pxDefaultSize?"small":"default",unit:S,units:w,onFocus:b,onBlur:e.onBlur});let O=y.step;if(!O&&w){var A;const e=w.find((e=>e.value===S));O=null!==(A=e?.step)&&void 0!==A?A:1}return(0,Sr.createElement)(LK,{...y,autoComplete:r,className:I,disabled:a,spinControls:"none",isPressEnterToChange:l,label:d,onKeyDown:T,onChange:(e,t)=>{if(""===e||null==e)return void f?.("",t);const n=function(e,t,n,r){const[o,i]=iW(e,t),a=null!=o?o:n;let s=i||r;return!s&&oW(t)&&(s=t[0].value),[a,s]}(e,w,E,S).join("");f?.(n,t)},ref:t,size:m,suffix:N,type:l?"text":"number",value:null!=E?E:"",step:O,onFocus:b,__unstableStateReducer:n})})),WK=UK,KK=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})),GK=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),qK="var:",YK="|",XK="--",ZK=(e,t)=>{let n=e;return t.forEach((e=>{n=n?.[e]})),n};function QK(e,t,n,r){const o=ZK(e,n);return o?[{selector:t?.selector,key:r,value:eG(o)}]:[]}function JK(e,t,n,r,o=["top","right","bottom","left"]){const i=ZK(e,n);if(!i)return[];const a=[];if("string"==typeof i)a.push({selector:t?.selector,key:r.default,value:i});else{const e=o.reduce(((e,n)=>{const o=eG(ZK(i,[n]));return o&&e.push({selector:t?.selector,key:r?.individual.replace("%s",tG(n)),value:o}),e}),[]);a.push(...e)}return a}function eG(e){if("string"==typeof e&&e.startsWith(qK)){return`var(--wp--${e.slice(qK.length).split(YK).map((e=>Bi(e,{splitRegexp:[/([a-z0-9])([A-Z])/g,/([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]}))).join(XK)})`}return e}function tG(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function nG(e){try{return decodeURI(e)}catch(t){return e}}function rG(e){return(t,n)=>QK(t,n,e,function(e){const[t,...n]=e;return t.toLowerCase()+n.map(tG).join("")}(e))}function oG(e){return(t,n)=>["color","style","width"].flatMap((r=>rG(["border",e,r])(t,n)))}const iG={name:"radius",generate:(e,t)=>JK(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},aG={name:"background",generate:(e,t)=>QK(e,t,["color","background"],"backgroundColor")},sG={name:"gradient",generate:(e,t)=>QK(e,t,["color","gradient"],"background")},lG={name:"text",generate:(e,t)=>QK(e,t,["color","text"],"color")},cG={name:"minHeight",generate:(e,t)=>QK(e,t,["dimensions","minHeight"],"minHeight")},uG={name:"backgroundImage",generate:(e,t)=>{const n=e?.background?.backgroundImage,r=e?.background?.backgroundSize,o=[];return n?("file"===n?.source&&n?.url&&o.push({selector:t.selector,key:"backgroundImage",value:`url( '${encodeURI(nG(n.url))}' )`}),r||o.push({selector:t.selector,key:"backgroundSize",value:"cover"}),o):o}},dG={name:"shadow",generate:(e,t)=>QK(e,t,["shadow"],"boxShadow")},fG={name:"color",generate:(e,t,n=["outline","color"],r="outlineColor")=>QK(e,t,n,r)},pG={name:"offset",generate:(e,t,n=["outline","offset"],r="outlineOffset")=>QK(e,t,n,r)},mG={name:"style",generate:(e,t,n=["outline","style"],r="outlineStyle")=>QK(e,t,n,r)},hG={name:"width",generate:(e,t,n=["outline","width"],r="outlineWidth")=>QK(e,t,n,r)},gG={name:"padding",generate:(e,t)=>JK(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})},vG={name:"margin",generate:(e,t)=>JK(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},bG={name:"fontSize",generate:(e,t)=>QK(e,t,["typography","fontSize"],"fontSize")},yG={name:"fontStyle",generate:(e,t)=>QK(e,t,["typography","fontStyle"],"fontStyle")},kG={name:"fontWeight",generate:(e,t)=>QK(e,t,["typography","fontWeight"],"fontWeight")},wG={name:"fontFamily",generate:(e,t)=>QK(e,t,["typography","fontFamily"],"fontFamily")},_G={name:"letterSpacing",generate:(e,t)=>QK(e,t,["typography","letterSpacing"],"letterSpacing")},EG={name:"lineHeight",generate:(e,t)=>QK(e,t,["typography","lineHeight"],"lineHeight")},xG={name:"textColumns",generate:(e,t)=>QK(e,t,["typography","textColumns"],"columnCount")},SG={name:"textDecoration",generate:(e,t)=>QK(e,t,["typography","textDecoration"],"textDecoration")},CG={name:"textTransform",generate:(e,t)=>QK(e,t,["typography","textTransform"],"textTransform")},IG={name:"writingMode",generate:(e,t)=>QK(e,t,["typography","writingMode"],"writingMode")},TG=[...[{name:"color",generate:rG(["border","color"])},{name:"style",generate:rG(["border","style"])},{name:"width",generate:rG(["border","width"])},iG,{name:"borderTop",generate:oG("top")},{name:"borderRight",generate:oG("right")},{name:"borderBottom",generate:oG("bottom")},{name:"borderLeft",generate:oG("left")}],...[lG,sG,aG],...[cG],...[fG,mG,pG,hG],...[vG,gG],...[wG,bG,yG,kG,_G,EG,xG,SG,CG,IG],...[dG],...[uG]];function PG(e,t={}){const n=NG(e,t);if(!t?.selector){const e=[];return n.forEach((t=>{e.push(`${Bi(t.key)}: ${t.value};`)})),e.join(" ")}const r=n.reduce(((e,t)=>{const{selector:n}=t;return n?(e[n]||(e[n]=[]),e[n].push(t),e):e}),{});return Object.keys(r).reduce(((e,t)=>(e.push(`${t} { ${r[t].map((e=>`${Bi(e.key)}: ${e.value};`)).join(" ")} }`),e)),[]).join("\n")}function NG(e,t={}){const n=[];return TG.forEach((r=>{"function"==typeof r.generate&&n.push(...r.generate(e,t))})),n}const OG={name:"constrained",label:Hn("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:r,contentSize:o,justifyContent:i="center"}=e,{allowJustification:a=!0}=n,s=[{value:"left",icon:kH,label:Hn("Justify items left")},{value:"center",icon:wH,label:Hn("Justify items center")},{value:"right",icon:_H,label:Hn("Justify items right")}],l=aW({availableUnits:RU("spacing.units")||["%","px","em","rem","vw"]});return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,Sr.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,Sr.createElement)(WK,{className:"block-editor-hooks__layout-controls-unit-input",label:Hn("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:l}),(0,Sr.createElement)(EM,{icon:KK})),(0,Sr.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,Sr.createElement)(WK,{className:"block-editor-hooks__layout-controls-unit-input",label:Hn("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:l}),(0,Sr.createElement)(EM,{icon:GK}))),(0,Sr.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Hn("Customize the width for all elements that are assigned to the center or wide columns.")),a&&(0,Sr.createElement)(b$,{__nextHasNoMarginBottom:!0,label:Hn("Justification"),value:i,onChange:n=>{t({...e,justifyContent:n})}},s.map((({value:e,icon:t,label:n})=>(0,Sr.createElement)(L$,{key:e,value:e,icon:t,label:n})))))},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=K$}){const{contentSize:a,wideSize:s,justifyContent:l}=t,c=pU(n?.spacing?.blockGap);let u="";FU(r,"spacing","blockGap")||(c?.top?u=pU(c?.top):"string"==typeof c&&(u=pU(c)));const d="left"===l?"0 !important":"auto !important",f="right"===l?"0 !important":"auto !important";let p=a||s?`\n\t\t\t\t\t${G$(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:s};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${f};\n\t\t\t\t\t}\n\t\t\t\t\t${G$(e,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=s?s:a};\n\t\t\t\t\t}\n\t\t\t\t\t${G$(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===l?p+=`${G$(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===l&&(p+=`${G$(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${f}; }`),n?.spacing?.padding){NG(n).forEach((t=>{"paddingRight"===t.key?p+=`\n\t\t\t\t\t${G$(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`:"paddingLeft"===t.key&&(p+=`\n\t\t\t\t\t${G$(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`)}))}return o&&u&&(p+=q$(e,i,"constrained",u)),p},getOrientation:()=>"vertical",getAlignments(e){const t=Y$(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:r}=e,o=[{name:"left"},{name:"center"},{name:"right"}];return n&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:t.wide}),o.unshift({name:"none",info:t.none}),o}};function AG(e,t,n){return"number"!=typeof e?null:parseFloat(`${OK(e,t,n)}`)}const MG=30,RG=()=>SM({height:MG,minHeight:MG},"",""),BG=12,LG=ng("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",(({__next40pxDefaultSize:e})=>!e&&SM({minHeight:MG},"","")),";"),DG=ng("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=DM.ui.borderFocus})=>SM({color:e},"","")),";",RG,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":SM({marginBottom:e?16:void 0},"","")),";"),zG=ng("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",UM({marginRight:6}),";"),FG=ng("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",UM({marginLeft:6}),";"),jG=ng("span",{target:"e1epgpqk10"})("background-color:",DM.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=DM.ui.backgroundDisabled),SM({background:n},"","")}),";"),VG=ng("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=DM.gray[400]),SM({background:n},"","")}),";"),HG=ng("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),$G=ng("span",{target:"e1epgpqk7"})("height:",BG,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":DM.gray[300];return e&&(n=DM.gray[400]),SM({backgroundColor:n},"","")}),";"),UG=ng("span",{target:"e1epgpqk6"})("color:",DM.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>SM({color:e?DM.gray[700]:DM.gray[300]},"","")),";"),WG=({disabled:e})=>SM("background-color:",e?DM.gray[400]:DM.theme.accent,";",""),KG=ng("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",BG,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",BG,"px;border-radius:50%;",WG,";",UM({marginLeft:-10}),";",UM({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),GG=ng("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",WG,";",(({isFocused:e})=>e?SM("&::before{content:' ';position:absolute;background-color:",DM.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),qG=ng("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% + ",BG,"px );");var YG={name:"1cypxip",styles:"top:-80%"},XG={name:"1lr98c4",styles:"bottom:-80%"};const ZG=ng("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(({show:e})=>SM({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?XG:YG),";",w$("transition"),";",UM({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),QG=ng(BK,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",RG,";}",UM({marginLeft:`${KM(4)} !important`}),";"),JG=ng("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",RG,";}",UM({marginLeft:8}),";");const eq=(0,Sr.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,Sr.createElement)(qG,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function tq(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,a=Vl()("components-range-control__mark",n&&"is-filled",t),s=Vl()("components-range-control__mark-label",n&&"is-filled");return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)($G,{...i,"aria-hidden":"true",className:a,isFilled:n,style:o}),r&&(0,Sr.createElement)(UG,{"aria-hidden":"true",className:s,isFilled:n,style:o},r))}function nq(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:a=0,...s}=e;return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(jG,{disabled:t,...s}),n&&(0,Sr.createElement)(rq,{disabled:t,marks:n,min:r,max:o,step:i,value:a}))}function rq(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:a=0}=e,s=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const s=`mark-${r}`,l=e.value<=o,c=(e.value-t)/i*100+"%",u={[Wn()?"right":"left"]:c};a.push({...e,isFilled:l,key:s,style:u})})),a}({marks:n,min:r,max:o,step:"any"===i?1:i,value:a});return(0,Sr.createElement)(HG,{"aria-hidden":"true",className:"components-range-control__marks"},s.map((e=>(0,Sr.createElement)(tq,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function oq(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:a=0,renderTooltipContent:s=(e=>e),zIndex:l=100,...c}=e,u=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,Sr.useState)(),o=(0,Sr.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,Sr.useEffect)((()=>{o()}),[o]),(0,Sr.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),d=Vl()("components-simple-tooltip",t),f={...i,zIndex:l};return(0,Sr.createElement)(ZG,{...c,"aria-hidden":o,className:d,position:u,show:o,role:"tooltip",style:f},s(a))}const iq=()=>{};const aq=(0,Sr.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:a,className:s,color:l=DM.theme.accent,currentInput:c,disabled:u=!1,help:d,hideLabelFromVision:f=!1,initialPosition:p,isShiftStepEnabled:m=!0,label:h,marks:g=!1,max:v=100,min:b=0,onBlur:y=iq,onChange:k=iq,onFocus:w=iq,onMouseLeave:_=iq,onMouseMove:E=iq,railColor:x,renderTooltipContent:S=(e=>e),resetFallbackValue:C,__next40pxDefaultSize:I=!1,shiftStep:T=10,showTooltip:P,step:N=1,trackColor:O,value:A,withInputField:M=!0,...R}=t,[B,L]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=HK(AG(r,t,n),{initial:AG(null!=o?o:null,t,n),fallback:null});return[i,(0,Sr.useCallback)((e=>{a(null===e?null:AG(e,t,n))}),[t,n,a])]}({min:b,max:v,value:null!=A?A:null,initial:p}),D=(0,Sr.useRef)(!1);let z=P,F=M;"any"===N&&(z=!1,F=!1);const[j,V]=(0,Sr.useState)(z),[H,$]=(0,Sr.useState)(!1),U=(0,Sr.useRef)(),W=U.current?.matches(":focus"),K=!u&&H,G=null===B,q=G?"":void 0!==B?B:c,Y=G?(v-b)/2+b:B,X=`${OK(G?50:(B-b)/(v-b)*100,0,100)}%`,Z=Vl()("components-range-control",s),Q=Vl()("components-range-control__wrapper",!!g&&"is-marked"),J=Wl(e,"inspector-range-control"),ee=d?`${J}__help`:void 0,te=!1!==z&&Number.isFinite(B),ne=()=>{let e=parseFloat(`${C}`),t=e;isNaN(e)&&(e=null,t=void 0),L(e),k(t)},re={[Wn()?"right":"left"]:X};return(0,Sr.createElement)(BH,{__nextHasNoMarginBottom:r,className:Z,label:h,hideLabelFromVision:f,id:`${J}`,help:d},(0,Sr.createElement)(LG,{className:"components-range-control__root",__next40pxDefaultSize:I},a&&(0,Sr.createElement)(zG,null,(0,Sr.createElement)(tm,{icon:a})),(0,Sr.createElement)(DG,{__nextHasNoMarginBottom:r,className:Q,color:l,marks:!!g},(0,Sr.createElement)(eq,{...R,className:"components-range-control__slider",describedBy:ee,disabled:u,id:`${J}`,label:h,max:v,min:b,onBlur:e=>{y(e),$(!1),V(!1)},onChange:e=>{const t=parseFloat(e.target.value);L(t),k(t)},onFocus:e=>{w(e),$(!0),V(!0)},onMouseMove:E,onMouseLeave:_,ref:Vg([U,n]),step:N,value:null!=q?q:void 0}),(0,Sr.createElement)(nq,{"aria-hidden":!0,disabled:u,marks:g,max:v,min:b,railColor:x,step:N,value:Y}),(0,Sr.createElement)(VG,{"aria-hidden":!0,className:"components-range-control__track",disabled:u,style:{width:X},trackColor:O}),(0,Sr.createElement)(KG,{className:"components-range-control__thumb-wrapper",style:re,disabled:u},(0,Sr.createElement)(GG,{"aria-hidden":!0,isFocused:K,disabled:u})),te&&(0,Sr.createElement)(oq,{className:"components-range-control__tooltip",inputRef:U,tooltipPosition:"bottom",renderTooltipContent:S,show:W||j,style:re,value:B})),o&&(0,Sr.createElement)(FG,null,(0,Sr.createElement)(tm,{icon:o})),F&&(0,Sr.createElement)(QG,{"aria-label":h,className:"components-range-control__number",disabled:u,inputMode:"decimal",isShiftStepEnabled:m,max:v,min:b,onBlur:()=>{D.current&&(ne(),D.current=!1)},onChange:e=>{let t=parseFloat(e);L(t),isNaN(t)?i&&(D.current=!0):((t<b||t>v)&&(t=AG(t,b,v)),k(t),D.current=!1)},shiftStep:T,size:I?"__unstable-large":"default",__unstableInputWidth:KM(I?20:16),step:N,value:q}),i&&(0,Sr.createElement)(JG,null,(0,Sr.createElement)(lg,{className:"components-range-control__reset",disabled:u||void 0===B,variant:"secondary",isSmall:!0,onClick:ne},Hn("Reset")))))})),sq=aq,lq={px:600,"%":100,vw:100,vh:100,em:38,rem:38},cq={name:"grid",label:Hn("Grid"),inspectorControls:function({layout:e={},onChange:t}){return e?.columnCount?(0,Sr.createElement)(dq,{layout:e,onChange:t}):(0,Sr.createElement)(uq,{layout:e,onChange:t})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=K$}){const{minimumColumnWidth:a="12rem",columnCount:s=null}=t,l=n?.spacing?.blockGap&&!FU(r,"spacing","blockGap")?pU(n?.spacing?.blockGap,"0.5em"):void 0;let c="";const u=[];return s?u.push(`grid-template-columns: repeat(${s}, minmax(0, 1fr))`):a&&u.push(`grid-template-columns: repeat(auto-fill, minmax(min(${a}, 100%), 1fr))`),u.length&&(c=`${G$(e)} { ${u.join("; ")}; }`),o&&l&&(c+=q$(e,i,"grid",l)),c},getOrientation:()=>"horizontal",getAlignments:()=>[]};function uq({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[r,o]=iW(n);return(0,Sr.createElement)("fieldset",null,(0,Sr.createElement)(BH.VisualLabel,{as:"legend"},Hn("Minimum column width")),(0,Sr.createElement)(mR,{gap:4},(0,Sr.createElement)(gR,{isBlock:!0},(0,Sr.createElement)(WK,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:n})},onUnitChange:n=>{let i;["em","rem"].includes(n)&&"px"===o?i=(r/16).toFixed(2)+n:["em","rem"].includes(o)&&"px"===n?i=Math.round(16*r)+n:["vh","vw","%"].includes(n)&&r>100&&(i=100+n),t({...e,minimumColumnWidth:i})},value:n,min:0})),(0,Sr.createElement)(gR,{isBlock:!0},(0,Sr.createElement)(sq,{onChange:n=>{t({...e,minimumColumnWidth:[n,o].join("")})},value:r,min:0,max:lq[o]||600,withInputField:!1}))))}function dq({layout:e,onChange:t}){const{columnCount:n=3}=e;return(0,Sr.createElement)(sq,{label:Hn("Columns"),value:n,onChange:n=>t({...e,columnCount:n}),min:1,max:6})}const fq=[ZU,WU,OG,cq];function pq(e="default"){return fq.find((t=>t.name===e))}const mq=[],hq=["none","left","center","right","wide","full"],gq=["wide","full"];function vq(e=hq){e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n,isBlockBasedTheme:r}=BC((e=>{const{getSettings:t}=e(qO),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout,isBlockBasedTheme:n.__unstableIsBlockBasedTheme}}),[]),o=yH(),i=pq(o?.type),a=i.getAlignments(o,r);if(n){const t=a.filter((({name:t})=>e.includes(t)));return 1===t.length&&"none"===t[0].name?mq:t}if("default"!==i.name&&"constrained"!==i.name)return mq;const{alignments:s=hq}=o,l=e.filter((e=>(o.alignments||t||!gq.includes(e))&&s.includes(e))).map((e=>({name:e})));return 1===l.length&&"none"===l[0].name?mq:l}const bq=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})),yq=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})),kq=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})),wq=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})),_q={none:{icon:bq,title:$n("None","Alignment option")},left:{icon:yq,title:Hn("Align left")},center:{icon:KK,title:Hn("Align center")},right:{icon:kq,title:Hn("Align right")},wide:{icon:GK,title:Hn("Wide width")},full:{icon:wq,title:Hn("Full width")}};const Eq=function({value:e,onChange:t,controls:n,isToolbar:r,isCollapsed:o=!0}){const i=vq(n);if(!!!i.length)return null;function a(n){t([e,"none"].includes(n)?void 0:n)}const s=_q[e],l=_q.none,c=r?yC:fH,u={icon:s?s.icon:l.icon,label:Hn("Align")},d=r?{isCollapsed:o,controls:i.map((({name:t})=>({..._q[t],isActive:e===t||!e&&"none"===t,role:o?"menuitemradio":void 0,onClick:()=>a(t)})))}:{toggleProps:{describedBy:Hn("Change alignment")},children:({onClose:t})=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(pH,{className:"block-editor-block-alignment-control__menu-group"},i.map((({name:n,info:r})=>{const{icon:o,title:i}=_q[n],s=n===e||!e&&"none"===n;return(0,Sr.createElement)(hH,{key:n,icon:o,iconPosition:"left",className:Vl()("components-dropdown-menu__menu-item",{"is-active":s}),isSelected:s,onClick:()=>{a(n),t()},role:"menuitemradio",info:r},i)}))))};return(0,Sr.createElement)(c,{...u,...d})},xq=e=>(0,Sr.createElement)(Eq,{...e,isToolbar:!1}),Sq=e=>{const{dispatch:t}=IC();return void 0===e?t:t(e)},Cq=(0,Sr.createContext)(null);function Iq(e){var t;const{clientId:n=""}=null!==(t=(0,Sr.useContext)(Cq))&&void 0!==t?t:{},r=BC((e=>e(qO).getBlockEditingMode(n)),[n]),{setBlockEditingMode:o,unsetBlockEditingMode:i}=Sq(qO);return(0,Sr.useEffect)((()=>(e&&o(n,e),()=>{e&&i(n)})),[n,e,o,i]),r}const Tq=["left","center","right","wide","full"],Pq=["wide","full"];function Nq(e,t=!0,n=!0){let r;return r=Array.isArray(e)?Tq.filter((t=>e.includes(t))):!0===e?[...Tq]:[],!n||!0===e&&!t?r.filter((e=>!Pq.includes(e))):r}const Oq=Hl((e=>t=>{const n=(0,Sr.createElement)(e,{key:"edit",...t}),{name:r}=t,o=vq(Nq(zr(r,"align"),Fr(r,"alignWide",!0))).map((({name:e})=>e)),i=Iq();if(!o.length||"default"!==i)return n;return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(dH,{group:"block",__experimentalShareWithChildBlocks:!0},(0,Sr.createElement)(xq,{value:t.attributes.align,onChange:e=>{if(!e){const n=Lr(t.name),r=n?.attributes?.align?.default;r&&(e="")}t.setAttributes({align:e})},controls:o})),n)}),"withToolbarControls"),Aq=Hl((e=>t=>{const{name:n,attributes:r}=t,{align:o}=r,i=vq(Nq(zr(n,"align"),Fr(n,"alignWide",!0)));if(void 0===o)return(0,Sr.createElement)(e,{...t});let a=t.wrapperProps;return i.some((e=>e.name===o))&&(a={...a,"data-align":o}),(0,Sr.createElement)(e,{...t,wrapperProps:a})}),"withDataAlign");jt("blocks.registerBlockType","core/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||Fr(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Tq,""]}}),e})),jt("editor.BlockListBlock","core/editor/align/with-data-align",Aq),jt("editor.BlockEdit","core/editor/align/with-toolbar-controls",Oq),jt("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:r}=n;return Nq(zr(t,"align"),Fr(t,"alignWide",!0)).includes(r)&&(e.className=Vl()(`align${r}`,e.className)),e})),jt("blocks.registerBlockType","core/lock/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.lock)&&void 0!==t?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const Mq=(0,Sr.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:a,id:s,className:l,onChange:c,type:u="text",...d}=e,f=Wl(Mq,"inspector-text-control",s);return(0,Sr.createElement)(BH,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:f,help:a,className:l},(0,Sr.createElement)("input",{className:"components-text-control__input",type:u,id:f,value:i,onChange:e=>c(e.target.value),"aria-describedby":a?f+"__help":void 0,ref:t,...d}))})),Rq=Mq,Bq=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const Lq=ng(EM,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});const Dq=(0,Sr.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...a}=e,s=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),l=Vl()("components-external-link",o),c=!!n?.startsWith("#");return(0,Sr.createElement)("a",{...a,className:l,href:n,onClick:t=>{c&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:s,ref:t},r,(0,Sr.createElement)(ig,{as:"span"},Hn("(opens in a new tab)")),(0,Sr.createElement)(Lq,{icon:Bq,className:"components-external-link__icon"}))})),zq=Dq,Fq=()=>JE("(prefers-reduced-motion: reduce)"),jq=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Vq=()=>{};const Hq=(0,Sr.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,Sr.createElement)("h2",{className:"components-panel__body-title"},(0,Sr.createElement)(lg,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,Sr.createElement)("span",{"aria-hidden":"true"},(0,Sr.createElement)(tm,{className:"components-panel__arrow",icon:e?jq:eR})),n,t&&(0,Sr.createElement)(tm,{icon:t,className:"components-panel__icon",size:20}))):null)),$q=(0,Sr.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:a,onToggle:s=Vq,opened:l,title:c,scrollAfterOpen:u=!0}=e,[d,f]=HK(l,{initial:void 0===a||a,fallback:!1}),p=(0,Sr.useRef)(null),m=Fq()?"auto":"smooth",h=(0,Sr.useRef)();h.current=u,om((()=>{d&&h.current&&p.current?.scrollIntoView&&p.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:m})}),[d,m]);const g=Vl()("components-panel__body",o,{"is-opened":d});return(0,Sr.createElement)("div",{className:g,ref:Vg([p,t])},(0,Sr.createElement)(Hq,{icon:i,isOpened:Boolean(d),onClick:e=>{e.preventDefault();const t=!d;f(t),s(t)},title:c,...n}),"function"==typeof r?r({opened:Boolean(d)}):d&&r)})),Uq=$q,Wq=()=>{},Kq=(0,Sr.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:Wq,deregisterPanelItem:Wq,flagItemCustomization:Wq,registerResetAllFilter:Wq,deregisterResetAllFilter:Wq,areAllOptionalControlsHidden:!0}),Gq=()=>(0,Sr.useContext)(Kq),qq=QS("InspectorControls"),Yq=QS("InspectorAdvancedControls"),Xq=QS("InspectorControlsBackground"),Zq=QS("InspectorControlsBorder"),Qq=QS("InspectorControlsColor"),Jq=QS("InspectorControlsFilter"),eY=QS("InspectorControlsDimensions"),tY=QS("InspectorControlsPosition"),nY=QS("InspectorControlsTypography"),rY={default:qq,advanced:Yq,background:Xq,border:Zq,color:Qq,dimensions:eY,filter:Jq,list:QS("InspectorControlsListView"),position:tY,settings:qq,styles:QS("InspectorControlsStyles"),typography:nY};function oY({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:r}){n&&(on("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const o=eA(),i=rY[t]?.Fill;return i?o?(0,Sr.createElement)(HS,{document},(0,Sr.createElement)(i,null,(t=>(0,Sr.createElement)(aY,{fillProps:t,children:e,resetAllFilter:r})))):null:("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm(`Unknown InspectorControls group "${t}" provided.`),null)}function iY({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:r}=(0,Sr.useContext)(Kq);return(0,Sr.useEffect)((()=>{if(e&&n&&r)return n(e),()=>{r(e)}}),[e,n,r]),t}function aY({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:r=[]}=n,o=(0,Sr.createElement)(iY,{resetAllFilter:t},e);return r.reduce(((e,[t,n])=>(0,Sr.createElement)(t,{...n},e)),o)}const sY=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const lY=Hh((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Vh(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),{...WR({color:DM.gray[900],size:$R(n),isBlock:!0,weight:PR.fontWeightHeading,...r}),...i,as:o}}(e);return(0,Sr.createElement)(og,{...n,ref:t})}),"Heading");const cY={columns:e=>SM("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:SM("column-gap:",KM(2),";row-gap:",KM(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},uY={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},dY=SM(cY.item.fullWidth," gap:",KM(2),";.components-dropdown-menu{margin:",KM(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",KM(6),";}",""),fY={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},pY=SM(cY.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",yB,"{margin-bottom:0;",kB,":last-child{margin-bottom:0;}}",xB,"{margin-bottom:0;}&& ",rB,"{label{line-height:1.4em;}}",""),mY={name:"eivff4",styles:"display:none"},hY={name:"16gsvie",styles:"min-width:200px"},gY=ng("span",{target:"ews648u0"})("color:",DM.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",UM({marginLeft:KM(3)})," text-transform:uppercase;"),vY=SM("color:",DM.gray[900],";&&[aria-disabled='true']{color:",DM.gray[700],";opacity:1;&:hover{color:",DM.gray[700],";}",gY,"{opacity:0.3;}}","");const bY=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,Sr.createElement)(gY,{"aria-hidden":!0},Hn("Reset"));return(0,Sr.createElement)(pH,{label:Hn("Defaults")},t.map((([t,o])=>o?(0,Sr.createElement)(hH,{key:t,className:e,role:"menuitem",label:Nn(Hn("Reset %s"),t),onClick:()=>{n(t),NN(Nn(Hn("%s reset to default"),t),"assertive")},suffix:r},t):(0,Sr.createElement)(hH,{key:t,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},yY=({items:e,toggleItem:t})=>e.length?(0,Sr.createElement)(pH,{label:Hn("Tools")},e.map((([e,n])=>{const r=Nn(Hn(n?"Hide and reset %s":"Show %s"),e);return(0,Sr.createElement)(hH,{key:e,icon:n?xM:null,isSelected:n,label:r,onClick:()=>{NN(Nn(Hn(n?"%s hidden and reset to default":"%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,kY=Hh(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:a,headingLevel:s=2,label:l,menuItems:c,resetAll:u,toggleItem:d,...f}=function(e){const{className:t,headingLevel:n=2,...r}=Vh(e,"ToolsPanelHeader"),o=jh(),i=(0,Sr.useMemo)((()=>o(dY,t)),[t,o]),a=(0,Sr.useMemo)((()=>o(hY)),[o]),s=(0,Sr.useMemo)((()=>o(fY)),[o]),l=(0,Sr.useMemo)((()=>o(vY)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=Gq();return{...r,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:a,hasMenuItems:u,headingClassName:s,headingLevel:n,menuItems:c,className:i}}(e);if(!l)return null;const p=Object.entries(c?.default||{}),m=Object.entries(c?.optional||{}),h=n?sW:sY,g=Nn($n("%s options","Button label to reveal tool panel options"),l),v=n?Hn("All options are currently hidden"):void 0,b=[...p,...m].some((([,e])=>e));return(0,Sr.createElement)(U$,{...f,ref:t},(0,Sr.createElement)(lY,{level:s,className:a},l),i&&(0,Sr.createElement)(vC,{icon:h,label:g,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:v}},(()=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(bY,{items:p,toggleItem:d,itemClassName:r}),(0,Sr.createElement)(yY,{items:m,toggleItem:d}),(0,Sr.createElement)(pH,null,(0,Sr.createElement)(hH,{"aria-disabled":!b,variant:"tertiary",onClick:()=>{b&&(u(),NN(Hn("All options reset"),"assertive"))}},Hn("Reset all")))))))}),"ToolsPanelHeader"),wY=kY,_Y=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},EY=e=>e&&0===Object.keys(e).length;function xY(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:a=!1,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l,...c}=Vh(e,"ToolsPanel"),u=(0,Sr.useRef)(!1),d=u.current;(0,Sr.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[f,p]=(0,Sr.useState)([]),[m,h]=(0,Sr.useState)([]),[g,v]=(0,Sr.useState)([]),b=(0,Sr.useCallback)((e=>{p((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),h((t=>t.includes(e.label)?t:[...t,e.label]))}),[p,h]),y=(0,Sr.useCallback)((e=>{p((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[p]),k=(0,Sr.useCallback)((e=>{v((t=>[...t,e]))}),[v]),w=(0,Sr.useCallback)((e=>{v((t=>t.filter((t=>t!==e))))}),[v]),[_,E]=(0,Sr.useState)({default:{},optional:{}});(0,Sr.useEffect)((()=>{E((e=>_Y({panelItems:f,shouldReset:!1,currentMenuItems:e,menuItemOrder:m})))}),[f,E,m]);const x=(0,Sr.useCallback)(((e,t="default")=>{E((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[E]),[S,C]=(0,Sr.useState)(!1);(0,Sr.useEffect)((()=>{if(EY(_?.default)&&!EY(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));C(e)}}),[_,C]);const I=jh(),T=(0,Sr.useMemo)((()=>{const e=i&&SM(">div:not( :first-of-type ){display:grid;",cY.columns(2)," ",cY.spacing," ",cY.item.fullWidth,";}","");const n=EY(_?.default)&&S&&uY;return I((e=>SM(cY.columns(e)," ",cY.spacing," border-top:",PR.borderWidth," solid ",DM.gray[300],";margin-top:-1px;padding:",KM(4),";",""))(2),e,n,t)}),[S,t,I,i,_]),P=(0,Sr.useCallback)((e=>{const t=f.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};E(r)}),[_,f,E]),N=(0,Sr.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=_Y({panelItems:f,menuItemOrder:m,shouldReset:!0});E(e)}),[f,g,r,E,m]),O=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},A=O(f),M=O([...f].reverse());return{...c,headingLevel:n,panelContext:(0,Sr.useMemo)((()=>({areAllOptionalControlsHidden:S,deregisterPanelItem:y,deregisterResetAllFilter:w,firstDisplayedItem:A,flagItemCustomization:x,hasMenuItems:!!f.length,isResetting:u.current,lastDisplayedItem:M,menuItems:_,panelId:o,registerPanelItem:b,registerResetAllFilter:k,shouldRenderPlaceholderItems:a,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l})),[S,y,w,A,x,M,_,o,f,k,b,a,s,l]),resetAllItems:N,toggleItem:P,className:T}}const SY={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 CY(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:a=3,isInline:s=!1,justify:l,rowGap:c,rows:u,templateColumns:d,templateRows:f,...p}=Vh(e,"Grid"),m=oR(Array.isArray(i)?i:[i]),h=oR(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${m}, 1fr )`,v=f||!!u&&`repeat( ${h}, 1fr )`,b=jh();return{...p,className:(0,Sr.useMemo)((()=>{const e=function(e){return e?SY[e]:{}}(n),i=SM({alignItems:t,display:s?"inline-grid":"grid",gap:`calc( ${PR.gridBase} * ${a} )`,gridTemplateColumns:g||void 0,gridTemplateRows:v||void 0,gridRowGap:c,gridColumnGap:o,justifyContent:l,verticalAlign:s?"middle":void 0,...e},"","");return b(i,r)}),[t,n,r,o,b,a,g,v,s,l,c])}}const IY=Hh((function(e,t){const n=CY(e);return(0,Sr.createElement)(og,{...n,ref:t})}),"Grid"),TY=Hh(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:a,headingLevel:s,...l}=xY(e);return(0,Sr.createElement)(IY,{...l,columns:2,ref:t},(0,Sr.createElement)(Kq.Provider,{value:o},(0,Sr.createElement)(wY,{label:r,resetAll:i,toggleItem:a,headingLevel:s}),n))}),"ToolsPanel"),PY=TY;function NY({children:e,group:t,label:n}){const{updateBlockAttributes:r}=Sq(qO),{getBlockAttributes:o,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:s}=BC(qO),l=a(),c=(0,Sr.useCallback)(((e=[])=>{const t={},n=s()?i():[l];n.forEach((n=>{const{style:r}=o(n);let i={style:r};e.forEach((e=>{i={...i,...e(i)}})),i={...i,style:DU(i.style)},t[n]=i})),r(n,t,!0)}),[o,i,s,l,r]);return(0,Sr.createElement)(PY,{className:`${t}-block-support-panel`,label:n,resetAll:c,key:l,panelId:l,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},e)}function OY({Slot:e,fillProps:t,...n}){const r=(0,Sr.useContext)(Kq),o=(0,Sr.useMemo)((()=>{var e;return{...null!=t?t:{},forwardedContext:[...null!==(e=t?.forwardedContext)&&void 0!==e?e:[],[Kq.Provider,{value:r}]]}}),[r,t]);return(0,Sr.createElement)(e,{...n,fillProps:o,bubblesVirtually:!0})}function AY({__experimentalGroup:e,group:t="default",label:n,fillProps:r,...o}){e&&(on("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const i=rY[t]?.Slot,a=sH(i?.__unstableName),s=(0,Sr.useContext)(tv),l=(0,Sr.useMemo)((()=>{var e;return{...null!=r?r:{},forwardedContext:[...null!==(e=r?.forwardedContext)&&void 0!==e?e:[],[tv.Provider,{value:s}]]}}),[s,r]);return i?a?.length?n?(0,Sr.createElement)(NY,{group:t,label:n},(0,Sr.createElement)(OY,{...o,fillProps:l,Slot:i})):(0,Sr.createElement)(i,{...o,fillProps:l,bubblesVirtually:!0}):null:("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm(`Unknown InspectorControls group "${t}" provided.`),null)}const MY=oY;MY.Slot=AY;const RY=e=>(0,Sr.createElement)(oY,{...e,group:"advanced"});RY.Slot=e=>(0,Sr.createElement)(AY,{...e,group:"advanced"}),RY.slotName="InspectorAdvancedControls";const BY=MY,LY=/[\s#]/g,DY={type:"string",source:"attribute",attribute:"id",selector:"*"};const zY=Hl((e=>t=>{const n=Fr(t.name,"anchor"),r=Iq();if(n&&t.isSelected){const n="web"===eI.OS,o=(0,Sr.createElement)(Rq,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:Hn("HTML anchor"),help:(0,Sr.createElement)(Sr.Fragment,null,Hn("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,Sr.createElement)(zq,{href:Hn("https://wordpress.org/documentation/article/page-jumps/")},Hn("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Hn("Add an anchor"),onChange:e=>{e=e.replace(LY,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(e,{...t}),n&&"default"===r&&(0,Sr.createElement)(BY,{group:"advanced"},o),!n&&"core/heading"===t.name&&(0,Sr.createElement)(BY,null,(0,Sr.createElement)(Uq,{title:Hn("Heading settings")},o)))}return(0,Sr.createElement)(e,{...t})}),"withInspectorControl");jt("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||Fr(e,"anchor")&&(e.attributes={...e.attributes,anchor:DY}),e})),jt("editor.BlockEdit","core/editor/anchor/with-inspector-control",zY),jt("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Fr(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const FY={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};jt("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||Fr(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:FY}),e})),jt("blocks.getSaveContent.extraProps","core/ariaLabel/save-props",(function(e,t,n){return Fr(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e}));const jY=Hl((e=>t=>{const n=Iq();return Fr(t.name,"customClassName",!0)&&t.isSelected?(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(e,{...t}),"default"===n&&(0,Sr.createElement)(BY,{group:"advanced"},(0,Sr.createElement)(Rq,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:Hn("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Hn("Separate multiple classes with spaces.")}))):(0,Sr.createElement)(e,{...t})}),"withInspectorControl");function VY(e,t){var n=(0,Sr.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,Sr.useRef)(!0),o=(0,Sr.useRef)(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs)),a=i?o.current:{inputs:t,result:e()};return(0,Sr.useEffect)((function(){r.current=!1,o.current=a}),[a]),a.result}jt("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Fr(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),jt("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",jY),jt("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Fr(t,"customClassName",!0)&&n.className&&(e.className=Vl()(e.className,n.className)),e})),jt("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){if(!Fr(e.name,"customClassName",!0))return e;if(1===r.length&&e.innerBlocks.length===t.length)return e;if(1===r.length&&t.length>1||r.length>1&&1===t.length)return e;if(t[n]){const r=t[n]?.attributes.className;if(r)return{...e,attributes:{...e.attributes,className:r}}}return e})),jt("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Fr(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([da(t.name),...e.className.split(" ")])].join(" ").trim():e.className=da(t.name)),e}));const HY=(e,t,n)=>{let r,o,i,a,s,l=0,c=0,u=!1,d=!1,f=!0;function p(t){const n=r,a=o;return r=void 0,o=void 0,c=t,i=e.apply(a,n),i}function m(e,t){a=setTimeout(e,t)}function h(e){return e-(s||0)}function g(e){const n=h(e);return void 0===s||n>=t||n<0||d&&e-c>=l}function v(){const e=Date.now();if(g(e))return y(e);m(v,function(e){const n=h(e),r=e-c,o=t-n;return d?Math.min(o,l-r):o}(e))}function b(){a=void 0}function y(e){return b(),f&&r?p(e):(r=o=void 0,i)}function k(){return void 0!==a}function w(...e){const n=Date.now(),a=g(n);if(r=e,o=this,s=n,a){if(!k())return function(e){return c=e,m(v,t),u?p(e):i}(s);if(d)return m(v,t),p(s)}return k()||m(v,t),i}return n&&(u=!!n.leading,d="maxWait"in n,void 0!==n.maxWait&&(l=Math.max(n.maxWait,t)),f="trailing"in n?!!n.trailing:f),w.cancel=function(){void 0!==a&&clearTimeout(a),c=0,b(),r=s=o=void 0},w.flush=function(){return k()?y(Date.now()):i},w.pending=k,w};function $Y(e,t,n){const r=VY((()=>HY(e,null!=t?t:0,n)),[e,t,n]);return(0,Sr.useEffect)((()=>()=>r.cancel()),[r]),r}function UY(e){return Hl((t=>{const n="core/with-filters/"+e;let r;class o extends Sr.Component{constructor(n){super(n),void 0===r&&(r=qt(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&(Ft("hookRemoved",n,a),Ft("hookAdded",n,a))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&(Vt("hookRemoved",n),Vt("hookAdded",n))}render(){return(0,Sr.createElement)(r,{...this.props})}}o.instances=[];const i=HY((()=>{r=qt(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),16);function a(t){t===e&&i()}return o}),"withFilters")}const WY=Hl((function(e){return e.prototype instanceof Sr.Component?class extends e{shouldComponentUpdate(e,t){return!ca(e,this.props)||!ca(t,this.state)}}:class extends Sr.Component{shouldComponentUpdate(e){return!ca(e,this.props)}render(){return(0,Sr.createElement)(e,{...this.props})}}}),"pure"),KY=e=>Hl((t=>WY((n=>{const r=BC(((t,r)=>e(t,n,r)));return(0,Sr.createElement)(t,{...n,...r})}))),"withSelect"),GY="undefined"!=typeof window?Sr.useLayoutEffect:Sr.useEffect,qY=(e,t)=>{const n=IC(),r=(0,Sr.useRef)(e);return GY((()=>{r.current=e})),(0,Sr.useMemo)((()=>{const e=r.current(n.dispatch,n);return Object.fromEntries(Object.entries(e).map((([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>r.current(n.dispatch,n)[e](...t)]))))}),[n,...t])},YY=e=>Hl((t=>n=>{const r=qY(((t,r)=>e(t,n,r)),[]);return(0,Sr.createElement)(t,{...n,...r})}),"withDispatch");const XY=function(e){return Hl((t=>n=>e(n)?(0,Sr.createElement)(t,{...n}):null),"ifCondition")};function ZY(e){const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;const n=t.getElementsByTagName("*");let r=n.length;for(;r--;){const e=n[r];if("SCRIPT"===e.tagName)zs(e);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}return t.innerHTML}const QY=(0,Sr.createContext)({});function JY({value:e,children:t}){const n=(0,Sr.useContext)(QY),r=(0,Sr.useMemo)((()=>({...n,...e})),[n,e]);return(0,Sr.createElement)(QY.Provider,{value:r,children:t})}const eX=QY,tX={},nX=UY("editor.BlockEdit")((e=>{const{name:t}=e,n=Lr(t);if(!n)return null;const r=n.edit||n.save;return(0,Sr.createElement)(r,{...e})})),rX=e=>{const{attributes:t={},name:n}=e,r=Lr(n),o=(0,Sr.useContext)(eX),i=(0,Sr.useMemo)((()=>r&&r.usesContext?Object.fromEntries(Object.entries(o).filter((([e])=>r.usesContext.includes(e)))):tX),[r,o]);if(!r)return null;if(r.apiVersion>1)return(0,Sr.createElement)(nX,{...e,context:i});const a=Fr(r,"className",!0)?da(n):null,s=Vl()(a,t.className,e.className);return(0,Sr.createElement)(nX,{...e,context:i,className:s})};function oX(e){const{name:t,isSelected:n,clientId:r,attributes:o={},__unstableLayoutClassNames:i}=e,{layout:a=null}=o,s={name:t,isSelected:n,clientId:r,layout:Fr(t,"layout",!1)||Fr(t,"__experimentalLayout",!1)?a:null,__unstableLayoutClassNames:i};return(0,Sr.createElement)(QO,{value:(0,Sr.useMemo)((()=>s),Object.values(s))},(0,Sr.createElement)(rX,{...e}))}function iX(e){return Ls(e.ownerDocument.defaultView),e.ownerDocument.defaultView.getComputedStyle(e)}function aX(e,t="vertical"){if(e){if(("vertical"===t||"all"===t)&&e.scrollHeight>e.clientHeight){const{overflowY:t}=iX(e);if(/(auto|scroll)/.test(t))return e}if(("horizontal"===t||"all"===t)&&e.scrollWidth>e.clientWidth){const{overflowX:t}=iX(e);if(/(auto|scroll)/.test(t))return e}return e.ownerDocument===e.parentNode?e:aX(e.parentNode,t)}}const sX=new Set(["alert","status","log","marquee","timer"]),lX=[];function cX(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&sX.has(t))}let uX=0;const dX=(0,Sr.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:a=!0,shouldCloseOnClickOutside:s=!0,isDismissible:l=!0,aria:c={labelledby:void 0,describedby:void 0},onRequestClose:u,icon:d,closeButtonLabel:f,children:p,style:m,overlayClassName:h,className:g,contentLabel:v,onKeyDown:b,isFullScreen:y=!1,size:k,headerActions:w=null,__experimentalHideHeader:_=!1}=e,E=(0,Sr.useRef)(),x=Wl(dX),S=o?`components-modal-header-${x}`:c.labelledby,C=$x("firstContentElement"===i?"firstElement":i),I=Hx(),T=Wx(),P=Gx(u),N=(0,Sr.useRef)(null),O=(0,Sr.useRef)(null),[A,M]=(0,Sr.useState)(!1),[R,B]=(0,Sr.useState)(!1);let L;y||"fill"===k?L="is-full-screen":k&&(L=`has-size-${k}`);const D=(0,Sr.useCallback)((()=>{if(!N.current)return;const e=aX(N.current);N.current===e?B(!0):B(!1)}),[N]);(0,Sr.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];lX.push(n);for(const r of t)r!==e&&cX(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(E.current),()=>function(){const e=lX.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]),(0,Sr.useEffect)((()=>(uX++,1===uX&&document.body.classList.add(n),()=>{uX--,0===uX&&document.body.classList.remove(n)})),[n]),(0,Sr.useLayoutEffect)((()=>{if(!window.ResizeObserver||!O.current)return;const e=new ResizeObserver(D);return e.observe(O.current),D(),()=>{e.disconnect()}}),[D,O]);const z=(0,Sr.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!A&&n>0?M(!0):A&&n<=0&&M(!1)}),[A]);let F=null;const j={onPointerDown:e=>{e.isPrimary&&e.target===e.currentTarget&&(F=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===F;F=null,0===t&&n&&u()}};return(0,cf.createPortal)((0,Sr.createElement)("div",{ref:Vg([E,t]),className:Vl()("components-modal__screen-overlay",h),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||a&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),u&&u(e))},...s?j:{}},(0,Sr.createElement)(HS,{document},(0,Sr.createElement)("div",{className:Vl()("components-modal__frame",L,g),style:m,ref:Vg([I,T,"firstContentElement"!==i?C:null]),role:r,"aria-label":v,"aria-labelledby":v?void 0:S,"aria-describedby":c.describedby,tabIndex:-1,...s?P:{},onKeyDown:b},(0,Sr.createElement)("div",{className:Vl()("components-modal__content",{"hide-header":_,"is-scrollable":R,"has-scrolled-content":A}),role:"document",onScroll:z,ref:N,"aria-label":R?Hn("Scrollable section"):void 0,tabIndex:R?0:void 0},!_&&(0,Sr.createElement)("div",{className:"components-modal__header"},(0,Sr.createElement)("div",{className:"components-modal__header-heading-container"},d&&(0,Sr.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},d),o&&(0,Sr.createElement)("h1",{id:S,className:"components-modal__header-heading"},o)),w,l&&(0,Sr.createElement)(lg,{onClick:u,icon:Yx,label:f||Hn("Close")})),(0,Sr.createElement)("div",{ref:Vg([O,"firstContentElement"===i?C:null])},p))))),document.body)})),fX=dX;const pX=function({className:e,actions:t,children:n,secondaryActions:r}){return(0,Sr.createElement)("div",{style:{display:"contents",all:"initial"}},(0,Sr.createElement)("div",{className:Vl()(e,"block-editor-warning")},(0,Sr.createElement)("div",{className:"block-editor-warning__contents"},(0,Sr.createElement)("p",{className:"block-editor-warning__message"},n),(Sr.Children.count(t)>0||r)&&(0,Sr.createElement)("div",{className:"block-editor-warning__actions"},Sr.Children.count(t)>0&&Sr.Children.map(t,((e,t)=>(0,Sr.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,Sr.createElement)(vC,{className:"block-editor-warning__secondary",icon:sY,label:Hn("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,Sr.createElement)(pH,null,r.map(((e,t)=>(0,Sr.createElement)(hH,{onClick:e.onClick,key:t},e.title))))))))))};var mX=o(7630);function hX({title:e,rawContent:t,renderedContent:n,action:r,actionText:o,className:i}){return(0,Sr.createElement)("div",{className:i},(0,Sr.createElement)("div",{className:"block-editor-block-compare__content"},(0,Sr.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,Sr.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,Sr.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,Sr.createElement)(Ri,null,ZY(n)))),(0,Sr.createElement)("div",{className:"block-editor-block-compare__action"},(0,Sr.createElement)(lg,{variant:"secondary",tabIndex:"0",onClick:r},o)))}const gX=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:o}){const i=function(e){const t=(Array.isArray(e)?e:[e]).map((e=>ha(e.name,e.attributes,e.innerBlocks)));return t.join("")}(r(e)),a=(s=e.originalContent,l=i,(0,mX.Kx)(s,l).map(((e,t)=>{const n=Vl()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,Sr.createElement)("span",{key:t,className:n},e.value)})));var s,l;return(0,Sr.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,Sr.createElement)(hX,{title:Hn("Current"),className:"block-editor-block-compare__current",action:t,actionText:Hn("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,Sr.createElement)(hX,{title:Hn("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:o,rawContent:a,renderedContent:i}))},vX=e=>sl({HTML:e.originalContent});function bX({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:r}=BC((t=>{const{canInsertBlockType:n,getBlock:r,getBlockRootClientId:o}=t(qO),i=o(e);return{block:r(e),canInsertHTMLBlock:n("core/html",i),canInsertClassicBlock:n("core/freeform",i)}}),[e]),{replaceBlock:o}=Sq(qO),[i,a]=(0,Sr.useState)(!1),s=(0,Sr.useCallback)((()=>a(!1)),[]),l=(0,Sr.useMemo)((()=>({toClassic(){const e=Yr("core/freeform",{content:t.originalContent});return o(t.clientId,e)},toHTML(){const e=Yr("core/html",{content:t.originalContent});return o(t.clientId,e)},toBlocks(){const e=vX(t);return o(t.clientId,e)},toRecoveredBlock(){const e=Yr(t.name,t.attributes,t.innerBlocks);return o(t.clientId,e)}})),[t,o]),c=(0,Sr.useMemo)((()=>[{title:$n("Resolve","imperative verb"),onClick:()=>a(!0)},n&&{title:Hn("Convert to HTML"),onClick:l.toHTML},r&&{title:Hn("Convert to Classic Block"),onClick:l.toClassic}].filter(Boolean)),[n,r,l]);return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(pX,{actions:[(0,Sr.createElement)(lg,{key:"recover",onClick:l.toRecoveredBlock,variant:"primary"},Hn("Attempt Block Recovery"))],secondaryActions:c},Hn("This block contains unexpected or invalid content.")),i&&(0,Sr.createElement)(fX,{title:Hn("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare"},(0,Sr.createElement)(gX,{block:t,onKeep:l.toHTML,onConvert:l.toBlocks,convertor:vX,convertButtonText:Hn("Convert to Blocks")})))}const yX=(0,Sr.createElement)(pX,{className:"block-editor-block-list__block-crash-warning"},Hn("This block has encountered an error and cannot be previewed.")),kX=()=>yX;class wX extends Sr.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}const _X=wX;var EX=o(4042);const xX=function({clientId:e}){const[t,n]=(0,Sr.useState)(""),r=BC((t=>t(qO).getBlock(e)),[e]),{updateBlock:o}=Sq(qO);return(0,Sr.useEffect)((()=>{n(ga(r))}),[r]),(0,Sr.createElement)(EX.Z,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const i=Lr(r.name);if(!i)return;const a=bs(i,t,r.attributes),s=t||ha(i,a),[l]=t?ns({...r,attributes:a,originalContent:s}):[!0];o(e,{attributes:a,originalContent:s,isValid:l}),t||n(s)},onChange:e=>n(e.target.value)})};function SX({isDisabled:e=!1}={}){return Vx((t=>{if(e)return;const n=t?.ownerDocument?.defaultView;if(!n)return;const r=[],o=()=>{t.childNodes.forEach((e=>{e instanceof n.HTMLElement&&(e.getAttribute("inert")||(e.setAttribute("inert","true"),r.push((()=>{e.removeAttribute("inert")}))))}))},i=HY(o,0,{leading:!0});o();const a=new window.MutationObserver(i);return a.observe(t,{childList:!0}),()=>{a&&a.disconnect(),i.cancel(),r.forEach((e=>e()))}}),[e])}var CX=Object.defineProperty,IX={};((e,t)=>{for(var n in t)CX(e,n,{get:t[n],enumerable:!0})})(IX,{assign:()=>aZ,colors:()=>rZ,createStringInterpolator:()=>JX,skipAnimation:()=>oZ,to:()=>eZ,willAdvance:()=>iZ});var TX=UX(),PX=e=>jX(e,TX),NX=UX();PX.write=e=>jX(e,NX);var OX=UX();PX.onStart=e=>jX(e,OX);var AX=UX();PX.onFrame=e=>jX(e,AX);var MX=UX();PX.onFinish=e=>jX(e,MX);var RX=[];PX.setTimeout=(e,t)=>{const n=PX.now()+t,r=()=>{const e=RX.findIndex((e=>e.cancel==r));~e&&RX.splice(e,1),zX-=~e?1:0},o={time:n,handler:e,cancel:r};return RX.splice(BX(n),0,o),zX+=1,VX(),o};var BX=e=>~(~RX.findIndex((t=>t.time>e))||~RX.length);PX.cancel=e=>{OX.delete(e),AX.delete(e),MX.delete(e),TX.delete(e),NX.delete(e)},PX.sync=e=>{FX=!0,PX.batchedUpdates(e),FX=!1},PX.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,PX.onStart(n)}return r.handler=e,r.cancel=()=>{OX.delete(n),t=null},r};var LX="undefined"!=typeof window?window.requestAnimationFrame:()=>{};PX.use=e=>LX=e,PX.now="undefined"!=typeof performance?()=>performance.now():Date.now,PX.batchedUpdates=e=>e(),PX.catch=console.error,PX.frameLoop="always",PX.advance=()=>{"demand"!==PX.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$X()};var DX=-1,zX=0,FX=!1;function jX(e,t){FX?(t.delete(e),e(0)):(t.add(e),VX())}function VX(){DX<0&&(DX=0,"demand"!==PX.frameLoop&&LX(HX))}function HX(){~DX&&(LX(HX),PX.batchedUpdates($X))}function $X(){const e=DX;DX=PX.now();const t=BX(DX);t&&(WX(RX.splice(0,t),(e=>e.handler())),zX-=t),zX?(OX.flush(),TX.flush(e?Math.min(64,DX-e):16.667),AX.flush(),NX.flush(),MX.flush()):DX=-1}function UX(){let e=new Set,t=e;return{add(n){zX+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(zX-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,zX-=t.size,WX(t,(t=>t(n)&&e.add(t))),zX+=e.size,t=e)}}}function WX(e,t){e.forEach((e=>{try{t(e)}catch(e){PX.catch(e)}}))}function KX(){}var GX={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function qX(e,t){if(GX.arr(e)){if(!GX.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var YX=(e,t)=>e.forEach(t);function XX(e,t,n){if(GX.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var ZX=e=>GX.und(e)?[]:GX.arr(e)?e:[e];function QX(e,t){if(e.size){const n=Array.from(e);e.clear(),YX(n,t)}}var JX,eZ,tZ=(e,...t)=>QX(e,(e=>e(...t))),nZ=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),rZ=null,oZ=!1,iZ=KX,aZ=e=>{e.to&&(eZ=e.to),e.now&&(PX.now=e.now),void 0!==e.colors&&(rZ=e.colors),null!=e.skipAnimation&&(oZ=e.skipAnimation),e.createStringInterpolator&&(JX=e.createStringInterpolator),e.requestAnimationFrame&&PX.use(e.requestAnimationFrame),e.batchedUpdates&&(PX.batchedUpdates=e.batchedUpdates),e.willAdvance&&(iZ=e.willAdvance),e.frameLoop&&(PX.frameLoop=e.frameLoop)},sZ=new Set,lZ=[],cZ=[],uZ=0,dZ={get idle(){return!sZ.size&&!lZ.length},start(e){uZ>e.priority?(sZ.add(e),PX.onStart(fZ)):(pZ(e),PX(hZ))},advance:hZ,sort(e){if(uZ)PX.onFrame((()=>dZ.sort(e)));else{const t=lZ.indexOf(e);~t&&(lZ.splice(t,1),mZ(e))}},clear(){lZ=[],sZ.clear()}};function fZ(){sZ.forEach(pZ),sZ.clear(),PX(hZ)}function pZ(e){lZ.includes(e)||mZ(e)}function mZ(e){lZ.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(lZ,(t=>t.priority>e.priority)),0,e)}function hZ(e){const t=cZ;for(let n=0;n<lZ.length;n++){const r=lZ[n];uZ=r.priority,r.idle||(iZ(r),r.advance(e),r.idle||t.push(r))}return uZ=0,(cZ=lZ).length=0,(lZ=t).length>0}var gZ="[-+]?\\d*\\.?\\d+",vZ=gZ+"%";function bZ(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yZ=new RegExp("rgb"+bZ(gZ,gZ,gZ)),kZ=new RegExp("rgba"+bZ(gZ,gZ,gZ,gZ)),wZ=new RegExp("hsl"+bZ(gZ,vZ,vZ)),_Z=new RegExp("hsla"+bZ(gZ,vZ,vZ,gZ)),EZ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xZ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,SZ=/^#([0-9a-fA-F]{6})$/,CZ=/^#([0-9a-fA-F]{8})$/;function IZ(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 TZ(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=IZ(o,r,e+1/3),a=IZ(o,r,e),s=IZ(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function PZ(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function NZ(e){return(parseFloat(e)%360+360)%360/360}function OZ(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function AZ(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function MZ(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=SZ.exec(e))?parseInt(t[1]+"ff",16)>>>0:rZ&&void 0!==rZ[e]?rZ[e]:(t=yZ.exec(e))?(PZ(t[1])<<24|PZ(t[2])<<16|PZ(t[3])<<8|255)>>>0:(t=kZ.exec(e))?(PZ(t[1])<<24|PZ(t[2])<<16|PZ(t[3])<<8|OZ(t[4]))>>>0:(t=EZ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=CZ.exec(e))?parseInt(t[1],16)>>>0:(t=xZ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wZ.exec(e))?(255|TZ(NZ(t[1]),AZ(t[2]),AZ(t[3])))>>>0:(t=_Z.exec(e))?(TZ(NZ(t[1]),AZ(t[2]),AZ(t[3]))|OZ(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var RZ=(e,t,n)=>{if(GX.fun(e))return e;if(GX.arr(e))return RZ({range:e,output:t,extrapolate:n});if(GX.str(e.output[0]))return JX(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var BZ=1.70158,LZ=1.525*BZ,DZ=BZ+1,zZ=2*Math.PI/3,FZ=2*Math.PI/4.5,jZ=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},VZ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>DZ*e*e*e-BZ*e*e,easeOutBack:e=>1+DZ*Math.pow(e-1,3)+BZ*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-LZ)/2:(Math.pow(2*e-2,2)*((LZ+1)*(2*e-2)+LZ)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*zZ),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*zZ)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*FZ)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*FZ)/2+1,easeInBounce:e=>1-jZ(1-e),easeOutBounce:jZ,easeInOutBounce:e=>e<.5?(1-jZ(1-2*e))/2:(1+jZ(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},HZ=Symbol.for("FluidValue.get"),$Z=Symbol.for("FluidValue.observers"),UZ=e=>Boolean(e&&e[HZ]),WZ=e=>e&&e[HZ]?e[HZ]():e,KZ=e=>e[$Z]||null;function GZ(e,t){const n=e[$Z];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var qZ=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");YZ(this,e)}},YZ=(e,t)=>JZ(e,HZ,t);function XZ(e,t){if(e[HZ]){let n=e[$Z];n||JZ(e,$Z,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ZZ(e,t){const n=e[$Z];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[$Z]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var QZ,JZ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eQ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,tQ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,nQ=new RegExp(`(${eQ.source})(%|[a-z]+)`,"i"),rQ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,oQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,iQ=e=>{const[t,n]=aQ(e);if(!t||nZ())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&oQ.test(n)?iQ(n):n||e},aQ=e=>{const t=oQ.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},sQ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,lQ=e=>{QZ||(QZ=rZ?new RegExp(`(${Object.keys(rZ).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>WZ(e).replace(oQ,iQ).replace(tQ,MZ).replace(QZ,MZ))),n=t.map((e=>e.match(eQ).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>RZ({...e,output:t})));return e=>{const n=!nQ.test(t[0])&&t.find((e=>nQ.test(e)))?.replace(eQ,"");let r=0;return t[0].replace(eQ,(()=>`${o[r++](e)}${n||""}`)).replace(rQ,sQ)}},cQ="react-spring: ",uQ=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${cQ}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},dQ=uQ(console.warn);var fQ=uQ(console.warn);function pQ(e){return GX.str(e)&&("#"==e[0]||/\d/.test(e)||!nZ()&&oQ.test(e)||e in(rZ||{}))}var mQ=nZ()?Sr.useEffect:Sr.useLayoutEffect,hQ=()=>{const e=(0,Sr.useRef)(!1);return mQ((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function gQ(){const e=(0,Sr.useState)()[1],t=hQ();return()=>{t.current&&e(Math.random())}}var vQ=e=>(0,Sr.useEffect)(e,bQ),bQ=[];function yQ(e){const t=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>{t.current=e})),t.current}var kQ=Symbol.for("Animated:node"),wQ=e=>e&&e[kQ],_Q=(e,t)=>{return n=e,r=kQ,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},EQ=e=>e&&e[kQ]&&e[kQ].getPayload(),xQ=class{constructor(){_Q(this,this)}getPayload(){return this.payload||[]}},SQ=class extends xQ{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,GX.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new SQ(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return GX.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,GX.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},CQ=class extends SQ{constructor(e){super(0),this._string=null,this._toString=RZ({output:[e,e]})}static create(e){return new CQ(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(GX.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=RZ({output:[this.getValue(),e]})),this._value=0,super.reset()}},IQ={dependencies:null},TQ=class extends xQ{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return XX(this.source,((n,r)=>{var o;(o=n)&&o[kQ]===o?t[r]=n.getValue(e):UZ(n)?t[r]=WZ(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&YX(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return XX(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){IQ.dependencies&&UZ(e)&&IQ.dependencies.add(e);const t=EQ(e);t&&YX(t,(e=>this.add(e)))}},PQ=class extends TQ{constructor(e){super(e)}static create(e){return new PQ(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(NQ)),!0)}};function NQ(e){return(pQ(e)?CQ:SQ).create(e)}function OQ(e){const t=wQ(e);return t?t.constructor:GX.arr(e)?PQ:pQ(e)?CQ:SQ}var AQ=(e,t)=>{const n=!GX.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Sr.forwardRef)(((r,o)=>{const i=(0,Sr.useRef)(null),a=n&&(0,Sr.useCallback)((e=>{i.current=function(e,t){e&&(GX.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,l]=function(e,t){const n=new Set;IQ.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new TQ(e),IQ.dependencies=null,[e,n]}(r,t),c=gQ(),u=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new MQ(u,l),f=(0,Sr.useRef)();mQ((()=>(f.current=d,YX(l,(e=>XZ(e,d))),()=>{f.current&&(YX(f.current.deps,(e=>ZZ(e,f.current))),PX.cancel(f.current.update))}))),(0,Sr.useEffect)(u,[]),vQ((()=>()=>{const e=f.current;YX(e.deps,(t=>ZZ(t,e)))}));const p=t.getComponentProps(s.getValue());return Sr.createElement(e,{...p,ref:a})}))},MQ=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&PX.write(this.update)}};var RQ=Symbol.for("AnimatedComponent"),BQ=e=>GX.str(e)?e:e&&GX.str(e.displayName)?e.displayName:GX.fun(e)&&e.name||null;function LQ(e,...t){return GX.fun(e)?e(...t):e}var DQ=(e,t)=>!0===e||!!(t&&e&&(GX.fun(e)?e(t):ZX(e).includes(t))),zQ=(e,t)=>GX.obj(e)?t&&e[t]:e,FQ=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,jQ=e=>e,VQ=(e,t=jQ)=>{let n=HQ;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);GX.und(n)||(r[o]=n)}return r},HQ=["config","onProps","onStart","onChange","onPause","onResume","onRest"],$Q={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function UQ(e){const t=function(e){const t={};let n=0;if(XX(e,((e,r)=>{$Q[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return XX(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function WQ(e){return e=WZ(e),GX.arr(e)?e.map(WQ):pQ(e)?IX.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function KQ(e){for(const t in e)return!0;return!1}function GQ(e){return GX.fun(e)||GX.arr(e)&&GX.obj(e[0])}function qQ(e,t){e.ref?.delete(e),t?.delete(e)}function YQ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var XQ={tension:170,friction:26,mass:1,damping:1,easing:VZ.linear,clamp:!1},ZQ=class{constructor(){this.velocity=0,Object.assign(this,XQ)}};function QQ(e,t){if(GX.und(t.decay)){const n=!GX.und(t.tension)||!GX.und(t.friction);!n&&GX.und(t.frequency)&&GX.und(t.damping)&&GX.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var JQ=[],eJ=class{constructor(){this.changed=!1,this.values=JQ,this.toValues=null,this.fromValues=JQ,this.config=new ZQ,this.immediate=!1}};function tJ(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=DQ(n.cancel??r?.cancel,t);if(u)p();else{GX.und(n.pause)||(o.paused=DQ(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||DQ(e,t)),l=LQ(n.delay||0,t),e?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(c),c.cancel(),l=c.time-PX.now()}function f(){l>0&&!IX.skipAnimation?(o.delayed=!0,c=PX.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){s(e)}}}))}var nJ=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?iJ(e.get()):t.every((e=>e.noop))?rJ(e.get()):oJ(e.get(),t.every((e=>e.finished))),rJ=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),oJ=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),iJ=e=>({value:e,cancelled:!0,finished:!1});function aJ(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=VQ(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const f=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=o<=(n.cancelId||0)&&iJ(r)||o!==n.asyncId&&oJ(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const i=new lJ,a=new cJ;return(async()=>{if(IX.skipAnimation)throw sJ(n),a.result=oJ(r,!1),d(a),a;p(i);const s=GX.obj(e)?{...e}:{...t,to:e};s.parentId=o,XX(c,((e,t)=>{GX.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let h;if(IX.skipAnimation)return sJ(n),oJ(r,!1);try{let t;t=GX.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),f]),h=oJ(r.get(),!0,!1)}catch(e){if(e instanceof lJ)h=e.result;else{if(!(e instanceof cJ))throw e;h=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return GX.fun(a)&&PX.batchedUpdates((()=>{a(h,r,r.item)})),h})():l}function sJ(e,t){QX(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var lJ=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},cJ=class extends Error{constructor(){super("SkipAnimationSignal")}},uJ=e=>e instanceof fJ,dJ=1,fJ=class extends qZ{constructor(){super(...arguments),this.id=dJ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=wQ(this);return e&&e.getValue()}to(...e){return IX.to(this,e)}interpolate(...e){return dQ(`${cQ}The "interpolate" function is deprecated in v9 (use "to" instead)`),IX.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){GZ(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||dZ.sort(this),GZ(this,{type:"priority",parent:this,priority:e})}},pJ=Symbol.for("SpringPhase"),mJ=e=>(1&e[pJ])>0,hJ=e=>(2&e[pJ])>0,gJ=e=>(4&e[pJ])>0,vJ=(e,t)=>t?e[pJ]|=3:e[pJ]&=-3,bJ=(e,t)=>t?e[pJ]|=4:e[pJ]&=-5,yJ=class extends fJ{constructor(e,t){if(super(),this.animation=new eJ,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!GX.und(e)||!GX.und(t)){const n=GX.obj(e)?{...e}:{...t,from:e};GX.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hJ(this)||this._state.asyncTo)||gJ(this)}get goal(){return WZ(this.animation.to)}get velocity(){const e=wQ(this);return e instanceof SQ?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return mJ(this)}get isAnimating(){return hJ(this)}get isPaused(){return gJ(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=EQ(r.to);!a&&UZ(r.to)&&(o=ZX(WZ(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==CQ?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=GX.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const f=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(GX.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=f,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||f/10,r=i.clamp?0:i.bounce,l=!GX.und(r),p=n==c?s.v0>0:n<c;let m,h=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(m=Math.abs(a)>t,m||(u=Math.abs(c-d)<=f,!u));++e){l&&(h=d==c||d>c==p,h&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=wQ(this),l=s.getValue();if(t){const e=WZ(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return PX.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hJ(this)){const{to:e,config:t}=this.animation;PX.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return GX.und(e)?(n=this.queue||[],this.queue=[]):n=[GX.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>nJ(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),sJ(this._state,e&&this._lastCallId),PX.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=GX.obj(n)?n[t]:n,(null==n||GQ(n))&&(n=void 0),r=GX.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return mJ(this)||(e.reverse&&([n,r]=[r,n]),r=WZ(r),GX.und(r)?wQ(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,VQ(e,((e,t)=>/^on/.test(t)?zQ(e,n):e))),CJ(this,e,"onProps"),IJ(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return tJ(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{gJ(this)||(bJ(this,!0),tZ(i.pauseQueue),IJ(this,"onPause",oJ(this,kJ(this,this.animation.to)),this))},resume:()=>{gJ(this)&&(bJ(this,!1),hJ(this)&&this._resume(),tZ(i.resumeQueue),IJ(this,"onResume",oJ(this,kJ(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=wJ(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(iJ(this));const r=!GX.und(e.to),o=!GX.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(iJ(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!GX.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const f=!qX(d,c);f&&(s.from=d),d=WZ(d);const p=!qX(u,l);p&&this._focus(u);const m=GQ(t.to),{config:h}=s,{decay:g,velocity:v}=h;(r||o)&&(h.velocity=0),t.config&&!m&&function(e,t,n){n&&(QQ(n={...n},t),t={...n,...t}),QQ(e,t),Object.assign(e,t);for(const t in XQ)null==e[t]&&(e[t]=XQ[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;GX.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(h,LQ(t.config,i),t.config!==a.config?LQ(a.config,i):void 0);let b=wQ(this);if(!b||GX.und(u))return n(oJ(this,!0));const y=GX.und(t.reset)?o&&!t.default:!GX.und(d)&&DQ(t.reset,i),k=y?d:this.get(),w=WQ(u),_=GX.num(w)||GX.arr(w)||pQ(w),E=!m&&(!_||DQ(a.immediate||t.immediate,i));if(p){const e=OQ(u);if(e!==b.constructor){if(!E)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(w)}}const x=b.constructor;let S=UZ(u),C=!1;if(!S){const e=y||!mJ(this)&&f;(p||e)&&(C=qX(WQ(k),w),S=!C),(qX(s.immediate,E)||E)&&qX(h.decay,g)&&qX(h.velocity,v)||(S=!0)}if(C&&hJ(this)&&(s.changed&&!y?S=!0:S||this._stop(l)),!m&&((S||UZ(l))&&(s.values=b.getPayload(),s.toValues=UZ(u)?null:x==CQ?[1]:ZX(w)),s.immediate!=E&&(s.immediate=E,E||y||this._set(l)),S)){const{onRest:e}=s;YX(SJ,(e=>CJ(this,t,e)));const r=oJ(this,kJ(this,l));tZ(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&PX.batchedUpdates((()=>{s.changed=!y,e?.(r,this),y?LQ(a.onRest,r):s.onStart?.(r,this)}))}y&&this._set(k),m?n(aJ(t.to,t,this._state,this)):S?this._start():hJ(this)&&!p?this._pendingCalls.add(n):n(rJ(k))}_focus(e){const t=this.animation;e!==t.to&&(KZ(this)&&this._detach(),t.to=e,KZ(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;UZ(t)&&(XZ(t,this),uJ(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;UZ(e)&&ZZ(e,this)}_set(e,t=!0){const n=WZ(e);if(!GX.und(n)){const e=wQ(this);if(!e||!qX(n,e.getValue())){const r=OQ(n);e&&e.constructor==r?e.setValue(n):_Q(this,r.create(n)),e&&PX.batchedUpdates((()=>{this._onChange(n,t)}))}}return wQ(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,IJ(this,"onStart",oJ(this,kJ(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),LQ(this.animation.onChange,e,this)),LQ(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;wQ(this).reset(WZ(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),hJ(this)||(vJ(this,!0),gJ(this)||this._resume())}_resume(){IX.skipAnimation?this.finish():dZ.start(this)}_stop(e,t){if(hJ(this)){vJ(this,!1);const n=this.animation;YX(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),GZ(this,{type:"idle",parent:this});const r=t?iJ(this.get()):oJ(this.get(),kJ(this,e??n.to));tZ(this._pendingCalls,r),n.changed&&(n.changed=!1,IJ(this,"onRest",r,this))}}};function kJ(e,t){const n=WQ(t);return qX(WQ(e.get()),n)}function wJ(e,t=e.loop,n=e.to){const r=LQ(t);if(r){const o=!0!==r&&UQ(r),i=(o||e).reverse,a=!o||o.reset;return _J({...e,loop:t,default:!1,pause:void 0,to:!i||GQ(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function _J(e){const{to:t,from:n}=e=UQ(e),r=new Set;return GX.obj(t)&&xJ(t,r),GX.obj(n)&&xJ(n,r),e.keys=r.size?Array.from(r):null,e}function EJ(e){const t=_J(e);return GX.und(t.default)&&(t.default=VQ(t)),t}function xJ(e,t){XX(e,((e,n)=>null!=e&&t.add(n)))}var SJ=["onStart","onRest","onChange","onPause","onResume"];function CJ(e,t,n){e.animation[n]=t[n]!==FQ(t,n)?zQ(t[n],e.key):void 0}function IJ(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var TJ=["onStart","onChange","onRest"],PJ=1,NJ=class{constructor(e,t){this.id=PJ++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];GX.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_J(e)),this}start(e){let{queue:t}=this;return e?t=ZX(e).map(_J):this.queue=[],this._flush?this._flush(this,t):(DJ(this,t),OJ(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;YX(ZX(t),(t=>n[t].stop(!!e)))}else sJ(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(GX.und(e))this.start({pause:!0});else{const t=this.springs;YX(ZX(e),(e=>t[e].pause()))}return this}resume(e){if(GX.und(e))this.start({pause:!1});else{const t=this.springs;YX(ZX(e),(e=>t[e].resume()))}return this}each(e){XX(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,QX(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&QX(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,QX(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}PX.onFrame(this._onFrame)}};function OJ(e,t){return Promise.all(t.map((t=>AJ(e,t)))).then((t=>nJ(e,t)))}async function AJ(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=GX.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=GX.arr(o)||GX.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):YX(TJ,(n=>{const r=t[n];if(GX.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,tZ(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===FQ(t,"cancel");(u||p&&d.asyncId)&&f.push(tJ(++e._lastAsyncId,{props:t,state:d,actions:{pause:KX,resume:KX,start(t,n){p?(sJ(d,e._lastAsyncId),n(iJ(e))):(t.onRest=s,n(aJ(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=nJ(e,await Promise.all(f));if(a&&m.finished&&(!n||!m.noop)){const n=wJ(t,a,o);if(n)return DJ(e,[n]),AJ(e,n,!0)}return l&&PX.batchedUpdates((()=>l(m,e,e.item))),m}function MJ(e,t){const n={...e.springs};return t&&YX(ZX(t),(e=>{GX.und(e.keys)&&(e=_J(e)),GX.obj(e.to)||(e={...e,to:void 0}),LJ(n,e,(e=>BJ(e)))})),RJ(e,n),n}function RJ(e,t){XX(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,XZ(t,e))}))}function BJ(e,t){const n=new yJ;return n.key=e,t&&XZ(n,t),n}function LJ(e,t,n){t.keys&&YX(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function DJ(e,t){YX(t,(t=>{LJ(e.springs,t,(t=>BJ(t,e)))}))}var zJ=({children:e,...t})=>{const n=(0,Sr.useContext)(FJ),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,Sr.useState)((()=>({inputs:t,result:e()}))),r=(0,Sr.useRef)(),o=r.current;let i=o;if(i){const n=Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs));n||(i={inputs:t,result:e()})}else i=n;return(0,Sr.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=FJ;return Sr.createElement(i,{value:t},e)},FJ=function(e,t){return Object.assign(e,Sr.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(zJ,{});zJ.Provider=FJ.Provider,zJ.Consumer=FJ.Consumer;var jJ=()=>{const e=[],t=function(t){fQ(`${cQ}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return YX(e,((e,o)=>{if(GX.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return YX(e,(e=>e.pause(...arguments))),this},t.resume=function(){return YX(e,(e=>e.resume(...arguments))),this},t.set=function(t){YX(e,((e,n)=>{const r=GX.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return YX(e,((e,r)=>{if(GX.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return YX(e,(e=>e.stop(...arguments))),this},t.update=function(t){return YX(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return GX.fun(e)?e(n,t):e};return t._getProps=n,t};function VJ(e,t,n){const r=GX.fun(t)&&t;r&&!n&&(n=[]);const o=(0,Sr.useMemo)((()=>r||3==arguments.length?jJ():void 0),[]),i=(0,Sr.useRef)(0),a=gQ(),s=(0,Sr.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=MJ(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?OJ(e,t):new Promise((r=>{RJ(e,n),s.queue.push((()=>{r(OJ(e,t))})),a()}))}})),[]),l=(0,Sr.useRef)([...s.ctrls]),c=[],u=yQ(e)||0;function d(e,n){for(let o=e;o<n;o++){const e=l.current[o]||(l.current[o]=new NJ(null,s.flush)),n=r?r(o,e):t[o];n&&(c[o]=EJ(n))}}(0,Sr.useMemo)((()=>{YX(l.current.slice(e,u),(e=>{qQ(e,o),e.stop(!0)})),l.current.length=e,d(u,e)}),[e]),(0,Sr.useMemo)((()=>{d(0,Math.min(u,e))}),n);const f=l.current.map(((e,t)=>MJ(e,c[t]))),p=(0,Sr.useContext)(zJ),m=yQ(p),h=p!==m&&KQ(p);mQ((()=>{i.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],YX(e,(e=>e()))),YX(l.current,((e,t)=>{o?.add(e),h&&e.start({default:p});const n=c[t];n&&(YQ(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),vQ((()=>()=>{YX(s.ctrls,(e=>e.stop(!0)))}));const g=f.map((e=>({...e})));return o?[g,o]:g}function HJ(e,t){const n=GX.fun(e),[[r],o]=VJ(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var $J=class extends fJ{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=RZ(...t);const n=this._get(),r=OQ(n);_Q(this,r.create(n))}advance(e){const t=this._get();qX(t,this.get())||(wQ(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&WJ(this._active)&&KJ(this)}_get(){const e=GX.arr(this.source)?this.source.map(WZ):ZX(WZ(this.source));return this.calc(...e)}_start(){this.idle&&!WJ(this._active)&&(this.idle=!1,YX(EQ(this),(e=>{e.done=!1})),IX.skipAnimation?(PX.batchedUpdates((()=>this.advance())),KJ(this)):dZ.start(this))}_attach(){let e=1;YX(ZX(this.source),(t=>{UZ(t)&&XZ(t,this),uJ(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){YX(ZX(this.source),(e=>{UZ(e)&&ZZ(e,this)})),this._active.clear(),KJ(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=ZX(this.source).reduce(((e,t)=>Math.max(e,(uJ(t)?t.priority:0)+1)),0))}};function UJ(e){return!1!==e.idle}function WJ(e){return!e.size||Array.from(e).every(UJ)}function KJ(e){e.idle||(e.idle=!0,YX(EQ(e),(e=>{e.done=!0})),GZ(e,{type:"idle",parent:e}))}IX.assign({createStringInterpolator:lQ,to:(e,t)=>new $J(e,t)});dZ.advance;var GJ=/^--/;function qJ(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||GJ.test(e)||XJ.hasOwnProperty(e)&&XJ[e]?(""+t).trim():t+"px"}var YJ={};var XJ={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ZJ=["Webkit","Ms","Moz","O"];XJ=Object.keys(XJ).reduce(((e,t)=>(ZJ.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),XJ);var QJ=/^(matrix|translate|scale|rotate|skew)/,JJ=/^(translate)/,e0=/^(rotate|skew)/,t0=(e,t)=>GX.num(e)&&0!==e?e+t:e,n0=(e,t)=>GX.arr(e)?e.every((e=>n0(e,t))):GX.num(e)?e===t:parseFloat(e)===t,r0=class extends TQ{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>t0(e,"px"))).join(",")})`,n0(e,0)]))),XX(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(QJ.test(t)){if(delete r[t],GX.und(e))return;const n=JJ.test(t)?"px":e0.test(t)?"deg":"";o.push(ZX(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${t0(o,n)})`,n0(o,0)]:e=>[`${t}(${e.map((e=>t0(e,n))).join(",")})`,n0(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new o0(o,i)),super(r)}},o0=class extends qZ{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return YX(this.inputs,((n,r)=>{const o=WZ(n[0]),[i,a]=this.transforms[r](GX.arr(o)?o:n.map(WZ));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&YX(this.inputs,(e=>YX(e,(e=>UZ(e)&&XZ(e,this)))))}observerRemoved(e){0==e&&YX(this.inputs,(e=>YX(e,(e=>UZ(e)&&ZZ(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),GZ(this,e)}};IX.assign({batchedUpdates:cf.unstable_batchedUpdates,createStringInterpolator:lQ,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var i0=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new TQ(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=BQ(e)||"Anonymous";return(e=GX.str(e)?i[e]||(i[e]=AQ(e,o)):e[RQ]||(e[RQ]=AQ(e,o))).displayName=`Animated(${t})`,e};return XX(e,((t,n)=>{GX.arr(e)&&(n=BQ(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:YJ[t]||(YJ[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=qJ(t,r[t]);GJ.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new r0(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n});i0.animated;const a0=e=>e+1,s0=e=>({top:e.offsetTop,left:e.offsetLeft});const l0=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:r}){const o=(0,Sr.useRef)(),i=Fq()||!n,[a,s]=(0,Sr.useReducer)(a0,0),[l,c]=(0,Sr.useReducer)(a0,0),[u,d]=(0,Sr.useState)({x:0,y:0}),f=(0,Sr.useMemo)((()=>o.current?s0(o.current):null),[r]),p=(0,Sr.useMemo)((()=>{if(!t||!o.current)return()=>{};const e=aX(o.current);if(!e)return()=>{};const n=o.current.getBoundingClientRect();return()=>{const t=o.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}}),[r,t]);return(0,Sr.useLayoutEffect)((()=>{a&&c()}),[a]),(0,Sr.useLayoutEffect)((()=>{if(!f)return;if(i)return void p();o.current.style.transform=void 0;const e=s0(o.current);s(),d({x:Math.round(f.left-e.left),y:Math.round(f.top-e.top)})}),[r]),HJ({from:{x:u.x,y:u.y},to:{x:0,y:0},reset:a!==l,config:{mass:5,tension:2e3,friction:200},immediate:i,onChange:function({value:t}){if(!o.current)return;let{x:n,y:r}=t;n=Math.round(n),r=Math.round(r);const i=0===n&&0===r;o.current.style.transformOrigin="center center",o.current.style.transform=i?void 0:`translate3d(${n}px,${r}px,0)`,o.current.style.zIndex=e?"1":"",p()}}),o};function c0(e){return"INPUT"===e?.nodeName}function u0(e){return c0(e)&&e.type&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number","email","time"].includes(e.type)||"TEXTAREA"===e.nodeName||"true"===e.contentEditable}function d0(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function f0(e){if(!e)return!1;const{tagName:t}=e;return d0(e)||"BUTTON"===t||"SELECT"===t}function p0(e,t,n,r){const o=r.style.zIndex,i=r.style.position,{position:a="static"}=iX(r);"static"===a&&(r.style.position="relative"),r.style.zIndex="10000";const s=function(e,t,n){if(e.caretRangeFromPoint)return e.caretRangeFromPoint(t,n);if(!e.caretPositionFromPoint)return null;const r=e.caretPositionFromPoint(t,n);if(!r)return null;const o=e.createRange();return o.setStart(r.offsetNode,r.offset),o.collapse(!0),o}(e,t,n);return r.style.zIndex=o,r.style.position=i,s}function m0(e){return"rtl"===iX(e).direction}function h0(e,t,n){let r=n();return r&&r.startContainer&&e.contains(r.startContainer)||(e.scrollIntoView(t),r=n(),r&&r.startContainer&&e.contains(r.startContainer))?r:null}function g0(e,t,n){if(!e)return;if(e.focus(),d0(e)){if("number"!=typeof e.selectionStart)return;return void(t?(e.selectionStart=e.value.length,e.selectionEnd=e.value.length):(e.selectionStart=0,e.selectionEnd=0))}if(!e.isContentEditable)return;const r=h0(e,t,(()=>function(e,t,n){const{ownerDocument:r}=e,o=m0(e)?!t:t,i=e.getBoundingClientRect();return void 0===n?n=t?i.right-1:i.left+1:n<=i.left?n=i.left+1:n>=i.right&&(n=i.right-1),p0(r,n,o?i.bottom-1:i.top+1,e)}(e,t,n)));if(!r)return;const{ownerDocument:o}=e,{defaultView:i}=o;Ls();const a=i.getSelection();Ls(),a.removeAllRanges(),a.addRange(r)}function v0(e,t){return g0(e,t,void 0)}const b0=".block-editor-block-list__block",y0=".block-list-appender",k0=".block-editor-button-block-appender";function w0(e,t){return e.closest(b0)===t.closest(b0)}function _0(e,t){return t.closest([b0,y0,k0].join(","))===e}function E0(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(b0);return t?t.id.slice(6):void 0}function x0(e){const t=(0,Sr.useRef)(),n=function(e){return BC((t=>{const{getSelectedBlocksInitialCaretPosition:n,__unstableGetEditorMode:r,isBlockSelected:o}=t(qO);if(o(e)&&"edit"===r())return n()}),[e])}(e),{isBlockSelected:r,isMultiSelecting:o}=BC(qO);return(0,Sr.useEffect)((()=>{if(!r(e)||o())return;if(null==n)return;if(!t.current)return;const{ownerDocument:i}=t.current;if(_0(t.current,i.activeElement))return;const a=jx.tabbable.find(t.current).filter((e=>u0(e))),s=-1===n,l=a[s?a.length-1:0]||t.current;if(_0(t.current,l)){if(!t.current.getAttribute("contenteditable")){const e=jx.tabbable.findNext(t.current);if(e&&_0(t.current,e)&&f0(e))return void e.focus()}v0(l,s)}else t.current.focus()}),[n,e]),t}function S0(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function C0(){const e=BC((e=>{const{getSettings:t}=e(qO);return t().outlineMode}),[]);return Vx((t=>{if(e)return t.addEventListener("mouseout",S0),t.addEventListener("mouseover",S0),()=>{t.removeEventListener("mouseout",S0),t.removeEventListener("mouseover",S0),t.classList.remove("is-hovered")}}),[e])}function I0(e){return BC((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:r,isBlockSelected:o,isBlockMultiSelected:i,getBlockName:a,getSettings:s,hasSelectedInnerBlock:l,isTyping:c,__unstableIsFullySelected:u,__unstableSelectionHasUnmergeableBlock:d}=t(qO),{outlineMode:f}=s(),p=n(e),m=o(e),h=a(e),g=l(e,!0),v=i(e);return Vl()({"is-selected":m,"is-highlighted":r(e),"is-multi-selected":v,"is-partially-selected":v&&!u()&&!d(),"is-reusable":jr(Lr(h)),"is-dragging":p,"has-child-selected":g,"remove-outline":m&&f&&c()})}),[e])}function T0(e){return BC((t=>{const n=t(qO).getBlockName(e),r=Lr(n);if(r?.apiVersion>1)return da(n)}),[e])}function P0(e){return BC((t=>{const{getBlockName:n,getBlockAttributes:r}=t(qO),o=r(e);if(!o?.className)return;const i=Lr(n(e));return i?.apiVersion>1?o.className:void 0}),[e])}function N0(e){return BC((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:r,getBlockName:o,getBlockRootClientId:i,isBlockSelected:a}=t(qO);if(!a(e))return;const s=n();return s?Vl()("is-block-moving-mode",{"can-insert-moving-block":r(o(s),i(e))}):void 0}),[e])}function O0(e){const{isBlockSelected:t}=BC(qO),{selectBlock:n,selectionChange:r}=Sq(qO);return Vx((o=>{function i(i){o.parentElement.closest('[contenteditable="true"]')||(t(e)?i.target.isContentEditable||r(e):_0(o,i.target)&&n(e))}return o.addEventListener("focusin",i),()=>{o.removeEventListener("focusin",i)}}),[t,n])}function A0(e){const t=BC((t=>t(qO).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:r}=BC(qO),{insertDefaultBlock:o,removeBlock:i}=Sq(qO);return Vx((a=>{if(t)return a.addEventListener("keydown",s),a.addEventListener("dragstart",l),()=>{a.removeEventListener("keydown",s),a.removeEventListener("dragstart",l)};function s(t){const{keyCode:s,target:l}=t;s!==dx&&s!==cx&&s!==vx||l!==a||u0(l)||(t.preventDefault(),s===dx?o({},n(e),r(e)+1):i(e))}function l(e){e.preventDefault()}}),[e,t,n,r,o,i])}function M0(e){const{isNavigationMode:t,isBlockSelected:n}=BC(qO),{setNavigationMode:r,selectBlock:o}=Sq(qO);return Vx((i=>{function a(i){t()&&!i.defaultPrevented&&(i.preventDefault(),n(e)?r(!1):o(e))}return i.addEventListener("mousedown",a),()=>{i.removeEventListener("mousedown",a)}}),[e,t,n,r])}const R0=(0,Sr.createContext)({refs:new Map,callbacks:new Map});function B0({children:e}){const t=(0,Sr.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,Sr.createElement)(R0.Provider,{value:t},e)}function L0(e){const{refs:t,callbacks:n}=(0,Sr.useContext)(R0),r=(0,Sr.useRef)();return(0,Sr.useLayoutEffect)((()=>(t.set(r,e),()=>{t.delete(r)})),[e]),Vx((t=>{r.current=t,n.forEach(((n,r)=>{e===n&&r(t)}))}),[e])}function D0(e){const{refs:t}=(0,Sr.useContext)(R0),n=(0,Sr.useRef)();return n.current=e,(0,Sr.useMemo)((()=>({get current(){let e=null;for(const[r,o]of t.entries())o===n.current&&r.current&&(e=r.current);return e}})),[])}function z0(e){const{callbacks:t}=(0,Sr.useContext)(R0),n=D0(e),[r,o]=(0,Sr.useState)(null);return(0,Sr.useLayoutEffect)((()=>{if(e)return t.set(o,e),()=>{t.delete(o)}}),[e]),n.current||r}function F0(){const e=(0,Sr.useContext)(P9);return Vx((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}const j0=200;function V0(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:r,wrapperProps:o={},isAligned:i}=(0,Sr.useContext)(Cq),{index:a,mode:s,name:l,blockApiVersion:c,blockTitle:u,isPartOfSelection:d,adjustScrolling:f,enableAnimation:p,isSubtreeDisabled:m}=BC((e=>{const{getBlockAttributes:t,getBlockIndex:r,getBlockMode:o,getBlockName:i,isTyping:a,getGlobalBlockCount:s,isBlockSelected:l,isBlockMultiSelected:c,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:d,isBlockSubtreeDisabled:f}=KO(e(qO)),{getActiveBlockVariation:p}=e(yi),m=l(n),h=c(n)||u(n),g=i(n),v=Lr(g),b=p(g,t(n));return{index:r(n),mode:o(n),name:g,blockApiVersion:v?.apiVersion||1,blockTitle:b?.title||v?.title,isPartOfSelection:m||h,adjustScrolling:m||d(n),enableAnimation:!a()&&s()<=j0,isSubtreeDisabled:f(n)}}),[n]),h=function(e){return BC((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(qO);return n(e)}),[e])}(n),g=Nn(Hn("Block: %s"),u),v="html"!==s||t?"":"-visual",b=Vg([e.ref,x0(n),L0(n),O0(n),A0(n),M0(n),C0(),F0(),l0({isSelected:d,adjustScrolling:f,enableAnimation:p,triggerAnimationOnChange:a}),SX({isDisabled:!h})]),y=JO();return c<2&&n===y.clientId&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&rm(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`),{tabIndex:0,...o,...e,ref:b,id:`block-${n}${v}`,role:"document","aria-label":g,"data-block":n,"data-type":l,"data-title":u,inert:m?"true":void 0,className:Vl()(Vl()("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":h}),r,e.className,o.className,I0(n),T0(n),P0(n),N0(n)),style:{...o.style,...e.style}}}function H0({children:e,isHtml:t,...n}){return(0,Sr.createElement)("div",{...V0(n,{__unstableIsHtml:t})},e)}V0.save=function e(t={}){const{blockType:n,attributes:r}=pa;return e.skipFilters?t:qt("blocks.getSaveContent.extraProps",{...t},n,r)};const $0=KY(((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:r,getBlockMode:o,isSelectionEnabled:i,getTemplateLock:a,__unstableGetBlockWithoutInnerBlocks:s,canRemoveBlock:l,canMoveBlock:c}=e(qO),u=s(t),d=r(t),f=a(n),p=l(t,n),m=c(t,n),{name:h,attributes:g,isValid:v}=u||{};return{mode:o(t),isSelectionEnabled:i(),isLocked:!!f,canRemove:p,canMove:m,block:u,name:h,attributes:g,isValid:v,isSelected:d}})),U0=YY(((e,t,n)=>{const{updateBlockAttributes:r,insertBlocks:o,mergeBlocks:i,replaceBlocks:a,toggleSelection:s,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:c,removeBlock:u}=e(qO);return{setAttributes(e){const{getMultiSelectedBlockClientIds:o}=n.select(qO),i=o(),{clientId:a}=t,s=i.length?i:[a];r(s,e)},onInsertBlocks(e,n){const{rootClientId:r}=t;o(e,n,r)},onInsertBlocksAfter(e){const{clientId:r,rootClientId:i}=t,{getBlockIndex:a}=n.select(qO),s=a(r);o(e,s+1,i)},onMerge(e){const{clientId:r,rootClientId:a}=t,{getPreviousBlockClientId:s,getNextBlockClientId:l,getBlock:d,getBlockAttributes:f,getBlockName:p,getBlockOrder:m,getBlockIndex:h,getBlockRootClientId:g,canInsertBlockType:v}=n.select(qO);function b(e,t=!0){const r=g(e),i=m(e),[a]=i;1===i.length&&co(d(a))?u(e):n.batch((()=>{if(v(p(a),r))c([a],e,r,h(e));else{const n=ao(d(a),Br());n&&n.length&&(o(n,h(e),r,t),u(a,!1))}!m(e).length&&co(d(e))&&u(e,!1)}))}if(e){if(a){const e=l(a);if(e){if(p(a)!==p(e))return void i(a,e);{const t=f(a),r=f(e);if(Object.keys(t).every((e=>t[e]===r[e])))return void n.batch((()=>{c(m(e),e,a),u(e,!1)}))}}}const e=l(r);if(!e)return;m(e).length?b(e,!1):i(r,e)}else{const e=s(r);if(e)i(e,r);else if(a){const e=s(a);if(e&&p(a)===p(e)){const t=f(a),r=f(e);if(Object.keys(t).every((e=>t[e]===r[e])))return void n.batch((()=>{c(m(a),a,e),u(a,!1)}))}b(a)}}},onReplace(e,n,r){e.length&&!uo(e[e.length-1])&&l();const o=1===e?.length&&Array.isArray(e[0])?e[0]:e;a([t.clientId],o,n,r)},toggleSelection(e){s(e)}}})),W0=Ie(WY,$0,U0,XY((({block:e})=>!!e)),UY("editor.BlockListBlock"))((function({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:r,clientId:o,isSelected:i,isSelectionEnabled:a,className:s,__unstableLayoutClassNames:l,name:c,isValid:u,attributes:d,wrapperProps:f,setAttributes:p,onReplace:m,onInsertBlocksAfter:h,onMerge:g,toggleSelection:v}){var b;const{themeSupportsLayout:y,isTemporarilyEditingAsBlocks:k,blockEditingMode:w}=BC((e=>{const{getSettings:t,__unstableGetTemporarilyEditingAsBlocks:n,getBlockEditingMode:r}=e(qO);return{themeSupportsLayout:t().supportsLayout,isTemporarilyEditingAsBlocks:n()===o,blockEditingMode:r(o)}}),[o]),{removeBlock:_}=Sq(qO),E=(0,Sr.useCallback)((()=>_(o)),[o]),x=yH()||{};let S=(0,Sr.createElement)(oX,{name:c,isSelected:i,attributes:d,setAttributes:p,insertBlocksAfter:n?void 0:h,onReplace:r?m:void 0,onRemove:r?E:void 0,mergeBlocks:r?g:void 0,clientId:o,isSelectionEnabled:a,toggleSelection:v,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(x).length?x:void 0});const C=Lr(c);"disabled"===w&&(f={...f,tabIndex:-1}),C?.getEditWrapperProps&&(f=function(e,t){const n={...e,...t};return e?.className&&t?.className&&(n.className=Vl()(e.className,t.className)),e?.style&&t?.style&&(n.style={...e.style,...t.style}),n}(f,C.getEditWrapperProps(d)));const I=f&&!!f["data-align"]&&!y;let T;if(I&&(S=(0,Sr.createElement)("div",{className:"wp-block","data-align":f["data-align"]},S)),u)T="html"===t?(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("div",{style:{display:"none"}},S),(0,Sr.createElement)(H0,{isHtml:!0},(0,Sr.createElement)(xX,{clientId:o}))):C?.apiVersion>1?S:(0,Sr.createElement)(H0,{...f},S);else{const t=e?ua(e):ha(C,d);T=(0,Sr.createElement)(H0,{className:"has-warning"},(0,Sr.createElement)(bX,{clientId:o}),(0,Sr.createElement)(Ri,null,ZY(t)))}const{"data-align":P,...N}=null!==(b=f)&&void 0!==b?b:{},O={clientId:o,className:Vl()({"is-editing-disabled":"disabled"===w,"is-content-locked-temporarily-editing-as-blocks":k},P&&y&&`align${P}`,s),wrapperProps:N,isAligned:I},A=(0,Sr.useMemo)((()=>O),Object.values(O));return(0,Sr.createElement)(Cq.Provider,{value:A},(0,Sr.createElement)(_X,{fallback:(0,Sr.createElement)(H0,{className:"has-warning"},(0,Sr.createElement)(kX,null))},T))})),K0=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{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"})),G0=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const q0=(0,Sr.forwardRef)((function({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t=!1,className:n,onChange:r,onKeyDown:o,value:i,label:a,placeholder:s=Hn("Search"),hideLabelFromVision:l=!0,help:c,onClose:u,size:d="default",...f},p){const m=(0,Sr.useRef)(),h=`components-search-control-${Wl(q0)}`;return(0,Sr.createElement)(BH,{__nextHasNoMarginBottom:e,label:a,id:h,hideLabelFromVision:l,help:c,className:Vl()(n,"components-search-control",{"is-next-40px-default-size":t,"is-size-compact":"compact"===d})},(0,Sr.createElement)("div",{className:"components-search-control__input-wrapper"},(0,Sr.createElement)("input",{...f,ref:Vg([m,p]),className:"components-search-control__input",id:h,type:"search",placeholder:s,onChange:e=>r(e.target.value),onKeyDown:o,autoComplete:"off",value:i||""}),(0,Sr.createElement)("div",{className:"components-search-control__icon"},u?(0,Sr.createElement)(lg,{__next40pxDefaultSize:t,icon:K0,label:Hn("Close search"),onClick:u,size:d}):i?(0,Sr.createElement)(lg,{__next40pxDefaultSize:t,icon:K0,label:Hn("Reset search"),onClick:()=>{r(""),m.current?.focus()},size:d}):(0,Sr.createElement)(EM,{icon:G0}))))})),Y0=q0;let X0,Z0,Q0,J0;const e1=/<(\/)?(\w+)\s*(\/)?>/g;function t1(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const n1=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,Sr.isValidElement)(e)))};function r1(e){const t=function(){const e=e1.exec(X0);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,i]=e,a=n.length;if(i)return["self-closed",o,t,a];if(r)return["closer",o,t,a];return["opener",o,t,a]}(),[n,r,o,i]=t,a=J0.length,s=o>Z0?Z0:null;if(!e[r])return o1(),!1;switch(n){case"no-more-tokens":if(0!==a){const{leadingTextStart:e,tokenStart:t}=J0.pop();Q0.push(X0.substr(e,t))}return o1(),!1;case"self-closed":return 0===a?(null!==s&&Q0.push(X0.substr(s,o-s)),Q0.push(e[r]),Z0=o+i,!0):(i1(t1(e[r],o,i)),Z0=o+i,!0);case"opener":return J0.push(t1(e[r],o,i,o+i,s)),Z0=o+i,!0;case"closer":if(1===a)return function(e){const{element:t,leadingTextStart:n,prevOffset:r,tokenStart:o,children:i}=J0.pop(),a=e?X0.substr(r,e-r):X0.substr(r);a&&i.push(a);null!==n&&Q0.push(X0.substr(n,o-n));Q0.push((0,Sr.cloneElement)(t,null,...i))}(o),Z0=o+i,!0;const t=J0.pop(),n=X0.substr(t.prevOffset,o-t.prevOffset);t.children.push(n),t.prevOffset=o+i;const l=t1(t.element,t.tokenStart,t.tokenLength,o+i);return l.children=t.children,i1(l),Z0=o+i,!0;default:return o1(),!1}}function o1(){const e=X0.length-Z0;0!==e&&Q0.push(X0.substr(Z0,e))}function i1(e){const{element:t,tokenStart:n,tokenLength:r,prevOffset:o,children:i}=e,a=J0[J0.length-1],s=X0.substr(a.prevOffset,n-a.prevOffset);s&&a.children.push(s),a.children.push((0,Sr.cloneElement)(t,null,...i)),a.prevOffset=o||n+r}const a1=(e,t)=>{if(X0=e,Z0=0,Q0=[],J0=[],e1.lastIndex=0,!n1(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(r1(t));return(0,Sr.createElement)(Sr.Fragment,null,...Q0)},s1=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));const l1=function(e){const{children:t}=e;return(0,Sr.createElement)("div",{className:"components-tip"},(0,Sr.createElement)(EM,{icon:s1}),(0,Sr.createElement)("p",null,t))},c1=[a1(Hn("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,Sr.createElement)("kbd",null)}),a1(Hn("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,Sr.createElement)("kbd",null)}),a1(Hn("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,Sr.createElement)("kbd",null)}),Hn("Drag files into the editor to automatically insert media blocks."),Hn("Change a block's type by pressing the block icon on the toolbar.")];const u1=function(){const[e]=(0,Sr.useState)(Math.floor(Math.random()*c1.length));return(0,Sr.createElement)(l1,null,c1[e])},d1=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),f1=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),p1=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));const m1=(0,Sr.memo)((function({icon:e,showColors:t=!1,className:n,context:r}){"block-default"===e?.src&&(e={src:p1});const o=(0,Sr.createElement)(tm,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,Sr.createElement)("span",{style:i,className:Vl()("block-editor-block-icon",n,{"has-colors":t})},o)}));const h1=function({title:e,icon:t,description:n,blockType:r,className:o}){r&&(on("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r));const{parentNavBlockClientId:i}=BC((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(qO);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:a}=Sq(qO);return(0,Sr.createElement)("div",{className:Vl()("block-editor-block-card",o)},i&&(0,Sr.createElement)(lg,{onClick:()=>a(i),label:Hn("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:Wn()?d1:f1,isSmall:!0}),(0,Sr.createElement)(m1,{icon:t,showColors:!0}),(0,Sr.createElement)("div",{className:"block-editor-block-card__content"},(0,Sr.createElement)("h2",{className:"block-editor-block-card__title"},e),(0,Sr.createElement)("span",{className:"block-editor-block-card__description"},n)))},g1=Hl((e=>t=>(0,Sr.createElement)(SC,null,(n=>(0,Sr.createElement)(e,{...t,registry:n})))),"withRegistry"),v1=Hl((e=>g1((({useSubRegistry:t=!0,registry:n,...r})=>{if(!t)return(0,Sr.createElement)(e,{registry:n,...r});const[o,i]=(0,Sr.useState)(null);return(0,Sr.useEffect)((()=>{const e=cn({},n);e.registerStore(UO,GO),i(e)}),[n]),o?(0,Sr.createElement)(CC,{value:o},(0,Sr.createElement)(e,{registry:o,...r})):null}))),"withRegistryProvider"),b1=()=>{};function y1({clientId:e=null,value:t,selection:n,onChange:r=b1,onInput:o=b1}){const i=IC(),{resetBlocks:a,resetSelection:s,replaceInnerBlocks:l,selectBlock:c,setHasControlledInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=i.dispatch(qO),{hasSelectedBlock:f,getBlockName:p,getBlocks:m,getSelectionStart:h,getSelectionEnd:g,getBlock:v}=i.select(qO),b=BC((t=>!e||t(qO).areInnerBlocksControlled(e)),[e]),y=(0,Sr.useRef)({incoming:null,outgoing:[]}),k=(0,Sr.useRef)(!1),w=()=>{t&&(d(),e?i.batch((()=>{u(e,!0);const n=t.map((e=>Qr(e)));k.current&&(y.current.incoming=n),d(),l(e,n)})):(k.current&&(y.current.incoming=t),a(t)))},_=(0,Sr.useRef)(o),E=(0,Sr.useRef)(r);(0,Sr.useEffect)((()=>{_.current=o,E.current=r}),[o,r]),(0,Sr.useEffect)((()=>{if(y.current.outgoing.includes(t))y.current.outgoing[y.current.outgoing.length-1]===t&&(y.current.outgoing=[]);else if(m(e)!==t){y.current.outgoing=[];const t=f(),r=h(),o=g();if(w(),n)s(n.selectionStart,n.selectionEnd,n.initialPosition);else{const n=v(r.clientId);t&&!n?c(e):s(r,o)}}}),[t,e]),(0,Sr.useEffect)((()=>{b||(y.current.outgoing=[],w())}),[b]),(0,Sr.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:r,areInnerBlocksControlled:o}=i.select(qO);let a=m(e),s=n(),l=!1;k.current=!0;const c=i.subscribe((()=>{if(null!==e&&null===p(e))return;if(!(!e||o(e)))return;const i=n(),c=m(e),u=c!==a;if(a=c,u&&(y.current.incoming||r()))return y.current.incoming=null,void(s=i);if(u||l&&!u&&i&&!s){s=i,y.current.outgoing.push(a);(s?E.current:_.current)(a,{selection:{selectionStart:h(),selectionEnd:g(),initialPosition:t()}})}l=u}),qO);return()=>{k.current=!1,c()}}),[i,e]),(0,Sr.useEffect)((()=>()=>{d(),e?(u(e,!1),d(),l(e,[])):a([])}),[])}const k1=function(e={},t){switch(t.type){case"REGISTER_SHORTCUT":return{...e,[t.name]:{category:t.category,keyCombination:t.keyCombination,aliases:t.aliases,description:t.description}};case"UNREGISTER_SHORTCUT":const{[t.name]:n,...r}=e;return r}return e};function w1({name:e,category:t,description:n,keyCombination:r,aliases:o}){return{type:"REGISTER_SHORTCUT",name:e,category:t,keyCombination:r,aliases:o,description:n}}function _1(e){return{type:"UNREGISTER_SHORTCUT",name:e}}const E1=[],x1={display:Cx,raw:xx,ariaLabel:Ix};function S1(e,t){return e?e.modifier?x1[t][e.modifier](e.character):e.character:null}function C1(e,t){return e[t]?e[t].keyCombination:null}function I1(e,t,n="display"){return S1(C1(e,t),n)}function T1(e,t){return e[t]?e[t].description:null}function P1(e,t){return e[t]&&e[t].aliases?e[t].aliases:E1}const N1=nt(((e,t)=>[C1(e,t),...P1(e,t)].filter(Boolean)),((e,t)=>[e[t]])),O1=nt(((e,t)=>N1(e,t).map((e=>S1(e,"raw")))),((e,t)=>[e[t]])),A1=nt(((e,t)=>Object.entries(e).filter((([,e])=>e.category===t)).map((([e])=>e))),(e=>[e])),M1=Ct("core/keyboard-shortcuts",{reducer:k1,actions:v,selectors:b});pn(M1);const R1=new Set,B1=e=>{for(const t of R1)t(e)},L1=(0,Sr.createContext)({add:e=>{0===R1.size&&document.addEventListener("keydown",B1),R1.add(e)},delete:e=>{R1.delete(e),0===R1.size&&document.removeEventListener("keydown",B1)}});const{Provider:D1}=L1;function z1(){return null}z1.Register=function(){const{registerShortcut:e}=Sq(M1);return(0,Sr.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:Hn("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Hn("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Hn("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Hn("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Hn("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Hn("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Hn("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:Hn("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Hn("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Hn("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Hn("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};const F1=z1,j1=v1((e=>{const{children:t,settings:n,stripExperimentalSettings:r=!1}=e,{__experimentalUpdateSettings:o}=KO(Sq(qO));return(0,Sr.useEffect)((()=>{o({...n,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})}),[n,r,o]),y1(e),(0,Sr.createElement)(ZS,null,(0,Sr.createElement)(F1.Register,null),(0,Sr.createElement)(B0,null,t))}));const V1=(e,t,n)=>e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0;function H1(e={}){const t=e.onResize,n=(0,Sr.useRef)(void 0);n.current=t;const r=e.round||Math.round,o=(0,Sr.useRef)(),[i,a]=(0,Sr.useState)({width:void 0,height:void 0}),s=(0,Sr.useRef)(!1);(0,Sr.useEffect)((()=>(s.current=!1,()=>{s.current=!0})),[]);const l=(0,Sr.useRef)({width:void 0,height:void 0}),c=function(e,t){const n=(0,Sr.useRef)(null),r=(0,Sr.useRef)(null),o=(0,Sr.useRef)(),i=(0,Sr.useCallback)((()=>{let a=null;n.current?a=n.current:t&&(a=t instanceof HTMLElement?t:t.current),r.current&&r.current.element===a&&r.current.reporter===i||(o.current&&(o.current(),o.current=null),r.current={reporter:i,element:a},a&&(o.current=e(a)))}),[t,e]);return(0,Sr.useEffect)((()=>{i()}),[i]),(0,Sr.useCallback)((e=>{n.current=e,i()}),[i])}((0,Sr.useCallback)((t=>(o.current&&o.current.box===e.box&&o.current.round===r||(o.current={box:e.box,round:r,instance:new ResizeObserver((t=>{const o=t[0];let i="borderBoxSize";i="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize";const c=V1(o,i,"inlineSize"),u=V1(o,i,"blockSize"),d=c?r(c):void 0,f=u?r(u):void 0;if(l.current.width!==d||l.current.height!==f){const e={width:d,height:f};l.current.width=d,l.current.height=f,n.current?n.current(e):s.current||a(e)}}))}),o.current.instance.observe(t,{box:e.box}),()=>{o.current&&o.current.instance.unobserve(t)})),[e.box,r]),e.ref);return(0,Sr.useMemo)((()=>({ref:c,width:i.width,height:i.height})),[c,i?i.width:null,i?i.height:null])}function $1(){const{ref:e,width:t,height:n}=H1(),r=(0,Sr.useMemo)((()=>({width:null!=t?t:null,height:null!=n?n:null})),[t,n]);return[(0,Sr.createElement)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1},"aria-hidden":"true",ref:e}),r]}const U1={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},W1=(0,Sr.createContext)(!1),{Consumer:K1,Provider:G1}=W1;function q1({className:e,children:t,isDisabled:n=!0,...r}){const o=jh();return(0,Sr.createElement)(G1,{value:n},(0,Sr.createElement)("div",{inert:n?"true":void 0,className:n?o(U1,e,"components-disabled"):void 0,...r},t))}q1.Context=W1,q1.Consumer=K1;const Y1=q1;function X1(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=BC(qO),{clearSelectedBlock:r}=Sq(qO),{clearBlockSelection:o}=e();return Vx((e=>{if(o)return e.addEventListener("mousedown",i),()=>{e.removeEventListener("mousedown",i)};function i(o){(t()||n())&&o.target===e&&r()}}),[t,n,r,o])}function Z1(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:r,getSelectedBlockClientId:o,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:a}=e(qO);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:r(),selectedBlockClientId:o(),initialPosition:i(),isFullSelection:a()}}function Q1(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:r,selectedBlockClientId:o,isFullSelection:i}=BC(Z1,[]);return Vx((o=>{const{ownerDocument:a}=o,{defaultView:s}=a;if(null==e)return;if(!r||t)return;const{length:l}=n;l<2||i&&(o.contentEditable=!0,o.focus(),s.getSelection().removeAllRanges())}),[r,t,n,o,e,i])}function J1(e){if(!e.collapsed){const t=Array.from(e.getClientRects());if(1===t.length)return t[0];const n=t.filter((({width:e})=>e>1));if(0===n.length)return e.getBoundingClientRect();if(1===n.length)return n[0];let{top:r,bottom:o,left:i,right:a}=n[0];for(const{top:e,bottom:t,left:s,right:l}of n)e<r&&(r=e),t>o&&(o=t),s<i&&(i=s),l>a&&(a=l);return new window.DOMRect(i,r,a-i,o-r)}const{startContainer:t}=e,{ownerDocument:n}=t;if("BR"===t.nodeName){const{parentNode:r}=t;Ls();const o=Array.from(r.childNodes).indexOf(t);Ls(),(e=n.createRange()).setStart(r,o),e.setEnd(r,o)}const r=e.getClientRects();if(r.length>1)return null;let o=r[0];if(!o||0===o.height){Ls();const t=n.createTextNode("");(e=e.cloneRange()).insertNode(t),o=e.getClientRects()[0],Ls(t.parentNode),t.parentNode.removeChild(t)}return o}function e2(e,t,n=!1){if(d0(e)&&"number"==typeof e.selectionStart)return e.selectionStart===e.selectionEnd&&(t?0===e.selectionStart:e.value.length===e.selectionStart);if(!e.isContentEditable)return!0;const{ownerDocument:r}=e,{defaultView:o}=r;Ls();const i=o.getSelection();if(!i||!i.rangeCount)return!1;const a=i.getRangeAt(0),s=a.cloneRange(),l=function(e){const{anchorNode:t,focusNode:n,anchorOffset:r,focusOffset:o}=e;Ls(),Ls();const i=t.compareDocumentPosition(n);return!(i&t.DOCUMENT_POSITION_PRECEDING)&&(!!(i&t.DOCUMENT_POSITION_FOLLOWING)||0!==i||r<=o)}(i),c=i.isCollapsed;c||s.collapse(!l);const u=J1(s),d=J1(a);if(!u||!d)return!1;const f=function(e){const t=Array.from(e.getClientRects());if(!t.length)return;const n=Math.min(...t.map((({top:e})=>e)));return Math.max(...t.map((({bottom:e})=>e)))-n}(a);if(!c&&f&&f>u.height&&l===t)return!1;const p=m0(e)?!t:t,m=e.getBoundingClientRect(),h=p?m.left+1:m.right-1,g=t?m.top+1:m.bottom-1,v=h0(e,t,(()=>p0(r,h,g,e)));if(!v)return!1;const b=J1(v);if(!b)return!1;const y=t?"top":"bottom",k=p?"left":"right",w=b[y]-d[y],_=b[k]-u[k],E=Math.abs(w)<=1,x=Math.abs(_)<=1;return n?E:E&&x}function t2(e,t){return e2(e,t,!0)}function n2(e,t){return e2(e,t)}function r2(e,t,n,r){let o,i=jx.focusable.find(n);return t&&i.reverse(),i=i.slice(i.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),i.find((function(e){if(1!==e.children.length||!w0(e,e.firstElementChild)||"true"!==e.firstElementChild.getAttribute("contenteditable")){if(!jx.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(r){const t=e.getBoundingClientRect();if(t.left>=o.right||t.right<=o.left)return!1}return!0}}))}function o2(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:r,__unstableIsFullySelected:o}=BC(qO),{selectBlock:i}=Sq(qO);return Vx((a=>{let s;function l(){s=null}function c(l){if(l.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:f,altKey:p,metaKey:m}=l,h=c===mx,g=c===px,v=h||g,b=g||c===hx,y=h||c===gx,k=b||y,w=d||f||p||m,_=y?t2:n2,{ownerDocument:E}=a,{defaultView:x}=E;if(!k)return;if(r()){if(d)return;if(!o())return;return l.preventDefault(),void(v?i(e()):i(t(),-1))}if(!function(e,t,n){const r=t===mx||t===gx,{tagName:o}=e,i=e.getAttribute("type");if(r&&!n)return"INPUT"!==o||!["date","datetime-local","month","number","range","time","week"].includes(i);if("INPUT"===o)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(i);return"TEXTAREA"!==o}(u,c,w))return;y?s||(s=function(e){const t=e.getSelection();Ls();const n=t.rangeCount?t.getRangeAt(0):null;return n?J1(n):null}(x)):s=null;const S=m0(u)?!v:v,{keepCaretInsideBlock:C}=n();if(d)(function(e,t){const n=r2(e,t,a);return n&&E0(n)})(u,v)&&_(u,v)&&(a.contentEditable=!0,a.focus());else if(!y||!t2(u,v)||p&&!n2(u,S)||C){if(b&&x.getSelection().isCollapsed&&n2(u,S)&&!C){v0(r2(u,S,a),v),l.preventDefault()}}else{const e=r2(u,v,a,!0);e&&(!function(e,t,n){g0(e,t,n?.left)}(e,p?!v:v,p?void 0:s),l.preventDefault())}}return a.addEventListener("mousedown",l),a.addEventListener("keydown",c),()=>{a.removeEventListener("mousedown",l),a.removeEventListener("keydown",c)}}),[])}function i2(e,t,n){let r=t;do{if(e===r)return!0;r=r[n]}while(r);return!1}function a2(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=BC(qO),{multiSelect:r,selectBlock:o}=Sq(qO),i=function(){const{getAllShortcutKeyCombinations:e}=BC(M1);return function(t,n){return e(t).some((({modifier:e,character:t})=>Tx[e](n,t)))}}();return Vx((a=>{function s(s){if(!i("core/block-editor/select-all",s))return;const l=t();if(l.length<2&&!function(e){if(d0(e))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;const{ownerDocument:t}=e,{defaultView:n}=t;Ls();const r=n.getSelection();Ls();const o=r.rangeCount?r.getRangeAt(0):null;if(!o)return!0;const{startContainer:i,endContainer:a,startOffset:s,endOffset:l}=o;if(i===e&&a===e&&0===s&&l===e.childNodes.length)return!0;e.lastChild,Ls();const c=a.nodeType===a.TEXT_NODE?a.data.length:a.childNodes.length;return i2(i,e,"firstChild")&&i2(a,e,"lastChild")&&0===s&&l===c}(s.target))return;s.preventDefault();const[c]=l,u=n(c),d=e(u);l.length!==d.length?r(d[0],d[d.length-1]):u&&(a.ownerDocument.defaultView.getSelection().removeAllRanges(),o(u))}return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s)}}),[])}function s2(e,t){e.contentEditable=t,t&&e.focus()}function l2(){const{startMultiSelect:e,stopMultiSelect:t}=Sq(qO),{isSelectionEnabled:n,hasMultiSelection:r,isDraggingBlocks:o}=BC(qO);return Vx((i=>{const{ownerDocument:a}=i,{defaultView:s}=a;let l,c;function u(){t(),s.removeEventListener("mouseup",u),c=s.requestAnimationFrame((()=>{if(r())return;s2(i,!1);const e=s.getSelection();if(e.rangeCount){const{commonAncestorContainer:t}=e.getRangeAt(0);l.contains(t)&&l.focus()}}))}function d({buttons:t,target:r}){o()||1===t&&"true"===r.getAttribute("contenteditable")&&n()&&(l=r,e(),s.addEventListener("mouseup",u),s2(i,!0))}return i.addEventListener("mouseout",d),()=>{i.removeEventListener("mouseout",d),s.removeEventListener("mouseup",u),s.cancelAnimationFrame(c)}}),[e,t,n,r])}function c2(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t),t&&e.focus()}function u2(){const{multiSelect:e,selectBlock:t,selectionChange:n}=Sq(qO),{getBlockParents:r,getBlockSelectionStart:o}=BC(qO);return Vx((n=>{const{ownerDocument:i}=n,{defaultView:a}=i;function s(i){const s=a.getSelection();if(!s.rangeCount)return;const l=i.shiftKey&&"mouseup"===i.type;if(s.isCollapsed&&!l)return void c2(n,!1);let c=E0(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(s)),u=E0(function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(s));if(l){const e=o(),t=E0(i.target),n=t!==u;(c===u&&s.isCollapsed||!u||n)&&(u=t),c!==e&&(c=e)}if(void 0===c&&void 0===u)return void c2(n,!1);if(c===u)t(c);else{const t=[...r(c),c],n=[...r(u),u],o=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,n);e(t[o],n[o])}}function l(){i.addEventListener("selectionchange",s),a.addEventListener("mouseup",s)}function c(){i.removeEventListener("selectionchange",s),a.removeEventListener("mouseup",s)}function u(){c(),l()}return l(),n.addEventListener("focusin",u),()=>{c(),n.removeEventListener("focusin",u)}}),[e,t,n,r])}function d2(){const{selectBlock:e}=Sq(qO),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:r}=BC(qO);return Vx((o=>{function i(i){if(!t()||0!==i.button)return;const a=n(),s=E0(i.target);i.shiftKey?a!==s&&(o.contentEditable=!0,o.focus()):r()&&e(s)}return o.addEventListener("mousedown",i),()=>{o.removeEventListener("mousedown",i)}}),[e,t,n,r])}function f2(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:r}=BC(qO),{replaceBlocks:o,__unstableSplitSelection:i,removeBlocks:a,__unstableDeleteSelection:s,__unstableExpandSelection:l}=Sq(qO);return Vx((c=>{function u(e){"true"===c.contentEditable&&e.preventDefault()}function d(u){u.defaultPrevented||r()&&(u.keyCode===dx?(c.contentEditable=!1,u.preventDefault(),e()?o(t(),Yr(Br())):i()):u.keyCode===cx||u.keyCode===vx?(c.contentEditable=!1,u.preventDefault(),e()?a(t()):n()?s(u.keyCode===vx):l()):1!==u.key.length||u.metaKey||u.ctrlKey||(c.contentEditable=!1,n()?s(u.keyCode===vx):(u.preventDefault(),c.ownerDocument.defaultView.getSelection().removeAllRanges())))}function f(e){r()&&(c.contentEditable=!1,n()?s():(e.preventDefault(),c.ownerDocument.defaultView.getSelection().removeAllRanges()))}return c.addEventListener("beforeinput",u),c.addEventListener("keydown",d),c.addEventListener("compositionstart",f),()=>{c.removeEventListener("beforeinput",u),c.removeEventListener("keydown",d),c.removeEventListener("compositionstart",f)}}),[])}function p2(e){Ls(e.defaultView);const t=e.defaultView.getSelection();Ls();const n=t.rangeCount?t.getRangeAt(0):null;return!!n&&!n.collapsed}function m2(e){return p2(e)||!!e.activeElement&&function(e){if(!c0(e)&&!u0(e))return!1;try{const{selectionStart:t,selectionEnd:n}=e;return null===t||t!==n}catch(e){return!0}}(e.activeElement)}function h2(e){e=ZY(e);const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function g2(e){const t=Array.from(e.files);return Array.from(e.items).forEach((e=>{const n=e.getAsFile();n&&!t.find((({name:e,type:t,size:r})=>e===n.name&&t===n.type&&r===n.size))&&t.push(n)})),t}const v2=e=>t=>(n={},r)=>{const o=r[e];if(void 0===o)return n;const i=t(n[o],r);return i===n[o]?n:{...n,[o]:i}},b2=v2("context")(((e=[],t)=>{switch(t.type){case"CREATE_NOTICE":return[...e.filter((({id:e})=>e!==t.notice.id)),t.notice];case"REMOVE_NOTICE":return e.filter((({id:e})=>e!==t.id));case"REMOVE_NOTICES":return e.filter((({id:e})=>!t.ids.includes(e)));case"REMOVE_ALL_NOTICES":return e.filter((({type:e})=>e!==t.noticeType))}return e})),y2="global",k2="info";let w2=0;function _2(e=k2,t,n={}){const{speak:r=!0,isDismissible:o=!0,context:i=y2,id:a=`${i}${++w2}`,actions:s=[],type:l="default",__unstableHTML:c,icon:u=null,explicitDismiss:d=!1,onDismiss:f}=n;return{type:"CREATE_NOTICE",context:i,notice:{id:a,status:e,content:t=String(t),spokenMessage:r?t:null,__unstableHTML:c,isDismissible:o,actions:s,type:l,icon:u,explicitDismiss:d,onDismiss:f}}}function E2(e,t){return _2("success",e,t)}function x2(e,t){return _2("info",e,t)}function S2(e,t){return _2("error",e,t)}function C2(e,t){return _2("warning",e,t)}function I2(e,t=y2){return{type:"REMOVE_NOTICE",id:e,context:t}}function T2(e="default",t=y2){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function P2(e,t=y2){return{type:"REMOVE_NOTICES",ids:e,context:t}}const N2=[];function O2(e,t=y2){return e[t]||N2}const A2=Ct("core/notices",{reducer:b2,actions:y,selectors:k});function M2(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:r,__unstableIsFullySelected:o,__unstableIsSelectionCollapsed:i,__unstableIsSelectionMergeable:a,__unstableGetSelectedBlocksWithPartialSelection:s,canInsertBlockType:l}=BC(qO),{flashBlock:c,removeBlocks:u,replaceBlocks:d,__unstableDeleteSelection:f,__unstableExpandSelection:p,insertBlocks:m}=Sq(qO),h=function(){const{getBlockName:e}=BC(qO),{getBlockType:t}=BC(yi),{createSuccessNotice:n}=Sq(A2);return(0,Sr.useCallback)(((r,o)=>{let i="";if(1===o.length){const n=o[0],a=t(e(n))?.title;i=Nn(Hn("copy"===r?'Copied "%s" to clipboard.':'Moved "%s" to clipboard.'),a)}else i=Nn("copy"===r?Un("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length):Un("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(i,{type:"snackbar"})}),[])}();return Vx((g=>{function v(v){if(v.defaultPrevented)return;const b=t();if(0===b.length)return;if(!n()){const{target:e}=v,{ownerDocument:t}=e,n="copy"===v.type||"cut"===v.type?m2(t):function(e){return!!e.activeElement&&(c0(e.activeElement)||u0(e.activeElement)||p2(e))}(t);if(n)return}if(!g.contains(v.target.ownerDocument.activeElement))return;v.preventDefault();const y=a(),k=i()||o(),w=!k&&!y;if("copy"===v.type||"cut"===v.type)if(1===b.length&&c(b[0]),w)p();else{let t;if(h(v.type,b),k)t=e(b);else{const[n,r]=s();t=[n,...e(b.slice(1,b.length-1)),r]}const n=v.clipboardData.getData("__unstableWrapperBlockName");n&&(t=Yr(n,JSON.parse(v.clipboardData.getData("__unstableWrapperBlockAttributes")),t));const r=ya(t);v.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");const t=h2(e).trim();return t.replace(/\n\n+/g,"\n\n")}(r)),v.clipboardData.setData("text/html",r)}if("cut"===v.type)k&&!w?u(b):(v.target.ownerDocument.activeElement.contentEditable=!1,f());else if("paste"===v.type){const{__experimentalCanUserUseUnfilteredHTML:e}=r(),{plainText:t,html:n,files:o}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}n=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;const r=(e=e.substring(n+20)).indexOf("\x3c!--EndFragment--\x3e");return r>-1&&(e=e.substring(0,r)),e}(n),n=function(e){const t="<meta charset='utf-8'>";return e.startsWith(t)?e.slice(22):e}(n);const r=g2(e);return r.length&&!function(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}(r,n)?{files:r}:{html:n,plainText:t,files:[]}}(v);let i=[];if(o.length){const e=oo("from");i=o.reduce(((t,n)=>{const r=ro(e,(e=>"files"===e.type&&e.isMatch([n])));return r&&t.push(r.transform([n])),t}),[]).flat()}else i=Dl({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});if(1===b.length){const[e]=b;if(i.every((t=>l(t.name,e))))return void m(i,void 0,e)}d(b,i,i.length-1,-1)}}return g.ownerDocument.addEventListener("copy",v),g.ownerDocument.addEventListener("cut",v),g.ownerDocument.addEventListener("paste",v),()=>{g.ownerDocument.removeEventListener("copy",v),g.ownerDocument.removeEventListener("cut",v),g.ownerDocument.removeEventListener("paste",v)}}),[])}function R2(){const[e,t,n]=function(){const e=(0,Sr.useRef)(),t=(0,Sr.useRef)(),n=(0,Sr.useRef)(),r=(0,Sr.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:i,getBlockCount:a}=BC(qO),{setNavigationMode:s}=Sq(qO),l=BC((e=>e(qO).isNavigationMode()),[])?void 0:"0",c=(0,Sr.useRef)();function u(t){if(c.current)c.current=null;else if(o())e.current.focus();else if(i())r.current.focus();else{s(!0);const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,r=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,o=jx.tabbable.find(e.current);o.length&&(r?o[0]:o[o.length-1]).focus()}}const d=(0,Sr.createElement)("div",{ref:t,tabIndex:l,onFocus:u}),f=(0,Sr.createElement)("div",{ref:n,tabIndex:l,onFocus:u}),p=Vx((l=>{function u(e){if(e.defaultPrevented)return;if(e.keyCode===fx&&!o())return e.preventDefault(),void s(!0);if(e.keyCode!==ux)return;const r=e.shiftKey,a=r?"findPrevious":"findNext";if(!o()&&!i())return void(e.target===l&&s(!0));const u=jx.tabbable[a](e.target),d=e.target.closest("[data-block]"),f=d&&u&&(w0(d,u)||_0(d,u));if(f0(u)&&f)return;const p=r?t:n;c.current=!0,p.current.focus({preventScroll:!0})}function d(e){r.current=e.target;const{ownerDocument:t}=l;e.relatedTarget||t.activeElement!==t.body||0!==a()||l.focus()}function f(r){if(r.keyCode!==ux)return;if("region"===r.target?.getAttribute("role"))return;if(e.current===r.target)return;const o=r.shiftKey?"findPrevious":"findNext",i=jx.tabbable[o](r.target);i!==t.current&&i!==n.current||(r.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:p}=l,{defaultView:m}=p;return m.addEventListener("keydown",f),l.addEventListener("keydown",u),l.addEventListener("focusout",d),()=>{m.removeEventListener("keydown",f),l.removeEventListener("keydown",u),l.removeEventListener("focusout",d)}}),[]);return[d,Vg([e,p]),f]}(),r=BC((e=>e(qO).hasMultiSelection()),[]);return[e,Vg([t,M2(),f2(),l2(),u2(),d2(),Q1(),a2(),o2(),Vx((e=>{if(e.tabIndex=0,e.contentEditable=r,r)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",Hn("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[r])]),n]}pn(A2);(0,Sr.forwardRef)((function({children:e,...t},n){const[r,o,i]=R2();return(0,Sr.createElement)(Sr.Fragment,null,r,(0,Sr.createElement)("div",{...t,ref:Vg([o,n]),className:Vl()(t.className,"block-editor-writing-flow")},e),i)}));function B2(e,t,n){const r={};for(const t in e)r[t]=e[t];if(e instanceof n.ownerDocument.defaultView.MouseEvent){const e=n.getBoundingClientRect();r.clientX+=e.left,r.clientY+=e.top}const o=new t(e.type,r);r.defaultPrevented&&o.preventDefault();!n.dispatchEvent(o)&&e.preventDefault()}function L2(e){return Vx((t=>{const{defaultView:n}=e;if(!n)return;const{frameElement:r}=n,o=["dragover","mousemove"],i={};for(const e of o)i[e]=e=>{const t=Object.getPrototypeOf(e).constructor.name;B2(e,window[t],r)},t.addEventListener(e,i[e]);return()=>{for(const e of o)t.removeEventListener(e,i[e])}}))}function D2({contentRef:e,children:t,tabIndex:n=0,scale:r=1,frameSize:o=0,expand:i=!1,readonly:a,forwardedRef:s,...l}){const{resolvedAssets:c,isPreviewMode:u}=BC((e=>{const t=e(qO).getSettings();return{resolvedAssets:t.__unstableResolvedAssets,isPreviewMode:t.__unstableIsPreviewMode}}),[]),{styles:d="",scripts:f=""}=c,[p,m]=(0,Sr.useState)(),[h,g]=(0,Sr.useState)([]),v=(0,Sr.useMemo)((()=>Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:r}=t;if(null===n)return e;if(!r)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:r})=>n?e(r):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(r)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),r=document.getElementById(t);r&&e.push(r.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),r=document.getElementById(t);r&&e.push(r.cloneNode(!0))}}return e}),[])),[]),b=X1(),[y,k,w]=R2(),[_,{height:E}]=$1(),x=Vx((e=>{let t;function n(e){e.preventDefault()}function r(){const{contentDocument:r,ownerDocument:o}=e,{documentElement:i}=r;t=r,b(i),g(Array.from(o.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),r.dir=o.dir;for(const e of v)r.getElementById(e.id)||(r.head.appendChild(e.cloneNode(!0)),u||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1)}return e._load=()=>{m(e.contentDocument)},e.addEventListener("load",r),()=>{delete e._load,e.removeEventListener("load",r),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),S=SX({isDisabled:!a}),C=Vg([L2(p),e,b,k,S]),I=`<!doctype html>\n<html>\n\t<head>\n\t\t<meta charset="utf-8">\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>\n\t\t${d}\n\t\t${f}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[T,P]=(0,Sr.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([I],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[I]);(0,Sr.useEffect)((()=>P),[P]);const N=E*(1-r)/2;return(0,Sr.createElement)(Sr.Fragment,null,n>=0&&y,(0,Sr.createElement)("iframe",{...l,style:{border:0,...l.style,height:i?E:l.style?.height,marginTop:1!==r?-N+o:l.style?.marginTop,marginBottom:1!==r?-N+o:l.style?.marginBottom,transform:1!==r?`scale( ${r} )`:l.style?.transform,transition:"all .3s"},ref:Vg([s,x]),tabIndex:n,src:T,title:Hn("Editor canvas"),onKeyDown:e=>{e.currentTarget.ownerDocument!==e.target.ownerDocument&&(e.stopPropagation(),B2(e,window.KeyboardEvent,e.currentTarget))}},p&&(0,cf.createPortal)((0,Sr.createElement)("body",{ref:C,className:Vl()("block-editor-iframe__body","editor-styles-wrapper",...h)},_,(0,Sr.createElement)(HS,{document:p},t)),p.documentElement)),n>=0&&w)}const z2=(0,Sr.forwardRef)((function(e,t){return BC((e=>e(qO).getSettings().__internalIsInitialized),[])?(0,Sr.createElement)(D2,{...e,forwardedRef:t}):null}));var F2=o(3692),j2=o.n(F2);const V2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function H2(e,t){t=t||{};let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){const e={line:n,column:r};return function(t){return t.position=new a(e),p(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;const s=[];function l(o){const i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;s.push(i)}function c(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){let t;const n=[];for(p(),m(n);e.length&&"}"!==e.charAt(0)&&(t=x()||S());)!1!==t&&(n.push(t),m(n));return n}function f(t){const n=t.exec(e);if(!n)return;const r=n[0];return o(r),e=e.slice(r.length),n}function p(){f(/^\s*/)}function m(e){let t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){const t=i();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");const a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}function g(){const e=f(/^([^{]+)/);if(e)return $2(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){const e=i();let t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=$2(t[0]),!f(/^:\s*/))return l("property missing ':'");const n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(V2,""),value:n?$2(n[0]).replace(V2,""):""});return f(/^[;\s]*/),r}function b(){const e=[];if(!c())return l("missing '{'");let t;for(m(e);t=v();)!1!==t&&(e.push(t),m(e));return u()?e:l("missing '}'")}function y(){let e;const t=[],n=i();for(;e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:b()})}const k=E("import"),w=E("charset"),_=E("namespace");function E(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=i(),r=f(t);if(!r)return;const o={type:e};return o[e]=r[1].trim(),n(o)}}function x(){if("@"===e[0])return function(){const e=i();let t=f(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=f(/^([-\w]+)\s*/),!t)return l("@keyframes missing name");const r=t[1];if(!c())return l("@keyframes missing '{'");let o,a=m();for(;o=y();)a.push(o),a=a.concat(m());return u()?e({type:"keyframes",name:r,vendor:n,keyframes:a}):l("@keyframes missing '}'")}()||function(){const e=i(),t=f(/^@media *([^{]+)/);if(!t)return;const n=$2(t[1]);if(!c())return l("@media missing '{'");const r=m().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}()||function(){const e=i(),t=f(/^@container *([^{]+)/);if(!t)return;const n=$2(t[1]);if(!c())return l("@container missing '{'");const r=m().concat(d());return u()?e({type:"container",container:n,rules:r}):l("@container missing '}'")}()||function(){const e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:$2(t[1]),media:$2(t[2])})}()||function(){const e=i(),t=f(/^@supports *([^{]+)/);if(!t)return;const n=$2(t[1]);if(!c())return l("@supports missing '{'");const r=m().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}()||k()||w()||_()||function(){const e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=$2(t[1]),r=$2(t[2]);if(!c())return l("@document missing '{'");const o=m().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}()||function(){const e=i();if(!f(/^@page */))return;const t=g()||[];if(!c())return l("@page missing '{'");let n,r=m();for(;n=v();)r.push(n),r=r.concat(m());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}()||function(){const e=i();if(!f(/^@host\s*/))return;if(!c())return l("@host missing '{'");const t=m().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}()||function(){const e=i();if(!f(/^@font-face\s*/))return;if(!c())return l("@font-face missing '{'");let t,n=m();for(;t=v();)n.push(t),n=n.concat(m());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}()}function S(){const e=i(),t=g();return t?(m(),e({type:"rule",selectors:t,declarations:b()})):l("selector missing")}return U2(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:s}}}())}function $2(e){return e?e.replace(/^\s+|\s+$/g,""):""}function U2(e,t){const n=e&&"string"==typeof e.type,r=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){U2(e,r)})):n&&"object"==typeof n&&U2(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var W2=o(5717),K2=o.n(W2);const G2=q2;function q2(e){this.options=e||{}}q2.prototype.emit=function(e){return e},q2.prototype.visit=function(e){return this[e.type](e)},q2.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};const Y2=X2;function X2(e){G2.call(this,e)}K2()(X2,G2),X2.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},X2.prototype.comment=function(e){return this.emit("",e.position)},X2.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},X2.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},X2.prototype.container=function(e){return this.emit("@container "+e.container,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},X2.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},X2.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},X2.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},X2.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},X2.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},X2.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},X2.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},X2.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},X2.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},X2.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},X2.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},X2.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};const Z2=Q2;function Q2(e){e=e||{},G2.call(this,e),this.indentation=e.indent}K2()(Q2,G2),Q2.prototype.compile=function(e){return this.stylesheet(e)},Q2.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Q2.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Q2.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Q2.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Q2.prototype.container=function(e){return this.emit("@container "+e.container,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Q2.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Q2.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Q2.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Q2.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Q2.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},Q2.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},Q2.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Q2.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Q2.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Q2.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Q2.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},Q2.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Q2.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};const J2=function(e,t){try{const n=H2(e),r=j2().map(n,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return function(e,t){return((t=t||{}).compress?new Y2(t):new Z2(t)).compile(e)}(r)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}};function e5(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function t5(e,t){return new URL(e,t).toString()}const n5=e=>t=>{if("declaration"===t.type){const i=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const r=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};e5(e)&&r.push(e)}return r}(t.value).map((o=e,e=>({...e,newUrl:"url("+e.before+e.quote+t5(e.value,o)+e.quote+e.after+")"})));return{...t,value:(n=t.value,r=i,r.forEach((e=>{n=n.replace(e.source,e.newUrl)})),n)}}var n,r,o;return t},r5=/^(body|html|:root).*$/,o5=(e,t=[])=>n=>{const r=n=>t.includes(n.trim())||n.trim().startsWith(`${e} `)?n:n.match(r5)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(r)}:n},i5=(e,t="")=>Object.values(null!=e?e:[]).map((({css:e,baseURL:n})=>{const r=[];return t&&r.push(o5(t)),n&&r.push(n5(n)),r.length?J2(e,Ie(r)):e}));function a5(e,t){return(0,Sr.useCallback)((e=>{if(!e)return;const{ownerDocument:n}=e,{defaultView:r,body:o}=n,i=t?n.querySelector(t):o;let a;if(i)a=r?.getComputedStyle(i,null).getPropertyValue("background-color");else{const e=n.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),a=r?.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const s=br(a);s.luminance()>.5||0===s.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e,t])}function s5({styles:e,scope:t}){const n=BC((e=>KO(e(qO)).getStyleOverrides()),[]),[r,o]=(0,Sr.useMemo)((()=>{const r=Object.values(null!=e?e:[]);for(const[e,t]of n){const n=r.findIndex((({id:t})=>e===t)),o={...t,id:e};-1===n?r.push(o):r[n]=o}return[i5(r.filter((e=>e?.css)),t),r.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")]}),[e,n,t]);return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("style",{ref:a5(r,t)}),r.map(((e,t)=>(0,Sr.createElement)("style",{key:t},e))),(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:o}}))}let l5;kr([wr,xr]);const c5=2e3;function u5({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:r=[]}){e||(e=t);const[o,{height:i}]=$1(),{styles:a}=BC((e=>({styles:e(qO).getSettings().styles})),[]),s=(0,Sr.useMemo)((()=>a?[...a,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r]:a),[a,r]);l5=l5||WY(A9);const l=t/e,c=i?t/(i*l):0;return(0,Sr.createElement)(Y1,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:c,maxHeight:i>c5?c5*l:void 0,minHeight:n}},(0,Sr.createElement)(z2,{contentRef:Vx((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:c5,minHeight:0!==l&&l<1&&n?n/l:n}},(0,Sr.createElement)(s5,{styles:s}),o,(0,Sr.createElement)(l5,{renderAppender:!1})))}function d5(e){const[t,{width:n}]=$1();return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,Sr.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,Sr.createElement)(u5,{...e,containerWidth:n})))}const f5=(0,Sr.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:r=[],__experimentalMinHeight:o,__experimentalPadding:i}){o&&(n=o,on("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],on("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const a=BC((e=>e(qO).getSettings()),[]),s=(0,Sr.useMemo)((()=>({...a,__unstableIsPreviewMode:!0})),[a]),l=(0,Sr.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,Sr.createElement)(j1,{value:l,settings:s},(0,Sr.createElement)(d5,{viewportWidth:t,minHeight:n,additionalStyles:r})):null}));const p5=function({item:e}){var t;const{name:n,title:r,icon:o,description:i,initialAttributes:a,example:s}=e,l=jr(e),c=(0,Sr.useMemo)((()=>s?so(n,{attributes:{...s.attributes,...a},innerBlocks:s.innerBlocks}):Yr(n,a)),[n,s,a]);return(0,Sr.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,Sr.createElement)("div",{className:"block-editor-inserter__preview"},l||s?(0,Sr.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,Sr.createElement)(f5,{blocks:c,viewportWidth:null!==(t=s?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 16px; }"}]})):(0,Sr.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Hn("No Preview Available."))),!l&&(0,Sr.createElement)(h1,{title:r,icon:o,description:i}))};const m5=function(e,t={step:1}){const{step:n=1}=t,[r,o]=(0,Sr.useState)([]);return(0,Sr.useEffect)((()=>{let t=function(e,t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(!t.includes(o))break;n.push(o)}return n}(e,r);t.length<n&&(t=t.concat(e.slice(t.length,n))),o(t);const i=wC();for(let r=t.length;r<e.length;r+=n)i.add({},(()=>{(0,cf.flushSync)((()=>{o((t=>[...t,...e.slice(r,r+n)]))}))}));return()=>i.reset()}),[e]),r};const h5=Hh((function(e,t){const n=xR(e);return(0,Sr.createElement)(og,{as:"span",...n,ref:t})}),"Truncate");function g5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v5(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 b5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v5(Object(n),!0).forEach((function(t){g5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y5(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function k5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w5(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k5(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=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)}function _5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E5(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 x5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E5(Object(n),!0).forEach((function(t){_5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S5(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function C5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I5(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C5(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=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 T5=(0,Sr.createContext)({});var P5,N5=function(e,t,n){void 0===n&&(n=t.children);var r=(0,Sr.useContext)(T5);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(S5(t,["children"]))}return(0,Sr.createElement)(e,t,n)};function O5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A5(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 M5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A5(Object(n),!0).forEach((function(t){O5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R5(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function B5(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function L5(e,t){if(void 0===t&&(t=[]),!R5(e.state))return B5(e,t);var n=B5(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["state"]);return[M5(M5({},i),a),o]}function D5(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;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}function z5(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return R5(t.state)&&R5(n.state)?e(M5(M5({},t.state),t),M5(M5({},n.state),n)):e(t,n)}}function F5(e){var t=e.as,n=e.useHook,r=e.memo,o=e.propsAreEqual,i=void 0===o?null==n?void 0:n.unstable_propsAreEqual:o,a=e.keys,s=void 0===a?(null==n?void 0:n.__keys)||[]:a,l=e.useCreateElement,c=void 0===l?N5:l,u=function(e,r){var o=e.as,i=void 0===o?t:o,a=S5(e,["as"]);if(n){var l,u=L5(a,s),d=u[0],f=u[1],p=n(d,x5({ref:r},f)),m=p.wrapElement,h=S5(p,["wrapElement"]),g=(null===(l=i.render)||void 0===l?void 0:l.__keys)||i.__keys,v=g&&L5(a,g)[0],b=v?x5(x5({},h),v):h,y=c(i,b);return m?m(y):y}return c(i,x5({ref:r},a))};return u=function(e){return(0,Sr.forwardRef)(e)}(u),r&&(u=function(e,t){return(0,Sr.memo)(e,t)}(u,i&&z5(i))),u.__keys=s,u.unstable_propsAreEqual=z5(i||D5),u}function j5(e,t){(0,Sr.useDebugValue)(e);var n=(0,Sr.useContext)(T5);return null!=n[e]?n[e]:t}function V5(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),i=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";(0,Sr.useDebugValue)(r);var o=j5(r);return o?x5(x5({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,i=I5(o);!(r=i()).done;){t=r.value.__useOptions(t,n)}return t},a=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=i(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";(0,Sr.useDebugValue)(r);var o=j5(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,s=I5(o);!(a=s()).done;){n=(0,a.value)(t,n,!0)}var l={},c=n||{};for(var u in c)void 0!==c[u]&&(l[u]=c[u]);return l};a.__useOptions=i;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return a.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),a.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||D5,a}function H5(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function $5(e,t){return(0,Sr.useMemo)((function(){return null==e&&null==t?null:function(n){H5(e,n),H5(t,n)}}),[e,t])}function U5(e){return e?e.ownerDocument||e:document}try{P5=window}catch(e){}function W5(e){return e&&U5(e).defaultView||P5}var K5=function(){var e=W5();return Boolean(void 0!==e&&e.document&&e.document.createElement)}(),G5=K5?Sr.useLayoutEffect:Sr.useEffect;function q5(e){var t=(0,Sr.useRef)(e);return G5((function(){t.current=e})),t}function Y5(e){return e.target===e.currentTarget}function X5(e){var t=U5(e).activeElement;return null!=t&&t.nodeName?t:null}function Z5(e,t){return e===t||e.contains(t)}function Q5(e){var t=X5(e);if(!t)return!1;if(Z5(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function J5(e){return!Z5(e.currentTarget,e.target)}var e3=["button","color","file","image","reset","submit"];function t3(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==e3.indexOf(t.type)}return!1}function n3(e){return!!K5&&-1!==window.navigator.userAgent.indexOf(e)}var r3="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function o3(e){return function(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}(e,r3)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var i3=V5({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=y5(e,["unstable_system"]),o=t.unstable_system,i=y5(t,["unstable_system"]);return!(n!==o&&!D5(n,o))&&D5(r,i)}}),a3=(F5({as:"div",useHook:i3}),n3("Mac")&&!n3("Chrome")&&(n3("Safari")||n3("Firefox")));function s3(e){!Q5(e)&&o3(e)&&e.focus()}function l3(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function c3(e,t){return(0,Sr.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 u3=V5({name:"Tabbable",compose:i3,keys:["disabled","focusable"],useOptions:function(e,t){return b5({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=y5(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,Sr.useRef)(null),d=q5(o),f=q5(i),p=q5(a),m=q5(s),h=!!e.disabled&&!e.focusable,g=(0,Sr.useState)(!0),v=g[0],b=g[1],y=(0,Sr.useState)(!0),k=y[0],w=y[1],_=e.disabled?b5({pointerEvents:"none"},l):l;G5((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||b(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||w(!1))}),[]);var E=c3(d,e.disabled),x=c3(f,e.disabled),S=c3(m,e.disabled),C=(0,Sr.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e);var n=e.currentTarget;if(!e.defaultPrevented&&a3&&!J5(e)&&t3(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),s3(n)})),o=function(){cancelAnimationFrame(r),s3(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return b5({ref:$5(u,n),style:_,tabIndex:l3(h,v,k,r),disabled:!(!h||!k)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:E,onMouseDownCapture:x,onMouseDown:C,onKeyPressCapture:S},c)}});F5({as:"div",useHook:u3});var d3=V5({name:"Clickable",compose:u3,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return b5({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},y5(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=y5(t,["onKeyDown","onKeyUp"]),i=(0,Sr.useState)(!1),a=i[0],s=i[1],l=q5(n),c=q5(r),u=(0,Sr.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Y5(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&&(t3(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,Sr.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 b5({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});F5({as:"button",memo:!0,useHook:d3});function f3(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function p3(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=f3(e.items||[]))||void 0===n?void 0:n.id}var m3=["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"],h3=m3,g3=h3;function v3(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function b3(e,t){e.userFocus=t}function y3(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 k3(e){var t=X5(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function w3(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var _3=(0,Sr.createContext)(w3);var E3=V5({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,Sr.useContext)(_3),r=(0,Sr.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,Sr.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return b5(b5({},e),{},{id:i})},useProps:function(e,t){return b5({id:e.id},t)}});F5({as:"div",useHook:E3});function x3(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=U5(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function S3(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(x3(e,t,n))}(e,"input",{bubbles:!0}))}}function C3(e){return e.querySelector("[data-composite-item-widget]")}var I3=V5({name:"CompositeItem",compose:[d3,E3],keys:g3,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return d3.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=y5(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=y5(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return d3.unstable_propsAreEqual(o,s)},useOptions:function(e){return b5(b5({},e),{},{id:e.id,currentId:p3(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=y5(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,Sr.useRef)(null),p=e.id,m=e.disabled&&!e.focusable,h=e.currentId===p,g=q5(h),v=(0,Sr.useRef)(!1),b=function(e){return(0,Sr.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),y=q5(a),k=q5(s),w=q5(l),_=q5(c),E=q5(u),x=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&h||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,Sr.useEffect)((function(){var t;if(p)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:p,ref:f,disabled:!!m}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,p)}}),[p,m,e.registerItem,e.unregisterItem]),(0,Sr.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&g.current&&v3(t)}),[e.unstable_moves]);var S=(0,Sr.useCallback)((function(e){var t;null===(t=y.current)||void 0===t||t.call(y,e),b3(e.currentTarget,!0)}),[]),C=(0,Sr.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(b3(t.currentTarget,!1),null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented&&!J5(t)&&p&&!function(e,t){if(Y5(e))return!1;for(var n,r=w5(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&&Y5(t))){var i=U5(t.target).getElementById(e.baseId);i&&(v.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?k3: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,Sr.useCallback)((function(t){var n;null===(n=w.current)||void 0===n||n.call(w,t),t.defaultPrevented||e.unstable_virtual&&v.current&&(v.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),T=(0,Sr.useCallback)((function(t){var n;if(Y5(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==b||!b.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=_.current)||void 0===n||n.call(_,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=C3(t.currentTarget);s&&y3(s)&&(s.focus(),S3(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=C3(t.currentTarget);l&&y3(l)&&(t.preventDefault(),S3(l,""))}}}),[e.orientation,b,e.up,e.next,e.down,e.previous,e.first,e.last]),P=(0,Sr.useCallback)((function(e){var t;if(null===(t=E.current)||void 0===t||t.call(E,e),!e.defaultPrevented){var n=C3(e.currentTarget);n&&!Q5(n)&&n.focus()}}),[]);return b5({ref:$5(f,r),id:p,tabIndex:x?i:-1,"aria-selected":!(!e.unstable_virtual||!h)||void 0,onMouseDown:S,onFocus:C,onBlurCapture:I,onKeyDown:T,onClick:P},d)}}),T3=F5({as:"button",memo:!0,useHook:I3});const P3=(0,Sr.createContext)();const N3=(0,Sr.forwardRef)((function({isFirst:e,as:t,children:n,...r},o){const i=(0,Sr.useContext)(P3);return(0,Sr.createElement)(T3,{ref:o,state:i,role:"option",focusable:!0,...r},(r=>{const o={...r,tabIndex:e?0:r.tabIndex};return t?(0,Sr.createElement)(t,{...o},n):"function"==typeof n?n(o):(0,Sr.createElement)(lg,{...o},n)}))})),O3=(e,t,n)=>{let r=!0,o=!0;return n&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),HY(e,t,{leading:r,trailing:o,maxWait:t})},A3="is-dragging-components-draggable";const M3=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:a,transferData:s,__experimentalTransferDataType:l="text",__experimentalDragComponent:c}){const u=(0,Sr.useRef)(null),d=(0,Sr.useRef)((()=>{}));return(0,Sr.useEffect)((()=>()=>{d.current()}),[]),(0,Sr.createElement)(Sr.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(l,JSON.stringify(s));const c=r.createElement("div");c.style.top="0",c.style.left="0";const f=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(f.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(f),e.dataTransfer.setDragImage(f,0,0)),c.classList.add("components-draggable__clone"),i&&c.classList.add(i);let p=0,m=0;if(u.current){p=e.clientX,m=e.clientY,c.style.transform=`translate( ${p}px, ${m}px )`;const t=r.createElement("div");t.innerHTML=u.current.innerHTML,c.appendChild(t),r.body.appendChild(c)}else{const e=r.getElementById(a),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,s=t.left;c.style.width=`${t.width+0}px`;const l=e.cloneNode(!0);l.id=`clone-${a}`,p=s-0,m=i-0,c.style.transform=`translate( ${p}px, ${m}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),c.appendChild(l),o?r.body.appendChild(c):n?.appendChild(c)}let h=e.clientX,g=e.clientY;const v=O3((function(e){if(h===e.clientX&&g===e.clientY)return;const t=p+e.clientX-h,r=m+e.clientY-g;c.style.transform=`translate( ${t}px, ${r}px )`,h=e.clientX,g=e.clientY,p=t,m=r,n&&n(e)}),16);r.addEventListener("dragover",v),r.body.classList.add(A3),t&&t(e),d.current=()=>{c&&c.parentNode&&c.parentNode.removeChild(c),f&&f.parentNode&&f.parentNode.removeChild(f),r.body.classList.remove(A3),r.removeEventListener("dragover",v)}},onDraggableEnd:function(e){e.preventDefault(),d.current(),r&&r(e)}}),c&&(0,Sr.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:u},c))},R3=(0,Sr.createElement)(Jp,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function B3({count:e,icon:t,isPattern:n}){const r=n&&Hn("Pattern");return(0,Sr.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,Sr.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},(0,Sr.createElement)(mR,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,Sr.createElement)(gR,null,t?(0,Sr.createElement)(m1,{icon:t}):r||Nn(Un("%d block","%d blocks",e),e)),(0,Sr.createElement)(gR,null,(0,Sr.createElement)(m1,{icon:R3})))))}const L3=({isEnabled:e,blocks:t,icon:n,children:r,isPattern:o})=>{const i={type:"inserter",blocks:t},a=BC((e=>{const{getBlockType:n}=e(yi);return 1===t.length&&n(t[0].name)?.icon}),[t]);return(0,Sr.createElement)(M3,{__experimentalTransferDataType:"wp-blocks",transferData:i,onDragStart:e=>{e.dataTransfer.setData("text/html",ya(t))},__experimentalDragComponent:(0,Sr.createElement)(B3,{count:t.length,icon:n||!o&&a,isPattern:o})},(({onDraggableStart:t,onDraggableEnd:n})=>r({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0})))};const D3=(0,Sr.memo)((function({className:e,isFirst:t,item:n,onSelect:r,onHover:o,isDraggable:i,...a}){const s=(0,Sr.useRef)(!1),l=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},c=(0,Sr.useMemo)((()=>[Yr(n.name,n.initialAttributes,Xr(n.innerBlocks))]),[n.name,n.initialAttributes,n.initialAttributes]),u=jr(n)&&"unsynced"!==n.syncStatus||Vr(n);return(0,Sr.createElement)(L3,{isEnabled:i&&!n.disabled,blocks:c,icon:n.icon},(({draggable:i,onDragStart:c,onDragEnd:d})=>(0,Sr.createElement)("div",{className:Vl()("block-editor-block-types-list__list-item",{"is-synced":u}),draggable:i,onDragStart:e=>{s.current=!0,c&&(o(null),c(e))},onDragEnd:e=>{s.current=!1,d&&d(e)}},(0,Sr.createElement)(N3,{isFirst:t,className:Vl()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),r(n,lx()?e.metaKey:e.ctrlKey),o(null)},onKeyDown:e=>{const{keyCode:t}=e;t===dx&&(e.preventDefault(),r(n,lx()?e.metaKey:e.ctrlKey),o(null))},onMouseEnter:()=>{s.current||o(n)},onMouseLeave:()=>o(null),...a},(0,Sr.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:l},(0,Sr.createElement)(m1,{icon:n.icon,showColors:!0})),(0,Sr.createElement)("span",{className:"block-editor-block-types-list__item-title"},(0,Sr.createElement)(h5,{numberOfLines:3},n.title))))))}));const z3=(0,Sr.forwardRef)((function(e,t){const[n,r]=(0,Sr.useState)(!1);return(0,Sr.useEffect)((()=>{n&&NN(Hn("Use left and right arrow keys to move through blocks"))}),[n]),(0,Sr.createElement)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&r(!1)},...e})}));function F3(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}var j3=V5({name:"Group",compose:i3,keys:[],useProps:function(e,t){return b5({role:"group"},t)}}),V3=(F5({as:"div",useHook:j3}),V5({name:"CompositeGroup",compose:[j3,E3],keys:h3,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return j3.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,y5(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,y5(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=F3(e.items,n),s=F3(t.items,o),l=null==a?void 0:a.groupId,c=null==s?void 0:s.groupId;if(t.id===c||t.id===l)return!1}return j3.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=y5(t,["ref"]),o=(0,Sr.useRef)(null),i=e.id;return G5((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),b5({ref:$5(o,n)},r)}})),H3=F5({as:"div",useHook:V3});const $3=(0,Sr.forwardRef)((function(e,t){const n=(0,Sr.useContext)(P3);return(0,Sr.createElement)(H3,{state:n,role:"presentation",ref:t,...e})}));const U3=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:r,label:o,isDraggable:i=!0}){return(0,Sr.createElement)(z3,{className:"block-editor-block-types-list","aria-label":o},function(e,t){const n=[];for(let r=0,o=e.length;r<o;r+=t)n.push(e.slice(r,r+t));return n}(e,3).map(((e,r)=>(0,Sr.createElement)($3,{key:r},e.map(((e,o)=>(0,Sr.createElement)(D3,{key:e.id,item:e,className:fa(e.id),onSelect:t,onHover:n,isDraggable:i&&!e.isDisabled,isFirst:0===r&&0===o})))))),r)};const W3=function({title:e,icon:t,children:n}){return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,Sr.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),(0,Sr.createElement)(tm,{icon:t})),(0,Sr.createElement)("div",{className:"block-editor-inserter__panel-content"},n))},K3=(e,t)=>{const{categories:n,collections:r,items:o}=BC((t=>{const{getInserterItems:n}=t(qO),{getCategories:r,getCollections:o}=t(yi);return{categories:r(),collections:o(),items:n(e)}}),[e]);return[o,n,r,(0,Sr.useCallback)((({name:e,initialAttributes:n,innerBlocks:r,syncStatus:o,content:i},a)=>{const s="unsynced"===o?Ss(i,{__unstableSkipMigrationLogs:!0}):Yr(e,n,Xr(r));t(s,void 0,a)}),[t])]};function G3(e){return(0,Sr.useState)(e)[0]}function q3(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=w5(e);!(t=o()).done;)r();return n}function Y3(e){for(var t,n=[],r=w5(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function X3(e){return e.slice().reverse()}function Z3(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function Q3(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function J3(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&Q3(t.ref.current,e.ref.current)}))}function e4(e){for(var t,n=0,r=w5(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function t4(e){for(var t=q3(e),n=e4(t),r=[],o=0;o<n;o+=1)for(var i,a=w5(t);!(i=a()).done;){var s=i.value;s[o]&&r.push(b5(b5({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function n4(e,t,n){for(var r,o=e4(e),i=w5(e);!(r=i()).done;)for(var a=r.value,s=0;s<o;s+=1){var l=a[s];if(!l||n&&l.disabled){var c=0===s&&n?f3(a):a[s-1];a[s]=c&&t!==(null==c?void 0:c.id)&&n?c:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==c?void 0:c.groupId}}}return e}var r4={id:null,ref:{current:null}};function o4(e,t){return e.filter((function(e){return e.groupId===t}))}var i4={horizontal:"vertical",vertical:"horizontal"};function a4(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function s4(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],s=o.ref.current,l=a.ref.current;return s&&l?Q3(s,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function l4(e,t){var n=s4(e);e!==n&&t(n)}function c4(e,t){var n=(0,Sr.useRef)([]);(0,Sr.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"==typeof a)return a.v}return U5(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&l4(e,t),n.current=e}),{root:o}),a=w5(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function u4(e,t){"function"==typeof IntersectionObserver?c4(e,t):function(e,t){(0,Sr.useEffect)((function(){var n=setTimeout((function(){return l4(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function d4(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,s=e.currentId,l=e.loop,c=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,p=e.unstable_includesBaseElement,m=e.initialVirtual,h=e.initialRTL,g=e.initialOrientation,v=e.initialCurrentId,b=e.initialLoop,y=e.initialWrap,k=e.initialShift,w=e.hasSetCurrentId;switch(t.type){case"registerGroup":var _=t.group;if(0===a.length)return b5(b5({},e),{},{groups:[_]});var E=J3(a,_);return b5(b5({},e),{},{groups:a4(a,_,E)});case"unregisterGroup":var x=t.id,S=a.filter((function(e){return e.id!==x}));return S.length===a.length?e:b5(b5({},e),{},{groups:S});case"registerItem":var C,I=t.item,T=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(I.ref.current)})),P=b5({groupId:null==T?void 0:T.id},I),N=J3(i,P),O=b5(b5({},e),{},{items:a4(i,P,N)});return w||f||void 0!==v?O:b5(b5({},O),{},{currentId:null===(C=f3(O.items))||void 0===C?void 0:C.id});case"unregisterItem":var A=t.id,M=i.filter((function(e){return e.id!==A}));if(M.length===i.length)return e;var R=u.filter((function(e){return e!==A})),B=b5(b5({},e),{},{pastIds:R,items:M});if(s&&s===A){var L=p?null:p3(b5(b5({},B),{},{currentId:R[0]}));return b5(b5({},B),{},{currentId:L})}return B;case"move":var D=t.id;if(void 0===D)return e;var z=u.filter((function(e){return e!==s&&e!==D})),F=s?[s].concat(z):z,j=b5(b5({},e),{},{pastIds:F});if(null===D)return b5(b5({},j),{},{unstable_moves:f+1,currentId:p3(j,D)});var V=F3(i,D);return b5(b5({},j),{},{unstable_moves:V?f+1:f,currentId:p3(j,null==V?void 0:V.id)});case"next":if(null==s)return d4(e,b5(b5({},t),{},{type:"first"}));var H=r&&"vertical"!==o,$=H?X3(i):i,U=$.find((function(e){return e.id===s}));if(!U)return d4(e,b5(b5({},t),{},{type:"first"}));var W=!!U.groupId,K=$.indexOf(U),G=$.slice(K+1),q=o4(G,U.groupId);if(t.allTheWay){var Y=f3(H?o4($,U.groupId):X3(q));return d4(e,b5(b5({},t),{},{type:"move",id:null==Y?void 0:Y.id}))}var X=function(e){return e&&i4[e]}(W?o||"horizontal":o),Z=l&&l!==X,Q=W&&c&&c!==X,J=t.hasNullItem||!W&&Z&&p;if(Z){var ee=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[r4]:[],e.slice(0,r))}(Q&&!J?$:o4($,U.groupId),s,J),te=f3(ee,s);return d4(e,b5(b5({},t),{},{type:"move",id:null==te?void 0:te.id}))}if(Q){var ne=f3(J?q:G,s),re=J?(null==ne?void 0:ne.id)||null:null==ne?void 0:ne.id;return d4(e,b5(b5({},t),{},{type:"move",id:re}))}var oe=f3(q,s);return d4(e,!oe&&J?b5(b5({},t),{},{type:"move",id:null}):b5(b5({},t),{},{type:"move",id:null==oe?void 0:oe.id}));case"previous":var ie=!!!a.length&&p,ae=d4(b5(b5({},e),{},{items:X3(i)}),b5(b5({},t),{},{type:"next",hasNullItem:ie}));return b5(b5({},ae),{},{items:i});case"down":var se=d&&!t.allTheWay,le=t4(Y3(n4(q3(i),s,se))),ce=l&&"horizontal"!==l&&p,ue=d4(b5(b5({},e),{},{orientation:"vertical",items:le}),b5(b5({},t),{},{type:"next",hasNullItem:ce}));return b5(b5({},ue),{},{orientation:o,items:i});case"up":var de=d&&!t.allTheWay,fe=t4(X3(Y3(n4(q3(i),s,de)))),pe=p,me=d4(b5(b5({},e),{},{orientation:"vertical",items:fe}),b5(b5({},t),{},{type:"next",hasNullItem:pe}));return b5(b5({},me),{},{orientation:o,items:i});case"first":var he=f3(i);return d4(e,b5(b5({},t),{},{type:"move",id:null==he?void 0:he.id}));case"last":var ge=d4(b5(b5({},e),{},{items:X3(i)}),b5(b5({},t),{},{type:"first"}));return b5(b5({},ge),{},{items:i});case"sort":return b5(b5({},e),{},{items:s4(i),groups:s4(a)});case"setVirtual":return b5(b5({},e),{},{unstable_virtual:Z3(t.virtual,n)});case"setRTL":return b5(b5({},e),{},{rtl:Z3(t.rtl,r)});case"setOrientation":return b5(b5({},e),{},{orientation:Z3(t.orientation,o)});case"setCurrentId":var ve=p3(b5(b5({},e),{},{currentId:Z3(t.currentId,s)}));return b5(b5({},e),{},{currentId:ve,hasSetCurrentId:!0});case"setLoop":return b5(b5({},e),{},{loop:Z3(t.loop,l)});case"setWrap":return b5(b5({},e),{},{wrap:Z3(t.wrap,c)});case"setShift":return b5(b5({},e),{},{shift:Z3(t.shift,d)});case"setIncludesBaseElement":return b5(b5({},e),{},{unstable_includesBaseElement:Z3(t.includesBaseElement,p)});case"reset":return b5(b5({},e),{},{unstable_virtual:m,rtl:h,orientation:g,currentId:p3(b5(b5({},e),{},{currentId:v})),loop:b,wrap:y,shift:k,unstable_moves:0,pastIds:[]});case"setItems":return b5(b5({},e),{},{items:t.items});default:throw new Error}}function f4(e){return(0,Sr.useCallback)(e,[])}function p4(e){void 0===e&&(e={});var t=G3(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,i=void 0!==o&&o,a=t.orientation,s=t.currentId,l=t.loop,c=void 0!==l&&l,u=t.wrap,d=void 0!==u&&u,f=t.shift,p=void 0!==f&&f,m=t.unstable_includesBaseElement,h=function(e){void 0===e&&(e={});var t=G3(e).baseId,n=(0,Sr.useContext)(_3),r=(0,Sr.useRef)(0),o=(0,Sr.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}(y5(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),g=(0,Sr.useReducer)(d4,{unstable_virtual:r,rtl:i,orientation:a,items:[],groups:[],currentId:s,loop:c,wrap:d,shift:p,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=m?m:null===s,initialVirtual:r,initialRTL:i,initialOrientation:a,initialCurrentId:s,initialLoop:c,initialWrap:d,initialShift:p}),v=g[0],b=(v.pastIds,v.initialVirtual,v.initialRTL,v.initialOrientation,v.initialCurrentId,v.initialLoop,v.initialWrap,v.initialShift,v.hasSetCurrentId,y5(v,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),y=g[1],k=(0,Sr.useState)(!1),w=k[0],_=k[1],E=function(){var e=(0,Sr.useRef)(!1);return G5((function(){return function(){e.current=!0}}),[]),e}(),x=(0,Sr.useCallback)((function(e){return y({type:"setItems",items:e})}),[]);return u4(b.items,x),b5(b5(b5({},h),b),{},{unstable_hasActiveWidget:w,unstable_setHasActiveWidget:_,registerItem:f4((function(e){E.current||y({type:"registerItem",item:e})})),unregisterItem:f4((function(e){E.current||y({type:"unregisterItem",id:e})})),registerGroup:f4((function(e){E.current||y({type:"registerGroup",group:e})})),unregisterGroup:f4((function(e){E.current||y({type:"unregisterGroup",id:e})})),move:f4((function(e){return y({type:"move",id:e})})),next:f4((function(e){return y({type:"next",allTheWay:e})})),previous:f4((function(e){return y({type:"previous",allTheWay:e})})),up:f4((function(e){return y({type:"up",allTheWay:e})})),down:f4((function(e){return y({type:"down",allTheWay:e})})),first:f4((function(){return y({type:"first"})})),last:f4((function(){return y({type:"last"})})),sort:f4((function(){return y({type:"sort"})})),unstable_setVirtual:f4((function(e){return y({type:"setVirtual",virtual:e})})),setRTL:f4((function(e){return y({type:"setRTL",rtl:e})})),setOrientation:f4((function(e){return y({type:"setOrientation",orientation:e})})),setCurrentId:f4((function(e){return y({type:"setCurrentId",currentId:e})})),setLoop:f4((function(e){return y({type:"setLoop",loop:e})})),setWrap:f4((function(e){return y({type:"setWrap",wrap:e})})),setShift:f4((function(e){return y({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:f4((function(e){return y({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:f4((function(){return y({type:"reset"})}))})}const m4=function({children:e}){const t=p4({shift:!0,wrap:"horizontal"});return(0,Sr.createElement)(P3.Provider,{value:t},e)},h4=[];const g4=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r}){const[o,i,a,s]=K3(e,t),l=(0,Sr.useMemo)((()=>HI(o,"frecency","desc").slice(0,6)),[o]),c=(0,Sr.useMemo)((()=>o.filter((e=>!e.category))),[o]),u=(0,Sr.useMemo)((()=>Ce((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>e.reduce(((e,t)=>{const{category:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{})))(o)),[o]),d=(0,Sr.useMemo)((()=>{const e={...a};return Object.keys(a).forEach((t=>{e[t]=o.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[o,a]);(0,Sr.useEffect)((()=>()=>n(null)),[]);const f=m5(i),p=i.length===f.length,m=(0,Sr.useMemo)((()=>Object.entries(a)),[a]),h=m5(p?m:h4);return(0,Sr.createElement)(m4,null,(0,Sr.createElement)("div",null,r&&!!l.length&&(0,Sr.createElement)(W3,{title:$n("Most used","blocks")},(0,Sr.createElement)(U3,{items:l,onSelect:s,onHover:n,label:$n("Most used","blocks")})),f.map((e=>{const t=u[e.slug];return t&&t.length?(0,Sr.createElement)(W3,{key:e.slug,title:e.title,icon:e.icon},(0,Sr.createElement)(U3,{items:t,onSelect:s,onHover:n,label:e.title})):null})),p&&c.length>0&&(0,Sr.createElement)(W3,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Hn("Uncategorized")},(0,Sr.createElement)(U3,{items:c,onSelect:s,onHover:n,label:Hn("Uncategorized")})),h.map((([e,t])=>{const r=d[e];return r&&r.length?(0,Sr.createElement)(W3,{key:e,title:t.title,icon:t.icon},(0,Sr.createElement)(U3,{items:r,onSelect:s,onHover:n,label:t.title})):null}))))};const v4=Hh((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Vh(e,"VStack");return $$({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,Sr.createElement)(og,{...n,ref:t})}),"VStack");const b4=e=>SM("font-size:",vB("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:","a"===e?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",DM.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) var(\n\t\t\t\t\t--wp-components-color-accent,\n\t\t\t\t\tvar( --wp-admin-theme-color, ",DM.theme.accent," )\n\t\t\t\t);outline:2px solid transparent;outline-offset:0;}",""),y4={name:"1bcj5ek",styles:"width:100%;display:block"},k4={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},w4=SM("border:1px solid ",PR.surfaceBorderColor,";",""),_4=SM(">*:not( marquee )>*{border-bottom:1px solid ",PR.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),E4=PR.controlBorderRadius,x4=SM("border-radius:",E4,";",""),S4=SM("border-radius:",E4,";>*:first-of-type>*{border-top-left-radius:",E4,";border-top-right-radius:",E4,";}>*:last-of-type>*{border-bottom-left-radius:",E4,";border-bottom-right-radius:",E4,";}",""),C4=`calc(${PR.fontSize} * ${PR.fontLineHeightBase})`,I4=`calc((${PR.controlHeight} - ${C4} - 2px) / 2)`,T4=`calc((${PR.controlHeightSmall} - ${C4} - 2px) / 2)`,P4=`calc((${PR.controlHeightLarge} - ${C4} - 2px) / 2)`,N4={small:SM("padding:",T4," ",PR.controlPaddingXSmall,";",""),medium:SM("padding:",I4," ",PR.controlPaddingX,";",""),large:SM("padding:",P4," ",PR.controlPaddingXLarge,";","")};const O4=(0,Sr.createContext)({size:"medium"}),A4=()=>(0,Sr.useContext)(O4);const M4=Hh((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}=Vh(e,"ItemGroup");return{isBordered:n,className:jh()(n&&w4,o&&_4,r&&S4,t),role:i,isSeparated:o,...a}}(e),{size:a}=A4(),s={spacedAround:!n&&!r,size:o||a};return(0,Sr.createElement)(O4.Provider,{value:s},(0,Sr.createElement)(og,{...i,ref:t}))}),"ItemGroup");const R4=Hh((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=Vh(e,"Item"),{spacedAround:s,size:l}=A4(),c=i||l,u=t||(void 0!==r?"button":"div"),d=jh(),f=(0,Sr.useMemo)((()=>d(("button"===u||"a"===u)&&b4(u),N4[c]||N4.medium,k4,s&&x4,n)),[u,n,d,c,s]),p=d(y4);return{as:u,className:f,onClick:r,wrapperClassName:p,role:o,...a}}(e);return(0,Sr.createElement)("div",{role:n,className:r},(0,Sr.createElement)(og,{...o,ref:t}))}),"Item"),B4=R4,L4=(e,t)=>{const{patternCategories:n,patterns:r,userPatternCategories:o}=BC((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:r}=e(qO),{__experimentalUserPatternCategories:o,__experimentalBlockPatternCategories:i}=r();return{patterns:n(t),userPatternCategories:o,patternCategories:i}}),[t]),i=(0,Sr.useMemo)((()=>{const e=[...n];return o?.forEach((t=>{e.find((e=>e.name===t.name))||e.push(t)})),e}),[n,o]),{createSuccessNotice:a}=Sq(A2),s=(0,Sr.useCallback)(((t,n)=>{const r=t.id&&"unsynced"!==t.syncStatus?[Yr("core/block",{ref:t.id})]:n;e((null!=r?r:[]).map((e=>Qr(e))),t.name),a(Nn(Hn('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[a,e]);return[r,i,s]};function D4(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):x3(e,t,n)}function z4(e,t){var n=D4(e,"blur",t),r=e.dispatchEvent(n),o=M5(M5({},t),{},{bubbles:!0});return e.dispatchEvent(D4(e,"focusout",o)),r}function F4(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=U5(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,W5(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var j4=K5&&"msCrypto"in window;var V4=K5&&"msCrypto"in window;function H4(e,t,n){var r=q5(n);return(0,Sr.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!Y5(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(F4(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function $4(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var U4=V5({name:"Composite",compose:[u3],keys:m3,useOptions:function(e){return b5(b5({},e),{},{currentId:p3(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,i=t.onBlurCapture,a=t.onKeyDown,s=t.onKeyDownCapture,l=t.onKeyUpCapture,c=y5(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=(0,Sr.useRef)(null),d=F3(e.items,e.currentId),f=(0,Sr.useRef)(null),p=q5(r),m=q5(o),h=q5(i),g=q5(a),v=function(e){var t=q5(e),n=(0,Sr.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return(0,Sr.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&v3(n)}),[r]),o}(d),b=V4?function(e){var t=(0,Sr.useRef)(null);return(0,Sr.useEffect)((function(){var n=U5(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;(0,Sr.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var y=H4(e.unstable_virtual,d,s),k=H4(e.unstable_virtual,d,l),w=(0,Sr.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==b?void 0:b.current)||t.relatedTarget,o=$4(e.items,r);Y5(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),_=(0,Sr.useCallback)((function(t){var n;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented)if(e.unstable_virtual)Y5(t)&&v();else if(Y5(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),E=(0,Sr.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return j4?X5(e.currentTarget):e.relatedTarget}(t),i=$4(e.items,o);if(Y5(t)&&i)o===r?f.current&&f.current!==o&&z4(f.current,t):r&&z4(r,t),t.stopPropagation();else!$4(e.items,t.target)&&r&&z4(r,t)}}),[e.unstable_virtual,e.items,d]),x=(0,Sr.useCallback)((function(t){var n,r;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented&&null===e.currentId&&Y5(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),s={ArrowUp:(a||o)&&function(){if(a){var t,n=f3(Y3(X3(q3(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last},l=s[t.key];l&&(t.preventDefault(),l())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return b5({ref:$5(u,n),id:e.baseId,onFocus:_,onFocusCapture:w,onBlurCapture:E,onKeyDownCapture:y,onKeyDown:x,onKeyUpCapture:k,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},c)},useComposeProps:function(e,t){t=i3(e,t,!0);var n=u3(e,t,!0);return e.unstable_virtual||null===e.currentId?b5({tabIndex:0},n):b5(b5({},t),{},{ref:n.ref})}}),W4=F5({as:"div",useHook:U4,useCreateElement:function(e,t,n){return N5(e,t,n)}});function K4({currentPage:e,numPages:t,changePage:n,totalItems:r}){return(0,Sr.createElement)(v4,{className:"block-editor-patterns__grid-pagination-wrapper"},(0,Sr.createElement)(KR,{variant:"muted"},Nn(Un("%s item","%s items",r),r)),t>1&&(0,Sr.createElement)(U$,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination"},(0,Sr.createElement)(U$,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous"},(0,Sr.createElement)(lg,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":Hn("First page")},(0,Sr.createElement)("span",null,"«")),(0,Sr.createElement)(lg,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":Hn("Previous page")},(0,Sr.createElement)("span",null,"‹"))),(0,Sr.createElement)(KR,{variant:"muted"},Nn($n("%1$s of %2$s","paging"),e,t)),(0,Sr.createElement)(U$,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next"},(0,Sr.createElement)(lg,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":Hn("Next page")},(0,Sr.createElement)("span",null,"›")),(0,Sr.createElement)(lg,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":Hn("Last page"),size:"default"},(0,Sr.createElement)("span",null,"»")))))}const G4=({showTooltip:e,title:t,children:n})=>e?(0,Sr.createElement)(Zp,{text:t},n):(0,Sr.createElement)(Sr.Fragment,null,n);function q4({isDraggable:e,pattern:t,onClick:n,onHover:r,composite:o,showTooltip:i}){const[a,s]=(0,Sr.useState)(!1),{blocks:l,viewportWidth:c}=t,u=`block-editor-block-patterns-list__item-description-${Wl(q4)}`;return(0,Sr.createElement)(L3,{isEnabled:e,blocks:l,isPattern:!!t},(({draggable:e,onDragStart:d,onDragEnd:f})=>(0,Sr.createElement)("div",{className:"block-editor-block-patterns-list__list-item",draggable:e,onDragStart:e=>{s(!0),d&&(r?.(null),d(e))},onDragEnd:e=>{s(!1),f&&f(e)}},(0,Sr.createElement)(G4,{showTooltip:i&&!t.id,title:t.title},(0,Sr.createElement)(T3,{role:"option",as:"div",...o,className:Vl()("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":t.id&&!t.syncStatus}),onClick:()=>{n(t,l),r?.(null)},onMouseEnter:()=>{a||r?.(t)},onMouseLeave:()=>r?.(null),"aria-label":t.title,"aria-describedby":t.description?u:void 0},(0,Sr.createElement)(f5,{blocks:l,viewportWidth:c}),(0,Sr.createElement)(U$,{className:"block-editor-patterns__pattern-details"},t.id&&!t.syncStatus&&(0,Sr.createElement)("div",{className:"block-editor-patterns__pattern-icon-wrapper"},(0,Sr.createElement)(EM,{className:"block-editor-patterns__pattern-icon",icon:tI})),(!i||t.id)&&(0,Sr.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title)),!!t.description&&(0,Sr.createElement)(ig,{id:u},t.description))))))}function Y4(){return(0,Sr.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}const X4=(0,Sr.forwardRef)((function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:r,onClickPattern:o,orientation:i,label:a=Hn("Block patterns"),showTitlesAsTooltip:s,pagingProps:l},c){const u=p4({orientation:i});return(0,Sr.createElement)(W4,{...u,role:"listbox",className:"block-editor-block-patterns-list","aria-label":a,ref:c},t.map((t=>n.includes(t)?(0,Sr.createElement)(q4,{key:t.name,pattern:t,onClick:o,onHover:r,isDraggable:e,composite:u,showTooltip:s}):(0,Sr.createElement)(Y4,{key:t.name}))),l&&(0,Sr.createElement)(K4,{...l}))}));function Z4({selectedCategory:e,patternCategories:t,onClickCategory:n}){const r="block-editor-block-patterns-explorer__sidebar";return(0,Sr.createElement)("div",{className:`${r}__categories-list`},t.map((({name:t,label:o})=>(0,Sr.createElement)(lg,{key:t,label:o,className:`${r}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)}},o))))}function Q4({searchValue:e,setSearchValue:t}){return(0,Sr.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,Sr.createElement)(Y0,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:Hn("Search for patterns"),placeholder:Hn("Search")}))}const J4=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:r,setSearchValue:o}){return(0,Sr.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,Sr.createElement)(Q4,{searchValue:r,setSearchValue:o}),!r&&(0,Sr.createElement)(Z4,{selectedCategory:e,patternCategories:t,onClickCategory:n}))};const e6=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:r,onSelect:o,shouldFocusBlock:i=!0,selectBlockOnInsert:a=!0}){const{getSelectedBlock:s}=BC(qO),{destinationRootClientId:l,destinationIndex:c}=BC((o=>{const{getSelectedBlockClientId:i,getBlockRootClientId:a,getBlockIndex:s,getBlockOrder:l}=o(qO),c=i();let u,d=e;return void 0!==t?u=t:n?u=s(n):!r&&c?(d=a(c),u=s(c)+1):u=l(d).length,{destinationRootClientId:d,destinationIndex:u}}),[e,t,n,r]),{replaceBlocks:u,insertBlocks:d,showInsertionPoint:f,hideInsertionPoint:p}=Sq(qO),m=(0,Sr.useCallback)(((e,t,n=!1)=>{const f=s();!r&&f&&uo(f)?u(f.clientId,e,null,i||n?0:null,t):d(e,c,l,a,i||n?0:null,t);const p=Array.isArray(e)?e.length:1;NN(Nn(Un("%d block added.","%d blocks added.",p),p)),o&&o(e)}),[r,s,u,d,l,c,o,i,a]),h=(0,Sr.useCallback)((e=>{e?f(l,c):p()}),[f,p,l,c]);return[l,m,h]},t6=e=>e.name||"",n6=e=>e.title,r6=e=>e.description||"",o6=e=>e.keywords||[],i6=e=>e.category,a6=()=>null;function s6(e=""){return kn(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function l6(e=""){return e=(e=(e=_o()(e)).replace(/^\//,"")).toLowerCase()}const c6=(e="")=>s6(l6(e)),u6=(e=[],t="",n={})=>{if(0===c6(t).length)return e;const r=e.map((e=>[e,d6(e,t,n)])).filter((([,e])=>e>0));return r.sort((([,e],[,t])=>t-e)),r.map((([e])=>e))};function d6(e,t,n={}){const{getName:r=t6,getTitle:o=n6,getDescription:i=r6,getKeywords:a=o6,getCategory:s=i6,getCollection:l=a6}=n,c=r(e),u=o(e),d=i(e),f=a(e),p=s(e),m=l(e),h=l6(t),g=l6(u);let v=0;if(h===g)v+=30;else if(g.startsWith(h))v+=20;else{const e=[c,u,d,...f,p,m].join(" ");0===((e,t)=>e.filter((e=>!c6(t).some((t=>t.includes(e))))))(s6(h),e).length&&(v+=10)}if(0!==v&&c.startsWith("core/")){v+=c!==e.id?1:2}return v}const f6=20,p6=5;function m6(e,t,n,r=""){const[o,i]=(0,Sr.useState)(1),a=p$(t),s=p$(r);a===t&&s===r||1===o||i(1);const l=e.length,c=o-1,u=(0,Sr.useMemo)((()=>e.slice(c*f6,c*f6+f6)),[c,e]),d=m5(u,{step:p6}),f=Math.ceil(e.length/f6);return(0,Sr.useEffect)((function(){const e=aX(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:l,categoryPatterns:u,categoryPatternsAsyncList:d,numPages:f,changePage:e=>{const t=aX(n?.current);t?.scrollTo(0,0),i(e)},currentPage:o}}function h6({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,Sr.createElement)(lY,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},Nn(Un("%d pattern found","%d patterns found",t),t)):null}const g6=function({searchValue:e,selectedCategory:t,patternCategories:n}){const r=(0,Sr.useRef)(),o=$Y(NN,500),[i,a]=e6({shouldFocusBlock:!0}),[s,,l]=L4(a,i),c=(0,Sr.useMemo)((()=>n.map((e=>e.name))),[n]),u=(0,Sr.useMemo)((()=>{const n=s.filter((e=>{if(t===q6.name)return!0;if(t===Y6.name&&e.id)return!0;if("uncategorized"===t){const t=e.categories.some((e=>c.includes(e)));return!e.categories?.length||!t}return e.categories?.includes(t)}));return e?u6(n,e):n}),[e,s,t,c]);(0,Sr.useEffect)((()=>{if(!e)return;const t=u.length,n=Nn(Un("%d result found.","%d results found.",t),t);o(n)}),[e,o,u.length]);const d=m6(u,t,r),[f,p]=(0,Sr.useState)(e);e!==f&&(p(e),d.changePage(1));const m=!!u?.length;return(0,Sr.createElement)("div",{className:"block-editor-block-patterns-explorer__list",ref:r},(0,Sr.createElement)(h6,{filterValue:e,filteredBlockPatternsLength:u.length}),(0,Sr.createElement)(m4,null,m&&(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(X4,{shownPatterns:d.categoryPatternsAsyncList,blockPatterns:d.categoryPatterns,onClickPattern:l,isDraggable:!1}),(0,Sr.createElement)(K4,{...d}))))};function v6({initialCategory:e,rootClientId:t}){const[n,r]=(0,Sr.useState)(""),[o,i]=(0,Sr.useState)("all"),[a,s]=(0,Sr.useState)(e?.name),l=Z6(t,o);return(0,Sr.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,Sr.createElement)(J4,{selectedCategory:a,patternCategories:l,onClickCategory:s,searchValue:n,setSearchValue:r,patternSourceFilter:o,setPatternSourceFilter:i}),(0,Sr.createElement)(g6,{searchValue:n,selectedCategory:a,patternCategories:l,patternSourceFilter:o}))}const b6=function({onModalClose:e,...t}){return(0,Sr.createElement)(fX,{title:Hn("Patterns"),onRequestClose:e,isFullScreen:!0},(0,Sr.createElement)(v6,{...t}))},y6=(0,Sr.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const k6=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,Sr.useContext)(y6);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const w6=Hh((function(e,t){const n=function(e){const{onClick:t,as:n=lg,goToParent:r=!1,...o}=Vh(e,"NavigatorBackButton"),{goBack:i,goToParent:a}=k6();return{as:n,onClick:(0,Sr.useCallback)((e=>{e.preventDefault(),r?a():i(),t?.(e)}),[r,a,i,t]),...o}}(e);return(0,Sr.createElement)(og,{ref:t,...n})}),"NavigatorBackButton");function _6(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(x6(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var p=u("CHAR"),m=u("NAME"),h=u("PATTERN");if(m||h){var g=p||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=p||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(a.push(c),c=""),u("OPEN")){g=f();var b=u("NAME")||"",y=u("PATTERN")||"",k=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:k,modifier:u("MODIFIER")||""})}else d("END")}}return a}function E6(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:a,params:s}}}(I6(e,n,t),n,t)}function x6(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function S6(e){return e&&e.sensitive?"":"i"}function C6(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,f=void 0===d?"/#?":d,p=n.endsWith,m="[".concat(x6(void 0===p?"":p),"]|$"),h="[".concat(x6(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=x6(u(y));else{var k=x6(u(y.prefix)),w=x6(u(y.suffix));if(y.pattern)if(t&&t.push(y),k||w)if("+"===y.modifier||"*"===y.modifier){var _="*"===y.modifier?"?":"";g+="(?:".concat(k,"((?:").concat(y.pattern,")(?:").concat(w).concat(k,"(?:").concat(y.pattern,"))*)").concat(w,")").concat(_)}else g+="(?:".concat(k,"(").concat(y.pattern,")").concat(w,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?g+="((?:".concat(y.pattern,")").concat(y.modifier,")"):g+="(".concat(y.pattern,")").concat(y.modifier);else g+="(?:".concat(k).concat(w,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(m,")"):"$";else{var E=e[e.length-1],x="string"==typeof E?h.indexOf(E[E.length-1])>-1:void 0===E;o||(g+="(?:".concat(h,"(?=").concat(m,"))?")),x||(g+="(?=".concat(h,"|").concat(m,")"))}return new RegExp(g,S6(n))}(_6(e,n),t,n)}function I6(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return I6(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),S6(n))}(e,t,n):C6(e,t,n)}function T6(e,t){return E6(t,{decode:decodeURIComponent})(e)}function P6(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}var N6={name:"15bx5k",styles:"overflow-x:hidden"};const O6=Hh((function(e,t){const{initialPath:n,children:r,className:o,...i}=Vh(e,"NavigatorProvider"),[a,s]=(0,Sr.useState)([{path:n}]),l=(0,Sr.useRef)([]),[c,u]=(0,Sr.useReducer)(P6,[]),d=(0,Sr.useRef)([]);(0,Sr.useEffect)((()=>{d.current=c}),[c]),(0,Sr.useEffect)((()=>{l.current=a}),[a]);const f=(0,Sr.useRef)(),p=(0,Sr.useMemo)((()=>{let e;if(0===a.length||void 0===(e=a[a.length-1].path))return void(f.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=T6(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,c);return f.current&&t&&ca(t.params,f.current.params)&&t.id===f.current.id?f.current:t})(e);return f.current=t,t}),[c,a]),m=(0,Sr.useCallback)((e=>u({type:"add",screen:e})),[]),h=(0,Sr.useCallback)((e=>u({type:"remove",screen:e})),[]),g=(0,Sr.useCallback)((()=>{s((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),v=(0,Sr.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&l.current.length>1&&l.current[l.current.length-2].path===e?g():s((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[g]),b=(0,Sr.useCallback)(((e={})=>{const t=l.current[l.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==T6(e,t.path)))&&(r=e)}return r}(t,d.current);void 0!==n&&v(n,{...e,isBack:!0})}),[v]),y=(0,Sr.useMemo)((()=>({location:{...a[a.length-1],isInitial:1===a.length},params:p?p.params:{},match:p?p.id:void 0,goTo:v,goBack:g,goToParent:b,addScreen:m,removeScreen:h})),[a,p,v,g,b,m,h]),k=jh(),w=(0,Sr.useMemo)((()=>k(N6,o)),[o,k]);return(0,Sr.createElement)(og,{ref:t,className:w,...i},(0,Sr.createElement)(y6.Provider,{value:y},r))}),"NavigatorProvider"),A6=O6;var M6={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const R6=Hh((function(e,t){const n=(0,Sr.useId)(),{children:r,className:o,path:i,...a}=Vh(e,"NavigatorScreen"),s=Fq(),{location:l,match:c,addScreen:u,removeScreen:d}=(0,Sr.useContext)(y6),f=c===n,p=(0,Sr.useRef)(null);(0,Sr.useEffect)((()=>{const e={id:n,path:Fi(i)};return u(e),()=>d(e)}),[n,i,u,d]);const m=jh(),h=(0,Sr.useMemo)((()=>m(M6,o)),[o,m]),g=(0,Sr.useRef)(l);(0,Sr.useEffect)((()=>{g.current=l}),[l]);const v=l.isInitial&&!l.isBack;(0,Sr.useEffect)((()=>{if(v||!f||!p.current||g.current.hasRestoredFocus||l.skipFocus)return;const e=p.current.ownerDocument.activeElement;if(p.current.contains(e))return;let t=null;if(l.isBack&&l?.focusTargetSelector&&(t=p.current.querySelector(l.focusTargetSelector)),!t){const e=jx.tabbable.find(p.current)[0];t=null!=e?e:p.current}g.current.hasRestoredFocus=!0,t.focus()}),[v,f,l.isBack,l.focusTargetSelector,l.skipFocus]);const b=Vg([t,p]);if(!f)return null;if(s)return(0,Sr.createElement)(og,{ref:b,className:h,...a},r);const y={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},k=!(l.isInitial&&!l.isBack)&&{opacity:0,x:Wn()&&l.isBack||!Wn()&&!l.isBack?50:-50},w={animate:y,exit:{delay:0,opacity:0,x:!Wn()&&l.isBack||Wn()&&!l.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:k};return(0,Sr.createElement)(QE.div,{ref:b,className:h,...a,...w},r)}),"NavigatorScreen"),B6=R6,L6=(e,t)=>`[${e}="${t}"]`;const D6=Hh((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=lg,attributeName:o="id",...i}=Vh(e,"NavigatorButton"),a=Fi(t),{goTo:s}=k6();return{as:r,onClick:(0,Sr.useCallback)((e=>{e.preventDefault(),s(a,{focusTargetSelector:L6(o,a)}),n?.(e)}),[s,n,o,a]),...i,[o]:a}}(e);return(0,Sr.createElement)(og,{ref:t,...n})}),"NavigatorButton");function z6({title:e}){return(0,Sr.createElement)(v4,{spacing:0},(0,Sr.createElement)(og,null,(0,Sr.createElement)(YM,{marginBottom:0,paddingX:4,paddingY:3},(0,Sr.createElement)(U$,{spacing:2},(0,Sr.createElement)(w6,{style:{minWidth:24,padding:0},icon:Wn()?d1:f1,isSmall:!0,"aria-label":Hn("Navigate to the previous view")}),(0,Sr.createElement)(YM,null,(0,Sr.createElement)(lY,{level:5},e))))))}function F6({categories:e,children:t}){return(0,Sr.createElement)(A6,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation"},(0,Sr.createElement)(B6,{path:"/"},(0,Sr.createElement)(M4,null,e.map((e=>(0,Sr.createElement)(D6,{key:e.name,path:`/category/${e.name}`,as:B4,isAction:!0},(0,Sr.createElement)(U$,null,(0,Sr.createElement)(D$,null,e.label),(0,Sr.createElement)(EM,{icon:Wn()?f1:d1}))))))),e.map((e=>(0,Sr.createElement)(B6,{key:e.name,path:`/category/${e.name}`},(0,Sr.createElement)(z6,{title:Hn("Back")}),t(e)))))}const j6=()=>{};const V6=function({choices:e=[],onHover:t=j6,onSelect:n,value:r}){return(0,Sr.createElement)(Sr.Fragment,null,e.map((e=>{const o=r===e.value;return(0,Sr.createElement)(hH,{key:e.value,role:"menuitemradio",disabled:e.disabled,icon:o?xM:null,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))},H6={all:"all",synced:"synced",unsynced:"unsynced",user:"user",theme:"theme",directory:"directory"},$6={all:"all",full:"fully",unsynced:"unsynced"},U6=e=>e!==H6.all&&e!==H6.user,W6=e=>e.name===Y6.name;function K6({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:r,scrollContainerRef:o,category:i}){const a=i.name===Y6.name?H6.user:r,s=U6(a),l=W6(i),c=(0,Sr.useMemo)((()=>[{value:$6.all,label:Hn("All")},{value:$6.full,label:Hn("Synced"),disabled:s},{value:$6.unsynced,label:Hn("Not synced"),disabled:s}]),[s]),u=(0,Sr.useMemo)((()=>[{value:H6.all,label:Hn("All"),disabled:l},{value:H6.directory,label:Hn("Pattern Directory"),disabled:l},{value:H6.theme,label:Hn("Theme & Plugins"),disabled:l},{value:H6.user,label:Hn("User")}]),[l]);return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(vC,{popoverProps:{placement:"right-end"},label:"Filter patterns",icon:(0,Sr.createElement)(EM,{icon:(0,Sr.createElement)(Jp,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"#1E1E1E"}))})},(()=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(pH,{label:Hn("Source")},(0,Sr.createElement)(V6,{choices:u,onSelect:n=>{var r;t(r=n),U6(r)&&e($6.all),o.current?.scrollTo(0,0)},value:a})),(0,Sr.createElement)(pH,{label:Hn("Type")},(0,Sr.createElement)(V6,{choices:c,onSelect:t=>{e(t),o.current?.scrollTo(0,0)},value:n})),(0,Sr.createElement)("div",{className:"block-editor-tool-selector__help"},a1(Hn("Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."),{Link:(0,Sr.createElement)(zq,{href:Hn("https://wordpress.org/patterns/")})}))))))}const G6=()=>{},q6={name:"allPatterns",label:Hn("All patterns")},Y6={name:"myPatterns",label:Hn("My patterns")};function X6(e,t,n){const r=e.name.startsWith("core/block"),o="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==H6.theme||!r&&!o)||(!(t!==H6.directory||!r&&o)||(t===H6.user&&!e.id||(n===$6.full&&""!==e.syncStatus||!(n!==$6.unsynced||"unsynced"===e.syncStatus||!r))))}function Z6(e,t="all"){const[n,r]=L4(void 0,e),o=(0,Sr.useMemo)((()=>"all"===t?n:n.filter((e=>!X6(e,t)))),[t,n]),i=(0,Sr.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>r.some((t=>t.name===e))))),[r]),a=(0,Sr.useMemo)((()=>{const e=r.filter((e=>o.some((t=>t.categories?.includes(e.name))))).sort(((e,t)=>e.label.localeCompare(t.label)));return o.some((e=>!i(e)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:$n("Uncategorized")}),o.some((e=>e.id))&&e.unshift(Y6),o.length>0&&e.unshift({name:q6.name,label:q6.label}),NN(Nn(Un("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e}),[r,o,i]);return a}function Q6({rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o,patternFilter:i}){const a=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>{const e=setTimeout((()=>{const[e]=jx.tabbable.find(a.current);e?.focus()}));return()=>clearTimeout(e)}),[r]),(0,Sr.createElement)("div",{ref:a,className:"block-editor-inserter__patterns-category-dialog"},(0,Sr.createElement)(J6,{key:r.name,rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o,patternFilter:i}))}function J6({rootClientId:e,onInsert:t,onHover:n=G6,category:r,showTitlesAsTooltip:o}){const[i,,a]=L4(t,e),[s,l]=(0,Sr.useState)("all"),[c,u]=(0,Sr.useState)("all"),d=Z6(e,c),f=(0,Sr.useRef)(),p=(0,Sr.useMemo)((()=>i.filter((e=>{var t;if(X6(e,c,s))return!1;if(r.name===q6.name)return!0;if(r.name===Y6.name&&e.id)return!0;if("uncategorized"!==r.name)return e.categories?.includes(r.name);return 0===(null!==(t=e.categories?.filter((e=>d.find((t=>t.name===e)))))&&void 0!==t?t:[]).length}))),[i,d,r.name,c,s]),m=m6(p,r,f),{changePage:h}=m;(0,Sr.useEffect)((()=>()=>n(null)),[]);const g=(0,Sr.useCallback)((e=>{l(e),h(1)}),[l,h]),v=(0,Sr.useCallback)((e=>{u(e),h(1)}),[u,h]);return(0,Sr.createElement)("div",{className:"block-editor-inserter__patterns-category-panel"},(0,Sr.createElement)(v4,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header"},(0,Sr.createElement)(U$,null,(0,Sr.createElement)(D$,null,(0,Sr.createElement)(lY,{level:4,as:"div"},r.label)),(0,Sr.createElement)(K6,{patternSyncFilter:s,patternSourceFilter:c,setPatternSyncFilter:g,setPatternSourceFilter:v,scrollContainerRef:f,category:r})),!p.length&&(0,Sr.createElement)(KR,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results"},Hn("No results found"))),p.length>0&&(0,Sr.createElement)(X4,{ref:f,shownPatterns:m.categoryPatternsAsyncList,blockPatterns:m.categoryPatterns,onClickPattern:a,onHover:n,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:o,patternFilter:c,pagingProps:m}))}const e8=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:r}){const[o,i]=(0,Sr.useState)(!1),a=Z6(r),s=t||a[0],l=ix("medium","<");return(0,Sr.createElement)(Sr.Fragment,null,!l&&(0,Sr.createElement)("div",{className:"block-editor-inserter__block-patterns-tabs-container"},(0,Sr.createElement)("nav",{"aria-label":Hn("Block pattern categories"),className:"block-editor-inserter__block-patterns-tabs"},(0,Sr.createElement)(M4,{role:"list"},a.map((n=>(0,Sr.createElement)(B4,{role:"listitem",key:n.name,onClick:()=>e(n),className:n===t?"block-editor-inserter__patterns-category block-editor-inserter__patterns-selected-category":"block-editor-inserter__patterns-category","aria-label":n.label,"aria-current":n===t?"true":void 0},(0,Sr.createElement)(U$,null,(0,Sr.createElement)(D$,null,n.label),(0,Sr.createElement)(EM,{icon:Wn()?f1:d1}))))),(0,Sr.createElement)("div",{role:"listitem"},(0,Sr.createElement)(lg,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>i(!0),variant:"secondary"},Hn("Explore all patterns")))))),l&&(0,Sr.createElement)(F6,{categories:a},(e=>(0,Sr.createElement)(J6,{key:e.name,onInsert:n,rootClientId:r,category:e,showTitlesAsTooltip:!1}))),o&&(0,Sr.createElement)(b6,{initialCategory:s,patternCategories:a,onModalClose:()=>i(!1),rootClientId:r}))};function t8(e){const[t,n]=(0,Sr.useState)([]),r=BC((e=>KO(e(qO)).getInserterMediaCategories()),[]),{canInsertImage:o,canInsertVideo:i,canInsertAudio:a}=BC((t=>{const{canInsertBlockType:n}=t(qO);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]);return(0,Sr.useEffect)((()=>{(async()=>{const e=[];if(!r)return;const t=new Map(await Promise.all(r.map((async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),s={image:o,video:i,audio:a};r.forEach((n=>{s[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[o,i,a,r]),t}const n8=CM` |
|
9
|
|
- `,r8=ng("svg",{target:"ea4tfvq2"})("width:",PR.spinnerSize,"px;height:",PR.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",DM.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),o8={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},i8=ng("circle",{target:"ea4tfvq1"})(o8,";stroke:",DM.gray[300],";"),a8=ng("path",{target:"ea4tfvq0"})(o8,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",n8,";");const s8=(0,Sr.forwardRef)((function({className:e,...t},n){return(0,Sr.createElement)(r8,{className:Vl()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,Sr.createElement)(i8,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,Sr.createElement)(a8,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))})),l8={image:"img",video:"video",audio:"audio"};function c8(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},r=e.url,o=e.alt||void 0;"image"===t?(n.url=r,n.alt=o):["video","audio"].includes(t)&&(n.src=r);const i=l8[t],a=(0,Sr.createElement)(i,{src:e.previewUrl||r,alt:o,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=r)}});return[Yr(`core/${t}`,n),a]}const u8=["image"],d8=25,f8={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"};function p8({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,Sr.createElement)(vC,{className:"block-editor-inserter__media-list__item-preview-options",label:Hn("Options"),popoverProps:f8,icon:sY},(()=>(0,Sr.createElement)(pH,null,(0,Sr.createElement)(hH,{onClick:()=>window.open(n,"_blank").focus(),icon:Bq},Nn(Hn("Report %s"),e.mediaType)))))}function m8({onClose:e,onSubmit:t}){return(0,Sr.createElement)(fX,{title:Hn("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"},(0,Sr.createElement)(v4,{spacing:3},(0,Sr.createElement)("p",null,Hn("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")),(0,Sr.createElement)("p",null,Hn("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."))),(0,Sr.createElement)(mR,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,Sr.createElement)(gR,null,(0,Sr.createElement)(lg,{variant:"tertiary",onClick:e},Hn("Cancel"))),(0,Sr.createElement)(gR,null,(0,Sr.createElement)(lg,{variant:"primary",onClick:t},Hn("Insert")))))}function h8({media:e,onClick:t,composite:n,category:r}){const[o,i]=(0,Sr.useState)(!1),[a,s]=(0,Sr.useState)(!1),[l,c]=(0,Sr.useState)(!1),[u,d]=(0,Sr.useMemo)((()=>c8(e,r.mediaType)),[e,r.mediaType]),{createErrorNotice:f,createSuccessNotice:p}=Sq(A2),m=BC((e=>e(qO).getSettings().mediaUpload),[]),h=(0,Sr.useCallback)((e=>{if(l)return;const n=Qr(e),{id:r,url:o,caption:a}=n.attributes;r?t(n):(c(!0),window.fetch(o).then((e=>e.blob())).then((e=>{m({filesList:[e],additionalData:{caption:a},onFileChange([e]){_l(e.url)||(t({...n,attributes:{...n.attributes,id:e.id,url:e.url}}),p(Hn("Image uploaded and inserted."),{type:"snackbar"}),c(!1))},allowedTypes:u8,onError(e){f(e,{type:"snackbar"}),c(!1)}})})).catch((()=>{i(!0),c(!1)})))}),[l,t,m,f,p]),g=e.title?.rendered||e.title;let v;if(g.length>d8){const e="...";v=g.slice(0,d8-e.length)+e}const b=(0,Sr.useCallback)((()=>s(!0)),[]),y=(0,Sr.useCallback)((()=>s(!1)),[]);return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(L3,{isEnabled:!0,blocks:[u]},(({draggable:t,onDragStart:o,onDragEnd:i})=>(0,Sr.createElement)("div",{className:Vl()("block-editor-inserter__media-list__list-item",{"is-hovered":a}),draggable:t,onDragStart:o,onDragEnd:i},(0,Sr.createElement)(Zp,{text:v||g},(0,Sr.createElement)("div",{onMouseEnter:b,onMouseLeave:y},(0,Sr.createElement)(T3,{role:"option",as:"div",...n,className:"block-editor-inserter__media-list__item",onClick:()=>h(u),"aria-label":g},(0,Sr.createElement)("div",{className:"block-editor-inserter__media-list__item-preview"},d,l&&(0,Sr.createElement)("div",{className:"block-editor-inserter__media-list__item-preview-spinner"},(0,Sr.createElement)(s8,null)))),!l&&(0,Sr.createElement)(p8,{category:r,media:e})))))),o&&(0,Sr.createElement)(m8,{onClose:()=>i(!1),onSubmit:()=>{t(Qr(u)),p(Hn("Image inserted."),{type:"snackbar"}),i(!1)}}))}const g8=function({mediaList:e,category:t,onClick:n,label:r=Hn("Media List")}){const o=p4();return(0,Sr.createElement)(W4,{...o,role:"listbox",className:"block-editor-inserter__media-list","aria-label":r},e.map(((e,r)=>(0,Sr.createElement)(h8,{key:e.id||e.sourceId||r,media:e,category:t,onClick:n,composite:o}))))};function v8(e=""){const[t,n]=(0,Sr.useState)(e),[r,o]=(0,Sr.useState)(e),i=$Y(o,250);return(0,Sr.useEffect)((()=>{i(t)}),[t]),[t,n,r]}const b8=function(){return(0,Sr.createElement)("div",{className:"block-editor-inserter__no-results"},(0,Sr.createElement)(EM,{className:"block-editor-inserter__no-results-icon",icon:p1}),(0,Sr.createElement)("p",null,Hn("No results found.")))},y8=10;function k8({rootClientId:e,onInsert:t,category:n}){const r=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>{const e=setTimeout((()=>{const[e]=jx.tabbable.find(r.current);e?.focus()}));return()=>clearTimeout(e)}),[n]),(0,Sr.createElement)("div",{ref:r,className:"block-editor-inserter__media-dialog"},(0,Sr.createElement)(w8,{rootClientId:e,onInsert:t,category:n}))}function w8({rootClientId:e,onInsert:t,category:n}){const[r,o,i]=v8(),{mediaList:a,isLoading:s}=function(e,t={}){const[n,r]=(0,Sr.useState)(),[o,i]=(0,Sr.useState)(!1),a=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>{(async()=>{const n=JSON.stringify({category:e.name,...t});a.current=n,i(!0),r([]);const o=await(e.fetch?.(t));n===a.current&&(r(o),i(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:o}}(n,{per_page:i?20:y8,search:i}),l="block-editor-inserter__media-panel",c=n.labels.search_items||Hn("Search");return(0,Sr.createElement)("div",{className:l},(0,Sr.createElement)(Y0,{className:`${l}-search`,onChange:o,value:r,label:c,placeholder:c}),s&&(0,Sr.createElement)("div",{className:`${l}-spinner`},(0,Sr.createElement)(s8,null)),!s&&!a?.length&&(0,Sr.createElement)(b8,null),!s&&!!a?.length&&(0,Sr.createElement)(g8,{rootClientId:e,onClick:t,mediaList:a,category:n}))}const _8=function({fallback:e=null,children:t}){const n=BC((e=>{const{getSettings:t}=e(qO);return!!t().mediaUpload}),[]);return n?t:e},E8=UY("editor.MediaUpload")((()=>null)),x8=["image","video","audio"];const S8=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:r}){const o=t8(e),i=ix("medium","<"),a="block-editor-inserter__media-tabs",s=(0,Sr.useCallback)((e=>{if(!e?.url)return;const[t]=c8(e,e.type);r(t)}),[r]),l=(0,Sr.useMemo)((()=>o.map((e=>({...e,label:e.labels.name})))),[o]);return(0,Sr.createElement)(Sr.Fragment,null,!i&&(0,Sr.createElement)("div",{className:`${a}-container`},(0,Sr.createElement)("nav",{"aria-label":Hn("Media categories")},(0,Sr.createElement)(M4,{role:"list",className:a},o.map((e=>(0,Sr.createElement)(B4,{role:"listitem",key:e.name,onClick:()=>n(e),className:Vl()(`${a}__media-category`,{"is-selected":t===e}),"aria-label":e.labels.name,"aria-current":e===t?"true":void 0},(0,Sr.createElement)(U$,null,(0,Sr.createElement)(D$,null,e.labels.name),(0,Sr.createElement)(EM,{icon:Wn()?f1:d1}))))),(0,Sr.createElement)("div",{role:"listitem"},(0,Sr.createElement)(_8,null,(0,Sr.createElement)(E8,{multiple:!1,onSelect:s,allowedTypes:x8,render:({open:e})=>(0,Sr.createElement)(lg,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},Hn("Open Media Library"))})))))),i&&(0,Sr.createElement)(F6,{categories:l},(t=>(0,Sr.createElement)(w8,{onInsert:r,rootClientId:e,category:t}))))},{Fill:C8,Slot:I8}=QS("__unstableInserterMenuExtension");C8.Slot=I8;const T8=C8,P8=[];const N8=function({filterValue:e,onSelect:t,onHover:n,onHoverPattern:r,rootClientId:o,clientId:i,isAppender:a,__experimentalInsertionIndex:s,maxBlockPatterns:l,maxBlockTypes:c,showBlockDirectory:u=!1,isDraggable:d=!0,shouldFocusBlock:f=!0,prioritizePatterns:p,selectBlockOnInsert:m}){const h=$Y(NN,500),{prioritizedBlocks:g}=BC((e=>{const t=e(qO).getBlockListSettings(o);return{prioritizedBlocks:t?.prioritizedInserterBlocks||P8}}),[o]),[v,b]=e6({onSelect:t,rootClientId:o,clientId:i,isAppender:a,insertionIndex:s,shouldFocusBlock:f,selectBlockOnInsert:m}),[y,k,w,_]=K3(v,b),[E,,x]=L4(b,v),S=(0,Sr.useMemo)((()=>{if(0===l)return[];const t=u6(E,e);return void 0!==l?t.slice(0,l):t}),[e,E,l]);let C=c;p&&S.length>2&&(C=0);const I=(0,Sr.useMemo)((()=>{if(0===C)return[];let t=HI(y.filter((e=>"core/block"!==e.name)),"frecency","desc");!e&&g.length&&(t=((e,t)=>t?(e.sort((({id:e},{id:n})=>{let r=t.indexOf(e),o=t.indexOf(n);return r<0&&(r=t.length),o<0&&(o=t.length),r-o})),e):e)(t,g));const n=((e,t,n,r)=>{if(0===c6(r).length)return e;const o={getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title};return u6(e,r,o)})(t,k,w,e);return void 0!==C?n.slice(0,C):n}),[e,y,k,w,C,g]);(0,Sr.useEffect)((()=>{if(!e)return;const t=I.length+S.length,n=Nn(Un("%d result found.","%d results found.",t),t);h(n)}),[e,h,I,S]);const T=m5(I,{step:9}),P=m5(T.length===I.length?S:P8),N=I.length>0||S.length>0,O=!!I.length&&(0,Sr.createElement)(W3,{title:(0,Sr.createElement)(ig,null,Hn("Blocks"))},(0,Sr.createElement)(U3,{items:T,onSelect:_,onHover:n,label:Hn("Blocks"),isDraggable:d})),A=!!S.length&&(0,Sr.createElement)(W3,{title:(0,Sr.createElement)(ig,null,Hn("Block patterns"))},(0,Sr.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,Sr.createElement)(X4,{shownPatterns:P,blockPatterns:S,onClickPattern:x,onHover:r,isDraggable:d})));return(0,Sr.createElement)(m4,null,!u&&!N&&(0,Sr.createElement)(b8,null),p?A:O,!!I.length&&!!S.length&&(0,Sr.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),p?O:A,u&&(0,Sr.createElement)(T8.Slot,{fillProps:{onSelect:_,onHover:n,filterValue:e,hasItems:N,rootClientId:v}},(e=>e.length?e:N?null:(0,Sr.createElement)(b8,null))))};function O8(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=JH(uc(cc({},e),{orientation:yc(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:yc(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=$H(),i=lu(uc(cc({},r.getState()),{selectedId:yc(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:yc(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return cu(i,(()=>fu(i,["moves"],(()=>{const{activeId:e,selectOnMove:t}=i.getState();if(!t)return;if(!e)return;const n=r.item(e);n&&(n.dimmed||n.disabled||i.setState("selectedId",n.id))})))),cu(i,(()=>pu(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),cu(i,(()=>fu(i,["selectedId","renderedItems"],(e=>{if(void 0!==e.selectedId)return;const{activeId:t,renderedItems:n}=i.getState(),o=r.item(t);if(!o||o.disabled||o.dimmed){const e=n.find((e=>!e.disabled&&!e.dimmed));i.setState("selectedId",null==e?void 0:e.id)}else i.setState("selectedId",o.id)})))),cu(i,(()=>fu(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return fu(o,["renderedItems"],(e=>{const n=e.renderedItems,r=n.some((e=>!e.tabId));r&&n.forEach(((e,n)=>{if(e.tabId)return;const r=t[n];r&&o.renderItem(uc(cc({},e),{tabId:r.id}))}))}))})))),uc(cc(cc({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function A8(e={}){const[t,n]=wu(O8,e);return function(e,t,n){ku(e=VH(e,t,n),n,"selectedId","setSelectedId"),ku(e,n,"selectOnMove");const[r]=wu((()=>e.panels),{});return(0,Sr.useMemo)((()=>ec(Jl({},e),{panels:r})),[])}(t,n,e)}var M8=Du([_g],[Eg]),R8=(M8.useContext,M8.useScopedContext),B8=M8.useProviderContext,L8=(M8.ContextProvider,M8.ScopedContextProvider),D8=Lu((e=>{var t=e,{store:n}=t,r=tc(t,["store"]);const o=B8();gc(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=eu(r,(e=>(0,Au.jsx)(L8,{value:n,children:e})),[n]),r=Jl({role:"tablist","aria-orientation":i},r),r=l$(Jl({store:n},r))})),z8=Mu((e=>Bu("div",D8(e))));var F8=Lu((e=>{var t=e,{store:n,accessibleWhenDisabled:r=!0,getItem:o}=t,i=tc(t,["store","accessibleWhenDisabled","getItem"]);const a=R8();gc(n=n||a,!1);const s=Yc(),l=i.id||s,c=bc(i),u=(0,Sr.useCallback)((e=>{const t=ec(Jl({},e),{dimmed:c});return o?o(t):t}),[c,o]),d=i.onClick,f=Gc((e=>{null==d||d(e),e.defaultPrevented||null==n||n.setSelectedId(l)})),p=n.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===l)))?void 0:t.id})),m=n.useState((e=>!!l&&e.selectedId===l));return i=ec(Jl({id:l,role:"tab","aria-selected":m,"aria-controls":p||void 0},i),{onClick:f}),i=Tg(ec(Jl({store:n},i),{accessibleWhenDisabled:r,getItem:u,shouldRegisterItem:!!s&&i.shouldRegisterItem}))})),j8=Ru((e=>Bu("button",F8(e))));var V8=Lu((e=>{var t=e,{store:n,tabId:r,getItem:o}=t,i=tc(t,["store","tabId","getItem"]);const a=B8();gc(n=n||a,!1);const s=(0,Sr.useRef)(null),l=Yc(i.id),[c,u]=(0,Sr.useState)(!1);(0,Sr.useEffect)((()=>{const e=s.current;if(!e)return;const t=id(e);u(!!t.length)}),[]);const d=(0,Sr.useCallback)((e=>{const t=ec(Jl({},e),{id:l||e.id,tabId:r});return o?o(t):t}),[l,r,o]);i=eu(i,(e=>(0,Au.jsx)(L8,{value:n,children:e})),[n]);const f=n.panels.useState((()=>{var e;return r||(null==(e=null==n?void 0:n.panels.item(l))?void 0:e.tabId)})),p=n.useState((e=>!!f&&e.selectedId===f));i=ec(Jl({id:l,role:"tabpanel","aria-labelledby":f||void 0},i),{ref:qc(s,i.ref)});const m=xu({open:p});return i=xd(Jl({focusable:!c},i)),i=Jd(Jl({store:m},i)),i=hg(ec(Jl({store:n.panels},i),{getItem:d}))})),H8=Mu((e=>Bu("div",V8(e))));const $8=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},U8=(0,Sr.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:a="is-active",onSelect:s},l)=>{const c=Wl(U8,"tab-panel"),u=(0,Sr.useCallback)((e=>{if(void 0!==e)return`${c}-${e}`}),[c]),d=A8({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>u(t.name)===e));if(t?.disabled||t===m)return;const r=$8(e);void 0!==r&&s?.(r)},orientation:i,selectOnMove:r,defaultSelectedId:u(o)}),f=$8(d.useState("selectedId")),p=(0,Sr.useCallback)((e=>{d.setState("selectedId",u(e))}),[u,d]),m=n.find((({name:e})=>e===f)),h=p$(f);return(0,Sr.useEffect)((()=>{h!==f&&f===o&&f&&s?.(f)}),[f,o,s,h]),(0,Sr.useLayoutEffect)((()=>{if(m)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)p(e.name);else{const e=n.find((e=>!e.disabled));e&&p(e.name)}}),[n,m,o,c,p]),(0,Sr.useEffect)((()=>{if(!m?.disabled)return;const e=n.find((e=>!e.disabled));e&&p(e.name)}),[n,m?.disabled,p,c]),(0,Sr.createElement)("div",{className:e,ref:l},(0,Sr.createElement)(z8,{store:d,className:"components-tab-panel__tabs"},n.map((e=>(0,Sr.createElement)(j8,{key:e.name,id:u(e.name),className:Vl()("components-tab-panel__tabs-item",e.className,{[a]:e.name===f}),disabled:e.disabled,"aria-controls":`${u(e.name)}-view`,render:(0,Sr.createElement)(lg,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon})},!e.icon&&e.title)))),m&&(0,Sr.createElement)(H8,{id:`${u(m.name)}-view`,store:d,tabId:u(m.name),className:"components-tab-panel__tab-content"},t(m)))})),W8=U8,K8={name:"blocks",title:Hn("Blocks")},G8={name:"patterns",title:Hn("Patterns")},q8={name:"media",title:Hn("Media")};const Y8=function({children:e,showPatterns:t=!1,showMedia:n=!1,onSelect:r,prioritizePatterns:o}){const i=(0,Sr.useMemo)((()=>{const e=[];return o&&t&&e.push(G8),e.push(K8),!o&&t&&e.push(G8),n&&e.push(q8),e}),[o,t,n]);return(0,Sr.createElement)(W8,{className:"block-editor-inserter__tabs",tabs:i,onSelect:r},e)};const X8=(0,Sr.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,onSelect:o,showInserterHelpPanel:i,showMostUsedBlocks:a,__experimentalFilterValue:s="",shouldFocusBlock:l=!0,prioritizePatterns:c},u){const[d,f,p]=v8(s),[m,h]=(0,Sr.useState)(null),[g,v]=(0,Sr.useState)(null),[b,y]=(0,Sr.useState)("all"),[k,w]=(0,Sr.useState)(null),[_,E]=(0,Sr.useState)(null),[x,S,C]=e6({rootClientId:e,clientId:t,isAppender:n,insertionIndex:r,shouldFocusBlock:l}),{showPatterns:I,inserterItems:T}=BC((e=>{const{__experimentalGetAllowedPatterns:t,getInserterItems:n}=e(qO);return{showPatterns:!!t(x).length,inserterItems:n(x)}}),[x]),P=(0,Sr.useMemo)((()=>T.some((({category:e})=>"reusable"===e))),[T]),N=!!t8(x).length,O=(0,Sr.useCallback)(((e,t,n)=>{S(e,t,n),o()}),[S,o]),A=(0,Sr.useCallback)(((e,t)=>{S(e,{patternName:t}),o()}),[S,o]),M=(0,Sr.useCallback)((e=>{C(!!e),h(e)}),[C,h]),R=(0,Sr.useCallback)((e=>{C(!!e)}),[C]),B=(0,Sr.useCallback)(((e,t)=>{v(e),y(t)}),[v]),L=(0,Sr.useMemo)((()=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("div",{className:"block-editor-inserter__block-list"},(0,Sr.createElement)(g4,{rootClientId:x,onInsert:O,onHover:M,showMostUsedBlocks:a})),i&&(0,Sr.createElement)("div",{className:"block-editor-inserter__tips"},(0,Sr.createElement)(ig,{as:"h2"},Hn("A tip for using the block editor")),(0,Sr.createElement)(u1,null)))),[x,O,M,a,i]),D=(0,Sr.useMemo)((()=>(0,Sr.createElement)(e8,{rootClientId:x,onInsert:A,onSelectCategory:B,selectedCategory:g})),[x,A,B,g]),z=(0,Sr.useMemo)((()=>(0,Sr.createElement)(S8,{rootClientId:x,selectedCategory:k,onSelectCategory:w,onInsert:O})),[x,O,k,w]),F=(0,Sr.useCallback)((e=>"blocks"===e.name?L:"patterns"===e.name?D:"media"===e.name?z:void 0),[L,D,z]),j=(0,Sr.useRef)();(0,Sr.useImperativeHandle)(u,(()=>({focusSearch:()=>{j.current.focus()}})));const V="patterns"===_&&!p&&g,H=!p&&(I||P||N),$="media"===_&&!p&&k;return(0,Sr.createElement)("div",{className:"block-editor-inserter__menu"},(0,Sr.createElement)("div",{className:Vl()("block-editor-inserter__main-area",{"show-as-tabs":H})},(0,Sr.createElement)(Y0,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{m&&h(null),f(e)},value:d,label:Hn("Search for blocks and patterns"),placeholder:Hn("Search"),ref:j}),!!p&&(0,Sr.createElement)("div",{className:"block-editor-inserter__no-tab-container"},(0,Sr.createElement)(N8,{filterValue:p,onSelect:o,onHover:M,onHoverPattern:R,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l})),H&&(0,Sr.createElement)(Y8,{showPatterns:I,showReusableBlocks:P,showMedia:N,prioritizePatterns:c,onSelect:e=>{"patterns"!==e&&v(null),E(e)}},F),!p&&!H&&(0,Sr.createElement)("div",{className:"block-editor-inserter__no-tab-container"},L)),$&&(0,Sr.createElement)(k8,{rootClientId:x,onInsert:O,category:k}),i&&m&&(0,Sr.createElement)(p5,{item:m}),V&&(0,Sr.createElement)(Q6,{rootClientId:x,onInsert:A,onHover:R,category:g,patternFilter:b,showTitlesAsTooltip:!0}))}));function Z8({onSelect:e,rootClientId:t,clientId:n,isAppender:r,prioritizePatterns:o,selectBlockOnInsert:i}){const[a,s]=(0,Sr.useState)(""),[l,c]=e6({onSelect:e,rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:i}),[u]=K3(l,c),[d]=L4(c,l),{setInserterIsOpened:f,insertionIndex:p}=BC((e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:o}=e(qO),i=t(),a=r(n),s=o();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===a?s:a}}),[n]),m=d.length&&(!!a||o),h=m&&d.length>6||u.length>6;(0,Sr.useEffect)((()=>{f&&f(!1)}),[f]);let g=0;return m&&(g=o?4:2),(0,Sr.createElement)("div",{className:Vl()("block-editor-inserter__quick-inserter",{"has-search":h,"has-expand":f})},h&&(0,Sr.createElement)(Y0,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:a,onChange:e=>{s(e)},label:Hn("Search for blocks and patterns"),placeholder:Hn("Search")}),(0,Sr.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,Sr.createElement)(N8,{filterValue:a,onSelect:e,rootClientId:t,clientId:n,isAppender:r,maxBlockPatterns:g,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:o,selectBlockOnInsert:i})),f&&(0,Sr.createElement)(lg,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{f({rootClientId:t,insertionIndex:p,filterValue:a})},"aria-label":Hn("Browse all. This will open the main inserter panel in the editor toolbar.")},Hn("Browse all")))}const Q8=({onToggle:e,disabled:t,isOpen:n,blockTitle:r,hasSingleBlockType:o,toggleProps:i={},prioritizePatterns:a})=>{const{as:s=lg,label:l,onClick:c,...u}=i;let d=l;return!d&&o?d=Nn($n("Add %s","directly add the only allowed block"),r):!d&&a?d=Hn("Add pattern"):d||(d=$n("Add block","Generic label for block inserter button")),(0,Sr.createElement)(s,{icon:sW,label:d,tooltipPosition:"bottom",onClick:function(t){e&&e(t),c&&c(t)},className:"block-editor-inserter__toggle","aria-haspopup":!o&&"true","aria-expanded":!o&&n,disabled:t,...u})};class J8 extends Sr.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:r,hasSingleBlockType:o,directInsertBlock:i,toggleProps:a,hasItems:s,renderToggle:l=Q8,prioritizePatterns:c}=this.props;return l({onToggle:e,isOpen:t,disabled:n||!s,blockTitle:r,hasSingleBlockType:o,directInsertBlock:i,toggleProps:a,prioritizePatterns:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:r,showInserterHelpPanel:o,__experimentalIsQuick:i,prioritizePatterns:a,onSelectOrClose:s,selectBlockOnInsert:l}=this.props;return i?(0,Sr.createElement)(Z8,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;s&&"function"==typeof s&&s(n),e()},rootClientId:t,clientId:n,isAppender:r,prioritizePatterns:a,selectBlockOnInsert:l}):(0,Sr.createElement)(X8,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:r,showInserterHelpPanel:o,prioritizePatterns:a})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:r,__experimentalIsQuick:o,onSelectOrClose:i}=this.props;return t||n?this.renderToggle({onToggle:r}):(0,Sr.createElement)(aC,{className:"block-editor-inserter",contentClassName:Vl()("block-editor-inserter__popover",{"is-quick":o}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Hn("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}const e9=Ie([KY(((e,{clientId:t,rootClientId:n,shouldDirectInsert:r=!0})=>{const{getBlockRootClientId:o,hasInserterItems:i,getAllowedBlocks:a,getDirectInsertBlock:s,getSettings:l}=e(qO),{getBlockVariations:c}=e(yi),u=a(n=n||o(t)||void 0),d=r&&s(n),f=l(),p=1===u?.length&&0===c(u[0].name,"inserter")?.length;let m=!1;return p&&(m=u[0]),{hasItems:i(n),hasSingleBlockType:p,blockTitle:m?m.title:"",allowedBlockType:m,directInsertBlock:d,rootClientId:n,prioritizePatterns:f.__experimentalPreferPatternsOnRoot&&!n}})),YY(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:r,clientId:o,isAppender:i,hasSingleBlockType:a,allowedBlockType:s,directInsertBlock:l,onSelectOrClose:c,selectBlockOnInsert:u}=t;if(!a&&!l)return;const{insertBlock:d}=e(qO);let f;if(l){const e=function(e){const{getBlock:t,getPreviousBlockClientId:i}=n(qO);if(!e||!o&&!r)return{};const a={};let s={};if(o){const e=t(o),n=t(i(o));e?.name===n?.name&&(s=n?.attributes||{})}else{const e=t(r);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];l&&l?.name===t.name&&(s=t.attributes)}}return e.forEach((e=>{s.hasOwnProperty(e)&&(a[e]=s[e])})),a}(l.attributesToCopy);f=Yr(l.name,{...l.attributes||{},...e})}else f=Yr(s.name);d(f,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:a,getBlockRootClientId:s}=n(qO);if(o)return e(o);const l=t();return!i&&l&&s(l)===r?e(l)+1:a(r).length}(),r,u),c&&c({clientId:f?.clientId});NN(Nn(Hn("%s block added"),s.title))}}))),XY((({hasItems:e,isAppender:t,rootClientId:n,clientId:r})=>e||!t&&!n&&!r))])(J8),t9=(0,Sr.forwardRef)(((e,t)=>(0,Sr.createElement)(e9,{ref:t,...e})));const n9=Ie(KY(((e,t)=>{const{getBlockCount:n,getSettings:r,getTemplateLock:o}=e(qO),i=!n(t.rootClientId),{bodyPlaceholder:a}=r();return{showPrompt:i,isLocked:!!o(t.rootClientId),placeholder:a}})),YY(((e,t)=>{const{insertDefaultBlock:n,startTyping:r}=e(qO);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),r()}}})))((function({isLocked:e,onAppend:t,showPrompt:n,placeholder:r,rootClientId:o}){if(e)return null;const i=Ma(r)||Hn("Type / to choose a block");return(0,Sr.createElement)("div",{"data-root-client-id":o||"",className:Vl()("block-editor-default-block-appender",{"has-visible-prompt":n})},(0,Sr.createElement)("p",{tabIndex:"0",role:"button","aria-label":Hn("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{dx!==e.keyCode&&32!==e.keyCode||t()},onClick:()=>t(),onFocus:()=>{n&&t()}},n?i:"\ufeff"),(0,Sr.createElement)(t9,{rootClientId:o,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function r9({rootClientId:e,className:t,onFocus:n,tabIndex:r},o){return(0,Sr.createElement)(t9,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:i,isOpen:a,blockTitle:s,hasSingleBlockType:l})=>{let c;c=l?Nn($n("Add %s","directly add the only allowed block"),s):$n("Add block","Generic label for block inserter button");const u=!l;let d=(0,Sr.createElement)(lg,{ref:o,onFocus:n,tabIndex:r,className:Vl()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":u?"true":void 0,"aria-expanded":u?a:void 0,disabled:i,label:c},!l&&(0,Sr.createElement)(ig,{as:"span"},c),(0,Sr.createElement)(EM,{icon:sW}));return(u||l)&&(d=(0,Sr.createElement)(Zp,{text:c},d)),d},isAppender:!0})}(0,Sr.forwardRef)(((e,t)=>(on("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),r9(e,t))));const o9=(0,Sr.forwardRef)(r9);function i9({rootClientId:e}){return BC((t=>t(qO).canInsertBlockType(Br(),e)))?(0,Sr.createElement)(n9,{rootClientId:e}):(0,Sr.createElement)(o9,{rootClientId:e,className:"block-list-appender__toggle"})}const a9=function({rootClientId:e,renderAppender:t,className:n,tagName:r="div"}){const o=function(e,t){const n=BC((n=>{const{getTemplateLock:r,getSelectedBlockClientId:o,__unstableGetEditorMode:i,getBlockEditingMode:a}=n(qO);if(!1===t)return!1;if(!t){const t=o();if(e!==t&&(e||t))return!1}return!r(e)&&"disabled"!==a(e)&&"zoom-out"!==i()}),[e,t]);return n?t?(0,Sr.createElement)(t,null):(0,Sr.createElement)(i9,{rootClientId:e}):null}(e,t),i=BC((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:r,getBlockCount:o}=t(qO),i=n();return r()&&e===i?.rootClientId&&0===o(e)}),[e]);return o?(0,Sr.createElement)(r,{tabIndex:-1,className:Vl()("block-list-appender wp-block",n,{"is-drag-over":i}),contentEditable:!1,"data-block":!0},o):null},s9=(0,Sr.createContext)();function l9(){const e=(0,Sr.useContext)(s9),t=BC((e=>e(qO).getSettings().isDistractionFree||"zoom-out"===e(qO).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:r,isMultiSelecting:o,getSelectedBlockClientIds:i,getTemplateLock:a,__unstableIsWithinBlockOverlay:s,getBlockEditingMode:l}=BC(qO),{showInsertionPoint:c,hideInsertionPoint:u}=Sq(qO);return Vx((d=>{if(!t)return d.addEventListener("mousemove",f),()=>{d.removeEventListener("mousemove",f)};function f(t){if(e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(o())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void u();let d;if(!t.target.classList.contains("is-root-container")){d=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(a(d)||"disabled"===l(d))return;const f=n(d)?.orientation||"vertical",p=t.clientY,m=t.clientX;let h=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===f&&t.top>p||e.classList.contains("wp-block")&&"horizontal"===f&&(Wn()?t.right<m:t.left>m)}));if(!h)return void u();if(!h.id&&(h=h.firstElementChild,!h))return void u();const g=h.id.slice(6);if(!g||s(g))return;if(i().includes(g))return;const v=h.getBoundingClientRect();if("horizontal"===f&&(t.clientY>v.bottom||t.clientY<v.top)||"vertical"===f&&(t.clientX>v.right||t.clientX<v.left))return void u();const b=r(g);0!==b?c(d,b,{__unstableWithInserter:!0}):u()}}),[e,n,r,o,c,u,i,t])}const c9=Hl((e=>t=>{const{clientId:n}=JO();return(0,Sr.createElement)(e,{...t,clientId:n})}),"withClientId"),u9=c9((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:r,isToggle:o})=>(0,Sr.createElement)(o9,{className:Vl()({"block-list-appender__toggle":o}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:r}))),d9=Ie([c9,KY(((e,{clientId:t})=>{const{getBlockOrder:n}=e(qO),r=n(t);return{lastBlockClientId:r[r.length-1]}}))])((({clientId:e})=>(0,Sr.createElement)(n9,{rootClientId:e}))),f9=new WeakMap;function p9(e,t,n,r,o,i,a,s,l,c,u){const{updateBlockListSettings:d}=Sq(qO),f=IC(),{parentLock:p}=BC((t=>{const n=t(qO).getBlockRootClientId(e);return{parentLock:t(qO).getTemplateLock(n)}}),[e]),m=function(e){const[t,n]=(0,Sr.useState)(e);return ca(t,e)||n(e),t}(t),h=(0,Sr.useMemo)((()=>n),n),g=void 0===s||"contentOnly"===p?p:s;(0,Sr.useLayoutEffect)((()=>{const t={allowedBlocks:m,prioritizedInserterBlocks:h,templateLock:g};if(void 0!==l&&(t.__experimentalCaptureToolbars=l),void 0!==c)t.orientation=c;else{const e=pq(u?.type);t.orientation=e.getOrientation(u)}void 0!==i&&(on("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=i),void 0!==r&&(t.defaultBlock=r),void 0!==a&&(on("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=a),void 0!==o&&(t.directInsert=o),f9.get(f)||f9.set(f,[]),f9.get(f).push([e,t]),window.queueMicrotask((()=>{f9.get(f)?.length&&f.batch((()=>{f9.get(f).forEach((e=>{d(...e)})),f9.set(f,[])}))}))}),[e,m,h,g,r,o,i,a,l,c,d,u,f])}function m9(e){const t=(0,Sr.useRef)();return t.current=e,t}function h9({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:r,onDragEnter:o,onDragLeave:i,onDragEnd:a,onDragOver:s}){const l=m9(n),c=m9(r),u=m9(o),d=m9(i),f=m9(a),p=m9(s);return Vx((n=>{if(t)return;const r=null!=e?e:n;let o=!1;const{ownerDocument:i}=r;function a(e){o||(o=!0,i.addEventListener("dragend",v),i.addEventListener("mousemove",v),c.current&&c.current(e))}function s(e){e.preventDefault(),r.contains(e.relatedTarget)||u.current&&u.current(e)}function m(e){!e.defaultPrevented&&p.current&&p.current(e),e.preventDefault()}function h(e){(function(e){const{defaultView:t}=i;if(!(e&&t&&e instanceof t.HTMLElement&&r.contains(e)))return!1;let n=e;do{if(n.dataset.isDropZone)return n===r}while(n=n.parentElement);return!1})(e.relatedTarget)||d.current&&d.current(e)}function g(e){e.defaultPrevented||(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files.length,l.current&&l.current(e),v(e))}function v(e){o&&(o=!1,i.removeEventListener("dragend",v),i.removeEventListener("mousemove",v),f.current&&f.current(e))}return r.dataset.isDropZone="true",r.addEventListener("drop",g),r.addEventListener("dragenter",s),r.addEventListener("dragover",m),r.addEventListener("dragleave",h),i.addEventListener("dragenter",a),()=>{delete r.dataset.isDropZone,r.removeEventListener("drop",g),r.removeEventListener("dragenter",s),r.removeEventListener("dragover",m),r.removeEventListener("dragleave",h),i.removeEventListener("dragend",v),i.removeEventListener("mousemove",v),i.removeEventListener("dragenter",a)}}),[t,e])}function g9(e,t,n,r,o,i,a){return s=>{const{srcRootClientId:l,srcClientIds:c,type:u,blocks:d}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(s);if("inserter"===u){a();const e=d.map((e=>Qr(e)));i(e,!0,null)}if("block"===u){const i=n(c[0]);if(l===e&&i===t)return;if(c.includes(e)||r(c).some((t=>t===e)))return;const a=l===e,s=c.length;o(c,l,a&&i<t?t-s:t)}}}function v9(e,t,n={}){const{operation:r="insert"}=n,o=BC((e=>e(qO).getSettings().mediaUpload),[]),{canInsertBlockType:i,getBlockIndex:a,getClientIdsOfDescendants:s,getBlockOrder:l,getBlocksByClientId:c}=BC(qO),{insertBlocks:u,moveBlocksToPosition:d,updateBlockAttributes:f,clearSelectedBlock:p,replaceBlocks:m,removeBlocks:h}=Sq(qO),g=IC(),v=(0,Sr.useCallback)(((n,o=!0,i=0)=>{if("replace"===r){const r=l(e)[t];m(r,n,void 0,i)}else u(n,t,e,o,i)}),[r,l,u,m,t,e]),b=(0,Sr.useCallback)(((n,o,i)=>{if("replace"===r){const r=c(n),o=l(e)[t];g.batch((()=>{h(n,!1),m(o,r,void 0,0)}))}else d(n,o,e,i)}),[r,l,c,u,d,h,t,e]),y=g9(e,t,a,s,b,v,p),k=function(e,t,n,r,o,i){return t=>{if(!n)return;const a=ro(oo("from"),(n=>"files"===n.type&&o(n.blockName,e)&&n.isMatch(t)));if(a){const e=a.transform(t,r);i(e)}}}(e,0,o,f,i,v),w=function(e,t,n){return e=>{const t=Dl({HTML:e,mode:"BLOCKS"});t.length&&n(t)}}(0,0,v);return e=>{const t=g2(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?w(n):t.length?k(t):y(e)}}function b9(e,t,n=["top","bottom","left","right"]){let r,o;return n.forEach((n=>{const i=function(e,t,n){const r="top"===n||"bottom"===n,{x:o,y:i}=e,a=r?o:i,s=r?i:o,l=r?t.left:t.top,c=r?t.right:t.bottom,u=t[n];let d;return d=a>=l&&a<=c?a:a<c?l:c,Math.sqrt((a-d)**2+(s-u)**2)}(e,t,n);(void 0===r||i<r)&&(r=i,o=n)})),[r,o]}function y9({rootClientId:e=""}={}){const t=IC(),[n,r]=(0,Sr.useState)({index:null,operation:"insert"}),o=BC((t=>{const{__unstableIsWithinBlockOverlay:n,__unstableHasActiveBlockOverlayActive:r,getBlockEditingMode:o}=t(qO);return"default"!==o(e)||r(e)||n(e)}),[e]),{getBlockListSettings:i,getBlocks:a,getBlockIndex:s}=BC(qO),{showInsertionPoint:l,hideInsertionPoint:c}=Sq(qO),u=v9(e,n.index,{operation:n.operation}),d=function(e,t,n){const r=VY((()=>O3(e,null!=t?t:0,n)),[e,t,n]);return(0,Sr.useEffect)((()=>()=>r.cancel()),[r]),r}((0,Sr.useCallback)(((n,o)=>{const c=a(e);if(0===c.length)return void t.batch((()=>{r({index:0,operation:"insert"}),l(e,0,{operation:"insert"})}));const u=c.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:uo(e),getBoundingClientRect:()=>o.getElementById(`block-${t}`).getBoundingClientRect(),blockIndex:s(t)}})),[d,f]=function(e,t,n="vertical"){const r="horizontal"===n?["left","right"]:["top","bottom"],o=Wn();let i=0,a="before",s=1/0;e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:n,blockIndex:l})=>{const c=n();let[u,d]=b9(t,c,r);e&&function(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}(t,c)&&(u=0),u<s&&(a="bottom"===d||!o&&"right"===d||o&&"left"===d?"after":"before",s=u,i=l)}));const l=i+("after"===a?1:-1),c=!!e[i]?.isUnmodifiedDefaultBlock,u=!!e[l]?.isUnmodifiedDefaultBlock;if(!c&&!u)return["after"===a?i+1:i,"insert"];return[c?i:l,"replace"]}(u,{x:n.clientX,y:n.clientY},i(e)?.orientation);t.batch((()=>{r({index:d,operation:f}),l(e,d,{operation:f})}))}),[a,e,i,t,l,s]),200);return h9({isDisabled:o,onDrop:u,onDragOver(e){d(e,e.currentTarget.ownerDocument)},onDragLeave(){d.cancel(),c()},onDragEnd(){d.cancel(),c()}})}const k9={};function w9(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:r,defaultBlock:o,directInsert:i,__experimentalDefaultBlock:a,__experimentalDirectInsert:s,template:l,templateLock:c,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:p,renderAppender:m,orientation:h,placeholder:g,layout:v}=e;p9(t,n,r,o,i,a,s,c,f,h,v),function(e,t,n,r){const{getBlocks:o,getSelectedBlocksInitialCaretPosition:i,isBlockSelected:a}=BC(qO),{replaceInnerBlocks:s,__unstableMarkNextChangeAsNotPersistent:l}=Sq(qO),{innerBlocks:c}=BC((t=>({innerBlocks:t(qO).getBlocks(e)})),[e]),u=(0,Sr.useRef)(null);(0,Sr.useLayoutEffect)((()=>{let c=!1;return window.queueMicrotask((()=>{if(c)return;const d=o(e),f=0===d.length||"all"===n||"contentOnly"===n,p=!Oa()(t,u.current);if(!f||!p)return;u.current=t;const m=Fl(d,t);Oa()(m,d)||(l(),s(e,m,0===d.length&&r&&0!==m.length&&a(e),i()))})),()=>{c=!0}}),[c,t,n,e])}(t,l,c,d);const b=function(e){return BC((t=>{const n=t(qO).getBlock(e);if(!n)return;const r=t(yi).getBlockType(n.name);return r&&0!==Object.keys(r.providesContext).length?Object.fromEntries(Object.entries(r.providesContext).map((([e,t])=>[e,n.attributes[t]]))):void 0}),[e])}(t),y=BC((e=>e(qO).getBlock(t)?.name),[t]),k=zr(y,"layout")||zr(y,"__experimentalLayout")||k9,{allowSizingOnChildren:w=!1}=k,_=RU("layout")||k9,E=v||k,x=(0,Sr.useMemo)((()=>({..._,...E,...w&&{allowSizingOnChildren:!0}})),[_,E,w]);return(0,Sr.createElement)(JY,{value:b},(0,Sr.createElement)(R9,{rootClientId:t,renderAppender:m,__experimentalAppenderTagName:p,layout:x,wrapperRef:u,placeholder:g}))}function _9(e){return y1(e),(0,Sr.createElement)(w9,{...e})}const E9=(0,Sr.forwardRef)(((e,t)=>{const n=x9({ref:t},e);return(0,Sr.createElement)("div",{className:"block-editor-inner-blocks"},(0,Sr.createElement)("div",{...n}))}));function x9(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:r}=t,{clientId:o,layout:i=null,__unstableLayoutClassNames:a=""}=JO(),s=ix("medium","<"),{__experimentalCaptureToolbars:l,hasOverlay:c}=BC((e=>{if(!o)return{};const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:r,__unstableGetEditorMode:i}=e(qO),a=t(o),l="navigation"===i()||s;return{__experimentalCaptureToolbars:e(yi).hasBlockSupport(a,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==a&&!n(o)&&!r(o,!0)&&l}}),[o,s]),u=y9({rootClientId:o}),d=Vg([e.ref,r?null:u]),f={__experimentalCaptureToolbars:l,layout:i,...t},p=f.value&&f.onChange?_9:w9;return{...e,ref:d,className:Vl()(e.className,"block-editor-block-list__layout",n?"":a,{"has-overlay":c}),children:o?(0,Sr.createElement)(p,{...f,clientId:o}):(0,Sr.createElement)(R9,{...t})}}x9.save=function(e={}){const{innerBlocks:t}=ma;if(!Array.isArray(t))return{...e,children:t};const n=ya(t,{isInnerBlocks:!0}),r=(0,Sr.createElement)(Ri,null,n);return{...e,children:r}},E9.DefaultBlockAppender=d9,E9.ButtonBlockAppender=u9,E9.Content=()=>x9.save().children;const S9=E9,C9=new Set([mx,hx,gx,px,dx,cx]);function I9(){const{isTyping:e,hasInlineToolbar:t}=BC((e=>{const{isTyping:t,getSettings:n}=e(qO);return{isTyping:t(),hasInlineToolbar:n().hasInlineToolbar}}),[]),{startTyping:n,stopTyping:r}=Sq(qO),o=function(){const e=BC((e=>e(qO).isTyping()),[]),{stopTyping:t}=Sq(qO);return Vx((n=>{if(!e)return;const{ownerDocument:r}=n;let o,i;function a(e){const{clientX:n,clientY:r}=e;o&&i&&(o!==n||i!==r)&&t(),o=n,i=r}return r.addEventListener("mousemove",a),()=>{r.removeEventListener("mousemove",a)}}),[e,t])}(),i=Vx((o=>{const{ownerDocument:i}=o,{defaultView:a}=i,s=a.getSelection();if(e){let c;function u(e){const{target:t}=e;c=a.setTimeout((()=>{u0(t)||r()}))}function d(e){const{keyCode:t}=e;t!==fx&&t!==ux||r()}function f(){s.isCollapsed||r()}return o.addEventListener("focus",u),o.addEventListener("keydown",d),t||i.addEventListener("selectionchange",f),()=>{a.clearTimeout(c),o.removeEventListener("focus",u),o.removeEventListener("keydown",d),i.removeEventListener("selectionchange",f)}}function l(e){const{type:t,target:r}=e;u0(r)&&o.contains(r)&&("keydown"!==t||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&C9.has(t)}(e))&&n()}return o.addEventListener("keypress",l),o.addEventListener("keydown",l),()=>{o.removeEventListener("keypress",l),o.removeEventListener("keydown",l)}}),[e,t,n,r]);return Vg([o,i])}const T9=(0,Sr.createContext)(),P9=(0,Sr.createContext)(),N9=new WeakMap;function O9({className:e,...t}){const[n,r]=(0,Sr.useState)(),o=ix("medium"),{isOutlineMode:i,isFocusMode:a,editorMode:s}=BC((e=>{const{getSettings:t,__unstableGetEditorMode:n}=e(qO),{outlineMode:r,focusMode:o}=t();return{isOutlineMode:r,isFocusMode:o,editorMode:n()}}),[]),l=IC(),{setBlockVisibility:c}=Sq(qO),u=$Y((0,Sr.useCallback)((()=>{const e={};N9.get(l).forEach((([t,n])=>{e[t]=n})),c(e)}),[l]),300,{trailing:!0}),d=(0,Sr.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{N9.get(l)||N9.set(l,[]);for(const t of e){const e=t.target.getAttribute("data-block");N9.get(l).push([e,t.isIntersecting])}u()}))}),[]),f=x9({ref:Vg([X1(),l9(),I9()]),className:Vl()("is-root-container",e,{"is-outline-mode":i,"is-focus-mode":a&&o,"is-navigate-mode":"navigation"===s})},t);return(0,Sr.createElement)(T9.Provider,{value:n},(0,Sr.createElement)(P9.Provider,{value:d},(0,Sr.createElement)("div",{...f}),(0,Sr.createElement)("div",{ref:r})))}function A9(e){return(0,Sr.createElement)(QO,{value:XO},(0,Sr.createElement)(O9,{...e}))}function M9({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,layout:o=gH}){const{order:i,selectedBlocks:a,visibleBlocks:s}=BC((e=>{const{getBlockOrder:n,getSelectedBlockClientIds:r,__unstableGetVisibleBlocks:o}=e(qO);return{order:n(t),selectedBlocks:r(),visibleBlocks:o()}}),[t]);return(0,Sr.createElement)(bH,{value:o},i.map((e=>(0,Sr.createElement)(OC,{key:e,value:!s.has(e)&&!a.includes(e)},(0,Sr.createElement)(W0,{rootClientId:t,clientId:e})))),i.length<1&&e,(0,Sr.createElement)(a9,{tagName:r,rootClientId:t,renderAppender:n}))}function R9(e){return(0,Sr.createElement)(OC,{value:!1},(0,Sr.createElement)(M9,{...e}))}A9.__unstableElementContext=T9;const B9=()=>{};const L9=Hh(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:a=B9,onDeselect:s,onSelect:l,...c}=Vh(e,"ToolsPanelItem"),{panelId:u,menuItems:d,registerResetAllFilter:f,deregisterResetAllFilter:p,registerPanelItem:m,deregisterPanelItem:h,flagItemCustomization:g,isResetting:v,shouldRenderPlaceholderItems:b,firstDisplayedItem:y,lastDisplayedItem:k,__experimentalFirstVisibleItemClass:w,__experimentalLastVisibleItemClass:_}=Gq(),E=(0,Sr.useCallback)(n,[i,n]),x=(0,Sr.useCallback)(a,[i,a]),S=p$(u),C=u===i||null===u;(0,Sr.useEffect)((()=>(C&&null!==S&&m({hasValue:E,isShownByDefault:r,label:o,panelId:i}),()=>{(null===S&&u||u===i)&&h(o)})),[u,C,r,o,E,i,S,m,h]),(0,Sr.useEffect)((()=>(C&&f(x),()=>{C&&p(x)})),[f,p,x,C]);const I=r?"default":"optional",T=d?.[I]?.[o],P=p$(T),N=void 0!==d?.[I]?.[o],O=n(),A=p$(O),M=O&&!A;(0,Sr.useEffect)((()=>{M&&(r||null===u)&&g(o,I)}),[u,M,r,I,o,g]),(0,Sr.useEffect)((()=>{N&&!v&&C&&(!T||O||P||l?.(),!T&&P&&s?.())}),[C,T,N,v,O,P,l,s]);const R=r?void 0!==d?.[I]?.[o]:T,B=jh(),L=(0,Sr.useMemo)((()=>B(pY,b&&!R&&mY,t,y===o&&w,k===o&&_)),[R,b,t,B,y,k,w,_,o]);return{...c,isShown:R,shouldRenderPlaceholder:b,className:L}}(e);return r?(0,Sr.createElement)(og,{...i,ref:t},n):o?(0,Sr.createElement)(og,{...i,ref:t}):null}),"ToolsPanelItem"),D9=L9,z9=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{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"}));class F9 extends Sr.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function j9({children:e,isPresent:t}){const n=(0,Sr.useId)(),r=(0,Sr.useRef)(null),o=(0,Sr.useRef)({width:0,height:0,top:0,left:0});return(0,Sr.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),Sr.createElement(F9,{isPresent:t,childRef:r,sizeRef:o},Sr.cloneElement(e,{ref:r}))}const V9=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Eb(H9),l=(0,Sr.useId)(),c=(0,Sr.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))})),i?void 0:[n]);return(0,Sr.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),Sr.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=Sr.createElement(j9,{isPresent:n},e)),Sr.createElement(nv.Provider,{value:c},e)};function H9(){return new Map}const $9=e=>e.key||"";const U9=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{fy(!o,"Replace exitBeforeEnter with mode='wait'");const s=(0,Sr.useContext)(gv).forceRender||PH()[0],l=TH(),c=function(e){const t=[];return Sr.Children.forEach(e,(e=>{(0,Sr.isValidElement)(e)&&t.push(e)})),t}(e);let u=c;const d=(0,Sr.useRef)(new Map).current,f=(0,Sr.useRef)(u),p=(0,Sr.useRef)(new Map).current,m=(0,Sr.useRef)(!0);if(rv((()=>{m.current=!1,function(e,t){e.forEach((e=>{const n=$9(e);t.set(n,e)}))}(c,p),f.current=u})),function(e){(0,Sr.useEffect)((()=>()=>e()),[])}((()=>{m.current=!0,p.clear(),d.clear()})),m.current)return Sr.createElement(Sr.Fragment,null,u.map((e=>Sr.createElement(V9,{key:$9(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));u=[...u];const h=f.current.map($9),g=c.map($9),v=h.length;for(let e=0;e<v;e++){const t=h[e];-1!==g.indexOf(t)||d.has(t)||d.set(t,void 0)}return"wait"===a&&d.size&&(u=[]),d.forEach(((e,n)=>{if(-1!==g.indexOf(n))return;const o=p.get(n);if(!o)return;const m=h.indexOf(n);let v=e;if(!v){const e=()=>{p.delete(n),d.delete(n);const e=f.current.findIndex((e=>e.key===n));if(f.current.splice(e,1),!d.size){if(f.current=c,!1===l.current)return;s(),r&&r()}};v=Sr.createElement(V9,{key:$9(o),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:a},o),d.set(n,v)}u.splice(m,0,v)})),u=u.map((e=>{const t=e.key;return d.has(t)?e:Sr.createElement(V9,{key:$9(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),Sr.createElement(Sr.Fragment,null,d.size?u:u.map((e=>(0,Sr.cloneElement)(e))))};const W9=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[a,s]=(0,Sr.useState)(),[l,c]=(0,Sr.useState)(),[u,d]=(0,Sr.useState)(),f=h9({onDrop(e){const t=e.dataTransfer?g2(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){s(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?g2(e.dataTransfer):[]).length>0)&&(t="file"),d(t)},onDragEnd(){s(!1),d(void 0)},onDragEnter(){c(!0)},onDragLeave(){c(!1)}}),p=Fq();let m;const h={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},g={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};l&&(m=(0,Sr.createElement)(QE.div,{variants:h,initial:p?"show":"hidden",animate:"show",exit:p?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,Sr.createElement)(QE.div,{variants:g},(0,Sr.createElement)(EM,{icon:z9,className:"components-drop-zone__content-icon"}),(0,Sr.createElement)("span",{className:"components-drop-zone__content-text"},t||Hn("Drop files to upload")))));const v=Vl()("components-drop-zone",e,{"is-active":(a||l)&&("file"===u&&n||"html"===u&&r||"default"===u&&o),"is-dragging-over-document":a,"is-dragging-over-element":l,[`is-dragging-${u}`]:!!u});return(0,Sr.createElement)("div",{...i,ref:f,className:v},p?m:(0,Sr.createElement)(U9,null,m))};const K9=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...a}){const s=(0,Sr.useRef)(null),l=()=>{s.current?.click()},c=i?i({openFileDialog:l}):(0,Sr.createElement)(lg,{onClick:l,...a},t);return(0,Sr.createElement)("div",{className:"components-form-file-upload"},c,(0,Sr.createElement)("input",{type:"file",ref:s,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))},G9=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Sr.createElement)(Qp,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})),q9=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),Y9=()=>{};function X9(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const Z9=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=Y9,isDismissible:i=!0,actions:a=[],politeness:s=X9(t),__unstableHTML:l,onDismiss:c=Y9}){!function(e,t){const n="string"==typeof e?e:sa(e);(0,Sr.useEffect)((()=>{n&&NN(n,t)}),[n,t])}(r,s);const u=Vl()(e,"components-notice","is-"+t,{"is-dismissible":i});return l&&"string"==typeof n&&(n=(0,Sr.createElement)(Ri,null,n)),(0,Sr.createElement)("div",{className:u},(0,Sr.createElement)(ig,null,function(e){switch(e){case"warning":return Hn("Warning notice");case"info":return Hn("Information notice");case"error":return Hn("Error notice");default:return Hn("Notice")}}(t)),(0,Sr.createElement)("div",{className:"components-notice__content"},n,(0,Sr.createElement)("div",{className:"components-notice__actions"},a.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:a},s)=>{let l=r;return"primary"===r||o||(l=a?"link":"secondary"),void 0===l&&n&&(l="primary"),(0,Sr.createElement)(lg,{key:s,href:a,variant:l,onClick:a?void 0:i,className:Vl()("components-notice__action",e)},t)})))),i&&(0,Sr.createElement)(lg,{className:"components-notice__dismiss",icon:Yx,label:Hn("Close"),onClick:()=>{c(),o()}}))};const Q9=function(e){let t;return(n,r)=>{if("SET_PERSISTENCE_LAYER"===r.type){const{persistenceLayer:e,persistedData:n}=r;return t=e,n}const o=e(n,r);return"SET_PREFERENCE_VALUE"===r.type&&t?.set(o),o}}(((e={},t)=>{if("SET_PREFERENCE_VALUE"===t.type){const{scope:n,name:r,value:o}=t;return{...e,[n]:{...e[n],[r]:o}}}return e}));function J9(e,t){return function({select:n,dispatch:r}){const o=n.get(e,t);r.set(e,t,!o)}}function e7(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function t7(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function n7(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}function r7(e,t,n){const r=e.preferences[t]?.[n];return void 0!==r?r:e.defaults[t]?.[n]}const o7=Ct("core/preferences",{reducer:dn({defaults:function(e={},t){if("SET_PREFERENCE_DEFAULTS"===t.type){const{scope:n,defaults:r}=t;return{...e,[n]:{...e[n],...r}}}return e},preferences:Q9}),actions:w,selectors:_});pn(o7);const i7=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Sr.createElement)(Qp,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),a7=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));const s7=function e({children:t,settingsOpen:n,setSettingsOpen:r}){const o=Fq(),i=o?Sr.Fragment:U9,a=o?"div":QE.div,s=`link-control-settings-drawer-${Wl(e)}`;return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(lg,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>r(!n),icon:Wn()?a7:mV,"aria-controls":s},$n("Advanced","Additional link settings")),(0,Sr.createElement)(i,null,n&&(0,Sr.createElement)(a,{className:"block-editor-link-control__drawer",hidden:!n,id:s,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1}},(0,Sr.createElement)("div",{className:"block-editor-link-control__drawer-inner"},t))))};var l7=o(4979),c7=o.n(l7);const u7=Hl((e=>t=>(0,Sr.createElement)(e,{...t,speak:NN,debouncedSpeak:$Y(NN,500)})),"withSpokenMessages"),d7=Hl((e=>class extends Sr.Component{constructor(e){super(e),this.timeouts=[],this.setTimeout=this.setTimeout.bind(this),this.clearTimeout=this.clearTimeout.bind(this)}componentWillUnmount(){this.timeouts.forEach(clearTimeout)}setTimeout(e,t){const n=setTimeout((()=>{e(),this.clearTimeout(n)}),t);return this.timeouts.push(n),n}clearTimeout(e){clearTimeout(e),this.timeouts=this.timeouts.filter((t=>t!==e))}render(){return(0,Sr.createElement)(e,{...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout})}}),"withSafeTimeout"),f7=d7,p7=Hl((e=>t=>{const n=Wl(e);return(0,Sr.createElement)(e,{...t,instanceId:n})}),"instanceId");function m7(e){return"function"==typeof e}class h7 extends Sr.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,Sr.createRef)(),this.inputRef=(0,Sr.createRef)(),this.updateSuggestions=HY(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,isUpdatingSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:r,__experimentalShowInitialSuggestions:o=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,c7()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),e.value===r||this.props.disableSuggestions||this.state.isUpdatingSuggestions||(r?.length?this.updateSuggestions(r):o&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const r=!e?.length;if(e=e.trim(),!r&&(e.length<2||!n&&function(e){try{return new URL(e),!0}catch{return!1}}(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({isUpdatingSuggestions:!0,selectedSuggestion:null,loading:!0});const o=t(e,{isInitialSuggestions:r});o.then((t=>{this.suggestionsRequest===o&&(this.setState({suggestions:t,isUpdatingSuggestions:!1,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak(Nn(Un("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):this.props.debouncedSpeak(Hn("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===o&&this.setState({isUpdatingSuggestions:!1,loading:!1})})),this.suggestionsRequest=o}onChange(e){this.props.onChange(e.target.value)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.state.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:r,loading:o}=this.state;if(!t||!r.length||o){switch(e.keyCode){case mx:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case gx:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case dx:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case mx:{e.preventDefault();const t=n?n-1:r.length-1;this.setState({selectedSuggestion:t});break}case gx:{e.preventDefault();const t=null===n||n===r.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case ux:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Hn("Link selected.")));break;case dx:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(i),this.props.onSubmit&&this.props.onSubmit(i,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:r=!1},{showSuggestions:o}){let i=o;const a=e&&e.length;return r||a||(i=!1),!0===n&&(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,Sr.createElement)(Sr.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:r,instanceId:o,placeholder:i=Hn("Paste URL or type to search"),__experimentalRenderControl:a,value:s="",hideLabelFromVision:l=!1}=this.props,{loading:c,showSuggestions:u,selectedSuggestion:d,suggestionsListboxId:f,suggestionOptionIdPrefix:p}=this.state,m=`url-input-control-${o}`,h={id:m,label:t,className:Vl()("block-editor-url-input",n,{"is-full-width":r}),hideLabelFromVision:l},g={id:m,value:s,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:Hn("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":f,"aria-activedescendant":null!==d?`${p}-${d}`:void 0,ref:this.inputRef};return a?a(h,g,c):(e||on("Bottom margin styles for wp.blockEditor.URLInput",{since:"6.2",version:"6.5",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,Sr.createElement)(BH,{__nextHasNoMarginBottom:e,...h},(0,Sr.createElement)("input",{...g}),c&&(0,Sr.createElement)(s8,null)))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:r,suggestionsValue:o,selectedSuggestion:i,suggestionsListboxId:a,suggestionOptionIdPrefix:s,loading:l}=this.state;if(!n||0===r.length)return null;const c={id:a,ref:this.autocompleteRef,role:"listbox"},u=(e,t)=>({role:"option",tabIndex:"-1",id:`${s}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===i||void 0});return m7(t)?t({suggestions:r,selectedSuggestion:i,suggestionsListProps:c,buildSuggestionItemProps:u,isLoading:l,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!o?.length,currentInputValue:o}):(0,Sr.createElement)(oC,{placement:"bottom",focusOnMount:!1},(0,Sr.createElement)("div",{...c,className:Vl()("block-editor-url-input__suggestions",`${e}__suggestions`)},r.map(((e,t)=>(0,Sr.createElement)(lg,{...u(0,t),key:e.id,className:Vl()("block-editor-url-input__suggestion",{"is-selected":t===i}),onClick:()=>this.handleOnClick(e)},e.title)))))}}const g7=Ie(f7,u7,p7,KY(((e,t)=>{if(m7(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(qO);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(h7),v7=({searchTerm:e,onClick:t,itemProps:n,buttonText:r})=>{if(!e)return null;let o;return o=r?"function"==typeof r?r(e):r:a1(Nn(Hn("Create: <mark>%s</mark>"),e),{mark:(0,Sr.createElement)("mark",null)}),(0,Sr.createElement)(hH,{...n,iconPosition:"left",icon:sW,className:"block-editor-link-control__search-item",onClick:t},o)},b7=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,Sr.createElement)(Sr.Fragment,null,t);const o=new RegExp(`(${$K(r)})`,"gi");return a1(t.replace(o,"<mark>$&</mark>"),{mark:(0,Sr.createElement)("mark",null)})},y7=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"})),k7=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"})),w7=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"})),_7=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),E7=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"})),x7=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));function S7(e){try{return decodeURI(e)}catch(t){return e}}function C7(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function I7(e,t=null){let n=e.replace(/^(?:https?:)\/\/(?:www\.)?/,"");n.match(/^[^\/]+\/$/)&&(n=n.replace("/",""));if(!t||n.length<=t||!n.match(/([\w|:])*\.(?:jpg|jpeg|gif|png|svg)/))return n;n=n.split("?")[0];const r=n.split("/"),o=r[r.length-1];if(o.length<=t)return"…"+n.slice(-t);const i=o.lastIndexOf("."),[a,s]=[o.slice(0,i),o.slice(i+1)],l=a.slice(-3)+"."+s;return o.slice(0,t-l.length-1)+"…"+l}const T7={post:y7,page:k7,post_tag:w7,category:_7,attachment:E7};function P7({isURL:e,suggestion:t}){let n=null;return e?n=x7:t.type in T7&&(n=T7[t.type]),n?(0,Sr.createElement)(EM,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function N7(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function O7(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}function A7(e){return e.isFrontPage?"front page":"post_tag"===e.type?"tag":e.type}const M7=({itemProps:e,suggestion:t,searchTerm:n,onClick:r,isURL:o=!1,shouldShowType:i=!1})=>{const a=o?Hn("Press ENTER to add this link"):(s=t.url)?Ce(S7,C7,(e=>t=>null==t||t!=t?e:t)(""),((e,...t)=>(...n)=>e(...n,...t))(I7,24),O7,N7)(s):s;var s;return(0,Sr.createElement)(hH,{...e,info:a,iconPosition:"left",icon:(0,Sr.createElement)(P7,{suggestion:t,isURL:o}),onClick:r,shortcut:i&&A7(t),className:"block-editor-link-control__search-item"},(0,Sr.createElement)(b7,{text:h2(t.title),highlight:n}))},R7="__CREATE__",B7="link",L7="mailto",D7="internal",z7=[B7,L7,"tel",D7],F7=[{id:"opensInNewTab",title:Hn("Open in new tab")}];function j7({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:r,suggestionsListProps:o,buildSuggestionItemProps:i,suggestions:a,selectedSuggestion:s,isLoading:l,isInitialSuggestions:c,createSuggestionButtonText:u,suggestionsQuery:d}){const f=Vl()("block-editor-link-control__search-results",{"is-loading":l}),p=1===a.length&&z7.includes(a[0].type),m=t&&!p&&!c,h=!d?.type,g=`block-editor-link-control-search-results-label-${e}`,v=c?Hn("Suggestions"):Nn(Hn('Search results for "%s"'),n),b=(0,Sr.createElement)(ig,{id:g},v);return(0,Sr.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},b,(0,Sr.createElement)("div",{...o,className:f,"aria-labelledby":g},(0,Sr.createElement)(pH,null,a.map(((e,t)=>m&&R7===e.type?(0,Sr.createElement)(v7,{searchTerm:n,buttonText:u,onClick:()=>r(e),key:e.type,itemProps:i(e,t),isSelected:t===s}):R7===e.type?null:(0,Sr.createElement)(M7,{key:`${e.id}-${e.type}`,itemProps:i(e,t),suggestion:e,index:t,onClick:()=>{r(e)},isSelected:t===s,isURL:z7.includes(e.type),searchTerm:n,shouldShowType:h,isFrontPage:e?.isFrontPage}))))))}function V7(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}const H7=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;const $7=/^(?:[a-z]+:|#|\?|\.|\/)/i;function U7(e){return e?(e=e.trim(),$7.test(e)||(t=e,H7.test(t))?e:"http://"+e):e;var t}function W7(e){if(e.includes(" "))return!1;const t=function(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}(V7(e)),n=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith("www."),o=e?.startsWith("#")&&(!!(i=e)&&/^#[^\s#?\/]*$/.test(i));var i;return t||r||o||n}const K7=()=>Promise.resolve([]),G7=e=>{let t=B7;const n=V7(e)||"";return n.includes("mailto")&&(t=L7),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=D7),Promise.resolve([{id:e,title:e,url:"URL"===t?U7(e):e,type:t}])};function q7(e,t,n,r){const{fetchSearchSuggestions:o,pageOnFront:i}=BC((e=>{const{getSettings:t}=e(qO);return{pageOnFront:t().pageOnFront,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),a=t?G7:K7;return(0,Sr.useCallback)(((t,{isInitialSuggestions:i})=>W7(t)?a(t,{isInitialSuggestions:i}):(async(e,t,n,r,o)=>{const{isInitialSuggestions:i}=t,a=await n(e,t);return a.map((e=>Number(e.id)===o?(e.isFrontPage=!0,e):e)),i||W7(e)||!r?a:a.concat({title:e,url:e,type:R7})})(t,{...e,isInitialSuggestions:i},o,n,r)),[a,o,i,e,n,r])}const Y7=()=>Promise.resolve([]),X7=()=>{},Z7=(0,Sr.forwardRef)((({value:e,children:t,currentLink:n={},className:r=null,placeholder:o=null,withCreateSuggestion:i=!1,onCreateSuggestion:a=X7,onChange:s=X7,onSelect:l=X7,showSuggestions:c=!0,renderSuggestions:u=(e=>(0,Sr.createElement)(j7,{...e})),fetchSuggestions:d=null,allowDirectEntry:f=!0,showInitialSuggestions:p=!1,suggestionsQuery:m={},withURLSuggestion:h=!0,createSuggestionButtonText:g,hideLabelFromVision:v=!1},b)=>{const y=q7(m,f,i,h),k=c?d||y:Y7,w=Wl(Z7),[_,E]=(0,Sr.useState)(),x=async e=>{let t=e;if(R7!==e.type){if(f||t&&Object.keys(t).length>=1){const{id:e,url:r,...o}=null!=n?n:{};l({...o,...t},t)}}else try{t=await a(e.title),t?.url&&l(t)}catch(e){}},S=Vl()(r,{});return(0,Sr.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,Sr.createElement)(g7,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:Hn("Link"),hideLabelFromVision:v,className:S,value:e,onChange:(e,t)=>{s(e),E(t)},placeholder:null!=o?o:Hn("Search or type url"),__experimentalRenderSuggestions:c?e=>u({...e,instanceId:w,withCreateSuggestion:i,createSuggestionButtonText:g,suggestionsQuery:m,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),x(t)}}):null,__experimentalFetchLinkSuggestions:k,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:p,onSubmit:(t,n)=>{const r=t||_;r||e?.trim()?.length?x(r||{url:e}):n.preventDefault()},ref:b}),t)})),Q7=Z7,J7=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),eee=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),tee=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),{Slot:nee,Fill:ree}=QS("BlockEditorLinkControlViewer");function oee(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}const iee=function(e){const[t,n]=(0,Sr.useReducer)(oee,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=BC((e=>{const{getSettings:t}=e(qO);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,Sr.useEffect)((()=>{if(e?.length&&r&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,o=t.signal;return r(e,{signal:o}).then((e=>{n({type:"RESOLVED",richData:e})})).catch((()=>{o.aborted||n({type:"ERROR"})})),()=>{t.abort()}}}),[e]),t};function aee({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:r=!1,onRemove:o,additionalControls:i}){const a=n?e?.url:null,{richData:s,isFetching:l}=iee(a),c=s&&Object.keys(s).length,u=e&&I7(S7(e.url),16)||"",d=!e?.url?.length,f=!d&&h2(s?.title||e?.title||u);let p;return p=s?.icon?(0,Sr.createElement)("img",{src:s?.icon,alt:""}):d?(0,Sr.createElement)(EM,{icon:J7,size:32}):(0,Sr.createElement)(EM,{icon:x7}),(0,Sr.createElement)("div",{"aria-label":Hn("Currently selected"),className:Vl()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":c,"is-fetching":!!l,"is-preview":!0,"is-error":d,"is-url-title":f===u})},(0,Sr.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,Sr.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,Sr.createElement)("span",{className:Vl()("block-editor-link-control__search-item-icon",{"is-image":s?.icon})},p),(0,Sr.createElement)("span",{className:"block-editor-link-control__search-item-details"},d?(0,Sr.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},Hn("Link is empty")):(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(zq,{className:"block-editor-link-control__search-item-title",href:e.url},f),e?.url&&f!==u&&(0,Sr.createElement)("span",{className:"block-editor-link-control__search-item-info"},u)))),(0,Sr.createElement)(lg,{icon:eee,label:Hn("Edit"),className:"block-editor-link-control__search-item-action",onClick:t,iconSize:24}),r&&(0,Sr.createElement)(lg,{icon:tee,label:Hn("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:o,iconSize:24}),(0,Sr.createElement)(nee,{fillProps:e})),!!(c&&(s?.image||s?.description)||l)&&(0,Sr.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},(s?.image||l)&&(0,Sr.createElement)("div",{"aria-hidden":!s?.image,className:Vl()("block-editor-link-control__search-item-image",{"is-placeholder":!s?.image})},s?.image&&(0,Sr.createElement)("img",{src:s?.image,alt:""})),(s?.description||l)&&(0,Sr.createElement)("div",{"aria-hidden":!s?.description,className:Vl()("block-editor-link-control__search-item-description",{"is-placeholder":!s?.description})},s?.description&&(0,Sr.createElement)(KR,{truncate:!0,numberOfLines:"2"},s.description))),i&&i())}const see=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:a,indeterminate:s,help:l,id:c,onChange:u,...d}=t;i&&on("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[f,p]=(0,Sr.useState)(!1),[m,h]=(0,Sr.useState)(!1),g=Vx((e=>{e&&(e.indeterminate=!!s,p(e.matches(":checked")),h(e.matches(":indeterminate")))}),[a,s]),v=Wl(e,"inspector-checkbox-control",c);return(0,Sr.createElement)(BH,{__nextHasNoMarginBottom:n,label:i,id:v,help:l,className:Vl()("components-checkbox-control",o)},(0,Sr.createElement)("span",{className:"components-checkbox-control__input-container"},(0,Sr.createElement)("input",{ref:g,id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>u(e.target.checked),checked:a,"aria-describedby":l?v+"__help":void 0,...d}),m?(0,Sr.createElement)(EM,{icon:lW,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,f?(0,Sr.createElement)(EM,{icon:xM,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,Sr.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},r))},lee=()=>{},cee=({value:e,onChange:t=lee,settings:n})=>{if(!n||!n.length)return null;const r=n=>r=>{t({...e,[n.id]:r})},o=n.map((t=>(0,Sr.createElement)(see,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:r(t),checked:!!e&&!!e[t.id],help:t?.help})));return(0,Sr.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,Sr.createElement)(ig,{as:"legend"},Hn("Currently selected link settings")),o)};const uee=e=>{let t=!1;const n=new Promise(((n,r)=>{e.then((e=>t?r({isCanceled:!0}):n(e)),(e=>r(t?{isCanceled:!0}:e)))}));return{promise:n,cancel(){t=!0}}};const dee=()=>{},fee="core/block-editor",pee="linkControlSettingsDrawer";function mee({searchInputPlaceholder:e,value:t,settings:n=F7,onChange:r=dee,onRemove:o,onCancel:i,noDirectEntry:a=!1,showSuggestions:s=!0,showInitialSuggestions:l,forceIsEditingLink:c,createSuggestion:u,withCreateSuggestion:d,inputValue:f="",suggestionsQuery:p={},noURLSuggestion:m=!1,createSuggestionButtonText:h,hasRichPreviews:g=!1,hasTextControl:v=!1,renderControlBottom:b=null}){void 0===d&&u&&(d=!0);const[y,k]=(0,Sr.useState)(!1),{advancedSettingsPreference:w}=BC((e=>{var t;return{advancedSettingsPreference:null!==(t=e(o7).get(fee,pee))&&void 0!==t&&t}}),[]),{set:_}=Sq(o7),E=w||y,x=(0,Sr.useRef)(!0),S=(0,Sr.useRef)(),C=(0,Sr.useRef)(),I=(0,Sr.useRef)(!1),T=n.map((({id:e})=>e)),[P,N,O,A,M]=function(e){const[t,n]=(0,Sr.useState)(e||{});return(0,Sr.useEffect)((()=>{n((t=>e&&e!==t?e:t))}),[e]),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>r=>{const o=Object.keys(r).reduce(((t,n)=>(e.includes(n)&&(t[n]=r[n]),t)),{});n({...t,...o})}]}(t),R=t&&!la(P,t),[B,L]=(0,Sr.useState)(void 0!==c?c:!t||!t.url),{createPage:D,isCreatingPage:z,errorMessage:F}=function(e){const t=(0,Sr.useRef)(),[n,r]=(0,Sr.useState)(!1),[o,i]=(0,Sr.useState)(null);return(0,Sr.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){r(!0),i(null);try{return t.current=uee(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||Hn("An unknown error occurred during creation. Please try again.")),e}finally{r(!1)}},isCreatingPage:n,errorMessage:o}}(u);(0,Sr.useEffect)((()=>{void 0!==c&&L(c)}),[c]),(0,Sr.useEffect)((()=>{if(x.current)return void(x.current=!1);(jx.focusable.find(S.current)[0]||S.current).focus(),I.current=!1}),[B,z]);const j=t?.url?.trim()?.length>0,V=()=>{I.current=!!S.current?.contains(S.current.ownerDocument.activeElement),L(!1)},H=()=>{R&&r({...t,...P,url:$}),V()},$=f||P?.url||"",U=!$?.trim()?.length,W=o&&t&&!B&&!z,K=B&&j,G=j&&v,q=(B||!t)&&!z,Y=!R||U,X=!!n?.length&&B&&j;return(0,Sr.createElement)("div",{tabIndex:-1,ref:S,className:"block-editor-link-control"},z&&(0,Sr.createElement)("div",{className:"block-editor-link-control__loading"},(0,Sr.createElement)(s8,null)," ",Hn("Creating"),"…"),q&&(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)("div",{className:Vl()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":G,"has-actions":K})},G&&(0,Sr.createElement)(Rq,{__nextHasNoMarginBottom:!0,ref:C,className:"block-editor-link-control__field block-editor-link-control__text-content",label:Hn("Text"),value:P?.title,onChange:A,onKeyDown:e=>{const{keyCode:t}=e;t!==dx||U||(e.preventDefault(),H())},size:"__unstable-large"}),(0,Sr.createElement)(Q7,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:$,withCreateSuggestion:d,onCreateSuggestion:D,onChange:O,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(T.includes(n)||(t[n]=e[n]),t)),{});r({...P,...t,title:P?.title||e?.title}),V()},showInitialSuggestions:l,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:p,withURLSuggestion:!m,createSuggestionButtonText:h,hideLabelFromVision:!G}),!K&&(0,Sr.createElement)("div",{className:"block-editor-link-control__search-enter"},(0,Sr.createElement)(lg,{onClick:Y?dee:H,label:Hn("Submit"),icon:i7,className:"block-editor-link-control__search-submit","aria-disabled":Y}))),F&&(0,Sr.createElement)(Z9,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),t&&!B&&!z&&(0,Sr.createElement)(aee,{key:t?.url,value:t,onEditClick:()=>L(!0),hasRichPreviews:g,hasUnlinkControl:W,additionalControls:()=>{if(n?.find((e=>"opensInNewTab"===e.id)))return(0,Sr.createElement)(cee,{value:P,settings:n?.filter((({id:e})=>"opensInNewTab"===e)),onChange:r})},onRemove:()=>{o(),L(!0)}}),X&&(0,Sr.createElement)("div",{className:"block-editor-link-control__tools"},!U&&(0,Sr.createElement)(s7,{settingsOpen:E,setSettingsOpen:e=>{_&&_(fee,pee,e),k(e)}},(0,Sr.createElement)(cee,{value:P,settings:n,onChange:M(T)}))),K&&(0,Sr.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,Sr.createElement)(lg,{variant:"primary",onClick:Y?dee:H,className:"block-editor-link-control__search-submit","aria-disabled":Y},Hn("Save")),(0,Sr.createElement)(lg,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),N(t),j?V():o?.(),i?.()}},Hn("Cancel"))),b&&b())}mee.ViewerFill=ree,mee.DEFAULT_LINK_SETTINGS=F7;const hee=mee,gee=()=>{};let vee=0;const bee=Ie([YY((e=>{const{createNotice:t,removeNotice:n}=e(A2);return{createNotice:t,removeNotice:n}})),UY("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:r,accept:o,onError:i,onSelect:a,onSelectURL:s,onToggleFeaturedImage:l,useFeaturedImage:c,onFilesUpload:u=gee,name:d=Hn("Replace"),createNotice:f,removeNotice:p,children:m,multiple:h=!1,addToGallery:g,handleUpload:v=!0,popoverProps:b})=>{const y=BC((e=>e(qO).getSettings().mediaUpload),[]),k=!!y,w=(0,Sr.useRef)(),_="block-editor/media-replace-flow/error-notice/"+ ++vee,E=e=>{const t=h2(e);i?i(t):setTimeout((()=>{f("error",t,{speak:!0,id:_,isDismissible:!0})}),1e3)},x=(e,t)=>{c&&l&&l(),t(),a(e),NN(Hn("The media file has been replaced")),p(_)},S=e=>{e.keyCode===gx&&(e.preventDefault(),e.target.click())},C=h&&!(!r||0===r.length)&&r.every((e=>"image"===e||e.startsWith("image/")));return(0,Sr.createElement)(aC,{popoverProps:b,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,Sr.createElement)(Dg,{ref:w,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:S},d),renderContent:({onClose:i})=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(pC,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,Sr.createElement)(_8,null,(0,Sr.createElement)(E8,{gallery:C,addToGallery:g,multiple:h,value:h?n:t,onSelect:e=>x(e,i),allowedTypes:r,render:({open:e})=>(0,Sr.createElement)(hH,{icon:G9,onClick:e},Hn("Open Media Library"))}),(0,Sr.createElement)(K9,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!v)return t(),a(n);u(n),y({allowedTypes:r,filesList:n,onFileChange:([e])=>{x(e,t)},onError:E})})(e,i)},accept:o,multiple:!!h,render:({openFileDialog:e})=>(0,Sr.createElement)(hH,{icon:z9,onClick:()=>{e()}},Hn("Upload"))})),l&&(0,Sr.createElement)(hH,{icon:q9,onClick:l,isPressed:c},Hn("Use featured image")),m),s&&(0,Sr.createElement)("form",{className:Vl()("block-editor-media-flow__url-input",{"has-siblings":k||l})},(0,Sr.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Hn("Current media URL:")),(0,Sr.createElement)(Zp,{text:e},(0,Sr.createElement)("div",null,(0,Sr.createElement)(hee,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{s(e),w.current.focus()}})))))})})),yee="background",kee="image";function wee({attributes:e={},setAttributes:t}){const{style:n={}}=e;t({style:DU({...n,background:{...n?.background,backgroundImage:void 0}})})}function _ee({label:e,filename:t,url:n}){const r=e||function(e){let t;try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch(e){}if(t)return t}(n);return(0,Sr.createElement)(M4,{as:"span"},(0,Sr.createElement)(U$,{justify:"flex-start",as:"span"},(0,Sr.createElement)("span",{className:Vl()("block-editor-hooks__background__inspector-image-indicator-wrapper",{"has-image":n}),"aria-hidden":!0},n&&(0,Sr.createElement)("span",{className:"block-editor-hooks__background__inspector-image-indicator",style:{backgroundImage:`url(${n})`}})),(0,Sr.createElement)(gR,{as:"span"},(0,Sr.createElement)(h5,{numberOfLines:1,className:"block-editor-hooks__background__inspector-media-replace-title"},r),(0,Sr.createElement)(ig,{as:"span"},t?Nn(Hn("Selected image: %s"),t):Hn("No image selected")))))}function Eee(e){const{attributes:t,clientId:n,setAttributes:r}=e,{id:o,title:i,url:a}=t.style?.background?.backgroundImage||{},{mediaUpload:s}=BC((e=>({mediaUpload:e(qO).getSettings().mediaUpload}))),{createErrorNotice:l}=Sq(A2),c=e=>{l(e,{type:"snackbar"})},u=e=>{if(!e||!e.url){const e={...t.style,background:{...t.style?.background,backgroundImage:void 0}},n={style:DU(e)};return void r(n)}if(_l(e.url))return;if(e.media_type&&e.media_type!==kee||!e.media_type&&e.type&&e.type!==kee)return void c(Hn("Only images can be used as a background image."));const n={...t.style,background:{...t.style?.background,backgroundImage:{url:e.url,id:e.id,source:"file",title:e.title||void 0}}},o={style:DU(n)};r(o)},d=(0,Sr.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]);return(0,Sr.createElement)(D9,{className:"single-column",hasValue:()=>function(e){return!!e.attributes.style?.background?.backgroundImage?.id||!!e.attributes.style?.background?.backgroundImage?.url}(e),label:Hn("Background image"),onDeselect:()=>wee(e),isShownByDefault:!0,resetAllFilter:d,panelId:n},(0,Sr.createElement)("div",{className:"block-editor-hooks__background__inspector-media-replace-container"},(0,Sr.createElement)(bee,{mediaId:o,mediaURL:a,allowedTypes:[kee],accept:"image/*",onSelect:u,name:(0,Sr.createElement)(_ee,{label:Hn("Background image"),filename:i,url:a}),variant:"secondary"},(0,Sr.createElement)(hH,{onClick:()=>wee(e)},Hn("Reset "))),(0,Sr.createElement)(W9,{onFilesDrop:e=>{s({allowedTypes:["image"],filesList:e,onFileChange([e]){_l(e?.url)||u(e)},onError:c})},label:Hn("Drop to upload")})))}function xee(e){const t=RU("background.backgroundImage")&&function(e,t="any"){if("web"!==eI.OS)return!1;const n=zr(e,yee);return!0===n||("any"===t?!!n?.backgroundImage:!!n?.[t])}(e.name,"backgroundImage");return t?(0,Sr.createElement)(BY,{group:"background"},t&&(0,Sr.createElement)(Eee,{...e})):null}const See=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?$/;const Cee=["top","right","bottom","left"],Iee=["color","style","width"],Tee=e=>!e||!Iee.some((t=>void 0!==e[t])),Pee=e=>{if(!e)return!1;if(Nee(e)){return!Cee.every((t=>Tee(e[t])))}return!Tee(e)},Nee=(e={})=>Object.keys(e).some((e=>-1!==Cee.indexOf(e))),Oee=e=>{if(!Nee(e))return!1;const t=Cee.map((t=>Aee(e?.[t])));return!t.every((e=>e===t[0]))},Aee=(e,t)=>{if(Tee(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(" ")},Mee=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(See);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));kr([wr,xr]);const Ree=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}};function Bee(e,t){if(e&&t)return`has-${CU(t)}-${e}`}const Lee=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));const Dee=SM("",""),zee={name:"bjn8wh",styles:"position:relative"},Fee=e=>{const{color:t=DM.gray[200],style:n="solid",width:r=PR.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==PR.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},jee={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Vee(e){const{className:t,size:n="default",...r}=Vh(e,"BorderBoxControlLinkedButton"),o=jh();return{...r,className:(0,Sr.useMemo)((()=>o((e=>SM("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",UM({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Hee=Hh(((e,t)=>{const{className:n,isLinked:r,...o}=Vee(e),i=Hn(r?"Unlink sides":"Link sides");return(0,Sr.createElement)(Zp,{text:i},(0,Sr.createElement)(og,{className:n},(0,Sr.createElement)(lg,{...o,isSmall:!0,icon:r?Lee:tee,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function $ee(e){const{className:t,value:n,size:r="default",...o}=Vh(e,"BorderBoxControlVisualizer"),i=jh(),a=(0,Sr.useMemo)((()=>i(((e,t)=>SM("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Fee(e?.top),";border-bottom:",Fee(e?.bottom),";",UM({borderLeft:Fee(e?.left)})()," ",UM({borderRight:Fee(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:a,value:n}}const Uee=Hh(((e,t)=>{const{value:n,...r}=$ee(e);return(0,Sr.createElement)(og,{...r,ref:t})}),"BorderBoxControlVisualizer"),Wee=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),Kee=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{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 Gee={name:"f3vz0n",styles:"font-weight:500"},qee=SM("box-shadow:inset ",PR.controlBoxShadowFocus,";",""),Yee=SM("border:0;padding:0;margin:0;",bB,";",""),Xee=SM(LK,"{flex:0 0 auto;}",""),Zee=(e,t)=>{const{style:n}=e||{};return SM("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?DM.gray[300]:void 0;return SM("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",KM(4),";width:",KM(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},Qee=SM("width:",228,"px;>div:first-of-type>",_B,"{margin-bottom:0;",Gee,";}&& ",_B,"+button:not( .has-text ){min-width:24px;padding:0;}",""),Jee=SM("",""),ete=SM("",""),tte=SM("justify-content:center;width:100%;&&{border-top:",PR.borderWidth," solid ",DM.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),nte=SM(_B,"{",Gee,";}",""),rte={name:"ed6beh",styles:"&&&&&{min-width:32px;width:32px;height:32px;padding:4px;}"};const ote=[{label:Hn("Solid"),icon:hV,value:"solid"},{label:Hn("Dashed"),icon:Wee,value:"dashed"},{label:Hn("Dotted"),icon:Kee,value:"dotted"}],ite=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,Sr.createElement)(ig,{as:"label"},t):(0,Sr.createElement)(_B,null,t):null},ate=Hh(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:a,...s}=function(e){const{className:t,...n}=Vh(e,"BorderControlStylePicker"),r=jh();return{...n,className:(0,Sr.useMemo)((()=>r(nte,t)),[t,r]),buttonClassName:(0,Sr.useMemo)((()=>r(rte)),[r])}}(e);return(0,Sr.createElement)(og,{...s,ref:t},(0,Sr.createElement)(ite,{label:o,hideLabelFromVision:r}),(0,Sr.createElement)(mR,{justify:"flex-start",gap:1},ote.map((e=>(0,Sr.createElement)(lg,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===a,onClick:()=>i(e.value===a?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker"),ste=ate;const lte=(0,Sr.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,Sr.createElement)("span",{className:Vl()("component-color-indicator",n),style:{background:r},ref:t,...o})})),cte=()=>{};const ute=(0,Sr.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:a,label:s,multiple:l=!1,onBlur:c=cte,onChange:u,onFocus:d=cte,options:f=[],size:p="default",value:m,labelPosition:h="top",children:g,prefix:v,suffix:b,__next40pxDefaultSize:y=!1,__nextHasNoMarginBottom:k=!1,...w}=uB(e,"wp.components.SelectControl","6.4"),[_,E]=(0,Sr.useState)(!1),x=function(e){const t=Wl(ute);return e||`inspector-select-control-${t}`}(a),S=o?`${x}__help`:void 0;if(!f?.length&&!g)return null;const C=Vl()("components-select-control",n);return(0,Sr.createElement)(BH,{help:o,id:x,__nextHasNoMarginBottom:k},(0,Sr.createElement)(pB,{className:C,disabled:r,hideLabelFromVision:i,id:x,isFocused:_,label:s,size:p,suffix:b||!l&&(0,Sr.createElement)(tR,null),prefix:v,labelPosition:h,__next40pxDefaultSize:y},(0,Sr.createElement)(ZM,{...w,__next40pxDefaultSize:y,"aria-describedby":S,className:"components-select-control__input",disabled:r,id:x,multiple:l,onBlur:e=>{c(e),E(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{d(e),E(!0)},ref:t,selectSize:p,value:m},g||f.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,Sr.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))})),dte=ute,fte=ng(BK,{target:"ez9hsf47"})(QR,"{width:",KM(24),";}"),pte=ng(dte,{target:"ez9hsf46"})("margin-left:",KM(-2),";width:5em;select:not( :focus )~",oB,oB,oB,"{border-color:transparent;}"),mte=ng(sq,{target:"ez9hsf45"})("flex:1;margin-right:",KM(2),";"),hte=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${KM(2)} );\n\tmargin-left: ${KM(1)};\n}`,gte=ng("div",{target:"ez9hsf44"})("padding-top:",KM(2),";padding-right:0;padding-left:0;padding-bottom:0;"),vte=ng(U$,{target:"ez9hsf43"})("padding-left:",KM(4),";padding-right:",KM(4),";"),bte=ng(mR,{target:"ez9hsf42"})("padding-top:",KM(4),";padding-left:",KM(4),";padding-right:",KM(3),";padding-bottom:",KM(5),";"),yte=ng("div",{target:"ez9hsf41"})(bB,";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:",KM(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",KM(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 ",PR.borderWidthFocus," #fff;}",hte,";"),kte=ng(lg,{target:"ez9hsf40"})("&&&&&{min-width:",KM(6),";padding:0;>svg{margin-right:0;}}");var wte=o(2152),_te=o.n(wte);function Ete(e){const t=(0,Sr.useRef)(e);return t.current=e,t}const xte=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{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"})),Ste=e=>{const{color:t,colorType:n}=e,[r,o]=(0,Sr.useState)(null),i=(0,Sr.useRef)(),a=function(e,t){const n=Ete(e),r=Ete(t);return Vx((e=>{const t=new(_te())(e,{text:()=>"function"==typeof n.current?n.current():n.current||""});return t.on("success",(({clearSelection:t})=>{t(),e.focus(),r.current&&r.current()})),()=>{t.destroy()}}),[])}((()=>{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,Sr.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,Sr.createElement)(Zp,{delay:0,hideOnClick:!1,text:r===t.toHex()?Hn("Copied!"):Hn("Copy")},(0,Sr.createElement)(kte,{isSmall:!0,ref:a,icon:xte,showTooltip:!1}))},Cte=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,Sr.createElement)(U$,{spacing:4},(0,Sr.createElement)(fte,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,Sr.createElement)(YM,{as:KR,paddingLeft:KM(4),color:DM.theme.accent,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,Sr.createElement)(mte,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),Ite=({color:e,onChange:t,enableAlpha:n})=>{const{r,g:o,b:i,a}=e.toRgb();return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Cte,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(br({r:e,g:o,b:i,a}))}),(0,Sr.createElement)(Cte,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(br({r,g:e,b:i,a}))}),(0,Sr.createElement)(Cte,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(br({r,g:o,b:e,a}))}),n&&(0,Sr.createElement)(Cte,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a),onChange:e=>t(br({r,g:o,b:i,a:e/100}))}))},Tte=({color:e,onChange:t,enableAlpha:n})=>{const{h:r,s:o,l:i,a}=e.toHsl();return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Cte,{min:0,max:359,label:"Hue",abbreviation:"H",value:r,onChange:e=>{t(br({h:e,s:o,l:i,a}))}}),(0,Sr.createElement)(Cte,{min:0,max:100,label:"Saturation",abbreviation:"S",value:o,onChange:e=>{t(br({h:r,s:e,l:i,a}))}}),(0,Sr.createElement)(Cte,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{t(br({h:r,s:o,l:e,a}))}}),n&&(0,Sr.createElement)(Cte,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a),onChange:e=>{t(br({h:r,s:o,l:i,a:e/100}))}}))},Pte=({color:e,onChange:t,enableAlpha:n})=>(0,Sr.createElement)(EK,{prefix:(0,Sr.createElement)(YM,{as:KR,marginLeft:KM(4),color:DM.theme.accent,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(br(n))},maxLength:n?9:7,label:Hn("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),Nte=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,Sr.createElement)(Tte,{...o});case"rgb":return(0,Sr.createElement)(Ite,{...o});default:return(0,Sr.createElement)(Pte,{...o})}};function Ote(){return(Ote=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ate(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function Mte(e){var t=(0,Sr.useRef)(e),n=(0,Sr.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var Rte=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Bte=function(e){return"touches"in e},Lte=function(e){return e&&e.ownerDocument.defaultView||self},Dte=function(e,t,n){var r=e.getBoundingClientRect(),o=Bte(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:Rte((o.pageX-(r.left+Lte(e).pageXOffset))/r.width),top:Rte((o.pageY-(r.top+Lte(e).pageYOffset))/r.height)}},zte=function(e){!Bte(e)&&e.preventDefault()},Fte=Sr.memo((function(e){var t=e.onMove,n=e.onKey,r=Ate(e,["onMove","onKey"]),o=(0,Sr.useRef)(null),i=Mte(t),a=Mte(n),s=(0,Sr.useRef)(null),l=(0,Sr.useRef)(!1),c=(0,Sr.useMemo)((function(){var e=function(e){zte(e),(Bte(e)?e.touches.length>0:e.buttons>0)&&o.current?i(Dte(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=Lte(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&&(zte(t),!function(e,t){return t&&!Bte(e)}(t,l.current)&&r)){if(Bte(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(Dte(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,Sr.useEffect)((function(){return f}),[f]),Sr.createElement("div",Ote({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),jte=function(e){return e.filter(Boolean).join(" ")},Vte=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=jte(["react-colorful__pointer",e.className]);return Sr.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},Sr.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Hte=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},$te=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Hte(e.h),s:Hte(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Hte(o/2),a:Hte(r,2)}}),Ute=function(e){var t=$te(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Wte=function(e){var t=$te(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Kte=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:Hte(255*[r,s,a,a,l,r][c]),g:Hte(255*[l,r,r,s,a,a][c]),b:Hte(255*[a,a,l,r,r,s][c]),a:Hte(o,2)}},Gte=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Yte({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}},qte=Gte,Yte=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:Hte(60*(s<0?s+6:s)),s:Hte(i?a/i*100:0),v:Hte(i/255*100),a:o}},Xte=Sr.memo((function(e){var t=e.hue,n=e.onChange,r=jte(["react-colorful__hue",e.className]);return Sr.createElement("div",{className:r},Sr.createElement(Fte,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Rte(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Hte(t),"aria-valuemax":"360","aria-valuemin":"0"},Sr.createElement(Vte,{className:"react-colorful__hue-pointer",left:t/360,color:Ute({h:t,s:100,v:100,a:1})})))})),Zte=Sr.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Ute({h:t.h,s:100,v:100,a:1})};return Sr.createElement("div",{className:"react-colorful__saturation",style:r},Sr.createElement(Fte,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Rte(t.s+100*e.left,0,100),v:Rte(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Hte(t.s)+"%, Brightness "+Hte(t.v)+"%"},Sr.createElement(Vte,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ute(t)})))})),Qte=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Jte=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function ene(e,t,n){var r=Mte(n),o=(0,Sr.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,Sr.useRef)({color:t,hsva:i});(0,Sr.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,Sr.useEffect)((function(){var t;Qte(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,Sr.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var tne,nne="undefined"!=typeof window?Sr.useLayoutEffect:Sr.useEffect,rne=new Map,one=function(e){nne((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!rne.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',rne.set(t,n);var r=tne||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},ine=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=Ate(e,["className","colorModel","color","onChange"]),s=(0,Sr.useRef)(null);one(s);var l=ene(n,o,i),c=l[0],u=l[1],d=jte(["react-colorful",t]);return Sr.createElement("div",Ote({},a,{ref:s,className:d}),Sr.createElement(Zte,{hsva:c,onChange:u}),Sr.createElement(Xte,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},ane=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Wte(Object.assign({},n,{a:0}))+", "+Wte(Object.assign({},n,{a:1}))+")"},i=jte(["react-colorful__alpha",t]),a=Hte(100*n.a);return Sr.createElement("div",{className:i},Sr.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),Sr.createElement(Fte,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:Rte(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},Sr.createElement(Vte,{className:"react-colorful__alpha-pointer",left:n.a,color:Wte(n)})))},sne=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=Ate(e,["className","colorModel","color","onChange"]),s=(0,Sr.useRef)(null);one(s);var l=ene(n,o,i),c=l[0],u=l[1],d=jte(["react-colorful",t]);return Sr.createElement("div",Ote({},a,{ref:s,className:d}),Sr.createElement(Zte,{hsva:c,onChange:u}),Sr.createElement(Xte,{hue:c.h,onChange:u}),Sr.createElement(ane,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},lne={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Gte,fromHsva:function(e){var t=Kte(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Jte},cne=function(e){return Sr.createElement(sne,Ote({},e,{colorModel:lne}))},une={defaultColor:"rgb(0, 0, 0)",toHsva:qte,fromHsva:function(e){var t=Kte(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Jte},dne=function(e){return Sr.createElement(ine,Ote({},e,{colorModel:une}))};const fne=({color:e,enableAlpha:t,onChange:n})=>{const r=t?cne:dne,o=(0,Sr.useMemo)((()=>e.toRgbString()),[e]);return(0,Sr.createElement)(r,{color:o,onChange:e=>{n(br(e))}})};kr([wr]);const pne=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],mne=Hh(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:a,...s}=Vh(e,"ColorPicker"),[l,c]=Hg({onChange:o,value:r,defaultValue:i}),u=(0,Sr.useMemo)((()=>br(l||"")),[l]),d=$Y(c),f=(0,Sr.useCallback)((e=>{d(e.toHex())}),[d]),[p,m]=(0,Sr.useState)(a||"hex");return(0,Sr.createElement)(yte,{ref:t,...s},(0,Sr.createElement)(fne,{onChange:f,color:u,enableAlpha:n}),(0,Sr.createElement)(gte,null,(0,Sr.createElement)(vte,{justify:"space-between"},(0,Sr.createElement)(pte,{__nextHasNoMarginBottom:!0,options:pne,value:p,onChange:e=>m(e),label:Hn("Color format"),hideLabelFromVision:!0}),(0,Sr.createElement)(Ste,{color:u,colorType:a||p})),(0,Sr.createElement)(bte,{direction:"column",gap:2},(0,Sr.createElement)(Nte,{colorType:p,color:u,onChange:f,enableAlpha:n}))))}),"ColorPicker"),hne=mne;function gne(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const vne=Cn((e=>{const t=br(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function bne(e){const{onChangeComplete:t}=e,n=(0,Sr.useCallback)((e=>{t(vne(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:gne(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const yne=e=>(0,Sr.createElement)(hne,{...bne(e)}),kne=(0,Sr.createContext)({}),wne=new Map;const _ne=(0,Sr.forwardRef)((function(e,t){const{isPressed:n,...r}=e;return(0,Sr.createElement)(lg,{...r,"aria-pressed":n,ref:t})}));const Ene=(0,Sr.forwardRef)((function(e,t){const{id:n,isSelected:r,context:o,...i}=e,{isComposite:a,...s}=o,l=s,{baseId:c,currentId:u,setCurrentId:d}=l;return(0,Sr.useEffect)((()=>{!r||u||wne.get(c)||(wne.set(c,!0),d(n))}),[c,u,n,r,d]),(0,Sr.createElement)(T3,{...i,...l,as:lg,id:n,role:"option","aria-selected":!!r,ref:t})}));function xne(e){const{actions:t,options:n,baseId:r,className:o,loop:i=!0,children:a,...s}=e,l=Wn(),c=p4({baseId:r,loop:i,rtl:l}),{setBaseId:u,setLoop:d,setRTL:f}=c;(0,Sr.useEffect)((()=>{u(r)}),[u,r]),(0,Sr.useEffect)((()=>{d(i)}),[d,i]),(0,Sr.useEffect)((()=>{f(l)}),[f,l]);const p={isComposite:!0,...c};return(0,Sr.createElement)("div",{className:o},(0,Sr.createElement)(kne.Provider,{value:p},(0,Sr.createElement)(W4,{...s,...c,role:"listbox"},n),a,t))}function Sne(e){const{actions:t,options:n,children:r,baseId:o,...i}=e;return(0,Sr.createElement)("div",{...i},(0,Sr.createElement)(kne.Provider,{value:{isComposite:!1,baseId:o}},n,r,t))}function Cne(e){const{asButtons:t,actions:n,options:r,children:o,className:i,...a}=e,s=Wl(Cne,"components-circular-option-picker",a.id),l=t?Sne:xne,c=n?(0,Sr.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},n):void 0,u=(0,Sr.createElement)("div",{className:"components-circular-option-picker__swatches"},r);return(0,Sr.createElement)(l,{...a,baseId:s,className:Vl()("components-circular-option-picker",i),actions:c,options:u},o)}Cne.Option=function e({className:t,isSelected:n,selectedIconProps:r={},tooltipText:o,...i}){const a=(0,Sr.useContext)(kne),{isComposite:s,baseId:l}=a,c={id:Wl(e,l||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...i},u=s?(0,Sr.createElement)(Ene,{...c,context:a,isSelected:n}):(0,Sr.createElement)(_ne,{...c,isPressed:n});return(0,Sr.createElement)("div",{className:Vl()(t,"components-circular-option-picker__option-wrapper")},o?(0,Sr.createElement)(Zp,{text:o},u):u,n&&(0,Sr.createElement)(EM,{icon:xM,...r}))},Cne.OptionGroup=function({className:e,options:t,...n}){const r="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,Sr.createElement)("div",{...n,role:r,className:Vl()("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e)},t)},Cne.ButtonAction=function({className:e,children:t,...n}){return(0,Sr.createElement)(lg,{className:Vl()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},Cne.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,Sr.createElement)(aC,{className:Vl()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,Sr.createElement)(lg,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};const Ine=Cne;const Tne=ng(lY,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),Pne=ng("div",{target:"eovvns30"})("margin-left:",KM(-2),";margin-right:",KM(-2),";&:first-of-type{margin-top:",KM(-2),";}&:last-of-type{margin-bottom:",KM(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:KM(2),medium:KM(4)};return SM("padding:",t[e]||t.small,";","")}),";");const Nne=Hh((function(e,t){const{paddingSize:n="small",...r}=Vh(e,"DropdownContentWrapper");return(0,Sr.createElement)(Pne,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");kr([wr,xr]);const One=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function Ane({className:e,clearColor:t,colors:n,onChange:r,value:o,...i}){const a=(0,Sr.useMemo)((()=>n.map((({color:e,name:n},i)=>{const a=br(e),s=o===e;return(0,Sr.createElement)(Ine.Option,{key:`${e}-${i}`,isSelected:s,selectedIconProps:s?{fill:a.contrast()>a.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||Nn(Hn("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:s?t:()=>r(e,i),"aria-label":n?Nn(Hn("Color: %s"),n):Nn(Hn("Color code: %s"),e)})}))),[n,o,r,t]);return(0,Sr.createElement)(Ine.OptionGroup,{className:e,options:a,...i})}function Mne({className:e,clearColor:t,colors:n,onChange:r,value:o,headingLevel:i}){const a=Wl(Mne,"color-palette");return 0===n.length?null:(0,Sr.createElement)(v4,{spacing:3,className:e},n.map((({name:e,colors:n},s)=>{const l=`${a}-${s}`;return(0,Sr.createElement)(v4,{spacing:2,key:s},(0,Sr.createElement)(Tne,{id:l,level:i},e),(0,Sr.createElement)(Ane,{clearColor:t,colors:n,onChange:e=>r(e,s),value:o,"aria-labelledby":l}))})))}function Rne({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,Sr.useMemo)((()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,Sr.createElement)(aC,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}kr([wr,xr]);const Bne=(0,Sr.forwardRef)((function(e,t){const{asButtons:n,loop:r,clearable:o=!0,colors:i=[],disableCustomColors:a=!1,enableAlpha:s=!1,onChange:l,value:c,__experimentalIsRenderedInSidebar:u=!1,headingLevel:d=2,"aria-label":f,"aria-labelledby":p,...m}=e,[h,g]=(0,Sr.useState)(c),v=(0,Sr.useCallback)((()=>l(void 0)),[l]),b=(0,Sr.useCallback)((e=>{g(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?br(o).toHex():e})(c,e))}),[c]),y=One(i),k=(0,Sr.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:br(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:br(n).toHex()))return t;return Hn("Custom")})(c,i,y)),[c,i,y]),w=c?.startsWith("#"),_=c?.replace(/^var\((.+)\)$/,"$1"),E=_?Nn(Hn('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),k,_):Hn("Custom color picker."),x={clearColor:v,onChange:l,value:c},S=!!o&&(0,Sr.createElement)(Ine.ButtonAction,{onClick:v},Hn("Clear"));let C;if(n)C={asButtons:!0};else{const e={asButtons:!1,loop:r};C=f?{...e,"aria-label":f}:p?{...e,"aria-labelledby":p}:{...e,"aria-label":Hn("Custom color picker.")}}return(0,Sr.createElement)(v4,{spacing:3,ref:t,...m},!a&&(0,Sr.createElement)(Rne,{isRenderedInSidebar:u,renderContent:()=>(0,Sr.createElement)(Nne,{paddingSize:"none"},(0,Sr.createElement)(yne,{color:h,onChange:e=>l(e),enableAlpha:s})),renderToggle:({isOpen:e,onToggle:t})=>(0,Sr.createElement)(v4,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,Sr.createElement)("button",{ref:b,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":E,style:{background:c}}),(0,Sr.createElement)(v4,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,Sr.createElement)(h5,{className:"components-color-palette__custom-color-name"},c?k:"No color selected"),(0,Sr.createElement)(h5,{className:Vl()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":w})},_)))}),(0,Sr.createElement)(Ine,{...C,actions:S,options:y?(0,Sr.createElement)(Mne,{...x,headingLevel:d,colors:i,value:c}):(0,Sr.createElement)(Ane,{...x,colors:i,value:c})}))})),Lne=Bne;function Dne(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:a,previousStyleSelection:s,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=Vh(e,"BorderControlDropdown"),[d]=iW(t?.width),f=0===d,p=jh(),m=(0,Sr.useMemo)((()=>p((e=>SM("background:#fff;&&>button{height:","__unstable-large"===e?"40px":"30px",";width:","__unstable-large"===e?"40px":"30px",";padding:0;display:flex;align-items:center;justify-content:center;",UM({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",PR.borderWidth," solid ",DM.ui.border,";&:focus,&:hover:not( :disabled ){",qee," border-color:",DM.ui.borderFocus,";z-index:1;position:relative;}}",""))(l),n)),[n,p,l]),h=(0,Sr.useMemo)((()=>p(ete)),[p]),g=(0,Sr.useMemo)((()=>p(Zee(t,l))),[t,p,l]),v=(0,Sr.useMemo)((()=>p(Qee)),[p]),b=(0,Sr.useMemo)((()=>p(Jee)),[p]),y=(0,Sr.useMemo)((()=>p(tte)),[p]);return{...u,border:t,className:m,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:h,indicatorWrapperClassName:g,onColorChange:e=>{a({color:e,style:"none"===t?.style?s:t?.style,width:f&&e?"1px":t?.width})},onStyleChange:e=>{const n=f&&e?"1px":t?.width;a({...t,style:e,width:n})},onReset:()=>{a({...t,color:void 0,style:void 0})},popoverContentClassName:b,popoverControlsClassName:v,resetButtonClassName:y,__experimentalIsRenderedInSidebar:c}}const zne=e=>e.replace(/^var\((.+)\)$/,"$1"),Fne=Hh(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,indicatorClassName:l,indicatorWrapperClassName:c,onReset:u,onColorChange:d,onStyleChange:f,popoverContentClassName:p,popoverControlsClassName:m,resetButtonClassName:h,showDropdownHeader:g,__unstablePopoverProps:v,...b}=Dne(e),{color:y,style:k}=r||{},w=((e,t)=>{if(e&&t){if(One(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(y,o),_=((e,t,n,r)=>{if(r){if(t){const e=zne(t.color);return n?Nn('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):Nn('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=zne(e);return n?Nn('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):Nn('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return Hn("Border color and style picker.")}return t?Nn('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,zne(t.color)):e?Nn('Border color picker. The currently selected color has a value of "%1$s".',zne(e)):Hn("Border color picker.")})(y,w,k,s),E=y||k&&"none"!==k,x=n?"bottom left":void 0;return(0,Sr.createElement)(aC,{renderToggle:({onToggle:e})=>(0,Sr.createElement)(lg,{onClick:e,variant:"tertiary","aria-label":_,tooltipPosition:x,label:Hn("Border color and style picker"),showTooltip:!0},(0,Sr.createElement)("span",{className:c},(0,Sr.createElement)(lte,{className:l,colorValue:y}))),renderContent:({onClose:e})=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Nne,{paddingSize:"medium"},(0,Sr.createElement)(v4,{className:m,spacing:6},g?(0,Sr.createElement)(U$,null,(0,Sr.createElement)(_B,null,Hn("Border color")),(0,Sr.createElement)(lg,{isSmall:!0,label:Hn("Close border color"),icon:K0,onClick:e})):void 0,(0,Sr.createElement)(Lne,{className:p,value:y,onChange:d,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:a}),s&&(0,Sr.createElement)(ste,{label:Hn("Style"),value:k,onChange:f}))),E&&(0,Sr.createElement)(Nne,{paddingSize:"none"},(0,Sr.createElement)(lg,{className:h,variant:"tertiary",onClick:()=>{u(),e()}},Hn("Reset")))),popoverProps:{...v},...b,ref:t})}),"BorderControlDropdown"),jne=Fne;function Vne(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:a=!0,shouldSanitizeBorder:s=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,...f}=Vh(e,"BorderControl"),[p,m]=iW(c?.width),h=m||"px",g=0===p,[v,b]=(0,Sr.useState)(),[y,k]=(0,Sr.useState)(),w=(0,Sr.useCallback)((e=>{if(s)return o((e=>{if(void 0!==e?.width&&""!==e.width||void 0!==e?.color)return e})(e));o(e)}),[o,s]),_=(0,Sr.useCallback)((e=>{const t=""===e?void 0:e,[n]=iW(e),r=0===n,o={...c,width:t};r&&!g&&(b(c?.color),k(c?.style),o.color=void 0,o.style="none"),!r&&g&&(void 0===o.color&&(o.color=v),"none"===o.style&&(o.style=y)),w(o)}),[c,g,v,y,w]),E=(0,Sr.useCallback)((e=>{_(`${e}${h}`)}),[_,h]),x=jh(),S=(0,Sr.useMemo)((()=>x(Yee,t)),[t,x]);let C=u;r&&(C="__unstable-large"===l?"116px":"90px");const I=(0,Sr.useMemo)((()=>{const e=!!C&&Xee,t=(e=>SM("height:","__unstable-large"===e?"40px":"30px",";",""))(l);return x(SM(LK,"{flex:1 1 40%;}&& ",FK,"{min-height:0;}",""),e,t)}),[C,x,l]),T=(0,Sr.useMemo)((()=>x(SM("flex:1 1 60%;",UM({marginRight:KM(3)})(),";",""))),[x]);return{...f,className:S,colors:n,enableAlpha:i,enableStyle:a,innerWrapperClassName:I,inputWidth:C,onBorderChange:w,onSliderChange:E,onWidthChange:_,previousStyleSelection:y,sliderClassName:T,value:c,widthUnit:h,widthValue:p,size:l,__experimentalIsRenderedInSidebar:d}}const Hne=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,Sr.createElement)(ig,{as:"legend"},t):(0,Sr.createElement)(_B,{as:"legend"},t):null},$ne=Hh(((e,t)=>{const{colors:n,disableCustomColors:r,disableUnits:o,enableAlpha:i,enableStyle:a,hideLabelFromVision:s,innerWrapperClassName:l,inputWidth:c,label:u,onBorderChange:d,onSliderChange:f,onWidthChange:p,placeholder:m,__unstablePopoverProps:h,previousStyleSelection:g,showDropdownHeader:v,size:b,sliderClassName:y,value:k,widthUnit:w,widthValue:_,withSlider:E,__experimentalIsRenderedInSidebar:x,...S}=Vne(e);return(0,Sr.createElement)(og,{as:"fieldset",...S,ref:t},(0,Sr.createElement)(Hne,{label:u,hideLabelFromVision:s}),(0,Sr.createElement)(U$,{spacing:4,className:l},(0,Sr.createElement)(WK,{prefix:(0,Sr.createElement)(jne,{border:k,colors:n,__unstablePopoverProps:h,disableCustomColors:r,enableAlpha:i,enableStyle:a,onChange:d,previousStyleSelection:g,showDropdownHeader:v,__experimentalIsRenderedInSidebar:x,size:b}),label:Hn("Border width"),hideLabelFromVision:!0,min:0,onChange:p,value:k?.width||"",placeholder:m,disableUnits:o,__unstableInputWidth:c,size:b}),E&&(0,Sr.createElement)(sq,{__nextHasNoMarginBottom:!0,label:Hn("Border width"),hideLabelFromVision:!0,className:y,initialPosition:0,max:100,min:0,onChange:f,step:["px","%"].includes(w)?1:.1,value:_||void 0,withInputField:!1})))}),"BorderControl"),Une=$ne;function Wne(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:a=!1,...s}=Vh(e,"BorderBoxControlSplitControls"),l=jh(),c=(0,Sr.useMemo)((()=>l((e=>SM("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...s,centeredClassName:(0,Sr.useMemo)((()=>l(jee,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,Sr.useMemo)((()=>l(SM(UM({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:a}}const Kne=Hh(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:a,onChange:s,popoverPlacement:l,popoverOffset:c,rightAlignedClassName:u,size:d="default",value:f,__experimentalIsRenderedInSidebar:p,...m}=Wne(e),[h,g]=(0,Sr.useState)(null),v=(0,Sr.useMemo)((()=>l?{placement:l,offset:c,anchor:h,shift:!0}:void 0),[l,c,h]),b={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:a,isCompact:!0,__experimentalIsRenderedInSidebar:p,size:d},y=Vg([g,t]);return(0,Sr.createElement)(IY,{...m,ref:y,gap:4},(0,Sr.createElement)(Uee,{value:f,size:d}),(0,Sr.createElement)(Une,{className:n,hideLabelFromVision:!0,label:Hn("Top border"),onChange:e=>s(e,"top"),__unstablePopoverProps:v,value:f?.top,...b}),(0,Sr.createElement)(Une,{hideLabelFromVision:!0,label:Hn("Left border"),onChange:e=>s(e,"left"),__unstablePopoverProps:v,value:f?.left,...b}),(0,Sr.createElement)(Une,{className:u,hideLabelFromVision:!0,label:Hn("Right border"),onChange:e=>s(e,"right"),__unstablePopoverProps:v,value:f?.right,...b}),(0,Sr.createElement)(Une,{className:n,hideLabelFromVision:!0,label:Hn("Bottom border"),onChange:e=>s(e,"bottom"),__unstablePopoverProps:v,value:f?.bottom,...b}))}),"BorderBoxControlSplitControls"),Gne=Kne;function qne(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:a="default",value:s,__experimentalIsRenderedInSidebar:l=!1,...c}=Vh(e,"BorderBoxControl"),u=Oee(s),d=Nee(s),f=d?(e=>{if(!e)return;const t=[],n=[],r=[];Cee.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:Mee(r)}})(s):s,p=d?s:(e=>{if(e&&!Tee(e))return{top:e,right:e,bottom:e,left:e}})(s),m=!isNaN(parseFloat(`${f?.width}`)),[h,g]=(0,Sr.useState)(!u),v=jh(),b=(0,Sr.useMemo)((()=>v(Dee,t)),[v,t]),y=(0,Sr.useMemo)((()=>v(SM("flex:1;",UM({marginRight:"24px"})(),";",""))),[v]),k=(0,Sr.useMemo)((()=>v(zee)),[v]);return{...c,className:b,colors:n,disableUnits:u&&!m,enableAlpha:o,enableStyle:i,hasMixedBorders:u,isLinked:h,linkedControlClassName:y,onLinkedChange:e=>{if(!e)return r(void 0);if(!u||(e=>!!e&&Iee.every((t=>void 0!==e[t])))(e))return r(Tee(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})(f,e),n={top:{...s?.top,...t},right:{...s?.right,...t},bottom:{...s?.bottom,...t},left:{...s?.left,...t}};if(Oee(n))return r(n);const o=Tee(n.top)?void 0:n.top;r(o)},onSplitChange:(e,t)=>{const n={...p,[t]:e};Oee(n)?r(n):r(e)},toggleLinked:()=>g(!h),linkedValue:f,size:a,splitValue:p,wrapperClassName:k,__experimentalIsRenderedInSidebar:l}}const Yne=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,Sr.createElement)(ig,{as:"label"},t):(0,Sr.createElement)(_B,null,t):null},Xne=Hh(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:a,enableStyle:s,hasMixedBorders:l,hideLabelFromVision:c,isLinked:u,label:d,linkedControlClassName:f,linkedValue:p,onLinkedChange:m,onSplitChange:h,popoverPlacement:g,popoverOffset:v,size:b,splitValue:y,toggleLinked:k,wrapperClassName:w,__experimentalIsRenderedInSidebar:_,...E}=qne(e),[x,S]=(0,Sr.useState)(null),C=(0,Sr.useMemo)((()=>g?{placement:g,offset:v,anchor:x,shift:!0}:void 0),[g,v,x]),I=Vg([S,t]);return(0,Sr.createElement)(og,{className:n,...E,ref:I},(0,Sr.createElement)(Yne,{label:d,hideLabelFromVision:c}),(0,Sr.createElement)(og,{className:w},u?(0,Sr.createElement)(Une,{className:f,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:a,enableStyle:s,onChange:m,placeholder:l?Hn("Mixed"):void 0,__unstablePopoverProps:C,shouldSanitizeBorder:!1,value:p,withSlider:!0,width:"__unstable-large"===b?"116px":"110px",__experimentalIsRenderedInSidebar:_,size:b}):(0,Sr.createElement)(Gne,{colors:r,disableCustomColors:o,enableAlpha:a,enableStyle:s,onChange:h,popoverPlacement:g,popoverOffset:v,value:y,__experimentalIsRenderedInSidebar:_,size:b}),(0,Sr.createElement)(Hee,{onClick:k,isLinked:u,size:b})))}),"BorderBoxControl"),Zne=Xne;function Qne(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function Jne(e={}){const{flat:t,...n}=e;return t||Qne(Object.values(n).filter(Boolean))||"px"}function ere(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>iW(e))),n=t.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),r=t.map((e=>e[1])),o=n.every((e=>e===n[0]))?n[0]:"",i=Qne(r);return 0===o||o?`${o}${i}`:void 0}function tre(e={}){const t=ere(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function nre(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function rre({onChange:e,selectedUnits:t,setSelectedUnits:n,values:r,...o}){let i=ere(r);void 0===i&&(i=Jne(t));const a=nre(r)&&tre(r),s=a?Hn("Mixed"):null;return(0,Sr.createElement)(WK,{...o,"aria-label":Hn("Border radius"),disableUnits:a,isOnly:!0,value:i,onChange:t=>{const n=!isNaN(parseFloat(t));e(n?t:void 0)},onUnitChange:e=>{n({topLeft:e,topRight:e,bottomLeft:e,bottomRight:e})},placeholder:s,size:"__unstable-large"})}const ore={topLeft:Hn("Top left"),topRight:Hn("Top right"),bottomLeft:Hn("Bottom left"),bottomRight:Hn("Bottom right")};function ire({onChange:e,selectedUnits:t,setSelectedUnits:n,values:r,...o}){const i=t=>n=>{if(!e)return;const r=!isNaN(parseFloat(n))?n:void 0;e({...a,[t]:r})},a="string"!=typeof r?r:{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r};return(0,Sr.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(ore).map((([e,r])=>{const[s,l]=iW(a[e]),c=a[e]?l:t[e]||t.flat;return(0,Sr.createElement)(Zp,{text:r,placement:"top",key:e},(0,Sr.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},(0,Sr.createElement)(WK,{...o,"aria-label":r,value:[s,c].join(""),onChange:i(e),onUnitChange:(u=e,e=>{const r={...t};r[u]=e,n(r)}),size:"__unstable-large"})));var u})))}function are({isLinked:e,...t}){const n=Hn(e?"Unlink radii":"Link radii");return(0,Sr.createElement)(Zp,{text:n},(0,Sr.createElement)(lg,{...t,className:"component-border-radius-control__linked-button",isSmall:!0,icon:e?Lee:tee,iconSize:24,"aria-label":n}))}const sre={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},lre=0,cre={px:100,em:20,rem:20};function ure({onChange:e,values:t}){const[n,r]=(0,Sr.useState)(!nre(t)||!tre(t)),[o,i]=(0,Sr.useState)({flat:"string"==typeof t?iW(t)[1]:void 0,topLeft:iW(t?.topLeft)[1],topRight:iW(t?.topRight)[1],bottomLeft:iW(t?.bottomLeft)[1],bottomRight:iW(t?.bottomRight)[1]}),a=aW({availableUnits:RU("spacing.units")||["px","em","rem"]}),s=Jne(o),l=a&&a.find((e=>e.value===s)),c=l?.step||1,[u]=iW(ere(t));return(0,Sr.createElement)("fieldset",{className:"components-border-radius-control"},(0,Sr.createElement)(BH.VisualLabel,{as:"legend"},Hn("Radius")),(0,Sr.createElement)("div",{className:"components-border-radius-control__wrapper"},n?(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(rre,{className:"components-border-radius-control__unit-control",values:t,min:lre,onChange:e,selectedUnits:o,setSelectedUnits:i,units:a}),(0,Sr.createElement)(sq,{label:Hn("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=u?u:"",min:lre,max:cre[s],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${s}`:void 0)},step:c,__nextHasNoMarginBottom:!0})):(0,Sr.createElement)(ire,{min:lre,onChange:e,selectedUnits:o,setSelectedUnits:i,values:t||sre,units:a}),(0,Sr.createElement)(are,{onClick:()=>r(!n),isLinked:n})))}const dre="1600px",fre="320px",pre=1,mre=.25,hre=.75,gre="14px";function vre(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:r,acceptableUnits:o}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=o?.join("|"),a=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),s=e.match(a);if(!s||s.length<3)return null;let[,l,c]=s,u=parseFloat(l);return"px"!==n||"em"!==c&&"rem"!==c||(u*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=r,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),{value:bre(u,3),unit:c}}function bre(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function yre(e,t){const{size:n}=e;if(!kre(t))return n;if(!n||"0"===n||!1===e?.fluid)return n;const r="object"==typeof t?.fluid?t?.fluid:{},o=function({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:r=fre,maximumViewportWidth:o=dre,scaleFactor:i=pre,minimumFontSizeLimit:a}){if(a=vre(a)?a:gre,n){const r=vre(n);if(!r?.unit)return null;const o=vre(a,{coerceTo:r.unit});if(o?.value&&!e&&!t&&r?.value<=o?.value)return null;if(t||(t=`${r.value}${r.unit}`),!e){const t="px"===r.unit?r.value:16*r.value,n=Math.min(Math.max(1-.075*Math.log2(t),mre),hre),i=bre(r.value*n,3);e=o?.value&&i<o?.value?`${o.value}${o.unit}`:`${i}${r.unit}`}}const s=vre(e),l=s?.unit||"rem",c=vre(t,{coerceTo:l});if(!s||!c)return null;const u=vre(e,{coerceTo:"rem"}),d=vre(o,{coerceTo:l}),f=vre(r,{coerceTo:l});if(!d||!f||!u)return null;const p=bre(f.value/100,3),m=bre(p,3)+l,h=bre(((c.value-s.value)/(d.value-f.value)*100||1)*i,3);return`clamp(${e}, ${u.value}${u.unit} + ((1vw - ${m}) * ${h}), ${t})`}({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:r?.minFontSize,maximumViewportWidth:r?.maxViewportWidth,minimumViewportWidth:r?.minViewportWidth});return o||n}function kre(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function wre(e){const t=e?.typography,n=e?.layout,r=vre(n?.wideSize)?n?.wideSize:null;return kre(t)&&r?{fluid:{maxViewportWidth:r,...t.fluid}}:{fluid:t?.fluid}}const _re=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>yre(e,wre(t)),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}];function Ere(e,t,n,r,o){const i=[PU(e,["blocks",t,...n]),PU(e,n)];for(const a of i)if(a){const i=["custom","theme","default"];for(const s of i){const i=a[s];if(i){const a=i.find((e=>e[r]===o));if(a){if("slug"===r)return a;return Ere(e,t,n,"slug",a.slug)[r]===a[r]?a:void 0}}}}}function xre(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=PU(e,t))||n?.ref)return n}}const r="var:",o="var(--wp--";let i;if(n.startsWith(r))i=n.slice(4).split("|");else{if(!n.startsWith(o)||!n.endsWith(")"))return n;i=n.slice(10,-1).split("--")}const[a,...s]=i;return"preset"===a?function(e,t,n,[r,o]){const i=_re.find((e=>e.cssVarInfix===r));if(!i)return n;const a=Ere(e.settings,t,i.path,"slug",o);if(a){const{valueKey:n}=i;return xre(e,t,a[n])}return n}(e,t,n,s):"custom"===a?function(e,t,n,r){var o;const i=null!==(o=PU(e.settings,["blocks",t,"custom",...r]))&&void 0!==o?o:PU(e.settings,["custom",...r]);return i?xre(e,t,i):n}(e,t,n,s):n}function Sre(e,t){const n=e.split(","),r=t.split(","),o=[];return n.forEach((e=>{r.forEach((t=>{o.push(`${e.trim()} ${t.trim()}`)}))})),o.join(", ")}function Cre(e){return e?.border?.color}function Ire(e){return e?.border?.radius}function Tre(e){return e?.border?.style}function Pre(e){return e?.border?.width}function Nre({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Sr.createElement)(PY,{label:Hn("Border"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const Ore={radius:!0,color:!0,width:!0};function Are({as:e=Nre,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Ore}){const s=BU(o),l=e=>{const t=s.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},c=(0,Sr.useCallback)((e=>{const t=s.flatMap((({colors:e})=>e)).find((({slug:t})=>e==="var:preset|color|"+t));return t?t.color:e}),[s]),u=(0,Sr.useMemo)((()=>{if(Nee(r?.border)){const e={...r?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:c(e[t]?.color)}})),e}return{...r?.border,color:r?.border?.color?c(r?.border?.color):void 0}}),[r?.border,c]),d=e=>n({...t,border:e}),f=Cre(o),p=Tre(o),m=Pre(o),h=Ire(o),g=(v=u?.radius,xre({settings:o},"",v));var v;const b=e=>d({...u,radius:e}),y=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},k=(0,Sr.useCallback)((e=>({...e,border:void 0})),[]),w=a?.color||a?.width;return(0,Sr.createElement)(e,{resetAllFilter:k,value:t,onChange:n,panelId:i},(m||f)&&(0,Sr.createElement)(D9,{hasValue:()=>Pee(t?.border),label:Hn("Border"),onDeselect:()=>(()=>{if(y())return d({radius:t?.border?.radius});d(void 0)})(),isShownByDefault:w,panelId:i},(0,Sr.createElement)(Zne,{colors:s,enableAlpha:!0,enableStyle:p,onChange:e=>{const t={...e};Nee(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:l(t[e]?.color)})})):t&&(t.color=l(t.color)),d({radius:u?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:u,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large"})),h&&(0,Sr.createElement)(D9,{hasValue:y,label:Hn("Radius"),onDeselect:()=>b(void 0),isShownByDefault:a.radius,panelId:i},(0,Sr.createElement)(ure,{values:g,onChange:e=>{b(e||void 0)}})))}const Mre="__experimentalBorder",Rre=(e,t,n)=>{let r;return e.some((e=>e.colors.some((e=>e[t]===n&&(r=e,!0))))),r},Bre=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Rre(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const r=Rre(e,"color",n);return r||{color:n}};function Lre(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Dre(e){if(Nee(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,r={...e};return r.border={...r.border,color:n?void 0:t},{style:DU(r),borderColor:n}}function zre(e){return Nee(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Fre({children:e,resetAllFilter:t}){const n=(0,Sr.useCallback)((e=>{const n=zre(e),r=t(n);return{...e,...Dre(r)}}),[t]);return(0,Sr.createElement)(BY,{group:"border",resetAllFilter:n},e)}function jre(e){const{clientId:t,name:n,attributes:r,setAttributes:o}=e,i=jU(n),a=function(e){return[Cre(e),Ire(e),Tre(e),Pre(e)].some(Boolean)}(i),s=(0,Sr.useMemo)((()=>zre({style:r.style,borderColor:r.borderColor})),[r.style,r.borderColor]);if(!a)return null;const l=zr(e.name,[Mre,"__experimentalDefaultControls"]);return(0,Sr.createElement)(Are,{as:Fre,panelId:t,settings:i,value:s,onChange:e=>{o(Dre(e))},defaultControls:l})}function Vre(e,t="any"){if("web"!==eI.OS)return!1;const n=zr(e,Mre);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function Hre(e,t,n){if(!Vre(t,"color")||FU(t,Mre,"color"))return e;const r=function(e){const{borderColor:t,style:n}=e,r=Bee("border-color",t);return Vl()({"has-border-color":t||n?.border?.color,[r]:!!r})}(n),o=Vl()(e.className,r);return e.className=o||void 0,e}const $re=Hl((e=>t=>{const{name:n,attributes:r}=t,{borderColor:o,style:i}=r,{colors:a}=function(){const e={disableCustomColors:!RU("color.custom"),disableCustomGradients:!RU("color.customGradient")},t=RU("color.palette.custom"),n=RU("color.palette.theme"),r=RU("color.palette.default"),o=RU("color.defaultPalette");e.colors=(0,Sr.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:$n("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:$n("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:$n("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[r,n,t,o]);const i=RU("color.gradients.custom"),a=RU("color.gradients.theme"),s=RU("color.gradients.default"),l=RU("color.defaultGradients");return e.gradients=(0,Sr.useMemo)((()=>{const e=[];return a&&a.length&&e.push({name:$n("Theme","Indicates this palette comes from the theme."),gradients:a}),l&&s&&s.length&&e.push({name:$n("Default","Indicates this palette comes from WordPress."),gradients:s}),i&&i.length&&e.push({name:$n("Custom","Indicates this palette is created by the user."),gradients:i}),e}),[i,a,s,l]),e.hasColorsOrGradients=!!e.colors.length||!!e.gradients.length,e}();if(!Vre(n,"color")||FU(n,Mre,"color"))return(0,Sr.createElement)(e,{...t});const{color:s}=Bre({colors:a,namedColor:o}),{color:l}=Bre({colors:a,namedColor:Lre(i?.border?.top?.color)}),{color:c}=Bre({colors:a,namedColor:Lre(i?.border?.right?.color)}),{color:u}=Bre({colors:a,namedColor:Lre(i?.border?.bottom?.color)}),{color:d}=Bre({colors:a,namedColor:Lre(i?.border?.left?.color)}),f=DU({borderTopColor:l||s,borderRightColor:c||s,borderBottomColor:u||s,borderLeftColor:d||s})||{};let p=t.wrapperProps;return p={...t.wrapperProps,style:{...t.wrapperProps?.style,...f}},(0,Sr.createElement)(e,{...t,wrapperProps:p})}),"withBorderColorPaletteStyles");function Ure(e){if(e)return`has-${e}-gradient-background`}jt("blocks.registerBlockType","core/border/addAttributes",(function(e){return Vre(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),jt("blocks.getSaveContent.extraProps","core/border/addSaveProps",Hre),jt("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!Vre(e,"color")||FU(e,Mre,"color"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Hre(r,e,n)},e})),jt("editor.BlockListBlock","core/border/with-border-color-palette-styles",$re);const Wre=ng("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>SM({marginInlineStart:e},"","")),";}",(({zIndex:e})=>SM({zIndex:e},"","")),";");var Kre={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const Gre=ng("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",Wre,"{position:relative;justify-self:start;",(({isLayered:e})=>e?Kre:void 0),";}");const qre=Hh((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:a=0,...s}=Vh(e,"ZStack"),l=H$(n),c=l.length-1,u=l.map(((e,t)=>{const n=i?c-t:t,r=o?a*t:a,s=(0,Sr.isValidElement)(e)?e.key:t;return(0,Sr.createElement)(Wre,{offsetAmount:r,zIndex:n,key:s},e)}));return(0,Sr.createElement)(Gre,{...s,className:r,isLayered:o,ref:t},u)}),"ZStack"),Yre=qre;const Xre=({__nextHasNoMarginBottom:e})=>e?"":SM("margin-bottom:",KM(2),";",""),Zre=ng(mR,{target:"eln3bjz4"})(Xre,";"),Qre=ng("div",{target:"eln3bjz3"})("border-radius:50%;border:",PR.borderWidth," solid ",DM.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),Jre=ng("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),eoe=ng("div",{target:"eln3bjz1"})("background:",DM.theme.accent,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),toe=ng(KR,{target:"eln3bjz0"})("color:",DM.theme.accent,";margin-right:",KM(3),";");const noe=function({value:e,onChange:t,...n}){const r=(0,Sr.useRef)(null),o=(0,Sr.useRef)(),i=(0,Sr.useRef)(),a=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:s,isDragging:l}=function({onDragStart:e,onDragMove:t,onDragEnd:n}){const[r,o]=(0,Sr.useState)(!1),i=(0,Sr.useRef)({onDragStart:e,onDragMove:t,onDragEnd:n});GY((()=>{i.current.onDragStart=e,i.current.onDragMove=t,i.current.onDragEnd=n}),[e,t,n]);const a=(0,Sr.useCallback)((e=>i.current.onDragMove&&i.current.onDragMove(e)),[]),s=(0,Sr.useCallback)((e=>{i.current.onDragEnd&&i.current.onDragEnd(e),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",s),o(!1)}),[]),l=(0,Sr.useCallback)((e=>{i.current.onDragStart&&i.current.onDragStart(e),document.addEventListener("mousemove",a),document.addEventListener("mouseup",s),o(!0)}),[]);return(0,Sr.useEffect)((()=>()=>{r&&(document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",s))}),[r]),{startDrag:l,endDrag:s,isDragging:r}}({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),a(e)},onDragMove:a,onDragEnd:a});return(0,Sr.useEffect)((()=>{l?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[l]),(0,Sr.createElement)(Qre,{ref:r,onMouseDown:s,className:"components-angle-picker-control__angle-circle",...n},(0,Sr.createElement)(Jre,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,Sr.createElement)(eoe,{className:"components-angle-picker-control__angle-circle-indicator"})))};const roe=(0,Sr.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,label:o=Hn("Angle"),onChange:i,value:a,...s}=e;n||on("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 l=Vl()("components-angle-picker-control",r),c=(0,Sr.createElement)(toe,null,"°"),[u,d]=Wn()?[c,null]:[null,c];return(0,Sr.createElement)(Zre,{...s,ref:t,__nextHasNoMarginBottom:n,className:l,gap:2},(0,Sr.createElement)(D$,null,(0,Sr.createElement)(BK,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:a,spinControls:"none",prefix:u,suffix:d})),(0,Sr.createElement)(YM,{marginBottom:"1",marginTop:"auto"},(0,Sr.createElement)(noe,{"aria-hidden":"true",value:a,onChange:i})))})),ooe=10,ioe=0,aoe=ooe;function soe(e){return Math.max(0,Math.min(100,e))}function loe(e,t,n){const r=e.slice();return r[t]=n,r}function coe(e,t,n){if(function(e,t,n,r=ioe){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<a)))}(e,t,n))return e;return loe(e,t,{...e[t],position:n})}function uoe(e,t,n){return loe(e,t,{...e[t],color:n})}function doe(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(soe(100*o/r))}function foe({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${Wl(foe)}`;return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(lg,{"aria-label":Nn(Hn("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:Vl()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,Sr.createElement)(ig,{id:o},Hn("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function poe({isRenderedInSidebar:e,className:t,...n}){const r=(0,Sr.useMemo)((()=>({placement:"bottom",offset:8})),[]),o=Vl()("components-custom-gradient-picker__control-point-dropdown",t);return(0,Sr.createElement)(Rne,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function moe({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:a,onStopControlPointChange:s,__experimentalIsRenderedInSidebar:l}){const c=(0,Sr.useRef)(),u=e=>{if(void 0===c.current||null===n.current)return;const t=doe(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=c.current;!s&&Math.abs(r-t)>=5&&(c.current.significantMoveHappened=!0),i(coe(o,a,t))},d=()=>{window&&window.removeEventListener&&c.current&&c.current.listenersActivated&&(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d),s(),c.current.listenersActivated=!1)},f=(0,Sr.useRef)();return f.current=d,(0,Sr.useEffect)((()=>()=>{f.current?.()}),[]),(0,Sr.createElement)(Sr.Fragment,null,o.map(((n,f)=>{const p=n?.position;return r!==p&&(0,Sr.createElement)(poe,{isRenderedInSidebar:l,key:f,onClose:s,renderToggle:({isOpen:e,onToggle:t})=>(0,Sr.createElement)(foe,{key:f,onClick:()=>{c.current&&c.current.significantMoveHappened||(e?s():a(),t())},onMouseDown:()=>{window&&window.addEventListener&&(c.current={initialPosition:p,index:f,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(coe(o,f,soe(n.position-aoe)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(coe(o,f,soe(n.position+aoe))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(yne,{enableAlpha:!t,color:n.color,onChange:e=>{i(uoe(o,f,br(e).toRgbString()))}}),!e&&o.length>2&&(0,Sr.createElement)(U$,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,Sr.createElement)(lg,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,f)),r()},variant:"link"},Hn("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}moe.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:a}){const[s,l]=(0,Sr.useState)(!1);return(0,Sr.createElement)(poe,{isRenderedInSidebar:a,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,Sr.createElement)(lg,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(l(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:sW}),renderContent:()=>(0,Sr.createElement)(yne,{enableAlpha:!i,onChange:n=>{s?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return uoe(e,r,n)}(e,o,br(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,br(n).toRgbString())),l(!0))}}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};const hoe=moe,goe=(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},voe={id:"IDLE"};function boe({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:a=!1}){const s=(0,Sr.useRef)(null),[l,c]=(0,Sr.useReducer)(goe,voe),u=e=>{if(!s.current)return;const t=doe(e.clientX,s.current);n.some((({position:e})=>Math.abs(t-e)<ooe))?"MOVING_INSERTER"===l.id&&c({type:"STOP_INSERTER_MOVE"}):c({type:"MOVE_INSERTER",insertPosition:t})},d="MOVING_INSERTER"===l.id,f="INSERTING_CONTROL_POINT"===l.id;return(0,Sr.createElement)("div",{className:Vl()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:u,onMouseMove:u,onMouseLeave:()=>{c({type:"STOP_INSERTER_MOVE"})}},(0,Sr.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,Sr.createElement)("div",{ref:s,className:"components-custom-gradient-picker__markers-container"},!o&&(d||f)&&(0,Sr.createElement)(hoe.InsertPoint,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,insertPosition:l.insertPosition,value:n,onChange:r,onOpenInserter:()=>{c({type:"OPEN_INSERTER"})},onCloseInserter:()=>{c({type:"CLOSE_INSERTER"})}}),(0,Sr.createElement)(hoe,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,disableRemove:o,gradientPickerDomRef:s,ignoreMarkerPosition:f?l.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{c({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{c({type:"STOP_CONTROL_CHANGE"})}})))}var yoe=o(9948);const koe="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",woe={type:"angular",value:"90"},_oe=[{value:"linear-gradient",label:Hn("Linear")},{value:"radial-gradient",label:Hn("Radial")}],Eoe={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 xoe({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function Soe({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(xoe)].filter(Boolean).join(",")})`}function Coe(e){return void 0===e.length||"%"!==e.length.type}function Ioe(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"}}kr([wr]);const Toe=ng(D$,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Poe=ng(D$,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Noe=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,Sr.createElement)(roe,{__nextHasNoMarginBottom:!0,onChange:t=>{n(Soe({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},Ooe=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,Sr.createElement)(dte,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:Hn("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(Soe({...e,orientation:e.orientation?void 0:woe,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(Soe({...r,type:"radial-gradient"}))})()},options:_oe,size:"__unstable-large",value:t?r:void 0})};const Aoe=function({__nextHasNoMargin:e=!1,value:t,onChange:n,__experimentalIsRenderedInSidebar:r=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:koe;try{t=yoe.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=yoe.parse(koe)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:Eoe[t.orientation.value].toString()}),t.colorStops.some(Coe)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(t),a=function(e){return Soe({type:"linear-gradient",orientation:woe,colorStops:e.colorStops})}(o),s=o.colorStops.map((e=>({color:Ioe(e),position:parseInt(e.length.value)})));return e||on("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,Sr.createElement)(v4,{spacing:4,className:Vl()("components-custom-gradient-picker",{"is-next-has-no-margin":e})},(0,Sr.createElement)(boe,{__experimentalIsRenderedInSidebar:r,background:a,hasGradient:i,value:s,onChange:e=>{n(Soe(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=br(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,Sr.createElement)(mR,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,Sr.createElement)(Toe,null,(0,Sr.createElement)(Ooe,{gradientAST:o,hasGradient:i,onChange:n})),(0,Sr.createElement)(Poe,null,"linear-gradient"===o.type&&(0,Sr.createElement)(Noe,{gradientAST:o,hasGradient:i,onChange:n}))))},Moe=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function Roe({className:e,clearGradient:t,gradients:n,onChange:r,value:o,...i}){const a=(0,Sr.useMemo)((()=>n.map((({gradient:e,name:n},i)=>(0,Sr.createElement)(Ine.Option,{key:e,value:e,isSelected:o===e,tooltipText:n||Nn(Hn("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,i),"aria-label":n?Nn(Hn("Gradient: %s"),n):Nn(Hn("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,Sr.createElement)(Ine.OptionGroup,{className:e,options:a,...i})}function Boe({className:e,clearGradient:t,gradients:n,onChange:r,value:o,headingLevel:i}){const a=Wl(Boe);return(0,Sr.createElement)(v4,{spacing:3,className:e},n.map((({name:e,gradients:n},s)=>{const l=`color-palette-${a}-${s}`;return(0,Sr.createElement)(v4,{spacing:2,key:s},(0,Sr.createElement)(Tne,{level:i,id:l},e),(0,Sr.createElement)(Roe,{clearGradient:t,gradients:n,onChange:e=>r(e,s),value:o,"aria-labelledby":l}))})))}function Loe(e){const{asButtons:t,loop:n,actions:r,headingLevel:o,"aria-label":i,"aria-labelledby":a,...s}=e,l=Moe(e.gradients)?(0,Sr.createElement)(Boe,{headingLevel:o,...s}):(0,Sr.createElement)(Roe,{...s});let c;if(t)c={asButtons:!0};else{const e={asButtons:!1,loop:n};c=i?{...e,"aria-label":i}:a?{...e,"aria-labelledby":a}:{...e,"aria-label":Hn("Custom color picker.")}}return(0,Sr.createElement)(Ine,{...c,actions:r,options:l})}const Doe=function({__nextHasNoMargin:e=!1,className:t,gradients:n=[],onChange:r,value:o,clearable:i=!0,disableCustomGradients:a=!1,__experimentalIsRenderedInSidebar:s,headingLevel:l=2,...c}){const u=(0,Sr.useCallback)((()=>r(void 0)),[r]);e||on("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 d=e?{}:{marginTop:n.length?void 0:3,marginBottom:i?0:6};return(0,Sr.createElement)(YM,{marginBottom:0,...d},(0,Sr.createElement)(v4,{spacing:n.length?4:0},!a&&(0,Sr.createElement)(Aoe,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:s,value:o,onChange:r}),(n.length||i)&&(0,Sr.createElement)(Loe,{...c,className:t,clearGradient:u,gradients:n,onChange:r,value:o,actions:i&&!a&&(0,Sr.createElement)(Ine.ButtonAction,{onClick:u},Hn("Clear")),headingLevel:l})))},zoe=["colors","disableCustomColors","gradients","disableCustomGradients"],Foe={name:"color",title:Hn("Solid"),value:"color"},joe={name:"gradient",title:Hn("Gradient"),value:"gradient"},Voe=[Foe,joe];function Hoe({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:r,__experimentalIsRenderedInSidebar:o,className:i,label:a,onColorChange:s,onGradientChange:l,colorValue:c,gradientValue:u,clearable:d,showTitle:f=!0,enableAlpha:p,headingLevel:m}){const h=s&&(e&&e.length>0||!n),g=l&&(t&&t.length>0||!r);if(!h&&!g)return null;const v={[Foe.value]:(0,Sr.createElement)(Lne,{value:c,onChange:g?e=>{s(e),l()}:s,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:o,clearable:d,enableAlpha:p,headingLevel:m}),[joe.value]:(0,Sr.createElement)(Doe,{__nextHasNoMargin:!0,value:u,onChange:h?e=>{l(e),s()}:l,gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:o,clearable:d,headingLevel:m})},b=e=>(0,Sr.createElement)("div",{className:"block-editor-color-gradient-control__panel"},v[e]);return(0,Sr.createElement)(BH,{__nextHasNoMarginBottom:!0,className:Vl()("block-editor-color-gradient-control",i)},(0,Sr.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,Sr.createElement)(v4,{spacing:1},f&&(0,Sr.createElement)("legend",null,(0,Sr.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,Sr.createElement)(BH.VisualLabel,null,a))),h&&g&&(0,Sr.createElement)(W8,{className:"block-editor-color-gradient-control__tabs",tabs:Voe,initialTabName:u?joe.value:!!h&&Foe.value},(e=>b(e.value))),!g&&b(Foe.value),!h&&b(joe.value))))}function $oe(e){const t={};return t.colors=RU("color.palette"),t.gradients=RU("color.gradients"),t.disableCustomColors=!RU("color.custom"),t.disableCustomGradients=!RU("color.customGradient"),(0,Sr.createElement)(Hoe,{...t,...e})}const Uoe=function(e){return zoe.every((t=>e.hasOwnProperty(t)))?(0,Sr.createElement)(Hoe,{...e}):(0,Sr.createElement)($oe,{...e})};function Woe(e){const t=BU(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function Koe(e){const t=BU(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function Goe(e){const t=BU(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function qoe(e){const t=BU(e),n=LU(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Yoe(e){const t=BU(e),n=LU(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Xoe(e){const t=BU(e),n=LU(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Zoe({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Sr.createElement)(PY,{label:Hn("Color"),resetAll:()=>{const r=e(n);t(r)},panelId:r,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,Sr.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},o))}const Qoe={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},Joe={placement:"left-start",offset:36,shift:!0},eie=({indicators:e,label:t})=>(0,Sr.createElement)(U$,{justify:"flex-start"},(0,Sr.createElement)(Yre,{isLayered:!1,offset:-8},e.map(((e,t)=>(0,Sr.createElement)(mR,{key:t,expanded:!1},(0,Sr.createElement)(lte,{colorValue:e}))))),(0,Sr.createElement)(gR,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t));function tie({isGradient:e,inheritedValue:t,userValue:n,setValue:r,colorGradientControlSettings:o}){return(0,Sr.createElement)(Uoe,{...o,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:r,onGradientChange:e?r:void 0,clearable:t===n,headingLevel:3})}function nie({label:e,hasValue:t,resetValue:n,isShownByDefault:r,indicators:o,tabs:i,colorGradientControlSettings:a,panelId:s}){const l=i.map((({key:e,label:t})=>({name:e,title:t})));return(0,Sr.createElement)(D9,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:r,panelId:s},(0,Sr.createElement)(aC,{popoverProps:Joe,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const r={onClick:t,className:Vl()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":Nn(Hn("Color %s styles"),e)};return(0,Sr.createElement)(lg,{...r},(0,Sr.createElement)(eie,{indicators:o,label:e}))},renderContent:()=>(0,Sr.createElement)(Nne,{paddingSize:"none"},(0,Sr.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},1===i.length&&(0,Sr.createElement)(tie,{...i[0],colorGradientControlSettings:a}),i.length>1&&(0,Sr.createElement)(W8,{tabs:l},(e=>{const t=i.find((t=>t.key===e.name));return t?(0,Sr.createElement)(tie,{...t,colorGradientControlSettings:a}):null}))))}))}function rie({as:e=Zoe,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Qoe,children:s}){const l=BU(o),c=LU(o),u=o?.color?.custom,d=o?.color?.customGradient,f=l.length>0||u,p=c.length>0||d,m=e=>xre({settings:o},"",e),h=e=>{const t=l.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},g=e=>{const t=c.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},v=Xoe(o),b=m(r?.color?.background),y=m(t?.color?.background),k=m(r?.color?.gradient),w=m(t?.color?.gradient),_=Koe(o),E=m(r?.elements?.link?.color?.text),x=m(t?.elements?.link?.color?.text),S=m(r?.elements?.link?.[":hover"]?.color?.text),C=m(t?.elements?.link?.[":hover"]?.color?.text),I=Woe(o),T=m(r?.color?.text),P=m(t?.color?.text),N=e=>{let r=TU(t,["color","text"],h(e));T===E&&(r=TU(r,["elements","link","color","text"],h(e))),n(r)},O=[{name:"caption",label:Hn("Captions"),showPanel:Goe(o)},{name:"button",label:Hn("Button"),showPanel:Yoe(o)},{name:"heading",label:Hn("Heading"),showPanel:qoe(o)},{name:"h1",label:Hn("H1"),showPanel:qoe(o)},{name:"h2",label:Hn("H2"),showPanel:qoe(o)},{name:"h3",label:Hn("H3"),showPanel:qoe(o)},{name:"h4",label:Hn("H4"),showPanel:qoe(o)},{name:"h5",label:Hn("H5"),showPanel:qoe(o)},{name:"h6",label:Hn("H6"),showPanel:qoe(o)}],A=(0,Sr.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...O.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),M=[I&&{key:"text",label:Hn("Text"),hasValue:()=>!!P,resetValue:()=>N(void 0),isShownByDefault:a.text,indicators:[T],tabs:[{key:"text",label:Hn("Text"),inheritedValue:T,setValue:N,userValue:P}]},v&&{key:"background",label:Hn("Background"),hasValue:()=>!!y||!!w,resetValue:()=>{const e=TU(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:a.background,indicators:[null!=k?k:b],tabs:[f&&{key:"background",label:Hn("Solid"),inheritedValue:b,setValue:e=>{const r=TU(t,["color","background"],h(e));r.color.gradient=void 0,n(r)},userValue:y},p&&{key:"gradient",label:Hn("Gradient"),inheritedValue:k,setValue:e=>{const r=TU(t,["color","gradient"],g(e));r.color.background=void 0,n(r)},userValue:w,isGradient:!0}].filter(Boolean)},_&&{key:"link",label:Hn("Link"),hasValue:()=>!!x||!!C,resetValue:()=>{let e=TU(t,["elements","link",":hover","color","text"],void 0);e=TU(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:a.link,indicators:[E,S],tabs:[{key:"link",label:Hn("Default"),inheritedValue:E,setValue:e=>{n(TU(t,["elements","link","color","text"],h(e)))},userValue:x},{key:"hover",label:Hn("Hover"),inheritedValue:S,setValue:e=>{n(TU(t,["elements","link",":hover","color","text"],h(e)))},userValue:C}]}].filter(Boolean);return O.forEach((({name:e,label:o,showPanel:i})=>{if(!i)return;const s=m(r?.elements?.[e]?.color?.background),l=m(r?.elements?.[e]?.color?.gradient),c=m(r?.elements?.[e]?.color?.text),u=m(t?.elements?.[e]?.color?.background),d=m(t?.elements?.[e]?.color?.gradient),v=m(t?.elements?.[e]?.color?.text),b="caption"!==e;M.push({key:e,label:o,hasValue:()=>!!(v||u||d),resetValue:()=>{const r=TU(t,["elements",e,"color","background"],void 0);r.elements[e].color.gradient=void 0,r.elements[e].color.text=void 0,n(r)},isShownByDefault:a[e],indicators:b?[c,null!=l?l:s]:[c],tabs:[f&&{key:"text",label:Hn("Text"),inheritedValue:c,setValue:r=>{n(TU(t,["elements",e,"color","text"],h(r)))},userValue:v},f&&b&&{key:"background",label:Hn("Background"),inheritedValue:s,setValue:r=>{const o=TU(t,["elements",e,"color","background"],h(r));o.elements[e].color.gradient=void 0,n(o)},userValue:u},p&&b&&{key:"gradient",label:Hn("Gradient"),inheritedValue:l,setValue:r=>{const o=TU(t,["elements",e,"color","gradient"],g(r));o.elements[e].color.background=void 0,n(o)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,Sr.createElement)(e,{resetAllFilter:A,value:t,onChange:n,panelId:i},M.map((e=>(0,Sr.createElement)(nie,{key:e.key,...e,colorGradientControlSettings:{colors:l,disableCustomColors:!u,gradients:c,disableCustomGradients:!d},panelId:i}))),s)}kr([wr,xr]);const oie=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:r,fontSize:o,isLargeText:i,textColor:a,linkColor:s,enableAlphaChecker:l=!1}){const c=e||t;if(!c)return null;const u=a||n,d=s||r;if(!u&&!d)return null;const f=[{color:u,description:Hn("text color")},{color:d,description:Hn("link color")}],p=br(c),m=p.alpha()<1,h=p.brightness(),g={level:"AA",size:i||!1!==i&&o>=24?"large":"small"};let v="",b="";for(const e of f){if(!e.color)continue;const t=br(e.color),n=t.isReadable(p,g),r=t.alpha()<1;if(!n){if(m||r)continue;v=h<t.brightness()?Nn(Hn("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):Nn(Hn("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),b=Hn("This color combination may be hard for people to read.");break}r&&l&&(v=Hn("Transparent text may be hard for people to read."),b=Hn("Transparent text may be hard for people to read."))}return v?(NN(b),(0,Sr.createElement)("div",{className:"block-editor-contrast-checker"},(0,Sr.createElement)(Z9,{spokenMessage:null,status:"warning",isDismissible:!1},v))):null};function iie(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function aie({clientId:e}){const[t,n]=(0,Sr.useState)(),[r,o]=(0,Sr.useState)(),[i,a]=(0,Sr.useState)(),s=D0(e);return(0,Sr.useEffect)((()=>{if(!s.current)return;o(iie(s.current).color);const e=s.current?.querySelector("a");e&&e.innerText&&a(iie(e).color);let t=s.current,r=iie(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,r=iie(t).backgroundColor;n(r)})),(0,Sr.createElement)(oie,{backgroundColor:t,textColor:r,enableAlphaChecker:!0,linkColor:i})}const sie="color",lie=e=>{const t=zr(e,sie);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},cie=e=>{if("web"!==eI.OS)return!1;const t=zr(e,sie);return null!==t&&"object"==typeof t&&!!t.link},uie=e=>{const t=zr(e,sie);return null!==t&&"object"==typeof t&&!!t.gradients},die=e=>{const t=zr(e,sie);return t&&!1!==t.background},fie=e=>{const t=zr(e,sie);return t&&!1!==t.text};function pie(e,t,n){if(!lie(t)||FU(t,sie))return e;const r=uie(t),{backgroundColor:o,textColor:i,gradient:a,style:s}=n,l=e=>!FU(t,sie,e),c=l("text")?Bee("color",i):void 0,u=l("gradients")?Ure(a):void 0,d=l("background")?Bee("background-color",o):void 0,f=l("background")||l("gradients"),p=o||s?.color?.background||r&&(a||s?.color?.gradient),m=Vl()(e.className,c,u,{[d]:!(r&&s?.color?.gradient||!d),"has-text-color":l("text")&&(i||s?.color?.text),"has-background":f&&p,"has-link-color":l("link")&&s?.elements?.link?.color});return e.className=m||void 0,e}function mie(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,r=e?.color?.background,o=r?.startsWith("var:preset|color|")?r.substring(17):void 0,i=e?.color?.gradient,a=i?.startsWith("var:preset|gradient|")?i.substring(20):void 0,s={...e};return s.color={...s.color,text:n?void 0:t,background:o?void 0:r,gradient:a?void 0:i},{style:DU(s),textColor:n,backgroundColor:o,gradient:a}}function hie(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function gie({children:e,resetAllFilter:t}){const n=(0,Sr.useCallback)((e=>{const n=hie(e),r=t(n);return{...e,...mie(r)}}),[t]);return(0,Sr.createElement)(BY,{group:"color",resetAllFilter:n},e)}function vie(e){const{clientId:t,name:n,attributes:r,setAttributes:o}=e,i=jU(n),a=function(e){const t=Woe(e),n=Xoe(e),r=Koe(e),o=qoe(e),i=Yoe(e),a=Goe(e);return t||n||r||o||i||a}(i),s=(0,Sr.useMemo)((()=>hie({style:r.style,textColor:r.textColor,backgroundColor:r.backgroundColor,gradient:r.gradient})),[r.style,r.textColor,r.backgroundColor,r.gradient]);if(!a)return null;const l=zr(e.name,[sie,"__experimentalDefaultControls"]),c="web"===eI.OS&&!s?.color?.gradient&&(i?.color?.text||i?.color?.link)&&!1!==zr(e.name,[sie,"enableContrastChecker"]);return(0,Sr.createElement)(rie,{as:gie,panelId:t,settings:i,value:s,onChange:e=>{o(mie(e))},defaultControls:l,enableContrastChecker:!1!==zr(e.name,[sie,"enableContrastChecker"])},c&&(0,Sr.createElement)(aie,{clientId:t}))}const bie=Hl((e=>t=>{const{name:n,attributes:r}=t,{backgroundColor:o,textColor:i}=r,a=RU("color.palette.custom"),s=RU("color.palette.theme"),l=RU("color.palette.default"),c=(0,Sr.useMemo)((()=>[...a||[],...s||[],...l||[]]),[a,s,l]);if(!lie(n)||FU(n,sie))return(0,Sr.createElement)(e,{...t});const u={};i&&!FU(n,sie,"text")&&(u.color=Ree(c,i)?.color),o&&!FU(n,sie,"background")&&(u.backgroundColor=Ree(c,o)?.color);let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...t.wrapperProps?.style}},(0,Sr.createElement)(e,{...t,wrapperProps:d})}),"withColorPaletteStyles"),yie={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};jt("blocks.registerBlockType","core/color/addAttribute",(function(e){return lie(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),uie(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),jt("blocks.getSaveContent.extraProps","core/color/addSaveProps",pie),jt("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!lie(e)||FU(e,sie))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),pie(r,e,n)},e})),jt("editor.BlockListBlock","core/color/with-color-palette-styles",bie),jt("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){const o=e.name;return zU({linkColor:cie(o),textColor:fie(o),backgroundColor:die(o),gradient:uie(o)},yie,e,t,n,r)}));const kie=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,Sr.createElement)(Qp,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"}));function wie(e){const[t,...n]=e;if(!t)return null;const[,r]=iW(t.size),o=n.every((e=>{const[,t]=iW(e.size);return t===r}));return o?r:null}const _ie=ng("fieldset",{target:"e8tqeku5"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),Eie=ng(U$,{target:"e8tqeku4"})("height:",KM(4),";"),xie=ng(lg,{target:"e8tqeku3"})("margin-top:",KM(-1),";"),Sie=ng(BH.VisualLabel,{target:"e8tqeku2"})("display:flex;gap:",KM(1),";justify-content:flex-start;margin-bottom:0;"),Cie=ng("span",{target:"e8tqeku1"})("color:",DM.gray[700],";"),Iie=ng("div",{target:"e8tqeku0"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${KM(6)};`),";"),Tie={key:"default",name:Hn("Default"),value:void 0},Pie={key:"custom",name:Hn("Custom")},Nie=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:a,onSelectCustom:s}=e,l=!!wie(n),c=[Tie,...n.map((e=>{let t;if(l){const[n]=iW(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...o?[]:[Pie]],u=r?null!==(t=c.find((e=>e.value===r)))&&void 0!==t?t:Pie:Tie;return(0,Sr.createElement)(TB,{__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:Hn("Font size"),hideLabelFromVision:!0,describedBy:Nn(Hn("Currently selected font size: %s"),u.name),options:c,value:u,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===Pie?s():a(e.value)},size:i})};const Oie=(0,Sr.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,Sr.createElement)(B$,{...r,"aria-label":o,ref:t},n)})),Aie=[Hn("S"),Hn("M"),Hn("L"),Hn("XL"),Hn("XXL")],Mie=[Hn("Small"),Hn("Medium"),Hn("Large"),Hn("Extra Large"),Hn("Extra Extra Large")],Rie=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,Sr.createElement)(b$,{__nextHasNoMarginBottom:r,label:Hn("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,Sr.createElement)(Oie,{key:e.slug,value:e.size,label:Aie[t],"aria-label":e.name||Mie[t],showTooltip:!0}))))},Bie=(0,Sr.forwardRef)(((e,t)=>{const{__nextHasNoMarginBottom:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:a,size:s="default",units:l,value:c,withSlider:u=!1,withReset:d=!0}=e;n||on("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 f=aW({availableUnits:l||["px","em","rem"]}),p=o.length>5,m=o.find((e=>e.size===c)),h=!!c&&!m,[g,v]=(0,Sr.useState)(!i&&h),b=(0,Sr.useMemo)((()=>{if(g)return Hn("Custom");if(!p)return m?m.name||Mie[o.indexOf(m)]:"";const e=wie(o);return e?`(${e})`:""}),[g,p,m,o]);if(0===o.length&&i)return null;const y="string"==typeof c||"string"==typeof o[0]?.size,[k,w]=iW(c,f),_=!!w&&["em","rem"].includes(w);return(0,Sr.createElement)(_ie,{ref:t,className:"components-font-size-picker"},(0,Sr.createElement)(ig,{as:"legend"},Hn("Font size")),(0,Sr.createElement)(YM,null,(0,Sr.createElement)(Eie,{className:"components-font-size-picker__header"},(0,Sr.createElement)(Sie,{"aria-label":`${Hn("Size")} ${b||""}`},Hn("Size"),b&&(0,Sr.createElement)(Cie,{className:"components-font-size-picker__header__hint"},b)),!i&&(0,Sr.createElement)(xie,{label:Hn(g?"Use size preset":"Set custom size"),icon:kie,onClick:()=>{v(!g)},isPressed:g,isSmall:!0}))),(0,Sr.createElement)(Iie,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:n},!!o.length&&p&&!g&&(0,Sr.createElement)(Nie,{fontSizes:o,value:c,disableCustomFontSizes:i,size:s,onChange:e=>{void 0===e?a?.(void 0):a?.(y?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>v(!0)}),!p&&!g&&(0,Sr.createElement)(Rie,{fontSizes:o,value:c,__nextHasNoMarginBottom:n,size:s,onChange:e=>{void 0===e?a?.(void 0):a?.(y?e:Number(e),o.find((t=>t.size===e)))}}),!i&&g&&(0,Sr.createElement)(mR,{className:"components-font-size-picker__custom-size-control"},(0,Sr.createElement)(gR,{isBlock:!0},(0,Sr.createElement)(WK,{label:Hn("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:c,onChange:e=>{a?.(void 0===e?void 0:y?e:parseInt(e,10))},size:s,units:y?f:[],min:0})),u&&(0,Sr.createElement)(gR,{isBlock:!0},(0,Sr.createElement)(YM,{marginX:2,marginBottom:0},(0,Sr.createElement)(sq,{__nextHasNoMarginBottom:n,className:"components-font-size-picker__custom-input",label:Hn("Custom Size"),hideLabelFromVision:!0,value:k,initialPosition:r,withInputField:!1,onChange:e=>{a?.(void 0===e?void 0:y?e+(null!=w?w:"px"):e)},min:0,max:_?10:100,step:_?.1:1}))),d&&(0,Sr.createElement)(gR,null,(0,Sr.createElement)(sg,{disabled:void 0===c,onClick:()=>{a?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"!==s?"small":"default"},Hn("Reset"))))))})),Lie=Bie;function Die({value:e="",onChange:t,fontFamilies:n,...r}){const o=RU("typography.fontFamilies");if(n||(n=o),!n||0===n.length)return null;const i=[{value:"",label:Hn("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,Sr.createElement)(dte,{label:Hn("Font"),options:i,value:e,onChange:t,labelPosition:"top",...r})}const zie=[{name:$n("Regular","font style"),value:"normal"},{name:$n("Italic","font style"),value:"italic"}],Fie=[{name:$n("Thin","font weight"),value:"100"},{name:$n("Extra Light","font weight"),value:"200"},{name:$n("Light","font weight"),value:"300"},{name:$n("Regular","font weight"),value:"400"},{name:$n("Medium","font weight"),value:"500"},{name:$n("Semi Bold","font weight"),value:"600"},{name:$n("Bold","font weight"),value:"700"},{name:$n("Extra Bold","font weight"),value:"800"},{name:$n("Black","font weight"),value:"900"}],jie=(e,t)=>Hn(e?t?"Appearance":"Font style":"Font weight");function Vie(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:r=!0,value:{fontStyle:o,fontWeight:i},...a}=e,s=n||r,l=jie(n,r),c={key:"default",name:Hn("Default"),style:{fontStyle:void 0,fontWeight:void 0}},u=(0,Sr.useMemo)((()=>n&&r?(()=>{const e=[c];return zie.forEach((({name:t,value:n})=>{Fie.forEach((({name:r,value:o})=>{const i="normal"===n?r:Nn(Hn("%1$s %2$s"),r,t);e.push({key:`${n}-${o}`,name:i,style:{fontStyle:n,fontWeight:o}})}))})),e})():n?(()=>{const e=[c];return zie.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[c];return Fie.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options]),d=u.find((e=>e.style.fontStyle===o&&e.style.fontWeight===i))||u[0];return s&&(0,Sr.createElement)(PB,{...a,className:"components-font-appearance-control",label:l,describedBy:d?Nn(Hn(n?r?"Currently selected font appearance: %s":"Currently selected font style: %s":"Currently selected font weight: %s"),d.name):Hn("No selected font appearance"),options:u,value:d,onChange:({selectedItem:e})=>t(e.style),__nextUnconstrainedWidth:!0})}const Hie=1.5;const $ie=({value:e,onChange:t,__nextHasNoMarginBottom:n=!1,__unstableInputWidth:r="60px",...o})=>{const i=function(e){return void 0!==e&&""!==e}(e),a=(e,t)=>{if(i)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return Hie;default:return e}},s=i?e:"";n||on("Bottom margin styles for wp.blockEditor.LineHeightControl",{since:"6.0",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 l=n?void 0:{marginBottom:24};return(0,Sr.createElement)("div",{className:"block-editor-line-height-control",style:l},(0,Sr.createElement)(BK,{...o,__unstableInputWidth:r,__unstableStateReducer:(e,t)=>{const n=["insertText","insertFromPaste"].includes(t.payload.event.nativeEvent?.inputType),r=a(e.value,n);return{...e,value:r}},onChange:(e,{event:n})=>{""!==e?"click"!==n.type?t(`${e}`):t(a(`${e}`,!1)):t()},label:Hn("Line height"),placeholder:Hie,step:.01,spinFactor:10,value:s,min:0,spinControls:"custom"}))};function Uie({value:e,onChange:t,__unstableInputWidth:n="60px",...r}){const o=aW({availableUnits:RU("spacing.units")||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,Sr.createElement)(WK,{...r,label:Hn("Letter spacing"),value:e,__unstableInputWidth:n,units:o,onChange:t})}const Wie=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),Kie=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),Gie=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),qie=[{name:Hn("None"),value:"none",icon:lW},{name:Hn("Uppercase"),value:"uppercase",icon:Wie},{name:Hn("Lowercase"),value:"lowercase",icon:Kie},{name:Hn("Capitalize"),value:"capitalize",icon:Gie}];function Yie({className:e,value:t,onChange:n}){return(0,Sr.createElement)("fieldset",{className:Vl()("block-editor-text-transform-control",e)},(0,Sr.createElement)(BH.VisualLabel,{as:"legend"},Hn("Letter case")),(0,Sr.createElement)("div",{className:"block-editor-text-transform-control__buttons"},qie.map((e=>(0,Sr.createElement)(lg,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}const Xie=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Zie=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),Qie=[{name:Hn("None"),value:"none",icon:lW},{name:Hn("Underline"),value:"underline",icon:Xie},{name:Hn("Strikethrough"),value:"line-through",icon:Zie}];function Jie({value:e,onChange:t,className:n}){return(0,Sr.createElement)("fieldset",{className:Vl()("block-editor-text-decoration-control",n)},(0,Sr.createElement)(BH.VisualLabel,{as:"legend"},Hn("Decoration")),(0,Sr.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Qie.map((n=>(0,Sr.createElement)(lg,{key:n.value,icon:n.icon,label:n.name,isPressed:n.value===e,onClick:()=>{t(n.value===e?void 0:n.value)}})))))}const eae=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z"})),tae=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z"})),nae=[{name:Hn("Horizontal"),value:"horizontal-tb",icon:eae},{name:Hn("Vertical"),value:Wn()?"vertical-lr":"vertical-rl",icon:tae}];function rae({className:e,value:t,onChange:n}){return(0,Sr.createElement)("fieldset",{className:Vl()("block-editor-writing-mode-control",e)},(0,Sr.createElement)(BH.VisualLabel,{as:"legend"},Hn("Orientation")),(0,Sr.createElement)("div",{className:"block-editor-writing-mode-control__buttons"},nae.map((e=>(0,Sr.createElement)(lg,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}const oae=1,iae=6;function aae(e){var t,n,r,o;const i=!e?.typography?.customFontSize,a=null!==(t=e?.typography?.fontSizes)&&void 0!==t?t:{},s=[].concat(null!==(n=a?.custom)&&void 0!==n?n:[]).concat(null!==(r=a?.theme)&&void 0!==r?r:[]).concat(null!==(o=a.default)&&void 0!==o?o:[]);return!!s?.length||!i}function sae(e){var t,n,r;const o=e?.typography?.fontFamilies,i=[].concat(null!==(t=o?.custom)&&void 0!==t?t:[]).concat(null!==(n=o?.theme)&&void 0!==n?n:[]).concat(null!==(r=o?.default)&&void 0!==r?r:[]).sort(((e,t)=>(e?.name||e?.slug).localeCompare(t?.name||e?.slug)));return!!i?.length}function lae(e){return e?.typography?.lineHeight}function cae(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t||n}function uae(e){return e?.typography?.letterSpacing}function dae(e){return e?.typography?.textTransform}function fae(e){return e?.typography?.textDecoration}function pae(e){return e?.typography?.writingMode}function mae(e){return e?.typography?.textColumns}function hae({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Sr.createElement)(PY,{label:Hn("Typography"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const gae={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function vae({as:e=hae,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=gae}){var s,l,c;const u=e=>xre({settings:o},"",e),d=sae(o),f=o?.typography?.fontFamilies,p=[].concat(null!==(s=f?.custom)&&void 0!==s?s:[]).concat(null!==(l=f?.theme)&&void 0!==l?l:[]).concat(null!==(c=f?.default)&&void 0!==c?c:[]),m=u(r?.typography?.fontFamily),h=e=>{const r=p?.find((({fontFamily:t})=>t===e))?.slug;n(TU(t,["typography","fontFamily"],r?`var:preset|font-family|${r}`:e||void 0))},g=aae(o),v=!o?.typography?.customFontSize,b=function(e){var t,n,r,o;const i=null!==(t=e?.typography?.fontSizes)&&void 0!==t?t:{};return[].concat(null!==(n=i?.custom)&&void 0!==n?n:[]).concat(null!==(r=i?.theme)&&void 0!==r?r:[]).concat(null!==(o=i.default)&&void 0!==o?o:[]).reduce(((e,t)=>(e.some((({slug:e})=>e===t.slug))||e.push(t),e)),[])}(o),y=u(r?.typography?.fontSize),k=(e,r)=>{n(TU(t,["typography","fontSize"],(r?.slug?`var:preset|font-size|${r?.slug}`:e)||void 0))},w=cae(o),_=function(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return Hn(t?n?"Appearance":"Font style":"Font weight")}(o),E=o?.typography?.fontStyle,x=o?.typography?.fontWeight,S=u(r?.typography?.fontStyle),C=u(r?.typography?.fontWeight),I=({fontStyle:e,fontWeight:r})=>{n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:r||void 0}})},T=lae(o),P=u(r?.typography?.lineHeight),N=e=>{n(TU(t,["typography","lineHeight"],e||void 0))},O=uae(o),A=u(r?.typography?.letterSpacing),M=e=>{n(TU(t,["typography","letterSpacing"],e||void 0))},R=mae(o),B=u(r?.typography?.textColumns),L=e=>{n(TU(t,["typography","textColumns"],e||void 0))},D=dae(o),z=u(r?.typography?.textTransform),F=e=>{n(TU(t,["typography","textTransform"],e||void 0))},j=fae(o),V=u(r?.typography?.textDecoration),H=e=>{n(TU(t,["typography","textDecoration"],e||void 0))},$=pae(o),U=u(r?.typography?.writingMode),W=e=>{n(TU(t,["typography","writingMode"],e||void 0))},K=(0,Sr.useCallback)((e=>({...e,typography:{}})),[]);return(0,Sr.createElement)(e,{resetAllFilter:K,value:t,onChange:n,panelId:i},d&&(0,Sr.createElement)(D9,{label:Hn("Font family"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>h(void 0),isShownByDefault:a.fontFamily,panelId:i},(0,Sr.createElement)(Die,{fontFamilies:p,value:m,onChange:h,size:"__unstable-large",__nextHasNoMarginBottom:!0})),g&&(0,Sr.createElement)(D9,{label:Hn("Font size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>k(void 0),isShownByDefault:a.fontSize,panelId:i},(0,Sr.createElement)(Lie,{value:y,onChange:k,fontSizes:b,disableCustomFontSizes:v,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})),w&&(0,Sr.createElement)(D9,{className:"single-column",label:_,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{I({})},isShownByDefault:a.fontAppearance,panelId:i},(0,Sr.createElement)(Vie,{value:{fontStyle:S,fontWeight:C},onChange:I,hasFontStyles:E,hasFontWeights:x,size:"__unstable-large",__nextHasNoMarginBottom:!0})),T&&(0,Sr.createElement)(D9,{className:"single-column",label:Hn("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>N(void 0),isShownByDefault:a.lineHeight,panelId:i},(0,Sr.createElement)($ie,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:P,onChange:N,size:"__unstable-large"})),O&&(0,Sr.createElement)(D9,{className:"single-column",label:Hn("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>M(void 0),isShownByDefault:a.letterSpacing,panelId:i},(0,Sr.createElement)(Uie,{value:A,onChange:M,size:"__unstable-large",__unstableInputWidth:"auto"})),R&&(0,Sr.createElement)(D9,{className:"single-column",label:Hn("Text columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>L(void 0),isShownByDefault:a.textColumns,panelId:i},(0,Sr.createElement)(BK,{label:Hn("Text columns"),max:iae,min:oae,onChange:L,size:"__unstable-large",spinControls:"custom",value:B,initialPosition:1})),j&&(0,Sr.createElement)(D9,{className:"single-column",label:Hn("Text decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>H(void 0),isShownByDefault:a.textDecoration,panelId:i},(0,Sr.createElement)(Jie,{value:V,onChange:H,size:"__unstable-large",__unstableInputWidth:"auto"})),$&&(0,Sr.createElement)(D9,{className:"single-column",label:Hn("Text orientation"),hasValue:()=>!!t?.typography?.writingMode,onDeselect:()=>W(void 0),isShownByDefault:a.writingMode,panelId:i},(0,Sr.createElement)(rae,{value:U,onChange:W,size:"__unstable-large",__nextHasNoMarginBottom:!0})),D&&(0,Sr.createElement)(D9,{label:Hn("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>F(void 0),isShownByDefault:a.textTransform,panelId:i},(0,Sr.createElement)(Yie,{value:z,onChange:F,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})))}const bae="typography.lineHeight";class yae{constructor(e=""){this.value=e,this._currentValue,this._valueAsArray}entries(...e){return this._valueAsArray.entries(...e)}forEach(...e){return this._valueAsArray.forEach(...e)}keys(...e){return this._valueAsArray.keys(...e)}values(...e){return this._valueAsArray.values(...e)}get value(){return this._currentValue}set value(e){e=String(e),this._valueAsArray=[...new Set(e.split(/\s+/g).filter(Boolean))],this._currentValue=this._valueAsArray.join(" ")}get length(){return this._valueAsArray.length}toString(){return this.value}*[Symbol.iterator](){return yield*this._valueAsArray}item(e){return this._valueAsArray[e]}contains(e){return-1!==this._valueAsArray.indexOf(e)}add(...e){this.value+=" "+e.join(" ")}remove(...e){this.value=this._valueAsArray.filter((t=>!e.includes(t))).join(" ")}toggle(e,t){return void 0===t&&(t=!this.contains(e)),t?this.add(e):this.remove(e),t}replace(e,t){return!!this.contains(e)&&(this.remove(e),this.add(t),!0)}supports(){return!0}}const kae="typography.__experimentalFontFamily";function wae(e,t,n){if(!Fr(t,kae))return e;if(FU(t,Iae,"fontFamily"))return e;if(!n?.fontFamily)return e;const r=new yae(e.className);r.add(`has-${CU(n?.fontFamily)}-font-family`);const o=r.value;return e.className=o||void 0,e}jt("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return Fr(e,kae)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),jt("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",wae),jt("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!Fr(e,kae))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),wae(r,e,n)},e}));const _ae="typography.fontSize";function Eae(e,t,n){if(!Fr(t,_ae))return e;if(FU(t,Iae,"fontSize"))return e;const r=new yae(e.className);r.add(function(e){if(e)return`has-${CU(e)}-font-size`}(n.fontSize));const o=r.value;return e.className=o||void 0,e}const xae=Hl((e=>t=>{const n=RU("typography.fontSizes"),{name:r,attributes:{fontSize:o,style:i},wrapperProps:a}=t;if(!Fr(r,_ae)||FU(r,Iae,"fontSize")||!o||i?.typography?.fontSize)return(0,Sr.createElement)(e,{...t});const s=((e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}})(n,o,i?.typography?.fontSize).size,l={...t,wrapperProps:{...a,style:{fontSize:s,...a?.style}}};return(0,Sr.createElement)(e,{...l})}),"withFontSizeInlineStyles"),Sae={fontSize:[["fontSize"],["style","typography","fontSize"]]};function Cae(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}jt("blocks.registerBlockType","core/font/addAttribute",(function(e){return Fr(e,_ae)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),jt("blocks.getSaveContent.extraProps","core/font/addSaveProps",Eae),jt("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Fr(e,_ae))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Eae(r,e,n)},e})),jt("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",xae),jt("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,r){return zU({fontSize:Fr(e.name,_ae)},Sae,e,t,n,r)})),jt("blocks.registerBlockType","core/font-size/addEditPropsForFluidCustomFontSizes",(function(e){if(!Fr(e,_ae)||FU(e,Iae,"fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{const n=t?t(e):{},r=n?.style?.fontSize,o=wre(Ar(qO).getSettings().__experimentalFeatures),i=r?yre({size:r},o):null;return null===i?n:{...n,style:{...n?.style,fontSize:i}}},e}),11);const Iae="typography",Tae=[bae,_ae,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",kae,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Pae(e){const t={...Cae(e,["fontFamily"])},n=e?.typography?.fontSize,r=e?.typography?.fontFamily,o=n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,i=r?.startsWith("var:preset|font-family|")?r.substring(23):void 0;return t.typography={...Cae(t.typography,["fontFamily"]),fontSize:o?void 0:n},{style:DU(t),fontFamily:i,fontSize:o}}function Nae(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function Oae({children:e,resetAllFilter:t}){const n=(0,Sr.useCallback)((e=>{const n=Nae(e),r=t(n);return{...e,...Pae(r)}}),[t]);return(0,Sr.createElement)(BY,{group:"typography",resetAllFilter:n},e)}function Aae({clientId:e,name:t,attributes:n,setAttributes:r,__unstableParentLayout:o}){const i=jU(t,o),a=function(e){const t=sae(e),n=lae(e),r=cae(e),o=uae(e),i=dae(e),a=fae(e),s=pae(e),l=mae(e),c=aae(e);return t||n||r||o||i||c||a||s||l}(i),s=(0,Sr.useMemo)((()=>Nae({style:n.style,fontFamily:n.fontFamily,fontSize:n.fontSize})),[n.style,n.fontSize,n.fontFamily]);if(!a)return null;const l=zr(t,[Iae,"__experimentalDefaultControls"]);return(0,Sr.createElement)(vae,{as:Oae,panelId:e,settings:i,value:s,onChange:e=>{r(Pae(e))},defaultControls:l})}const Mae=ng("div",{target:"e1jovhle6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),Rae=ng(mR,{target:"e1jovhle5"})({name:"5bhc30",styles:"margin-bottom:8px"}),Bae=ng(mR,{target:"e1jovhle4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),Lae=ng("div",{target:"e1jovhle3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),Dae=ng(mR,{target:"e1jovhle2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),zae=ng(mR,{target:"e1jovhle1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var Fae={name:"1ch9yvl",styles:"border-radius:0"},jae={name:"tg3mx0",styles:"border-radius:2px"};const Vae=({isFirst:e,isLast:t,isOnly:n})=>e?UM({borderTopRightRadius:0,borderBottomRightRadius:0})():t?UM({borderTopLeftRadius:0,borderBottomLeftRadius:0})():n?jae:Fae,Hae=({isFirst:e,isOnly:t})=>UM({marginLeft:e||t?0:-1})(),$ae=ng(WK,{target:"e1jovhle0"})("max-width:60px;",Vae,";",Hae,";"),Uae=()=>{};function Wae({isFirst:e,isLast:t,isOnly:n,onHoverOn:r=Uae,onHoverOff:o=Uae,label:i,value:a,...s}){const l=function(e,t){return KW(qW),oK({hover:e},t||{},"hover")}((({event:e,...t})=>{t.hovering?r(e,t):o(e,t)}));return(0,Sr.createElement)(Lae,{...l()},(0,Sr.createElement)(Kae,{text:i},(0,Sr.createElement)($ae,{"aria-label":i,className:"component-box-control__unit-control",isFirst:e,isLast:t,isOnly:n,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:a,...s})))}function Kae({children:e,text:t}){return t?(0,Sr.createElement)(Zp,{text:t,placement:"top"},(0,Sr.createElement)("div",null,e)):e}const Gae={all:Hn("All"),top:Hn("Top"),bottom:Hn("Bottom"),left:Hn("Left"),right:Hn("Right"),mixed:Hn("Mixed"),vertical:Hn("Vertical"),horizontal:Hn("Horizontal")},qae={top:void 0,right:void 0,bottom:void 0,left:void 0},Yae=["top","right","bottom","left"];function Xae(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function Zae(e={},t,n=Yae){const r=function(e){const t=[];if(!e?.length)return Yae;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=Yae.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>iW(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=Xae(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return Xae(t)}(t))&&void 0!==l?l:Xae(i);return[a,s].join("")}function Qae(e={},t,n=Yae){const r=Zae(e,t,n);return isNaN(parseFloat(r))}function Jae(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function ese(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function tse(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):Yae.forEach((e=>r[e]=t)),r}const nse=()=>{};function rse({onChange:e=nse,onFocus:t=nse,onHoverOn:n=nse,onHoverOff:r=nse,values:o,sides:i,selectedUnits:a,setSelectedUnits:s,...l}){const c=Zae(o,a,i),u=Jae(o)&&Qae(o,a,i),d=u?Gae.mixed:void 0;return(0,Sr.createElement)(Wae,{...l,disableUnits:u,isOnly:!0,value:c,onChange:t=>{const n=void 0!==t&&!isNaN(parseFloat(t)),r=tse(o,n?t:void 0,i);e(r)},onUnitChange:e=>{const t=tse(a,e,i);s(t)},onFocus:e=>{t(e,{side:"all"})},onHoverOn:()=>{n({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{r({top:!1,bottom:!1,left:!1,right:!1})},placeholder:d})}const ose=()=>{};function ise({onChange:e=ose,onFocus:t=ose,onHoverOn:n=ose,onHoverOff:r=ose,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=e=>n=>{t(n,{side:e})},u=e=>()=>{n({[e]:!0})},d=e=>()=>{r({[e]:!1})},f=t=>(n,{event:r})=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[t]=a,r.altKey)switch(t){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(t=>{e(t)})(i)},p=e=>t=>{const n={...i};n[e]=t,a(n)},m=s?.length?Yae.filter((e=>s.includes(e))):Yae,h=m[0],g=m[m.length-1],v=h===g&&h;return(0,Sr.createElement)(Dae,{className:"component-box-control__input-controls-wrapper"},(0,Sr.createElement)(zae,{gap:0,align:"top",className:"component-box-control__input-controls"},m.map((e=>{const[t,n]=iW(o[e]),r=o[e]?n:i[e];return(0,Sr.createElement)(Wae,{...l,isFirst:h===e,isLast:g===e,isOnly:v===e,value:[t,r].join(""),onChange:f(e),onUnitChange:p(e),onFocus:c(e),onHoverOn:u(e),onHoverOff:d(e),label:Gae[e],key:`box-control-${e}`})}))))}const ase=["vertical","horizontal"];function sse({onChange:e,onFocus:t,onHoverOn:n,onHoverOff:r,values:o,selectedUnits:i,setSelectedUnits:a,sides:s,...l}){const c=e=>n=>{t&&t(n,{side:e})},u=e=>()=>{n&&("vertical"===e&&n({top:!0,bottom:!0}),"horizontal"===e&&n({left:!0,right:!0}))},d=e=>()=>{r&&("vertical"===e&&r({top:!1,bottom:!1}),"horizontal"===e&&r({left:!1,right:!1}))},f=t=>n=>{if(!e)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===t&&(r.top=i,r.bottom=i),"horizontal"===t&&(r.left=i,r.right=i),e(r)},p=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),a(n)},m=s?.length?ase.filter((e=>s.includes(e))):ase,h=m[0],g=m[m.length-1],v=h===g&&h;return(0,Sr.createElement)(zae,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},m.map((e=>{const[t,n]=iW("vertical"===e?o.top:o.left),r="vertical"===e?i.top:i.left;return(0,Sr.createElement)(Wae,{...l,isFirst:h===e,isLast:g===e,isOnly:v===e,value:[t,null!=r?r:n].join(""),onChange:f(e),onUnitChange:p(e),onFocus:c(e),onHoverOn:u(e),onHoverOff:d(e),label:Gae[e],key:e})})))}const lse=ng("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),cse=ng("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),use=ng("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>SM({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),dse=ng(use,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),fse=ng(use,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),pse=ng(fse,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),mse=ng(dse,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),hse=ng(fse,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),gse=ng(dse,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),vse=24;function bse({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),a=o("right")||o("horizontal"),s=o("bottom")||o("vertical"),l=o("left")||o("horizontal"),c=e/vse;return(0,Sr.createElement)(lse,{style:{transform:`scale(${c})`},...r},(0,Sr.createElement)(cse,null,(0,Sr.createElement)(pse,{isFocused:i}),(0,Sr.createElement)(mse,{isFocused:a}),(0,Sr.createElement)(hse,{isFocused:s}),(0,Sr.createElement)(gse,{isFocused:l})))}function yse({isLinked:e,...t}){const n=Hn(e?"Unlink sides":"Link sides");return(0,Sr.createElement)(Zp,{text:n},(0,Sr.createElement)(lg,{...t,className:"component-box-control__linked-button",isSmall:!0,icon:e?Lee:tee,iconSize:24,"aria-label":n}))}const kse={min:0},wse=()=>{};function _se({id:e,inputProps:t=kse,onChange:n=wse,label:r=Hn("Box Control"),values:o,units:i,sides:a,splitOnAxis:s=!1,allowReset:l=!0,resetValues:c=qae,onMouseOver:u,onMouseOut:d}){const[f,p]=HK(o,{fallback:qae}),m=f||qae,h=Jae(o),g=1===a?.length,[v,b]=(0,Sr.useState)(h),[y,k]=(0,Sr.useState)(!h||!Qae(m)||g),[w,_]=(0,Sr.useState)(ese(y,s)),[E,x]=(0,Sr.useState)({top:iW(o?.top)[1],right:iW(o?.right)[1],bottom:iW(o?.bottom)[1],left:iW(o?.left)[1]}),S=function(e){const t=Wl(_se,"inspector-box-control");return e||t}(e),C=`${S}-heading`,I={...t,onChange:e=>{n(e),p(e),b(!0)},onFocus:(e,{side:t})=>{_(t)},isLinked:y,units:i,selectedUnits:E,setSelectedUnits:x,sides:a,values:m,onMouseOver:u,onMouseOut:d};return(0,Sr.createElement)(Mae,{id:S,role:"group","aria-labelledby":C},(0,Sr.createElement)(Rae,{className:"component-box-control__header"},(0,Sr.createElement)(gR,null,(0,Sr.createElement)(RH.VisualLabel,{id:C},r)),l&&(0,Sr.createElement)(gR,null,(0,Sr.createElement)(lg,{className:"component-box-control__reset-button",variant:"secondary",isSmall:!0,onClick:()=>{n(c),p(c),x(c),b(!1)},disabled:!v},Hn("Reset")))),(0,Sr.createElement)(Bae,{className:"component-box-control__header-control-wrapper"},(0,Sr.createElement)(gR,null,(0,Sr.createElement)(bse,{side:w,sides:a})),y&&(0,Sr.createElement)(D$,null,(0,Sr.createElement)(rse,{"aria-label":r,...I})),!y&&s&&(0,Sr.createElement)(D$,null,(0,Sr.createElement)(sse,{...I})),!g&&(0,Sr.createElement)(gR,null,(0,Sr.createElement)(yse,{onClick:()=>{k(!y),_(ese(!y,s))},isLinked:y}))),!y&&!s&&(0,Sr.createElement)(ise,{...I}))}const Ese=_se,xse={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1}};function Sse({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:r,onMouseOut:o,onMouseOver:i,showSideInLabel:a=!0,side:s,spacingSizes:l,type:c,value:u}){var d,f;u=cU(u,l);let p=l;const m=l.length<=8,h=BC((e=>{const t=e(qO).getSettings();return t?.disableCustomSpacingSizes})),[g,v]=(0,Sr.useState)(!h&&void 0!==u&&!lU(u)),b=p$(u);u&&b!==u&&!lU(u)&&!0!==g&&v(!0);const y=aW({availableUnits:RU("spacing.units")||["px","em","rem"]});let k=null;!m&&!g&&void 0!==u&&(!lU(u)||lU(u)&&t)?(p=[...l,{name:t?Hn("Mixed"):Nn(Hn("Custom (%s)"),u),slug:"custom",size:u}],k=p.length-1):t||(k=g?function(e,t){if(!lU(e))return e;const n=dU(e),r=t.find((e=>String(e.slug)===n));return r?.size}(u,l):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":dU(e),r=t.findIndex((e=>String(e.slug)===n));return-1!==r?r:NaN}(u,l));const w=(0,Sr.useMemo)((()=>iW(k)),[k])[1]||y[0].value,_=parseFloat(k,10),E=(e,t)=>{const n=parseInt(e,10);if("selectList"===t){if(0===n)return;if(1===n)return"0"}else if(0===n)return"0";return`var:preset|spacing|${l[e]?.slug}`},x=t?Hn("Mixed"):null,S=p.map(((e,t)=>({key:t,name:e.name}))),C=l.map(((e,t)=>({value:t,label:void 0}))),I=rU.includes(s)&&a?aU[s]:"",T=a?c?.toLowerCase():c,P=Nn(Hn("%1$s %2$s"),I,T).trim();return(0,Sr.createElement)(U$,{className:"spacing-sizes-control__wrapper"},e&&(0,Sr.createElement)(tm,{className:"spacing-sizes-control__icon",icon:e,size:24}),g&&(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(WK,{onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o,onChange:e=>r((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:k,units:y,min:n,placeholder:x,disableUnits:t,label:P,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large"}),(0,Sr.createElement)(sq,{onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o,value:_,min:0,max:null!==(d=xse[w]?.max)&&void 0!==d?d:10,step:null!==(f=xse[w]?.steps)&&void 0!==f?f:.1,withInputField:!1,onChange:e=>{r([e,w].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})),m&&!g&&(0,Sr.createElement)(sq,{onMouseOver:i,onMouseOut:o,className:"spacing-sizes-control__range-control",value:k,onChange:e=>r(E(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===u&&r("0")},withInputField:!1,"aria-valuenow":k,"aria-valuetext":l[k]?.name,renderTooltipContent:e=>void 0===u?void 0:l[e]?.name,min:0,max:l.length-1,marks:C,label:P,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:i,onBlur:o}),!m&&!g&&(0,Sr.createElement)(PB,{className:"spacing-sizes-control__custom-select-control",value:S.find((e=>e.key===k))||"",onChange:e=>{r(E(e.selectedItem.key,"selectList"))},options:S,label:P,hideLabelFromVision:!0,__nextUnconstrainedWidth:!0,size:"__unstable-large",onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o}),!h&&(0,Sr.createElement)(lg,{label:Hn(g?"Use size preset":"Set custom size"),icon:kie,onClick:()=>{v(!g)},isPressed:g,isSmall:!0,className:"spacing-sizes-control__custom-toggle",iconSize:24}))}const Cse=["vertical","horizontal"];function Ise({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,sides:o,spacingSizes:i,type:a,values:s}){const l=e=>n=>{if(!t)return;const r={...Object.keys(s).reduce(((e,t)=>(e[t]=cU(s[t],i),e)),{})};"vertical"===e&&(r.top=n,r.bottom=n),"horizontal"===e&&(r.left=n,r.right=n),t(r)},c=o?.length?Cse.filter((e=>fU(o,e))):Cse;return(0,Sr.createElement)(Sr.Fragment,null,c.map((t=>{const o="vertical"===t?s.top:s.left;return(0,Sr.createElement)(Sse,{key:`spacing-sizes-control-${t}`,icon:iU[t],label:aU[t],minimumCustomValue:e,onChange:l(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:o,withInputField:!1})})))}function Tse({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,sides:o,spacingSizes:i,type:a,values:s}){const l=o?.length?rU.filter((e=>o.includes(e))):rU,c=e=>n=>{const r={...Object.keys(s).reduce(((e,t)=>(e[t]=cU(s[t],i),e)),{})};r[e]=n,t(r)};return(0,Sr.createElement)(Sr.Fragment,null,l.map((t=>(0,Sr.createElement)(Sse,{key:`spacing-sizes-control-${t}`,icon:iU[t],label:aU[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:s[t],withInputField:!1}))))}function Pse({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,showSideInLabel:o,side:i,spacingSizes:a,type:s,values:l}){return(0,Sr.createElement)(Sse,{label:aU[i],minimumCustomValue:e,onChange:(c=i,e=>{const n={...Object.keys(l).reduce(((e,t)=>(e[t]=cU(l[t],a),e)),{})};n[c]=e,t(n)}),onMouseOut:n,onMouseOver:r,showSideInLabel:o,side:i,spacingSizes:a,type:s,value:l[i],withInputField:!1});var c}const Nse=(0,Sr.createElement)(tm,{icon:xM,size:24});function Ose({label:e,onChange:t,sides:n,value:r}){if(!n||!n.length)return;const o=function(e){if(!e||!e.length)return{};const t={},n=fU(e,"horizontal"),r=fU(e,"vertical");n&&r?t.axial={label:aU.axial,icon:iU.axial}:n?t.axial={label:aU.horizontal,icon:iU.horizontal}:r&&(t.axial={label:aU.vertical,icon:iU.vertical});let o=0;return rU.forEach((n=>{e.includes(n)&&(o+=1,t[n]={label:aU[n],icon:iU[n]})})),o>1&&(t.custom={label:aU.custom,icon:iU.custom}),t}(n),i=o[r].icon,{custom:a,...s}=o;return(0,Sr.createElement)(vC,{icon:i,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{isSmall:!0}},(({onClose:e})=>(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(pH,null,Object.entries(s).map((([n,{label:o,icon:i}])=>{const a=r===n;return(0,Sr.createElement)(hH,{key:n,icon:i,iconPosition:"left",isSelected:a,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:a?Nse:void 0},o)}))),!!a&&(0,Sr.createElement)(pH,null,(0,Sr.createElement)(hH,{icon:a.icon,iconPosition:"left",isSelected:r===sU.custom,role:"menuitemradio",onClick:()=>{t(sU.custom),e()},suffix:r===sU.custom?Nse:void 0},a.label)))))}function Ase({inputProps:e,label:t,minimumCustomValue:n=0,onChange:r,onMouseOut:o,onMouseOver:i,showSideInLabel:a=!0,sides:s=rU,useSelect:l,values:c}){const u=function(){const e=[{name:0,slug:"0",size:0},...RU("spacing.spacingSizes")||[]];return e.length>8&&e.unshift({name:Hn("Default"),slug:"default",size:void 0}),e}(),d=c||oU,f=1===s?.length,p=s?.includes("horizontal")&&s?.includes("vertical")&&2===s?.length,[m,h]=(0,Sr.useState)(function(e={},t){const{top:n,right:r,bottom:o,left:i}=e,a=[n,r,o,i].filter(Boolean),s=!(n!==o||i!==r||!n&&!i),l=!a.length&&function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=>t[e]+=1)),(t.top+t.bottom)%2==0&&(t.left+t.right)%2==0}(t);if(fU(t)&&(s||l))return sU.axial;if(1===a.length){let t;return Object.entries(e).some((([e,n])=>(t=e,void 0!==n))),t}return 1!==t?.length||a.length?sU.custom:t[0]}(d,s)),g={...e,minimumCustomValue:n,onChange:e=>{const t={...c,...e};r(t)},onMouseOut:o,onMouseOver:i,sides:s,spacingSizes:u,type:t,useSelect:l,values:d},v=rU.includes(m)&&a?aU[m]:"",b=Nn(Hn("%1$s %2$s"),t,v).trim(),y=Nn($n("%s options","Button label to reveal side configuration options"),t);return(0,Sr.createElement)("fieldset",{className:"spacing-sizes-control"},(0,Sr.createElement)(U$,{className:"spacing-sizes-control__header"},(0,Sr.createElement)(BH.VisualLabel,{as:"legend",className:"spacing-sizes-control__label"},b),!f&&!p&&(0,Sr.createElement)(Ose,{label:y,onChange:h,sides:s,value:m})),m===sU.axial?(0,Sr.createElement)(Ise,{...g}):m===sU.custom?(0,Sr.createElement)(Tse,{...g}):(0,Sr.createElement)(Pse,{side:m,...g,showSideInLabel:a}))}const Mse={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1}};function Rse({label:e=Hn("Height"),onChange:t,value:n}){var r,o;const i=parseFloat(n),a=aW({availableUnits:RU("spacing.units")||["%","px","em","rem","vh","vw"]}),s=(0,Sr.useMemo)((()=>iW(n)),[n])[1]||a[0]?.value||"px";return(0,Sr.createElement)("fieldset",{className:"block-editor-height-control"},(0,Sr.createElement)(BH.VisualLabel,{as:"legend"},e),(0,Sr.createElement)(mR,null,(0,Sr.createElement)(gR,{isBlock:!0},(0,Sr.createElement)(WK,{value:n,units:a,onChange:t,onUnitChange:e=>{const[r,o]=iW(n);["em","rem"].includes(e)&&"px"===o?t((r/16).toFixed(2)+e):["em","rem"].includes(o)&&"px"===e?t(Math.round(16*r)+e):["vh","vw","%"].includes(e)&&r>100&&t(100+e)},min:0,size:"__unstable-large"})),(0,Sr.createElement)(gR,{isBlock:!0},(0,Sr.createElement)(YM,{marginX:2,marginBottom:0},(0,Sr.createElement)(sq,{value:i,min:0,max:null!==(r=Mse[s]?.max)&&void 0!==r?r:100,step:null!==(o=Mse[s]?.step)&&void 0!==o?o:.1,withInputField:!1,onChange:e=>{t([e,s].join(""))},__nextHasNoMarginBottom:!0})))))}function Bse(e,t){const{orientation:n="horizontal"}=t;return Hn("fill"===e?"Stretch to fill available space.":"fixed"===e&&"horizontal"===n?"Specify a fixed width.":"fixed"===e?"Specify a fixed height.":"Fit contents.")}function Lse({value:e={},onChange:t,parentLayout:n}){const{selfStretch:r,flexSize:o}=e;return(0,Sr.useEffect)((()=>{"fixed"!==r||o||t({...e,selfStretch:"fit"})}),[]),(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(b$,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:Dse(n),value:r||"fit",help:Bse(r,n),onChange:n=>{const r="fixed"!==n?null:o;t({...e,selfStretch:n,flexSize:r})},isBlock:!0},(0,Sr.createElement)(Oie,{key:"fit",value:"fit",label:Hn("Fit")}),(0,Sr.createElement)(Oie,{key:"fill",value:"fill",label:Hn("Fill")}),(0,Sr.createElement)(Oie,{key:"fixed",value:"fixed",label:Hn("Fixed")})),"fixed"===r&&(0,Sr.createElement)(WK,{size:"__unstable-large",onChange:n=>{t({...e,flexSize:n})},value:o}))}function Dse(e){const{orientation:t="horizontal"}=e;return Hn("horizontal"===t?"Width":"Height")}const zse=["horizontal","vertical"];function Fse(e){return e?.layout?.contentSize}function jse(e){return e?.layout?.wideSize}function Vse(e){return e?.spacing?.padding}function Hse(e){return e?.spacing?.margin}function $se(e){return e?.spacing?.blockGap}function Use(e){return e?.dimensions?.minHeight}function Wse(e){var t;const{type:n="default",default:{type:r="default"}={},allowSizingOnChildren:o=!1}=null!==(t=e?.parentLayout)&&void 0!==t?t:{},i=("flex"===r||"flex"===n)&&o;return!!e?.layout&&i}function Kse(e,t){if(!t||!e)return e;const n={};return t.forEach((t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e?.[t]})),n}function Gse(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function qse({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Sr.createElement)(PY,{label:Hn("Dimensions"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const Yse={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!0};function Xse({as:e=qse,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Yse,onVisualize:s=(()=>{}),includeLayoutControls:l=!1}){var c,u,d,f,p,m,h,g;const{dimensions:v,spacing:b}=o,y=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=xre({settings:{dimensions:v,spacing:b}},"",e[n]),t)),{}):xre({settings:{dimensions:v,spacing:b}},"",e),k=function(e){var t,n;const{custom:r,theme:o,default:i}=e?.spacing?.spacingSizes||{};return(null!==(t=null!==(n=null!=r?r:o)&&void 0!==n?n:i)&&void 0!==t?t:[]).length>0}(o),w=aW({availableUnits:o?.spacing?.units||["%","px","em","rem","vw"]}),_=Fse(o)&&l,E=y(r?.layout?.contentSize),x=e=>{n(TU(t,["layout","contentSize"],e||void 0))},S=jse(o)&&l,C=y(r?.layout?.wideSize),I=e=>{n(TU(t,["layout","wideSize"],e||void 0))},T=Vse(o),P=Gse(y(r?.spacing?.padding)),N=Array.isArray(o?.spacing?.padding)?o?.spacing?.padding:o?.spacing?.padding?.sides,O=N&&N.some((e=>zse.includes(e))),A=e=>{const r=Kse(e,N);n(TU(t,["spacing","padding"],r))},M=()=>s("padding"),R=Hse(o),B=Gse(y(r?.spacing?.margin)),L=Array.isArray(o?.spacing?.margin)?o?.spacing?.margin:o?.spacing?.margin?.sides,D=L&&L.some((e=>zse.includes(e))),z=e=>{const r=Kse(e,L);n(TU(t,["spacing","margin"],r))},F=()=>s("margin"),j=$se(o),V=y(r?.spacing?.blockGap),H=function(e){return e&&"string"==typeof e?{top:e}:e?{...e,right:e?.left,bottom:e?.top}:e}(V),$=Array.isArray(o?.spacing?.blockGap)?o?.spacing?.blockGap:o?.spacing?.blockGap?.sides,U=$&&$.some((e=>zse.includes(e))),W=e=>{n(TU(t,["spacing","blockGap"],e))},K=e=>{e||W(null),!U&&e?.hasOwnProperty("top")?W(e.top):W({top:e?.top,left:e?.left})},G=Use(o),q=y(r?.dimensions?.minHeight),Y=e=>{n(TU(t,["dimensions","minHeight"],e))},X=Wse(o),Z=r?.layout,{orientation:Q="horizontal"}=null!==(c=o?.parentLayout)&&void 0!==c?c:{},J=Hn("horizontal"===Q?"Width":"Height"),ee=e=>{n({...t,layout:{...t?.layout,...e}})},te=(0,Sr.useCallback)((e=>({...e,layout:DU({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0}})),[]),ne=()=>s(!1);return(0,Sr.createElement)(e,{resetAllFilter:te,value:t,onChange:n,panelId:i},(_||S)&&(0,Sr.createElement)("span",{className:"span-columns"},Hn("Set the width of the main content area.")),_&&(0,Sr.createElement)(D9,{className:"single-column",label:Hn("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>x(void 0),isShownByDefault:null!==(u=a.contentSize)&&void 0!==u?u:Yse.contentSize,panelId:i},(0,Sr.createElement)(U$,{alignment:"flex-end",justify:"flex-start"},(0,Sr.createElement)(WK,{label:Hn("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:E||"",onChange:e=>{x(e)},units:w}),(0,Sr.createElement)(og,null,(0,Sr.createElement)(EM,{icon:KK})))),S&&(0,Sr.createElement)(D9,{className:"single-column",label:Hn("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>I(void 0),isShownByDefault:null!==(d=a.wideSize)&&void 0!==d?d:Yse.wideSize,panelId:i},(0,Sr.createElement)(U$,{alignment:"flex-end",justify:"flex-start"},(0,Sr.createElement)(WK,{label:Hn("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:C||"",onChange:e=>{I(e)},units:w}),(0,Sr.createElement)(og,null,(0,Sr.createElement)(EM,{icon:GK})))),T&&(0,Sr.createElement)(D9,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:Hn("Padding"),onDeselect:()=>A(void 0),isShownByDefault:null!==(f=a.padding)&&void 0!==f?f:Yse.padding,className:Vl()({"tools-panel-item-spacing":k}),panelId:i},!k&&(0,Sr.createElement)(Ese,{values:P,onChange:A,label:Hn("Padding"),sides:N,units:w,allowReset:!1,splitOnAxis:O,onMouseOver:M,onMouseOut:ne}),k&&(0,Sr.createElement)(Ase,{values:P,onChange:A,label:Hn("Padding"),sides:N,units:w,allowReset:!1,onMouseOver:M,onMouseOut:ne})),R&&(0,Sr.createElement)(D9,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:Hn("Margin"),onDeselect:()=>z(void 0),isShownByDefault:null!==(p=a.margin)&&void 0!==p?p:Yse.margin,className:Vl()({"tools-panel-item-spacing":k}),panelId:i},!k&&(0,Sr.createElement)(Ese,{values:B,onChange:z,label:Hn("Margin"),sides:L,units:w,allowReset:!1,splitOnAxis:D,onMouseOver:F,onMouseOut:ne}),k&&(0,Sr.createElement)(Ase,{values:B,onChange:z,label:Hn("Margin"),sides:L,units:w,allowReset:!1,onMouseOver:F,onMouseOut:ne})),j&&(0,Sr.createElement)(D9,{hasValue:()=>!!t?.spacing?.blockGap,label:Hn("Block spacing"),onDeselect:()=>W(void 0),isShownByDefault:null!==(m=a.blockGap)&&void 0!==m?m:Yse.blockGap,className:Vl()({"tools-panel-item-spacing":k}),panelId:i},!k&&(U?(0,Sr.createElement)(Ese,{label:Hn("Block spacing"),min:0,onChange:K,units:w,sides:$,values:H,allowReset:!1,splitOnAxis:U}):(0,Sr.createElement)(WK,{label:Hn("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:W,units:w,value:V})),k&&(0,Sr.createElement)(Ase,{label:Hn("Block spacing"),min:0,onChange:K,showSideInLabel:!1,sides:U?$:["top"],values:H,allowReset:!1})),G&&(0,Sr.createElement)(D9,{hasValue:()=>!!t?.dimensions?.minHeight,label:Hn("Min. height"),onDeselect:()=>{Y(void 0)},isShownByDefault:null!==(h=a.minHeight)&&void 0!==h?h:Yse.minHeight,panelId:i},(0,Sr.createElement)(Rse,{label:Hn("Min. height"),value:q,onChange:Y})),X&&(0,Sr.createElement)(v4,{as:D9,spacing:2,hasValue:()=>!!t?.layout,label:J,onDeselect:()=>{ee({selfStretch:void 0,flexSize:void 0})},isShownByDefault:null!==(g=a.childLayout)&&void 0!==g?g:Yse.childLayout,panelId:i},(0,Sr.createElement)(Lse,{value:Z,onChange:ee,parentLayout:o?.parentLayout})))}const Zse=function(e){return Vx((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:r}=t;e.current.scrollBy(n,r)}const r={passive:!0};return t.addEventListener("wheel",n,r),()=>{t.removeEventListener("wheel",n,r)}}),[e])},Qse=Number.MAX_SAFE_INTEGER;const Jse=(0,Sr.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstableRefreshSize:r,__unstableCoverTarget:o=!1,__unstablePopoverSlot:i,__unstableContentRef:a,shift:s=!0,...l},c){const u=z0(e),d=z0(null!=t?t:e),f=Vg([c,Zse(a)]),[p,m]=(0,Sr.useReducer)((e=>(e+1)%Qse),0);(0,Sr.useLayoutEffect)((()=>{if(!u)return;const e=new window.MutationObserver(m);return e.observe(u,{attributes:!0}),()=>{e.disconnect()}}),[u]);const h=(0,Sr.useMemo)((()=>p<0||!u||d!==u?{}:{position:"absolute",width:u.offsetWidth,height:u.offsetHeight}),[u,d,r,p]),g=(0,Sr.useMemo)((()=>{if(!(p<0||!u||t&&!d))return{getBoundingClientRect(){var e,t,n,r;const o=u.getBoundingClientRect(),i=d?.getBoundingClientRect(),a=Math.min(o.left,null!==(e=i?.left)&&void 0!==e?e:1/0),s=Math.min(o.top,null!==(t=i?.top)&&void 0!==t?t:1/0),l=Math.max(o.right,null!==(n=i.right)&&void 0!==n?n:-1/0)-a,c=Math.max(o.bottom,null!==(r=i.bottom)&&void 0!==r?r:-1/0)-s;return new window.DOMRect(a,s,l,c)},contextElement:u}}),[t,d,u,p]);return!u||t&&!d?null:(0,Sr.createElement)(oC,{ref:f,animate:!1,focusOnMount:!1,anchor:g,__unstableSlotName:i,inline:!i,placement:"top-start",resize:!1,flip:!1,shift:s,...l,className:Vl()("block-editor-block-popover",l.className),variant:"unstyled"},o&&(0,Sr.createElement)("div",{style:h},n),!o&&n)}));function ele(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function tle({clientId:e,attributes:t,forceShow:n}){const r=z0(e),[o,i]=(0,Sr.useState)(),a=t?.style?.spacing?.margin;(0,Sr.useEffect)((()=>{if(!r||null===r.ownerDocument.defaultView)return;const e=ele(r,"margin-top"),t=ele(r,"margin-right"),n=ele(r,"margin-bottom"),o=ele(r,"margin-left");i({borderTopWidth:e,borderRightWidth:t,borderBottomWidth:n,borderLeftWidth:o,top:e?`-${e}`:0,right:t?`-${t}`:0,bottom:n?`-${n}`:0,left:o?`-${o}`:0})}),[r,a]);const[s,l]=(0,Sr.useState)(!1),c=(0,Sr.useRef)(a),u=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>(ca(a,c.current)||n||(l(!0),c.current=a,u.current=setTimeout((()=>{l(!1)}),400)),()=>{l(!1),u.current&&window.clearTimeout(u.current)})),[a,n]),s||n?(0,Sr.createElement)(Jse,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:a,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,Sr.createElement)("div",{className:"block-editor__padding-visualizer",style:o})):null}function nle(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function rle({clientId:e,attributes:t,forceShow:n}){const r=z0(e),[o,i]=(0,Sr.useState)(),a=t?.style?.spacing?.padding;(0,Sr.useEffect)((()=>{r&&null!==r.ownerDocument.defaultView&&i({borderTopWidth:nle(r,"padding-top"),borderRightWidth:nle(r,"padding-right"),borderBottomWidth:nle(r,"padding-bottom"),borderLeftWidth:nle(r,"padding-left")})}),[r,a]);const[s,l]=(0,Sr.useState)(!1),c=(0,Sr.useRef)(a),u=(0,Sr.useRef)();return(0,Sr.useEffect)((()=>(ca(a,c.current)||n||(l(!0),c.current=a,u.current=setTimeout((()=>{l(!1)}),400)),()=>{l(!1),u.current&&window.clearTimeout(u.current)})),[a,n]),s||n?(0,Sr.createElement)(Jse,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:a,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,Sr.createElement)("div",{className:"block-editor__padding-visualizer",style:o})):null}const ole="dimensions",ile="spacing";function ale({children:e,resetAllFilter:t}){const n=(0,Sr.useCallback)((e=>{const n=e.style,r=t(n);return{...e,style:r}}),[t]);return(0,Sr.createElement)(BY,{group:"dimensions",resetAllFilter:n},e)}function sle(e){const{clientId:t,name:n,attributes:r,setAttributes:o,__unstableParentLayout:i}=e,a=jU(n,i),s=function(e){const t=Fse(e),n=jse(e),r=Vse(e),o=Hse(e),i=$se(e),a=Use(e),s=Wse(e);return"web"===eI.OS&&(t||n||r||o||i||a||s)}(a),l=r.style,[c,u]=function(){const[e,t]=(0,Sr.useState)(!1),{hideBlockInterface:n,showBlockInterface:r}=KO(Sq(qO));return(0,Sr.useEffect)((()=>{e?n():r()}),[e,r,n]),[e,t]}();if(!s)return null;const d={...zr(e.name,[ole,"__experimentalDefaultControls"]),...zr(e.name,[ile,"__experimentalDefaultControls"])};return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Xse,{as:ale,panelId:t,settings:a,value:l,onChange:e=>{o({style:DU(e)})},defaultControls:d,onVisualize:u}),!!a?.spacing?.padding&&(0,Sr.createElement)(rle,{forceShow:"padding"===c,...e}),!!a?.spacing?.margin&&(0,Sr.createElement)(tle,{forceShow:"margin"===c,...e}))}const lle=[...Tae,Mre,sie,ole,yee,ile],cle=e=>lle.some((t=>Fr(e,t)));function ule(e={}){const t={};return NG(e).forEach((e=>{t[e.key]=e.value})),t}const dle={[`${Mre}.__experimentalSkipSerialization`]:["border"],[`${sie}.__experimentalSkipSerialization`]:[sie],[`${Iae}.__experimentalSkipSerialization`]:[Iae],[`${ole}.__experimentalSkipSerialization`]:[ole],[`${ile}.__experimentalSkipSerialization`]:[ile]},fle={...dle,[`${yee}`]:[yee]},ple={[`${yee}`]:!0},mle={gradients:"gradient"};function hle(e,t,n=!1){if(!e)return e;let r=e;return n||(r=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;hle(r[t],[n],!0)}else 1===e.length&&delete r[e[0]]})),r}function gle(e,t,n,r=fle){if(!cle(t))return e;let{style:o}=n;return Object.entries(r).forEach((([e,n])=>{const r=ple[e]||zr(t,e);!0===r&&(o=hle(o,n)),Array.isArray(r)&&r.forEach((e=>{const t=mle[e]||e;o=hle(o,[[...n,t]])}))})),e.style={...ule(o),...e.style},e}const vle=Hl((e=>t=>{if(!cle(t.name))return(0,Sr.createElement)(e,{key:"edit",...t});const n=eA(),r=Iq();return(0,Sr.createElement)(Sr.Fragment,null,n&&"default"===r&&(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(vie,{...t}),(0,Sr.createElement)(xee,{...t}),(0,Sr.createElement)(Aae,{...t}),(0,Sr.createElement)(jre,{...t}),(0,Sr.createElement)(sle,{...t})),(0,Sr.createElement)(e,{key:"edit",...t}))}),"withToolbarControls"),ble=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],yle=Hl((e=>t=>{const n=`wp-elements-${Wl(e)}`,r=`.editor-styles-wrapper .${n}`,o=t.attributes.style?.elements,i=(0,Sr.useMemo)((()=>{if(!o)return;const e=[];return ble.forEach((({elementType:n,pseudo:i,elements:a})=>{if(FU(t.name,sie,n))return;const s=o?.[n];if(s){const t=Sre(r,Nr[n]);e.push(PG(s,{selector:t})),i&&i.forEach((t=>{s[t]&&e.push(PG(s[t],{selector:Sre(r,`${Nr[n]}${t}`)}))}))}a&&a.forEach((t=>{o[t]&&e.push(PG(o[t],{selector:Sre(r,Nr[t])}))}))})),e.length>0?e.join(""):void 0}),[r,o,t.name]),a=(0,Sr.useContext)(A9.__unstableElementContext);return(0,Sr.createElement)(Sr.Fragment,null,i&&a&&(0,cf.createPortal)((0,Sr.createElement)("style",{dangerouslySetInnerHTML:{__html:i}}),a),(0,Sr.createElement)(e,{...t,className:t.attributes.style?.elements?Vl()(t.className,n):t.className}))}),"withElementsStyles");jt("blocks.registerBlockType","core/style/addAttribute",(function(e){return cle(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),jt("blocks.getSaveContent.extraProps","core/style/addSaveProps",gle),jt("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!cle(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),gle(r,e,n,dle)},e})),jt("editor.BlockEdit","core/style/with-block-controls",vle),jt("editor.BlockListBlock","core/editor/with-elements-styles",yle);jt("blocks.registerBlockType","core/settings/addAttribute",(function(e){return Fr(e,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e}));const kle=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{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 wle(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}kr([wr]);const _le=function({values:e}){return e?(0,Sr.createElement)(lte,{colorValue:wle(e,"135deg")}):(0,Sr.createElement)(tm,{icon:kle})};function Ele({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[a,s]=(0,Sr.useState)(!1),l=Wl(Ele,"color-list-picker-option"),c=`${l}__label`,u=`${l}__content`;return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(lg,{className:"components-color-list-picker__swatch-button",onClick:()=>s((e=>!e)),"aria-expanded":a,"aria-controls":u},(0,Sr.createElement)(U$,{justify:"flex-start",spacing:2},t?(0,Sr.createElement)(lte,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,Sr.createElement)(tm,{icon:kle}),(0,Sr.createElement)("span",{id:c},e))),(0,Sr.createElement)("div",{role:"group",id:u,"aria-labelledby":c,"aria-hidden":!a},a&&(0,Sr.createElement)(Lne,{"aria-label":Hn("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o})))}const xle=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,Sr.createElement)("div",{className:"components-color-list-picker"},t.map(((t,a)=>(0,Sr.createElement)(Ele,{key:a,label:t,value:n[a],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[a]=e,i(t)}}))))},Sle=["#333","#CCC"];function Cle({value:e,onChange:t}){const n=!!e,r=n?e:Sle,o=wle(r),i=function(e){return e.map(((t,n)=>({position:100*n/(e.length-1),color:t})))}(r);return(0,Sr.createElement)(boe,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const Ile=function({asButtons:e,loop:t,clearable:n=!0,unsetable:r=!0,colorPalette:o,duotonePalette:i,disableCustomColors:a,disableCustomDuotone:s,value:l,onChange:c,"aria-label":u,"aria-labelledby":d,...f}){const[p,m]=(0,Sr.useMemo)((()=>{return!(e=o)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:br(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[o]),h="unset"===l,g=Hn("Unset"),v=(0,Sr.createElement)(Ine.Option,{key:"unset",value:"unset",isSelected:h,tooltipText:g,"aria-label":g,className:"components-duotone-picker__color-indicator",onClick:()=>{c(h?void 0:"unset")}}),b=i.map((({colors:e,slug:t,name:n})=>{const r={background:wle(e,"135deg"),color:"transparent"},o=null!=n?n:Nn(Hn("Duotone code: %s"),t),i=n?Nn(Hn("Duotone: %s"),n):o,a=Oa()(e,l);return(0,Sr.createElement)(Ine.Option,{key:t,value:e,isSelected:a,"aria-label":i,tooltipText:o,style:r,onClick:()=>{c(a?void 0:e)}})}));let y;if(e)y={asButtons:!0};else{const e={asButtons:!1,loop:t};y=u?{...e,"aria-label":u}:d?{...e,"aria-labelledby":d}:{...e,"aria-label":Hn("Custom color picker.")}}return(0,Sr.createElement)(Ine,{...f,...y,options:r?[v,...b]:b,actions:!!n&&(0,Sr.createElement)(Ine.ButtonAction,{onClick:()=>c(void 0)},Hn("Clear"))},(0,Sr.createElement)(YM,{paddingTop:4},(0,Sr.createElement)(v4,{spacing:3},!a&&!s&&(0,Sr.createElement)(Cle,{value:h?void 0:l,onChange:c}),!s&&(0,Sr.createElement)(xle,{labels:[Hn("Shadows"),Hn("Highlights")],colors:o,value:h?void 0:l,disableCustomColors:a,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=p),e[1]||(e[1]=m);const t=e.length>=2?e:void 0;c(t)}}))))},Tle=(0,Sr.createElement)(Jp,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Sr.createElement)(Qp,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"}));const Ple=function e({id:t,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:a,onChange:s}){let l;l="unset"===a?(0,Sr.createElement)(lte,{className:"block-editor-duotone-control__unset-indicator"}):a?(0,Sr.createElement)(_le,{values:a}):(0,Sr.createElement)(EM,{icon:Tle});const c=Hn("Apply duotone filter"),u=`${Wl(e,"duotone-control",t)}__description`;return(0,Sr.createElement)(aC,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:Hn("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,Sr.createElement)(Dg,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==gx||(n.preventDefault(),t())},label:c,icon:l}),renderContent:()=>(0,Sr.createElement)(pH,{label:Hn("Duotone")},(0,Sr.createElement)("div",{id:u,className:"block-editor-duotone-control__description"},Hn("Create a two-tone color effect without losing your original image.")),(0,Sr.createElement)(Ile,{"aria-label":c,"aria-describedby":u,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:a,onChange:s}))})};function Nle(e){return`${e}{filter:none}`}function Ole(e,t){return`${e}{filter:url(#${t})}`}function Ale(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=br(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)})),t}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`}function Mle(e,t="root",n={}){if(!t)return null;const{fallback:r=!1}=n,{name:o,selectors:i,supports:a}=e,s=i&&Object.keys(i).length>0,l=Array.isArray(t)?t.join("."):t;let c=null;if(c=s&&i.root?i?.root:a?.__experimentalSelector?a.__experimentalSelector:".wp-block-"+o.replace("core/","").replace("/","-"),"root"===l)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=r?c:null;if(s){return PU(i,`${l}.root`,null)||PU(i,l,null)||e}const t=PU(a,`${l}.__experimentalSelector`,null);return t?Sre(c,t):e}let d;return s&&(d=PU(i,l,null)),d||(r?Mle(e,u[0],n):null)}const Rle=[];function Ble(e,{presetSetting:t,defaultSetting:n}){const r=!e?.color?.[n],o=e?.color?.[t]?.custom||Rle,i=e?.color?.[t]?.theme||Rle,a=e?.color?.[t]?.default||Rle;return(0,Sr.useMemo)((()=>[...o,...i,...r?Rle:a]),[r,o,i,a])}function Lle(e){return e.color.customDuotone||e.color.defaultDuotone}function Dle({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Sr.createElement)(PY,{label:$n("Filters","Name for applying graphical effects"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const zle={duotone:!0},Fle={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:Hn("Duotone")},jle=({indicator:e,label:t})=>(0,Sr.createElement)(U$,{justify:"flex-start"},(0,Sr.createElement)(Yre,{isLayered:!1,offset:-8},(0,Sr.createElement)(mR,{expanded:!1},"unset"!==e&&e?(0,Sr.createElement)(_le,{values:e}):(0,Sr.createElement)(lte,{className:"block-editor-duotone-control__unset-indicator"}))),(0,Sr.createElement)(gR,{title:t},t));function Vle({as:e=Dle,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=zle}){const s=Lle(o),l=Ble(o,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),c=Ble(o,{presetSetting:"palette",defaultSetting:"defaultPalette"}),u=(d=r?.filter?.duotone,xre({settings:o},"",d));var d;const f=e=>{const r=l.find((({colors:t})=>t===e)),o=r?`var:preset|duotone|${r.slug}`:e;n(TU(t,["filter","duotone"],o))},p=!o?.color?.custom,m=!o?.color?.customDuotone||0===c?.length&&p,h=(0,Sr.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,Sr.createElement)(e,{resetAllFilter:h,value:t,onChange:n,panelId:i},s&&(0,Sr.createElement)(D9,{label:Hn("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>f(void 0),isShownByDefault:a.duotone,panelId:i},(0,Sr.createElement)(aC,{popoverProps:Fle,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:Vl()({"is-open":t}),"aria-expanded":t};return(0,Sr.createElement)(M4,{isBordered:!0,isSeparated:!0},(0,Sr.createElement)(lg,{...n},(0,Sr.createElement)(jle,{indicator:u,label:Hn("Duotone")})))},renderContent:()=>(0,Sr.createElement)(Nne,{paddingSize:"medium"},(0,Sr.createElement)(v4,null,(0,Sr.createElement)("p",null,Hn("Create a two-tone color effect without losing your original image.")),(0,Sr.createElement)(Ile,{colorPalette:c,duotonePalette:l,disableCustomColors:p,disableCustomDuotone:m,value:u,onChange:f})))})))}const Hle=[];function $le({presetSetting:e,defaultSetting:t}){const n=!RU(t),r=RU(`${e}.custom`)||Hle,o=RU(`${e}.theme`)||Hle,i=RU(`${e}.default`)||Hle;return(0,Sr.useMemo)((()=>[...r,...o,...n?Hle:i]),[n,r,o,i])}function Ule(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}function Wle({attributes:e,setAttributes:t,name:n}){const r=e?.style,o=r?.color?.duotone,i=jU(n),a=$le({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),s=$le({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),l=!RU("color.custom"),c=!RU("color.customDuotone")||0===s?.length&&l;if(0===a?.length&&c)return null;const u=Array.isArray(o)?o:Ule(o,a);return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(BY,{group:"filter"},(0,Sr.createElement)(Vle,{value:{filter:{duotone:u}},onChange:e=>{const n={...r,color:{...e?.filter}};t({style:n})},settings:i})),(0,Sr.createElement)(dH,{group:"block",__experimentalShareWithChildBlocks:!0},(0,Sr.createElement)(Ple,{duotonePalette:a,colorPalette:s,disableCustomDuotone:c,disableCustomColors:l,value:u,onChange:e=>{const n=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(e,a),o={...r,color:{...r?.color,duotone:null!=n?n:e}};t({style:o})},settings:i})))}kr([wr]);const Kle=Hl((e=>t=>{const n=Fr(t.name,"filter.duotone"),r=Iq();return(0,Sr.createElement)(Sr.Fragment,null,n&&"default"===r&&(0,Sr.createElement)(Wle,{...t}),(0,Sr.createElement)(e,{...t}))}),"withDuotoneControls");function Gle({id:e,selector:t,attribute:n}){const r=$le({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),o=Array.isArray(n),i=o?void 0:Ule(n,r),a="string"==typeof n&&i;let s=null;a?s=i:("string"==typeof n&&!a||o)&&(s=n);const l=t.split(",").map((t=>`.${e}${t.trim()}`)).join(", "),c=Array.isArray(s)||"unset"===s,{setStyleOverride:u,deleteStyleOverride:d}=KO(Sq(qO));return(0,Sr.useEffect)((()=>{if(c)return u(e,{css:"unset"!==s?Ole(l,e):Nle(l),__unstableType:"presets"}),u(`duotone-${e}`,{assets:"unset"!==s?Ale(e,s):"",__unstableType:"svgs"}),()=>{d(e),d(`duotone-${e}`)}}),[c,s,l,e,u,d]),null}const qle=Hl((e=>t=>{const n=Wl(e),r=(0,Sr.useMemo)((()=>{const e=Lr(t.name);if(e){if(!zr(e,"filter.duotone",!1))return null;const t=zr(e,"color.__experimentalDuotone",!1);if(t){const n=Mle(e);return"string"==typeof t?Sre(n,t):n}return Mle(e,"filter.duotone",{fallback:!0})}}),[t.name]),o=t?.attributes?.style?.color?.duotone,i=`wp-duotone-${n}`,a=r&&o,s=a?Vl()(t?.className,i):t?.className;return(0,Sr.createElement)(Sr.Fragment,null,a&&(0,Sr.createElement)(Gle,{id:i,selector:r,attribute:o}),(0,Sr.createElement)(e,{...t,className:s}))}),"withDuotoneStyles");function Yle(e){return BC((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:r,__experimentalGetReusableBlockTitle:o}=t(qO),{getBlockType:i,getActiveBlockVariation:a}=t(yi),s=n(e),l=i(s);if(!l)return null;const c=r(e),u=a(s,c),d=jr(l),f=(d?o(c.ref):void 0)||l.title,p=d||Vr(l),m=function(e){const t=e?.style?.position?.type;return"sticky"===t?Hn("Sticky"):"fixed"===t?Hn("Fixed"):null}(c),h={isSynced:p,title:f,icon:l.icon,description:l.description,anchor:c?.anchor,positionLabel:m,positionType:c?.style?.position?.type,name:c?.metadata?.name};return u?{isSynced:p,title:u.title||l.title,icon:u.icon||l.icon,description:u.description||l.description,anchor:c?.anchor,positionLabel:m,positionType:c?.style?.position?.type,name:c?.metadata?.name}:h}),[e])}jt("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Fr(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),jt("editor.BlockEdit","core/editor/duotone/with-editor-controls",Kle),jt("editor.BlockListBlock","core/editor/duotone/with-styles",qle);const{CustomSelectControl:Xle}=KO(aH),Zle="position",Qle="block-editor-hooks__position-selection__select-control__option",Jle={key:"default",value:"",name:Hn("Default"),className:Qle},ece={key:"sticky",value:"sticky",name:$n("Sticky","Name for the value of the CSS position property"),className:Qle,__experimentalHint:Hn("The block will stick to the top of the window instead of scrolling.")},tce={key:"fixed",value:"fixed",name:$n("Fixed","Name for the value of the CSS position property"),className:Qle,__experimentalHint:Hn("The block will not move when the page is scrolled.")},nce=["top","right","bottom","left"],rce=["sticky","fixed"];function oce({name:e}={}){const t=RU("position.fixed"),n=RU("position.sticky"),r=!t&&!n;return!zr(e,Zle)||r}function ice(e){const{attributes:{style:t={}},clientId:n,name:r,setAttributes:o}=e,i=function(e){const t=zr(e,Zle);return!(!0!==t&&!t?.fixed)}(r),a=function(e){const t=zr(e,Zle);return!(!0!==t&&!t?.sticky)}(r),s=t?.position?.type,{firstParentClientId:l}=BC((e=>{const{getBlockParents:t}=e(qO),r=t(n);return{firstParentClientId:r[r.length-1]}}),[n]),c=Yle(l),u=a&&s===ece.value&&c?Nn(Hn("The block will stick to the scrollable area of the parent %s block."),c.title):null,d=(0,Sr.useMemo)((()=>{const e=[Jle];return(a||s===ece.value)&&e.push(ece),(i||s===tce.value)&&e.push(tce),e}),[i,a,s]),f=s&&d.find((e=>e.value===s))||Jle;return eI.select({web:d.length>1?(0,Sr.createElement)(BY,{group:"position"},(0,Sr.createElement)(BH,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:u},(0,Sr.createElement)(Xle,{__nextUnconstrainedWidth:!0,__next40pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:Hn("Position"),hideLabelFromVision:!0,describedBy:Nn(Hn("Currently selected position: %s"),f.name),options:d,value:f,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{(e=>{const n={...t,position:{...t?.position,type:e,top:"sticky"===e||"fixed"===e?"0px":void 0}};o({style:DU(n)})})(e.value)},size:"__unstable-large"}))):null,native:null})}const ace=Hl((e=>t=>{const{name:n}=t,r=Fr(n,Zle),o=oce(t);return[r&&!o&&(0,Sr.createElement)(ice,{key:"position",...t}),(0,Sr.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),sce=Hl((e=>t=>{const{name:n,attributes:r}=t,o=Fr(n,Zle),i=oce(t),a=o&&!i,s=Wl(e),l=(0,Sr.useContext)(A9.__unstableElementContext);let c;a&&(c=function({selector:e,style:t}){let n="";const{type:r}=t?.position||{};return rce.includes(r)?(n+=`${e} {`,n+=`position: ${r};`,nce.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==r&&"fixed"!==r||(n+="z-index: 10"),n+="}",n):n}({selector:`.wp-container-${s}.wp-container-${s}`,style:r?.style})||"");const u=Vl()(t?.className,{[`wp-container-${s}`]:a&&!!c,[`is-position-${r?.style?.position?.type}`]:a&&!!c&&!!r?.style?.position?.type});return(0,Sr.createElement)(Sr.Fragment,null,a&&l&&!!c&&(0,cf.createPortal)((0,Sr.createElement)("style",null,c),l),(0,Sr.createElement)(e,{...t,className:u}))}),"withPositionStyles");jt("editor.BlockListBlock","core/editor/position/with-position-styles",sce),jt("editor.BlockEdit","core/editor/position/with-inspector-controls",ace);const lce=(0,Sr.forwardRef)((function(e,t){const{className:n,...r}=e,o=Vl()("components-button-group",n);return(0,Sr.createElement)("div",{ref:t,role:"group",className:o,...r})})),cce="layout";function uce(e){return Fr(e,"layout")||Fr(e,"__experimentalLayout")}function dce({setAttributes:e,attributes:t,name:n}){const r=jU(n),{layout:{allowEditing:o}}=r,{layout:i}=t,a=RU("layout"),{themeSupportsLayout:s}=BC((e=>{const{getSettings:t}=e(qO);return{themeSupportsLayout:t().supportsLayout}}),[]),l=Iq(),c=zr(n,cce,{}),{allowSwitching:u,allowEditing:d=null==o||o,allowInheriting:f=!0,default:p}=c;if(!d)return null;const m=!(!f||!a||i?.type&&"default"!==i?.type&&"constrained"!==i?.type&&!i?.inherit),h=i||p||{},{inherit:g=!1,type:v="default",contentSize:b=null}=h;if(("default"===v||"constrained"===v)&&!s)return null;const y=pq(v),k=pq("constrained"),w=!h.type&&(b||g),_=!!g||!!b,E=t=>e({layout:t});return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(BY,null,(0,Sr.createElement)(Uq,{title:Hn("Layout")},m&&(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(W$,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:Hn("Inner blocks use content width"),checked:"constrained"===y?.name||_,onChange:()=>e({layout:{type:"constrained"===y?.name||_?"default":"constrained"}}),help:Hn("constrained"===y?.name||_?"Nested blocks use content width with options for full and wide widths.":"Nested blocks will fill the width of this container. Toggle to constrain.")})),!g&&u&&(0,Sr.createElement)(fce,{type:v,onChange:t=>e({layout:{type:t}})}),y&&"default"!==y.name&&(0,Sr.createElement)(y.inspectorControls,{layout:h,onChange:E,layoutBlockSupport:c}),k&&w&&(0,Sr.createElement)(k.inspectorControls,{layout:h,onChange:E,layoutBlockSupport:c}))),!g&&"default"===l&&y&&(0,Sr.createElement)(y.toolBarControls,{layout:h,onChange:E,layoutBlockSupport:c}))}function fce({type:e,onChange:t}){return(0,Sr.createElement)(lce,null,fq.map((({name:n,label:r})=>(0,Sr.createElement)(lg,{key:n,isPressed:e===n,onClick:()=>t(n)},r))))}const pce=Hl((e=>t=>{const{name:n}=t,r=uce(n),o=Iq();return[r&&"default"===o&&(0,Sr.createElement)(dce,{key:"layout",...t}),(0,Sr.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),mce=Hl((e=>t=>{const{name:n,attributes:r}=t,o=uce(n),i=BC((e=>{const{getSettings:t}=e(qO);return!!t().disableLayoutStyles})),a=o&&!i,s=Wl(e),{layout:l}=r,{default:c}=zr(n,cce)||{},u=l?.inherit||l?.contentSize||l?.wideSize?{...l,type:"constrained"}:l||c||{},d=o?function(e={},t=""){const n=BC((e=>{const{getSettings:t}=e(qO);return t().__experimentalFeatures?.useRootPaddingAwareAlignments}),[]),{layout:r}=e,{default:o}=zr(t,cce)||{},i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||o||{},a=[];if(K$[i?.type||"default"]?.className){const e=K$[i?.type||"default"]?.className,n=t.split("/"),r=`wp-block-${"core"===n[0]?n.pop():n.join("-")}-${e}`;a.push(e,r)}return(i?.inherit||i?.contentSize||"constrained"===i?.type)&&n&&a.push("has-global-padding"),i?.orientation&&a.push(`is-${CU(i.orientation)}`),i?.justifyContent&&a.push(`is-content-justification-${CU(i.justifyContent)}`),i?.flexWrap&&"nowrap"===i.flexWrap&&a.push("is-nowrap"),a}(r,n):null,f=`.wp-container-${s}.wp-container-${s}`,p=null!==RU("spacing.blockGap");let m;if(a){const e=pq(u?.type||"default");m=e?.getLayoutStyle?.({blockName:n,selector:f,layout:u,style:r?.style,hasBlockGapSupport:p})}const h=Vl()({[`wp-container-${s}`]:a&&!!m},d),{setStyleOverride:g,deleteStyleOverride:v}=KO(Sq(qO));return(0,Sr.useEffect)((()=>{if(m)return g(s,{css:m}),()=>{v(s)}}),[s,m,g,v]),(0,Sr.createElement)(e,{...t,__unstableLayoutClassNames:h})}),"withLayoutStyles"),hce=Hl((e=>t=>{const{attributes:n}=t,{style:{layout:r={}}={}}=n,{selfStretch:o,flexSize:i}=r,a=o||i,s=BC((e=>{const{getSettings:t}=e(qO);return!!t().disableLayoutStyles})),l=a&&!s,c=Wl(e),u=`.wp-container-content-${c}`;let d="";"fixed"===o&&i?d+=`${u} {\n\t\t\t\tflex-basis: ${i};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===o&&(d+=`${u} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`);const f=Vl()(t?.className,{[`wp-container-content-${c}`]:l&&!!d}),{setStyleOverride:p,deleteStyleOverride:m}=KO(Sq(qO));return(0,Sr.useEffect)((()=>{if(d)return p(c,{css:d}),()=>{m(c)}}),[c,d,p,m]),(0,Sr.createElement)(e,{...t,className:f})}),"withChildLayoutStyles");function gce({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:r,blocksSelection:o,groupingBlockName:i,onClose:a=(()=>{})}){const{replaceBlocks:s}=Sq(qO);return t||n?(0,Sr.createElement)(Sr.Fragment,null,t&&(0,Sr.createElement)(hH,{onClick:()=>{(()=>{const t=ao(o,i);t&&s(e,t)})(),a()}},$n("Group","verb")),n&&(0,Sr.createElement)(hH,{onClick:()=>{(()=>{let t=o[0].innerBlocks;t.length&&(r&&(t=r(o[0].attributes,o[0].innerBlocks)),s(e,t))})(),a()}},$n("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor "))):null}function vce(e){return BC((t=>{const{canEditBlock:n,canMoveBlock:r,canRemoveBlock:o,canLockBlockType:i,getBlockName:a,getBlockRootClientId:s,getTemplateLock:l}=t(qO),c=s(e),u=n(e),d=r(e,c),f=o(e,c);return{canEdit:u,canMove:d,canRemove:f,canLock:i(a(e)),isContentLocked:"contentOnly"===l(e),isLocked:!u||!d||!f}}),[e])}jt("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||uce(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),jt("editor.BlockListBlock","core/editor/layout/with-layout-styles",mce),jt("editor.BlockListBlock","core/editor/layout/with-child-layout-styles",hce),jt("editor.BlockEdit","core/editor/layout/with-inspector-controls",pce);const bce=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"})),yce=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})),kce=(0,Sr.createElement)(Jp,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Sr.createElement)(Qp,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})),wce=["core/block","core/navigation"];function _ce(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function Ece({clientId:e,onClose:t}){const[n,r]=(0,Sr.useState)({move:!1,remove:!1}),{canEdit:o,canMove:i,canRemove:a}=vce(e),{allowsEditLocking:s,templateLock:l,hasTemplateLock:c}=BC((t=>{const{getBlockName:n,getBlockAttributes:r}=t(qO),o=n(e),i=Lr(o);return{allowsEditLocking:wce.includes(o),templateLock:r(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}}),[e]),[u,d]=(0,Sr.useState)(!!l),{updateBlockAttributes:f}=Sq(qO),p=Yle(e),m=Wl(Ece,"block-editor-block-lock-modal__options-title");(0,Sr.useEffect)((()=>{r({move:!i,remove:!a,...s?{edit:!o}:{}})}),[o,i,a,s]);const h=Object.values(n).every(Boolean),g=Object.values(n).some(Boolean)&&!h;return(0,Sr.createElement)(fX,{title:Nn(Hn("Lock %s"),p.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t},(0,Sr.createElement)("p",null,Hn("Choose specific attributes to restrict or lock all available options.")),(0,Sr.createElement)("form",{onSubmit:r=>{r.preventDefault(),f([e],{lock:n,templateLock:u?_ce(n):void 0}),t()}},(0,Sr.createElement)("div",{role:"group","aria-labelledby":m,className:"block-editor-block-lock-modal__options"},(0,Sr.createElement)(see,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,Sr.createElement)("span",{id:m},Hn("Lock all")),checked:h,indeterminate:g,onChange:e=>r({move:e,remove:e,...s?{edit:e}:{}})}),(0,Sr.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},s&&(0,Sr.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,Sr.createElement)(see,{__nextHasNoMarginBottom:!0,label:Hn("Restrict editing"),checked:!!n.edit,onChange:e=>r((t=>({...t,edit:e})))}),(0,Sr.createElement)(tm,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?kce:bce})),(0,Sr.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,Sr.createElement)(see,{__nextHasNoMarginBottom:!0,label:Hn("Disable movement"),checked:n.move,onChange:e=>r((t=>({...t,move:e})))}),(0,Sr.createElement)(tm,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?kce:bce})),(0,Sr.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,Sr.createElement)(see,{__nextHasNoMarginBottom:!0,label:Hn("Prevent removal"),checked:n.remove,onChange:e=>r((t=>({...t,remove:e})))}),(0,Sr.createElement)(tm,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?kce:bce}))),c&&(0,Sr.createElement)(W$,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:Hn("Apply to all blocks inside"),checked:u,disabled:n.move&&!n.remove,onChange:()=>d(!u)})),(0,Sr.createElement)(mR,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,Sr.createElement)(gR,null,(0,Sr.createElement)(lg,{variant:"tertiary",onClick:t},Hn("Cancel"))),(0,Sr.createElement)(gR,null,(0,Sr.createElement)(lg,{variant:"primary",type:"submit"},Hn("Apply"))))))}function xce({clientId:e}){const{canLock:t,isLocked:n}=vce(e),[r,o]=(0,Sr.useReducer)((e=>!e),!1);if(!t)return null;const i=Hn(n?"Unlock":"Lock");return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(hH,{icon:n?bce:yce,onClick:o,"aria-expanded":r,"aria-haspopup":"dialog"},i),r&&(0,Sr.createElement)(Ece,{clientId:e,onClose:o}))}const Sce=()=>{};const Cce=Ie([KY(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:r,getSettings:o}=e(qO),i=n(t),a=o().codeEditingEnabled;return{mode:r(t),blockType:i?Lr(i.name):null,isCodeEditingEnabled:a}})),YY(((e,{onToggle:t=Sce,clientId:n})=>({onToggleMode(){e(qO).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:r=!1,isCodeEditingEnabled:o=!0}){if(!e||!Fr(e,"html",!0)||!o)return null;const i=Hn("visual"===t?"Edit as HTML":"Edit visually");return(0,Sr.createElement)(hH,{onClick:n},!r&&i)})),{Fill:Ice,Slot:Tce}=QS("BlockSettingsMenuControls");function Pce({...e}){return(0,Sr.createElement)(HS,{document},(0,Sr.createElement)(Ice,{...e}))}Pce.Slot=({fillProps:e,clientIds:t=null,__unstableDisplayLocation:n})=>{const{selectedBlocks:r,selectedClientIds:o}=BC((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:r}=e(qO),o=null!==t?t:r();return{selectedBlocks:n(o),selectedClientIds:o}}),[t]),{canLock:i}=vce(o[0]),a=1===o.length&&i,s=function(e){return BC((t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:r,isUngroupable:o,isGroupable:i}=t(qO),{getGroupingBlockName:a,getBlockType:s}=t(yi),l=e?.length?e:r(),c=n(l),[u]=c,d=1===l.length&&o(l[0]);return{clientIds:l,isGroupable:i(l),isUngroupable:d,blocksSelection:c,groupingBlockName:a(),onUngroup:d&&s(u.name)?.transforms?.ungroup}}),[e])}(o),{isGroupable:l,isUngroupable:c}=s,u=l||c;return(0,Sr.createElement)(Tce,{fillProps:{...e,__unstableDisplayLocation:n,selectedBlocks:r,selectedClientIds:o}},(t=>!t?.length>0&&!u&&!a?null:(0,Sr.createElement)(pH,null,u&&(0,Sr.createElement)(gce,{...s,onClose:e?.onClose}),a&&(0,Sr.createElement)(xce,{clientId:o[0]}),t,e?.canMove&&!e?.onlyBlock&&(0,Sr.createElement)(hH,{onClick:Ce(e?.onClose,e?.onMoveTo)},Hn("Move to")),1===e?.count&&(0,Sr.createElement)(Cce,{clientId:e?.firstBlockClientId,onToggle:e?.onClose}))))};const Nce=Pce;function Oce({clientId:e,stopEditingAsBlock:t}){const n=BC((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=t(qO);return n(e)||r(e,!0)}),[e]);return(0,Sr.useEffect)((()=>{n||t()}),[n,t]),null}const Ace=Hl((e=>t=>{const{getBlockListSettings:n,getSettings:r}=BC(qO),o=(0,Sr.useRef)(),{templateLock:i,isLockedByParent:a,isEditingAsBlocks:s}=BC((e=>{const{__unstableGetContentLockingParent:n,getTemplateLock:r,__unstableGetTemporarilyEditingAsBlocks:o}=e(qO);return{templateLock:r(t.clientId),isLockedByParent:!!n(t.clientId),isEditingAsBlocks:o()===t.clientId}}),[t.clientId]),{updateSettings:l,updateBlockListSettings:c,__unstableSetTemporarilyEditingAsBlocks:u}=Sq(qO),d=!a&&"contentOnly"===i,{__unstableMarkNextChangeAsNotPersistent:f,updateBlockAttributes:p}=Sq(qO),m=(0,Sr.useCallback)((()=>{f(),p(t.clientId,{templateLock:"contentOnly"}),c(t.clientId,{...n(t.clientId),templateLock:"contentOnly"}),l({focusMode:o.current}),u()}),[t.clientId,l,c,n,f,p,u]);if(!d&&!s)return(0,Sr.createElement)(e,{key:"edit",...t});const h=s&&!d,g=!s&&d&&t.isSelected;return(0,Sr.createElement)(Sr.Fragment,null,h&&(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Oce,{clientId:t.clientId,stopEditingAsBlock:m}),(0,Sr.createElement)(dH,{group:"other"},(0,Sr.createElement)(Dg,{onClick:()=>{m()}},Hn("Done")))),g&&(0,Sr.createElement)(Nce,null,(({onClose:e})=>(0,Sr.createElement)(hH,{onClick:()=>{f(),p(t.clientId,{templateLock:void 0}),c(t.clientId,{...n(t.clientId),templateLock:!1}),o.current=r().focusMode,l({focusMode:!0}),u(t.clientId),e()}},Hn("Modify")))),(0,Sr.createElement)(e,{key:"edit",...t}))}),"withToolbarControls");jt("editor.BlockEdit","core/content-lock-ui/with-block-controls",Ace);const Mce="metadata";function Rce(e,t=""){if(!e.name.startsWith("core/"))return!1;const n=zr(e,"__experimentalMetadata");return!(!0!==n&&!n?.[t])}jt("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[Mce]?.type||Rce(e,"name")&&(e.attributes={...e.attributes,[Mce]:{type:"object"}}),e})),jt("blocks.getSaveContent.extraProps","core/metadata/save-props",(function(e,t,n){return Rce(t)&&(e[Mce]=n[Mce]),e})),jt("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||Rce(e,"name")&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const Bce=Hl((e=>t=>{const n=Iq(),r=Fr(t.name,"__experimentalConnections",!1);if(!["core/paragraph","core/image"].includes(t.name))return(0,Sr.createElement)(e,{...t});let o;return"core/paragraph"===t.name&&(o="content"),"core/image"===t.name&&(o="url"),r&&t.isSelected?(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(e,{...t}),"default"===n&&(0,Sr.createElement)(BY,null,(0,Sr.createElement)(Uq,{title:Hn("Connections"),initialOpen:!0},(0,Sr.createElement)(Rq,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:Hn("Custom field meta_key"),value:t.attributes?.connections?.attributes?.[o]?.value||"",onChange:e=>{""===e?t.setAttributes({connections:void 0,[o]:void 0,placeholder:void 0}):t.setAttributes({connections:{attributes:{[o]:{source:"meta_fields",value:e}}},[o]:void 0,placeholder:Nn('This content will be replaced on the frontend by the value of "%s" custom field.',e)})}})))):(0,Sr.createElement)(e,{...t})}),"withInspectorControl");window.__experimentalConnections&&(jt("blocks.registerBlockType","core/connections/attribute",(function(e){return Fr(e,"__experimentalConnections",!0)&&(e.attributes={...e.attributes,connections:{type:"object"}}),e})),jt("editor.BlockEdit","core/connections/with-inspector-control",Bce));const Lce={};function Dce(e){const t=BC((e=>e(yi).getBlockTypes()),[]),n=(0,Sr.useMemo)((()=>t?.filter((({blockHooks:t})=>t&&e.blockName in t))),[t,e.blockName]),{blockIndex:r,rootClientId:o,innerBlocksLength:i}=BC((t=>{const{getBlock:n,getBlockIndex:r,getBlockRootClientId:o}=t(qO);return{blockIndex:r(e.clientId),innerBlocksLength:n(e.clientId)?.innerBlocks?.length,rootClientId:o(e.clientId)}}),[e.clientId]),a=BC((t=>{const{getBlock:r,getGlobalBlockCount:i}=t(qO),a=n.reduce(((t,n)=>{if(0===i(n.name))return t;const a=n?.blockHooks?.[e.blockName];let s;switch(a){case"before":case"after":s=r(o)?.innerBlocks;break;case"first_child":case"last_child":s=r(e.clientId).innerBlocks}const l=s?.find((({name:e})=>e===n.name));return l?{...t,[n.name]:l.clientId}:{...t,[n.name]:!1}}),{});return Object.values(a).length>0?a:Lce}),[n,e.blockName,e.clientId,o]),{insertBlock:s,removeBlock:l}=Sq(qO),c=n?.filter((e=>!1!==a?.[e.name]));if(!c.length)return null;const u=n.reduce(((e,t)=>{const[n]=t.name.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});return(0,Sr.createElement)(BY,null,(0,Sr.createElement)(Uq,{className:"block-editor-hooks__block-hooks",title:Hn("Plugins"),initialOpen:!0},Object.keys(u).map((t=>(0,Sr.createElement)(Sr.Fragment,{key:t},(0,Sr.createElement)("h3",null,t),u[t].map((t=>{const n=t.name in a;return(0,Sr.createElement)(W$,{checked:n,key:t.title,label:(0,Sr.createElement)(U$,{justify:"flex-start"},(0,Sr.createElement)(m1,{icon:t.icon}),(0,Sr.createElement)("span",null,t.title)),onChange:()=>{if(!n){const n=t.blockHooks[e.blockName];return void((t,n)=>{switch(n){case"before":case"after":s(t,"after"===n?r+1:r,o,!1);break;case"first_child":case"last_child":s(t,"first_child"===n?0:i,e.clientId,!1)}})(Yr(t.name),n)}const c=a[t.name];l(c,!1)}})})))))))}const zce=Hl((e=>t=>{const n=(0,Sr.createElement)(e,{key:"edit",...t});return(0,Sr.createElement)(Sr.Fragment,null,n,(0,Sr.createElement)(Dce,{blockName:t.name,clientId:t.clientId}))}),"withBlockHooks");jt("editor.BlockEdit","core/block-hooks/with-inspector-control",zce);const Fce=e=>0===e?.trim()?.length;function jce({blockName:e,originalBlockName:t,onClose:n,onSave:r}){const[o,i]=(0,Sr.useState)(e),a=o!==e,s=o===t,l=Fce(o),c=a||s,u=Wl(jce,"block-editor-rename-modal__description");return(0,Sr.createElement)(fX,{title:Hn("Rename"),onRequestClose:n,overlayClassName:"block-editor-block-rename-modal",aria:{describedby:u},focusOnMount:"firstContentElement"},(0,Sr.createElement)("p",{id:u},Hn("Enter a custom name for this block.")),(0,Sr.createElement)("form",{onSubmit:e=>{e.preventDefault(),c&&(NN(Nn(Hn(s||l?'Block name reset to: "%s".':'Block name changed to: "%s".'),o),"assertive"),r(o),n())}},(0,Sr.createElement)(v4,{spacing:"3"},(0,Sr.createElement)(Rq,{__nextHasNoMarginBottom:!0,value:o,label:Hn("Block name"),hideLabelFromVision:!0,placeholder:t,onChange:i,onFocus:e=>e.target.select()}),(0,Sr.createElement)(U$,{justify:"right"},(0,Sr.createElement)(lg,{variant:"tertiary",onClick:n},Hn("Cancel")),(0,Sr.createElement)(lg,{"aria-disabled":!c,variant:"primary",type:"submit"},Hn("Save"))))))}function Vce(e){const[t,n]=(0,Sr.useState)(!1),{clientId:r,customName:o,onChange:i}=e,a=Yle(r);return(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(BY,{group:"advanced"},(0,Sr.createElement)(Rq,{__nextHasNoMarginBottom:!0,label:Hn("Block name"),value:o||"",onChange:i})),(0,Sr.createElement)(Nce,null,(({selectedClientIds:e})=>1===e.length&&r===e[0]?(0,Sr.createElement)(hH,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog"},Hn("Rename")):null)),t&&(0,Sr.createElement)(jce,{blockName:o||"",originalBlockName:a?.title,onClose:()=>n(!1),onSave:e=>{(e===a?.title||Fce(e))&&(e=void 0),i(e)}}))}const Hce=Hl((e=>t=>{const{clientId:n,name:r,attributes:o,setAttributes:i}=t,a=zr(r,"__experimentalMetadata",!1),s=!(!0!==a&&!a?.name);return(0,Sr.createElement)(Sr.Fragment,null,s&&(0,Sr.createElement)(Sr.Fragment,null,(0,Sr.createElement)(Vce,{clientId:n,customName:o?.metadata?.name,onChange:e=>{i({metadata:{...o?.metadata&&o?.metadata,name:e}})}})),(0,Sr.createElement)(e,{key:"edit",...t}))}),"withToolbarControls");jt("editor.BlockEdit","core/block-rename-ui/with-block-rename-control",Hce);const $ce=function(e){return React.createElement("div",null,React.createElement(React.Fragment,null,React.createElement(S9.Content,null)))};wp.i18n.__;var Uce=wp.i18n.__;(0,wp.blocks.registerBlockType)("fluent-booking/calendar",{title:Uce("Fluent Booking"),description:Uce("Fluent Booking"),category:"layout",icon:{src:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"32",viewBox:"0 0 30 32",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_1688_2013)"},React.createElement("path",{d:"M10.1203 1.01286C10.1203 0.453471 9.66787 0 9.10977 0C8.55167 0 8.09924 0.453471 8.09924 1.01286V4.05141C8.09924 4.6108 8.55167 5.06427 9.10977 5.06427C9.66787 5.06427 10.1203 4.6108 10.1203 4.05141V1.01286Z",fill:"#2653C7"}),React.createElement("path",{d:"M22.2466 1.01286C22.2466 0.453471 21.7942 0 21.2361 0C20.678 0 20.2256 0.453471 20.2256 1.01286V4.05141C20.2256 4.6108 20.678 5.06427 21.2361 5.06427C21.7942 5.06427 22.2466 4.6108 22.2466 4.05141V1.01286Z",fill:"#2653C7"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.3622 16.8131C17.2566 17.6376 16.9154 18.3876 16.4061 18.992C15.8715 19.6303 15.152 20.1068 14.3302 20.3405L14.2947 20.3506L14.2145 20.3718L14.2078 20.3735L7.84399 22.0834V20.6003C7.84399 20.5673 7.84399 20.5343 7.84738 20.5013C7.88455 19.8808 8.27389 19.3543 8.81778 19.1215C8.87942 19.0944 8.94277 19.0716 9.00865 19.0538L9.06861 19.0377L17.3613 16.8105V16.8131H17.3622Z",fill:"#2653C7"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.503 11.3442C22.2868 13.0363 21.0731 14.4161 19.471 14.8716L19.4355 14.8817L19.3562 14.9029H19.3553L19.3486 14.9046L7.84399 17.9943V16.5113C7.84399 15.8476 8.24516 15.2779 8.81778 15.0324L9.00865 14.9647L9.06776 14.9486L22.5021 11.3408V11.3442H22.503Z",fill:"#2653C7"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33094 3.54525H24.0152C26.3871 3.54525 28.3099 5.4725 28.3099 7.84988V22.1785H30.331V7.84988C30.331 4.35371 27.5033 1.51953 24.0152 1.51953H6.33094C2.84281 1.51953 0.0151367 4.35371 0.0151367 7.84988V25.5748C0.0151367 29.071 2.84281 31.9052 6.33094 31.9052H20.5468V29.8795H6.33094C3.95902 29.8795 2.03619 27.9522 2.03619 25.5748V7.84988C2.03619 5.4725 3.95902 3.54525 6.33094 3.54525Z",fill:"#2653C7"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.346 22.415V22.083H20.5468V31.9048H20.8779L30.346 22.415Z",fill:"#2653C7"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_1688_2013"},React.createElement("rect",{width:"159",height:"32",fill:"white"}))))},keywords:[Uce("fluent"),Uce("fluent booking"),Uce("calendar"),Uce("booking")],supports:{align:["wide","full"],html:!0},attributes:{slotId:{type:"string",default:""},calendarId:{type:"string",default:""},calendars:{type:"array",default:[]},primary_color:{type:"string",default:"#4587EC"},date_round:{type:"string",default:"4px"},avatarStyle:{type:"string",default:"8px"},hideHostInfo:{type:"string",default:"no"},theme:{type:"string",default:"light"}},edit:re,save:$ce})})()})(); |