| 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:()=>mt,getCachedResolvers:()=>ft,getIsResolving:()=>at,getResolutionError:()=>ut,getResolutionState:()=>it,hasFinishedResolution:()=>lt,hasResolutionFailed:()=>ct,hasResolvingSelectors:()=>pt,hasStartedResolution:()=>st,isResolving:()=>dt});var t={};o.r(t),o.d(t,{failResolution:()=>vt,failResolutions:()=>kt,finishResolution:()=>gt,finishResolutions:()=>yt,invalidateResolution:()=>wt,invalidateResolutionForStore:()=>_t,invalidateResolutionForStoreSelector:()=>Et,startResolution:()=>ht,startResolutions:()=>bt});var n={};o.r(n),o.d(n,{__experimentalHasContentRoleAttribute:()=>Wo,getActiveBlockVariation:()=>Oo,getBlockStyles:()=>Po,getBlockSupport:()=>jo,getBlockType:()=>To,getBlockTypes:()=>Io,getBlockVariations:()=>No,getCategories:()=>Mo,getChildBlockNames:()=>Fo,getCollections:()=>Ro,getDefaultBlockName:()=>Bo,getDefaultBlockVariation:()=>Ao,getFreeformFallbackBlockName:()=>Lo,getGroupingBlockName:()=>zo,getUnregisteredFallbackBlockName:()=>Do,hasBlockSupport:()=>Vo,hasChildBlocks:()=>$o,hasChildBlocksWithInserterSupport:()=>Uo,isMatchingSearchTerm:()=>Ho});var r={};o.r(r),o.d(r,{getBootstrappedBlockType:()=>Yo,getSupportedStyles:()=>qo,getUnprocessedBlockTypes:()=>Xo});var i={};o.r(i),o.d(i,{__experimentalReapplyBlockFilters:()=>ri,addBlockCollection:()=>hi,addBlockStyles:()=>ii,addBlockTypes:()=>ti,addBlockVariations:()=>si,reapplyBlockTypeFilters:()=>ni,removeBlockCollection:()=>gi,removeBlockStyles:()=>ai,removeBlockTypes:()=>oi,removeBlockVariations:()=>li,setCategories:()=>pi,setDefaultBlockName:()=>ci,setFreeformFallbackBlockName:()=>ui,setGroupingBlockName:()=>fi,setUnregisteredFallbackBlockName:()=>di,updateCategory:()=>mi});var a={};o.r(a),o.d(a,{addBootstrappedBlockType:()=>vi,addUnprocessedBlockType:()=>bi});var s={};o.r(s),o.d(s,{find:()=>Ax});var l={};o.r(l),o.d(l,{find:()=>Fx,findNext:()=>Vx,findPrevious:()=>jx,isTabbableIndex:()=>Rx});var c={};o.r(c),o.d(c,{getFormatType:()=>aI,getFormatTypeForBareElement:()=>sI,getFormatTypeForClassName:()=>lI,getFormatTypes:()=>iI});var u={};o.r(u),o.d(u,{addFormatTypes:()=>cI,removeFormatTypes:()=>uI});var d={};o.r(d),o.d(d,{__experimentalGetActiveBlockIdByBlockNames:()=>XP,__experimentalGetAllowedBlocks:()=>SP,__experimentalGetAllowedPatterns:()=>AP,__experimentalGetBlockListSettingsForBlocks:()=>FP,__experimentalGetDirectInsertBlock:()=>IP,__experimentalGetGlobalBlocksByName:()=>oT,__experimentalGetLastBlockAttributeChanges:()=>HP,__experimentalGetParsedPattern:()=>NP,__experimentalGetPatternTransformItems:()=>BP,__experimentalGetPatternsByBlockTypes:()=>RP,__experimentalGetReusableBlockTitle:()=>jP,__experimentalUserPatternCategories:()=>PP,__unstableGetBlockWithoutInnerBlocks:()=>ZI,__unstableGetClientIdWithClientIdsTree:()=>JI,__unstableGetClientIdsTree:()=>eT,__unstableGetContentLockingParent:()=>eN,__unstableGetEditorMode:()=>WP,__unstableGetSelectedBlocksWithPartialSelection:()=>FT,__unstableGetTemporarilyEditingAsBlocks:()=>tN,__unstableGetVisibleBlocks:()=>JP,__unstableHasActiveBlockOverlayActive:()=>nN,__unstableIsFullySelected:()=>BT,__unstableIsLastBlockChangeIgnored:()=>VP,__unstableIsSelectionCollapsed:()=>LT,__unstableIsSelectionMergeable:()=>zT,__unstableIsWithinBlockOverlay:()=>rN,__unstableSelectionHasUnmergeableBlock:()=>DT,areInnerBlocksControlled:()=>YP,canEditBlock:()=>hP,canInsertBlockType:()=>cP,canInsertBlocks:()=>uP,canLockBlockType:()=>gP,canMoveBlock:()=>pP,canMoveBlocks:()=>mP,canRemoveBlock:()=>dP,canRemoveBlocks:()=>fP,didAutomaticChange:()=>GP,getAdjacentBlockClientId:()=>wT,getAllowedBlocks:()=>xP,getBlock:()=>XI,getBlockAttributes:()=>YI,getBlockCount:()=>sT,getBlockEditingMode:()=>oN,getBlockHierarchyRootClientId:()=>yT,getBlockIndex:()=>VT,getBlockInsertionPoint:()=>nP,getBlockListSettings:()=>LP,getBlockMode:()=>YT,getBlockName:()=>GI,getBlockNamesByClientId:()=>aT,getBlockOrder:()=>jT,getBlockParents:()=>vT,getBlockParentsByBlockName:()=>bT,getBlockRootClientId:()=>gT,getBlockSelectionEnd:()=>dT,getBlockSelectionStart:()=>uT,getBlockTransformItems:()=>_P,getBlocks:()=>QI,getBlocksByClientId:()=>iT,getClientIdsOfDescendants:()=>tT,getClientIdsWithDescendants:()=>nT,getDirectInsertBlock:()=>CP,getDraggedBlockClientIds:()=>QT,getFirstMultiSelectedBlockClientId:()=>TT,getGlobalBlockCount:()=>rT,getInserterItems:()=>wP,getLastMultiSelectedBlockClientId:()=>PT,getLowestCommonAncestorWithSelectedBlock:()=>kT,getMultiSelectedBlockClientIds:()=>CT,getMultiSelectedBlocks:()=>IT,getMultiSelectedBlocksEndClientId:()=>RT,getMultiSelectedBlocksStartClientId:()=>MT,getNextBlockClientId:()=>ET,getPatternsByBlockTypes:()=>MP,getPreviousBlockClientId:()=>_T,getSelectedBlock:()=>hT,getSelectedBlockClientId:()=>mT,getSelectedBlockClientIds:()=>ST,getSelectedBlockCount:()=>fT,getSelectedBlocksInitialCaretPosition:()=>xT,getSelectionEnd:()=>cT,getSelectionStart:()=>lT,getSettings:()=>DP,getTemplate:()=>iP,getTemplateLock:()=>aP,hasBlockMovingClientId:()=>KP,hasDraggedInnerBlock:()=>UT,hasInserterItems:()=>EP,hasMultiSelection:()=>KT,hasSelectedBlock:()=>pT,hasSelectedInnerBlock:()=>$T,isAncestorBeingDragged:()=>eP,isAncestorMultiSelected:()=>AT,isBlockBeingDragged:()=>JT,isBlockHighlighted:()=>qP,isBlockInsertionPointVisible:()=>rP,isBlockMultiSelected:()=>OT,isBlockSelected:()=>HT,isBlockValid:()=>qI,isBlockVisible:()=>QP,isBlockWithinSelection:()=>WT,isCaretWithinFormattedText:()=>tP,isDraggingBlocks:()=>ZT,isFirstMultiSelectedBlock:()=>NT,isGroupable:()=>aN,isLastBlockChangePersistent:()=>zP,isMultiSelecting:()=>GT,isNavigationMode:()=>UP,isSelectionEnabled:()=>qT,isTyping:()=>XT,isUngroupable:()=>iN,isValidTemplate:()=>oP,wasBlockJustInserted:()=>ZP});var f={};o.r(f),o.d(f,{__experimentalUpdateSettings:()=>lN,clearBlockRemovalPrompt:()=>pN,deleteStyleOverride:()=>vN,ensureDefaultBlock:()=>fN,hideBlockInterface:()=>cN,privateRemoveBlocks:()=>dN,setBlockRemovalRules:()=>mN,setOpenedBlockSettingsMenu:()=>hN,setStyleOverride:()=>gN,showBlockInterface:()=>uN});var p={};o.r(p),o.d(p,{getBlockRemovalRules:()=>xN,getEnabledBlockParents:()=>_N,getEnabledClientIdsTree:()=>wN,getInserterMediaCategories:()=>TN,getLastInsertedBlocksClientIds:()=>yN,getOpenedBlockSettingsMenu:()=>SN,getRegisteredInserterMediaCategories:()=>IN,getRemovalPromptData:()=>EN,getStyleOverrides:()=>CN,isBlockInterfaceHidden:()=>bN,isBlockSubtreeDisabled:()=>kN});var m={};o.r(m),o.d(m,{__unstableDeleteSelection:()=>uO,__unstableExpandSelection:()=>fO,__unstableMarkAutomaticChange:()=>OO,__unstableMarkLastChangeAsPersistent:()=>PO,__unstableMarkNextChangeAsNotPersistent:()=>NO,__unstableSaveReusableBlock:()=>TO,__unstableSetEditorMode:()=>MO,__unstableSetTemporarilyEditingAsBlocks:()=>HO,__unstableSplitSelection:()=>dO,clearSelectedBlock:()=>qN,duplicateBlocks:()=>BO,enterFormattedText:()=>_O,exitFormattedText:()=>EO,flashBlock:()=>FO,hideInsertionPoint:()=>sO,insertAfterBlock:()=>DO,insertBeforeBlock:()=>LO,insertBlock:()=>oO,insertBlocks:()=>iO,insertDefaultBlock:()=>SO,mergeBlocks:()=>pO,moveBlockToPosition:()=>rO,moveBlocksDown:()=>eO,moveBlocksToPosition:()=>nO,moveBlocksUp:()=>tO,multiSelect:()=>GN,receiveBlocks:()=>FN,registerInserterMediaCategory:()=>$O,removeBlock:()=>hO,removeBlocks:()=>mO,replaceBlock:()=>QN,replaceBlocks:()=>ZN,replaceInnerBlocks:()=>gO,resetBlocks:()=>LN,resetSelection:()=>zN,selectBlock:()=>HN,selectNextBlock:()=>UN,selectPreviousBlock:()=>$N,selectionChange:()=>xO,setBlockEditingMode:()=>UO,setBlockMovingClientId:()=>RO,setBlockVisibility:()=>VO,setHasControlledInnerBlocks:()=>jO,setNavigationMode:()=>AO,setTemplateValidity:()=>lO,showInsertionPoint:()=>aO,startDraggingBlocks:()=>kO,startMultiSelect:()=>WN,startTyping:()=>bO,stopDraggingBlocks:()=>wO,stopMultiSelect:()=>KN,stopTyping:()=>yO,synchronizeTemplate:()=>cO,toggleBlockHighlight:()=>zO,toggleBlockMode:()=>vO,toggleSelection:()=>YN,unsetBlockEditingMode:()=>WO,updateBlock:()=>VN,updateBlockAttributes:()=>jN,updateBlockListSettings:()=>CO,updateSettings:()=>IO,validateBlocksToTemplate:()=>DN});var h={};o.r(h),o.d(h,{Text:()=>AR,block:()=>MR,destructive:()=>BR,highlighterText:()=>DR,muted:()=>LR,positive:()=>RR,upperCase:()=>zR});var g={};o.r(g),o.d(g,{ButtonContentView:()=>P$,LabelView:()=>x$,Uz:()=>O$,Ji:()=>C$,IA:()=>S$});var v={};o.r(v),o.d(v,{registerShortcut:()=>E1,unregisterShortcut:()=>x1});var b={};o.r(b),o.d(b,{getAllShortcutKeyCombinations:()=>A1,getAllShortcutRawKeyCombinations:()=>M1,getCategoryShortcuts:()=>R1,getShortcutAliases:()=>O1,getShortcutDescription:()=>N1,getShortcutKeyCombination:()=>T1,getShortcutRepresentation:()=>P1});var y={};o.r(y),o.d(y,{createErrorNotice:()=>I2,createInfoNotice:()=>C2,createNotice:()=>x2,createSuccessNotice:()=>S2,createWarningNotice:()=>T2,removeAllNotices:()=>N2,removeNotice:()=>P2,removeNotices:()=>O2});var k={};o.r(k),o.d(k,{getNotices:()=>M2});var w={};o.r(w),o.d(w,{set:()=>n7,setDefaults:()=>r7,setPersistenceLayer:()=>o7,toggle:()=>t7});var _={};o.r(_),o.d(_,{get:()=>i7});var E=wp.blockEditor,x=E.InspectorControls,S=E.PanelColorSettings,C=wp.i18n.__,I=wp.components,T=I.PanelBody,P=I.PanelRow,N=window.fluent_booking_block.hosts,O=Object.values(N);const A=function(e){var t=e.attributes,n=t.slotId,r=t.calendarId,o=(t.calendars,t.primary_color),i=t.date_round,a=t.avatarStyle,s=t.hideHostInfo,l=t.theme,c=e.setAttributes,u=[{value:o,onChange:function(e){c({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(",");c({slotId:t[0]}),c({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.events.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:i,onChange:function(e){c({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:a,onChange:function(e){c({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:s,onChange:function(e){c({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:l,onChange:function(e){c({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"!=l?React.createElement("div",{className:"fluent-latest-posts-content-color-settings"},React.createElement(S,{title:C("Customization"),colorSettings:u})):"")};function M(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 R(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 R(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 R(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 B=wp.i18n.__,L=wp.element,D=L.Fragment,z=L.useEffect,F=L.useState,j=function(e){var t=e.attributes.slotId,n=(e.setAttributes,new Date),r=n.getFullYear(),o=n.getMonth(),i=M(F([]),2),a=i[0],s=i[1],l=M(F({}),2),c=l[0],u=l[1],d=M(F(""),2),f=d[0],p=d[1];z((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(null==e?void 0:e.timezone)})).catch((function(e){console.error("There was an error!",e)}))}()}),[t]),z((function(){!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(D,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(D,{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,B("Timezone")),React.createElement("span",{className:"timezone"},f)):""))]},V=o(3379),H=o.n(V),$=o(734),U={insert:"head",singleton:!1};H()($.Z,U);$.Z.locals;function W(e){return W="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},W(e)}function K(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==W(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===W(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(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 X(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 X(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 X(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 Z=wp.element,Q=Z.Fragment,J=Z.useEffect,ee=Z.useState,te=wp.i18n.__,ne=wp.components.Spinner,re=function(e){var t,n,r,o,i,a,s=e.attributes,l=s.slotId,c=(s.calendars,s.calendarId),u=s.eventHash,d=s.avatarStyle,f=s.hideHostInfo,p=s.theme,m=e.setAttributes,h=Y(ee(!1),2),g=h[0],v=h[1],b=Y(ee([]),2),y=b[0],k=b[1],w=Y(ee(!1),2),_=w[0],E=w[1],x=wp.apiFetch,S=wp.url.addQueryArgs,C=Y(ee([]),2),I=C[0],T=C[1];J((function(){P()}),[]),J((function(){l&&N()}),[l]);var P=function(e){v(!0),x({path:S("fluent-booking/v2/calendars",G({},e))}).then((function(e){T(e.calendars.data)})).catch((function(e){E(e)})).finally((function(){v(!1)}))},N=function(e){v(!0),x({path:S("fluent-booking/v2/events/".concat(l),G(G({},e),{},{event_hash:u}))}).then((function(e){k(e.calendar_event)})).catch((function(e){E(e)})).finally((function(){v(!1)}))};return[React.createElement(Q,null,React.createElement("div",{className:l?"fcal_block_landing_page fcal_block_landing_preview":"fcal_block_landing_page "},l&&y?React.createElement("div",{className:p+" fcal_block_preview_wrap"},"no"==f?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:d||"8px"},src:null===(t=y.calendar)||void 0===t||null===(t=t.author_profile)||void 0===t?void 0:t.avatar,alt:null===(n=y.calendar)||void 0===n?void 0:n.title})),React.createElement("h3",{className:"fcal_author_name"},null===(r=y.calendar)||void 0===r?void 0:r.title)),React.createElement("div",{className:"fcal_slot_info"},React.createElement("h2",{className:"fcal_slot_heading"},y.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,y.duration," ",te("Minutes"))),"in_person_organizer"==(null===(o=y.location_settings)||void 0===o?void 0:o.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,null===(i=y.location_settings)||void 0===i?void 0:i.title)):null,"phone_organizer"==(null===(a=y.location_settings)||void 0===a?void 0:a.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,te("Phone Call"))):null),React.createElement("div",{className:"fcal_slot_description"},React.createElement("p",null,y.description))):null,React.createElement("div",{className:"fcal_block_preview_date_wrapper"},React.createElement(j,{attributes:e.attributes,setAttributes:e.setAttributes}))):React.createElement("div",{className:"fcal_block_select_cal"},g?React.createElement("h2",{className:"fcal_block_loading"},te("Loading..."),React.createElement(ne,null)):React.createElement("div",null,I&&I.length&&!_?React.createElement("select",{value:[l,c],id:"fcal_select_calendar",onChange:function(e){var t=e.target.value.split(","),n=I.find((function(e){return e.id==t[1]})).slots.find((function(e){return e.id==t[0]}));m({slotId:t[0],calendarId:t[1],eventHash:n.hash})}},React.createElement("option",{key:"default",value:""},te("---Select a Event---")),I.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,te(_?"Something went wrong!":"No Calendars found!")))))))]},oe=wp.element.Fragment;const ie=function(e){return React.createElement(oe,null,React.createElement("div",{className:"fluent-booking-block"},React.createElement(re,{attributes:e.attributes,setAttributes:e.setAttributes})),React.createElement(A,{attributes:e.attributes,setAttributes:e.setAttributes}))};function ae(e){return ae="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},ae(e)}function se(e){var t=function(e,t){if("object"!==ae(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ae(t)?t:String(t)}function le(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=se(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)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(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 de="function"==typeof Symbol&&Symbol.observable||"@@observable",fe=function(){return Math.random().toString(36).substring(7).split("").join(".")},pe={INIT:"@@redux/INIT"+fe(),REPLACE:"@@redux/REPLACE"+fe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fe()}};function me(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 he(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ue(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ue(1));return n(he)(e,t)}if("function"!=typeof e)throw new Error(ue(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(ue(3));return i}function d(e){if("function"!=typeof e)throw new Error(ue(4));if(l)throw new Error(ue(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(ue(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!me(e))throw new Error(ue(7));if(void 0===e.type)throw new Error(ue(8));if(l)throw new Error(ue(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:pe.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ue(10));o=e,f({type:pe.REPLACE})}})[de]=function(){var e,t=d;return e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ue(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[de]=function(){return this},e},r}function ge(){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 ve(){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(ue(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=ge.apply(void 0,i)(n.dispatch),ce(ce({},n),{},{dispatch:r})}}}var be=o(3909),ye=o.n(be);var ke=o(4320);function we(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function _e(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ee(e){var t,n;return!1!==_e(e)&&(void 0===(t=e.constructor)||!1!==_e(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function xe(e){return Ee(e)&&"string"==typeof e.type}function Se(e={},t){const n=Object.entries(e).map((([e,t])=>(n,r,o,i,a)=>{if(l=e,!xe(s=n)||s.type!==l)return!1;var s,l;const c=t(n);return we(c)?c.then(i,a):i(c),!0}));n.push(((e,n)=>!!xe(e)&&(t(e),n(),!0)));const r=(0,ke.create)(n);return e=>new Promise(((n,o)=>r(e,(e=>{xe(e)&&t(e),n(e)}),o)))}function Ce(e={}){return t=>{const n=Se(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 Ie=(e=!1)=>(...t)=>(...n)=>{const r=t.flat();return e&&r.reverse(),r.reduce(((e,t)=>[t(...e)]),n)[0]},Te=Ie(),Pe=Ie(!0);function Ne(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 Oe(e){const t=(...n)=>e(t.registry.select)(...n);return t.isRegistrySelector=!0,t}function Ae(e){return e.isRegistryControl=!0,e}const Me="@@data/SELECT",Re="@@data/RESOLVE_SELECT",Be="@@data/DISPATCH";const Le={[Me]:Ae((e=>({storeKey:t,selectorName:n,args:r})=>e.select(t)[n](...r))),[Re]:Ae((e=>({storeKey:t,selectorName:n,args:r})=>{const o=e.select(t)[n].hasResolver?"resolveSelect":"select";return e[o](t)[n](...r)})),[Be]:Ae((e=>({storeKey:t,actionName:n,args:r})=>e.dispatch(t)[n](...r)))};var De=o(4155);const ze=["@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"],Fe=[];let je;try{je=!De.env.IS_WORDPRESS_CORE}catch(Zo){je=!0}const Ve=(e,t)=>{if(!ze.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(!je&&Fe.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 Fe.push(t),{lock:He,unlock:$e}};function He(e,t){if(!e)throw new Error("Cannot lock an undefined object.");We in e||(e[We]={}),Ue.set(e[We],t)}function $e(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(We in e))throw new Error("Cannot unlock an object that was not locked before. ");return Ue.get(e[We])}const Ue=new WeakMap,We=Symbol("Private API ID");const{lock:Ke,unlock:Ge}=Ve("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/data"),qe=()=>e=>t=>we(t)?t.then((t=>{if(t)return e(t)})):e(t),Ye=(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 Xe(e){return()=>t=>n=>"function"==typeof n?n(e):t(n)}function Ze(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 Qe=(Je="selectorName",e=>(t={},n)=>{const r=n[Je];if(void 0===r)return t;const o=e(t[r],n);return o===t[r]?t:{...t,[r]:o}})(((e=new(ye()),t)=>{switch(t.type){case"START_RESOLUTION":{const n=new(ye())(e);return n.set(Ze(t.args),{status:"resolving"}),n}case"FINISH_RESOLUTION":{const n=new(ye())(e);return n.set(Ze(t.args),{status:"finished"}),n}case"FAIL_RESOLUTION":{const n=new(ye())(e);return n.set(Ze(t.args),{status:"error",error:t.error}),n}case"START_RESOLUTIONS":{const n=new(ye())(e);for(const e of t.args)n.set(Ze(e),{status:"resolving"});return n}case"FINISH_RESOLUTIONS":{const n=new(ye())(e);for(const e of t.args)n.set(Ze(e),{status:"finished"});return n}case"FAIL_RESOLUTIONS":{const n=new(ye())(e);return t.args.forEach(((e,r)=>{const o={status:"error",error:void 0},i=t.errors[r];i&&(o.error=i),n.set(Ze(e),o)})),n}case"INVALIDATE_RESOLUTION":{const n=new(ye())(e);return n.delete(Ze(t.args)),n}}return e}));var Je;const et=(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 Qe(e,t)}return e};var tt={};function nt(e){return[e]}function rt(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 ot(e,t){var n,r=t||nt;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(tt)||((i=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,s.set(tt,i)),s.get(tt)}(s=r.apply(null,a)),t.isUniqueByDependants||(t.lastDependants&&!rt(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),o=t.head;o;){if(rt(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 it(e,t,n){const r=e[t];if(r)return r.get(Ze(n))}function at(e,t,n){const r=it(e,t,n);return r&&"resolving"===r.status}function st(e,t,n){return void 0!==it(e,t,n)}function lt(e,t,n){const r=it(e,t,n)?.status;return"finished"===r||"error"===r}function ct(e,t,n){return"error"===it(e,t,n)?.status}function ut(e,t,n){const r=it(e,t,n);return"error"===r?.status?r.error:null}function dt(e,t,n){return"resolving"===it(e,t,n)?.status}function ft(e){return e}function pt(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}const mt=ot((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 ht(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function gt(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function vt(e,t,n){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:n}}function bt(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function yt(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function kt(e,t,n){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:n}}function wt(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function _t(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Et(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const xt=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},St=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,n])=>[e,t(n,e)]))),Ct=(e,t)=>t instanceof Map?Object.fromEntries(t):t;function It(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 Tt(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,...Le},i=St(o,(e=>e.isRegistryControl?e(n):e)),a=[Ye(n,e),qe,Ce(i),Xe(r)],s=[ve(...a)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&s.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:Ct}}));const{reducer:l,initialState:c}=t,u=Ne({metadata:et,root:l});return he(u,{root:c},Pe(s))}(n,r,s,{registry:s,get dispatch(){return g},get select(){return _},get resolveSelect(){return S()}});Ke(u,a);const d=function(){const e={};return{isRunning:(t,n)=>e[t]&&e[t].get(xt(n)),clear(t,n){e[t]&&e[t].delete(xt(n))},markAsRunning(t,n){e[t]||(e[t]=new(ye())),e[t].set(xt(n),!0)}}}();function f(e){return(...t)=>Promise.resolve(u.dispatch(e(...t)))}const p={...St(t,f),...St(r.actions,f)},m=It(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)});Ke(p,h);const v=r.resolvers?function(e){return St(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();st(a,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),r.dispatch(ht(t,e));try{const o=n.fulfill(...e);o&&await r.dispatch(o),r.dispatch(gt(t,e))}catch(n){r.dispatch(vt(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={...St(e,(function(e){const t=(...t)=>{const n=u.__unstableOriginalGetState();return e(n.metadata,...t)};return t.hasResolver=!1,t})),...St(r.selectors,b)},k=It(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())});Ke(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 St(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 St(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 Ke(s,a),s}const Pt=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 Nt=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 Ot=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!Nt(n))return;if(!Pt(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 At=function(e,t,n=!1){return function(r,o){const i=e[t];if(!Nt(r))return;if(!n&&!Pt(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 Mt=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 Rt=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 Bt=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 Lt=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 Dt=function(e,t){return function(n){const r=e[t];if(Nt(n))return r[n]&&r[n].runs?r[n].runs:0}};class zt{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Ot(this,"actions"),this.addFilter=Ot(this,"filters"),this.removeAction=At(this,"actions"),this.removeFilter=At(this,"filters"),this.hasAction=Mt(this,"actions"),this.hasFilter=Mt(this,"filters"),this.removeAllActions=At(this,"actions",!0),this.removeAllFilters=At(this,"filters",!0),this.doAction=Rt(this,"actions"),this.applyFilters=Rt(this,"filters",!0),this.currentAction=Bt(this,"actions"),this.currentFilter=Bt(this,"filters"),this.doingAction=Lt(this,"actions"),this.doingFilter=Lt(this,"filters"),this.didAction=Dt(this,"actions"),this.didFilter=Dt(this,"filters")}}const Ft=function(){return new zt},jt=Ft(),{addAction:Vt,addFilter:Ht,removeAction:$t,removeFilter:Ut,hasAction:Wt,hasFilter:Kt,removeAllActions:Gt,removeAllFilters:qt,doAction:Yt,applyFilters:Xt,currentAction:Zt,currentFilter:Qt,doingAction:Jt,doingFilter:en,didAction:tn,didFilter:nn,actions:rn,filters:on}=jt,an=Object.create(null);function sn(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 an||(Yt("deprecated",e,t,l),console.warn(l),an[l]=!0)}const ln={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 cn(){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 un(e){return"string"==typeof e?e:e.name}function dn(e={},t=null){const n={},r=cn();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=cn();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{Ge(o.store).registerPrivateActions(Ge(t).privateActionsOf(e)),Ge(o.store).registerPrivateSelectors(Ge(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=un(o),a=n[i];return a?a.subscribe(e):t?t.subscribe(e,o):r.subscribe(e)},select:function(e){const r=un(e);o?.add(r);const i=n[r];return i?i.getSelectors():t?.select(r)},resolveSelect:function(e){const r=un(e);o?.add(r);const i=n[r];return i?i.getResolveSelectors():t&&t.resolveSelect(r)},suspendSelect:function(e){const r=un(e);o?.add(r);const i=n[r];return i?i.getSuspendSelectors():t&&t.suspendSelect(r)},dispatch:function(e){const r=un(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){sn("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,(()=>Tt(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(ln);for(const[t,n]of Object.entries(e))s.register(Tt(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 Ke(l,{privateActionsOf:e=>{try{return Ge(n[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return Ge(n[e].store).privateSelectors}catch(e){return{}}}}),l}const fn=dn(),pn=Ne,mn=(fn.resolveSelect,fn.suspendSelect,fn.subscribe,fn.registerGenericStore,fn.registerStore),hn=(fn.use,fn.register);var gn=function(){return gn=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},gn.apply(this,arguments)};function vn(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 bn(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 yn(e){return e.toLowerCase()}var kn=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],wn=/[^A-Z0-9]+/gi;function _n(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?kn:n,o=t.stripRegexp,i=void 0===o?wn:o,a=t.transform,s=void 0===a?yn:a,l=t.delimiter,c=void 0===l?" ":l,u=En(En(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 En(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function xn(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 Sn(e,t){return void 0===t&&(t={}),_n(e,gn({delimiter:"",transform:xn},t))}function Cn(e,t){return 0===t?e.toLowerCase():xn(e,t)}function In(e,t){return void 0===t&&(t={}),Sn(e,gn({transform:Cn},t))}function Tn(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 Pn=o(8975),Nn=o.n(Pn);const On=Tn(console.error);function An(e,...t){try{return Nn().sprintf(e,...t)}catch(t){return t instanceof Error&&On("sprintf error: \n\n"+t.toString()),e}}var Mn,Rn,Bn,Ln;Mn={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},Rn=["(","?"],Bn={")":["("],":":["?","?:"]},Ln=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Dn={"!":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 zn(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(Ln);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Bn[n]){if(Bn[n][0]===o){n=Bn[n][1]||n;break}}else if(Rn.indexOf(o)>=0||Mn[o]<Mn[n]){a.push(o);break}i.push(o)}Bn[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=Dn[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 Fn={contextDelimiter:"",onMissingKey:null};function jn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Fn)this.options[n]=void 0!==t&&n in t?t[n]:Fn[n]}jn.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=zn(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},jn.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 Vn={plural_forms:e=>1===e?0:1},Hn=/^i18n\.(n?gettext|has_translation)(_|$)/,$n=((e,t,n)=>{const r=new jn({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...Vn,...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=>{Hn.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,"":{...Vn,...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,jt),Un=($n.getLocaleData.bind($n),$n.setLocaleData.bind($n),$n.resetLocaleData.bind($n),$n.subscribe.bind($n),$n.__.bind($n)),Wn=$n._x.bind($n),Kn=$n._n.bind($n),Gn=($n._nx.bind($n),$n.isRTL.bind($n));$n.hasTranslation.bind($n);var qn={grad:.9,turn:360,rad:360/(2*Math.PI)},Yn=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Xn=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Zn=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Qn=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Jn=function(e){return{r:Zn(e.r,0,255),g:Zn(e.g,0,255),b:Zn(e.b,0,255),a:Zn(e.a)}},er=function(e){return{r:Xn(e.r),g:Xn(e.g),b:Xn(e.b),a:Xn(e.a,3)}},tr=/^#([0-9a-f]{3,8})$/i,nr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},rr=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}},or=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}},ir=function(e){return{h:Qn(e.h),s:Zn(e.s,0,100),l:Zn(e.l,0,100),a:Zn(e.a)}},ar=function(e){return{h:Xn(e.h),s:Xn(e.s),l:Xn(e.l),a:Xn(e.a,3)}},sr=function(e){return or((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},lr=function(e){return{h:(t=rr(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},cr=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ur=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,dr=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fr=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,pr={string:[[function(e){var t=tr.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?Xn(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?Xn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=dr.exec(e)||fr.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Jn({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=cr.exec(e)||ur.exec(e);if(!t)return null;var n,r,o=ir({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(qn[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return sr(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 Yn(t)&&Yn(n)&&Yn(r)?Jn({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(!Yn(t)||!Yn(n)||!Yn(r))return null;var a=ir({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return sr(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Yn(t)||!Yn(n)||!Yn(r))return null;var a=function(e){return{h:Qn(e.h),s:Zn(e.s,0,100),v:Zn(e.v,0,100),a:Zn(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return or(a)},"hsv"]]},mr=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]},hr=function(e){return"string"==typeof e?mr(e.trim(),pr.string):"object"==typeof e&&null!==e?mr(e,pr.object):[null,void 0]},gr=function(e,t){var n=lr(e);return{h:n.h,s:Zn(n.s+100*t,0,100),l:n.l,a:n.a}},vr=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},br=function(e,t){var n=lr(e);return{h:n.h,s:n.s,l:Zn(n.l+100*t,0,100),a:n.a}},yr=function(){function e(e){this.parsed=hr(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 Xn(vr(this.rgba),2)},e.prototype.isDark=function(){return vr(this.rgba)<.5},e.prototype.isLight=function(){return vr(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=er(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?nr(Xn(255*o)):"","#"+nr(t)+nr(n)+nr(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return er(this.rgba)},e.prototype.toRgbString=function(){return t=(e=er(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 ar(lr(this.rgba))},e.prototype.toHslString=function(){return t=(e=ar(lr(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=rr(this.rgba),{h:Xn(e.h),s:Xn(e.s),v:Xn(e.v),a:Xn(e.a,3)};var e},e.prototype.invert=function(){return kr({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),kr(gr(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),kr(gr(this.rgba,-e))},e.prototype.grayscale=function(){return kr(gr(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),kr(br(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),kr(br(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?kr({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Xn(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=lr(this.rgba);return"number"==typeof e?kr({h:e,s:t.s,l:t.l,a:t.a}):Xn(t.h)},e.prototype.isEqual=function(e){return this.toHex()===kr(e).toHex()},e}(),kr=function(e){return e instanceof yr?e:new yr(e)},wr=[],_r=function(e){e.forEach((function(e){wr.indexOf(e)<0&&(e(yr,pr),wr.push(e))}))};function Er(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 xr=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Sr=function(e){return.2126*xr(e.r)+.7152*xr(e.g)+.0722*xr(e.b)};function Cr(e){e.prototype.luminance=function(){return e=Sr(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=Sr(i))>(l=Sr(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 Ir=o(7294),Tr=o.t(Ir,2);const Pr="block-default",Nr=["attributes","supports","save","migrate","isEligible","apiVersion"],Or={"--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}},Ar={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"},Mr={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"typography.fontFamilies":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0};function Rr(e){return fn.select(e)}function Br(){return Rr(wi).getFreeformFallbackBlockName()}function Lr(){return Rr(wi).getUnregisteredFallbackBlockName()}function Dr(){return Rr(wi).getDefaultBlockName()}function zr(e){return Rr(wi)?.getBlockType(e)}function Fr(){return Rr(wi).getBlockTypes()}function jr(e,t,n){return Rr(wi).getBlockSupport(e,t,n)}function Vr(e,t,n){return Rr(wi).hasBlockSupport(e,t,n)}function Hr(e){return"core/block"===e?.name}function $r(e){return"core/template-part"===e?.name}const Ur={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Wr;const Kr=new Uint8Array(16);function Gr(){if(!Wr&&(Wr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Wr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wr(Kr)}const qr=[];for(let e=0;e<256;++e)qr.push((e+256).toString(16).slice(1));function Yr(e,t=0){return qr[e[t+0]]+qr[e[t+1]]+qr[e[t+2]]+qr[e[t+3]]+"-"+qr[e[t+4]]+qr[e[t+5]]+"-"+qr[e[t+6]]+qr[e[t+7]]+"-"+qr[e[t+8]]+qr[e[t+9]]+"-"+qr[e[t+10]]+qr[e[t+11]]+qr[e[t+12]]+qr[e[t+13]]+qr[e[t+14]]+qr[e[t+15]]}const Xr=function(e,t,n){if(Ur.randomUUID&&!t&&!e)return Ur.randomUUID();const r=(e=e||{}).random||(e.rng||Gr)();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 Yr(r)};function Zr(e,t={},n=[]){const r=go(e,t);return{clientId:Xr(),name:e,isValid:!0,attributes:r,innerBlocks:n}}function Qr(e=[]){return e.map((e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],[n,r,o=[]]=t;return Zr(n,r,Qr(o))}))}function Jr(e,t={},n){const r=Xr(),o=go(e.name,{...e.attributes,...t});return{...e,clientId:r,attributes:o,innerBlocks:n||e.innerBlocks.map((e=>Jr(e)))}}function eo(e,t={},n){const r=Xr();return{...e,clientId:r,attributes:{...e.attributes,...t},innerBlocks:n||e.innerBlocks.map((e=>eo(e)))}}const to=(e,t,n)=>{if(!n.length)return!1;const r=n.length>1,o=n[0].name;if(!(no(e)||!r||e.isMultiBlock))return!1;if(!no(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)&&!no(e))&&(!(!r&&"from"===t&&ro(i.name)&&ro(e.blockName))&&!!so(e,n))},no=e=>e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*"),ro=e=>e===Rr(wi).getGroupingBlockName();function oo(e){if(!e.length)return[];const t=(e=>e.length?Fr().filter((t=>!!io(ao("from",t.name),(t=>to(t,"from",e))))):[])(e),n=(e=>{if(!e.length)return[];const t=zr(e[0].name);return(t?ao("to",t.name):[]).filter((t=>t&&to(t,"to",e))).map((e=>e.blocks)).flat().map(zr)})(e);return[...new Set([...t,...n])]}function io(e,t){const n=Ft();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 ao(e,t){if(void 0===t)return Fr().map((({name:t})=>ao(e,t))).flat();const n=ho(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)&&(!!no(e)||e.blocks.every((e=>o.supportedMobileTransforms.includes(e)))))):o[e];return a.map((e=>({...e,blockName:r,usingMobileTransformations:i})))}function so(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 lo(e,t){const n=Array.isArray(e)?e:[e],r=n.length>1,o=n[0],i=o.name,a=ao("from",t),s=io(ao("to",i),(e=>"block"===e.type&&(no(e)||-1!==e.blocks.indexOf(t))&&(!r||e.isMultiBlock)&&so(e,n)))||io(a,(e=>"block"===e.type&&(no(e)||-1!==e.blocks.indexOf(i))&&(!r||e.isMultiBlock)&&so(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=>!zr(e.name))))return null;if(!l.some((e=>e.name===t)))return null;const c=l.map(((t,n,r)=>Xt("blocks.switchToBlockType.transformedBlock",t,e,n,r)));return c}const co=(e,t)=>{var n;return Zr(e,t.attributes,(null!==(n=t.innerBlocks)&&void 0!==n?n:[]).map((e=>co(e.name,e))))};_r([Er,Cr]);const uo=["#191e23","#f8f9f9"];function fo(e){var t;fo[e.name]||(fo[e.name]=Zr(e.name));const n=fo[e.name],r=zr(e.name);return Object.keys(null!==(t=r?.attributes)&&void 0!==t?t:{}).every((t=>n.attributes[t]===e.attributes[t]))}function po(e){return e.name===Dr()&&fo(e)}function mo(e){return!!e&&("string"==typeof e||(0,Ir.isValidElement)(e)||"function"==typeof e||e instanceof Ir.Component)}function ho(e){return"string"==typeof e?zr(e):e}function go(e,t){const n=zr(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 vo(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const bo=[{slug:"text",title:Un("Text")},{slug:"media",title:Un("Media")},{slug:"design",title:Un("Design")},{slug:"widgets",title:Un("Widgets")},{slug:"theme",title:Un("Theme")},{slug:"embed",title:Un("Embeds")},{slug:"reusable",title:Un("Reusable blocks")}];function yo(e){return e.reduce(((e,t)=>({...e,[t.name]:t})),{})}function ko(e){return e.reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[])}function wo(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 _o=pn({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])=>[In(e),t]))),i.name=n),i?{...e,[n]:i}:e;case"REMOVE_BLOCK_TYPES":return vo(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 vo(e,t.names)}return e},blockTypes:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...yo(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return vo(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(yo(t.blockTypes)).map((([t,n])=>{var r,o;return[t,ko([...(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]:ko([...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(yo(t.blockTypes)).map((([t,n])=>{var r,o;return[t,ko([...(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]:ko([...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:wo("SET_DEFAULT_BLOCK_NAME"),freeformFallbackBlockName:wo("SET_FREEFORM_FALLBACK_BLOCK_NAME"),unregisteredFallbackBlockName:wo("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),groupingBlockName:wo("SET_GROUPING_BLOCK_NAME"),categories:function(e=bo,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 vo(e,t.namespace)}return e}});var Eo=o(6826),xo=o.n(Eo);const So=(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},Co=(e,t)=>"string"==typeof t?To(e,t):t,Io=ot((e=>Object.values(e.blockTypes)),(e=>[e.blockTypes]));function To(e,t){return e.blockTypes[t]}function Po(e,t){return e.blockStyles[t]}const No=ot(((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 Oo(e,t,n,r){const o=No(e,t,r),i=o?.find((r=>{if(Array.isArray(r.isActive)){const o=To(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 Ao(e,t,n){const r=No(e,t,n);return[...r].reverse().find((({isDefault:e})=>!!e))||r[0]}function Mo(e){return e.categories}function Ro(e){return e.collections}function Bo(e){return e.defaultBlockName}function Lo(e){return e.freeformFallbackBlockName}function Do(e){return e.unregisteredFallbackBlockName}function zo(e){return e.groupingBlockName}const Fo=ot(((e,t)=>Io(e).filter((e=>e.parent?.includes(t))).map((({name:e})=>e))),(e=>[e.blockTypes])),jo=(e,t,n,r)=>{const o=Co(e,t);return o?.supports?So(o.supports,n,r):r};function Vo(e,t,n,r){return!!jo(e,t,n,r)}function Ho(e,t,n){const r=Co(e,t),o=Te([e=>xo()(null!=e?e:""),e=>e.toLowerCase(),e=>e.trim()]),i=o(n),a=Te([o,e=>e.includes(i)]);return a(r.title)||r.keywords?.some(a)||a(r.category)||"string"==typeof r.description&&a(r.description)}const $o=(e,t)=>Fo(e,t).length>0,Uo=(e,t)=>Fo(e,t).some((t=>Vo(e,t,"inserter",!0))),Wo=ot(((e,t)=>{const n=To(e,t);return!!n&&Object.entries(n.attributes).some((([,{__experimentalRole:e}])=>"content"===e))}),((e,t)=>[e.blockTypes[t]?.attributes])),Ko=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textDecoration","textTransform","letterSpacing"];function Go(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 qo=ot(((e,t,n)=>{if(!t)return Go(Ko,t,n);const r=To(e,t);if(!r)return[];const o=[];return r?.supports?.spacing?.blockGap&&o.push("blockGap"),r?.supports?.shadow&&o.push("shadow"),Object.keys(Or).forEach((e=>{Or[e].support&&(Or[e].requiresOptOut&&Or[e].support[0]in r.supports&&!1!==So(r.supports,Or[e].support)||So(r.supports,Or[e].support,!1))&&o.push(e)})),Go(o,t,n)}),((e,t)=>[e.blockTypes[t]]));function Yo(e,t){return e.bootstrappedBlockTypes[t]}function Xo(e){return e.unprocessedBlockTypes}const{error:Zo,warn:Qo}=window.console,Jo={common:"text",formatting:"text",layout:"design"},ei=(e,t)=>({select:n})=>{const r={name:e,icon:Pr,keywords:[],attributes:{},providesContext:{},usesContext:[],selectors:{},supports:{},styles:[],variations:[],blockHooks:{},save:()=>null,...n.getBootstrappedBlockType(e),...t},o=Xt("blocks.registerBlockType",r,e,null);if(o.description&&"string"!=typeof o.description&&sn("Declaring non-string block descriptions",{since:"6.2"}),o.deprecated&&(o.deprecated=o.deprecated.map((e=>Object.fromEntries(Object.entries(Xt("blocks.registerBlockType",{...vo(r,Nr),...e},r.name,e)).filter((([e])=>Nr.includes(e))))))),Ee(o))if("function"==typeof o.save)if("edit"in o&&"function"!=typeof o.edit)Zo('The "edit" property must be a valid function.');else if(Jo.hasOwnProperty(o.category)&&(o.category=Jo[o.category]),"category"in o&&!n.getCategories().some((({slug:e})=>e===o.category))&&(Qo('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(mo(e=e||Pr))return{src:e};if("background"in e){const t=kr(e.background),n=e=>t.contrast(e),r=Math.max(...uo.map(n));return{...e,foreground:e.foreground?e.foreground:uo.find((e=>n(e)===r)),shadowColor:t.alpha(.3).toRgbString()}}return e}(o.icon),mo(o.icon.src))return o;Zo("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 Zo("Block titles must be strings.");else Zo('The block "'+e+'" must have a title.');else Zo('The "save" property must be a valid function.');else Zo("Block settings must be a valid object.")};function ti(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Array.isArray(e)?e:[e]}}function ni(){return({dispatch:e,select:t})=>{const n=[];for(const[r,o]of Object.entries(t.getUnprocessedBlockTypes())){const t=e(ei(r,o));t&&n.push(t)}n.length&&e.addBlockTypes(n)}}function ri(){return sn('wp.data.dispatch( "core/blocks" ).__experimentalReapplyBlockFilters',{since:"6.4",alternative:"reapplyBlockFilters"}),ni()}function oi(e){return{type:"REMOVE_BLOCK_TYPES",names:Array.isArray(e)?e:[e]}}function ii(e,t){return{type:"ADD_BLOCK_STYLES",styles:Array.isArray(t)?t:[t],blockName:e}}function ai(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Array.isArray(t)?t:[t],blockName:e}}function si(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Array.isArray(t)?t:[t],blockName:e}}function li(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Array.isArray(t)?t:[t],blockName:e}}function ci(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function ui(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function di(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function fi(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function pi(e){return{type:"SET_CATEGORIES",categories:e}}function mi(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function hi(e,t,n){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:n}}function gi(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}function vi(e,t){return{type:"ADD_BOOTSTRAPPED_BLOCK_TYPE",name:e,blockType:t}}function bi(e,t){return({dispatch:n})=>{n({type:"ADD_UNPROCESSED_BLOCK_TYPE",name:e,blockType:t});const r=n(ei(e,t));r&&n.addBlockTypes(r)}}const{lock:yi,unlock:ki}=Ve("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/blocks"),wi=Tt("core/blocks",{reducer:_o,selectors:n,actions:i});let _i,Ei,xi,Si;hn(wi),ki(wi).registerPrivateSelectors(r),ki(wi).registerPrivateActions(a);const Ci=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function Ii(e,t,n,r,o){return{blockName:e,attrs:t,innerBlocks:n,innerHTML:r,innerContent:o}}function Ti(e){return Ii(null,{},[],e,[e])}const Pi=e=>{_i=e,Ei=0,xi=[],Si=[],Ci.lastIndex=0;do{}while(Ni());return xi};function Ni(){const e=Si.length,t=function(){const e=Ci.exec(_i);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>Ei?Ei:null;switch(n){case"no-more-tokens":if(0===e)return Oi(),!1;if(1===e)return Mi(),!1;for(;0<Si.length;)Mi();return!1;case"void-block":return 0===e?(null!==s&&xi.push(Ti(_i.substr(s,i-s))),xi.push(Ii(r,o,[],"",[])),Ei=i+a,!0):(Ai(Ii(r,o,[],"",[]),i,a),Ei=i+a,!0);case"block-opener":return Si.push(function(e,t,n,r,o){return{block:e,tokenStart:t,tokenLength:n,prevOffset:r||t+n,leadingHtmlStart:o}}(Ii(r,o,[],"",[]),i,a,i+a,s)),Ei=i+a,!0;case"block-closer":if(0===e)return Oi(),!1;if(1===e)return Mi(i),Ei=i+a,!0;const t=Si.pop(),n=_i.substr(t.prevOffset,i-t.prevOffset);return t.block.innerHTML+=n,t.block.innerContent.push(n),t.prevOffset=i+a,Ai(t.block,t.tokenStart,t.tokenLength,i+a),Ei=i+a,!0;default:return Oi(),!1}}function Oi(e){const t=e||_i.length-Ei;0!==t&&xi.push(Ti(_i.substr(Ei,t)))}function Ai(e,t,n,r){const o=Si[Si.length-1];o.block.innerBlocks.push(e);const i=_i.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 Mi(e){const{block:t,leadingHtmlStart:n,prevOffset:r,tokenStart:o}=Si.pop(),i=e?_i.substr(r,e-r):_i.substr(r);i&&(t.innerHTML+=i,t.innerContent.push(i)),null!==n&&xi.push(Ti(_i.substr(n,o-n))),xi.push(t)}const Ri=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function Bi(e,t){const n=function(e){const t=[];let n,r=e;for(;n=r.match(Ri);){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 Li({children:e,...t}){let n="";return Ir.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(n+=e)})),(0,Ir.createElement)("div",{dangerouslySetInnerHTML:{__html:n},...t})}function Di(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),_n(e,gn({delimiter:"."},t))}(e,gn({delimiter:"-"},t))}const zi=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function Fi(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function ji(e){return e.replace(/</g,"<")}function Vi(e){return function(e){return e.replace(/>/g,">")}(function(e){return e.replace(/"/g,""")}(Fi(e)))}function Hi(e){return!zi.test(e)}const{Provider:$i,Consumer:Ui}=(0,Ir.createContext)(void 0),Wi=(0,Ir.forwardRef)((()=>null)),Ki=new Set(["string","boolean","number"]),Gi=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),qi=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"]),Yi=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"]),Xi=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 Zi(e,t){return t.some((t=>0===e.indexOf(t)))}function Qi(e){return"key"===e||"children"===e}function Ji(e,t){return"style"===e?function(e){if(!Ee(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=oa(n)+":"+ia(n,r)}return t}(t):t}const ea=["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)),{}),ta=["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)),{}),na=["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 ra(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return ta[t]?ta[t]:ea[t]?Di(ea[t]):na[t]?na[t]:t}function oa(e){return e.startsWith("--")?e:Zi(e,["ms","O","Moz","Webkit"])?"-"+Di(e):Di(e)}function ia(e,t){return"number"!=typeof t||0===t||Xi.has(e)?t:t+"px"}function aa(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return la(e,t,n);switch(typeof e){case"string":return ji(Fi(e));case"number":return e.toString()}const{type:r,props:o}=e;switch(r){case Ir.StrictMode:case Ir.Fragment:return la(o.children,t,n);case Li:const{children:e,...r}=o;return sa(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return sa(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=aa(o.render(),n,r);return i}(r,o,t,n):aa(r(o,n),t,n)}switch(r&&r.$$typeof){case $i.$$typeof:return la(o.children,o.value,n);case Ui.$$typeof:return aa(o.children(t||r._currentValue),t,n);case Wi.$$typeof:return aa(r.render(o),t,n)}return""}function sa(e,t,n,r={}){let o="";if("textarea"===e&&t.hasOwnProperty("value")){o=la(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=la(t.children,n,r));if(!e)return o;const i=function(e){let t="";for(const n in e){const r=ra(n);if(!Hi(r))continue;let o=Ji(n,e[n]);if(!Ki.has(typeof o))continue;if(Qi(n))continue;const i=qi.has(r);if(i&&!1===o)continue;const a=i||Zi(n,["data-","aria-"])||Yi.has(r);("boolean"!=typeof o||a)&&(t+=" "+r,i||("string"==typeof o&&(o=Vi(o)),t+='="'+o+'"'))}return t}(t);return Gi.has(e)?"<"+e+i+"/>":"<"+e+i+">"+o+"</"+e+">"}function la(e,t,n={}){let r="";e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++){r+=aa(e[o],t,n)}return r}const ca=aa;function ua(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 da(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return ua(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 fa(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:fa(i[s++],t))).join("\n").replace(/\n+/g,"\n").trim();return n?ya(r,o,l):l}function pa(e){const t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return Xt("blocks.getBlockDefaultClassName",t,e)}function ma(e){const t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return Xt("blocks.getBlockMenuDefaultClassName",t,e)}const ha={},ga={};function va(e,t,n){const r=ho(e);return ca(function(e,t,n=[]){const r=ho(e);if(!r?.save)return null;let{save:o}=r;if(o.prototype instanceof Ir.Component){const e=new o({attributes:t});o=e.render.bind(e)}ha.blockType=r,ha.attributes=t,ga.innerBlocks=n;let i=o({attributes:t,innerBlocks:n});if(null!==i&&"object"==typeof i&&Kt("blocks.getSaveContent.extraProps")&&!(r.apiVersion>1)){const e=Xt("blocks.getSaveContent.extraProps",{...i.props},r,t);da(e,i.props)||(i=(0,Ir.cloneElement)(i,e))}return Xt("blocks.getSaveElement",i,r,t)}(r,t,n))}function ba(e){let t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=va(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function ya(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 ka(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return fa(e.__unstableBlockSource);const n=e.name,r=ba(e);if(n===Lr()||!t&&n===Br())return r;const o=zr(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 ya(n,i,r)}function wa(e,t){return(Array.isArray(e)?e:[e]).map((e=>ka(e,t))).join("\n\n")}var _a=/^#[xX]([A-Fa-f0-9]+)$/,Ea=/^#([0-9]+)$/,xa=/^([A-Za-z0-9]+)$/,Sa=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(_a);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(Ea))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(xa))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),Ca=/[A-Za-z]/,Ia=/\r\n?/g;function Ta(e){return Sa.test(e)}function Pa(e){return Ca.test(e)}var Na=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||Pa(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(){Ta(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();Ta(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();Ta(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(!Ta(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();Ta(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();Ta(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();Ta(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();Ta(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();Ta(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();Ta(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();Ta(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();Ta(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();Ta(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();Ta(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();Ta(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();Ta(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||Pa(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(Ia,"\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}(),Oa=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 Na(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 Aa=o(2991),Ma=o.n(Aa);let Ra;function Ba(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===Ra&&(Ra=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),Ra.innerHTML=e;const t=Ra.textContent;return Ra.innerHTML="",t}function La(){function e(e){return(t,...n)=>e("Block validation: "+t,...n)}return{error:e(console.error),warning:e(console.warn),getItems:()=>[]}}const Da=/[\t\n\r\v\f ]+/g,za=/^[\t\n\r\v\f ]*$/,Fa=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,ja=["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"],Va=[...ja,"autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],Ha=[e=>e,function(e){return Ga(e).join(" ")}],$a=/^[\da-z]+$/i,Ua=/^#\d+$/,Wa=/^#x[\da-f]+$/i;class Ka{parse(e){if(t=e,$a.test(t)||Ua.test(t)||Wa.test(t))return Ba("&"+e+";");var t}}function Ga(e){return e.trim().split(Da)}function qa(e){return e.attributes.filter((e=>{const[t,n]=e;return n||0===t.indexOf("data-")||Va.includes(t)}))}function Ya(e,t,n=La()){let r=e.chars,o=t.chars;for(let e=0;e<Ha.length;e++){const t=Ha[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 Xa(e){return 0===parseFloat(e)?"0":0===e.indexOf(".")?"0"+e:e}function Za(e){return Ga(e).map(Xa).join(" ").replace(Fa,"url($1)")}function Qa(e){const t=e.replace(/;?\s*$/,"").split(";").map((e=>{const[t,...n]=e.split(":"),r=n.join(":");return[t.trim(),Za(r.trim())]}));return Object.fromEntries(t)}const Ja={class:(e,t)=>{const[n,r]=[e,t].map(Ga),o=n.filter((e=>!r.includes(e))),i=r.filter((e=>!n.includes(e)));return 0===o.length&&0===i.length},style:(e,t)=>Ma()(...[e,t].map(Qa)),...Object.fromEntries(ja.map((e=>[e,()=>!0])))};const es={StartTag:(e,t,n=La())=>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=La()){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=Ja[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(qa),n),Chars:Ya,Comment:Ya};function ts(e){let t;for(;t=e.shift();){if("Chars"!==t.type)return t;if(!za.test(t.chars))return t}}function ns(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function rs(e,t,n=La()){if(e===t)return!0;const[r,o]=[e,t].map((e=>function(e,t=La()){try{return new Oa(new Ka).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=ts(r);){if(a=ts(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=es[i.type];if(e&&!e(i,a,n))return!1;ns(i,o[0])?ts(o):ns(a,r[0])&&ts(r)}return!(a=ts(o))||(n.warning("Expected %o, instead saw end of content.",a),!1)}function os(e,t=e.name){if(e.name===Br()||e.name===Lr())return[!0,[]];const n=function(){const e=[],t=La();return{error(...n){e.push({log:t.error,args:n})},warning(...n){e.push({log:t.warning,args:n})},getItems:()=>e}}(),r=ho(t);let o;try{o=va(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=rs(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 is(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 as,ss=function(){return as||(as=document.implementation.createHTMLDocument("")),as};function ls(e,t){if(t){if("string"==typeof e){var n=ss();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]=ls(e,o),n}),{})}}function cs(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 us(e){const t={};for(let n=0;n<e.length;n++){const{name:r,value:o}=e[n];t[r]=o}return t}function ds(e){if(sn("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:{...us(e.attributes),children:ps(e.childNodes)}}}function fs(e){return sn("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 ds(n)}catch(e){return null}}}function ps(e){sn("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(ds(e[n]))}catch(e){}return t}function ms(e){return sn("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?ps(n.childNodes):[]}}function hs(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 gs(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=ys(n,t)}return function(e,t){return void 0===t||hs(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 vs=Tn((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=cs(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=>Te([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 cs(e,"textContent")}(e.selector);case"children":return ms(e.selector);case"node":return fs(e.selector);case"query":const n=Object.fromEntries(Object.entries(e.query).map((([e,t])=>[e,vs(t)])));return function(e,t){return function(n){var r=n.querySelectorAll(e);return[].map.call(r,(function(e){return ls(e,t)}))}}(e.selector,n);case"tag":return Te([cs(e.selector,"nodeName"),e=>e?e.toLowerCase():void 0]);default:console.error(`Unknown source type "${e.source}"`)}}));function bs(e){return ls(e,(e=>e))}function ys(e,t){return vs(t)(bs(e))}function ks(e,t,n={}){var r;const o=bs(t),i=ho(e),a=Object.fromEntries(Object.entries(null!==(r=i.attributes)&&void 0!==r?r:{}).map((([e,r])=>[e,gs(e,r,o,n,t)])));return Xt("blocks.getBlockAttributes",a,i,t,n)}const ws={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function _s(e){const t=ys(`<div data-custom-class-name>${e}</div>`,ws);return t?t.trim().split(/\s+/):[]}function Es(e,t){const n=function(e,t,n){if(Vr(t,"customClassName",!0)){const{className:r,...o}=e,i=va(t,o),a=_s(i),s=_s(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 xs(){return!1}function Ss(e,t){const n=Br(),r=e.blockName||Br(),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=Bi(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 Cs(e,t){let n=Ss(e,t);n=function(e){const[t,n]=is(e.blockName,e.attrs);return{...e,blockName:t,attrs:n}}(n);let r=zr(n.blockName);r||(n=function(e){const t=Lr()||Br(),n=fa(e,{isCommentDelimited:!1}),r=fa(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=zr(n.blockName));const o=n.blockName===Br()||n.blockName===Lr();if(!r||!n.innerHTML&&o)return;const i=n.innerBlocks.map((e=>Cs(e,t))).filter((e=>!!e)),a=Zr(n.blockName,ks(r,n.innerHTML,n.attrs),i);a.originalContent=n.innerHTML;const s=function(e,t){const[n]=os(e,t);if(n)return{...e,isValid:n,validationIssues:[]};const r=Es(e,t),[o,i]=os(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=xs}=o[i];if(e.isValid&&!a(r,e.innerBlocks,{blockNode:t,block:e}))continue;const s=Object.assign(vo(n,Nr),o[i]);let l={...e,attributes:ks(s,e.originalContent,r)},[c]=os(l,s);if(c||(l=Es(l,s),[c]=os(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,va(r,c.attributes),c.originalContent),console.groupEnd()),c}function Is(e,t){return Pi(e).reduce(((e,n)=>{const r=Cs(n,t);return r&&e.push(r),e}),[])}function Ts(){return ao("from").filter((({type:e})=>"raw"===e)).map((e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)}))}function Ps(e,t){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Array.from(n.body.children).flatMap((e=>{const n=io(Ts(),(({isMatch:t})=>t(e)));if(!n)return Zr("core/html",ks("core/html",e.outerHTML));const{transform:r,blockName:o}=n;return r?r(e,t):Zr(o,ks(o,e.outerHTML))}))}function Ns(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(Ns));default:return!0}}const Os={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":{}},As=["#text","br"];Object.keys(Os).filter((e=>!As.includes(e))).forEach((e=>{const{[e]:t,...n}=Os;Os[e].children=n}));const Ms={...Os,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 Rs(e){if("paste"!==e)return Ms;const{u:t,abbr:n,data:r,time:o,wbr:i,bdi:a,bdo:s,...l}={...Ms,ins:{children:Ms.ins.children},del:{children:Ms.del.children}};return l}function Bs(e){const t=e.nodeName.toLowerCase();return Rs().hasOwnProperty(t)||"span"===t}function Ls(e){const t=e.nodeName.toLowerCase();return Os.hasOwnProperty(t)||"span"===t}function Ds(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?Ns(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?Ns(e)?r.removeChild(e):o.appendChild(e):Bs(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 zs(e,t){0}function Fs(e,t){zs(t.parentNode),t.parentNode.insertBefore(e,t.nextSibling)}function js(e){zs(e.parentNode),e.parentNode.removeChild(e)}function Vs(e,t){zs(e.parentNode),Fs(t,e.parentNode),js(e)}function Hs(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,js(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))),js(e.parentNode)}else Vs(e,i)}(e,t):Vs(e,function(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t)))}function $s(e){const t=e.parentNode;for(zs();e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function Us(e){return"OL"===e.nodeName||"UL"===e.nodeName}function Ws(e){if(!Us(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&&Us(r)){const t=e.previousElementSibling;t?t.appendChild(e):$s(e)}}function Ks(e){"BLOCKQUOTE"===e.nodeName&&(e.innerHTML=Ds(e.innerHTML))}function Gs(e,t=e){const n=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(n,t),n.appendChild(e)}function qs(e,t,n){if(!function(e,t){var n;const r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Ls(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())&&Gs(r,i):Gs(r,i):"BODY"===r.parentNode.nodeName&&Gs(r)}function Ys(e,t,n=0){const r=Xs(e);r.lastIndex=n;const o=r.exec(t);if(!o)return;if("["===o[1]&&"]"===o[7])return Ys(e,t,r.lastIndex);const i={index:o.index,content:o[0],shortcode:Qs(o)};return o[1]&&(i.content=i.content.slice(1),i.index++),o[7]&&(i.content=i.content.slice(0,-1)),i}function Xs(e){return new RegExp("\\[(\\[?)("+e+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const Zs=Tn((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 Qs(e){let t;return t=e[4]?"self-closing":e[6]?"closed":"single",new Js({tag:e[2],attrs:e[3],type:t,content:e[5]})}const Js=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=Zs(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:Ys,replace:function(e,t,n){return t.replace(Xs(e),(function(e,t,r,o,i,a,s,l){if("["===t&&"]"===l)return e;const c=n(Qs(arguments));return c||""===c?t+c+l:e}))},string:function(e){return new Js(e).string()},regexp:Xs,attrs:Zs,fromMatch:Qs});Object.assign(Js.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 el=e=>Array.isArray(e)?e:[e];const tl=function e(t,n=0,r=[]){const o=io(ao("from"),(e=>-1===r.indexOf(e.blockName)&&"shortcode"===e.type&&el(e.tag).some((e=>Xs(e).test(t)))));if(!o)return[t];const i=el(o.tag).find((e=>Xs(e).test(t)));let a;const s=n;if(a=Ys(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,Es(e,zr(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=zr(o.blockName);if(!n)return[t];const r={...n,attributes:o.attributes};let i=Zr(o.blockName,ks(r,a.shortcode.content,e));i.originalContent=a.shortcode.content,i=Es(i,r),c=[i]}return[...e(i),...c,...e(l)]}return[t]};var nl=o(9996),rl=o.n(nl);const ol=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 rl()(n,t,{customMerge:ol,clone:!1})};function il(e){return function(e,t){const n={phrasingContentSchema:Rs(t),isPaste:"paste"===t},r=e.map((({isMatch:e,blockName:t,schema:r})=>{const o=Vr(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 rl().all(r,{customMerge:ol,clone:!1})}(Ts(),e)}function al(e,t,n,r){Array.from(e).forEach((e=>{al(e.childNodes,t,n,r),t.forEach((t=>{n.contains(e)&&t(e,n,r)}))}))}function sl(e,t=[],n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,al(r.body.childNodes,t,r,n),r.body.innerHTML}function ll(e,t){const n=e[`${t}Sibling`];if(n&&Bs(n))return n;const{parentNode:r}=e;return r&&Bs(r)?ll(r,t):void 0}function cl({HTML:e=""}){if(-1!==e.indexOf("\x3c!-- wp:"))return Is(e);const t=tl(e),n=il();return t.map((e=>{if("string"!=typeof e)return e;return Ps(e=Ds(e=sl(e,[Ws,Hs,qs,Ks],n)),cl)})).flat().filter(Boolean)}const ul=()=>{};function dl(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))dl(e.childNodes,t,n,r),r&&!Bs(e)&&e.nextElementSibling&&Fs(t.createElement("br"),e),$s(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&&Ns(e))return void js(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):ul));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(","))?(dl(e.childNodes,t,n,r),$s(e)):e.parentNode&&"BODY"===e.parentNode.nodeName&&Bs(e)?(dl(e.childNodes,t,n,r),Array.from(e.childNodes).some((e=>!Bs(e)))&&$s(e)):dl(e.childNodes,t,s,r);else for(;e.firstChild;)js(e.firstChild)}}}))}function fl(e,t,n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,dl(r.body.childNodes,r,t,n),r.body.innerHTML}function pl(e){e.nodeType===e.COMMENT_NODE&&js(e)}function ml(e,t){return e.every((e=>function(e,t){if(Ls(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)&&ml(Array.from(e.children),t)))}function hl(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function gl(e,t){zs(t.parentNode),t.parentNode.insertBefore(e,t),e.appendChild(t)}function vl(e,t){const n=e.ownerDocument.createElement(t);for(;e.firstChild;)n.appendChild(e.firstChild);return zs(e.parentNode),e.parentNode.replaceChild(n,e),n}function bl(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||gl(t.createElement("strong"),e),"italic"===r&&gl(t.createElement("em"),e),("line-through"===o||i.includes("line-through"))&&gl(t.createElement("s"),e),"super"===a?gl(t.createElement("sup"),e):"sub"===a&&gl(t.createElement("sub"),e)}else"B"===e.nodeName?e=vl(e,"strong"):"I"===e.nodeName?e=vl(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 yl(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}const{parseInt:kl}=window;function wl(e){return"OL"===e.nodeName||"UL"===e.nodeName}function _l(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=kl(r[1],10)-1||0;const i=e.previousElementSibling;if(!i||!wl(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,wl(c)&&(c=c.lastChild||c);wl(c)||(c=c.appendChild(t.createElement(s))),c.appendChild(l),e.parentNode.removeChild(e)}const El={};function xl(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}const{atob:Sl,File:Cl}=window;function Il(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=Sl(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 Cl([i],a,{type:r});e.src=function(e){const t=window.URL.createObjectURL(e);return El[t]=e,t}(s)}1!==e.height&&1!==e.width||e.parentNode.removeChild(e)}}function Tl(e){"DIV"===e.nodeName&&(e.innerHTML=Ds(e.innerHTML))}var Pl=o(3787);const Nl=new(o.n(Pl)().Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function Ol(e){if("IFRAME"===e.nodeName){const t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Al(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&("B"===e.tagName?$s(e):e.removeAttribute("id"))}function Ml(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=ll(e,"previous");t&&"BR"!==t.nodeName&&" "!==t.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){const t=ll(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 Rl(e){"BR"===e.nodeName&&(ll(e,"next")||e.parentNode.removeChild(e))}function Bl(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Ll(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:Dl}=window;function zl(e,t){return e=fl(e=sl(e,[yl,Al,bl,pl]),Rs("paste"),{inline:!0}),t||(e=sl(e,[Ml,Rl])),Dl.log("Processed inline HTML:\n\n",e),e}function Fl({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 Is(n)}String.prototype.normalize&&(e=e.normalize()),e=sl(e,[Ll]);const i=t&&(!e||function(e){return!/<(?!br[ />])/i.test(e)}(e));var a;i&&(e=t,/^\s+$/.test(t)||(a=e,e=Nl.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=tl(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 zl(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(hl)&&ml(r,t)}(e,r))return zl(e,o);const c=Rs("paste"),u=il("paste"),d=s.map((e=>{if("string"!=typeof e)return e;const t=[Al,_l,yl,Ws,Il,bl,Hs,pl,Ol,qs,Ks,Tl],n={...u,...c};return e=sl(e,t,u),e=sl(e=Ds(e=fl(e,n)),[Ml,Rl,Bl],u),Dl.log("Processed HTML piece:\n\n",e),Ps(e,Fl)})).flat().filter(Boolean);if("AUTO"===n&&1===d.length&&Vr(d[0].name,"__unstablePasteTextInline",!1)){const e=/^[\n]+|[\n]+$/g,n=t.replace(e,"");if(""!==n&&-1===n.indexOf("\n"))return fl(ba(d[0]),c).replace(e,"")}return d}function jl(e=[],t=[]){return e.length===t.length&&t.every((([t,,n],r)=>{const o=e[r];return t===o.name&&jl(o.innerBlocks,n)}))}function Vl(e=[],t){return t?t.map((([t,n,r],o)=>{var i;const a=e[o];if(a&&a.name===t){const e=Vl(a.innerBlocks,r);return{...a,innerBlocks:e}}const s=zr(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)?ca(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]=is(t,u);return void 0===zr(d)&&(f={originalName:t,originalContent:"",originalUndelimitedContent:""},d="core/missing"),Zr(d,f,Vl([],r))})):e}Ht("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&Vr(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var Hl=o(4184),$l=o.n(Hl);function Ul(e,t){return n=>{const r=e(n);return r.displayName=Wl(t,n),r}}const Wl=(e,t)=>{const n=t.displayName||t.name||"Component";return`${Sn(null!=e?e:"")}(${n})`},Kl=new WeakMap;const Gl=function(e,t,n){return(0,Ir.useMemo)((()=>{if(n)return n;const r=function(e){const t=Kl.get(e)||0;return Kl.set(e,t+1),t}(e);return t?`${t}-${r}`:r}),[e,n,t])};var ql=Object.defineProperty,Yl=Object.defineProperties,Xl=Object.getOwnPropertyDescriptors,Zl=Object.getOwnPropertySymbols,Ql=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,ec=(e,t,n)=>t in e?ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tc=(e,t)=>{for(var n in t||(t={}))Ql.call(t,n)&&ec(e,n,t[n]);if(Zl)for(var n of Zl(t))Jl.call(t,n)&&ec(e,n,t[n]);return e},nc=(e,t)=>Yl(e,Xl(t)),rc=(e,t)=>{var n={};for(var r in e)Ql.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Zl)for(var r of Zl(e))t.indexOf(r)<0&&Jl.call(e,r)&&(n[r]=e[r]);return n},oc=Object.defineProperty,ic=Object.defineProperties,ac=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,lc=Object.prototype.hasOwnProperty,cc=Object.prototype.propertyIsEnumerable,uc=(e,t,n)=>t in e?oc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dc=(e,t)=>{for(var n in t||(t={}))lc.call(t,n)&&uc(e,n,t[n]);if(sc)for(var n of sc(t))cc.call(t,n)&&uc(e,n,t[n]);return e},fc=(e,t)=>ic(e,ac(t)),pc=(e,t)=>{var n={};for(var r in e)lc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sc)for(var r of sc(e))t.indexOf(r)<0&&cc.call(e,r)&&(n[r]=e[r]);return n};function mc(...e){}function hc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gc(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function vc(e){return e}function bc(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function yc(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function kc(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function wc(...e){for(const t of e)if(void 0!==t)return t}function _c(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ec(e){return function(e){return!!e&&!!(0,Ir.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var xc,Sc="undefined"!=typeof window&&!!(null==(xc=window.document)?void 0:xc.createElement);function Cc(e){return e?e.ownerDocument||e:document}function Ic(e,t=!1){const{activeElement:n}=Cc(e);if(!(null==n?void 0:n.nodeName))return null;if(Pc(n)&&n.contentDocument)return Ic(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Cc(n).getElementById(e);if(t)return t}}return n}function Tc(e,t){return e===t||e.contains(t)}function Pc(e){return"IFRAME"===e.tagName}function Nc(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Oc.indexOf(e.type)}var Oc=["button","color","file","image","reset","submit"];function Ac(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Mc(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function Rc(e,t){if("closest"in e)return e.closest(t);do{if(Ac(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Bc(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Lc(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 Lc(e.parentElement)||document.scrollingElement||document.body}function Dc(e){return Boolean(e.currentTarget&&!Tc(e.currentTarget,e.target))}function zc(e){return e.target===e.currentTarget}function Fc(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=fc(dc({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function jc(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function Vc(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Tc(n,r)}function Hc(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 $c(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push($c(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var Uc=tc({},Tr),Wc=Uc.useId,Kc=(Uc.useDeferredValue,Uc.useInsertionEffect),Gc=Sc?Ir.useLayoutEffect:Ir.useEffect;function qc(e){const t=(0,Ir.useRef)(e);return Gc((()=>{t.current=e})),t}function Yc(e){const t=(0,Ir.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Kc?Kc((()=>{t.current=e})):t.current=e,(0,Ir.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Xc(...e){return(0,Ir.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>_c(e,t)))}}),e)}function Zc(e){if(Wc){const t=Wc();return e||t}const[t,n]=(0,Ir.useState)(e);return Gc((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Qc(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,Ir.useState)((()=>n(t)));return Gc((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function Jc(e,t){const n=(0,Ir.useRef)(!1);(0,Ir.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,Ir.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function eu(){return(0,Ir.useReducer)((()=>[]),[])}function tu(e){return Yc("function"==typeof e?e:()=>e)}function nu(e,t,n=[]){const r=(0,Ir.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return nc(tc({},e),{wrapElement:r})}function ru(e=!1,t){const[n,r]=(0,Ir.useState)(null);return{portalRef:Xc(r,t),portalNode:n,domReady:!e||n}}var ou=!1,iu=0,au=0;function su(e){(function(e){const t=e.movementX||e.screenX-iu,n=e.movementY||e.screenY-au;return iu=e.screenX,au=e.screenY,t||n||!1})(e)&&(ou=!0)}function lu(){ou=!1}function cu(e,t){const n=e.__unstableInternals;return bc(n,"Invalid store"),n[t]}function uu(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(!hc(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=fc(dc({},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 mc;if(!t.length)return mc;i=!0;const e=(r=n,Object.keys(r)).map((e=>gc(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&hc(r,e))return mu(t,[e],(t=>p(e,t[e],!0)))})))));var r;const o=[];s.forEach((e=>o.push(e())));const a=t.map(fu);return gc(...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=>uu(function(e,t){const n={};for(const r of t)hc(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>uu(function(e,t){const n=dc({},e);for(const e of t)hc(n,e)&&delete n[e];return n}(n,e),m)}};return m}function du(e,...t){if(e)return cu(e,"setup")(...t)}function fu(e,...t){if(e)return cu(e,"init")(...t)}function pu(e,...t){if(e)return cu(e,"subscribe")(...t)}function mu(e,...t){if(e)return cu(e,"sync")(...t)}function hu(e,...t){if(e)return cu(e,"batch")(...t)}function gu(e,...t){if(e)return cu(e,"omit")(...t)}function vu(...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?dc(dc({},e),r):e}),{});return uu(t,...e)}var bu=o(1688),{useSyncExternalStore:yu}=bu,ku=()=>()=>{};function wu(e,t=vc){const n=Ir.useCallback((t=>e?pu(e,null,t):ku()),[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&&hc(o,n)?o[n]:void 0};return yu(n,r,r)}function _u(e,t,n,r){const o=hc(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=qc({value:o,setValue:i}),s=Ir.useRef(!0);Gc((()=>mu(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]),Gc((()=>{if(void 0!==o)return s.current=!0,mu(e,[n],(()=>{void 0!==o&&s.current&&e.setState(n,o)}))}))}function Eu(e,t){const[n,r]=Ir.useState((()=>e(t)));Gc((()=>fu(n)),[n]);const o=Ir.useCallback((e=>wu(n,e)),[n]);return[Ir.useMemo((()=>nc(tc({},n),{useState:o})),[n,o]),Yc((()=>{r((n=>e(tc(tc({},t),n.getState()))))}))]}function xu(e={}){const t=vu(e.store,gu(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=wc(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=wc(e.animated,null==n?void 0:n.animated,!1),i=uu({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:wc(null==n?void 0:n.contentElement,null),disclosureElement:wc(null==n?void 0:n.disclosureElement,null)},t);return du(i,(()=>mu(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),du(i,(()=>pu(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),du(i,(()=>mu(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),fc(dc({},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 Su(e,t,n){return Jc(t,[n.store,n.disclosure]),_u(e,n,"open","setOpen"),_u(e,n,"mounted","setMounted"),_u(e,n,"animated"),e}function Cu(e={}){const[t,n]=Eu(xu,e);return Su(t,n,e)}function Iu(e={}){return xu(e)}function Tu(e,t,n){return Su(e,t,n)}function Pu(e,t,n){return Jc(t,[n.popover]),_u(e=Tu(e,t,n),n,"placement"),e}function Nu(e,t,n){return _u(e=Pu(e,t,n),n,"timeout"),_u(e,n,"showTimeout"),_u(e,n,"hideTimeout"),e}function Ou(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=pc(t,["popover"]);const o=vu(r.store,gu(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Iu(fc(dc({},r),{store:o})),s=wc(r.placement,null==i?void 0:i.placement,"bottom"),l=uu(fc(dc({},a.getState()),{placement:s,currentPlacement:s,anchorElement:wc(null==i?void 0:i.anchorElement,null),popoverElement:wc(null==i?void 0:i.popoverElement,null),arrowElement:wc(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return fc(dc(dc({},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"))})}(fc(dc({},e),{placement:wc(e.placement,null==n?void 0:n.placement,"bottom")})),o=wc(e.timeout,null==n?void 0:n.timeout,500),i=uu(fc(dc({},r.getState()),{timeout:o,showTimeout:wc(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:wc(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:wc(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return fc(dc(dc({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function Au(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Ou(fc(dc({},e),{placement:wc(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:wc(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=uu(fc(dc({},r.getState()),{type:wc(e.type,null==n?void 0:n.type,"description"),skipTimeout:wc(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return dc(dc({},r),o)}function Mu(e={}){const[t,n]=Eu(Au,e);return function(e,t,n){return _u(e=Nu(e,t,n),n,"type"),_u(e,n,"skipTimeout"),e}(t,n,e)}var Ru=o(5893);function Bu(e){return Ir.forwardRef(((t,n)=>e(tc({ref:n},t))))}function Lu(e){const t=Bu(e);return Ir.memo(t)}function Du(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=rc(n,["as","wrapElement","render"]);let s;const l=Xc(t.ref,Ec(i));if(r&&"string"!=typeof r)s=(0,Ru.jsx)(r,nc(tc({},a),{render:i}));else if(Ir.isValidElement(i)){const e=nc(tc({},i.props),{ref:l});s=Ir.cloneElement(i,function(e,t){const n=tc({},e);for(const r in t){if(!hc(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]?tc(tc({},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=rc(e,["children"]);s=t.children(r)}else s=r?(0,Ru.jsx)(r,tc({},a)):(0,Ru.jsx)(e,tc({},a));return o?o(s):s}function zu(e){return(t={})=>{const n=e(t),r={};for(const e in n)hc(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function Fu(e=[],t=[]){const n=Ir.createContext(void 0),r=Ir.createContext(void 0),o=()=>Ir.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,Ru.jsx)(n,nc(tc({},t),{children:e}))),(0,Ru.jsx)(n.Provider,tc({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=Ir.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=Ir.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,Ru.jsx)(i,nc(tc({},e),{children:t.reduceRight(((t,n)=>(0,Ru.jsx)(n,nc(tc({},e),{children:t}))),(0,Ru.jsx)(r.Provider,tc({},e)))}))}}var ju=Fu(),Vu=(ju.useContext,ju.useScopedContext,ju.useProviderContext),Hu=Fu([ju.ContextProvider],[ju.ScopedContextProvider]),$u=(Hu.useContext,Hu.useScopedContext,Hu.useProviderContext),Uu=Hu.ContextProvider,Wu=Hu.ScopedContextProvider,Ku=(0,Ir.createContext)(void 0),Gu=(0,Ir.createContext)(void 0),qu=Fu([Uu],[Wu]),Yu=(qu.useContext,qu.useScopedContext,qu.useProviderContext),Xu=qu.ContextProvider,Zu=qu.ScopedContextProvider,Qu=Fu([Xu],[Zu]),Ju=(Qu.useContext,Qu.useScopedContext,Qu.useProviderContext),ed=Qu.ContextProvider,td=Qu.ScopedContextProvider,nd=(0,Ir.createContext)(!0),rd="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 od(e){return!!Ac(e,rd)&&(!!Mc(e)&&!Rc(e,"[inert]"))}function id(e){if(!od(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=Ic(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function ad(e,t){const n=Array.from(e.querySelectorAll(rd));t&&n.unshift(e);const r=n.filter(od);return r.forEach(((e,t)=>{if(Pc(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...ad(n))}})),r}function sd(e,t,n){const r=Array.from(e.querySelectorAll(rd)),o=r.filter(id);return t&&id(e)&&o.unshift(e),o.forEach(((e,t)=>{if(Pc(e)&&e.contentDocument){const r=sd(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function ld(e,t,n){const[r]=sd(e,t,n);return r||null}function cd(e,t){return function(e,t,n,r){const o=Ic(e),i=ad(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(id)||(n?i.find(id):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function ud(e,t){return function(e,t,n,r){const o=Ic(e),i=ad(e,t).reverse(),a=i.indexOf(o),s=i.slice(a+1);return s.find(id)||(n?i.find(id):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function dd(e){const t=Ic(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function fd(e){const t=Ic(e);if(!t)return!1;if(Tc(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function pd(e){!fd(e)&&od(e)&&e.focus()}function md(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function hd(){return!!Sc&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function gd(){return Sc&&hd()&&/apple/i.test(navigator.vendor)}function vd(){return Sc&&navigator.platform.startsWith("Mac")&&!(Sc&&navigator.maxTouchPoints)}var bd=gd(),yd=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function kd(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function wd(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function _d(e,t){return Yc((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var Ed=!0;function xd(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(Ed=!1))}function Sd(e){e.metaKey||e.ctrlKey||e.altKey||(Ed=!0)}var Cd=zu((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=rc(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,Ir.useRef)(null);(0,Ir.useEffect)((()=>{n&&($c("mousedown",xd,!0),$c("keydown",Sd,!0))}),[n]),bd&&(0,Ir.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!kd(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&&kc(a),c=!!l&&!r,[u,d]=(0,Ir.useState)(!1);(0,Ir.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,Ir.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{od(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const f=_d(a.onKeyPressCapture,l),p=_d(a.onMouseDownCapture,l),m=_d(a.onClickCapture,l),h=a.onMouseDown,g=Yc((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!bd)return;if(Dc(e))return;if(!Nc(t)&&!kd(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),Hc(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||pd(t)}))})),v=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&dd(r)&&(null==i||i(e),e.defaultPrevented||d(!0))},b=a.onKeyDownCapture,y=Yc((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(!zc(e))return;const t=e.currentTarget;queueMicrotask((()=>v(e,t)))})),k=a.onFocusCapture,w=Yc((e=>{if(null==k||k(e),e.defaultPrevented)return;if(!n)return;if(!zc(e))return void d(!1);const t=e.currentTarget,r=()=>v(e,t);Ed||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:yd.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):Hc(e.target,"focusout",r)})),_=a.onBlur,E=Yc((e=>{null==_||_(e),n&&Vc(e)&&d(!1)})),x=(0,Ir.useContext)(nd),S=Yc((e=>{n&&o&&e&&x&&queueMicrotask((()=>{dd(e)||od(e)&&e.focus()}))})),C=Qc(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?tc({pointerEvents:"none"},a.style):a.style;return a=nc(tc({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:Xc(s,S,a.ref),style:P,tabIndex:wd(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})}));Bu((e=>Du("div",e=Cd(e))));var Id=zu((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=rc(t,["store","showOnHover"]);const i=Ju();bc(n=n||i,!1);const a=n.useState("mounted"),s=kc(o),l=(0,Ir.useRef)(0);(0,Ir.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,Ir.useEffect)((()=>$c("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=tu(r),d=((0,Ir.useEffect)((()=>{$c("mousemove",su,!0),$c("mousedown",lu,!0),$c("mouseup",lu,!0),$c("keydown",lu,!0),$c("scroll",lu,!0)}),[]),Yc((()=>ou))),f=Yc((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=nc(tc({},o),{ref:Xc(n.setAnchorElement,a?n.setDisclosureElement:void 0,o.ref),onMouseMove:f}),o=Cd(o)}));Bu((e=>Du("a",Id(e))));var Td=Fu([ed],[td]),Pd=(Td.useContext,Td.useScopedContext,Td.useProviderContext),Nd=(Td.ContextProvider,Td.ScopedContextProvider),Od=uu({activeStore:null}),Ad=zu((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=rc(t,["store","showOnHover"]);const i=Pd();bc(n=n||i,!1);const a=(0,Ir.useRef)(!1);(0,Ir.useEffect)((()=>mu(n,["mounted"],(e=>{e.mounted||(a.current=!1)}))),[n]),(0,Ir.useEffect)((()=>mu(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=Od.getState();return e!==n&&(null==e||e.hide()),Od.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=Od.getState();e===n&&Od.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const s=o.onMouseEnter,l=Yc((e=>{null==s||s(e),a.current=!0})),c=o.onFocusVisible,u=Yc((e=>{null==c||c(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),d=o.onBlur,f=Yc((e=>{if(null==d||d(e),e.defaultPrevented)return;const{activeStore:t}=Od.getState();t===n&&Od.setState("activeStore",null)})),p=n.useState("type"),m=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=nc(tc({"aria-labelledby":"label"===p?m:void 0,"aria-describedby":"description"===p?m:void 0},o),{onMouseEnter:l,onFocusVisible:u,onBlur:f}),o=Id(tc({store:n,showOnHover:e=>{if(!a.current)return!1;if(yc(r,e))return!1;const{activeStore:t}=Od.getState();return!t||(null==n||n.show(),!1)}},o))})),Md=Bu((e=>Du("div",Ad(e))));function Rd(e){return[e.clientX,e.clientY]}function Bd(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 Ld(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 Dd(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 zd=new WeakMap;function Fd(e,t,n){zd.has(e)||zd.set(e,new Map);const r=zd.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 jd(e,t,n){return Fd(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function Vd(e,t,n){return Fd(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Hd(e,t){if(!e)return()=>{};return Fd(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var $d=["SCRIPT","STYLE"];function Ud(e){return`__ariakit-dialog-snapshot-${e}`}function Wd(e,t,n){return!$d.includes(t.tagName)&&(!!function(e,t){const n=Cc(t),r=Ud(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&&Tc(t,e))))}function Kd(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=Cc(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)Wd(e,r,t)&&n(r,s);o=o.parentElement}}}function Gd(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function qd(e,t=""){return gc(Vd(e,Gd("",!0),!0),Vd(e,Gd(t,!0),!0))}function Yd(e,t){if(e[Gd(t,!0)])return!0;const n=Gd(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Xd(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Kd(e,t,(t=>{Dd(t,...r)||n.unshift(function(e,t=""){return gc(Vd(e,Gd(),!0),Vd(e,Gd(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(qd(t,e))}));return()=>{n.forEach((e=>e()))}}zu((e=>e));var Zd=Bu((e=>Du("div",e)));function Qd(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Jd(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function ef(e,t,n){return!(n||!1===t||e&&!t)}Object.assign(Zd,["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]=Bu((e=>Du(t,e))),e)),{}));var tf=zu((e=>{var t=e,{store:n,alwaysVisible:r}=t,o=rc(t,["store","alwaysVisible"]);const i=Vu();bc(n=n||i,!1);const a=Zc(o.id),[s,l]=(0,Ir.useState)(null),c=n.useState("open"),u=n.useState("mounted"),d=n.useState("animated"),f=n.useState("contentElement");Gc((()=>{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]),Gc((()=>{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 Qd(d,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(f),i=Jd(r,o)+Jd(e,t);return i?Qd(i,n.stopAnimation):void 0}),[n,d,f,c,s]);const p=ef(u,(o=nu(o,(e=>(0,Ru.jsx)(Wu,{value:n,children:e})),[n])).hidden,r),m=p?nc(tc({},o.style),{display:"none"}):o.style;return o=nc(tc({id:a,"data-enter":"enter"===s?"":void 0,"data-leave":"leave"===s?"":void 0,hidden:p},o),{ref:Xc(a?n.setContentElement:null,o.ref),style:m})})),nf=Bu((e=>Du("div",tf(e))));Bu((e=>{var t=e,{unmountOnHide:n}=t,r=rc(t,["unmountOnHide"]);const o=Vu();return!1===wu(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,Ru.jsx)(nf,tc({},r))}));function rf({store:e,backdrop:t,backdropProps:n,alwaysVisible:r,hidden:o}){const i=(0,Ir.useRef)(null),a=Cu({disclosure:e}),s=e.useState("contentElement");Gc((()=>{const e=i.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),Gc((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=i.current;return t?qd(t,e):void 0}),[s]),null!=o&&(n=nc(tc({},n),{hidden:o}));const l=tf(nc(tc({store:a,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:r},n),{ref:Xc(null==n?void 0:n.ref,i),style:tc({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,Ir.isValidElement)(t))return(0,Ru.jsx)(Zd,nc(tc({},l),{render:t}));const c="boolean"!=typeof t?t:"div";return(0,Ru.jsx)(Zd,nc(tc({},l),{render:(0,Ru.jsx)(c,{})}))}var of=(0,Ir.createContext)({});function af({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Yc(n),a=e.useState("open"),s=(0,Ir.useRef)(!1);Gc((()=>{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,Ir.useEffect)((()=>{if(!a)return;return $c(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||Tc(Cc(e).body,e)}(o))return;if(Tc(n,o))return;if(function(e,t){if(!e)return!1;if(Tc(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=Cc(e).getElementById(n);if(t)return Tc(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&&!Yd(o,n.id)||i(t)}),r)}),[a,r])}function sf(e,t){return"function"==typeof e?e(t):!!e}function lf(e,t,n){const r=function(e){const t=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>{if(e)return $c("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),o={store:e,domReady:n,capture:!0};af(nc(tc({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&Mc(i)&&Yd(i,null==o?void 0:o.id)&&sf(t,n)&&e.hide()}})),af(nc(tc({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==Cc(r)&&sf(t,n)&&e.hide()}})),af(nc(tc({},o),{type:"contextmenu",listener:n=>{sf(t,n)&&e.hide()}}))}function cf(e){return jd(e,"aria-hidden","true")}function uf(e,t){if(!("style"in e))return mc;if("inert"in HTMLElement.prototype)return Vd(e,"inert",!0);return gc(...sd(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Tc(t,e))))?mc:jd(e,"tabindex","-1"))),cf(e),Hd(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}var df=o(2834);function ff(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=eu(),a=(0,Ir.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=Cc(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,Ir.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=Cc(n);if(a())return o.setAttribute(e,t),()=>o.removeAttribute(e);const s=new MutationObserver((()=>(0,df.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,Ir.useEffect)((()=>{if(!r())return;if(!e)return;const t=Cc(e),n=function(e){return Cc(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=hd()&&!vd();return gc((d="--scrollbar-width",f=`${s}px`,(u=o)?Fd(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=Hd(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)}})():Hd(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,f}),[r,e])}var pf=zu((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=rc(t,["autoFocusOnShow"]);return r=nu(r,(e=>(0,Ru.jsx)(nd.Provider,{value:n,children:e})),[n])}));Bu((e=>Du("div",pf(e))));var mf=(0,Ir.createContext)(0);function hf({level:e,children:t}){const n=(0,Ir.useContext)(mf),r=Math.max(Math.min(e||n+1,6),1);return(0,Ru.jsx)(mf.Provider,{value:r,children:t})}var gf=zu((e=>e=nc(tc({},e),{style:tc({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));Bu((e=>Du("span",gf(e))));var vf=zu((e=>(e=nc(tc({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:tc({position:"fixed",top:0,left:0},e.style)}),e=gf(e)))),bf=Bu((e=>Du("span",vf(e))));var yf=(0,Ir.createContext)(null);function kf(e){queueMicrotask((()=>{null==e||e.focus()}))}var wf=zu((e=>{var t=e,{preserveTabOrder:n,portalElement:r,portalRef:o,portal:i=!0}=t,a=rc(t,["preserveTabOrder","portalElement","portalRef","portal"]);const s=(0,Ir.useRef)(null),l=Xc(s,a.ref),c=(0,Ir.useContext)(yf),[u,d]=(0,Ir.useState)(null),f=(0,Ir.useRef)(null),p=(0,Ir.useRef)(null),m=(0,Ir.useRef)(null),h=(0,Ir.useRef)(null);return Gc((()=>{const e=s.current;if(!e||!i)return void d(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:Cc(e).createElement("div")}(e,r);if(!t)return void d(null);const n=t.isConnected;if(!n){const n=c||function(e){return Cc(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),_c(o,t),n?void 0:()=>{t.remove(),_c(o,null)}}),[i,r,c,o]),(0,Ir.useEffect)((()=>{if(!u)return;if(!n)return;let e=0;const t=t=>{if(!Vc(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){sd(e,t).forEach(md)}(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=nu(a,(e=>(e=(0,Ru.jsx)(yf.Provider,{value:u||c,children:e}),i?u?(e=(0,Ru.jsxs)(Ru.Fragment,{children:[n&&u&&(0,Ru.jsx)(bf,{ref:p,className:"__focus-trap-inner-before",onFocus:e=>{Vc(e,u)?kf(cd()):kf(f.current)}}),e,n&&u&&(0,Ru.jsx)(bf,{ref:m,className:"__focus-trap-inner-after",onFocus:e=>{Vc(e,u)?kf(ud()):kf(h.current)}})]}),u&&(e=(0,df.createPortal)(e,u)),e=(0,Ru.jsxs)(Ru.Fragment,{children:[n&&u&&(0,Ru.jsx)(bf,{ref:f,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===h.current)&&Vc(e,u)?kf(p.current):kf(ud())}}),n&&(0,Ru.jsx)("span",{"aria-owns":null==u?void 0:u.id,style:{position:"fixed"}}),e,n&&u&&(0,Ru.jsx)(bf,{ref:h,className:"__focus-trap-outer-after",onFocus:e=>{if(Vc(e,u))kf(m.current);else{const e=cd();if(e===p.current)return void requestAnimationFrame((()=>{var e;return null==(e=cd())?void 0:e.focus()}));kf(e)}}})]})):(0,Ru.jsx)("span",{ref:l,id:a.id,style:{position:"fixed"},hidden:!0}):e)),[u,c,i,a.id,n]),a=nc(tc({},a),{ref:l})}));Bu((e=>Du("div",wf(e))));var _f=gd();function Ef(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?od(n)?n:null:n:null}var xf=zu((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=rc(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const k=$u(),w=(0,Ir.useRef)(null),_=function(e={}){const[t,n]=Eu(Iu,e);return Tu(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}=ru(s,y.portalRef),S=y.preserveTabOrder,C=_.useState((e=>S&&!a&&e.mounted)),I=Zc(y.id),T=_.useState("open"),P=_.useState("mounted"),N=_.useState("contentElement"),O=ef(P,y.hidden,y.alwaysVisible);ff(N,I,p&&!O),lf(_,d,x);const{wrapElement:A,nestedDialogs:M}=function(e){const t=(0,Ir.useContext)(of),[n,r]=(0,Ir.useState)([]),o=(0,Ir.useCallback)((e=>{var n;return r((t=>[...t,e])),gc(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);Gc((()=>mu(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,Ir.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,Ir.useCallback)((e=>(0,Ru.jsx)(of.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(_);y=nu(y,A,[A]),Gc((()=>{if(!T)return;const e=w.current,t=Ic(e,!0);t&&"BODY"!==t.tagName&&(e&&Tc(e,t)||_.setDisclosureElement(t))}),[_,T]),_f&&(0,Ir.useEffect)((()=>{if(!P)return;const{disclosureElement:e}=_.getState();if(!e)return;if(!Nc(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),Hc(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||pd(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[_,P]);const R=a||s&&C&&gd();(0,Ir.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=Cc(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]),Gc((()=>{if(T)return;if(!P)return;if(!x)return;const e=w.current;return e?uf(e):void 0}),[T,P,x]);const B=T&&x;Gc((()=>{if(!I)return;if(!B)return;const e=w.current;return function(e,t){const{body:n}=Cc(t[0]),r=[];return Kd(e,t,(t=>{r.push(Vd(t,Ud(e),!0))})),gc(Vd(n,Ud(e),!0),(()=>r.forEach((e=>e()))))}(I,[e])}),[I,B]);const L=Yc(f);Gc((()=>{if(!I)return;if(!B)return;const{disclosureElement:e}=_.getState(),t=[w.current,...L()||[],...M.map((e=>e.getState().contentElement))];return R?a?gc(Xd(I,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Kd(e,t,(e=>{Dd(e,...r)||n.unshift(uf(e,t))})),()=>{n.forEach((e=>e()))}}(I,t)):gc(Xd(I,[e,...t]),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Kd(e,t,(e=>{Dd(e,...r)||n.unshift(cf(e))})),()=>{n.forEach((e=>e()))}}(I,t)):Xd(I,[e,...t])}),[I,_,B,L,M,R,a]);const D=!!m,z=tu(m),[F,j]=(0,Ir.useState)(!1);(0,Ir.useEffect)((()=>{if(!T)return;if(!D)return;if(!x)return;if(!(null==N?void 0:N.isConnected))return;const e=Ef(g,!0)||N.querySelector("[data-autofocus=true],[autofocus]")||ld(N,!0,s&&C)||N,t=od(e);z(t?e:null)&&(j(!0),queueMicrotask((()=>{e.focus(),_f&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[T,D,x,N,g,s,C,z]);const V=!!h,H=tu(h),[$,U]=(0,Ir.useState)(!1);(0,Ir.useEffect)((()=>{if(T)return U(!0),()=>U(!1)}),[T]);const W=(0,Ir.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=_.getState();if(function(e){const t=Ic();return!(!t||e&&Tc(e,t)||!od(t))}(e))return;let r=Ef(v)||n;if(null==r?void 0:r.id){const e=Cc(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!od(r)){const e=Rc(r,"[data-dialog]");if(e&&e.id){const t=Cc(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&od(r);o||!t?H(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>W(e,!1)))}),[_,v,H]);Gc((()=>{if(T)return;if(!$)return;if(!V)return;const e=w.current;W(e)}),[T,$,x,V,W]),(0,Ir.useEffect)((()=>{if(!$)return;if(!V)return;const e=w.current;return()=>W(e)}),[$,V,W]);const K=tu(u);(0,Ir.useEffect)((()=>{if(!x)return;if(!P)return;return $c("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=w.current;if(!t)return;if(Yd(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=_.getState();("BODY"===n.tagName||Tc(t,n)||!r||Tc(r,n))&&K(e)&&_.hide()}),!0)}),[_,x,P,K]);const G=(y=nu(y,(e=>(0,Ru.jsx)(hf,{level:a?1:void 0,children:e})),[a])).hidden,q=y.alwaysVisible;y=nu(y,(e=>l?(0,Ru.jsxs)(Ru.Fragment,{children:[(0,Ru.jsx)(rf,{store:_,backdrop:l,backdropProps:c,hidden:G,alwaysVisible:q}),e]}):e),[_,l,c,G,q]);const[Y,X]=(0,Ir.useState)(),[Z,Q]=(0,Ir.useState)();return y=nu(y,(e=>(0,Ru.jsx)(Wu,{value:_,children:(0,Ru.jsx)(Ku.Provider,{value:X,children:(0,Ru.jsx)(Gu.Provider,{value:Q,children:e})})})),[_]),y=nc(tc({id:I,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":Y,"aria-describedby":Z},y),{ref:Xc(w,y.ref)}),y=pf(nc(tc({},y),{autoFocusOnShow:F})),y=tf(tc({store:_},y)),y=Cd(nc(tc({},y),{focusable:i})),y=wf(nc(tc({portal:s},y),{portalRef:E,preserveTabOrder:C}))}));function Sf(e,t=$u){return Bu((n=>{const r=t();return wu(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,Ru.jsx)(e,tc({},n)):null}))}Sf(Bu((e=>Du("div",xf(e)))),$u);const Cf=Math.min,If=Math.max,Tf=Math.round,Pf=Math.floor,Nf=e=>({x:e,y:e}),Of={left:"right",right:"left",bottom:"top",top:"bottom"},Af={start:"end",end:"start"};function Mf(e,t,n){return If(e,Cf(t,n))}function Rf(e,t){return"function"==typeof e?e(t):e}function Bf(e){return e.split("-")[0]}function Lf(e){return e.split("-")[1]}function Df(e){return"x"===e?"y":"x"}function zf(e){return"y"===e?"height":"width"}function Ff(e){return["top","bottom"].includes(Bf(e))?"y":"x"}function jf(e){return Df(Ff(e))}function Vf(e){return e.replace(/start|end/g,(e=>Af[e]))}function Hf(e){return e.replace(/left|right|bottom|top/g,(e=>Of[e]))}function $f(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 Uf(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Wf(e,t,n){let{reference:r,floating:o}=e;const i=Ff(t),a=jf(t),s=zf(a),l=Bf(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(Lf(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Kf(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}=Rf(t,e),m=$f(p),h=s[f?"floating"===d?"reference":"floating":d],g=Uf(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=Uf(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 Gf=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}=Rf(e,t)||{};if(null==c)return{};const d=$f(u),f={x:n,y:r},p=jf(o),m=zf(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=Cf(d[v],S),I=Cf(d[b],S),T=C,P=E-h[m]-I,N=E/2-h[m]/2+x,O=Mf(T,N,P),A=!l.arrow&&null!=Lf(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 qf=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}=Rf(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Bf(o),b=Bf(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),k=f||(b||!h?[Hf(s)]:function(e){const t=Hf(e);return[Vf(e),t,Vf(t)]}(s));f||"none"===m||k.push(...function(e,t,n,r){const o=Lf(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[]}}(Bf(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Vf)))),i}(s,h,m,y));const w=[s,...k],_=await Kf(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=Lf(e),o=jf(e),i=zf(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Hf(a)),[a,Hf(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 Yf=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=Bf(n),s=Lf(n),l="y"===Ff(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Rf(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}}}},Xf=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}=Rf(e,t),c={x:n,y:r},u=await Kf(t,l),d=Ff(Bf(o)),f=Df(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=Mf(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=Mf(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}}}}},Zf=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}=Rf(e,t),u={x:n,y:r},d=Ff(o),f=Df(d);let p=u[f],m=u[d];const h=Rf(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(Bf(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}}}},Qf=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}=Rf(e,t),l=await Kf(t,s),c=Bf(n),u=Lf(n),d="y"===Ff(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?Cf(v,e):e}else{const e=p-l.top-l.bottom;y=u||b?Cf(g,e):e}if(b&&!u){const e=If(l.left,0),t=If(l.right,0),n=If(l.top,0),r=If(l.bottom,0);d?k=f-2*(0!==e||0!==t?e+t:If(l.left,l.right)):y=p-2*(0!==n||0!==r?n+r:If(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 Jf(e){return np(e)?(e.nodeName||"").toLowerCase():"#document"}function ep(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tp(e){var t;return null==(t=(np(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function np(e){return e instanceof Node||e instanceof ep(e).Node}function rp(e){return e instanceof Element||e instanceof ep(e).Element}function op(e){return e instanceof HTMLElement||e instanceof ep(e).HTMLElement}function ip(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ep(e).ShadowRoot)}function ap(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function sp(e){return["table","td","th"].includes(Jf(e))}function lp(e){const t=cp(),n=dp(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 cp(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function up(e){return["html","body","#document"].includes(Jf(e))}function dp(e){return ep(e).getComputedStyle(e)}function fp(e){return rp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pp(e){if("html"===Jf(e))return e;const t=e.assignedSlot||e.parentNode||ip(e)&&e.host||tp(e);return ip(t)?t.host:t}function mp(e){const t=pp(e);return up(t)?e.ownerDocument?e.ownerDocument.body:e.body:op(t)&&ap(t)?t:mp(t)}function hp(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=mp(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ep(o);return i?t.concat(a,a.visualViewport||[],ap(o)?o:[],a.frameElement&&n?hp(a.frameElement):[]):t.concat(o,hp(o,[],n))}function gp(e){const t=dp(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=op(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Tf(n)!==i||Tf(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function vp(e){return rp(e)?e:e.contextElement}function bp(e){const t=vp(e);if(!op(t))return Nf(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=gp(t);let a=(i?Tf(n.width):n.width)/r,s=(i?Tf(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const yp=Nf(0);function kp(e){const t=ep(e);return cp()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:yp}function _p(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=vp(e);let a=Nf(1);t&&(r?rp(r)&&(a=bp(r)):a=bp(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ep(e))&&t}(i,n,r)?kp(i):Nf(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=ep(i),t=r&&rp(r)?ep(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=bp(n),t=n.getBoundingClientRect(),r=dp(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=ep(n).frameElement}}return Uf({width:u,height:d,x:l,y:c})}function Ep(e){return _p(tp(e)).left+fp(e).scrollLeft}function xp(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ep(e),r=tp(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=cp();(!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=tp(e),n=fp(e),r=e.ownerDocument.body,o=If(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=If(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ep(e);const s=-n.scrollTop;return"rtl"===dp(r).direction&&(a+=If(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(tp(e));else if(rp(t))r=function(e,t){const n=_p(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=op(e)?bp(e):Nf(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=kp(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Uf(r)}function Sp(e,t){const n=pp(e);return!(n===t||!rp(n)||up(n))&&("fixed"===dp(n).position||Sp(n,t))}function Cp(e,t,n){const r=op(t),o=tp(t),i="fixed"===n,a=_p(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Nf(0);if(r||!r&&!i)if(("body"!==Jf(t)||ap(o))&&(s=fp(t)),r){const e=_p(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ep(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ip(e,t){return op(e)&&"fixed"!==dp(e).position?t?t(e):e.offsetParent:null}function Tp(e,t){const n=ep(e);if(!op(e))return n;let r=Ip(e,t);for(;r&&sp(r)&&"static"===dp(r).position;)r=Ip(r,t);return r&&("html"===Jf(r)||"body"===Jf(r)&&"static"===dp(r).position&&!lp(r))?n:r||function(e){let t=pp(e);for(;op(t)&&!up(t);){if(lp(t))return t;t=pp(t)}return null}(e)||n}const Pp={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=op(n),i=tp(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Nf(1);const l=Nf(0);if((o||!o&&"fixed"!==r)&&(("body"!==Jf(n)||ap(i))&&(a=fp(n)),op(n))){const e=_p(n);s=bp(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:tp,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=hp(e,[],!1).filter((e=>rp(e)&&"body"!==Jf(e))),o=null;const i="fixed"===dp(e).position;let a=i?pp(e):e;for(;rp(a)&&!up(a);){const t=dp(a),n=lp(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ap(a)&&!n&&Sp(e,a))?r=r.filter((e=>e!==a)):o=t,a=pp(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=xp(t,n,o);return e.top=If(r.top,e.top),e.right=Cf(r.right,e.right),e.bottom=Cf(r.bottom,e.bottom),e.left=If(r.left,e.left),e}),xp(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Tp,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Tp,i=this.getDimensions;return{reference:Cp(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 gp(e)},getScale:bp,isElement:rp,isRTL:function(e){return"rtl"===dp(e).direction}};function Np(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=vp(e),u=o||i?[...c?hp(c):[],...hp(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=tp(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:-Pf(u)+"px "+-Pf(o.clientWidth-(c+d))+"px "+-Pf(o.clientHeight-(u+f))+"px "+-Pf(c)+"px",threshold:If(0,Cf(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?_p(e):null;return l&&function t(){const r=_p(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 Op=(e,t,n)=>{const r=new Map,o={platform:Pp,...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}=Wf(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}=Wf(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};function Ap(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 nc(tc({},o),{toJSON:()=>o})}function Mp(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 Ap();const{x:t,y:n,width:r,height:o}=e;return Ap(t,n,r,o)}(r):n.getBoundingClientRect()}}}function Rp(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Bp(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Lp(e,t){return Yf((({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 Dp(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return bc(!t||t.every(Rp),!1),qf({padding:e.overflowPadding,fallbackPlacements:t})}function zp(e){if(e.slide||e.overlap)return Xf({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding})}function Fp(e){return Qf({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 jp(e,t){if(e)return Gf({element:e,padding:t.arrowPadding})}var Vp=zu((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=rc(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const w=Yu();bc(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,Ir.useState)(!1),{portalRef:O,domReady:A}=ru(o,k.portalRef),M=Yc(b),R=Yc(y),B=!!y;Gc((()=>{if(!(null==x?void 0:x.isConnected))return;x.style.setProperty("--popover-overflow-padding",`${v}px`);const e=Mp(E,M),t=async()=>{if(!I)return;const t=[Lp(_,{gutter:h,shift:u}),Dp({flip:c,overflowPadding:v}),zp({slide:d,overlap:f,overflowPadding:v}),jp(_,{arrowPadding:g}),Fp({sameWidth:p,fitViewport:m,overflowPadding:v})],r=await Op(e,x,{placement:C,strategy:l?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),N(!0);const o=Bp(r.x),i=Bp(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=Np(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]),Gc((()=>{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=nu(k,(e=>(0,Ru.jsx)("div",nc(tc({role:"presentation"},s),{style:tc({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=nu(k,(e=>(0,Ru.jsx)(Zu,{value:n,children:e})),[n]),k=nc(tc({"data-placing":P?void 0:""},k),{style:tc({position:"relative"},k.style)}),k=xf(nc(tc({store:n,modal:r,preserveTabOrder:i,portal:o,autoFocusOnShow:P&&a},k),{portalRef:O}))}));Sf(Bu((e=>Du("div",Vp(e)))),Yu);function Hp(e,t,n,r){return!!fd(t)||!!e&&(!!Tc(t,e)||(!(!n||!Tc(n,e))||!!(null==r?void 0:r.some((t=>Hp(e,t,n))))))}var $p=(0,Ir.createContext)(null),Up=zu((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:s=!!a}=t,l=rc(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const c=Ju();bc(n=n||c,!1);const u=(0,Ir.useRef)(null),[d,f]=(0,Ir.useState)([]),p=(0,Ir.useRef)(0),m=(0,Ir.useRef)(null),{portalRef:h,domReady:g}=ru(o,l.portalRef),v=!!a,b=tu(a),y=!!s,k=tu(s),w=n.useState("open"),_=n.useState("mounted");(0,Ir.useEffect)((()=>{if(!g)return;if(!_)return;if(!v&&!y)return;const e=u.current;if(!e)return;return gc($c("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),a=m.current,s=t.target,l=r;if(Hp(s,e,l,d))return m.current=s&&l&&Tc(l,s)?Rd(t):null,window.clearTimeout(p.current),void(p.current=0);if(!p.current){if(a){const n=Rd(t);if(Bd(n,Ld(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,Ir.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=Ld(t,n);if(Bd(Rd(e),r)){if(!k(e))return;e.preventDefault(),e.stopPropagation()}};return gc($c("mouseenter",e,!0),$c("mouseover",e,!0),$c("mouseout",e,!0),$c("mouseleave",e,!0))}),[g,_,y,k]),(0,Ir.useEffect)((()=>{g&&(w||null==n||n.setAutoFocusOnShow(!1))}),[n,g,w]);const E=qc(w);(0,Ir.useEffect)((()=>{if(g)return()=>{E.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,g]);const x=(0,Ir.useContext)($p);Gc((()=>{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,Ir.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=nu(l,(e=>(0,Ru.jsx)(td,{value:n,children:(0,Ru.jsx)($p.Provider,{value:S,children:e})})),[n,S]),l=nc(tc({},l),{ref:Xc(u,l.ref)}),l=function(e){var t=e,{store:n}=t,r=rc(t,["store"]);const[o,i]=(0,Ir.useState)(!1),a=n.useState("mounted");(0,Ir.useEffect)((()=>{a||i(!1)}),[a]);const s=r.onFocus,l=Yc((e=>{null==s||s(e),e.defaultPrevented||i(!0)})),c=(0,Ir.useRef)(null);return(0,Ir.useEffect)((()=>mu(n,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),nc(tc({autoFocusOnHide:o,finalFocus:c},r),{onFocus:l})}(tc({store:n},l));const C=n.useState((e=>r||e.autoFocusOnShow));return l=Vp(nc(tc({store:n,modal:r,portal:o,autoFocusOnShow:C},l),{portalRef:h,hideOnEscape:e=>!yc(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));Sf(Bu((e=>Du("div",Up(e)))),Ju);var Wp=zu((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:s=!0}=t,l=rc(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Pd();bc(n=n||c,!1),l=nu(l,(e=>(0,Ru.jsx)(Nd,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=tc({role:u},l),l=Up(nc(tc({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(yc(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(yc(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Tc(t,e.target)}}))})),Kp=Sf(Bu((e=>Du("div",Wp(e)))),Pd);const Gp=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,Ir.createElement)("span",{className:n,"aria-label":o},r)},qp={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"},Yp=e=>{var t;return null!==(t=qp[e])&&void 0!==t?t:"bottom"},Xp={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 Zp=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),Qp=700;const Jp=function e(t){const{children:n,delay:r=Qp,hideOnClick:o=!0,placement:i,position:a,shortcut:s,text:l}=t,c=Gl(e,"tooltip"),u=l||s?c:void 0,d=1===Ir.Children.count(n);let f;void 0!==i?f=i:void 0!==a&&(f=Yp(a),sn("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),f=f||"bottom";const p=Mu({placement:f,timeout:r}),m=p.useState("open");return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Md,{onClick:o?p.hide:void 0,store:p,render:d?n:void 0},d?void 0:n),d&&(l||s)&&m&&(0,Ir.createElement)(Kp,{className:"components-tooltip",gutter:4,id:u,overflowPadding:.5,store:p},l,s&&(0,Ir.createElement)(Gp,{className:l?"components-tooltip__shortcut":"",shortcut:s})))},em=e=>(0,Ir.createElement)("path",e),tm=(0,Ir.forwardRef)((({className:e,isPressed:t,...n},r)=>{const o={...n,className:$l()(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,Ir.createElement)("svg",{...o,ref:r})}));tm.displayName="SVG";const nm=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,Ir.createElement)("span",{className:i,style:a,...o})};const rm=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,Ir.createElement)(nm,{icon:e,size:t,...n});if((0,Ir.isValidElement)(e)&&nm===e.type)return(0,Ir.cloneElement)(e,{...n});if("function"==typeof e)return(0,Ir.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===tm)){const r={...e.props,width:t,height:t,...n};return(0,Ir.createElement)(tm,{...r})}return(0,Ir.isValidElement)(e)?(0,Ir.cloneElement)(e,{size:t,...n}):e},om=new Set;function im(e){if("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&!om.has(e)){console.warn(e);try{throw Error(e)}catch(e){}om.add(e)}}const am=function(e,t){const n=(0,Ir.useRef)(!1);(0,Ir.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},sm=(0,Ir.createContext)({}),lm=()=>(0,Ir.useContext)(sm);const cm=(0,Ir.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=lm(),n=(0,Ir.useRef)(e);return am((()=>{Ma()(n.current,e)&&n.current!==e&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im(`Please memoize your context: ${JSON.stringify(e)}`)}),[e]),(0,Ir.useMemo)((()=>rl()(null!=t?t:{},null!=e?e:{},{isMergeableObject:Ee})),[t,e])}({value:t});return(0,Ir.createElement)(sm.Provider,{value:n},e)})),um="data-wp-component",dm="data-wp-c16t",fm="__contextSystemKey__";const pm=Tn((function(e){return`components-${Di(e)}`}));var mm=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}(),hm=Math.abs,gm=String.fromCharCode,vm=Object.assign;function bm(e){return e.trim()}function ym(e,t,n){return e.replace(t,n)}function km(e,t){return e.indexOf(t)}function wm(e,t){return 0|e.charCodeAt(t)}function _m(e,t,n){return e.slice(t,n)}function Em(e){return e.length}function xm(e){return e.length}function Sm(e,t){return t.push(e),e}var Cm=1,Im=1,Tm=0,Pm=0,Nm=0,Om="";function Am(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Cm,column:Im,length:a,return:""}}function Mm(e,t){return vm(Am("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rm(){return Nm=Pm>0?wm(Om,--Pm):0,Im--,10===Nm&&(Im=1,Cm--),Nm}function Bm(){return Nm=Pm<Tm?wm(Om,Pm++):0,Im++,10===Nm&&(Im=1,Cm++),Nm}function Lm(){return wm(Om,Pm)}function Dm(){return Pm}function zm(e,t){return _m(Om,e,t)}function Fm(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 jm(e){return Cm=Im=1,Tm=Em(Om=e),Pm=0,[]}function Vm(e){return Om="",e}function Hm(e){return bm(zm(Pm-1,Wm(91===e?e+2:40===e?e+1:e)))}function $m(e){for(;(Nm=Lm())&&Nm<33;)Bm();return Fm(e)>2||Fm(Nm)>3?"":" "}function Um(e,t){for(;--t&&Bm()&&!(Nm<48||Nm>102||Nm>57&&Nm<65||Nm>70&&Nm<97););return zm(e,Dm()+(t<6&&32==Lm()&&32==Bm()))}function Wm(e){for(;Bm();)switch(Nm){case e:return Pm;case 34:case 39:34!==e&&39!==e&&Wm(Nm);break;case 40:41===e&&Wm(e);break;case 92:Bm()}return Pm}function Km(e,t){for(;Bm()&&e+Nm!==57&&(e+Nm!==84||47!==Lm()););return"/*"+zm(t,Pm-1)+"*"+gm(47===e?e:Bm())}function Gm(e){for(;!Fm(Lm());)Bm();return zm(e,Pm)}var qm="-ms-",Ym="-moz-",Xm="-webkit-",Zm="comm",Qm="rule",Jm="decl",eh="@keyframes";function th(e,t){for(var n="",r=xm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function nh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Jm:return e.return=e.return||e.value;case Zm:return"";case eh:return e.return=e.value+"{"+th(e.children,r)+"}";case Qm:e.value=e.props.join(",")}return Em(n=th(e.children,r))?e.return=e.value+"{"+n+"}":""}function rh(e){return Vm(oh("",null,null,null,[""],e=jm(e),0,[0],e))}function oh(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=Bm()){case 40:if(108!=m&&58==wm(E,d-1)){-1!=km(E+=ym(Hm(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Hm(b);break;case 9:case 10:case 13:case 32:E+=$m(m);break;case 92:E+=Um(Dm()-1,7);continue;case 47:switch(Lm()){case 42:case 47:Sm(ah(Km(Bm(),Dm()),t,n),l);break;default:E+="/"}break;case 123*h:s[c++]=Em(E)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=ym(E,/\f/g,"")),p>0&&Em(E)-d&&Sm(p>32?sh(E+";",r,n,d-1):sh(ym(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Sm(_=ih(E,t,n,c,u,o,s,y,k=[],w=[],d),i),123===b)if(0===u)oh(E,t,_,_,k,i,d,s,w);else switch(99===f&&110===wm(E,3)?100:f){case 100:case 108:case 109:case 115:oh(e,_,_,r&&Sm(ih(e,_,_,0,0,o,s,y,o,k=[],d),w),o,w,d,s,r?k:w);break;default:oh(E,_,_,_,[""],w,0,s,w)}}c=u=p=0,h=v=1,y=E="",d=a;break;case 58:d=1+Em(E),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Rm())continue;switch(E+=gm(b),b*h){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Em(E)-1)*v,v=1;break;case 64:45===Lm()&&(E+=Hm(Bm())),f=Lm(),u=d=Em(y=E+=Gm(Dm())),b++;break;case 45:45===m&&2==Em(E)&&(h=0)}}return i}function ih(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=xm(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=_m(e,d+1,d=hm(h=a[m])),y=e;v<p;++v)(y=bm(h>0?f[v]+" "+b:ym(b,/&\f/g,f[v])))&&(l[g++]=y);return Am(e,t,n,0===o?Qm:s,l,c,u)}function ah(e,t,n){return Am(e,t,n,Zm,gm(Nm),_m(e,2,-2),0)}function sh(e,t,n,r){return Am(e,t,n,Jm,_m(e,0,r),_m(e,r+1,-1),r)}var lh=function(e,t,n){for(var r=0,o=0;r=o,o=Lm(),38===r&&12===o&&(t[n]=1),!Fm(o);)Bm();return zm(e,Pm)},ch=function(e,t){return Vm(function(e,t){var n=-1,r=44;do{switch(Fm(r)){case 0:38===r&&12===Lm()&&(t[n]=1),e[n]+=lh(Pm-1,t,n);break;case 2:e[n]+=Hm(r);break;case 4:if(44===r){e[++n]=58===Lm()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gm(r)}}while(r=Bm());return e}(jm(e),t))},uh=new WeakMap,dh=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)||uh.get(n))&&!r){uh.set(e,!0);for(var o=[],i=ch(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]}}},fh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ph(e,t){switch(function(e,t){return 45^wm(e,0)?(((t<<2^wm(e,0))<<2^wm(e,1))<<2^wm(e,2))<<2^wm(e,3):0}(e,t)){case 5103:return Xm+"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 Xm+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xm+e+Ym+e+qm+e+e;case 6828:case 4268:return Xm+e+qm+e+e;case 6165:return Xm+e+qm+"flex-"+e+e;case 5187:return Xm+e+ym(e,/(\w+).+(:[^]+)/,Xm+"box-$1$2"+qm+"flex-$1$2")+e;case 5443:return Xm+e+qm+"flex-item-"+ym(e,/flex-|-self/,"")+e;case 4675:return Xm+e+qm+"flex-line-pack"+ym(e,/align-content|flex-|-self/,"")+e;case 5548:return Xm+e+qm+ym(e,"shrink","negative")+e;case 5292:return Xm+e+qm+ym(e,"basis","preferred-size")+e;case 6060:return Xm+"box-"+ym(e,"-grow","")+Xm+e+qm+ym(e,"grow","positive")+e;case 4554:return Xm+ym(e,/([^-])(transform)/g,"$1"+Xm+"$2")+e;case 6187:return ym(ym(ym(e,/(zoom-|grab)/,Xm+"$1"),/(image-set)/,Xm+"$1"),e,"")+e;case 5495:case 3959:return ym(e,/(image-set\([^]*)/,Xm+"$1$`$1");case 4968:return ym(ym(e,/(.+:)(flex-)?(.*)/,Xm+"box-pack:$3"+qm+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xm+e+e;case 4095:case 3583:case 4068:case 2532:return ym(e,/(.+)-inline(.+)/,Xm+"$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(Em(e)-1-t>6)switch(wm(e,t+1)){case 109:if(45!==wm(e,t+4))break;case 102:return ym(e,/(.+:)(.+)-([^]+)/,"$1"+Xm+"$2-$3$1"+Ym+(108==wm(e,t+3)?"$3":"$2-$3"))+e;case 115:return~km(e,"stretch")?ph(ym(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==wm(e,t+1))break;case 6444:switch(wm(e,Em(e)-3-(~km(e,"!important")&&10))){case 107:return ym(e,":",":"+Xm)+e;case 101:return ym(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xm+(45===wm(e,14)?"inline-":"")+"box$3$1"+Xm+"$2$3$1"+qm+"$2box$3")+e}break;case 5936:switch(wm(e,t+11)){case 114:return Xm+e+qm+ym(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xm+e+qm+ym(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xm+e+qm+ym(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xm+e+qm+e+e}return e}var mh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Jm:e.return=ph(e.value,e.length);break;case eh:return th([Mm(e,{value:ym(e.value,"@","@"+Xm)})],r);case Qm: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 th([Mm(e,{props:[ym(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return th([Mm(e,{props:[ym(t,/:(plac\w+)/,":"+Xm+"input-$1")]}),Mm(e,{props:[ym(t,/:(plac\w+)/,":-moz-$1")]}),Mm(e,{props:[ym(t,/:(plac\w+)/,qm+"input-$1")]})],r)}return""}))}}],hh=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||mh;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=[nh,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[dh,fh].concat(r,f),u=xm(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){th(rh(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new mm({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 gh={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 vh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var bh=/[A-Z]|^ms/g,yh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kh=function(e){return 45===e.charCodeAt(1)},wh=function(e){return null!=e&&"boolean"!=typeof e},_h=vh((function(e){return kh(e)?e:e.replace(bh,"-$&").toLowerCase()})),Eh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(yh,(function(e,t,n){return Sh={name:t,styles:n,next:Sh},t}))}return 1===gh[e]||kh(e)||"number"!=typeof t||0===t?t:t+"px"};function xh(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 Sh={name:n.name,styles:n.styles,next:Sh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Sh={name:r.name,styles:r.styles,next:Sh},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+=xh(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]+"}":wh(a)&&(r+=_h(i)+":"+Eh(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=xh(e,t,a);switch(i){case"animation":case"animationName":r+=_h(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)wh(a[l])&&(r+=_h(i)+":"+Eh(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Sh,i=n(e);return Sh=o,xh(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Sh,Ch=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ih=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="";Sh=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=xh(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=xh(n,t,e[a]),r&&(o+=i[a]);Ch.lastIndex=0;for(var s,l="";null!==(s=Ch.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:Sh}},Th=!!Tr.useInsertionEffect&&Tr.useInsertionEffect,Ph=Th||function(e){return e()},Nh=(Th||Ir.useLayoutEffect,Ir.createContext("undefined"!=typeof HTMLElement?hh({key:"css"}):null));var Oh=Nh.Provider,Ah=function(e){return(0,Ir.forwardRef)((function(t,n){var r=(0,Ir.useContext)(Nh);return e(t,r,n)}))};var Mh=Ir.createContext({});function Rh(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Bh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Lh=function(e,t,n){Bh(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 Dh(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function zh(e,t,n){var r=[],o=Rh(e,r,n);return r.length<2?n:o+t(r)}var Fh=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},jh=function(e){var t=hh(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=Ih(n,t.registered,void 0);return Lh(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 zh(t.registered,n,Fh(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Ih(n,t.registered);Dh(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Ih(n,t.registered),i="animation-"+o.name;return Dh(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:Rh.bind(null,t.registered),merge:zh.bind(null,t.registered,n)}}({key:"css"}),Vh=(jh.flush,jh.hydrate,jh.cx);jh.merge,jh.getRegisteredStyles,jh.injectGlobal,jh.keyframes,jh.css,jh.sheet,jh.cache;const Hh=()=>{const e=(0,Ir.useContext)(Nh),t=(0,Ir.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Vh(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Lh(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function $h(e,t){const n=lm();void 0===t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im("useContextSystem: Please provide a namespace");const r=n?.[t]||{},o={[dm]:!0,...(i=t,{[um]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Hh()(pm(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 Uh(e,t){return Kh(e,t,{forwardsRef:!0})}function Wh(e,t){return Kh(e,t)}function Kh(e,t,n){const r=n?.forwardsRef?(0,Ir.forwardRef)(e):e;void 0===t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im("contextConnect: Please provide a namespace");let o=r[fm]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[fm]:[...new Set(o)],displayName:t,selector:`.${pm(t)}`})}function Gh(e){if(!e)return[];let t=[];return e[fm]&&(t=e[fm]),e.type&&e.type[fm]&&(t=e.type[fm]),t}function qh(e,t){return!!e&&("string"==typeof t?Gh(e).includes(t):!!Array.isArray(t)&&t.some((t=>Gh(e).includes(t))))}const Yh={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 Xh(){return Xh=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},Xh.apply(this,arguments)}var Zh=/^((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)-.*))$/,Qh=vh((function(e){return Zh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Jh=Qh,eg=function(e){return"theme"!==e},tg=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Jh:eg},ng=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},rg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Bh(t,n,r),Ph((function(){return Lh(t,n,r)})),null},og=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=ng(t,n,i),l=s||tg(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=Ah((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=Ir.useContext(Mh)}"string"==typeof e.className?i=Rh(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=Ih(d.concat(u),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?tg(r):l,g={};for(var v in e)c&&"as"===v||h(v)&&(g[v]=e[v]);return g.className=i,g.ref=n,Ir.createElement(Ir.Fragment,null,Ir.createElement(rg,{cache:t,serialized:m,isStringTag:"string"==typeof r}),Ir.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,Xh({},n,r,{shouldForwardProp:ng(m,r,!0)})).apply(void 0,d)},m}};const ig=og("div",{target:"e19lxcc00"})("");ig.selector=".components-view",ig.displayName="View";const ag=ig;const sg=Uh((function(e,t){const{style:n,...r}=$h(e,"VisuallyHidden");return(0,Ir.createElement)(ag,{ref:t,...r,style:{...Yh,...n||{}}})}),"VisuallyHidden"),lg=["onMouseDown","onClick"];const cg=(0,Ir.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&&(sn("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=Gl(cg,"components-button__description"),T="string"==typeof m&&!!m||Array.isArray(m)&&m?.[0]&&null!==m[0]&&"components-tooltip"!==m?.[0]?.props?.className,P=$l()("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 lg)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,Ir.createElement)(Ir.Fragment,null,s&&"left"===l&&(0,Ir.createElement)(rm,{icon:s,size:c}),g&&(0,Ir.createElement)(Ir.Fragment,null,g),s&&"right"===l&&(0,Ir.createElement)(rm,{icon:s,size:c}),m),F="a"===O?(0,Ir.createElement)("a",{...M,...C,...D},z):(0,Ir.createElement)("button",{...A,...C,...D},z);let j;return void 0!==d&&(j=Yp(d)),R?(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Jp,{text:m?.length&&y?y:p,shortcut:f,placement:j},F),y&&(0,Ir.createElement)(sg,null,(0,Ir.createElement)("span",{id:B},y))):(0,Ir.createElement)(Ir.Fragment,null,F,y&&(0,Ir.createElement)(sg,null,(0,Ir.createElement)("span",{id:B},y)))})),ug=cg;function dg(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Nc(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Nc(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var fg=zu((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=rc(t,["clickOnEnter","clickOnSpace"]);const i=(0,Ir.useRef)(null),a=Qc(i,o.as),s=o.type,[l,c]=(0,Ir.useState)((()=>!!a&&Nc({tagName:a,type:s})));(0,Ir.useEffect)((()=>{i.current&&c(Nc(i.current))}),[]);const[u,d]=(0,Ir.useState)(!1),f=(0,Ir.useRef)(!1),p="data-command"in o,m=kc(o),h=o.onKeyDown,g=Yc((e=>{null==h||h(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(m)return;if(!zc(e))return;if(Bc(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=dg(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=rc(n,["view"]),i=()=>jc(t,o);Sc&&/firefox\//i.test(navigator.userAgent)?Hc(t,"keyup",i):queueMicrotask(i)}}else i&&(f.current=!0,n||(e.preventDefault(),d(!0)))}})),v=o.onKeyUp,b=Yc((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,!dg(e))){e.preventDefault(),d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=rc(n,["view"]);queueMicrotask((()=>jc(t,o)))}}));return o=nc(tc({"data-command":"","data-active":u?"":void 0,type:l?"button":void 0},o),{ref:Xc(i,o.ref),onKeyDown:g,onKeyUp:b}),o=Cd(o)}));Bu((e=>Du("button",e=fg(e))));var pg=Fu(),mg=pg.useContext,hg=(pg.useScopedContext,pg.useProviderContext,pg.ContextProvider),gg=pg.ScopedContextProvider,vg=zu((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=vc,element:i}=t,a=rc(t,["store","shouldRegisterItem","getItem","element"]);const s=mg();n=n||s;const l=Zc(a.id),c=(0,Ir.useRef)(i);return(0,Ir.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=nc(tc({},a),{ref:Xc(c,a.ref)})}));Bu((e=>Du("div",vg(e))));function bg(e,t){return t&&e.item(t)||null}var yg=Symbol("FOCUS_SILENTLY");function kg(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 wg=Fu([hg],[gg]),_g=wg.useContext,Eg=(wg.useScopedContext,wg.useProviderContext),xg=wg.ContextProvider,Sg=wg.ScopedContextProvider,Cg=(0,Ir.createContext)(void 0),Ig=(0,Ir.createContext)(void 0);function Tg(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Pg(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=Lc(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=bg(t,l))?void 0:o.element;if(!a)continue;const u=Tg(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 Ng=zu((e=>{var t=e,{store:n,rowId:r,preventScrollOnKeyDown:o=!1,moveOnKeyPress:i=!0,getItem:a,"aria-setsize":s,"aria-posinset":l}=t,c=rc(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","getItem","aria-setsize","aria-posinset"]);const u=_g();n=n||u;const d=Zc(c.id),f=(0,Ir.useRef)(null),p=(0,Ir.useContext)(Ig),m=wu(n,(e=>r||(e&&(null==p?void 0:p.baseElement)&&p.baseElement===e.baseElement?p.id:void 0))),h=kc(c)&&!c.accessibleWhenDisabled,g=(0,Ir.useCallback)((e=>{const t=nc(tc({},e),{id:d||e.id,rowId:m,disabled:!!h});return a?a(t):t}),[d,m,h,a]),v=c.onFocus,b=(0,Ir.useRef)(!1),y=Yc((e=>{if(null==v||v(e),e.defaultPrevented)return;if(Dc(e))return;if(!d)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!zc(e)&&kg(t,e.target)}(e,n))return;if(t!==d&&n.setActiveId(d),!r)return;if(!zc(e))return;if((i=e.currentTarget).isContentEditable||Bc(i)||"INPUT"===i.tagName&&!Nc(i))return;var i;if(!o)return;b.current=!0;e.relatedTarget===o||kg(n,e.relatedTarget)?function(e){e[yg]=!0,e.focus()}(o):o.focus()})),k=c.onBlurCapture,w=Yc((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=tu(o),x=tu(i),S=Yc((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!zc(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:()=>Pg(t,n,null==n?void 0:n.up,!0),PageDown:()=>Pg(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=wu(n,(e=>(null==e?void 0:e.baseElement)||void 0)),I=(0,Ir.useMemo)((()=>({id:d,baseElement:C})),[d,C]);c=nu(c,(e=>(0,Ru.jsx)(Cg.Provider,{value:I,children:e})),[I]);const T=wu(n,(e=>!!e&&e.activeId===d)),P=wu(n,"virtualFocus"),N=function(e,t){const n=t.role,[r,o]=(0,Ir.useState)(n);return Gc((()=>{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=wu(n,(e=>null!=s?s:e&&(null==p?void 0:p.ariaSetSize)&&p.baseElement===e.baseElement?p.ariaSetSize:void 0)),M=wu(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=wu(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&e.activeId===d));return c=nc(tc({id:d,"aria-selected":O,"data-active-item":T?"":void 0},c),{ref:Xc(f,c.ref),tabIndex:R?c.tabIndex:-1,onFocus:y,onBlurCapture:w,onKeyDown:S}),c=fg(c),c=vg(nc(tc({store:n},c),{getItem:g,shouldRegisterItem:!!d&&c.shouldRegisterItem})),nc(tc({},c),{"aria-setsize":A,"aria-posinset":M})}));Lu((e=>Du("button",Ng(e))));var Og=Fu([xg],[Sg]),Ag=Og.useContext,Mg=(Og.useScopedContext,Og.useProviderContext,Og.ContextProvider,Og.ScopedContextProvider,zu((e=>{var t=e,{store:n}=t,r=rc(t,["store"]);const o=Ag();return r=Ng(tc({store:n=n||o},r))}))),Rg=Lu((e=>Du("button",Mg(e))));const Bg=(0,Ir.createContext)(void 0);const Lg=(0,Ir.forwardRef)((function({children:e,as:t,...n},r){const o=(0,Ir.useContext)(Bg),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im("`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,Ir.createElement)(t,{...a},e):i?e(a):null;const s=i?e:t&&(0,Ir.createElement)(t,null,e);return(0,Ir.createElement)(Rg,{...a,store:o,render:s})})),Dg=({children:e,className:t})=>(0,Ir.createElement)("div",{className:t},e);const zg=(0,Ir.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:a,...s},l){return(0,Ir.useContext)(Bg)?(0,Ir.createElement)(Lg,{className:$l()("components-toolbar-button",t),...r,...s,ref:l},(t=>(0,Ir.createElement)(ug,{label:a,isPressed:o,disabled:i,...t},e))):(0,Ir.createElement)(Dg,{className:n},(0,Ir.createElement)(ug,{ref:l,icon:s.icon,label:a,shortcut:s.shortcut,"data-subscript":s.subscript,onClick:e=>{e.stopPropagation(),s.onClick&&s.onClick(e)},className:$l()("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...s},e))})),Fg=zg,jg=({className:e,children:t,...n})=>(0,Ir.createElement)("div",{className:e,...n},t),Vg=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function Hg(e,t){"function"==typeof e?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function $g(e){const t=(0,Ir.useRef)(),n=(0,Ir.useRef)(!1),r=(0,Ir.useRef)(!1),o=(0,Ir.useRef)([]),i=(0,Ir.useRef)(e);return i.current=e,(0,Ir.useLayoutEffect)((()=>{!1===r.current&&!0===n.current&&e.forEach(((e,n)=>{const r=o.current[n];e!==r&&(Hg(r,null),Hg(e,t.current))})),o.current=e}),e),(0,Ir.useLayoutEffect)((()=>{r.current=!1})),(0,Ir.useCallback)((e=>{Hg(t,e),r.current=!0,n.current=null!==e;const a=e?i.current:o.current;for(const t of a)Hg(t,e)}),[])}function Ug({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,a]=(0,Ir.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 Wg=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?Gf({element:n.current,padding:r}).fn(t):{}:n?Gf({element:n,padding:r}).fn(t):{};var o}});var Kg="undefined"!=typeof document?Ir.useLayoutEffect:Ir.useEffect;function Gg(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(!Gg(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)&&!Gg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function qg(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yg(e,t){const n=qg(e);return Math.round(t*n)/n}function Xg(e){const t=Ir.useRef(e);return Kg((()=>{t.current=e})),t}const Zg="undefined"!=typeof document,Qg={current:null},Jg={current:!1};function ev(){if(Jg.current=!0,Zg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qg.current=e.matches;e.addListener(t),t()}else Qg.current=!1}function tv(){!Jg.current&&ev();const[e]=(0,Ir.useState)(Qg.current);return e}const nv=(0,Ir.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rv=(0,Ir.createContext)({}),ov=(0,Ir.createContext)(null),iv=Zg?Ir.useLayoutEffect:Ir.useEffect,av=(0,Ir.createContext)({strict:!1});function sv(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function lv(e){return"string"==typeof e||Array.isArray(e)}function cv(e){return"object"==typeof e&&"function"==typeof e.start}const uv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dv=["initial",...uv];function fv(e){return cv(e.animate)||dv.some((t=>lv(e[t])))}function pv(e){return Boolean(fv(e)||e.variants)}function mv(e){const{initial:t,animate:n}=function(e,t){if(fv(e)){const{initial:t,animate:n}=e;return{initial:!1===t||lv(t)?t:void 0,animate:lv(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,Ir.useContext)(rv));return(0,Ir.useMemo)((()=>({initial:t,animate:n})),[hv(t),hv(n)])}function hv(e){return Array.isArray(e)?e.join(" "):e}const gv={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"]},vv={};for(const e in gv)vv[e]={isEnabled:t=>gv[e].some((e=>!!t[e]))};const bv=(0,Ir.createContext)({}),yv=(0,Ir.createContext)({}),kv=Symbol.for("motionComponentSymbol");function wv({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)vv[t]={...vv[t],...e[t]}}(e);const i=(0,Ir.forwardRef)((function(i,a){let s;const l={...(0,Ir.useContext)(nv),...i,layoutId:_v(i)},{isStatic:c}=l,u=mv(i),d=r(i,c);if(!c&&Zg){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,Ir.useContext)(rv),i=(0,Ir.useContext)(av),a=(0,Ir.useContext)(ov),s=(0,Ir.useContext)(nv).reducedMotion,l=(0,Ir.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,Ir.useInsertionEffect)((()=>{c&&c.update(n,a)}));const u=(0,Ir.useRef)(Boolean(window.HandoffAppearAnimations));return iv((()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())})),(0,Ir.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,Ir.useContext)(yv),r=(0,Ir.useContext)(av).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,n))}return Ir.createElement(rv.Provider,{value:u},s&&u.visualElement?Ir.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,function(e,t,n){return(0,Ir.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):sv(n)&&(n.current=r))}),[t])}(d,u.visualElement,a),d,c,u.visualElement))}));return i[kv]=o,i}function _v({layoutId:e}){const t=(0,Ir.useContext)(bv).id;return t&&void 0!==e?t+"-"+e:e}function Ev(e){function t(t,n={}){return wv(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 xv=["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 Sv(e){return"string"==typeof e&&!e.includes("-")&&!!(xv.indexOf(e)>-1||/[A-Z]/.test(e))}const Cv={};const Iv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Tv=new Set(Iv);function Pv(e,{layout:t,layoutId:n}){return Tv.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Cv[e]||"opacity"===e)}const Nv=e=>Boolean(e&&e.getVelocity),Ov={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Av=Iv.length;const Mv=e=>t=>"string"==typeof t&&t.startsWith(e),Rv=Mv("--"),Bv=Mv("var(--"),Lv=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Dv=(e,t,n)=>Math.min(Math.max(n,e),t),zv={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Fv={...zv,transform:e=>Dv(0,1,e)},jv={...zv,default:1},Vv=e=>Math.round(1e5*e)/1e5,Hv=/(-)?([\d]*\.?[\d])+/g,$v=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Uv=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Wv(e){return"string"==typeof e}const Kv=e=>({test:t=>Wv(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Gv=Kv("deg"),qv=Kv("%"),Yv=Kv("px"),Xv=Kv("vh"),Zv=Kv("vw"),Qv={...qv,parse:e=>qv.parse(e)/100,transform:e=>qv.transform(100*e)},Jv={...zv,transform:Math.round},eb={borderWidth:Yv,borderTopWidth:Yv,borderRightWidth:Yv,borderBottomWidth:Yv,borderLeftWidth:Yv,borderRadius:Yv,radius:Yv,borderTopLeftRadius:Yv,borderTopRightRadius:Yv,borderBottomRightRadius:Yv,borderBottomLeftRadius:Yv,width:Yv,maxWidth:Yv,height:Yv,maxHeight:Yv,size:Yv,top:Yv,right:Yv,bottom:Yv,left:Yv,padding:Yv,paddingTop:Yv,paddingRight:Yv,paddingBottom:Yv,paddingLeft:Yv,margin:Yv,marginTop:Yv,marginRight:Yv,marginBottom:Yv,marginLeft:Yv,rotate:Gv,rotateX:Gv,rotateY:Gv,rotateZ:Gv,scale:jv,scaleX:jv,scaleY:jv,scaleZ:jv,skew:Gv,skewX:Gv,skewY:Gv,distance:Yv,translateX:Yv,translateY:Yv,translateZ:Yv,x:Yv,y:Yv,z:Yv,perspective:Yv,transformPerspective:Yv,opacity:Fv,originX:Qv,originY:Qv,originZ:Yv,zIndex:Jv,fillOpacity:Fv,strokeOpacity:Fv,numOctaves:Jv};function tb(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(Rv(e)){i[e]=n;continue}const r=eb[e],d=Lv(n,r);if(Tv.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<Av;t++){const n=Iv[t];void 0!==e[n]&&(i+=`${Ov[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 nb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rb(e,t,n){for(const r in t)Nv(t[r])||Pv(r,n)||(e[r]=t[r])}function ob(e,t,n){const r={};return rb(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,Ir.useMemo)((()=>{const r=nb();return tb(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function ib(e,t,n){const r={},o=ob(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 ab=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 sb(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||ab.has(e)}let lb=e=>!sb(e);try{(cb=o(8208).Z)&&(lb=e=>e.startsWith("on")?!sb(e):cb(e))}catch(xc){}var cb;function ub(e,t,n){return"string"==typeof e?e:Yv.transform(t+n*e)}const db={offset:"stroke-dashoffset",array:"stroke-dasharray"},fb={offset:"strokeDashoffset",array:"strokeDasharray"};function pb(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(tb(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`${ub(t,e.x,e.width)} ${ub(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?db:fb;e[i.offset]=Yv.transform(-r);const a=Yv.transform(t),s=Yv.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const mb=()=>({...nb(),attrs:{}}),hb=e=>"string"==typeof e&&"svg"===e.toLowerCase();function gb(e,t,n,r){const o=(0,Ir.useMemo)((()=>{const n=mb();return pb(n,t,{enableHardwareAcceleration:!1},hb(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};rb(t,e.style,e),o.style={...t,...o.style}}return o}function vb(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(Sv(t)?gb:ib)(n,o,i,t),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(lb(o)||!0===n&&sb(o)||!t&&!sb(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,Ir.useMemo)((()=>Nv(c)?c.get():c),[c]);return(0,Ir.createElement)(t,{...l,children:u})}}const bb=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function yb(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 kb=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 wb(e,t,n,r){yb(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(kb.has(n)?n:bb(n),t.attrs[n])}function _b(e,t){const{style:n}=e,r={};for(const o in n)(Nv(n[o])||t.style&&Nv(t.style[o])||Pv(o,e))&&(r[o]=n[o]);return r}function Eb(e,t){const n=_b(e,t);for(const r in e)if(Nv(e[r])||Nv(t[r])){n[-1!==Iv.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function xb(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 Sb(e){const t=(0,Ir.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Cb=e=>Array.isArray(e),Ib=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Tb=e=>Cb(e)?e[e.length-1]||0:e;function Pb(e){const t=Nv(e)?e.get():e;return Ib(t)?t.toValue():t}const Nb=e=>(t,n)=>{const r=(0,Ir.useContext)(rv),o=(0,Ir.useContext)(ov),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Ob(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():Sb(i)};function Ob(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Pb(i[e]);let{initial:a,animate:s}=e;const l=fv(e),c=pv(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&&!cv(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=xb(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 Ab=e=>e;class Mb{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 Rb=["prepare","read","update","preRender","render","postRender"];const{schedule:Bb,cancel:Lb,state:Db,steps:zb}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Rb.reduce(((e,t)=>(e[t]=function(e){let t=new Mb,n=new Mb,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,Rb.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=Rb.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=>Rb.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ab,!0),Fb={useVisualState:Nb({scrapeMotionValuesFromProps:Eb,createRenderState:mb,onMount:(e,t,{renderState:n,latestValues:r})=>{Bb.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Bb.render((()=>{pb(n,r,{enableHardwareAcceleration:!1},hb(t.tagName),e.transformTemplate),wb(t,n)}))}})},jb={useVisualState:Nb({scrapeMotionValuesFromProps:_b,createRenderState:nb})};function Vb(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Hb=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function $b(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Ub=e=>t=>Hb(t)&&e(t,$b(t));function Wb(e,t,n,r){return Vb(e,t,Ub(n),r)}const Kb=(e,t)=>n=>t(e(n)),Gb=(...e)=>e.reduce(Kb);function qb(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Yb=qb("dragHorizontal"),Xb=qb("dragVertical");function Zb(e){let t=!1;if("y"===e)t=Xb();else if("x"===e)t=Yb();else{const e=Yb(),n=Xb();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Qb(){const e=Zb(!0);return!e||(e(),!1)}class Jb{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ey(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Wb(e.current,n,((n,o)=>{if("touch"===n.type||Qb())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Bb.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const ty=(e,t)=>!!t&&(e===t||ty(e,t.parentElement));function ny(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,$b(n))}const ry=new WeakMap,oy=new WeakMap,iy=e=>{const t=ry.get(e.target);t&&t(e)},ay=e=>{e.forEach(iy)};function sy(e,t,n){const r=function({root:e,...t}){const n=e||document;oy.has(n)||oy.set(n,{});const r=oy.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ay,{root:e,...t})),r[o]}(t);return ry.set(e,n),r.observe(e),()=>{ry.delete(e),r.unobserve(e)}}const ly={some:0,all:1};const cy={inView:{Feature:class extends Jb{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:ly[r]};return sy(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 Jb{constructor(){super(...arguments),this.removeStartListeners=Ab,this.removeEndListeners=Ab,this.removeAccessibleListeners=Ab,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Wb(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Bb.update((()=>{ty(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Wb(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Gb(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Vb(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Vb(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&ny("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Bb.update((()=>n(e,t)))}))})),ny("down",((e,t)=>{this.startPress(e,t)}))})),t=Vb(this.node.current,"blur",(()=>{this.isPressing&&ny("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Gb(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&&Bb.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Qb()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Bb.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Wb(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Vb(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Gb(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Jb{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=Gb(Vb(this.node.current,"focus",(()=>this.onFocus())),Vb(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Jb{mount(){this.unmount=Gb(ey(this.node,!0),ey(this.node,!1))}unmount(){}}}};function uy(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 dy(e,t,n){const r=e.getProps();return xb(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 fy="data-"+bb("framerAppearId");let py=Ab,my=Ab;const hy=e=>1e3*e,gy=e=>e/1e3,vy=!1,by=e=>Array.isArray(e)&&"number"==typeof e[0];function yy(e){return Boolean(!e||"string"==typeof e&&wy[e]||by(e)||Array.isArray(e)&&e.every(yy))}const ky=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,wy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ky([0,.65,.55,1]),circOut:ky([.55,0,1,.45]),backIn:ky([.31,.01,.66,-.59]),backOut:ky([.33,1.53,.69,.99])};function _y(e){if(e)return by(e)?ky(e):Array.isArray(e)?e.map(_y):wy[e]}const Ey=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xy=1e-7,Sy=12;function Cy(e,t,n,r){if(e===t&&n===r)return Ab;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Ey(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>xy&&++s<Sy);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Ey(o(e),t,r)}const Iy=Cy(.42,0,1,1),Ty=Cy(0,0,.58,1),Py=Cy(.42,0,.58,1),Ny=e=>Array.isArray(e)&&"number"!=typeof e[0],Oy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ay=e=>t=>1-e(1-t),My=e=>1-Math.sin(Math.acos(e)),Ry=Ay(My),By=Oy(Ry),Ly=Cy(.33,1.53,.69,.99),Dy=Ay(Ly),zy=Oy(Dy),Fy={linear:Ab,easeIn:Iy,easeInOut:Py,easeOut:Ty,circIn:My,circInOut:By,circOut:Ry,backIn:Dy,backInOut:zy,backOut:Ly,anticipate:e=>(e*=2)<1?.5*Dy(e):.5*(2-Math.pow(2,-10*(e-1)))},jy=e=>{if(Array.isArray(e)){my(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Cy(t,n,r,o)}return"string"==typeof e?(my(void 0!==Fy[e],`Invalid easing type '${e}'`),Fy[e]):e},Vy=(e,t)=>n=>Boolean(Wv(n)&&Uv.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Hy=(e,t,n)=>r=>{if(!Wv(r))return r;const[o,i,a,s]=r.match(Hv);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},$y={...zv,transform:e=>Math.round((e=>Dv(0,255,e))(e))},Uy={test:Vy("rgb","red"),parse:Hy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$y.transform(e)+", "+$y.transform(t)+", "+$y.transform(n)+", "+Vv(Fv.transform(r))+")"};const Wy={test:Vy("#"),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:Uy.transform},Ky={test:Vy("hsl","hue"),parse:Hy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qv.transform(Vv(t))+", "+qv.transform(Vv(n))+", "+Vv(Fv.transform(r))+")"},Gy={test:e=>Uy.test(e)||Wy.test(e)||Ky.test(e),parse:e=>Uy.test(e)?Uy.parse(e):Ky.test(e)?Ky.parse(e):Wy.parse(e),transform:e=>Wv(e)?e:e.hasOwnProperty("red")?Uy.transform(e):Ky.transform(e)},qy=(e,t,n)=>-n*e+n*t+e;function Yy(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 Xy=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Zy=[Wy,Uy,Ky];function Qy(e){const t=(e=>Zy.find((t=>t.test(e))))(e);my(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Ky&&(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=Yy(s,r,e+1/3),i=Yy(s,r,e),a=Yy(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 Jy=(e,t)=>{const n=Qy(e),r=Qy(t),o={...n};return e=>(o.red=Xy(n.red,r.red,e),o.green=Xy(n.green,r.green,e),o.blue=Xy(n.blue,r.blue,e),o.alpha=qy(n.alpha,r.alpha,e),Uy.transform(o))};const ek={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Ab},tk={regex:$v,countKey:"Colors",token:"${c}",parse:Gy.parse},nk={regex:Hv,countKey:"Numbers",token:"${n}",parse:zv.parse};function rk(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 ok(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&rk(n,ek),rk(n,tk),rk(n,nk),n}function ik(e){return ok(e).values}function ak(e){const{values:t,numColors:n,numVars:r,tokenised:o}=ok(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(ek.token,e[o]):o<r+n?t.replace(tk.token,Gy.transform(e[o])):t.replace(nk.token,Vv(e[o]));return t}}const sk=e=>"number"==typeof e?0:e;const lk={test:function(e){var t,n;return isNaN(e)&&Wv(e)&&((null===(t=e.match(Hv))||void 0===t?void 0:t.length)||0)+((null===(n=e.match($v))||void 0===n?void 0:n.length)||0)>0},parse:ik,createTransformer:ak,getAnimatableNone:function(e){const t=ik(e);return ak(e)(t.map(sk))}},ck=(e,t)=>n=>`${n>0?t:e}`;function uk(e,t){return"number"==typeof e?n=>qy(e,t,n):Gy.test(e)?Jy(e,t):e.startsWith("var(")?ck(e,t):pk(e,t)}const dk=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>uk(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},fk=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=uk(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},pk=(e,t)=>{const n=lk.createTransformer(t),r=ok(e),o=ok(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Gb(dk(r.values,o.values),n):(py(!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.`),ck(e,t))},mk=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},hk=(e,t)=>n=>qy(e,t,n);function gk(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?hk:"string"==typeof e?Gy.test(e)?Jy:pk:Array.isArray(e)?dk:"object"==typeof e?fk:hk}(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]||Ab:t;i=Gb(e,i)}r.push(i)}return r}function vk(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(my(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=gk(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=mk(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Dv(e[0],e[i-1],t)):l}function bk(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=mk(0,t,r);e.push(qy(n,1,o))}}(t,e.length-1),t}function yk({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Ny(r)?r.map(jy):jy(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:bk(t),e),s=vk(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Py)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function kk(e,t){return t?e*(1e3/t):0}const wk=5;function _k(e,t,n){const r=Math.max(t-wk,0);return kk(n-e(r),t-r)}const Ek=.001,xk=.01,Sk=10,Ck=.05,Ik=1;function Tk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;py(e<=hy(Sk),"Spring duration must be 10 seconds or less");let a=1-t;a=Dv(Ck,Ik,a),e=Dv(xk,Sk,gy(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Nk(t,a),l=Math.exp(-o);return Ek-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=Nk(Math.pow(t,2),a);return(-o(t)+Ek>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Ek,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Pk;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=hy(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 Pk=12;function Nk(e,t){return e*Math.sqrt(1-t*t)}const Ok=["duration","bounce"],Ak=["stiffness","damping","mass"];function Mk(e,t){return t.some((t=>void 0!==e[t]))}function Rk({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(!Mk(e,Ak)&&Mk(e,Ok)){const n=Tk(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-gy(u):0,m=l/(2*Math.sqrt(s*c)),h=i-o,g=gy(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=Nk(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?_k(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 Bk({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=Rk({keyframes:[f.value,p(f.value)],velocity:_k(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 Lk=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Bb.update(t,!0),stop:()=>Lb(t),now:()=>Db.isProcessing?Db.timestamp:performance.now()}},Dk=2e4;function zk(e){let t=0;let n=e.next(t);for(;!n.done&&t<Dk;)t+=50,n=e.next(t);return t>=Dk?1/0:t}const Fk={decay:Bk,inertia:Bk,tween:yk,keyframes:yk,spring:Rk};function jk({autoplay:e=!0,delay:t=0,driver:n=Lk,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=Fk[o]||yk;let k;y!==yk&&"number"!=typeof r[0]&&(k=vk([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=zk(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=Dv(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 gy(N)},set time(e){e=hy(e),N=e,null===x&&b&&0!==h?S=b.now()-e/h:x=e},get duration(){const e=null===w.calculatedDuration?zk(w):w.calculatedDuration;return gy(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,L.time=gy(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 Vk=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Hk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function $k(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Vk()&&Hk.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||!yy(t.ease))(t,o)){const e=jk({...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=_y(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=Db.isProcessing?Db.timestamp:document.timeline?document.timeline.currentTime:performance.now());const m=()=>p.cancel(),h=()=>{Bb.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,Ab),get time(){return gy(p.currentTime||0)},set time(e){p.currentTime=hy(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return gy(u)},play:()=>{s||(p.play(),Lb(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=jk({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}const Uk={type:"spring",stiffness:500,damping:25,restSpeed:10},Wk={type:"keyframes",duration:.8},Kk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gk=(e,{keyframes:t})=>t.length>2?Wk:Tv.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Uk:Kk,qk=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!lk.test(t)&&"0"!==t||t.startsWith("url("))),Yk=new Set(["brightness","contrast","saturate","opacity"]);function Xk(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Hv)||[];if(!r)return e;const o=n.replace(r,"");let i=Yk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Zk=/([a-z-]*)\(.*?\)/g,Qk={...lk,getAnimatableNone:e=>{const t=e.match(Zk);return t?t.map(Xk).join(" "):e}},Jk={...eb,color:Gy,backgroundColor:Gy,outlineColor:Gy,fill:Gy,stroke:Gy,borderColor:Gy,borderTopColor:Gy,borderRightColor:Gy,borderBottomColor:Gy,borderLeftColor:Gy,filter:Qk,WebkitFilter:Qk},ew=e=>Jk[e];function tw(e,t){let n=ew(e);return n!==Qk&&(n=lk),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nw=e=>/^0[^.\s]+$/.test(e);function rw(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||nw(e):void 0}function ow(e,t){return e[t]||e.default||e}const iw=(e,t,n,r={})=>o=>{const i=ow(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=hy(a);const l=function(e,t,n,r){const o=qk(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]),rw(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]]=tw(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=qk(e,c),f=qk(e,u);py(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,...Gk(e,p)}),p.duration&&(p.duration=hy(p.duration)),p.repeatDelay&&(p.repeatDelay=hy(p.repeatDelay)),!d||!f||vy||!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:Ab,pause:Ab,stop:Ab,then:e=>(e(),Promise.resolve()),cancel:Ab,complete:Ab});return t?jk({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(vy?{...p,delay:0}:p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=$k(t,e,p);if(n)return n}return jk(p)};function aw(e){return Boolean(Nv(e)&&e.add)}const sw=e=>/^\-?\d*\.?\d+$/.test(e);function lw(e,t){-1===e.indexOf(t)&&e.push(t)}function cw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class uw{constructor(){this.subscriptions=[]}add(e){return lw(this.subscriptions,e),()=>cw(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 dw={current:void 0};class fw{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}=Db;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Bb.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=()=>Bb.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 uw);const n=this.events[e].add(t);return"change"===e?()=>{n(),Bb.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 dw.current&&dw.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?kk(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 pw(e,t){return new fw(e,t)}const mw=e=>t=>t.test(e),hw=[zv,Yv,qv,Gv,Zv,Xv,{test:e=>"auto"===e,parse:e=>e}],gw=e=>hw.find(mw(e)),vw=[...hw,Gy,lk],bw=e=>vw.find(mw(e));function yw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pw(n))}function kw(e,t){const n=dy(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){yw(e,t,Tb(i[t]))}}function ww(e,t){if(!t)return;return(t[e]||t.default||t).from}function _w({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Ew(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&&_w(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[fy];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Bb),a.syncStart=!0)}r.start(iw(t,r,o,e.shouldReduceMotion&&Tv.has(t)?{type:!1}:a));const d=r.animation;aw(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&kw(e,a)})),c}function xw(e,t,n={}){const r=dy(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Ew(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(Sw).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(xw(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 Sw(e,t){return e.sortNodePosition(t)}const Cw=[...uv].reverse(),Iw=uv.length;function Tw(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=>xw(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=xw(e,t,n);else{const o="function"==typeof t?dy(e,t,n.custom):t;r=Promise.all(Ew(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Pw(e){let t=Tw(e);const n={animate:Ow(!0),whileInView:Ow(),whileHover:Ow(),whileTap:Ow(),whileDrag:Ow(),whileFocus:Ow(),exit:Ow()};let r=!0;const o=(t,n)=>{const r=dy(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<Iw;t++){const p=Cw[t],m=n[p],h=void 0!==s[p]?s[p]:l[p],g=lv(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||cv(h)||"boolean"==typeof h)continue;const y=Nw(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?Cb(t)&&Cb(n)?!uy(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 Nw(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!uy(t,e)}function Ow(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Aw=0;const Mw={animation:{Feature:class extends Jb{constructor(e){super(e),e.animationState||(e.animationState=Pw(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),cv(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 Jb{constructor(){super(...arguments),this.id=Aw++}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(){}}}},Rw=(e,t)=>Math.abs(e-t);class Bw{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=zw(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Rw(e.x,t.x),r=Rw(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}=Db;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=Lw(t,this.transformPagePoint),Bb.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=zw("pointercancel"===e.type?this.lastMoveEventInfo:Lw(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Hb(e))return;this.handlers=t,this.transformPagePoint=n;const r=Lw($b(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Db;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,zw(r,this.history)),this.removeListeners=Gb(Wb(window,"pointermove",this.handlePointerMove),Wb(window,"pointerup",this.handlePointerUp),Wb(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Lb(this.updatePoint)}}function Lw(e,t){return t?{point:t(e.point)}:e}function Dw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zw({point:e},t){return{point:e,delta:Dw(e,jw(t)),offset:Dw(e,Fw(t)),velocity:Vw(t,.1)}}function Fw(e){return e[0]}function jw(e){return e[e.length-1]}function Vw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jw(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hy(t)));)n--;if(!r)return{x:0,y:0};const i=gy(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 Hw(e){return e.max-e.min}function $w(e,t=0,n=.01){return Math.abs(e-t)<=n}function Uw(e,t,n,r=.5){e.origin=r,e.originPoint=qy(t.min,t.max,e.origin),e.scale=Hw(n)/Hw(t),($w(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=qy(n.min,n.max,e.origin)-e.originPoint,($w(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ww(e,t,n,r){Uw(e.x,t.x,n.x,r?r.originX:void 0),Uw(e.y,t.y,n.y,r?r.originY:void 0)}function Kw(e,t,n){e.min=n.min+t.min,e.max=e.min+Hw(t)}function Gw(e,t,n){e.min=t.min-n.min,e.max=e.min+Hw(t)}function qw(e,t,n){Gw(e.x,t.x,n.x),Gw(e.y,t.y,n.y)}function Yw(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 Xw(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 Zw=.35;function Qw(e,t,n){return{min:Jw(e,t),max:Jw(e,n)}}function Jw(e,t){return"number"==typeof e?e:e[t]||0}const e_=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),t_=()=>({x:{min:0,max:0},y:{min:0,max:0}});function n_(e){return[e("x"),e("y")]}function r_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o_(e){return void 0===e||1===e}function i_({scale:e,scaleX:t,scaleY:n}){return!o_(e)||!o_(t)||!o_(n)}function a_(e){return i_(e)||s_(e)||e.z||e.rotate||e.rotateX||e.rotateY}function s_(e){return l_(e.x)||l_(e.y)}function l_(e){return e&&"0%"!==e}function c_(e,t,n){return n+t*(e-n)}function u_(e,t,n,r,o){return void 0!==o&&(e=c_(e,o,r)),c_(e,n,r)+t}function d_(e,t=0,n=1,r,o){e.min=u_(e.min,t,n,r,o),e.max=u_(e.max,t,n,r,o)}function f_(e,{x:t,y:n}){d_(e.x,t.translate,t.scale,t.originPoint),d_(e.y,n.translate,n.scale,n.originPoint)}function p_(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function m_(e,t){e.min=e.min+t,e.max=e.max+t}function h_(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=qy(e.min,e.max,i);d_(e,t[n],t[r],a,t.scale)}const g_=["x","scaleX","originX"],v_=["y","scaleY","originY"];function b_(e,t){h_(e.x,t,g_),h_(e.y,t,v_)}function y_(e,t){return r_(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 k_=new WeakMap;class w_{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=t_(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Bw(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor($b(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Zb(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),n_((e=>{let t=this.getAxisMotionValue(e).get()||0;if(qv.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Hw(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Bb.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&&Bb.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||!__(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?qy(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?qy(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&&sv(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Yw(e.x,n,o),y:Yw(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Zw){return!1===e?e=0:!0===e&&(e=Zw),{x:Qw(e,"left","right"),y:Qw(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&n_((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||!sv(e))return!1;const n=e.current;my(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=y_(e,n),{scroll:o}=t;return o&&(m_(r.x,o.offset.x),m_(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Xw(e.x,t.x),y:Xw(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=r_(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=n_((a=>{if(!__(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(iw(e,n,0,t))}stopAnimation(){n_((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){n_((t=>{const{drag:n}=this.getProps();if(!__(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]-qy(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!sv(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};n_((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Hw(e),o=Hw(t);return o>r?n=mk(t.min,t.max-r,e.min):r>o&&(n=mk(e.min,e.max-o,t.min)),Dv(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(),n_((t=>{if(!__(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(qy(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;k_.set(this.visualElement,this);const e=Wb(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();sv(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=Vb(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n_((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=Zw,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function __(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const E_=e=>(t,n)=>{e&&Bb.update((()=>e(t,n)))};const x_={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function S_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const C_={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Yv.test(e))return e;e=parseFloat(e)}return`${S_(e,t.target.x)}% ${S_(e,t.target.y)}%`}},I_={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=lk.parse(e);if(o.length>5)return r;const i=lk.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=qy(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 T_ extends Ir.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=N_,Object.assign(Cv,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()})),x_.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()||Bb.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 P_(e){const[t,n]=function(){const e=(0,Ir.useContext)(ov);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,Ir.useId)();return(0,Ir.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,Ir.useContext)(bv);return Ir.createElement(T_,{...e,layoutGroup:r,switchLayoutGroup:(0,Ir.useContext)(yv),isPresent:t,safeToRemove:n})}const N_={borderRadius:{...C_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:C_,borderTopRightRadius:C_,borderBottomLeftRadius:C_,borderBottomRightRadius:C_,boxShadow:I_},O_=["TopLeft","TopRight","BottomLeft","BottomRight"],A_=O_.length,M_=e=>"string"==typeof e?parseFloat(e):e,R_=e=>"number"==typeof e||Yv.test(e);function B_(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const L_=z_(0,.5,Ry),D_=z_(.5,.95,Ab);function z_(e,t,n){return r=>r<e?0:r>t?1:n(mk(e,t,r))}function F_(e,t){e.min=t.min,e.max=t.max}function j_(e,t){F_(e.x,t.x),F_(e.y,t.y)}function V_(e,t,n,r,o){return e=c_(e-=t,1/n,r),void 0!==o&&(e=c_(e,1/o,r)),e}function H_(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){qv.test(t)&&(t=parseFloat(t),t=qy(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=qy(i.min,i.max,r);e===i&&(s-=t),e.min=V_(e.min,t,n,s,o),e.max=V_(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const $_=["x","scaleX","originX"],U_=["y","scaleY","originY"];function W_(e,t,n,r){H_(e.x,t,$_,n?n.x:void 0,r?r.x:void 0),H_(e.y,t,U_,n?n.y:void 0,r?r.y:void 0)}function K_(e){return 0===e.translate&&1===e.scale}function G_(e){return K_(e.x)&&K_(e.y)}function q_(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 Y_(e){return Hw(e.x)/Hw(e.y)}class X_{constructor(){this.members=[]}add(e){lw(this.members,e),e.scheduleRender()}remove(e){if(cw(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 Z_(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 Q_=(e,t)=>e.depth-t.depth;class J_{constructor(){this.children=[],this.isDirty=!1}add(e){lw(this.children,e),this.isDirty=!0}remove(e){cw(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Q_),this.isDirty=!1,this.children.forEach(e)}}const eE=["","X","Y","Z"];let tE=0;const nE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=tE++,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;nE.totalNodes=nE.resolvedTargetDeltas=nE.recalculatedProjection=0,this.nodes.forEach(aE),this.nodes.forEach(pE),this.nodes.forEach(mE),this.nodes.forEach(sE),e=nE,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 J_)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new uw),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&&(Lb(r),e(i-t))};return Bb.read(r,!0),()=>Lb(r)}(r,250),x_.hasAnimatedSinceResize&&(x_.hasAnimatedSinceResize=!1,this.nodes.forEach(fE))}))}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()||kE,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!q_(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={...ow(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||fE(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,Lb(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(hE),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(cE);this.isUpdating||this.nodes.forEach(uE),this.isUpdating=!1,this.nodes.forEach(dE),this.nodes.forEach(oE),this.nodes.forEach(iE),this.clearAllSnapshots();const e=performance.now();Db.delta=Dv(0,1e3/60,e-Db.timestamp),Db.timestamp=e,Db.isProcessing=!0,zb.update.process(Db),zb.preRender.process(Db),zb.render.process(Db),Db.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(lE),this.sharedNodes.forEach(gE)}scheduleUpdateProjection(){Bb.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Bb.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=t_(),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&&!G_(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||a_(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)),EE((r=n).x),EE(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return t_();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(m_(t.x,n.offset.x),m_(t.y,n.offset.y)),t}removeElementScroll(e){const t=t_();j_(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){j_(t,e);const{scroll:n}=this.root;n&&(m_(t.x,-n.offset.x),m_(t.y,-n.offset.y))}m_(t.x,o.offset.x),m_(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=t_();j_(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&&b_(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a_(r.latestValues)&&b_(n,r.latestValues)}return a_(this.latestValues)&&b_(n,this.latestValues),n}removeTransform(e){const t=t_();j_(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!a_(n.latestValues))continue;i_(n.latestValues)&&n.updateSnapshot();const r=t_();j_(r,n.measurePageBox()),W_(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return a_(this.latestValues)&&W_(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!==Db.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=Db.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=t_(),this.relativeTargetOrigin=t_(),qw(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),j_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=t_(),this.targetWithTransforms=t_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Kw(a.x,s.x,l.x),Kw(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):j_(this.target,this.layout.layoutBox),f_(this.target,this.targetDelta)):j_(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=t_(),this.relativeTargetOrigin=t_(),qw(this.relativeTargetOrigin,this.target,e.target),j_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nE.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!i_(this.parent.latestValues)&&!s_(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===Db.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;j_(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&&b_(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,f_(e,a)),r&&a_(i.latestValues)&&b_(e,i.latestValues))}t.x=p_(t.x),t.y=p_(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=e_(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=e_(),this.projectionDeltaWithTransform=e_());const c=this.projectionTransform;Ww(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Z_(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nE.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=e_();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=t_(),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(yE));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;vE(i.x,e.x,n),vE(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qw(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){bE(e.x,t.x,n.x,r),bE(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=t_()),j_(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=qy(0,void 0!==n.opacity?n.opacity:1,L_(r)),e.opacityExit=qy(void 0!==t.opacity?t.opacity:1,0,D_(r))):i&&(e.opacity=qy(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<A_;o++){const i=`border${O_[o]}Radius`;let a=B_(t,i),s=B_(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||R_(a)===R_(s)?(e[i]=Math.max(qy(M_(a),M_(s),r),0),(qv.test(s)||qv.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=qy(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&&(Lb(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bb.update((()=>{x_.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Nv(e)?e:pw(e);return r.start(iw("",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&&xE(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||t_();const t=Hw(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Hw(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}j_(t,n),b_(t,o),Ww(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new X_);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<eE.length;t++){const o="rotate"+eE[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=Pb(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=Pb(e.pointerEvents)||""),this.hasProjected&&!a_(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Z_(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 Cv){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Cv[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?Pb(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(cE),this.root.sharedNodes.clear()}}}function oE(e){e.updateLayout()}function iE(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?n_((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Hw(r);r.min=t[e].min,r.max=r.min+o})):xE(o,n.layoutBox,t)&&n_((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Hw(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=e_();Ww(a,t,n.layoutBox);const s=e_();i?Ww(s,e.applyTransform(r,!0),n.measuredBox):Ww(s,t,n.layoutBox);const l=!G_(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=t_();qw(a,n.layoutBox,o.layoutBox);const s=t_();qw(s,t,i.layoutBox),q_(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 aE(e){nE.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 sE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lE(e){e.clearSnapshot()}function cE(e){e.clearMeasurements()}function uE(e){e.isLayoutDirty=!1}function dE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pE(e){e.resolveTargetDelta()}function mE(e){e.calcProjection()}function hE(e){e.resetRotation()}function gE(e){e.removeLeadSnapshot()}function vE(e,t,n){e.translate=qy(t.translate,0,n),e.scale=qy(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bE(e,t,n,r){e.min=qy(t.min,n.min,r),e.max=qy(t.max,n.max,r)}function yE(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const kE={duration:.45,ease:[.4,0,.1,1]},wE=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),_E=wE("applewebkit/")&&!wE("chrome/")?Math.round:Ab;function EE(e){e.min=_E(e.min),e.max=_E(e.max)}function xE(e,t,n){return"position"===e||"preserve-aspect"===e&&!$w(Y_(t),Y_(n),.2)}const SE=rE({attachResizeListener:(e,t)=>Vb(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),CE={current:void 0},IE=rE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!CE.current){const e=new SE({});e.mount(window),e.setOptions({layoutScroll:!0}),CE.current=e}return CE.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),TE={pan:{Feature:class extends Jb{constructor(){super(...arguments),this.removePointerDownListener=Ab}onPointerDown(e){this.session=new Bw(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:E_(e),onStart:E_(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Bb.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Wb(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 Jb{constructor(e){super(e),this.removeGroupControls=Ab,this.removeListeners=Ab,this.controls=new w_(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ab}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:IE,MeasureLayout:P_}},PE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const NE=4;function OE(e,t,n=1){my(n<=NE,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=PE.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 sw(e)?parseFloat(e):e}return Bv(o)?OE(o,t,n+1):o}const AE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ME=e=>AE.has(e),RE=e=>e===zv||e===Yv,BE=(e,t)=>parseFloat(e.split(", ")[t]),LE=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return BE(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?BE(t[1],e):0}},DE=new Set(["x","y","z"]),zE=Iv.filter((e=>!DE.has(e)));const FE={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:LE(4,13),y:LE(5,14)};FE.translateX=FE.x,FE.translateY=FE.y;const jE=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(ME);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=gw(c);const d=t[o];let f;if(Cb(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=gw(c);for(let n=t;n<e&&null!==d[n];n++)f?my(gw(d[n])===f,"All keyframes must be of the same type"):(f=gw(d[n]),my(f===u||RE(u)&&RE(f),"Keyframes must be of the same dimension as the current value"))}else f=gw(d);if(u!==f)if(RE(u)&&RE(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Yv&&(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 zE.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]=FE[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]=FE[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Zg&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function VE(e,t,n,r){return(e=>Object.keys(e).some(ME))(t)?jE(e,t,n,r):{target:t,transitionEnd:r}}const HE=(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(!Bv(t))return;const n=OE(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Bv(o))continue;const i=OE(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return VE(e,t=o.target,n,r=o.transitionEnd)};const $E=new WeakMap,UE=Object.keys(vv),WE=UE.length,KE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],GE=dv.length;class qE{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=()=>Bb.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=fv(t),this.isVariantNode=pv(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]&&Nv(t)&&(t.set(a[e],!1),aw(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,$E.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))),Jg.current||ev(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Qg.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$E.delete(this.current),this.projection&&this.projection.unmount(),Lb(this.notifyUpdate),Lb(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=Tv.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Bb.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<WE;e++){const n=UE[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=vv[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&&sv(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):t_()}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<KE.length;t++){const n=KE[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(Nv(i))e.addValue(o,i),aw(r)&&r.add(o);else if(Nv(a))e.addValue(o,pw(i,{owner:e})),aw(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,pw(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<GE;e++){const n=dv[e],r=this.props[n];(lv(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=pw(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=xb(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||Nv(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 uw),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class YE extends qE{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=ww(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&&(sw(c)||nw(c))?c=parseFloat(c):!bw(c)&&lk.test(l)&&(c=tw(a,l)),e.addValue(a,pw(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=HE(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class XE extends YE{readValueFromInstance(e,t){if(Tv.has(t)){const e=ew(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Rv(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return y_(e,t)}build(e,t,n,r){tb(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return _b(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Nv(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){yb(e,t,n,r)}}class ZE extends YE{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Tv.has(t)){const e=ew(t);return e&&e.default||0}return t=kb.has(t)?t:bb(t),e.getAttribute(t)}measureInstanceViewportBox(){return t_()}scrapeMotionValuesFromProps(e,t){return Eb(e,t)}build(e,t,n,r){pb(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){wb(e,t,0,r)}mount(e){this.isSVGTag=hb(e.tagName),super.mount(e)}}const QE=(e,t)=>Sv(e)?new ZE(t,{enableHardwareAcceleration:!1}):new XE(t,{enableHardwareAcceleration:!0}),JE={...Mw,...cy,...TE,...{layout:{ProjectionNode:IE,MeasureLayout:P_}}},ex=Ev(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Sv(e)?Fb:jb,preloadedFeatures:n,useRender:vb(t),createVisualElement:r,Component:e}}(e,t,JE,QE)));function tx(e){const t=(0,Ir.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,Ir.useSyncExternalStore)(t.subscribe,t.getValue,(()=>!1))}const nx={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},rx={">=":"min-width","<":"max-width"},ox={">=":(e,t)=>t>=e,"<":(e,t)=>t<e},ix=(0,Ir.createContext)(null),ax=(e,t=">=")=>{const n=(0,Ir.useContext)(ix),r=tx(!n&&`(${rx[t]}: ${nx[e]}px)`||void 0);return n?ox[t](nx[e],n):r};ax.__experimentalWidthProvider=ix.Provider;const sx=ax;function lx(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function cx(e,t){return void 0===t&&(t={}),_n(e,gn({delimiter:" ",transform:lx},t))}function ux(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 dx=8,fx=9,px=13,mx=27,hx=37,gx=38,vx=39,bx=40,yx=46,kx="alt",wx="ctrl",_x="meta",Ex="shift";function xx(e,t){return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,t(n)])))}const Sx={primary:e=>e()?[_x]:[wx],primaryShift:e=>e()?[Ex,_x]:[wx,Ex],primaryAlt:e=>e()?[kx,_x]:[wx,kx],secondary:e=>e()?[Ex,kx,_x]:[wx,Ex,kx],access:e=>e()?[wx,kx]:[Ex,kx],ctrl:()=>[wx],alt:()=>[kx],ctrlShift:()=>[wx,Ex],shift:()=>[Ex],shiftAlt:()=>[Ex,kx],undefined:()=>[]},Cx=xx(Sx,(e=>(t,n=ux)=>[...e(n),t.toLowerCase()].join("+"))),Ix=xx(Sx,(e=>(t,n=ux)=>{const r=n(),o={[kx]:r?"⌥":"Alt",[wx]:r?"⌃":"Ctrl",[_x]:"⌘",[Ex]: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,"+"]}),[]),cx(t,{stripRegexp:/[^A-Z0-9~`,\.\\\-]/gi})]})),Tx=xx(Ix,(e=>(t,n=ux)=>e(t,n).join(""))),Px=xx(Sx,(e=>(t,n=ux)=>{const r=n(),o={[Ex]:"Shift",[_x]:r?"Command":"Control",[wx]:"Control",[kx]:r?"Option":"Alt",",":Un("Comma"),".":Un("Period"),"`":Un("Backtick"),"~":Un("Tilde")};return[...e(n),t].map((e=>{var t;return cx(null!==(t=o[e])&&void 0!==t?t:e)})).join(r?" ":" + ")}));const Nx=xx(Sx,(e=>(t,n,r=ux)=>{const o=e(r),i=function(e){return[kx,wx,_x,Ex].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 Ox(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function Ax(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(!Ox(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&&Ox(n)}(e)}))}function Mx(e){const t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function Rx(e){return-1!==Mx(e)}function Bx(e,t){return{element:e,index:t}}function Lx(e){return e.element}function Dx(e,t){const n=Mx(e.element),r=Mx(t.element);return n===r?e.index-t.index:n-r}function zx(e){return e.filter(Rx).map(Bx).sort(Dx).map(Lx).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 Fx(e){return zx(Ax(e))}function jx(e){return zx(Ax(e.ownerDocument.body)).reverse().find((t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING))}function Vx(e){return zx(Ax(e.ownerDocument.body)).find((t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING))}const Hx={focusable:s,tabbable:l};function $x(e,t){const n=(0,Ir.useRef)();return(0,Ir.useCallback)((t=>{t?n.current=e(t):n.current&&n.current()}),t)}const Ux=function(){return $x((e=>{function t(t){const{keyCode:n,shiftKey:r,target:o}=t;if(n!==fx)return;const i=r?"findPrevious":"findNext",a=Hx.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 Wx(e="firstElement"){const t=(0,Ir.useRef)(e),n=e=>{e.focus({preventScroll:!0})},r=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>{t.current=e}),[e]),(0,Ir.useEffect)((()=>()=>{r.current&&clearTimeout(r.current)}),[]),(0,Ir.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=Hx.tabbable.find(e)[0];t&&n(t)}),0)))}),[])}let Kx=null;const Gx=function(e){const t=(0,Ir.useRef)(null),n=(0,Ir.useRef)(null),r=(0,Ir.useRef)(e);return(0,Ir.useEffect)((()=>{r.current=e}),[e]),(0,Ir.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=Kx)&&void 0!==o||(Kx=n.current));r.current?r.current():(n.current.isConnected?n.current:Kx)?.focus(),Kx=null}}),[])},qx=["button","submit"];function Yx(e){const t=(0,Ir.useRef)(e);(0,Ir.useEffect)((()=>{t.current=e}),[e]);const n=(0,Ir.useRef)(!1),r=(0,Ir.useRef)(),o=(0,Ir.useCallback)((()=>{clearTimeout(r.current)}),[]);(0,Ir.useEffect)((()=>()=>o()),[]),(0,Ir.useEffect)((()=>{e||o()}),[e,o]);const i=(0,Ir.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 qx.includes(e.type)}return!1}(r)&&(n.current=!0)}),[]),a=(0,Ir.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 Xx=function(e){const t=(0,Ir.useRef)();(0,Ir.useEffect)((()=>{t.current=e}),Object.values(e));const n=Ux(),r=Wx(e.focusOnMount),o=Gx(),i=Yx((e=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",e):t.current?.onClose&&t.current.onClose()})),a=(0,Ir.useCallback)((e=>{e&&e.addEventListener("keydown",(e=>{e.keyCode===mx&&!e.defaultPrevented&&t.current?.onClose&&(e.preventDefault(),t.current.onClose())}))}),[]);return[$g([!1!==e.focusOnMount?n:null,!1!==e.focusOnMount?o:null,!1!==e.focusOnMount?r:null,a]),{...i,tabIndex:-1}]},Zx=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 Qx=0;function Jx(e){const t=document.scrollingElement||document.body;e&&(Qx=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Qx)}let eS=0;const tS=function(){return(0,Ir.useEffect)((()=>(0===eS&&Jx(!0),++eS,()=>{1===eS&&Jx(!1),--eS})),[]),null},nS=Symbol(),rS=Symbol(),oS=Symbol();let iS=(e,t)=>new Proxy(e,t);const aS=Object.getPrototypeOf,sS=new WeakMap,lS=e=>e&&(sS.has(e)?sS.get(e):aS(e)===Object.prototype||aS(e)===Array.prototype),cS=e=>"object"==typeof e&&null!==e,uS=new WeakMap,dS=e=>e[oS]||e,fS=(e,t,n)=>{if(!lS(e))return e;const r=dS(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(nS)||r.add(t)}},i={get:(t,r)=>r===oS?e:(o(r),fS(t[r],n.a,n.c)),has:(t,i)=>i===rS?(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(nS),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=iS(o?(e=>{let t=uS.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(aS(e),n)}uS.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},pS=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},mS=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!cS(e)||!cS(t))return!0;const o=n.get(dS(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===nS?pS(e,t):mS(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},hS=(e,t=!0)=>{sS.set(e,t)},gS=e=>"object"==typeof e&&null!==e,vS=new WeakSet,bS=Symbol("VERSION"),yS=Symbol("LISTENERS"),kS=Symbol("SNAPSHOT"),wS=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>gS(e)&&!vS.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 hS(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(vS.has(i))hS(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[yS])?s[e]=i[kS]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!gS(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===bS?u:t===yS?d:t===kS?a(u,e,n):Reflect.get(e,t,n),deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[yS];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[yS];let p;return d&&d.delete(h(i)),gS(a)&&(a=(e=>lS(e)&&e[oS]||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[yS])?(p=a,p[yS].add(m(i))):n(a)?(p=ES(a),p[yS].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,vS,bS,yS,kS,e,t,n,r,o,i,a,s,l],[_S]=wS();function ES(e={}){return _S(e)}function xS(e,t,n){let r;(null==e?void 0:e[yS])||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[yS].add(i),()=>{e[yS].delete(i)}}function SS(e){return(null==e?void 0:e[kS])||console.warn("Please use proxy object"),e[kS]}function CS(e){return vS.add(e),e}const{useSyncExternalStore:IS}=bu,TS=(e,t)=>{const n=(0,Ir.useRef)();(0,Ir.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;cS(e)&&r.add(e);const a=cS(e)&&t.get(dS(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,Ir.useDebugValue)(n.current)};function PS(e,t){const n=null==t?void 0:t.sync,r=(0,Ir.useRef)(),o=(0,Ir.useRef)();let i=!0;const a=IS((0,Ir.useCallback)((t=>{const r=xS(e,t,n);return t(),r}),[e,n]),(()=>{const t=SS(e);try{if(!i&&r.current&&o.current&&!mS(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>SS(e)));i=!1;const s=new WeakMap;(0,Ir.useEffect)((()=>{r.current=a,o.current=s})),TS(a,s);const l=(0,Ir.useMemo)((()=>new WeakMap),[]);return fS(a,s,l)}Symbol();function NS(e){const t=ES({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 OS={slots:NS(),fills:NS(),registerSlot:()=>{"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},AS=(0,Ir.createContext)(OS);function MS(e){const t=(0,Ir.useContext)(AS);return{...PS(t.slots,{sync:!0}).get(e),...(0,Ir.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 RS={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},BS=(0,Ir.createContext)(RS),LS=e=>{const{getSlot:t,subscribe:n}=(0,Ir.useContext)(BS);return(0,Ir.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function DS({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,Ir.useContext)(BS),o=LS(e),i=(0,Ir.useRef)({name:e,children:t});return(0,Ir.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,Ir.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,Ir.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function zS(e){return"function"==typeof e}class FS extends Ir.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=zS(e.children)?e.children(r):e.children;return Ir.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,Ir.cloneElement)(e,{key:n})}))})).filter((e=>!(e=>"number"!=typeof e&&("string"==typeof e?.valueOf()||Array.isArray(e)?!e.length:!e))(e)));return(0,Ir.createElement)(Ir.Fragment,null,zS(t)?t(i):i)}}const jS=e=>(0,Ir.createElement)(BS.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,Ir.createElement)(FS,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),VS=new Set,HS=new WeakMap;function $S(e){const{children:t,document:n}=e;if(!n)return null;const r=(e=>{if(HS.has(e))return HS.get(e);let t=Xr().replace(/[0-9]/g,"");for(;VS.has(t);)t=Xr().replace(/[0-9]/g,"");VS.add(t);const n=hh({container:e,key:t});return HS.set(e,n),n})(n.head);return(0,Ir.createElement)(Oh,{value:r},t)}const US=$S;function WS(e){var t;const{name:n,children:r}=e,{registerFill:o,unregisterFill:i,...a}=MS(n),s=function(){const[,e]=(0,Ir.useState)({}),t=(0,Ir.useRef)(!0);return(0,Ir.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),l=(0,Ir.useRef)({rerender:s});if((0,Ir.useEffect)((()=>(o(l),()=>{i(l)})),[o,i]),!a.ref||!a.ref.current)return null;const c=(0,Ir.createElement)(US,{document:a.ref.current.ownerDocument},"function"==typeof r?r(null!==(t=a.fillProps)&&void 0!==t?t:{}):r);return(0,df.createPortal)(c,a.ref.current)}const KS=(0,Ir.forwardRef)((function(e,t){const{name:n,fillProps:r={},as:o,children:i,...a}=e,{registerSlot:s,unregisterSlot:l,...c}=(0,Ir.useContext)(AS),u=(0,Ir.useRef)(null);return(0,Ir.useLayoutEffect)((()=>(s(n,u,r),()=>{l(n,u)})),[s,l,n]),(0,Ir.useLayoutEffect)((()=>{c.updateSlot(n,r)})),(0,Ir.createElement)(ag,{as:o,ref:$g([t,u]),...a})}));function GS(){const e=NS(),t=NS();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,CS({...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}}))},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(da(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,CS([...t.get(e)||[],n]))},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,CS(r.filter((e=>e!==n))))}}}function qS({children:e}){const t=(0,Ir.useMemo)(GS,[]);return(0,Ir.createElement)(AS.Provider,{value:t},e)}function YS(){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 XS=function({children:e}){const t=(0,Ir.useMemo)(YS,[]);return(0,Ir.createElement)(BS.Provider,{value:t},e)};function ZS(e){return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(DS,{...e}),(0,Ir.createElement)(WS,{...e}))}const QS=(0,Ir.forwardRef)((function(e,t){const{bubblesVirtually:n,...r}=e;return n?(0,Ir.createElement)(KS,{...r,ref:t}):(0,Ir.createElement)(jS,{...r})}));function JS({children:e}){return(0,Ir.useContext)(AS).isDefault?(0,Ir.createElement)(XS,null,(0,Ir.createElement)(qS,null,e)):(0,Ir.createElement)(Ir.Fragment,null,e)}function eC(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,Ir.createElement)(ZS,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,Ir.createElement)(QS,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const tC="Popover",nC=()=>(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,Ir.createElement)(em,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,Ir.createElement)(em,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),rC=(0,Ir.createContext)(void 0),oC="components-popover__fallback-container",iC=(0,Ir.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=tC,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&&(sn("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),I=!w,T=!w),void 0!==_&&sn("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==E&&sn("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==x&&sn("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const P=S?"toolbar":k;void 0!==S&&sn("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const N=(0,Ir.useRef)(null),[O,A]=(0,Ir.useState)(null),M=(0,Ir.useCallback)((e=>{A(e)}),[]),R=sx("medium","<"),B=p&&R,L=!B&&!s,D=l?Yp(l):c,z=[..."overlay"===c?[{name:"overlay",fn:({rects:e})=>e.reference},Qf({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`})}})]:[],Yf(u),I&&qf(),T&&Qf({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&&Xf({crossAxis:!0,limiter:Zf(),padding:1}),Wg({element:N})],F=(0,Ir.useContext)(rC)||h,j=MS(F);let V;(o||m)&&(V=(e,t)=>{"focus-outside"===e&&m?m(t):o&&o()});const[H,$]=Xx({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]=Ir.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Ir.useState(r);Gg(f,r)||p(r);const[m,h]=Ir.useState(null),[g,v]=Ir.useState(null),b=Ir.useCallback((e=>{e!=_.current&&(_.current=e,h(e))}),[h]),y=Ir.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[v]),k=i||m,w=a||g,_=Ir.useRef(null),E=Ir.useRef(null),x=Ir.useRef(u),S=Xg(l),C=Xg(o),I=Ir.useCallback((()=>{if(!_.current||!E.current)return;const e={placement:t,strategy:n,middleware:f};C.current&&(e.platform=C.current),Op(_.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!Gg(x.current,t)&&(x.current=t,df.flushSync((()=>{d(t)})))}))}),[f,t,n,C]);Kg((()=>{!1===c&&x.current.isPositioned&&(x.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const T=Ir.useRef(!1);Kg((()=>(T.current=!0,()=>{T.current=!1})),[]),Kg((()=>{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=Ir.useMemo((()=>({reference:_,floating:E,setReference:b,setFloating:y})),[b,y]),N=Ir.useMemo((()=>({reference:k,floating:w})),[k,w]),O=Ir.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Yg(N.floating,u.x),r=Yg(N.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...qg(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,N.floating,u.x,u.y]);return Ir.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)=>Np(e,t,n,{layoutShift:!1,animationFrame:!0})}),Z=(0,Ir.useCallback)((e=>{N.current=e,q()}),[q]),Q=_?.top,J=_?.bottom,ee=_?.startContainer,te=_?.current;(0,Ir.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=$g([K.setFloating,H,t]),re=B?void 0:{position:G,top:0,left:0,x:Zp(U),y:Zp(W)},oe=tv(),ie=n&&!B&&!oe,[ae,se]=(0,Ir.useState)(!1),{style:le,...ce}=(0,Ir.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Xp[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,Ir.createElement)(ex.div,{className:$l()("components-popover",a,{"is-expanded":B,"is-positioned":de,[`is-${"toolbar"===P?"alternate":P}`]:P}),...ue,...C,ref:ne,...$,tabIndex:-1},B&&(0,Ir.createElement)(tS,null),B&&(0,Ir.createElement)("div",{className:"components-popover__header"},(0,Ir.createElement)("span",{className:"components-popover__header-title"},r),(0,Ir.createElement)(ug,{className:"components-popover__close",icon:Zx,onClick:o})),(0,Ir.createElement)("div",{className:"components-popover__content"},i),L&&(0,Ir.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,Ir.createElement)(nC,null)));const pe=j.ref&&!y,me=_||E||f;return pe?fe=(0,Ir.createElement)(ZS,{name:F},fe):y||(fe=(0,df.createPortal)((0,Ir.createElement)($S,{document},fe),(()=>{let e=document.body.querySelector("."+oC);return e||(e=document.createElement("div"),e.className=oC,document.body.append(e)),e})())),me?fe:(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("span",{ref:M}),fe)}));iC.Slot=(0,Ir.forwardRef)((function({name:e=tC},t){return(0,Ir.createElement)(QS,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),iC.__unstableSlotNameProvider=rC.Provider;const aC=iC,sC=Uh(((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}=$h(e,"Dropdown");void 0!==h&&sn("`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,Ir.useState)(null),y=(0,Ir.useRef)(),[k,w]=Ug({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,Ir.createElement)("div",{className:o,ref:$g([y,t,b]),tabIndex:-1,style:f},r(E),k&&(0,Ir.createElement)(aC,{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:$l()("components-dropdown__content",c?.className,i)},n(E)))}),"Dropdown"),lC=sC,cC=()=>{},uC=["menuitem","menuitemradio","menuitemcheckbox"];class dC extends Ir.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?Hx.tabbable:Hx.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=cC,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&uC.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,Ir.createElement)("div",{ref:this.bindContainer,...l},e)}}const fC=(e,t)=>(0,Ir.createElement)(dC,{...e,forwardedRef:t});fC.displayName="NavigableContainer";const pC=(0,Ir.forwardRef)(fC);const mC=(0,Ir.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,Ir.createElement)(pC,{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})})),hC=mC;function gC(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=$l()(t.className,e.className)),n}function vC(e){return"function"==typeof e}const bC=Wh((function(e){const{children:t,className:n,controls:r,icon:o=Vg,label:i,popoverProps:a,toggleProps:s,menuProps:l,disableOpenOnArrowDown:c=!1,text:u,noIcons:d,open:f,defaultOpen:p,onToggle:m,variant:h}=$h(e,"DropdownMenu");if(!r?.length&&!vC(t))return null;let g;r?.length&&(g=r,Array.isArray(g[0])||(g=[r]));const v=gC({className:"components-dropdown-menu__popover",variant:h},a);return(0,Ir.createElement)(lC,{className:n,popoverProps:v,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=ug,...a}=null!=s?s:{},l=gC({className:$l()("components-dropdown-menu__toggle",{"is-opened":e})},a);return(0,Ir.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=gC({"aria-label":i,className:$l()("components-dropdown-menu__menu",{"no-icons":d})},l);return(0,Ir.createElement)(hC,{...n,role:"menu"},vC(t)?t(e):null,g?.flatMap(((t,n)=>t.map(((t,r)=>(0,Ir.createElement)(ug,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:$l()("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"),yC=bC;const kC=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,Ir.createElement)(yC,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,Ir.useContext)(Bg)?(0,Ir.createElement)(Lg,{...t},r):r(t)};const wC=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const a=(0,Ir.useContext)(Bg);if(!(e&&e.length||t))return null;const s=$l()(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,Ir.createElement)(kC,{label:o,controls:l,className:s,children:t,...i}):(0,Ir.createElement)(jg,{className:s,...i},l?.flatMap(((e,t)=>e.map(((e,n)=>(0,Ir.createElement)(Fg,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":void 0,...e}))))),t)};o(6308);const _C="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback,EC=()=>{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?_C(n):t=!1};return{add:(r,o)=>{e.set(r,o),t||(t=!0,_C(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}}},xC=(0,Ir.createContext)(fn),{Consumer:SC,Provider:CC}=xC,IC=SC,TC=CC;function PC(){return(0,Ir.useContext)(xC)}const NC=(0,Ir.createContext)(!1),{Consumer:OC,Provider:AC}=NC,MC=AC;const RC=EC();function BC(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?RC.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?.();RC.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),da(i,u)||(i=u),o=t,l=!0}return a&&!c&&(l=!1,RC.cancel(r)),u(),a=c,{subscribe:s.subscribe,getValue:function(){return u(),i}}}}function LC(e,t,n){const r=PC(),o=(0,Ir.useContext)(NC),i=(0,Ir.useMemo)((()=>BC(r,e)),[r]),a=(0,Ir.useCallback)(t,n),{subscribe:s,getValue:l}=i(a,o),c=(0,Ir.useSyncExternalStore)(s,l,l);return(0,Ir.useDebugValue)(c),c}function DC(e,t){const n="function"!=typeof e,r=(0,Ir.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,PC().select(o)):LC(!1,e,t);var o}const zC={default:eC("BlockControls"),block:eC("BlockControlsBlock"),inline:eC("BlockFormatControls"),other:eC("BlockControlsOther"),parent:eC("BlockControlsParent")},FC={insertUsage:{}},jC={alignWide:!1,supportsLayout:!0,colors:[{name:Un("Black"),slug:"black",color:"#000000"},{name:Un("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Un("White"),slug:"white",color:"#ffffff"},{name:Un("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Un("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Un("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Un("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Un("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Un("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Un("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Un("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Un("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Wn("Small","font size name"),size:13,slug:"small"},{name:Wn("Normal","font size name"),size:16,slug:"normal"},{name:Wn("Medium","font size name"),size:20,slug:"medium"},{name:Wn("Large","font size name"),size:36,slug:"large"},{name:Wn("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Un("Thumbnail")},{slug:"medium",name:Un("Medium")},{slug:"large",name:Un("Large")},{slug:"full",name:Un("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:Un("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:Un("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:Un("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:Un("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:Un("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:Un("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:Un("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Un("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:Un("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:Un("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:Un("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Un("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function VC(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function HC(e,t,n,r=1){const o=[...e];return o.splice(t,r),VC(o,e.slice(t,t+r),n)}const $C=e=>e;function UC(e,t=""){const n=new Map,r=[];return n.set(t,r),e.forEach((e=>{const{clientId:t,innerBlocks:o}=e;r.push(t),UC(o,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function WC(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 KC(e,t=$C){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 GC(e){return KC(e,(e=>{const{attributes:t,...n}=e;return n}))}function qC(e){return KC(e,(e=>e.attributes))}function YC(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Ma()(e.clientIds,t.clientIds)&&function(e,t){return Ma()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function XC(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 ZC(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 QC=Te(pn,(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),XC(r,n.blocks),ZC(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)}),ZC(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)})})),ZC(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)})),XC(r,n.blocks),ZC(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));ZC(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)})),ZC(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),ZC(r,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];r.tree=new Map(r.tree),ZC(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})})),ZC(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(GC(n.blocks)),attributes:new Map(qC(n.blocks)),order:UC(n.blocks),parents:new Map(WC(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),XC(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:!YC(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 GC(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)})),GC(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 qC(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)})),qC(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=UC(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=UC(t.blocks,n),{index:i=r.length}=t,a=new Map(e);return o.forEach(((e,t)=>{a.set(t,e)})),a.set(n,VC(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,HC(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,VC(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,HC(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,HC(a,s,s+1,n.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const r=UC(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 WC(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return WC(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)})),WC(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 JC(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 eI=pn({blocks:QC,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=JC(e.selectionStart,t),r=JC(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 Ma()(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 Ma()(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=jC,t){return"UPDATE_SETTINGS"===t.type?t.reset?{...jC,...t.settings}:{...e,...t.settings}:e},preferences:function(e=FC,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=Rr(wi).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 tI=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}}(eI),nI={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0},rI=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 oI=pn({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}}),iI=ot((e=>Object.values(e.formatTypes)),(e=>[e.formatTypes]));function aI(e,t){return e.formatTypes[t]}function sI(e,t){const n=iI(e);return n.find((({className:e,tagName:n})=>null===e&&t===n))||n.find((({className:e,tagName:t})=>null===e&&"*"===t))}function lI(e,t){return iI(e).find((({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0))}function cI(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function uI(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}const dI=Tt("core/rich-text",{reducer:oI,selectors:c,actions:u});function fI({implementation:e},t){return fI.body||(fI.body=e.createHTMLDocument("").body),fI.body.innerHTML=t,fI.body}function pI(e,t){return e.formats=e.formats.concat(t.formats),e.replacements=e.replacements.concat(t.replacements),e.text+=t.text,e}hn(dI);const mI="",hI="\ufeff";function gI({tagName:e,attributes:t}){let n;if(t&&t.class&&(n=Rr(dI).getFormatTypeForClassName(t.class),n&&(t.class=` ${t.class} `.replace(` ${n.className} `," ").trim(),t.class||delete t.class)),n||(n=Rr(dI).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 vI({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=fI(document,n)),"object"!=typeof e?{formats:[],replacements:[],text:""}:_I({element:e,range:r,isEditableTree:o,preserveWhiteSpace:i}))}function bI(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 yI(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 kI(e){return e.replace(/[\n\r\t]+/g," ")}function wI(e){return e.replace(new RegExp(`[${hI}${mI}]`,"gu"),"")}function _I({element:e,range:t,isEditableTree:n,preserveWhiteSpace:r}){const o={formats:[],replacements:[],text:""};if(!e)return o;if(!e.hasChildNodes())return bI(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=wI;r||(d=e=>wI(kI(e)));const f=d(s.nodeValue);bI(o,s,t=yI(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"))){bI(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:mI};bI(o,s,t,p),pI(o,p);continue}if("br"===l){bI(o,s,t,{formats:[],replacements:[],text:""}),pI(o,vI({text:"\n"}));continue}const c=gI({tagName:l,attributes:EI({element:s})});if(!1===c?.formatType?.contentEditable){delete c.formatType,bI(o,s,t,{formats:[],replacements:[],text:""}),pI(o,{formats:[,],replacements:[{...c,innerHTML:s.innerHTML}],text:mI});continue}c&&delete c.formatType;const u=_I({element:s,range:t,isEditableTree:n,preserveWhiteSpace:r});if(bI(o,s,t,u),c)if(0===u.text.length)c.attributes&&pI(o,{formats:[,],replacements:[c],text:mI});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],pI(o,{...u,formats:Array.from(u.formats,m)})}else pI(o,u)}return o}function EI({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 xI(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 SI(e,t,n=e.start,r=e.end){const{formats:o,replacements:i,text:a}=e;"string"==typeof t&&(t=vI({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];xI(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 CI(e,t,n){return SI(e,vI(),t,n)}function II(e){return Rr(dI).getFormatType(e)}function TI(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 PI({type:e,tagName:t,attributes:n,unregisteredAttributes:r,object:o,boundaryClass:i,isEditableTree:a}){const s=II(e);let l={};if(i&&a&&(l["data-rich-text-format-boundary"]="true"),!s)return n&&(l={...n,...l}),{type:e,attributes:TI(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:TI(l,a)}}function NI(e,t,n){do{if(e[n]!==t[n])return!1}while(n--);return!0}function OI({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=>xI(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&&NI(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,PI({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===mI){const t=h[e];if(!t)continue;const{type:n,attributes:o,innerHTML:a}=t,s=II(n);f||"script"!==n?!1===s?.contentEditable?(S=r(i(S),PI({...t,isEditableTree:f,boundaryClass:v===e&&b===e+1})),a&&r(S,{html:a})):S=r(i(S),PI({...t,object:!0,isEditableTree:f})):(S=r(i(S),PI({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),hI),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 AI({value:e,preserveWhiteSpace:t}){return VI(OI({value:e,preserveWhiteSpace:t,createEmpty:MI,append:BI,getLastChild:RI,getParent:DI,isText:zI,getText:FI,remove:jI,appendText:LI}).children)}function MI(){return{}}function RI({children:e}){return e&&e[e.length-1]}function BI(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function LI(e,t){e.text+=t}function DI({parent:e}){return e}function zI({text:e}){return"string"==typeof e}function FI({text:e}){return e}function jI(e){const t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function VI(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)Hi(e)&&(o+=` ${e}="${Vi(t[e])}"`);return n?`<${e}${o}>`:`<${e}${o}>${VI(r)}</${e}>`}(e):ji(e.text.replace(/&/g,"&")))).join("")}function HI(e){const{__unstablePreserveWhiteSpace:t}=e;return{preserveWhiteSpace:t}}const $I=(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 UI(e,t,n="asc"){return e.concat().sort($I(t,e,n))}const WI=[],KI=new Set;function GI(e,t){const n=e.blocks.byClientId.get(t),r="core/social-link";if("web"!==nI.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 qI(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function YI(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function XI(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const ZI=ot(((e,t)=>e.blocks.byClientId.has(t)?{...e.blocks.byClientId.get(t),attributes:YI(e,t)}:null),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function QI(e,t){const n=t&&YP(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||WI}const JI=ot(((e,t)=>(sn("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:eT(e,t)})),(e=>[e.blocks.order])),eT=ot(((e,t="")=>(sn("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),jT(e,t).map((t=>JI(e,t))))),(e=>[e.blocks.order])),tT=ot(((e,t)=>{const n=Array.isArray(t)?t:[t],r=[];for(const t of n)for(const n of jT(e,t))r.push(n,...tT(e,n));return r}),(e=>[e.blocks.order])),nT=ot((e=>{const t=[];for(const n of jT(e))t.push(n,...tT(e,n));return t}),(e=>[e.blocks.order])),rT=ot(((e,t)=>{const n=nT(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])),oT=ot(((e,t)=>{if(!t)return WI;const n=Array.isArray(t)?t:[t],r=nT(e).filter((t=>{const r=e.blocks.byClientId.get(t);return n.includes(r.name)}));return r.length>0?r:WI}),(e=>[e.blocks.order,e.blocks.byClientId])),iT=ot(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>XI(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),aT=ot(((e,t)=>iT(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>iT(e,t)));function sT(e,t){return jT(e,t).length}function lT(e){return e.selection.selectionStart}function cT(e){return e.selection.selectionEnd}function uT(e){return e.selection.selectionStart.clientId}function dT(e){return e.selection.selectionEnd.clientId}function fT(e){const t=CT(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function pT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function mT(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:r}=t;return r&&r===n.clientId?r:null}function hT(e){const t=mT(e);return t?XI(e,t):null}function gT(e,t){return e.blocks.parents.has(t)?e.blocks.parents.get(t):null}const vT=ot(((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():WI}),(e=>[e.blocks.parents])),bT=ot(((e,t,n,r=!1)=>{const o=vT(e,t,r),i=Array.isArray(n)?e=>n.includes(e):e=>n===e;return o.filter((t=>i(GI(e,t))))}),(e=>[e.blocks.parents]));function yT(e,t){let n,r=t;do{n=r,r=e.blocks.parents.get(r)}while(r);return n}function kT(e,t){const n=mT(e),r=[...vT(e,t),t],o=[...vT(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 wT(e,t,n=1){if(void 0===t&&(t=mT(e)),void 0===t&&(t=n<0?TT(e):PT(e)),!t)return null;const r=gT(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 _T(e,t){return wT(e,t,-1)}function ET(e,t){return wT(e,t,1)}function xT(e){return e.initialPosition}const ST=ot((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return WI;if(t.clientId===n.clientId)return[t.clientId];const r=gT(e,t.clientId);if(null===r)return WI;const o=jT(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 CT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?WI:ST(e)}const IT=ot((e=>{const t=CT(e);return t.length?t.map((t=>XI(e,t))):WI}),(e=>[...ST.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function TT(e){return CT(e)[0]||null}function PT(e){const t=CT(e);return t[t.length-1]||null}function NT(e,t){return TT(e)===t}function OT(e,t){return-1!==CT(e).indexOf(t)}const AT=ot(((e,t)=>{let n=t,r=!1;for(;n&&!r;)n=gT(e,n),r=OT(e,n);return r}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function MT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function RT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function BT(e){const t=lT(e),n=cT(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function LT(e){const t=lT(e),n=cT(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function DT(e){return ST(e).some((t=>!zr(GI(e,t)).merge))}function zT(e,t){const n=lT(e),r=cT(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=gT(e,n.clientId);if(o!==gT(e,r.clientId))return!1;const i=jT(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=GI(e,l);if(!zr(u).merge)return!1;const d=XI(e,c);if(d.name===u)return!0;const f=lo(d,u);return f&&f.length}const FT=e=>{const t=lT(e),n=cT(e);if(t.clientId===n.clientId)return WI;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return WI;const r=gT(e,t.clientId);if(r!==gT(e,n.clientId))return WI;const o=jT(e,r),i=o.indexOf(t.clientId),a=o.indexOf(n.clientId),[s,l]=i>a?[n,t]:[t,n],c=XI(e,s.clientId),u=zr(c.name),d=XI(e,l.clientId),f=zr(d.name),p=c.attributes[s.attributeKey],m=d.attributes[l.attributeKey],h=u.attributes[s.attributeKey],g=f.attributes[l.attributeKey];let v=vI({html:p,...HI(h)}),b=vI({html:m,...HI(g)});return v=CI(v,0,s.offset),b=CI(b,l.offset,b.text.length),[{...c,attributes:{...c.attributes,[s.attributeKey]:AI({value:v,...HI(h)})}},{...d,attributes:{...d.attributes,[l.attributeKey]:AI({value:b,...HI(g)})}}]};function jT(e,t){return e.blocks.order.get(t||"")||WI}function VT(e,t){return jT(e,gT(e,t)).indexOf(t)}function HT(e,t){const{selectionStart:n,selectionEnd:r}=e.selection;return n.clientId===r.clientId&&n.clientId===t}function $T(e,t,n=!1){return jT(e,t).some((t=>HT(e,t)||OT(e,t)||n&&$T(e,t,n)))}function UT(e,t,n=!1){return jT(e,t).some((t=>JT(e,t)||n&&UT(e,t,n)))}function WT(e,t){if(!t)return!1;const n=CT(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function KT(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function GT(e){return e.isMultiSelecting}function qT(e){return e.isSelectionEnabled}function YT(e,t){return e.blocksMode[t]||"visual"}function XT(e){return e.isTyping}function ZT(e){return!!e.draggedBlocks.length}function QT(e){return e.draggedBlocks}function JT(e,t){return e.draggedBlocks.includes(t)}function eP(e,t){if(!ZT(e))return!1;return vT(e,t).some((t=>JT(e,t)))}function tP(){return sn('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const nP=ot((e=>{let t,n;const{insertionPoint:r,selection:{selectionEnd:o}}=e;if(null!==r)return r;const{clientId:i}=o;return i?(t=gT(e,i)||void 0,n=VT(e,o.clientId)+1):n=jT(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function rP(e){return null!==e.insertionPoint}function oP(e){return e.template.isValid}function iP(e){return e.settings.template}function aP(e,t){var n,r;return t?null!==(n=LP(e,t)?.templateLock)&&void 0!==n&&n:null!==(r=e.settings.templateLock)&&void 0!==r&&r}const sP=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,lP=(e,t,n=null)=>{let r;if(t&&"object"==typeof t?(r=t,t=r.name):r=zr(t),!r)return!1;const{allowedBlockTypes:o}=DP(e);if(!sP(o,t,!0))return!1;if(!!aP(e,n))return!1;if("disabled"===oN(e,null!=n?n:""))return!1;const i=LP(e,n);if(n&&void 0===i)return!1;const a=i?.allowedBlocks,s=sP(a,t),l=r.parent,c=GI(e,n),u=sP(l,c);let d=!0;const f=r.ancestor;if(f){d=[n,...vT(e,n)].some((t=>sP(f,GI(e,t))))}const p=d&&(null===s&&null===u||!0===s||!0===u);return p?Xt("blockEditor.__unstableCanInsertBlockType",p,r,n,{getBlock:XI.bind(null,e),getBlockParentsByBlockName:bT.bind(null,e)}):p},cP=ot(lP,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]));function uP(e,t,n=null){return t.every((t=>cP(e,GI(e,t),n)))}function dP(e,t,n=null){const r=YI(e,t);return null===r||(void 0!==r.lock?.remove?!r.lock.remove:!aP(e,n)&&"disabled"!==oN(e,n))}function fP(e,t,n=null){return t.every((t=>dP(e,t,n)))}function pP(e,t,n=null){const r=YI(e,t);return null===r||(void 0!==r.lock?.move?!r.lock.move:"all"!==aP(e,n)&&"disabled"!==oN(e,n))}function mP(e,t,n=null){return t.every((t=>pP(e,t,n)))}function hP(e,t){const n=YI(e,t);if(null===n)return!0;const{lock:r}=n;return!r?.edit}function gP(e,t){return!!Vr(t,"lock",!0)&&!!e.settings?.canLockBlocks}function vP(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const bP=(e,t,n)=>!!Vr(t,"inserter",!0)&&lP(e,t.name,n),yP=(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}},kP=(e,{buildScope:t="inserter"})=>n=>{const r=n.name;let o=!1;Vr(n.name,"multiple",!0)||(o=iT(e,nT(e)).some((({name:e})=>e===n.name)));const{time:i,count:a=0}=vP(e,r)||{},s={id:r,name:n.name,title:n.title,icon:n.icon,isDisabled:o,frecency:yP(i,a)};if("transform"===t)return s;const l=(c=n.name,u="inserter",Rr(wi).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}},wP=ot(((e,t=null)=>{const n=lP(e,"core/block",t)?$P(e).map((t=>{const n=t.wp_pattern_sync_status?rI:{src:rI,foreground:"var(--wp-block-synced-color)"},r=`core/block/${t.id}`,{time:o,count:i=0}=vP(e,r)||{},a=yP(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=kP(e,{buildScope:"inserter"}),o=Fr().filter((n=>bP(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}=vP(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:yP(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,$P(e),Fr()])),_P=ot(((e,t,n=null)=>{const r=Array.isArray(t)?t:[t],o=kP(e,{buildScope:"transform"}),i=Fr().filter((t=>bP(e,t,n))).map(o),a=Object.fromEntries(Object.entries(i).map((([,e])=>[e.name,e]))),s=oo(r).reduce(((e,t)=>(a[t?.name]&&e.push(a[t.name]),e)),[]);return UI(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,Fr()])),EP=ot(((e,t=null)=>{if(Fr().some((n=>bP(e,n,t))))return!0;return lP(e,"core/block",t)&&$P(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,$P(e),Fr()])),xP=ot(((e,t=null)=>{if(!t)return;return[...Fr().filter((n=>bP(e,n,t))),...lP(e,"core/block",t)&&$P(e).length>0?["core/block"]:[]]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,$P(e),Fr()])),SP=ot(((e,t=null)=>(sn('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),xP(e,t))),((e,t)=>[...xP.getDependants(e,t)])),CP=ot(((e,t=null)=>{if(!t)return;const n=e.blockListSettings[t]?.defaultBlock,r=e.blockListSettings[t]?.directInsert;return n&&r?"function"==typeof r?r(XI(e,t))?n:null:n:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)])),IP=ot(((e,t=null)=>(sn('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),CP(e,t))),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)]));function TP(e){var t,n;const r=null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:WI,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 PP=ot((e=>e?.settings?.__experimentalUserPatternCategories),(e=>[e.settings.__experimentalUserPatternCategories])),NP=ot(((e,t)=>{const n=[...e.settings.__experimentalBlockPatterns,...TP(e)].find((({name:e})=>e===t));return n?{...n,blocks:Is(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e?.settings?.__experimentalUserPatternCategories])),OP=ot((e=>{const t=e.settings.__experimentalBlockPatterns,n=TP(e),{allowedBlockTypes:r}=DP(e),o=[...n,...t].filter((({inserter:e=!0})=>!!e)).map((({name:t})=>NP(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(!sP(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])),AP=ot(((e,t=null)=>{const n=OP(e).filter((({blocks:n})=>n.every((({name:n})=>cP(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)])),MP=ot(((e,t,n=null)=>{if(!t)return WI;const r=AP(e,n),o=Array.isArray(t)?t:[t],i=r.filter((e=>e?.blockTypes?.some?.((e=>o.includes(e)))));return 0===i.length?WI:i}),((e,t,n)=>[...AP.getDependants(e,n)])),RP=ot(((e,t,n=null)=>(sn('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),MP(e,t,n))),((e,t,n)=>[...AP.getDependants(e,n)])),BP=ot(((e,t,n=null)=>{if(!t)return WI;if(t.some((({clientId:t,innerBlocks:n})=>n.length||YP(e,t))))return WI;const r=Array.from(new Set(t.map((({name:e})=>e))));return MP(e,r,n)}),((e,t,n)=>[...MP.getDependants(e,n)]));function LP(e,t){return e.blockListSettings[t]}function DP(e){return e.settings}function zP(e){return e.blocks.isPersistentChange}const FP=ot(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),jP=ot(((e,t)=>{const n=$P(e).find((e=>e.id===t));return n?n.title?.raw:null}),(e=>[$P(e)]));function VP(e){return e.blocks.isIgnoredChange}function HP(e){return e.lastBlockAttributesChange}function $P(e){var t;return null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:WI}function UP(e){return"navigation"===e.editorMode}function WP(e){return e.editorMode}function KP(e){return e.hasBlockMovingClientId}function GP(e){return!!e.automaticChangeStatus}function qP(e,t){return e.highlightedBlock===t}function YP(e,t){return!!e.blocks.controlledInnerBlocks[t]}const XP=ot(((e,t)=>{if(!t.length)return null;const n=mT(e);if(t.includes(GI(e,n)))return n;const r=CT(e),o=bT(e,n||r[0],t);return o?o[o.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function ZP(e,t,n){const{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===n}function QP(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const JP=ot((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?KI:t}),(e=>[e.blockVisibility])),eN=ot(((e,t)=>{let n,r=t;for(;e.blocks.parents.has(r);)r=e.blocks.parents.get(r),r&&"contentOnly"===aP(e,r)&&(n=r);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function tN(e){return e.temporarilyEditingAsBlocks}function nN(e,t){if("default"!==oN(e,t))return!1;if(!hP(e,t))return!0;const n=WP(e);if("zoom-out"===n&&t&&!gT(e,t))return!0;const r=Vr(GI(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!r&&YP(e,t))&&!HT(e,t)&&!$T(e,t,!0)}function rN(e,t){let n=e.blocks.parents.get(t);for(;n;){if(nN(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const oN=Oe((e=>(t,n="")=>{if(t.blockEditingModes.has(n))return t.blockEditingModes.get(n);if(!n)return"default";const r=gT(t,n);if("contentOnly"===aP(t,r)){const r=GI(t,n);return e(wi).__experimentalHasContentRoleAttribute(r)?"contentOnly":"disabled"}const o=oN(t,r);return"contentOnly"===o?"default":o})),iN=Oe((e=>(t,n="")=>{const r=n||mT(t);if(!r)return!1;const{getGroupingBlockName:o}=e(wi),i=XI(t,r),a=o();return i&&(i.name===a||zr(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&dP(t,r)})),aN=Oe((e=>(t,n=WI)=>{const{getGroupingBlockName:r}=e(wi),o=r(),i=n?.length?n:ST(t),a=i?.length?gT(t,i[0]):void 0;return cP(t,o,a)&&i.length&&fP(t,i,a)})),sN=["inserterMediaCategories","blockInspectorAnimation"];function lN(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let r=e;if(t&&"web"===nI.OS){r={};for(const t in e)sN.includes(t)||(r[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:r,reset:n}}function cN(){return{type:"HIDE_BLOCK_INTERFACE"}}function uN(){return{type:"SHOW_BLOCK_INTERFACE"}}const dN=(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(fN())}))},fN=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function pN(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function mN(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function hN(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function gN(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function vN(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function bN(e){return e.isBlockInterfaceHidden}function yN(e){return e?.lastBlockInserted?.clientIds}const kN=ot(((e,t)=>{const n=t=>"disabled"===oN(e,t)&&jT(e,t).every(n);return"disabled"===oN(e,t)&&jT(e,t).every(n)}),(e=>[e.blocks.parents,e.blocks.order,e.blockEditingModes,e.blockListSettings])),wN=ot(((e,t="")=>jT(e,t).flatMap((t=>"disabled"!==oN(e,t)?[{clientId:t,innerBlocks:wN(e,t)}]:wN(e,t)))),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),_N=ot(((e,t,n=!1)=>vT(e,t,n).filter((t=>"disabled"!==oN(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function EN(e){return e.removalPromptData}function xN(e){return e.blockRemovalRules}function SN(e){return e.openedBlockSettingsMenu}function CN(e){return e.styleOverrides}function IN(e){return e.registeredInserterMediaCategories}const TN=ot((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 PN(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 NN="";var ON;function AN(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," "),NN===e&&(e+=" "),NN=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")}ON=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=Un("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&&PN("assertive"),null===n&&PN("polite")},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",ON):ON());const MN="";function RN(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(MN)}))}const BN=e=>Array.isArray(e)?e:[e],LN=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(DN(e))},DN=e=>({select:t,dispatch:n})=>{const r=t.getTemplate(),o=t.getTemplateLock(),i=!r||"all"!==o||jl(e,r);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function zN(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function FN(e){return sn('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function jN(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:BN(e),attributes:t,uniqueByBlock:n}}function VN(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function HN(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const $N=(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)}},UN=e=>({select:t,dispatch:n})=>{const r=t.getNextBlockClientId(e);r&&n.selectBlock(r)};function WN(){return{type:"START_MULTI_SELECT"}}function KN(){return{type:"STOP_MULTI_SELECT"}}const GN=(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();AN(An(Kn("%s block selected.","%s blocks selected.",i),i),"assertive")};function qN(){return{type:"CLEAR_SELECTED_BLOCK"}}function YN(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function XN(e,t){var n;const r=null!==(n=t?.__experimentalPreferredStyleVariations?.value)&&void 0!==n?n:{};return e.map((e=>{const t=e.name;if(!Vr(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 ZN=(e,t,n,r=0,o)=>({select:i,dispatch:a,registry:s})=>{e=BN(e),t=XN(BN(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 QN(e,t){return ZN(e,t)}const JN=e=>(t,n)=>({select:r,dispatch:o})=>{r.canMoveBlocks(t,n)&&o({type:e,clientIds:BN(t),rootClientId:n})},eO=JN("MOVE_BLOCKS_DOWN"),tO=JN("MOVE_BLOCKS_UP"),nO=(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 rO(e,t="",n="",r){return nO([e],t,n,r)}function oO(e,t,n,r,o){return iO([e],t,n,r,0,o)}const iO=(e,t,n,r=!0,o=0,i)=>({select:a,dispatch:s})=>{null!==o&&"object"==typeof o&&(i=o,o=0,sn("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=XN(BN(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 aO(e,t,n={}){const{__unstableWithInserter:r,operation:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:o}}const sO=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function lO(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const cO=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=Vl(e.getBlocks(),e.getTemplate());t.resetBlocks(n)},uO=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=zr(d.name);if(!f.merge)return;const p=l,m=c,h=n.getBlock(p.clientId),g=zr(h.name),v=n.getBlock(m.clientId),b=zr(v.name),y=h.attributes[p.attributeKey],k=v.attributes[m.attributeKey],w=g.attributes[p.attributeKey],_=b.attributes[m.attributeKey];let E=vI({html:y,...HI(w)}),x=vI({html:k,...HI(_)});E=CI(E,p.offset,E.text.length),x=SI(x,MN,0,m.offset);const S=eo(h,{[p.attributeKey]:AI({value:E,...HI(w)})}),C=eo(v,{[m.attributeKey]:AI({value:x,...HI(_)})}),I=e?S:C,T=h.name===v.name?[I]:lo(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=RN(P),O=vI({html:P[N],...HI(f.attributes[N])}),A=O.text.indexOf(MN),M=AI({value:CI(O,A,A+1),...HI(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())}))},dO=()=>({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=zr(u.name),f=e.getBlock(c.clientId),p=zr(f.name),m=u.attributes[l.attributeKey],h=f.attributes[c.attributeKey],g=d.attributes[l.attributeKey],v=p.attributes[c.attributeKey];let b=vI({html:m,...HI(g)}),y=vI({html:h,...HI(v)});b=CI(b,l.offset,b.text.length),y=CI(y,0,c.offset),t.replaceBlocks(e.getSelectedBlockClientIds(),[{...u,attributes:{...u.attributes,[l.attributeKey]:AI({value:b,...HI(g)})}},{...f,attributes:{...f.attributes,[c.attributeKey]:AI({value:y,...HI(v)})}}])},fO=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:r.clientId}})},pO=(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=zr(l.name);if(!c)return;if(!c.merge&&!jr(l.name,"__experimentalOnMerge"))return void o.selectBlock(l.clientId);const u=r.getBlock(s);if(!c.merge){const e=lo(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=zr(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=eo(l),b=eo(u);if(g){const e=f===a?v:b,t=SI(vI({html:e.attributes[p],...HI(h)}),MN,m,m);e.attributes[p]=AI({value:t,...HI(h)})}const y=l.name===u.name?[b]:lo(b,l.name);if(!y||!y.length)return;const k=c.merge(v.attributes,y[0].attributes);if(g){const e=RN(k),t=vI({html:k[e],...HI(c.attributes[e])}),n=t.text.indexOf(MN),r=AI({value:CI(t,n,n+1),...HI(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)},mO=(e,t=!0)=>dN(e,t);function hO(e,t){return mO([e],t)}function gO(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 vO(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function bO(){return{type:"START_TYPING"}}function yO(){return{type:"STOP_TYPING"}}function kO(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function wO(){return{type:"STOP_DRAGGING_BLOCKS"}}function _O(){return sn('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function EO(){return sn('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function xO(e,t,n,r){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}:{type:"SELECTION_CHANGE",...e}}const SO=(e,t,n)=>({dispatch:r})=>{const o=Dr();if(!o)return;const i=Zr(o,e);return r.insertBlock(i,n,t)};function CO(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function IO(e){return lN(e,{stripExperimentalSettings:!0})}function TO(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function PO(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function NO(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const OO=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},AO=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},MO=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?AN(Un("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?AN(Un("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&AN(Un("You are currently in zoom-out mode."))},RO=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&AN(Un("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."))},BO=(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=>!Vr(e,"multiple",!0))))return;const a=n.getBlockRootClientId(e[0]),s=BN(e),l=n.getBlockIndex(s[s.length-1]),c=o.map((e=>Jr(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))},LO=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)},DO=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 zO(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const FO=e=>async({dispatch:t})=>{t(zO(e,!0)),await new Promise((e=>setTimeout(e,150))),t(zO(e,!1))};function jO(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function VO(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function HO(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const $O=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 UO(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function WO(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const KO="core/block-editor",{lock:GO,unlock:qO}=Ve("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-editor"),YO={reducer:tI,selectors:d,actions:m},XO=Tt(KO,{...YO,persist:["preferences"]}),ZO=mn(KO,{...YO,persist:["preferences"]});qO(ZO).registerPrivateActions(f),qO(ZO).registerPrivateSelectors(p),qO(XO).registerPrivateActions(f),qO(XO).registerPrivateSelectors(p);const QO={name:"",isSelected:!1},JO=(0,Ir.createContext)(QO),{Provider:eA}=JO;function tA(){return(0,Ir.useContext)(JO)}function nA(){const{isSelected:e,clientId:t,name:n}=tA();return DC((r=>{if(e)return!0;const{getBlockName:o,isFirstMultiSelectedBlock:i,getMultiSelectedBlockClientIds:a}=r(XO);return!!i(t)&&a().every((e=>o(e)===n))}),[t,e,n])}function rA({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:r=!1}){const o=function(e,t){const n=nA(),{clientId:r}=tA(),o=DC((e=>{const{getBlockName:n,hasSelectedInnerBlock:o}=e(XO),{hasBlockSupport:i}=e(wi);return t&&i(n(r),"__experimentalExposeControlsToChildren",!1)&&o(r)}),[t,r]);return n?zC[e]?.Fill:o?zC.parent.Fill:null}(e,r);if(!o)return null;const i=(0,Ir.createElement)(Ir.Fragment,null,"default"===e&&(0,Ir.createElement)(wC,{controls:t}),n);return(0,Ir.createElement)(US,{document},(0,Ir.createElement)(o,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,Ir.createElement)(t,{...n},e)),i)})))}var oA=o(5697),iA=o.n(oA);o(1726);function aA(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function sA(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function lA(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return sA(n.overflowY,t)||sA(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 cA(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 uA=0;function dA(){}function fA(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(!aA(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;aA(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&&lA(p)&&!lA(document.documentElement)||null!=p&&lA(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?cA(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:cA(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?cA(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:cA(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 pA(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function mA(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 hA(){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 gA(){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 vA(){return String(uA++)}function bA(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 yA(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=kA(t,r)?t[r]:e[r],n)),{})}function kA(e,t){return void 0!==e[t]}function wA(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function _A(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=EA(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function EA(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?EA(1,0,n,r,!1):EA(-1,n-1,n,r,!1):-1}function xA(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(pA(t,e,n)||r&&pA(t,n.document.activeElement,n))))}const SA=mA((e=>{IA(e).textContent=""}),500);function CA(e,t){const n=IA(t);e&&(n.textContent=e,SA(t))}function IA(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 TA={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function PA(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${BA(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 NA=mA(((e,t)=>{CA(e(),t)}),200),OA="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Ir.useLayoutEffect:Ir.useEffect;function AA(e){let{id:t=`downshift-${vA()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,Ir.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 MA(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function RA(e){return/^\S{1}$/.test(e)}function BA(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function LA(e){const t=(0,Ir.useRef)(e);return t.current=e,t}function DA(e,t,n){const r=(0,Ir.useRef)(),o=(0,Ir.useRef)(),i=(0,Ir.useCallback)(((t,n)=>{o.current=n,t=yA(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,Ir.useReducer)(i,t),l=LA(n),c=(0,Ir.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,Ir.useEffect)((()=>{u&&r.current&&r.current!==a&&PA(u,yA(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function zA(e,t,n){const[r,o]=DA(e,t,n);return[yA(r,n),o]}const FA={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:fA,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function jA(e,t,n){void 0===n&&(n=TA);const r=e[`default${BA(t)}`];return void 0!==r?r:n[t]}function VA(e,t,n){void 0===n&&(n=TA);const r=e[t];if(void 0!==r)return r;const o=e[`initial${BA(t)}`];return void 0!==o?o:jA(e,t,n)}function HA(e){const t=VA(e,"selectedItem"),n=VA(e,"isOpen"),r=VA(e,"highlightedIndex"),o=VA(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function $A(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):_A(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function UA(e,t,n,r){const o=(0,Ir.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,Ir.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!xA(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||xA(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 WA=()=>dA;function KA(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,Ir.useEffect)((()=>{r||NA((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function GA(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,Ir.useRef)(!0);return OA((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let qA=dA;function YA(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:$A(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:$A(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:jA(o,"highlightedIndex"),isOpen:jA(o,"isOpen"),selectedItem:jA(o,"selectedItem"),inputValue:jA(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function XA(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}iA().array.isRequired,iA().func,iA().func,iA().func,iA().bool,iA().number,iA().number,iA().number,iA().bool,iA().bool,iA().bool,iA().any,iA().any,iA().any,iA().string,iA().string,iA().string,iA().func,iA().string,iA().func,iA().func,iA().func,iA().func,iA().func,iA().shape({addEventListener:iA().func,removeEventListener:iA().func,document:iA().shape({getElementById:iA().func,activeElement:iA().any,body:iA().any})});var ZA=gn(gn({},FA),{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.":""}}),QA=dA;const JA=0,eM=1,tM=2,nM=3,rM=4,oM=5,iM=6,aM=7,sM=8,lM=9,cM=10,uM=11,dM=12,fM=13,pM=14,mM=15,hM=16,gM=17,vM=18,bM=19,yM=20,kM=21,wM=22;var _M=Object.freeze({__proto__:null,MenuKeyDownArrowDown:JA,MenuKeyDownArrowUp:eM,MenuKeyDownEscape:tM,MenuKeyDownHome:nM,MenuKeyDownEnd:rM,MenuKeyDownEnter:oM,MenuKeyDownSpaceButton:iM,MenuKeyDownCharacter:aM,MenuBlur:sM,MenuMouseLeave:lM,ItemMouseMove:cM,ItemClick:uM,ToggleButtonClick:dM,ToggleButtonKeyDownArrowDown:fM,ToggleButtonKeyDownArrowUp:pM,ToggleButtonKeyDownCharacter:mM,FunctionToggleMenu:hM,FunctionOpenMenu:gM,FunctionCloseMenu:vM,FunctionSetHighlightedIndex:bM,FunctionSelectItem:yM,FunctionSetInputValue:kM,FunctionReset:wM});function EM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case uM:i={isOpen:jA(r,"isOpen"),highlightedIndex:jA(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case mM:{const n=t.key,o=`${e.inputValue}${n}`,a=XA({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 fM:i={highlightedIndex:$A(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case pM:i={highlightedIndex:$A(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case oM:case iM:i={isOpen:jA(r,"isOpen"),highlightedIndex:jA(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case nM:i={highlightedIndex:EA(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case rM:i={highlightedIndex:EA(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case tM:case sM:i={isOpen:!1,highlightedIndex:-1};break;case aM:{const n=t.key,o=`${e.inputValue}${n}`,a=XA({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case JA:i={highlightedIndex:_A(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case eM:i={highlightedIndex:_A(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case yM:i={selectedItem:t.selectedItem};break;default:return YA(e,t,_M)}return{...e,...i}}function xM(e){void 0===e&&(e={}),QA(e,xM);const t={...ZA,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=HA(t),[d,f]=zA(EM,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,v=(0,Ir.useRef)(null),b=(0,Ir.useRef)(null),y=(0,Ir.useRef)({}),k=(0,Ir.useRef)(!0),w=(0,Ir.useRef)(null),_=AA(t),E=(0,Ir.useRef)(),x=(0,Ir.useRef)(!0),S=LA({state:d,props:t}),C=(0,Ir.useCallback)((e=>y.current[_.getItemId(e)]),[_]);KA(c,[p,m,g,n],{isInitialMount:x.current,previousResultCount:E.current,items:n,environment:o,itemToString:s,...d}),KA(l,[h],{isInitialMount:x.current,previousResultCount:E.current,items:n,environment:o,itemToString:s,...d});const I=GA({menuElement:b.current,highlightedIndex:m,isOpen:p,itemRefs:y,scrollIntoView:r,getItemNodeFromIndex:C});(0,Ir.useEffect)((()=>(w.current=mA((e=>{e({type:kM,inputValue:""})}),500),()=>{w.current.cancel()})),[]),(0,Ir.useEffect)((()=>{g&&w.current(f)}),[f,g]),qA({isInitialMount:x.current,props:t,state:d}),(0,Ir.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,Ir.useEffect)((()=>{x.current||(E.current=n.length)}));const T=UA(p,[b,v],o,(()=>{f({type:sM})})),P=WA("getMenuProps","getToggleButtonProps");(0,Ir.useEffect)((()=>{x.current=!1}),[]),(0,Ir.useEffect)((()=>{p||(y.current={})}),[p]);const N=(0,Ir.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:fM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:pM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})}})),[f,C]),O=(0,Ir.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:JA,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:eM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:nM,getItemNodeFromIndex:C})},End(e){e.preventDefault(),f({type:rM,getItemNodeFromIndex:C})},Escape(){f({type:tM})},Enter(e){e.preventDefault(),f({type:oM})}," "(e){e.preventDefault(),f({type:iM})}})),[f,C]),A=(0,Ir.useCallback)((()=>{f({type:hM})}),[f]),M=(0,Ir.useCallback)((()=>{f({type:vM})}),[f]),R=(0,Ir.useCallback)((()=>{f({type:gM})}),[f]),B=(0,Ir.useCallback)((e=>{f({type:bM,highlightedIndex:e})}),[f]),L=(0,Ir.useCallback)((e=>{f({type:yM,selectedItem:e})}),[f]),D=(0,Ir.useCallback)((()=>{f({type:wM})}),[f]),z=(0,Ir.useCallback)((e=>{f({type:kM,inputValue:e})}),[f]),F=(0,Ir.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),j=(0,Ir.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]:gA(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:hA(n,(()=>{f({type:lM})})),onKeyDown:hA(o,(e=>{const t=wA(e);t&&O[t]?O[t](e):RA(t)&&f({type:aM,key:t,getItemNodeFromIndex:C})})),onBlur:hA(i,(()=>{if(!1===k.current)return void(k.current=!0);!T.current.isMouseDown&&f({type:sM})})),...s}}),[f,S,O,T,P,_,C]),V=(0,Ir.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:dM})},c=e=>{const t=wA(e);t&&N[t]?N[t](e):RA(t)&&f({type:mM,key:t,getItemNodeFromIndex:C})},u={[o]:gA(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=hA(n,l),u.onKeyDown=hA(r,c)),P("getToggleButtonProps",s,o,v),u}),[f,S,N,P,_,C]),H=(0,Ir.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:uM,index:n})},p=MA(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]:gA(a,(e=>{e&&(y.current[_.getItemId(p)]=e)})),...l};return s||(m.onClick=hA(o,d)),m.onMouseMove=hA(r,(()=>{n!==c.highlightedIndex&&(I.current=!1,f({type:cM,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}}xM.stateChangeTypes=_M;iA().array.isRequired,iA().func,iA().func,iA().func,iA().bool,iA().number,iA().number,iA().number,iA().bool,iA().bool,iA().bool,iA().any,iA().any,iA().any,iA().string,iA().string,iA().string,iA().string,iA().string,iA().string,iA().func,iA().string,iA().string,iA().func,iA().func,iA().func,iA().func,iA().func,iA().func,iA().shape({addEventListener:iA().func,removeEventListener:iA().func,document:iA().shape({getElementById:iA().func,activeElement:iA().any,body:iA().any})});iA().array,iA().array,iA().array,iA().func,iA().func,iA().func,iA().number,iA().number,iA().number,iA().func,iA().func,iA().string,iA().string,iA().shape({addEventListener:iA().func,removeEventListener:iA().func,document:iA().shape({getElementById:iA().func,activeElement:iA().any,body:iA().any})});const SM=(0,Ir.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,Ir.cloneElement)(e,{width:t,height:t,...n,ref:r})})),CM=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 IM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ih(t)}var TM=function(){var e=IM.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 PM;function NM(e="",t=1){return kr(e).alpha(t).toRgbString()}_r([Er]);const OM=Tn((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&kr(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!PM){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),PM=e}return PM}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function AM(e){const t=function(e){const t=OM(e);return kr(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const MM="#fff",RM={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},BM="var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",LM="var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",DM={background:MM,backgroundDisabled:RM[100],border:RM[600],borderHover:RM[700],borderFocus:BM,borderDisabled:RM[400],textDisabled:RM[600],textDark:MM,darkGrayPlaceholder:NM(RM[900],.62),lightGrayPlaceholder:NM(MM,.65)},zM={accent:BM,accentDarker10:LM},FM=Object.freeze({gray:RM,white:MM,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:zM,ui:DM}),jM=new RegExp(/-left/g),VM=new RegExp(/-right/g),HM=new RegExp(/Left/g),$M=new RegExp(/Right/g);function UM(e){return"left"===e?"right":"right"===e?"left":jM.test(e)?e.replace(jM,"-right"):VM.test(e)?e.replace(VM,"-left"):HM.test(e)?e.replace(HM,"Right"):$M.test(e)?e.replace($M,"Left"):e}const WM=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[UM(e),t])));function KM(e={},t){return()=>t?Gn()?IM(t,""):IM(e,""):Gn()?IM(WM(e),""):IM(e,"")}KM.watch=()=>Gn();const GM="4px";function qM(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(${GM} * ${e})`}const YM=e=>null!=e;const XM=Uh((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}=$h(e,"Spacer");return{...g,className:Hh()(YM(n)&&IM("margin:",qM(n),";",""),YM(l)&&IM("margin-bottom:",qM(l),";margin-top:",qM(l),";",""),YM(s)&&IM("margin-left:",qM(s),";margin-right:",qM(s),";",""),YM(a)&&IM("margin-top:",qM(a),";",""),YM(r)&&IM("margin-bottom:",qM(r),";",""),YM(o)&&KM({marginLeft:qM(o)})(),YM(i)&&KM({marginRight:qM(i)})(),YM(c)&&IM("padding:",qM(c),";",""),YM(h)&&IM("padding-bottom:",qM(h),";padding-top:",qM(h),";",""),YM(m)&&IM("padding-left:",qM(m),";padding-right:",qM(m),";",""),YM(p)&&IM("padding-top:",qM(p),";",""),YM(u)&&IM("padding-bottom:",qM(u),";",""),YM(d)&&KM({paddingLeft:qM(d)})(),YM(f)&&KM({paddingRight:qM(f)})(),t)}}(e);return(0,Ir.createElement)(ag,{...n,ref:t})}),"Spacer"),ZM=XM;const QM=Uh((function(e,t){const n=$h(e,"InputControlSuffixWrapper");return(0,Ir.createElement)(ZM,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),JM=og("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",FM.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?IM({color:FM.ui.textDisabled},"",""):""),";",(({selectSize:e="default"})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"}[e];return t?IM("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 IM(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 KM({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),eR=og("div",{target:"e1mv6sxx1"})("margin-inline-end:",qM(-1),";line-height:0;"),tR=og(QM,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",KM({right:0}),";"),nR=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),rR=()=>(0,Ir.createElement)(tR,null,(0,Ir.createElement)(eR,null,(0,Ir.createElement)(SM,{icon:nR,size:18}))),oR=["40em","52em","64em"],iR=(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>oR.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${oR.length} breakpoints, got index ${t}`);const[n,r]=(0,Ir.useState)(t);return(0,Ir.useEffect)((()=>{const e=()=>{const e=oR.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 aR(e,t={}){const n=iR(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const sR={name:"zjik7",styles:"display:flex"},lR={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},cR={name:"82a6rk",styles:"flex:1"},uR={name:"13nosa1",styles:">*{min-height:0;}"},dR={name:"1pwxzk4",styles:">*{min-width:0;}"};function fR(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...l}=$h(function(e){const{isReversed:t,...n}=e;return void 0!==t?(sn("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=aR(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=Hh();return{...l,className:(0,Ir.useMemo)((()=>{const e=IM({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:s?"wrap":void 0,gap:qM(i),justifyContent:a,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(sR,e,u?uR:dR,n)}),[t,n,d,c,o,i,u,a,s]),isColumn:u}}const pR=(0,Ir.createContext)({flexItemDisplay:void 0}),mR=()=>(0,Ir.useContext)(pR);const hR=Uh((function(e,t){const{children:n,isColumn:r,...o}=fR(e);return(0,Ir.createElement)(pR.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,Ir.createElement)(ag,{...o,ref:t},n))}),"Flex"),gR=hR;function vR(e){const{className:t,display:n,isBlock:r=!1,...o}=$h(e,"FlexItem"),i={},a=mR().flexItemDisplay;i.Base=IM({display:n||a},"","");return{...o,className:Hh()(lR,i.Base,r&&cR,t)}}const bR=Uh((function(e,t){const n=vR(e);return(0,Ir.createElement)(ag,{...n,ref:t})}),"FlexItem");const yR={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function kR(e){return null!=e}const wR=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,_R="…",ER={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},xR={ellipsis:_R,ellipsizeMode:ER.auto,limit:0,numberOfLines:0};function SR(e="",t){const n={...xR,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===ER.none)return e;let a,s;switch(o){case ER.head:a=0,s=i;break;case ER.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==ER.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=kR(r)?r:_R;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 CR(e){const{className:t,children:n,ellipsis:r=_R,ellipsizeMode:o=ER.auto,limit:i=0,numberOfLines:a=0,...s}=$h(e,"Truncate"),l=Hh(),c=SR("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}),u=o===ER.auto;return{...s,className:(0,Ir.useMemo)((()=>l(u&&!a&&yR,u&&!!a&&IM("-webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,a,u]),children:c}}const IR="36px",TR="12px",PR={controlSurfaceColor:FM.white,controlTextActiveColor:FM.theme.accent,controlPaddingX:TR,controlPaddingXLarge:`calc(${TR} * 1.3334)`,controlPaddingXSmall:`calc(${TR} / 1.3334)`,controlBackgroundColor:FM.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${FM.theme.accent}`,controlDestructiveBorderColor:FM.alert.red,controlHeight:IR,controlHeightXSmall:`calc( ${IR} * 0.6 )`,controlHeightSmall:`calc( ${IR} * 0.8 )`,controlHeightLarge:`calc( ${IR} * 1.2 )`,controlHeightXLarge:`calc( ${IR} * 1.4 )`},NR={toggleGroupControlBackgroundColor:PR.controlBackgroundColor,toggleGroupControlBorderColor:FM.ui.border,toggleGroupControlBackdropBackgroundColor:PR.controlSurfaceColor,toggleGroupControlBackdropBorderColor:FM.ui.border,toggleGroupControlButtonColorActive:PR.controlBackgroundColor},OR=Object.assign({},PR,NR,{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:`${qM(2)}`,cardPaddingSmall:`${qM(4)}`,cardPaddingMedium:`${qM(4)} ${qM(6)}`,cardPaddingLarge:`${qM(6)} ${qM(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:FM.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:FM.white,surfaceColor:FM.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 AR=IM("color:",FM.gray[900],";line-height:",OR.fontLineHeightBase,";margin:0;",""),MR={name:"4zleql",styles:"display:block"},RR=IM("color:",FM.alert.green,";",""),BR=IM("color:",FM.alert.red,";",""),LR=IM("color:",FM.gray[700],";",""),DR=IM("mark{background:",FM.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;}",""),zR={name:"50zrmy",styles:"text-transform:uppercase"};var FR=o(6928);const jR=Tn((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const VR=13,HR={body:VR,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},$R=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function UR(e=VR){if(e in HR)return UR(HR[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${VR})`} * ${OR.fontSize})`}function WR(e=3){if(!$R.includes(e))return UR(e);return OR[`fontSizeH${e}`]}var KR={name:"50zrmy",styles:"text-transform:uppercase"};function GR(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:_=OR.fontWeight,...E}=$h(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,FR.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=jR(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,Ir.createElement)(g,u)}return(0,Ir.createElement)("span",{children:a,className:f,key:i,style:p})}));return k}({autoEscape:c,children:r,caseSensitive:u,searchWords:d,sanitize:f})}const I=Hh(),T=(0,Ir.useMemo)((()=>{const e={},r=function(e,t){if(t)return t;if(!e)return;let n=`calc(${OR.controlHeight} + ${qM(2)})`;switch(e){case"large":n=`calc(${OR.controlHeightLarge} + ${qM(2)})`;break;case"small":n=`calc(${OR.controlHeightSmall} + ${qM(2)})`;break;case"xSmall":n=`calc(${OR.controlHeightXSmall} + ${qM(2)})`}return n}(t,g);if(e.Base=IM({color:i,display:l,fontSize:UR(b),fontWeight:_,lineHeight:r,letterSpacing:m,textAlign:n},"",""),e.upperCase=KR,e.optimalTextColor=null,v){const t="dark"===AM(v);e.optimalTextColor=IM(t?{color:FM.gray[900]}:{color:FM.white},"","")}return I(AR,e.Base,e.optimalTextColor,s&&BR,!!S&&DR,p&&MR,C&&LR,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=CR({...E,className:T,children:r,ellipsizeMode:a||P});return!y&&Array.isArray(r)&&(x=Ir.Children.map(r,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return qh(e,["Link"])?(0,Ir.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...N,children:y?N.children:x}}const qR=Uh((function(e,t){const n=GR(e);return(0,Ir.createElement)(ag,{as:"span",...n,ref:t})}),"Text");const YR={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var XR={name:"1739oy8",styles:"z-index:1"};const ZR=({isFocused:e})=>e?XR:"",QR=og(gR,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",ZR,";");var JR={name:"1d3w5wq",styles:"width:100%"};const eB=og("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>IM({backgroundColor:e?FM.ui.backgroundDisabled:FM.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":IM("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):JR),";"),tB=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:qM(4),paddingRight:qM(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:qM(2),paddingRight:qM(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:qM(4),paddingRight:qM(4)}};return t||(n.default={height:30,lineHeight:1,minHeight:30,paddingLeft:qM(2),paddingRight:qM(2)}),n[e]||n.default},nB=og("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",FM.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=IM("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=IM("&:active{cursor:",t,";}","")),IM(n," ",r,";","")})," ",(({disabled:e})=>e?IM({color:FM.ui.textDisabled},"",""):"")," ",(({inputSize:e})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"},n=t[e]||t.default;return n?IM("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>IM(tB(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>IM({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),rB=og(qR,{target:"em5sgkm4"})("&&&{",YR,";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;}"),oB=e=>(0,Ir.createElement)(rB,{...e,as:"label"}),iB=og(bR,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),aB=og("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?FM.ui.borderFocus:FM.ui.border;return t&&(n=OR.controlBoxShadowFocus,r="2px solid transparent",o="-2px"),e&&(i=FM.ui.borderDisabled),IM({boxShadow:n,borderColor:i,borderStyle:"solid",borderWidth:1,outline:r,outlineOffset:o},"","")})," ",KM({paddingLeft:2}),";}"),sB=og("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),lB=og("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const cB=(0,Ir.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,Ir.createElement)(aB,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})})),uB=cB;function dB({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,Ir.createElement)(sg,{as:"label",htmlFor:n},e):(0,Ir.createElement)(iB,null,(0,Ir.createElement)(oB,{htmlFor:n,...r},e)):null}function fB(e,t,n="6.3"){const{__next36pxDefaultSize:r,__next40pxDefaultSize:o,...i}=e;return void 0!==r&&sn("`__next36pxDefaultSize` prop in "+t,{alternative:"`__next40pxDefaultSize`",since:n}),{...i,__next40pxDefaultSize:null!=o?o:r}}function pB(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 mB(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}=fB(e,"wp.components.InputBase","6.4"),g=function(e){const t=Gl(mB);return e||`input-base-control-${t}`}(c),v=s||!d,{paddingLeft:b,paddingRight:y}=tB({inputSize:p,__next40pxDefaultSize:n}),k=(0,Ir.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:b},InputControlSuffixWrapper:{paddingRight:y}})),[b,y]);return(0,Ir.createElement)(QR,{...h,...pB(l),className:i,gap:2,isFocused:u,labelPosition:l,ref:t},(0,Ir.createElement)(dB,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:l,htmlFor:g},d),(0,Ir.createElement)(eB,{__unstableInputWidth:r,className:"components-input-control__container",disabled:a,hideLabel:v,labelPosition:l},(0,Ir.createElement)(cm,{value:k},f&&(0,Ir.createElement)(sB,{className:"components-input-control__prefix"},f),o,m&&(0,Ir.createElement)(lB,{className:"components-input-control__suffix"},m)),(0,Ir.createElement)(uB,{disabled:a,isFocused:u})))}const hB=(0,Ir.forwardRef)(mB),gB=e=>e.__nextUnconstrainedWidth?"":IM(eB,"{min-width:130px;}",""),vB=og(hB,{target:"eswuck60"})(gB,";"),bB={"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 yB(e){var t;return null!==(t=bB[e])&&void 0!==t?t:""}const kB={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const wB=og("div",{target:"ej5x27r4"})("font-family:",yB("default.fontFamily"),";font-size:",yB("default.fontSize"),";",kB,";"),_B=og("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&IM("margin-bottom:",qM(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),EB=IM(YR,";display:inline-block;margin-bottom:",qM(2),";padding:0;",""),xB=og("label",{target:"ej5x27r2"})(EB,";");var SB={name:"11yad0w",styles:"margin-bottom:revert"};const CB=og("p",{target:"ej5x27r1"})("margin-top:",qM(2),";margin-bottom:0;font-size:",yB("helpText.fontSize"),";font-style:normal;color:",FM.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&SB),";"),IB=og("span",{target:"ej5x27r0"})(EB,";"),TB=e=>e?.name,PB=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case xM.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case xM.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function NB(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}=fB(e,"wp.components.CustomSelectControl","6.4"),{getLabelProps:g,getToggleButtonProps:v,getMenuProps:b,getItemProps:y,isOpen:k,highlightedIndex:w,selectedItem:_}=xM({initialSelectedItem:s[0],items:s,itemToString:TB,onSelectedItemChange:l,...null!=u?{selectedItem:u}:void 0,stateReducer:PB}),[E,x]=(0,Ir.useState)(!1);n||sn("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,Ir.useCallback)((e=>{e.stopPropagation(),S?.onKeyDown?.(e)}),[S]);return S["aria-activedescendant"]?.startsWith("downshift-null")&&delete S["aria-activedescendant"],(0,Ir.createElement)("div",{className:$l()("components-custom-select-control",r)},o?(0,Ir.createElement)(sg,{as:"label",...g()},i):(0,Ir.createElement)(xB,{...g({className:"components-custom-select-control__label"})},i),(0,Ir.createElement)(vB,{__next40pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:k||E,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:c,suffix:(0,Ir.createElement)(rR,null)},(0,Ir.createElement)(JM,{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||(_?An(Un("Currently selected: %s"),_.name):Un("No selection"))})},TB(_),h&&_.__experimentalHint&&(0,Ir.createElement)("span",{className:"components-custom-select-control__hint"},_.__experimentalHint))),(0,Ir.createElement)("ul",{...S,onKeyDown:C},k&&s.map(((e,n)=>(0,Ir.createElement)("li",{...y({item:e,index:n,key:e.key,className:$l()(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,Ir.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===_&&(0,Ir.createElement)(SM,{icon:CM,className:"components-custom-select-control__item-icon"}))))))}function OB(e){return(0,Ir.createElement)(NB,{...e,__experimentalShowSelectedHint:!1})}const AB=TM({"0%":{left:"-50%"},"100%":{left:"100%"}}),MB=og("div",{target:"e15u147w2"})("position:relative;overflow:hidden;width:100%;max-width:160px;height:",OR.borderWidthFocus,";background-color:var(\n\t\t--wp-components-color-gray-300,\n\t\t",FM.gray[300],"\n\t);border-radius:",OR.radiusBlockUi,";"),RB=og("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",OR.radiusBlockUi,";background-color:",FM.theme.accent,";",(({isIndeterminate:e,value:t})=>IM(e?{animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:AB,width:"50%"}:{width:`${t}%`,transition:"width 0.4s ease-in-out"},"","")),";"),BB=og("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const LB=(0,Ir.forwardRef)((function(e,t){const{className:n,value:r,...o}=e,i=!Number.isFinite(r);return(0,Ir.createElement)(MB,{className:n},(0,Ir.createElement)(RB,{isIndeterminate:i,value:r}),(0,Ir.createElement)(BB,{max:100,value:r,"aria-label":Un("Loading …"),ref:t,...o}))}));function DB(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 zB(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function FB(...e){return(0,Ir.useCallback)(zB(...e),e)}function jB(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,Ir.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,Ir.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,Ir.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,Ir.useMemo)((()=>a),Object.values(a));return(0,Ir.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,Ir.useContext)(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},VB(r,...t)]}function VB(...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,Ir.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function HB(e){const t=(0,Ir.useRef)(e);return(0,Ir.useEffect)((()=>{t.current=e})),(0,Ir.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function $B({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,Ir.useState)(e),[r]=n,o=(0,Ir.useRef)(r),i=HB(t);return(0,Ir.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=HB(n);return[a,(0,Ir.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const UB=(0,Ir.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=Ir.Children.toArray(n),i=o.find(GB);if(i){const e=i.props.children,n=o.map((t=>t===i?Ir.Children.count(e)>1?Ir.Children.only(null):(0,Ir.isValidElement)(e)?e.props.children:null:t));return(0,Ir.createElement)(WB,Xh({},r,{ref:t}),(0,Ir.isValidElement)(e)?(0,Ir.cloneElement)(e,void 0,n):null)}return(0,Ir.createElement)(WB,Xh({},r,{ref:t}),n)}));UB.displayName="Slot";const WB=(0,Ir.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,Ir.isValidElement)(n)?(0,Ir.cloneElement)(n,{...qB(r,n.props),ref:zB(t,n.ref)}):Ir.Children.count(n)>1?Ir.Children.only(null):null}));WB.displayName="SlotClone";const KB=({children:e})=>(0,Ir.createElement)(Ir.Fragment,null,e);function GB(e){return(0,Ir.isValidElement)(e)&&e.type===KB}function qB(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 YB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,Ir.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?UB:t;return(0,Ir.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,Ir.createElement)(i,Xh({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function XB(e,t){e&&(0,df.flushSync)((()=>e.dispatchEvent(t)))}function ZB(e){const t=e+"CollectionProvider",[n,r]=jB(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=Ir.useRef(null),i=Ir.useRef(new Map).current;return Ir.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},s=e+"CollectionSlot",l=Ir.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=FB(t,i(s,n).collectionRef);return Ir.createElement(UB,{ref:o},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=Ir.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=Ir.useRef(null),s=FB(t,a),l=i(c,n);return Ir.useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),Ir.createElement(UB,{[u]:"",ref:s},r)}));return[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),r=Ir.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 QB=(0,Ir.createContext)(void 0);function JB(e){const t=(0,Ir.useContext)(QB);return e||t||"ltr"}const eL="dismissableLayer.update",tL="dismissableLayer.pointerDownOutside",nL="dismissableLayer.focusOutside";let rL;const oL=(0,Ir.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iL=(0,Ir.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=(0,Ir.useContext)(oL),[d,f]=(0,Ir.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,Ir.useState)({}),h=FB(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=HB(e),r=(0,Ir.useRef)(!1),o=(0,Ir.useRef)((()=>{}));return(0,Ir.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){sL(tL,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=HB(e),r=(0,Ir.useRef)(!1);return(0,Ir.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){sL(nL,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=HB(e);(0,Ir.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,Ir.useEffect)((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(rL=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),aL(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=rL)}}),[d,p,r,u]),(0,Ir.useEffect)((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),aL())}),[d,u]),(0,Ir.useEffect)((()=>{const e=()=>m({});return document.addEventListener(eL,e),()=>document.removeEventListener(eL,e)}),[]),(0,Ir.createElement)(YB.div,Xh({},c,{ref:h,style:{pointerEvents:k?w?"auto":"none":void 0,...e.style},onFocusCapture:DB(e.onFocusCapture,E.onFocusCapture),onBlurCapture:DB(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:DB(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function aL(){const e=new CustomEvent(eL);document.dispatchEvent(e)}function sL(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?XB(o,i):o.dispatchEvent(i)}let lL=0;function cL(){(0,Ir.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:uL()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:uL()),lL++,()=>{1===lL&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),lL--}}),[])}function uL(){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 dL="focusScope.autoFocusOnMount",fL="focusScope.autoFocusOnUnmount",pL={bubbles:!1,cancelable:!0},mL=(0,Ir.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=(0,Ir.useState)(null),c=HB(o),u=HB(i),d=(0,Ir.useRef)(null),f=FB(t,(e=>l(e))),p=(0,Ir.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Ir.useEffect)((()=>{if(r){function e(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:bL(d.current,{select:!0})}function t(e){!p.paused&&s&&(s.contains(e.relatedTarget)||bL(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,Ir.useEffect)((()=>{if(s){yL.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(dL,pL);s.addEventListener(dL,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bL(r,{select:t}),document.activeElement!==n)return}((e=hL(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&bL(s))}return()=>{s.removeEventListener(dL,c),setTimeout((()=>{const e=new CustomEvent(fL,pL);s.addEventListener(fL,u),s.dispatchEvent(e),e.defaultPrevented||bL(null!=t?t:document.body,{select:!0}),s.removeEventListener(fL,u),yL.remove(p)}),0)}}var e}),[s,c,u,p]);const m=(0,Ir.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=hL(e),n=gL(t,e),r=gL(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&bL(i,{select:!0})):(e.preventDefault(),n&&bL(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return(0,Ir.createElement)(YB.div,Xh({tabIndex:-1},a,{ref:f,onKeyDown:m}))}));function hL(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 gL(e,t){for(const n of e)if(!vL(n,{upTo:t}))return n}function vL(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 bL(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 yL=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=kL(e,t),e.unshift(t)},remove(t){var n;e=kL(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function kL(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const wL=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?Ir.useLayoutEffect:()=>{},_L=Tr["useId".toString()]||(()=>{});let EL=0;function xL(e){const[t,n]=Ir.useState(_L());return wL((()=>{e||n((e=>null!=e?e:String(EL++)))}),[e]),e||(t?`radix-${t}`:"")}function SL(e){return e.split("-")[0]}function CL(e){return e.split("-")[1]}function IL(e){return["top","bottom"].includes(SL(e))?"x":"y"}function TL(e){return"y"===e?"height":"width"}function PL(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=IL(t),l=TL(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(SL(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(CL(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function NL(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 OL(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function AL(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=NL(p),h=s[f?"floating"===d?"reference":"floating":d],g=OL(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=OL(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 ML=Math.min,RL=Math.max;function BL(e,t,n){return RL(e,ML(t,n))}const LL=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=NL(r),u={x:o,y:i},d=IL(a),f=CL(a),p=TL(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=BL(_,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}}}}),DL={left:"right",right:"left",bottom:"top",top:"bottom"};function zL(e){return e.replace(/left|right|bottom|top/g,(e=>DL[e]))}function FL(e,t,n){void 0===n&&(n=!1);const r=CL(e),o=IL(e),i=TL(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=zL(a)),{main:a,cross:zL(a)}}const jL={start:"end",end:"start"};function VL(e){return e.replace(/start|end/g,(e=>jL[e]))}const HL=["top","right","bottom","left"],$L=(HL.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=SL(r),g=d||(h!==a&&p?function(e){const t=zL(e);return[VL(e),t,VL(t)]}(a):[zL(a)]),v=[a,...g],b=await AL(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}=FL(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 UL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function WL(e){return HL.some((t=>e[t]>=0))}const KL=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=UL(await AL(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:WL(t)}}}case"escaped":{const t=UL(await AL(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:WL(t)}}}default:return{}}}}},GL=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=SL(n),s=CL(n),l="x"===IL(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 qL(e){return"x"===e?"y":"x"}const YL=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 AL(t,l),d=IL(SL(o)),f=qL(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=BL(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=BL(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}}}}},XL=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=IL(o),f=qL(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(SL(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}}}},ZL=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 AL(t,s),c=SL(n),u=CL(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=RL(l.left,0),m=RL(l.right,0),h=RL(l.top,0),g=RL(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:RL(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:RL(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 QL(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function JL(e){if(null==e)return window;if(!QL(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function eD(e){return JL(e).getComputedStyle(e)}function tD(e){return QL(e)?"":e?(e.nodeName||"").toLowerCase():""}function nD(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function rD(e){return e instanceof JL(e).HTMLElement}function oD(e){return e instanceof JL(e).Element}function iD(e){return"undefined"!=typeof ShadowRoot&&(e instanceof JL(e).ShadowRoot||e instanceof ShadowRoot)}function aD(e){const{overflow:t,overflowX:n,overflowY:r}=eD(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function sD(e){return["table","td","th"].includes(tD(e))}function lD(e){const t=/firefox/i.test(nD()),n=eD(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 cD(){return!/^((?!chrome|android).)*safari/i.test(nD())}const uD=Math.min,dD=Math.max,fD=Math.round;function pD(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&&rD(e)&&(l=e.offsetWidth>0&&fD(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&fD(s.height)/e.offsetHeight||1);const u=oD(e)?JL(e):window,d=!cD()&&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 mD(e){return(t=e,(t instanceof JL(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function hD(e){return oD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gD(e){return pD(mD(e)).left+hD(e).scrollLeft}function vD(e,t,n){const r=rD(t),o=mD(t),i=pD(e,r&&function(e){const t=pD(e);return fD(t.width)!==e.offsetWidth||fD(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"!==tD(t)||aD(o))&&(a=hD(t)),rD(t)){const e=pD(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=gD(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function bD(e){return"html"===tD(e)?e:e.assignedSlot||e.parentNode||(iD(e)?e.host:null)||mD(e)}function yD(e){return rD(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function kD(e){const t=JL(e);let n=yD(e);for(;n&&sD(n)&&"static"===getComputedStyle(n).position;)n=yD(n);return n&&("html"===tD(n)||"body"===tD(n)&&"static"===getComputedStyle(n).position&&!lD(n))?t:n||function(e){let t=bD(e);for(iD(t)&&(t=t.host);rD(t)&&!["html","body"].includes(tD(t));){if(lD(t))return t;t=t.parentNode}return null}(e)||t}function wD(e){if(rD(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=pD(e);return{width:t.width,height:t.height}}function _D(e){const t=bD(e);return["html","body","#document"].includes(tD(t))?e.ownerDocument.body:rD(t)&&aD(t)?t:_D(t)}function ED(e,t){var n;void 0===t&&(t=[]);const r=_D(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=JL(r),a=o?[i].concat(i.visualViewport||[],aD(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ED(a))}function xD(e,t,n){return"viewport"===t?OL(function(e,t){const n=JL(e),r=mD(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=cD();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):oD(t)?function(e,t){const n=pD(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):OL(function(e){var t;const n=mD(e),r=hD(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=dD(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=dD(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+gD(e);const l=-r.scrollTop;return"rtl"===eD(o||n).direction&&(s+=dD(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(mD(e)))}function SD(e){const t=ED(e),n=["absolute","fixed"].includes(eD(e).position)&&rD(e)?kD(e):e;return oD(n)?t.filter((e=>oD(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&iD(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==tD(e))):[]}const CD={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?SD(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=xD(t,n,o);return e.top=dD(r.top,e.top),e.right=uD(r.right,e.right),e.bottom=uD(r.bottom,e.bottom),e.left=dD(r.left,e.left),e}),xD(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=rD(n),i=mD(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==tD(n)||aD(i))&&(a=hD(n)),rD(n))){const e=pD(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:oD,getDimensions:wD,getOffsetParent:kD,getDocumentElement:mD,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:vD(t,kD(n),r),floating:{...wD(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eD(e).direction};function ID(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?[...oD(e)?ED(e):[],...ED(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})),oD(e)&&!s&&f.observe(e),f.observe(t)}let p=s?pD(e):null;return s&&function t(){const r=pD(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 TD=(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}=PL(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}=PL(l,d,s))),n=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:CD,...n});var PD="undefined"!=typeof document?Ir.useLayoutEffect:Ir.useEffect;function ND(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(!ND(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)&&!ND(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function OD(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=Ir.useRef(null),a=Ir.useRef(null),s=function(e){const t=Ir.useRef(e);return PD((()=>{t.current=e})),t}(o),l=Ir.useRef(null),[c,u]=Ir.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=Ir.useState(t);ND(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=Ir.useCallback((()=>{i.current&&a.current&&TD(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&df.flushSync((()=>{u(e)}))}))}),[d,n,r]);PD((()=>{m.current&&p()}),[p]);const m=Ir.useRef(!1);PD((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=Ir.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=Ir.useCallback((e=>{i.current=e,h()}),[h]),v=Ir.useCallback((e=>{a.current=e,h()}),[h]),b=Ir.useMemo((()=>({reference:i,floating:a})),[]);return Ir.useMemo((()=>({...c,update:p,refs:b,reference:g,floating:v})),[c,p,b,g,v])}const AD=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?LL({element:t.current,padding:n}).fn(e):{}:t?LL({element:t,padding:n}).fn(e):{};var r}}};const MD="Popper",[RD,BD]=jB(MD),[LD,DD]=RD(MD),zD=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,Ir.useState)(null);return(0,Ir.createElement)(LD,{scope:t,anchor:r,onAnchorChange:o},n)},FD="PopperAnchor",jD=(0,Ir.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=DD(FD,n),a=(0,Ir.useRef)(null),s=FB(t,a);return(0,Ir.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,Ir.createElement)(YB.div,Xh({},o,{ref:s}))})),VD="PopperContent",[HD,$D]=RD(VD),[UD,WD]=RD(VD,{hasParent:!1,positionUpdateFns:new Set}),KD=(0,Ir.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=DD(VD,u),[x,S]=(0,Ir.useState)(null),C=FB(t,(e=>S(e))),[I,T]=(0,Ir.useState)(null),P=function(e){const[t,n]=(0,Ir.useState)(void 0);return wL((()=>{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(qD),altBoundary:B},{reference:D,floating:z,strategy:F,x:j,y:V,placement:H,middlewareData:$,update:U}=OD({strategy:"fixed",placement:A,whileElementsMounted:ID,middleware:[YD(),GL({mainAxis:f+O,alignmentAxis:m}),k?YL({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?XL():void 0,...L}):void 0,I?AD({element:I,padding:h}):void 0,k?$L({...L}):void 0,ZL({...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`)}}),XD({arrowWidth:N,arrowHeight:O}),y?KL({strategy:"referenceHidden"}):void 0].filter(GD)});wL((()=>{D(E.anchor)}),[D,E.anchor]);const W=null!==j&&null!==V,[K,G]=ZD(H),q=HB(w);wL((()=>{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,Ir.useState)();wL((()=>{x&&J(window.getComputedStyle(x).zIndex)}),[x]);const{hasParent:ee,positionUpdateFns:te}=WD(VD,u),ne=!ee;(0,Ir.useLayoutEffect)((()=>{if(!ne)return te.add(U),()=>{te.delete(U)}}),[ne,te,U]),wL((()=>{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,Ir.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,Ir.createElement)(HD,{scope:u,placedSide:K,onArrowChange:T,arrowX:Y,arrowY:X,shouldHideArrow:Z},ne?(0,Ir.createElement)(UD,{scope:u,hasParent:!0,positionUpdateFns:te},(0,Ir.createElement)(YB.div,re)):(0,Ir.createElement)(YB.div,re)))}));function GD(e){return void 0!==e}function qD(e){return null!==e}const YD=()=>({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`),{}}}),XD=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]=ZD(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 ZD(e){const[t,n="center"]=e.split("-");return[t,n]}const QD=zD,JD=jD,ez=KD,tz=(0,Ir.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?df.createPortal((0,Ir.createElement)(YB.div,Xh({},o,{ref:t})),r):null}));const nz=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,Ir.useState)(),r=(0,Ir.useRef)({}),o=(0,Ir.useRef)(e),i=(0,Ir.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return(0,Ir.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,Ir.useEffect)((()=>{const e=rz(r.current);i.current="mounted"===s?e:"none"}),[s]),wL((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=rz(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]),wL((()=>{if(t){const e=e=>{const n=rz(r.current).includes(e.animationName);e.target===t&&n&&(0,df.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=rz(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,Ir.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):Ir.Children.only(n),i=FB(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,Ir.cloneElement)(o,{ref:i}):null};function rz(e){return(null==e?void 0:e.animationName)||"none"}nz.displayName="Presence";const oz="rovingFocusGroup.onEntryFocus",iz={bubbles:!1,cancelable:!0},az="RovingFocusGroup",[sz,lz,cz]=ZB(az),[uz,dz]=jB(az,[cz]),[fz,pz]=uz(az),mz=(0,Ir.forwardRef)(((e,t)=>(0,Ir.createElement)(sz.Provider,{scope:e.__scopeRovingFocusGroup},(0,Ir.createElement)(sz.Slot,{scope:e.__scopeRovingFocusGroup},(0,Ir.createElement)(hz,Xh({},e,{ref:t})))))),hz=(0,Ir.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,Ir.useRef)(null),f=FB(t,d),p=JB(i),[m=null,h]=$B({prop:a,defaultProp:s,onChange:l}),[g,v]=(0,Ir.useState)(!1),b=HB(c),y=lz(n),k=(0,Ir.useRef)(!1),[w,_]=(0,Ir.useState)(0);return(0,Ir.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(oz,b),()=>e.removeEventListener(oz,b)}),[b]),(0,Ir.createElement)(fz,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:(0,Ir.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,Ir.useCallback)((()=>v(!0)),[]),onFocusableItemAdd:(0,Ir.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,Ir.useCallback)((()=>_((e=>e-1))),[])},(0,Ir.createElement)(YB.div,Xh({tabIndex:g||0===w?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:DB(e.onMouseDown,(()=>{k.current=!0})),onFocus:DB(e.onFocus,(e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(oz,iz);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));yz(r)}}k.current=!1})),onBlur:DB(e.onBlur,(()=>v(!1)))})))})),gz="RovingFocusGroupItem",vz=(0,Ir.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=xL(),l=i||s,c=pz(gz,n),u=c.currentTabStopId===l,d=lz(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return(0,Ir.useEffect)((()=>{if(r)return f(),()=>p()}),[r,f,p]),(0,Ir.createElement)(sz.ItemSlot,{scope:n,id:l,focusable:r,active:o},(0,Ir.createElement)(YB.span,Xh({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:DB(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:DB(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:DB(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:bz[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((()=>yz(i)))}var n,r}))})))})),bz={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yz(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const kz=mz,wz=vz;var _z=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ez=new WeakMap,xz=new WeakMap,Sz={},Cz=0,Iz=function(e){return e&&(e.host||Iz(e.parentNode))},Tz=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Iz(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]);Sz[n]||(Sz[n]=new WeakMap);var i=Sz[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=(Ez.get(e)||0)+1,c=(i.get(e)||0)+1;Ez.set(e,l),i.set(e,c),a.push(e),1===l&&o&&xz.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),Cz++,function(){a.forEach((function(e){var t=Ez.get(e)-1,o=i.get(e)-1;Ez.set(e,t),i.set(e,o),t||(xz.has(e)||e.removeAttribute(r),xz.delete(e)),o||e.removeAttribute(n)})),--Cz||(Ez=new WeakMap,Ez=new WeakMap,xz=new WeakMap,Sz={})}},Pz=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||_z(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Tz(r,o,n,"aria-hidden")):function(){return null}},Nz="right-scroll-bar-position",Oz="width-before-scroll-bar";function Az(e,t){return function(e,t){var n=(0,Ir.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 Mz(e){return e}function Rz(e,t){void 0===t&&(t=Mz);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 Bz=function(e){void 0===e&&(e={});var t=Rz(null);return t.options=gn({async:!0,ssr:!1},e),t}(),Lz=function(){},Dz=Ir.forwardRef((function(e,t){var n=Ir.useRef(null),r=Ir.useState({onScrollCapture:Lz,onWheelCapture:Lz,onTouchMoveCapture:Lz}),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=vn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=f,k=Az([n,t]),w=gn(gn({},b),o);return Ir.createElement(Ir.Fragment,null,u&&Ir.createElement(y,{sideCar:Bz,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?Ir.cloneElement(Ir.Children.only(s),gn(gn({},w),{ref:k})):Ir.createElement(v,gn({},w,{className:l,ref:k}),s))}));Dz.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Dz.classNames={fullWidth:Oz,zeroRight:Nz};var zz,Fz=function(e){var t=e.sideCar,n=vn(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 Ir.createElement(r,gn({},n))};Fz.isSideCarExport=!0;function jz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zz||o.nc;return t&&e.setAttribute("nonce",t),e}var Vz=function(){var e=0,t=null;return{add:function(n){0==e&&(t=jz())&&(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)}}},Hz=function(){var e=function(){var e=Vz();return function(t,n){Ir.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}},$z={left:0,top:0,right:0,gap:0},Uz=function(e){return parseInt(e||"",10)||0},Wz=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return $z;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[Uz(n),Uz(r),Uz(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])}},Kz=Hz(),Gz=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(Nz," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Oz," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Nz," .").concat(Nz," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Oz," .").concat(Oz," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},qz=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=Ir.useMemo((function(){return Wz(o)}),[o]);return Ir.createElement(Kz,{styles:Gz(i,!t,o,n?"":"!important")})},Yz=!1;if("undefined"!=typeof window)try{var Xz=Object.defineProperty({},"passive",{get:function(){return Yz=!0,!0}});window.addEventListener("test",Xz,Xz),window.removeEventListener("test",Xz,Xz)}catch(e){Yz=!1}var Zz=!!Yz&&{passive:!1},Qz=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])},Jz=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eF(e,n)){var r=tF(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},eF=function(e,t){return"v"===e?function(e){return Qz(e,"overflowY")}(t):function(e){return Qz(e,"overflowX")}(t)},tF=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)},nF=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rF=function(e){return[e.deltaX,e.deltaY]},oF=function(e){return e&&"current"in e?e.current:e},iF=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},aF=0,sF=[];const lF=(cF=function(e){var t=Ir.useRef([]),n=Ir.useRef([0,0]),r=Ir.useRef(),o=Ir.useState(aF++)[0],i=Ir.useState((function(){return Hz()}))[0],a=Ir.useRef(e);Ir.useEffect((function(){a.current=e}),[e]),Ir.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=bn([e.lockRef.current],(e.shards||[]).map(oF),!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=Ir.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=nF(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=Jz(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Jz(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=tF(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&eF(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=Ir.useCallback((function(e){var n=e;if(sF.length&&sF[sF.length-1]===i){var r="deltaY"in n?rF(n):nF(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(oF).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=Ir.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=Ir.useCallback((function(e){n.current=nF(e),r.current=void 0}),[]),d=Ir.useCallback((function(t){c(t.type,rF(t),t.target,s(t,e.lockRef.current))}),[]),f=Ir.useCallback((function(t){c(t.type,nF(t),t.target,s(t,e.lockRef.current))}),[]);Ir.useEffect((function(){return sF.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Zz),document.addEventListener("touchmove",l,Zz),document.addEventListener("touchstart",u,Zz),function(){sF=sF.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,Zz),document.removeEventListener("touchmove",l,Zz),document.removeEventListener("touchstart",u,Zz)}}),[]);var p=e.removeScrollBar,m=e.inert;return Ir.createElement(Ir.Fragment,null,m?Ir.createElement(i,{styles:iF(o)}):null,p?Ir.createElement(qz,{gapMode:"margin"}):null)},Bz.useMedium(cF),Fz);var cF,uF=Ir.forwardRef((function(e,t){return Ir.createElement(Dz,gn({},e,{ref:t,sideCar:lF}))}));uF.classNames=Dz.classNames;const dF=uF,fF=["Enter"," "],pF=["ArrowUp","PageDown","End"],mF=["ArrowDown","PageUp","Home",...pF],hF={ltr:[...fF,"ArrowRight"],rtl:[...fF,"ArrowLeft"]},gF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vF="Menu",[bF,yF,kF]=ZB(vF),[wF,_F]=jB(vF,[kF,BD,dz]),EF=BD(),xF=dz(),[SF,CF]=wF(vF),[IF,TF]=wF(vF),PF=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=EF(t),[l,c]=(0,Ir.useState)(null),u=(0,Ir.useRef)(!1),d=HB(i),f=JB(o);return(0,Ir.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,Ir.createElement)(QD,s,(0,Ir.createElement)(SF,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},(0,Ir.createElement)(IF,{scope:t,onClose:(0,Ir.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a},r)))},NF=(0,Ir.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=EF(n);return(0,Ir.createElement)(JD,Xh({},o,r,{ref:t}))})),OF="MenuPortal",[AF,MF]=wF(OF,{forceMount:void 0}),RF=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=CF(OF,t);return(0,Ir.createElement)(AF,{scope:t,forceMount:n},(0,Ir.createElement)(nz,{present:n||i.open},(0,Ir.createElement)(tz,{asChild:!0,container:o},r)))},BF="MenuContent",[LF,DF]=wF(BF),zF=(0,Ir.forwardRef)(((e,t)=>{const n=MF(BF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=CF(BF,e.__scopeMenu),a=TF(BF,e.__scopeMenu);return(0,Ir.createElement)(bF.Provider,{scope:e.__scopeMenu},(0,Ir.createElement)(nz,{present:r||i.open},(0,Ir.createElement)(bF.Slot,{scope:e.__scopeMenu},a.modal?(0,Ir.createElement)(FF,Xh({},o,{ref:t})):(0,Ir.createElement)(jF,Xh({},o,{ref:t})))))})),FF=(0,Ir.forwardRef)(((e,t)=>{const n=CF(BF,e.__scopeMenu),r=(0,Ir.useRef)(null),o=FB(t,r);return(0,Ir.useEffect)((()=>{const e=r.current;if(e)return Pz(e)}),[]),(0,Ir.createElement)(VF,Xh({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:DB(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),jF=(0,Ir.forwardRef)(((e,t)=>{const n=CF(BF,e.__scopeMenu);return(0,Ir.createElement)(VF,Xh({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),VF=(0,Ir.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=CF(BF,n),v=TF(BF,n),b=EF(n),y=xF(n),k=yF(n),[w,_]=(0,Ir.useState)(null),E=(0,Ir.useRef)(null),x=FB(t,E,g.onContentChange),S=(0,Ir.useRef)(0),C=(0,Ir.useRef)(""),I=(0,Ir.useRef)(0),T=(0,Ir.useRef)(null),P=(0,Ir.useRef)("right"),N=(0,Ir.useRef)(0),O=m?dF:Ir.Fragment,A=m?{as:UB,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,Ir.useEffect)((()=>()=>window.clearTimeout(S.current)),[]),cL();const R=(0,Ir.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,Ir.createElement)(LF,{scope:n,searchRef:C,onItemEnter:(0,Ir.useCallback)((e=>{R(e)&&e.preventDefault()}),[R]),onItemLeave:(0,Ir.useCallback)((e=>{var t;R(e)||(null===(t=E.current)||void 0===t||t.focus(),_(null))}),[R]),onTriggerLeave:(0,Ir.useCallback)((e=>{R(e)&&e.preventDefault()}),[R]),pointerGraceTimerRef:I,onPointerGraceIntentChange:(0,Ir.useCallback)((e=>{T.current=e}),[])},(0,Ir.createElement)(O,A,(0,Ir.createElement)(mL,{asChild:!0,trapped:o,onMountAutoFocus:DB(i,(e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,Ir.createElement)(iL,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p},(0,Ir.createElement)(kz,Xh({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:_,onEntryFocus:DB(l,(e=>{v.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,Ir.createElement)(ez,Xh({role:"menu","aria-orientation":"vertical","data-state":mj(g.open),"data-radix-menu-content":"",dir:v.dir},b,h,{ref:x,style:{outline:"none",...h.style},onKeyDown:DB(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(!mF.includes(e.key))return;e.preventDefault();const i=k().filter((e=>!e.disabled)),a=i.map((e=>e.ref.current));pF.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:DB(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),C.current="")})),onPointerMove:DB(e.onPointerMove,vj((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}})))})))))))})),HF=(0,Ir.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Ir.createElement)(YB.div,Xh({role:"group"},r,{ref:t}))})),$F=(0,Ir.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Ir.createElement)(YB.div,Xh({},r,{ref:t}))})),UF="MenuItem",WF="menu.itemSelect",KF=(0,Ir.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,Ir.useRef)(null),a=TF(UF,e.__scopeMenu),s=DF(UF,e.__scopeMenu),l=FB(t,i),c=(0,Ir.useRef)(!1);return(0,Ir.createElement)(GF,Xh({},o,{ref:l,disabled:n,onClick:DB(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(WF,{bubbles:!0,cancelable:!0});e.addEventListener(WF,(e=>null==r?void 0:r(e)),{once:!0}),XB(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:DB(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:DB(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||fF.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),GF=(0,Ir.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=DF(UF,n),s=xF(n),l=(0,Ir.useRef)(null),c=FB(t,l),[u,d]=(0,Ir.useState)(!1),[f,p]=(0,Ir.useState)("");return(0,Ir.useEffect)((()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,Ir.createElement)(bF.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:f},(0,Ir.createElement)(wz,Xh({asChild:!0},s,{focusable:!r}),(0,Ir.createElement)(YB.div,Xh({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:DB(e.onPointerMove,vj((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:DB(e.onPointerLeave,vj((e=>a.onItemLeave(e)))),onFocus:DB(e.onFocus,(()=>d(!0))),onBlur:DB(e.onBlur,(()=>d(!1)))}))))})),qF=(0,Ir.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,Ir.createElement)(nj,{scope:e.__scopeMenu,checked:n},(0,Ir.createElement)(KF,Xh({role:"menuitemcheckbox","aria-checked":hj(n)?"mixed":n},o,{ref:t,"data-state":gj(n),onSelect:DB(o.onSelect,(()=>null==r?void 0:r(!!hj(n)||!n)),{checkForDefaultPrevented:!1})})))})),YF="MenuRadioGroup",[XF,ZF]=wF(YF,{value:void 0,onValueChange:()=>{}}),QF=(0,Ir.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=HB(r);return(0,Ir.createElement)(XF,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,Ir.createElement)(HF,Xh({},o,{ref:t})))})),JF="MenuRadioItem",ej=(0,Ir.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=ZF(JF,e.__scopeMenu),i=n===o.value;return(0,Ir.createElement)(nj,{scope:e.__scopeMenu,checked:i},(0,Ir.createElement)(KF,Xh({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":gj(i),onSelect:DB(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),tj="MenuItemIndicator",[nj,rj]=wF(tj,{checked:!1}),oj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=rj(tj,n);return(0,Ir.createElement)(nz,{present:r||hj(i.checked)||!0===i.checked},(0,Ir.createElement)(YB.span,Xh({},o,{ref:t,"data-state":gj(i.checked)})))})),ij=(0,Ir.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Ir.createElement)(YB.div,Xh({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),aj="MenuSub",[sj,lj]=wF(aj),cj=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=CF(aj,t),a=EF(t),[s,l]=(0,Ir.useState)(null),[c,u]=(0,Ir.useState)(null),d=HB(o);return(0,Ir.useEffect)((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),(0,Ir.createElement)(QD,a,(0,Ir.createElement)(SF,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u},(0,Ir.createElement)(sj,{scope:t,contentId:xL(),triggerId:xL(),trigger:s,onTriggerChange:l},n)))},uj="MenuSubTrigger",dj=(0,Ir.forwardRef)(((e,t)=>{const n=CF(uj,e.__scopeMenu),r=TF(uj,e.__scopeMenu),o=lj(uj,e.__scopeMenu),i=DF(uj,e.__scopeMenu),a=(0,Ir.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=(0,Ir.useCallback)((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return(0,Ir.useEffect)((()=>u),[u]),(0,Ir.useEffect)((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,Ir.createElement)(NF,Xh({asChild:!0},c),(0,Ir.createElement)(GF,Xh({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":mj(n.open)},e,{ref:zB(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:DB(e.onPointerMove,vj((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:DB(e.onPointerLeave,vj((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:DB(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||hF[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),fj="MenuSubContent",pj=(0,Ir.forwardRef)(((e,t)=>{const n=MF(BF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=CF(BF,e.__scopeMenu),a=TF(BF,e.__scopeMenu),s=lj(fj,e.__scopeMenu),l=(0,Ir.useRef)(null),c=FB(t,l);return(0,Ir.createElement)(bF.Provider,{scope:e.__scopeMenu},(0,Ir.createElement)(nz,{present:r||i.open},(0,Ir.createElement)(bF.Slot,{scope:e.__scopeMenu},(0,Ir.createElement)(VF,Xh({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:DB(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:DB(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:DB(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=gF[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function mj(e){return e?"open":"closed"}function hj(e){return"indeterminate"===e}function gj(e){return hj(e)?"indeterminate":e?"checked":"unchecked"}function vj(e){return t=>"mouse"===t.pointerType?e(t):void 0}const bj=PF,yj=NF,kj=RF,wj=zF,_j=HF,Ej=$F,xj=KF,Sj=qF,Cj=QF,Ij=ej,Tj=oj,Pj=ij,Nj=cj,Oj=dj,Aj=pj,Mj="DropdownMenu",[Rj,Bj]=jB(Mj,[_F]),Lj=_F(),[Dj,zj]=Rj(Mj),Fj=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=Lj(t),c=(0,Ir.useRef)(null),[u=!1,d]=$B({prop:o,defaultProp:i,onChange:a});return(0,Ir.createElement)(Dj,{scope:t,triggerId:xL(),triggerRef:c,contentId:xL(),open:u,onOpenChange:d,onOpenToggle:(0,Ir.useCallback)((()=>d((e=>!e))),[d]),modal:s},(0,Ir.createElement)(bj,Xh({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},jj="DropdownMenuTrigger",Vj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=zj(jj,n),a=Lj(n);return(0,Ir.createElement)(yj,Xh({asChild:!0},a),(0,Ir.createElement)(YB.button,Xh({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:zB(t,i.triggerRef),onPointerDown:DB(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:DB(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),Hj=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Lj(t);return(0,Ir.createElement)(kj,Xh({},r,n))},$j="DropdownMenuContent",Uj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zj($j,n),i=Lj(n),a=(0,Ir.useRef)(!1);return(0,Ir.createElement)(wj,Xh({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:DB(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:DB(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)"}}))})),Wj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(_j,Xh({},o,r,{ref:t}))})),Kj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Ej,Xh({},o,r,{ref:t}))})),Gj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(xj,Xh({},o,r,{ref:t}))})),qj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Sj,Xh({},o,r,{ref:t}))})),Yj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Cj,Xh({},o,r,{ref:t}))})),Xj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Ij,Xh({},o,r,{ref:t}))})),Zj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Tj,Xh({},o,r,{ref:t}))})),Qj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Pj,Xh({},o,r,{ref:t}))})),Jj=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Oj,Xh({},o,r,{ref:t}))})),eV=(0,Ir.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Lj(n);return(0,Ir.createElement)(Aj,Xh({},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)"}}))})),tV=Fj,nV=Vj,rV=Hj,oV=Uj,iV=Wj,aV=Kj,sV=Gj,lV=qj,cV=Yj,uV=Xj,dV=Zj,fV=Qj,pV=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=Lj(t),[s=!1,l]=$B({prop:r,defaultProp:i,onChange:o});return(0,Ir.createElement)(Nj,Xh({},a,{open:s,onOpenChange:l}),n)},mV=Jj,hV=eV,gV=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),vV=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M5 11.25h14v1.5H5z"}));const bV="2px",yV="400ms",kV="cubic-bezier( 0.16, 1, 0.3, 1 )",wV=qM(2),_V=qM(7),EV=qM(2),xV=qM(2.5),SV=FM.ui.borderDisabled,CV=FM.gray[900],IV=`0 0 0 ${OR.borderWidth} ${SV}, ${OR.popoverShadow}`,TV=`0 0 0 ${OR.borderWidth} ${CV}`,PV=TM({"0%":{opacity:0,transform:`translateY(${bV})`},"100%":{opacity:1,transform:"translateY(0)"}}),NV=TM({"0%":{opacity:0,transform:`translateX(-${bV})`},"100%":{opacity:1,transform:"translateX(0)"}}),OV=TM({"0%":{opacity:0,transform:`translateY(-${bV})`},"100%":{opacity:1,transform:"translateY(0)"}}),AV=TM({"0%":{opacity:0,transform:`translateX(${bV})`},"100%":{opacity:1,transform:"translateX(0)"}}),MV=e=>IM("min-width:220px;background-color:",FM.ui.background,";border-radius:",OR.radiusBlockUi,";padding:",wV,";box-shadow:","toolbar"===e?TV:IV,";animation-duration:",yV,";animation-timing-function:",kV,";will-change:transform,opacity;&[data-side='top']{animation-name:",OV,";}&[data-side='right']{animation-name:",AV,";}&[data-side='bottom']{animation-name:",PV,";}&[data-side='left']{animation-name:",NV,";}@media ( prefers-reduced-motion ){animation-duration:0s;}",""),RV=IM("width:",_V,";display:inline-flex;align-items:center;justify-content:center;margin-inline-start:calc( -1 * ",EV," );margin-top:",qM(-2),";margin-bottom:",qM(-2),";",""),BV=IM("width:max-content;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;padding-inline-start:",qM(6),";margin-top:",qM(-2),";margin-bottom:",qM(-2),";opacity:0.6;[data-highlighted]>&,[data-state='open']>&,[data-disabled]>&{opacity:1;}",""),LV=og("span",{target:"e1kdzosf11"})(RV,";"),DV=og("span",{target:"e1kdzosf10"})(BV,";"),zV=IM("all:unset;font-size:",yB("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",FM.gray[900],";border-radius:",OR.radiusBlockUi,";display:flex;align-items:center;padding:",qM(2)," ",xV," ",qM(2)," ",EV,";position:relative;user-select:none;outline:none;&[data-disabled]{opacity:0.5;pointer-events:none;}&[data-highlighted]{background-color:",FM.gray[100],";outline:2px solid transparent;}svg{fill:currentColor;}&:not( :has( ",LV," ) ){padding-inline-start:",_V,";}",""),FV=og(oV,{target:"e1kdzosf9"})((e=>MV(e.variant)),";"),jV=og(hV,{target:"e1kdzosf8"})((e=>MV(e.variant)),";"),VV=og(sV,{target:"e1kdzosf7"})(zV,";"),HV=og(lV,{target:"e1kdzosf6"})(zV,";"),$V=og(uV,{target:"e1kdzosf5"})(zV,";"),UV=og(mV,{target:"e1kdzosf4"})(zV," &[data-state='open']{background-color:",FM.gray[100],";}"),WV=og(aV,{target:"e1kdzosf3"})("box-sizing:border-box;display:flex;align-items:center;min-height:",qM(8),";padding:",qM(2)," ",xV," ",qM(2)," ",_V,";color:",FM.gray[700],";font-size:11px;line-height:1.4;font-weight:500;text-transform:uppercase;"),KV=og(fV,{target:"e1kdzosf2"})("height:",OR.borderWidth,";background-color:",(e=>"toolbar"===e.variant?CV:SV),";margin:",qM(2)," calc( -1 * ",wV," );"),GV=og(dV,{target:"e1kdzosf1"})({name:"pl708y",styles:"display:inline-flex;align-items:center;justify-content:center"}),qV=og(rm,{target:"e1kdzosf0"})(KM({transform:`scaleX(1) translateX(${qM(2)})`},{transform:`scaleX(-1) translateX(${qM(2)})`}),";"),YV=(0,Ir.createContext)({variant:void 0,portalContainer:null}),XV=Wh((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}=$h(e,"DropdownMenu"),f=MS(tC),p=f.ref?.current,m=(0,Ir.useMemo)((()=>({variant:d,portalContainer:p})),[d,p]);return(0,Ir.createElement)(tV,{defaultOpen:t,open:n,onOpenChange:r,modal:o,dir:Gn()?"rtl":"ltr"},(0,Ir.createElement)(nV,{asChild:!0},u),(0,Ir.createElement)(rV,{container:p},(0,Ir.createElement)(FV,{side:i,align:s,sideOffset:a,alignOffset:l,loop:!0,variant:d},(0,Ir.createElement)(YV.Provider,{value:m},c))))}),"DropdownMenu"),ZV=(0,Ir.forwardRef)((({children:e,prefix:t,suffix:n,...r},o)=>(0,Ir.createElement)(VV,{...r,ref:o},t&&(0,Ir.createElement)(LV,null,t),e,n&&(0,Ir.createElement)(DV,null,n)))),QV=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)((e=>(0,Ir.createElement)("circle",e)),{cx:12,cy:12,r:3,fill:"currentColor"})),JV=og("div",{target:"e1krjpvb0"})("");function eH(e){!function(e){for(const[t,n]of Object.entries(e))void 0===n||kr(n).isValid()||"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im(`wp.components.Theme: "${n}" is not a valid color value for the '${t}' prop.`)}(e);const t={...tH(e.accent),...nH(e.background)};return function(e){for(const t of Object.values(e))t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im("wp.components.Theme: "+t)}(function(e,t){const n=e.background||FM.white,r=e.accent||"#3858e9",o=t.foreground||FM.gray[900],i=t.gray||FM.gray;return{accent:kr(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:kr(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:kr(n).contrast(i[600])>=3&&kr(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}(e,t)),{colors:t}}function tH(e){return e?{accent:e,accentDarker10:kr(e).darken(.1).toHex(),accentDarker20:kr(e).darken(.2).toHex(),accentInverted:rH(e)}:{}}function nH(e){if(!e)return{};const t=rH(e);return{background:e,foreground:t,foregroundInverted:rH(t),gray:oH(e,t)}}function rH(e){return kr(e).isDark()?FM.white:FM.gray[900]}function oH(e,t){const n=kr(e).isDark()?"lighten":"darken",r=Math.abs(kr(e).toHsl().l-kr(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)]=kr(e)[n](i/.884*r).toHex()})),o}_r([Er,Cr]);const iH=function({accent:e,background:t,className:n,...r}){const o=Hh(),i=(0,Ir.useMemo)((()=>o(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[IM("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]})(eH({accent:e,background:t})),n)),[e,t,n,o]);return(0,Ir.createElement)(JV,{className:i,...r})},{lock:aH,unlock:sH}=Ve("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),lH={};function cH(e){return PS((0,Ir.useContext)(AS).fills,{sync:!0}).get(e)}aH(lH,{CustomSelectControl:NB,__experimentalPopoverLegacyPositionToPlacement:Yp,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...eC(t)}},ComponentsContext:sm,DropdownMenuV2:XV,DropdownMenuCheckboxItemV2:({children:e,checked:t=!1,suffix:n,...r})=>(0,Ir.createElement)(HV,{...r,checked:t},(0,Ir.createElement)(LV,null,(0,Ir.createElement)(GV,null,("indeterminate"===t||!0===t)&&(0,Ir.createElement)(rm,{icon:"indeterminate"===t?vV:CM,size:24}))),e,n&&(0,Ir.createElement)(DV,null,n)),DropdownMenuGroupV2:e=>(0,Ir.createElement)(iV,{...e}),DropdownMenuItemV2:ZV,DropdownMenuLabelV2:e=>(0,Ir.createElement)(WV,{...e}),DropdownMenuRadioGroupV2:e=>(0,Ir.createElement)(cV,{...e}),DropdownMenuRadioItemV2:({children:e,suffix:t,...n})=>(0,Ir.createElement)($V,{...n},(0,Ir.createElement)(LV,null,(0,Ir.createElement)(GV,null,(0,Ir.createElement)(rm,{icon:QV,size:22}))),e,t&&(0,Ir.createElement)(DV,null,t)),DropdownMenuSeparatorV2:e=>{const{variant:t}=(0,Ir.useContext)(YV);return(0,Ir.createElement)(KV,{...e,variant:t})},DropdownSubMenuV2:({defaultOpen:e,open:t,onOpenChange:n,disabled:r,textValue:o,children:i,trigger:a})=>{const{variant:s,portalContainer:l}=(0,Ir.useContext)(YV);return(0,Ir.createElement)(pV,{defaultOpen:e,open:t,onOpenChange:n},(0,Ir.createElement)(UV,{disabled:r,textValue:o},a),(0,Ir.createElement)(rV,{container:l},(0,Ir.createElement)(jV,{loop:!0,sideOffset:16,alignOffset:-8,variant:s},i)))},DropdownSubMenuTriggerV2:({prefix:e,suffix:t=(0,Ir.createElement)(qV,{icon:gV,size:24}),children:n})=>(0,Ir.createElement)(Ir.Fragment,null,e&&(0,Ir.createElement)(LV,null,e),n,t&&(0,Ir.createElement)(DV,null,t)),ProgressBar:LB,Theme:iH});const{ComponentsContext:uH}=qO(lH);function dH({group:e="default",...t}){const n=(0,Ir.useContext)(Bg),r=(0,Ir.useContext)(uH),o=(0,Ir.useMemo)((()=>({forwardedContext:[[Bg.Provider,{value:n}],[uH.Provider,{value:r}]]})),[n,r]),i=zC[e]?.Slot,a=cH(i?.__unstableName);if(!i)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im(`Unknown BlockControls group "${e}" provided.`),null;if(!a?.length)return null;const s=(0,Ir.createElement)(i,{...t,bubblesVirtually:!0,fillProps:o});return"default"===e?s:(0,Ir.createElement)(wC,null,s)}const fH=rA;fH.Slot=dH;const pH=fH;const mH=(0,Ir.forwardRef)((function(e,t){return(0,Ir.useContext)(Bg)?(0,Ir.createElement)(Lg,{ref:t,...e.toggleProps},(t=>(0,Ir.createElement)(yC,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,Ir.createElement)(yC,{...e})}));const hH=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=Gl(e);if(!Ir.Children.count(n))return null;const s=`components-menu-group-label-${a}`,l=$l()(r,"components-menu-group",{"has-hidden-separator":i});return(0,Ir.createElement)("div",{className:l},o&&(0,Ir.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},o),(0,Ir.createElement)("div",{role:"group","aria-labelledby":o?s:void 0},n))};const gH=(0,Ir.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=$l()("components-menu-item__button",o),r&&(n=(0,Ir.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,Ir.createElement)("span",{className:"components-menu-item__item"},n),(0,Ir.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,Ir.cloneElement)(i,{className:$l()("components-menu-items__item-icon",{"has-icon-right":"right"===a})})),(0,Ir.createElement)(ug,{ref:t,"aria-checked":"menuitemcheckbox"===c||"menuitemradio"===c?l:void 0,role:c,icon:"left"===a?i:void 0,className:o,...d},(0,Ir.createElement)("span",{className:"components-menu-item__item"},n),!u&&(0,Ir.createElement)(Gp,{className:"components-menu-item__shortcut",shortcut:s}),!u&&i&&"right"===a&&(0,Ir.createElement)(rm,{icon:i}),u)})),vH=gH,bH={type:"default"},yH=(0,Ir.createContext)(bH),kH=yH.Provider;function wH(){return(0,Ir.useContext)(yH)}const _H=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),EH=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),xH=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),SH=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),CH=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),IH=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),TH=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),PH=(0,Ir.createContext)(null);function NH(){const e=(0,Ir.useRef)(!1);return iv((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function OH(){const e=NH(),[t,n]=(0,Ir.useState)(0),r=(0,Ir.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,Ir.useCallback)((()=>Bb.postRender(r)),[r]),t]}const AH=e=>!e.isLayoutDirty&&e.willUpdate(!1);function MH(){const e=new Set,t=new WeakMap,n=()=>e.forEach(AH);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 RH=e=>!0===e,BH=({children:e,id:t,inherit:n=!0})=>{const r=(0,Ir.useContext)(bv),o=(0,Ir.useContext)(PH),[i,a]=OH(),s=(0,Ir.useRef)(null),l=r.id||o;null===s.current&&((e=>RH(!0===e)||"id"===e)(n)&&l&&(t=t?l+"-"+t:l),s.current={id:t,group:RH(n)&&r.group||MH()});const c=(0,Ir.useMemo)((()=>({...s.current,forceRender:i})),[a]);return Ir.createElement(bv.Provider,{value:c},e)},LH=({__nextHasNoMarginBottom:e=!1,id:t,label:n,hideLabelFromVision:r=!1,help:o,className:i,children:a})=>(0,Ir.createElement)(wB,{className:$l()("components-base-control",i)},(0,Ir.createElement)(_B,{className:"components-base-control__field",__nextHasNoMarginBottom:e},n&&t&&(r?(0,Ir.createElement)(sg,{as:"label",htmlFor:t},n):(0,Ir.createElement)(xB,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,Ir.createElement)(sg,{as:"label"},n):(0,Ir.createElement)(LH.VisualLabel,null,n)),a),!!o&&(0,Ir.createElement)(CB,{id:t?t+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:e},o));LH.VisualLabel=({className:e,children:t,...n})=>(0,Ir.createElement)(IB,{...n,className:$l()("components-base-control__label",e)},t);const DH=LH;const zH=e=>{const t=IM("border-color:",FM.ui.border,";","");return IM(e&&t," &:hover{border-color:",FM.ui.borderHover,";}&:focus-within{border-color:",FM.ui.borderFocus,";box-shadow:",OR.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},FH=e=>IM("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),jH={name:"7whenc",styles:"display:flex;width:100%"},VH=og("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function HH(e,t,n){return Jc(t,[n.store]),_u(e,n,"items","setItems"),e}function $H(e,t,n){return _u(e=HH(e,t,n),n,"activeId","setActiveId"),_u(e,n,"includesBaseElement"),_u(e,n,"virtualFocus"),_u(e,n,"orientation"),_u(e,n,"rtl"),_u(e,n,"focusLoop"),_u(e,n,"focusWrap"),_u(e,n,"focusShift"),e}function UH(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 WH(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=wc(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:wc(null==n?void 0:n.renderedItems,[])},a=uu({renderedItems:i.renderedItems}),s=uu(i,e.store),l=()=>{const e=UH(a.getState().renderedItems);a.setState("renderedItems",e),s.setState("renderedItems",e)};du(s,(()=>hu(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 Cc(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=dc(dc({},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 fc(dc({},s),{registerItem:u,renderItem:e=>gc(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 KH(e){const t=[];for(const n of e)t.push(...n);return t}function GH(e){return e.slice().reverse()}var qH={id:null};function YH(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function XH(e,t){return e.filter((e=>e.rowId===t))}function ZH(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 QH(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function JH(e,t,n){const r=QH(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?YH(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 e$(e){const t=ZH(e),n=QH(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(fc(dc({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function t$(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=WH(e),o=wc(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=uu(fc(dc({},r.getState()),{activeId:o,baseElement:wc(null==n?void 0:n.baseElement,null),includesBaseElement:wc(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:wc(null==n?void 0:n.moves,0),orientation:wc(e.orientation,null==n?void 0:n.orientation,"both"),rtl:wc(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:wc(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:wc(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:wc(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:wc(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);du(i,(()=>mu(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=YH(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?GH(e):e;if(null==s)return null==(o=YH(f))?void 0:o.id;const p=f.find((e=>e.id===s));if(!p)return null==(a=YH(f))?void 0:a.id;const m=!!p.rowId,h=f.indexOf(p),g=f.slice(h+1),v=XH(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?[qH]:[],...e.slice(0,r)]}(k&&!n?f:XH(f,p.rowId),s,n),t=YH(e,s);return null==t?void 0:t.id}if(k){const e=YH(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const w=YH(v,s);return!w&&n?null:null==w?void 0:w.id};return fc(dc(dc({},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=YH(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=YH(GH(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=YH(n))?void 0:t.rowId)&&o;return a(GH(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=e$(KH(JH(ZH(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=e$(GH(KH(JH(ZH(n),t,s))));return a(l,"vertical",o,e)}})}function n$(e={}){var t,n=pc(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=t$(fc(dc({},n),{focusLoop:wc(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=uu(fc(dc({},o.getState()),{value:wc(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return fc(dc(dc({},o),i),{setValue:e=>i.setState("value",e)})}function r$(e={}){const[t,n]=Eu(n$,e);return function(e,t,n){return _u(e=$H(e,t,n),n,"value","setValue"),e}(t,n,e)}var o$=Fu([xg],[Sg]),i$=o$.useContext,a$=(o$.useScopedContext,o$.useProviderContext),s$=(o$.ContextProvider,o$.ScopedContextProvider);function l$(e){return e.some((e=>!!e.rowId))}function c$(e,t,n){return Yc((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;const i=e.getState(),a=null==(o=bg(e,i.activeId))?void 0:o.element;if(!a)return;if(!function(e,t){if(!zc(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(Bc(n)){if(function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}(e))return!1;const n=l$(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=rc(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 u$=zu((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=rc(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=Eg();bc(n=n||s,!1);const l=(0,Ir.useRef)(null),c=function(e){const[t,n]=(0,Ir.useState)(!1),r=(0,Ir.useCallback)((()=>n(!0)),[]),o=e.useState((t=>bg(e,t.activeId)));return(0,Ir.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,Ir.useEffect)((()=>{var e;if(!n)return;if(!u)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=bg(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(dc({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[n,u,r,o]),Gc((()=>{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&&Fc(o,{relatedTarget:e}),dd(e)?function(e,t){const n=new FocusEvent("focus",t),r=e.dispatchEvent(n),o=fc(dc({},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");Gc((()=>{var e;if(!n)return;if(!r)return;if(!f)return;const t=l.current;if(l.current=null,!t)return;Fc(t,{relatedTarget:(null==(e=bg(n,d))?void 0:e.element)||Ic(t)})}),[n,d,f,r]);const p=c$(n,a.onKeyDownCapture,l),m=c$(n,a.onKeyUpCapture,l),h=a.onFocusCapture,g=Yc((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[yg];return delete e[yg],t}(e.currentTarget);zc(e)&&o&&(e.stopPropagation(),l.current=r)})),v=a.onFocus,b=Yc((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?zc(e)&&!kg(n,t)&&queueMicrotask(c):zc(e)&&n.setActiveId(null)})),y=a.onBlurCapture,k=Yc((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=bg(n,o))?void 0:t.element,a=e.relatedTarget,s=kg(n,a),c=l.current;if(l.current=null,zc(e)&&s)a===i?c&&c!==a&&Fc(c,e):i&&Fc(i,e),e.stopPropagation();else{!kg(n,e.target)&&i&&Fc(i,e)}})),w=a.onKeyDown,_=tu(i),E=Yc((e=>{var t;if(null==w||w(e),e.defaultPrevented)return;if(!n)return;if(!zc(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=bg(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=l$(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))}(KH(GH(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=nu(a,(e=>(0,Ru.jsx)(xg,{value:n,children:e})),[n]);const x=n.useState((e=>{var t;if(n&&r&&e.virtualFocus)return null==(t=bg(n,e.activeId))?void 0:t.id}));a=nc(tc({"aria-activedescendant":x},a),{ref:Xc(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=Cd(tc({focusable:S},a))}));Bu((e=>Du("div",u$(e))));var d$=zu((e=>{var t=e,{store:n}=t,r=rc(t,["store"]);const o=a$();return bc(n=n||o,!1),r=nu(r,(e=>(0,Ru.jsx)(s$,{value:n,children:e})),[n]),r=tc({role:"radiogroup"},r),r=u$(tc({store:n},r))})),f$=Bu((e=>Du("div",d$(e))));const p$=(0,Ir.createContext)({}),m$=p$;function h$(e){const t=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>{t.current=e}),[e]),t.current}function g$(e){const t=(0,Ir.useRef)(!1),n=h$(e);let r,o;return(0,Ir.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 v$=(0,Ir.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:a,...s},l){const c=Gl(v$,"toggle-group-control-as-radio-group"),u=a||c,{value:d,defaultValue:f}=g$(i),p=r?e=>{r(null!=e?e:void 0)}:void 0,m=r$({defaultValue:f,value:d,setValue:p}),h=m.useState("value"),g=m.setValue,v=(0,Ir.useMemo)((()=>({baseId:u,isBlock:!t,size:o,value:h,setValue:g})),[u,t,o,h,g]);return(0,Ir.createElement)(m$.Provider,{value:v},(0,Ir.createElement)(f$,{store:m,"aria-label":n,render:(0,Ir.createElement)(ag,null),...s,id:u,ref:l},e))}));const b$=(0,Ir.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:a,...s},l){const c=Gl(b$,"toggle-group-control-as-button-group"),u=a||c,{value:d,defaultValue:f}=g$(i),[p,m]=Ug({defaultValue:f,value:d,onChange:r}),h=(0,Ir.useMemo)((()=>({baseId:u,value:p,setValue:m,isBlock:!t,isDeselectable:!0,size:o})),[u,p,m,t,o]);return(0,Ir.createElement)(m$.Provider,{value:h},(0,Ir.createElement)(ag,{"aria-label":n,...s,ref:l,role:"group"},e))}));const y$=Uh((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}=$h(e,"ToggleGroupControl"),h=Gl(y$,"toggle-group-control"),g=Hh(),v=(0,Ir.useMemo)((()=>g((({isBlock:e,isDeselectable:t,size:n})=>IM("background:",FM.ui.background,";border:1px solid transparent;border-radius:",OR.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;",FH(n)," ",!t&&zH(e),";",""))({isBlock:i,isDeselectable:a,size:d}),i&&jH,r)),[r,g,i,a,d]),b=a?b$:v$;return(0,Ir.createElement)(DH,{help:c,__nextHasNoMarginBottom:n},!l&&(0,Ir.createElement)(VH,null,(0,Ir.createElement)(DH.VisualLabel,null,s)),(0,Ir.createElement)(b,{...m,className:v,isAdaptiveWidth:o,label:s,onChange:u,ref:t,size:d,value:f},(0,Ir.createElement)(BH,{id:h},p)))}),"ToggleGroupControl"),k$=y$;var w$=zu((e=>{var t=e,{store:n,name:r,value:o,checked:i}=t,a=rc(t,["store","name","value","checked"]);const s=i$();n=n||s;const l=Zc(a.id),c=(0,Ir.useRef)(null),u=wu(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,Ir.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)}(Qc(c,a.as||"input"),a.type),p=kc(a),[m,h]=eu();(0,Ir.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=Yc((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=Yc((e=>{null==v||v(e),e.defaultPrevented||f||g(e)})),y=a.onFocus,k=Yc((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=nc(tc({id:l,role:f?void 0:"radio",type:f?"radio":void 0,"aria-checked":u},a),{ref:Xc(c,a.ref),onChange:g,onClick:b,onFocus:k}),a=Ng(tc({store:n,clickOnEnter:!f},a)),tc({name:f?r:void 0,value:f?o:void 0,checked:u},a)})),_$=Lu((e=>Du("input",w$(e))));function E$(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 x$=og("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),S$={name:"82a6rk",styles:"flex:1"},C$=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>IM("align-items:center;appearance:none;background:transparent;border:none;border-radius:",OR.controlBorderRadius,";color:",FM.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 ",OR.transitionDurationFast," linear,color ",OR.transitionDurationFast," linear,font-weight 60ms linear;",E$("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",OR.toggleGroupControlBackgroundColor,";}",e&&T$," ",t&&N$({size:r})," ",n&&I$,";",""),I$=IM("color:",FM.white,";&:active{background:transparent;}",""),T$=IM("color:",FM.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",FM.white,",0 0 0 ",OR.borderWidthFocus," ",FM.theme.accent,";outline:2px solid transparent;}",""),P$=og("div",{target:"et6ln9s0"})("display:flex;font-size:",OR.fontSize,";line-height:1;"),N$=({size:e="default"})=>IM("color:",FM.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[e],";padding-left:0;padding-right:0;",""),O$=IM("background:",FM.gray[900],";border-radius:",OR.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:A$,LabelView:M$}=g,R$={duration:0},B$=({showTooltip:e,text:t,children:n})=>e&&t?(0,Ir.createElement)(Jp,{text:t,placement:"top"},n):(0,Ir.createElement)(Ir.Fragment,null,n);const L$=Uh((function e(t,n){const r=tv(),o=(0,Ir.useContext)(p$),i=$h({...t,id:Gl(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=Hh(),b=(0,Ir.useMemo)((()=>v(a&&S$)),[v,a]),y=(0,Ir.useMemo)((()=>v(C$({isDeselectable:s,isIcon:u,isPressed:g,size:l}),c)),[v,s,u,g,l,c]),k=(0,Ir.useMemo)((()=>v(O$)),[v]),w={...h,className:y,"data-value":d,ref:n};return(0,Ir.createElement)(M$,{className:b},(0,Ir.createElement)(B$,{showTooltip:p,text:h["aria-label"]},s?(0,Ir.createElement)("button",{...w,onFocus:m,"aria-pressed":g,type:"button",onClick:()=>{s&&g?o.setValue(void 0):o.setValue(d)}},(0,Ir.createElement)(A$,null,f)):(0,Ir.createElement)(_$,{render:(0,Ir.createElement)("button",{...w,onFocus:e=>{m?.(e),e.defaultPrevented||o.setValue(d)}}),value:d},(0,Ir.createElement)(A$,null,f))),g?(0,Ir.createElement)(ex.div,{className:k,transition:r?R$:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"}):null)}),"ToggleGroupControlOptionBase"),D$=L$;const z$=(0,Ir.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,Ir.createElement)(D$,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,Ir.createElement)(rm,{icon:n}))}));const F$=Uh((function(e,t){const n=function(e){return vR({isBlock:!0,...$h(e,"FlexBlock")})}(e);return(0,Ir.createElement)(ag,{...n,ref:t})}),"FlexBlock"),j$=()=>{};const V$=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=j$,...a}=e,s=$l()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,Ir.createElement)("span",{className:s},(0,Ir.createElement)("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o,...a}),(0,Ir.createElement)("span",{className:"components-form-toggle__track"}),(0,Ir.createElement)("span",{className:"components-form-toggle__thumb"}))},H$={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"}},$$={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 U$(e){return"string"==typeof e?[e]:Ir.Children.toArray(e).filter((e=>(0,Ir.isValidElement)(e)))}function W$(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=$h(e,"HStack"),a=function(e,t="row"){if(!kR(e))return{};const n="column"===t?$$:H$;return e in n?n[e]:{align:e}}(t,r),s=U$(n).map(((e,t)=>{if(qh(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,Ir.createElement)(bR,{isBlock:!0,key:r,...n.props})}return e}));return fR({children:s,direction:r,justify:"center",...a,...i,gap:o})}const K$=Uh((function(e,t){const n=W$(e);return(0,Ir.createElement)(ag,{...n,ref:t})}),"HStack");const G$=function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:a,disabled:s}){const l=`inspector-toggle-control-${Gl(e)}`,c=Hh()("components-toggle-control",i,!t&&IM({marginBottom:qM(3)},"",""));let u,d;return o&&("function"==typeof o?void 0!==r&&(d=o(r)):d=o,d&&(u=l+"__help")),(0,Ir.createElement)(DH,{id:l,help:d,className:c,__nextHasNoMarginBottom:!0},(0,Ir.createElement)(K$,{justify:"flex-start",spacing:3},(0,Ir.createElement)(V$,{id:l,checked:r,onChange:function(e){a(e.target.checked)},"aria-describedby":u,disabled:s}),(0,Ir.createElement)(F$,{as:"label",htmlFor:l,className:"components-toggle-control__label"},n)))},q$={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 Y$(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function X$(e,t=q$,n,r){let o="";return t?.[n]?.spacingStyles?.length&&r&&t[n].spacingStyles.forEach((t=>{o+=`${Y$(e,t.selector.trim())} { `,o+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||r}`)).join("; "),o+="; }"})),o}function Z$(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=An(Un("Max %s wide"),t)),i.test(n)&&(o.wide=An(Un("Max %s wide"),n)),o}const Q$=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})),J$=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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,Ir.createElement)(em,{d:"m4.5 7.5v9h1.5v-9z"}),(0,Ir.createElement)(em,{d:"m18 7.5v9h1.5v-9z"})),eU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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,Ir.createElement)(em,{d:"m7.5 6h9v-1.5h-9z"}),(0,Ir.createElement)(em,{d:"m7.5 19.5h9v-1.5h-9z"})),tU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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,Ir.createElement)(em,{d:"m16.5 6h-9v-1.5h9z"})),nU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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,Ir.createElement)(em,{d:"m18 16.5v-9h1.5v9z"})),rU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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,Ir.createElement)(em,{d:"m16.5 19.5h-9v-1.5h9z",style:{fill:"#1e1e1e"}})),oU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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,Ir.createElement)(em,{d:"m4.5 16.5v-9h1.5v9z"})),iU=["top","right","bottom","left"],aU={top:void 0,right:void 0,bottom:void 0,left:void 0},sU={custom:Q$,axial:Q$,horizontal:J$,vertical:eU,top:tU,right:nU,bottom:rU,left:oU},lU={default:Un("Spacing control"),top:Un("Top"),bottom:Un("Bottom"),left:Un("Left"),right:Un("Right"),mixed:Un("Mixed"),vertical:Un("Vertical"),horizontal:Un("Horizontal"),axial:Un("Horizontal & vertical"),custom:Un("Custom")},cU={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function uU(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function dU(e,t){if(!e||uU(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 fU(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function pU(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 mU(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 hU(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=fU(n?.top)||t,o=fU(n?.left)||t;return r===o?r:`${r} ${o}`}const gU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),vU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),bU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),yU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),kU=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),wU={top:{icon:bU,title:Wn("Align top","Block vertical alignment setting")},center:{icon:vU,title:Wn("Align middle","Block vertical alignment setting")},bottom:{icon:gU,title:Wn("Align bottom","Block vertical alignment setting")},stretch:{icon:yU,title:Wn("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:kU,title:Wn("Space between","Block vertical alignment setting")}},_U=["top","center","bottom"];const EU=function({value:e,onChange:t,controls:n=_U,isCollapsed:r=!0,isToolbar:o}){const i=wU[e],a=wU.top,s=o?wC:mH,l=o?{isCollapsed:r}:{};return(0,Ir.createElement)(s,{icon:i?i.icon:a.icon,label:Wn("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...wU[n],isActive:e===n,role:r?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})),...l})},xU=e=>(0,Ir.createElement)(EU,{...e,isToolbar:!1}),SU={left:_H,center:EH,right:xH,"space-between":SH,stretch:CH};const CU=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?SU[r]:SU.left,l=[{name:"left",icon:_H,title:Un("Justify items left"),isActive:"left"===r,onClick:()=>a("left")},{name:"center",icon:EH,title:Un("Justify items center"),isActive:"center"===r,onClick:()=>a("center")},{name:"right",icon:xH,title:Un("Justify items right"),isActive:"right"===r,onClick:()=>a("right")},{name:"space-between",icon:SH,title:Un("Space between items"),isActive:"space-between"===r,onClick:()=>a("space-between")},{name:"stretch",icon:CH,title:Un("Stretch items"),isActive:"stretch"===r,onClick:()=>a("stretch")}],c=i?wC:mH,u=i?{isCollapsed:t}:{};return(0,Ir.createElement)(c,{icon:s,popoverProps:o,label:Un("Change items justification"),controls:l.filter((t=>e.includes(t.name))),...u})},IU=e=>(0,Ir.createElement)(CU,{...e,isToolbar:!1});function TU(e){let t=e;var n;"string"!=typeof e&&(t=null!==(n=e?.toString?.())&&void 0!==n?n:"");return t=t.replace(/['\u2019]/,""),Di(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 PU(e){return Array.isArray(e)?e.map(PU):e&&"object"==typeof e?{...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,PU(t)])))}:e}function NU(e,t,n){const r=function(e){return Array.isArray(e)?e:"number"==typeof e?[e.toString()]:[e]}(t),o=e?PU(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 OU=(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},AU=["color","border","dimensions","typography","spacing"],MU={"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},RU={"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"},BU=e=>RU[e]||e;function LU(e){const{name:t,clientId:n}=tA();return DC((r=>{if(AU.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let o=Xt("blockEditor.useSetting.before",void 0,e,n,t);if(void 0!==o)return o;const i=BU(e),a=[n,...r(XO).getBlockParents(n,!0)];for(const e of a){if(Vr(r(XO).getBlockName(e),"__experimentalSettings",!1)){var s;const n=r(XO).getBlockAttributes(e);if(o=null!==(s=OU(n,`settings.blocks.${t}.${i}`))&&void 0!==s?s:OU(n,`settings.${i}`),void 0!==o)break}}const l=r(XO).getSettings();if(void 0===o){var c;const e=`__experimentalFeatures.${i}`;o=null!==(c=OU(l,`__experimentalFeatures.blocks.${t}.${i}`))&&void 0!==c?c:OU(l,e)}var u,d;if(void 0!==o)return Mr[i]?null!==(u=null!==(d=o.custom)&&void 0!==d?d:o.theme)&&void 0!==u?u:o.default:o;const f=MU[i]?MU[i](l):void 0;return void 0!==f?f:"typography.dropCap"===i||void 0}),[t,n,e])}function DU(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,r=e?.color?.palette?.default,o=e?.color?.defaultPalette;return(0,Ir.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:Wn("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:Wn("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:Wn("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,r,o])}function zU(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,o=e?.color?.defaultGradients;return(0,Ir.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:Wn("Theme","Indicates this palette comes from the theme."),gradients:n}),o&&r&&r.length&&e.push({name:Wn("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&e.push({name:Wn("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,r,o])}const FU=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,FU(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function jU(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=OU(a,e);t&&(s={...s,attributes:NU(s.attributes,e,t)})}))})),s}function VU(e,t,n){const r=jr(e,t),o=r?.__experimentalSkipSerialization;return Array.isArray(o)?o.includes(n):o}function HU(e,t){const n=LU("typography.fontFamilies"),r=LU("typography.fontSizes"),o=LU("typography.customFontSize"),i=LU("typography.fontStyle"),a=LU("typography.fontWeight"),s=LU("typography.lineHeight"),l=LU("typography.textColumns"),c=LU("typography.textDecoration"),u=LU("typography.writingMode"),d=LU("typography.textTransform"),f=LU("typography.letterSpacing"),p=LU("spacing.padding"),m=LU("spacing.margin"),h=LU("spacing.blockGap"),g=LU("spacing.spacingSizes"),v=LU("spacing.units"),b=LU("dimensions.minHeight"),y=LU("layout"),k=LU("border.color"),w=LU("border.radius"),_=LU("border.style"),E=LU("border.width"),x=LU("color.custom"),S=LU("color.palette.custom"),C=LU("color.customDuotone"),I=LU("color.palette.theme"),T=LU("color.palette.default"),P=LU("color.defaultPalette"),N=LU("color.defaultDuotone"),O=LU("color.duotone.custom"),A=LU("color.duotone.theme"),M=LU("color.duotone.default"),R=LU("color.gradients.custom"),B=LU("color.gradients.theme"),L=LU("color.gradients.default"),D=LU("color.defaultGradients"),z=LU("color.customGradient"),F=LU("color.background"),j=LU("color.link"),V=LU("color.text"),H=LU("color.heading"),$=LU("color.button");return function(e,t,n){const{supportedStyles:r,supports:o}=DC((e=>({supportedStyles:qO(e(wi)).getSupportedStyles(t,n),supports:e(wi).getBlockType(t)?.supports})),[t,n]);return(0,Ir.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,Ir.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 $U={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},UU={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},WU={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},KU=["wrap","nowrap"],GU={name:"flex",label:Un("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:r=!0}=n;return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(gR,null,(0,Ir.createElement)(bR,null,(0,Ir.createElement)(XU,{layout:e,onChange:t})),(0,Ir.createElement)(bR,null,r&&(0,Ir.createElement)(QU,{layout:e,onChange:t}))),(0,Ir.createElement)(ZU,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=n;return(0,Ir.createElement)(pH,{group:"block",__experimentalShareWithChildBlocks:!0},(0,Ir.createElement)(XU,{layout:e,onChange:t,isToolbar:!0}),r&&(0,Ir.createElement)(qU,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=q$}){const{orientation:a="horizontal"}=t,s=n?.spacing?.blockGap&&!VU(r,"spacing","blockGap")?hU(n?.spacing?.blockGap,"0.5em"):void 0,l=$U[t.justifyContent],c=KU.includes(t.flexWrap)?t.flexWrap:"wrap",u=WU[t.verticalAlignment],d=UU[t.justifyContent]||UU.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=`${Y$(e)} {\n\t\t\t\t${p.join("; ")};\n\t\t\t}`),o&&s&&(f+=X$(e,i,"flex",s)),f},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function qU({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:r="horizontal"}=e,o="horizontal"===r?WU.center:WU.top,{verticalAlignment:i=o}=e,a=n=>{t({...e,verticalAlignment:n})};if(n)return(0,Ir.createElement)(xU,{onChange:a,value:i,controls:"horizontal"===r?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const s=[{value:"flex-start",label:Un("Align items top")},{value:"center",label:Un("Align items center")},{value:"flex-end",label:Un("Align items bottom")}];return(0,Ir.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,Ir.createElement)("legend",null,Un("Vertical alignment")),(0,Ir.createElement)("div",null,s.map(((e,t,n)=>(0,Ir.createElement)(ug,{key:e,label:n,icon:t,isPressed:i===e,onClick:()=>a(e)})))))}const YU={placement:"bottom-start"};function XU({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,Ir.createElement)(IU,{allowedControls:a,value:r,onChange:i,popoverProps:YU});const s=[{value:"left",icon:_H,label:Un("Justify items left")},{value:"center",icon:EH,label:Un("Justify items center")},{value:"right",icon:xH,label:Un("Justify items right")}];return"horizontal"===o?s.push({value:"space-between",icon:SH,label:Un("Space between items")}):s.push({value:"stretch",icon:CH,label:Un("Stretch items")}),(0,Ir.createElement)(k$,{__nextHasNoMarginBottom:!0,label:Un("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls"},s.map((({value:e,icon:t,label:n})=>(0,Ir.createElement)(z$,{key:e,value:e,icon:t,label:n}))))}function ZU({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,Ir.createElement)(G$,{__nextHasNoMarginBottom:!0,label:Un("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function QU({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:r,justifyContent:o}=e;return(0,Ir.createElement)(k$,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:Un("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,Ir.createElement)(z$,{icon:IH,value:"horizontal",label:Un("Horizontal")}),(0,Ir.createElement)(z$,{icon:TH,value:"vertical",label:Un("Vertical")}))}const JU={name:"default",label:Un("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:r,layoutDefinitions:o=q$}){const i=hU(t?.spacing?.blockGap);let a="";VU(n,"spacing","blockGap")||(i?.top?a=hU(i?.top):"string"==typeof i&&(a=hU(i)));let s="";return r&&a&&(s+=X$(e,o,"default",a)),s},getOrientation:()=>"vertical",getAlignments(e,t){const n=Z$(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}},eW="web"===nI.OS,tW={px:{value:"px",label:eW?"px":Un("Pixels (px)"),a11yLabel:Un("Pixels (px)"),step:1},"%":{value:"%",label:eW?"%":Un("Percentage (%)"),a11yLabel:Un("Percent (%)"),step:.1},em:{value:"em",label:eW?"em":Un("Relative to parent font size (em)"),a11yLabel:Wn("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:eW?"rem":Un("Relative to root font size (rem)"),a11yLabel:Wn("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:eW?"vw":Un("Viewport width (vw)"),a11yLabel:Un("Viewport width (vw)"),step:.1},vh:{value:"vh",label:eW?"vh":Un("Viewport height (vh)"),a11yLabel:Un("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:eW?"vmin":Un("Viewport smallest dimension (vmin)"),a11yLabel:Un("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:eW?"vmax":Un("Viewport largest dimension (vmax)"),a11yLabel:Un("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:eW?"ch":Un("Width of the zero (0) character (ch)"),a11yLabel:Un("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:eW?"ex":Un("x-height of the font (ex)"),a11yLabel:Un("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:eW?"cm":Un("Centimeters (cm)"),a11yLabel:Un("Centimeters (cm)"),step:.001},mm:{value:"mm",label:eW?"mm":Un("Millimeters (mm)"),a11yLabel:Un("Millimeters (mm)"),step:.1},in:{value:"in",label:eW?"in":Un("Inches (in)"),a11yLabel:Un("Inches (in)"),step:.001},pc:{value:"pc",label:eW?"pc":Un("Picas (pc)"),a11yLabel:Un("Picas (pc)"),step:1},pt:{value:"pt",label:eW?"pt":Un("Points (pt)"),a11yLabel:Un("Points (pt)"),step:1}},nW=Object.values(tW),rW=[tW.px,tW["%"],tW.em,tW.rem,tW.vw,tW.vh],oW=tW.px;function iW(e,t,n){return sW(t?`${null!=e?e:""}${t}`:e,n)}function aW(e){return Array.isArray(e)&&!!e.length}function sW(e,t=nW){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(aW(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=oW.value;return[r,a]}const lW=({units:e=nW,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]=sW(n[e.value]);r[t].default=o}})),r};const cW=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),uW=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M7 11.5h10V13H7z"}));const dW={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 fW(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function pW(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?-fW(t-e,n-t,r)+t:e>n?+fW(e-n,n-t,r)+n:e}function mW(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 hW(e,t,n){return(t=mW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gW(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 vW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gW(Object(n),!0).forEach((function(t){hW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const bW={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 yW(e){return e?e[0].toUpperCase()+e.slice(1):""}const kW=["enter","leave"];function wW(e,t="",n=!1){const r=bW[e],o=r&&r[t]||t;return"on"+yW(e)+yW(o)+(function(e=!1,t){return e&&!kW.includes(t)}(n,o)?"Capture":"")}const _W=["gotpointercapture","lostpointercapture"];function EW(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=_W.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function xW(e){return"touches"in e}function SW(e){return xW(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function CW(e){return xW(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function IW(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 TW(e){const t=CW(e);return xW(e)?t.identifier:t.pointerId}function PW(e){const t=CW(e);return[t.clientX,t.clientY]}function NW(e,...t){return"function"==typeof e?e(...t):e}function OW(){}function AW(...e){return 0===e.length?OW:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function MW(e,t){return Object.assign({},t,e||{})}class RW{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?NW(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);dW.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=NW(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[pW(t,i,a,r),pW(n,s,l,o)]}(t._bounds,t.offset,k),t.delta=dW.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=dW.sub(t.offset,f);const e=t.delta.map(Math.abs);dW.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(vW(vW(vW({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class BW extends RW{constructor(...e){super(...e),hW(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=dW.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=dW.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[SW(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 LW=e=>e,DW={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>vW(vW({},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 dW.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?dW.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||LW},threshold:e=>dW.toVector(e,0)};const zW=vW(vW({},DW),{},{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=>zW.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]]}}),FW={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 jW="undefined"!=typeof window&&window.document&&window.document.createElement;function VW(){return jW&&"ontouchstart"in window}const HW={isBrowser:jW,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:VW(),touchscreen:VW()||jW&&window.navigator.maxTouchPoints>1,pointer:jW&&"onpointerdown"in window,pointerLock:jW&&"exitPointerLock"in window.document},$W={mouse:0,touch:0,pen:8},UW=vW(vW({},zW),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&HW.pointerLock,HW.touch&&n?"touch":this.pointerLock?"mouse":HW.pointer&&!o?"pointer":HW.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,HW.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=dW.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(dW.toVector(e)),distance:this.transform(dW.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?vW(vW({},$W),e):$W,keyboardDisplacement:(e=10)=>e});vW(vW({},DW),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!HW.touch&&HW.gesture)return"gesture";if(HW.touch&&r)return"touch";if(HW.touchscreen){if(HW.pointer)return"pointer";if(HW.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=MW(NW(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=MW(NW(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 dW.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});vW(vW({},zW),{},{mouseOnly:(e=!0)=>e});const WW=vW(vW({},zW),{},{mouseOnly:(e=!0)=>e}),KW=new Map,GW=new Map;function qW(e){KW.set(e.key,e.engine),GW.set(e.key,e.resolver)}const YW={key:"drag",engine:class extends BW{constructor(...e){super(...e),hW(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=zW.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=TW(e),n._pointerActive=!0,this.computeValues(PW(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==SW(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=TW(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=PW(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=dW.sub(o,t._values),this.computeValues(o)),dW.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=TW(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=FW[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,dW.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in FW&&(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:UW},XW={key:"hover",engine:class extends BW{constructor(...e){super(...e),hW(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(PW(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=PW(e);t._movement=t._delta=dW.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:WW};function ZW(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 QW={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(HW.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},JW=["target","eventOptions","window","enabled","transform"];function eK(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]=eK(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class tK{constructor(e,t){hW(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=bW[e];return e+(n&&n[t]||t)}(t,n),s=vW(vW({},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 nK{constructor(){hW(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 rK{constructor(e){hW(this,"gestures",new Set),hW(this,"_targetEventStore",new tK(this)),hW(this,"gestureEventStores",{}),hW(this,"gestureTimeoutStores",{}),hW(this,"handlers",{}),hW(this,"config",{}),hW(this,"pointerIds",new Set),hW(this,"touchIds",new Set),hW(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&oK(e,"drag");t.wheel&&oK(e,"wheel");t.scroll&&oK(e,"scroll");t.move&&oK(e,"move");t.pinch&&oK(e,"pinch");t.hover&&oK(e,"hover")}(this,e)}setEventIds(e){return xW(e)?(this.touchIds=new Set(IW(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=ZW(r,JW);if(n.shared=eK({target:o,eventOptions:i,window:a,enabled:s,transform:l},QW),t){const e=GW.get(t);n[t]=eK(vW({shared:n.shared},c),e)}else for(const e in c){const t=GW.get(e);t&&(n[e]=eK(vW({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=iK(n,o.eventOptions,!!r);if(o.enabled){new(KW.get(t))(this,e,t).bind(i)}}const o=iK(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](vW(vW({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=AW(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=EW(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function oK(e,t){e.gestures.add(t),e.gestureEventStores[t]=new tK(e,t),e.gestureTimeoutStores[t]=new nK}const iK=(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:wW(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function aK(e,t={},n,r){const o=Ir.useMemo((()=>new rK(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),Ir.useEffect(o.effect.bind(o)),Ir.useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const sK=e=>e,lK={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},cK="CHANGE",uK="COMMIT",dK="CONTROL",fK="DRAG_END",pK="DRAG_START",mK="DRAG",hK="INVALIDATE",gK="PRESS_DOWN",vK="PRESS_ENTER",bK="PRESS_UP",yK="RESET";function kK(e=sK,t=lK,n){const[r,o]=(0,Ir.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case dK:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case bK:case gK:n.isDirty=!1;break;case pK:n.isDragging=!0;break;case fK:n.isDragging=!1;break;case cK:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case uK:n.value=t.payload.value,n.isDirty=!1;break;case yK:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case hK:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=lK){const{value:t}=e;return{...lK,...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(cK),u=a(yK),d=a(uK),f=l(pK),p=l(mK),m=l(fK),h=s(bK),g=s(gK),v=s(vK),b=(0,Ir.useRef)(r),y=(0,Ir.useRef)({value:t.value,onChangeHandler:n});return(0,Ir.useLayoutEffect)((()=>{b.current=r,y.current={value:t.value,onChangeHandler:n}})),(0,Ir.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,Ir.useLayoutEffect)((()=>{var e;t.value===b.current.value||b.current.isDirty||o({type:dK,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:hK,payload:{error:e,event:t}}),pressDown:g,pressEnter:v,pressUp:h,reset:u,state:r}}const wK=()=>{};const _K=(0,Ir.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isFocused:i,isPressEnterToChange:a=!1,onBlur:s=wK,onChange:l=wK,onDrag:c=wK,onDragEnd:u=wK,onDragStart:d=wK,onFocus:f=wK,onKeyDown:p=wK,onValidate:m=wK,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}=kK(v,{isDragEnabled:o,value:b,isPressEnterToChange:a},l),{value:M,isDragging:R,isDirty:B}=_,L=(0,Ir.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,Ir.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 qW(YW),aK({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,Ir.createElement)(nB,{...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})})),EK=_K,xK=()=>{};const SK=(0,Ir.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=xK,onValidate:m=xK,onKeyDown:h=xK,prefix:g,size:v="default",style:b,suffix:y,value:k,...w}=fB(e,"wp.components.InputControl","6.4"),[_,E]=(0,Ir.useState)(!1),x=function(e){const t=Gl(SK);return e||`inspector-input-control-${t}`}(c),S=$l()("components-input-control",i),C=function(e){const t=(0,Ir.useRef)(e.value),[n,r]=(0,Ir.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,Ir.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,Ir.createElement)(DH,{className:S,help:s,id:x,__nextHasNoMarginBottom:!0},(0,Ir.createElement)(hB,{__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,Ir.createElement)(EK,{...w,...I,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:x,isFocused:_,isPressEnterToChange:u,onKeyDown:h,onValidate:m,paddingInlineStart:g?qM(2):void 0,paddingInlineEnd:y?qM(2):void 0,ref:t,setIsFocused:E,size:v,stateReducer:r,...C})))}));var CK={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 IK=({hideHTMLArrows:e})=>e?CK:"",TK=og(SK,{target:"ep09it41"})(IK,";"),PK=og(ug,{target:"ep09it40"})("&&&&&{color:",FM.theme.accent,";}"),NK={smallSpinButtons:IM("width:",qM(5),";min-width:",qM(5),";height:",qM(5),";","")};function OK(e){const t=Number(e);return isNaN(t)?0:t}function AK(...e){return e.reduce(((e,t)=>e+OK(t)),0)}function MK(e,t,n){const r=OK(e);return Math.max(t,Math.min(r,n))}function RK(e=0,t=1/0,n=1/0,r=1){const o=OK(e),i=OK(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=MK(Math.round(o/i)*i,t,n);return a?OK(s.toFixed(a)):s}const BK=()=>{};const LK=(0,Ir.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=BK,...w}=fB(e,"wp.components.NumberControl","6.4");i&&sn("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const _=(0,Ir.useRef)(),E=$g([_,t]),x="any"===m,S=x?1:wR(m),C=wR(h)*S,I=RK(0,d,u,S),T=(e,t)=>x?""+Math.min(u,Math.max(d,wR(e))):""+RK(e,d,u,null!=t?t:S),P="number"===g?"off":void 0,N=$l()("components-number-control",r),O=Hh()("small"===b&&NK.smallSpinButtons),A=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&l,o=r?wR(p)*C:C;let i=function(e){const t=""===e;return!kR(e)||t}(e)?I:e;return"up"===t?i=AK(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=OK(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,Ir.createElement)(TK,{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!==bK&&r!==gK||(n.value=A(c,r===bK?"up":"down",a)),r===mK&&s){const[e,t]=i.delta,r=i.shiftKey&&l,a=r?wR(p)*C:C;let s,u;switch(o){case"n":u=t,s=-1;break;case"e":u=e,s=Gn()?-1:1;break;case"s":u=t,s=1;break;case"w":u=e,s=Gn()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const e=u*a*s;n.value=T(AK(c,e),r?a:void 0)}}if(r===vK||r===uK){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,Ir.createElement)(Ir.Fragment,null,y,(0,Ir.createElement)(ZM,{marginBottom:0,marginRight:2},(0,Ir.createElement)(K$,{spacing:1},(0,Ir.createElement)(PK,{className:O,icon:cW,isSmall:!0,"aria-hidden":"true","aria-label":Un("Increment"),tabIndex:-1,onClick:M("up")}),(0,Ir.createElement)(PK,{className:O,icon:uW,isSmall:!0,"aria-hidden":"true","aria-label":Un("Decrement"),tabIndex:-1,onClick:M("down")})))):y,onChange:k})})),DK=LK,zK=og(DK,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",aB,"{transition:box-shadow 0.1s linear;}}"),FK=({selectSize:e})=>({small:IM("box-sizing:border-box;padding:2px 1px;width:20px;color:",FM.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:IM("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",qM(2),";padding:",qM(1),";color:",FM.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),jK=og("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",FK,";color:",FM.gray[900],";}"),VK=og("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",FK,";",(({selectSize:e="default"})=>({small:IM("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",KM({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",FM.gray[100],";}&:focus{border:1px solid ",FM.ui.borderFocus,";box-shadow:inset 0 0 0 ",OR.borderWidth+" "+FM.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:IM("display:flex;justify-content:center;align-items:center;&:hover{color:",FM.ui.borderFocus,";box-shadow:inset 0 0 0 ",OR.borderWidth+" "+FM.ui.borderFocus,";outline:",OR.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",OR.borderWidthFocus+" "+FM.ui.borderFocus,";outline:",OR.borderWidthFocus," solid transparent;}","")}[e])),";&:not( :disabled ){cursor:pointer;}}");const HK=(0,Ir.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=rW,...a},s){if(!aW(i)||1===i?.length)return(0,Ir.createElement)(jK,{className:"components-unit-control__unit-label",selectSize:r},o);const l=$l()("components-unit-control__select",e);return(0,Ir.createElement)(VK,{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,Ir.createElement)("option",{value:e.value,key:e.value},e.label))))})),$K={initial:void 0,fallback:""};const UK=function(e,t=$K){const{initial:n,fallback:r}={...$K,...t},[o,i]=(0,Ir.useState)(e),a=kR(e);return(0,Ir.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]),[function(e=[],t){var n;return null!==(n=e.find(kR))&&void 0!==n?n:t}([e,o,n],r),(0,Ir.useCallback)((e=>{a||i(e)}),[a])]};new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g");function WK(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const KK=(0,Ir.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=rW,value:v,onFocus:b,...y}=fB(e,"wp.components.UnitControl","6.4");"unit"in e&&sn("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,Ir.useMemo)((()=>{const e=function(e,t,n=nW){const r=Array.isArray(n)?[...n]:[],[,o]=iW(e,t,nW);return o&&!r.some((e=>e.value===o))&&tW[o]&&r.unshift(tW[o]),r}(k,h,g),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=WK(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),WK(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[k,h,g]),[E,x]=iW(k,h,w),[S,C]=UK(1===w.length?w[0].value:h,{initial:x,fallback:""});(0,Ir.useEffect)((()=>{void 0!==x&&C(x)}),[x,C]);const I=$l()("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,Ir.useRef)(null),N=s?null:(0,Ir.createElement)(HK,{ref:P,"aria-label":Un("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,Ir.createElement)(zK,{...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]=sW(e,t),a=null!=o?o:n;let s=i||r;return!s&&aW(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})})),GK=KK,qK=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})),YK=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),XK="var:",ZK="|",QK="--",JK=(e,t)=>{let n=e;return t.forEach((e=>{n=n?.[e]})),n};function eG(e,t,n,r){const o=JK(e,n);return o?[{selector:t?.selector,key:r,value:nG(o)}]:[]}function tG(e,t,n,r,o=["top","right","bottom","left"]){const i=JK(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=nG(JK(i,[n]));return o&&e.push({selector:t?.selector,key:r?.individual.replace("%s",rG(n)),value:o}),e}),[]);a.push(...e)}return a}function nG(e){if("string"==typeof e&&e.startsWith(XK)){return`var(--wp--${e.slice(XK.length).split(ZK).map((e=>Di(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(QK)})`}return e}function rG(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function oG(e){try{return decodeURI(e)}catch(t){return e}}function iG(e){return(t,n)=>eG(t,n,e,function(e){const[t,...n]=e;return t.toLowerCase()+n.map(rG).join("")}(e))}function aG(e){return(t,n)=>["color","style","width"].flatMap((r=>iG(["border",e,r])(t,n)))}const sG={name:"radius",generate:(e,t)=>tG(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},lG={name:"background",generate:(e,t)=>eG(e,t,["color","background"],"backgroundColor")},cG={name:"gradient",generate:(e,t)=>eG(e,t,["color","gradient"],"background")},uG={name:"text",generate:(e,t)=>eG(e,t,["color","text"],"color")},dG={name:"minHeight",generate:(e,t)=>eG(e,t,["dimensions","minHeight"],"minHeight")},fG={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(oG(n.url))}' )`}),r||o.push({selector:t.selector,key:"backgroundSize",value:"cover"}),o):o}},pG={name:"shadow",generate:(e,t)=>eG(e,t,["shadow"],"boxShadow")},mG={name:"color",generate:(e,t,n=["outline","color"],r="outlineColor")=>eG(e,t,n,r)},hG={name:"offset",generate:(e,t,n=["outline","offset"],r="outlineOffset")=>eG(e,t,n,r)},gG={name:"style",generate:(e,t,n=["outline","style"],r="outlineStyle")=>eG(e,t,n,r)},vG={name:"width",generate:(e,t,n=["outline","width"],r="outlineWidth")=>eG(e,t,n,r)},bG={name:"padding",generate:(e,t)=>tG(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})},yG={name:"margin",generate:(e,t)=>tG(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},kG={name:"fontSize",generate:(e,t)=>eG(e,t,["typography","fontSize"],"fontSize")},wG={name:"fontStyle",generate:(e,t)=>eG(e,t,["typography","fontStyle"],"fontStyle")},_G={name:"fontWeight",generate:(e,t)=>eG(e,t,["typography","fontWeight"],"fontWeight")},EG={name:"fontFamily",generate:(e,t)=>eG(e,t,["typography","fontFamily"],"fontFamily")},xG={name:"letterSpacing",generate:(e,t)=>eG(e,t,["typography","letterSpacing"],"letterSpacing")},SG={name:"lineHeight",generate:(e,t)=>eG(e,t,["typography","lineHeight"],"lineHeight")},CG={name:"textColumns",generate:(e,t)=>eG(e,t,["typography","textColumns"],"columnCount")},IG={name:"textDecoration",generate:(e,t)=>eG(e,t,["typography","textDecoration"],"textDecoration")},TG={name:"textTransform",generate:(e,t)=>eG(e,t,["typography","textTransform"],"textTransform")},PG={name:"writingMode",generate:(e,t)=>eG(e,t,["typography","writingMode"],"writingMode")},NG=[...[{name:"color",generate:iG(["border","color"])},{name:"style",generate:iG(["border","style"])},{name:"width",generate:iG(["border","width"])},sG,{name:"borderTop",generate:aG("top")},{name:"borderRight",generate:aG("right")},{name:"borderBottom",generate:aG("bottom")},{name:"borderLeft",generate:aG("left")}],...[uG,cG,lG],...[dG],...[mG,gG,hG,vG],...[yG,bG],...[EG,kG,wG,_G,xG,SG,CG,IG,TG,PG],...[pG],...[fG]];function OG(e,t={}){const n=AG(e,t);if(!t?.selector){const e=[];return n.forEach((t=>{e.push(`${Di(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=>`${Di(e.key)}: ${e.value};`)).join(" ")} }`),e)),[]).join("\n")}function AG(e,t={}){const n=[];return NG.forEach((r=>{"function"==typeof r.generate&&n.push(...r.generate(e,t))})),n}const MG={name:"constrained",label:Un("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:_H,label:Un("Justify items left")},{value:"center",icon:EH,label:Un("Justify items center")},{value:"right",icon:xH,label:Un("Justify items right")}],l=lW({availableUnits:LU("spacing.units")||["%","px","em","rem","vw"]});return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,Ir.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,Ir.createElement)(GK,{className:"block-editor-hooks__layout-controls-unit-input",label:Un("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:l}),(0,Ir.createElement)(SM,{icon:qK})),(0,Ir.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,Ir.createElement)(GK,{className:"block-editor-hooks__layout-controls-unit-input",label:Un("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:l}),(0,Ir.createElement)(SM,{icon:YK}))),(0,Ir.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Un("Customize the width for all elements that are assigned to the center or wide columns.")),a&&(0,Ir.createElement)(k$,{__nextHasNoMarginBottom:!0,label:Un("Justification"),value:i,onChange:n=>{t({...e,justifyContent:n})}},s.map((({value:e,icon:t,label:n})=>(0,Ir.createElement)(z$,{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=q$}){const{contentSize:a,wideSize:s,justifyContent:l}=t,c=hU(n?.spacing?.blockGap);let u="";VU(r,"spacing","blockGap")||(c?.top?u=hU(c?.top):"string"==typeof c&&(u=hU(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${Y$(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${Y$(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${Y$(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+=`${Y$(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===l&&(p+=`${Y$(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${f}; }`),n?.spacing?.padding){AG(n).forEach((t=>{"paddingRight"===t.key?p+=`\n\t\t\t\t\t${Y$(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${Y$(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+=X$(e,i,"constrained",u)),p},getOrientation:()=>"vertical",getAlignments(e){const t=Z$(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 RG(e,t,n){return"number"!=typeof e?null:parseFloat(`${MK(e,t,n)}`)}const BG=30,LG=()=>IM({height:BG,minHeight:BG},"",""),DG=12,zG=og("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&&IM({minHeight:BG},"","")),";"),FG=og("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=FM.ui.borderFocus})=>IM({color:e},"","")),";",LG,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":IM({marginBottom:e?16:void 0},"","")),";"),jG=og("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",KM({marginRight:6}),";"),VG=og("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",KM({marginLeft:6}),";"),HG=og("span",{target:"e1epgpqk10"})("background-color:",FM.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=FM.ui.backgroundDisabled),IM({background:n},"","")}),";"),$G=og("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=FM.gray[400]),IM({background:n},"","")}),";"),UG=og("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),WG=og("span",{target:"e1epgpqk7"})("height:",DG,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":FM.gray[300];return e&&(n=FM.gray[400]),IM({backgroundColor:n},"","")}),";"),KG=og("span",{target:"e1epgpqk6"})("color:",FM.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>IM({color:e?FM.gray[700]:FM.gray[300]},"","")),";"),GG=({disabled:e})=>IM("background-color:",e?FM.gray[400]:FM.theme.accent,";",""),qG=og("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",DG,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",DG,"px;border-radius:50%;",GG,";",KM({marginLeft:-10}),";",KM({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),YG=og("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",GG,";",(({isFocused:e})=>e?IM("&::before{content:' ';position:absolute;background-color:",FM.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),XG=og("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% + ",DG,"px );");var ZG={name:"1cypxip",styles:"top:-80%"},QG={name:"1lr98c4",styles:"bottom:-80%"};const JG=og("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})=>IM({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?QG:ZG),";",E$("transition"),";",KM({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),eq=og(DK,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",LG,";}",KM({marginLeft:`${qM(4)} !important`}),";"),tq=og("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",LG,";}",KM({marginLeft:8}),";");const nq=(0,Ir.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,Ir.createElement)(XG,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function rq(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,a=$l()("components-range-control__mark",n&&"is-filled",t),s=$l()("components-range-control__mark-label",n&&"is-filled");return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(WG,{...i,"aria-hidden":"true",className:a,isFilled:n,style:o}),r&&(0,Ir.createElement)(KG,{"aria-hidden":"true",className:s,isFilled:n,style:o},r))}function oq(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:a=0,...s}=e;return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(HG,{disabled:t,...s}),n&&(0,Ir.createElement)(iq,{disabled:t,marks:n,min:r,max:o,step:i,value:a}))}function iq(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={[Gn()?"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,Ir.createElement)(UG,{"aria-hidden":"true",className:"components-range-control__marks"},s.map((e=>(0,Ir.createElement)(rq,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function aq(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,Ir.useState)(),o=(0,Ir.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,Ir.useEffect)((()=>{o()}),[o]),(0,Ir.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),d=$l()("components-simple-tooltip",t),f={...i,zIndex:l};return(0,Ir.createElement)(JG,{...c,"aria-hidden":o,className:d,position:u,show:o,role:"tooltip",style:f},s(a))}const sq=()=>{};const lq=(0,Ir.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:a,className:s,color:l=FM.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=sq,onChange:k=sq,onFocus:w=sq,onMouseLeave:_=sq,onMouseMove:E=sq,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]=UK(RG(r,t,n),{initial:RG(null!=o?o:null,t,n),fallback:null});return[i,(0,Ir.useCallback)((e=>{a(null===e?null:RG(e,t,n))}),[t,n,a])]}({min:b,max:v,value:null!=A?A:null,initial:p}),D=(0,Ir.useRef)(!1);let z=P,F=M;"any"===N&&(z=!1,F=!1);const[j,V]=(0,Ir.useState)(z),[H,$]=(0,Ir.useState)(!1),U=(0,Ir.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=`${MK(G?50:(B-b)/(v-b)*100,0,100)}%`,Z=$l()("components-range-control",s),Q=$l()("components-range-control__wrapper",!!g&&"is-marked"),J=Gl(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={[Gn()?"right":"left"]:X};return(0,Ir.createElement)(DH,{__nextHasNoMarginBottom:r,className:Z,label:h,hideLabelFromVision:f,id:`${J}`,help:d},(0,Ir.createElement)(zG,{className:"components-range-control__root",__next40pxDefaultSize:I},a&&(0,Ir.createElement)(jG,null,(0,Ir.createElement)(rm,{icon:a})),(0,Ir.createElement)(FG,{__nextHasNoMarginBottom:r,className:Q,color:l,marks:!!g},(0,Ir.createElement)(nq,{...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:$g([U,n]),step:N,value:null!=q?q:void 0}),(0,Ir.createElement)(oq,{"aria-hidden":!0,disabled:u,marks:g,max:v,min:b,railColor:x,step:N,value:Y}),(0,Ir.createElement)($G,{"aria-hidden":!0,className:"components-range-control__track",disabled:u,style:{width:X},trackColor:O}),(0,Ir.createElement)(qG,{className:"components-range-control__thumb-wrapper",style:re,disabled:u},(0,Ir.createElement)(YG,{"aria-hidden":!0,isFocused:K,disabled:u})),te&&(0,Ir.createElement)(aq,{className:"components-range-control__tooltip",inputRef:U,tooltipPosition:"bottom",renderTooltipContent:S,show:W||j,style:re,value:B})),o&&(0,Ir.createElement)(VG,null,(0,Ir.createElement)(rm,{icon:o})),F&&(0,Ir.createElement)(eq,{"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=RG(t,b,v)),k(t),D.current=!1)},shiftStep:T,size:I?"__unstable-large":"default",__unstableInputWidth:qM(I?20:16),step:N,value:q}),i&&(0,Ir.createElement)(tq,null,(0,Ir.createElement)(ug,{className:"components-range-control__reset",disabled:u||void 0===B,variant:"secondary",isSmall:!0,onClick:ne},Un("Reset")))))})),cq=lq,uq={px:600,"%":100,vw:100,vh:100,em:38,rem:38},dq={name:"grid",label:Un("Grid"),inspectorControls:function({layout:e={},onChange:t}){return e?.columnCount?(0,Ir.createElement)(pq,{layout:e,onChange:t}):(0,Ir.createElement)(fq,{layout:e,onChange:t})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=q$}){const{minimumColumnWidth:a="12rem",columnCount:s=null}=t,l=n?.spacing?.blockGap&&!VU(r,"spacing","blockGap")?hU(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=`${Y$(e)} { ${u.join("; ")}; }`),o&&l&&(c+=X$(e,i,"grid",l)),c},getOrientation:()=>"horizontal",getAlignments:()=>[]};function fq({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[r,o]=sW(n);return(0,Ir.createElement)("fieldset",null,(0,Ir.createElement)(DH.VisualLabel,{as:"legend"},Un("Minimum column width")),(0,Ir.createElement)(gR,{gap:4},(0,Ir.createElement)(bR,{isBlock:!0},(0,Ir.createElement)(GK,{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,Ir.createElement)(bR,{isBlock:!0},(0,Ir.createElement)(cq,{onChange:n=>{t({...e,minimumColumnWidth:[n,o].join("")})},value:r,min:0,max:uq[o]||600,withInputField:!1}))))}function pq({layout:e,onChange:t}){const{columnCount:n=3}=e;return(0,Ir.createElement)(cq,{label:Un("Columns"),value:n,onChange:n=>t({...e,columnCount:n}),min:1,max:6})}const mq=[JU,GU,MG,dq];function hq(e="default"){return mq.find((t=>t.name===e))}const gq=[],vq=["none","left","center","right","wide","full"],bq=["wide","full"];function yq(e=vq){e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n,isBlockBasedTheme:r}=DC((e=>{const{getSettings:t}=e(XO),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout,isBlockBasedTheme:n.__unstableIsBlockBasedTheme}}),[]),o=wH(),i=hq(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?gq:t}if("default"!==i.name&&"constrained"!==i.name)return gq;const{alignments:s=vq}=o,l=e.filter((e=>(o.alignments||t||!bq.includes(e))&&s.includes(e))).map((e=>({name:e})));return 1===l.length&&"none"===l[0].name?gq:l}const kq=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})),wq=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})),_q=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})),Eq=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})),xq={none:{icon:kq,title:Wn("None","Alignment option")},left:{icon:wq,title:Un("Align left")},center:{icon:qK,title:Un("Align center")},right:{icon:_q,title:Un("Align right")},wide:{icon:YK,title:Un("Wide width")},full:{icon:Eq,title:Un("Full width")}};const Sq=function({value:e,onChange:t,controls:n,isToolbar:r,isCollapsed:o=!0}){const i=yq(n);if(!!!i.length)return null;function a(n){t([e,"none"].includes(n)?void 0:n)}const s=xq[e],l=xq.none,c=r?wC:mH,u={icon:s?s.icon:l.icon,label:Un("Align")},d=r?{isCollapsed:o,controls:i.map((({name:t})=>({...xq[t],isActive:e===t||!e&&"none"===t,role:o?"menuitemradio":void 0,onClick:()=>a(t)})))}:{toggleProps:{describedBy:Un("Change alignment")},children:({onClose:t})=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(hH,{className:"block-editor-block-alignment-control__menu-group"},i.map((({name:n,info:r})=>{const{icon:o,title:i}=xq[n],s=n===e||!e&&"none"===n;return(0,Ir.createElement)(vH,{key:n,icon:o,iconPosition:"left",className:$l()("components-dropdown-menu__menu-item",{"is-active":s}),isSelected:s,onClick:()=>{a(n),t()},role:"menuitemradio",info:r},i)}))))};return(0,Ir.createElement)(c,{...u,...d})},Cq=e=>(0,Ir.createElement)(Sq,{...e,isToolbar:!1}),Iq=e=>{const{dispatch:t}=PC();return void 0===e?t:t(e)},Tq=(0,Ir.createContext)(null);function Pq(e){var t;const{clientId:n=""}=null!==(t=(0,Ir.useContext)(Tq))&&void 0!==t?t:{},r=DC((e=>e(XO).getBlockEditingMode(n)),[n]),{setBlockEditingMode:o,unsetBlockEditingMode:i}=Iq(XO);return(0,Ir.useEffect)((()=>(e&&o(n,e),()=>{e&&i(n)})),[n,e,o,i]),r}const Nq=["left","center","right","wide","full"],Oq=["wide","full"];function Aq(e,t=!0,n=!0){let r;return r=Array.isArray(e)?Nq.filter((t=>e.includes(t))):!0===e?[...Nq]:[],!n||!0===e&&!t?r.filter((e=>!Oq.includes(e))):r}const Mq=Ul((e=>t=>{const n=(0,Ir.createElement)(e,{key:"edit",...t}),{name:r}=t,o=yq(Aq(jr(r,"align"),Vr(r,"alignWide",!0))).map((({name:e})=>e)),i=Pq();if(!o.length||"default"!==i)return n;return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(pH,{group:"block",__experimentalShareWithChildBlocks:!0},(0,Ir.createElement)(Cq,{value:t.attributes.align,onChange:e=>{if(!e){const n=zr(t.name),r=n?.attributes?.align?.default;r&&(e="")}t.setAttributes({align:e})},controls:o})),n)}),"withToolbarControls"),Rq=Ul((e=>t=>{const{name:n,attributes:r}=t,{align:o}=r,i=yq(Aq(jr(n,"align"),Vr(n,"alignWide",!0)));if(void 0===o)return(0,Ir.createElement)(e,{...t});let a=t.wrapperProps;return i.some((e=>e.name===o))&&(a={...a,"data-align":o}),(0,Ir.createElement)(e,{...t,wrapperProps:a})}),"withDataAlign");Ht("blocks.registerBlockType","core/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||Vr(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Nq,""]}}),e})),Ht("editor.BlockListBlock","core/editor/align/with-data-align",Rq),Ht("editor.BlockEdit","core/editor/align/with-toolbar-controls",Mq),Ht("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:r}=n;return Aq(jr(t,"align"),Vr(t,"alignWide",!0)).includes(r)&&(e.className=$l()(`align${r}`,e.className)),e})),Ht("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 Bq=(0,Ir.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=Gl(Bq,"inspector-text-control",s);return(0,Ir.createElement)(DH,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:f,help:a,className:l},(0,Ir.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}))})),Lq=Bq,Dq=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 zq=og(SM,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});const Fq=(0,Ir.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=$l()("components-external-link",o),c=!!n?.startsWith("#");return(0,Ir.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,Ir.createElement)(sg,{as:"span"},Un("(opens in a new tab)")),(0,Ir.createElement)(zq,{icon:Dq,className:"components-external-link__icon"}))})),jq=Fq,Vq=()=>tx("(prefers-reduced-motion: reduce)"),Hq=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),$q=()=>{};const Uq=(0,Ir.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,Ir.createElement)("h2",{className:"components-panel__body-title"},(0,Ir.createElement)(ug,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,Ir.createElement)("span",{"aria-hidden":"true"},(0,Ir.createElement)(rm,{className:"components-panel__arrow",icon:e?Hq:nR})),n,t&&(0,Ir.createElement)(rm,{icon:t,className:"components-panel__icon",size:20}))):null)),Wq=(0,Ir.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:a,onToggle:s=$q,opened:l,title:c,scrollAfterOpen:u=!0}=e,[d,f]=UK(l,{initial:void 0===a||a,fallback:!1}),p=(0,Ir.useRef)(null),m=Vq()?"auto":"smooth",h=(0,Ir.useRef)();h.current=u,am((()=>{d&&h.current&&p.current?.scrollIntoView&&p.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:m})}),[d,m]);const g=$l()("components-panel__body",o,{"is-opened":d});return(0,Ir.createElement)("div",{className:g,ref:$g([p,t])},(0,Ir.createElement)(Uq,{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)})),Kq=Wq,Gq=()=>{},qq=(0,Ir.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:Gq,deregisterPanelItem:Gq,flagItemCustomization:Gq,registerResetAllFilter:Gq,deregisterResetAllFilter:Gq,areAllOptionalControlsHidden:!0}),Yq=()=>(0,Ir.useContext)(qq),Xq=eC("InspectorControls"),Zq=eC("InspectorAdvancedControls"),Qq=eC("InspectorControlsBackground"),Jq=eC("InspectorControlsBorder"),eY=eC("InspectorControlsColor"),tY=eC("InspectorControlsFilter"),nY=eC("InspectorControlsDimensions"),rY=eC("InspectorControlsPosition"),oY=eC("InspectorControlsTypography"),iY={default:Xq,advanced:Zq,background:Qq,border:Jq,color:eY,dimensions:nY,filter:tY,list:eC("InspectorControlsListView"),position:rY,settings:Xq,styles:eC("InspectorControlsStyles"),typography:oY};function aY({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:r}){n&&(sn("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const o=nA(),i=iY[t]?.Fill;return i?o?(0,Ir.createElement)(US,{document},(0,Ir.createElement)(i,null,(t=>(0,Ir.createElement)(lY,{fillProps:t,children:e,resetAllFilter:r})))):null:("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im(`Unknown InspectorControls group "${t}" provided.`),null)}function sY({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:r}=(0,Ir.useContext)(qq);return(0,Ir.useEffect)((()=>{if(e&&n&&r)return n(e),()=>{r(e)}}),[e,n,r]),t}function lY({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:r=[]}=n,o=(0,Ir.createElement)(sY,{resetAllFilter:t},e);return r.reduce(((e,[t,n])=>(0,Ir.createElement)(t,{...n},e)),o)}const cY=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const uY=Uh((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=$h(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),{...GR({color:FM.gray[900],size:WR(n),isBlock:!0,weight:OR.fontWeightHeading,...r}),...i,as:o}}(e);return(0,Ir.createElement)(ag,{...n,ref:t})}),"Heading");const dY={columns:e=>IM("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:IM("column-gap:",qM(2),";row-gap:",qM(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},fY={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},pY=IM(dY.item.fullWidth," gap:",qM(2),";.components-dropdown-menu{margin:",qM(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",qM(6),";}",""),mY={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},hY=IM(dY.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",wB,"{margin-bottom:0;",_B,":last-child{margin-bottom:0;}}",CB,"{margin-bottom:0;}&& ",iB,"{label{line-height:1.4em;}}",""),gY={name:"eivff4",styles:"display:none"},vY={name:"16gsvie",styles:"min-width:200px"},bY=og("span",{target:"ews648u0"})("color:",FM.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",KM({marginLeft:qM(3)})," text-transform:uppercase;"),yY=IM("color:",FM.gray[900],";&&[aria-disabled='true']{color:",FM.gray[700],";opacity:1;&:hover{color:",FM.gray[700],";}",bY,"{opacity:0.3;}}","");const kY=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,Ir.createElement)(bY,{"aria-hidden":!0},Un("Reset"));return(0,Ir.createElement)(hH,{label:Un("Defaults")},t.map((([t,o])=>o?(0,Ir.createElement)(vH,{key:t,className:e,role:"menuitem",label:An(Un("Reset %s"),t),onClick:()=>{n(t),AN(An(Un("%s reset to default"),t),"assertive")},suffix:r},t):(0,Ir.createElement)(vH,{key:t,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},wY=({items:e,toggleItem:t})=>e.length?(0,Ir.createElement)(hH,{label:Un("Tools")},e.map((([e,n])=>{const r=An(Un(n?"Hide and reset %s":"Show %s"),e);return(0,Ir.createElement)(vH,{key:e,icon:n?CM:null,isSelected:n,label:r,onClick:()=>{AN(An(Un(n?"%s hidden and reset to default":"%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,_Y=Uh(((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}=$h(e,"ToolsPanelHeader"),o=Hh(),i=(0,Ir.useMemo)((()=>o(pY,t)),[t,o]),a=(0,Ir.useMemo)((()=>o(vY)),[o]),s=(0,Ir.useMemo)((()=>o(mY)),[o]),l=(0,Ir.useMemo)((()=>o(yY)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=Yq();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?cW:cY,g=An(Wn("%s options","Button label to reveal tool panel options"),l),v=n?Un("All options are currently hidden"):void 0,b=[...p,...m].some((([,e])=>e));return(0,Ir.createElement)(K$,{...f,ref:t},(0,Ir.createElement)(uY,{level:s,className:a},l),i&&(0,Ir.createElement)(yC,{icon:h,label:g,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:v}},(()=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(kY,{items:p,toggleItem:d,itemClassName:r}),(0,Ir.createElement)(wY,{items:m,toggleItem:d}),(0,Ir.createElement)(hH,null,(0,Ir.createElement)(vH,{"aria-disabled":!b,variant:"tertiary",onClick:()=>{b&&(u(),AN(Un("All options reset"),"assertive"))}},Un("Reset all")))))))}),"ToolsPanelHeader"),EY=_Y,xY=({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},SY=e=>e&&0===Object.keys(e).length;function CY(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:a=!1,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l,...c}=$h(e,"ToolsPanel"),u=(0,Ir.useRef)(!1),d=u.current;(0,Ir.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[f,p]=(0,Ir.useState)([]),[m,h]=(0,Ir.useState)([]),[g,v]=(0,Ir.useState)([]),b=(0,Ir.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,Ir.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,Ir.useCallback)((e=>{v((t=>[...t,e]))}),[v]),w=(0,Ir.useCallback)((e=>{v((t=>t.filter((t=>t!==e))))}),[v]),[_,E]=(0,Ir.useState)({default:{},optional:{}});(0,Ir.useEffect)((()=>{E((e=>xY({panelItems:f,shouldReset:!1,currentMenuItems:e,menuItemOrder:m})))}),[f,E,m]);const x=(0,Ir.useCallback)(((e,t="default")=>{E((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[E]),[S,C]=(0,Ir.useState)(!1);(0,Ir.useEffect)((()=>{if(SY(_?.default)&&!SY(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));C(e)}}),[_,C]);const I=Hh(),T=(0,Ir.useMemo)((()=>{const e=i&&IM(">div:not( :first-of-type ){display:grid;",dY.columns(2)," ",dY.spacing," ",dY.item.fullWidth,";}","");const n=SY(_?.default)&&S&&fY;return I((e=>IM(dY.columns(e)," ",dY.spacing," border-top:",OR.borderWidth," solid ",FM.gray[300],";margin-top:-1px;padding:",qM(4),";",""))(2),e,n,t)}),[S,t,I,i,_]),P=(0,Ir.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,Ir.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=xY({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,Ir.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 IY={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 TY(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}=$h(e,"Grid"),m=aR(Array.isArray(i)?i:[i]),h=aR(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${m}, 1fr )`,v=f||!!u&&`repeat( ${h}, 1fr )`,b=Hh();return{...p,className:(0,Ir.useMemo)((()=>{const e=function(e){return e?IY[e]:{}}(n),i=IM({alignItems:t,display:s?"inline-grid":"grid",gap:`calc( ${OR.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 PY=Uh((function(e,t){const n=TY(e);return(0,Ir.createElement)(ag,{...n,ref:t})}),"Grid"),NY=Uh(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:a,headingLevel:s,...l}=CY(e);return(0,Ir.createElement)(PY,{...l,columns:2,ref:t},(0,Ir.createElement)(qq.Provider,{value:o},(0,Ir.createElement)(EY,{label:r,resetAll:i,toggleItem:a,headingLevel:s}),n))}),"ToolsPanel"),OY=NY;function AY({children:e,group:t,label:n}){const{updateBlockAttributes:r}=Iq(XO),{getBlockAttributes:o,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:s}=DC(XO),l=a(),c=(0,Ir.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:FU(i.style)},t[n]=i})),r(n,t,!0)}),[o,i,s,l,r]);return(0,Ir.createElement)(OY,{className:`${t}-block-support-panel`,label:n,resetAll:c,key:l,panelId:l,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},e)}function MY({Slot:e,fillProps:t,...n}){const r=(0,Ir.useContext)(qq),o=(0,Ir.useMemo)((()=>{var e;return{...null!=t?t:{},forwardedContext:[...null!==(e=t?.forwardedContext)&&void 0!==e?e:[],[qq.Provider,{value:r}]]}}),[r,t]);return(0,Ir.createElement)(e,{...n,fillProps:o,bubblesVirtually:!0})}function RY({__experimentalGroup:e,group:t="default",label:n,fillProps:r,...o}){e&&(sn("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const i=iY[t]?.Slot,a=cH(i?.__unstableName),s=(0,Ir.useContext)(rv),l=(0,Ir.useMemo)((()=>{var e;return{...null!=r?r:{},forwardedContext:[...null!==(e=r?.forwardedContext)&&void 0!==e?e:[],[rv.Provider,{value:s}]]}}),[s,r]);return i?a?.length?n?(0,Ir.createElement)(AY,{group:t,label:n},(0,Ir.createElement)(MY,{...o,fillProps:l,Slot:i})):(0,Ir.createElement)(i,{...o,fillProps:l,bubblesVirtually:!0}):null:("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im(`Unknown InspectorControls group "${t}" provided.`),null)}const BY=aY;BY.Slot=RY;const LY=e=>(0,Ir.createElement)(aY,{...e,group:"advanced"});LY.Slot=e=>(0,Ir.createElement)(RY,{...e,group:"advanced"}),LY.slotName="InspectorAdvancedControls";const DY=BY,zY=/[\s#]/g,FY={type:"string",source:"attribute",attribute:"id",selector:"*"};const jY=Ul((e=>t=>{const n=Vr(t.name,"anchor"),r=Pq();if(n&&t.isSelected){const n="web"===nI.OS,o=(0,Ir.createElement)(Lq,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:Un("HTML anchor"),help:(0,Ir.createElement)(Ir.Fragment,null,Un("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,Ir.createElement)(jq,{href:Un("https://wordpress.org/documentation/article/page-jumps/")},Un("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Un("Add an anchor"),onChange:e=>{e=e.replace(zY,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(e,{...t}),n&&"default"===r&&(0,Ir.createElement)(DY,{group:"advanced"},o),!n&&"core/heading"===t.name&&(0,Ir.createElement)(DY,null,(0,Ir.createElement)(Kq,{title:Un("Heading settings")},o)))}return(0,Ir.createElement)(e,{...t})}),"withInspectorControl");Ht("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||Vr(e,"anchor")&&(e.attributes={...e.attributes,anchor:FY}),e})),Ht("editor.BlockEdit","core/editor/anchor/with-inspector-control",jY),Ht("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Vr(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const VY={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};Ht("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||Vr(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:VY}),e})),Ht("blocks.getSaveContent.extraProps","core/ariaLabel/save-props",(function(e,t,n){return Vr(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e}));const HY=Ul((e=>t=>{const n=Pq();return Vr(t.name,"customClassName",!0)&&t.isSelected?(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(e,{...t}),"default"===n&&(0,Ir.createElement)(DY,{group:"advanced"},(0,Ir.createElement)(Lq,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:Un("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Un("Separate multiple classes with spaces.")}))):(0,Ir.createElement)(e,{...t})}),"withInspectorControl");function $Y(e,t){var n=(0,Ir.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,Ir.useRef)(!0),o=(0,Ir.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,Ir.useEffect)((function(){r.current=!1,o.current=a}),[a]),a.result}Ht("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Vr(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Ht("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",HY),Ht("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Vr(t,"customClassName",!0)&&n.className&&(e.className=$l()(e.className,n.className)),e})),Ht("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){if(!Vr(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})),Ht("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Vr(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([pa(t.name),...e.className.split(" ")])].join(" ").trim():e.className=pa(t.name)),e}));const UY=(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 WY(e,t,n){const r=$Y((()=>UY(e,null!=t?t:0,n)),[e,t,n]);return(0,Ir.useEffect)((()=>()=>r.cancel()),[r]),r}function KY(e){return Ul((t=>{const n="core/with-filters/"+e;let r;class o extends Ir.Component{constructor(n){super(n),void 0===r&&(r=Xt(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&(Vt("hookRemoved",n,a),Vt("hookAdded",n,a))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&($t("hookRemoved",n),$t("hookAdded",n))}render(){return(0,Ir.createElement)(r,{...this.props})}}o.instances=[];const i=UY((()=>{r=Xt(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),16);function a(t){t===e&&i()}return o}),"withFilters")}const GY=Ul((function(e){return e.prototype instanceof Ir.Component?class extends e{shouldComponentUpdate(e,t){return!da(e,this.props)||!da(t,this.state)}}:class extends Ir.Component{shouldComponentUpdate(e){return!da(e,this.props)}render(){return(0,Ir.createElement)(e,{...this.props})}}}),"pure"),qY=e=>Ul((t=>GY((n=>{const r=DC(((t,r)=>e(t,n,r)));return(0,Ir.createElement)(t,{...n,...r})}))),"withSelect"),YY="undefined"!=typeof window?Ir.useLayoutEffect:Ir.useEffect,XY=(e,t)=>{const n=PC(),r=(0,Ir.useRef)(e);return YY((()=>{r.current=e})),(0,Ir.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])},ZY=e=>Ul((t=>n=>{const r=XY(((t,r)=>e(t,n,r)),[]);return(0,Ir.createElement)(t,{...n,...r})}),"withDispatch");const QY=function(e){return Ul((t=>n=>e(n)?(0,Ir.createElement)(t,{...n}):null),"ifCondition")};function JY(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)js(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 eX=(0,Ir.createContext)({});function tX({value:e,children:t}){const n=(0,Ir.useContext)(eX),r=(0,Ir.useMemo)((()=>({...n,...e})),[n,e]);return(0,Ir.createElement)(eX.Provider,{value:r,children:t})}const nX=eX,rX={},oX=KY("editor.BlockEdit")((e=>{const{name:t}=e,n=zr(t);if(!n)return null;const r=n.edit||n.save;return(0,Ir.createElement)(r,{...e})})),iX=e=>{const{attributes:t={},name:n}=e,r=zr(n),o=(0,Ir.useContext)(nX),i=(0,Ir.useMemo)((()=>r&&r.usesContext?Object.fromEntries(Object.entries(o).filter((([e])=>r.usesContext.includes(e)))):rX),[r,o]);if(!r)return null;if(r.apiVersion>1)return(0,Ir.createElement)(oX,{...e,context:i});const a=Vr(r,"className",!0)?pa(n):null,s=$l()(a,t.className,e.className);return(0,Ir.createElement)(oX,{...e,context:i,className:s})};function aX(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:Vr(t,"layout",!1)||Vr(t,"__experimentalLayout",!1)?a:null,__unstableLayoutClassNames:i};return(0,Ir.createElement)(eA,{value:(0,Ir.useMemo)((()=>s),Object.values(s))},(0,Ir.createElement)(iX,{...e}))}function sX(e){return zs(e.ownerDocument.defaultView),e.ownerDocument.defaultView.getComputedStyle(e)}function lX(e,t="vertical"){if(e){if(("vertical"===t||"all"===t)&&e.scrollHeight>e.clientHeight){const{overflowY:t}=sX(e);if(/(auto|scroll)/.test(t))return e}if(("horizontal"===t||"all"===t)&&e.scrollWidth>e.clientWidth){const{overflowX:t}=sX(e);if(/(auto|scroll)/.test(t))return e}return e.ownerDocument===e.parentNode?e:lX(e.parentNode,t)}}const cX=new Set(["alert","status","log","marquee","timer"]),uX=[];function dX(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&cX.has(t))}let fX=0;const pX=(0,Ir.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,Ir.useRef)(),x=Gl(pX),S=o?`components-modal-header-${x}`:c.labelledby,C=Wx("firstContentElement"===i?"firstElement":i),I=Ux(),T=Gx(),P=Yx(u),N=(0,Ir.useRef)(null),O=(0,Ir.useRef)(null),[A,M]=(0,Ir.useState)(!1),[R,B]=(0,Ir.useState)(!1);let L;y||"fill"===k?L="is-full-screen":k&&(L=`has-size-${k}`);const D=(0,Ir.useCallback)((()=>{if(!N.current)return;const e=lX(N.current);N.current===e?B(!0):B(!1)}),[N]);(0,Ir.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];uX.push(n);for(const r of t)r!==e&&dX(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(E.current),()=>function(){const e=uX.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]),(0,Ir.useEffect)((()=>(fX++,1===fX&&document.body.classList.add(n),()=>{fX--,0===fX&&document.body.classList.remove(n)})),[n]),(0,Ir.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,Ir.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,df.createPortal)((0,Ir.createElement)("div",{ref:$g([E,t]),className:$l()("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,Ir.createElement)(US,{document},(0,Ir.createElement)("div",{className:$l()("components-modal__frame",L,g),style:m,ref:$g([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,Ir.createElement)("div",{className:$l()("components-modal__content",{"hide-header":_,"is-scrollable":R,"has-scrolled-content":A}),role:"document",onScroll:z,ref:N,"aria-label":R?Un("Scrollable section"):void 0,tabIndex:R?0:void 0},!_&&(0,Ir.createElement)("div",{className:"components-modal__header"},(0,Ir.createElement)("div",{className:"components-modal__header-heading-container"},d&&(0,Ir.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},d),o&&(0,Ir.createElement)("h1",{id:S,className:"components-modal__header-heading"},o)),w,l&&(0,Ir.createElement)(ug,{onClick:u,icon:Zx,label:f||Un("Close")})),(0,Ir.createElement)("div",{ref:$g([O,"firstContentElement"===i?C:null])},p))))),document.body)})),mX=pX;const hX=function({className:e,actions:t,children:n,secondaryActions:r}){return(0,Ir.createElement)("div",{style:{display:"contents",all:"initial"}},(0,Ir.createElement)("div",{className:$l()(e,"block-editor-warning")},(0,Ir.createElement)("div",{className:"block-editor-warning__contents"},(0,Ir.createElement)("p",{className:"block-editor-warning__message"},n),(Ir.Children.count(t)>0||r)&&(0,Ir.createElement)("div",{className:"block-editor-warning__actions"},Ir.Children.count(t)>0&&Ir.Children.map(t,((e,t)=>(0,Ir.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,Ir.createElement)(yC,{className:"block-editor-warning__secondary",icon:cY,label:Un("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,Ir.createElement)(hH,null,r.map(((e,t)=>(0,Ir.createElement)(vH,{onClick:e.onClick,key:t},e.title))))))))))};var gX=o(7630);function vX({title:e,rawContent:t,renderedContent:n,action:r,actionText:o,className:i}){return(0,Ir.createElement)("div",{className:i},(0,Ir.createElement)("div",{className:"block-editor-block-compare__content"},(0,Ir.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,Ir.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,Ir.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,Ir.createElement)(Li,null,JY(n)))),(0,Ir.createElement)("div",{className:"block-editor-block-compare__action"},(0,Ir.createElement)(ug,{variant:"secondary",tabIndex:"0",onClick:r},o)))}const bX=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:o}){const i=function(e){const t=(Array.isArray(e)?e:[e]).map((e=>va(e.name,e.attributes,e.innerBlocks)));return t.join("")}(r(e)),a=(s=e.originalContent,l=i,(0,gX.Kx)(s,l).map(((e,t)=>{const n=$l()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,Ir.createElement)("span",{key:t,className:n},e.value)})));var s,l;return(0,Ir.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,Ir.createElement)(vX,{title:Un("Current"),className:"block-editor-block-compare__current",action:t,actionText:Un("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,Ir.createElement)(vX,{title:Un("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:o,rawContent:a,renderedContent:i}))},yX=e=>cl({HTML:e.originalContent});function kX({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:r}=DC((t=>{const{canInsertBlockType:n,getBlock:r,getBlockRootClientId:o}=t(XO),i=o(e);return{block:r(e),canInsertHTMLBlock:n("core/html",i),canInsertClassicBlock:n("core/freeform",i)}}),[e]),{replaceBlock:o}=Iq(XO),[i,a]=(0,Ir.useState)(!1),s=(0,Ir.useCallback)((()=>a(!1)),[]),l=(0,Ir.useMemo)((()=>({toClassic(){const e=Zr("core/freeform",{content:t.originalContent});return o(t.clientId,e)},toHTML(){const e=Zr("core/html",{content:t.originalContent});return o(t.clientId,e)},toBlocks(){const e=yX(t);return o(t.clientId,e)},toRecoveredBlock(){const e=Zr(t.name,t.attributes,t.innerBlocks);return o(t.clientId,e)}})),[t,o]),c=(0,Ir.useMemo)((()=>[{title:Wn("Resolve","imperative verb"),onClick:()=>a(!0)},n&&{title:Un("Convert to HTML"),onClick:l.toHTML},r&&{title:Un("Convert to Classic Block"),onClick:l.toClassic}].filter(Boolean)),[n,r,l]);return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(hX,{actions:[(0,Ir.createElement)(ug,{key:"recover",onClick:l.toRecoveredBlock,variant:"primary"},Un("Attempt Block Recovery"))],secondaryActions:c},Un("This block contains unexpected or invalid content.")),i&&(0,Ir.createElement)(mX,{title:Un("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare"},(0,Ir.createElement)(bX,{block:t,onKeep:l.toHTML,onConvert:l.toBlocks,convertor:yX,convertButtonText:Un("Convert to Blocks")})))}const wX=(0,Ir.createElement)(hX,{className:"block-editor-block-list__block-crash-warning"},Un("This block has encountered an error and cannot be previewed.")),_X=()=>wX;class EX extends Ir.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 xX=EX;var SX=o(4042);const CX=function({clientId:e}){const[t,n]=(0,Ir.useState)(""),r=DC((t=>t(XO).getBlock(e)),[e]),{updateBlock:o}=Iq(XO);return(0,Ir.useEffect)((()=>{n(ba(r))}),[r]),(0,Ir.createElement)(SX.Z,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const i=zr(r.name);if(!i)return;const a=ks(i,t,r.attributes),s=t||va(i,a),[l]=t?os({...r,attributes:a,originalContent:s}):[!0];o(e,{attributes:a,originalContent:s,isValid:l}),t||n(s)},onChange:e=>n(e.target.value)})};function IX({isDisabled:e=!1}={}){return $x((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=UY(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 TX=Object.defineProperty,PX={};((e,t)=>{for(var n in t)TX(e,n,{get:t[n],enumerable:!0})})(PX,{assign:()=>lZ,colors:()=>iZ,createStringInterpolator:()=>tZ,skipAnimation:()=>aZ,to:()=>nZ,willAdvance:()=>sZ});var NX=KX(),OX=e=>HX(e,NX),AX=KX();OX.write=e=>HX(e,AX);var MX=KX();OX.onStart=e=>HX(e,MX);var RX=KX();OX.onFrame=e=>HX(e,RX);var BX=KX();OX.onFinish=e=>HX(e,BX);var LX=[];OX.setTimeout=(e,t)=>{const n=OX.now()+t,r=()=>{const e=LX.findIndex((e=>e.cancel==r));~e&&LX.splice(e,1),jX-=~e?1:0},o={time:n,handler:e,cancel:r};return LX.splice(DX(n),0,o),jX+=1,$X(),o};var DX=e=>~(~LX.findIndex((t=>t.time>e))||~LX.length);OX.cancel=e=>{MX.delete(e),RX.delete(e),BX.delete(e),NX.delete(e),AX.delete(e)},OX.sync=e=>{VX=!0,OX.batchedUpdates(e),VX=!1},OX.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,OX.onStart(n)}return r.handler=e,r.cancel=()=>{MX.delete(n),t=null},r};var zX="undefined"!=typeof window?window.requestAnimationFrame:()=>{};OX.use=e=>zX=e,OX.now="undefined"!=typeof performance?()=>performance.now():Date.now,OX.batchedUpdates=e=>e(),OX.catch=console.error,OX.frameLoop="always",OX.advance=()=>{"demand"!==OX.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):WX()};var FX=-1,jX=0,VX=!1;function HX(e,t){VX?(t.delete(e),e(0)):(t.add(e),$X())}function $X(){FX<0&&(FX=0,"demand"!==OX.frameLoop&&zX(UX))}function UX(){~FX&&(zX(UX),OX.batchedUpdates(WX))}function WX(){const e=FX;FX=OX.now();const t=DX(FX);t&&(GX(LX.splice(0,t),(e=>e.handler())),jX-=t),jX?(MX.flush(),NX.flush(e?Math.min(64,FX-e):16.667),RX.flush(),AX.flush(),BX.flush()):FX=-1}function KX(){let e=new Set,t=e;return{add(n){jX+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(jX-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,jX-=t.size,GX(t,(t=>t(n)&&e.add(t))),jX+=e.size,t=e)}}}function GX(e,t){e.forEach((e=>{try{t(e)}catch(e){OX.catch(e)}}))}function qX(){}var YX={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 XX(e,t){if(YX.arr(e)){if(!YX.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 ZX=(e,t)=>e.forEach(t);function QX(e,t,n){if(YX.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 JX=e=>YX.und(e)?[]:YX.arr(e)?e:[e];function eZ(e,t){if(e.size){const n=Array.from(e);e.clear(),ZX(n,t)}}var tZ,nZ,rZ=(e,...t)=>eZ(e,(e=>e(...t))),oZ=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),iZ=null,aZ=!1,sZ=qX,lZ=e=>{e.to&&(nZ=e.to),e.now&&(OX.now=e.now),void 0!==e.colors&&(iZ=e.colors),null!=e.skipAnimation&&(aZ=e.skipAnimation),e.createStringInterpolator&&(tZ=e.createStringInterpolator),e.requestAnimationFrame&&OX.use(e.requestAnimationFrame),e.batchedUpdates&&(OX.batchedUpdates=e.batchedUpdates),e.willAdvance&&(sZ=e.willAdvance),e.frameLoop&&(OX.frameLoop=e.frameLoop)},cZ=new Set,uZ=[],dZ=[],fZ=0,pZ={get idle(){return!cZ.size&&!uZ.length},start(e){fZ>e.priority?(cZ.add(e),OX.onStart(mZ)):(hZ(e),OX(vZ))},advance:vZ,sort(e){if(fZ)OX.onFrame((()=>pZ.sort(e)));else{const t=uZ.indexOf(e);~t&&(uZ.splice(t,1),gZ(e))}},clear(){uZ=[],cZ.clear()}};function mZ(){cZ.forEach(hZ),cZ.clear(),OX(vZ)}function hZ(e){uZ.includes(e)||gZ(e)}function gZ(e){uZ.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(uZ,(t=>t.priority>e.priority)),0,e)}function vZ(e){const t=dZ;for(let n=0;n<uZ.length;n++){const r=uZ[n];fZ=r.priority,r.idle||(sZ(r),r.advance(e),r.idle||t.push(r))}return fZ=0,(dZ=uZ).length=0,(uZ=t).length>0}var bZ="[-+]?\\d*\\.?\\d+",yZ=bZ+"%";function kZ(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var wZ=new RegExp("rgb"+kZ(bZ,bZ,bZ)),_Z=new RegExp("rgba"+kZ(bZ,bZ,bZ,bZ)),EZ=new RegExp("hsl"+kZ(bZ,yZ,yZ)),xZ=new RegExp("hsla"+kZ(bZ,yZ,yZ,bZ)),SZ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,CZ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,IZ=/^#([0-9a-fA-F]{6})$/,TZ=/^#([0-9a-fA-F]{8})$/;function PZ(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 NZ(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=PZ(o,r,e+1/3),a=PZ(o,r,e),s=PZ(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function OZ(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function AZ(e){return(parseFloat(e)%360+360)%360/360}function MZ(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function RZ(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function BZ(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=IZ.exec(e))?parseInt(t[1]+"ff",16)>>>0:iZ&&void 0!==iZ[e]?iZ[e]:(t=wZ.exec(e))?(OZ(t[1])<<24|OZ(t[2])<<16|OZ(t[3])<<8|255)>>>0:(t=_Z.exec(e))?(OZ(t[1])<<24|OZ(t[2])<<16|OZ(t[3])<<8|MZ(t[4]))>>>0:(t=SZ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=TZ.exec(e))?parseInt(t[1],16)>>>0:(t=CZ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=EZ.exec(e))?(255|NZ(AZ(t[1]),RZ(t[2]),RZ(t[3])))>>>0:(t=xZ.exec(e))?(NZ(AZ(t[1]),RZ(t[2]),RZ(t[3]))|MZ(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 LZ=(e,t,n)=>{if(YX.fun(e))return e;if(YX.arr(e))return LZ({range:e,output:t,extrapolate:n});if(YX.str(e.output[0]))return tZ(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 DZ=1.70158,zZ=1.525*DZ,FZ=DZ+1,jZ=2*Math.PI/3,VZ=2*Math.PI/4.5,HZ=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},$Z={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=>FZ*e*e*e-DZ*e*e,easeOutBack:e=>1+FZ*Math.pow(e-1,3)+DZ*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-zZ)/2:(Math.pow(2*e-2,2)*((zZ+1)*(2*e-2)+zZ)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*jZ),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*jZ)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*VZ)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*VZ)/2+1,easeInBounce:e=>1-HZ(1-e),easeOutBounce:HZ,easeInOutBounce:e=>e<.5?(1-HZ(1-2*e))/2:(1+HZ(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)}},UZ=Symbol.for("FluidValue.get"),WZ=Symbol.for("FluidValue.observers"),KZ=e=>Boolean(e&&e[UZ]),GZ=e=>e&&e[UZ]?e[UZ]():e,qZ=e=>e[WZ]||null;function YZ(e,t){const n=e[WZ];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var XZ=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ZZ(this,e)}},ZZ=(e,t)=>tQ(e,UZ,t);function QZ(e,t){if(e[UZ]){let n=e[WZ];n||tQ(e,WZ,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function JZ(e,t){const n=e[WZ];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[WZ]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eQ,tQ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),nQ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rQ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,oQ=new RegExp(`(${nQ.source})(%|[a-z]+)`,"i"),iQ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,aQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sQ=e=>{const[t,n]=lQ(e);if(!t||oZ())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&&aQ.test(n)?sQ(n):n||e},lQ=e=>{const t=aQ.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},cQ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,uQ=e=>{eQ||(eQ=iZ?new RegExp(`(${Object.keys(iZ).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>GZ(e).replace(aQ,sQ).replace(rQ,BZ).replace(eQ,BZ))),n=t.map((e=>e.match(nQ).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=>LZ({...e,output:t})));return e=>{const n=!oQ.test(t[0])&&t.find((e=>oQ.test(e)))?.replace(nQ,"");let r=0;return t[0].replace(nQ,(()=>`${o[r++](e)}${n||""}`)).replace(iQ,cQ)}},dQ="react-spring: ",fQ=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${dQ}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},pQ=fQ(console.warn);var mQ=fQ(console.warn);function hQ(e){return YX.str(e)&&("#"==e[0]||/\d/.test(e)||!oZ()&&aQ.test(e)||e in(iZ||{}))}var gQ=oZ()?Ir.useEffect:Ir.useLayoutEffect,vQ=()=>{const e=(0,Ir.useRef)(!1);return gQ((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function bQ(){const e=(0,Ir.useState)()[1],t=vQ();return()=>{t.current&&e(Math.random())}}var yQ=e=>(0,Ir.useEffect)(e,kQ),kQ=[];function wQ(e){const t=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>{t.current=e})),t.current}var _Q=Symbol.for("Animated:node"),EQ=e=>e&&e[_Q],xQ=(e,t)=>{return n=e,r=_Q,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},SQ=e=>e&&e[_Q]&&e[_Q].getPayload(),CQ=class{constructor(){xQ(this,this)}getPayload(){return this.payload||[]}},IQ=class extends CQ{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,YX.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new IQ(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return YX.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,YX.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},TQ=class extends IQ{constructor(e){super(0),this._string=null,this._toString=LZ({output:[e,e]})}static create(e){return new TQ(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(YX.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=LZ({output:[this.getValue(),e]})),this._value=0,super.reset()}},PQ={dependencies:null},NQ=class extends CQ{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return QX(this.source,((n,r)=>{var o;(o=n)&&o[_Q]===o?t[r]=n.getValue(e):KZ(n)?t[r]=GZ(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ZX(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return QX(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){PQ.dependencies&&KZ(e)&&PQ.dependencies.add(e);const t=SQ(e);t&&ZX(t,(e=>this.add(e)))}},OQ=class extends NQ{constructor(e){super(e)}static create(e){return new OQ(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(AQ)),!0)}};function AQ(e){return(hQ(e)?TQ:IQ).create(e)}function MQ(e){const t=EQ(e);return t?t.constructor:YX.arr(e)?OQ:hQ(e)?TQ:IQ}var RQ=(e,t)=>{const n=!YX.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Ir.forwardRef)(((r,o)=>{const i=(0,Ir.useRef)(null),a=n&&(0,Ir.useCallback)((e=>{i.current=function(e,t){e&&(YX.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,l]=function(e,t){const n=new Set;PQ.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new NQ(e),PQ.dependencies=null,[e,n]}(r,t),c=bQ(),u=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new BQ(u,l),f=(0,Ir.useRef)();gQ((()=>(f.current=d,ZX(l,(e=>QZ(e,d))),()=>{f.current&&(ZX(f.current.deps,(e=>JZ(e,f.current))),OX.cancel(f.current.update))}))),(0,Ir.useEffect)(u,[]),yQ((()=>()=>{const e=f.current;ZX(e.deps,(t=>JZ(t,e)))}));const p=t.getComponentProps(s.getValue());return Ir.createElement(e,{...p,ref:a})}))},BQ=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&OX.write(this.update)}};var LQ=Symbol.for("AnimatedComponent"),DQ=e=>YX.str(e)?e:e&&YX.str(e.displayName)?e.displayName:YX.fun(e)&&e.name||null;function zQ(e,...t){return YX.fun(e)?e(...t):e}var FQ=(e,t)=>!0===e||!!(t&&e&&(YX.fun(e)?e(t):JX(e).includes(t))),jQ=(e,t)=>YX.obj(e)?t&&e[t]:e,VQ=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,HQ=e=>e,$Q=(e,t=HQ)=>{let n=UQ;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);YX.und(n)||(r[o]=n)}return r},UQ=["config","onProps","onStart","onChange","onPause","onResume","onRest"],WQ={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 KQ(e){const t=function(e){const t={};let n=0;if(QX(e,((e,r)=>{WQ[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return QX(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function GQ(e){return e=GZ(e),YX.arr(e)?e.map(GQ):hQ(e)?PX.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function qQ(e){for(const t in e)return!0;return!1}function YQ(e){return YX.fun(e)||YX.arr(e)&&YX.obj(e[0])}function XQ(e,t){e.ref?.delete(e),t?.delete(e)}function ZQ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var QQ={tension:170,friction:26,mass:1,damping:1,easing:$Z.linear,clamp:!1},JQ=class{constructor(){this.velocity=0,Object.assign(this,QQ)}};function eJ(e,t){if(YX.und(t.decay)){const n=!YX.und(t.tension)||!YX.und(t.friction);!n&&YX.und(t.frequency)&&YX.und(t.damping)&&YX.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var tJ=[],nJ=class{constructor(){this.changed=!1,this.values=tJ,this.toValues=null,this.fromValues=tJ,this.config=new JQ,this.immediate=!1}};function rJ(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=FQ(n.cancel??r?.cancel,t);if(u)p();else{YX.und(n.pause)||(o.paused=FQ(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||FQ(e,t)),l=zQ(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-OX.now()}function f(){l>0&&!PX.skipAnimation?(o.delayed=!0,c=OX.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 oJ=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?sJ(e.get()):t.every((e=>e.noop))?iJ(e.get()):aJ(e.get(),t.every((e=>e.finished))),iJ=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),aJ=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),sJ=e=>({value:e,cancelled:!0,finished:!1});function lJ(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=$Q(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)&&sJ(r)||o!==n.asyncId&&aJ(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const i=new uJ,a=new dJ;return(async()=>{if(PX.skipAnimation)throw cJ(n),a.result=aJ(r,!1),d(a),a;p(i);const s=YX.obj(e)?{...e}:{...t,to:e};s.parentId=o,QX(c,((e,t)=>{YX.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(PX.skipAnimation)return cJ(n),aJ(r,!1);try{let t;t=YX.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=aJ(r.get(),!0,!1)}catch(e){if(e instanceof uJ)h=e.result;else{if(!(e instanceof dJ))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 YX.fun(a)&&OX.batchedUpdates((()=>{a(h,r,r.item)})),h})():l}function cJ(e,t){eZ(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var uJ=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.")}},dJ=class extends Error{constructor(){super("SkipAnimationSignal")}},fJ=e=>e instanceof mJ,pJ=1,mJ=class extends XZ{constructor(){super(...arguments),this.id=pJ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=EQ(this);return e&&e.getValue()}to(...e){return PX.to(this,e)}interpolate(...e){return pQ(`${dQ}The "interpolate" function is deprecated in v9 (use "to" instead)`),PX.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){YZ(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pZ.sort(this),YZ(this,{type:"priority",parent:this,priority:e})}},hJ=Symbol.for("SpringPhase"),gJ=e=>(1&e[hJ])>0,vJ=e=>(2&e[hJ])>0,bJ=e=>(4&e[hJ])>0,yJ=(e,t)=>t?e[hJ]|=3:e[hJ]&=-3,kJ=(e,t)=>t?e[hJ]|=4:e[hJ]&=-5,wJ=class extends mJ{constructor(e,t){if(super(),this.animation=new nJ,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,!YX.und(e)||!YX.und(t)){const n=YX.obj(e)?{...e}:{...t,from:e};YX.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(vJ(this)||this._state.asyncTo)||bJ(this)}get goal(){return GZ(this.animation.to)}get velocity(){const e=EQ(this);return e instanceof IQ?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return gJ(this)}get isAnimating(){return vJ(this)}get isPaused(){return bJ(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=SQ(r.to);!a&&KZ(r.to)&&(o=JX(GZ(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==TQ?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=YX.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(YX.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=!YX.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=EQ(this),l=s.getValue();if(t){const e=GZ(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 OX.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(vJ(this)){const{to:e,config:t}=this.animation;OX.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 YX.und(e)?(n=this.queue||[],this.queue=[]):n=[YX.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>oJ(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),cJ(this._state,e&&this._lastCallId),OX.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=YX.obj(n)?n[t]:n,(null==n||YQ(n))&&(n=void 0),r=YX.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return gJ(this)||(e.reverse&&([n,r]=[r,n]),r=GZ(r),YX.und(r)?EQ(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,$Q(e,((e,t)=>/^on/.test(t)?jQ(e,n):e))),TJ(this,e,"onProps"),PJ(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 rJ(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{bJ(this)||(kJ(this,!0),rZ(i.pauseQueue),PJ(this,"onPause",aJ(this,_J(this,this.animation.to)),this))},resume:()=>{bJ(this)&&(kJ(this,!1),vJ(this)&&this._resume(),rZ(i.resumeQueue),PJ(this,"onResume",aJ(this,_J(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=EJ(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(sJ(this));const r=!YX.und(e.to),o=!YX.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(sJ(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&&!YX.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const f=!XX(d,c);f&&(s.from=d),d=GZ(d);const p=!XX(u,l);p&&this._focus(u);const m=YQ(t.to),{config:h}=s,{decay:g,velocity:v}=h;(r||o)&&(h.velocity=0),t.config&&!m&&function(e,t,n){n&&(eJ(n={...n},t),t={...n,...t}),eJ(e,t),Object.assign(e,t);for(const t in QQ)null==e[t]&&(e[t]=QQ[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;YX.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,zQ(t.config,i),t.config!==a.config?zQ(a.config,i):void 0);let b=EQ(this);if(!b||YX.und(u))return n(aJ(this,!0));const y=YX.und(t.reset)?o&&!t.default:!YX.und(d)&&FQ(t.reset,i),k=y?d:this.get(),w=GQ(u),_=YX.num(w)||YX.arr(w)||hQ(w),E=!m&&(!_||FQ(a.immediate||t.immediate,i));if(p){const e=MQ(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=KZ(u),C=!1;if(!S){const e=y||!gJ(this)&&f;(p||e)&&(C=XX(GQ(k),w),S=!C),(XX(s.immediate,E)||E)&&XX(h.decay,g)&&XX(h.velocity,v)||(S=!0)}if(C&&vJ(this)&&(s.changed&&!y?S=!0:S||this._stop(l)),!m&&((S||KZ(l))&&(s.values=b.getPayload(),s.toValues=KZ(u)?null:x==TQ?[1]:JX(w)),s.immediate!=E&&(s.immediate=E,E||y||this._set(l)),S)){const{onRest:e}=s;ZX(IJ,(e=>TJ(this,t,e)));const r=aJ(this,_J(this,l));rZ(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&OX.batchedUpdates((()=>{s.changed=!y,e?.(r,this),y?zQ(a.onRest,r):s.onStart?.(r,this)}))}y&&this._set(k),m?n(lJ(t.to,t,this._state,this)):S?this._start():vJ(this)&&!p?this._pendingCalls.add(n):n(iJ(k))}_focus(e){const t=this.animation;e!==t.to&&(qZ(this)&&this._detach(),t.to=e,qZ(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;KZ(t)&&(QZ(t,this),fJ(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;KZ(e)&&JZ(e,this)}_set(e,t=!0){const n=GZ(e);if(!YX.und(n)){const e=EQ(this);if(!e||!XX(n,e.getValue())){const r=MQ(n);e&&e.constructor==r?e.setValue(n):xQ(this,r.create(n)),e&&OX.batchedUpdates((()=>{this._onChange(n,t)}))}}return EQ(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,PJ(this,"onStart",aJ(this,_J(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zQ(this.animation.onChange,e,this)),zQ(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;EQ(this).reset(GZ(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),vJ(this)||(yJ(this,!0),bJ(this)||this._resume())}_resume(){PX.skipAnimation?this.finish():pZ.start(this)}_stop(e,t){if(vJ(this)){yJ(this,!1);const n=this.animation;ZX(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),YZ(this,{type:"idle",parent:this});const r=t?sJ(this.get()):aJ(this.get(),_J(this,e??n.to));rZ(this._pendingCalls,r),n.changed&&(n.changed=!1,PJ(this,"onRest",r,this))}}};function _J(e,t){const n=GQ(t);return XX(GQ(e.get()),n)}function EJ(e,t=e.loop,n=e.to){const r=zQ(t);if(r){const o=!0!==r&&KQ(r),i=(o||e).reverse,a=!o||o.reset;return xJ({...e,loop:t,default:!1,pause:void 0,to:!i||YQ(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function xJ(e){const{to:t,from:n}=e=KQ(e),r=new Set;return YX.obj(t)&&CJ(t,r),YX.obj(n)&&CJ(n,r),e.keys=r.size?Array.from(r):null,e}function SJ(e){const t=xJ(e);return YX.und(t.default)&&(t.default=$Q(t)),t}function CJ(e,t){QX(e,((e,n)=>null!=e&&t.add(n)))}var IJ=["onStart","onRest","onChange","onPause","onResume"];function TJ(e,t,n){e.animation[n]=t[n]!==VQ(t,n)?jQ(t[n],e.key):void 0}function PJ(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var NJ=["onStart","onChange","onRest"],OJ=1,AJ=class{constructor(e,t){this.id=OJ++,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];YX.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xJ(e)),this}start(e){let{queue:t}=this;return e?t=JX(e).map(xJ):this.queue=[],this._flush?this._flush(this,t):(FJ(this,t),MJ(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ZX(JX(t),(t=>n[t].stop(!!e)))}else cJ(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(YX.und(e))this.start({pause:!0});else{const t=this.springs;ZX(JX(e),(e=>t[e].pause()))}return this}resume(e){if(YX.und(e))this.start({pause:!1});else{const t=this.springs;ZX(JX(e),(e=>t[e].resume()))}return this}each(e){QX(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,eZ(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&&eZ(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,eZ(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)}OX.onFrame(this._onFrame)}};function MJ(e,t){return Promise.all(t.map((t=>RJ(e,t)))).then((t=>oJ(e,t)))}async function RJ(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=YX.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=YX.arr(o)||YX.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):ZX(NJ,(n=>{const r=t[n];if(YX.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,rZ(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===VQ(t,"cancel");(u||p&&d.asyncId)&&f.push(rJ(++e._lastAsyncId,{props:t,state:d,actions:{pause:qX,resume:qX,start(t,n){p?(cJ(d,e._lastAsyncId),n(sJ(e))):(t.onRest=s,n(lJ(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=oJ(e,await Promise.all(f));if(a&&m.finished&&(!n||!m.noop)){const n=EJ(t,a,o);if(n)return FJ(e,[n]),RJ(e,n,!0)}return l&&OX.batchedUpdates((()=>l(m,e,e.item))),m}function BJ(e,t){const n={...e.springs};return t&&ZX(JX(t),(e=>{YX.und(e.keys)&&(e=xJ(e)),YX.obj(e.to)||(e={...e,to:void 0}),zJ(n,e,(e=>DJ(e)))})),LJ(e,n),n}function LJ(e,t){QX(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,QZ(t,e))}))}function DJ(e,t){const n=new wJ;return n.key=e,t&&QZ(n,t),n}function zJ(e,t,n){t.keys&&ZX(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function FJ(e,t){ZX(t,(t=>{zJ(e.springs,t,(t=>DJ(t,e)))}))}var jJ=({children:e,...t})=>{const n=(0,Ir.useContext)(VJ),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,Ir.useState)((()=>({inputs:t,result:e()}))),r=(0,Ir.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,Ir.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=VJ;return Ir.createElement(i,{value:t},e)},VJ=function(e,t){return Object.assign(e,Ir.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(jJ,{});jJ.Provider=VJ.Provider,jJ.Consumer=VJ.Consumer;var HJ=()=>{const e=[],t=function(t){mQ(`${dQ}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 ZX(e,((e,o)=>{if(YX.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 ZX(e,(e=>e.pause(...arguments))),this},t.resume=function(){return ZX(e,(e=>e.resume(...arguments))),this},t.set=function(t){ZX(e,((e,n)=>{const r=YX.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return ZX(e,((e,r)=>{if(YX.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 ZX(e,(e=>e.stop(...arguments))),this},t.update=function(t){return ZX(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return YX.fun(e)?e(n,t):e};return t._getProps=n,t};function $J(e,t,n){const r=YX.fun(t)&&t;r&&!n&&(n=[]);const o=(0,Ir.useMemo)((()=>r||3==arguments.length?HJ():void 0),[]),i=(0,Ir.useRef)(0),a=bQ(),s=(0,Ir.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=BJ(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?MJ(e,t):new Promise((r=>{LJ(e,n),s.queue.push((()=>{r(MJ(e,t))})),a()}))}})),[]),l=(0,Ir.useRef)([...s.ctrls]),c=[],u=wQ(e)||0;function d(e,n){for(let o=e;o<n;o++){const e=l.current[o]||(l.current[o]=new AJ(null,s.flush)),n=r?r(o,e):t[o];n&&(c[o]=SJ(n))}}(0,Ir.useMemo)((()=>{ZX(l.current.slice(e,u),(e=>{XQ(e,o),e.stop(!0)})),l.current.length=e,d(u,e)}),[e]),(0,Ir.useMemo)((()=>{d(0,Math.min(u,e))}),n);const f=l.current.map(((e,t)=>BJ(e,c[t]))),p=(0,Ir.useContext)(jJ),m=wQ(p),h=p!==m&&qQ(p);gQ((()=>{i.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],ZX(e,(e=>e()))),ZX(l.current,((e,t)=>{o?.add(e),h&&e.start({default:p});const n=c[t];n&&(ZQ(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),yQ((()=>()=>{ZX(s.ctrls,(e=>e.stop(!0)))}));const g=f.map((e=>({...e})));return o?[g,o]:g}function UJ(e,t){const n=YX.fun(e),[[r],o]=$J(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var WJ=class extends mJ{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=LZ(...t);const n=this._get(),r=MQ(n);xQ(this,r.create(n))}advance(e){const t=this._get();XX(t,this.get())||(EQ(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&GJ(this._active)&&qJ(this)}_get(){const e=YX.arr(this.source)?this.source.map(GZ):JX(GZ(this.source));return this.calc(...e)}_start(){this.idle&&!GJ(this._active)&&(this.idle=!1,ZX(SQ(this),(e=>{e.done=!1})),PX.skipAnimation?(OX.batchedUpdates((()=>this.advance())),qJ(this)):pZ.start(this))}_attach(){let e=1;ZX(JX(this.source),(t=>{KZ(t)&&QZ(t,this),fJ(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){ZX(JX(this.source),(e=>{KZ(e)&&JZ(e,this)})),this._active.clear(),qJ(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=JX(this.source).reduce(((e,t)=>Math.max(e,(fJ(t)?t.priority:0)+1)),0))}};function KJ(e){return!1!==e.idle}function GJ(e){return!e.size||Array.from(e).every(KJ)}function qJ(e){e.idle||(e.idle=!0,ZX(SQ(e),(e=>{e.done=!0})),YZ(e,{type:"idle",parent:e}))}PX.assign({createStringInterpolator:uQ,to:(e,t)=>new WJ(e,t)});pZ.advance;var YJ=/^--/;function XJ(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||YJ.test(e)||QJ.hasOwnProperty(e)&&QJ[e]?(""+t).trim():t+"px"}var ZJ={};var QJ={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},JJ=["Webkit","Ms","Moz","O"];QJ=Object.keys(QJ).reduce(((e,t)=>(JJ.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),QJ);var e0=/^(matrix|translate|scale|rotate|skew)/,t0=/^(translate)/,n0=/^(rotate|skew)/,r0=(e,t)=>YX.num(e)&&0!==e?e+t:e,o0=(e,t)=>YX.arr(e)?e.every((e=>o0(e,t))):YX.num(e)?e===t:parseFloat(e)===t,i0=class extends NQ{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=>r0(e,"px"))).join(",")})`,o0(e,0)]))),QX(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(e0.test(t)){if(delete r[t],YX.und(e))return;const n=t0.test(t)?"px":n0.test(t)?"deg":"";o.push(JX(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${r0(o,n)})`,o0(o,0)]:e=>[`${t}(${e.map((e=>r0(e,n))).join(",")})`,o0(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new a0(o,i)),super(r)}},a0=class extends XZ{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 ZX(this.inputs,((n,r)=>{const o=GZ(n[0]),[i,a]=this.transforms[r](YX.arr(o)?o:n.map(GZ));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&ZX(this.inputs,(e=>ZX(e,(e=>KZ(e)&&QZ(e,this)))))}observerRemoved(e){0==e&&ZX(this.inputs,(e=>ZX(e,(e=>KZ(e)&&JZ(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),YZ(this,e)}};PX.assign({batchedUpdates:df.unstable_batchedUpdates,createStringInterpolator:uQ,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 s0=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new NQ(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=DQ(e)||"Anonymous";return(e=YX.str(e)?i[e]||(i[e]=RQ(e,o)):e[LQ]||(e[LQ]=RQ(e,o))).displayName=`Animated(${t})`,e};return QX(e,((t,n)=>{YX.arr(e)&&(n=DQ(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:ZJ[t]||(ZJ[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=XJ(t,r[t]);YJ.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 i0(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n});s0.animated;const l0=e=>e+1,c0=e=>({top:e.offsetTop,left:e.offsetLeft});const u0=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:r}){const o=(0,Ir.useRef)(),i=Vq()||!n,[a,s]=(0,Ir.useReducer)(l0,0),[l,c]=(0,Ir.useReducer)(l0,0),[u,d]=(0,Ir.useState)({x:0,y:0}),f=(0,Ir.useMemo)((()=>o.current?c0(o.current):null),[r]),p=(0,Ir.useMemo)((()=>{if(!t||!o.current)return()=>{};const e=lX(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,Ir.useLayoutEffect)((()=>{a&&c()}),[a]),(0,Ir.useLayoutEffect)((()=>{if(!f)return;if(i)return void p();o.current.style.transform=void 0;const e=c0(o.current);s(),d({x:Math.round(f.left-e.left),y:Math.round(f.top-e.top)})}),[r]),UJ({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 d0(e){return"INPUT"===e?.nodeName}function f0(e){return d0(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 p0(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function m0(e){if(!e)return!1;const{tagName:t}=e;return p0(e)||"BUTTON"===t||"SELECT"===t}function h0(e,t,n,r){const o=r.style.zIndex,i=r.style.position,{position:a="static"}=sX(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 g0(e){return"rtl"===sX(e).direction}function v0(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 b0(e,t,n){if(!e)return;if(e.focus(),p0(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=v0(e,t,(()=>function(e,t,n){const{ownerDocument:r}=e,o=g0(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),h0(r,n,o?i.bottom-1:i.top+1,e)}(e,t,n)));if(!r)return;const{ownerDocument:o}=e,{defaultView:i}=o;zs();const a=i.getSelection();zs(),a.removeAllRanges(),a.addRange(r)}function y0(e,t){return b0(e,t,void 0)}const k0=".block-editor-block-list__block",w0=".block-list-appender",_0=".block-editor-button-block-appender";function E0(e,t){return e.closest(k0)===t.closest(k0)}function x0(e,t){return t.closest([k0,w0,_0].join(","))===e}function S0(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(k0);return t?t.id.slice(6):void 0}function C0(e){const t=(0,Ir.useRef)(),n=function(e){return DC((t=>{const{getSelectedBlocksInitialCaretPosition:n,__unstableGetEditorMode:r,isBlockSelected:o}=t(XO);if(o(e)&&"edit"===r())return n()}),[e])}(e),{isBlockSelected:r,isMultiSelecting:o}=DC(XO);return(0,Ir.useEffect)((()=>{if(!r(e)||o())return;if(null==n)return;if(!t.current)return;const{ownerDocument:i}=t.current;if(x0(t.current,i.activeElement))return;const a=Hx.tabbable.find(t.current).filter((e=>f0(e))),s=-1===n,l=a[s?a.length-1:0]||t.current;if(x0(t.current,l)){if(!t.current.getAttribute("contenteditable")){const e=Hx.tabbable.findNext(t.current);if(e&&x0(t.current,e)&&m0(e))return void e.focus()}y0(l,s)}else t.current.focus()}),[n,e]),t}function I0(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function T0(){const e=DC((e=>{const{getSettings:t}=e(XO);return t().outlineMode}),[]);return $x((t=>{if(e)return t.addEventListener("mouseout",I0),t.addEventListener("mouseover",I0),()=>{t.removeEventListener("mouseout",I0),t.removeEventListener("mouseover",I0),t.classList.remove("is-hovered")}}),[e])}function P0(e){return DC((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:r,isBlockSelected:o,isBlockMultiSelected:i,getBlockName:a,getSettings:s,hasSelectedInnerBlock:l,isTyping:c,__unstableIsFullySelected:u,__unstableSelectionHasUnmergeableBlock:d}=t(XO),{outlineMode:f}=s(),p=n(e),m=o(e),h=a(e),g=l(e,!0),v=i(e);return $l()({"is-selected":m,"is-highlighted":r(e),"is-multi-selected":v,"is-partially-selected":v&&!u()&&!d(),"is-reusable":Hr(zr(h)),"is-dragging":p,"has-child-selected":g,"remove-outline":m&&f&&c()})}),[e])}function N0(e){return DC((t=>{const n=t(XO).getBlockName(e),r=zr(n);if(r?.apiVersion>1)return pa(n)}),[e])}function O0(e){return DC((t=>{const{getBlockName:n,getBlockAttributes:r}=t(XO),o=r(e);if(!o?.className)return;const i=zr(n(e));return i?.apiVersion>1?o.className:void 0}),[e])}function A0(e){return DC((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:r,getBlockName:o,getBlockRootClientId:i,isBlockSelected:a}=t(XO);if(!a(e))return;const s=n();return s?$l()("is-block-moving-mode",{"can-insert-moving-block":r(o(s),i(e))}):void 0}),[e])}function M0(e){const{isBlockSelected:t}=DC(XO),{selectBlock:n,selectionChange:r}=Iq(XO);return $x((o=>{function i(i){o.parentElement.closest('[contenteditable="true"]')||(t(e)?i.target.isContentEditable||r(e):x0(o,i.target)&&n(e))}return o.addEventListener("focusin",i),()=>{o.removeEventListener("focusin",i)}}),[t,n])}function R0(e){const t=DC((t=>t(XO).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:r}=DC(XO),{insertDefaultBlock:o,removeBlock:i}=Iq(XO);return $x((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!==px&&s!==dx&&s!==yx||l!==a||f0(l)||(t.preventDefault(),s===px?o({},n(e),r(e)+1):i(e))}function l(e){e.preventDefault()}}),[e,t,n,r,o,i])}function B0(e){const{isNavigationMode:t,isBlockSelected:n}=DC(XO),{setNavigationMode:r,selectBlock:o}=Iq(XO);return $x((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 L0=(0,Ir.createContext)({refs:new Map,callbacks:new Map});function D0({children:e}){const t=(0,Ir.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,Ir.createElement)(L0.Provider,{value:t},e)}function z0(e){const{refs:t,callbacks:n}=(0,Ir.useContext)(L0),r=(0,Ir.useRef)();return(0,Ir.useLayoutEffect)((()=>(t.set(r,e),()=>{t.delete(r)})),[e]),$x((t=>{r.current=t,n.forEach(((n,r)=>{e===n&&r(t)}))}),[e])}function F0(e){const{refs:t}=(0,Ir.useContext)(L0),n=(0,Ir.useRef)();return n.current=e,(0,Ir.useMemo)((()=>({get current(){let e=null;for(const[r,o]of t.entries())o===n.current&&r.current&&(e=r.current);return e}})),[])}function j0(e){const{callbacks:t}=(0,Ir.useContext)(L0),n=F0(e),[r,o]=(0,Ir.useState)(null);return(0,Ir.useLayoutEffect)((()=>{if(e)return t.set(o,e),()=>{t.delete(o)}}),[e]),n.current||r}function V0(){const e=(0,Ir.useContext)(O9);return $x((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}const H0=200;function $0(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:r,wrapperProps:o={},isAligned:i}=(0,Ir.useContext)(Tq),{index:a,mode:s,name:l,blockApiVersion:c,blockTitle:u,isPartOfSelection:d,adjustScrolling:f,enableAnimation:p,isSubtreeDisabled:m}=DC((e=>{const{getBlockAttributes:t,getBlockIndex:r,getBlockMode:o,getBlockName:i,isTyping:a,getGlobalBlockCount:s,isBlockSelected:l,isBlockMultiSelected:c,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:d,isBlockSubtreeDisabled:f}=qO(e(XO)),{getActiveBlockVariation:p}=e(wi),m=l(n),h=c(n)||u(n),g=i(n),v=zr(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()<=H0,isSubtreeDisabled:f(n)}}),[n]),h=function(e){return DC((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(XO);return n(e)}),[e])}(n),g=An(Un("Block: %s"),u),v="html"!==s||t?"":"-visual",b=$g([e.ref,C0(n),z0(n),M0(n),R0(n),B0(n),T0(),V0(),u0({isSelected:d,adjustScrolling:f,enableAnimation:p,triggerAnimationOnChange:a}),IX({isDisabled:!h})]),y=tA();return c<2&&n===y.clientId&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&im(`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:$l()($l()("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":h}),r,e.className,o.className,P0(n),N0(n),O0(n),A0(n)),style:{...o.style,...e.style}}}function U0({children:e,isHtml:t,...n}){return(0,Ir.createElement)("div",{...$0(n,{__unstableIsHtml:t})},e)}$0.save=function e(t={}){const{blockType:n,attributes:r}=ha;return e.skipFilters?t:Xt("blocks.getSaveContent.extraProps",{...t},n,r)};const W0=qY(((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:r,getBlockMode:o,isSelectionEnabled:i,getTemplateLock:a,__unstableGetBlockWithoutInnerBlocks:s,canRemoveBlock:l,canMoveBlock:c}=e(XO),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}})),K0=ZY(((e,t,n)=>{const{updateBlockAttributes:r,insertBlocks:o,mergeBlocks:i,replaceBlocks:a,toggleSelection:s,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:c,removeBlock:u}=e(XO);return{setAttributes(e){const{getMultiSelectedBlockClientIds:o}=n.select(XO),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(XO),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(XO);function b(e,t=!0){const r=g(e),i=m(e),[a]=i;1===i.length&&fo(d(a))?u(e):n.batch((()=>{if(v(p(a),r))c([a],e,r,h(e));else{const n=lo(d(a),Dr());n&&n.length&&(o(n,h(e),r,t),u(a,!1))}!m(e).length&&fo(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&&!po(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)}}})),G0=Pe(GY,W0,K0,QY((({block:e})=>!!e)),KY("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}=DC((e=>{const{getSettings:t,__unstableGetTemporarilyEditingAsBlocks:n,getBlockEditingMode:r}=e(XO);return{themeSupportsLayout:t().supportsLayout,isTemporarilyEditingAsBlocks:n()===o,blockEditingMode:r(o)}}),[o]),{removeBlock:_}=Iq(XO),E=(0,Ir.useCallback)((()=>_(o)),[o]),x=wH()||{};let S=(0,Ir.createElement)(aX,{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=zr(c);"disabled"===w&&(f={...f,tabIndex:-1}),C?.getEditWrapperProps&&(f=function(e,t){const n={...e,...t};return e?.className&&t?.className&&(n.className=$l()(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,Ir.createElement)("div",{className:"wp-block","data-align":f["data-align"]},S)),u)T="html"===t?(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("div",{style:{display:"none"}},S),(0,Ir.createElement)(U0,{isHtml:!0},(0,Ir.createElement)(CX,{clientId:o}))):C?.apiVersion>1?S:(0,Ir.createElement)(U0,{...f},S);else{const t=e?fa(e):va(C,d);T=(0,Ir.createElement)(U0,{className:"has-warning"},(0,Ir.createElement)(kX,{clientId:o}),(0,Ir.createElement)(Li,null,JY(t)))}const{"data-align":P,...N}=null!==(b=f)&&void 0!==b?b:{},O={clientId:o,className:$l()({"is-editing-disabled":"disabled"===w,"is-content-locked-temporarily-editing-as-blocks":k},P&&y&&`align${P}`,s),wrapperProps:N,isAligned:I},A=(0,Ir.useMemo)((()=>O),Object.values(O));return(0,Ir.createElement)(Tq.Provider,{value:A},(0,Ir.createElement)(xX,{fallback:(0,Ir.createElement)(U0,{className:"has-warning"},(0,Ir.createElement)(_X,null))},T))})),q0=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),Y0=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 X0=(0,Ir.forwardRef)((function({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t=!1,className:n,onChange:r,onKeyDown:o,value:i,label:a,placeholder:s=Un("Search"),hideLabelFromVision:l=!0,help:c,onClose:u,size:d="default",...f},p){const m=(0,Ir.useRef)(),h=`components-search-control-${Gl(X0)}`;return(0,Ir.createElement)(DH,{__nextHasNoMarginBottom:e,label:a,id:h,hideLabelFromVision:l,help:c,className:$l()(n,"components-search-control",{"is-next-40px-default-size":t,"is-size-compact":"compact"===d})},(0,Ir.createElement)("div",{className:"components-search-control__input-wrapper"},(0,Ir.createElement)("input",{...f,ref:$g([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,Ir.createElement)("div",{className:"components-search-control__icon"},u?(0,Ir.createElement)(ug,{__next40pxDefaultSize:t,icon:q0,label:Un("Close search"),onClick:u,size:d}):i?(0,Ir.createElement)(ug,{__next40pxDefaultSize:t,icon:q0,label:Un("Reset search"),onClick:()=>{r(""),m.current?.focus()},size:d}):(0,Ir.createElement)(SM,{icon:Y0}))))})),Z0=X0;let Q0,J0,e1,t1;const n1=/<(\/)?(\w+)\s*(\/)?>/g;function r1(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const o1=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,Ir.isValidElement)(e)))};function i1(e){const t=function(){const e=n1.exec(Q0);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=t1.length,s=o>J0?J0:null;if(!e[r])return a1(),!1;switch(n){case"no-more-tokens":if(0!==a){const{leadingTextStart:e,tokenStart:t}=t1.pop();e1.push(Q0.substr(e,t))}return a1(),!1;case"self-closed":return 0===a?(null!==s&&e1.push(Q0.substr(s,o-s)),e1.push(e[r]),J0=o+i,!0):(s1(r1(e[r],o,i)),J0=o+i,!0);case"opener":return t1.push(r1(e[r],o,i,o+i,s)),J0=o+i,!0;case"closer":if(1===a)return function(e){const{element:t,leadingTextStart:n,prevOffset:r,tokenStart:o,children:i}=t1.pop(),a=e?Q0.substr(r,e-r):Q0.substr(r);a&&i.push(a);null!==n&&e1.push(Q0.substr(n,o-n));e1.push((0,Ir.cloneElement)(t,null,...i))}(o),J0=o+i,!0;const t=t1.pop(),n=Q0.substr(t.prevOffset,o-t.prevOffset);t.children.push(n),t.prevOffset=o+i;const l=r1(t.element,t.tokenStart,t.tokenLength,o+i);return l.children=t.children,s1(l),J0=o+i,!0;default:return a1(),!1}}function a1(){const e=Q0.length-J0;0!==e&&e1.push(Q0.substr(J0,e))}function s1(e){const{element:t,tokenStart:n,tokenLength:r,prevOffset:o,children:i}=e,a=t1[t1.length-1],s=Q0.substr(a.prevOffset,n-a.prevOffset);s&&a.children.push(s),a.children.push((0,Ir.cloneElement)(t,null,...i)),a.prevOffset=o||n+r}const l1=(e,t)=>{if(Q0=e,J0=0,e1=[],t1=[],n1.lastIndex=0,!o1(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(i1(t));return(0,Ir.createElement)(Ir.Fragment,null,...e1)},c1=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 u1=function(e){const{children:t}=e;return(0,Ir.createElement)("div",{className:"components-tip"},(0,Ir.createElement)(SM,{icon:c1}),(0,Ir.createElement)("p",null,t))},d1=[l1(Un("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,Ir.createElement)("kbd",null)}),l1(Un("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,Ir.createElement)("kbd",null)}),l1(Un("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,Ir.createElement)("kbd",null)}),Un("Drag files into the editor to automatically insert media blocks."),Un("Change a block's type by pressing the block icon on the toolbar.")];const f1=function(){const[e]=(0,Ir.useState)(Math.floor(Math.random()*d1.length));return(0,Ir.createElement)(u1,null,d1[e])},p1=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),m1=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),h1=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 g1=(0,Ir.memo)((function({icon:e,showColors:t=!1,className:n,context:r}){"block-default"===e?.src&&(e={src:h1});const o=(0,Ir.createElement)(rm,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,Ir.createElement)("span",{style:i,className:$l()("block-editor-block-icon",n,{"has-colors":t})},o)}));const v1=function({title:e,icon:t,description:n,blockType:r,className:o}){r&&(sn("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r));const{parentNavBlockClientId:i}=DC((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(XO);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:a}=Iq(XO);return(0,Ir.createElement)("div",{className:$l()("block-editor-block-card",o)},i&&(0,Ir.createElement)(ug,{onClick:()=>a(i),label:Un("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:Gn()?p1:m1,isSmall:!0}),(0,Ir.createElement)(g1,{icon:t,showColors:!0}),(0,Ir.createElement)("div",{className:"block-editor-block-card__content"},(0,Ir.createElement)("h2",{className:"block-editor-block-card__title"},e),(0,Ir.createElement)("span",{className:"block-editor-block-card__description"},n)))},b1=Ul((e=>t=>(0,Ir.createElement)(IC,null,(n=>(0,Ir.createElement)(e,{...t,registry:n})))),"withRegistry"),y1=Ul((e=>b1((({useSubRegistry:t=!0,registry:n,...r})=>{if(!t)return(0,Ir.createElement)(e,{registry:n,...r});const[o,i]=(0,Ir.useState)(null);return(0,Ir.useEffect)((()=>{const e=dn({},n);e.registerStore(KO,YO),i(e)}),[n]),o?(0,Ir.createElement)(TC,{value:o},(0,Ir.createElement)(e,{registry:o,...r})):null}))),"withRegistryProvider"),k1=()=>{};function w1({clientId:e=null,value:t,selection:n,onChange:r=k1,onInput:o=k1}){const i=PC(),{resetBlocks:a,resetSelection:s,replaceInnerBlocks:l,selectBlock:c,setHasControlledInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=i.dispatch(XO),{hasSelectedBlock:f,getBlockName:p,getBlocks:m,getSelectionStart:h,getSelectionEnd:g,getBlock:v}=i.select(XO),b=DC((t=>!e||t(XO).areInnerBlocksControlled(e)),[e]),y=(0,Ir.useRef)({incoming:null,outgoing:[]}),k=(0,Ir.useRef)(!1),w=()=>{t&&(d(),e?i.batch((()=>{u(e,!0);const n=t.map((e=>eo(e)));k.current&&(y.current.incoming=n),d(),l(e,n)})):(k.current&&(y.current.incoming=t),a(t)))},_=(0,Ir.useRef)(o),E=(0,Ir.useRef)(r);(0,Ir.useEffect)((()=>{_.current=o,E.current=r}),[o,r]),(0,Ir.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,Ir.useEffect)((()=>{b||(y.current.outgoing=[],w())}),[b]),(0,Ir.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:r,areInnerBlocksControlled:o}=i.select(XO);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}),XO);return()=>{k.current=!1,c()}}),[i,e]),(0,Ir.useEffect)((()=>()=>{d(),e?(u(e,!1),d(),l(e,[])):a([])}),[])}const _1=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 E1({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 x1(e){return{type:"UNREGISTER_SHORTCUT",name:e}}const S1=[],C1={display:Tx,raw:Cx,ariaLabel:Px};function I1(e,t){return e?e.modifier?C1[t][e.modifier](e.character):e.character:null}function T1(e,t){return e[t]?e[t].keyCombination:null}function P1(e,t,n="display"){return I1(T1(e,t),n)}function N1(e,t){return e[t]?e[t].description:null}function O1(e,t){return e[t]&&e[t].aliases?e[t].aliases:S1}const A1=ot(((e,t)=>[T1(e,t),...O1(e,t)].filter(Boolean)),((e,t)=>[e[t]])),M1=ot(((e,t)=>A1(e,t).map((e=>I1(e,"raw")))),((e,t)=>[e[t]])),R1=ot(((e,t)=>Object.entries(e).filter((([,e])=>e.category===t)).map((([e])=>e))),(e=>[e])),B1=Tt("core/keyboard-shortcuts",{reducer:_1,actions:v,selectors:b});hn(B1);const L1=new Set,D1=e=>{for(const t of L1)t(e)},z1=(0,Ir.createContext)({add:e=>{0===L1.size&&document.addEventListener("keydown",D1),L1.add(e)},delete:e=>{L1.delete(e),0===L1.size&&document.removeEventListener("keydown",D1)}});const{Provider:F1}=z1;function j1(){return null}j1.Register=function(){const{registerShortcut:e}=Iq(B1);return(0,Ir.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:Un("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Un("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Un("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Un("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:Un("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Un("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:Un("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:Un("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Un("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Un("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Un("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};const V1=j1,H1=y1((e=>{const{children:t,settings:n,stripExperimentalSettings:r=!1}=e,{__experimentalUpdateSettings:o}=qO(Iq(XO));return(0,Ir.useEffect)((()=>{o({...n,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})}),[n,r,o]),w1(e),(0,Ir.createElement)(JS,null,(0,Ir.createElement)(V1.Register,null),(0,Ir.createElement)(D0,null,t))}));const $1=(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 U1(e={}){const t=e.onResize,n=(0,Ir.useRef)(void 0);n.current=t;const r=e.round||Math.round,o=(0,Ir.useRef)(),[i,a]=(0,Ir.useState)({width:void 0,height:void 0}),s=(0,Ir.useRef)(!1);(0,Ir.useEffect)((()=>(s.current=!1,()=>{s.current=!0})),[]);const l=(0,Ir.useRef)({width:void 0,height:void 0}),c=function(e,t){const n=(0,Ir.useRef)(null),r=(0,Ir.useRef)(null),o=(0,Ir.useRef)(),i=(0,Ir.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,Ir.useEffect)((()=>{i()}),[i]),(0,Ir.useCallback)((e=>{n.current=e,i()}),[i])}((0,Ir.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=$1(o,i,"inlineSize"),u=$1(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,Ir.useMemo)((()=>({ref:c,width:i.width,height:i.height})),[c,i?i.width:null,i?i.height:null])}function W1(){const{ref:e,width:t,height:n}=U1(),r=(0,Ir.useMemo)((()=>({width:null!=t?t:null,height:null!=n?n:null})),[t,n]);return[(0,Ir.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 K1={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},G1=(0,Ir.createContext)(!1),{Consumer:q1,Provider:Y1}=G1;function X1({className:e,children:t,isDisabled:n=!0,...r}){const o=Hh();return(0,Ir.createElement)(Y1,{value:n},(0,Ir.createElement)("div",{inert:n?"true":void 0,className:n?o(K1,e,"components-disabled"):void 0,...r},t))}X1.Context=G1,X1.Consumer=q1;const Z1=X1;function Q1(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=DC(XO),{clearSelectedBlock:r}=Iq(XO),{clearBlockSelection:o}=e();return $x((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 J1(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:r,getSelectedBlockClientId:o,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:a}=e(XO);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:r(),selectedBlockClientId:o(),initialPosition:i(),isFullSelection:a()}}function e2(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:r,selectedBlockClientId:o,isFullSelection:i}=DC(J1,[]);return $x((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 t2(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;zs();const o=Array.from(r.childNodes).indexOf(t);zs(),(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){zs();const t=n.createTextNode("");(e=e.cloneRange()).insertNode(t),o=e.getClientRects()[0],zs(t.parentNode),t.parentNode.removeChild(t)}return o}function n2(e,t,n=!1){if(p0(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;zs();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;zs(),zs();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=t2(s),d=t2(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=g0(e)?!t:t,m=e.getBoundingClientRect(),h=p?m.left+1:m.right-1,g=t?m.top+1:m.bottom-1,v=v0(e,t,(()=>h0(r,h,g,e)));if(!v)return!1;const b=t2(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 r2(e,t){return n2(e,t,!0)}function o2(e,t){return n2(e,t)}function i2(e,t,n,r){let o,i=Hx.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||!E0(e,e.firstElementChild)||"true"!==e.firstElementChild.getAttribute("contenteditable")){if(!Hx.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 a2(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:r,__unstableIsFullySelected:o}=DC(XO),{selectBlock:i}=Iq(XO);return $x((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===gx,g=c===hx,v=h||g,b=g||c===vx,y=h||c===bx,k=b||y,w=d||f||p||m,_=y?r2:o2,{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===gx||t===bx,{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();zs();const n=t.rangeCount?t.getRangeAt(0):null;return n?t2(n):null}(x)):s=null;const S=g0(u)?!v:v,{keepCaretInsideBlock:C}=n();if(d)(function(e,t){const n=i2(e,t,a);return n&&S0(n)})(u,v)&&_(u,v)&&(a.contentEditable=!0,a.focus());else if(!y||!r2(u,v)||p&&!o2(u,S)||C){if(b&&x.getSelection().isCollapsed&&o2(u,S)&&!C){y0(i2(u,S,a),v),l.preventDefault()}}else{const e=i2(u,v,a,!0);e&&(!function(e,t,n){b0(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 s2(e,t,n){let r=t;do{if(e===r)return!0;r=r[n]}while(r);return!1}function l2(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=DC(XO),{multiSelect:r,selectBlock:o}=Iq(XO),i=function(){const{getAllShortcutKeyCombinations:e}=DC(B1);return function(t,n){return e(t).some((({modifier:e,character:t})=>Nx[e](n,t)))}}();return $x((a=>{function s(s){if(!i("core/block-editor/select-all",s))return;const l=t();if(l.length<2&&!function(e){if(p0(e))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;const{ownerDocument:t}=e,{defaultView:n}=t;zs();const r=n.getSelection();zs();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,zs();const c=a.nodeType===a.TEXT_NODE?a.data.length:a.childNodes.length;return s2(i,e,"firstChild")&&s2(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 c2(e,t){e.contentEditable=t,t&&e.focus()}function u2(){const{startMultiSelect:e,stopMultiSelect:t}=Iq(XO),{isSelectionEnabled:n,hasMultiSelection:r,isDraggingBlocks:o}=DC(XO);return $x((i=>{const{ownerDocument:a}=i,{defaultView:s}=a;let l,c;function u(){t(),s.removeEventListener("mouseup",u),c=s.requestAnimationFrame((()=>{if(r())return;c2(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),c2(i,!0))}return i.addEventListener("mouseout",d),()=>{i.removeEventListener("mouseout",d),s.removeEventListener("mouseup",u),s.cancelAnimationFrame(c)}}),[e,t,n,r])}function d2(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t),t&&e.focus()}function f2(){const{multiSelect:e,selectBlock:t,selectionChange:n}=Iq(XO),{getBlockParents:r,getBlockSelectionStart:o}=DC(XO);return $x((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 d2(n,!1);let c=S0(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(s)),u=S0(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=S0(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 d2(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 p2(){const{selectBlock:e}=Iq(XO),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:r}=DC(XO);return $x((o=>{function i(i){if(!t()||0!==i.button)return;const a=n(),s=S0(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 m2(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:r}=DC(XO),{replaceBlocks:o,__unstableSplitSelection:i,removeBlocks:a,__unstableDeleteSelection:s,__unstableExpandSelection:l}=Iq(XO);return $x((c=>{function u(e){"true"===c.contentEditable&&e.preventDefault()}function d(u){u.defaultPrevented||r()&&(u.keyCode===px?(c.contentEditable=!1,u.preventDefault(),e()?o(t(),Zr(Dr())):i()):u.keyCode===dx||u.keyCode===yx?(c.contentEditable=!1,u.preventDefault(),e()?a(t()):n()?s(u.keyCode===yx):l()):1!==u.key.length||u.metaKey||u.ctrlKey||(c.contentEditable=!1,n()?s(u.keyCode===yx):(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 h2(e){zs(e.defaultView);const t=e.defaultView.getSelection();zs();const n=t.rangeCount?t.getRangeAt(0):null;return!!n&&!n.collapsed}function g2(e){return h2(e)||!!e.activeElement&&function(e){if(!d0(e)&&!f0(e))return!1;try{const{selectionStart:t,selectionEnd:n}=e;return null===t||t!==n}catch(e){return!0}}(e.activeElement)}function v2(e){e=JY(e);const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function b2(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 y2=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}},k2=y2("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})),w2="global",_2="info";let E2=0;function x2(e=_2,t,n={}){const{speak:r=!0,isDismissible:o=!0,context:i=w2,id:a=`${i}${++E2}`,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 S2(e,t){return x2("success",e,t)}function C2(e,t){return x2("info",e,t)}function I2(e,t){return x2("error",e,t)}function T2(e,t){return x2("warning",e,t)}function P2(e,t=w2){return{type:"REMOVE_NOTICE",id:e,context:t}}function N2(e="default",t=w2){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function O2(e,t=w2){return{type:"REMOVE_NOTICES",ids:e,context:t}}const A2=[];function M2(e,t=w2){return e[t]||A2}const R2=Tt("core/notices",{reducer:k2,actions:y,selectors:k});function B2(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:r,__unstableIsFullySelected:o,__unstableIsSelectionCollapsed:i,__unstableIsSelectionMergeable:a,__unstableGetSelectedBlocksWithPartialSelection:s,canInsertBlockType:l}=DC(XO),{flashBlock:c,removeBlocks:u,replaceBlocks:d,__unstableDeleteSelection:f,__unstableExpandSelection:p,insertBlocks:m}=Iq(XO),h=function(){const{getBlockName:e}=DC(XO),{getBlockType:t}=DC(wi),{createSuccessNotice:n}=Iq(R2);return(0,Ir.useCallback)(((r,o)=>{let i="";if(1===o.length){const n=o[0],a=t(e(n))?.title;i=An(Un("copy"===r?'Copied "%s" to clipboard.':'Moved "%s" to clipboard.'),a)}else i=An("copy"===r?Kn("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length):Kn("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(i,{type:"snackbar"})}),[])}();return $x((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?g2(t):function(e){return!!e.activeElement&&(d0(e.activeElement)||f0(e.activeElement)||h2(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=Zr(n,JSON.parse(v.clipboardData.getData("__unstableWrapperBlockAttributes")),t));const r=wa(t);v.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");const t=v2(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=b2(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=ao("from");i=o.reduce(((t,n)=>{const r=io(e,(e=>"files"===e.type&&e.isMatch([n])));return r&&t.push(r.transform([n])),t}),[]).flat()}else i=Fl({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 L2(){const[e,t,n]=function(){const e=(0,Ir.useRef)(),t=(0,Ir.useRef)(),n=(0,Ir.useRef)(),r=(0,Ir.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:i,getBlockCount:a}=DC(XO),{setNavigationMode:s}=Iq(XO),l=DC((e=>e(XO).isNavigationMode()),[])?void 0:"0",c=(0,Ir.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=Hx.tabbable.find(e.current);o.length&&(r?o[0]:o[o.length-1]).focus()}}const d=(0,Ir.createElement)("div",{ref:t,tabIndex:l,onFocus:u}),f=(0,Ir.createElement)("div",{ref:n,tabIndex:l,onFocus:u}),p=$x((l=>{function u(e){if(e.defaultPrevented)return;if(e.keyCode===mx&&!o())return e.preventDefault(),void s(!0);if(e.keyCode!==fx)return;const r=e.shiftKey,a=r?"findPrevious":"findNext";if(!o()&&!i())return void(e.target===l&&s(!0));const u=Hx.tabbable[a](e.target),d=e.target.closest("[data-block]"),f=d&&u&&(E0(d,u)||x0(d,u));if(m0(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!==fx)return;if("region"===r.target?.getAttribute("role"))return;if(e.current===r.target)return;const o=r.shiftKey?"findPrevious":"findNext",i=Hx.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,$g([e,p]),f]}(),r=DC((e=>e(XO).hasMultiSelection()),[]);return[e,$g([t,B2(),m2(),u2(),f2(),p2(),e2(),l2(),a2(),$x((e=>{if(e.tabIndex=0,e.contentEditable=r,r)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",Un("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[r])]),n]}hn(R2);(0,Ir.forwardRef)((function({children:e,...t},n){const[r,o,i]=L2();return(0,Ir.createElement)(Ir.Fragment,null,r,(0,Ir.createElement)("div",{...t,ref:$g([o,n]),className:$l()(t.className,"block-editor-writing-flow")},e),i)}));function D2(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 z2(e){return $x((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;D2(e,window[t],r)},t.addEventListener(e,i[e]);return()=>{for(const e of o)t.removeEventListener(e,i[e])}}))}function F2({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}=DC((e=>{const t=e(XO).getSettings();return{resolvedAssets:t.__unstableResolvedAssets,isPreviewMode:t.__unstableIsPreviewMode}}),[]),{styles:d="",scripts:f=""}=c,[p,m]=(0,Ir.useState)(),[h,g]=(0,Ir.useState)([]),v=(0,Ir.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=Q1(),[y,k,w]=L2(),[_,{height:E}]=W1(),x=$x((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=IX({isDisabled:!a}),C=$g([z2(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,Ir.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([I],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[I]);(0,Ir.useEffect)((()=>P),[P]);const N=E*(1-r)/2;return(0,Ir.createElement)(Ir.Fragment,null,n>=0&&y,(0,Ir.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:$g([s,x]),tabIndex:n,src:T,title:Un("Editor canvas"),onKeyDown:e=>{e.currentTarget.ownerDocument!==e.target.ownerDocument&&(e.stopPropagation(),D2(e,window.KeyboardEvent,e.currentTarget))}},p&&(0,df.createPortal)((0,Ir.createElement)("body",{ref:C,className:$l()("block-editor-iframe__body","editor-styles-wrapper",...h)},_,(0,Ir.createElement)(US,{document:p},t)),p.documentElement)),n>=0&&w)}const j2=(0,Ir.forwardRef)((function(e,t){return DC((e=>e(XO).getSettings().__internalIsInitialized),[])?(0,Ir.createElement)(F2,{...e,forwardedRef:t}):null}));var V2=o(3692),H2=o.n(V2);const $2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function U2(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 W2(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=W2(t[0]),!f(/^:\s*/))return l("property missing ':'");const n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace($2,""),value:n?W2(n[0]).replace($2,""):""});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=W2(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=W2(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:W2(t[1]),media:W2(t[2])})}()||function(){const e=i(),t=f(/^@supports *([^{]+)/);if(!t)return;const n=W2(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=W2(t[1]),r=W2(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 K2(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:s}}}())}function W2(e){return e?e.replace(/^\s+|\s+$/g,""):""}function K2(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){K2(e,r)})):n&&"object"==typeof n&&K2(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var G2=o(5717),q2=o.n(G2);const Y2=X2;function X2(e){this.options=e||{}}X2.prototype.emit=function(e){return e},X2.prototype.visit=function(e){return this[e.type](e)},X2.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 Z2=Q2;function Q2(e){Y2.call(this,e)}q2()(Q2,Y2),Q2.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Q2.prototype.comment=function(e){return this.emit("",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("{")+this.mapVisit(e.rules)+this.emit("}")},Q2.prototype.container=function(e){return this.emit("@container "+e.container,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Q2.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("}")},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("{")+this.mapVisit(e.rules)+this.emit("}")},Q2.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Q2.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Q2.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("}")},Q2.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Q2.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Q2.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Q2.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("}"):""},Q2.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};const J2=e5;function e5(e){e=e||{},Y2.call(this,e),this.indentation=e.indent}q2()(e5,Y2),e5.prototype.compile=function(e){return this.stylesheet(e)},e5.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},e5.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},e5.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},e5.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}")},e5.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}")},e5.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}")},e5.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},e5.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},e5.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}")},e5.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)+"}")},e5.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")},e5.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}")},e5.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}")},e5.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}")},e5.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},e5.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()+"}"):""},e5.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},e5.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};const t5=function(e,t){try{const n=U2(e),r=H2().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 Z2(t):new J2(t)).compile(e)}(r)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}};function n5(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 r5(e,t){return new URL(e,t).toString()}const o5=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]};n5(e)&&r.push(e)}return r}(t.value).map((o=e,e=>({...e,newUrl:"url("+e.before+e.quote+r5(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},i5=/^(body|html|:root).*$/,a5=(e,t=[])=>n=>{const r=n=>t.includes(n.trim())||n.trim().startsWith(`${e} `)?n:n.match(i5)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(r)}:n},s5=(e,t="")=>Object.values(null!=e?e:[]).map((({css:e,baseURL:n})=>{const r=[];return t&&r.push(a5(t)),n&&r.push(o5(n)),r.length?t5(e,Pe(r)):e}));function l5(e,t){return(0,Ir.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=kr(a);s.luminance()>.5||0===s.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e,t])}function c5({styles:e,scope:t}){const n=DC((e=>qO(e(XO)).getStyleOverrides()),[]),[r,o]=(0,Ir.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[s5(r.filter((e=>e?.css)),t),r.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")]}),[e,n,t]);return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("style",{ref:l5(r,t)}),r.map(((e,t)=>(0,Ir.createElement)("style",{key:t},e))),(0,Ir.createElement)(tm,{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 u5;_r([Er,Cr]);const d5=2e3;function f5({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:r=[]}){e||(e=t);const[o,{height:i}]=W1(),{styles:a}=DC((e=>({styles:e(XO).getSettings().styles})),[]),s=(0,Ir.useMemo)((()=>a?[...a,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r]:a),[a,r]);u5=u5||GY(R9);const l=t/e,c=i?t/(i*l):0;return(0,Ir.createElement)(Z1,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:c,maxHeight:i>d5?d5*l:void 0,minHeight:n}},(0,Ir.createElement)(j2,{contentRef:$x((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:d5,minHeight:0!==l&&l<1&&n?n/l:n}},(0,Ir.createElement)(c5,{styles:s}),o,(0,Ir.createElement)(u5,{renderAppender:!1})))}function p5(e){const[t,{width:n}]=W1();return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,Ir.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,Ir.createElement)(f5,{...e,containerWidth:n})))}const m5=(0,Ir.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:r=[],__experimentalMinHeight:o,__experimentalPadding:i}){o&&(n=o,sn("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],sn("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const a=DC((e=>e(XO).getSettings()),[]),s=(0,Ir.useMemo)((()=>({...a,__unstableIsPreviewMode:!0})),[a]),l=(0,Ir.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,Ir.createElement)(H1,{value:l,settings:s},(0,Ir.createElement)(p5,{viewportWidth:t,minHeight:n,additionalStyles:r})):null}));const h5=function({item:e}){var t;const{name:n,title:r,icon:o,description:i,initialAttributes:a,example:s}=e,l=Hr(e),c=(0,Ir.useMemo)((()=>s?co(n,{attributes:{...s.attributes,...a},innerBlocks:s.innerBlocks}):Zr(n,a)),[n,s,a]);return(0,Ir.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,Ir.createElement)("div",{className:"block-editor-inserter__preview"},l||s?(0,Ir.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,Ir.createElement)(m5,{blocks:c,viewportWidth:null!==(t=s?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 16px; }"}]})):(0,Ir.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Un("No Preview Available."))),!l&&(0,Ir.createElement)(v1,{title:r,icon:o,description:i}))};const g5=function(e,t={step:1}){const{step:n=1}=t,[r,o]=(0,Ir.useState)([]);return(0,Ir.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=EC();for(let r=t.length;r<e.length;r+=n)i.add({},(()=>{(0,df.flushSync)((()=>{o((t=>[...t,...e.slice(r,r+n)]))}))}));return()=>i.reset()}),[e]),r};const v5=Uh((function(e,t){const n=CR(e);return(0,Ir.createElement)(ag,{as:"span",...n,ref:t})}),"Truncate");function b5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y5(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 k5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y5(Object(n),!0).forEach((function(t){b5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w5(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 _5(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 E5(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 _5(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)?_5(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 x5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S5(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 C5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S5(Object(n),!0).forEach((function(t){x5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I5(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 T5(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 P5(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 T5(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)?T5(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 N5=(0,Ir.createContext)({});var O5,A5=function(e,t,n){void 0===n&&(n=t.children);var r=(0,Ir.useContext)(N5);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(I5(t,["children"]))}return(0,Ir.createElement)(e,t,n)};function M5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R5(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?R5(Object(n),!0).forEach((function(t){M5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L5(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 D5(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 z5(e,t){if(void 0===t&&(t=[]),!L5(e.state))return D5(e,t);var n=D5(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[B5(B5({},i),a),o]}function F5(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 j5(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return L5(t.state)&&L5(n.state)?e(B5(B5({},t.state),t),B5(B5({},n.state),n)):e(t,n)}}function V5(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?A5:l,u=function(e,r){var o=e.as,i=void 0===o?t:o,a=I5(e,["as"]);if(n){var l,u=z5(a,s),d=u[0],f=u[1],p=n(d,C5({ref:r},f)),m=p.wrapElement,h=I5(p,["wrapElement"]),g=(null===(l=i.render)||void 0===l?void 0:l.__keys)||i.__keys,v=g&&z5(a,g)[0],b=v?C5(C5({},h),v):h,y=c(i,b);return m?m(y):y}return c(i,C5({ref:r},a))};return u=function(e){return(0,Ir.forwardRef)(e)}(u),r&&(u=function(e,t){return(0,Ir.memo)(e,t)}(u,i&&j5(i))),u.__keys=s,u.unstable_propsAreEqual=j5(i||F5),u}function H5(e,t){(0,Ir.useDebugValue)(e);var n=(0,Ir.useContext)(N5);return null!=n[e]?n[e]:t}function $5(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,Ir.useDebugValue)(r);var o=H5(r);return o?C5(C5({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,i=P5(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,Ir.useDebugValue)(r);var o=H5(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=P5(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)||F5,a}function U5(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function W5(e,t){return(0,Ir.useMemo)((function(){return null==e&&null==t?null:function(n){U5(e,n),U5(t,n)}}),[e,t])}function K5(e){return e?e.ownerDocument||e:document}try{O5=window}catch(e){}function G5(e){return e&&K5(e).defaultView||O5}var q5=function(){var e=G5();return Boolean(void 0!==e&&e.document&&e.document.createElement)}(),Y5=q5?Ir.useLayoutEffect:Ir.useEffect;function X5(e){var t=(0,Ir.useRef)(e);return Y5((function(){t.current=e})),t}function Z5(e){return e.target===e.currentTarget}function Q5(e){var t=K5(e).activeElement;return null!=t&&t.nodeName?t:null}function J5(e,t){return e===t||e.contains(t)}function e3(e){var t=Q5(e);if(!t)return!1;if(J5(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function t3(e){return!J5(e.currentTarget,e.target)}var n3=["button","color","file","image","reset","submit"];function r3(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==n3.indexOf(t.type)}return!1}function o3(e){return!!q5&&-1!==window.navigator.userAgent.indexOf(e)}var i3="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 a3(e){return function(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}(e,i3)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var s3=$5({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=w5(e,["unstable_system"]),o=t.unstable_system,i=w5(t,["unstable_system"]);return!(n!==o&&!F5(n,o))&&F5(r,i)}}),l3=(V5({as:"div",useHook:s3}),o3("Mac")&&!o3("Chrome")&&(o3("Safari")||o3("Firefox")));function c3(e){!e3(e)&&a3(e)&&e.focus()}function u3(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function d3(e,t){return(0,Ir.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 f3=$5({name:"Tabbable",compose:s3,keys:["disabled","focusable"],useOptions:function(e,t){return k5({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=w5(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,Ir.useRef)(null),d=X5(o),f=X5(i),p=X5(a),m=X5(s),h=!!e.disabled&&!e.focusable,g=(0,Ir.useState)(!0),v=g[0],b=g[1],y=(0,Ir.useState)(!0),k=y[0],w=y[1],_=e.disabled?k5({pointerEvents:"none"},l):l;Y5((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=d3(d,e.disabled),x=d3(f,e.disabled),S=d3(m,e.disabled),C=(0,Ir.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e);var n=e.currentTarget;if(!e.defaultPrevented&&l3&&!t3(e)&&r3(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),c3(n)})),o=function(){cancelAnimationFrame(r),c3(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return k5({ref:W5(u,n),style:_,tabIndex:u3(h,v,k,r),disabled:!(!h||!k)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:E,onMouseDownCapture:x,onMouseDown:C,onKeyPressCapture:S},c)}});V5({as:"div",useHook:f3});var p3=$5({name:"Clickable",compose:f3,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return k5({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},w5(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=w5(t,["onKeyDown","onKeyUp"]),i=(0,Ir.useState)(!1),a=i[0],s=i[1],l=X5(n),c=X5(r),u=(0,Ir.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Z5(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&&(r3(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,Ir.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 k5({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});V5({as:"button",memo:!0,useHook:p3});function m3(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function h3(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=m3(e.items||[]))||void 0===n?void 0:n.id}var g3=["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"],v3=g3,b3=v3;function y3(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function k3(e,t){e.userFocus=t}function w3(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 _3(e){var t=Q5(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function E3(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var x3=(0,Ir.createContext)(E3);var S3=$5({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,Ir.useContext)(x3),r=(0,Ir.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,Ir.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return k5(k5({},e),{},{id:i})},useProps:function(e,t){return k5({id:e.id},t)}});V5({as:"div",useHook:S3});function C3(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=K5(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function I3(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(C3(e,t,n))}(e,"input",{bubbles:!0}))}}function T3(e){return e.querySelector("[data-composite-item-widget]")}var P3=$5({name:"CompositeItem",compose:[p3,S3],keys:b3,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return p3.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=w5(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=w5(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return p3.unstable_propsAreEqual(o,s)},useOptions:function(e){return k5(k5({},e),{},{id:e.id,currentId:h3(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=w5(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,Ir.useRef)(null),p=e.id,m=e.disabled&&!e.focusable,h=e.currentId===p,g=X5(h),v=(0,Ir.useRef)(!1),b=function(e){return(0,Ir.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=X5(a),k=X5(s),w=X5(l),_=X5(c),E=X5(u),x=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&h||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,Ir.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,Ir.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&g.current&&y3(t)}),[e.unstable_moves]);var S=(0,Ir.useCallback)((function(e){var t;null===(t=y.current)||void 0===t||t.call(y,e),k3(e.currentTarget,!0)}),[]),C=(0,Ir.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(k3(t.currentTarget,!1),null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented&&!t3(t)&&p&&!function(e,t){if(Z5(e))return!1;for(var n,r=E5(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&&Z5(t))){var i=K5(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?_3: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,Ir.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,Ir.useCallback)((function(t){var n;if(Z5(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=T3(t.currentTarget);s&&w3(s)&&(s.focus(),I3(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=T3(t.currentTarget);l&&w3(l)&&(t.preventDefault(),I3(l,""))}}}),[e.orientation,b,e.up,e.next,e.down,e.previous,e.first,e.last]),P=(0,Ir.useCallback)((function(e){var t;if(null===(t=E.current)||void 0===t||t.call(E,e),!e.defaultPrevented){var n=T3(e.currentTarget);n&&!e3(n)&&n.focus()}}),[]);return k5({ref:W5(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)}}),N3=V5({as:"button",memo:!0,useHook:P3});const O3=(0,Ir.createContext)();const A3=(0,Ir.forwardRef)((function({isFirst:e,as:t,children:n,...r},o){const i=(0,Ir.useContext)(O3);return(0,Ir.createElement)(N3,{ref:o,state:i,role:"option",focusable:!0,...r},(r=>{const o={...r,tabIndex:e?0:r.tabIndex};return t?(0,Ir.createElement)(t,{...o},n):"function"==typeof n?n(o):(0,Ir.createElement)(ug,{...o},n)}))})),M3=(e,t,n)=>{let r=!0,o=!0;return n&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),UY(e,t,{leading:r,trailing:o,maxWait:t})},R3="is-dragging-components-draggable";const B3=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,Ir.useRef)(null),d=(0,Ir.useRef)((()=>{}));return(0,Ir.useEffect)((()=>()=>{d.current()}),[]),(0,Ir.createElement)(Ir.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=M3((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(R3),t&&t(e),d.current=()=>{c&&c.parentNode&&c.parentNode.removeChild(c),f&&f.parentNode&&f.parentNode.removeChild(f),r.body.classList.remove(R3),r.removeEventListener("dragover",v)}},onDraggableEnd:function(e){e.preventDefault(),d.current(),r&&r(e)}}),c&&(0,Ir.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:u},c))},L3=(0,Ir.createElement)(tm,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function D3({count:e,icon:t,isPattern:n}){const r=n&&Un("Pattern");return(0,Ir.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,Ir.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},(0,Ir.createElement)(gR,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,Ir.createElement)(bR,null,t?(0,Ir.createElement)(g1,{icon:t}):r||An(Kn("%d block","%d blocks",e),e)),(0,Ir.createElement)(bR,null,(0,Ir.createElement)(g1,{icon:L3})))))}const z3=({isEnabled:e,blocks:t,icon:n,children:r,isPattern:o})=>{const i={type:"inserter",blocks:t},a=DC((e=>{const{getBlockType:n}=e(wi);return 1===t.length&&n(t[0].name)?.icon}),[t]);return(0,Ir.createElement)(B3,{__experimentalTransferDataType:"wp-blocks",transferData:i,onDragStart:e=>{e.dataTransfer.setData("text/html",wa(t))},__experimentalDragComponent:(0,Ir.createElement)(D3,{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 F3=(0,Ir.memo)((function({className:e,isFirst:t,item:n,onSelect:r,onHover:o,isDraggable:i,...a}){const s=(0,Ir.useRef)(!1),l=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},c=(0,Ir.useMemo)((()=>[Zr(n.name,n.initialAttributes,Qr(n.innerBlocks))]),[n.name,n.initialAttributes,n.initialAttributes]),u=Hr(n)&&"unsynced"!==n.syncStatus||$r(n);return(0,Ir.createElement)(z3,{isEnabled:i&&!n.disabled,blocks:c,icon:n.icon},(({draggable:i,onDragStart:c,onDragEnd:d})=>(0,Ir.createElement)("div",{className:$l()("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,Ir.createElement)(A3,{isFirst:t,className:$l()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),r(n,ux()?e.metaKey:e.ctrlKey),o(null)},onKeyDown:e=>{const{keyCode:t}=e;t===px&&(e.preventDefault(),r(n,ux()?e.metaKey:e.ctrlKey),o(null))},onMouseEnter:()=>{s.current||o(n)},onMouseLeave:()=>o(null),...a},(0,Ir.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:l},(0,Ir.createElement)(g1,{icon:n.icon,showColors:!0})),(0,Ir.createElement)("span",{className:"block-editor-block-types-list__item-title"},(0,Ir.createElement)(v5,{numberOfLines:3},n.title))))))}));const j3=(0,Ir.forwardRef)((function(e,t){const[n,r]=(0,Ir.useState)(!1);return(0,Ir.useEffect)((()=>{n&&AN(Un("Use left and right arrow keys to move through blocks"))}),[n]),(0,Ir.createElement)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&r(!1)},...e})}));function V3(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}var H3=$5({name:"Group",compose:s3,keys:[],useProps:function(e,t){return k5({role:"group"},t)}}),$3=(V5({as:"div",useHook:H3}),$5({name:"CompositeGroup",compose:[H3,S3],keys:v3,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return H3.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,w5(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,w5(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=V3(e.items,n),s=V3(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 H3.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=w5(t,["ref"]),o=(0,Ir.useRef)(null),i=e.id;return Y5((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]),k5({ref:W5(o,n)},r)}})),U3=V5({as:"div",useHook:$3});const W3=(0,Ir.forwardRef)((function(e,t){const n=(0,Ir.useContext)(O3);return(0,Ir.createElement)(U3,{state:n,role:"presentation",ref:t,...e})}));const K3=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:r,label:o,isDraggable:i=!0}){return(0,Ir.createElement)(j3,{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,Ir.createElement)(W3,{key:r},e.map(((e,o)=>(0,Ir.createElement)(F3,{key:e.id,item:e,className:ma(e.id),onSelect:t,onHover:n,isDraggable:i&&!e.isDisabled,isFirst:0===r&&0===o})))))),r)};const G3=function({title:e,icon:t,children:n}){return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,Ir.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),(0,Ir.createElement)(rm,{icon:t})),(0,Ir.createElement)("div",{className:"block-editor-inserter__panel-content"},n))},q3=(e,t)=>{const{categories:n,collections:r,items:o}=DC((t=>{const{getInserterItems:n}=t(XO),{getCategories:r,getCollections:o}=t(wi);return{categories:r(),collections:o(),items:n(e)}}),[e]);return[o,n,r,(0,Ir.useCallback)((({name:e,initialAttributes:n,innerBlocks:r,syncStatus:o,content:i},a)=>{const s="unsynced"===o?Is(i,{__unstableSkipMigrationLogs:!0}):Zr(e,n,Qr(r));t(s,void 0,a)}),[t])]};function Y3(e){return(0,Ir.useState)(e)[0]}function X3(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=E5(e);!(t=o()).done;)r();return n}function Z3(e){for(var t,n=[],r=E5(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Q3(e){return e.slice().reverse()}function J3(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function e4(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function t4(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&e4(t.ref.current,e.ref.current)}))}function n4(e){for(var t,n=0,r=E5(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function r4(e){for(var t=X3(e),n=n4(t),r=[],o=0;o<n;o+=1)for(var i,a=E5(t);!(i=a()).done;){var s=i.value;s[o]&&r.push(k5(k5({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function o4(e,t,n){for(var r,o=n4(e),i=E5(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?m3(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 i4={id:null,ref:{current:null}};function a4(e,t){return e.filter((function(e){return e.groupId===t}))}var s4={horizontal:"vertical",vertical:"horizontal"};function l4(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function c4(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?e4(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 u4(e,t){var n=c4(e);e!==n&&t(n)}function d4(e,t){var n=(0,Ir.useRef)([]);(0,Ir.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 K5(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&u4(e,t),n.current=e}),{root:o}),a=E5(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function f4(e,t){"function"==typeof IntersectionObserver?d4(e,t):function(e,t){(0,Ir.useEffect)((function(){var n=setTimeout((function(){return u4(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function p4(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 k5(k5({},e),{},{groups:[_]});var E=t4(a,_);return k5(k5({},e),{},{groups:l4(a,_,E)});case"unregisterGroup":var x=t.id,S=a.filter((function(e){return e.id!==x}));return S.length===a.length?e:k5(k5({},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=k5({groupId:null==T?void 0:T.id},I),N=t4(i,P),O=k5(k5({},e),{},{items:l4(i,P,N)});return w||f||void 0!==v?O:k5(k5({},O),{},{currentId:null===(C=m3(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=k5(k5({},e),{},{pastIds:R,items:M});if(s&&s===A){var L=p?null:h3(k5(k5({},B),{},{currentId:R[0]}));return k5(k5({},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=k5(k5({},e),{},{pastIds:F});if(null===D)return k5(k5({},j),{},{unstable_moves:f+1,currentId:h3(j,D)});var V=V3(i,D);return k5(k5({},j),{},{unstable_moves:V?f+1:f,currentId:h3(j,null==V?void 0:V.id)});case"next":if(null==s)return p4(e,k5(k5({},t),{},{type:"first"}));var H=r&&"vertical"!==o,$=H?Q3(i):i,U=$.find((function(e){return e.id===s}));if(!U)return p4(e,k5(k5({},t),{},{type:"first"}));var W=!!U.groupId,K=$.indexOf(U),G=$.slice(K+1),q=a4(G,U.groupId);if(t.allTheWay){var Y=m3(H?a4($,U.groupId):Q3(q));return p4(e,k5(k5({},t),{},{type:"move",id:null==Y?void 0:Y.id}))}var X=function(e){return e&&s4[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?[i4]:[],e.slice(0,r))}(Q&&!J?$:a4($,U.groupId),s,J),te=m3(ee,s);return p4(e,k5(k5({},t),{},{type:"move",id:null==te?void 0:te.id}))}if(Q){var ne=m3(J?q:G,s),re=J?(null==ne?void 0:ne.id)||null:null==ne?void 0:ne.id;return p4(e,k5(k5({},t),{},{type:"move",id:re}))}var oe=m3(q,s);return p4(e,!oe&&J?k5(k5({},t),{},{type:"move",id:null}):k5(k5({},t),{},{type:"move",id:null==oe?void 0:oe.id}));case"previous":var ie=!!!a.length&&p,ae=p4(k5(k5({},e),{},{items:Q3(i)}),k5(k5({},t),{},{type:"next",hasNullItem:ie}));return k5(k5({},ae),{},{items:i});case"down":var se=d&&!t.allTheWay,le=r4(Z3(o4(X3(i),s,se))),ce=l&&"horizontal"!==l&&p,ue=p4(k5(k5({},e),{},{orientation:"vertical",items:le}),k5(k5({},t),{},{type:"next",hasNullItem:ce}));return k5(k5({},ue),{},{orientation:o,items:i});case"up":var de=d&&!t.allTheWay,fe=r4(Q3(Z3(o4(X3(i),s,de)))),pe=p,me=p4(k5(k5({},e),{},{orientation:"vertical",items:fe}),k5(k5({},t),{},{type:"next",hasNullItem:pe}));return k5(k5({},me),{},{orientation:o,items:i});case"first":var he=m3(i);return p4(e,k5(k5({},t),{},{type:"move",id:null==he?void 0:he.id}));case"last":var ge=p4(k5(k5({},e),{},{items:Q3(i)}),k5(k5({},t),{},{type:"first"}));return k5(k5({},ge),{},{items:i});case"sort":return k5(k5({},e),{},{items:c4(i),groups:c4(a)});case"setVirtual":return k5(k5({},e),{},{unstable_virtual:J3(t.virtual,n)});case"setRTL":return k5(k5({},e),{},{rtl:J3(t.rtl,r)});case"setOrientation":return k5(k5({},e),{},{orientation:J3(t.orientation,o)});case"setCurrentId":var ve=h3(k5(k5({},e),{},{currentId:J3(t.currentId,s)}));return k5(k5({},e),{},{currentId:ve,hasSetCurrentId:!0});case"setLoop":return k5(k5({},e),{},{loop:J3(t.loop,l)});case"setWrap":return k5(k5({},e),{},{wrap:J3(t.wrap,c)});case"setShift":return k5(k5({},e),{},{shift:J3(t.shift,d)});case"setIncludesBaseElement":return k5(k5({},e),{},{unstable_includesBaseElement:J3(t.includesBaseElement,p)});case"reset":return k5(k5({},e),{},{unstable_virtual:m,rtl:h,orientation:g,currentId:h3(k5(k5({},e),{},{currentId:v})),loop:b,wrap:y,shift:k,unstable_moves:0,pastIds:[]});case"setItems":return k5(k5({},e),{},{items:t.items});default:throw new Error}}function m4(e){return(0,Ir.useCallback)(e,[])}function h4(e){void 0===e&&(e={});var t=Y3(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=Y3(e).baseId,n=(0,Ir.useContext)(x3),r=(0,Ir.useRef)(0),o=(0,Ir.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}(w5(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),g=(0,Ir.useReducer)(p4,{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,w5(v,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),y=g[1],k=(0,Ir.useState)(!1),w=k[0],_=k[1],E=function(){var e=(0,Ir.useRef)(!1);return Y5((function(){return function(){e.current=!0}}),[]),e}(),x=(0,Ir.useCallback)((function(e){return y({type:"setItems",items:e})}),[]);return f4(b.items,x),k5(k5(k5({},h),b),{},{unstable_hasActiveWidget:w,unstable_setHasActiveWidget:_,registerItem:m4((function(e){E.current||y({type:"registerItem",item:e})})),unregisterItem:m4((function(e){E.current||y({type:"unregisterItem",id:e})})),registerGroup:m4((function(e){E.current||y({type:"registerGroup",group:e})})),unregisterGroup:m4((function(e){E.current||y({type:"unregisterGroup",id:e})})),move:m4((function(e){return y({type:"move",id:e})})),next:m4((function(e){return y({type:"next",allTheWay:e})})),previous:m4((function(e){return y({type:"previous",allTheWay:e})})),up:m4((function(e){return y({type:"up",allTheWay:e})})),down:m4((function(e){return y({type:"down",allTheWay:e})})),first:m4((function(){return y({type:"first"})})),last:m4((function(){return y({type:"last"})})),sort:m4((function(){return y({type:"sort"})})),unstable_setVirtual:m4((function(e){return y({type:"setVirtual",virtual:e})})),setRTL:m4((function(e){return y({type:"setRTL",rtl:e})})),setOrientation:m4((function(e){return y({type:"setOrientation",orientation:e})})),setCurrentId:m4((function(e){return y({type:"setCurrentId",currentId:e})})),setLoop:m4((function(e){return y({type:"setLoop",loop:e})})),setWrap:m4((function(e){return y({type:"setWrap",wrap:e})})),setShift:m4((function(e){return y({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:m4((function(e){return y({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:m4((function(){return y({type:"reset"})}))})}const g4=function({children:e}){const t=h4({shift:!0,wrap:"horizontal"});return(0,Ir.createElement)(O3.Provider,{value:t},e)},v4=[];const b4=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r}){const[o,i,a,s]=q3(e,t),l=(0,Ir.useMemo)((()=>UI(o,"frecency","desc").slice(0,6)),[o]),c=(0,Ir.useMemo)((()=>o.filter((e=>!e.category))),[o]),u=(0,Ir.useMemo)((()=>Te((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,Ir.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,Ir.useEffect)((()=>()=>n(null)),[]);const f=g5(i),p=i.length===f.length,m=(0,Ir.useMemo)((()=>Object.entries(a)),[a]),h=g5(p?m:v4);return(0,Ir.createElement)(g4,null,(0,Ir.createElement)("div",null,r&&!!l.length&&(0,Ir.createElement)(G3,{title:Wn("Most used","blocks")},(0,Ir.createElement)(K3,{items:l,onSelect:s,onHover:n,label:Wn("Most used","blocks")})),f.map((e=>{const t=u[e.slug];return t&&t.length?(0,Ir.createElement)(G3,{key:e.slug,title:e.title,icon:e.icon},(0,Ir.createElement)(K3,{items:t,onSelect:s,onHover:n,label:e.title})):null})),p&&c.length>0&&(0,Ir.createElement)(G3,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Un("Uncategorized")},(0,Ir.createElement)(K3,{items:c,onSelect:s,onHover:n,label:Un("Uncategorized")})),h.map((([e,t])=>{const r=d[e];return r&&r.length?(0,Ir.createElement)(G3,{key:e,title:t.title,icon:t.icon},(0,Ir.createElement)(K3,{items:r,onSelect:s,onHover:n,label:t.title})):null}))))};const y4=Uh((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=$h(e,"VStack");return W$({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,Ir.createElement)(ag,{...n,ref:t})}),"VStack");const k4=e=>IM("font-size:",yB("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:",FM.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, ",FM.theme.accent," )\n\t\t\t\t);outline:2px solid transparent;outline-offset:0;}",""),w4={name:"1bcj5ek",styles:"width:100%;display:block"},_4={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},E4=IM("border:1px solid ",OR.surfaceBorderColor,";",""),x4=IM(">*:not( marquee )>*{border-bottom:1px solid ",OR.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),S4=OR.controlBorderRadius,C4=IM("border-radius:",S4,";",""),I4=IM("border-radius:",S4,";>*:first-of-type>*{border-top-left-radius:",S4,";border-top-right-radius:",S4,";}>*:last-of-type>*{border-bottom-left-radius:",S4,";border-bottom-right-radius:",S4,";}",""),T4=`calc(${OR.fontSize} * ${OR.fontLineHeightBase})`,P4=`calc((${OR.controlHeight} - ${T4} - 2px) / 2)`,N4=`calc((${OR.controlHeightSmall} - ${T4} - 2px) / 2)`,O4=`calc((${OR.controlHeightLarge} - ${T4} - 2px) / 2)`,A4={small:IM("padding:",N4," ",OR.controlPaddingXSmall,";",""),medium:IM("padding:",P4," ",OR.controlPaddingX,";",""),large:IM("padding:",O4," ",OR.controlPaddingXLarge,";","")};const M4=(0,Ir.createContext)({size:"medium"}),R4=()=>(0,Ir.useContext)(M4);const B4=Uh((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}=$h(e,"ItemGroup");return{isBordered:n,className:Hh()(n&&E4,o&&x4,r&&I4,t),role:i,isSeparated:o,...a}}(e),{size:a}=R4(),s={spacedAround:!n&&!r,size:o||a};return(0,Ir.createElement)(M4.Provider,{value:s},(0,Ir.createElement)(ag,{...i,ref:t}))}),"ItemGroup");const L4=Uh((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=$h(e,"Item"),{spacedAround:s,size:l}=R4(),c=i||l,u=t||(void 0!==r?"button":"div"),d=Hh(),f=(0,Ir.useMemo)((()=>d(("button"===u||"a"===u)&&k4(u),A4[c]||A4.medium,_4,s&&C4,n)),[u,n,d,c,s]),p=d(w4);return{as:u,className:f,onClick:r,wrapperClassName:p,role:o,...a}}(e);return(0,Ir.createElement)("div",{role:n,className:r},(0,Ir.createElement)(ag,{...o,ref:t}))}),"Item"),D4=L4,z4=(e,t)=>{const{patternCategories:n,patterns:r,userPatternCategories:o}=DC((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:r}=e(XO),{__experimentalUserPatternCategories:o,__experimentalBlockPatternCategories:i}=r();return{patterns:n(t),userPatternCategories:o,patternCategories:i}}),[t]),i=(0,Ir.useMemo)((()=>{const e=[...n];return o?.forEach((t=>{e.find((e=>e.name===t.name))||e.push(t)})),e}),[n,o]),{createSuccessNotice:a}=Iq(R2),s=(0,Ir.useCallback)(((t,n)=>{const r=t.id&&"unsynced"!==t.syncStatus?[Zr("core/block",{ref:t.id})]:n;e((null!=r?r:[]).map((e=>eo(e))),t.name),a(An(Un('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[a,e]);return[r,i,s]};function F4(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):C3(e,t,n)}function j4(e,t){var n=F4(e,"blur",t),r=e.dispatchEvent(n),o=B5(B5({},t),{},{bubbles:!0});return e.dispatchEvent(F4(e,"focusout",o)),r}function V4(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=K5(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,G5(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var H4=q5&&"msCrypto"in window;var $4=q5&&"msCrypto"in window;function U4(e,t,n){var r=X5(n);return(0,Ir.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!Z5(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(V4(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function W4(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var K4=$5({name:"Composite",compose:[f3],keys:g3,useOptions:function(e){return k5(k5({},e),{},{currentId:h3(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=w5(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=(0,Ir.useRef)(null),d=V3(e.items,e.currentId),f=(0,Ir.useRef)(null),p=X5(r),m=X5(o),h=X5(i),g=X5(a),v=function(e){var t=X5(e),n=(0,Ir.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return(0,Ir.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&y3(n)}),[r]),o}(d),b=$4?function(e){var t=(0,Ir.useRef)(null);return(0,Ir.useEffect)((function(){var n=K5(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,Ir.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var y=U4(e.unstable_virtual,d,s),k=U4(e.unstable_virtual,d,l),w=(0,Ir.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=W4(e.items,r);Z5(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),_=(0,Ir.useCallback)((function(t){var n;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented)if(e.unstable_virtual)Z5(t)&&v();else if(Z5(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),E=(0,Ir.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 H4?Q5(e.currentTarget):e.relatedTarget}(t),i=W4(e.items,o);if(Z5(t)&&i)o===r?f.current&&f.current!==o&&j4(f.current,t):r&&j4(r,t),t.stopPropagation();else!W4(e.items,t.target)&&r&&j4(r,t)}}),[e.unstable_virtual,e.items,d]),x=(0,Ir.useCallback)((function(t){var n,r;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented&&null===e.currentId&&Z5(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=m3(Z3(Q3(X3(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 k5({ref:W5(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=s3(e,t,!0);var n=f3(e,t,!0);return e.unstable_virtual||null===e.currentId?k5({tabIndex:0},n):k5(k5({},t),{},{ref:n.ref})}}),G4=V5({as:"div",useHook:K4,useCreateElement:function(e,t,n){return A5(e,t,n)}});function q4({currentPage:e,numPages:t,changePage:n,totalItems:r}){return(0,Ir.createElement)(y4,{className:"block-editor-patterns__grid-pagination-wrapper"},(0,Ir.createElement)(qR,{variant:"muted"},An(Kn("%s item","%s items",r),r)),t>1&&(0,Ir.createElement)(K$,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination"},(0,Ir.createElement)(K$,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous"},(0,Ir.createElement)(ug,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":Un("First page")},(0,Ir.createElement)("span",null,"«")),(0,Ir.createElement)(ug,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":Un("Previous page")},(0,Ir.createElement)("span",null,"‹"))),(0,Ir.createElement)(qR,{variant:"muted"},An(Wn("%1$s of %2$s","paging"),e,t)),(0,Ir.createElement)(K$,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next"},(0,Ir.createElement)(ug,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":Un("Next page")},(0,Ir.createElement)("span",null,"›")),(0,Ir.createElement)(ug,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":Un("Last page"),size:"default"},(0,Ir.createElement)("span",null,"»")))))}const Y4=({showTooltip:e,title:t,children:n})=>e?(0,Ir.createElement)(Jp,{text:t},n):(0,Ir.createElement)(Ir.Fragment,null,n);function X4({isDraggable:e,pattern:t,onClick:n,onHover:r,composite:o,showTooltip:i}){const[a,s]=(0,Ir.useState)(!1),{blocks:l,viewportWidth:c}=t,u=`block-editor-block-patterns-list__item-description-${Gl(X4)}`;return(0,Ir.createElement)(z3,{isEnabled:e,blocks:l,isPattern:!!t},(({draggable:e,onDragStart:d,onDragEnd:f})=>(0,Ir.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,Ir.createElement)(Y4,{showTooltip:i&&!t.id,title:t.title},(0,Ir.createElement)(N3,{role:"option",as:"div",...o,className:$l()("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,Ir.createElement)(m5,{blocks:l,viewportWidth:c}),(0,Ir.createElement)(K$,{className:"block-editor-patterns__pattern-details"},t.id&&!t.syncStatus&&(0,Ir.createElement)("div",{className:"block-editor-patterns__pattern-icon-wrapper"},(0,Ir.createElement)(SM,{className:"block-editor-patterns__pattern-icon",icon:rI})),(!i||t.id)&&(0,Ir.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title)),!!t.description&&(0,Ir.createElement)(sg,{id:u},t.description))))))}function Z4(){return(0,Ir.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}const Q4=(0,Ir.forwardRef)((function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:r,onClickPattern:o,orientation:i,label:a=Un("Block patterns"),showTitlesAsTooltip:s,pagingProps:l},c){const u=h4({orientation:i});return(0,Ir.createElement)(G4,{...u,role:"listbox",className:"block-editor-block-patterns-list","aria-label":a,ref:c},t.map((t=>n.includes(t)?(0,Ir.createElement)(X4,{key:t.name,pattern:t,onClick:o,onHover:r,isDraggable:e,composite:u,showTooltip:s}):(0,Ir.createElement)(Z4,{key:t.name}))),l&&(0,Ir.createElement)(q4,{...l}))}));function J4({selectedCategory:e,patternCategories:t,onClickCategory:n}){const r="block-editor-block-patterns-explorer__sidebar";return(0,Ir.createElement)("div",{className:`${r}__categories-list`},t.map((({name:t,label:o})=>(0,Ir.createElement)(ug,{key:t,label:o,className:`${r}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)}},o))))}function e6({searchValue:e,setSearchValue:t}){return(0,Ir.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,Ir.createElement)(Z0,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:Un("Search for patterns"),placeholder:Un("Search")}))}const t6=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:r,setSearchValue:o}){return(0,Ir.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,Ir.createElement)(e6,{searchValue:r,setSearchValue:o}),!r&&(0,Ir.createElement)(J4,{selectedCategory:e,patternCategories:t,onClickCategory:n}))};const n6=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:r,onSelect:o,shouldFocusBlock:i=!0,selectBlockOnInsert:a=!0}){const{getSelectedBlock:s}=DC(XO),{destinationRootClientId:l,destinationIndex:c}=DC((o=>{const{getSelectedBlockClientId:i,getBlockRootClientId:a,getBlockIndex:s,getBlockOrder:l}=o(XO),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}=Iq(XO),m=(0,Ir.useCallback)(((e,t,n=!1)=>{const f=s();!r&&f&&po(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;AN(An(Kn("%d block added.","%d blocks added.",p),p)),o&&o(e)}),[r,s,u,d,l,c,o,i,a]),h=(0,Ir.useCallback)((e=>{e?f(l,c):p()}),[f,p,l,c]);return[l,m,h]},r6=e=>e.name||"",o6=e=>e.title,i6=e=>e.description||"",a6=e=>e.keywords||[],s6=e=>e.category,l6=()=>null;function c6(e=""){return _n(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 u6(e=""){return e=(e=(e=xo()(e)).replace(/^\//,"")).toLowerCase()}const d6=(e="")=>c6(u6(e)),f6=(e=[],t="",n={})=>{if(0===d6(t).length)return e;const r=e.map((e=>[e,p6(e,t,n)])).filter((([,e])=>e>0));return r.sort((([,e],[,t])=>t-e)),r.map((([e])=>e))};function p6(e,t,n={}){const{getName:r=r6,getTitle:o=o6,getDescription:i=i6,getKeywords:a=a6,getCategory:s=s6,getCollection:l=l6}=n,c=r(e),u=o(e),d=i(e),f=a(e),p=s(e),m=l(e),h=u6(t),g=u6(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=>!d6(t).some((t=>t.includes(e))))))(c6(h),e).length&&(v+=10)}if(0!==v&&c.startsWith("core/")){v+=c!==e.id?1:2}return v}const m6=20,h6=5;function g6(e,t,n,r=""){const[o,i]=(0,Ir.useState)(1),a=h$(t),s=h$(r);a===t&&s===r||1===o||i(1);const l=e.length,c=o-1,u=(0,Ir.useMemo)((()=>e.slice(c*m6,c*m6+m6)),[c,e]),d=g5(u,{step:h6}),f=Math.ceil(e.length/m6);return(0,Ir.useEffect)((function(){const e=lX(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:l,categoryPatterns:u,categoryPatternsAsyncList:d,numPages:f,changePage:e=>{const t=lX(n?.current);t?.scrollTo(0,0),i(e)},currentPage:o}}function v6({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,Ir.createElement)(uY,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},An(Kn("%d pattern found","%d patterns found",t),t)):null}const b6=function({searchValue:e,selectedCategory:t,patternCategories:n}){const r=(0,Ir.useRef)(),o=WY(AN,500),[i,a]=n6({shouldFocusBlock:!0}),[s,,l]=z4(a,i),c=(0,Ir.useMemo)((()=>n.map((e=>e.name))),[n]),u=(0,Ir.useMemo)((()=>{const n=s.filter((e=>{if(t===X6.name)return!0;if(t===Z6.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?f6(n,e):n}),[e,s,t,c]);(0,Ir.useEffect)((()=>{if(!e)return;const t=u.length,n=An(Kn("%d result found.","%d results found.",t),t);o(n)}),[e,o,u.length]);const d=g6(u,t,r),[f,p]=(0,Ir.useState)(e);e!==f&&(p(e),d.changePage(1));const m=!!u?.length;return(0,Ir.createElement)("div",{className:"block-editor-block-patterns-explorer__list",ref:r},(0,Ir.createElement)(v6,{filterValue:e,filteredBlockPatternsLength:u.length}),(0,Ir.createElement)(g4,null,m&&(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Q4,{shownPatterns:d.categoryPatternsAsyncList,blockPatterns:d.categoryPatterns,onClickPattern:l,isDraggable:!1}),(0,Ir.createElement)(q4,{...d}))))};function y6({initialCategory:e,rootClientId:t}){const[n,r]=(0,Ir.useState)(""),[o,i]=(0,Ir.useState)("all"),[a,s]=(0,Ir.useState)(e?.name),l=J6(t,o);return(0,Ir.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,Ir.createElement)(t6,{selectedCategory:a,patternCategories:l,onClickCategory:s,searchValue:n,setSearchValue:r,patternSourceFilter:o,setPatternSourceFilter:i}),(0,Ir.createElement)(b6,{searchValue:n,selectedCategory:a,patternCategories:l,patternSourceFilter:o}))}const k6=function({onModalClose:e,...t}){return(0,Ir.createElement)(mX,{title:Un("Patterns"),onRequestClose:e,isFullScreen:!0},(0,Ir.createElement)(y6,{...t}))},w6=(0,Ir.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const _6=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,Ir.useContext)(w6);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const E6=Uh((function(e,t){const n=function(e){const{onClick:t,as:n=ug,goToParent:r=!1,...o}=$h(e,"NavigatorBackButton"),{goBack:i,goToParent:a}=_6();return{as:n,onClick:(0,Ir.useCallback)((e=>{e.preventDefault(),r?a():i(),t?.(e)}),[r,a,i,t]),...o}}(e);return(0,Ir.createElement)(ag,{ref:t,...n})}),"NavigatorBackButton");function x6(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(C6(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 S6(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}}}(P6(e,n,t),n,t)}function C6(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function I6(e){return e&&e.sensitive?"":"i"}function T6(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(C6(void 0===p?"":p),"]|$"),h="[".concat(C6(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=C6(u(y));else{var k=C6(u(y.prefix)),w=C6(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,I6(n))}(x6(e,n),t,n)}function P6(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 P6(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),I6(n))}(e,t,n):T6(e,t,n)}function N6(e,t){return S6(t,{decode:decodeURIComponent})(e)}function O6(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 A6={name:"15bx5k",styles:"overflow-x:hidden"};const M6=Uh((function(e,t){const{initialPath:n,children:r,className:o,...i}=$h(e,"NavigatorProvider"),[a,s]=(0,Ir.useState)([{path:n}]),l=(0,Ir.useRef)([]),[c,u]=(0,Ir.useReducer)(O6,[]),d=(0,Ir.useRef)([]);(0,Ir.useEffect)((()=>{d.current=c}),[c]),(0,Ir.useEffect)((()=>{l.current=a}),[a]);const f=(0,Ir.useRef)(),p=(0,Ir.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=N6(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,c);return f.current&&t&&da(t.params,f.current.params)&&t.id===f.current.id?f.current:t})(e);return f.current=t,t}),[c,a]),m=(0,Ir.useCallback)((e=>u({type:"add",screen:e})),[]),h=(0,Ir.useCallback)((e=>u({type:"remove",screen:e})),[]),g=(0,Ir.useCallback)((()=>{s((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),v=(0,Ir.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,Ir.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!==N6(e,t.path)))&&(r=e)}return r}(t,d.current);void 0!==n&&v(n,{...e,isBack:!0})}),[v]),y=(0,Ir.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=Hh(),w=(0,Ir.useMemo)((()=>k(A6,o)),[o,k]);return(0,Ir.createElement)(ag,{ref:t,className:w,...i},(0,Ir.createElement)(w6.Provider,{value:y},r))}),"NavigatorProvider"),R6=M6;var B6={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const L6=Uh((function(e,t){const n=(0,Ir.useId)(),{children:r,className:o,path:i,...a}=$h(e,"NavigatorScreen"),s=Vq(),{location:l,match:c,addScreen:u,removeScreen:d}=(0,Ir.useContext)(w6),f=c===n,p=(0,Ir.useRef)(null);(0,Ir.useEffect)((()=>{const e={id:n,path:Vi(i)};return u(e),()=>d(e)}),[n,i,u,d]);const m=Hh(),h=(0,Ir.useMemo)((()=>m(B6,o)),[o,m]),g=(0,Ir.useRef)(l);(0,Ir.useEffect)((()=>{g.current=l}),[l]);const v=l.isInitial&&!l.isBack;(0,Ir.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=Hx.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=$g([t,p]);if(!f)return null;if(s)return(0,Ir.createElement)(ag,{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:Gn()&&l.isBack||!Gn()&&!l.isBack?50:-50},w={animate:y,exit:{delay:0,opacity:0,x:!Gn()&&l.isBack||Gn()&&!l.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:k};return(0,Ir.createElement)(ex.div,{ref:b,className:h,...a,...w},r)}),"NavigatorScreen"),D6=L6,z6=(e,t)=>`[${e}="${t}"]`;const F6=Uh((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=ug,attributeName:o="id",...i}=$h(e,"NavigatorButton"),a=Vi(t),{goTo:s}=_6();return{as:r,onClick:(0,Ir.useCallback)((e=>{e.preventDefault(),s(a,{focusTargetSelector:z6(o,a)}),n?.(e)}),[s,n,o,a]),...i,[o]:a}}(e);return(0,Ir.createElement)(ag,{ref:t,...n})}),"NavigatorButton");function j6({title:e}){return(0,Ir.createElement)(y4,{spacing:0},(0,Ir.createElement)(ag,null,(0,Ir.createElement)(ZM,{marginBottom:0,paddingX:4,paddingY:3},(0,Ir.createElement)(K$,{spacing:2},(0,Ir.createElement)(E6,{style:{minWidth:24,padding:0},icon:Gn()?p1:m1,isSmall:!0,"aria-label":Un("Navigate to the previous view")}),(0,Ir.createElement)(ZM,null,(0,Ir.createElement)(uY,{level:5},e))))))}function V6({categories:e,children:t}){return(0,Ir.createElement)(R6,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation"},(0,Ir.createElement)(D6,{path:"/"},(0,Ir.createElement)(B4,null,e.map((e=>(0,Ir.createElement)(F6,{key:e.name,path:`/category/${e.name}`,as:D4,isAction:!0},(0,Ir.createElement)(K$,null,(0,Ir.createElement)(F$,null,e.label),(0,Ir.createElement)(SM,{icon:Gn()?m1:p1}))))))),e.map((e=>(0,Ir.createElement)(D6,{key:e.name,path:`/category/${e.name}`},(0,Ir.createElement)(j6,{title:Un("Back")}),t(e)))))}const H6=()=>{};const $6=function({choices:e=[],onHover:t=H6,onSelect:n,value:r}){return(0,Ir.createElement)(Ir.Fragment,null,e.map((e=>{const o=r===e.value;return(0,Ir.createElement)(vH,{key:e.value,role:"menuitemradio",disabled:e.disabled,icon:o?CM: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)})))},U6={all:"all",synced:"synced",unsynced:"unsynced",user:"user",theme:"theme",directory:"directory"},W6={all:"all",full:"fully",unsynced:"unsynced"},K6=e=>e!==U6.all&&e!==U6.user,G6=e=>e.name===Z6.name;function q6({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:r,scrollContainerRef:o,category:i}){const a=i.name===Z6.name?U6.user:r,s=K6(a),l=G6(i),c=(0,Ir.useMemo)((()=>[{value:W6.all,label:Un("All")},{value:W6.full,label:Un("Synced"),disabled:s},{value:W6.unsynced,label:Un("Not synced"),disabled:s}]),[s]),u=(0,Ir.useMemo)((()=>[{value:U6.all,label:Un("All"),disabled:l},{value:U6.directory,label:Un("Pattern Directory"),disabled:l},{value:U6.theme,label:Un("Theme & Plugins"),disabled:l},{value:U6.user,label:Un("User")}]),[l]);return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(yC,{popoverProps:{placement:"right-end"},label:"Filter patterns",icon:(0,Ir.createElement)(SM,{icon:(0,Ir.createElement)(tm,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"#1E1E1E"}))})},(()=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(hH,{label:Un("Source")},(0,Ir.createElement)($6,{choices:u,onSelect:n=>{var r;t(r=n),K6(r)&&e(W6.all),o.current?.scrollTo(0,0)},value:a})),(0,Ir.createElement)(hH,{label:Un("Type")},(0,Ir.createElement)($6,{choices:c,onSelect:t=>{e(t),o.current?.scrollTo(0,0)},value:n})),(0,Ir.createElement)("div",{className:"block-editor-tool-selector__help"},l1(Un("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,Ir.createElement)(jq,{href:Un("https://wordpress.org/patterns/")})}))))))}const Y6=()=>{},X6={name:"allPatterns",label:Un("All patterns")},Z6={name:"myPatterns",label:Un("My patterns")};function Q6(e,t,n){const r=e.name.startsWith("core/block"),o="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==U6.theme||!r&&!o)||(!(t!==U6.directory||!r&&o)||(t===U6.user&&!e.id||(n===W6.full&&""!==e.syncStatus||!(n!==W6.unsynced||"unsynced"===e.syncStatus||!r))))}function J6(e,t="all"){const[n,r]=z4(void 0,e),o=(0,Ir.useMemo)((()=>"all"===t?n:n.filter((e=>!Q6(e,t)))),[t,n]),i=(0,Ir.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>r.some((t=>t.name===e))))),[r]),a=(0,Ir.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:Wn("Uncategorized")}),o.some((e=>e.id))&&e.unshift(Z6),o.length>0&&e.unshift({name:X6.name,label:X6.label}),AN(An(Kn("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e}),[r,o,i]);return a}function e8({rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o,patternFilter:i}){const a=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>{const e=setTimeout((()=>{const[e]=Hx.tabbable.find(a.current);e?.focus()}));return()=>clearTimeout(e)}),[r]),(0,Ir.createElement)("div",{ref:a,className:"block-editor-inserter__patterns-category-dialog"},(0,Ir.createElement)(t8,{key:r.name,rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o,patternFilter:i}))}function t8({rootClientId:e,onInsert:t,onHover:n=Y6,category:r,showTitlesAsTooltip:o}){const[i,,a]=z4(t,e),[s,l]=(0,Ir.useState)("all"),[c,u]=(0,Ir.useState)("all"),d=J6(e,c),f=(0,Ir.useRef)(),p=(0,Ir.useMemo)((()=>i.filter((e=>{var t;if(Q6(e,c,s))return!1;if(r.name===X6.name)return!0;if(r.name===Z6.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=g6(p,r,f),{changePage:h}=m;(0,Ir.useEffect)((()=>()=>n(null)),[]);const g=(0,Ir.useCallback)((e=>{l(e),h(1)}),[l,h]),v=(0,Ir.useCallback)((e=>{u(e),h(1)}),[u,h]);return(0,Ir.createElement)("div",{className:"block-editor-inserter__patterns-category-panel"},(0,Ir.createElement)(y4,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header"},(0,Ir.createElement)(K$,null,(0,Ir.createElement)(F$,null,(0,Ir.createElement)(uY,{level:4,as:"div"},r.label)),(0,Ir.createElement)(q6,{patternSyncFilter:s,patternSourceFilter:c,setPatternSyncFilter:g,setPatternSourceFilter:v,scrollContainerRef:f,category:r})),!p.length&&(0,Ir.createElement)(qR,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results"},Un("No results found"))),p.length>0&&(0,Ir.createElement)(Q4,{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 n8=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:r}){const[o,i]=(0,Ir.useState)(!1),a=J6(r),s=t||a[0],l=sx("medium","<");return(0,Ir.createElement)(Ir.Fragment,null,!l&&(0,Ir.createElement)("div",{className:"block-editor-inserter__block-patterns-tabs-container"},(0,Ir.createElement)("nav",{"aria-label":Un("Block pattern categories"),className:"block-editor-inserter__block-patterns-tabs"},(0,Ir.createElement)(B4,{role:"list"},a.map((n=>(0,Ir.createElement)(D4,{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,Ir.createElement)(K$,null,(0,Ir.createElement)(F$,null,n.label),(0,Ir.createElement)(SM,{icon:Gn()?m1:p1}))))),(0,Ir.createElement)("div",{role:"listitem"},(0,Ir.createElement)(ug,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>i(!0),variant:"secondary"},Un("Explore all patterns")))))),l&&(0,Ir.createElement)(V6,{categories:a},(e=>(0,Ir.createElement)(t8,{key:e.name,onInsert:n,rootClientId:r,category:e,showTitlesAsTooltip:!1}))),o&&(0,Ir.createElement)(k6,{initialCategory:s,patternCategories:a,onModalClose:()=>i(!1),rootClientId:r}))};function r8(e){const[t,n]=(0,Ir.useState)([]),r=DC((e=>qO(e(XO)).getInserterMediaCategories()),[]),{canInsertImage:o,canInsertVideo:i,canInsertAudio:a}=DC((t=>{const{canInsertBlockType:n}=t(XO);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]);return(0,Ir.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 o8=TM` |
| 9 |
`,i8=og("svg",{target:"ea4tfvq2"})("width:",OR.spinnerSize,"px;height:",OR.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",FM.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),a8={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},s8=og("circle",{target:"ea4tfvq1"})(a8,";stroke:",FM.gray[300],";"),l8=og("path",{target:"ea4tfvq0"})(a8,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",o8,";");const c8=(0,Ir.forwardRef)((function({className:e,...t},n){return(0,Ir.createElement)(i8,{className:$l()("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,Ir.createElement)(s8,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,Ir.createElement)(l8,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))})),u8={image:"img",video:"video",audio:"audio"};function d8(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=u8[t],a=(0,Ir.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[Zr(`core/${t}`,n),a]}const f8=["image"],p8=25,m8={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"};function h8({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,Ir.createElement)(yC,{className:"block-editor-inserter__media-list__item-preview-options",label:Un("Options"),popoverProps:m8,icon:cY},(()=>(0,Ir.createElement)(hH,null,(0,Ir.createElement)(vH,{onClick:()=>window.open(n,"_blank").focus(),icon:Dq},An(Un("Report %s"),e.mediaType)))))}function g8({onClose:e,onSubmit:t}){return(0,Ir.createElement)(mX,{title:Un("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"},(0,Ir.createElement)(y4,{spacing:3},(0,Ir.createElement)("p",null,Un("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")),(0,Ir.createElement)("p",null,Un("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."))),(0,Ir.createElement)(gR,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,Ir.createElement)(bR,null,(0,Ir.createElement)(ug,{variant:"tertiary",onClick:e},Un("Cancel"))),(0,Ir.createElement)(bR,null,(0,Ir.createElement)(ug,{variant:"primary",onClick:t},Un("Insert")))))}function v8({media:e,onClick:t,composite:n,category:r}){const[o,i]=(0,Ir.useState)(!1),[a,s]=(0,Ir.useState)(!1),[l,c]=(0,Ir.useState)(!1),[u,d]=(0,Ir.useMemo)((()=>d8(e,r.mediaType)),[e,r.mediaType]),{createErrorNotice:f,createSuccessNotice:p}=Iq(R2),m=DC((e=>e(XO).getSettings().mediaUpload),[]),h=(0,Ir.useCallback)((e=>{if(l)return;const n=eo(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]){xl(e.url)||(t({...n,attributes:{...n.attributes,id:e.id,url:e.url}}),p(Un("Image uploaded and inserted."),{type:"snackbar"}),c(!1))},allowedTypes:f8,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>p8){const e="...";v=g.slice(0,p8-e.length)+e}const b=(0,Ir.useCallback)((()=>s(!0)),[]),y=(0,Ir.useCallback)((()=>s(!1)),[]);return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(z3,{isEnabled:!0,blocks:[u]},(({draggable:t,onDragStart:o,onDragEnd:i})=>(0,Ir.createElement)("div",{className:$l()("block-editor-inserter__media-list__list-item",{"is-hovered":a}),draggable:t,onDragStart:o,onDragEnd:i},(0,Ir.createElement)(Jp,{text:v||g},(0,Ir.createElement)("div",{onMouseEnter:b,onMouseLeave:y},(0,Ir.createElement)(N3,{role:"option",as:"div",...n,className:"block-editor-inserter__media-list__item",onClick:()=>h(u),"aria-label":g},(0,Ir.createElement)("div",{className:"block-editor-inserter__media-list__item-preview"},d,l&&(0,Ir.createElement)("div",{className:"block-editor-inserter__media-list__item-preview-spinner"},(0,Ir.createElement)(c8,null)))),!l&&(0,Ir.createElement)(h8,{category:r,media:e})))))),o&&(0,Ir.createElement)(g8,{onClose:()=>i(!1),onSubmit:()=>{t(eo(u)),p(Un("Image inserted."),{type:"snackbar"}),i(!1)}}))}const b8=function({mediaList:e,category:t,onClick:n,label:r=Un("Media List")}){const o=h4();return(0,Ir.createElement)(G4,{...o,role:"listbox",className:"block-editor-inserter__media-list","aria-label":r},e.map(((e,r)=>(0,Ir.createElement)(v8,{key:e.id||e.sourceId||r,media:e,category:t,onClick:n,composite:o}))))};function y8(e=""){const[t,n]=(0,Ir.useState)(e),[r,o]=(0,Ir.useState)(e),i=WY(o,250);return(0,Ir.useEffect)((()=>{i(t)}),[t]),[t,n,r]}const k8=function(){return(0,Ir.createElement)("div",{className:"block-editor-inserter__no-results"},(0,Ir.createElement)(SM,{className:"block-editor-inserter__no-results-icon",icon:h1}),(0,Ir.createElement)("p",null,Un("No results found.")))},w8=10;function _8({rootClientId:e,onInsert:t,category:n}){const r=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>{const e=setTimeout((()=>{const[e]=Hx.tabbable.find(r.current);e?.focus()}));return()=>clearTimeout(e)}),[n]),(0,Ir.createElement)("div",{ref:r,className:"block-editor-inserter__media-dialog"},(0,Ir.createElement)(E8,{rootClientId:e,onInsert:t,category:n}))}function E8({rootClientId:e,onInsert:t,category:n}){const[r,o,i]=y8(),{mediaList:a,isLoading:s}=function(e,t={}){const[n,r]=(0,Ir.useState)(),[o,i]=(0,Ir.useState)(!1),a=(0,Ir.useRef)();return(0,Ir.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:w8,search:i}),l="block-editor-inserter__media-panel",c=n.labels.search_items||Un("Search");return(0,Ir.createElement)("div",{className:l},(0,Ir.createElement)(Z0,{className:`${l}-search`,onChange:o,value:r,label:c,placeholder:c}),s&&(0,Ir.createElement)("div",{className:`${l}-spinner`},(0,Ir.createElement)(c8,null)),!s&&!a?.length&&(0,Ir.createElement)(k8,null),!s&&!!a?.length&&(0,Ir.createElement)(b8,{rootClientId:e,onClick:t,mediaList:a,category:n}))}const x8=function({fallback:e=null,children:t}){const n=DC((e=>{const{getSettings:t}=e(XO);return!!t().mediaUpload}),[]);return n?t:e},S8=KY("editor.MediaUpload")((()=>null)),C8=["image","video","audio"];const I8=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:r}){const o=r8(e),i=sx("medium","<"),a="block-editor-inserter__media-tabs",s=(0,Ir.useCallback)((e=>{if(!e?.url)return;const[t]=d8(e,e.type);r(t)}),[r]),l=(0,Ir.useMemo)((()=>o.map((e=>({...e,label:e.labels.name})))),[o]);return(0,Ir.createElement)(Ir.Fragment,null,!i&&(0,Ir.createElement)("div",{className:`${a}-container`},(0,Ir.createElement)("nav",{"aria-label":Un("Media categories")},(0,Ir.createElement)(B4,{role:"list",className:a},o.map((e=>(0,Ir.createElement)(D4,{role:"listitem",key:e.name,onClick:()=>n(e),className:$l()(`${a}__media-category`,{"is-selected":t===e}),"aria-label":e.labels.name,"aria-current":e===t?"true":void 0},(0,Ir.createElement)(K$,null,(0,Ir.createElement)(F$,null,e.labels.name),(0,Ir.createElement)(SM,{icon:Gn()?m1:p1}))))),(0,Ir.createElement)("div",{role:"listitem"},(0,Ir.createElement)(x8,null,(0,Ir.createElement)(S8,{multiple:!1,onSelect:s,allowedTypes:C8,render:({open:e})=>(0,Ir.createElement)(ug,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},Un("Open Media Library"))})))))),i&&(0,Ir.createElement)(V6,{categories:l},(t=>(0,Ir.createElement)(E8,{onInsert:r,rootClientId:e,category:t}))))},{Fill:T8,Slot:P8}=eC("__unstableInserterMenuExtension");T8.Slot=P8;const N8=T8,O8=[];const A8=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=WY(AN,500),{prioritizedBlocks:g}=DC((e=>{const t=e(XO).getBlockListSettings(o);return{prioritizedBlocks:t?.prioritizedInserterBlocks||O8}}),[o]),[v,b]=n6({onSelect:t,rootClientId:o,clientId:i,isAppender:a,insertionIndex:s,shouldFocusBlock:f,selectBlockOnInsert:m}),[y,k,w,_]=q3(v,b),[E,,x]=z4(b,v),S=(0,Ir.useMemo)((()=>{if(0===l)return[];const t=f6(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,Ir.useMemo)((()=>{if(0===C)return[];let t=UI(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===d6(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 f6(e,r,o)})(t,k,w,e);return void 0!==C?n.slice(0,C):n}),[e,y,k,w,C,g]);(0,Ir.useEffect)((()=>{if(!e)return;const t=I.length+S.length,n=An(Kn("%d result found.","%d results found.",t),t);h(n)}),[e,h,I,S]);const T=g5(I,{step:9}),P=g5(T.length===I.length?S:O8),N=I.length>0||S.length>0,O=!!I.length&&(0,Ir.createElement)(G3,{title:(0,Ir.createElement)(sg,null,Un("Blocks"))},(0,Ir.createElement)(K3,{items:T,onSelect:_,onHover:n,label:Un("Blocks"),isDraggable:d})),A=!!S.length&&(0,Ir.createElement)(G3,{title:(0,Ir.createElement)(sg,null,Un("Block patterns"))},(0,Ir.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,Ir.createElement)(Q4,{shownPatterns:P,blockPatterns:S,onClickPattern:x,onHover:r,isDraggable:d})));return(0,Ir.createElement)(g4,null,!u&&!N&&(0,Ir.createElement)(k8,null),p?A:O,!!I.length&&!!S.length&&(0,Ir.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),p?O:A,u&&(0,Ir.createElement)(N8.Slot,{fillProps:{onSelect:_,onHover:n,filterValue:e,hasItems:N,rootClientId:v}},(e=>e.length?e:N?null:(0,Ir.createElement)(k8,null))))};function M8(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=t$(fc(dc({},e),{orientation:wc(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:wc(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=WH(),i=uu(fc(dc({},r.getState()),{selectedId:wc(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:wc(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return du(i,(()=>mu(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))})))),du(i,(()=>hu(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),du(i,(()=>mu(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)})))),du(i,(()=>mu(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return mu(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(fc(dc({},e),{tabId:r.id}))}))}))})))),fc(dc(dc({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function R8(e={}){const[t,n]=Eu(M8,e);return function(e,t,n){_u(e=$H(e,t,n),n,"selectedId","setSelectedId"),_u(e,n,"selectOnMove");const[r]=Eu((()=>e.panels),{});return(0,Ir.useMemo)((()=>nc(tc({},e),{panels:r})),[])}(t,n,e)}var B8=Fu([xg],[Sg]),L8=(B8.useContext,B8.useScopedContext),D8=B8.useProviderContext,z8=(B8.ContextProvider,B8.ScopedContextProvider),F8=zu((e=>{var t=e,{store:n}=t,r=rc(t,["store"]);const o=D8();bc(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=nu(r,(e=>(0,Ru.jsx)(z8,{value:n,children:e})),[n]),r=tc({role:"tablist","aria-orientation":i},r),r=u$(tc({store:n},r))})),j8=Bu((e=>Du("div",F8(e))));var V8=zu((e=>{var t=e,{store:n,accessibleWhenDisabled:r=!0,getItem:o}=t,i=rc(t,["store","accessibleWhenDisabled","getItem"]);const a=L8();bc(n=n||a,!1);const s=Zc(),l=i.id||s,c=kc(i),u=(0,Ir.useCallback)((e=>{const t=nc(tc({},e),{dimmed:c});return o?o(t):t}),[c,o]),d=i.onClick,f=Yc((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=nc(tc({id:l,role:"tab","aria-selected":m,"aria-controls":p||void 0},i),{onClick:f}),i=Ng(nc(tc({store:n},i),{accessibleWhenDisabled:r,getItem:u,shouldRegisterItem:!!s&&i.shouldRegisterItem}))})),H8=Lu((e=>Du("button",V8(e))));var $8=zu((e=>{var t=e,{store:n,tabId:r,getItem:o}=t,i=rc(t,["store","tabId","getItem"]);const a=D8();bc(n=n||a,!1);const s=(0,Ir.useRef)(null),l=Zc(i.id),[c,u]=(0,Ir.useState)(!1);(0,Ir.useEffect)((()=>{const e=s.current;if(!e)return;const t=sd(e);u(!!t.length)}),[]);const d=(0,Ir.useCallback)((e=>{const t=nc(tc({},e),{id:l||e.id,tabId:r});return o?o(t):t}),[l,r,o]);i=nu(i,(e=>(0,Ru.jsx)(z8,{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=nc(tc({id:l,role:"tabpanel","aria-labelledby":f||void 0},i),{ref:Xc(s,i.ref)});const m=Cu({open:p});return i=Cd(tc({focusable:!c},i)),i=tf(tc({store:m},i)),i=vg(nc(tc({store:n.panels},i),{getItem:d}))})),U8=Bu((e=>Du("div",$8(e))));const W8=e=>{if(null!=e)return e.match(/^tab-panel-[0-9]*-(.*)/)?.[1]},K8=(0,Ir.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:a="is-active",onSelect:s},l)=>{const c=Gl(K8,"tab-panel"),u=(0,Ir.useCallback)((e=>{if(void 0!==e)return`${c}-${e}`}),[c]),d=R8({setSelectedId:e=>{if(null==e)return;const t=n.find((t=>u(t.name)===e));if(t?.disabled||t===m)return;const r=W8(e);void 0!==r&&s?.(r)},orientation:i,selectOnMove:r,defaultSelectedId:u(o)}),f=W8(d.useState("selectedId")),p=(0,Ir.useCallback)((e=>{d.setState("selectedId",u(e))}),[u,d]),m=n.find((({name:e})=>e===f)),h=h$(f);return(0,Ir.useEffect)((()=>{h!==f&&f===o&&f&&s?.(f)}),[f,o,s,h]),(0,Ir.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,Ir.useEffect)((()=>{if(!m?.disabled)return;const e=n.find((e=>!e.disabled));e&&p(e.name)}),[n,m?.disabled,p,c]),(0,Ir.createElement)("div",{className:e,ref:l},(0,Ir.createElement)(j8,{store:d,className:"components-tab-panel__tabs"},n.map((e=>(0,Ir.createElement)(H8,{key:e.name,id:u(e.name),className:$l()("components-tab-panel__tabs-item",e.className,{[a]:e.name===f}),disabled:e.disabled,"aria-controls":`${u(e.name)}-view`,render:(0,Ir.createElement)(ug,{icon:e.icon,label:e.icon&&e.title,showTooltip:!!e.icon})},!e.icon&&e.title)))),m&&(0,Ir.createElement)(U8,{id:`${u(m.name)}-view`,store:d,tabId:u(m.name),className:"components-tab-panel__tab-content"},t(m)))})),G8=K8,q8={name:"blocks",title:Un("Blocks")},Y8={name:"patterns",title:Un("Patterns")},X8={name:"media",title:Un("Media")};const Z8=function({children:e,showPatterns:t=!1,showMedia:n=!1,onSelect:r,prioritizePatterns:o}){const i=(0,Ir.useMemo)((()=>{const e=[];return o&&t&&e.push(Y8),e.push(q8),!o&&t&&e.push(Y8),n&&e.push(X8),e}),[o,t,n]);return(0,Ir.createElement)(G8,{className:"block-editor-inserter__tabs",tabs:i,onSelect:r},e)};const Q8=(0,Ir.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]=y8(s),[m,h]=(0,Ir.useState)(null),[g,v]=(0,Ir.useState)(null),[b,y]=(0,Ir.useState)("all"),[k,w]=(0,Ir.useState)(null),[_,E]=(0,Ir.useState)(null),[x,S,C]=n6({rootClientId:e,clientId:t,isAppender:n,insertionIndex:r,shouldFocusBlock:l}),{showPatterns:I,inserterItems:T}=DC((e=>{const{__experimentalGetAllowedPatterns:t,getInserterItems:n}=e(XO);return{showPatterns:!!t(x).length,inserterItems:n(x)}}),[x]),P=(0,Ir.useMemo)((()=>T.some((({category:e})=>"reusable"===e))),[T]),N=!!r8(x).length,O=(0,Ir.useCallback)(((e,t,n)=>{S(e,t,n),o()}),[S,o]),A=(0,Ir.useCallback)(((e,t)=>{S(e,{patternName:t}),o()}),[S,o]),M=(0,Ir.useCallback)((e=>{C(!!e),h(e)}),[C,h]),R=(0,Ir.useCallback)((e=>{C(!!e)}),[C]),B=(0,Ir.useCallback)(((e,t)=>{v(e),y(t)}),[v]),L=(0,Ir.useMemo)((()=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("div",{className:"block-editor-inserter__block-list"},(0,Ir.createElement)(b4,{rootClientId:x,onInsert:O,onHover:M,showMostUsedBlocks:a})),i&&(0,Ir.createElement)("div",{className:"block-editor-inserter__tips"},(0,Ir.createElement)(sg,{as:"h2"},Un("A tip for using the block editor")),(0,Ir.createElement)(f1,null)))),[x,O,M,a,i]),D=(0,Ir.useMemo)((()=>(0,Ir.createElement)(n8,{rootClientId:x,onInsert:A,onSelectCategory:B,selectedCategory:g})),[x,A,B,g]),z=(0,Ir.useMemo)((()=>(0,Ir.createElement)(I8,{rootClientId:x,selectedCategory:k,onSelectCategory:w,onInsert:O})),[x,O,k,w]),F=(0,Ir.useCallback)((e=>"blocks"===e.name?L:"patterns"===e.name?D:"media"===e.name?z:void 0),[L,D,z]),j=(0,Ir.useRef)();(0,Ir.useImperativeHandle)(u,(()=>({focusSearch:()=>{j.current.focus()}})));const V="patterns"===_&&!p&&g,H=!p&&(I||P||N),$="media"===_&&!p&&k;return(0,Ir.createElement)("div",{className:"block-editor-inserter__menu"},(0,Ir.createElement)("div",{className:$l()("block-editor-inserter__main-area",{"show-as-tabs":H})},(0,Ir.createElement)(Z0,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{m&&h(null),f(e)},value:d,label:Un("Search for blocks and patterns"),placeholder:Un("Search"),ref:j}),!!p&&(0,Ir.createElement)("div",{className:"block-editor-inserter__no-tab-container"},(0,Ir.createElement)(A8,{filterValue:p,onSelect:o,onHover:M,onHoverPattern:R,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l})),H&&(0,Ir.createElement)(Z8,{showPatterns:I,showReusableBlocks:P,showMedia:N,prioritizePatterns:c,onSelect:e=>{"patterns"!==e&&v(null),E(e)}},F),!p&&!H&&(0,Ir.createElement)("div",{className:"block-editor-inserter__no-tab-container"},L)),$&&(0,Ir.createElement)(_8,{rootClientId:x,onInsert:O,category:k}),i&&m&&(0,Ir.createElement)(h5,{item:m}),V&&(0,Ir.createElement)(e8,{rootClientId:x,onInsert:A,onHover:R,category:g,patternFilter:b,showTitlesAsTooltip:!0}))}));function J8({onSelect:e,rootClientId:t,clientId:n,isAppender:r,prioritizePatterns:o,selectBlockOnInsert:i}){const[a,s]=(0,Ir.useState)(""),[l,c]=n6({onSelect:e,rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:i}),[u]=q3(l,c),[d]=z4(c,l),{setInserterIsOpened:f,insertionIndex:p}=DC((e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:o}=e(XO),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,Ir.useEffect)((()=>{f&&f(!1)}),[f]);let g=0;return m&&(g=o?4:2),(0,Ir.createElement)("div",{className:$l()("block-editor-inserter__quick-inserter",{"has-search":h,"has-expand":f})},h&&(0,Ir.createElement)(Z0,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:a,onChange:e=>{s(e)},label:Un("Search for blocks and patterns"),placeholder:Un("Search")}),(0,Ir.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,Ir.createElement)(A8,{filterValue:a,onSelect:e,rootClientId:t,clientId:n,isAppender:r,maxBlockPatterns:g,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:o,selectBlockOnInsert:i})),f&&(0,Ir.createElement)(ug,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{f({rootClientId:t,insertionIndex:p,filterValue:a})},"aria-label":Un("Browse all. This will open the main inserter panel in the editor toolbar.")},Un("Browse all")))}const e9=({onToggle:e,disabled:t,isOpen:n,blockTitle:r,hasSingleBlockType:o,toggleProps:i={},prioritizePatterns:a})=>{const{as:s=ug,label:l,onClick:c,...u}=i;let d=l;return!d&&o?d=An(Wn("Add %s","directly add the only allowed block"),r):!d&&a?d=Un("Add pattern"):d||(d=Wn("Add block","Generic label for block inserter button")),(0,Ir.createElement)(s,{icon:cW,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 t9 extends Ir.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=e9,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,Ir.createElement)(J8,{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,Ir.createElement)(Q8,{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,Ir.createElement)(lC,{className:"block-editor-inserter",contentClassName:$l()("block-editor-inserter__popover",{"is-quick":o}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Un("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}const n9=Pe([qY(((e,{clientId:t,rootClientId:n,shouldDirectInsert:r=!0})=>{const{getBlockRootClientId:o,hasInserterItems:i,getAllowedBlocks:a,getDirectInsertBlock:s,getSettings:l}=e(XO),{getBlockVariations:c}=e(wi),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}})),ZY(((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(XO);let f;if(l){const e=function(e){const{getBlock:t,getPreviousBlockClientId:i}=n(XO);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=Zr(l.name,{...l.attributes||{},...e})}else f=Zr(s.name);d(f,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:a,getBlockRootClientId:s}=n(XO);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});AN(An(Un("%s block added"),s.title))}}))),QY((({hasItems:e,isAppender:t,rootClientId:n,clientId:r})=>e||!t&&!n&&!r))])(t9),r9=(0,Ir.forwardRef)(((e,t)=>(0,Ir.createElement)(n9,{ref:t,...e})));const o9=Pe(qY(((e,t)=>{const{getBlockCount:n,getSettings:r,getTemplateLock:o}=e(XO),i=!n(t.rootClientId),{bodyPlaceholder:a}=r();return{showPrompt:i,isLocked:!!o(t.rootClientId),placeholder:a}})),ZY(((e,t)=>{const{insertDefaultBlock:n,startTyping:r}=e(XO);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=Ba(r)||Un("Type / to choose a block");return(0,Ir.createElement)("div",{"data-root-client-id":o||"",className:$l()("block-editor-default-block-appender",{"has-visible-prompt":n})},(0,Ir.createElement)("p",{tabIndex:"0",role:"button","aria-label":Un("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{px!==e.keyCode&&32!==e.keyCode||t()},onClick:()=>t(),onFocus:()=>{n&&t()}},n?i:"\ufeff"),(0,Ir.createElement)(r9,{rootClientId:o,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function i9({rootClientId:e,className:t,onFocus:n,tabIndex:r},o){return(0,Ir.createElement)(r9,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:i,isOpen:a,blockTitle:s,hasSingleBlockType:l})=>{let c;c=l?An(Wn("Add %s","directly add the only allowed block"),s):Wn("Add block","Generic label for block inserter button");const u=!l;let d=(0,Ir.createElement)(ug,{ref:o,onFocus:n,tabIndex:r,className:$l()(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,Ir.createElement)(sg,{as:"span"},c),(0,Ir.createElement)(SM,{icon:cW}));return(u||l)&&(d=(0,Ir.createElement)(Jp,{text:c},d)),d},isAppender:!0})}(0,Ir.forwardRef)(((e,t)=>(sn("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),i9(e,t))));const a9=(0,Ir.forwardRef)(i9);function s9({rootClientId:e}){return DC((t=>t(XO).canInsertBlockType(Dr(),e)))?(0,Ir.createElement)(o9,{rootClientId:e}):(0,Ir.createElement)(a9,{rootClientId:e,className:"block-list-appender__toggle"})}const l9=function({rootClientId:e,renderAppender:t,className:n,tagName:r="div"}){const o=function(e,t){const n=DC((n=>{const{getTemplateLock:r,getSelectedBlockClientId:o,__unstableGetEditorMode:i,getBlockEditingMode:a}=n(XO);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,Ir.createElement)(t,null):(0,Ir.createElement)(s9,{rootClientId:e}):null}(e,t),i=DC((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:r,getBlockCount:o}=t(XO),i=n();return r()&&e===i?.rootClientId&&0===o(e)}),[e]);return o?(0,Ir.createElement)(r,{tabIndex:-1,className:$l()("block-list-appender wp-block",n,{"is-drag-over":i}),contentEditable:!1,"data-block":!0},o):null},c9=(0,Ir.createContext)();function u9(){const e=(0,Ir.useContext)(c9),t=DC((e=>e(XO).getSettings().isDistractionFree||"zoom-out"===e(XO).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:r,isMultiSelecting:o,getSelectedBlockClientIds:i,getTemplateLock:a,__unstableIsWithinBlockOverlay:s,getBlockEditingMode:l}=DC(XO),{showInsertionPoint:c,hideInsertionPoint:u}=Iq(XO);return $x((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&&(Gn()?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 d9=Ul((e=>t=>{const{clientId:n}=tA();return(0,Ir.createElement)(e,{...t,clientId:n})}),"withClientId"),f9=d9((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:r,isToggle:o})=>(0,Ir.createElement)(a9,{className:$l()({"block-list-appender__toggle":o}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:r}))),p9=Pe([d9,qY(((e,{clientId:t})=>{const{getBlockOrder:n}=e(XO),r=n(t);return{lastBlockClientId:r[r.length-1]}}))])((({clientId:e})=>(0,Ir.createElement)(o9,{rootClientId:e}))),m9=new WeakMap;function h9(e,t,n,r,o,i,a,s,l,c,u){const{updateBlockListSettings:d}=Iq(XO),f=PC(),{parentLock:p}=DC((t=>{const n=t(XO).getBlockRootClientId(e);return{parentLock:t(XO).getTemplateLock(n)}}),[e]),m=function(e){const[t,n]=(0,Ir.useState)(e);return da(t,e)||n(e),t}(t),h=(0,Ir.useMemo)((()=>n),n),g=void 0===s||"contentOnly"===p?p:s;(0,Ir.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=hq(u?.type);t.orientation=e.getOrientation(u)}void 0!==i&&(sn("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=i),void 0!==r&&(t.defaultBlock=r),void 0!==a&&(sn("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=a),void 0!==o&&(t.directInsert=o),m9.get(f)||m9.set(f,[]),m9.get(f).push([e,t]),window.queueMicrotask((()=>{m9.get(f)?.length&&f.batch((()=>{m9.get(f).forEach((e=>{d(...e)})),m9.set(f,[])}))}))}),[e,m,h,g,r,o,i,a,l,c,d,u,f])}function g9(e){const t=(0,Ir.useRef)();return t.current=e,t}function v9({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:r,onDragEnter:o,onDragLeave:i,onDragEnd:a,onDragOver:s}){const l=g9(n),c=g9(r),u=g9(o),d=g9(i),f=g9(a),p=g9(s);return $x((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 b9(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=>eo(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 y9(e,t,n={}){const{operation:r="insert"}=n,o=DC((e=>e(XO).getSettings().mediaUpload),[]),{canInsertBlockType:i,getBlockIndex:a,getClientIdsOfDescendants:s,getBlockOrder:l,getBlocksByClientId:c}=DC(XO),{insertBlocks:u,moveBlocksToPosition:d,updateBlockAttributes:f,clearSelectedBlock:p,replaceBlocks:m,removeBlocks:h}=Iq(XO),g=PC(),v=(0,Ir.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,Ir.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=b9(e,t,a,s,b,v,p),k=function(e,t,n,r,o,i){return t=>{if(!n)return;const a=io(ao("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=Fl({HTML:e,mode:"BLOCKS"});t.length&&n(t)}}(0,0,v);return e=>{const t=b2(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?w(n):t.length?k(t):y(e)}}function k9(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 w9({rootClientId:e=""}={}){const t=PC(),[n,r]=(0,Ir.useState)({index:null,operation:"insert"}),o=DC((t=>{const{__unstableIsWithinBlockOverlay:n,__unstableHasActiveBlockOverlayActive:r,getBlockEditingMode:o}=t(XO);return"default"!==o(e)||r(e)||n(e)}),[e]),{getBlockListSettings:i,getBlocks:a,getBlockIndex:s}=DC(XO),{showInsertionPoint:l,hideInsertionPoint:c}=Iq(XO),u=y9(e,n.index,{operation:n.operation}),d=function(e,t,n){const r=$Y((()=>M3(e,null!=t?t:0,n)),[e,t,n]);return(0,Ir.useEffect)((()=>()=>r.cancel()),[r]),r}((0,Ir.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:po(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=Gn();let i=0,a="before",s=1/0;e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:n,blockIndex:l})=>{const c=n();let[u,d]=k9(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 v9({isDisabled:o,onDrop:u,onDragOver(e){d(e,e.currentTarget.ownerDocument)},onDragLeave(){d.cancel(),c()},onDragEnd(){d.cancel(),c()}})}const _9={};function E9(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;h9(t,n,r,o,i,a,s,c,f,h,v),function(e,t,n,r){const{getBlocks:o,getSelectedBlocksInitialCaretPosition:i,isBlockSelected:a}=DC(XO),{replaceInnerBlocks:s,__unstableMarkNextChangeAsNotPersistent:l}=Iq(XO),{innerBlocks:c}=DC((t=>({innerBlocks:t(XO).getBlocks(e)})),[e]),u=(0,Ir.useRef)(null);(0,Ir.useLayoutEffect)((()=>{let c=!1;return window.queueMicrotask((()=>{if(c)return;const d=o(e),f=0===d.length||"all"===n||"contentOnly"===n,p=!Ma()(t,u.current);if(!f||!p)return;u.current=t;const m=Vl(d,t);Ma()(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 DC((t=>{const n=t(XO).getBlock(e);if(!n)return;const r=t(wi).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=DC((e=>e(XO).getBlock(t)?.name),[t]),k=jr(y,"layout")||jr(y,"__experimentalLayout")||_9,{allowSizingOnChildren:w=!1}=k,_=LU("layout")||_9,E=v||k,x=(0,Ir.useMemo)((()=>({..._,...E,...w&&{allowSizingOnChildren:!0}})),[_,E,w]);return(0,Ir.createElement)(tX,{value:b},(0,Ir.createElement)(L9,{rootClientId:t,renderAppender:m,__experimentalAppenderTagName:p,layout:x,wrapperRef:u,placeholder:g}))}function x9(e){return w1(e),(0,Ir.createElement)(E9,{...e})}const S9=(0,Ir.forwardRef)(((e,t)=>{const n=C9({ref:t},e);return(0,Ir.createElement)("div",{className:"block-editor-inner-blocks"},(0,Ir.createElement)("div",{...n}))}));function C9(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:r}=t,{clientId:o,layout:i=null,__unstableLayoutClassNames:a=""}=tA(),s=sx("medium","<"),{__experimentalCaptureToolbars:l,hasOverlay:c}=DC((e=>{if(!o)return{};const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:r,__unstableGetEditorMode:i}=e(XO),a=t(o),l="navigation"===i()||s;return{__experimentalCaptureToolbars:e(wi).hasBlockSupport(a,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==a&&!n(o)&&!r(o,!0)&&l}}),[o,s]),u=w9({rootClientId:o}),d=$g([e.ref,r?null:u]),f={__experimentalCaptureToolbars:l,layout:i,...t},p=f.value&&f.onChange?x9:E9;return{...e,ref:d,className:$l()(e.className,"block-editor-block-list__layout",n?"":a,{"has-overlay":c}),children:o?(0,Ir.createElement)(p,{...f,clientId:o}):(0,Ir.createElement)(L9,{...t})}}C9.save=function(e={}){const{innerBlocks:t}=ga;if(!Array.isArray(t))return{...e,children:t};const n=wa(t,{isInnerBlocks:!0}),r=(0,Ir.createElement)(Li,null,n);return{...e,children:r}},S9.DefaultBlockAppender=p9,S9.ButtonBlockAppender=f9,S9.Content=()=>C9.save().children;const I9=S9,T9=new Set([gx,vx,bx,hx,px,dx]);function P9(){const{isTyping:e,hasInlineToolbar:t}=DC((e=>{const{isTyping:t,getSettings:n}=e(XO);return{isTyping:t(),hasInlineToolbar:n().hasInlineToolbar}}),[]),{startTyping:n,stopTyping:r}=Iq(XO),o=function(){const e=DC((e=>e(XO).isTyping()),[]),{stopTyping:t}=Iq(XO);return $x((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=$x((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((()=>{f0(t)||r()}))}function d(e){const{keyCode:t}=e;t!==mx&&t!==fx||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;f0(r)&&o.contains(r)&&("keydown"!==t||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&T9.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 $g([o,i])}const N9=(0,Ir.createContext)(),O9=(0,Ir.createContext)(),A9=new WeakMap;function M9({className:e,...t}){const[n,r]=(0,Ir.useState)(),o=sx("medium"),{isOutlineMode:i,isFocusMode:a,editorMode:s}=DC((e=>{const{getSettings:t,__unstableGetEditorMode:n}=e(XO),{outlineMode:r,focusMode:o}=t();return{isOutlineMode:r,isFocusMode:o,editorMode:n()}}),[]),l=PC(),{setBlockVisibility:c}=Iq(XO),u=WY((0,Ir.useCallback)((()=>{const e={};A9.get(l).forEach((([t,n])=>{e[t]=n})),c(e)}),[l]),300,{trailing:!0}),d=(0,Ir.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{A9.get(l)||A9.set(l,[]);for(const t of e){const e=t.target.getAttribute("data-block");A9.get(l).push([e,t.isIntersecting])}u()}))}),[]),f=C9({ref:$g([Q1(),u9(),P9()]),className:$l()("is-root-container",e,{"is-outline-mode":i,"is-focus-mode":a&&o,"is-navigate-mode":"navigation"===s})},t);return(0,Ir.createElement)(N9.Provider,{value:n},(0,Ir.createElement)(O9.Provider,{value:d},(0,Ir.createElement)("div",{...f}),(0,Ir.createElement)("div",{ref:r})))}function R9(e){return(0,Ir.createElement)(eA,{value:QO},(0,Ir.createElement)(M9,{...e}))}function B9({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,layout:o=bH}){const{order:i,selectedBlocks:a,visibleBlocks:s}=DC((e=>{const{getBlockOrder:n,getSelectedBlockClientIds:r,__unstableGetVisibleBlocks:o}=e(XO);return{order:n(t),selectedBlocks:r(),visibleBlocks:o()}}),[t]);return(0,Ir.createElement)(kH,{value:o},i.map((e=>(0,Ir.createElement)(MC,{key:e,value:!s.has(e)&&!a.includes(e)},(0,Ir.createElement)(G0,{rootClientId:t,clientId:e})))),i.length<1&&e,(0,Ir.createElement)(l9,{tagName:r,rootClientId:t,renderAppender:n}))}function L9(e){return(0,Ir.createElement)(MC,{value:!1},(0,Ir.createElement)(B9,{...e}))}R9.__unstableElementContext=N9;const D9=()=>{};const z9=Uh(((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=D9,onDeselect:s,onSelect:l,...c}=$h(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:_}=Yq(),E=(0,Ir.useCallback)(n,[i,n]),x=(0,Ir.useCallback)(a,[i,a]),S=h$(u),C=u===i||null===u;(0,Ir.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,Ir.useEffect)((()=>(C&&f(x),()=>{C&&p(x)})),[f,p,x,C]);const I=r?"default":"optional",T=d?.[I]?.[o],P=h$(T),N=void 0!==d?.[I]?.[o],O=n(),A=h$(O),M=O&&!A;(0,Ir.useEffect)((()=>{M&&(r||null===u)&&g(o,I)}),[u,M,r,I,o,g]),(0,Ir.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=Hh(),L=(0,Ir.useMemo)((()=>B(hY,b&&!R&&gY,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,Ir.createElement)(ag,{...i,ref:t},n):o?(0,Ir.createElement)(ag,{...i,ref:t}):null}),"ToolsPanelItem"),F9=z9,j9=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 V9 extends Ir.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 H9({children:e,isPresent:t}){const n=(0,Ir.useId)(),r=(0,Ir.useRef)(null),o=(0,Ir.useRef)({width:0,height:0,top:0,left:0});return(0,Ir.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]),Ir.createElement(V9,{isPresent:t,childRef:r,sizeRef:o},Ir.cloneElement(e,{ref:r}))}const $9=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Sb(U9),l=(0,Ir.useId)(),c=(0,Ir.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,Ir.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),Ir.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=Ir.createElement(H9,{isPresent:n},e)),Ir.createElement(ov.Provider,{value:c},e)};function U9(){return new Map}const W9=e=>e.key||"";const K9=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{my(!o,"Replace exitBeforeEnter with mode='wait'");const s=(0,Ir.useContext)(bv).forceRender||OH()[0],l=NH(),c=function(e){const t=[];return Ir.Children.forEach(e,(e=>{(0,Ir.isValidElement)(e)&&t.push(e)})),t}(e);let u=c;const d=(0,Ir.useRef)(new Map).current,f=(0,Ir.useRef)(u),p=(0,Ir.useRef)(new Map).current,m=(0,Ir.useRef)(!0);if(iv((()=>{m.current=!1,function(e,t){e.forEach((e=>{const n=W9(e);t.set(n,e)}))}(c,p),f.current=u})),function(e){(0,Ir.useEffect)((()=>()=>e()),[])}((()=>{m.current=!0,p.clear(),d.clear()})),m.current)return Ir.createElement(Ir.Fragment,null,u.map((e=>Ir.createElement($9,{key:W9(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));u=[...u];const h=f.current.map(W9),g=c.map(W9),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=Ir.createElement($9,{key:W9(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:Ir.createElement($9,{key:W9(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),Ir.createElement(Ir.Fragment,null,d.size?u:u.map((e=>(0,Ir.cloneElement)(e))))};const G9=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[a,s]=(0,Ir.useState)(),[l,c]=(0,Ir.useState)(),[u,d]=(0,Ir.useState)(),f=v9({onDrop(e){const t=e.dataTransfer?b2(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?b2(e.dataTransfer):[]).length>0)&&(t="file"),d(t)},onDragEnd(){s(!1),d(void 0)},onDragEnter(){c(!0)},onDragLeave(){c(!1)}}),p=Vq();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,Ir.createElement)(ex.div,{variants:h,initial:p?"show":"hidden",animate:"show",exit:p?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,Ir.createElement)(ex.div,{variants:g},(0,Ir.createElement)(SM,{icon:j9,className:"components-drop-zone__content-icon"}),(0,Ir.createElement)("span",{className:"components-drop-zone__content-text"},t||Un("Drop files to upload")))));const v=$l()("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,Ir.createElement)("div",{...i,ref:f,className:v},p?m:(0,Ir.createElement)(K9,null,m))};const q9=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...a}){const s=(0,Ir.useRef)(null),l=()=>{s.current?.click()},c=i?i({openFileDialog:l}):(0,Ir.createElement)(ug,{onClick:l,...a},t);return(0,Ir.createElement)("div",{className:"components-form-file-upload"},c,(0,Ir.createElement)("input",{type:"file",ref:s,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))},Y9=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Ir.createElement)(em,{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"})),X9=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),Z9=()=>{};function Q9(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const J9=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=Z9,isDismissible:i=!0,actions:a=[],politeness:s=Q9(t),__unstableHTML:l,onDismiss:c=Z9}){!function(e,t){const n="string"==typeof e?e:ca(e);(0,Ir.useEffect)((()=>{n&&AN(n,t)}),[n,t])}(r,s);const u=$l()(e,"components-notice","is-"+t,{"is-dismissible":i});return l&&"string"==typeof n&&(n=(0,Ir.createElement)(Li,null,n)),(0,Ir.createElement)("div",{className:u},(0,Ir.createElement)(sg,null,function(e){switch(e){case"warning":return Un("Warning notice");case"info":return Un("Information notice");case"error":return Un("Error notice");default:return Un("Notice")}}(t)),(0,Ir.createElement)("div",{className:"components-notice__content"},n,(0,Ir.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,Ir.createElement)(ug,{key:s,href:a,variant:l,onClick:a?void 0:i,className:$l()("components-notice__action",e)},t)})))),i&&(0,Ir.createElement)(ug,{className:"components-notice__dismiss",icon:Zx,label:Un("Close"),onClick:()=>{c(),o()}}))};const e7=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 t7(e,t){return function({select:n,dispatch:r}){const o=n.get(e,t);r.set(e,t,!o)}}function n7(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function r7(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function o7(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}function i7(e,t,n){const r=e.preferences[t]?.[n];return void 0!==r?r:e.defaults[t]?.[n]}const a7=Tt("core/preferences",{reducer:pn({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:e7}),actions:w,selectors:_});hn(a7);const s7=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ir.createElement)(em,{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"})),l7=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));const c7=function e({children:t,settingsOpen:n,setSettingsOpen:r}){const o=Vq(),i=o?Ir.Fragment:K9,a=o?"div":ex.div,s=`link-control-settings-drawer-${Gl(e)}`;return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(ug,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>r(!n),icon:Gn()?l7:gV,"aria-controls":s},Wn("Advanced","Additional link settings")),(0,Ir.createElement)(i,null,n&&(0,Ir.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,Ir.createElement)("div",{className:"block-editor-link-control__drawer-inner"},t))))};var u7=o(4979),d7=o.n(u7);const f7=Ul((e=>t=>(0,Ir.createElement)(e,{...t,speak:AN,debouncedSpeak:WY(AN,500)})),"withSpokenMessages"),p7=Ul((e=>class extends Ir.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,Ir.createElement)(e,{...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout})}}),"withSafeTimeout"),m7=p7,h7=Ul((e=>t=>{const n=Gl(e);return(0,Ir.createElement)(e,{...t,instanceId:n})}),"instanceId");function g7(e){return"function"==typeof e}class v7 extends Ir.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,Ir.createRef)(),this.inputRef=(0,Ir.createRef)(),this.updateSuggestions=UY(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,d7()(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(An(Kn("%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(Un("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 gx:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case bx:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case px:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case gx:{e.preventDefault();const t=n?n-1:r.length-1;this.setState({selectedSuggestion:t});break}case bx:{e.preventDefault();const t=null===n||n===r.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case fx:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Un("Link selected.")));break;case px: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,Ir.createElement)(Ir.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:r,instanceId:o,placeholder:i=Un("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:$l()("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:Un("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||sn("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,Ir.createElement)(DH,{__nextHasNoMarginBottom:e,...h},(0,Ir.createElement)("input",{...g}),c&&(0,Ir.createElement)(c8,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 g7(t)?t({suggestions:r,selectedSuggestion:i,suggestionsListProps:c,buildSuggestionItemProps:u,isLoading:l,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!o?.length,currentInputValue:o}):(0,Ir.createElement)(aC,{placement:"bottom",focusOnMount:!1},(0,Ir.createElement)("div",{...c,className:$l()("block-editor-url-input__suggestions",`${e}__suggestions`)},r.map(((e,t)=>(0,Ir.createElement)(ug,{...u(0,t),key:e.id,className:$l()("block-editor-url-input__suggestion",{"is-selected":t===i}),onClick:()=>this.handleOnClick(e)},e.title)))))}}const b7=Pe(m7,f7,h7,qY(((e,t)=>{if(g7(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(XO);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(v7),y7=({searchTerm:e,onClick:t,itemProps:n,buttonText:r})=>{if(!e)return null;let o;return o=r?"function"==typeof r?r(e):r:l1(An(Un("Create: <mark>%s</mark>"),e),{mark:(0,Ir.createElement)("mark",null)}),(0,Ir.createElement)(vH,{...n,iconPosition:"left",icon:cW,className:"block-editor-link-control__search-item",onClick:t},o)},k7=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,Ir.createElement)(Ir.Fragment,null,t);const o=new RegExp(`(${WK(r)})`,"gi");return l1(t.replace(o,"<mark>$&</mark>"),{mark:(0,Ir.createElement)("mark",null)})},w7=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{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"})),_7=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),E7=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),x7=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{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"})),S7=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{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"})),C7=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 I7(e){try{return decodeURI(e)}catch(t){return e}}function T7(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function P7(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 N7={post:w7,page:_7,post_tag:E7,category:x7,attachment:S7};function O7({isURL:e,suggestion:t}){let n=null;return e?n=C7:t.type in N7&&(n=N7[t.type]),n?(0,Ir.createElement)(SM,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function A7(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function M7(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}function R7(e){return e.isFrontPage?"front page":"post_tag"===e.type?"tag":e.type}const B7=({itemProps:e,suggestion:t,searchTerm:n,onClick:r,isURL:o=!1,shouldShowType:i=!1})=>{const a=o?Un("Press ENTER to add this link"):(s=t.url)?Te(I7,T7,(e=>t=>null==t||t!=t?e:t)(""),((e,...t)=>(...n)=>e(...n,...t))(P7,24),M7,A7)(s):s;var s;return(0,Ir.createElement)(vH,{...e,info:a,iconPosition:"left",icon:(0,Ir.createElement)(O7,{suggestion:t,isURL:o}),onClick:r,shortcut:i&&R7(t),className:"block-editor-link-control__search-item"},(0,Ir.createElement)(k7,{text:v2(t.title),highlight:n}))},L7="__CREATE__",D7="link",z7="mailto",F7="internal",j7=[D7,z7,"tel",F7],V7=[{id:"opensInNewTab",title:Un("Open in new tab")}];function H7({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=$l()("block-editor-link-control__search-results",{"is-loading":l}),p=1===a.length&&j7.includes(a[0].type),m=t&&!p&&!c,h=!d?.type,g=`block-editor-link-control-search-results-label-${e}`,v=c?Un("Suggestions"):An(Un('Search results for "%s"'),n),b=(0,Ir.createElement)(sg,{id:g},v);return(0,Ir.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},b,(0,Ir.createElement)("div",{...o,className:f,"aria-labelledby":g},(0,Ir.createElement)(hH,null,a.map(((e,t)=>m&&L7===e.type?(0,Ir.createElement)(y7,{searchTerm:n,buttonText:u,onClick:()=>r(e),key:e.type,itemProps:i(e,t),isSelected:t===s}):L7===e.type?null:(0,Ir.createElement)(B7,{key:`${e.id}-${e.type}`,itemProps:i(e,t),suggestion:e,index:t,onClick:()=>{r(e)},isSelected:t===s,isURL:j7.includes(e.type),searchTerm:n,shouldShowType:h,isFrontPage:e?.isFrontPage}))))))}function $7(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}const U7=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;const W7=/^(?:[a-z]+:|#|\?|\.|\/)/i;function K7(e){return e?(e=e.trim(),W7.test(e)||(t=e,U7.test(t))?e:"http://"+e):e;var t}function G7(e){if(e.includes(" "))return!1;const t=function(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}($7(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 q7=()=>Promise.resolve([]),Y7=e=>{let t=D7;const n=$7(e)||"";return n.includes("mailto")&&(t=z7),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=F7),Promise.resolve([{id:e,title:e,url:"URL"===t?K7(e):e,type:t}])};function X7(e,t,n,r){const{fetchSearchSuggestions:o,pageOnFront:i}=DC((e=>{const{getSettings:t}=e(XO);return{pageOnFront:t().pageOnFront,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),a=t?Y7:q7;return(0,Ir.useCallback)(((t,{isInitialSuggestions:i})=>G7(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||G7(e)||!r?a:a.concat({title:e,url:e,type:L7})})(t,{...e,isInitialSuggestions:i},o,n,r)),[a,o,i,e,n,r])}const Z7=()=>Promise.resolve([]),Q7=()=>{},J7=(0,Ir.forwardRef)((({value:e,children:t,currentLink:n={},className:r=null,placeholder:o=null,withCreateSuggestion:i=!1,onCreateSuggestion:a=Q7,onChange:s=Q7,onSelect:l=Q7,showSuggestions:c=!0,renderSuggestions:u=(e=>(0,Ir.createElement)(H7,{...e})),fetchSuggestions:d=null,allowDirectEntry:f=!0,showInitialSuggestions:p=!1,suggestionsQuery:m={},withURLSuggestion:h=!0,createSuggestionButtonText:g,hideLabelFromVision:v=!1},b)=>{const y=X7(m,f,i,h),k=c?d||y:Z7,w=Gl(J7),[_,E]=(0,Ir.useState)(),x=async e=>{let t=e;if(L7!==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=$l()(r,{});return(0,Ir.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,Ir.createElement)(b7,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:Un("Link"),hideLabelFromVision:v,className:S,value:e,onChange:(e,t)=>{s(e),E(t)},placeholder:null!=o?o:Un("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)})),eee=J7,tee=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),nee=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),ree=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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:oee,Fill:iee}=eC("BlockEditorLinkControlViewer");function aee(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 see=function(e){const[t,n]=(0,Ir.useReducer)(aee,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=DC((e=>{const{getSettings:t}=e(XO);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,Ir.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 lee({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:r=!1,onRemove:o,additionalControls:i}){const a=n?e?.url:null,{richData:s,isFetching:l}=see(a),c=s&&Object.keys(s).length,u=e&&P7(I7(e.url),16)||"",d=!e?.url?.length,f=!d&&v2(s?.title||e?.title||u);let p;return p=s?.icon?(0,Ir.createElement)("img",{src:s?.icon,alt:""}):d?(0,Ir.createElement)(SM,{icon:tee,size:32}):(0,Ir.createElement)(SM,{icon:C7}),(0,Ir.createElement)("div",{"aria-label":Un("Currently selected"),className:$l()("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,Ir.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,Ir.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,Ir.createElement)("span",{className:$l()("block-editor-link-control__search-item-icon",{"is-image":s?.icon})},p),(0,Ir.createElement)("span",{className:"block-editor-link-control__search-item-details"},d?(0,Ir.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},Un("Link is empty")):(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(jq,{className:"block-editor-link-control__search-item-title",href:e.url},f),e?.url&&f!==u&&(0,Ir.createElement)("span",{className:"block-editor-link-control__search-item-info"},u)))),(0,Ir.createElement)(ug,{icon:nee,label:Un("Edit"),className:"block-editor-link-control__search-item-action",onClick:t,iconSize:24}),r&&(0,Ir.createElement)(ug,{icon:ree,label:Un("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:o,iconSize:24}),(0,Ir.createElement)(oee,{fillProps:e})),!!(c&&(s?.image||s?.description)||l)&&(0,Ir.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},(s?.image||l)&&(0,Ir.createElement)("div",{"aria-hidden":!s?.image,className:$l()("block-editor-link-control__search-item-image",{"is-placeholder":!s?.image})},s?.image&&(0,Ir.createElement)("img",{src:s?.image,alt:""})),(s?.description||l)&&(0,Ir.createElement)("div",{"aria-hidden":!s?.description,className:$l()("block-editor-link-control__search-item-description",{"is-placeholder":!s?.description})},s?.description&&(0,Ir.createElement)(qR,{truncate:!0,numberOfLines:"2"},s.description))),i&&i())}const cee=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&&sn("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[f,p]=(0,Ir.useState)(!1),[m,h]=(0,Ir.useState)(!1),g=$x((e=>{e&&(e.indeterminate=!!s,p(e.matches(":checked")),h(e.matches(":indeterminate")))}),[a,s]),v=Gl(e,"inspector-checkbox-control",c);return(0,Ir.createElement)(DH,{__nextHasNoMarginBottom:n,label:i,id:v,help:l,className:$l()("components-checkbox-control",o)},(0,Ir.createElement)("span",{className:"components-checkbox-control__input-container"},(0,Ir.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,Ir.createElement)(SM,{icon:uW,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,f?(0,Ir.createElement)(SM,{icon:CM,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,Ir.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},r))},uee=()=>{},dee=({value:e,onChange:t=uee,settings:n})=>{if(!n||!n.length)return null;const r=n=>r=>{t({...e,[n.id]:r})},o=n.map((t=>(0,Ir.createElement)(cee,{__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,Ir.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,Ir.createElement)(sg,{as:"legend"},Un("Currently selected link settings")),o)};const fee=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 pee=()=>{},mee="core/block-editor",hee="linkControlSettingsDrawer";function gee({searchInputPlaceholder:e,value:t,settings:n=V7,onChange:r=pee,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,Ir.useState)(!1),{advancedSettingsPreference:w}=DC((e=>{var t;return{advancedSettingsPreference:null!==(t=e(a7).get(mee,hee))&&void 0!==t&&t}}),[]),{set:_}=Iq(a7),E=w||y,x=(0,Ir.useRef)(!0),S=(0,Ir.useRef)(),C=(0,Ir.useRef)(),I=(0,Ir.useRef)(!1),T=n.map((({id:e})=>e)),[P,N,O,A,M]=function(e){const[t,n]=(0,Ir.useState)(e||{});return(0,Ir.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&&!ua(P,t),[B,L]=(0,Ir.useState)(void 0!==c?c:!t||!t.url),{createPage:D,isCreatingPage:z,errorMessage:F}=function(e){const t=(0,Ir.useRef)(),[n,r]=(0,Ir.useState)(!1),[o,i]=(0,Ir.useState)(null);return(0,Ir.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){r(!0),i(null);try{return t.current=fee(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||Un("An unknown error occurred during creation. Please try again.")),e}finally{r(!1)}},isCreatingPage:n,errorMessage:o}}(u);(0,Ir.useEffect)((()=>{void 0!==c&&L(c)}),[c]),(0,Ir.useEffect)((()=>{if(x.current)return void(x.current=!1);(Hx.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,Ir.createElement)("div",{tabIndex:-1,ref:S,className:"block-editor-link-control"},z&&(0,Ir.createElement)("div",{className:"block-editor-link-control__loading"},(0,Ir.createElement)(c8,null)," ",Un("Creating"),"…"),q&&(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)("div",{className:$l()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":G,"has-actions":K})},G&&(0,Ir.createElement)(Lq,{__nextHasNoMarginBottom:!0,ref:C,className:"block-editor-link-control__field block-editor-link-control__text-content",label:Un("Text"),value:P?.title,onChange:A,onKeyDown:e=>{const{keyCode:t}=e;t!==px||U||(e.preventDefault(),H())},size:"__unstable-large"}),(0,Ir.createElement)(eee,{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,Ir.createElement)("div",{className:"block-editor-link-control__search-enter"},(0,Ir.createElement)(ug,{onClick:Y?pee:H,label:Un("Submit"),icon:s7,className:"block-editor-link-control__search-submit","aria-disabled":Y}))),F&&(0,Ir.createElement)(J9,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),t&&!B&&!z&&(0,Ir.createElement)(lee,{key:t?.url,value:t,onEditClick:()=>L(!0),hasRichPreviews:g,hasUnlinkControl:W,additionalControls:()=>{if(n?.find((e=>"opensInNewTab"===e.id)))return(0,Ir.createElement)(dee,{value:P,settings:n?.filter((({id:e})=>"opensInNewTab"===e)),onChange:r})},onRemove:()=>{o(),L(!0)}}),X&&(0,Ir.createElement)("div",{className:"block-editor-link-control__tools"},!U&&(0,Ir.createElement)(c7,{settingsOpen:E,setSettingsOpen:e=>{_&&_(mee,hee,e),k(e)}},(0,Ir.createElement)(dee,{value:P,settings:n,onChange:M(T)}))),K&&(0,Ir.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,Ir.createElement)(ug,{variant:"primary",onClick:Y?pee:H,className:"block-editor-link-control__search-submit","aria-disabled":Y},Un("Save")),(0,Ir.createElement)(ug,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),N(t),j?V():o?.(),i?.()}},Un("Cancel"))),b&&b())}gee.ViewerFill=iee,gee.DEFAULT_LINK_SETTINGS=V7;const vee=gee,bee=()=>{};let yee=0;const kee=Pe([ZY((e=>{const{createNotice:t,removeNotice:n}=e(R2);return{createNotice:t,removeNotice:n}})),KY("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:r,accept:o,onError:i,onSelect:a,onSelectURL:s,onToggleFeaturedImage:l,useFeaturedImage:c,onFilesUpload:u=bee,name:d=Un("Replace"),createNotice:f,removeNotice:p,children:m,multiple:h=!1,addToGallery:g,handleUpload:v=!0,popoverProps:b})=>{const y=DC((e=>e(XO).getSettings().mediaUpload),[]),k=!!y,w=(0,Ir.useRef)(),_="block-editor/media-replace-flow/error-notice/"+ ++yee,E=e=>{const t=v2(e);i?i(t):setTimeout((()=>{f("error",t,{speak:!0,id:_,isDismissible:!0})}),1e3)},x=(e,t)=>{c&&l&&l(),t(),a(e),AN(Un("The media file has been replaced")),p(_)},S=e=>{e.keyCode===bx&&(e.preventDefault(),e.target.click())},C=h&&!(!r||0===r.length)&&r.every((e=>"image"===e||e.startsWith("image/")));return(0,Ir.createElement)(lC,{popoverProps:b,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,Ir.createElement)(Fg,{ref:w,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:S},d),renderContent:({onClose:i})=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(hC,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,Ir.createElement)(x8,null,(0,Ir.createElement)(S8,{gallery:C,addToGallery:g,multiple:h,value:h?n:t,onSelect:e=>x(e,i),allowedTypes:r,render:({open:e})=>(0,Ir.createElement)(vH,{icon:Y9,onClick:e},Un("Open Media Library"))}),(0,Ir.createElement)(q9,{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,Ir.createElement)(vH,{icon:j9,onClick:()=>{e()}},Un("Upload"))})),l&&(0,Ir.createElement)(vH,{icon:X9,onClick:l,isPressed:c},Un("Use featured image")),m),s&&(0,Ir.createElement)("form",{className:$l()("block-editor-media-flow__url-input",{"has-siblings":k||l})},(0,Ir.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Un("Current media URL:")),(0,Ir.createElement)(Jp,{text:e},(0,Ir.createElement)("div",null,(0,Ir.createElement)(vee,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{s(e),w.current.focus()}})))))})})),wee="background",_ee="image";function Eee({attributes:e={},setAttributes:t}){const{style:n={}}=e;t({style:FU({...n,background:{...n?.background,backgroundImage:void 0}})})}function xee({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,Ir.createElement)(B4,{as:"span"},(0,Ir.createElement)(K$,{justify:"flex-start",as:"span"},(0,Ir.createElement)("span",{className:$l()("block-editor-hooks__background__inspector-image-indicator-wrapper",{"has-image":n}),"aria-hidden":!0},n&&(0,Ir.createElement)("span",{className:"block-editor-hooks__background__inspector-image-indicator",style:{backgroundImage:`url(${n})`}})),(0,Ir.createElement)(bR,{as:"span"},(0,Ir.createElement)(v5,{numberOfLines:1,className:"block-editor-hooks__background__inspector-media-replace-title"},r),(0,Ir.createElement)(sg,{as:"span"},t?An(Un("Selected image: %s"),t):Un("No image selected")))))}function See(e){const{attributes:t,clientId:n,setAttributes:r}=e,{id:o,title:i,url:a}=t.style?.background?.backgroundImage||{},{mediaUpload:s}=DC((e=>({mediaUpload:e(XO).getSettings().mediaUpload}))),{createErrorNotice:l}=Iq(R2),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:FU(e)};return void r(n)}if(xl(e.url))return;if(e.media_type&&e.media_type!==_ee||!e.media_type&&e.type&&e.type!==_ee)return void c(Un("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:FU(n)};r(o)},d=(0,Ir.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]);return(0,Ir.createElement)(F9,{className:"single-column",hasValue:()=>function(e){return!!e.attributes.style?.background?.backgroundImage?.id||!!e.attributes.style?.background?.backgroundImage?.url}(e),label:Un("Background image"),onDeselect:()=>Eee(e),isShownByDefault:!0,resetAllFilter:d,panelId:n},(0,Ir.createElement)("div",{className:"block-editor-hooks__background__inspector-media-replace-container"},(0,Ir.createElement)(kee,{mediaId:o,mediaURL:a,allowedTypes:[_ee],accept:"image/*",onSelect:u,name:(0,Ir.createElement)(xee,{label:Un("Background image"),filename:i,url:a}),variant:"secondary"},(0,Ir.createElement)(vH,{onClick:()=>Eee(e)},Un("Reset "))),(0,Ir.createElement)(G9,{onFilesDrop:e=>{s({allowedTypes:["image"],filesList:e,onFileChange([e]){xl(e?.url)||u(e)},onError:c})},label:Un("Drop to upload")})))}function Cee(e){const t=LU("background.backgroundImage")&&function(e,t="any"){if("web"!==nI.OS)return!1;const n=jr(e,wee);return!0===n||("any"===t?!!n?.backgroundImage:!!n?.[t])}(e.name,"backgroundImage");return t?(0,Ir.createElement)(DY,{group:"background"},t&&(0,Ir.createElement)(See,{...e})):null}const Iee=/^([\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 Tee=["top","right","bottom","left"],Pee=["color","style","width"],Nee=e=>!e||!Pee.some((t=>void 0!==e[t])),Oee=e=>{if(!e)return!1;if(Aee(e)){return!Tee.every((t=>Nee(e[t])))}return!Nee(e)},Aee=(e={})=>Object.keys(e).some((e=>-1!==Tee.indexOf(e))),Mee=e=>{if(!Aee(e))return!1;const t=Tee.map((t=>Ree(e?.[t])));return!t.every((e=>e===t[0]))},Ree=(e,t)=>{if(Nee(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(" ")},Bee=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(Iee);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)));_r([Er,Cr]);const Lee=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}};function Dee(e,t){if(e&&t)return`has-${TU(t)}-${e}`}const zee=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 Fee=IM("",""),jee={name:"bjn8wh",styles:"position:relative"},Vee=e=>{const{color:t=FM.gray[200],style:n="solid",width:r=OR.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==OR.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Hee={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function $ee(e){const{className:t,size:n="default",...r}=$h(e,"BorderBoxControlLinkedButton"),o=Hh();return{...r,className:(0,Ir.useMemo)((()=>o((e=>IM("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",KM({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const Uee=Uh(((e,t)=>{const{className:n,isLinked:r,...o}=$ee(e),i=Un(r?"Unlink sides":"Link sides");return(0,Ir.createElement)(Jp,{text:i},(0,Ir.createElement)(ag,{className:n},(0,Ir.createElement)(ug,{...o,isSmall:!0,icon:r?zee:ree,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function Wee(e){const{className:t,value:n,size:r="default",...o}=$h(e,"BorderBoxControlVisualizer"),i=Hh(),a=(0,Ir.useMemo)((()=>i(((e,t)=>IM("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:",Vee(e?.top),";border-bottom:",Vee(e?.bottom),";",KM({borderLeft:Vee(e?.left)})()," ",KM({borderRight:Vee(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:a,value:n}}const Kee=Uh(((e,t)=>{const{value:n,...r}=Wee(e);return(0,Ir.createElement)(ag,{...r,ref:t})}),"BorderBoxControlVisualizer"),Gee=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),qee=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 Yee={name:"f3vz0n",styles:"font-weight:500"},Xee=IM("box-shadow:inset ",OR.controlBoxShadowFocus,";",""),Zee=IM("border:0;padding:0;margin:0;",kB,";",""),Qee=IM(zK,"{flex:0 0 auto;}",""),Jee=(e,t)=>{const{style:n}=e||{};return IM("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?FM.gray[300]:void 0;return IM("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:",qM(4),";width:",qM(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);}","")},ete=IM("width:",228,"px;>div:first-of-type>",xB,"{margin-bottom:0;",Yee,";}&& ",xB,"+button:not( .has-text ){min-width:24px;padding:0;}",""),tte=IM("",""),nte=IM("",""),rte=IM("justify-content:center;width:100%;&&{border-top:",OR.borderWidth," solid ",FM.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}",""),ote=IM(xB,"{",Yee,";}",""),ite={name:"ed6beh",styles:"&&&&&{min-width:32px;width:32px;height:32px;padding:4px;}"};const ate=[{label:Un("Solid"),icon:vV,value:"solid"},{label:Un("Dashed"),icon:Gee,value:"dashed"},{label:Un("Dotted"),icon:qee,value:"dotted"}],ste=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,Ir.createElement)(sg,{as:"label"},t):(0,Ir.createElement)(xB,null,t):null},lte=Uh(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:a,...s}=function(e){const{className:t,...n}=$h(e,"BorderControlStylePicker"),r=Hh();return{...n,className:(0,Ir.useMemo)((()=>r(ote,t)),[t,r]),buttonClassName:(0,Ir.useMemo)((()=>r(ite)),[r])}}(e);return(0,Ir.createElement)(ag,{...s,ref:t},(0,Ir.createElement)(ste,{label:o,hideLabelFromVision:r}),(0,Ir.createElement)(gR,{justify:"flex-start",gap:1},ate.map((e=>(0,Ir.createElement)(ug,{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"),cte=lte;const ute=(0,Ir.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,Ir.createElement)("span",{className:$l()("component-color-indicator",n),style:{background:r},ref:t,...o})})),dte=()=>{};const fte=(0,Ir.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:a,label:s,multiple:l=!1,onBlur:c=dte,onChange:u,onFocus:d=dte,options:f=[],size:p="default",value:m,labelPosition:h="top",children:g,prefix:v,suffix:b,__next40pxDefaultSize:y=!1,__nextHasNoMarginBottom:k=!1,...w}=fB(e,"wp.components.SelectControl","6.4"),[_,E]=(0,Ir.useState)(!1),x=function(e){const t=Gl(fte);return e||`inspector-select-control-${t}`}(a),S=o?`${x}__help`:void 0;if(!f?.length&&!g)return null;const C=$l()("components-select-control",n);return(0,Ir.createElement)(DH,{help:o,id:x,__nextHasNoMarginBottom:k},(0,Ir.createElement)(hB,{className:C,disabled:r,hideLabelFromVision:i,id:x,isFocused:_,label:s,size:p,suffix:b||!l&&(0,Ir.createElement)(rR,null),prefix:v,labelPosition:h,__next40pxDefaultSize:y},(0,Ir.createElement)(JM,{...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,Ir.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))})),pte=fte,mte=og(DK,{target:"ez9hsf47"})(eB,"{width:",qM(24),";}"),hte=og(pte,{target:"ez9hsf46"})("margin-left:",qM(-2),";width:5em;select:not( :focus )~",aB,aB,aB,"{border-color:transparent;}"),gte=og(cq,{target:"ez9hsf45"})("flex:1;margin-right:",qM(2),";"),vte=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${qM(2)} );\n\tmargin-left: ${qM(1)};\n}`,bte=og("div",{target:"ez9hsf44"})("padding-top:",qM(2),";padding-right:0;padding-left:0;padding-bottom:0;"),yte=og(K$,{target:"ez9hsf43"})("padding-left:",qM(4),";padding-right:",qM(4),";"),kte=og(gR,{target:"ez9hsf42"})("padding-top:",qM(4),";padding-left:",qM(4),";padding-right:",qM(3),";padding-bottom:",qM(5),";"),wte=og("div",{target:"ez9hsf41"})(kB,";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:",qM(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",qM(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 ",OR.borderWidthFocus," #fff;}",vte,";"),_te=og(ug,{target:"ez9hsf40"})("&&&&&{min-width:",qM(6),";padding:0;>svg{margin-right:0;}}");var Ete=o(2152),xte=o.n(Ete);function Ste(e){const t=(0,Ir.useRef)(e);return t.current=e,t}const Cte=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),Ite=e=>{const{color:t,colorType:n}=e,[r,o]=(0,Ir.useState)(null),i=(0,Ir.useRef)(),a=function(e,t){const n=Ste(e),r=Ste(t);return $x((e=>{const t=new(xte())(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,Ir.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,Ir.createElement)(Jp,{delay:0,hideOnClick:!1,text:r===t.toHex()?Un("Copied!"):Un("Copy")},(0,Ir.createElement)(_te,{isSmall:!0,ref:a,icon:Cte,showTooltip:!1}))},Tte=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,Ir.createElement)(K$,{spacing:4},(0,Ir.createElement)(mte,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,Ir.createElement)(ZM,{as:qR,paddingLeft:qM(4),color:FM.theme.accent,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,Ir.createElement)(gte,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),Pte=({color:e,onChange:t,enableAlpha:n})=>{const{r,g:o,b:i,a}=e.toRgb();return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Tte,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(kr({r:e,g:o,b:i,a}))}),(0,Ir.createElement)(Tte,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(kr({r,g:e,b:i,a}))}),(0,Ir.createElement)(Tte,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(kr({r,g:o,b:e,a}))}),n&&(0,Ir.createElement)(Tte,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a),onChange:e=>t(kr({r,g:o,b:i,a:e/100}))}))},Nte=({color:e,onChange:t,enableAlpha:n})=>{const{h:r,s:o,l:i,a}=e.toHsl();return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Tte,{min:0,max:359,label:"Hue",abbreviation:"H",value:r,onChange:e=>{t(kr({h:e,s:o,l:i,a}))}}),(0,Ir.createElement)(Tte,{min:0,max:100,label:"Saturation",abbreviation:"S",value:o,onChange:e=>{t(kr({h:r,s:e,l:i,a}))}}),(0,Ir.createElement)(Tte,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{t(kr({h:r,s:o,l:e,a}))}}),n&&(0,Ir.createElement)(Tte,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a),onChange:e=>{t(kr({h:r,s:o,l:i,a:e/100}))}}))},Ote=({color:e,onChange:t,enableAlpha:n})=>(0,Ir.createElement)(SK,{prefix:(0,Ir.createElement)(ZM,{as:qR,marginLeft:qM(4),color:FM.theme.accent,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(kr(n))},maxLength:n?9:7,label:Un("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"}),Ate=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,Ir.createElement)(Nte,{...o});case"rgb":return(0,Ir.createElement)(Pte,{...o});default:return(0,Ir.createElement)(Ote,{...o})}};function Mte(){return(Mte=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 Rte(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 Bte(e){var t=(0,Ir.useRef)(e),n=(0,Ir.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var Lte=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Dte=function(e){return"touches"in e},zte=function(e){return e&&e.ownerDocument.defaultView||self},Fte=function(e,t,n){var r=e.getBoundingClientRect(),o=Dte(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:Lte((o.pageX-(r.left+zte(e).pageXOffset))/r.width),top:Lte((o.pageY-(r.top+zte(e).pageYOffset))/r.height)}},jte=function(e){!Dte(e)&&e.preventDefault()},Vte=Ir.memo((function(e){var t=e.onMove,n=e.onKey,r=Rte(e,["onMove","onKey"]),o=(0,Ir.useRef)(null),i=Bte(t),a=Bte(n),s=(0,Ir.useRef)(null),l=(0,Ir.useRef)(!1),c=(0,Ir.useMemo)((function(){var e=function(e){jte(e),(Dte(e)?e.touches.length>0:e.buttons>0)&&o.current?i(Fte(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=zte(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&&(jte(t),!function(e,t){return t&&!Dte(e)}(t,l.current)&&r)){if(Dte(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(Fte(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,Ir.useEffect)((function(){return f}),[f]),Ir.createElement("div",Mte({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),Hte=function(e){return e.filter(Boolean).join(" ")},$te=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=Hte(["react-colorful__pointer",e.className]);return Ir.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},Ir.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Ute=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Wte=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Ute(e.h),s:Ute(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Ute(o/2),a:Ute(r,2)}}),Kte=function(e){var t=Wte(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Gte=function(e){var t=Wte(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},qte=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:Ute(255*[r,s,a,a,l,r][c]),g:Ute(255*[l,r,r,s,a,a][c]),b:Ute(255*[a,a,l,r,r,s][c]),a:Ute(o,2)}},Yte=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Zte({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}},Xte=Yte,Zte=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:Ute(60*(s<0?s+6:s)),s:Ute(i?a/i*100:0),v:Ute(i/255*100),a:o}},Qte=Ir.memo((function(e){var t=e.hue,n=e.onChange,r=Hte(["react-colorful__hue",e.className]);return Ir.createElement("div",{className:r},Ir.createElement(Vte,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:Lte(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":Ute(t),"aria-valuemax":"360","aria-valuemin":"0"},Ir.createElement($te,{className:"react-colorful__hue-pointer",left:t/360,color:Kte({h:t,s:100,v:100,a:1})})))})),Jte=Ir.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Kte({h:t.h,s:100,v:100,a:1})};return Ir.createElement("div",{className:"react-colorful__saturation",style:r},Ir.createElement(Vte,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:Lte(t.s+100*e.left,0,100),v:Lte(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ute(t.s)+"%, Brightness "+Ute(t.v)+"%"},Ir.createElement($te,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Kte(t)})))})),ene=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},tne=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function nne(e,t,n){var r=Bte(n),o=(0,Ir.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,Ir.useRef)({color:t,hsva:i});(0,Ir.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,Ir.useEffect)((function(){var t;ene(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,Ir.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var rne,one="undefined"!=typeof window?Ir.useLayoutEffect:Ir.useEffect,ine=new Map,ane=function(e){one((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!ine.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}',ine.set(t,n);var r=rne||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(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=Rte(e,["className","colorModel","color","onChange"]),s=(0,Ir.useRef)(null);ane(s);var l=nne(n,o,i),c=l[0],u=l[1],d=Hte(["react-colorful",t]);return Ir.createElement("div",Mte({},a,{ref:s,className:d}),Ir.createElement(Jte,{hsva:c,onChange:u}),Ir.createElement(Qte,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},lne=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Gte(Object.assign({},n,{a:0}))+", "+Gte(Object.assign({},n,{a:1}))+")"},i=Hte(["react-colorful__alpha",t]),a=Ute(100*n.a);return Ir.createElement("div",{className:i},Ir.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),Ir.createElement(Vte,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:Lte(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},Ir.createElement($te,{className:"react-colorful__alpha-pointer",left:n.a,color:Gte(n)})))},cne=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=Rte(e,["className","colorModel","color","onChange"]),s=(0,Ir.useRef)(null);ane(s);var l=nne(n,o,i),c=l[0],u=l[1],d=Hte(["react-colorful",t]);return Ir.createElement("div",Mte({},a,{ref:s,className:d}),Ir.createElement(Jte,{hsva:c,onChange:u}),Ir.createElement(Qte,{hue:c.h,onChange:u}),Ir.createElement(lne,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},une={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Yte,fromHsva:function(e){var t=qte(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:tne},dne=function(e){return Ir.createElement(cne,Mte({},e,{colorModel:une}))},fne={defaultColor:"rgb(0, 0, 0)",toHsva:Xte,fromHsva:function(e){var t=qte(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:tne},pne=function(e){return Ir.createElement(sne,Mte({},e,{colorModel:fne}))};const mne=({color:e,enableAlpha:t,onChange:n})=>{const r=t?dne:pne,o=(0,Ir.useMemo)((()=>e.toRgbString()),[e]);return(0,Ir.createElement)(r,{color:o,onChange:e=>{n(kr(e))}})};_r([Er]);const hne=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],gne=Uh(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:a,...s}=$h(e,"ColorPicker"),[l,c]=Ug({onChange:o,value:r,defaultValue:i}),u=(0,Ir.useMemo)((()=>kr(l||"")),[l]),d=WY(c),f=(0,Ir.useCallback)((e=>{d(e.toHex())}),[d]),[p,m]=(0,Ir.useState)(a||"hex");return(0,Ir.createElement)(wte,{ref:t,...s},(0,Ir.createElement)(mne,{onChange:f,color:u,enableAlpha:n}),(0,Ir.createElement)(bte,null,(0,Ir.createElement)(yte,{justify:"space-between"},(0,Ir.createElement)(hte,{__nextHasNoMarginBottom:!0,options:hne,value:p,onChange:e=>m(e),label:Un("Color format"),hideLabelFromVision:!0}),(0,Ir.createElement)(Ite,{color:u,colorType:a||p})),(0,Ir.createElement)(kte,{direction:"column",gap:2},(0,Ir.createElement)(Ate,{colorType:p,color:u,onChange:f,enableAlpha:n}))))}),"ColorPicker"),vne=gne;function bne(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const yne=Tn((e=>{const t=kr(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 kne(e){const{onChangeComplete:t}=e,n=(0,Ir.useCallback)((e=>{t(yne(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:bne(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const wne=e=>(0,Ir.createElement)(vne,{...kne(e)}),_ne=(0,Ir.createContext)({}),Ene=new Map;const xne=(0,Ir.forwardRef)((function(e,t){const{isPressed:n,...r}=e;return(0,Ir.createElement)(ug,{...r,"aria-pressed":n,ref:t})}));const Sne=(0,Ir.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,Ir.useEffect)((()=>{!r||u||Ene.get(c)||(Ene.set(c,!0),d(n))}),[c,u,n,r,d]),(0,Ir.createElement)(N3,{...i,...l,as:ug,id:n,role:"option","aria-selected":!!r,ref:t})}));function Cne(e){const{actions:t,options:n,baseId:r,className:o,loop:i=!0,children:a,...s}=e,l=Gn(),c=h4({baseId:r,loop:i,rtl:l}),{setBaseId:u,setLoop:d,setRTL:f}=c;(0,Ir.useEffect)((()=>{u(r)}),[u,r]),(0,Ir.useEffect)((()=>{d(i)}),[d,i]),(0,Ir.useEffect)((()=>{f(l)}),[f,l]);const p={isComposite:!0,...c};return(0,Ir.createElement)("div",{className:o},(0,Ir.createElement)(_ne.Provider,{value:p},(0,Ir.createElement)(G4,{...s,...c,role:"listbox"},n),a,t))}function Ine(e){const{actions:t,options:n,children:r,baseId:o,...i}=e;return(0,Ir.createElement)("div",{...i},(0,Ir.createElement)(_ne.Provider,{value:{isComposite:!1,baseId:o}},n,r,t))}function Tne(e){const{asButtons:t,actions:n,options:r,children:o,className:i,...a}=e,s=Gl(Tne,"components-circular-option-picker",a.id),l=t?Ine:Cne,c=n?(0,Ir.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},n):void 0,u=(0,Ir.createElement)("div",{className:"components-circular-option-picker__swatches"},r);return(0,Ir.createElement)(l,{...a,baseId:s,className:$l()("components-circular-option-picker",i),actions:c,options:u},o)}Tne.Option=function e({className:t,isSelected:n,selectedIconProps:r={},tooltipText:o,...i}){const a=(0,Ir.useContext)(_ne),{isComposite:s,baseId:l}=a,c={id:Gl(e,l||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...i},u=s?(0,Ir.createElement)(Sne,{...c,context:a,isSelected:n}):(0,Ir.createElement)(xne,{...c,isPressed:n});return(0,Ir.createElement)("div",{className:$l()(t,"components-circular-option-picker__option-wrapper")},o?(0,Ir.createElement)(Jp,{text:o},u):u,n&&(0,Ir.createElement)(SM,{icon:CM,...r}))},Tne.OptionGroup=function({className:e,options:t,...n}){const r="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,Ir.createElement)("div",{...n,role:r,className:$l()("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e)},t)},Tne.ButtonAction=function({className:e,children:t,...n}){return(0,Ir.createElement)(ug,{className:$l()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},Tne.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,Ir.createElement)(lC,{className:$l()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,Ir.createElement)(ug,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};const Pne=Tne;const Nne=og(uY,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),One=og("div",{target:"eovvns30"})("margin-left:",qM(-2),";margin-right:",qM(-2),";&:first-of-type{margin-top:",qM(-2),";}&:last-of-type{margin-bottom:",qM(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:qM(2),medium:qM(4)};return IM("padding:",t[e]||t.small,";","")}),";");const Ane=Uh((function(e,t){const{paddingSize:n="small",...r}=$h(e,"DropdownContentWrapper");return(0,Ir.createElement)(One,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");_r([Er,Cr]);const Mne=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function Rne({className:e,clearColor:t,colors:n,onChange:r,value:o,...i}){const a=(0,Ir.useMemo)((()=>n.map((({color:e,name:n},i)=>{const a=kr(e),s=o===e;return(0,Ir.createElement)(Pne.Option,{key:`${e}-${i}`,isSelected:s,selectedIconProps:s?{fill:a.contrast()>a.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||An(Un("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:s?t:()=>r(e,i),"aria-label":n?An(Un("Color: %s"),n):An(Un("Color code: %s"),e)})}))),[n,o,r,t]);return(0,Ir.createElement)(Pne.OptionGroup,{className:e,options:a,...i})}function Bne({className:e,clearColor:t,colors:n,onChange:r,value:o,headingLevel:i}){const a=Gl(Bne,"color-palette");return 0===n.length?null:(0,Ir.createElement)(y4,{spacing:3,className:e},n.map((({name:e,colors:n},s)=>{const l=`${a}-${s}`;return(0,Ir.createElement)(y4,{spacing:2,key:s},(0,Ir.createElement)(Nne,{id:l,level:i},e),(0,Ir.createElement)(Rne,{clearColor:t,colors:n,onChange:e=>r(e,s),value:o,"aria-labelledby":l}))})))}function Lne({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,Ir.useMemo)((()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,Ir.createElement)(lC,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}_r([Er,Cr]);const Dne=(0,Ir.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,Ir.useState)(c),v=(0,Ir.useCallback)((()=>l(void 0)),[l]),b=(0,Ir.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?kr(o).toHex():e})(c,e))}),[c]),y=Mne(i),k=(0,Ir.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:kr(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:kr(n).toHex()))return t;return Un("Custom")})(c,i,y)),[c,i,y]),w=c?.startsWith("#"),_=c?.replace(/^var\((.+)\)$/,"$1"),E=_?An(Un('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),k,_):Un("Custom color picker."),x={clearColor:v,onChange:l,value:c},S=!!o&&(0,Ir.createElement)(Pne.ButtonAction,{onClick:v},Un("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":Un("Custom color picker.")}}return(0,Ir.createElement)(y4,{spacing:3,ref:t,...m},!a&&(0,Ir.createElement)(Lne,{isRenderedInSidebar:u,renderContent:()=>(0,Ir.createElement)(Ane,{paddingSize:"none"},(0,Ir.createElement)(wne,{color:h,onChange:e=>l(e),enableAlpha:s})),renderToggle:({isOpen:e,onToggle:t})=>(0,Ir.createElement)(y4,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,Ir.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,Ir.createElement)(y4,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,Ir.createElement)(v5,{className:"components-color-palette__custom-color-name"},c?k:"No color selected"),(0,Ir.createElement)(v5,{className:$l()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":w})},_)))}),(0,Ir.createElement)(Pne,{...C,actions:S,options:y?(0,Ir.createElement)(Bne,{...x,headingLevel:d,colors:i,value:c}):(0,Ir.createElement)(Rne,{...x,colors:i,value:c})}))})),zne=Dne;function Fne(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}=$h(e,"BorderControlDropdown"),[d]=sW(t?.width),f=0===d,p=Hh(),m=(0,Ir.useMemo)((()=>p((e=>IM("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;",KM({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",OR.borderWidth," solid ",FM.ui.border,";&:focus,&:hover:not( :disabled ){",Xee," border-color:",FM.ui.borderFocus,";z-index:1;position:relative;}}",""))(l),n)),[n,p,l]),h=(0,Ir.useMemo)((()=>p(nte)),[p]),g=(0,Ir.useMemo)((()=>p(Jee(t,l))),[t,p,l]),v=(0,Ir.useMemo)((()=>p(ete)),[p]),b=(0,Ir.useMemo)((()=>p(tte)),[p]),y=(0,Ir.useMemo)((()=>p(rte)),[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 jne=e=>e.replace(/^var\((.+)\)$/,"$1"),Vne=Uh(((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}=Fne(e),{color:y,style:k}=r||{},w=((e,t)=>{if(e&&t){if(Mne(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=jne(t.color);return n?An('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):An('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=jne(e);return n?An('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):An('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return Un("Border color and style picker.")}return t?An('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,jne(t.color)):e?An('Border color picker. The currently selected color has a value of "%1$s".',jne(e)):Un("Border color picker.")})(y,w,k,s),E=y||k&&"none"!==k,x=n?"bottom left":void 0;return(0,Ir.createElement)(lC,{renderToggle:({onToggle:e})=>(0,Ir.createElement)(ug,{onClick:e,variant:"tertiary","aria-label":_,tooltipPosition:x,label:Un("Border color and style picker"),showTooltip:!0},(0,Ir.createElement)("span",{className:c},(0,Ir.createElement)(ute,{className:l,colorValue:y}))),renderContent:({onClose:e})=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Ane,{paddingSize:"medium"},(0,Ir.createElement)(y4,{className:m,spacing:6},g?(0,Ir.createElement)(K$,null,(0,Ir.createElement)(xB,null,Un("Border color")),(0,Ir.createElement)(ug,{isSmall:!0,label:Un("Close border color"),icon:q0,onClick:e})):void 0,(0,Ir.createElement)(zne,{className:p,value:y,onChange:d,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:a}),s&&(0,Ir.createElement)(cte,{label:Un("Style"),value:k,onChange:f}))),E&&(0,Ir.createElement)(Ane,{paddingSize:"none"},(0,Ir.createElement)(ug,{className:h,variant:"tertiary",onClick:()=>{u(),e()}},Un("Reset")))),popoverProps:{...v},...b,ref:t})}),"BorderControlDropdown"),Hne=Vne;function $ne(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}=$h(e,"BorderControl"),[p,m]=sW(c?.width),h=m||"px",g=0===p,[v,b]=(0,Ir.useState)(),[y,k]=(0,Ir.useState)(),w=(0,Ir.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,Ir.useCallback)((e=>{const t=""===e?void 0:e,[n]=sW(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,Ir.useCallback)((e=>{_(`${e}${h}`)}),[_,h]),x=Hh(),S=(0,Ir.useMemo)((()=>x(Zee,t)),[t,x]);let C=u;r&&(C="__unstable-large"===l?"116px":"90px");const I=(0,Ir.useMemo)((()=>{const e=!!C&&Qee,t=(e=>IM("height:","__unstable-large"===e?"40px":"30px",";",""))(l);return x(IM(zK,"{flex:1 1 40%;}&& ",VK,"{min-height:0;}",""),e,t)}),[C,x,l]),T=(0,Ir.useMemo)((()=>x(IM("flex:1 1 60%;",KM({marginRight:qM(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 Une=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,Ir.createElement)(sg,{as:"legend"},t):(0,Ir.createElement)(xB,{as:"legend"},t):null},Wne=Uh(((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}=$ne(e);return(0,Ir.createElement)(ag,{as:"fieldset",...S,ref:t},(0,Ir.createElement)(Une,{label:u,hideLabelFromVision:s}),(0,Ir.createElement)(K$,{spacing:4,className:l},(0,Ir.createElement)(GK,{prefix:(0,Ir.createElement)(Hne,{border:k,colors:n,__unstablePopoverProps:h,disableCustomColors:r,enableAlpha:i,enableStyle:a,onChange:d,previousStyleSelection:g,showDropdownHeader:v,__experimentalIsRenderedInSidebar:x,size:b}),label:Un("Border width"),hideLabelFromVision:!0,min:0,onChange:p,value:k?.width||"",placeholder:m,disableUnits:o,__unstableInputWidth:c,size:b}),E&&(0,Ir.createElement)(cq,{__nextHasNoMarginBottom:!0,label:Un("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"),Kne=Wne;function Gne(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:a=!1,...s}=$h(e,"BorderBoxControlSplitControls"),l=Hh(),c=(0,Ir.useMemo)((()=>l((e=>IM("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...s,centeredClassName:(0,Ir.useMemo)((()=>l(Hee,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,Ir.useMemo)((()=>l(IM(KM({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:a}}const qne=Uh(((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}=Gne(e),[h,g]=(0,Ir.useState)(null),v=(0,Ir.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=$g([g,t]);return(0,Ir.createElement)(PY,{...m,ref:y,gap:4},(0,Ir.createElement)(Kee,{value:f,size:d}),(0,Ir.createElement)(Kne,{className:n,hideLabelFromVision:!0,label:Un("Top border"),onChange:e=>s(e,"top"),__unstablePopoverProps:v,value:f?.top,...b}),(0,Ir.createElement)(Kne,{hideLabelFromVision:!0,label:Un("Left border"),onChange:e=>s(e,"left"),__unstablePopoverProps:v,value:f?.left,...b}),(0,Ir.createElement)(Kne,{className:u,hideLabelFromVision:!0,label:Un("Right border"),onChange:e=>s(e,"right"),__unstablePopoverProps:v,value:f?.right,...b}),(0,Ir.createElement)(Kne,{className:n,hideLabelFromVision:!0,label:Un("Bottom border"),onChange:e=>s(e,"bottom"),__unstablePopoverProps:v,value:f?.bottom,...b}))}),"BorderBoxControlSplitControls"),Yne=qne;function Xne(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:a="default",value:s,__experimentalIsRenderedInSidebar:l=!1,...c}=$h(e,"BorderBoxControl"),u=Mee(s),d=Aee(s),f=d?(e=>{if(!e)return;const t=[],n=[],r=[];Tee.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]:Bee(r)}})(s):s,p=d?s:(e=>{if(e&&!Nee(e))return{top:e,right:e,bottom:e,left:e}})(s),m=!isNaN(parseFloat(`${f?.width}`)),[h,g]=(0,Ir.useState)(!u),v=Hh(),b=(0,Ir.useMemo)((()=>v(Fee,t)),[v,t]),y=(0,Ir.useMemo)((()=>v(IM("flex:1;",KM({marginRight:"24px"})(),";",""))),[v]),k=(0,Ir.useMemo)((()=>v(jee)),[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&&Pee.every((t=>void 0!==e[t])))(e))return r(Nee(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(Mee(n))return r(n);const o=Nee(n.top)?void 0:n.top;r(o)},onSplitChange:(e,t)=>{const n={...p,[t]:e};Mee(n)?r(n):r(e)},toggleLinked:()=>g(!h),linkedValue:f,size:a,splitValue:p,wrapperClassName:k,__experimentalIsRenderedInSidebar:l}}const Zne=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,Ir.createElement)(sg,{as:"label"},t):(0,Ir.createElement)(xB,null,t):null},Qne=Uh(((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}=Xne(e),[x,S]=(0,Ir.useState)(null),C=(0,Ir.useMemo)((()=>g?{placement:g,offset:v,anchor:x,shift:!0}:void 0),[g,v,x]),I=$g([S,t]);return(0,Ir.createElement)(ag,{className:n,...E,ref:I},(0,Ir.createElement)(Zne,{label:d,hideLabelFromVision:c}),(0,Ir.createElement)(ag,{className:w},u?(0,Ir.createElement)(Kne,{className:f,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:a,enableStyle:s,onChange:m,placeholder:l?Un("Mixed"):void 0,__unstablePopoverProps:C,shouldSanitizeBorder:!1,value:p,withSlider:!0,width:"__unstable-large"===b?"116px":"110px",__experimentalIsRenderedInSidebar:_,size:b}):(0,Ir.createElement)(Yne,{colors:r,disableCustomColors:o,enableAlpha:a,enableStyle:s,onChange:h,popoverPlacement:g,popoverOffset:v,value:y,__experimentalIsRenderedInSidebar:_,size:b}),(0,Ir.createElement)(Uee,{onClick:k,isLinked:u,size:b})))}),"BorderBoxControl"),Jne=Qne;function ere(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function tre(e={}){const{flat:t,...n}=e;return t||ere(Object.values(n).filter(Boolean))||"px"}function nre(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>sW(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=ere(r);return 0===o||o?`${o}${i}`:void 0}function rre(e={}){const t=nre(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function ore(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function ire({onChange:e,selectedUnits:t,setSelectedUnits:n,values:r,...o}){let i=nre(r);void 0===i&&(i=tre(t));const a=ore(r)&&rre(r),s=a?Un("Mixed"):null;return(0,Ir.createElement)(GK,{...o,"aria-label":Un("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 are={topLeft:Un("Top left"),topRight:Un("Top right"),bottomLeft:Un("Bottom left"),bottomRight:Un("Bottom right")};function sre({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,Ir.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(are).map((([e,r])=>{const[s,l]=sW(a[e]),c=a[e]?l:t[e]||t.flat;return(0,Ir.createElement)(Jp,{text:r,placement:"top",key:e},(0,Ir.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},(0,Ir.createElement)(GK,{...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 lre({isLinked:e,...t}){const n=Un(e?"Unlink radii":"Link radii");return(0,Ir.createElement)(Jp,{text:n},(0,Ir.createElement)(ug,{...t,className:"component-border-radius-control__linked-button",isSmall:!0,icon:e?zee:ree,iconSize:24,"aria-label":n}))}const cre={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},ure=0,dre={px:100,em:20,rem:20};function fre({onChange:e,values:t}){const[n,r]=(0,Ir.useState)(!ore(t)||!rre(t)),[o,i]=(0,Ir.useState)({flat:"string"==typeof t?sW(t)[1]:void 0,topLeft:sW(t?.topLeft)[1],topRight:sW(t?.topRight)[1],bottomLeft:sW(t?.bottomLeft)[1],bottomRight:sW(t?.bottomRight)[1]}),a=lW({availableUnits:LU("spacing.units")||["px","em","rem"]}),s=tre(o),l=a&&a.find((e=>e.value===s)),c=l?.step||1,[u]=sW(nre(t));return(0,Ir.createElement)("fieldset",{className:"components-border-radius-control"},(0,Ir.createElement)(DH.VisualLabel,{as:"legend"},Un("Radius")),(0,Ir.createElement)("div",{className:"components-border-radius-control__wrapper"},n?(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(ire,{className:"components-border-radius-control__unit-control",values:t,min:ure,onChange:e,selectedUnits:o,setSelectedUnits:i,units:a}),(0,Ir.createElement)(cq,{label:Un("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=u?u:"",min:ure,max:dre[s],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${s}`:void 0)},step:c,__nextHasNoMarginBottom:!0})):(0,Ir.createElement)(sre,{min:ure,onChange:e,selectedUnits:o,setSelectedUnits:i,values:t||cre,units:a}),(0,Ir.createElement)(lre,{onClick:()=>r(!n),isLinked:n})))}const pre="1600px",mre="320px",hre=1,gre=.25,vre=.75,bre="14px";function yre(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:kre(u,3),unit:c}}function kre(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function wre(e,t){const{size:n}=e;if(!_re(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=mre,maximumViewportWidth:o=pre,scaleFactor:i=hre,minimumFontSizeLimit:a}){if(a=yre(a)?a:bre,n){const r=yre(n);if(!r?.unit)return null;const o=yre(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),gre),vre),i=kre(r.value*n,3);e=o?.value&&i<o?.value?`${o.value}${o.unit}`:`${i}${r.unit}`}}const s=yre(e),l=s?.unit||"rem",c=yre(t,{coerceTo:l});if(!s||!c)return null;const u=yre(e,{coerceTo:"rem"}),d=yre(o,{coerceTo:l}),f=yre(r,{coerceTo:l});if(!d||!f||!u)return null;const p=kre(f.value/100,3),m=kre(p,3)+l,h=kre(((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 _re(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function Ere(e){const t=e?.typography,n=e?.layout,r=yre(n?.wideSize)?n?.wideSize:null;return _re(t)&&r?{fluid:{maxViewportWidth:r,...t.fluid}}:{fluid:t?.fluid}}const xre=[{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)=>wre(e,Ere(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 Sre(e,t,n,r,o){const i=[OU(e,["blocks",t,...n]),OU(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 Sre(e,t,n,"slug",a.slug)[r]===a[r]?a:void 0}}}}}function Cre(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=OU(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=xre.find((e=>e.cssVarInfix===r));if(!i)return n;const a=Sre(e.settings,t,i.path,"slug",o);if(a){const{valueKey:n}=i;return Cre(e,t,a[n])}return n}(e,t,n,s):"custom"===a?function(e,t,n,r){var o;const i=null!==(o=OU(e.settings,["blocks",t,"custom",...r]))&&void 0!==o?o:OU(e.settings,["custom",...r]);return i?Cre(e,t,i):n}(e,t,n,s):n}function Ire(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 Tre(e){return e?.border?.color}function Pre(e){return e?.border?.radius}function Nre(e){return e?.border?.style}function Ore(e){return e?.border?.width}function Are({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Ir.createElement)(OY,{label:Un("Border"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const Mre={radius:!0,color:!0,width:!0};function Rre({as:e=Are,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Mre}){const s=DU(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,Ir.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,Ir.useMemo)((()=>{if(Aee(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=Tre(o),p=Nre(o),m=Ore(o),h=Pre(o),g=(v=u?.radius,Cre({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,Ir.useCallback)((e=>({...e,border:void 0})),[]),w=a?.color||a?.width;return(0,Ir.createElement)(e,{resetAllFilter:k,value:t,onChange:n,panelId:i},(m||f)&&(0,Ir.createElement)(F9,{hasValue:()=>Oee(t?.border),label:Un("Border"),onDeselect:()=>(()=>{if(y())return d({radius:t?.border?.radius});d(void 0)})(),isShownByDefault:w,panelId:i},(0,Ir.createElement)(Jne,{colors:s,enableAlpha:!0,enableStyle:p,onChange:e=>{const t={...e};Aee(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,Ir.createElement)(F9,{hasValue:y,label:Un("Radius"),onDeselect:()=>b(void 0),isShownByDefault:a.radius,panelId:i},(0,Ir.createElement)(fre,{values:g,onChange:e=>{b(e||void 0)}})))}const Bre="__experimentalBorder",Lre=(e,t,n)=>{let r;return e.some((e=>e.colors.some((e=>e[t]===n&&(r=e,!0))))),r},Dre=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Lre(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const r=Lre(e,"color",n);return r||{color:n}};function zre(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Fre(e){if(Aee(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:FU(r),borderColor:n}}function jre(e){return Aee(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Vre({children:e,resetAllFilter:t}){const n=(0,Ir.useCallback)((e=>{const n=jre(e),r=t(n);return{...e,...Fre(r)}}),[t]);return(0,Ir.createElement)(DY,{group:"border",resetAllFilter:n},e)}function Hre(e){const{clientId:t,name:n,attributes:r,setAttributes:o}=e,i=HU(n),a=function(e){return[Tre(e),Pre(e),Nre(e),Ore(e)].some(Boolean)}(i),s=(0,Ir.useMemo)((()=>jre({style:r.style,borderColor:r.borderColor})),[r.style,r.borderColor]);if(!a)return null;const l=jr(e.name,[Bre,"__experimentalDefaultControls"]);return(0,Ir.createElement)(Rre,{as:Vre,panelId:t,settings:i,value:s,onChange:e=>{o(Fre(e))},defaultControls:l})}function $re(e,t="any"){if("web"!==nI.OS)return!1;const n=jr(e,Bre);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function Ure(e,t,n){if(!$re(t,"color")||VU(t,Bre,"color"))return e;const r=function(e){const{borderColor:t,style:n}=e,r=Dee("border-color",t);return $l()({"has-border-color":t||n?.border?.color,[r]:!!r})}(n),o=$l()(e.className,r);return e.className=o||void 0,e}const Wre=Ul((e=>t=>{const{name:n,attributes:r}=t,{borderColor:o,style:i}=r,{colors:a}=function(){const e={disableCustomColors:!LU("color.custom"),disableCustomGradients:!LU("color.customGradient")},t=LU("color.palette.custom"),n=LU("color.palette.theme"),r=LU("color.palette.default"),o=LU("color.defaultPalette");e.colors=(0,Ir.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:Wn("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:Wn("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:Wn("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[r,n,t,o]);const i=LU("color.gradients.custom"),a=LU("color.gradients.theme"),s=LU("color.gradients.default"),l=LU("color.defaultGradients");return e.gradients=(0,Ir.useMemo)((()=>{const e=[];return a&&a.length&&e.push({name:Wn("Theme","Indicates this palette comes from the theme."),gradients:a}),l&&s&&s.length&&e.push({name:Wn("Default","Indicates this palette comes from WordPress."),gradients:s}),i&&i.length&&e.push({name:Wn("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(!$re(n,"color")||VU(n,Bre,"color"))return(0,Ir.createElement)(e,{...t});const{color:s}=Dre({colors:a,namedColor:o}),{color:l}=Dre({colors:a,namedColor:zre(i?.border?.top?.color)}),{color:c}=Dre({colors:a,namedColor:zre(i?.border?.right?.color)}),{color:u}=Dre({colors:a,namedColor:zre(i?.border?.bottom?.color)}),{color:d}=Dre({colors:a,namedColor:zre(i?.border?.left?.color)}),f=FU({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,Ir.createElement)(e,{...t,wrapperProps:p})}),"withBorderColorPaletteStyles");function Kre(e){if(e)return`has-${e}-gradient-background`}Ht("blocks.registerBlockType","core/border/addAttributes",(function(e){return $re(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Ht("blocks.getSaveContent.extraProps","core/border/addSaveProps",Ure),Ht("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!$re(e,"color")||VU(e,Bre,"color"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Ure(r,e,n)},e})),Ht("editor.BlockListBlock","core/border/with-border-color-palette-styles",Wre);const Gre=og("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>IM({marginInlineStart:e},"","")),";}",(({zIndex:e})=>IM({zIndex:e},"","")),";");var qre={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const Yre=og("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",Gre,"{position:relative;justify-self:start;",(({isLayered:e})=>e?qre:void 0),";}");const Xre=Uh((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:a=0,...s}=$h(e,"ZStack"),l=U$(n),c=l.length-1,u=l.map(((e,t)=>{const n=i?c-t:t,r=o?a*t:a,s=(0,Ir.isValidElement)(e)?e.key:t;return(0,Ir.createElement)(Gre,{offsetAmount:r,zIndex:n,key:s},e)}));return(0,Ir.createElement)(Yre,{...s,className:r,isLayered:o,ref:t},u)}),"ZStack"),Zre=Xre;const Qre=({__nextHasNoMarginBottom:e})=>e?"":IM("margin-bottom:",qM(2),";",""),Jre=og(gR,{target:"eln3bjz4"})(Qre,";"),eoe=og("div",{target:"eln3bjz3"})("border-radius:50%;border:",OR.borderWidth," solid ",FM.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),toe=og("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),noe=og("div",{target:"eln3bjz1"})("background:",FM.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;"),roe=og(qR,{target:"eln3bjz0"})("color:",FM.theme.accent,";margin-right:",qM(3),";");const ooe=function({value:e,onChange:t,...n}){const r=(0,Ir.useRef)(null),o=(0,Ir.useRef)(),i=(0,Ir.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,Ir.useState)(!1),i=(0,Ir.useRef)({onDragStart:e,onDragMove:t,onDragEnd:n});YY((()=>{i.current.onDragStart=e,i.current.onDragMove=t,i.current.onDragEnd=n}),[e,t,n]);const a=(0,Ir.useCallback)((e=>i.current.onDragMove&&i.current.onDragMove(e)),[]),s=(0,Ir.useCallback)((e=>{i.current.onDragEnd&&i.current.onDragEnd(e),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",s),o(!1)}),[]),l=(0,Ir.useCallback)((e=>{i.current.onDragStart&&i.current.onDragStart(e),document.addEventListener("mousemove",a),document.addEventListener("mouseup",s),o(!0)}),[]);return(0,Ir.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,Ir.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,Ir.createElement)(eoe,{ref:r,onMouseDown:s,className:"components-angle-picker-control__angle-circle",...n},(0,Ir.createElement)(toe,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,Ir.createElement)(noe,{className:"components-angle-picker-control__angle-circle-indicator"})))};const ioe=(0,Ir.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,label:o=Un("Angle"),onChange:i,value:a,...s}=e;n||sn("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=$l()("components-angle-picker-control",r),c=(0,Ir.createElement)(roe,null,"°"),[u,d]=Gn()?[c,null]:[null,c];return(0,Ir.createElement)(Jre,{...s,ref:t,__nextHasNoMarginBottom:n,className:l,gap:2},(0,Ir.createElement)(F$,null,(0,Ir.createElement)(DK,{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,Ir.createElement)(ZM,{marginBottom:"1",marginTop:"auto"},(0,Ir.createElement)(ooe,{"aria-hidden":"true",value:a,onChange:i})))})),aoe=10,soe=0,loe=aoe;function coe(e){return Math.max(0,Math.min(100,e))}function uoe(e,t,n){const r=e.slice();return r[t]=n,r}function doe(e,t,n){if(function(e,t,n,r=soe){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 uoe(e,t,{...e[t],position:n})}function foe(e,t,n){return uoe(e,t,{...e[t],color:n})}function poe(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(coe(100*o/r))}function moe({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${Gl(moe)}`;return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(ug,{"aria-label":An(Un("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:$l()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,Ir.createElement)(sg,{id:o},Un("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 hoe({isRenderedInSidebar:e,className:t,...n}){const r=(0,Ir.useMemo)((()=>({placement:"bottom",offset:8})),[]),o=$l()("components-custom-gradient-picker__control-point-dropdown",t);return(0,Ir.createElement)(Lne,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function goe({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:a,onStopControlPointChange:s,__experimentalIsRenderedInSidebar:l}){const c=(0,Ir.useRef)(),u=e=>{if(void 0===c.current||null===n.current)return;const t=poe(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=c.current;!s&&Math.abs(r-t)>=5&&(c.current.significantMoveHappened=!0),i(doe(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,Ir.useRef)();return f.current=d,(0,Ir.useEffect)((()=>()=>{f.current?.()}),[]),(0,Ir.createElement)(Ir.Fragment,null,o.map(((n,f)=>{const p=n?.position;return r!==p&&(0,Ir.createElement)(hoe,{isRenderedInSidebar:l,key:f,onClose:s,renderToggle:({isOpen:e,onToggle:t})=>(0,Ir.createElement)(moe,{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(doe(o,f,coe(n.position-loe)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(doe(o,f,coe(n.position+loe))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(wne,{enableAlpha:!t,color:n.color,onChange:e=>{i(foe(o,f,kr(e).toRgbString()))}}),!e&&o.length>2&&(0,Ir.createElement)(K$,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,Ir.createElement)(ug,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,f)),r()},variant:"link"},Un("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}goe.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:a}){const[s,l]=(0,Ir.useState)(!1);return(0,Ir.createElement)(hoe,{isRenderedInSidebar:a,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,Ir.createElement)(ug,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(l(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:cW}),renderContent:()=>(0,Ir.createElement)(wne,{enableAlpha:!i,onChange:n=>{s?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return foe(e,r,n)}(e,o,kr(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,kr(n).toRgbString())),l(!0))}}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};const voe=goe,boe=(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},yoe={id:"IDLE"};function koe({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:a=!1}){const s=(0,Ir.useRef)(null),[l,c]=(0,Ir.useReducer)(boe,yoe),u=e=>{if(!s.current)return;const t=poe(e.clientX,s.current);n.some((({position:e})=>Math.abs(t-e)<aoe))?"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,Ir.createElement)("div",{className:$l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:u,onMouseMove:u,onMouseLeave:()=>{c({type:"STOP_INSERTER_MOVE"})}},(0,Ir.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,Ir.createElement)("div",{ref:s,className:"components-custom-gradient-picker__markers-container"},!o&&(d||f)&&(0,Ir.createElement)(voe.InsertPoint,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,insertPosition:l.insertPosition,value:n,onChange:r,onOpenInserter:()=>{c({type:"OPEN_INSERTER"})},onCloseInserter:()=>{c({type:"CLOSE_INSERTER"})}}),(0,Ir.createElement)(voe,{__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 woe=o(9948);const _oe="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Eoe={type:"angular",value:"90"},xoe=[{value:"linear-gradient",label:Un("Linear")},{value:"radial-gradient",label:Un("Radial")}],Soe={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 Coe({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 Ioe({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(Coe)].filter(Boolean).join(",")})`}function Toe(e){return void 0===e.length||"%"!==e.length.type}function Poe(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"}}_r([Er]);const Noe=og(F$,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Ooe=og(F$,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Aoe=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,Ir.createElement)(ioe,{__nextHasNoMarginBottom:!0,onChange:t=>{n(Ioe({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},Moe=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,Ir.createElement)(pte,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:Un("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(Ioe({...e,orientation:e.orientation?void 0:Eoe,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(Ioe({...r,type:"radial-gradient"}))})()},options:xoe,size:"__unstable-large",value:t?r:void 0})};const Roe=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:_oe;try{t=woe.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=woe.parse(_oe)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:Soe[t.orientation.value].toString()}),t.colorStops.some(Toe)){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 Ioe({type:"linear-gradient",orientation:Eoe,colorStops:e.colorStops})}(o),s=o.colorStops.map((e=>({color:Poe(e),position:parseInt(e.length.value)})));return e||sn("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,Ir.createElement)(y4,{spacing:4,className:$l()("components-custom-gradient-picker",{"is-next-has-no-margin":e})},(0,Ir.createElement)(koe,{__experimentalIsRenderedInSidebar:r,background:a,hasGradient:i,value:s,onChange:e=>{n(Ioe(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=kr(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,Ir.createElement)(gR,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,Ir.createElement)(Noe,null,(0,Ir.createElement)(Moe,{gradientAST:o,hasGradient:i,onChange:n})),(0,Ir.createElement)(Ooe,null,"linear-gradient"===o.type&&(0,Ir.createElement)(Aoe,{gradientAST:o,hasGradient:i,onChange:n}))))},Boe=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function Loe({className:e,clearGradient:t,gradients:n,onChange:r,value:o,...i}){const a=(0,Ir.useMemo)((()=>n.map((({gradient:e,name:n},i)=>(0,Ir.createElement)(Pne.Option,{key:e,value:e,isSelected:o===e,tooltipText:n||An(Un("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,i),"aria-label":n?An(Un("Gradient: %s"),n):An(Un("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,Ir.createElement)(Pne.OptionGroup,{className:e,options:a,...i})}function Doe({className:e,clearGradient:t,gradients:n,onChange:r,value:o,headingLevel:i}){const a=Gl(Doe);return(0,Ir.createElement)(y4,{spacing:3,className:e},n.map((({name:e,gradients:n},s)=>{const l=`color-palette-${a}-${s}`;return(0,Ir.createElement)(y4,{spacing:2,key:s},(0,Ir.createElement)(Nne,{level:i,id:l},e),(0,Ir.createElement)(Loe,{clearGradient:t,gradients:n,onChange:e=>r(e,s),value:o,"aria-labelledby":l}))})))}function zoe(e){const{asButtons:t,loop:n,actions:r,headingLevel:o,"aria-label":i,"aria-labelledby":a,...s}=e,l=Boe(e.gradients)?(0,Ir.createElement)(Doe,{headingLevel:o,...s}):(0,Ir.createElement)(Loe,{...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":Un("Custom color picker.")}}return(0,Ir.createElement)(Pne,{...c,actions:r,options:l})}const Foe=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,Ir.useCallback)((()=>r(void 0)),[r]);e||sn("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,Ir.createElement)(ZM,{marginBottom:0,...d},(0,Ir.createElement)(y4,{spacing:n.length?4:0},!a&&(0,Ir.createElement)(Roe,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:s,value:o,onChange:r}),(n.length||i)&&(0,Ir.createElement)(zoe,{...c,className:t,clearGradient:u,gradients:n,onChange:r,value:o,actions:i&&!a&&(0,Ir.createElement)(Pne.ButtonAction,{onClick:u},Un("Clear")),headingLevel:l})))},joe=["colors","disableCustomColors","gradients","disableCustomGradients"],Voe={name:"color",title:Un("Solid"),value:"color"},Hoe={name:"gradient",title:Un("Gradient"),value:"gradient"},$oe=[Voe,Hoe];function Uoe({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={[Voe.value]:(0,Ir.createElement)(zne,{value:c,onChange:g?e=>{s(e),l()}:s,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:o,clearable:d,enableAlpha:p,headingLevel:m}),[Hoe.value]:(0,Ir.createElement)(Foe,{__nextHasNoMargin:!0,value:u,onChange:h?e=>{l(e),s()}:l,gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:o,clearable:d,headingLevel:m})},b=e=>(0,Ir.createElement)("div",{className:"block-editor-color-gradient-control__panel"},v[e]);return(0,Ir.createElement)(DH,{__nextHasNoMarginBottom:!0,className:$l()("block-editor-color-gradient-control",i)},(0,Ir.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,Ir.createElement)(y4,{spacing:1},f&&(0,Ir.createElement)("legend",null,(0,Ir.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,Ir.createElement)(DH.VisualLabel,null,a))),h&&g&&(0,Ir.createElement)(G8,{className:"block-editor-color-gradient-control__tabs",tabs:$oe,initialTabName:u?Hoe.value:!!h&&Voe.value},(e=>b(e.value))),!g&&b(Voe.value),!h&&b(Hoe.value))))}function Woe(e){const t={};return t.colors=LU("color.palette"),t.gradients=LU("color.gradients"),t.disableCustomColors=!LU("color.custom"),t.disableCustomGradients=!LU("color.customGradient"),(0,Ir.createElement)(Uoe,{...t,...e})}const Koe=function(e){return joe.every((t=>e.hasOwnProperty(t)))?(0,Ir.createElement)(Uoe,{...e}):(0,Ir.createElement)(Woe,{...e})};function Goe(e){const t=DU(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function qoe(e){const t=DU(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function Yoe(e){const t=DU(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function Xoe(e){const t=DU(e),n=zU(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Zoe(e){const t=DU(e),n=zU(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Qoe(e){const t=DU(e),n=zU(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function Joe({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Ir.createElement)(OY,{label:Un("Color"),resetAll:()=>{const r=e(n);t(r)},panelId:r,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,Ir.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},o))}const eie={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},tie={placement:"left-start",offset:36,shift:!0},nie=({indicators:e,label:t})=>(0,Ir.createElement)(K$,{justify:"flex-start"},(0,Ir.createElement)(Zre,{isLayered:!1,offset:-8},e.map(((e,t)=>(0,Ir.createElement)(gR,{key:t,expanded:!1},(0,Ir.createElement)(ute,{colorValue:e}))))),(0,Ir.createElement)(bR,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t));function rie({isGradient:e,inheritedValue:t,userValue:n,setValue:r,colorGradientControlSettings:o}){return(0,Ir.createElement)(Koe,{...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 oie({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,Ir.createElement)(F9,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:r,panelId:s},(0,Ir.createElement)(lC,{popoverProps:tie,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const r={onClick:t,className:$l()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":An(Un("Color %s styles"),e)};return(0,Ir.createElement)(ug,{...r},(0,Ir.createElement)(nie,{indicators:o,label:e}))},renderContent:()=>(0,Ir.createElement)(Ane,{paddingSize:"none"},(0,Ir.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},1===i.length&&(0,Ir.createElement)(rie,{...i[0],colorGradientControlSettings:a}),i.length>1&&(0,Ir.createElement)(G8,{tabs:l},(e=>{const t=i.find((t=>t.key===e.name));return t?(0,Ir.createElement)(rie,{...t,colorGradientControlSettings:a}):null}))))}))}function iie({as:e=Joe,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=eie,children:s}){const l=DU(o),c=zU(o),u=o?.color?.custom,d=o?.color?.customGradient,f=l.length>0||u,p=c.length>0||d,m=e=>Cre({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=Qoe(o),b=m(r?.color?.background),y=m(t?.color?.background),k=m(r?.color?.gradient),w=m(t?.color?.gradient),_=qoe(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=Goe(o),T=m(r?.color?.text),P=m(t?.color?.text),N=e=>{let r=NU(t,["color","text"],h(e));T===E&&(r=NU(r,["elements","link","color","text"],h(e))),n(r)},O=[{name:"caption",label:Un("Captions"),showPanel:Yoe(o)},{name:"button",label:Un("Button"),showPanel:Zoe(o)},{name:"heading",label:Un("Heading"),showPanel:Xoe(o)},{name:"h1",label:Un("H1"),showPanel:Xoe(o)},{name:"h2",label:Un("H2"),showPanel:Xoe(o)},{name:"h3",label:Un("H3"),showPanel:Xoe(o)},{name:"h4",label:Un("H4"),showPanel:Xoe(o)},{name:"h5",label:Un("H5"),showPanel:Xoe(o)},{name:"h6",label:Un("H6"),showPanel:Xoe(o)}],A=(0,Ir.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:Un("Text"),hasValue:()=>!!P,resetValue:()=>N(void 0),isShownByDefault:a.text,indicators:[T],tabs:[{key:"text",label:Un("Text"),inheritedValue:T,setValue:N,userValue:P}]},v&&{key:"background",label:Un("Background"),hasValue:()=>!!y||!!w,resetValue:()=>{const e=NU(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:Un("Solid"),inheritedValue:b,setValue:e=>{const r=NU(t,["color","background"],h(e));r.color.gradient=void 0,n(r)},userValue:y},p&&{key:"gradient",label:Un("Gradient"),inheritedValue:k,setValue:e=>{const r=NU(t,["color","gradient"],g(e));r.color.background=void 0,n(r)},userValue:w,isGradient:!0}].filter(Boolean)},_&&{key:"link",label:Un("Link"),hasValue:()=>!!x||!!C,resetValue:()=>{let e=NU(t,["elements","link",":hover","color","text"],void 0);e=NU(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:a.link,indicators:[E,S],tabs:[{key:"link",label:Un("Default"),inheritedValue:E,setValue:e=>{n(NU(t,["elements","link","color","text"],h(e)))},userValue:x},{key:"hover",label:Un("Hover"),inheritedValue:S,setValue:e=>{n(NU(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=NU(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:Un("Text"),inheritedValue:c,setValue:r=>{n(NU(t,["elements",e,"color","text"],h(r)))},userValue:v},f&&b&&{key:"background",label:Un("Background"),inheritedValue:s,setValue:r=>{const o=NU(t,["elements",e,"color","background"],h(r));o.elements[e].color.gradient=void 0,n(o)},userValue:u},p&&b&&{key:"gradient",label:Un("Gradient"),inheritedValue:l,setValue:r=>{const o=NU(t,["elements",e,"color","gradient"],g(r));o.elements[e].color.background=void 0,n(o)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,Ir.createElement)(e,{resetAllFilter:A,value:t,onChange:n,panelId:i},M.map((e=>(0,Ir.createElement)(oie,{key:e.key,...e,colorGradientControlSettings:{colors:l,disableCustomColors:!u,gradients:c,disableCustomGradients:!d},panelId:i}))),s)}_r([Er,Cr]);const aie=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:Un("text color")},{color:d,description:Un("link color")}],p=kr(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=kr(e.color),n=t.isReadable(p,g),r=t.alpha()<1;if(!n){if(m||r)continue;v=h<t.brightness()?An(Un("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):An(Un("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),b=Un("This color combination may be hard for people to read.");break}r&&l&&(v=Un("Transparent text may be hard for people to read."),b=Un("Transparent text may be hard for people to read."))}return v?(AN(b),(0,Ir.createElement)("div",{className:"block-editor-contrast-checker"},(0,Ir.createElement)(J9,{spokenMessage:null,status:"warning",isDismissible:!1},v))):null};function sie(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function lie({clientId:e}){const[t,n]=(0,Ir.useState)(),[r,o]=(0,Ir.useState)(),[i,a]=(0,Ir.useState)(),s=F0(e);return(0,Ir.useEffect)((()=>{if(!s.current)return;o(sie(s.current).color);const e=s.current?.querySelector("a");e&&e.innerText&&a(sie(e).color);let t=s.current,r=sie(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,r=sie(t).backgroundColor;n(r)})),(0,Ir.createElement)(aie,{backgroundColor:t,textColor:r,enableAlphaChecker:!0,linkColor:i})}const cie="color",uie=e=>{const t=jr(e,cie);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},die=e=>{if("web"!==nI.OS)return!1;const t=jr(e,cie);return null!==t&&"object"==typeof t&&!!t.link},fie=e=>{const t=jr(e,cie);return null!==t&&"object"==typeof t&&!!t.gradients},pie=e=>{const t=jr(e,cie);return t&&!1!==t.background},mie=e=>{const t=jr(e,cie);return t&&!1!==t.text};function hie(e,t,n){if(!uie(t)||VU(t,cie))return e;const r=fie(t),{backgroundColor:o,textColor:i,gradient:a,style:s}=n,l=e=>!VU(t,cie,e),c=l("text")?Dee("color",i):void 0,u=l("gradients")?Kre(a):void 0,d=l("background")?Dee("background-color",o):void 0,f=l("background")||l("gradients"),p=o||s?.color?.background||r&&(a||s?.color?.gradient),m=$l()(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 gie(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:FU(s),textColor:n,backgroundColor:o,gradient:a}}function vie(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 bie({children:e,resetAllFilter:t}){const n=(0,Ir.useCallback)((e=>{const n=vie(e),r=t(n);return{...e,...gie(r)}}),[t]);return(0,Ir.createElement)(DY,{group:"color",resetAllFilter:n},e)}function yie(e){const{clientId:t,name:n,attributes:r,setAttributes:o}=e,i=HU(n),a=function(e){const t=Goe(e),n=Qoe(e),r=qoe(e),o=Xoe(e),i=Zoe(e),a=Yoe(e);return t||n||r||o||i||a}(i),s=(0,Ir.useMemo)((()=>vie({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=jr(e.name,[cie,"__experimentalDefaultControls"]),c="web"===nI.OS&&!s?.color?.gradient&&(i?.color?.text||i?.color?.link)&&!1!==jr(e.name,[cie,"enableContrastChecker"]);return(0,Ir.createElement)(iie,{as:bie,panelId:t,settings:i,value:s,onChange:e=>{o(gie(e))},defaultControls:l,enableContrastChecker:!1!==jr(e.name,[cie,"enableContrastChecker"])},c&&(0,Ir.createElement)(lie,{clientId:t}))}const kie=Ul((e=>t=>{const{name:n,attributes:r}=t,{backgroundColor:o,textColor:i}=r,a=LU("color.palette.custom"),s=LU("color.palette.theme"),l=LU("color.palette.default"),c=(0,Ir.useMemo)((()=>[...a||[],...s||[],...l||[]]),[a,s,l]);if(!uie(n)||VU(n,cie))return(0,Ir.createElement)(e,{...t});const u={};i&&!VU(n,cie,"text")&&(u.color=Lee(c,i)?.color),o&&!VU(n,cie,"background")&&(u.backgroundColor=Lee(c,o)?.color);let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...t.wrapperProps?.style}},(0,Ir.createElement)(e,{...t,wrapperProps:d})}),"withColorPaletteStyles"),wie={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};Ht("blocks.registerBlockType","core/color/addAttribute",(function(e){return uie(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),fie(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Ht("blocks.getSaveContent.extraProps","core/color/addSaveProps",hie),Ht("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!uie(e)||VU(e,cie))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),hie(r,e,n)},e})),Ht("editor.BlockListBlock","core/color/with-color-palette-styles",kie),Ht("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){const o=e.name;return jU({linkColor:die(o),textColor:mie(o),backgroundColor:pie(o),gradient:fie(o)},wie,e,t,n,r)}));const _ie=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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,Ir.createElement)(em,{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 Eie(e){const[t,...n]=e;if(!t)return null;const[,r]=sW(t.size),o=n.every((e=>{const[,t]=sW(e.size);return t===r}));return o?r:null}const xie=og("fieldset",{target:"e8tqeku5"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),Sie=og(K$,{target:"e8tqeku4"})("height:",qM(4),";"),Cie=og(ug,{target:"e8tqeku3"})("margin-top:",qM(-1),";"),Iie=og(DH.VisualLabel,{target:"e8tqeku2"})("display:flex;gap:",qM(1),";justify-content:flex-start;margin-bottom:0;"),Tie=og("span",{target:"e8tqeku1"})("color:",FM.gray[700],";"),Pie=og("div",{target:"e8tqeku0"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${qM(6)};`),";"),Nie={key:"default",name:Un("Default"),value:void 0},Oie={key:"custom",name:Un("Custom")},Aie=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:a,onSelectCustom:s}=e,l=!!Eie(n),c=[Nie,...n.map((e=>{let t;if(l){const[n]=sW(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?[]:[Oie]],u=r?null!==(t=c.find((e=>e.value===r)))&&void 0!==t?t:Oie:Nie;return(0,Ir.createElement)(NB,{__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:Un("Font size"),hideLabelFromVision:!0,describedBy:An(Un("Currently selected font size: %s"),u.name),options:c,value:u,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===Oie?s():a(e.value)},size:i})};const Mie=(0,Ir.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,Ir.createElement)(D$,{...r,"aria-label":o,ref:t},n)})),Rie=[Un("S"),Un("M"),Un("L"),Un("XL"),Un("XXL")],Bie=[Un("Small"),Un("Medium"),Un("Large"),Un("Extra Large"),Un("Extra Extra Large")],Lie=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,Ir.createElement)(k$,{__nextHasNoMarginBottom:r,label:Un("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,Ir.createElement)(Mie,{key:e.slug,value:e.size,label:Rie[t],"aria-label":e.name||Bie[t],showTooltip:!0}))))},Die=(0,Ir.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||sn("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=lW({availableUnits:l||["px","em","rem"]}),p=o.length>5,m=o.find((e=>e.size===c)),h=!!c&&!m,[g,v]=(0,Ir.useState)(!i&&h),b=(0,Ir.useMemo)((()=>{if(g)return Un("Custom");if(!p)return m?m.name||Bie[o.indexOf(m)]:"";const e=Eie(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]=sW(c,f),_=!!w&&["em","rem"].includes(w);return(0,Ir.createElement)(xie,{ref:t,className:"components-font-size-picker"},(0,Ir.createElement)(sg,{as:"legend"},Un("Font size")),(0,Ir.createElement)(ZM,null,(0,Ir.createElement)(Sie,{className:"components-font-size-picker__header"},(0,Ir.createElement)(Iie,{"aria-label":`${Un("Size")} ${b||""}`},Un("Size"),b&&(0,Ir.createElement)(Tie,{className:"components-font-size-picker__header__hint"},b)),!i&&(0,Ir.createElement)(Cie,{label:Un(g?"Use size preset":"Set custom size"),icon:_ie,onClick:()=>{v(!g)},isPressed:g,isSmall:!0}))),(0,Ir.createElement)(Pie,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:n},!!o.length&&p&&!g&&(0,Ir.createElement)(Aie,{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,Ir.createElement)(Lie,{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,Ir.createElement)(gR,{className:"components-font-size-picker__custom-size-control"},(0,Ir.createElement)(bR,{isBlock:!0},(0,Ir.createElement)(GK,{label:Un("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,Ir.createElement)(bR,{isBlock:!0},(0,Ir.createElement)(ZM,{marginX:2,marginBottom:0},(0,Ir.createElement)(cq,{__nextHasNoMarginBottom:n,className:"components-font-size-picker__custom-input",label:Un("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,Ir.createElement)(bR,null,(0,Ir.createElement)(cg,{disabled:void 0===c,onClick:()=>{a?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"!==s?"small":"default"},Un("Reset"))))))})),zie=Die;function Fie({value:e="",onChange:t,fontFamilies:n,...r}){const o=LU("typography.fontFamilies");if(n||(n=o),!n||0===n.length)return null;const i=[{value:"",label:Un("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,Ir.createElement)(pte,{label:Un("Font"),options:i,value:e,onChange:t,labelPosition:"top",...r})}const jie=[{name:Wn("Regular","font style"),value:"normal"},{name:Wn("Italic","font style"),value:"italic"}],Vie=[{name:Wn("Thin","font weight"),value:"100"},{name:Wn("Extra Light","font weight"),value:"200"},{name:Wn("Light","font weight"),value:"300"},{name:Wn("Regular","font weight"),value:"400"},{name:Wn("Medium","font weight"),value:"500"},{name:Wn("Semi Bold","font weight"),value:"600"},{name:Wn("Bold","font weight"),value:"700"},{name:Wn("Extra Bold","font weight"),value:"800"},{name:Wn("Black","font weight"),value:"900"}],Hie=(e,t)=>Un(e?t?"Appearance":"Font style":"Font weight");function $ie(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:r=!0,value:{fontStyle:o,fontWeight:i},...a}=e,s=n||r,l=Hie(n,r),c={key:"default",name:Un("Default"),style:{fontStyle:void 0,fontWeight:void 0}},u=(0,Ir.useMemo)((()=>n&&r?(()=>{const e=[c];return jie.forEach((({name:t,value:n})=>{Vie.forEach((({name:r,value:o})=>{const i="normal"===n?r:An(Un("%1$s %2$s"),r,t);e.push({key:`${n}-${o}`,name:i,style:{fontStyle:n,fontWeight:o}})}))})),e})():n?(()=>{const e=[c];return jie.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[c];return Vie.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,Ir.createElement)(OB,{...a,className:"components-font-appearance-control",label:l,describedBy:d?An(Un(n?r?"Currently selected font appearance: %s":"Currently selected font style: %s":"Currently selected font weight: %s"),d.name):Un("No selected font appearance"),options:u,value:d,onChange:({selectedItem:e})=>t(e.style),__nextUnconstrainedWidth:!0})}const Uie=1.5;const Wie=({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 Uie;default:return e}},s=i?e:"";n||sn("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,Ir.createElement)("div",{className:"block-editor-line-height-control",style:l},(0,Ir.createElement)(DK,{...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:Un("Line height"),placeholder:Uie,step:.01,spinFactor:10,value:s,min:0,spinControls:"custom"}))};function Kie({value:e,onChange:t,__unstableInputWidth:n="60px",...r}){const o=lW({availableUnits:LU("spacing.units")||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,Ir.createElement)(GK,{...r,label:Un("Letter spacing"),value:e,__unstableInputWidth:n,units:o,onChange:t})}const Gie=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),qie=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),Yie=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),Xie=[{name:Un("None"),value:"none",icon:uW},{name:Un("Uppercase"),value:"uppercase",icon:Gie},{name:Un("Lowercase"),value:"lowercase",icon:qie},{name:Un("Capitalize"),value:"capitalize",icon:Yie}];function Zie({className:e,value:t,onChange:n}){return(0,Ir.createElement)("fieldset",{className:$l()("block-editor-text-transform-control",e)},(0,Ir.createElement)(DH.VisualLabel,{as:"legend"},Un("Letter case")),(0,Ir.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Xie.map((e=>(0,Ir.createElement)(ug,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}const Qie=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),Jie=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),eae=[{name:Un("None"),value:"none",icon:uW},{name:Un("Underline"),value:"underline",icon:Qie},{name:Un("Strikethrough"),value:"line-through",icon:Jie}];function tae({value:e,onChange:t,className:n}){return(0,Ir.createElement)("fieldset",{className:$l()("block-editor-text-decoration-control",n)},(0,Ir.createElement)(DH.VisualLabel,{as:"legend"},Un("Decoration")),(0,Ir.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},eae.map((n=>(0,Ir.createElement)(ug,{key:n.value,icon:n.icon,label:n.name,isPressed:n.value===e,onClick:()=>{t(n.value===e?void 0:n.value)}})))))}const nae=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),rae=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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"})),oae=[{name:Un("Horizontal"),value:"horizontal-tb",icon:nae},{name:Un("Vertical"),value:Gn()?"vertical-lr":"vertical-rl",icon:rae}];function iae({className:e,value:t,onChange:n}){return(0,Ir.createElement)("fieldset",{className:$l()("block-editor-writing-mode-control",e)},(0,Ir.createElement)(DH.VisualLabel,{as:"legend"},Un("Orientation")),(0,Ir.createElement)("div",{className:"block-editor-writing-mode-control__buttons"},oae.map((e=>(0,Ir.createElement)(ug,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}const aae=1,sae=6;function lae(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 cae(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 uae(e){return e?.typography?.lineHeight}function dae(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t||n}function fae(e){return e?.typography?.letterSpacing}function pae(e){return e?.typography?.textTransform}function mae(e){return e?.typography?.textDecoration}function hae(e){return e?.typography?.writingMode}function gae(e){return e?.typography?.textColumns}function vae({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Ir.createElement)(OY,{label:Un("Typography"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const bae={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function yae({as:e=vae,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=bae}){var s,l,c;const u=e=>Cre({settings:o},"",e),d=cae(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(NU(t,["typography","fontFamily"],r?`var:preset|font-family|${r}`:e||void 0))},g=lae(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(NU(t,["typography","fontSize"],(r?.slug?`var:preset|font-size|${r?.slug}`:e)||void 0))},w=dae(o),_=function(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return Un(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=uae(o),P=u(r?.typography?.lineHeight),N=e=>{n(NU(t,["typography","lineHeight"],e||void 0))},O=fae(o),A=u(r?.typography?.letterSpacing),M=e=>{n(NU(t,["typography","letterSpacing"],e||void 0))},R=gae(o),B=u(r?.typography?.textColumns),L=e=>{n(NU(t,["typography","textColumns"],e||void 0))},D=pae(o),z=u(r?.typography?.textTransform),F=e=>{n(NU(t,["typography","textTransform"],e||void 0))},j=mae(o),V=u(r?.typography?.textDecoration),H=e=>{n(NU(t,["typography","textDecoration"],e||void 0))},$=hae(o),U=u(r?.typography?.writingMode),W=e=>{n(NU(t,["typography","writingMode"],e||void 0))},K=(0,Ir.useCallback)((e=>({...e,typography:{}})),[]);return(0,Ir.createElement)(e,{resetAllFilter:K,value:t,onChange:n,panelId:i},d&&(0,Ir.createElement)(F9,{label:Un("Font family"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>h(void 0),isShownByDefault:a.fontFamily,panelId:i},(0,Ir.createElement)(Fie,{fontFamilies:p,value:m,onChange:h,size:"__unstable-large",__nextHasNoMarginBottom:!0})),g&&(0,Ir.createElement)(F9,{label:Un("Font size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>k(void 0),isShownByDefault:a.fontSize,panelId:i},(0,Ir.createElement)(zie,{value:y,onChange:k,fontSizes:b,disableCustomFontSizes:v,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})),w&&(0,Ir.createElement)(F9,{className:"single-column",label:_,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{I({})},isShownByDefault:a.fontAppearance,panelId:i},(0,Ir.createElement)($ie,{value:{fontStyle:S,fontWeight:C},onChange:I,hasFontStyles:E,hasFontWeights:x,size:"__unstable-large",__nextHasNoMarginBottom:!0})),T&&(0,Ir.createElement)(F9,{className:"single-column",label:Un("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>N(void 0),isShownByDefault:a.lineHeight,panelId:i},(0,Ir.createElement)(Wie,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:P,onChange:N,size:"__unstable-large"})),O&&(0,Ir.createElement)(F9,{className:"single-column",label:Un("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>M(void 0),isShownByDefault:a.letterSpacing,panelId:i},(0,Ir.createElement)(Kie,{value:A,onChange:M,size:"__unstable-large",__unstableInputWidth:"auto"})),R&&(0,Ir.createElement)(F9,{className:"single-column",label:Un("Text columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>L(void 0),isShownByDefault:a.textColumns,panelId:i},(0,Ir.createElement)(DK,{label:Un("Text columns"),max:sae,min:aae,onChange:L,size:"__unstable-large",spinControls:"custom",value:B,initialPosition:1})),j&&(0,Ir.createElement)(F9,{className:"single-column",label:Un("Text decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>H(void 0),isShownByDefault:a.textDecoration,panelId:i},(0,Ir.createElement)(tae,{value:V,onChange:H,size:"__unstable-large",__unstableInputWidth:"auto"})),$&&(0,Ir.createElement)(F9,{className:"single-column",label:Un("Text orientation"),hasValue:()=>!!t?.typography?.writingMode,onDeselect:()=>W(void 0),isShownByDefault:a.writingMode,panelId:i},(0,Ir.createElement)(iae,{value:U,onChange:W,size:"__unstable-large",__nextHasNoMarginBottom:!0})),D&&(0,Ir.createElement)(F9,{label:Un("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>F(void 0),isShownByDefault:a.textTransform,panelId:i},(0,Ir.createElement)(Zie,{value:z,onChange:F,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})))}const kae="typography.lineHeight";class wae{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 _ae="typography.__experimentalFontFamily";function Eae(e,t,n){if(!Vr(t,_ae))return e;if(VU(t,Pae,"fontFamily"))return e;if(!n?.fontFamily)return e;const r=new wae(e.className);r.add(`has-${TU(n?.fontFamily)}-font-family`);const o=r.value;return e.className=o||void 0,e}Ht("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return Vr(e,_ae)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),Ht("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",Eae),Ht("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!Vr(e,_ae))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Eae(r,e,n)},e}));const xae="typography.fontSize";function Sae(e,t,n){if(!Vr(t,xae))return e;if(VU(t,Pae,"fontSize"))return e;const r=new wae(e.className);r.add(function(e){if(e)return`has-${TU(e)}-font-size`}(n.fontSize));const o=r.value;return e.className=o||void 0,e}const Cae=Ul((e=>t=>{const n=LU("typography.fontSizes"),{name:r,attributes:{fontSize:o,style:i},wrapperProps:a}=t;if(!Vr(r,xae)||VU(r,Pae,"fontSize")||!o||i?.typography?.fontSize)return(0,Ir.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,Ir.createElement)(e,{...l})}),"withFontSizeInlineStyles"),Iae={fontSize:[["fontSize"],["style","typography","fontSize"]]};function Tae(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}Ht("blocks.registerBlockType","core/font/addAttribute",(function(e){return Vr(e,xae)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Ht("blocks.getSaveContent.extraProps","core/font/addSaveProps",Sae),Ht("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Vr(e,xae))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Sae(r,e,n)},e})),Ht("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Cae),Ht("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,r){return jU({fontSize:Vr(e.name,xae)},Iae,e,t,n,r)})),Ht("blocks.registerBlockType","core/font-size/addEditPropsForFluidCustomFontSizes",(function(e){if(!Vr(e,xae)||VU(e,Pae,"fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{const n=t?t(e):{},r=n?.style?.fontSize,o=Ere(Rr(XO).getSettings().__experimentalFeatures),i=r?wre({size:r},o):null;return null===i?n:{...n,style:{...n?.style,fontSize:i}}},e}),11);const Pae="typography",Nae=[kae,xae,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",_ae,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Oae(e){const t={...Tae(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={...Tae(t.typography,["fontFamily"]),fontSize:o?void 0:n},{style:FU(t),fontFamily:i,fontSize:o}}function Aae(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 Mae({children:e,resetAllFilter:t}){const n=(0,Ir.useCallback)((e=>{const n=Aae(e),r=t(n);return{...e,...Oae(r)}}),[t]);return(0,Ir.createElement)(DY,{group:"typography",resetAllFilter:n},e)}function Rae({clientId:e,name:t,attributes:n,setAttributes:r,__unstableParentLayout:o}){const i=HU(t,o),a=function(e){const t=cae(e),n=uae(e),r=dae(e),o=fae(e),i=pae(e),a=mae(e),s=hae(e),l=gae(e),c=lae(e);return t||n||r||o||i||c||a||s||l}(i),s=(0,Ir.useMemo)((()=>Aae({style:n.style,fontFamily:n.fontFamily,fontSize:n.fontSize})),[n.style,n.fontSize,n.fontFamily]);if(!a)return null;const l=jr(t,[Pae,"__experimentalDefaultControls"]);return(0,Ir.createElement)(yae,{as:Mae,panelId:e,settings:i,value:s,onChange:e=>{r(Oae(e))},defaultControls:l})}const Bae=og("div",{target:"e1jovhle6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),Lae=og(gR,{target:"e1jovhle5"})({name:"5bhc30",styles:"margin-bottom:8px"}),Dae=og(gR,{target:"e1jovhle4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),zae=og("div",{target:"e1jovhle3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),Fae=og(gR,{target:"e1jovhle2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),jae=og(gR,{target:"e1jovhle1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var Vae={name:"1ch9yvl",styles:"border-radius:0"},Hae={name:"tg3mx0",styles:"border-radius:2px"};const $ae=({isFirst:e,isLast:t,isOnly:n})=>e?KM({borderTopRightRadius:0,borderBottomRightRadius:0})():t?KM({borderTopLeftRadius:0,borderBottomLeftRadius:0})():n?Hae:Vae,Uae=({isFirst:e,isOnly:t})=>KM({marginLeft:e||t?0:-1})(),Wae=og(GK,{target:"e1jovhle0"})("max-width:60px;",$ae,";",Uae,";"),Kae=()=>{};function Gae({isFirst:e,isLast:t,isOnly:n,onHoverOn:r=Kae,onHoverOff:o=Kae,label:i,value:a,...s}){const l=function(e,t){return qW(XW),aK({hover:e},t||{},"hover")}((({event:e,...t})=>{t.hovering?r(e,t):o(e,t)}));return(0,Ir.createElement)(zae,{...l()},(0,Ir.createElement)(qae,{text:i},(0,Ir.createElement)(Wae,{"aria-label":i,className:"component-box-control__unit-control",isFirst:e,isLast:t,isOnly:n,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:a,...s})))}function qae({children:e,text:t}){return t?(0,Ir.createElement)(Jp,{text:t,placement:"top"},(0,Ir.createElement)("div",null,e)):e}const Yae={all:Un("All"),top:Un("Top"),bottom:Un("Bottom"),left:Un("Left"),right:Un("Right"),mixed:Un("Mixed"),vertical:Un("Vertical"),horizontal:Un("Horizontal")},Xae={top:void 0,right:void 0,bottom:void 0,left:void 0},Zae=["top","right","bottom","left"];function Qae(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function Jae(e={},t,n=Zae){const r=function(e){const t=[];if(!e?.length)return Zae;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=Zae.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>sW(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=Qae(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return Qae(t)}(t))&&void 0!==l?l:Qae(i);return[a,s].join("")}function ese(e={},t,n=Zae){const r=Jae(e,t,n);return isNaN(parseFloat(r))}function tse(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function nse(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function rse(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})):Zae.forEach((e=>r[e]=t)),r}const ose=()=>{};function ise({onChange:e=ose,onFocus:t=ose,onHoverOn:n=ose,onHoverOff:r=ose,values:o,sides:i,selectedUnits:a,setSelectedUnits:s,...l}){const c=Jae(o,a,i),u=tse(o)&&ese(o,a,i),d=u?Yae.mixed:void 0;return(0,Ir.createElement)(Gae,{...l,disableUnits:u,isOnly:!0,value:c,onChange:t=>{const n=void 0!==t&&!isNaN(parseFloat(t)),r=rse(o,n?t:void 0,i);e(r)},onUnitChange:e=>{const t=rse(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 ase=()=>{};function sse({onChange:e=ase,onFocus:t=ase,onHoverOn:n=ase,onHoverOff:r=ase,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?Zae.filter((e=>s.includes(e))):Zae,h=m[0],g=m[m.length-1],v=h===g&&h;return(0,Ir.createElement)(Fae,{className:"component-box-control__input-controls-wrapper"},(0,Ir.createElement)(jae,{gap:0,align:"top",className:"component-box-control__input-controls"},m.map((e=>{const[t,n]=sW(o[e]),r=o[e]?n:i[e];return(0,Ir.createElement)(Gae,{...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:Yae[e],key:`box-control-${e}`})}))))}const lse=["vertical","horizontal"];function cse({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?lse.filter((e=>s.includes(e))):lse,h=m[0],g=m[m.length-1],v=h===g&&h;return(0,Ir.createElement)(jae,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},m.map((e=>{const[t,n]=sW("vertical"===e?o.top:o.left),r="vertical"===e?i.top:i.left;return(0,Ir.createElement)(Gae,{...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:Yae[e],key:e})})))}const use=og("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),dse=og("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),fse=og("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>IM({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),pse=og(fse,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),mse=og(fse,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),hse=og(mse,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),gse=og(pse,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),vse=og(mse,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),bse=og(pse,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),yse=24;function kse({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/yse;return(0,Ir.createElement)(use,{style:{transform:`scale(${c})`},...r},(0,Ir.createElement)(dse,null,(0,Ir.createElement)(hse,{isFocused:i}),(0,Ir.createElement)(gse,{isFocused:a}),(0,Ir.createElement)(vse,{isFocused:s}),(0,Ir.createElement)(bse,{isFocused:l})))}function wse({isLinked:e,...t}){const n=Un(e?"Unlink sides":"Link sides");return(0,Ir.createElement)(Jp,{text:n},(0,Ir.createElement)(ug,{...t,className:"component-box-control__linked-button",isSmall:!0,icon:e?zee:ree,iconSize:24,"aria-label":n}))}const _se={min:0},Ese=()=>{};function xse({id:e,inputProps:t=_se,onChange:n=Ese,label:r=Un("Box Control"),values:o,units:i,sides:a,splitOnAxis:s=!1,allowReset:l=!0,resetValues:c=Xae,onMouseOver:u,onMouseOut:d}){const[f,p]=UK(o,{fallback:Xae}),m=f||Xae,h=tse(o),g=1===a?.length,[v,b]=(0,Ir.useState)(h),[y,k]=(0,Ir.useState)(!h||!ese(m)||g),[w,_]=(0,Ir.useState)(nse(y,s)),[E,x]=(0,Ir.useState)({top:sW(o?.top)[1],right:sW(o?.right)[1],bottom:sW(o?.bottom)[1],left:sW(o?.left)[1]}),S=function(e){const t=Gl(xse,"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,Ir.createElement)(Bae,{id:S,role:"group","aria-labelledby":C},(0,Ir.createElement)(Lae,{className:"component-box-control__header"},(0,Ir.createElement)(bR,null,(0,Ir.createElement)(LH.VisualLabel,{id:C},r)),l&&(0,Ir.createElement)(bR,null,(0,Ir.createElement)(ug,{className:"component-box-control__reset-button",variant:"secondary",isSmall:!0,onClick:()=>{n(c),p(c),x(c),b(!1)},disabled:!v},Un("Reset")))),(0,Ir.createElement)(Dae,{className:"component-box-control__header-control-wrapper"},(0,Ir.createElement)(bR,null,(0,Ir.createElement)(kse,{side:w,sides:a})),y&&(0,Ir.createElement)(F$,null,(0,Ir.createElement)(ise,{"aria-label":r,...I})),!y&&s&&(0,Ir.createElement)(F$,null,(0,Ir.createElement)(cse,{...I})),!g&&(0,Ir.createElement)(bR,null,(0,Ir.createElement)(wse,{onClick:()=>{k(!y),_(nse(!y,s))},isLinked:y}))),!y&&!s&&(0,Ir.createElement)(sse,{...I}))}const Sse=xse,Cse={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 Ise({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=dU(u,l);let p=l;const m=l.length<=8,h=DC((e=>{const t=e(XO).getSettings();return t?.disableCustomSpacingSizes})),[g,v]=(0,Ir.useState)(!h&&void 0!==u&&!uU(u)),b=h$(u);u&&b!==u&&!uU(u)&&!0!==g&&v(!0);const y=lW({availableUnits:LU("spacing.units")||["px","em","rem"]});let k=null;!m&&!g&&void 0!==u&&(!uU(u)||uU(u)&&t)?(p=[...l,{name:t?Un("Mixed"):An(Un("Custom (%s)"),u),slug:"custom",size:u}],k=p.length-1):t||(k=g?function(e,t){if(!uU(e))return e;const n=pU(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":pU(e),r=t.findIndex((e=>String(e.slug)===n));return-1!==r?r:NaN}(u,l));const w=(0,Ir.useMemo)((()=>sW(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?Un("Mixed"):null,S=p.map(((e,t)=>({key:t,name:e.name}))),C=l.map(((e,t)=>({value:t,label:void 0}))),I=iU.includes(s)&&a?lU[s]:"",T=a?c?.toLowerCase():c,P=An(Un("%1$s %2$s"),I,T).trim();return(0,Ir.createElement)(K$,{className:"spacing-sizes-control__wrapper"},e&&(0,Ir.createElement)(rm,{className:"spacing-sizes-control__icon",icon:e,size:24}),g&&(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(GK,{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,Ir.createElement)(cq,{onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o,value:_,min:0,max:null!==(d=Cse[w]?.max)&&void 0!==d?d:10,step:null!==(f=Cse[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,Ir.createElement)(cq,{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,Ir.createElement)(OB,{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,Ir.createElement)(ug,{label:Un(g?"Use size preset":"Set custom size"),icon:_ie,onClick:()=>{v(!g)},isPressed:g,isSmall:!0,className:"spacing-sizes-control__custom-toggle",iconSize:24}))}const Tse=["vertical","horizontal"];function Pse({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]=dU(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?Tse.filter((e=>mU(o,e))):Tse;return(0,Ir.createElement)(Ir.Fragment,null,c.map((t=>{const o="vertical"===t?s.top:s.left;return(0,Ir.createElement)(Ise,{key:`spacing-sizes-control-${t}`,icon:sU[t],label:lU[t],minimumCustomValue:e,onChange:l(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:o,withInputField:!1})})))}function Nse({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,sides:o,spacingSizes:i,type:a,values:s}){const l=o?.length?iU.filter((e=>o.includes(e))):iU,c=e=>n=>{const r={...Object.keys(s).reduce(((e,t)=>(e[t]=dU(s[t],i),e)),{})};r[e]=n,t(r)};return(0,Ir.createElement)(Ir.Fragment,null,l.map((t=>(0,Ir.createElement)(Ise,{key:`spacing-sizes-control-${t}`,icon:sU[t],label:lU[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:s[t],withInputField:!1}))))}function Ose({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,showSideInLabel:o,side:i,spacingSizes:a,type:s,values:l}){return(0,Ir.createElement)(Ise,{label:lU[i],minimumCustomValue:e,onChange:(c=i,e=>{const n={...Object.keys(l).reduce(((e,t)=>(e[t]=dU(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 Ase=(0,Ir.createElement)(rm,{icon:CM,size:24});function Mse({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=mU(e,"horizontal"),r=mU(e,"vertical");n&&r?t.axial={label:lU.axial,icon:sU.axial}:n?t.axial={label:lU.horizontal,icon:sU.horizontal}:r&&(t.axial={label:lU.vertical,icon:sU.vertical});let o=0;return iU.forEach((n=>{e.includes(n)&&(o+=1,t[n]={label:lU[n],icon:sU[n]})})),o>1&&(t.custom={label:lU.custom,icon:sU.custom}),t}(n),i=o[r].icon,{custom:a,...s}=o;return(0,Ir.createElement)(yC,{icon:i,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{isSmall:!0}},(({onClose:e})=>(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(hH,null,Object.entries(s).map((([n,{label:o,icon:i}])=>{const a=r===n;return(0,Ir.createElement)(vH,{key:n,icon:i,iconPosition:"left",isSelected:a,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:a?Ase:void 0},o)}))),!!a&&(0,Ir.createElement)(hH,null,(0,Ir.createElement)(vH,{icon:a.icon,iconPosition:"left",isSelected:r===cU.custom,role:"menuitemradio",onClick:()=>{t(cU.custom),e()},suffix:r===cU.custom?Ase:void 0},a.label)))))}function Rse({inputProps:e,label:t,minimumCustomValue:n=0,onChange:r,onMouseOut:o,onMouseOver:i,showSideInLabel:a=!0,sides:s=iU,useSelect:l,values:c}){const u=function(){const e=[{name:0,slug:"0",size:0},...LU("spacing.spacingSizes")||[]];return e.length>8&&e.unshift({name:Un("Default"),slug:"default",size:void 0}),e}(),d=c||aU,f=1===s?.length,p=s?.includes("horizontal")&&s?.includes("vertical")&&2===s?.length,[m,h]=(0,Ir.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(mU(t)&&(s||l))return cU.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?cU.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=iU.includes(m)&&a?lU[m]:"",b=An(Un("%1$s %2$s"),t,v).trim(),y=An(Wn("%s options","Button label to reveal side configuration options"),t);return(0,Ir.createElement)("fieldset",{className:"spacing-sizes-control"},(0,Ir.createElement)(K$,{className:"spacing-sizes-control__header"},(0,Ir.createElement)(DH.VisualLabel,{as:"legend",className:"spacing-sizes-control__label"},b),!f&&!p&&(0,Ir.createElement)(Mse,{label:y,onChange:h,sides:s,value:m})),m===cU.axial?(0,Ir.createElement)(Pse,{...g}):m===cU.custom?(0,Ir.createElement)(Nse,{...g}):(0,Ir.createElement)(Ose,{side:m,...g,showSideInLabel:a}))}const Bse={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 Lse({label:e=Un("Height"),onChange:t,value:n}){var r,o;const i=parseFloat(n),a=lW({availableUnits:LU("spacing.units")||["%","px","em","rem","vh","vw"]}),s=(0,Ir.useMemo)((()=>sW(n)),[n])[1]||a[0]?.value||"px";return(0,Ir.createElement)("fieldset",{className:"block-editor-height-control"},(0,Ir.createElement)(DH.VisualLabel,{as:"legend"},e),(0,Ir.createElement)(gR,null,(0,Ir.createElement)(bR,{isBlock:!0},(0,Ir.createElement)(GK,{value:n,units:a,onChange:t,onUnitChange:e=>{const[r,o]=sW(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,Ir.createElement)(bR,{isBlock:!0},(0,Ir.createElement)(ZM,{marginX:2,marginBottom:0},(0,Ir.createElement)(cq,{value:i,min:0,max:null!==(r=Bse[s]?.max)&&void 0!==r?r:100,step:null!==(o=Bse[s]?.step)&&void 0!==o?o:.1,withInputField:!1,onChange:e=>{t([e,s].join(""))},__nextHasNoMarginBottom:!0})))))}function Dse(e,t){const{orientation:n="horizontal"}=t;return Un("fill"===e?"Stretch to fill available space.":"fixed"===e&&"horizontal"===n?"Specify a fixed width.":"fixed"===e?"Specify a fixed height.":"Fit contents.")}function zse({value:e={},onChange:t,parentLayout:n}){const{selfStretch:r,flexSize:o}=e;return(0,Ir.useEffect)((()=>{"fixed"!==r||o||t({...e,selfStretch:"fit"})}),[]),(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(k$,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:Fse(n),value:r||"fit",help:Dse(r,n),onChange:n=>{const r="fixed"!==n?null:o;t({...e,selfStretch:n,flexSize:r})},isBlock:!0},(0,Ir.createElement)(Mie,{key:"fit",value:"fit",label:Un("Fit")}),(0,Ir.createElement)(Mie,{key:"fill",value:"fill",label:Un("Fill")}),(0,Ir.createElement)(Mie,{key:"fixed",value:"fixed",label:Un("Fixed")})),"fixed"===r&&(0,Ir.createElement)(GK,{size:"__unstable-large",onChange:n=>{t({...e,flexSize:n})},value:o}))}function Fse(e){const{orientation:t="horizontal"}=e;return Un("horizontal"===t?"Width":"Height")}const jse=["horizontal","vertical"];function Vse(e){return e?.layout?.contentSize}function Hse(e){return e?.layout?.wideSize}function $se(e){return e?.spacing?.padding}function Use(e){return e?.spacing?.margin}function Wse(e){return e?.spacing?.blockGap}function Kse(e){return e?.dimensions?.minHeight}function Gse(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 qse(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 Yse(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function Xse({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Ir.createElement)(OY,{label:Un("Dimensions"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const Zse={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!0};function Qse({as:e=Xse,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Zse,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]=Cre({settings:{dimensions:v,spacing:b}},"",e[n]),t)),{}):Cre({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=lW({availableUnits:o?.spacing?.units||["%","px","em","rem","vw"]}),_=Vse(o)&&l,E=y(r?.layout?.contentSize),x=e=>{n(NU(t,["layout","contentSize"],e||void 0))},S=Hse(o)&&l,C=y(r?.layout?.wideSize),I=e=>{n(NU(t,["layout","wideSize"],e||void 0))},T=$se(o),P=Yse(y(r?.spacing?.padding)),N=Array.isArray(o?.spacing?.padding)?o?.spacing?.padding:o?.spacing?.padding?.sides,O=N&&N.some((e=>jse.includes(e))),A=e=>{const r=qse(e,N);n(NU(t,["spacing","padding"],r))},M=()=>s("padding"),R=Use(o),B=Yse(y(r?.spacing?.margin)),L=Array.isArray(o?.spacing?.margin)?o?.spacing?.margin:o?.spacing?.margin?.sides,D=L&&L.some((e=>jse.includes(e))),z=e=>{const r=qse(e,L);n(NU(t,["spacing","margin"],r))},F=()=>s("margin"),j=Wse(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=>jse.includes(e))),W=e=>{n(NU(t,["spacing","blockGap"],e))},K=e=>{e||W(null),!U&&e?.hasOwnProperty("top")?W(e.top):W({top:e?.top,left:e?.left})},G=Kse(o),q=y(r?.dimensions?.minHeight),Y=e=>{n(NU(t,["dimensions","minHeight"],e))},X=Gse(o),Z=r?.layout,{orientation:Q="horizontal"}=null!==(c=o?.parentLayout)&&void 0!==c?c:{},J=Un("horizontal"===Q?"Width":"Height"),ee=e=>{n({...t,layout:{...t?.layout,...e}})},te=(0,Ir.useCallback)((e=>({...e,layout:FU({...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,Ir.createElement)(e,{resetAllFilter:te,value:t,onChange:n,panelId:i},(_||S)&&(0,Ir.createElement)("span",{className:"span-columns"},Un("Set the width of the main content area.")),_&&(0,Ir.createElement)(F9,{className:"single-column",label:Un("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>x(void 0),isShownByDefault:null!==(u=a.contentSize)&&void 0!==u?u:Zse.contentSize,panelId:i},(0,Ir.createElement)(K$,{alignment:"flex-end",justify:"flex-start"},(0,Ir.createElement)(GK,{label:Un("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:E||"",onChange:e=>{x(e)},units:w}),(0,Ir.createElement)(ag,null,(0,Ir.createElement)(SM,{icon:qK})))),S&&(0,Ir.createElement)(F9,{className:"single-column",label:Un("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>I(void 0),isShownByDefault:null!==(d=a.wideSize)&&void 0!==d?d:Zse.wideSize,panelId:i},(0,Ir.createElement)(K$,{alignment:"flex-end",justify:"flex-start"},(0,Ir.createElement)(GK,{label:Un("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:C||"",onChange:e=>{I(e)},units:w}),(0,Ir.createElement)(ag,null,(0,Ir.createElement)(SM,{icon:YK})))),T&&(0,Ir.createElement)(F9,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:Un("Padding"),onDeselect:()=>A(void 0),isShownByDefault:null!==(f=a.padding)&&void 0!==f?f:Zse.padding,className:$l()({"tools-panel-item-spacing":k}),panelId:i},!k&&(0,Ir.createElement)(Sse,{values:P,onChange:A,label:Un("Padding"),sides:N,units:w,allowReset:!1,splitOnAxis:O,onMouseOver:M,onMouseOut:ne}),k&&(0,Ir.createElement)(Rse,{values:P,onChange:A,label:Un("Padding"),sides:N,units:w,allowReset:!1,onMouseOver:M,onMouseOut:ne})),R&&(0,Ir.createElement)(F9,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:Un("Margin"),onDeselect:()=>z(void 0),isShownByDefault:null!==(p=a.margin)&&void 0!==p?p:Zse.margin,className:$l()({"tools-panel-item-spacing":k}),panelId:i},!k&&(0,Ir.createElement)(Sse,{values:B,onChange:z,label:Un("Margin"),sides:L,units:w,allowReset:!1,splitOnAxis:D,onMouseOver:F,onMouseOut:ne}),k&&(0,Ir.createElement)(Rse,{values:B,onChange:z,label:Un("Margin"),sides:L,units:w,allowReset:!1,onMouseOver:F,onMouseOut:ne})),j&&(0,Ir.createElement)(F9,{hasValue:()=>!!t?.spacing?.blockGap,label:Un("Block spacing"),onDeselect:()=>W(void 0),isShownByDefault:null!==(m=a.blockGap)&&void 0!==m?m:Zse.blockGap,className:$l()({"tools-panel-item-spacing":k}),panelId:i},!k&&(U?(0,Ir.createElement)(Sse,{label:Un("Block spacing"),min:0,onChange:K,units:w,sides:$,values:H,allowReset:!1,splitOnAxis:U}):(0,Ir.createElement)(GK,{label:Un("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:W,units:w,value:V})),k&&(0,Ir.createElement)(Rse,{label:Un("Block spacing"),min:0,onChange:K,showSideInLabel:!1,sides:U?$:["top"],values:H,allowReset:!1})),G&&(0,Ir.createElement)(F9,{hasValue:()=>!!t?.dimensions?.minHeight,label:Un("Min. height"),onDeselect:()=>{Y(void 0)},isShownByDefault:null!==(h=a.minHeight)&&void 0!==h?h:Zse.minHeight,panelId:i},(0,Ir.createElement)(Lse,{label:Un("Min. height"),value:q,onChange:Y})),X&&(0,Ir.createElement)(y4,{as:F9,spacing:2,hasValue:()=>!!t?.layout,label:J,onDeselect:()=>{ee({selfStretch:void 0,flexSize:void 0})},isShownByDefault:null!==(g=a.childLayout)&&void 0!==g?g:Zse.childLayout,panelId:i},(0,Ir.createElement)(zse,{value:Z,onChange:ee,parentLayout:o?.parentLayout})))}const Jse=function(e){return $x((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])},ele=Number.MAX_SAFE_INTEGER;const tle=(0,Ir.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstableRefreshSize:r,__unstableCoverTarget:o=!1,__unstablePopoverSlot:i,__unstableContentRef:a,shift:s=!0,...l},c){const u=j0(e),d=j0(null!=t?t:e),f=$g([c,Jse(a)]),[p,m]=(0,Ir.useReducer)((e=>(e+1)%ele),0);(0,Ir.useLayoutEffect)((()=>{if(!u)return;const e=new window.MutationObserver(m);return e.observe(u,{attributes:!0}),()=>{e.disconnect()}}),[u]);const h=(0,Ir.useMemo)((()=>p<0||!u||d!==u?{}:{position:"absolute",width:u.offsetWidth,height:u.offsetHeight}),[u,d,r,p]),g=(0,Ir.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,Ir.createElement)(aC,{ref:f,animate:!1,focusOnMount:!1,anchor:g,__unstableSlotName:i,inline:!i,placement:"top-start",resize:!1,flip:!1,shift:s,...l,className:$l()("block-editor-block-popover",l.className),variant:"unstyled"},o&&(0,Ir.createElement)("div",{style:h},n),!o&&n)}));function nle(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function rle({clientId:e,attributes:t,forceShow:n}){const r=j0(e),[o,i]=(0,Ir.useState)(),a=t?.style?.spacing?.margin;(0,Ir.useEffect)((()=>{if(!r||null===r.ownerDocument.defaultView)return;const e=nle(r,"margin-top"),t=nle(r,"margin-right"),n=nle(r,"margin-bottom"),o=nle(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,Ir.useState)(!1),c=(0,Ir.useRef)(a),u=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>(da(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,Ir.createElement)(tle,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:a,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,Ir.createElement)("div",{className:"block-editor__padding-visualizer",style:o})):null}function ole(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function ile({clientId:e,attributes:t,forceShow:n}){const r=j0(e),[o,i]=(0,Ir.useState)(),a=t?.style?.spacing?.padding;(0,Ir.useEffect)((()=>{r&&null!==r.ownerDocument.defaultView&&i({borderTopWidth:ole(r,"padding-top"),borderRightWidth:ole(r,"padding-right"),borderBottomWidth:ole(r,"padding-bottom"),borderLeftWidth:ole(r,"padding-left")})}),[r,a]);const[s,l]=(0,Ir.useState)(!1),c=(0,Ir.useRef)(a),u=(0,Ir.useRef)();return(0,Ir.useEffect)((()=>(da(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,Ir.createElement)(tle,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:a,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,Ir.createElement)("div",{className:"block-editor__padding-visualizer",style:o})):null}const ale="dimensions",sle="spacing";function lle({children:e,resetAllFilter:t}){const n=(0,Ir.useCallback)((e=>{const n=e.style,r=t(n);return{...e,style:r}}),[t]);return(0,Ir.createElement)(DY,{group:"dimensions",resetAllFilter:n},e)}function cle(e){const{clientId:t,name:n,attributes:r,setAttributes:o,__unstableParentLayout:i}=e,a=HU(n,i),s=function(e){const t=Vse(e),n=Hse(e),r=$se(e),o=Use(e),i=Wse(e),a=Kse(e),s=Gse(e);return"web"===nI.OS&&(t||n||r||o||i||a||s)}(a),l=r.style,[c,u]=function(){const[e,t]=(0,Ir.useState)(!1),{hideBlockInterface:n,showBlockInterface:r}=qO(Iq(XO));return(0,Ir.useEffect)((()=>{e?n():r()}),[e,r,n]),[e,t]}();if(!s)return null;const d={...jr(e.name,[ale,"__experimentalDefaultControls"]),...jr(e.name,[sle,"__experimentalDefaultControls"])};return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Qse,{as:lle,panelId:t,settings:a,value:l,onChange:e=>{o({style:FU(e)})},defaultControls:d,onVisualize:u}),!!a?.spacing?.padding&&(0,Ir.createElement)(ile,{forceShow:"padding"===c,...e}),!!a?.spacing?.margin&&(0,Ir.createElement)(rle,{forceShow:"margin"===c,...e}))}const ule=[...Nae,Bre,cie,ale,wee,sle],dle=e=>ule.some((t=>Vr(e,t)));function fle(e={}){const t={};return AG(e).forEach((e=>{t[e.key]=e.value})),t}const ple={[`${Bre}.__experimentalSkipSerialization`]:["border"],[`${cie}.__experimentalSkipSerialization`]:[cie],[`${Pae}.__experimentalSkipSerialization`]:[Pae],[`${ale}.__experimentalSkipSerialization`]:[ale],[`${sle}.__experimentalSkipSerialization`]:[sle]},mle={...ple,[`${wee}`]:[wee]},hle={[`${wee}`]:!0},gle={gradients:"gradient"};function vle(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;vle(r[t],[n],!0)}else 1===e.length&&delete r[e[0]]})),r}function ble(e,t,n,r=mle){if(!dle(t))return e;let{style:o}=n;return Object.entries(r).forEach((([e,n])=>{const r=hle[e]||jr(t,e);!0===r&&(o=vle(o,n)),Array.isArray(r)&&r.forEach((e=>{const t=gle[e]||e;o=vle(o,[[...n,t]])}))})),e.style={...fle(o),...e.style},e}const yle=Ul((e=>t=>{if(!dle(t.name))return(0,Ir.createElement)(e,{key:"edit",...t});const n=nA(),r=Pq();return(0,Ir.createElement)(Ir.Fragment,null,n&&"default"===r&&(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(yie,{...t}),(0,Ir.createElement)(Cee,{...t}),(0,Ir.createElement)(Rae,{...t}),(0,Ir.createElement)(Hre,{...t}),(0,Ir.createElement)(cle,{...t})),(0,Ir.createElement)(e,{key:"edit",...t}))}),"withToolbarControls"),kle=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}],wle=Ul((e=>t=>{const n=`wp-elements-${Gl(e)}`,r=`.editor-styles-wrapper .${n}`,o=t.attributes.style?.elements,i=(0,Ir.useMemo)((()=>{if(!o)return;const e=[];return kle.forEach((({elementType:n,pseudo:i,elements:a})=>{if(VU(t.name,cie,n))return;const s=o?.[n];if(s){const t=Ire(r,Ar[n]);e.push(OG(s,{selector:t})),i&&i.forEach((t=>{s[t]&&e.push(OG(s[t],{selector:Ire(r,`${Ar[n]}${t}`)}))}))}a&&a.forEach((t=>{o[t]&&e.push(OG(o[t],{selector:Ire(r,Ar[t])}))}))})),e.length>0?e.join(""):void 0}),[r,o,t.name]),a=(0,Ir.useContext)(R9.__unstableElementContext);return(0,Ir.createElement)(Ir.Fragment,null,i&&a&&(0,df.createPortal)((0,Ir.createElement)("style",{dangerouslySetInnerHTML:{__html:i}}),a),(0,Ir.createElement)(e,{...t,className:t.attributes.style?.elements?$l()(t.className,n):t.className}))}),"withElementsStyles");Ht("blocks.registerBlockType","core/style/addAttribute",(function(e){return dle(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Ht("blocks.getSaveContent.extraProps","core/style/addSaveProps",ble),Ht("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!dle(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),ble(r,e,n,ple)},e})),Ht("editor.BlockEdit","core/style/with-block-controls",yle),Ht("editor.BlockListBlock","core/editor/with-elements-styles",wle);Ht("blocks.registerBlockType","core/settings/addAttribute",(function(e){return Vr(e,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e}));const _le=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{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 Ele(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} )`}_r([Er]);const xle=function({values:e}){return e?(0,Ir.createElement)(ute,{colorValue:Ele(e,"135deg")}):(0,Ir.createElement)(rm,{icon:_le})};function Sle({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[a,s]=(0,Ir.useState)(!1),l=Gl(Sle,"color-list-picker-option"),c=`${l}__label`,u=`${l}__content`;return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(ug,{className:"components-color-list-picker__swatch-button",onClick:()=>s((e=>!e)),"aria-expanded":a,"aria-controls":u},(0,Ir.createElement)(K$,{justify:"flex-start",spacing:2},t?(0,Ir.createElement)(ute,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,Ir.createElement)(rm,{icon:_le}),(0,Ir.createElement)("span",{id:c},e))),(0,Ir.createElement)("div",{role:"group",id:u,"aria-labelledby":c,"aria-hidden":!a},a&&(0,Ir.createElement)(zne,{"aria-label":Un("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o})))}const Cle=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,Ir.createElement)("div",{className:"components-color-list-picker"},t.map(((t,a)=>(0,Ir.createElement)(Sle,{key:a,label:t,value:n[a],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[a]=e,i(t)}}))))},Ile=["#333","#CCC"];function Tle({value:e,onChange:t}){const n=!!e,r=n?e:Ile,o=Ele(r),i=function(e){return e.map(((t,n)=>({position:100*n/(e.length-1),color:t})))}(r);return(0,Ir.createElement)(koe,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const Ple=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,Ir.useMemo)((()=>{return!(e=o)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:kr(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=Un("Unset"),v=(0,Ir.createElement)(Pne.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:Ele(e,"135deg"),color:"transparent"},o=null!=n?n:An(Un("Duotone code: %s"),t),i=n?An(Un("Duotone: %s"),n):o,a=Ma()(e,l);return(0,Ir.createElement)(Pne.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":Un("Custom color picker.")}}return(0,Ir.createElement)(Pne,{...f,...y,options:r?[v,...b]:b,actions:!!n&&(0,Ir.createElement)(Pne.ButtonAction,{onClick:()=>c(void 0)},Un("Clear"))},(0,Ir.createElement)(ZM,{paddingTop:4},(0,Ir.createElement)(y4,{spacing:3},!a&&!s&&(0,Ir.createElement)(Tle,{value:h?void 0:l,onChange:c}),!s&&(0,Ir.createElement)(Cle,{labels:[Un("Shadows"),Un("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)}}))))},Nle=(0,Ir.createElement)(tm,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ir.createElement)(em,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"}));const Ole=function e({id:t,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:a,onChange:s}){let l;l="unset"===a?(0,Ir.createElement)(ute,{className:"block-editor-duotone-control__unset-indicator"}):a?(0,Ir.createElement)(xle,{values:a}):(0,Ir.createElement)(SM,{icon:Nle});const c=Un("Apply duotone filter"),u=`${Gl(e,"duotone-control",t)}__description`;return(0,Ir.createElement)(lC,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:Un("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,Ir.createElement)(Fg,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==bx||(n.preventDefault(),t())},label:c,icon:l}),renderContent:()=>(0,Ir.createElement)(hH,{label:Un("Duotone")},(0,Ir.createElement)("div",{id:u,className:"block-editor-duotone-control__description"},Un("Create a two-tone color effect without losing your original image.")),(0,Ir.createElement)(Ple,{"aria-label":c,"aria-describedby":u,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:a,onChange:s}))})};function Ale(e){return`${e}{filter:none}`}function Mle(e,t){return`${e}{filter:url(#${t})}`}function Rle(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=kr(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 Ble(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 OU(i,`${l}.root`,null)||OU(i,l,null)||e}const t=OU(a,`${l}.__experimentalSelector`,null);return t?Ire(c,t):e}let d;return s&&(d=OU(i,l,null)),d||(r?Ble(e,u[0],n):null)}const Lle=[];function Dle(e,{presetSetting:t,defaultSetting:n}){const r=!e?.color?.[n],o=e?.color?.[t]?.custom||Lle,i=e?.color?.[t]?.theme||Lle,a=e?.color?.[t]?.default||Lle;return(0,Ir.useMemo)((()=>[...o,...i,...r?Lle:a]),[r,o,i,a])}function zle(e){return e.color.customDuotone||e.color.defaultDuotone}function Fle({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,Ir.createElement)(OY,{label:Wn("Filters","Name for applying graphical effects"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const jle={duotone:!0},Vle={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:Un("Duotone")},Hle=({indicator:e,label:t})=>(0,Ir.createElement)(K$,{justify:"flex-start"},(0,Ir.createElement)(Zre,{isLayered:!1,offset:-8},(0,Ir.createElement)(gR,{expanded:!1},"unset"!==e&&e?(0,Ir.createElement)(xle,{values:e}):(0,Ir.createElement)(ute,{className:"block-editor-duotone-control__unset-indicator"}))),(0,Ir.createElement)(bR,{title:t},t));function $le({as:e=Fle,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=jle}){const s=zle(o),l=Dle(o,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),c=Dle(o,{presetSetting:"palette",defaultSetting:"defaultPalette"}),u=(d=r?.filter?.duotone,Cre({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(NU(t,["filter","duotone"],o))},p=!o?.color?.custom,m=!o?.color?.customDuotone||0===c?.length&&p,h=(0,Ir.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,Ir.createElement)(e,{resetAllFilter:h,value:t,onChange:n,panelId:i},s&&(0,Ir.createElement)(F9,{label:Un("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>f(void 0),isShownByDefault:a.duotone,panelId:i},(0,Ir.createElement)(lC,{popoverProps:Vle,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:$l()({"is-open":t}),"aria-expanded":t};return(0,Ir.createElement)(B4,{isBordered:!0,isSeparated:!0},(0,Ir.createElement)(ug,{...n},(0,Ir.createElement)(Hle,{indicator:u,label:Un("Duotone")})))},renderContent:()=>(0,Ir.createElement)(Ane,{paddingSize:"medium"},(0,Ir.createElement)(y4,null,(0,Ir.createElement)("p",null,Un("Create a two-tone color effect without losing your original image.")),(0,Ir.createElement)(Ple,{colorPalette:c,duotonePalette:l,disableCustomColors:p,disableCustomDuotone:m,value:u,onChange:f})))})))}const Ule=[];function Wle({presetSetting:e,defaultSetting:t}){const n=!LU(t),r=LU(`${e}.custom`)||Ule,o=LU(`${e}.theme`)||Ule,i=LU(`${e}.default`)||Ule;return(0,Ir.useMemo)((()=>[...r,...o,...n?Ule:i]),[n,r,o,i])}function Kle(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}function Gle({attributes:e,setAttributes:t,name:n}){const r=e?.style,o=r?.color?.duotone,i=HU(n),a=Wle({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),s=Wle({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),l=!LU("color.custom"),c=!LU("color.customDuotone")||0===s?.length&&l;if(0===a?.length&&c)return null;const u=Array.isArray(o)?o:Kle(o,a);return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(DY,{group:"filter"},(0,Ir.createElement)($le,{value:{filter:{duotone:u}},onChange:e=>{const n={...r,color:{...e?.filter}};t({style:n})},settings:i})),(0,Ir.createElement)(pH,{group:"block",__experimentalShareWithChildBlocks:!0},(0,Ir.createElement)(Ole,{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})))}_r([Er]);const qle=Ul((e=>t=>{const n=Vr(t.name,"filter.duotone"),r=Pq();return(0,Ir.createElement)(Ir.Fragment,null,n&&"default"===r&&(0,Ir.createElement)(Gle,{...t}),(0,Ir.createElement)(e,{...t}))}),"withDuotoneControls");function Yle({id:e,selector:t,attribute:n}){const r=Wle({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),o=Array.isArray(n),i=o?void 0:Kle(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}=qO(Iq(XO));return(0,Ir.useEffect)((()=>{if(c)return u(e,{css:"unset"!==s?Mle(l,e):Ale(l),__unstableType:"presets"}),u(`duotone-${e}`,{assets:"unset"!==s?Rle(e,s):"",__unstableType:"svgs"}),()=>{d(e),d(`duotone-${e}`)}}),[c,s,l,e,u,d]),null}const Xle=Ul((e=>t=>{const n=Gl(e),r=(0,Ir.useMemo)((()=>{const e=zr(t.name);if(e){if(!jr(e,"filter.duotone",!1))return null;const t=jr(e,"color.__experimentalDuotone",!1);if(t){const n=Ble(e);return"string"==typeof t?Ire(n,t):n}return Ble(e,"filter.duotone",{fallback:!0})}}),[t.name]),o=t?.attributes?.style?.color?.duotone,i=`wp-duotone-${n}`,a=r&&o,s=a?$l()(t?.className,i):t?.className;return(0,Ir.createElement)(Ir.Fragment,null,a&&(0,Ir.createElement)(Yle,{id:i,selector:r,attribute:o}),(0,Ir.createElement)(e,{...t,className:s}))}),"withDuotoneStyles");function Zle(e){return DC((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:r,__experimentalGetReusableBlockTitle:o}=t(XO),{getBlockType:i,getActiveBlockVariation:a}=t(wi),s=n(e),l=i(s);if(!l)return null;const c=r(e),u=a(s,c),d=Hr(l),f=(d?o(c.ref):void 0)||l.title,p=d||$r(l),m=function(e){const t=e?.style?.position?.type;return"sticky"===t?Un("Sticky"):"fixed"===t?Un("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])}Ht("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Vr(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Ht("editor.BlockEdit","core/editor/duotone/with-editor-controls",qle),Ht("editor.BlockListBlock","core/editor/duotone/with-styles",Xle);const{CustomSelectControl:Qle}=qO(lH),Jle="position",ece="block-editor-hooks__position-selection__select-control__option",tce={key:"default",value:"",name:Un("Default"),className:ece},nce={key:"sticky",value:"sticky",name:Wn("Sticky","Name for the value of the CSS position property"),className:ece,__experimentalHint:Un("The block will stick to the top of the window instead of scrolling.")},rce={key:"fixed",value:"fixed",name:Wn("Fixed","Name for the value of the CSS position property"),className:ece,__experimentalHint:Un("The block will not move when the page is scrolled.")},oce=["top","right","bottom","left"],ice=["sticky","fixed"];function ace({name:e}={}){const t=LU("position.fixed"),n=LU("position.sticky"),r=!t&&!n;return!jr(e,Jle)||r}function sce(e){const{attributes:{style:t={}},clientId:n,name:r,setAttributes:o}=e,i=function(e){const t=jr(e,Jle);return!(!0!==t&&!t?.fixed)}(r),a=function(e){const t=jr(e,Jle);return!(!0!==t&&!t?.sticky)}(r),s=t?.position?.type,{firstParentClientId:l}=DC((e=>{const{getBlockParents:t}=e(XO),r=t(n);return{firstParentClientId:r[r.length-1]}}),[n]),c=Zle(l),u=a&&s===nce.value&&c?An(Un("The block will stick to the scrollable area of the parent %s block."),c.title):null,d=(0,Ir.useMemo)((()=>{const e=[tce];return(a||s===nce.value)&&e.push(nce),(i||s===rce.value)&&e.push(rce),e}),[i,a,s]),f=s&&d.find((e=>e.value===s))||tce;return nI.select({web:d.length>1?(0,Ir.createElement)(DY,{group:"position"},(0,Ir.createElement)(DH,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:u},(0,Ir.createElement)(Qle,{__nextUnconstrainedWidth:!0,__next40pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:Un("Position"),hideLabelFromVision:!0,describedBy:An(Un("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:FU(n)})})(e.value)},size:"__unstable-large"}))):null,native:null})}const lce=Ul((e=>t=>{const{name:n}=t,r=Vr(n,Jle),o=ace(t);return[r&&!o&&(0,Ir.createElement)(sce,{key:"position",...t}),(0,Ir.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),cce=Ul((e=>t=>{const{name:n,attributes:r}=t,o=Vr(n,Jle),i=ace(t),a=o&&!i,s=Gl(e),l=(0,Ir.useContext)(R9.__unstableElementContext);let c;a&&(c=function({selector:e,style:t}){let n="";const{type:r}=t?.position||{};return ice.includes(r)?(n+=`${e} {`,n+=`position: ${r};`,oce.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=$l()(t?.className,{[`wp-container-${s}`]:a&&!!c,[`is-position-${r?.style?.position?.type}`]:a&&!!c&&!!r?.style?.position?.type});return(0,Ir.createElement)(Ir.Fragment,null,a&&l&&!!c&&(0,df.createPortal)((0,Ir.createElement)("style",null,c),l),(0,Ir.createElement)(e,{...t,className:u}))}),"withPositionStyles");Ht("editor.BlockListBlock","core/editor/position/with-position-styles",cce),Ht("editor.BlockEdit","core/editor/position/with-inspector-controls",lce);const uce=(0,Ir.forwardRef)((function(e,t){const{className:n,...r}=e,o=$l()("components-button-group",n);return(0,Ir.createElement)("div",{ref:t,role:"group",className:o,...r})})),dce="layout";function fce(e){return Vr(e,"layout")||Vr(e,"__experimentalLayout")}function pce({setAttributes:e,attributes:t,name:n}){const r=HU(n),{layout:{allowEditing:o}}=r,{layout:i}=t,a=LU("layout"),{themeSupportsLayout:s}=DC((e=>{const{getSettings:t}=e(XO);return{themeSupportsLayout:t().supportsLayout}}),[]),l=Pq(),c=jr(n,dce,{}),{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=hq(v),k=hq("constrained"),w=!h.type&&(b||g),_=!!g||!!b,E=t=>e({layout:t});return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(DY,null,(0,Ir.createElement)(Kq,{title:Un("Layout")},m&&(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(G$,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:Un("Inner blocks use content width"),checked:"constrained"===y?.name||_,onChange:()=>e({layout:{type:"constrained"===y?.name||_?"default":"constrained"}}),help:Un("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,Ir.createElement)(mce,{type:v,onChange:t=>e({layout:{type:t}})}),y&&"default"!==y.name&&(0,Ir.createElement)(y.inspectorControls,{layout:h,onChange:E,layoutBlockSupport:c}),k&&w&&(0,Ir.createElement)(k.inspectorControls,{layout:h,onChange:E,layoutBlockSupport:c}))),!g&&"default"===l&&y&&(0,Ir.createElement)(y.toolBarControls,{layout:h,onChange:E,layoutBlockSupport:c}))}function mce({type:e,onChange:t}){return(0,Ir.createElement)(uce,null,mq.map((({name:n,label:r})=>(0,Ir.createElement)(ug,{key:n,isPressed:e===n,onClick:()=>t(n)},r))))}const hce=Ul((e=>t=>{const{name:n}=t,r=fce(n),o=Pq();return[r&&"default"===o&&(0,Ir.createElement)(pce,{key:"layout",...t}),(0,Ir.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),gce=Ul((e=>t=>{const{name:n,attributes:r}=t,o=fce(n),i=DC((e=>{const{getSettings:t}=e(XO);return!!t().disableLayoutStyles})),a=o&&!i,s=Gl(e),{layout:l}=r,{default:c}=jr(n,dce)||{},u=l?.inherit||l?.contentSize||l?.wideSize?{...l,type:"constrained"}:l||c||{},d=o?function(e={},t=""){const n=DC((e=>{const{getSettings:t}=e(XO);return t().__experimentalFeatures?.useRootPaddingAwareAlignments}),[]),{layout:r}=e,{default:o}=jr(t,dce)||{},i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||o||{},a=[];if(q$[i?.type||"default"]?.className){const e=q$[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-${TU(i.orientation)}`),i?.justifyContent&&a.push(`is-content-justification-${TU(i.justifyContent)}`),i?.flexWrap&&"nowrap"===i.flexWrap&&a.push("is-nowrap"),a}(r,n):null,f=`.wp-container-${s}.wp-container-${s}`,p=null!==LU("spacing.blockGap");let m;if(a){const e=hq(u?.type||"default");m=e?.getLayoutStyle?.({blockName:n,selector:f,layout:u,style:r?.style,hasBlockGapSupport:p})}const h=$l()({[`wp-container-${s}`]:a&&!!m},d),{setStyleOverride:g,deleteStyleOverride:v}=qO(Iq(XO));return(0,Ir.useEffect)((()=>{if(m)return g(s,{css:m}),()=>{v(s)}}),[s,m,g,v]),(0,Ir.createElement)(e,{...t,__unstableLayoutClassNames:h})}),"withLayoutStyles"),vce=Ul((e=>t=>{const{attributes:n}=t,{style:{layout:r={}}={}}=n,{selfStretch:o,flexSize:i}=r,a=o||i,s=DC((e=>{const{getSettings:t}=e(XO);return!!t().disableLayoutStyles})),l=a&&!s,c=Gl(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=$l()(t?.className,{[`wp-container-content-${c}`]:l&&!!d}),{setStyleOverride:p,deleteStyleOverride:m}=qO(Iq(XO));return(0,Ir.useEffect)((()=>{if(d)return p(c,{css:d}),()=>{m(c)}}),[c,d,p,m]),(0,Ir.createElement)(e,{...t,className:f})}),"withChildLayoutStyles");function bce({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:r,blocksSelection:o,groupingBlockName:i,onClose:a=(()=>{})}){const{replaceBlocks:s}=Iq(XO);return t||n?(0,Ir.createElement)(Ir.Fragment,null,t&&(0,Ir.createElement)(vH,{onClick:()=>{(()=>{const t=lo(o,i);t&&s(e,t)})(),a()}},Wn("Group","verb")),n&&(0,Ir.createElement)(vH,{onClick:()=>{(()=>{let t=o[0].innerBlocks;t.length&&(r&&(t=r(o[0].attributes,o[0].innerBlocks)),s(e,t))})(),a()}},Wn("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor "))):null}function yce(e){return DC((t=>{const{canEditBlock:n,canMoveBlock:r,canRemoveBlock:o,canLockBlockType:i,getBlockName:a,getBlockRootClientId:s,getTemplateLock:l}=t(XO),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])}Ht("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||fce(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Ht("editor.BlockListBlock","core/editor/layout/with-layout-styles",gce),Ht("editor.BlockListBlock","core/editor/layout/with-child-layout-styles",vce),Ht("editor.BlockEdit","core/editor/layout/with-inspector-controls",hce);const kce=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{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"})),wce=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{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"})),_ce=(0,Ir.createElement)(tm,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ir.createElement)(em,{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"})),Ece=["core/block","core/navigation"];function xce(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function Sce({clientId:e,onClose:t}){const[n,r]=(0,Ir.useState)({move:!1,remove:!1}),{canEdit:o,canMove:i,canRemove:a}=yce(e),{allowsEditLocking:s,templateLock:l,hasTemplateLock:c}=DC((t=>{const{getBlockName:n,getBlockAttributes:r}=t(XO),o=n(e),i=zr(o);return{allowsEditLocking:Ece.includes(o),templateLock:r(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}}),[e]),[u,d]=(0,Ir.useState)(!!l),{updateBlockAttributes:f}=Iq(XO),p=Zle(e),m=Gl(Sce,"block-editor-block-lock-modal__options-title");(0,Ir.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,Ir.createElement)(mX,{title:An(Un("Lock %s"),p.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t},(0,Ir.createElement)("p",null,Un("Choose specific attributes to restrict or lock all available options.")),(0,Ir.createElement)("form",{onSubmit:r=>{r.preventDefault(),f([e],{lock:n,templateLock:u?xce(n):void 0}),t()}},(0,Ir.createElement)("div",{role:"group","aria-labelledby":m,className:"block-editor-block-lock-modal__options"},(0,Ir.createElement)(cee,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,Ir.createElement)("span",{id:m},Un("Lock all")),checked:h,indeterminate:g,onChange:e=>r({move:e,remove:e,...s?{edit:e}:{}})}),(0,Ir.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},s&&(0,Ir.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,Ir.createElement)(cee,{__nextHasNoMarginBottom:!0,label:Un("Restrict editing"),checked:!!n.edit,onChange:e=>r((t=>({...t,edit:e})))}),(0,Ir.createElement)(rm,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?_ce:kce})),(0,Ir.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,Ir.createElement)(cee,{__nextHasNoMarginBottom:!0,label:Un("Disable movement"),checked:n.move,onChange:e=>r((t=>({...t,move:e})))}),(0,Ir.createElement)(rm,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?_ce:kce})),(0,Ir.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,Ir.createElement)(cee,{__nextHasNoMarginBottom:!0,label:Un("Prevent removal"),checked:n.remove,onChange:e=>r((t=>({...t,remove:e})))}),(0,Ir.createElement)(rm,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?_ce:kce}))),c&&(0,Ir.createElement)(G$,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:Un("Apply to all blocks inside"),checked:u,disabled:n.move&&!n.remove,onChange:()=>d(!u)})),(0,Ir.createElement)(gR,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,Ir.createElement)(bR,null,(0,Ir.createElement)(ug,{variant:"tertiary",onClick:t},Un("Cancel"))),(0,Ir.createElement)(bR,null,(0,Ir.createElement)(ug,{variant:"primary",type:"submit"},Un("Apply"))))))}function Cce({clientId:e}){const{canLock:t,isLocked:n}=yce(e),[r,o]=(0,Ir.useReducer)((e=>!e),!1);if(!t)return null;const i=Un(n?"Unlock":"Lock");return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(vH,{icon:n?kce:wce,onClick:o,"aria-expanded":r,"aria-haspopup":"dialog"},i),r&&(0,Ir.createElement)(Sce,{clientId:e,onClose:o}))}const Ice=()=>{};const Tce=Pe([qY(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:r,getSettings:o}=e(XO),i=n(t),a=o().codeEditingEnabled;return{mode:r(t),blockType:i?zr(i.name):null,isCodeEditingEnabled:a}})),ZY(((e,{onToggle:t=Ice,clientId:n})=>({onToggleMode(){e(XO).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:r=!1,isCodeEditingEnabled:o=!0}){if(!e||!Vr(e,"html",!0)||!o)return null;const i=Un("visual"===t?"Edit as HTML":"Edit visually");return(0,Ir.createElement)(vH,{onClick:n},!r&&i)})),{Fill:Pce,Slot:Nce}=eC("BlockSettingsMenuControls");function Oce({...e}){return(0,Ir.createElement)(US,{document},(0,Ir.createElement)(Pce,{...e}))}Oce.Slot=({fillProps:e,clientIds:t=null,__unstableDisplayLocation:n})=>{const{selectedBlocks:r,selectedClientIds:o}=DC((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:r}=e(XO),o=null!==t?t:r();return{selectedBlocks:n(o),selectedClientIds:o}}),[t]),{canLock:i}=yce(o[0]),a=1===o.length&&i,s=function(e){return DC((t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:r,isUngroupable:o,isGroupable:i}=t(XO),{getGroupingBlockName:a,getBlockType:s}=t(wi),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,Ir.createElement)(Nce,{fillProps:{...e,__unstableDisplayLocation:n,selectedBlocks:r,selectedClientIds:o}},(t=>!t?.length>0&&!u&&!a?null:(0,Ir.createElement)(hH,null,u&&(0,Ir.createElement)(bce,{...s,onClose:e?.onClose}),a&&(0,Ir.createElement)(Cce,{clientId:o[0]}),t,e?.canMove&&!e?.onlyBlock&&(0,Ir.createElement)(vH,{onClick:Te(e?.onClose,e?.onMoveTo)},Un("Move to")),1===e?.count&&(0,Ir.createElement)(Tce,{clientId:e?.firstBlockClientId,onToggle:e?.onClose}))))};const Ace=Oce;function Mce({clientId:e,stopEditingAsBlock:t}){const n=DC((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=t(XO);return n(e)||r(e,!0)}),[e]);return(0,Ir.useEffect)((()=>{n||t()}),[n,t]),null}const Rce=Ul((e=>t=>{const{getBlockListSettings:n,getSettings:r}=DC(XO),o=(0,Ir.useRef)(),{templateLock:i,isLockedByParent:a,isEditingAsBlocks:s}=DC((e=>{const{__unstableGetContentLockingParent:n,getTemplateLock:r,__unstableGetTemporarilyEditingAsBlocks:o}=e(XO);return{templateLock:r(t.clientId),isLockedByParent:!!n(t.clientId),isEditingAsBlocks:o()===t.clientId}}),[t.clientId]),{updateSettings:l,updateBlockListSettings:c,__unstableSetTemporarilyEditingAsBlocks:u}=Iq(XO),d=!a&&"contentOnly"===i,{__unstableMarkNextChangeAsNotPersistent:f,updateBlockAttributes:p}=Iq(XO),m=(0,Ir.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,Ir.createElement)(e,{key:"edit",...t});const h=s&&!d,g=!s&&d&&t.isSelected;return(0,Ir.createElement)(Ir.Fragment,null,h&&(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(Mce,{clientId:t.clientId,stopEditingAsBlock:m}),(0,Ir.createElement)(pH,{group:"other"},(0,Ir.createElement)(Fg,{onClick:()=>{m()}},Un("Done")))),g&&(0,Ir.createElement)(Ace,null,(({onClose:e})=>(0,Ir.createElement)(vH,{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()}},Un("Modify")))),(0,Ir.createElement)(e,{key:"edit",...t}))}),"withToolbarControls");Ht("editor.BlockEdit","core/content-lock-ui/with-block-controls",Rce);const Bce="metadata";function Lce(e,t=""){if(!e.name.startsWith("core/"))return!1;const n=jr(e,"__experimentalMetadata");return!(!0!==n&&!n?.[t])}Ht("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[Bce]?.type||Lce(e,"name")&&(e.attributes={...e.attributes,[Bce]:{type:"object"}}),e})),Ht("blocks.getSaveContent.extraProps","core/metadata/save-props",(function(e,t,n){return Lce(t)&&(e[Bce]=n[Bce]),e})),Ht("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||Lce(e,"name")&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const Dce=Ul((e=>t=>{const n=Pq(),r=Vr(t.name,"__experimentalConnections",!1);if(!["core/paragraph","core/image"].includes(t.name))return(0,Ir.createElement)(e,{...t});let o;return"core/paragraph"===t.name&&(o="content"),"core/image"===t.name&&(o="url"),r&&t.isSelected?(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(e,{...t}),"default"===n&&(0,Ir.createElement)(DY,null,(0,Ir.createElement)(Kq,{title:Un("Connections"),initialOpen:!0},(0,Ir.createElement)(Lq,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:Un("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:An('This content will be replaced on the frontend by the value of "%s" custom field.',e)})}})))):(0,Ir.createElement)(e,{...t})}),"withInspectorControl");window.__experimentalConnections&&(Ht("blocks.registerBlockType","core/connections/attribute",(function(e){return Vr(e,"__experimentalConnections",!0)&&(e.attributes={...e.attributes,connections:{type:"object"}}),e})),Ht("editor.BlockEdit","core/connections/with-inspector-control",Dce));const zce={};function Fce(e){const t=DC((e=>e(wi).getBlockTypes()),[]),n=(0,Ir.useMemo)((()=>t?.filter((({blockHooks:t})=>t&&e.blockName in t))),[t,e.blockName]),{blockIndex:r,rootClientId:o,innerBlocksLength:i}=DC((t=>{const{getBlock:n,getBlockIndex:r,getBlockRootClientId:o}=t(XO);return{blockIndex:r(e.clientId),innerBlocksLength:n(e.clientId)?.innerBlocks?.length,rootClientId:o(e.clientId)}}),[e.clientId]),a=DC((t=>{const{getBlock:r,getGlobalBlockCount:i}=t(XO),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:zce}),[n,e.blockName,e.clientId,o]),{insertBlock:s,removeBlock:l}=Iq(XO),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,Ir.createElement)(DY,null,(0,Ir.createElement)(Kq,{className:"block-editor-hooks__block-hooks",title:Un("Plugins"),initialOpen:!0},Object.keys(u).map((t=>(0,Ir.createElement)(Ir.Fragment,{key:t},(0,Ir.createElement)("h3",null,t),u[t].map((t=>{const n=t.name in a;return(0,Ir.createElement)(G$,{checked:n,key:t.title,label:(0,Ir.createElement)(K$,{justify:"flex-start"},(0,Ir.createElement)(g1,{icon:t.icon}),(0,Ir.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)}})(Zr(t.name),n)}const c=a[t.name];l(c,!1)}})})))))))}const jce=Ul((e=>t=>{const n=(0,Ir.createElement)(e,{key:"edit",...t});return(0,Ir.createElement)(Ir.Fragment,null,n,(0,Ir.createElement)(Fce,{blockName:t.name,clientId:t.clientId}))}),"withBlockHooks");Ht("editor.BlockEdit","core/block-hooks/with-inspector-control",jce);const Vce=e=>0===e?.trim()?.length;function Hce({blockName:e,originalBlockName:t,onClose:n,onSave:r}){const[o,i]=(0,Ir.useState)(e),a=o!==e,s=o===t,l=Vce(o),c=a||s,u=Gl(Hce,"block-editor-rename-modal__description");return(0,Ir.createElement)(mX,{title:Un("Rename"),onRequestClose:n,overlayClassName:"block-editor-block-rename-modal",aria:{describedby:u},focusOnMount:"firstContentElement"},(0,Ir.createElement)("p",{id:u},Un("Enter a custom name for this block.")),(0,Ir.createElement)("form",{onSubmit:e=>{e.preventDefault(),c&&(AN(An(Un(s||l?'Block name reset to: "%s".':'Block name changed to: "%s".'),o),"assertive"),r(o),n())}},(0,Ir.createElement)(y4,{spacing:"3"},(0,Ir.createElement)(Lq,{__nextHasNoMarginBottom:!0,value:o,label:Un("Block name"),hideLabelFromVision:!0,placeholder:t,onChange:i,onFocus:e=>e.target.select()}),(0,Ir.createElement)(K$,{justify:"right"},(0,Ir.createElement)(ug,{variant:"tertiary",onClick:n},Un("Cancel")),(0,Ir.createElement)(ug,{"aria-disabled":!c,variant:"primary",type:"submit"},Un("Save"))))))}function $ce(e){const[t,n]=(0,Ir.useState)(!1),{clientId:r,customName:o,onChange:i}=e,a=Zle(r);return(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)(DY,{group:"advanced"},(0,Ir.createElement)(Lq,{__nextHasNoMarginBottom:!0,label:Un("Block name"),value:o||"",onChange:i})),(0,Ir.createElement)(Ace,null,(({selectedClientIds:e})=>1===e.length&&r===e[0]?(0,Ir.createElement)(vH,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog"},Un("Rename")):null)),t&&(0,Ir.createElement)(Hce,{blockName:o||"",originalBlockName:a?.title,onClose:()=>n(!1),onSave:e=>{(e===a?.title||Vce(e))&&(e=void 0),i(e)}}))}const Uce=Ul((e=>t=>{const{clientId:n,name:r,attributes:o,setAttributes:i}=t,a=jr(r,"__experimentalMetadata",!1),s=!(!0!==a&&!a?.name);return(0,Ir.createElement)(Ir.Fragment,null,s&&(0,Ir.createElement)(Ir.Fragment,null,(0,Ir.createElement)($ce,{clientId:n,customName:o?.metadata?.name,onChange:e=>{i({metadata:{...o?.metadata&&o?.metadata,name:e}})}})),(0,Ir.createElement)(e,{key:"edit",...t}))}),"withToolbarControls");Ht("editor.BlockEdit","core/block-rename-ui/with-block-rename-control",Uce);const Wce=function(e){return React.createElement("div",null,React.createElement(React.Fragment,null,React.createElement(I9.Content,null)))};wp.i18n.__;var Kce=wp.i18n.__;(0,wp.blocks.registerBlockType)("fluent-booking/calendar",{title:Kce("FluentBooking Event"),description:Kce("FluentBooking Event"),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:[Kce("fluent"),Kce("fluent booking"),Kce("calendar"),Kce("booking")],supports:{align:["wide","full"],html:!0},attributes:{slotId:{type:"string",default:""},calendarId:{type:"string",default:""},eventHash:{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:ie,save:Wce})})()})(); |