PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | assets/admin/fluent-booking-index.js +1 -9 1.5.22 → 2.5.0 View file →
@@ -1,9 +1 @@
1 -/*! For license information please see fluent-booking-index.js.LICENSE.txt */
2 -(()=>{var e,t,n={3062:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6154),o=/^((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|disableRemotePlayback|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)-.*))$/,i=(0,r.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},6154:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},584: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&&p()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",p,!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",p,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:p}),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),p()}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 p(){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)},5415:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(l(e,s,s+a>c?c:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6379:(e,t,n)=>{"use strict";var r=n(5415),o=n(551),i=n(9673);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n);e=s(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,p=0;p<l;p++)if(c(e,i+p)!==c(t,p)){d=!1;break}if(d)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return $(V(t,e.length-n),e,n,r)}function k(e,t,n,r){return $(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return k(e,t,n,r)}function E(e,t,n,r){return $(H(t),e,n,r)}function x(e,t,n,r){return $(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}(r)}t.lW=l,t.h2=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.h2;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=j(e[i]);return o}function B(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:V(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},9013: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},p=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 f(e){return f="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},f(e)}var h=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"!==f(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?p(i,{container:r}):o?"cut"===n?u(o):p(o,{container:r}):void 0};function m(e){return m="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},m(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 b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function v(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"!==m(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 w(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var k=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&&b(e,t)}(i,e);var t,n,r,o=v(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"===m(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=h({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 w("action",e)}},{key:"defaultTarget",value:function(e){var t=w("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return w("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 p(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()),_=k},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()},9035: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()}))]}},7830:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7870),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},7870: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}},2454: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},8598:(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 p=t[a-1];return a>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[a-2].value+=p.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:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=s&&p+1>=l)return a([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*c;n<=c;n+=2){var o=void 0,u=d[n-1],p=d[n+1],f=(p?p.newPos:0)-n;u&&(d[n-1]=void 0);var h=u&&u.newPos+1<s,m=p&&0<=f&&f<l;if(h||m){if(!h||m&&u.newPos<p.newPos?(o={newPos:(g=p).newPos,components:g.components.slice(0)},i.pushComponent(o.components,void 0,!0)):((o=u).newPos++,i.pushComponent(o.components,!0,void 0)),f=i.extractCommon(o,t,e,n),o.newPos+1>=s&&f+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();f()||e()}),0)}();else for(;c<=u;){var h=f();if(h)return h}},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("")}}},841:(e,t,n)=>{"use strict";var r;t.Kx=function(e,t,n){return o.diff(e,t,n)};var o=new(((r=n(8598))&&r.__esModule?r:{default:r}).default)},2784: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},1202: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}},3341: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.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}},5046:(e,t)=>{var n={};n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=p(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,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&&(v(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:p(f)}}))}function a(t,r){var o=v(t);if(o)return v(e.startCall)||n("Missing ("),result=r(o),v(e.endCall)||n("Missing )"),result}function s(){return b("directional",e.sideOrCorner,1)||b("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,v(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=b("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=b("shape",/^(ellipse)/i,0);e&&(e.style=m()||u());return e}();if(e)e.at=function(){if(b("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 b("extent-keyword",e.extentKeywords,1)}function d(){var e={x:m(),y:m()};if(e.x||e.y)return{type:"position",value:e}}function p(t){var r=t(),o=[];if(r)for(o.push(r);v(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function f(){var t=b("hex",e.hexColor,1)||a(e.rgbaColor,(function(){return{type:"rgba",value:p(h)}}))||a(e.rgbColor,(function(){return{type:"rgb",value:p(h)}}))||b("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=m(),t}function h(){return v(e.number)[1]}function m(){return b("%",e.percentageValue,1)||b("position-keyword",e.positionKeywords,1)||g()}function g(){return b("px",e.pixelValue,1)||b("em",e.emValue,1)}function b(e,t,n){var r=v(t);if(r)return{type:e,value:r[n]}}function v(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},5906: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}}])},2535:(e,t,n)=>{"use strict";var r=n(6237),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,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var b=a[g];if(!(i[b]||r&&r[b]||m&&m[b]||s&&s[b])){var v=p(n,b);try{c(t,b,v)}catch(e){}}}}return t}},551:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),i-=c}return(f?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}},9673:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},9972:(e,t,n)=>{var r=n(9035);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="&nbsp;","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}},8635:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},8246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9680:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n(8246);const o=r(n(5883)),i=r(n(4820));e.exports=(0,i.default)(o.default)},297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prefixWrapCSSSelector=t.prefixWrapCSSRule=void 0;const r=n(9803);t.prefixWrapCSSRule=(e,n,o,i,a)=>{const s=e.selectors.filter((e=>!(0,r.cssRuleMatchesPrefixSelector)({selector:e},i)));0!==s.length&&(e.selector=s.map((r=>(0,t.prefixWrapCSSSelector)(r,e,n,o,i,a))).filter(r.isValidCSSSelector).join(", "))};t.prefixWrapCSSSelector=(e,t,n,o,i,a)=>{const s=(0,r.cleanSelector)(e);return""===s?null:null!==n&&s.startsWith(n,0)||(0,r.isKeyframes)(t)||o.some((e=>s.match(e)))?s:(0,r.isNotRootTag)(s)?i+" "+s:a?i+" ."+s:s.replace(/^(body|html|:root)/,i)}},9803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssRuleMatchesPrefixSelector=t.isNotRootTag=t.isKeyframes=t.cleanSelector=t.isValidCSSSelector=void 0;const n=/(^\s*|\s*$)/g,r=/^(body|html|:root).*$/;t.isValidCSSSelector=e=>null!==e;t.cleanSelector=e=>e.replace(n,"");t.isKeyframes=e=>{const{parent:t}=e,n=t;return void 0!==t&&"atrule"===n.type&&void 0!==n.name&&null!==n.name.match(/keyframes$/)};t.isNotRootTag=e=>!e.match(r);t.cssRuleMatchesPrefixSelector=(e,t)=>{const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^${n}$`).test(e.selector)}},7004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldIncludeFilePath=void 0;t.shouldIncludeFilePath=(e,t,n)=>t.length>0?null!=e&&t.some((t=>e.match(t))):!(n.length>0)||!(null!=e&&n.some((t=>e.match(t))))},8491:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.asPostCSSv7PluginGenerator=void 0;const a=i(n(1335));t.asPostCSSv7PluginGenerator=e=>e.plugin(a.PLUGIN_NAME,((e,t)=>new a.default(e,t).prefix()))},1406:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.asPostCSSv8PluginGenerator=t.isPostCSSv8=void 0;const a=i(n(1335));t.isPostCSSv8=e=>void 0!==e.Root;t.asPostCSSv8PluginGenerator=()=>(e,t)=>{const n=new a.default(e,t);return{postcssPlugin:a.PLUGIN_NAME,Once(e){n.prefixRoot(e)}}}},4820:(e,t,n)=>{"use strict";const r=n(1406),o=n(8491);e.exports=e=>(0,r.isPostCSSv8)(e)?(0,r.asPostCSSv8PluginGenerator)():(0,o.asPostCSSv7PluginGenerator)(e)},1335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLUGIN_NAME=void 0;const r=n(297),o=n(7004);t.PLUGIN_NAME="postcss-prefixwrap";t.default=class{blacklist;ignoredSelectors;isPrefixSelector;prefixRootTags;prefixSelector;whitelist;nested;constructor(e,t={}){this.blacklist=t.blacklist??[],this.ignoredSelectors=t.ignoredSelectors??[],this.isPrefixSelector=new RegExp(`^${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`),this.prefixRootTags=t.prefixRootTags??!1,this.prefixSelector=e,this.whitelist=t.whitelist??[],this.nested=t.nested??null}prefixRoot(e){(0,o.shouldIncludeFilePath)(e.source?.input?.file,this.whitelist,this.blacklist)&&e.walkRules((e=>{(0,r.prefixWrapCSSRule)(e,this.nested,this.ignoredSelectors,this.prefixSelector,this.prefixRootTags)}))}prefix(){return e=>{this.prefixRoot(e)}}}},4506:(e,t,n)=>{const r=n(9672);e.exports=e=>{const t=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:"rebaseUrl",Declaration(n){const o=r(n.value);let i=!1;o.walk((n=>{if("function"!==n.type||"url"!==n.value)return;const r=n.nodes[0].value,o=new URL(r,e.rootUrl);return o.pathname===r&&t.skipHostRelativeUrls||(n.nodes[0].value=o.toString(),i=!0),!1})),i&&(n.value=r.stringify(o))}}},e.exports.postcss=!0},9672:(e,t,n)=>{var r=n(921),o=n(9584),i=n(6641);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},a.prototype.walk=function(e,t){return o(this.nodes,e,t),this},a.unit=n(2225),a.walk=o,a.stringify=i,e.exports=a},921:e=>{var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),c="*".charCodeAt(0),u="u".charCodeAt(0),d="U".charCodeAt(0),p="+".charCodeAt(0),f=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var h,m,g,b,v,y,w,k,_,E=[],x=e,S=0,C=x.charCodeAt(S),I=x.length,T=[{nodes:E}],P=0,A="",B="",N="";S<I;)if(C<=32){h=S;do{h+=1,C=x.charCodeAt(h)}while(C<=32);b=x.slice(S,h),g=E[E.length-1],C===n&&P?N=b:g&&"div"===g.type?(g.after=b,g.sourceEndIndex+=b.length):C===s||C===l||C===a&&x.charCodeAt(h+1)!==c&&(!_||_&&"function"===_.type&&"calc"!==_.value)?B=b:E.push({type:"space",sourceIndex:S,sourceEndIndex:h,value:b}),S=h}else if(C===r||C===o){h=S,b={type:"string",sourceIndex:S,quote:m=C===r?"'":'"'};do{if(v=!1,~(h=x.indexOf(m,h+1)))for(y=h;x.charCodeAt(y-1)===i;)y-=1,v=!v;else h=(x+=m).length-1,b.unclosed=!0}while(v);b.value=x.slice(S+1,h),b.sourceEndIndex=b.unclosed?h:h+1,E.push(b),S=h+1,C=x.charCodeAt(S)}else if(C===a&&x.charCodeAt(S+1)===c)b={type:"comment",sourceIndex:S,sourceEndIndex:(h=x.indexOf("*/",S))+2},-1===h&&(b.unclosed=!0,h=x.length,b.sourceEndIndex=h),b.value=x.slice(S+2,h),E.push(b),S=h+2,C=x.charCodeAt(S);else if(C!==a&&C!==c||!_||"function"!==_.type||"calc"!==_.value)if(C===a||C===s||C===l)b=x[S],E.push({type:"div",sourceIndex:S-B.length,sourceEndIndex:S+b.length,value:b,before:B,after:""}),B="",S+=1,C=x.charCodeAt(S);else if(t===C){h=S;do{h+=1,C=x.charCodeAt(h)}while(C<=32);if(k=S,b={type:"function",sourceIndex:S-A.length,value:A,before:x.slice(k+1,h)},S=h,"url"===A&&C!==r&&C!==o){h-=1;do{if(v=!1,~(h=x.indexOf(")",h+1)))for(y=h;x.charCodeAt(y-1)===i;)y-=1,v=!v;else h=(x+=")").length-1,b.unclosed=!0}while(v);w=h;do{w-=1,C=x.charCodeAt(w)}while(C<=32);k<w?(b.nodes=S!==w+1?[{type:"word",sourceIndex:S,sourceEndIndex:w+1,value:x.slice(S,w+1)}]:[],b.unclosed&&w+1!==h?(b.after="",b.nodes.push({type:"space",sourceIndex:w+1,sourceEndIndex:h,value:x.slice(w+1,h)})):(b.after=x.slice(w+1,h),b.sourceEndIndex=h)):(b.after="",b.nodes=[]),S=h+1,b.sourceEndIndex=b.unclosed?h:S,C=x.charCodeAt(S),E.push(b)}else P+=1,b.after="",b.sourceEndIndex=S+1,E.push(b),T.push(b),E=b.nodes=[],_=b;A=""}else if(n===C&&P)S+=1,C=x.charCodeAt(S),_.after=N,_.sourceEndIndex+=N.length,N="",P-=1,T[T.length-1].sourceEndIndex=S,T.pop(),E=(_=T[P]).nodes;else{h=S;do{C===i&&(h+=1),h+=1,C=x.charCodeAt(h)}while(h<I&&!(C<=32||C===r||C===o||C===s||C===l||C===a||C===t||C===c&&_&&"function"===_.type&&"calc"===_.value||C===a&&"function"===_.type&&"calc"===_.value||C===n&&P));b=x.slice(S,h),t===C?A=b:u!==b.charCodeAt(0)&&d!==b.charCodeAt(0)||p!==b.charCodeAt(1)||!f.test(b.slice(2))?E.push({type:"word",sourceIndex:S,sourceEndIndex:h,value:b}):E.push({type:"unicode-range",sourceIndex:S,sourceEndIndex:h,value:b}),S=h}else b=x[S],E.push({type:"word",sourceIndex:S-B.length,sourceEndIndex:S+b.length,value:b}),S+=1,C=x.charCodeAt(S);for(S=T.length-1;S;S-=1)T[S].unclosed=!0,T[S].sourceEndIndex=x.length;return T[0].nodes}},6641:e=>{function t(e,t){var r,o,i=e.type,a=e.value;return t&&void 0!==(o=t(e))?o:"word"===i||"space"===i?a:"string"===i?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===i?"/*"+a+(e.unclosed?"":"*/"):"div"===i?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes,t),"function"!==i?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,o;if(Array.isArray(e)){for(r="",o=e.length-1;~o;o-=1)r=t(e[o],n)+r;return r}return t(e,n)}e.exports=n},2225:e=>{var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),o="e".charCodeAt(0),i="E".charCodeAt(0);e.exports=function(e){var a,s,l,c=0,u=e.length;if(0===u||!function(e){var o,i=e.charCodeAt(0);if(i===n||i===t){if((o=e.charCodeAt(1))>=48&&o<=57)return!0;var a=e.charCodeAt(2);return o===r&&a>=48&&a<=57}return i===r?(o=e.charCodeAt(1))>=48&&o<=57:i>=48&&i<=57}(e))return!1;for((a=e.charCodeAt(c))!==n&&a!==t||c++;c<u&&!((a=e.charCodeAt(c))<48||a>57);)c+=1;if(a=e.charCodeAt(c),s=e.charCodeAt(c+1),a===r&&s>=48&&s<=57)for(c+=2;c<u&&!((a=e.charCodeAt(c))<48||a>57);)c+=1;if(a=e.charCodeAt(c),s=e.charCodeAt(c+1),l=e.charCodeAt(c+2),(a===o||a===i)&&(s>=48&&s<=57||(s===n||s===t)&&l>=48&&l<=57))for(c+=s===n||s===t?3:2;c<u&&!((a=e.charCodeAt(c))<48||a>57);)c+=1;return{number:e.slice(0,c),unit:e.slice(c)}}},9584:e=>{e.exports=function e(t,n,r){var o,i,a,s;for(o=0,i=t.length;o<i;o+=1)a=t[o],r||(s=n(a,o,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,o,t)}},2973:(e,t,n)=>{"use strict";let r=n(1052);class o extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=o,o.default=o,r.registerAtRule(o)},853:(e,t,n)=>{"use strict";let r=n(3919);class o extends r{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},1052:(e,t,n)=>{"use strict";let r,o,i,a,s=n(853),l=n(8245),c=n(3919),{isClean:u,my:d}=n(178);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function f(e){if(e[u]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends c{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),o=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),o=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=p(o(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new a(e)];else if(e.name)e=[new r(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new s(e)]}return e.map((e=>(e[d]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&f(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}h.registerParse=e=>{o=e},h.registerRule=e=>{a=e},h.registerAtRule=e=>{r=e},h.registerRoot=e=>{i=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,a.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,s.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[d]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},4683:(e,t,n)=>{"use strict";let r=n(8635),o=n(5035);class i extends Error{constructor(e,t,n,r,o,a){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let n=e=>e,i=e=>e,a=e=>e;if(e){let{bold:e,gray:t,red:s}=r.createColors(!0);i=t=>e(s(t)),n=e=>t(e),o&&(a=e=>o(e))}let s=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length;return s.slice(l,c).map(((e,t)=>{let r=l+1+t,o=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),s=Math.max(this.column+t,this.endColumn+t),l=e.slice(r,s),c=n(o.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return i(">")+n(o)+a(l)+"\n "+c+i("^")}let t=n(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(o)+a(e)+"\n "+t+i("^")}return" "+n(o)+a(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=i,i.default=i},8245:(e,t,n)=>{"use strict";let r=n(3919);class o extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=o,o.default=o},9924:(e,t,n)=>{"use strict";let r,o,i=n(1052);class a extends i{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new o,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{o=e},e.exports=a,a.default=a},7742:(e,t,n)=>{"use strict";let r=n(2973),o=n(853),i=n(8245),a=n(3933),s=n(2854),l=n(5963),c=n(7281);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:s.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new i(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new r(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},3933:(e,t,n)=>{"use strict";let{nanoid:r}=n(8732),{isAbsolute:o,resolve:i}=n(2485),{SourceMapConsumer:a,SourceMapGenerator:s}=n(9563),{fileURLToPath:l,pathToFileURL:c}=n(8063),u=n(4683),d=n(2854),p=n(5035),f=Symbol("fromOffsetCache"),h=Boolean(a&&s),m=Boolean(i&&o);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||o(t.from)?this.file=t.from:this.file=i(t.from)),m&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let o,i,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);i=e.line,o=e.col}else i=r.line,o=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let s=this.origin(t,n,i,o);return a=s?new u(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,r.plugin):new u(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:o,line:i},this.css,this.file,r.plugin),a.input={column:n,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(c&&(a.input.url=c(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,n;if(this[f])n=this[f];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,o=e.length;r<o;r++)n[r]=t,t+=e[r].length+1;this[f]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,o=n.length-2;for(;r<o;)if(t=r+(o-r>>1),e<n[t])o=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,a,s=this.map.consumer(),u=s.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),a=o(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(a)}let p=s.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=g,g.default=g,p&&p.registerInput&&p.registerInput(g)},6659:(e,t,n)=>{"use strict";let r=n(1052),o=n(9924),i=n(3864),a=n(120),s=n(1399),l=n(5963),c=n(9896),{isClean:u,my:d}=n(178);n(5383);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function g(e){return"object"==typeof e&&"function"==typeof e.then}function b(e){let t=!1,n=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,m,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,m,n+"Exit"]:[n,n+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",m,"DocumentExit"]:"root"===e.type?["Root",m,"RootExit"]:b(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[u]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let w={};class k{constructor(e,t,n){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof k||t instanceof s)o=y(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=a;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{o=e(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[d]&&r.rebuild(o)}else o=y(t);this.result=new s(e,o,n),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];){e[u]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(g(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,o]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,o=t.iterator;for(;r=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!r[u])return r[u]=!0,void e.push(v(r));t.iterator=0,delete n.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,e===m)return void(n.nodes&&n.nodes.length&&(n[u]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=b(e);for(let n of t)if(n===m)e.nodes&&e.each((e=>{e[u]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}k.registerPostcss=e=>{w=e},e.exports=k,k.default=k,l.registerLazyResult(k),o.registerLazyResult(k)},4591:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],o="",i=!1,a=0,s=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:s?n===l&&(s=!1):'"'===n||"'"===n?(s=!0,l=n):"("===n?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(i=!0),i?(""!==o&&r.push(o.trim()),o="",i=!1):o+=n;return(n||""!==o)&&r.push(o.trim()),r}};e.exports=t,t.default=t},3864:(e,t,n)=>{"use strict";var r=n(6379).lW;let{dirname:o,relative:i,resolve:a,sep:s}=n(2485),{SourceMapConsumer:l,SourceMapGenerator:c}=n(9563),{pathToFileURL:u}=n(8063),d=n(3933),p=Boolean(l&&c),f=Boolean(o&&a&&i&&s);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new l(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&p&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=c.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,o="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((a,s,l)=>{if(this.css+=a,s&&"end"!==l&&(i.generated.line=n,i.generated.column=r-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=o,i.original.line=1,i.original.column=0,this.map.addMapping(i))),t=a.match(/\n/g),t?(n+=t.length,e=a.lastIndexOf("\n"),r=a.length-e):r+=a.length,s&&"start"!==l){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=n,i.generated.column=r-2,this.map.addMapping(i)):(i.source=o,i.original.line=1,i.original.column=0,i.generated.line=n,i.generated.column=r-1,this.map.addMapping(i)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?o(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=o(a(n,this.mapOpts.annotation)));let r=i(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new d(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return r?r.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(u){let t=u(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===s&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},6382:(e,t,n)=>{"use strict";let r=n(3864),o=n(120);const i=n(1399);let a=n(9896);n(5383);class s{constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s=a;this.result=new i(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new r(s,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=s,s.default=s},3919:(e,t,n)=>{"use strict";let r=n(4683),o=n(9073),i=n(9896),{isClean:a,my:s}=n(178);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let o=e[r],i=typeof o;"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:Array.isArray(o)?n[r]=o.map((e=>l(e,n))):("object"===i&&null!==o&&(o=l(o)),n[r]=o)}return n}class c{constructor(e={}){this.raws={},this[a]=!1,this[s]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,o=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,o+=1):r+=1;return{column:r,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),o=r.indexOf(e.word);-1!==o&&(t=this.positionInside(o,r),n=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new o).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let o=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let i=t.get(r.input);null==i&&(i=o,t.set(r.input,o),o++),n[e]={end:r.end,inputId:i,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=c,c.default=c},120:(e,t,n)=>{"use strict";let r=n(1052),o=n(3933),i=n(9808);function a(e,t){let n=new o(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=a,a.default=a,r.registerParse(a)},9808:(e,t,n)=>{"use strict";let r=n(2973),o=n(853),i=n(8245),a=n(5963),s=n(7281),l=n(9451);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,o,i=new r;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let a=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(o=l.length-1,n=l[o];n&&"space"===n[0];)n=l[--o];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),a&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let o=t-1;o>=0&&(n=e[o],"space"===n[0]||(r+=1,2!==r));o--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,o=0;for(let[i,a]of e.entries()){if(n=a,r=n[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return i}this.doubleColon(n)}t=n}return!1}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),o="";for(let e=t;e>0;e--){let t=r[e][0];if(o.trim().startsWith("!")&&"space"!==t)break;o=r.pop()[1]+o}o.trim().startsWith("!")&&(n.important=!0,n.raws.important=o,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new s;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,o=null,i=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)o||(o=l),i.push("("===n?")":"]");else if(a&&r&&"{"===n)o||(o=l),i.push("}");else if(0===i.length){if(";"===n){if(r)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){if(!a)for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let o,i,a,s,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)o=n[e],i=o[0],"space"!==i||e!==l-1||r?"comment"===i?(s=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",c[s]||c[a]||","===u.slice(-1)?d=!1:u+=o[1]):u+=o[1]:d=!1;if(!d){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new s;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},5883:(e,t,n)=>{"use strict";var r=n(4224);let o=n(2973),i=n(853),a=n(1052),s=n(4683),l=n(8245),c=n(9924),u=n(7742),d=n(3933),p=n(6659),f=n(4591),h=n(3919),m=n(120),g=n(389),b=n(1399),v=n(5963),y=n(7281),w=n(9896),k=n(3155);function _(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new g(e)}_.plugin=function(e,t){let n,o=!1;function i(...n){console&&console.warn&&!o&&(o=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),r.env.LANG&&r.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new g).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return _([i(n)]).process(e,t)},i},_.stringify=w,_.parse=m,_.fromJSON=u,_.list=f,_.comment=e=>new i(e),_.atRule=e=>new o(e),_.decl=e=>new l(e),_.rule=e=>new y(e),_.root=e=>new v(e),_.document=e=>new c(e),_.CssSyntaxError=s,_.Declaration=l,_.Container=a,_.Processor=g,_.Document=c,_.Comment=i,_.Warning=k,_.AtRule=o,_.Result=b,_.Input=d,_.Rule=y,_.Root=v,_.Node=h,p.registerPostcss(_),e.exports=_,_.default=_},2854:(e,t,n)=>{"use strict";var r=n(6379).lW;let{existsSync:o,readFileSync:i}=n(5962),{dirname:a,join:s}=n(2485),{SourceMapConsumer:l,SourceMapGenerator:c}=n(9563);class u{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return o=e.substr(n[0].length),r?r.from(o,"base64").toString():window.atob(o);var o;let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof l)return c.fromSourceMap(t).toString();if(t instanceof c)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=s(a(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=u,u.default=u},389:(e,t,n)=>{"use strict";let r=n(9924),o=n(6659),i=n(6382),a=n(5963);class s{constructor(e=[]){this.version="8.4.45",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new o(this,e,t):new i(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,a.registerProcessor(s),r.registerProcessor(s)},1399:(e,t,n)=>{"use strict";let r=n(3155);class o{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=o,o.default=o},5963:(e,t,n)=>{"use strict";let r,o,i=n(1052);class a extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new o,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{o=e},e.exports=a,a.default=a,i.registerRoot(a)},7281:(e,t,n)=>{"use strict";let r=n(1052),o=n(4591);class i extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return o.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=i,i.default=i,r.registerRule(i)},9073:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,o=0;for(;r&&"root"!==r.type;)o+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<o;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,n,r){let o;if(r||(r=n),n&&(o=e.raws[n],void 0!==o))return o;let i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return t[r];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[r])return a.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let t="raw"+((s=r)[0].toUpperCase()+s.slice(1));this[t]?o=this[t](a,e):a.walk((e=>{if(o=e.raws[n],void 0!==o)return!1}))}var s;return void 0===o&&(o=t[r]),a.rawCache[r]=o,o}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},9896:(e,t,n)=>{"use strict";let r=n(9073);function o(e,t){new r(t).stringify(e)}e.exports=o,o.default=o},178:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},9451:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),o="/".charCodeAt(0),i="\n".charCodeAt(0),a=" ".charCodeAt(0),s="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),f=")".charCodeAt(0),h="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_=/.[\r\n"'(/\\]/,E=/[\da-f]/i;e.exports=function(e,x={}){let S,C,I,T,P,A,B,N,R,O,M=e.css.valueOf(),L=x.ignoreErrors,D=M.length,z=0,F=[],j=[];function V(t){throw e.error("Unclosed "+t,z)}return{back:function(e){j.push(e)},endOfFile:function(){return 0===j.length&&z>=D},nextToken:function(e){if(j.length)return j.pop();if(z>=D)return;let x=!!e&&e.ignoreUnclosed;switch(S=M.charCodeAt(z),S){case i:case a:case l:case c:case s:T=z;do{T+=1,S=M.charCodeAt(T)}while(S===a||S===i||S===l||S===c||S===s);A=["space",M.slice(z,T)],z=T-1;break;case u:case d:case h:case m:case v:case g:case f:{let e=String.fromCharCode(S);A=[e,e,z];break}case p:if(O=F.length?F.pop()[1]:"",R=M.charCodeAt(z+1),"url"===O&&R!==t&&R!==n&&R!==a&&R!==i&&R!==l&&R!==s&&R!==c){T=z;do{if(B=!1,T=M.indexOf(")",T+1),-1===T){if(L||x){T=z;break}V("bracket")}for(N=T;M.charCodeAt(N-1)===r;)N-=1,B=!B}while(B);A=["brackets",M.slice(z,T+1),z,T],z=T}else T=M.indexOf(")",z+1),C=M.slice(z,T+1),-1===T||_.test(C)?A=["(","(",z]:(A=["brackets",C,z,T],z=T);break;case t:case n:P=S===t?"'":'"',T=z;do{if(B=!1,T=M.indexOf(P,T+1),-1===T){if(L||x){T=z+1;break}V("string")}for(N=T;M.charCodeAt(N-1)===r;)N-=1,B=!B}while(B);A=["string",M.slice(z,T+1),z,T],z=T;break;case y:w.lastIndex=z+1,w.test(M),T=0===w.lastIndex?M.length-1:w.lastIndex-2,A=["at-word",M.slice(z,T+1),z,T],z=T;break;case r:for(T=z,I=!0;M.charCodeAt(T+1)===r;)T+=1,I=!I;if(S=M.charCodeAt(T+1),I&&S!==o&&S!==a&&S!==i&&S!==l&&S!==c&&S!==s&&(T+=1,E.test(M.charAt(T)))){for(;E.test(M.charAt(T+1));)T+=1;M.charCodeAt(T+1)===a&&(T+=1)}A=["word",M.slice(z,T+1),z,T],z=T;break;default:S===o&&M.charCodeAt(z+1)===b?(T=M.indexOf("*/",z+2)+1,0===T&&(L||x?T=M.length:V("comment")),A=["comment",M.slice(z,T+1),z,T],z=T):(k.lastIndex=z+1,k.test(M),T=0===k.lastIndex?M.length-1:k.lastIndex-2,A=["word",M.slice(z,T+1),z,T],F.push(A),z=T)}return z++,A},position:function(){return z}}}},5383:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},3155:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},4224: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&&p())}function p(){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 f(e,t){this.fun=e,this.array=t}function h(){}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 f(e,t)),1!==l.length||c||a(p)},f.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=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,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}},4049:(e,t,n)=>{"use strict";var r=n(6257);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}},507:(e,t,n)=>{e.exports=n(4049)()},6257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1123: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(5271),l=n(507),c=n(584),u=n(9972),d="autosize:resized",p=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(p,i({},e,{innerRef:t}))}))},321:(e,t,n)=>{"use strict";var r=n(1123);t.Z=r.TextareaAutosize},6521:(e,t,n)=>{"use strict";var r=n(5271),o=n(7537);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,p=/^[: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]*$/,f={},h={};function m(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 m(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 m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(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 m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function v(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(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[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(b,v);g[t]=new m(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(b,v);g[t]=new m(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(b,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=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"),A=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||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 A: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 B:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case N: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 pe={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},fe=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[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 be(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 ve(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 we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,_e=null,Ee=null;function xe(e){if(e=go(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=vo(t),ke(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 Ae(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 Be(e,t){var n=e.stateNode;if(null===n)return null;var r=vo(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 Ne=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(e){Ne=!1}function Oe(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 Me=!1,Le=null,De=!1,ze=null,Fe={onError:function(e){Me=!0,Le=e}};function je(e,t,n,r,o,i,a,s,l){Me=!1,Le=null,Oe.apply(Fe,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(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&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(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 pt(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 ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function mt(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 bt(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 vt=0;function yt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,_t,Et,xt,St=!1,Ct=[],It=null,Tt=null,Pt=null,At=new Map,Bt=new Map,Nt=[],Rt="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 Ot(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":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bt.delete(t.pointerId)}}function Mt(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))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=mo(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))&&kt(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),At.forEach(zt),Bt.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),At.forEach(t),Bt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Nt.shift()}var Ht=w.ReactCurrentBatchConfig,$t=!0;function Ut(e,t,n,r){var o=vt,i=Ht.transition;Ht.transition=null;try{vt=1,Kt(e,t,n,r)}finally{vt=o,Ht.transition=i}}function Wt(e,t,n,r){var o=vt,i=Ht.transition;Ht.transition=null;try{vt=4,Kt(e,t,n,r)}finally{vt=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),Ot(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Mt(It,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return At.set(i,Mt(At.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Bt.set(i,Mt(Bt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==o;){var i=go(o);if(null!==i&&wt(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=mo(e=we(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),pn=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}}),fn=rn(pn),hn=rn(D({},pn,{dataTransfer:0})),mn=rn(D({},un,{relatedTarget:0})),gn=rn(D({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=rn(D({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),vn=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"},wn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[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?wn[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({},pn,{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({},pn,{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],An=u&&"CompositionEvent"in window,Bn=null;u&&"documentMode"in document&&(Bn=document.documentMode);var Nn=u&&"TextEvent"in window&&!Bn,Rn=u&&(!An||Bn&&8<Bn&&11>=Bn),On=String.fromCharCode(32),Mn=!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){Or(e,0)}function Wn(e){if(G(bo(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,we(e)),Ae(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,pr=null,fr=null,hr=null,mr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mr||null==pr||pr!==q(r)||("selectionStart"in(r=pr)&&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},hr&&or(hr,r)||(hr=r,0<(r=Hr(fr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},yr={},wr={};function kr(e){if(yr[e])return yr[e];if(!vr[e])return e;var t,n=vr[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return yr[e]=n[t];return e}u&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);var _r=kr("animationend"),Er=kr("animationiteration"),xr=kr("animationstart"),Sr=kr("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 Ar=Ir[Pr];Tr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.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 Br="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(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function Rr(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),Me){if(!Me)throw Error(i(198));var u=Le;Me=!1,Le=null,De||(De=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=!!(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;Rr(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;Rr(o,s,c),i=l}}}if(De)throw e=ze,De=!1,ze=null,e}function Mr(e,t){var n=t[po];void 0===n&&(n=t[po]=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&&(Nr.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,!Ne||"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(!(1&t||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=mo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ae((function(){var r=i,o=we(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=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;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=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;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=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Be(h,p))&&u.push(Vr(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ye||!(c=n.relatedTarget||n.fromElement)||!mo(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)?mo(c):null)&&(c!==(d=Ve(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Sn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:bo(l),f=null==c?s:bo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,mo(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=$r(f))h++;for(f=0,m=p;m;m=$r(m))f++;for(;0<h-f;)u=$r(u),h--;for(;0<f-h;)p=$r(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=$r(u),p=$r(p)}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?bo(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 b=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):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=r?bo(r):window,e){case"focusin":(jn(b)||"true"===b.contentEditable)&&(pr=b,fr=r,hr=null);break;case"focusout":hr=fr=pr=null;break;case"mousedown":mr=!0;break;case"contextmenu":case"mouseup":case"dragend":mr=!1,gr(a,n,o);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":gr(a,n,o)}var v;if(An)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&&(Rn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&zn&&(v=Jt()):(Zt="value"in(Xt=o)?Xt.value:Xt.textContent,zn=!0)),0<(b=Hr(r,y)).length&&(y=new vn(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=Dn(n))&&(y.data=v))),(v=Nn?function(e,t){switch(e){case"compositionend":return Dn(t);case"keypress":return 32!==t.which?null:(Mn=!0,On);case"textInput":return(e=t.data)===On&&Mn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!An&&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 Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Hr(r,"onBeforeInput")).length&&(o=new vn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Or(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=Be(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Be(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=Be(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Be(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,po="__reactEvents$"+so,fo="__reactListeners$"+so,ho="__reactHandles$"+so;function mo(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 bo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function vo(e){return e[co]||null}var yo=[],wo=-1;function ko(e){return{current:e}}function _o(e){0>wo||(e.current=yo[wo],yo[wo]=null,wo--)}function Eo(e,t){wo++,yo[wo]=e.current,e.current=t}var xo={},So=ko(xo),Co=ko(!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 Ao(){_o(Co),_o(So)}function Bo(e,t,n){if(So.current!==xo)throw Error(i(168));Eo(So,t),Eo(Co,n)}function No(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 Ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xo,Io=So.current,Eo(So,e),Eo(Co,Co.current),!0}function Oo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=No(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,_o(Co),_o(So),Eo(So,e)):_o(Co),Eo(Co,n)}var Mo=null,Lo=!1,Do=!1;function zo(e){null===Mo?Mo=[e]:Mo.push(e)}function Fo(){if(!Do&&null!==Mo){Do=!0;var e=0,t=vt;try{var n=Mo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Mo=null,Lo=!1}catch(t){throw null!==Mo&&(Mo=Mo.slice(e+1)),Ke(Qe,Fo),t}finally{vt=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=Ic(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=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Jo=e,ei=null,!0);default:return!1}}function ii(e){return!(!(1&e.mode)||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 pi=w.ReactCurrentBatchConfig;function fi(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;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 hi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mi(e){return(0,e._init)(e._payload)}function gi(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=Pc(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===N&&mi(i)===t.type)?((r=o(t,n.props)).ref=fi(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=fi(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=Oc(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=Bc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(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 k:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=fi(e,null,t),n.return=e,n;case _:return(t=Oc(t,e.mode,n)).return=e,t;case N:return p(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Bc(t,e.mode,n,null)).return=e,t;hi(e,t)}return null}function f(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 k:return n.key===o?c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null;case N:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(n))return null!==o?null:d(e,t,n,r,null);hi(e,n)}return null}function h(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 k: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 N:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);hi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(o,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(o,d),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===s.length)return n(o,d),ti&&Yo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ti&&Yo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ti&&Yo(o,m),c}function g(o,s,l,c){var u=M(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=f(o,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return n(o,m),ti&&Yo(o,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(o,v.value,c))&&(s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return ti&&Yo(o,g),u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.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 k: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===N&&mi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=fi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===E?((i=Bc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Ac(a.type,a.key,a.props,null,r.mode,l)).ref=fi(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=Oc(a,r.mode,l)).return=r,r=i}return s(r);case N:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(M(a))return g(r,i,a,l);hi(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 bi=gi(!0),vi=gi(!1),yi=ko(null),wi=null,ki=null,_i=null;function Ei(){_i=ki=wi=null}function xi(e){var t=yi.current;_o(yi),e._currentValue=t}function Si(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 Ci(e,t){wi=e,_i=ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ms=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===wi)throw Error(i(308));ki=e,wi.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Ti=null;function Pi(e){null===Ti?Ti=[e]:Ti.push(e)}function Ai(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Pi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bi(e,r)}function Bi(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 Ni=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oi(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 Mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&xl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bi(e,n)}return null===(o=r.interleaved)?(t.next=t,Pi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bi(e,n)}function Di(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function zi(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 Fi(e,t,n,r){var o=e.updateQueue;Ni=!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 p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=D({},d,p);break e;case 2:Ni=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,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);Nl|=a,e.lanes=a,e.memoizedState=d}}function ji(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 Vi={},Hi=ko(Vi),$i=ko(Vi),Ui=ko(Vi);function Wi(e){if(e===Vi)throw Error(i(174));return e}function Ki(e,t){switch(Eo(Ui,t),Eo($i,e),Eo(Hi,Vi),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(Hi),Eo(Hi,t)}function Gi(){_o(Hi),_o($i),_o(Ui)}function qi(e){Wi(Ui.current);var t=Wi(Hi.current),n=le(t,e.type);t!==n&&(Eo($i,e),Eo(Hi,n))}function Yi(e){$i.current===e&&(_o(Hi),_o($i))}var Xi=ko(0);function Zi(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(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 Qi=[];function Ji(){for(var e=0;e<Qi.length;e++)Qi[e]._workInProgressVersionPrimary=null;Qi.length=0}var ea=w.ReactCurrentDispatcher,ta=w.ReactCurrentBatchConfig,na=0,ra=null,oa=null,ia=null,aa=!1,sa=!1,la=0,ca=0;function ua(){throw Error(i(321))}function da(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 pa(e,t,n,r,o,a){if(na=a,ra=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ea.current=null===e||null===e.memoizedState?Ya:Xa,e=n(r,o),sa){a=0;do{if(sa=!1,la=0,25<=a)throw Error(i(301));a+=1,ia=oa=null,t.updateQueue=null,ea.current=Za,e=n(r,o)}while(sa)}if(ea.current=qa,t=null!==oa&&null!==oa.next,na=0,ia=oa=ra=null,aa=!1,t)throw Error(i(300));return e}function fa(){var e=0!==la;return la=0,e}function ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ia?ra.memoizedState=ia=e:ia=ia.next=e,ia}function ma(){if(null===oa){var e=ra.alternate;e=null!==e?e.memoizedState:null}else e=oa.next;var t=null===ia?ra.memoizedState:ia.next;if(null!==t)ia=t,oa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(oa=e).memoizedState,baseState:oa.baseState,baseQueue:oa.baseQueue,queue:oa.queue,next:null},null===ia?ra.memoizedState=ia=e:ia=ia.next=e}return ia}function ga(e,t){return"function"==typeof t?t(e):t}function ba(e){var t=ma(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=oa,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((na&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 p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,ra.lanes|=d,Nl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,rr(r,t.memoizedState)||(ms=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ra.lanes|=a,Nl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function va(e){var t=ma(),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)||(ms=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ya(){}function wa(e,t){var n=ra,r=ma(),o=t(),a=!rr(r.memoizedState,o);if(a&&(r.memoizedState=o,ms=!0),r=r.queue,Na(Ea.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ia&&1&ia.memoizedState.tag){if(n.flags|=2048,Ia(9,_a.bind(null,n,r,o,t),void 0,null),null===Sl)throw Error(i(349));30&na||ka(n,t,o)}return o}function ka(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ra.updateQueue)?(t={lastEffect:null,stores:null},ra.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,xa(t)&&Sa(e)}function Ea(e,t,n){return n((function(){xa(t)&&Sa(e)}))}function xa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rr(e,n)}catch(e){return!0}}function Sa(e){var t=Bi(e,1);null!==t&&Ql(t,e,1,-1)}function Ca(e){var t=ha();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t.queue=e,e=e.dispatch=Ua.bind(null,ra,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ra.updateQueue)?(t={lastEffect:null,stores:null},ra.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 Ta(){return ma().memoizedState}function Pa(e,t,n,r){var o=ha();ra.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Aa(e,t,n,r){var o=ma();r=void 0===r?null:r;var i=void 0;if(null!==oa){var a=oa.memoizedState;if(i=a.destroy,null!==r&&da(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}ra.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function Ba(e,t){return Pa(8390656,8,e,t)}function Na(e,t){return Aa(2048,8,e,t)}function Ra(e,t){return Aa(4,2,e,t)}function Oa(e,t){return Aa(4,4,e,t)}function Ma(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 La(e,t,n){return n=null!=n?n.concat([e]):null,Aa(4,4,Ma.bind(null,t,e),n)}function Da(){}function za(e,t){var n=ma();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&da(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ma();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&da(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ja(e,t,n){return 21&na?(rr(n,t)||(n=ht(),ra.lanes|=n,Nl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ms=!0),e.memoizedState=n)}function Va(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ta.transition;ta.transition={};try{e(!1),t()}finally{vt=n,ta.transition=r}}function Ha(){return ma().memoizedState}function $a(e,t,n){var r=Zl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wa(e))Ka(t,n);else if(null!==(n=Ai(e,t,n,r))){Ql(n,e,r,Xl()),Ga(n,t,r)}}function Ua(e,t,n){var r=Zl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wa(e))Ka(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,Pi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ai(e,t,o,r))&&(Ql(n,e,r,o=Xl()),Ga(n,t,r))}}function Wa(e){var t=e.alternate;return e===ra||null!==t&&t===ra}function Ka(e,t){sa=aa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ga(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var qa={readContext:Ii,useCallback:ua,useContext:ua,useEffect:ua,useImperativeHandle:ua,useInsertionEffect:ua,useLayoutEffect:ua,useMemo:ua,useReducer:ua,useRef:ua,useState:ua,useDebugValue:ua,useDeferredValue:ua,useTransition:ua,useMutableSource:ua,useSyncExternalStore:ua,useId:ua,unstable_isNewReconciler:!1},Ya={readContext:Ii,useCallback:function(e,t){return ha().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Ba,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4194308,4,Ma.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pa(4,2,e,t)},useMemo:function(e,t){var n=ha();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ha();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=$a.bind(null,ra,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ha().memoizedState=e},useState:Ca,useDebugValue:Da,useDeferredValue:function(e){return ha().memoizedState=e},useTransition:function(){var e=Ca(!1),t=e[0];return e=Va.bind(null,e[1]),ha().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ra,o=ha();if(ti){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Sl)throw Error(i(349));30&na||ka(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ba(Ea.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,_a.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ha(),t=Sl.identifierPrefix;if(ti){var n=qo;t=":"+t+"R"+(n=(Go&~(1<<32-it(Go)-1)).toString(32)+n),0<(n=la++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ca++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xa={readContext:Ii,useCallback:za,useContext:Ii,useEffect:Na,useImperativeHandle:La,useInsertionEffect:Ra,useLayoutEffect:Oa,useMemo:Fa,useReducer:ba,useRef:Ta,useState:function(){return ba(ga)},useDebugValue:Da,useDeferredValue:function(e){return ja(ma(),oa.memoizedState,e)},useTransition:function(){return[ba(ga)[0],ma().memoizedState]},useMutableSource:ya,useSyncExternalStore:wa,useId:Ha,unstable_isNewReconciler:!1},Za={readContext:Ii,useCallback:za,useContext:Ii,useEffect:Na,useImperativeHandle:La,useInsertionEffect:Ra,useLayoutEffect:Oa,useMemo:Fa,useReducer:va,useRef:Ta,useState:function(){return va(ga)},useDebugValue:Da,useDeferredValue:function(e){var t=ma();return null===oa?t.memoizedState=e:ja(t,oa.memoizedState,e)},useTransition:function(){return[va(ga)[0],ma().memoizedState]},useMutableSource:ya,useSyncExternalStore:wa,useId:Ha,unstable_isNewReconciler:!1};function Qa(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}function Ja(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 es={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xl(),o=Zl(e),i=Mi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(Ql(t,e,o,r),Di(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xl(),o=Zl(e),i=Mi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(Ql(t,e,o,r),Di(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xl(),r=Zl(e),o=Mi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Li(e,o,r))&&(Ql(t,e,r,n),Di(t,e,r))}};function ts(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 ns(e,t,n){var r=!1,o=xo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(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=es,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function rs(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&&es.enqueueReplaceState(t,t.state,null)}function os(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ri(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Po(t)?Io:So.current,o.context=To(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ja(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&&es.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function is(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 as(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ss(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ls="function"==typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=Mi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jl||(jl=!0,Vl=r),ss(0,t)},n}function us(e,t,n){(n=Mi(-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(){ss(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ss(0,t),"function"!=typeof r&&(null===Hl?Hl=new Set([this]):Hl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ds(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ls;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=kc.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 fs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Mi(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e)}var hs=w.ReactCurrentOwner,ms=!1;function gs(e,t,n,r){t.child=null===e?vi(t,null,n,r):bi(t,e.child,n,r)}function bs(e,t,n,r,o){n=n.render;var i=t.ref;return Ci(t,o),r=pa(e,t,n,r,i,o),n=fa(),null===e||ms?(ti&&n&&Zo(t),t.flags|=1,gs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,js(e,t,o))}function vs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Tc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ys(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:or)(a,r)&&e.ref===t.ref)return js(e,t,o)}return t.flags|=1,(e=Pc(i,r)).ref=t.ref,e.return=t,t.child=e}function ys(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(or(i,r)&&e.ref===t.ref){if(ms=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,js(e,t,o);131072&e.flags&&(ms=!0)}}return _s(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(1&t.mode){if(!(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(Pl,Tl),Tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Eo(Pl,Tl),Tl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Eo(Pl,Tl),Tl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Eo(Pl,Tl),Tl|=r;return gs(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,o){var i=Po(n)?Io:So.current;return i=To(t,i),Ci(t,o),n=pa(e,t,n,r,i,o),r=fa(),null===e||ms?(ti&&r&&Zo(t),t.flags|=1,gs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,js(e,t,o))}function Es(e,t,n,r,o){if(Po(n)){var i=!0;Ro(t)}else i=!1;if(Ci(t,o),null===t.stateNode)Fs(e,t),ns(t,n,r),os(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=Ii(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)&&rs(t,a,r,c),Ni=!1;var p=t.memoizedState;a.state=p,Fi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Co.current||Ni?("function"==typeof u&&(Ja(t,n,u,r),l=t.memoizedState),(s=Ni||ts(t,n,s,r,p,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,Oi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qa(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ii(l):l=To(t,l=Po(n)?Io:So.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&rs(t,a,r,l),Ni=!1,p=t.memoizedState,a.state=p,Fi(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||Co.current||Ni?("function"==typeof f&&(Ja(t,n,f,r),h=t.memoizedState),(c=Ni||ts(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return xs(e,t,n,r,i,o)}function xs(e,t,n,r,o,i){ks(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Oo(t,n,!1),js(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=bi(t,e.child,null,i),t.child=bi(t,null,s,i)):gs(e,t,s,i),t.memoizedState=r.state,o&&Oo(t,n,!0),t.child}function Ss(e){var t=e.stateNode;t.pendingContext?Bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Bo(0,t.context,!1),Ki(e,t.containerInfo)}function Cs(e,t,n,r,o){return ui(),di(o),t.flags|=256,gs(e,t,n,r),t.child}var Is,Ts,Ps,As,Bs={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,n){var r,o=t.pendingProps,a=Xi.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Eo(Xi,1&a),null===e)return ai(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Nc(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Bc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(n),t.memoizedState=Bs,e):Os(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,Ms(e,t,s,r=as(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Nc({mode:"visible",children:r.children},o,0,null),(a=Bc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&bi(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Bs,a);if(!(1&t.mode))return Ms(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ms(e,t,s,r=as(a=Error(i(419)),r,void 0))}if(l=!!(s&e.childLanes),ms||l){if(null!==(r=Sl)){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=o&(r.suspendedLanes|s)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Bi(e,o),Ql(r,e,o,-1))}return dc(),Ms(e,t,s,r=as(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ec.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=Os(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 1&l||t.child===a?(o=Pc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?s=Pc(r,s):(s=Bc(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)?Ns(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Bs,o}return e=(s=e.child).sibling,o=Pc(s,{mode:"visible",children:o.children}),!(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 Os(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ms(e,t,n,r){return null!==r&&di(r),bi(t,e.child,null,n),(e=Os(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ls(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Ds(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 zs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(gs(e,t,r.children,n),2&(r=Xi.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ls(e,n,t);else if(19===e.tag)Ls(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(Xi,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ds(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===Zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ds(t,!0,n,null,i);break;case"together":Ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Fs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function js(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(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 Hs(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 $s(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 Hs(t),null;case 1:case 17:return Po(t.type)&&Ao(),Hs(t),null;case 3:return r=t.stateNode,Gi(),_o(Co),_o(So),Ji(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(li(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ni&&(nc(ni),ni=null))),Ts(e,t),Hs(t),null;case 5:Yi(t);var o=Wi(Ui.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(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 Hs(t),null}if(e=Wi(Hi.current),li(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[lo]=t,r[co]=a,e=!!(1&t.mode),n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(o=0;o<Br.length;o++)Mr(Br[o],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":X(r,a),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Mr("invalid",r);break;case"textarea":oe(r,a),Mr("invalid",r)}for(var l in be(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&&Mr("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,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),o=r;break;case"iframe":case"object":case"embed":Mr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Br.length;o++)Mr(Br[o],e);o=r;break;case"source":Mr("error",e),o=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),o=r;break;case"details":Mr("toggle",e),o=r;break;case"input":X(e,r),o=Y(e,r),Mr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Mr("invalid",e)}for(a in be(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(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&&Mr("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 Hs(t),null;case 6:if(e&&null!=t.stateNode)As(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Wi(Ui.current),Wi(Hi.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,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&qr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[lo]=t,t.stateNode=r}return Hs(t),null;case 13:if(_o(Xi),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ti&&null!==ei&&1&t.mode&&!(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(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hs(t),a=!1}else null!==ni&&(nc(ni),ni=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Xi.current?0===Al&&(Al=3):dc())),null!==t.updateQueue&&(t.flags|=4),Hs(t),null);case 4:return Gi(),Ts(e,t),null===e&&zr(t.stateNode.containerInfo),Hs(t),null;case 10:return xi(t.type._context),Hs(t),null;case 19:if(_o(Xi),null===(a=t.memoizedState))return Hs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Al||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=Zi(e))){for(t.flags|=128,Vs(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(Xi,1&Xi.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>zl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Zi(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ti)return Hs(t),null}else 2*Xe()-a.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(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=Xi.current,Eo(Xi,r?1&n|2:1&n),t):(Hs(t),null);case 22:case 23:return sc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Tl)&&(Hs(t),6&t.subtreeFlags&&(t.flags|=8192)):Hs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Us(e,t){switch(Qo(t),t.tag){case 1:return Po(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Gi(),_o(Co),_o(So),Ji(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Yi(t),null;case 13:if(_o(Xi),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(Xi),null;case 4:return Gi(),null;case 10:return xi(t.type._context),null;case 22:case 23:return sc(),null;default:return null}}Is=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}},Ts=function(){},Ps=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Wi(Hi.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 be(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&&Mr("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)}},As=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ws=!1,Ks=!1,Gs="function"==typeof WeakSet?WeakSet:Set,qs=null;function Ys(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 Xs(e,t,n){try{n()}catch(n){wc(e,t,n)}}var Zs=!1;function Qs(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&&Xs(t,n,i)}o=o.next}while(o!==r)}}function Js(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 el(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 tl(e){var t=e.alternate;null!==t&&(e.alternate=null,tl(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[po],delete t[fo],delete t[ho])),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 nl(e){return 5===e.tag||3===e.tag||4===e.tag}function rl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||nl(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 ol(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(ol(e,t,n),e=e.sibling;null!==e;)ol(e,t,n),e=e.sibling}function il(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(il(e,t,n),e=e.sibling;null!==e;)il(e,t,n),e=e.sibling}var al=null,sl=!1;function ll(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(rt,n)}catch(e){}switch(n.tag){case 5:Ks||Ys(n,t);case 6:var r=al,o=sl;al=null,ll(e,t,n),sl=o,null!==(al=r)&&(sl?(e=al,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):al.removeChild(n.stateNode));break;case 18:null!==al&&(sl?(e=al,n=n.stateNode,8===e.nodeType?oo(e.parentNode,n):1===e.nodeType&&oo(e,n),Vt(e)):oo(al,n.stateNode));break;case 4:r=al,o=sl,al=n.stateNode.containerInfo,sl=!0,ll(e,t,n),al=r,sl=o;break;case 0:case 11:case 14:case 15:if(!Ks&&(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&&(2&i||4&i)&&Xs(n,t,a),o=o.next}while(o!==r)}ll(e,t,n);break;case 1:if(!Ks&&(Ys(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)}ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,ll(e,t,n),Ks=r):ll(e,t,n);break;default:ll(e,t,n)}}function ul(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Gs),t.forEach((function(t){var r=xc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function dl(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:al=l.stateNode,sl=!1;break e;case 3:case 4:al=l.stateNode.containerInfo,sl=!0;break e}l=l.return}if(null===al)throw Error(i(160));cl(a,s,o),al=null,sl=!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(dl(t,e),fl(e),4&r){try{Qs(3,e,e.return),Js(3,e)}catch(t){wc(e,e.return,t)}try{Qs(5,e,e.return)}catch(t){wc(e,e.return,t)}}break;case 1:dl(t,e),fl(e),512&r&&null!==n&&Ys(n,n.return);break;case 5:if(dl(t,e),fl(e),512&r&&null!==n&&Ys(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),ve(l,s);var u=ve(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?me(o,p):"dangerouslySetInnerHTML"===d?ue(o,p):"children"===d?de(o,p):y(o,d,p,u)}switch(l){case"input":Q(o,a);break;case"textarea":ie(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):f!==!!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(dl(t,e),fl(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(dl(t,e),fl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){wc(e,e.return,t)}break;case 4:default:dl(t,e),fl(e);break;case 13:dl(t,e),fl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Dl=Xe())),4&r&&ul(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,dl(t,e),Ks=u):dl(t,e),fl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(qs=e,d=e.child;null!==d;){for(p=qs=d;null!==qs;){switch(h=(f=qs).child,f.tag){case 0:case 11:case 14:case 15:Qs(4,f,f.return);break;case 1:Ys(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){wc(r,n,e)}}break;case 5:Ys(f,f.return);break;case 22:if(null!==f.memoizedState){bl(p);continue}}null!==h?(h.return=f,qs=h):bl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",s))}catch(t){wc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){wc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:dl(t,e),fl(e),4&r&&ul(e);case 21:}}function fl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(nl(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),il(e,rl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ol(e,rl(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){qs=e,ml(e,t,n)}function ml(e,t,n){for(var r=!!(1&e.mode);null!==qs;){var o=qs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ws;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ws;var c=Ks;if(Ws=a,(Ks=l)&&!c)for(qs=o;null!==qs;)l=(a=qs).child,22===a.tag&&null!==a.memoizedState?vl(o):null!==l?(l.return=a,qs=l):vl(o);for(;null!==i;)qs=i,ml(i,t,n),i=i.sibling;qs=o,Ws=s,Ks=c}gl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,qs=i):gl(e)}}function gl(e){for(;null!==qs;){var t=qs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||Js(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Qa(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&ji(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}ji(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 p=d.dehydrated;null!==p&&Vt(p)}}}break;default:throw Error(i(163))}Ks||512&t.flags&&el(t)}catch(e){wc(t,t.return,e)}}if(t===e){qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,qs=n;break}qs=t.return}}function bl(e){for(;null!==qs;){var t=qs;if(t===e){qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,qs=n;break}qs=t.return}}function vl(e){for(;null!==qs;){var t=qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Js(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{el(t)}catch(e){wc(t,i,e)}break;case 5:var a=t.return;try{el(t)}catch(e){wc(t,a,e)}}}catch(e){wc(t,t.return,e)}if(t===e){qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,qs=s;break}qs=t.return}}var yl,wl=Math.ceil,kl=w.ReactCurrentDispatcher,_l=w.ReactCurrentOwner,El=w.ReactCurrentBatchConfig,xl=0,Sl=null,Cl=null,Il=0,Tl=0,Pl=ko(0),Al=0,Bl=null,Nl=0,Rl=0,Ol=0,Ml=null,Ll=null,Dl=0,zl=1/0,Fl=null,jl=!1,Vl=null,Hl=null,$l=!1,Ul=null,Wl=0,Kl=0,Gl=null,ql=-1,Yl=0;function Xl(){return 6&xl?Xe():-1!==ql?ql:ql=Xe()}function Zl(e){return 1&e.mode?2&xl&&0!==Il?Il&-Il:null!==pi.transition?(0===Yl&&(Yl=ht()),Yl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function Ql(e,t,n,r){if(50<Kl)throw Kl=0,Gl=null,Error(i(185));gt(e,n,r),2&xl&&e===Sl||(e===Sl&&(!(2&xl)&&(Rl|=n),4===Al&&rc(e,Il)),Jl(e,r),1===n&&0===xl&&!(1&t.mode)&&(zl=Xe()+500,Lo&&Fo()))}function Jl(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?s&n&&!(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===Sl?Il: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)}(oc.bind(null,e)):zo(oc.bind(null,e)),no((function(){!(6&xl)&&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=Sc(n,ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ec(e,t){if(ql=-1,Yl=0,6&xl)throw Error(i(327));var n=e.callbackNode;if(vc()&&e.callbackNode!==n)return null;var r=dt(e,e===Sl?Il:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=pc(e,r);else{t=r;var o=xl;xl|=2;var a=uc();for(Sl===e&&Il===t||(Fl=null,zl=Xe()+500,lc(e,t));;)try{hc();break}catch(t){cc(e,t)}Ei(),kl.current=a,xl=o,null!==Cl?t=0:(Sl=null,Il=0,t=Al)}if(0!==t){if(2===t&&(0!==(o=ft(e))&&(r=o,t=tc(e,o))),1===t)throw n=Bl,lc(e,0),rc(e,r),Jl(e,Xe()),n;if(6===t)rc(e,r);else{if(o=e.current.alternate,!(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)||(t=pc(e,r),2===t&&(a=ft(e),0!==a&&(r=a,t=tc(e,a))),1!==t)))throw n=Bl,lc(e,0),rc(e,r),Jl(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,Ll,Fl);break;case 3:if(rc(e,r),(130023424&r)===r&&10<(t=Dl+500-Xe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Xl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jr(bc.bind(null,e,Ll,Fl),t);break}bc(e,Ll,Fl);break;case 4:if(rc(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,Ll,Fl),r);break}bc(e,Ll,Fl);break;default:throw Error(i(329))}}}return Jl(e,Xe()),e.callbackNode===n?ec.bind(null,e):null}function tc(e,t){var n=Ml;return e.current.memoizedState.isDehydrated&&(lc(e,t).flags|=256),2!==(e=pc(e,t))&&(t=Ll,Ll=n,null!==t&&nc(t)),e}function nc(e){null===Ll?Ll=e:Ll.push.apply(Ll,e)}function rc(e,t){for(t&=~Ol,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 oc(e){if(6&xl)throw Error(i(327));vc();var t=dt(e,0);if(!(1&t))return Jl(e,Xe()),null;var n=pc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=tc(e,r))}if(1===n)throw n=Bl,lc(e,0),rc(e,t),Jl(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bc(e,Ll,Fl),Jl(e,Xe()),null}function ic(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(zl=Xe()+500,Lo&&Fo())}}function ac(e){null!==Ul&&0===Ul.tag&&!(6&xl)&&vc();var t=xl;xl|=1;var n=El.transition,r=vt;try{if(El.transition=null,vt=1,e)return e()}finally{vt=r,El.transition=n,!(6&(xl=t))&&Fo()}}function sc(){Tl=Pl.current,_o(Pl)}function lc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,eo(n)),null!==Cl)for(n=Cl.return;null!==n;){var r=n;switch(Qo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:Gi(),_o(Co),_o(So),Ji();break;case 5:Yi(r);break;case 4:Gi();break;case 13:case 19:_o(Xi);break;case 10:xi(r.type._context);break;case 22:case 23:sc()}n=n.return}if(Sl=e,Cl=e=Pc(e.current,null),Il=Tl=t,Al=0,Bl=null,Ol=Rl=Nl=0,Ll=Ml=null,null!==Ti){for(t=0;t<Ti.length;t++)if(null!==(r=(n=Ti[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}Ti=null}return e}function cc(e,t){for(;;){var n=Cl;try{if(Ei(),ea.current=qa,aa){for(var r=ra.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}aa=!1}if(na=0,ia=oa=ra=null,sa=!1,la=0,_l.current=null,null===n||null===n.return){Al=1,Bl=t,Cl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ps(s);if(null!==h){h.flags&=-257,fs(h,s,l,0,t),1&h.mode&&ds(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(!(1&t)){ds(a,u,t),dc();break e}c=Error(i(426))}else if(ti&&1&l.mode){var b=ps(s);if(null!==b){!(65536&b.flags)&&(b.flags|=256),fs(b,s,l,0,t),di(is(c,l));break e}}a=c=is(c,l),4!==Al&&(Al=2),null===Ml?Ml=[a]:Ml.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zi(a,cs(0,c,t));break e;case 1:l=c;var v=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Hl&&Hl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,zi(a,us(a,l,t));break e}}a=a.return}while(null!==a)}gc(n)}catch(e){t=e,Cl===n&&null!==n&&(Cl=n=n.return);continue}break}}function uc(){var e=kl.current;return kl.current=qa,null===e?qa:e}function dc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Sl||!(268435455&Nl)&&!(268435455&Rl)||rc(Sl,Il)}function pc(e,t){var n=xl;xl|=2;var r=uc();for(Sl===e&&Il===t||(Fl=null,lc(e,t));;)try{fc();break}catch(t){cc(e,t)}if(Ei(),xl=n,kl.current=r,null!==Cl)throw Error(i(261));return Sl=null,Il=0,Al}function fc(){for(;null!==Cl;)mc(Cl)}function hc(){for(;null!==Cl&&!qe();)mc(Cl)}function mc(e){var t=yl(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?gc(e):Cl=t,_l.current=null}function gc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Us(n,t)))return n.flags&=32767,void(Cl=n);if(null===e)return Al=6,void(Cl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=$s(n,t,Tl)))return void(Cl=n);if(null!==(t=t.sibling))return void(Cl=t);Cl=t=e}while(null!==t);0===Al&&(Al=5)}function bc(e,t,n){var r=vt,o=El.transition;try{El.transition=null,vt=1,function(e,t,n,r){do{vc()}while(null!==Ul);if(6&xl)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===Sl&&(Cl=Sl=null,Il=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||$l||($l=!0,Sc(et,(function(){return vc(),null}))),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=El.transition,El.transition=null;var s=vt;vt=1;var l=xl;xl|=4,_l.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,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===a&&++d===r&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}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,qs=t;null!==qs;)if(e=(t=qs).child,1028&t.subtreeFlags&&null!==e)e.return=t,qs=e;else for(;null!==qs;){t=qs;try{var m=t.alternate;if(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!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Qa(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){wc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,qs=e;break}qs=t.return}m=Zs,Zs=!1}(e,n),pl(n,e),ur(Zr),$t=!!Xr,Zr=Xr=null,e.current=n,hl(n,e,o),Ye(),xl=l,vt=s,El.transition=a}else e.current=n;if($l&&($l=!1,Ul=e,Wl=o),a=e.pendingLanes,0===a&&(Hl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(rt,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Jl(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(jl)throw jl=!1,e=Vl,Vl=null,e;!!(1&Wl)&&0!==e.tag&&vc(),a=e.pendingLanes,1&a?e===Gl?Kl++:(Kl=0,Gl=e):Kl=0,Fo()}(e,t,n,r)}finally{El.transition=o,vt=r}return null}function vc(){if(null!==Ul){var e=yt(Wl),t=El.transition,n=vt;try{if(El.transition=null,vt=16>e?16:e,null===Ul)var r=!1;else{if(e=Ul,Ul=null,Wl=0,6&xl)throw Error(i(331));var o=xl;for(xl|=4,qs=e.current;null!==qs;){var a=qs,s=a.child;if(16&qs.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(qs=u;null!==qs;){var d=qs;switch(d.tag){case 0:case 11:case 15:Qs(8,d,a)}var p=d.child;if(null!==p)p.return=d,qs=p;else for(;null!==qs;){var f=(d=qs).sibling,h=d.return;if(tl(d),d===u){qs=null;break}if(null!==f){f.return=h,qs=f;break}qs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}qs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,qs=s;else e:for(;null!==qs;){if(2048&(a=qs).flags)switch(a.tag){case 0:case 11:case 15:Qs(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,qs=v;break e}qs=a.return}}var y=e.current;for(qs=y;null!==qs;){var w=(s=qs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,qs=w;else e:for(s=y;null!==qs;){if(2048&(l=qs).flags)try{switch(l.tag){case 0:case 11:case 15:Js(9,l)}}catch(e){wc(l,l.return,e)}if(l===s){qs=null;break e}var k=l.sibling;if(null!==k){k.return=l.return,qs=k;break e}qs=l.return}}if(xl=o,Fo(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(rt,e)}catch(e){}r=!0}return r}finally{vt=n,El.transition=t}}return!1}function yc(e,t,n){e=Li(e,t=cs(0,t=is(n,t),1),1),t=Xl(),null!==e&&(gt(e,1,t),Jl(e,t))}function wc(e,t,n){if(3===e.tag)yc(e,e,n);else for(;null!==t;){if(3===t.tag){yc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hl||!Hl.has(r))){t=Li(t,e=us(t,e=is(n,e),1),1),e=Xl(),null!==t&&(gt(t,1,e),Jl(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Xl(),e.pingedLanes|=e.suspendedLanes&n,Sl===e&&(Il&n)===n&&(4===Al||3===Al&&(130023424&Il)===Il&&500>Xe()-Dl?lc(e,0):Ol|=n),Jl(e,t)}function _c(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Xl();null!==(e=Bi(e,t))&&(gt(e,t,n),Jl(e,n))}function Ec(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function xc(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),_c(e,n)}function Sc(e,t){return Ke(e,t)}function Cc(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 Ic(e,t,n,r){return new Cc(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=Ic(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 Ac(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Tc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return Bc(n.children,o,a,t);case x:s=8,o|=8;break;case S:return(e=Ic(12,n,t,2|o)).elementType=S,e.lanes=a,e;case P:return(e=Ic(13,n,t,o)).elementType=P,e.lanes=a,e;case A:return(e=Ic(19,n,t,o)).elementType=A,e.lanes=a,e;case R:return Nc(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 B:s=14;break e;case N:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Bc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Rc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Oc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mc(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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Lc(e,t,n,r,o,i,a,s,l){return e=new Mc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ic(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Dc(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 No(e,n,t)}return t}function zc(e,t,n,r,o,i,a,s,l){return(e=Lc(n,r,!0,e,0,i,0,s,l)).context=Dc(null),n=e.current,(i=Mi(r=Xl(),o=Zl(n))).callback=null!=t?t:null,Li(n,i,o),e.current.lanes=o,gt(e,o,r),Jl(e,r),e}function Fc(e,t,n,r){var o=t.current,i=Xl(),a=Zl(o);return n=Dc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Mi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Li(o,t,a))&&(Ql(e,o,a,i),Di(e,o,a)),a}function jc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Hc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}yl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Co.current)ms=!0;else{if(!(e.lanes&n||128&t.flags))return ms=!1,function(e,t,n){switch(t.tag){case 3:Ss(t),ui();break;case 5:qi(t);break;case 1:Po(t.type)&&Ro(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Eo(yi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Eo(Xi,1&Xi.current),t.flags|=128,null):n&t.child.childLanes?Rs(e,t,n):(Eo(Xi,1&Xi.current),null!==(e=js(e,t,n))?e.sibling:null);Eo(Xi,1&Xi.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return zs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Eo(Xi,Xi.current),r)break;return null;case 22:case 23:return t.lanes=0,ws(e,t,n)}return js(e,t,n)}(e,t,n);ms=!!(131072&e.flags)}else ms=!1,ti&&1048576&t.flags&&Xo(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fs(e,t),e=t.pendingProps;var o=To(t,So.current);Ci(t,n),o=pa(null,t,r,e,o,n);var a=fa();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,Ro(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ri(t),o.updater=es,t.stateNode=o,o._reactInternals=t,os(t,r,e,n),t=xs(null,t,r,!0,a,n)):(t.tag=0,ti&&a&&Zo(t),gs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===B)return 14}return 2}(r),e=Qa(r,e),o){case 0:t=_s(null,t,r,e,n);break e;case 1:t=Es(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=vs(null,t,r,Qa(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_s(e,t,r,o=t.elementType===r?o:Qa(r,o),n);case 1:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:Qa(r,o),n);case 3:e:{if(Ss(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Oi(e,t),Fi(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=Cs(e,t,r,n,o=is(Error(i(423)),t));break e}if(r!==o){t=Cs(e,t,r,n,o=is(Error(i(424)),t));break e}for(ei=io(t.stateNode.containerInfo.firstChild),Jo=t,ti=!0,ni=null,n=vi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ui(),r===o){t=js(e,t,n);break e}gs(e,t,r,n)}t=t.child}return t;case 5:return qi(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),ks(e,t),gs(e,t,s,n),t.child;case 6:return null===e&&ai(t),null;case 13:return Rs(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=bi(t,null,r,n):gs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,bs(e,t,r,o=t.elementType===r?o:Qa(r,o),n);case 7:return gs(e,t,t.pendingProps,n),t.child;case 8:case 12:return gs(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(yi,r._currentValue),r._currentValue=s,null!==a)if(rr(a.value,s)){if(a.children===o.children&&!Co.current){t=js(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=Mi(-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),Si(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),Si(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}gs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ci(t,n),r=r(o=Ii(o)),t.flags|=1,gs(e,t,r,n),t.child;case 14:return o=Qa(r=t.type,t.pendingProps),vs(e,t,r,o=Qa(r.type,o),n);case 15:return ys(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qa(r,o),Fs(e,t),t.tag=1,Po(r)?(e=!0,Ro(t)):e=!1,Ci(t,n),ns(t,r,o),os(t,r,o,n),xs(null,t,r,!0,e,n);case 19:return zs(e,t,n);case 22:return ws(e,t,n)}throw Error(i(156,t.tag))};var $c="function"==typeof reportError?reportError:function(e){console.error(e)};function Uc(e){this._internalRoot=e}function Wc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qc(){}function Yc(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=jc(a);s.call(e)}}Fc(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=jc(a);i.call(e)}}var a=zc(t,r,e,0,null,!1,0,"",qc);return e._reactRootContainer=a,e[uo]=a.current,zr(8===e.nodeType?e.parentNode:e),ac(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=jc(l);s.call(e)}}var l=Lc(e,0,!1,null,0,!1,0,"",qc);return e._reactRootContainer=l,e[uo]=l.current,zr(8===e.nodeType?e.parentNode:e),ac((function(){Fc(t,l,n,r)})),l}(n,t,e,o,r);return jc(a)}Wc.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Fc(e,t,null,null)},Wc.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ac((function(){Fc(null,e,null,null)})),t[uo]=null}},Wc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(bt(t,1|n),Jl(t,Xe()),!(6&xl)&&(zl=Xe()+500,Fo()))}break;case 13:ac((function(){var t=Bi(e,1);if(null!==t){var n=Xl();Ql(t,e,1,n)}})),Hc(e,1)}},kt=function(e){if(13===e.tag){var t=Bi(e,134217728);if(null!==t)Ql(t,e,134217728,Xl());Hc(e,134217728)}},_t=function(e){if(13===e.tag){var t=Zl(e),n=Bi(e,t);if(null!==n)Ql(n,e,t,Xl());Hc(e,t)}},Et=function(){return vt},xt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=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=vo(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=ic,Te=ac;var Xc={usingClientEntryPoint:!1,Events:[go,bo,vo,Se,Ce,ic]},Zc={findFiberByHostInstance:mo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qc={bundleType:Zc.bundleType,version:Zc.version,rendererPackageName:Zc.rendererPackageName,rendererConfig:Zc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:Zc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{rt=Jc.inject(Qc),ot=Jc}catch(e){}}t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(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.flushSync=function(e){return ac(e)},t.unstable_batchedUpdates=ic},967:(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(6521)},198:(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,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(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 f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||k(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=k},6237:(e,t,n)=>{"use strict";e.exports=n(198)},1841:(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,p=60115,f=60116,h=60121,m=60122,g=60117,b=60129,v=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"),p=y("react.memo"),f=y("react.lazy"),h=y("react.block"),m=y("react.server.block"),g=y("react.fundamental"),b=y("react.debug_trace_mode"),v=y("react.legacy_hidden")}function w(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 f:case p:case s:return e;default:return t}}case r:return t}}}},7679:(e,t,n)=>{"use strict";n(1841)},8621:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===p||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)}},6479:(e,t,n)=>{"use strict";e.exports=n(8621)},8193:(e,t,n)=>{"use strict";var r=n(5271),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},7596:(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"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}b.prototype.isReactComponent={},b.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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var w=y.prototype=new v;w.constructor=y,m(w,b.prototype),w.isPureReactComponent=!0;var k=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,k(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+":",k(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=f&&e[f]||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 A(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 B(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 N={current:null},R={transition:null},O={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:R,ReactCurrentOwner:E};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(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=b,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=O,t.act=M,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=m({},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:p,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},5271:(e,t,n)=>{"use strict";e.exports=n(7596)},2676:(e,t,n)=>{"use strict";e.exports=n(8193)},2601: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},1705:(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,p=35,f=125,h=0,m=0,g=0,b={get didTimeout(){return!1},timeRemaining:function(){var e=d-(Date.now()-m);return e<0?0:e}},v=y((function(){d=22,f=66,p=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 w(){u&&(o&&s(o),r&&clearTimeout(r),u=!1)}function k(){125!=f&&(d=7,f=125,p=35,u&&(w(),x())),v()}function _(){o=null,r=setTimeout(S,0)}function E(){r=null,a(_)}function x(){u||(t=f-(Date.now()-m),e=Date.now(),u=!0,p&&t<p&&(t=p),t>9?r=setTimeout(E,t):(t=0,E()))}function S(){var n,o,i,a=d>9?9:1;if(m=Date.now(),u=!1,r=null,c>2||m-t-50<e)for(o=0,i=l.length;o<i&&b.timeRemaining()>a;o++)n=l.shift(),g++,n&&n(b);l.length?x():c=0}function C(e){return h++,l.push(e),x(),h}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",k,!0),i.addEventListener("resize",k),document.addEventListener("focus",k,!0),document.addEventListener("mouseover",k,!0),["click","keypress","touchstart","mousedown"].forEach((function(e){document.addEventListener(e,k,{capture:!0,passive:!0})})),i.MutationObserver&&new MutationObserver(k).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));return{request:C,cancel:I}})?r.apply(t,o):r)||(e.exports=i)},2554:(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(450)),o=n(7161),i=a(n(3495));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}]},6146:(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(450),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]},1749:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cps=t.call=void 0;var r,o=n(450),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]},6794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(6146)),o=i(n(450));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)()}}},2260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapControls=t.asyncControls=t.create=void 0;var r=n(7161);Object.keys(r).forEach((function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=s(n(6794)),i=s(n(2554)),a=s(n(1749));function s(e){return e&&e.__esModule?e:{default:e}}t.create=o.default,t.asyncControls=i.default,t.wrapControls=a.default},3495:(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)}))}}}},7161:(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(4202),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)}}}}},450:(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(4202),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},4202:(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},8088:(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,p=null,f=3,h=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(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 k(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,R(_);else{var t=r(u);null!==t&&O(k,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,v(C),C=-1),h=!0;var i=f;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&O(k,d.startTime-n),l=!1}return l}finally{p=null,f=i,h=!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 A(){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(A)};else if("undefined"!=typeof MessageChannel){var B=new MessageChannel,N=B.port2;B.port1.onmessage=A,E=function(){N.postMessage(null)}}else E=function(){b(A,0)};function R(e){S=e,x||(x=!0,E())}function O(e,n){C=b((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(){m||h||(m=!0,R(_))},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 f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=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=f;f=e;try{return t()}finally{f=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?(v(C),C=-1):g=!0,O(k,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(_))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},7537:(e,t,n)=>{"use strict";e.exports=n(8088)},6132: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 p(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=p,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,p)},i.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var f=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,"")),p=new RegExp(t,c.replace(/g/g,"")),f=[];do{for(o=0;a=d.exec(e);)if(p.test(a[0]))o++||(s=(i=d.lastIndex)-a[0].length);else if(o&&! --o){l=a.index+a[0].length;var h={left:{start:s,end:i},match:{start:i,end:a.index},right:{start:a.index,end:l},wholeMatch:{start:s,end:l}};if(f.push(h),!u)return f}}while(o&&(d.lastIndex=i));return f};i.helper.matchRecursiveRegExp=function(e,t,n,r){"use strict";for(var o=f(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=f(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:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",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:"👱&zwj;♀️",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:"🙇&zwj;♀️",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:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",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:"👯&zwj;♂️",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:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",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:"🙍&zwj;♂️",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:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",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:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",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:"🚵&zwj;♀️",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:"🙅&zwj;♂️",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:"🙆&zwj;♂️",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:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",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:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",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:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",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:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",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:"💁&zwj;♂️",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:"🚶&zwj;♀️",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:"🏋️&zwj;♀️",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:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",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,p={parsed:{},raw:"",format:""};function f(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)&&h(l,e[a].listeners[l])}}function h(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,f)}(),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 h(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,"&nbsp;"),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)})),p=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){f(e,t=t||null)},this.useExtension=function(e){f(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?p.raw:p.parsed},this.getMetadataFormat=function(){return p.format},this._setMetadataPair=function(e,t){p.parsed[e]=t},this._setMetadataFormat=function(e){p.format=e},this._setMetadataRaw=function(e){p.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,"&quot;")).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 h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,m=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,v=/<()(?: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="",p=n||"",f=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"'),p+'<a href="'+r+'"'+d+">"+c+"</a>"+u+f}},w=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(v,w(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(m,y(t)):e.replace(h,y(t))).replace(b,w(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,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").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"&lt;"+t+"&gt;"})));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),p=i.helper.replaceRecursiveRegExp(d[1],o,c,u,"im");if(p===d[1])break;e=d[0].concat(p)}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(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?r.replace(/ /g,"-").replace(/&amp;/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,p="<h"+d+u+">"+c+"</h"+d+">";return i.subParser("hashBlock")(p,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,p=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(p[r])||(a=p[r].width,s=p[r].height)}t=t.replace(/"/g,"&quot;").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var f='<img src="'+(o=o.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback))+'" alt="'+t+'"';return c&&i.helper.isString(c)&&(f+=' title="'+(c=c.replace(/"/g,"&quot;").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback))+'"'),a&&s&&(f+=' width="'+(a="*"===a?"auto":a)+'"',f+=' height="'+(s="*"===s?"auto":s)+'"'),f+=" />"}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),p="";return c&&t.tasklists&&(p=' 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"+p+">"+(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),p=o(e,n);-1!==d?(c+="\n\n<"+n+p+">\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+p+">\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,"&amp;").replace(/"/g,"&quot;")).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 p=RegExp.$1,f=RegExp.$2;c=(c="K"===p?n.gHtmlBlocks[f]:d?i.subParser("encodeCode")(n.ghCodeBlocks[f].text,t,n):n.ghCodeBlocks[f].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,"&quot;")),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()})),p=a[1].split("|").map((function(e){return e.trim()})),f=[],h=[],m=[],g=[];for(a.shift(),a.shift(),o=0;o<a.length;++o)""!==a[o].trim()&&f.push(a[o].split("|").map((function(e){return e.trim()})));if(d.length<p.length)return e;for(o=0;o<p.length;++o)m.push((s=p[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(m[o])&&(m[o]=""),h.push((l=d[o],c=m[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<f.length;++o){for(var b=[],v=0;v<h.length;++v)i.helper.isUndefined(f[o][v]),b.push(r(f[o][v],m[v]));g.push(b)}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"}(h,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.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",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,p=l[n].getElementsByTagName("td");for(r=0;r<s.length;++r){var f=" ";void 0!==p[r]&&(f=i.subParser("makeMarkdown.tableCell")(p[r],t)),a[d].push(f)}}var h=3;for(n=0;n<a.length;++n)for(r=0;r<a[n].length;++r){var m=a[n][r].length;m>h&&(h=m)}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),h-1,"-")+":":a[n][r]=i.helper.padEnd(a[n][r],h,"-"):a[n][r]=i.helper.padEnd(a[n][r],h);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)},8288:(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,p,f=1,h=e.length,m="";for(r=0;r<h;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((s=e[r]).keys)for(n=t[f],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[f++];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)?m+=n:(!o.number.test(s.type)||d&&!s.sign?p="":(p=d?"+":"-",n=n.toString().replace(o.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(p+n).length,l=s.width&&u>0?c.repeat(u):"",m+=s.align?p+n+l:"0"===c?p+l+n:l+p+n)}return m}(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))}()},5010:(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),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:u,updater:g(p,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 p(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 f(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 h=null,m=0;function g(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=c(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(t),r=f.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}}}},9752:(e,t,n)=>{"use strict";var r=n(5271);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},8488:(e,t,n)=>{"use strict";e.exports=n(9752)},5035:()=>{},5962:()=>{},2485:()=>{},9563:()=>{},8063:()=>{},8732:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",o=n;for(;o--;)r+=e[Math.random()*e.length|0];return r}}}},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:()=>Yt,getCachedResolvers:()=>Gt,getIsResolving:()=>Vt,getResolutionError:()=>Wt,getResolutionState:()=>jt,hasFinishedResolution:()=>$t,hasResolutionFailed:()=>Ut,hasResolvingSelectors:()=>qt,hasStartedResolution:()=>Ht,isResolving:()=>Kt});var t={};o.r(t),o.d(t,{failResolution:()=>Qt,failResolutions:()=>tn,finishResolution:()=>Zt,finishResolutions:()=>en,invalidateResolution:()=>nn,invalidateResolutionForStore:()=>rn,invalidateResolutionForStoreSelector:()=>on,startResolution:()=>Xt,startResolutions:()=>Jt});var n={};o.r(n),o.d(n,{getFormatType:()=>Mr,getFormatTypeForBareElement:()=>Lr,getFormatTypeForClassName:()=>Dr,getFormatTypes:()=>Or});var r={};o.r(r),o.d(r,{addFormatTypes:()=>zr,removeFormatTypes:()=>Fr});var i={};o.r(i),o.d(i,{__experimentalHasContentRoleAttribute:()=>_i,getActiveBlockVariation:()=>li,getBlockStyles:()=>ai,getBlockSupport:()=>bi,getBlockType:()=>ii,getBlockTypes:()=>oi,getBlockVariations:()=>si,getCategories:()=>ui,getChildBlockNames:()=>gi,getCollections:()=>di,getDefaultBlockName:()=>pi,getDefaultBlockVariation:()=>ci,getFreeformFallbackBlockName:()=>fi,getGroupingBlockName:()=>mi,getUnregisteredFallbackBlockName:()=>hi,hasBlockSupport:()=>vi,hasChildBlocks:()=>wi,hasChildBlocksWithInserterSupport:()=>ki,isMatchingSearchTerm:()=>yi});var a={};o.r(a),o.d(a,{getAllBlockBindingsSources:()=>Ti,getBlockBindingsSource:()=>Pi,getBootstrappedBlockType:()=>Ci,getSupportedStyles:()=>Si,getUnprocessedBlockTypes:()=>Ii});var s={};o.r(s),o.d(s,{__experimentalReapplyBlockFilters:()=>Di,addBlockCollection:()=>Yi,addBlockStyles:()=>Fi,addBlockTypes:()=>Mi,addBlockVariations:()=>Vi,reapplyBlockTypeFilters:()=>Li,removeBlockCollection:()=>Xi,removeBlockStyles:()=>ji,removeBlockTypes:()=>zi,removeBlockVariations:()=>Hi,setCategories:()=>Gi,setDefaultBlockName:()=>$i,setFreeformFallbackBlockName:()=>Ui,setGroupingBlockName:()=>Ki,setUnregisteredFallbackBlockName:()=>Wi,updateCategory:()=>qi});var l={};o.r(l),o.d(l,{addBootstrappedBlockType:()=>Zi,addUnprocessedBlockType:()=>Qi,registerBlockBindingsSource:()=>Ji});var c={};o.r(c),o.d(c,{getAllPatterns:()=>wd,getBlockRemovalRules:()=>pd,getBlockSettings:()=>od,getBlockWithoutAttributes:()=>sd,getContentLockingParent:()=>Id,getEnabledBlockParents:()=>ud,getEnabledClientIdsTree:()=>cd,getExpandedBlock:()=>Cd,getInserterMediaCategories:()=>gd,getLastFocus:()=>xd,getLastInsertedBlocksClientIds:()=>ad,getOpenedBlockSettingsMenu:()=>fd,getPatternBySlug:()=>yd,getRegisteredInserterMediaCategories:()=>md,getRemovalPromptData:()=>dd,getReusableBlocks:()=>Ed,getStyleOverrides:()=>hd,getTemporarilyEditingAsBlocks:()=>Td,getTemporarilyEditingFocusModeToRevert:()=>Pd,hasAllowedPatterns:()=>bd,isBlockInterfaceHidden:()=>id,isBlockSubtreeDisabled:()=>ld,isDragging:()=>Sd,isResolvingPatterns:()=>kd});var u={};o.r(u),o.d(u,{__experimentalGetActiveBlockIdByBlockNames:()=>Of,__experimentalGetAllowedBlocks:()=>pf,__experimentalGetAllowedPatterns:()=>bf,__experimentalGetBlockListSettingsForBlocks:()=>xf,__experimentalGetDirectInsertBlock:()=>hf,__experimentalGetGlobalBlocksByName:()=>Ud,__experimentalGetLastBlockAttributeChanges:()=>If,__experimentalGetParsedPattern:()=>mf,__experimentalGetPatternTransformItems:()=>wf,__experimentalGetPatternsByBlockTypes:()=>yf,__experimentalGetReusableBlockTitle:()=>Sf,__unstableGetBlockWithoutInnerBlocks:()=>Ld,__unstableGetClientIdWithClientIdsTree:()=>zd,__unstableGetClientIdsTree:()=>Fd,__unstableGetContentLockingParent:()=>$f,__unstableGetEditorMode:()=>Pf,__unstableGetSelectedBlocksWithPartialSelection:()=>Cp,__unstableGetTemporarilyEditingAsBlocks:()=>Uf,__unstableGetTemporarilyEditingFocusModeToRevert:()=>Wf,__unstableGetVisibleBlocks:()=>Df,__unstableHasActiveBlockOverlayActive:()=>zf,__unstableIsFullySelected:()=>_p,__unstableIsLastBlockChangeIgnored:()=>Cf,__unstableIsSelectionCollapsed:()=>Ep,__unstableIsSelectionMergeable:()=>Sp,__unstableIsWithinBlockOverlay:()=>Ff,__unstableSelectionHasUnmergeableBlock:()=>xp,areInnerBlocksControlled:()=>Rf,canEditBlock:()=>tf,canInsertBlockType:()=>Yp,canInsertBlocks:()=>Xp,canLockBlockType:()=>nf,canMoveBlock:()=>Jp,canMoveBlocks:()=>ef,canRemoveBlock:()=>Zp,canRemoveBlocks:()=>Qp,didAutomaticChange:()=>Bf,getAdjacentBlockClientId:()=>sp,getAllowedBlocks:()=>df,getBlock:()=>Md,getBlockAttributes:()=>Od,getBlockCount:()=>Gd,getBlockEditingMode:()=>jf,getBlockHierarchyRootClientId:()=>ip,getBlockIndex:()=>Tp,getBlockInsertionPoint:()=>$p,getBlockListSettings:()=>kf,getBlockMode:()=>Lp,getBlockName:()=>Nd,getBlockNamesByClientId:()=>Kd,getBlockOrder:()=>Ip,getBlockParents:()=>rp,getBlockParentsByBlockName:()=>op,getBlockRootClientId:()=>np,getBlockSelectionEnd:()=>Zd,getBlockSelectionStart:()=>Xd,getBlockTransformItems:()=>cf,getBlocks:()=>Dd,getBlocksByClientId:()=>Wd,getBlocksByName:()=>$d,getClientIdsOfDescendants:()=>jd,getClientIdsWithDescendants:()=>Vd,getDirectInsertBlock:()=>ff,getDraggedBlockClientIds:()=>Fp,getFirstMultiSelectedBlockClientId:()=>hp,getGlobalBlockCount:()=>Hd,getInserterItems:()=>lf,getLastMultiSelectedBlockClientId:()=>mp,getLowestCommonAncestorWithSelectedBlock:()=>ap,getMultiSelectedBlockClientIds:()=>pp,getMultiSelectedBlocks:()=>fp,getMultiSelectedBlocksEndClientId:()=>kp,getMultiSelectedBlocksStartClientId:()=>yp,getNextBlockClientId:()=>cp,getPatternsByBlockTypes:()=>vf,getPreviousBlockClientId:()=>lp,getSelectedBlock:()=>tp,getSelectedBlockClientId:()=>ep,getSelectedBlockClientIds:()=>dp,getSelectedBlockCount:()=>Qd,getSelectedBlocksInitialCaretPosition:()=>up,getSelectionEnd:()=>Yd,getSelectionStart:()=>qd,getSettings:()=>_f,getTemplate:()=>Kp,getTemplateLock:()=>Gp,hasBlockMovingClientId:()=>Af,hasDraggedInnerBlock:()=>Bp,hasInserterItems:()=>uf,hasMultiSelection:()=>Rp,hasSelectedBlock:()=>Jd,hasSelectedInnerBlock:()=>Ap,isAncestorBeingDragged:()=>Vp,isAncestorMultiSelected:()=>vp,isBlockBeingDragged:()=>jp,isBlockHighlighted:()=>Nf,isBlockInsertionPointVisible:()=>Up,isBlockMultiSelected:()=>bp,isBlockSelected:()=>Pp,isBlockValid:()=>Rd,isBlockVisible:()=>Lf,isBlockWithinSelection:()=>Np,isCaretWithinFormattedText:()=>Hp,isDraggingBlocks:()=>zp,isFirstMultiSelectedBlock:()=>gp,isGroupable:()=>Hf,isLastBlockChangePersistent:()=>Ef,isMultiSelecting:()=>Op,isNavigationMode:()=>Tf,isSelectionEnabled:()=>Mp,isTyping:()=>Dp,isUngroupable:()=>Vf,isValidTemplate:()=>Wp,wasBlockJustInserted:()=>Mf});var d={};o.r(d),o.d(d,{__experimentalUpdateSettings:()=>qf,clearBlockRemovalPrompt:()=>eh,deleteStyleOverride:()=>oh,ensureDefaultBlock:()=>Qf,expandBlock:()=>uh,hideBlockInterface:()=>Yf,modifyContentLockBlock:()=>dh,privateRemoveBlocks:()=>Zf,setBlockRemovalRules:()=>th,setLastFocus:()=>ah,setOpenedBlockSettingsMenu:()=>nh,setStyleOverride:()=>rh,showBlockInterface:()=>Xf,startDragging:()=>lh,stopDragging:()=>ch,stopEditingAsBlocks:()=>sh,syncDerivedUpdates:()=>ih});var p={};o.r(p),o.d(p,{__unstableDeleteSelection:()=>Gh,__unstableExpandSelection:()=>Yh,__unstableMarkAutomaticChange:()=>hm,__unstableMarkLastChangeAsPersistent:()=>pm,__unstableMarkNextChangeAsNotPersistent:()=>fm,__unstableSaveReusableBlock:()=>dm,__unstableSetEditorMode:()=>gm,__unstableSetTemporarilyEditingAsBlocks:()=>Sm,__unstableSplitSelection:()=>qh,clearSelectedBlock:()=>Nh,duplicateBlocks:()=>vm,enterFormattedText:()=>im,exitFormattedText:()=>am,flashBlock:()=>_m,hideInsertionPoint:()=>Uh,insertAfterBlock:()=>wm,insertBeforeBlock:()=>ym,insertBlock:()=>Vh,insertBlocks:()=>Hh,insertDefaultBlock:()=>lm,mergeBlocks:()=>Xh,moveBlockToPosition:()=>jh,moveBlocksDown:()=>Dh,moveBlocksToPosition:()=>Fh,moveBlocksUp:()=>zh,multiSelect:()=>Bh,receiveBlocks:()=>Eh,registerInserterMediaCategory:()=>Cm,removeBlock:()=>Qh,removeBlocks:()=>Zh,replaceBlock:()=>Mh,replaceBlocks:()=>Oh,replaceInnerBlocks:()=>Jh,resetBlocks:()=>wh,resetSelection:()=>_h,selectBlock:()=>Ch,selectNextBlock:()=>Th,selectPreviousBlock:()=>Ih,selectionChange:()=>sm,setBlockEditingMode:()=>Im,setBlockMovingClientId:()=>bm,setBlockVisibility:()=>xm,setHasControlledInnerBlocks:()=>Em,setNavigationMode:()=>mm,setTemplateValidity:()=>Wh,showInsertionPoint:()=>$h,startDraggingBlocks:()=>rm,startMultiSelect:()=>Ph,startTyping:()=>tm,stopDraggingBlocks:()=>om,stopMultiSelect:()=>Ah,stopTyping:()=>nm,synchronizeTemplate:()=>Kh,toggleBlockHighlight:()=>km,toggleBlockMode:()=>em,toggleSelection:()=>Rh,unsetBlockEditingMode:()=>Tm,updateBlock:()=>Sh,updateBlockAttributes:()=>xh,updateBlockListSettings:()=>cm,updateSettings:()=>um,validateBlocksToTemplate:()=>kh});var f={};o.r(f),o.d(f,{find:()=>AN});var h={};o.r(h),o.d(h,{find:()=>DN,findNext:()=>FN,findPrevious:()=>zN,isTabbableIndex:()=>NN});var m={};o.r(m),o.d(m,{Text:()=>jL,block:()=>VL,destructive:()=>$L,highlighterText:()=>WL,muted:()=>UL,positive:()=>HL,upperCase:()=>KL});var g={};o.r(g),o.d(g,{ButtonContentView:()=>FV,LabelView:()=>OV,Uz:()=>VV,Ji:()=>LV,IA:()=>MV});var b={};o.r(b),o.d(b,{createErrorNotice:()=>PY,createInfoNotice:()=>TY,createNotice:()=>CY,createSuccessNotice:()=>IY,createWarningNotice:()=>AY,removeAllNotices:()=>NY,removeNotice:()=>BY,removeNotices:()=>RY});var v={};o.r(v),o.d(v,{getNotices:()=>MY});var y={};o.r(y),o.d(y,{set:()=>aX,setDefaults:()=>sX,setPersistenceLayer:()=>lX,toggle:()=>iX});var w={};o.r(w),o.d(w,{get:()=>cX});var k={};o.r(k),o.d(k,{registerShortcut:()=>a7,unregisterShortcut:()=>s7});var _={};o.r(_),o.d(_,{getAllShortcutKeyCombinations:()=>m7,getAllShortcutRawKeyCombinations:()=>g7,getCategoryShortcuts:()=>b7,getShortcutAliases:()=>h7,getShortcutDescription:()=>f7,getShortcutKeyCombination:()=>d7,getShortcutRepresentation:()=>p7});var E=wp.blockEditor,x=E.InspectorControls,S=E.PanelColorSettings,C=wp.i18n.__,I=wp.components,T=I.PanelBody,P=I.PanelRow,A=window.fluent_booking_block.hosts,B=Object.values(A);const N=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---")),B.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 R(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){if("string"==typeof e)return O(e,t);var n={}.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)?O(e,t):void 0}}(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 O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M=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=R(F([]),2),a=i[0],s=i[1],l=R(F({}),2),c=l[0],u=l[1],d=R(F(""),2),p=d[0],f=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),f(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 p=0;p<i;p++){var f=new Date(t,n,p+1).toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}),h=!!c[f];r.push({name:"".concat(p+1),enabled:h,date:f})}s(r)}()}),[c]);var h=new Date;function m(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:m(h)===e.date?"is-today":""},e.name)):React.createElement("span",{className:"day day-disabled"},React.createElement("span",{className:m(h)===e.date?"is-today":""},e.name)))}))),p?React.createElement("div",{className:"fcal_block_timezone"},React.createElement("h3",null,M("Timezone")),React.createElement("span",{className:"timezone"},p)):""))]},V=o(5010),H=o.n(V),$=o(7830),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)||!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: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){if("string"==typeof e)return X(e,t);var n={}.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)?X(e,t):void 0}}(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=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,p=s.hideHostInfo,f=s.theme,h=e.setAttributes,m=Y(ee(!1),2),g=m[0],b=m[1],v=Y(ee([]),2),y=v[0],w=v[1],k=Y(ee(!1),2),_=k[0],E=k[1],x=wp.apiFetch,S=wp.url.addQueryArgs,C=Y(ee([]),2),I=C[0],T=C[1];J((function(){P()}),[]),J((function(){l&&A()}),[l]);var P=function(e){b(!0),x({path:S("fluent-booking/v2/calendars",G({},e))}).then((function(e){T(e.calendars.data)})).catch((function(e){E(e)})).finally((function(){b(!1)}))},A=function(e){b(!0),x({path:S("fluent-booking/v2/events/".concat(l),G(G({},e),{},{event_hash:u}))}).then((function(e){var t;w(e.calendar_event),h({slotId:null===(t=e.calendar_event)||void 0===t?void 0:t.id})})).catch((function(e){E(e)})).finally((function(){b(!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:f+" fcal_block_preview_wrap"},"no"==p?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]}));h({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(N,{attributes:e.attributes,setAttributes:e.setAttributes}))};var ae=o(5271),se=o.t(ae,2);function le(e){return le="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},le(e)}function ce(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}function ue(e,t,n){return(t=ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(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 pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(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 he="function"==typeof Symbol&&Symbol.observable||"@@observable",me=function(){return Math.random().toString(36).substring(7).split("").join(".")},ge={INIT:"@@redux/INIT"+me(),REPLACE:"@@redux/REPLACE"+me(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+me()}};function be(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 ve(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(fe(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(fe(1));return n(ve)(e,t)}if("function"!=typeof e)throw new Error(fe(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(fe(3));return i}function d(e){if("function"!=typeof e)throw new Error(fe(4));if(l)throw new Error(fe(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(fe(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!be(e))throw new Error(fe(7));if(void 0===e.type)throw new Error(fe(8));if(l)throw new Error(fe(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 p({type:ge.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(fe(10));o=e,p({type:ge.REPLACE})}})[he]=function(){var e,t=d;return e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(fe(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[he]=function(){return this},e},r}function ye(){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 we(){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(fe(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=ye.apply(void 0,i)(n.dispatch),pe(pe({},n),{},{dispatch:r})}}}var ke=o(2784),_e=o.n(ke);var Ee=o(2260);function xe(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ce(e){var t,n;return!1!==Se(e)&&(void 0===(t=e.constructor)||!1!==Se(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Ie(e){return Ce(e)&&"string"==typeof e.type}function Te(e={},t){const n=Object.entries(e).map((([e,t])=>(n,r,o,i,a)=>{if(l=e,!Ie(s=n)||s.type!==l)return!1;var s,l;const c=t(n);return xe(c)?c.then(i,a):i(c),!0}));n.push(((e,n)=>!!Ie(e)&&(t(e),n(),!0)));const r=(0,Ee.create)(n);return e=>new Promise(((n,o)=>r(e,(e=>{Ie(e)&&t(e),n(e)}),o)))}function Pe(e={}){return t=>{const n=Te(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 Ae=(e=!1)=>(...t)=>(...n)=>{const r=t.flat();return e&&r.reverse(),r.reduce(((e,t)=>[t(...e)]),n)[0]},Be=Ae(),Ne=Ae(!0);function Re(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=new WeakMap,n=(...r)=>{let o=t.get(n.registry);return o||(o=e(n.registry.select),t.set(n.registry,o)),o(...r)};return n.isRegistrySelector=!0,n}function Me(e){return e.isRegistryControl=!0,e}const Le="@@data/SELECT",De="@@data/RESOLVE_SELECT",ze="@@data/DISPATCH";const Fe={[Le]:Me((e=>({storeKey:t,selectorName:n,args:r})=>e.select(t)[n](...r))),[De]:Me((e=>({storeKey:t,selectorName:n,args:r})=>{const o=e.select(t)[n].hasResolver?"resolveSelect":"select";return e[o](t)[n](...r)})),[ze]:Me((e=>({storeKey:t,actionName:n,args:r})=>e.dispatch(t)[n](...r)))};var je=o(4224);const Ve=["@wordpress/block-directory","@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/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],He=[];let $e;try{$e=!je.env.IS_WORDPRESS_CORE}catch(Bi){$e=!0}const Ue=(e,t)=>{if(!Ve.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(!$e&&He.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 theme or plugin will inevitably break in the next version of WordPress."!==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 He.push(t),{lock:We,unlock:Ke}};function We(e,t){if(!e)throw new Error("Cannot lock an undefined object.");qe in e||(e[qe]={}),Ge.set(e[qe],t)}function Ke(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(qe in e))throw new Error("Cannot unlock an object that was not locked before. ");return Ge.get(e[qe])}const Ge=new WeakMap,qe=Symbol("Private API ID");const{lock:Ye,unlock:Xe}=Ue("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/data"),Ze=()=>e=>t=>xe(t)?t.then((t=>{if(t)return e(t)})):e(t),Qe=(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 Je(e){return()=>t=>n=>"function"==typeof n?n(e):t(n)}function et(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 tt=(nt="selectorName",e=>(t={},n)=>{const r=n[nt];if(void 0===r)return t;const o=e(t[r],n);return o===t[r]?t:{...t,[r]:o}})(((e=new(_e()),t)=>{switch(t.type){case"START_RESOLUTION":{const n=new(_e())(e);return n.set(et(t.args),{status:"resolving"}),n}case"FINISH_RESOLUTION":{const n=new(_e())(e);return n.set(et(t.args),{status:"finished"}),n}case"FAIL_RESOLUTION":{const n=new(_e())(e);return n.set(et(t.args),{status:"error",error:t.error}),n}case"START_RESOLUTIONS":{const n=new(_e())(e);for(const e of t.args)n.set(et(e),{status:"resolving"});return n}case"FINISH_RESOLUTIONS":{const n=new(_e())(e);for(const e of t.args)n.set(et(e),{status:"finished"});return n}case"FAIL_RESOLUTIONS":{const n=new(_e())(e);return t.args.forEach(((e,r)=>{const o={status:"error",error:void 0},i=t.errors[r];i&&(o.error=i),n.set(et(e),o)})),n}case"INVALIDATE_RESOLUTION":{const n=new(_e())(e);return n.delete(et(t.args)),n}}return e}));var nt;const rt=(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 tt(e,t)}return e};const ot=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 it=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 at=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!it(n))return;if(!ot(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 st=function(e,t,n=!1){return function(r,o){const i=e[t];if(!it(r))return;if(!n&&!ot(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 lt=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 ct=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 ut=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 dt=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 pt=function(e,t){return function(n){const r=e[t];if(it(n))return r[n]&&r[n].runs?r[n].runs:0}};class ft{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=at(this,"actions"),this.addFilter=at(this,"filters"),this.removeAction=st(this,"actions"),this.removeFilter=st(this,"filters"),this.hasAction=lt(this,"actions"),this.hasFilter=lt(this,"filters"),this.removeAllActions=st(this,"actions",!0),this.removeAllFilters=st(this,"filters",!0),this.doAction=ct(this,"actions"),this.applyFilters=ct(this,"filters",!0),this.currentAction=ut(this,"actions"),this.currentFilter=ut(this,"filters"),this.doingAction=dt(this,"actions"),this.doingFilter=dt(this,"filters"),this.didAction=pt(this,"actions"),this.didFilter=pt(this,"filters")}}const ht=function(){return new ft},mt=ht(),{addAction:gt,addFilter:bt,removeAction:vt,removeFilter:yt,hasAction:wt,hasFilter:kt,removeAllActions:_t,removeAllFilters:Et,doAction:xt,applyFilters:St,currentAction:Ct,currentFilter:It,doingAction:Tt,doingFilter:Pt,didAction:At,didFilter:Bt,actions:Nt,filters:Rt}=mt,Ot=Object.create(null);function Mt(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 Ot||(xt("deprecated",e,t,l),console.warn(l),Ot[l]=!0)}var Lt={};function Dt(e){return[e]}function zt(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 Ft(e,t){var n,r=t||Dt;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(Lt)||((i=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,s.set(Lt,i)),s.get(Lt)}(s=r.apply(null,a)),t.isUniqueByDependants||(t.lastDependants&&!zt(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),o=t.head;o;){if(zt(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 jt(e,t,n){const r=e[t];if(r)return r.get(et(n))}function Vt(e,t,n){Mt("wp.data.select( store ).getIsResolving",{since:"6.6",version:"6.8",alternative:"wp.data.select( store ).getResolutionState"});const r=jt(e,t,n);return r&&"resolving"===r.status}function Ht(e,t,n){return void 0!==jt(e,t,n)}function $t(e,t,n){const r=jt(e,t,n)?.status;return"finished"===r||"error"===r}function Ut(e,t,n){return"error"===jt(e,t,n)?.status}function Wt(e,t,n){const r=jt(e,t,n);return"error"===r?.status?r.error:null}function Kt(e,t,n){return"resolving"===jt(e,t,n)?.status}function Gt(e){return e}function qt(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}const Yt=Ft((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 Xt(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function Zt(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Qt(e,t,n){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:n}}function Jt(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function en(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function tn(e,t,n){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:n}}function nn(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function rn(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function on(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const an=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},sn=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,n])=>[e,t(n,e)]))),ln=(e,t)=>t instanceof Map?Object.fromEntries(t):t instanceof window.HTMLElement?null:t;function cn(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 un(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,...Fe},i=sn(o,(e=>e.isRegistryControl?e(n):e)),a=[Qe(n,e),Ze,Pe(i),Je(r)],s=[we(...a)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&s.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:ln}}));const{reducer:l,initialState:c}=t,u=Re({metadata:rt,root:l});return ve(u,{root:c},Ne(s))}(n,r,s,{registry:s,get dispatch(){return g},get select(){return _},get resolveSelect(){return S()}});Ye(u,a);const d=function(){const e={};return{isRunning:(t,n)=>e[t]&&e[t].get(an(n)),clear(t,n){e[t]&&e[t].delete(an(n))},markAsRunning(t,n){e[t]||(e[t]=new(_e())),e[t].set(an(n),!0)}}}();function p(e){return(...t)=>Promise.resolve(u.dispatch(e(...t)))}const f={...sn(t,p),...sn(r.actions,p)},h=cn(p),m=new Proxy((()=>{}),{get:(e,t)=>{const n=o[t];return n?h.get(n,t):f[t]}}),g=new Proxy(m,{apply:(e,t,[n])=>u.dispatch(n)});Ye(f,m);const b=r.resolvers?function(e){return sn(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(r.resolvers):{};function v(e,t){e.isRegistrySelector&&(e.registry=s);const n=(...t)=>{t=dn(e,t);const n=u.__unstableOriginalGetState();return e.isRegistrySelector&&(e.registry=s),e(n.root,...t)};n.__unstableNormalizeArgs=e.__unstableNormalizeArgs;const r=b[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();Ht(a,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),r.dispatch(Xt(t,e));try{const o=n.fulfill(...e);o&&await r.dispatch(o),r.dispatch(Zt(t,e))}catch(n){r.dispatch(Qt(t,e,n))}}),0))}const a=(...t)=>(i(t=dn(e,t)),e(...t));return a.hasResolver=!0,a}(n,t,r,u,d):(n.hasResolver=!1,n)}const y={...sn(e,(function(e){const t=(...t)=>{const n=u.__unstableOriginalGetState(),o=t&&t[0],i=t&&t[1],a=r?.selectors?.[o];return o&&a&&(t[1]=dn(a,i)),e(n.metadata,...t)};return t.hasResolver=!1,t})),...sn(r.selectors,v)},w=cn(v);for(const[e,t]of Object.entries(i))w.get(t,e);const k=new Proxy((()=>{}),{get:(e,t)=>{const n=i[t];return n?w.get(n,t):y[t]}}),_=new Proxy(k,{apply:(e,t,[n])=>n(u.__unstableOriginalGetState())});Ye(y,k);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,...p}=e;return sn(p,((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 sn(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:f,selectors:y,resolvers:b,getSelectors:()=>y,getResolveSelectors:S,getSuspendSelectors:()=>x,getActions:()=>f,subscribe:C}}};return Ye(s,a),s}function dn(e,t){return e.__unstableNormalizeArgs&&"function"==typeof e.__unstableNormalizeArgs&&t?.length?e.__unstableNormalizeArgs(t):t}const pn={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 fn(){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 hn(e){return"string"==typeof e?e:e.name}function mn(e={},t=null){const n={},r=fn();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=fn();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{Xe(o.store).registerPrivateActions(Xe(t).privateActionsOf(e)),Xe(o.store).registerPrivateSelectors(Xe(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=hn(o),a=n[i];return a?a.subscribe(e):t?t.subscribe(e,o):r.subscribe(e)},select:function(e){const r=hn(e);o?.add(r);const i=n[r];return i?i.getSelectors():t?.select(r)},resolveSelect:function(e){const r=hn(e);o?.add(r);const i=n[r];return i?i.getResolveSelectors():t&&t.resolveSelect(r)},suspendSelect:function(e){const r=hn(e);o?.add(r);const i=n[r];return i?i.getSuspendSelectors():t&&t.suspendSelect(r)},dispatch:function(e){const r=hn(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){Mt("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,(()=>un(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(pn);for(const[t,n]of Object.entries(e))s.register(un(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 Ye(l,{privateActionsOf:e=>{try{return Xe(n[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return Xe(n[e].store).privateSelectors}catch(e){return{}}}}),l}const gn=mn(),bn=Re,vn=(gn.resolveSelect,gn.suspendSelect,gn.subscribe,gn.registerGenericStore,gn.registerStore),yn=(gn.use,gn.register);var wn=function(){return wn=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},wn.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function kn(e){return e.toLowerCase()}var _n=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],En=/[^A-Z0-9]+/gi;function xn(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?_n:n,o=t.stripRegexp,i=void 0===o?En:o,a=t.transform,s=void 0===a?kn:a,l=t.delimiter,c=void 0===l?" ":l,u=Sn(Sn(e,r,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(s).join(c)}function Sn(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Cn(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 In(e,t){return void 0===t&&(t={}),xn(e,wn({delimiter:"",transform:Cn},t))}function Tn(e,t){return 0===t?e.toLowerCase():Cn(e,t)}function Pn(e,t){return void 0===t&&(t={}),In(e,wn({transform:Tn},t))}function An(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 Bn=o(8288),Nn=o.n(Bn);const Rn=An(console.error);function On(e,...t){try{return Nn().sprintf(e,...t)}catch(t){return t instanceof Error&&Rn("sprintf error: \n\n"+t.toString()),e}}var Mn,Ln,Dn,zn;Mn={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},Ln=["(","?"],Dn={")":["("],":":["?","?:"]},zn=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Fn={"!":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 jn(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(zn);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(Dn[n]){if(Dn[n][0]===o){n=Dn[n][1]||n;break}}else if(Ln.indexOf(o)>=0||Mn[o]<Mn[n]){a.push(o);break}i.push(o)}Dn[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=Fn[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 Vn={contextDelimiter:"",onMissingKey:null};function Hn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Vn)this.options[n]=void 0!==t&&n in t?t[n]:Vn[n]}Hn.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=jn(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},Hn.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 $n={plural_forms:e=>1===e?0:1},Un=/^i18n\.(n?gettext|has_translation)(_|$)/,Wn=((e,t,n)=>{const r=new Hn({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...$n,...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=>{Un.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,"":{...$n,...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,mt),Kn=(Wn.getLocaleData.bind(Wn),Wn.setLocaleData.bind(Wn),Wn.resetLocaleData.bind(Wn),Wn.subscribe.bind(Wn),Wn.__.bind(Wn)),Gn=Wn._x.bind(Wn),qn=Wn._n.bind(Wn),Yn=(Wn._nx.bind(Wn),Wn.isRTL.bind(Wn));Wn.hasTranslation.bind(Wn);var Xn={grad:.9,turn:360,rad:360/(2*Math.PI)},Zn=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Qn=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Jn=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},er=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},tr=function(e){return{r:Jn(e.r,0,255),g:Jn(e.g,0,255),b:Jn(e.b,0,255),a:Jn(e.a)}},nr=function(e){return{r:Qn(e.r),g:Qn(e.g),b:Qn(e.b),a:Qn(e.a,3)}},rr=/^#([0-9a-f]{3,8})$/i,or=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ir=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}},ar=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}},sr=function(e){return{h:er(e.h),s:Jn(e.s,0,100),l:Jn(e.l,0,100),a:Jn(e.a)}},lr=function(e){return{h:Qn(e.h),s:Qn(e.s),l:Qn(e.l),a:Qn(e.a,3)}},cr=function(e){return ar((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},ur=function(e){return{h:(t=ir(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},dr=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,pr=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fr=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hr=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,mr={string:[[function(e){var t=rr.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Qn(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Qn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=fr.exec(e)||hr.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:tr({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=dr.exec(e)||pr.exec(e);if(!t)return null;var n,r,o=sr({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Xn[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return cr(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 Zn(t)&&Zn(n)&&Zn(r)?tr({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(!Zn(t)||!Zn(n)||!Zn(r))return null;var a=sr({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return cr(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Zn(t)||!Zn(n)||!Zn(r))return null;var a=function(e){return{h:er(e.h),s:Jn(e.s,0,100),v:Jn(e.v,0,100),a:Jn(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return ar(a)},"hsv"]]},gr=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]},br=function(e){return"string"==typeof e?gr(e.trim(),mr.string):"object"==typeof e&&null!==e?gr(e,mr.object):[null,void 0]},vr=function(e,t){var n=ur(e);return{h:n.h,s:Jn(n.s+100*t,0,100),l:n.l,a:n.a}},yr=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},wr=function(e,t){var n=ur(e);return{h:n.h,s:n.s,l:Jn(n.l+100*t,0,100),a:n.a}},kr=function(){function e(e){this.parsed=br(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Qn(yr(this.rgba),2)},e.prototype.isDark=function(){return yr(this.rgba)<.5},e.prototype.isLight=function(){return yr(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=nr(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?or(Qn(255*o)):"","#"+or(t)+or(n)+or(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return nr(this.rgba)},e.prototype.toRgbString=function(){return t=(e=nr(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 lr(ur(this.rgba))},e.prototype.toHslString=function(){return t=(e=lr(ur(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=ir(this.rgba),{h:Qn(e.h),s:Qn(e.s),v:Qn(e.v),a:Qn(e.a,3)};var e},e.prototype.invert=function(){return _r({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),_r(vr(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),_r(vr(this.rgba,-e))},e.prototype.grayscale=function(){return _r(vr(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),_r(wr(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),_r(wr(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?_r({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Qn(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ur(this.rgba);return"number"==typeof e?_r({h:e,s:t.s,l:t.l,a:t.a}):Qn(t.h)},e.prototype.isEqual=function(e){return this.toHex()===_r(e).toHex()},e}(),_r=function(e){return e instanceof kr?e:new kr(e)},Er=[],xr=function(e){e.forEach((function(e){Er.indexOf(e)<0&&(e(kr,mr),Er.push(e))}))};function Sr(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 p in n){var f=(o=l,a=i[p],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));f<c&&(c=f,u=p)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}var Cr=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ir=function(e){return.2126*Cr(e.r)+.7152*Cr(e.g)+.0722*Cr(e.b)};function Tr(e){e.prototype.luminance=function(){return e=Ir(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=Ir(i))>(l=Ir(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}}function Pr(e,t){0}function Ar(e){Pr(e.parentNode),e.parentNode.removeChild(e)}function Br(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)Ar(e);else{let t=e.attributes.length;for(;t--;){const{name:n}=e.attributes[t];n.startsWith("on")&&e.removeAttribute(n)}}}return t.innerHTML}function Nr(e){e=Br(e);const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}const Rr=bn({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}}),Or=Ft((e=>Object.values(e.formatTypes)),(e=>[e.formatTypes]));function Mr(e,t){return e.formatTypes[t]}function Lr(e,t){const n=Or(e);return n.find((({className:e,tagName:n})=>null===e&&t===n))||n.find((({className:e,tagName:t})=>null===e&&"*"===t))}function Dr(e,t){return Or(e).find((({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0))}function zr(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Array.isArray(e)?e:[e]}}function Fr(e){return{type:"REMOVE_FORMAT_TYPES",names:Array.isArray(e)?e:[e]}}const jr=un("core/rich-text",{reducer:Rr,selectors:n,actions:r});function Vr(e){return gn.select(e)}function Hr({implementation:e},t){return Hr.body||(Hr.body=e.createHTMLDocument("").body),Hr.body.innerHTML=t,Hr.body}function $r(e,t){return e.formats=e.formats.concat(t.formats),e.replacements=e.replacements.concat(t.replacements),e.text+=t.text,e}yn(jr);const Ur="",Wr="\ufeff";const Kr=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function Gr(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function qr(e){return e.replace(/</g,"&lt;")}function Yr(e){return function(e){return e.replace(/>/g,"&gt;")}(function(e){return e.replace(/"/g,"&quot;")}(Gr(e)))}function Xr(e){return!Kr.test(e)}function Zr(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 Qr(e){return Vr(jr).getFormatType(e)}function Jr(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 eo({type:e,tagName:t,attributes:n,unregisteredAttributes:r,object:o,boundaryClass:i,isEditableTree:a}){const s=Qr(e);let l={};if(i&&a&&(l["data-rich-text-format-boundary"]="true"),!s)return n&&(l={...n,...l}),{type:e,attributes:Jr(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:Jr(l,a)}}function to(e,t,n){do{if(e[n]!==t[n])return!1}while(n--);return!0}function no({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:p,placeholder:f}){const{formats:h,replacements:m,text:g,start:b,end:v}=e,y=h.length+1,w=n(),k=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=>Zr(t,e)))||s.splice(n,1)}if(0===s.length)return t}return s||t}(e),_=k[k.length-1];let E,x;r(w,"");for(let e=0;e<y;e++){const n=g.charAt(e),y=p&&(!x||"\n"===x),k=h[e];let S=o(w);if(k&&k.forEach(((e,t)=>{if(S&&E&&to(k,E,t))return void(S=o(S));const{type:n,tagName:c,attributes:u,unregisteredAttributes:d}=e,f=p&&e===_,h=i(S),m=r(h,eo({type:n,tagName:c,attributes:u,unregisteredAttributes:d,boundaryClass:f,isEditableTree:p}));a(S)&&0===s(S).length&&l(S),S=r(m,"")})),0===e&&(u&&0===b&&u(w,S),d&&0===v&&d(w,S)),n===Ur){const t=m[e];if(!t)continue;const{type:n,attributes:o,innerHTML:a}=t,s=Qr(n);p||"script"!==n?!1===s?.contentEditable?(S=r(i(S),eo({...t,isEditableTree:p,boundaryClass:b===e&&v===e+1})),a&&r(S,{html:a})):S=r(i(S),eo({...t,object:!0,isEditableTree:p})):(S=r(i(S),eo({type:"script",isEditableTree:p})),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:p?{"data-rich-text-line-break":"true"}:void 0,object:!0}),S=r(i(S),""));u&&b===e+1&&u(w,S),d&&v===e+1&&d(w,S),y&&e===g.length&&(r(i(S),Wr),f&&0===g.length&&r(i(S),{type:"span",attributes:{"data-rich-text-placeholder":f,style:"pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;"}})),E=k,x=n}return w}function ro({value:e,preserveWhiteSpace:t}){return fo(no({value:e,preserveWhiteSpace:t,createEmpty:oo,append:ao,getLastChild:io,getParent:lo,isText:co,getText:uo,remove:po,appendText:so}).children)}function oo(){return{}}function io({children:e}){return e&&e[e.length-1]}function ao(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function so(e,t){e.text+=t}function lo({parent:e}){return e}function co({text:e}){return"string"==typeof e}function uo({text:e}){return e}function po(e){const t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function fo(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)Xr(e)&&(o+=` ${e}="${Yr(t[e])}"`);return n?`<${e}${o}>`:`<${e}${o}>${fo(r)}</${e}>`}(e):qr(e.text.replace(/&/g,"&amp;")))).join("")}function ho({tagName:e,attributes:t}){let n;if(t&&t.class&&(n=Vr(jr).getFormatTypeForClassName(t.class),n&&(t.class=` ${t.class} `.replace(` ${n.className} `," ").trim(),t.class||delete t.class)),n||(n=Vr(jr).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],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}}class mo{#e;static empty(){return new mo}static fromPlainText(e){return new mo(go({text:e}))}static fromHTMLString(e){return new mo(go({html:e}))}static fromHTMLElement(e,t={}){const{preserveWhiteSpace:n=!1}=t,r=n?e:yo(e),o=new mo(go({element:r}));return Object.defineProperty(o,"originalHTML",{value:e.innerHTML}),o}constructor(e={formats:[],replacements:[],text:""}){this.#e=e}toPlainText(){return function({text:e}){return e.replace(Ur,"")}(this.#e)}toHTMLString({preserveWhiteSpace:e}={}){return this.originalHTML||ro({value:this.#e,preserveWhiteSpace:e})}valueOf(){return this.toHTMLString()}toString(){return this.toHTMLString()}toJSON(){return this.toHTMLString()}get length(){return this.text.length}get formats(){return this.#e.formats}get replacements(){return this.#e.replacements}get text(){return this.#e.text}}for(const e of Object.getOwnPropertyNames(String.prototype))mo.prototype.hasOwnProperty(e)||Object.defineProperty(mo.prototype,e,{value(...t){return this.toHTMLString()[e](...t)}});function go({element:e,text:t,html:n,range:r,__unstableIsEditableTree:o}={}){return n instanceof mo?{text:n.text,formats:n.formats,replacements:n.replacements}:"string"==typeof t&&t.length>0?{formats:Array(t.length),replacements:Array(t.length),text:t}:("string"==typeof n&&n.length>0&&(e=Hr(document,n)),"object"!=typeof e?{formats:[],replacements:[],text:""}:_o({element:e,range:r,isEditableTree:o}))}function bo(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 vo(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 yo(e,t=!0){const n=e.cloneNode(!0);return n.normalize(),Array.from(n.childNodes).forEach(((e,n,r)=>{if(e.nodeType===e.TEXT_NODE){let o=e.nodeValue;/[\n\t\r\f]/.test(o)&&(o=o.replace(/[\n\t\r\f]+/g," ")),-1!==o.indexOf(" ")&&(o=o.replace(/ {2,}/g," ")),0===n&&o.startsWith(" ")?o=o.slice(1):t&&n===r.length-1&&o.endsWith(" ")&&(o=o.slice(0,-1)),e.nodeValue=o}else e.nodeType===e.ELEMENT_NODE&&yo(e,!1)})),n}const wo="\r";function ko(e){return e.replace(new RegExp(`[${Wr}${Ur}${wo}]`,"gu"),"")}function _o({element:e,range:t,isEditableTree:n}){const r={formats:[],replacements:[],text:""};if(!e)return r;if(!e.hasChildNodes())return bo(r,e,t,{formats:[],replacements:[],text:""}),r;const o=e.childNodes.length;for(let i=0;i<o;i++){const a=e.childNodes[i],s=a.nodeName.toLowerCase();if(a.nodeType===a.TEXT_NODE){const u=ko(a.nodeValue);bo(r,a,t=vo(a,t,ko),{text:u}),r.formats.length+=u.length,r.replacements.length+=u.length,r.text+=u;continue}if(a.nodeType!==a.ELEMENT_NODE)continue;if(n&&"br"===s&&!a.getAttribute("data-rich-text-line-break")){bo(r,a,t,{formats:[],replacements:[],text:""});continue}if("script"===s){const d={formats:[,],replacements:[{type:s,attributes:{"data-rich-text-script":a.getAttribute("data-rich-text-script")||encodeURIComponent(a.innerHTML)}}],text:Ur};bo(r,a,t,d),$r(r,d);continue}if("br"===s){bo(r,a,t,{formats:[],replacements:[],text:""}),$r(r,go({text:"\n"}));continue}const l=ho({tagName:s,attributes:Eo({element:a})});if(!1===l?.formatType?.contentEditable){delete l.formatType,bo(r,a,t,{formats:[],replacements:[],text:""}),$r(r,{formats:[,],replacements:[{...l,innerHTML:a.innerHTML}],text:Ur});continue}l&&delete l.formatType;const c=_o({element:a,range:t,isEditableTree:n});if(bo(r,a,t,c),!l||a.getAttribute("data-rich-text-placeholder"))$r(r,c);else if(0===c.text.length)l.attributes&&$r(r,{formats:[,],replacements:[l],text:Ur});else{function p(e){if(p.formats===e)return p.newFormats;const t=e?[l,...e]:[l];return p.formats=e,p.newFormats=t,t}p.newFormats=[l],$r(r,{...c,formats:Array.from(c.formats,p)})}}return r}function Eo({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 xo(e,t,n=e.start,r=e.end){const{formats:o,replacements:i,text:a}=e;"string"==typeof t&&(t=go({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];Zr(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 So(e,t,n){return xo(e,go(),t,n)}const Co="block-default",Io=["attributes","supports","save","migrate","isEligible","apiVersion"],To={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},aspectRatio:{value:["dimensions","aspectRatio"],support:["dimensions","aspectRatio"],useEngine:!0},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},backgroundImage:{value:["background","backgroundImage"],support:["background","backgroundImage"],useEngine:!0},backgroundRepeat:{value:["background","backgroundRepeat"],support:["background","backgroundRepeat"],useEngine:!0},backgroundSize:{value:["background","backgroundSize"],support:["background","backgroundSize"],useEngine:!0},backgroundPosition:{value:["background","backgroundPosition"],support:["background","backgroundPosition"],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},textAlign:{value:["typography","textAlign"],support:["typography","textAlign"],useEngine:!1},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}},Po={link:"a:where(:not(.wp-element-button))",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"},Ao={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"dimensions.aspectRatios":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0};function Bo(){return Vr(na).getFreeformFallbackBlockName()}function No(){return Vr(na).getUnregisteredFallbackBlockName()}function Ro(){return Vr(na).getDefaultBlockName()}function Oo(e){return Vr(na)?.getBlockType(e)}function Mo(){return Vr(na).getBlockTypes()}function Lo(e,t,n){return Vr(na).getBlockSupport(e,t,n)}function Do(e,t,n){return Vr(na).hasBlockSupport(e,t,n)}function zo(e){return"core/block"===e?.name}function Fo(e){return"core/template-part"===e?.name}xr([Sr,Tr]);const jo=["#191e23","#f8f9f9"];function Vo(e){var t;return Object.entries(null!==(t=Oo(e.name)?.attributes)&&void 0!==t?t:{}).every((([t,n])=>{const r=e.attributes[t];return n.hasOwnProperty("default")?r===n.default:"rich-text"===n.type?!r?.length:void 0===r}))}function Ho(e){return e.name===Ro()&&Vo(e)}function $o(e){return!!e&&("string"==typeof e||(0,ae.isValidElement)(e)||"function"==typeof e||e instanceof ae.Component)}function Uo(e){return"string"==typeof e?Oo(e):e}function Wo(e,t,n="visual"){const{__experimentalLabel:r,title:o}=e,i=r&&r(t,{context:n});return i?i.toPlainText?i.toPlainText():Nr(i):o}function Ko(e){return void 0!==e.default?e.default:"rich-text"===e.type?new mo:void 0}function Go(e,t){const n=Oo(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];if(void 0!==o)"rich-text"===r.type?o instanceof mo?e[n]=o:"string"==typeof o&&(e[n]=mo.fromHTMLString(o)):"string"===r.type&&o instanceof mo?e[n]=o.toHTMLString():e[n]=o;else{const t=Ko(r);void 0!==t&&(e[n]=t)}return-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{})}function qo(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const Yo=[{slug:"text",title:Kn("Text")},{slug:"media",title:Kn("Media")},{slug:"design",title:Kn("Design")},{slug:"widgets",title:Kn("Widgets")},{slug:"theme",title:Kn("Theme")},{slug:"embed",title:Kn("Embeds")},{slug:"reusable",title:Kn("Reusable blocks")}];function Xo(e){return e.reduce(((e,t)=>({...e,[t.name]:t})),{})}function Zo(e){return e.reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[])}function Qo(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 Jo=bn({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.blockHooks&&r.blockHooks&&(i={...o,...i,blockHooks:r.blockHooks}),void 0===o.allowedBlocks&&r.allowedBlocks&&(i={...o,...i,allowedBlocks:r.allowedBlocks})):(i=Object.fromEntries(Object.entries(r).filter((([,e])=>null!=e)).map((([e,t])=>[Pn(e),t]))),i.name=n),i?{...e,[n]:i}:e;case"REMOVE_BLOCK_TYPES":return qo(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 qo(e,t.names)}return e},blockTypes:function(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Xo(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return qo(e,t.names)}return e},blockStyles:function(e={},t){var n;switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(Xo(t.blockTypes)).map((([t,n])=>{var r,o;return[t,Zo([...(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":const r={};return t.blockNames.forEach((n=>{var o;r[n]=Zo([...null!==(o=e[n])&&void 0!==o?o:[],...t.styles])})),{...e,...r};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:(null!==(n=e[t.blockName])&&void 0!==n?n:[]).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(Xo(t.blockTypes)).map((([t,n])=>{var r,o;return[t,Zo([...(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]:Zo([...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:Qo("SET_DEFAULT_BLOCK_NAME"),freeformFallbackBlockName:Qo("SET_FREEFORM_FALLBACK_BLOCK_NAME"),unregisteredFallbackBlockName:Qo("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),groupingBlockName:Qo("SET_GROUPING_BLOCK_NAME"),categories:function(e=Yo,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 qo(e,t.namespace)}return e},blockBindingsSources:function(e={},t){var n;return"REGISTER_BLOCK_BINDINGS_SOURCE"===t.type?{...e,[t.sourceName]:{label:t.sourceLabel,getValue:t.getValue,setValue:t.setValue,setValues:t.setValues,getPlaceholder:t.getPlaceholder,lockAttributesEditing:null===(n=t.lockAttributesEditing)||void 0===n||n}}:e}});var ei=o(2601),ti=o.n(ei);const ni=(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},ri=(e,t)=>"string"==typeof t?ii(e,t):t,oi=Ft((e=>Object.values(e.blockTypes)),(e=>[e.blockTypes]));function ii(e,t){return e.blockTypes[t]}function ai(e,t){return e.blockStyles[t]}const si=Ft(((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 li(e,t,n,r){const o=si(e,t,r),i=o?.find((r=>{if(Array.isArray(r.isActive)){const o=ii(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 ci(e,t,n){const r=si(e,t,n);return[...r].reverse().find((({isDefault:e})=>!!e))||r[0]}function ui(e){return e.categories}function di(e){return e.collections}function pi(e){return e.defaultBlockName}function fi(e){return e.freeformFallbackBlockName}function hi(e){return e.unregisteredFallbackBlockName}function mi(e){return e.groupingBlockName}const gi=Ft(((e,t)=>oi(e).filter((e=>e.parent?.includes(t))).map((({name:e})=>e))),(e=>[e.blockTypes])),bi=(e,t,n,r)=>{const o=ri(e,t);return o?.supports?ni(o.supports,n,r):r};function vi(e,t,n,r){return!!bi(e,t,n,r)}function yi(e,t,n){const r=ri(e,t),o=Be([e=>ti()(null!=e?e:""),e=>e.toLowerCase(),e=>e.trim()]),i=o(n),a=Be([o,e=>e.includes(i)]);return a(r.title)||r.keywords?.some(a)||a(r.category)||"string"==typeof r.description&&a(r.description)}const wi=(e,t)=>gi(e,t).length>0,ki=(e,t)=>gi(e,t).some((t=>vi(e,t,"inserter",!0))),_i=Ft(((e,t)=>{const n=ii(e,t);return!!n&&Object.entries(n.attributes).some((([,{__experimentalRole:e}])=>"content"===e))}),((e,t)=>[e.blockTypes[t]?.attributes])),Ei=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textDecoration","textTransform","letterSpacing"];function xi(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)&&"button"!==n&&"caption"!==n&&"text"!==n)&&(!("letterSpacing"===e&&!t&&!["heading","h1","h2","h3","h4","h5","h6"].includes(n)&&"button"!==n&&"caption"!==n&&"text"!==n)&&!("textColumns"===e&&!t))))))}const Si=Ft(((e,t,n)=>{if(!t)return xi(Ei,t,n);const r=ii(e,t);if(!r)return[];const o=[];return r?.supports?.spacing?.blockGap&&o.push("blockGap"),r?.supports?.shadow&&o.push("shadow"),Object.keys(To).forEach((e=>{To[e].support&&(To[e].requiresOptOut&&To[e].support[0]in r.supports&&!1!==ni(r.supports,To[e].support)||ni(r.supports,To[e].support,!1))&&o.push(e)})),xi(o,t,n)}),((e,t)=>[e.blockTypes[t]]));function Ci(e,t){return e.bootstrappedBlockTypes[t]}function Ii(e){return e.unprocessedBlockTypes}function Ti(e){return e.blockBindingsSources}function Pi(e,t){return e.blockBindingsSources[t]}var Ai=o(6479);const Bi=(...e)=>window?.console?.error?.(...e),Ni={common:"text",formatting:"text",layout:"design"};function Ri(e=[],t=[]){const n=[...e];return t.forEach((e=>{const t=n.findIndex((t=>t.name===e.name));-1!==t?n[t]={...n[t],...e}:n.push(e)})),n}const Oi=(e,t)=>({select:n})=>{const r=n.getBootstrappedBlockType(e),o={name:e,icon:Co,keywords:[],attributes:{},providesContext:{},usesContext:[],selectors:{},supports:{},styles:[],blockHooks:{},save:()=>null,...r,...t,variations:Ri(r?.variations,t?.variations)},i=St("blocks.registerBlockType",o,e,null);if(i.description&&"string"!=typeof i.description&&Mt("Declaring non-string block descriptions",{since:"6.2"}),i.deprecated&&(i.deprecated=i.deprecated.map((e=>Object.fromEntries(Object.entries(St("blocks.registerBlockType",{...qo(o,Io),...e},o.name,e)).filter((([e])=>Io.includes(e))))))),Ce(i))if("function"==typeof i.save)if(!("edit"in i)||(0,Ai.isValidElementType)(i.edit))if(Ni.hasOwnProperty(i.category)&&(i.category=Ni[i.category]),"category"in i&&!n.getCategories().some((({slug:e})=>e===i.category))&&(((...e)=>{window?.console?.warn?.(...e)})('The block "'+e+'" is registered with an invalid category "'+i.category+'".'),delete i.category),"title"in i&&""!==i.title)if("string"==typeof i.title){if(i.icon=function(e){if($o(e=e||Co))return{src:e};if("background"in e){const t=_r(e.background),n=e=>t.contrast(e),r=Math.max(...jo.map(n));return{...e,foreground:e.foreground?e.foreground:jo.find((e=>n(e)===r)),shadowColor:t.alpha(.3).toRgbString()}}return e}(i.icon),$o(i.icon.src))return i;Bi("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 Bi("Block titles must be strings.");else Bi('The block "'+e+'" must have a title.');else Bi('The "edit" property must be a valid component.');else Bi('The "save" property must be a valid function.');else Bi("Block settings must be a valid object.")};function Mi(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Array.isArray(e)?e:[e]}}function Li(){return({dispatch:e,select:t})=>{const n=[];for(const[r,o]of Object.entries(t.getUnprocessedBlockTypes())){const t=e(Oi(r,o));t&&n.push(t)}n.length&&e.addBlockTypes(n)}}function Di(){return Mt('wp.data.dispatch( "core/blocks" ).__experimentalReapplyBlockFilters',{since:"6.4",alternative:"reapplyBlockFilters"}),Li()}function zi(e){return{type:"REMOVE_BLOCK_TYPES",names:Array.isArray(e)?e:[e]}}function Fi(e,t){return{type:"ADD_BLOCK_STYLES",styles:Array.isArray(t)?t:[t],blockNames:Array.isArray(e)?e:[e]}}function ji(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Array.isArray(t)?t:[t],blockName:e}}function Vi(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Array.isArray(t)?t:[t],blockName:e}}function Hi(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Array.isArray(t)?t:[t],blockName:e}}function $i(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function Ui(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function Wi(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Ki(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Gi(e){return{type:"SET_CATEGORIES",categories:e}}function qi(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function Yi(e,t,n){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:n}}function Xi(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}function Zi(e,t){return{type:"ADD_BOOTSTRAPPED_BLOCK_TYPE",name:e,blockType:t}}function Qi(e,t){return({dispatch:n})=>{n({type:"ADD_UNPROCESSED_BLOCK_TYPE",name:e,blockType:t});const r=n(Oi(e,t));r&&n.addBlockTypes(r)}}function Ji(e){return{type:"REGISTER_BLOCK_BINDINGS_SOURCE",sourceName:e.name,sourceLabel:e.label,getValue:e.getValue,setValue:e.setValue,setValues:e.setValues,getPlaceholder:e.getPlaceholder,lockAttributesEditing:e.lockAttributesEditing}}const{lock:ea,unlock:ta}=Ue("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/blocks"),na=un("core/blocks",{reducer:Jo,selectors:i,actions:s});yn(na),ta(na).registerPrivateSelectors(a),ta(na).registerPrivateActions(l);const ra={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let oa;const ia=new Uint8Array(16);function aa(){if(!oa&&(oa="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oa(ia)}const sa=[];for(let e=0;e<256;++e)sa.push((e+256).toString(16).slice(1));function la(e,t=0){return sa[e[t+0]]+sa[e[t+1]]+sa[e[t+2]]+sa[e[t+3]]+"-"+sa[e[t+4]]+sa[e[t+5]]+"-"+sa[e[t+6]]+sa[e[t+7]]+"-"+sa[e[t+8]]+sa[e[t+9]]+"-"+sa[e[t+10]]+sa[e[t+11]]+sa[e[t+12]]+sa[e[t+13]]+sa[e[t+14]]+sa[e[t+15]]}const ca=function(e,t,n){if(ra.randomUUID&&!t&&!e)return ra.randomUUID();const r=(e=e||{}).random||(e.rng||aa)();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 la(r)};function ua(e,t={},n=[]){const r=Go(e,t);return{clientId:ca(),name:e,isValid:!0,attributes:r,innerBlocks:n}}function da(e=[]){return e.map((e=>{const t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],[n,r,o=[]]=t;return ua(n,r,da(o))}))}function pa(e,t={},n){const r=ca(),o=Go(e.name,{...e.attributes,...t});return{...e,clientId:r,attributes:o,innerBlocks:n||e.innerBlocks.map((e=>pa(e)))}}function fa(e,t={},n){const r=ca();return{...e,clientId:r,attributes:{...e.attributes,...t},innerBlocks:n||e.innerBlocks.map((e=>fa(e)))}}const ha=(e,t,n)=>{if(!n.length)return!1;const r=n.length>1,o=n[0].name;if(!(ma(e)||!r||e.isMultiBlock))return!1;if(!ma(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)&&!ma(e))&&(!(!r&&"from"===t&&ga(i.name)&&ga(e.blockName))&&!!wa(e,n))},ma=e=>e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*"),ga=e=>e===Vr(na).getGroupingBlockName();function ba(e){if(!e.length)return[];const t=(e=>e.length?Mo().filter((t=>!!va(ya("from",t.name),(t=>ha(t,"from",e))))):[])(e),n=(e=>{if(!e.length)return[];const t=Oo(e[0].name);return(t?ya("to",t.name):[]).filter((t=>t&&ha(t,"to",e))).map((e=>e.blocks)).flat().map(Oo)})(e);return[...new Set([...t,...n])]}function va(e,t){const n=ht();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 ya(e,t){if(void 0===t)return Mo().map((({name:t})=>ya(e,t))).flat();const n=Uo(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)&&(!!ma(e)||e.blocks.every((e=>o.supportedMobileTransforms.includes(e)))))):o[e];return a.map((e=>({...e,blockName:r,usingMobileTransformations:i})))}function wa(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 ka(e,t){const n=Array.isArray(e)?e:[e],r=n.length>1,o=n[0],i=o.name,a=ya("from",t),s=va(ya("to",i),(e=>"block"===e.type&&(ma(e)||-1!==e.blocks.indexOf(t))&&(!r||e.isMultiBlock)&&wa(e,n)))||va(a,(e=>"block"===e.type&&(ma(e)||-1!==e.blocks.indexOf(i))&&(!r||e.isMultiBlock)&&wa(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=>!Oo(e.name))))return null;if(!l.some((e=>e.name===t)))return null;const c=l.map(((t,n,r)=>St("blocks.switchToBlockType.transformedBlock",t,e,n,r)));return c}const _a=(e,t)=>{try{var n;return ua(e,t.attributes,(null!==(n=t.innerBlocks)&&void 0!==n?n:[]).map((e=>_a(e.name,e))))}catch{return ua("core/missing",{originalName:e,originalContent:"",originalUndelimitedContent:""})}};let Ea,xa,Sa,Ca;const Ia=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function Ta(e,t,n,r,o){return{blockName:e,attrs:t,innerBlocks:n,innerHTML:r,innerContent:o}}function Pa(e){return Ta(null,{},[],e,[e])}const Aa=e=>{Ea=e,xa=0,Sa=[],Ca=[],Ia.lastIndex=0;do{}while(Ba());return Sa};function Ba(){const e=Ca.length,t=function(){const e=Ia.exec(Ea);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/",p=d+i,f=!!a,h=f?function(e){try{return JSON.parse(e)}catch(e){return null}}(a):{};if(u)return["void-block",p,h,t,l];if(c)return["block-closer",p,null,t,l];return["block-opener",p,h,t,l]}(),[n,r,o,i,a]=t,s=i>xa?xa:null;switch(n){case"no-more-tokens":if(0===e)return Na(),!1;if(1===e)return Oa(),!1;for(;0<Ca.length;)Oa();return!1;case"void-block":return 0===e?(null!==s&&Sa.push(Pa(Ea.substr(s,i-s))),Sa.push(Ta(r,o,[],"",[])),xa=i+a,!0):(Ra(Ta(r,o,[],"",[]),i,a),xa=i+a,!0);case"block-opener":return Ca.push(function(e,t,n,r,o){return{block:e,tokenStart:t,tokenLength:n,prevOffset:r||t+n,leadingHtmlStart:o}}(Ta(r,o,[],"",[]),i,a,i+a,s)),xa=i+a,!0;case"block-closer":if(0===e)return Na(),!1;if(1===e)return Oa(i),xa=i+a,!0;const t=Ca.pop(),n=Ea.substr(t.prevOffset,i-t.prevOffset);return t.block.innerHTML+=n,t.block.innerContent.push(n),t.prevOffset=i+a,Ra(t.block,t.tokenStart,t.tokenLength,i+a),xa=i+a,!0;default:return Na(),!1}}function Na(e){const t=e||Ea.length-xa;0!==t&&Sa.push(Pa(Ea.substr(xa,t)))}function Ra(e,t,n,r){const o=Ca[Ca.length-1];o.block.innerBlocks.push(e);const i=Ea.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 Oa(e){const{block:t,leadingHtmlStart:n,prevOffset:r,tokenStart:o}=Ca.pop(),i=e?Ea.substr(r,e-r):Ea.substr(r);i&&(t.innerHTML+=i,t.innerContent.push(i)),null!==n&&Sa.push(Pa(Ea.substr(n,o-n))),Sa.push(t)}const Ma=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function La(e,t){const n=function(e){const t=[];let n,r=e;for(;n=r.match(Ma);){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 Da({children:e,...t}){let n="";return ae.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(n+=e)})),(0,ae.createElement)("div",{dangerouslySetInnerHTML:{__html:n},...t})}function za(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),xn(e,wn({delimiter:"."},t))}(e,wn({delimiter:"-"},t))}const{Provider:Fa,Consumer:ja}=(0,ae.createContext)(void 0),Va=(0,ae.forwardRef)((()=>null)),Ha=new Set(["string","boolean","number"]),$a=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Ua=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"]),Wa=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"]),Ka=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 Ga(e,t){return t.some((t=>0===e.indexOf(t)))}function qa(e){return"key"===e||"children"===e}function Ya(e,t){return"style"===e?function(e){if(!Ce(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=es(n)+":"+ts(n,r)}return t}(t):t}const Xa=["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)),{}),Za=["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)),{}),Qa=["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 Ja(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return Za[t]?Za[t]:Xa[t]?za(Xa[t]):Qa[t]?Qa[t]:t}function es(e){return e.startsWith("--")?e:Ga(e,["ms","O","Moz","Webkit"])?"-"+za(e):za(e)}function ts(e,t){return"number"!=typeof t||0===t||Ka.has(e)?t:t+"px"}function ns(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return os(e,t,n);switch(typeof e){case"string":return qr(Gr(e));case"number":return e.toString()}const{type:r,props:o}=e;switch(r){case ae.StrictMode:case ae.Fragment:return os(o.children,t,n);case Da:const{children:e,...r}=o;return rs(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return rs(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=ns(o.render(),n,r);return i}(r,o,t,n):ns(r(o,n),t,n)}switch(r&&r.$$typeof){case Fa.$$typeof:return os(o.children,o.value,n);case ja.$$typeof:return ns(o.children(t||r._currentValue),t,n);case Va.$$typeof:return ns(r.render(o),t,n)}return""}function rs(e,t,n,r={}){let o="";if("textarea"===e&&t.hasOwnProperty("value")){o=os(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=os(t.children,n,r));if(!e)return o;const i=function(e){let t="";for(const n in e){const r=Ja(n);if(!Xr(r))continue;let o=Ya(n,e[n]);if(!Ha.has(typeof o))continue;if(qa(n))continue;const i=Ua.has(r);if(i&&!1===o)continue;const a=i||Ga(n,["data-","aria-"])||Wa.has(r);("boolean"!=typeof o||a)&&(t+=" "+r,i||("string"==typeof o&&(o=Yr(o)),t+='="'+o+'"'))}return t}(t);return $a.has(e)?"<"+e+i+"/>":"<"+e+i+">"+o+"</"+e+">"}function os(e,t,n={}){let r="";e=Array.isArray(e)?e:[e];for(let o=0;o<e.length;o++){r+=ns(e[o],t,n)}return r}const is=ns;function as(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 ss(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return as(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 ls(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:ls(i[s++],t))).join("\n").replace(/\n+/g,"\n").trim();return n?ms(r,o,l):l}function cs(e){const t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return St("blocks.getBlockDefaultClassName",t,e)}function us(e){const t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return St("blocks.getBlockMenuDefaultClassName",t,e)}const ds={},ps={};function fs(e,t,n){const r=Uo(e);return is(function(e,t,n=[]){const r=Uo(e);if(!r?.save)return null;let{save:o}=r;if(o.prototype instanceof ae.Component){const e=new o({attributes:t});o=e.render.bind(e)}ds.blockType=r,ds.attributes=t,ps.innerBlocks=n;let i=o({attributes:t,innerBlocks:n});if(null!==i&&"object"==typeof i&&kt("blocks.getSaveContent.extraProps")&&!(r.apiVersion>1)){const e=St("blocks.getSaveContent.extraProps",{...i.props},r,t);ss(e,i.props)||(i=(0,ae.cloneElement)(i,e))}return St("blocks.getSaveElement",i,r,t)}(r,t,n))}function hs(e){let t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=fs(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function ms(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 gs(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return ls(e.__unstableBlockSource);const n=e.name,r=hs(e);if(n===No()||!t&&n===Bo())return r;const o=Oo(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 ms(n,i,r)}function bs(e,t){return(Array.isArray(e)?e:[e]).map((e=>gs(e,t))).join("\n\n")}var vs=/^#[xX]([A-Fa-f0-9]+)$/,ys=/^#([0-9]+)$/,ws=/^([A-Za-z0-9]+)$/,ks=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(vs);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(ys))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(ws))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),_s=/[A-Za-z]/,Es=/\r\n?/g;function xs(e){return ks.test(e)}function Ss(e){return _s.test(e)}var Cs=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||Ss(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(){xs(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();xs(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();xs(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(!xs(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();xs(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();xs(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();xs(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();xs(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();xs(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();xs(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();xs(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();xs(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();xs(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();xs(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();xs(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();xs(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||Ss(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(Es,"\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}(),Is=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 Cs(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 Ts=o(1202),Ps=o.n(Ts);let As;function Bs(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===As&&(As=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),As.innerHTML=e;const t=As.textContent;return As.innerHTML="",t}function Ns(){function e(e){return(t,...n)=>e("Block validation: "+t,...n)}return{error:e(console.error),warning:e(console.warn),getItems:()=>[]}}const Rs=/[\t\n\r\v\f ]+/g,Os=/^[\t\n\r\v\f ]*$/,Ms=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,Ls=["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"],Ds=[...Ls,"autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],zs=[e=>e,function(e){return $s(e).join(" ")}],Fs=/^[\da-z]+$/i,js=/^#\d+$/,Vs=/^#x[\da-f]+$/i;class Hs{parse(e){if(t=e,Fs.test(t)||js.test(t)||Vs.test(t))return Bs("&"+e+";");var t}}function $s(e){return e.trim().split(Rs)}function Us(e){return e.attributes.filter((e=>{const[t,n]=e;return n||0===t.indexOf("data-")||Ds.includes(t)}))}function Ws(e,t,n=Ns()){let r=e.chars,o=t.chars;for(let e=0;e<zs.length;e++){const t=zs[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 Ks(e){return 0===parseFloat(e)?"0":0===e.indexOf(".")?"0"+e:e}function Gs(e){return $s(e).map(Ks).join(" ").replace(Ms,"url($1)")}function qs(e){const t=e.replace(/;?\s*$/,"").split(";").map((e=>{const[t,...n]=e.split(":"),r=n.join(":");return[t.trim(),Gs(r.trim())]}));return Object.fromEntries(t)}const Ys={class:(e,t)=>{const[n,r]=[e,t].map($s),o=n.filter((e=>!r.includes(e))),i=r.filter((e=>!n.includes(e)));return 0===o.length&&0===i.length},style:(e,t)=>Ps()(...[e,t].map(qs)),...Object.fromEntries(Ls.map((e=>[e,()=>!0])))};const Xs={StartTag:(e,t,n=Ns())=>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=Ns()){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=Ys[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(Us),n),Chars:Ws,Comment:Ws};function Zs(e){let t;for(;t=e.shift();){if("Chars"!==t.type)return t;if(!Os.test(t.chars))return t}}function Qs(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Js(e,t,n=Ns()){if(e===t)return!0;const[r,o]=[e,t].map((e=>function(e,t=Ns()){try{return new Is(new Hs).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=Zs(r);){if(a=Zs(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=Xs[i.type];if(e&&!e(i,a,n))return!1;Qs(i,o[0])?Zs(o):Qs(a,r[0])&&Zs(r)}return!(a=Zs(o))||(n.warning("Expected %o, instead saw end of content.",a),!1)}function el(e,t=e.name){if(e.name===Bo()||e.name===No())return[!0,[]];const n=function(){const e=[],t=Ns();return{error(...n){e.push({log:t.error,args:n})},warning(...n){e.push({log:t.warning,args:n})},getItems:()=>e}}(),r=Uo(t);let o;try{o=fs(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=Js(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()]}var tl=o(4224);function nl(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(" "))}if("core/post-comments"===e&&(e="core/comments",n.legacy=!0),tl.env.IS_GUTENBERG_PLUGIN&&n.metadata?.bindings&&("core/paragraph"===e||"core/heading"===e||"core/image"===e||"core/button"===e)){["content","url","title","alt","text","linkTarget"].forEach((e=>{"pattern_attributes"===n.metadata.bindings[e]?.source?.name&&(n.metadata.bindings[e].source="core/pattern-overrides")}))}return[e,n]}var rl,ol=function(){return rl||(rl=document.implementation.createHTMLDocument("")),rl};function il(e,t){if(t){if("string"==typeof e){var n=ol();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]=il(e,o),n}),{})}}function al(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 sl(e){const t={};for(let n=0;n<e.length;n++){const{name:r,value:o}=e[n];t[r]=o}return t}function ll(e){if(Mt("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:{...sl(e.attributes),children:ul(e.childNodes)}}}function cl(e){return Mt("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 ll(n)}catch(e){return null}}}function ul(e){Mt("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(ll(e[n]))}catch(e){}return t}function dl(e){return Mt("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?ul(n.childNodes):[]}}function pl(e,t){return t.some((t=>function(e,t){switch(t){case"rich-text":return e instanceof mo;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 fl(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"rich-text":case"children":case"node":case"query":case"tag":i=gl(n,t)}return function(e,t){return void 0===t||pl(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=Ko(t)),i}const hl=An((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=al(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=>Be([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 al(e,"textContent")}(e.selector);case"rich-text":return((e,t)=>n=>{const r=e?n.querySelector(e):n;return r?mo.fromHTMLElement(r,{preserveWhiteSpace:t}):mo.empty()})(e.selector,e.__unstablePreserveWhiteSpace);case"children":return dl(e.selector);case"node":return cl(e.selector);case"query":const n=Object.fromEntries(Object.entries(e.query).map((([e,t])=>[e,hl(t)])));return function(e,t){return function(n){var r=n.querySelectorAll(e);return[].map.call(r,(function(e){return il(e,t)}))}}(e.selector,n);case"tag":return Be([al(e.selector,"nodeName"),e=>e?e.toLowerCase():void 0]);default:console.error(`Unknown source type "${e.source}"`)}}));function ml(e){return il(e,(e=>e))}function gl(e,t){return hl(t)(ml(e))}function bl(e,t,n={}){var r;const o=ml(t),i=Uo(e),a=Object.fromEntries(Object.entries(null!==(r=i.attributes)&&void 0!==r?r:{}).map((([e,r])=>[e,fl(e,r,o,n,t)])));return St("blocks.getBlockAttributes",a,i,t,n)}const vl={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function yl(e){const t=gl(`<div data-custom-class-name>${e}</div>`,vl);return t?t.trim().split(/\s+/):[]}function wl(e,t){const n=function(e,t,n){if(Do(t,"customClassName",!0)){const{className:r,...o}=e,i=fs(t,o),a=yl(i),s=yl(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 kl(){return!1}function _l(e,t){const n=Bo(),r=e.blockName||Bo(),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=La(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 El(e,t){let n=_l(e,t);n=function(e){const[t,n]=nl(e.blockName,e.attrs);return{...e,blockName:t,attrs:n}}(n);let r=Oo(n.blockName);r||(n=function(e){const t=No()||Bo(),n=ls(e,{isCommentDelimited:!1}),r=ls(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=Oo(n.blockName));const o=n.blockName===Bo()||n.blockName===No();if(!r||!n.innerHTML&&o)return;const i=n.innerBlocks.map((e=>El(e,t))).filter((e=>!!e)),a=ua(n.blockName,bl(r,n.innerHTML,n.attrs),i);a.originalContent=n.innerHTML;const s=function(e,t){const[n]=el(e,t);if(n)return{...e,isValid:n,validationIssues:[]};const r=wl(e,t),[o,i]=el(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=kl}=o[i];if(e.isValid&&!a(r,e.innerBlocks,{blockNode:t,block:e}))continue;const s=Object.assign(qo(n,Io),o[i]);let l={...e,attributes:bl(s,e.originalContent,r)},[c]=el(l,s);if(c||(l=wl(l,s),[c]=el(l,s)),!c)continue;let u=l.innerBlocks,d=l.attributes;const{migrate:p}=s;if(p){let t=p(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,fs(r,c.attributes),c.originalContent),console.groupEnd()),c}function xl(e,t){return Aa(e).reduce(((e,n)=>{const r=El(n,t);return r&&e.push(r),e}),[])}const Sl={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0};function Cl(){return ya("from").filter((({type:e})=>"raw"===e)).map((e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)}))}function Il(e,t){const n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Array.from(n.body.children).flatMap((e=>{const n=va(Cl(),(({isMatch:t})=>t(e)));if(!n)return Sl.isNative?xl(`\x3c!-- wp:html --\x3e${e.outerHTML}\x3c!-- /wp:html --\x3e`):ua("core/html",bl("core/html",e.outerHTML));const{transform:r,blockName:o}=n;if(r){const n=r(e,t);return e.hasAttribute("class")&&(n.attributes.className=e.getAttribute("class")),n}return ua(o,bl(o,e.outerHTML))}))}function Tl(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(Tl));default:return!0}}const Pl={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":{}},Al=["#text","br"];Object.keys(Pl).filter((e=>!Al.includes(e))).forEach((e=>{const{[e]:t,...n}=Pl;Pl[e].children=n}));const Bl={...Pl,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","playsinline","autoplay","mediagroup","loop","muted","controls","width","height"]}};function Nl(e){if("paste"!==e)return Bl;const{u:t,abbr:n,data:r,time:o,wbr:i,bdi:a,bdo:s,...l}={...Bl,ins:{children:Bl.ins.children},del:{children:Bl.del.children}};return l}function Rl(e){const t=e.nodeName.toLowerCase();return Nl().hasOwnProperty(t)||"span"===t}function Ol(e){const t=e.nodeName.toLowerCase();return Pl.hasOwnProperty(t)||"span"===t}function Ml(e,t={}){const n=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),o=n.body,i=r.body;for(o.innerHTML=e;o.firstChild;){const e=o.firstChild;e.nodeType===e.TEXT_NODE?Tl(e)?o.removeChild(e):(i.lastChild&&"P"===i.lastChild.nodeName||i.appendChild(r.createElement("P")),i.lastChild.appendChild(e)):e.nodeType===e.ELEMENT_NODE?"BR"===e.nodeName?(e.nextSibling&&"BR"===e.nextSibling.nodeName&&(i.appendChild(r.createElement("P")),o.removeChild(e.nextSibling)),i.lastChild&&"P"===i.lastChild.nodeName&&i.lastChild.hasChildNodes()?i.lastChild.appendChild(e):o.removeChild(e)):"P"===e.nodeName?Tl(e)&&!t.raw?o.removeChild(e):i.appendChild(e):Rl(e)?(i.lastChild&&"P"===i.lastChild.nodeName||i.appendChild(r.createElement("P")),i.lastChild.appendChild(e)):i.appendChild(e):o.removeChild(e)}return i.innerHTML}function Ll(e,t){Pr(t.parentNode),t.parentNode.insertBefore(e,t.nextSibling)}function Dl(e,t){if(e.nodeType!==e.COMMENT_NODE)return;if("nextpage"!==e.nodeValue&&0!==e.nodeValue.indexOf("more"))return;const n=function(e,t){if("nextpage"===e.nodeValue)return function(e){const t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(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,Ar(r);break}return 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)}(e,t);if(e.parentNode&&"P"===e.parentNode.nodeName){const r=Array.from(e.parentNode.childNodes),o=r.indexOf(e),i=e.parentNode.parentNode||t.body,a=(e,n)=>(e||(e=t.createElement("p")),e.appendChild(n),e);[r.slice(0,o).reduce(a,null),n,r.slice(o+1).reduce(a,null)].forEach((t=>t&&i.insertBefore(t,e.parentNode))),Ar(e.parentNode)}else o=n,Pr((r=e).parentNode),Ll(o,r.parentNode),Ar(r);var r,o}function zl(e){const t=e.parentNode;for(Pr();e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function Fl(e){return"OL"===e.nodeName||"UL"===e.nodeName}function jl(e){if(!Fl(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&&Fl(r)){const t=e.previousElementSibling;t?t.appendChild(e):zl(e)}}function Vl(e){return t=>{"BLOCKQUOTE"===t.nodeName&&(t.innerHTML=Ml(t.innerHTML,e))}}function Hl(e,t=e){const n=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(n,t),n.appendChild(e)}function $l(e,t,n){if(!function(e,t){var n;const r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Ol(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())&&Hl(r,i):Hl(r,i):"BODY"===r.parentNode.nodeName&&Hl(r)}function Ul(e,t,n=0){const r=Wl(e);r.lastIndex=n;const o=r.exec(t);if(!o)return;if("["===o[1]&&"]"===o[7])return Ul(e,t,r.lastIndex);const i={index:o.index,content:o[0],shortcode:Gl(o)};return o[1]&&(i.content=i.content.slice(1),i.index++),o[7]&&(i.content=i.content.slice(0,-1)),i}function Wl(e){return new RegExp("\\[(\\[?)("+e+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const Kl=An((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 Gl(e){let t;return t=e[4]?"self-closing":e[6]?"closed":"single",new ql({tag:e[2],attrs:e[3],type:t,content:e[5]})}const ql=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=Kl(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:Ul,replace:function(e,t,n){return t.replace(Wl(e),(function(e,t,r,o,i,a,s,l){if("["===t&&"]"===l)return e;const c=n(Gl(arguments));return c||""===c?t+c+l:e}))},string:function(e){return new ql(e).string()},regexp:Wl,attrs:Kl,fromMatch:Gl});Object.assign(ql.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 Yl=e=>Array.isArray(e)?e:[e],Xl=/(\n|<p>)\s*$/,Zl=/^\s*(\n|<\/p>)/;const Ql=function e(t,n=0,r=[]){const o=va(ya("from"),(e=>-1===r.indexOf(e.blockName)&&"shortcode"===e.type&&Yl(e.tag).some((e=>Wl(e).test(t)))));if(!o)return[t];const i=Yl(o.tag).find((e=>Wl(e).test(t)));let a;const s=n;if(a=Ul(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("<")||Xl.test(i)&&Zl.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,wl(e,Oo(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=Oo(o.blockName);if(!n)return[t];const r={...n,attributes:o.attributes};let i=ua(o.blockName,bl(r,a.shortcode.content,e));i.originalContent=a.shortcode.content,i=wl(i,r),c=[i]}return[...e(i.replace(Xl,"")),...c,...e(l.replace(Zl,""))]}return[t]};function Jl(e){return function(e,t){const n={phrasingContentSchema:Nl(t),isPaste:"paste"===t},r=e.map((({isMatch:e,blockName:t,schema:r})=>{const o=Do(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}));function o(e,t,n){switch(n){case"children":return"*"===e||"*"===t?"*":{...e,...t};case"attributes":case"require":return[...e||[],...t||[]];case"isMatch":if(!e||!t)return;return(...n)=>e(...n)||t(...n)}}function i(e,t){for(const n in t)e[n]=e[n]?o(e[n],t[n],n):{...t[n]};return e}return r.reduce((function(e,t){for(const n in t)e[n]=e[n]?i(e[n],t[n]):{...t[n]};return e}),{})}(Cl(),e)}function ec(e,t,n,r){Array.from(e).forEach((e=>{ec(e.childNodes,t,n,r),t.forEach((t=>{n.contains(e)&&t(e,n,r)}))}))}function tc(e,t=[],n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,ec(r.body.childNodes,t,r,n),r.body.innerHTML}function nc(e,t){const n=e[`${t}Sibling`];if(n&&Rl(n))return n;const{parentNode:r}=e;return r&&Rl(r)?nc(r,t):void 0}function rc({HTML:e=""}){if(-1!==e.indexOf("\x3c!-- wp:"))return xl(e);const t=Ql(e),n=Jl();return t.map((e=>{if("string"!=typeof e)return e;return Il(e=Ml(e=tc(e,[jl,Dl,$l,Vl({raw:!0})],n),{raw:!0}),rc)})).flat().filter(Boolean)}const oc=()=>{};function ic(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))ic(e.childNodes,t,n,r),r&&!Rl(e)&&e.nextElementSibling&&Ll(t.createElement("br"),e),zl(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&&Tl(e))return void Ar(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):oc));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(","))?(ic(e.childNodes,t,n,r),zl(e)):e.parentNode&&"BODY"===e.parentNode.nodeName&&Rl(e)?(ic(e.childNodes,t,n,r),Array.from(e.childNodes).some((e=>!Rl(e)))&&zl(e)):ic(e.childNodes,t,s,r);else for(;e.firstChild;)Ar(e.firstChild)}}}))}function ac(e,t,n){const r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,ic(r.body.childNodes,r,t,n),r.body.innerHTML}function sc(e){e.nodeType===e.COMMENT_NODE&&Ar(e)}function lc(e,t){return e.every((e=>function(e,t){if(Ol(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)&&lc(Array.from(e.children),t)))}function cc(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function uc(e,t){Pr(t.parentNode),t.parentNode.insertBefore(e,t),e.appendChild(t)}function dc(e,t){const n=e.ownerDocument.createElement(t);for(;e.firstChild;)n.appendChild(e.firstChild);return Pr(e.parentNode),e.parentNode.replaceChild(n,e),n}function pc(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||uc(t.createElement("strong"),e),"italic"===r&&uc(t.createElement("em"),e),("line-through"===o||i.includes("line-through"))&&uc(t.createElement("s"),e),"super"===a?uc(t.createElement("sup"),e):"sub"===a&&uc(t.createElement("sub"),e)}else"B"===e.nodeName?e=dc(e,"strong"):"I"===e.nodeName?e=dc(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 fc(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}function hc(e){if(e.nodeType!==e.ELEMENT_NODE)return;const t=e.getAttribute("style");if(!t||!t.includes("mso-list"))return;const n=t.split(";").reduce(((e,t)=>{const[n,r]=t.split(":");return n&&r&&(e[n.trim().toLowerCase()]=r.trim().toLowerCase()),e}),{});"ignore"===n["mso-list"]&&e.remove()}function mc(e){return"OL"===e.nodeName||"UL"===e.nodeName}function gc(e,t){if("P"!==e.nodeName)return;const n=e.getAttribute("style");if(!n||!n.includes("mso-list"))return;const r=e.previousElementSibling;if(!r||!mc(r)){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 o=e.previousElementSibling,i=o.nodeName,a=t.createElement("li");let s=o;a.innerHTML=tc(e.innerHTML,[hc]);const l=/mso-list\s*:[^;]+level([0-9]+)/i.exec(n);let c=l&&parseInt(l[1],10)-1||0;for(;c--;)s=s.lastChild||s,mc(s)&&(s=s.lastChild||s);mc(s)||(s=s.appendChild(t.createElement(i))),s.appendChild(a),e.parentNode.removeChild(e)}const bc={};function vc(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}function yc(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=atob(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 window.File([i],a,{type:r});e.src=function(e){const t=window.URL.createObjectURL(e);return bc[t]=e,t}(s)}1!==e.height&&1!==e.width||e.parentNode.removeChild(e)}}function wc(e){"DIV"===e.nodeName&&(e.innerHTML=Ml(e.innerHTML))}var kc=o(6132);const _c=new(o.n(kc)().Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function Ec(e){if("IFRAME"===e.nodeName){const t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function xc(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&("B"===e.tagName?zl(e):e.removeAttribute("id"))}function Sc(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=nc(e,"previous");t&&"BR"!==t.nodeName&&" "!==t.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){const t=nc(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 Cc(e){"BR"===e.nodeName&&(nc(e,"next")||e.parentNode.removeChild(e))}function Ic(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Tc(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 Pc=(...e)=>window?.console?.log?.(...e);function Ac(e){return e=tc(e,[fc,xc,hc,pc,sc]),e=tc(e=ac(e,Nl("paste"),{inline:!0}),[Sc,Cc]),Pc("Processed inline HTML:\n\n",e),e}function Bc({HTML:e="",plainText:t="",mode:n="AUTO",tagName:r}){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 xl(n)}String.prototype.normalize&&(e=e.normalize()),e=tc(e,[Tc]);const o=t&&(!e||function(e){return!/<(?!br[ />])/i.test(e)}(e));var i;o&&(e=t,/^\s+$/.test(t)||(i=e,e=_c.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")}(i)))));const a=Ql(e),s=a.length>1;if(o&&!s&&"AUTO"===n&&-1===t.indexOf("\n")&&0!==t.indexOf("<p>")&&0===e.indexOf("<p>")&&(n="INLINE"),"INLINE"===n)return Ac(e);if("AUTO"===n&&!s&&function(e,t){const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=Array.from(n.body.children);return!r.some(cc)&&lc(r,t)}(e,r))return Ac(e);const l=Nl("paste"),c=Jl("paste"),u=a.map((e=>{if("string"!=typeof e)return e;const t=[xc,gc,fc,jl,yc,pc,Dl,sc,Ec,$l,Vl(),wc],n={...c,...l};return e=tc(e,t,c),e=tc(e=Ml(e=ac(e,n)),[Sc,Cc,Ic],c),Pc("Processed HTML piece:\n\n",e),Il(e,Bc)})).flat().filter(Boolean);if("AUTO"===n&&1===u.length&&Do(u[0].name,"__unstablePasteTextInline",!1)){const e=/^[\n]+|[\n]+$/g,n=t.replace(e,"");if(""!==n&&-1===n.indexOf("\n"))return ac(hs(u[0]),l).replace(e,"")}return u}function Nc(e=[],t=[]){return e.length===t.length&&t.every((([t,,n],r)=>{const o=e[r];return t===o.name&&Nc(o.innerBlocks,n)}))}const Rc=e=>"html"===e?.source,Oc=e=>"query"===e?.source;function Mc(e,t){return t?Object.fromEntries(Object.entries(t).map((([t,n])=>[t,Lc(e[t],n)]))):{}}function Lc(e,t){return Rc(e)&&Array.isArray(t)?is(t):Oc(e)&&t?t.map((t=>Mc(e.query,t))):t}function Dc(e=[],t){return t?t.map((([t,n,r],o)=>{var i;const a=e[o];if(a&&a.name===t){const e=Dc(a.innerBlocks,r);return{...a,innerBlocks:e}}const s=Oo(t),l=Mc(null!==(i=s?.attributes)&&void 0!==i?i:{},n);let[c,u]=nl(t,l);return void 0===Oo(c)&&(u={originalName:t,originalContent:"",originalUndelimitedContent:""},c="core/missing"),ua(c,u,Dc([],r))})):e}const zc=(0,ae.createContext)(gn),{Consumer:Fc,Provider:jc}=zc,Vc=Fc,Hc=jc;function $c(){return(0,ae.useContext)(zc)}const Uc=e=>{const{dispatch:t}=$c();return void 0===e?t:t(e)};function Wc(e,t){return n=>{const r=e(n);return r.displayName=Kc(t,n),r}}const Kc=(e,t)=>{const n=t.displayName||t.name||"Component";return`${In(null!=e?e:"")}(${n})`},Gc=Symbol("mayDisplayControls"),qc=Symbol("mayDisplayParentControls"),Yc=Symbol("blockEditingMode"),Xc=Symbol("blockBindings"),Zc=Symbol("isPreviewMode"),Qc={name:"",isSelected:!1},Jc=(0,ae.createContext)(Qc),{Provider:eu}=Jc;function tu(){return(0,ae.useContext)(Jc)}o(1705);const nu="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback,ru=()=>{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?nu(n):t=!1};return{add:(r,o)=>{e.set(r,o),t||(t=!0,nu(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}}},ou=(0,ae.createContext)(!1),{Consumer:iu,Provider:au}=ou,su=au;const lu=ru();function cu(e,t){const n=t?e.suspendSelect:e.select,r={};let o,i,a,s,l=!1;const c=new Map;function u(t){var n;return null!==(n=e.stores[t]?.store?.getState?.())&&void 0!==n?n:{}}return(t,d)=>{function p(){if(l&&t===o)return i;const d={current:null},p=e.__unstableMarkListeningStores((()=>t(n,e)),d);if(s)s.updateStores(d.current);else{for(const e of d.current)c.set(e,u(e));s=(t=>{const n=[...t],o=new Set;return{subscribe:function(t){if(l)for(const e of n)c.get(e)!==u(e)&&(l=!1);c.clear();const i=()=>{l=!1,t()},s=()=>{a?lu.add(r,i):i()},d=[];function p(t){d.push(e.subscribe(s,t))}for(const e of n)p(e);return o.add(p),()=>{o.delete(p);for(const e of d.values())e?.();lu.cancel(r)}},updateStores:function(e){for(const t of e)if(!n.includes(t)){n.push(t);for(const e of o)e(t)}}}})(d.current)}ss(i,p)||(i=p),o=t,l=!0}return a&&!d&&(l=!1,lu.cancel(r)),p(),a=d,{subscribe:s.subscribe,getValue:function(){return p(),i}}}}function uu(e,t,n){const r=$c(),o=(0,ae.useContext)(ou),i=(0,ae.useMemo)((()=>cu(r,e)),[r,e]),a=(0,ae.useCallback)(t,n),{subscribe:s,getValue:l}=i(a,o),c=(0,ae.useSyncExternalStore)(s,l,l);return(0,ae.useDebugValue)(c),c}function du(e,t){const n="function"!=typeof e,r=(0,ae.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,$c().select(o)):uu(!1,e,t);var o}const pu={insertUsage:{}},fu={alignWide:!1,supportsLayout:!0,colors:[{name:Kn("Black"),slug:"black",color:"#000000"},{name:Kn("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Kn("White"),slug:"white",color:"#ffffff"},{name:Kn("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Kn("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Kn("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Kn("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Kn("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Kn("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Kn("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Kn("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Kn("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Gn("Small","font size name"),size:13,slug:"small"},{name:Gn("Normal","font size name"),size:16,slug:"normal"},{name:Gn("Medium","font size name"),size:20,slug:"medium"},{name:Gn("Large","font size name"),size:36,slug:"large"},{name:Gn("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Kn("Thumbnail")},{slug:"medium",name:Kn("Medium")},{slug:"large",name:Kn("Large")},{slug:"full",name:Kn("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:Kn("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:Kn("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:Kn("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:Kn("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:Kn("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:Kn("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:Kn("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Kn("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:Kn("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:Kn("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:Kn("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Kn("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function hu(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function mu(e,t,n,r=1){const o=[...e];return o.splice(t,r),hu(o,e.slice(t,t+r),n)}const gu=e=>e;function bu(e,t=""){const n=new Map,r=[];return n.set(t,r),e.forEach((e=>{const{clientId:t,innerBlocks:o}=e;r.push(t),bu(o,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function vu(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 yu(e,t=gu){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 wu(e){return yu(e,(e=>{const{attributes:t,...n}=e;return n}))}function ku(e){return yu(e,(e=>e.attributes))}function _u(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Ps()(e.clientIds,t.clientIds)&&function(e,t){return Ps()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function Eu(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 xu(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 Su=Be(bn,(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),Eu(r,n.blocks),xu(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)}),xu(r,[n.clientId],!1);break;case"SYNC_DERIVED_BLOCK_ATTRIBUTES":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)})})),xu(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.forEach((t=>{r.tree.delete(t),e[t]||r.tree.delete("controlled||"+t)})),Eu(r,n.blocks),xu(r,n.blocks.map((e=>e.clientId)),!1);const o=[];for(const e of n.clientIds){const n=t.parents.get(e);void 0===n||""!==n&&!r.byClientId.get(n)||o.push(n)}xu(r,o,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const o of n.clientIds){const n=t.parents.get(o);void 0===n||""!==n&&!r.byClientId.get(n)||e.push(n)}r.tree=new Map(r.tree),n.removedClientIds.forEach((e=>{r.tree.delete(e),r.tree.delete("controlled||"+e)})),xu(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),xu(r,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];r.tree=new Map(r.tree),xu(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})})),xu(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(wu(n.blocks)),attributes:new Map(ku(n.blocks)),order:bu(n.blocks),parents:new Map(vu(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),Eu(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,r=!1;return(o,i)=>{let a,s=e(o,i);var l;"SET_EXPLICIT_PERSISTENT"===i.type&&(n=i.isPersistentChange,a=null===(l=o.isPersistentChange)||void 0===l||l);if(void 0!==n)return a=n,a===s.isPersistentChange?s:{...s,isPersistentChange:a};const c="MARK_LAST_CHANGE_AS_PERSISTENT"===i.type||r;var u;return o!==s||c?(s={...s,isPersistentChange:c?!r:!_u(i,t)},t=i,r="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===i.type,s):(r="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===i.type,a=null===(u=o?.isPersistentChange)||void 0===u||u,o.isPersistentChange===a?o:{...s,isPersistentChange:a})}}),(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 wu(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)})),wu(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 ku(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"SYNC_DERIVED_BLOCK_ATTRIBUTES":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)})),ku(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=bu(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=bu(t.blocks,n),{index:i=r.length}=t,a=new Map(e);return o.forEach(((e,t)=>{a.set(t,e)})),a.set(n,hu(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,mu(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,hu(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,mu(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,mu(a,s,s+1,n.length)),l}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const r=bu(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 vu(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return vu(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)})),vu(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 Cu(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 Iu=bn({blocks:Su,isDragging:function(e=!1,t){switch(t.type){case"START_DRAGGING":return!0;case"STOP_DRAGGING":return!1}return e},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=Cu(e.selectionStart,t),r=Cu(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 Ps()(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,nearestSide:a}=t,s={rootClientId:n,index:r,__unstableWithInserter:o,operation:i,nearestSide:a};return Ps()(e,s)?e:s}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=fu,t){return"UPDATE_SETTINGS"===t.type?t.reset?{...fu,...t.settings}:{...e,...t.settings}:e},preferences:function(e=pu,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":{const n=t.blocks.reduce(((e,n)=>{const{attributes:r,name:o}=n;let i=o;const a=Vr(na).getActiveBlockVariation(o,r);return a?.name&&(i+="/"+a.name),"core/block"===o&&(i+="/"+r.ref),{...e,[i]:{time:t.time,count:e[i]?e[i].count+1:1}}}),e.insertUsage);return{...e,insertUsage:n}}}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},lastFocus:function(e=!1,t){return"LAST_FOCUS"===t.type?t.lastFocus: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},expandedBlock:function(e=null,t){switch(t.type){case"SET_BLOCK_EXPANDED_IN_LIST_VIEW":return t.clientId;case"SELECT_BLOCK":if(t.clientId!==e)return null}return 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},temporarilyEditingFocusModeRevert:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.focusModeToRevert: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,message:r}=t;return{clientIds:e,selectPrevious:n,message: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 Tu=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}}(Iu);function Pu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Au=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pu(e))&&(r&&(r+=" "),r+=t);return r},Bu=e=>(0,ae.createElement)("path",e),Nu=(0,ae.forwardRef)((({className:e,isPressed:t,...n},r)=>{const o={...n,className:Au(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,ae.createElement)("svg",{...o,ref:r})}));Nu.displayName="SVG";const Ru=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),Ou=(Symbol("globalStylesDataKey"),Symbol("selectBlockPatternsKey")),Mu=Symbol("reusableBlocksSelect"),{lock:Lu,unlock:Du}=Ue("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/block-editor"),zu="core/block-editor",Fu=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,ju=(e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!Fu(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0},Vu=e=>t=>[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[Ou]?.(e),t.blockPatterns,Du(e(zu)).getReusableBlocks()];function Hu(e,t){return[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]}const $u=(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 Uu(e,t,n="asc"){return e.concat().sort($u(t,e,n))}const Wu={user:"user",theme:"theme",directory:"directory"},Ku={full:"fully",unsynced:"unsynced"},Gu={name:"allPatterns",label:Gn("All","patterns")},qu={name:"myPatterns",label:Kn("My patterns")};function Yu(e,t,n){const r=e.name.startsWith("core/block"),o="core"===e.source||e.source?.startsWith("pattern-directory");return!(t!==Wu.theme||!r&&!o)||(!(t!==Wu.directory||!r&&o)||(t===Wu.user&&e.type!==Wu.user||(n===Ku.full&&""!==e.syncStatus||!(n!==Ku.unsynced||"unsynced"===e.syncStatus||!r))))}function Xu(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const r=t.pop();let o=e;for(const e of t){const t=o[e];o=o[e]=Array.isArray(t)?[...t]:{...t}}return o[r]=n,e}const Zu=(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};const Qu=["color","border","dimensions","typography","spacing"],Ju={"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},ed={"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"},td=e=>ed[e]||e;const nd=new WeakMap;function rd(e){var t,n;return null!==(t=null!==(n=e.custom)&&void 0!==n?n:e.theme)&&void 0!==t?t:e.default}function od(e,t,...n){const r=Nd(e,t),o=[];if(t){let n=t;do{Do(Nd(e,n),"__experimentalSettings",!1)&&o.push(n)}while(n=e.blocks.parents.get(n))}return n.map((n=>{if(Qu.includes(n))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let i=St("blockEditor.useSetting.before",void 0,n,t,r);if(void 0!==i)return i;const a=td(n);for(const t of o){var s;const n=Od(e,t);if(i=null!==(s=Zu(n.settings?.blocks?.[r],a))&&void 0!==s?s:Zu(n.settings,a),void 0!==i)break}const l=_f(e);if(void 0===i&&r&&(i=Zu(l.__experimentalFeatures?.blocks?.[r],a)),void 0===i&&(i=Zu(l.__experimentalFeatures,a)),void 0!==i)return Ao[a]?rd(i):i;const c=Ju[a]?.(l);return void 0!==c?c:"typography.dropCap"===a||void 0}))}function id(e){return e.isBlockInterfaceHidden}function ad(e){return e?.lastBlockInserted?.clientIds}function sd(e,t){return e.blocks.byClientId.get(t)}const ld=(e,t)=>{const n=t=>"disabled"===jf(e,t)&&Ip(e,t).every(n);return Ip(e,t).every(n)};const cd=Ft((function e(t,n){const r=Ip(t,n),o=[];for(const n of r){const r=e(t,n);"disabled"!==jf(t,n)?o.push({clientId:n,innerBlocks:r}):o.push(...r)}return o}),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),ud=Ft(((e,t,n=!1)=>rp(e,t,n).filter((t=>"disabled"!==jf(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function dd(e){return e.removalPromptData}function pd(e){return e.blockRemovalRules}function fd(e){return e.openedBlockSettingsMenu}const hd=Ft((e=>{const t=Vd(e).reduce(((e,t,n)=>(e[t]=n,e)),{});return[...e.styleOverrides].sort(((e,n)=>{var r,o;const[,{clientId:i}]=e,[,{clientId:a}]=n;return(null!==(r=t[i])&&void 0!==r?r:-1)-(null!==(o=t[a])&&void 0!==o?o:-1)}))}),(e=>[e.blocks.order,e.styleOverrides]));function md(e){return e.registeredInserterMediaCategories}const gd=Ft((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])),bd=Oe((e=>Ft(((t,n=null)=>{const{getAllPatterns:r,__experimentalGetParsedPattern:o}=Du(e(zu)),i=r(),{allowedBlockTypes:a}=_f(t);return i.some((({name:e,inserter:r=!0})=>{if(!r)return!1;const{blocks:i}=o(e);return ju(i,a)&&i.every((({name:e})=>Yp(t,e,n)))}))}),((t,n)=>[...Vu(e)(t),...Hu(t,n)]))));function vd(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:Wu.user,title:e.title.raw,categories:e.wp_pattern_category.map((e=>{const n=t.find((({id:t})=>t===e));return n?n.slug:e})),content:e.content.raw,syncStatus:e.wp_pattern_sync_status}}const yd=Oe((e=>Ft(((t,n)=>{var r,o;if(n?.startsWith("core/block/")){const r=parseInt(n.slice(11),10),o=Du(e(zu)).getReusableBlocks().find((({id:e})=>e===r));return o?vd(o,t.settings.__experimentalUserPatternCategories):null}return[...null!==(r=t.settings.__experimentalBlockPatterns)&&void 0!==r?r:[],...null!==(o=t.settings[Ou]?.(e))&&void 0!==o?o:[]].find((({name:e})=>e===n))}),((t,n)=>n?.startsWith("core/block/")?[Du(e(zu)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[Ou]?.(e)])))),wd=Oe((e=>Ft((t=>{var n,r;return[...Du(e(zu)).getReusableBlocks().map((e=>vd(e,t.settings.__experimentalUserPatternCategories))),...null!==(n=t.settings.__experimentalBlockPatterns)&&void 0!==n?n:[],...null!==(r=t.settings[Ou]?.(e))&&void 0!==r?r:[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))}),Vu(e)))),kd=Oe((e=>Ft((t=>{const n=t.settings[Ou],r=t.settings[Mu];return!!n&&void 0===n(e)||!!r&&void 0===r(e)}),Vu(e)))),_d=[],Ed=Oe((e=>t=>{var n;const r=t.settings[Mu];return r?r(e):null!==(n=t.settings.__experimentalReusableBlocks)&&void 0!==n?n:_d}));function xd(e){return e.lastFocus}function Sd(e){return e.isDragging}function Cd(e){return e.expandedBlock}const Id=Ft(((e,t)=>{let n,r=t;for(;r=e.blocks.parents.get(r);)"core/block"!==Nd(e,r)&&"contentOnly"!==Gp(e,r)||(n=r);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function Td(e){return e.temporarilyEditingAsBlocks}function Pd(e){return e.temporarilyEditingFocusModeRevert}const Ad=[],Bd=new Set;function Nd(e,t){const n=e.blocks.byClientId.get(t),r="core/social-link";if("web"!==Sl.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 Rd(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function Od(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Md(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const Ld=Ft(((e,t)=>{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:Od(e,t)}:null}),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function Dd(e,t){const n=t&&Rf(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||Ad}const zd=Ft(((e,t)=>(Mt("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:Fd(e,t)})),(e=>[e.blocks.order])),Fd=Ft(((e,t="")=>(Mt("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Ip(e,t).map((t=>zd(e,t))))),(e=>[e.blocks.order])),jd=Ft(((e,t)=>{t=Array.isArray(t)?[...t]:[t];const n=[];for(const r of t){const t=e.blocks.order.get(r);t&&n.push(...t)}let r=0;for(;r<n.length;){const t=n[r],o=e.blocks.order.get(t);o&&n.splice(r+1,0,...o),r++}return n}),(e=>[e.blocks.order])),Vd=e=>jd(e,""),Hd=Ft(((e,t)=>{const n=Vd(e);if(!t)return n.length;let r=0;for(const o of n){e.blocks.byClientId.get(o).name===t&&r++}return r}),(e=>[e.blocks.order,e.blocks.byClientId])),$d=Ft(((e,t)=>{if(!t)return Ad;const n=Array.isArray(t)?t:[t],r=Vd(e).filter((t=>{const r=e.blocks.byClientId.get(t);return n.includes(r.name)}));return r.length>0?r:Ad}),(e=>[e.blocks.order,e.blocks.byClientId]));function Ud(e,t){return Mt("wp.data.select( 'core/block-editor' ).__experimentalGetGlobalBlocksByName",{since:"6.5",alternative:"wp.data.select( 'core/block-editor' ).getBlocksByName"}),$d(e,t)}const Wd=Ft(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>Md(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),Kd=Ft(((e,t)=>Wd(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>Wd(e,t)));function Gd(e,t){return Ip(e,t).length}function qd(e){return e.selection.selectionStart}function Yd(e){return e.selection.selectionEnd}function Xd(e){return e.selection.selectionStart.clientId}function Zd(e){return e.selection.selectionEnd.clientId}function Qd(e){const t=pp(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Jd(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function ep(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:r}=t;return r&&r===n.clientId?r:null}function tp(e){const t=ep(e);return t?Md(e,t):null}function np(e,t){var n;return null!==(n=e.blocks.parents.get(t))&&void 0!==n?n:null}const rp=Ft(((e,t,n=!1)=>{const r=[];let o=t;for(;o=e.blocks.parents.get(o);)r.push(o);return r.length?n?r:r.reverse():Ad}),(e=>[e.blocks.parents])),op=Ft(((e,t,n,r=!1)=>{const o=rp(e,t,r),i=Array.isArray(n)?e=>n.includes(e):e=>n===e;return o.filter((t=>i(Nd(e,t))))}),(e=>[e.blocks.parents]));function ip(e,t){let n,r=t;do{n=r,r=e.blocks.parents.get(r)}while(r);return n}function ap(e,t){const n=ep(e),r=[...rp(e,t),t],o=[...rp(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 sp(e,t,n=1){if(void 0===t&&(t=ep(e)),void 0===t&&(t=n<0?hp(e):mp(e)),!t)return null;const r=np(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 lp(e,t){return sp(e,t,-1)}function cp(e,t){return sp(e,t,1)}function up(e){return e.initialPosition}const dp=Ft((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return Ad;if(t.clientId===n.clientId)return[t.clientId];const r=np(e,t.clientId);if(null===r)return Ad;const o=Ip(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 pp(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?Ad:dp(e)}const fp=Ft((e=>{const t=pp(e);return t.length?t.map((t=>Md(e,t))):Ad}),(e=>[...dp.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function hp(e){return pp(e)[0]||null}function mp(e){const t=pp(e);return t[t.length-1]||null}function gp(e,t){return hp(e)===t}function bp(e,t){return-1!==pp(e).indexOf(t)}const vp=Ft(((e,t)=>{let n=t,r=!1;for(;n&&!r;)n=np(e,n),r=bp(e,n);return r}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function yp(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function kp(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function _p(e){const t=qd(e),n=Yd(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ep(e){const t=qd(e),n=Yd(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function xp(e){return dp(e).some((t=>!Oo(Nd(e,t)).merge))}function Sp(e,t){const n=qd(e),r=Yd(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=np(e,n.clientId);if(o!==np(e,r.clientId))return!1;const i=Ip(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=Nd(e,l);if(!Oo(u).merge)return!1;const d=Md(e,c);if(d.name===u)return!0;const p=ka(d,u);return p&&p.length}const Cp=e=>{const t=qd(e),n=Yd(e);if(t.clientId===n.clientId)return Ad;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return Ad;const r=np(e,t.clientId);if(r!==np(e,n.clientId))return Ad;const o=Ip(e,r),i=o.indexOf(t.clientId),a=o.indexOf(n.clientId),[s,l]=i>a?[n,t]:[t,n],c=Md(e,s.clientId),u=Md(e,l.clientId),d=c.attributes[s.attributeKey],p=u.attributes[l.attributeKey];let f=go({html:d}),h=go({html:p});return f=So(f,0,s.offset),h=So(h,l.offset,h.text.length),[{...c,attributes:{...c.attributes,[s.attributeKey]:ro({value:f})}},{...u,attributes:{...u.attributes,[l.attributeKey]:ro({value:h})}}]};function Ip(e,t){return e.blocks.order.get(t||"")||Ad}function Tp(e,t){return Ip(e,np(e,t)).indexOf(t)}function Pp(e,t){const{selectionStart:n,selectionEnd:r}=e.selection;return n.clientId===r.clientId&&n.clientId===t}function Ap(e,t,n=!1){const r=dp(e);return!!r.length&&(n?r.some((n=>rp(e,n,!0).includes(t))):r.some((n=>np(e,n)===t)))}function Bp(e,t,n=!1){return Ip(e,t).some((t=>jp(e,t)||n&&Bp(e,t,n)))}function Np(e,t){if(!t)return!1;const n=pp(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Rp(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Op(e){return e.isMultiSelecting}function Mp(e){return e.isSelectionEnabled}function Lp(e,t){return e.blocksMode[t]||"visual"}function Dp(e){return e.isTyping}function zp(e){return!!e.draggedBlocks.length}function Fp(e){return e.draggedBlocks}function jp(e,t){return e.draggedBlocks.includes(t)}function Vp(e,t){if(!zp(e))return!1;return rp(e,t).some((t=>jp(e,t)))}function Hp(){return Mt('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const $p=Ft((e=>{let t,n;const{insertionPoint:r,selection:{selectionEnd:o}}=e;if(null!==r)return r;const{clientId:i}=o;return i?(t=np(e,i)||void 0,n=Tp(e,o.clientId)+1):n=Ip(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function Up(e){return null!==e.insertionPoint}function Wp(e){return e.template.isValid}function Kp(e){return e.settings.template}function Gp(e,t){var n,r;return t?null!==(n=kf(e,t)?.templateLock)&&void 0!==n&&n:null!==(r=e.settings.templateLock)&&void 0!==r&&r}const qp=(e,t,n=null)=>{let r;if(t&&"object"==typeof t?(r=t,t=r.name):r=Oo(t),!r)return!1;const{allowedBlockTypes:o}=_f(e);if(!Fu(o,t,!0))return!1;if(!!Gp(e,n))return!1;if("disabled"===jf(e,null!=n?n:""))return!1;const i=kf(e,n);if(n&&void 0===i)return!1;const a=Nd(e,n),s=Oo(a),l=s?.allowedBlocks;let c=Fu(l,t);if(!1!==c){const e=i?.allowedBlocks,n=Fu(e,t);null!==n&&(c=n)}const u=r.parent,d=Fu(u,a);let p=!0;const f=r.ancestor;if(f){p=[n,...rp(e,n)].some((t=>Fu(f,Nd(e,t))))}const h=p&&(null===c&&null===d||!0===c||!0===d);return h?St("blockEditor.__unstableCanInsertBlockType",h,r,n,{getBlock:Md.bind(null,e),getBlockParentsByBlockName:op.bind(null,e)}):h},Yp=Ft(qp,((e,t,n)=>Hu(e,n)));function Xp(e,t,n=null){return t.every((t=>Yp(e,Nd(e,t),n)))}function Zp(e,t,n=null){const r=Od(e,t);return null===r||(void 0!==r.lock?.remove?!r.lock.remove:!Gp(e,n)&&"disabled"!==jf(e,n))}function Qp(e,t,n=null){return t.every((t=>Zp(e,t,n)))}function Jp(e,t,n=null){const r=Od(e,t);return null===r||"default"===jf(e,n)&&(void 0!==r.lock?.move?!r.lock.move:"all"!==Gp(e,n))}function ef(e,t,n=null){return t.every((t=>Jp(e,t,n)))}function tf(e,t){const n=Od(e,t);if(null===n)return!0;const{lock:r}=n;return!r?.edit}function nf(e,t){return!!Do(t,"lock",!0)&&!!e.settings?.canLockBlocks}function rf(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const of=(e,t,n)=>!!Do(t,"inserter",!0)&&qp(e,t.name,n),af=(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}},sf=(e,{buildScope:t="inserter"})=>n=>{const r=n.name;let o=!1;Do(n.name,"multiple",!0)||(o=Wd(e,Vd(e)).some((({name:e})=>e===n.name)));const{time:i,count:a=0}=rf(e,r)||{},s={id:r,name:n.name,title:n.title,icon:n.icon,isDisabled:o,frecency:af(i,a)};if("transform"===t)return s;const l=(c=n.name,u="inserter",Vr(na).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}},lf=Oe((e=>Ft(((t,n=null)=>{const r=qp(t,"core/block",n)?Du(e(zu)).getReusableBlocks().map((e=>{const n=e.wp_pattern_sync_status?Ru:{src:Ru,foreground:"var(--wp-block-synced-color)"},r=`core/block/${e.id}`,{time:o,count:i=0}=rf(t,r)||{},a=af(o,i);return{id:r,name:"core/block",initialAttributes:{ref:e.id},title:e.title?.raw,icon:n,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:a,content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}})):[],o=sf(t,{buildScope:"inserter"}),i=Mo().filter((e=>of(t,e,n))).map(o).reduce(((e,n)=>{const{variations:r=[]}=n;if(r.some((({isDefault:e})=>e))||e.push(n),r.length){const o=((e,t)=>n=>{const r=`${t.id}/${n.name}`,{time:o,count:i=0}=rf(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:af(o,i)}})(t,n);e.push(...r.map(o))}return e}),[]),{core:a,noncore:s}=i.reduce(((e,t)=>{const{core:n,noncore:r}=e;return(t.name.startsWith("core/")?n:r).push(t),e}),{core:[],noncore:[]});return[...[...a,...s],...r]}),((t,n)=>[Mo(),Du(e(zu)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,...Hu(t,n)])))),cf=Ft(((e,t,n=null)=>{const r=Array.isArray(t)?t:[t],o=sf(e,{buildScope:"transform"}),i=Mo().filter((t=>of(e,t,n))).map(o),a=Object.fromEntries(Object.entries(i).map((([,e])=>[e.name,e]))),s=ba(r).reduce(((e,t)=>(a[t?.name]&&e.push(a[t.name]),e)),[]);return Uu(s,(e=>a[e.name].frecency),"desc")}),((e,t,n)=>[Mo(),e.preferences.insertUsage,...Hu(e,n)])),uf=Oe((e=>(t,n=null)=>{if(Mo().some((e=>of(t,e,n))))return!0;return qp(t,"core/block",n)&&Du(e(zu)).getReusableBlocks().length>0})),df=Oe((e=>Ft(((t,n=null)=>{if(!n)return;const r=Mo().filter((e=>of(t,e,n)));return qp(t,"core/block",n)&&Du(e(zu)).getReusableBlocks().length>0&&r.push("core/block"),r}),((t,n)=>[Mo(),Du(e(zu)).getReusableBlocks(),...Hu(t,n)])))),pf=Ft(((e,t=null)=>(Mt('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),df(e,t))),((e,t)=>df.getDependants(e,t)));function ff(e,t=null){var n;if(!t)return;const{defaultBlock:r,directInsert:o}=null!==(n=e.blockListSettings[t])&&void 0!==n?n:{};return r&&o?r:void 0}function hf(e,t=null){return Mt('wp.data.select( "core/block-editor" ).__experimentalGetDirectInsertBlock',{alternative:'wp.data.select( "core/block-editor" ).getDirectInsertBlock',since:"6.3",version:"6.4"}),ff(e,t)}const mf=Oe((e=>Ft(((t,n)=>{const r=Du(e(zu)).getPatternBySlug(n);if(!r)return null;const o=xl(r.content,{__unstableSkipMigrationLogs:!0});return 1===o.length&&(o[0].attributes={...o[0].attributes,metadata:{...o[0].attributes.metadata||{},categories:r.categories,patternName:r.name,name:o[0].attributes.metadata?.name||r.title}}),{...r,blocks:o}}),((t,n)=>[Du(e(zu)).getPatternBySlug(n)])))),gf=e=>(t,n)=>[...Vu(e)(t),...Hu(t,n)],bf=Oe((e=>Ft(((t,n=null)=>{const{getAllPatterns:r,__experimentalGetParsedPattern:o}=Du(e(zu)),i=r(),{allowedBlockTypes:a}=_f(t),s=i.filter((({inserter:e=!0})=>!!e)).map((({name:e})=>o(e))),l=s.filter((({blocks:e})=>ju(e,a))),c=l.filter((({blocks:e})=>e.every((({name:e})=>Yp(t,e,n)))));return c}),gf(e)))),vf=Oe((e=>Ft(((t,n,r=null)=>{if(!n)return Ad;const o=e(zu).__experimentalGetAllowedPatterns(r),i=Array.isArray(n)?n:[n],a=o.filter((e=>e?.blockTypes?.some?.((e=>i.includes(e)))));return 0===a.length?Ad:a}),((t,n,r)=>gf(e)(t,r))))),yf=Oe((e=>(Mt('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),e(zu).getPatternsByBlockTypes))),wf=Oe((e=>Ft(((t,n,r=null)=>{if(!n)return Ad;if(n.some((({clientId:e,innerBlocks:n})=>n.length||Rf(t,e))))return Ad;const o=Array.from(new Set(n.map((({name:e})=>e))));return e(zu).getPatternsByBlockTypes(o,r)}),((t,n,r)=>gf(e)(t,r)))));function kf(e,t){return e.blockListSettings[t]}function _f(e){return e.settings}function Ef(e){return e.blocks.isPersistentChange}const xf=Ft(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),Sf=Oe((e=>Ft(((t,n)=>{Mt("wp.data.select( 'core/block-editor' ).__experimentalGetReusableBlockTitle",{since:"6.6",version:"6.8"});const r=Du(e(zu)).getReusableBlocks().find((e=>e.id===n));return r?r.title?.raw:null}),(()=>[Du(e(zu)).getReusableBlocks()]))));function Cf(e){return e.blocks.isIgnoredChange}function If(e){return e.lastBlockAttributesChange}function Tf(e){return"navigation"===e.editorMode}function Pf(e){return e.editorMode}function Af(e){return e.hasBlockMovingClientId}function Bf(e){return!!e.automaticChangeStatus}function Nf(e,t){return e.highlightedBlock===t}function Rf(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Of=Ft(((e,t)=>{if(!t.length)return null;const n=ep(e);if(t.includes(Nd(e,n)))return n;const r=pp(e),o=op(e,n||r[0],t);return o?o[o.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Mf(e,t,n){const{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===n}function Lf(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const Df=Ft((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?Bd:t}),(e=>[e.blockVisibility]));function zf(e,t){if("default"!==jf(e,t))return!1;if(!tf(e,t))return!0;const n=Pf(e);if("zoom-out"===n){const{sectionRootClientId:n}=Du(_f(e));if(n){const r=Ip(e,n);if(r?.includes(t))return!0}else if(t&&!np(e,t))return!0}const r=Do(Nd(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!r&&Rf(e,t))&&!Pp(e,t)&&!Ap(e,t,!0)}function Ff(e,t){let n=e.blocks.parents.get(t);for(;n;){if(zf(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const jf=Oe((e=>(t,n="")=>{null===n&&(n="");if("zoom-out"===Pf(t)){const{sectionRootClientId:e}=Du(_f(t));if(""===n)return e?"disabled":"contentOnly";if(n===e)return"contentOnly";const r=Ip(t,e);if(!r?.includes(n))return"disabled"}const r=t.blockEditingModes.get(n);if(r)return r;if(!n)return"default";const o=np(t,n);if("contentOnly"===Gp(t,o)){const r=Nd(t,n);return e(na).__experimentalHasContentRoleAttribute(r)?"contentOnly":"disabled"}const i=jf(t,o);return"contentOnly"===i?"default":i})),Vf=Oe((e=>(t,n="")=>{const r=n||ep(t);if(!r)return!1;const{getGroupingBlockName:o}=e(na),i=Md(t,r),a=o();return i&&(i.name===a||Oo(i.name)?.transforms?.ungroup)&&!!i.innerBlocks.length&&Zp(t,r)})),Hf=Oe((e=>(t,n=Ad)=>{const{getGroupingBlockName:r}=e(na),o=r(),i=n?.length?n:dp(t),a=i?.length?np(t,i[0]):void 0;return Yp(t,o,a)&&i.length&&Qp(t,i,a)})),$f=(e,t)=>(Mt("wp.data.select( 'core/block-editor' ).__unstableGetContentLockingParent",{since:"6.1",version:"6.7"}),Id(e,t));function Uf(e){return Mt("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingAsBlocks",{since:"6.1",version:"6.7"}),Td(e)}function Wf(e){return Mt("wp.data.select( 'core/block-editor' ).__unstableGetTemporarilyEditingFocusModeToRevert",{since:"6.5",version:"6.7"}),Pd(e)}const Kf=new WeakSet,Gf=["inserterMediaCategories","blockInspectorAnimation"];function qf(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let r=e;if(t&&"web"===Sl.OS){r={};for(const t in e)Gf.includes(t)||(r[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:r,reset:n}}function Yf(){return{type:"HIDE_BLOCK_INTERFACE"}}function Xf(){return{type:"SHOW_BLOCK_INTERFACE"}}const Zf=(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){function c(e){const t=[],n=[...e];for(;n.length;){const{innerBlocks:e,...r}=n.shift();n.push(...e),t.push(r)}return t}const u=c(e.map(r.getBlock));let d;for(const p of l)if(d=p.callback(u),d)return void o(Jf(e,t,d))}t&&o.selectPreviousBlock(e[0],t),i.batch((()=>{o({type:"REMOVE_BLOCKS",clientIds:e}),o(Qf())}))},Qf=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function Jf(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,message:n}}function eh(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function th(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}function nh(e){return{type:"SET_OPENED_BLOCK_SETTINGS_MENU",clientId:e}}function rh(e,t){return{type:"SET_STYLE_OVERRIDE",id:e,style:t}}function oh(e){return{type:"DELETE_STYLE_OVERRIDE",id:e}}function ih(e){return({dispatch:t,select:n,registry:r})=>{r.batch((()=>{t({type:"SET_EXPLICIT_PERSISTENT",isPersistentChange:!1}),e(),t({type:"SET_EXPLICIT_PERSISTENT",isPersistentChange:void 0});const r=n.getBlocks();Kf.add(r)}))}}function ah(e=null){return{type:"LAST_FOCUS",lastFocus:e}}function sh(e){return({select:t,dispatch:n,registry:r})=>{const o=Du(r.select(Am)).getTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:"contentOnly"}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:"contentOnly"}),n.updateSettings({focusMode:o}),n.__unstableSetTemporarilyEditingAsBlocks()}}function lh(){return{type:"START_DRAGGING"}}function ch(){return{type:"STOP_DRAGGING"}}function uh(e){return{type:"SET_BLOCK_EXPANDED_IN_LIST_VIEW",clientId:e}}const dh=e=>({select:t,dispatch:n})=>{n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:void 0}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:!1});const r=t.getSettings().focusMode;n.updateSettings({focusMode:!0}),n.__unstableSetTemporarilyEditingAsBlocks(e,r)};function ph(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 fh="";var hh;function mh(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," "),fh===e&&(e+=" "),fh=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")}hh=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=Kn("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&&ph("assertive"),null===n&&ph("polite")},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",hh):hh());const gh="†";function bh(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return("string"==typeof n||n instanceof mo)&&-1!==n.toString().indexOf(gh)}))}function vh(e){for(const[t,n]of Object.entries(e.attributes))if("rich-text"===n.source||"html"===n.source)return t}const yh=e=>Array.isArray(e)?e:[e],wh=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(kh(e))},kh=e=>({select:t,dispatch:n})=>{const r=t.getTemplate(),o=t.getTemplateLock(),i=!r||"all"!==o||Nc(e,r);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function _h(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Eh(e){return Mt('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function xh(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:yh(e),attributes:t,uniqueByBlock:n}}function Sh(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Ch(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Ih=(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)}},Th=e=>({select:t,dispatch:n})=>{const r=t.getNextBlockClientId(e);r&&n.selectBlock(r)};function Ph(){return{type:"START_MULTI_SELECT"}}function Ah(){return{type:"STOP_MULTI_SELECT"}}const Bh=(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();mh(On(qn("%s block selected.","%s blocks selected.",i),i),"assertive")};function Nh(){return{type:"CLEAR_SELECTED_BLOCK"}}function Rh(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}const Oh=(e,t,n,r=0,o)=>({select:i,dispatch:a,registry:s})=>{e=yh(e),t=yh(t);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 Mh(e,t){return Oh(e,t)}const Lh=e=>(t,n)=>({select:r,dispatch:o})=>{r.canMoveBlocks(t,n)&&o({type:e,clientIds:yh(t),rootClientId:n})},Dh=Lh("MOVE_BLOCKS_DOWN"),zh=Lh("MOVE_BLOCKS_UP"),Fh=(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 jh(e,t="",n="",r){return Fh([e],t,n,r)}function Vh(e,t,n,r,o){return Hh([e],t,n,r,0,o)}const Hh=(e,t,n,r=!0,o=0,i)=>({select:a,dispatch:s})=>{null!==o&&"object"==typeof o&&(i=o,o=0,Mt("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=yh(e);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 $h(e,t,n={}){const{__unstableWithInserter:r,operation:o,nearestSide:i}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:o,nearestSide:i}}const Uh=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function Wh(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const Kh=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=Dc(e.getBlocks(),e.getTemplate());t.resetBlocks(n)},Gh=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),p=Oo(d.name);if(!p.merge)return;const f=l,h=c,m=n.getBlock(f.clientId),g=n.getBlock(h.clientId),b=m.attributes[f.attributeKey],v=g.attributes[h.attributeKey];let y=go({html:b}),w=go({html:v});y=So(y,f.offset,y.text.length),w=xo(w,gh,0,h.offset);const k=fa(m,{[f.attributeKey]:ro({value:y})}),_=fa(g,{[h.attributeKey]:ro({value:w})}),E=e?k:_,x=m.name===g.name?[E]:ka(E,p.name);if(!x||!x.length)return;let S;if(e){const e=x.pop();S=p.merge(e.attributes,_.attributes)}else{const e=x.shift();S=p.merge(k.attributes,e.attributes)}const C=bh(S),I=go({html:S[C]}),T=I.text.indexOf(gh),P=ro({value:So(I,T,T+1)});S[C]=P;const A=n.getSelectedBlockClientIds(),B=[...e?x:[],{...d,attributes:{...d.attributes,...S}},...e?[]:x];t.batch((()=>{r.selectionChange(d.clientId,C,T,T),r.replaceBlocks(A,B,0,n.getSelectedBlocksInitialCaretPosition())}))},qh=(e=[])=>({registry:t,select:n,dispatch:r})=>{const o=n.getSelectionStart(),i=n.getSelectionEnd(),a=n.getBlockRootClientId(o.clientId),s=n.getBlockRootClientId(i.clientId);if(a!==s)return;const l=n.getBlockOrder(a);let c,u;l.indexOf(o.clientId)>l.indexOf(i.clientId)?(c=i,u=o):(c=o,u=i);const d=c,p=u,f=n.getBlock(d.clientId),h=n.getBlock(p.clientId),m=Oo(f.name),g=Oo(h.name),b="string"==typeof d.attributeKey?d.attributeKey:vh(m),v="string"==typeof p.attributeKey?p.attributeKey:vh(g);if(!b||!v||void 0===o.offset||void 0===i.offset)return;if(d.clientId===p.clientId&&b===v&&d.offset===p.offset)if(e.length){if(Ho(f))return void r.replaceBlocks([d.clientId],e,e.length-1,-1)}else if(!n.getBlockOrder(d.clientId).length){function R(){const e=Ro();return n.canInsertBlockType(e,a)?ua(e):ua(n.getBlockName(d.clientId))}const O=n.getBlockAttributes(d.clientId)[b].length;if(0===d.offset&&O)return void r.insertBlocks([R()],n.getBlockIndex(d.clientId),a,!1);if(d.offset===O)return void r.insertBlocks([R()],n.getBlockIndex(d.clientId)+1,a)}const y=f.attributes[b],w=h.attributes[v];let k=go({html:y}),_=go({html:w});k=So(k,d.offset,k.text.length),_=So(_,0,p.offset);let E={...f,innerBlocks:f.clientId===h.clientId?[]:f.innerBlocks,attributes:{...f.attributes,[b]:ro({value:k})}};const x={...h,clientId:f.clientId===h.clientId?ua(h.name).clientId:h.clientId,attributes:{...h.attributes,[v]:ro({value:_})}};if(!e.length)return void r.replaceBlocks(n.getSelectedBlockClientIds(),[E,x]);let S;const C=[],I=[...e],T=I.shift(),P=Oo(E.name),A=P.merge&&T.name===P.name?[T]:ka(T,P.name);if(A?.length){const M=A.shift();E={...E,attributes:P.merge(E.attributes,M.attributes)},C.push(E),S={clientId:E.clientId,attributeKey:b,offset:go({html:E.attributes[b]}).text.length},I.unshift(...A)}else Vo(E)||C.push(E),C.push(T);const B=I.pop(),N=Oo(x.name);if(I.length&&C.push(...I),B){const L=N.merge&&N.name===B.name?[B]:ka(B,N.name);if(L?.length){const D=L.pop();C.push({...x,attributes:N.merge(D.attributes,x.attributes)}),C.push(...L),S={clientId:x.clientId,attributeKey:v,offset:go({html:D.attributes[v]}).text.length}}else C.push(B),Vo(x)||C.push(x)}else Vo(x)||C.push(x);t.batch((()=>{r.replaceBlocks(n.getSelectedBlockClientIds(),C,C.length-1,0),S&&r.selectionChange(S.clientId,S.attributeKey,S.offset,S.offset)}))},Yh=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:r.clientId}})},Xh=(e,t)=>({registry:n,select:r,dispatch:o})=>{const i=e,a=t,s=r.getBlock(i),l=Oo(s.name);if(!l)return;const c=r.getBlock(a);if(!l.merge&&Lo(s.name,"__experimentalOnMerge")){const e=ka(c,l.name);if(1!==e?.length)return void o.selectBlock(s.clientId);const[t]=e;return t.innerBlocks.length<1?void o.selectBlock(s.clientId):void n.batch((()=>{o.insertBlocks(t.innerBlocks,void 0,i),o.removeBlock(a),o.selectBlock(t.innerBlocks[0].clientId);const e=r.getNextBlockClientId(i);if(e&&r.getBlockName(i)===r.getBlockName(e)){const t=r.getBlockAttributes(i),n=r.getBlockAttributes(e);Object.keys(t).every((e=>t[e]===n[e]))&&(o.moveBlocksToPosition(r.getBlockOrder(e),e,i),o.removeBlock(e,!1))}}))}if(Ho(s))return void o.removeBlock(i,r.isBlockSelected(i));if(Ho(c))return void o.removeBlock(a,r.isBlockSelected(a));if(!l.merge)return void o.selectBlock(s.clientId);const u=Oo(c.name),{clientId:d,attributeKey:p,offset:f}=r.getSelectionStart(),h=(d===i?l:u).attributes[p],m=(d===i||d===a)&&void 0!==p&&void 0!==f&&!!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 g=fa(s),b=fa(c);if(m){const e=d===i?g:b,t=xo(go({html:e.attributes[p]}),gh,f,f);e.attributes[p]=ro({value:t})}const v=s.name===c.name?[b]:ka(b,s.name);if(!v||!v.length)return;const y=l.merge(g.attributes,v[0].attributes);if(m){const e=bh(y),t=go({html:y[e]}),n=t.text.indexOf(gh),r=ro({value:So(t,n,n+1)});y[e]=r,o.selectionChange(s.clientId,e,n,n)}o.replaceBlocks([s.clientId,c.clientId],[{...s,attributes:{...s.attributes,...y}},...v.slice(1)],0)},Zh=(e,t=!0)=>Zf(e,t);function Qh(e,t){return Zh([e],t)}function Jh(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 em(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function tm(){return{type:"START_TYPING"}}function nm(){return{type:"STOP_TYPING"}}function rm(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function om(){return{type:"STOP_DRAGGING_BLOCKS"}}function im(){return Mt('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function am(){return Mt('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function sm(e,t,n,r){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}:{type:"SELECTION_CHANGE",...e}}const lm=(e,t,n)=>({dispatch:r})=>{const o=Ro();if(!o)return;const i=ua(o,e);return r.insertBlock(i,n,t)};function cm(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function um(e){return qf(e,{stripExperimentalSettings:!0})}function dm(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function pm(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function fm(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const hm=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=e=>setTimeout(e,100)}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},mm=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},gm=e=>({dispatch:t,select:n,registry:r})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart(),{sectionRootClientId:o}=Du(r.select(zu).getSettings());if(e){let r;if(o){const t=n.getBlockOrder(o);r=n.getBlockParents(e).find((e=>t.includes(e)))}else r=n.getBlockHierarchyRootClientId(e);r?t.selectBlock(r):t.clearSelectedBlock()}}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?mh(Kn("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?mh(Kn("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&mh(Kn("You are currently in zoom-out mode."))},bm=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&mh(Kn("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."))},vm=(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=>!Do(e,"multiple",!0))))return;const a=n.getBlockRootClientId(e[0]),s=yh(e),l=n.getBlockIndex(s[s.length-1]),c=o.map((e=>pa(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))},ym=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e);if(t.getTemplateLock(r))return;const o=t.getBlockIndex(e),i=r?t.getDirectInsertBlock(r):null;if(!i)return n.insertDefaultBlock({},r,o);const a={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=>{n[e]&&(a[e]=n[e])}))}const s=ua(i.name,{...i.attributes,...a});return n.insertBlock(s,o,r)},wm=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e);if(t.getTemplateLock(r))return;const o=t.getBlockIndex(e),i=r?t.getDirectInsertBlock(r):null;if(!i)return n.insertDefaultBlock({},r,o+1);const a={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=>{n[e]&&(a[e]=n[e])}))}const s=ua(i.name,{...i.attributes,...a});return n.insertBlock(s,o+1,r)};function km(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const _m=e=>async({dispatch:t})=>{t(km(e,!0)),await new Promise((e=>setTimeout(e,150))),t(km(e,!1))};function Em(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function xm(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Sm(e,t){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const Cm=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 Im(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function Tm(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const Pm={reducer:Tu,selectors:u,actions:p},Am=un(zu,{...Pm,persist:["preferences"]}),Bm=vn(zu,{...Pm,persist:["preferences"]});function Nm(...e){const{clientId:t=null}=tu();return du((n=>Du(n(Am)).getBlockSettings(t,...e)),[t,...e])}Du(Bm).registerPrivateActions(d),Du(Bm).registerPrivateSelectors(c),Du(Am).registerPrivateActions(d),Du(Am).registerPrivateSelectors(c);function Rm(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,r=e?.color?.palette?.default,o=e?.color?.defaultPalette;return(0,ae.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:Gn("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:Gn("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:Gn("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,r,o])}function Om(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,o=e?.color?.defaultGradients;return(0,ae.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:Gn("Theme","Indicates this palette comes from the theme."),gradients:n}),o&&r&&r.length&&e.push({name:Gn("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&e.push({name:Gn("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,r,o])}const Mm=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,Mm(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function Lm(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=Zu(a,e);t&&(s={...s,attributes:Xu(s.attributes,e,t)})}))})),s}function Dm(e,t,n){const r=Lo(e,t),o=r?.__experimentalSkipSerialization;return Array.isArray(o)?o.includes(n):o}const zm=new WeakMap;function Fm({id:e,css:t,assets:n,__unstableType:r,clientId:o}={}){const{setStyleOverride:i,deleteStyleOverride:a}=Du(Uc(Am)),s=$c(),l=(0,ae.useId)();(0,ae.useEffect)((()=>{if(!t&&!n)return;const c=e||l,u={id:e,css:t,assets:n,__unstableType:r,clientId:o};return zm.get(s)||zm.set(s,[]),zm.get(s).push([c,u]),window.queueMicrotask((()=>{zm.get(s)?.length&&s.batch((()=>{zm.get(s).forEach((e=>{i(...e)})),zm.set(s,[])}))})),()=>{const e=zm.get(s)?.find((([e])=>e===c));e?zm.set(s,zm.get(s).filter((([e])=>e!==c))):a(c)}}),[e,t,o,n,r,l,i,a,s])}function jm(e,t){const[n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,w,k,_,E,x,S,C,I,T,P,A,B,N,R,O,M,L,D,z,F,j,V,H,$,U,W,K,G,q,Y,X,Z,Q,J]=Nm("background.backgroundImage","background.backgroundSize","typography.fontFamilies.custom","typography.fontFamilies.default","typography.fontFamilies.theme","typography.defaultFontSizes","typography.fontSizes.custom","typography.fontSizes.default","typography.fontSizes.theme","typography.customFontSize","typography.fontStyle","typography.fontWeight","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.writingMode","typography.textTransform","typography.letterSpacing","spacing.padding","spacing.margin","spacing.blockGap","spacing.spacingSizes","spacing.units","dimensions.aspectRatio","dimensions.minHeight","layout","border.color","border.radius","border.style","border.width","color.custom","color.palette.custom","color.customDuotone","color.palette.theme","color.palette.default","color.defaultPalette","color.defaultDuotone","color.duotone.custom","color.duotone.theme","color.duotone.default","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients","color.customGradient","color.background","color.link","color.text","color.heading","color.button","shadow");return function(e,t,n){const{supportedStyles:r,supports:o}=du((e=>({supportedStyles:Du(e(na)).getSupportedStyles(t,n),supports:e(na).getBlockType(t)?.supports})),[t,n]);return(0,ae.useMemo)((()=>{const t={...e};return r.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!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}})})),["aspectRatio","minHeight"].forEach((e=>{r.includes(e)||(t.dimensions={...t.dimensions,[e]:!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,ae.useMemo)((()=>({background:{backgroundImage:n,backgroundSize:r},color:{palette:{custom:O,theme:L,default:D},gradients:{custom:$,theme:U,default:W},duotone:{custom:j,theme:V,default:H},defaultGradients:K,defaultPalette:z,defaultDuotone:F,custom:R,customGradient:G,customDuotone:M,background:q,link:Y,heading:Z,button:Q,text:X},typography:{fontFamilies:{custom:o,default:i,theme:a},fontSizes:{custom:l,default:c,theme:u},customFontSize:d,defaultFontSizes:s,fontStyle:p,fontWeight:f,lineHeight:h,textAlign:m,textColumns:g,textDecoration:b,textTransform:y,letterSpacing:w,writingMode:v},spacing:{spacingSizes:{custom:x},padding:k,margin:_,blockGap:E,units:S},border:{color:P,radius:A,style:B,width:N},dimensions:{aspectRatio:C,minHeight:I},layout:T,parentLayout:t,shadow:J})),[n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,y,w,v,k,_,E,x,S,C,I,T,t,P,A,B,N,R,O,M,L,D,z,F,j,V,H,$,U,W,K,G,q,Y,X,Z,Q,J]),e)}const Vm=(0,ae.memo)((function({index:e,useBlockProps:t,setAllWrapperProps:n,...r}){const o=t(r),i=t=>n((n=>{const r=[...n];return r[e]=t,r}));return(0,ae.useEffect)((()=>(i(o),()=>{i(void 0)}))),null}));bt("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&Do(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));const Hm=new WeakMap;const $m=function(e,t,n){return(0,ae.useMemo)((()=>{if(n)return n;const r=function(e){const t=Hm.get(e)||0;return Hm.set(e,t+1),t}(e);return t?`${t}-${r}`:r}),[e,n,t])};var Um=Object.defineProperty,Wm=Object.defineProperties,Km=Object.getOwnPropertyDescriptors,Gm=Object.getOwnPropertySymbols,qm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable,Xm=(e,t,n)=>t in e?Um(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zm=(e,t)=>{for(var n in t||(t={}))qm.call(t,n)&&Xm(e,n,t[n]);if(Gm)for(var n of Gm(t))Ym.call(t,n)&&Xm(e,n,t[n]);return e},Qm=(e,t)=>Wm(e,Km(t)),Jm=(e,t)=>{var n={};for(var r in e)qm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gm)for(var r of Gm(e))t.indexOf(r)<0&&Ym.call(e,r)&&(n[r]=e[r]);return n},eg=Object.defineProperty,tg=Object.defineProperties,ng=Object.getOwnPropertyDescriptors,rg=Object.getOwnPropertySymbols,og=Object.prototype.hasOwnProperty,ig=Object.prototype.propertyIsEnumerable,ag=(e,t,n)=>t in e?eg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sg=(e,t)=>{for(var n in t||(t={}))og.call(t,n)&&ag(e,n,t[n]);if(rg)for(var n of rg(t))ig.call(t,n)&&ag(e,n,t[n]);return e},lg=(e,t)=>tg(e,ng(t)),cg=(e,t)=>{var n={};for(var r in e)og.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&rg)for(var r of rg(e))t.indexOf(r)<0&&ig.call(e,r)&&(n[r]=e[r]);return n};function ug(...e){}function dg(e,t){if(function(e){return"function"==typeof e}(e)){return e(function(e){return"function"==typeof e}(t)?t():t)}return e}function pg(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function fg(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function hg(e){return e}function mg(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function gg(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function bg(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function vg(...e){for(const t of e)if(void 0!==t)return t}function yg(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function wg(e){return function(e){return!!e&&!!(0,ae.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var kg,_g="undefined"!=typeof window&&!!(null==(kg=window.document)?void 0:kg.createElement);function Eg(e){return e?e.ownerDocument||e:document}function xg(e,t=!1){const{activeElement:n}=Eg(e);if(!(null==n?void 0:n.nodeName))return null;if(Cg(n)&&n.contentDocument)return xg(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Eg(n).getElementById(e);if(t)return t}}return n}function Sg(e,t){return e===t||e.contains(t)}function Cg(e){return"IFRAME"===e.tagName}function Ig(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Tg.indexOf(e.type)}var Tg=["button","color","file","image","reset","submit"];function Pg(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Ag(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function Bg(e,t){if("closest"in e)return e.closest(t);do{if(Pg(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Ng(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Rg(e,t){const n=null==e?void 0:e.getAttribute("role");return n&&-1!==["dialog","menu","listbox","tree","grid"].indexOf(n)?n:t}function Og(e,t){var n;const r=Rg(e);if(!r)return t;return null!=(n={menu:"menuitem",listbox:"option",tree:"treeitem",grid:"gridcell"}[r])?n:t}function Mg(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 Mg(e.parentElement)||document.scrollingElement||document.body}function Lg(){return!!_g&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function Dg(){return _g&&Lg()&&/apple/i.test(navigator.vendor)}function zg(){return _g&&navigator.platform.startsWith("Mac")&&!(_g&&navigator.maxTouchPoints)}function Fg(e){return Boolean(e.currentTarget&&!Sg(e.currentTarget,e.target))}function jg(e){return e.target===e.currentTarget}function Vg(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=lg(sg({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function Hg(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function $g(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Sg(n,r)}function Ug(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 Wg(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(Wg(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var Kg=Zm({},se),Gg=Kg.useId,qg=(Kg.useDeferredValue,Kg.useInsertionEffect),Yg=_g?ae.useLayoutEffect:ae.useEffect;function Xg(e){const[t]=(0,ae.useState)(e);return t}function Zg(e){const t=(0,ae.useRef)(e);return Yg((()=>{t.current=e})),t}function Qg(e){const t=(0,ae.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return qg?qg((()=>{t.current=e})):t.current=e,(0,ae.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Jg(...e){return(0,ae.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>yg(e,t)))}}),e)}function eb(e){if(Gg){const t=Gg();return e||t}const[t,n]=(0,ae.useState)(e);return Yg((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function tb(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,ae.useState)((()=>n(t)));return Yg((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}function nb(e,t){const n=(0,ae.useRef)(!1);(0,ae.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,ae.useEffect)((()=>()=>{n.current=!1}),[])}Symbol("setNextState");function rb(){return(0,ae.useReducer)((()=>[]),[])}function ob(e){return Qg("function"==typeof e?e:()=>e)}function ib(e,t,n=[]){const r=(0,ae.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return Qm(Zm({},e),{wrapElement:r})}function ab(e=!1,t){const[n,r]=(0,ae.useState)(null);return{portalRef:Jg(r,t),portalNode:n,domReady:!e||n}}function sb(e,t,n){const r=e.onLoadedMetadataCapture,o=(0,ae.useMemo)((()=>Object.assign((()=>{}),Qm(Zm({},r),{[t]:n}))),[r,t,n]);return[null==r?void 0:r[t],{onLoadedMetadataCapture:o}]}function lb(){(0,ae.useEffect)((()=>{Wg("mousemove",pb,!0),Wg("mousedown",fb,!0),Wg("mouseup",fb,!0),Wg("keydown",fb,!0),Wg("scroll",fb,!0)}),[]);return Qg((()=>cb))}var cb=!1,ub=0,db=0;function pb(e){(function(e){const t=e.movementX||e.screenX-ub,n=e.movementY||e.screenY-db;return ub=e.screenX,db=e.screenY,t||n||!1})(e)&&(cb=!0)}function fb(){cb=!1}function hb(e,t){const n=e.__unstableInternals;return mg(n,"Invalid store"),n[t]}function mb(e,...t){let n=e,r=n,o=Symbol(),i=ug;const a=new Set,s=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,p=new WeakMap,f=(e,t,n=c)=>(n.add(t),p.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),p.delete(t),n.delete(t)}),h=(e,i,a=!1)=>{if(!pg(n,e))return;const l=dg(i,n[e]);if(l===n[e])return;a||t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,l)}));const f=n;n=lg(sg({},n),{[e]:l});const h=Symbol();o=h,s.add(e);const m=(t,r,o)=>{var i;const a=p.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};c.forEach((e=>{m(e,f)})),queueMicrotask((()=>{if(o!==h)return;const e=n;u.forEach((e=>{m(e,r,s)})),r=e,s.clear()}))},m={getState:()=>n,setState:h,__unstableInternals:{setup:e=>(l.add(e),()=>l.delete(e)),init:()=>{const e=a.size,r=Symbol();a.add(r);const o=()=>{a.delete(r),a.size||i()};if(e)return o;const s=(c=n,Object.keys(c)).map((e=>fg(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&pg(r,e))return yb(t,[e],(t=>{h(e,t[e],!0)}))})))));var c;const u=[];l.forEach((e=>u.push(e())));const d=t.map(bb);return i=fg(...s,...u,...d),o},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(d.set(t,t(n,n)),f(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),f(e,t,u)),pick:e=>mb(function(e,t){const n={};for(const r of t)pg(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>mb(function(e,t){const n=sg({},e);for(const e of t)pg(n,e)&&delete n[e];return n}(n,e),m)}};return m}function gb(e,...t){if(e)return hb(e,"setup")(...t)}function bb(e,...t){if(e)return hb(e,"init")(...t)}function vb(e,...t){if(e)return hb(e,"subscribe")(...t)}function yb(e,...t){if(e)return hb(e,"sync")(...t)}function wb(e,...t){if(e)return hb(e,"batch")(...t)}function kb(e,...t){if(e)return hb(e,"omit")(...t)}function _b(...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?sg(sg({},e),r):e}),{});return mb(t,...e)}var Eb=o(8488),{useSyncExternalStore:xb}=Eb,Sb=()=>()=>{};function Cb(e,t=hg){const n=ae.useCallback((t=>e?vb(e,null,t):Sb()),[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&&pg(o,n)?o[n]:void 0};return xb(n,r,r)}function Ib(e,t,n,r){const o=pg(t,n)?t[n]:void 0,i=r?t[r]:void 0,a=Zg({value:o,setValue:i});Yg((()=>yb(e,[n],((e,t)=>{const{value:r,setValue:o}=a.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),Yg((()=>{if(void 0!==o)return e.setState(n,o),wb(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function Tb(e,t){const[n,r]=ae.useState((()=>e(t)));Yg((()=>bb(n)),[n]);const o=ae.useCallback((e=>Cb(n,e)),[n]);return[ae.useMemo((()=>Qm(Zm({},n),{useState:o})),[n,o]),Qg((()=>{r((n=>e(Zm(Zm({},t),n.getState()))))}))]}function Pb(e={}){const t=_b(e.store,kb(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=vg(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=vg(e.animated,null==n?void 0:n.animated,!1),i=mb({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:vg(null==n?void 0:n.contentElement,null),disclosureElement:vg(null==n?void 0:n.disclosureElement,null)},t);return gb(i,(()=>yb(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),gb(i,(()=>vb(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),gb(i,(()=>yb(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),lg(sg({},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 Ab(e,t,n){return nb(t,[n.store,n.disclosure]),Ib(e,n,"open","setOpen"),Ib(e,n,"mounted","setMounted"),Ib(e,n,"animated"),e}function Bb(e={}){const[t,n]=Tb(Pb,e);return Ab(t,n,e)}function Nb(e={}){return Pb(e)}function Rb(e,t,n){return Ab(e,t,n)}function Ob(e,t,n){return nb(t,[n.popover]),Ib(e=Rb(e,t,n),n,"placement"),e}function Mb(e,t,n){return Ib(e=Ob(e,t,n),n,"timeout"),Ib(e,n,"showTimeout"),Ib(e,n,"hideTimeout"),e}function Lb(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=cg(t,["popover"]);const o=_b(r.store,kb(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),a=Nb(lg(sg({},r),{store:o})),s=vg(r.placement,null==i?void 0:i.placement,"bottom"),l=mb(lg(sg({},a.getState()),{placement:s,currentPlacement:s,anchorElement:vg(null==i?void 0:i.anchorElement,null),popoverElement:vg(null==i?void 0:i.popoverElement,null),arrowElement:vg(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),a,o);return lg(sg(sg({},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"))})}(lg(sg({},e),{placement:vg(e.placement,null==n?void 0:n.placement,"bottom")})),o=vg(e.timeout,null==n?void 0:n.timeout,500),i=mb(lg(sg({},r.getState()),{timeout:o,showTimeout:vg(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:vg(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:vg(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return lg(sg(sg({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}function Db(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Lb(lg(sg({},e),{placement:vg(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:vg(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=mb(lg(sg({},r.getState()),{type:vg(e.type,null==n?void 0:n.type,"description"),skipTimeout:vg(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return sg(sg({},r),o)}function zb(e={}){const[t,n]=Tb(Db,e);return function(e,t,n){return Ib(e=Mb(e,t,n),n,"type"),Ib(e,n,"skipTimeout"),e}(t,n,e)}var Fb=o(2676);function jb(e){return ae.forwardRef(((t,n)=>e(Zm({ref:n},t))))}function Vb(e){const t=jb(e);return ae.memo(t)}function Hb(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=Jm(n,["as","wrapElement","render"]);let s;const l=Jg(t.ref,wg(i));if(r&&"string"!=typeof r)s=(0,Fb.jsx)(r,Qm(Zm({},a),{render:i}));else if(ae.isValidElement(i)){const e=Qm(Zm({},i.props),{ref:l});s=ae.cloneElement(i,function(e,t){const n=Zm({},e);for(const r in t){if(!pg(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]?Zm(Zm({},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=Jm(e,["children"]);s=t.children(r)}else s=r?(0,Fb.jsx)(r,Zm({},a)):(0,Fb.jsx)(e,Zm({},a));return o?o(s):s}function $b(e){return(t={})=>{const n=e(t),r={};for(const e in n)pg(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function Ub(e=[],t=[]){const n=ae.createContext(void 0),r=ae.createContext(void 0),o=()=>ae.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,Fb.jsx)(n,Qm(Zm({},t),{children:e}))),(0,Fb.jsx)(n.Provider,Zm({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=ae.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=ae.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,Fb.jsx)(i,Qm(Zm({},e),{children:t.reduceRight(((t,n)=>(0,Fb.jsx)(n,Qm(Zm({},e),{children:t}))),(0,Fb.jsx)(r.Provider,Zm({},e)))}))}}$b((e=>e));var Wb=jb((e=>Hb("div",e)));Object.assign(Wb,["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]=jb((e=>Hb(t,e))),e)),{}));var Kb=Ub(),Gb=(Kb.useContext,Kb.useScopedContext,Kb.useProviderContext),qb=Ub([Kb.ContextProvider],[Kb.ScopedContextProvider]),Yb=(qb.useContext,qb.useScopedContext,qb.useProviderContext),Xb=qb.ContextProvider,Zb=qb.ScopedContextProvider,Qb=(0,ae.createContext)(void 0),Jb=(0,ae.createContext)(void 0),ev=Ub([Xb],[Zb]),tv=(ev.useContext,ev.useScopedContext,ev.useProviderContext),nv=ev.ContextProvider,rv=ev.ScopedContextProvider,ov=Ub([nv],[rv]),iv=(ov.useContext,ov.useScopedContext,ov.useProviderContext),av=ov.ContextProvider,sv=ov.ScopedContextProvider,lv=(0,ae.createContext)(!0),cv="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 uv(e){return!!Pg(e,cv)&&(!!Ag(e)&&!Bg(e,"[inert]"))}function dv(e){if(!uv(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=xg(e);return!n||(n===e||(!("form"in n)||(n.form!==e.form||n.name!==e.name)))}function pv(e,t){const n=Array.from(e.querySelectorAll(cv));t&&n.unshift(e);const r=n.filter(uv);return r.forEach(((e,t)=>{if(Cg(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...pv(n))}})),r}function fv(e,t,n){const r=Array.from(e.querySelectorAll(cv)),o=r.filter(dv);return t&&dv(e)&&o.unshift(e),o.forEach(((e,t)=>{if(Cg(e)&&e.contentDocument){const r=fv(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function hv(e,t,n){const[r]=fv(e,t,n);return r||null}function mv(e,t){return function(e,t,n,r){const o=xg(e),i=pv(e,t),a=i.indexOf(o),s=i.slice(a+1);return s.find(dv)||(n?i.find(dv):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function gv(e,t){return function(e,t,n,r){const o=xg(e),i=pv(e,t).reverse(),a=i.indexOf(o),s=i.slice(a+1);return s.find(dv)||(n?i.find(dv):null)||(r?s[0]:null)||null}(document.body,!1,e,t)}function bv(e){const t=xg(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function vv(e){const t=xg(e);if(!t)return!1;if(Sg(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&("id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)))}function yv(e){!vv(e)&&uv(e)&&e.focus()}function wv(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}var kv=Dg(),_v=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function Ev(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function xv(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function Sv(e,t){return Qg((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var Cv=!0;function Iv(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(Cv=!1))}function Tv(e){e.metaKey||e.ctrlKey||e.altKey||(Cv=!0)}var Pv=$b((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=Jm(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,ae.useRef)(null);(0,ae.useEffect)((()=>{n&&(Wg("mousedown",Iv,!0),Wg("keydown",Tv,!0))}),[n]),kv&&(0,ae.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!Ev(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&&bg(a),c=!!l&&!r,[u,d]=(0,ae.useState)(!1);(0,ae.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,ae.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{uv(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const p=Sv(a.onKeyPressCapture,l),f=Sv(a.onMouseDownCapture,l),h=Sv(a.onClickCapture,l),m=a.onMouseDown,g=Qg((e=>{if(null==m||m(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!kv)return;if(Fg(e))return;if(!Ig(t)&&!Ev(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),Ug(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||yv(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&bv(r)&&(null==i||i(e),e.defaultPrevented||d(!0))},v=a.onKeyDownCapture,y=Qg((e=>{if(null==v||v(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!jg(e))return;const t=e.currentTarget;queueMicrotask((()=>b(e,t)))})),w=a.onFocusCapture,k=Qg((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!n)return;if(!jg(e))return void d(!1);const t=e.currentTarget,r=()=>b(e,t);Cv||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:_v.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):Ug(e.target,"focusout",r)})),_=a.onBlur,E=Qg((e=>{null==_||_(e),n&&$g(e)&&d(!1)})),x=(0,ae.useContext)(lv),S=Qg((e=>{n&&o&&e&&x&&queueMicrotask((()=>{bv(e)||uv(e)&&e.focus()}))})),C=tb(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?Zm({pointerEvents:"none"},a.style):a.style;return a=Qm(Zm({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:Jg(s,S,a.ref),style:P,tabIndex:xv(n,c,I,T,a.tabIndex),disabled:!(!T||!c)||void 0,contentEditable:l?void 0:a.contentEditable,onKeyPressCapture:p,onClickCapture:h,onMouseDownCapture:f,onMouseDown:g,onKeyDownCapture:y,onFocusCapture:k,onBlur:E})}));jb((e=>Hb("div",e=Pv(e))));var Av=$b((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=Jm(t,["store","showOnHover"]);const i=iv();mg(n=n||i,!1);const a=bg(o),s=(0,ae.useRef)(0);(0,ae.useEffect)((()=>()=>window.clearTimeout(s.current)),[]),(0,ae.useEffect)((()=>Wg("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(s.current),s.current=0)}),!0)),[n]);const l=o.onMouseMove,c=ob(r),u=lb(),d=Qg((e=>{if(null==l||l(e),a)return;if(!n)return;if(e.defaultPrevented)return;if(s.current)return;if(!u())return;if(!c(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{s.current=0,u()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},d=null!=r?r:o;0===d?i():s.current=window.setTimeout(i,d)})),p=(0,ae.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=Qm(Zm({},o),{ref:Jg(p,o.ref),onMouseMove:d}),o=Pv(o)}));jb((e=>Hb("a",Av(e))));var Bv=Ub([av],[sv]),Nv=(Bv.useContext,Bv.useScopedContext,Bv.useProviderContext),Rv=(Bv.ContextProvider,Bv.ScopedContextProvider),Ov=mb({activeStore:null}),Mv=$b((e=>{var t=e,{store:n,showOnHover:r=!0}=t,o=Jm(t,["store","showOnHover"]);const i=Nv();mg(n=n||i,!1);const a=(0,ae.useRef)(!1);(0,ae.useEffect)((()=>yb(n,["mounted"],(e=>{e.mounted||(a.current=!1)}))),[n]),(0,ae.useEffect)((()=>yb(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=Ov.getState();return e!==n&&(null==e||e.hide()),Ov.setState("activeStore",n)}const t=setTimeout((()=>{const{activeStore:e}=Ov.getState();e===n&&Ov.setState("activeStore",null)}),e.skipTimeout);return()=>clearTimeout(t)}))),[n]);const s=o.onMouseEnter,l=Qg((e=>{null==s||s(e),a.current=!0})),c=o.onFocusVisible,u=Qg((e=>{null==c||c(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),d=o.onBlur,p=Qg((e=>{if(null==d||d(e),e.defaultPrevented)return;const{activeStore:t}=Ov.getState();t===n&&Ov.setState("activeStore",null)})),f=n.useState("type"),h=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=Qm(Zm({"aria-labelledby":"label"===f?h:void 0,"aria-describedby":"description"===f?h:void 0},o),{onMouseEnter:l,onFocusVisible:u,onBlur:p}),o=Av(Zm({store:n,showOnHover:e=>{if(!a.current)return!1;if(gg(r,e))return!1;const{activeStore:t}=Ov.getState();return!t||(null==n||n.show(),!1)}},o))})),Lv=jb((e=>Hb("div",Mv(e))));function Dv(e){return[e.clientX,e.clientY]}function zv(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],p=(l-u)*(n-s)-(s-c)*(r-l);if(u<l){if(r>=u&&r<l){if(0===p)return!0;p>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(l<u){if(r>l&&r<=u){if(0===p)return!0;p<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r==l&&(n>=c&&n<=s||n>=s&&n<=c))return!0}return o}function Fv(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 jv(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 Vv=new WeakMap;function Hv(e,t,n){Vv.has(e)||Vv.set(e,new Map);const r=Vv.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 $v(e,t,n){return Hv(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function Uv(e,t,n){return Hv(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function Wv(e,t){if(!e)return()=>{};return Hv(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}))}var Kv=["SCRIPT","STYLE"];function Gv(e){return`__ariakit-dialog-snapshot-${e}`}function qv(e,t,n){return!Kv.includes(t.tagName)&&(!!function(e,t){const n=Eg(t),r=Gv(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&&Sg(t,e))))}function Yv(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=Eg(o),s=o;for(;o.parentElement&&o!==a.body;){if(null==r||r(o.parentElement,s),!i)for(const r of o.parentElement.children)qv(e,r,t)&&n(r,s);o=o.parentElement}}}function Xv(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function Zv(e,t=""){return fg(Uv(e,Xv("",!0),!0),Uv(e,Xv(t,!0),!0))}function Qv(e,t){if(e[Xv(t,!0)])return!0;const n=Xv(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function Jv(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));Yv(e,t,(t=>{jv(t,...r)||n.unshift(function(e,t=""){return fg(Uv(e,Xv(),!0),Uv(e,Xv(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(Zv(t,e))}));return()=>{n.forEach((e=>e()))}}function ey(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function ty(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=1e3*parseFloat(t||"0s");return n>e?n:e}),0)}function ny(e,t,n){return!(n||!1===t||e&&!t)}var ry=$b((e=>{var t=e,{store:n,alwaysVisible:r}=t,o=Jm(t,["store","alwaysVisible"]);const i=Gb();mg(n=n||i,!1);const a=eb(o.id),[s,l]=(0,ae.useState)(null),c=n.useState("open"),u=n.useState("mounted"),d=n.useState("animated"),p=n.useState("contentElement");Yg((()=>{if(d){if(null==p?void 0:p.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{l(c?"enter":"leave")}));l(null)}}),[d,p,c]),Yg((()=>{if(!n)return;if(!d)return;if(!p)return;if(!s)return;if("enter"===s&&!c)return;if("leave"===s&&c)return;if("number"==typeof d){return ey(d,n.stopAnimation)}const{transitionDuration:e,animationDuration:t,transitionDelay:r,animationDelay:o}=getComputedStyle(p),i=ty(r,o)+ty(e,t);return i?ey(i,n.stopAnimation):void 0}),[n,d,p,c,s]);const f=ny(u,(o=ib(o,(e=>(0,Fb.jsx)(Zb,{value:n,children:e})),[n])).hidden,r),h=f?Qm(Zm({},o.style),{display:"none"}):o.style;return o=Qm(Zm({id:a,"data-enter":"enter"===s?"":void 0,"data-leave":"leave"===s?"":void 0,hidden:f},o),{ref:Jg(a?n.setContentElement:null,o.ref),style:h})})),oy=jb((e=>Hb("div",ry(e))));jb((e=>{var t=e,{unmountOnHide:n}=t,r=Jm(t,["unmountOnHide"]);const o=Gb();return!1===Cb(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,Fb.jsx)(oy,Zm({},r))}));function iy({store:e,backdrop:t,backdropProps:n,alwaysVisible:r,hidden:o}){const i=(0,ae.useRef)(null),a=Bb({disclosure:e}),s=e.useState("contentElement");Yg((()=>{const e=i.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),Yg((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=i.current;return t?Zv(t,e):void 0}),[s]),null!=o&&(n=Qm(Zm({},n),{hidden:o}));const l=ry(Qm(Zm({store:a,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:r},n),{ref:Jg(null==n?void 0:n.ref,i),style:Zm({position:"fixed",top:0,right:0,bottom:0,left:0},null==n?void 0:n.style)}));if(!t)return null;if((0,ae.isValidElement)(t))return(0,Fb.jsx)(Wb,Qm(Zm({},l),{render:t}));const c="boolean"!=typeof t?t:"div";return(0,Fb.jsx)(Wb,Qm(Zm({},l),{render:(0,Fb.jsx)(c,{})}))}function ay(e){return $v(e,"aria-hidden","true")}function sy(e,t){if(!("style"in e))return ug;if("inert"in HTMLElement.prototype)return Uv(e,"inert",!0);return fg(...fv(e,!0).map((e=>(null==t?void 0:t.some((t=>t&&Sg(t,e))))?ug:$v(e,"tabindex","-1"))),ay(e),Wv(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}var ly=o(967);function cy(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=rb(),a=(0,ae.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=Eg(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,ae.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=Eg(n);if(a())return o.setAttribute(e,t),()=>o.removeAttribute(e);const s=new MutationObserver((()=>(0,ly.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,ae.useEffect)((()=>{if(!r())return;if(!e)return;const t=Eg(e),n=function(e){return Eg(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=Lg()&&!zg();return fg((d="--scrollbar-width",p=`${s}px`,(u=o)?Hv(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,p),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),c?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport: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=Wv(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)}})():Wv(i,{overflow:"hidden",[l]:`${s}px`}));var u,d,p}),[r,e])}var uy=(0,ae.createContext)({});function dy({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Qg(n),a=e.useState("open"),s=(0,ae.useRef)(!1);Yg((()=>{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,ae.useEffect)((()=>{if(!a)return;return Wg(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||Sg(Eg(e).body,e)}(o))return;if(Sg(n,o))return;if(function(e,t){if(!e)return!1;if(Sg(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=Eg(e).getElementById(n);if(t)return Sg(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&&!Qv(o,n.id)||i(t)}),r)}),[a,r])}function py(e,t){return"function"==typeof e?e(t):!!e}function fy(e,t,n){const r=function(e){const t=(0,ae.useRef)();return(0,ae.useEffect)((()=>{if(e)return Wg("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(e.useState("open")),o={store:e,domReady:n,capture:!0};dy(Qm(Zm({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&Ag(i)&&Qv(i,null==o?void 0:o.id)&&py(t,n)&&e.hide()}})),dy(Qm(Zm({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==Eg(r)&&py(t,n)&&e.hide()}})),dy(Qm(Zm({},o),{type:"contextmenu",listener:n=>{py(t,n)&&e.hide()}}))}var hy=$b((e=>{var t=e,{autoFocusOnShow:n=!0}=t,r=Jm(t,["autoFocusOnShow"]);return r=ib(r,(e=>(0,Fb.jsx)(lv.Provider,{value:n,children:e})),[n])}));jb((e=>Hb("div",hy(e))));var my=(0,ae.createContext)(0);function gy({level:e,children:t}){const n=(0,ae.useContext)(my),r=Math.max(Math.min(e||n+1,6),1);return(0,Fb.jsx)(my.Provider,{value:r,children:t})}var by=$b((e=>e=Qm(Zm({},e),{style:Zm({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})));jb((e=>Hb("span",by(e))));var vy=$b((e=>(e=Qm(Zm({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:Zm({position:"fixed",top:0,left:0},e.style)}),e=by(e)))),yy=jb((e=>Hb("span",vy(e))));var wy=(0,ae.createContext)(null);function ky(e){queueMicrotask((()=>{null==e||e.focus()}))}var _y=$b((e=>{var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:o,portalRef:i,portal:a=!0}=t,s=Jm(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const l=(0,ae.useRef)(null),c=Jg(l,s.ref),u=(0,ae.useContext)(wy),[d,p]=(0,ae.useState)(null),[f,h]=(0,ae.useState)(null),m=(0,ae.useRef)(null),g=(0,ae.useRef)(null),b=(0,ae.useRef)(null),v=(0,ae.useRef)(null);return Yg((()=>{const e=l.current;if(!e||!a)return void p(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:Eg(e).createElement("div")}(e,o);if(!t)return void p(null);const n=t.isConnected;if(!n){const n=u||function(e){return Eg(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).substr(2,6)}`}()),p(t),yg(i,t),n?void 0:()=>{t.remove(),yg(i,null)}}),[a,o,u,i]),Yg((()=>{if(!n)return;if(!r)return;const e=Eg(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),h(e),()=>{e.remove(),h(null)}}),[n,r]),(0,ae.useEffect)((()=>{if(!d)return;if(!n)return;let e=0;const t=t=>{if(!$g(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e),t.forEach(n)}(d);e=requestAnimationFrame((()=>{!function(e,t){fv(e,t).forEach(wv)}(d,!0)}))};return d.addEventListener("focusin",t,!0),d.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),d.removeEventListener("focusin",t,!0),d.removeEventListener("focusout",t,!0)}}),[d,n]),s=ib(s,(e=>{if(e=(0,Fb.jsx)(wy.Provider,{value:d||u,children:e}),!a)return e;if(!d)return(0,Fb.jsx)("span",{ref:c,id:s.id,style:{position:"fixed"},hidden:!0});e=(0,Fb.jsxs)(Fb.Fragment,{children:[n&&d&&(0,Fb.jsx)(yy,{ref:g,className:"__focus-trap-inner-before",onFocus:e=>{$g(e,d)?ky(mv()):ky(m.current)}}),e,n&&d&&(0,Fb.jsx)(yy,{ref:b,className:"__focus-trap-inner-after",onFocus:e=>{$g(e,d)?ky(gv()):ky(v.current)}})]}),d&&(e=(0,ly.createPortal)(e,d));let t=(0,Fb.jsxs)(Fb.Fragment,{children:[n&&d&&(0,Fb.jsx)(yy,{ref:m,className:"__focus-trap-outer-before",onFocus:e=>{!(e.relatedTarget===v.current)&&$g(e,d)?ky(g.current):ky(gv())}}),n&&(0,Fb.jsx)("span",{"aria-owns":null==d?void 0:d.id,style:{position:"fixed"}}),n&&d&&(0,Fb.jsx)(yy,{ref:v,className:"__focus-trap-outer-after",onFocus:e=>{if($g(e,d))ky(b.current);else{const e=mv();if(e===g.current)return void requestAnimationFrame((()=>{var e;return null==(e=mv())?void 0:e.focus()}));ky(e)}}})]});return f&&n&&(t=(0,ly.createPortal)(t,f)),(0,Fb.jsxs)(Fb.Fragment,{children:[t,e]})}),[d,u,a,s.id,n,f]),s=Qm(Zm({},s),{ref:c})}));jb((e=>Hb("div",_y(e))));var Ey=Dg();function xy(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?uv(n)?n:null:n:null}var Sy=$b((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:p,preventBodyScroll:f=!!a,autoFocusOnShow:h=!0,autoFocusOnHide:m=!0,initialFocus:g,finalFocus:b,unmountOnHide:v}=t,y=Jm(t,["store","open","onClose","focusable","modal","portal","backdrop","backdropProps","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide"]);const w=Yb(),k=(0,ae.useRef)(null),_=function(e={}){const[t,n]=Tb(Nb,e);return Rb(t,n,e)}({store:n||w,open:r,setOpen(e){if(e)return;const t=k.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}=ab(s,y.portalRef),S=y.preserveTabOrder,C=_.useState((e=>S&&!a&&e.mounted)),I=eb(y.id),T=_.useState("open"),P=_.useState("mounted"),A=_.useState("contentElement"),B=ny(P,y.hidden,y.alwaysVisible);cy(A,I,f&&!B),fy(_,d,x);const{wrapElement:N,nestedDialogs:R}=function(e){const t=(0,ae.useContext)(uy),[n,r]=(0,ae.useState)([]),o=(0,ae.useCallback)((e=>{var n;return r((t=>[...t,e])),fg(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);Yg((()=>yb(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,ae.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,ae.useCallback)((e=>(0,Fb.jsx)(uy.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(_);y=ib(y,N,[N]),Yg((()=>{if(!T)return;const e=k.current,t=xg(e,!0);t&&"BODY"!==t.tagName&&(e&&Sg(e,t)||_.setDisclosureElement(t))}),[_,T]),Ey&&(0,ae.useEffect)((()=>{if(!P)return;const{disclosureElement:e}=_.getState();if(!e)return;if(!Ig(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),Ug(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||yv(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[_,P]),(0,ae.useEffect)((()=>{if(!a)return;if(!P)return;if(!x)return;const e=k.current;if(!e)return;return e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=Eg(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)}),[_,a,P,x]),Yg((()=>{if(T)return;if(!P)return;if(!x)return;const e=k.current;return e?sy(e):void 0}),[T,P,x]);const O=T&&x;Yg((()=>{if(!I)return;if(!O)return;const e=k.current;return function(e,t){const{body:n}=Eg(t[0]),r=[];return Yv(e,t,(t=>{r.push(Uv(t,Gv(e),!0))})),fg(Uv(n,Gv(e),!0),(()=>r.forEach((e=>e()))))}(I,[e])}),[I,O]);const M=Qg(p);Yg((()=>{if(!I)return;if(!O)return;const{disclosureElement:e}=_.getState(),t=[k.current,...M()||[],...R.map((e=>e.getState().contentElement))];return a?fg(Jv(I,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return Yv(e,t,(e=>{jv(e,...r)||n.unshift(sy(e,t))})),()=>{n.forEach((e=>e()))}}(I,t)):Jv(I,[e,...t])}),[I,_,O,M,R,a]);const L=!!h,D=ob(h),[z,F]=(0,ae.useState)(!1);(0,ae.useEffect)((()=>{if(!T)return;if(!L)return;if(!x)return;if(!(null==A?void 0:A.isConnected))return;const e=xy(g,!0)||A.querySelector("[data-autofocus=true],[autofocus]")||hv(A,!0,s&&C)||A,t=uv(e);D(t?e:null)&&(F(!0),queueMicrotask((()=>{e.focus(),Ey&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[T,L,x,A,g,s,C,D]);const j=!!m,V=ob(m),[H,$]=(0,ae.useState)(!1);(0,ae.useEffect)((()=>{if(T)return $(!0),()=>$(!1)}),[T]);const U=(0,ae.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=_.getState();if(function(e){const t=xg();return!(!t||e&&Sg(e,t)||!uv(t))}(e))return;let r=xy(b)||n;if(null==r?void 0:r.id){const e=Eg(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!uv(r)){const e=Bg(r,"[data-dialog]");if(e&&e.id){const t=Eg(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&uv(r);o||!t?V(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>U(e,!1)))}),[_,b,V]);Yg((()=>{if(T)return;if(!H)return;if(!j)return;const e=k.current;U(e)}),[T,H,x,j,U]),(0,ae.useEffect)((()=>{if(!H)return;if(!j)return;const e=k.current;return()=>U(e)}),[H,j,U]);const W=ob(u);(0,ae.useEffect)((()=>{if(!x)return;if(!P)return;return Wg("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=k.current;if(!t)return;if(Qv(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=_.getState();("BODY"===n.tagName||Sg(t,n)||!r||Sg(r,n))&&W(e)&&_.hide()}),!0)}),[_,x,P,W]);const K=(y=ib(y,(e=>(0,Fb.jsx)(gy,{level:a?1:void 0,children:e})),[a])).hidden,G=y.alwaysVisible;y=ib(y,(e=>l?(0,Fb.jsxs)(Fb.Fragment,{children:[(0,Fb.jsx)(iy,{store:_,backdrop:l,backdropProps:c,hidden:K,alwaysVisible:G}),e]}):e),[_,l,c,K,G]);const[q,Y]=(0,ae.useState)(),[X,Z]=(0,ae.useState)();return y=ib(y,(e=>(0,Fb.jsx)(Zb,{value:_,children:(0,Fb.jsx)(Qb.Provider,{value:Y,children:(0,Fb.jsx)(Jb.Provider,{value:Z,children:e})})})),[_]),y=Qm(Zm({id:I,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":q,"aria-describedby":X},y),{ref:Jg(k,y.ref)}),y=hy(Qm(Zm({},y),{autoFocusOnShow:z})),y=ry(Zm({store:_},y)),y=Pv(Qm(Zm({},y),{focusable:i})),y=_y(Qm(Zm({portal:s},y),{portalRef:E,preserveTabOrder:C}))}));function Cy(e,t=Yb){return jb((n=>{const r=t();return Cb(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,Fb.jsx)(e,Zm({},n)):null}))}Cy(jb((e=>Hb("div",Sy(e)))),Yb);const Iy=Math.min,Ty=Math.max,Py=Math.round,Ay=Math.floor,By=e=>({x:e,y:e}),Ny={left:"right",right:"left",bottom:"top",top:"bottom"},Ry={start:"end",end:"start"};function Oy(e,t,n){return Ty(e,Iy(t,n))}function My(e,t){return"function"==typeof e?e(t):e}function Ly(e){return e.split("-")[0]}function Dy(e){return e.split("-")[1]}function zy(e){return"x"===e?"y":"x"}function Fy(e){return"y"===e?"height":"width"}function jy(e){return["top","bottom"].includes(Ly(e))?"y":"x"}function Vy(e){return zy(jy(e))}function Hy(e){return e.replace(/start|end/g,(e=>Ry[e]))}function $y(e){return e.replace(/left|right|bottom|top/g,(e=>Ny[e]))}function Uy(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 Wy(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ky(e,t,n){let{reference:r,floating:o}=e;const i=jy(t),a=Vy(t),s=Fy(a),l=Ly(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Dy(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function Gy(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:p=!1,padding:f=0}=My(t,e),h=Uy(f),m=s[p?"floating"===d?"reference":"floating":d],g=Wy(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Wy(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}function qy(e){return Zy(e)?(e.nodeName||"").toLowerCase():"#document"}function Yy(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xy(e){var t;return null==(t=(Zy(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zy(e){return e instanceof Node||e instanceof Yy(e).Node}function Qy(e){return e instanceof Element||e instanceof Yy(e).Element}function Jy(e){return e instanceof HTMLElement||e instanceof Yy(e).HTMLElement}function ew(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Yy(e).ShadowRoot)}function tw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=sw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function nw(e){return["table","td","th"].includes(qy(e))}function rw(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ow(e){const t=iw(),n=Qy(e)?sw(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function iw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function aw(e){return["html","body","#document"].includes(qy(e))}function sw(e){return Yy(e).getComputedStyle(e)}function lw(e){return Qy(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cw(e){if("html"===qy(e))return e;const t=e.assignedSlot||e.parentNode||ew(e)&&e.host||Xy(e);return ew(t)?t.host:t}function uw(e){const t=cw(e);return aw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jy(t)&&tw(t)?t:uw(t)}function dw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=uw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Yy(o);if(i){const e=pw(a);return t.concat(a,a.visualViewport||[],tw(o)?o:[],e&&n?dw(e):[])}return t.concat(o,dw(o,[],n))}function pw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fw(e){const t=sw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jy(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Py(n)!==i||Py(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function hw(e){return Qy(e)?e:e.contextElement}function mw(e){const t=hw(e);if(!Jy(t))return By(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=fw(t);let a=(i?Py(n.width):n.width)/r,s=(i?Py(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const gw=By(0);function bw(e){const t=Yy(e);return iw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gw}function vw(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=hw(e);let a=By(1);t&&(r?Qy(r)&&(a=mw(r)):a=mw(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Yy(e))&&t}(i,n,r)?bw(i):By(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=Yy(i),t=r&&Qy(r)?Yy(r):r;let n=e,o=pw(n);for(;o&&r&&t!==n;){const e=mw(o),t=o.getBoundingClientRect(),r=sw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Yy(o),o=pw(n)}}return Wy({width:u,height:d,x:l,y:c})}function yw(e){return vw(Xy(e)).left+lw(e).scrollLeft}function ww(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Yy(e),r=Xy(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=iw();(!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=Xy(e),n=lw(e),r=e.ownerDocument.body,o=Ty(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ty(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+yw(e);const s=-n.scrollTop;return"rtl"===sw(r).direction&&(a+=Ty(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Xy(e));else if(Qy(t))r=function(e,t){const n=vw(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Jy(e)?mw(e):By(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=bw(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Wy(r)}function kw(e,t){const n=cw(e);return!(n===t||!Qy(n)||aw(n))&&("fixed"===sw(n).position||kw(n,t))}function _w(e,t,n){const r=Jy(t),o=Xy(t),i="fixed"===n,a=vw(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=By(0);if(r||!r&&!i)if(("body"!==qy(t)||tw(o))&&(s=lw(t)),r){const e=vw(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=yw(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ew(e){return"static"===sw(e).position}function xw(e,t){return Jy(e)&&"fixed"!==sw(e).position?t?t(e):e.offsetParent:null}function Sw(e,t){const n=Yy(e);if(rw(e))return n;if(!Jy(e)){let t=cw(e);for(;t&&!aw(t);){if(Qy(t)&&!Ew(t))return t;t=cw(t)}return n}let r=xw(e,t);for(;r&&nw(r)&&Ew(r);)r=xw(r,t);return r&&aw(r)&&Ew(r)&&!ow(r)?n:r||function(e){let t=cw(e);for(;Jy(t)&&!aw(t);){if(ow(t))return t;if(rw(t))return null;t=cw(t)}return null}(e)||n}const Cw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Xy(r),s=!!t&&rw(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=By(1);const u=By(0),d=Jy(r);if((d||!d&&!i)&&(("body"!==qy(r)||tw(a))&&(l=lw(r)),Jy(r))){const e=vw(r);c=mw(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Xy,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?rw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=dw(e,[],!1).filter((e=>Qy(e)&&"body"!==qy(e))),o=null;const i="fixed"===sw(e).position;let a=i?cw(e):e;for(;Qy(a)&&!aw(a);){const t=sw(a),n=ow(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||tw(a)&&!n&&kw(e,a))?r=r.filter((e=>e!==a)):o=t,a=cw(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=ww(t,n,o);return e.top=Ty(r.top,e.top),e.right=Iy(r.right,e.right),e.bottom=Iy(r.bottom,e.bottom),e.left=Ty(r.left,e.left),e}),ww(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Sw,getElementRects:async function(e){const t=this.getOffsetParent||Sw,n=this.getDimensions,r=await n(e.floating);return{reference:_w(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=fw(e);return{width:t,height:n}},getScale:mw,isElement:Qy,isRTL:function(e){return"rtl"===sw(e).direction}};function Iw(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=hw(e),u=o||i?[...c?dw(c):[],...dw(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=Xy(e);function i(){var e;clearTimeout(n),null==(e=r)||e.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:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Ay(u)+"px "+-Ay(o.clientWidth-(c+d))+"px "+-Ay(o.clientHeight-(u+p))+"px "+-Ay(c)+"px",threshold:Ty(0,Iy(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?vw(e):null;return l&&function t(){const r=vw(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Tw=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=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=Ly(n),s=Dy(n),l="y"===jy(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=My(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Pw=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}=My(e,t),c={x:n,y:r},u=await Gy(t,l),d=jy(Ly(o)),p=zy(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=Oy(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=Oy(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Aw=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:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=My(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=Ly(o),v=jy(s),y=Ly(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),k=p||(y||!m?[$y(s)]:function(e){const t=$y(e);return[Hy(e),t,Hy(t)]}(s)),_="none"!==h;!p&&_&&k.push(...function(e,t,n,r){const o=Dy(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[]}}(Ly(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Hy)))),i}(s,m,h,w));const E=[s,...k],x=await Gy(t,g),S=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(x[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Dy(e),o=Vy(e),i=Fy(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$y(a)),[a,$y(a)]}(o,a,w);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every((e=>e<=0))){var I,T;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(T=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var P;const e=null==(P=C.filter((e=>{if(_){const t=jy(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Bw=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}=My(e,t),l=await Gy(t,s),c=Ly(n),u=Dy(n),d="y"===jy(n),{width:p,height:f}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=f-l.top-l.bottom,b=p-l.left-l.right,v=Iy(f-l[h],g),y=Iy(p-l[m],b),w=!t.middlewareData.shift;let k=v,_=y;if(d?_=u||w?Iy(y,b):b:k=u||w?Iy(v,g):g,w&&!u){const e=Ty(l.left,0),t=Ty(l.right,0),n=Ty(l.top,0),r=Ty(l.bottom,0);d?_=p-2*(0!==e||0!==t?e+t:Ty(l.left,l.right)):k=f-2*(0!==n||0!==r?n+r:Ty(l.top,l.bottom))}await a({...t,availableWidth:_,availableHeight:k});const E=await o.getDimensions(i.floating);return p!==E.width||f!==E.height?{reset:{rects:!0}}:{}}}},Nw=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}=My(e,t)||{};if(null==c)return{};const d=Uy(u),p={x:n,y:r},f=Vy(o),h=Fy(f),m=await a.getDimensions(c),g="y"===f,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],_=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[h]);const x=w/2-k/2,S=E/2-m[h]/2-1,C=Iy(d[b],S),I=Iy(d[v],S),T=C,P=E-m[h]-I,A=E/2-m[h]/2+x,B=Oy(T,A,P),N=!l.arrow&&null!=Dy(o)&&A!==B&&i.reference[h]/2-(A<T?C:I)-m[h]/2<0,R=N?A<T?A-T:A-P:0;return{[f]:p[f]+R,data:{[f]:B,centerOffset:A-B-R,...N&&{alignmentOffset:R}},reset:N}}}),Rw=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}=My(e,t),u={x:n,y:r},d=jy(o),p=zy(d);let f=u[p],h=u[d];const m=My(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var b,v;const e="y"===p?"width":"height",t=["top","left"].includes(Ly(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(b=a.offset)?void 0:b[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},Ow=(e,t,n)=>{const r=new Map,o={platform:Cw,...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}=Ky(c,r,l),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:b,data:v,reset:y}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,f={...f,[i]:{...f[i],...v}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Ky(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};function Mw(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 Qm(Zm({},o),{toJSON:()=>o})}function Lw(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 Mw();const{x:t,y:n,width:r,height:o}=e;return Mw(t,n,r,o)}(r):n.getBoundingClientRect()}}}function Dw(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function zw(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Fw(e,t){return Tw((({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 jw(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return mg(!t||t.every(Dw),!1),Aw({padding:e.overflowPadding,fallbackPlacements:t})}function Vw(e){if(e.slide||e.overlap)return Pw({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Rw()})}function Hw(e){return Bw({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 $w(e,t){if(e)return Nw({element:e,padding:t.arrowPadding})}var Uw=$b((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:p=!1,sameWidth:f=!1,fitViewport:h=!1,gutter:m,arrowPadding:g=4,overflowPadding:b=8,getAnchorRect:v,updatePosition:y}=t,w=Jm(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const k=tv();mg(n=n||k,!1);const _=n.useState("arrowElement"),E=n.useState("anchorElement"),x=n.useState("disclosureElement"),S=n.useState("popoverElement"),C=n.useState("contentElement"),I=n.useState("placement"),T=n.useState("mounted"),P=n.useState("rendered"),[A,B]=(0,ae.useState)(!1),{portalRef:N,domReady:R}=ab(o,w.portalRef),O=Qg(v),M=Qg(y),L=!!y;Yg((()=>{if(!(null==S?void 0:S.isConnected))return;S.style.setProperty("--popover-overflow-padding",`${b}px`);const e=Lw(E,O),t=async()=>{if(!T)return;const t=[Fw(_,{gutter:m,shift:u}),jw({flip:c,overflowPadding:b}),Vw({slide:d,shift:u,overlap:p,overflowPadding:b}),$w(_,{arrowPadding:g}),Hw({sameWidth:f,fitViewport:h,overflowPadding:b})],r=await Ow(e,S,{placement:I,strategy:l?"fixed":"absolute",middleware:t});null==n||n.setState("currentPlacement",r.placement),B(!0);const o=zw(r.x),i=zw(r.y);if(Object.assign(S.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=Iw(e,S,(async()=>{L?(await M({updatePosition:t}),B(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{B(!1),r()}}),[n,P,S,_,E,S,I,T,R,l,c,u,d,p,f,h,m,g,b,O,L,M]),Yg((()=>{if(!T)return;if(!R)return;if(!(null==S?void 0:S.isConnected))return;if(!(null==C?void 0:C.isConnected))return;const e=()=>{S.style.zIndex=getComputedStyle(C).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[T,R,S,C]);const D=l?"fixed":"absolute";return w=ib(w,(e=>(0,Fb.jsx)("div",Qm(Zm({role:"presentation"},s),{style:Zm({position:D,top:0,left:0,width:"max-content"},null==s?void 0:s.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,D,s]),w=ib(w,(e=>(0,Fb.jsx)(rv,{value:n,children:e})),[n]),w=Qm(Zm({"data-placing":A?void 0:""},w),{style:Zm({position:"relative"},w.style)}),w=Sy(Qm(Zm({store:n,modal:r,portal:o,preserveTabOrder:i,preserveTabOrderAnchor:x||E,autoFocusOnShow:A&&a},w),{portalRef:N}))}));Cy(jb((e=>Hb("div",Uw(e)))),tv);function Ww(e,t,n,r){return!!vv(t)||!!e&&(!!Sg(t,e)||(!(!n||!Sg(n,e))||!!(null==r?void 0:r.some((t=>Ww(e,t,n))))))}var Kw=(0,ae.createContext)(null),Gw=$b((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:a=!0,disablePointerEventsOnApproach:s=!!a}=t,l=Jm(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const c=iv();mg(n=n||c,!1);const u=(0,ae.useRef)(null),[d,p]=(0,ae.useState)([]),f=(0,ae.useRef)(0),h=(0,ae.useRef)(null),{portalRef:m,domReady:g}=ab(o,l.portalRef),b=!!a,v=ob(a),y=!!s,w=ob(s),k=n.useState("open"),_=n.useState("mounted");(0,ae.useEffect)((()=>{if(!g)return;if(!_)return;if(!b&&!y)return;const e=u.current;if(!e)return;return fg(Wg("mousemove",(t=>{if(!n)return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),a=h.current,[s]=t.composedPath(),l=r;if(Ww(s,e,l,d))return h.current=s&&l&&Sg(l,s)?Dv(t):null,window.clearTimeout(f.current),void(f.current=0);if(!f.current){if(a){const n=Dv(t);if(zv(n,Fv(e,a))){if(h.current=n,!w(t))return;return t.preventDefault(),void t.stopPropagation()}}v(t)&&(f.current=window.setTimeout((()=>{f.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(f.current)))}),[n,g,_,b,y,d,w,v]),(0,ae.useEffect)((()=>{if(!g)return;if(!_)return;if(!y)return;const e=e=>{const t=u.current;if(!t)return;const n=h.current;if(!n)return;const r=Fv(t,n);if(zv(Dv(e),r)){if(!w(e))return;e.preventDefault(),e.stopPropagation()}};return fg(Wg("mouseenter",e,!0),Wg("mouseover",e,!0),Wg("mouseout",e,!0),Wg("mouseleave",e,!0))}),[g,_,y,w]),(0,ae.useEffect)((()=>{g&&(k||null==n||n.setAutoFocusOnShow(!1))}),[n,g,k]);const E=Zg(k);(0,ae.useEffect)((()=>{if(g)return()=>{E.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,g]);const x=(0,ae.useContext)(Kw);Yg((()=>{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,ae.useCallback)((e=>{p((t=>[...t,e]));const t=null==x?void 0:x(e);return()=>{p((t=>t.filter((t=>t!==e)))),null==t||t()}}),[x]);l=ib(l,(e=>(0,Fb.jsx)(sv,{value:n,children:(0,Fb.jsx)(Kw.Provider,{value:S,children:e})})),[n,S]),l=Qm(Zm({},l),{ref:Jg(u,l.ref)}),l=function(e){var t=e,{store:n}=t,r=Jm(t,["store"]);const[o,i]=(0,ae.useState)(!1),a=n.useState("mounted");(0,ae.useEffect)((()=>{a||i(!1)}),[a]);const s=r.onFocus,l=Qg((e=>{null==s||s(e),e.defaultPrevented||i(!0)})),c=(0,ae.useRef)(null);return(0,ae.useEffect)((()=>yb(n,["anchorElement"],(e=>{c.current=e.anchorElement}))),[]),Qm(Zm({autoFocusOnHide:o,finalFocus:c},r),{onFocus:l})}(Zm({store:n},l));const C=n.useState((e=>r||e.autoFocusOnShow));return l=Uw(Qm(Zm({store:n,modal:r,portal:o,autoFocusOnShow:C},l),{portalRef:m,hideOnEscape:e=>!gg(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))}));Cy(jb((e=>Hb("div",Gw(e)))),iv);var qw=$b((e=>{var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:a=!0,hideOnInteractOutside:s=!0}=t,l=Jm(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const c=Nv();mg(n=n||c,!1),l=ib(l,(e=>(0,Fb.jsx)(Rv,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return l=Zm({role:u},l),l=Gw(Qm(Zm({},l),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside:e=>{if(gg(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(gg(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!Sg(t,e.target)}}))})),Yw=Cy(jb((e=>Hb("div",qw(e)))),Nv);const Xw=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,ae.createElement)("span",{className:n,"aria-label":o},r)},Zw={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"},Qw=e=>{var t;return null!==(t=Zw[e])&&void 0!==t?t:"bottom"},Jw={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 ek=e=>null===e||Number.isNaN(e)?void 0:Math.round(e),tk=(0,ae.createContext)({isNestedInTooltip:!1}),nk=700,rk={isNestedInTooltip:!0};const ok=(0,ae.forwardRef)((function(e,t){const{children:n,delay:r=nk,hideOnClick:o=!0,placement:i,position:a,shortcut:s,text:l,...c}=e,{isNestedInTooltip:u}=(0,ae.useContext)(tk),d=$m(ok,"tooltip"),p=l||s?d:void 0,f=1===ae.Children.count(n);let h;void 0!==i?h=i:void 0!==a&&(h=Qw(a),Mt("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),h=h||"bottom";const m=zb({placement:h,showTimeout:r});return u?f?(0,ae.createElement)(Wb,{...c,render:n}):n:(0,ae.createElement)(tk.Provider,{value:rk},(0,ae.createElement)(Lv,{onClick:o?m.hide:void 0,store:m,render:f?n:void 0,ref:t},f?void 0:n),f&&(l||s)&&(0,ae.createElement)(Yw,{...c,className:"components-tooltip",unmountOnHide:!0,gutter:4,id:p,overflowPadding:.5,store:m},l,s&&(0,ae.createElement)(Xw,{className:l?"components-tooltip__shortcut":"",shortcut:s})))})),ik=ok;const ak=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,ae.createElement)("span",{className:i,style:a,...o})};const sk=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,ae.createElement)(ak,{icon:e,size:t,...n});if((0,ae.isValidElement)(e)&&ak===e.type)return(0,ae.cloneElement)(e,{...n});if("function"==typeof e)return(0,ae.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===Nu)){const r={...e.props,width:t,height:t,...n};return(0,ae.createElement)(Nu,{...r})}return(0,ae.isValidElement)(e)?(0,ae.cloneElement)(e,{size:t,...n}):e},lk=new Set;function ck(e){if("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&!lk.has(e)){console.warn(e);try{throw Error(e)}catch(e){}lk.add(e)}}var uk=o(2454),dk=o.n(uk);const pk=function(e,t){const n=(0,ae.useRef)(!1);(0,ae.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)},fk=(0,ae.createContext)({}),hk=()=>(0,ae.useContext)(fk);const mk=(0,ae.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=hk(),n=(0,ae.useRef)(e);return pk((()=>{Ps()(n.current,e)&&n.current!==e&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck(`Please memoize your context: ${JSON.stringify(e)}`)}),[e]),(0,ae.useMemo)((()=>dk()(null!=t?t:{},null!=e?e:{},{isMergeableObject:Ce})),[t,e])}({value:t});return(0,ae.createElement)(fk.Provider,{value:n},e)})),gk="data-wp-component",bk="data-wp-c16t",vk="__contextSystemKey__";const yk=An((function(e){return`components-${za(e)}`}));var wk=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){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),kk=Math.abs,_k=String.fromCharCode,Ek=Object.assign;function xk(e){return e.trim()}function Sk(e,t,n){return e.replace(t,n)}function Ck(e,t){return e.indexOf(t)}function Ik(e,t){return 0|e.charCodeAt(t)}function Tk(e,t,n){return e.slice(t,n)}function Pk(e){return e.length}function Ak(e){return e.length}function Bk(e,t){return t.push(e),e}var Nk=1,Rk=1,Ok=0,Mk=0,Lk=0,Dk="";function zk(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Nk,column:Rk,length:a,return:""}}function Fk(e,t){return Ek(zk("",null,null,"",null,null,0),e,{length:-e.length},t)}function jk(){return Lk=Mk>0?Ik(Dk,--Mk):0,Rk--,10===Lk&&(Rk=1,Nk--),Lk}function Vk(){return Lk=Mk<Ok?Ik(Dk,Mk++):0,Rk++,10===Lk&&(Rk=1,Nk++),Lk}function Hk(){return Ik(Dk,Mk)}function $k(){return Mk}function Uk(e,t){return Tk(Dk,e,t)}function Wk(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 Kk(e){return Nk=Rk=1,Ok=Pk(Dk=e),Mk=0,[]}function Gk(e){return Dk="",e}function qk(e){return xk(Uk(Mk-1,Zk(91===e?e+2:40===e?e+1:e)))}function Yk(e){for(;(Lk=Hk())&&Lk<33;)Vk();return Wk(e)>2||Wk(Lk)>3?"":" "}function Xk(e,t){for(;--t&&Vk()&&!(Lk<48||Lk>102||Lk>57&&Lk<65||Lk>70&&Lk<97););return Uk(e,$k()+(t<6&&32==Hk()&&32==Vk()))}function Zk(e){for(;Vk();)switch(Lk){case e:return Mk;case 34:case 39:34!==e&&39!==e&&Zk(Lk);break;case 40:41===e&&Zk(e);break;case 92:Vk()}return Mk}function Qk(e,t){for(;Vk()&&e+Lk!==57&&(e+Lk!==84||47!==Hk()););return"/*"+Uk(t,Mk-1)+"*"+_k(47===e?e:Vk())}function Jk(e){for(;!Wk(Hk());)Vk();return Uk(e,Mk)}var e_="-ms-",t_="-moz-",n_="-webkit-",r_="comm",o_="rule",i_="decl",a_="@keyframes";function s_(e,t){for(var n="",r=Ak(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function l_(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case i_:return e.return=e.return||e.value;case r_:return"";case a_:return e.return=e.value+"{"+s_(e.children,r)+"}";case o_:e.value=e.props.join(",")}return Pk(n=s_(e.children,r))?e.return=e.value+"{"+n+"}":""}function c_(e){return function(t){t.root||(t=t.return)&&e(t)}}function u_(e){return Gk(d_("",null,null,null,[""],e=Kk(e),0,[0],e))}function d_(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",w=o,k=i,_=r,E=y;g;)switch(h=v,v=Vk()){case 40:if(108!=h&&58==Ik(E,d-1)){-1!=Ck(E+=Sk(qk(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=qk(v);break;case 9:case 10:case 13:case 32:E+=Yk(h);break;case 92:E+=Xk($k()-1,7);continue;case 47:switch(Hk()){case 42:case 47:Bk(f_(Qk(Vk(),$k()),t,n),l);break;default:E+="/"}break;case 123*m:s[c++]=Pk(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(E=Sk(E,/\f/g,"")),f>0&&Pk(E)-d&&Bk(f>32?h_(E+";",r,n,d-1):h_(Sk(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Bk(_=p_(E,t,n,c,u,o,s,y,w=[],k=[],d),i),123===v)if(0===u)d_(E,t,_,_,w,i,d,s,k);else switch(99===p&&110===Ik(E,3)?100:p){case 100:case 108:case 109:case 115:d_(e,_,_,r&&Bk(p_(e,_,_,0,0,o,s,y,o,w=[],d),k),o,k,d,s,r?w:k);break;default:d_(E,_,_,_,[""],k,0,s,k)}}c=u=f=0,m=b=1,y=E="",d=a;break;case 58:d=1+Pk(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==jk())continue;switch(E+=_k(v),v*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Pk(E)-1)*b,b=1;break;case 64:45===Hk()&&(E+=qk(Vk())),p=Hk(),u=d=Pk(y=E+=Jk($k())),v++;break;case 45:45===h&&2==Pk(E)&&(m=0)}}return i}function p_(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Ak(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Tk(e,d+1,d=kk(m=a[h])),y=e;b<f;++b)(y=xk(m>0?p[b]+" "+v:Sk(v,/&\f/g,p[b])))&&(l[g++]=y);return zk(e,t,n,0===o?o_:s,l,c,u)}function f_(e,t,n){return zk(e,t,n,r_,_k(Lk),Tk(e,2,-2),0)}function h_(e,t,n,r){return zk(e,t,n,i_,Tk(e,0,r),Tk(e,r+1,-1),r)}var m_=function(e,t,n){for(var r=0,o=0;r=o,o=Hk(),38===r&&12===o&&(t[n]=1),!Wk(o);)Vk();return Uk(e,Mk)},g_=function(e,t){return Gk(function(e,t){var n=-1,r=44;do{switch(Wk(r)){case 0:38===r&&12===Hk()&&(t[n]=1),e[n]+=m_(Mk-1,t,n);break;case 2:e[n]+=qk(r);break;case 4:if(44===r){e[++n]=58===Hk()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_k(r)}}while(r=Vk());return e}(Kk(e),t))},b_=new WeakMap,v_=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)||b_.get(n))&&!r){b_.set(e,!0);for(var o=[],i=g_(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]}}},y_=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function w_(e,t){switch(function(e,t){return 45^Ik(e,0)?(((t<<2^Ik(e,0))<<2^Ik(e,1))<<2^Ik(e,2))<<2^Ik(e,3):0}(e,t)){case 5103:return n_+"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 n_+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return n_+e+t_+e+e_+e+e;case 6828:case 4268:return n_+e+e_+e+e;case 6165:return n_+e+e_+"flex-"+e+e;case 5187:return n_+e+Sk(e,/(\w+).+(:[^]+)/,n_+"box-$1$2"+e_+"flex-$1$2")+e;case 5443:return n_+e+e_+"flex-item-"+Sk(e,/flex-|-self/,"")+e;case 4675:return n_+e+e_+"flex-line-pack"+Sk(e,/align-content|flex-|-self/,"")+e;case 5548:return n_+e+e_+Sk(e,"shrink","negative")+e;case 5292:return n_+e+e_+Sk(e,"basis","preferred-size")+e;case 6060:return n_+"box-"+Sk(e,"-grow","")+n_+e+e_+Sk(e,"grow","positive")+e;case 4554:return n_+Sk(e,/([^-])(transform)/g,"$1"+n_+"$2")+e;case 6187:return Sk(Sk(Sk(e,/(zoom-|grab)/,n_+"$1"),/(image-set)/,n_+"$1"),e,"")+e;case 5495:case 3959:return Sk(e,/(image-set\([^]*)/,n_+"$1$`$1");case 4968:return Sk(Sk(e,/(.+:)(flex-)?(.*)/,n_+"box-pack:$3"+e_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+n_+e+e;case 4095:case 3583:case 4068:case 2532:return Sk(e,/(.+)-inline(.+)/,n_+"$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(Pk(e)-1-t>6)switch(Ik(e,t+1)){case 109:if(45!==Ik(e,t+4))break;case 102:return Sk(e,/(.+:)(.+)-([^]+)/,"$1"+n_+"$2-$3$1"+t_+(108==Ik(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ck(e,"stretch")?w_(Sk(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ik(e,t+1))break;case 6444:switch(Ik(e,Pk(e)-3-(~Ck(e,"!important")&&10))){case 107:return Sk(e,":",":"+n_)+e;case 101:return Sk(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+n_+(45===Ik(e,14)?"inline-":"")+"box$3$1"+n_+"$2$3$1"+e_+"$2box$3")+e}break;case 5936:switch(Ik(e,t+11)){case 114:return n_+e+e_+Sk(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return n_+e+e_+Sk(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return n_+e+e_+Sk(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return n_+e+e_+e+e}return e}var k_=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case i_:e.return=w_(e.value,e.length);break;case a_:return s_([Fk(e,{value:Sk(e.value,"@","@"+n_)})],r);case o_: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 s_([Fk(e,{props:[Sk(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return s_([Fk(e,{props:[Sk(t,/:(plac\w+)/,":"+n_+"input-$1")]}),Fk(e,{props:[Sk(t,/:(plac\w+)/,":-moz-$1")]}),Fk(e,{props:[Sk(t,/:(plac\w+)/,e_+"input-$1")]})],r)}return""}))}}],__=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,o,i=e.stylisPlugins||k_,a={},s=[];r=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=[v_,y_],p=[l_,c_((function(e){l.insert(e)}))],f=(c=d.concat(i,p),u=Ak(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,function(e){s_(u_(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new wk({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h};var E_={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,scale: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},x_=o(6154),S_=!1,C_=/[A-Z]|^ms/g,I_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T_=function(e){return 45===e.charCodeAt(1)},P_=function(e){return null!=e&&"boolean"!=typeof e},A_=(0,x_.Z)((function(e){return T_(e)?e:e.replace(C_,"-$&").toLowerCase()})),B_=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(I_,(function(e,t,n){return O_={name:t,styles:n,next:O_},t}))}return 1===E_[e]||T_(e)||"number"!=typeof t||0===t?t:t+"px"},N_="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function R_(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return O_={name:o.name,styles:o.styles,next:O_},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)O_={name:a.name,styles:a.styles,next:O_},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=R_(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":P_(s)&&(r+=A_(i)+":"+B_(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&S_)throw new Error(N_);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=R_(e,t,a);switch(i){case"animation":case"animationName":r+=A_(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)P_(a[c])&&(r+=A_(i)+":"+B_(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=O_,l=n(e);return O_=s,R_(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var O_,M_=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function L_(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="";O_=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=R_(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=R_(n,t,e[a]),r)o+=i[a]}M_.lastIndex=0;for(var s,l="";null!==(s=M_.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:O_}}var D_=!!se.useInsertionEffect&&se.useInsertionEffect,z_=D_||function(e){return e()},F_=(D_||ae.useLayoutEffect,ae.createContext("undefined"!=typeof HTMLElement?__({key:"css"}):null)),j_=F_.Provider,V_=function(e){return(0,ae.forwardRef)((function(t,n){var r=(0,ae.useContext)(F_);return e(t,r,n)}))},H_=ae.createContext({});function $_(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var U_=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},W_=function(e,t,n){U_(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 K_(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function G_(e,t,n){var r=[],o=$_(e,r,n);return r.length<2?n:o+t(r)}var q_=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},Y_=function(e){var t=__(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=L_(n,t.registered,void 0);return W_(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 G_(t.registered,n,q_(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L_(n,t.registered);K_(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=L_(n,t.registered),i="animation-"+o.name;return K_(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:$_.bind(null,t.registered),merge:G_.bind(null,t.registered,n)}}({key:"css"}),X_=(Y_.flush,Y_.hydrate,Y_.cx);Y_.merge,Y_.getRegisteredStyles,Y_.injectGlobal,Y_.keyframes,Y_.css,Y_.sheet,Y_.cache;const Z_=()=>{const e=(0,ae.useContext)(F_),t=(0,ae.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return X_(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(W_(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Q_(e,t){const n=hk();void 0===t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("useContextSystem: Please provide a namespace");const r=n?.[t]||{},o={[bk]:!0,...(i=t,{[gk]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Z_()(yk(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 J_(e,t){return tE(e,t,{forwardsRef:!0})}function eE(e,t){return tE(e,t)}function tE(e,t,n){const r=n?.forwardsRef?(0,ae.forwardRef)(e):e;void 0===t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("contextConnect: Please provide a namespace");let o=r[vk]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[vk]:[...new Set(o)],displayName:t,selector:`.${yk(t)}`})}function nE(e){if(!e)return[];let t=[];return e[vk]&&(t=e[vk]),e.type&&e.type[vk]&&(t=e.type[vk]),t}function rE(e,t){return!!e&&("string"==typeof t?nE(e).includes(t):!!Array.isArray(t)&&t.some((t=>nE(e).includes(t))))}const oE={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 iE(){return iE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iE.apply(null,arguments)}var aE=o(3062).Z,sE=function(e){return"theme"!==e},lE=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?aE:sE},cE=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},uE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return U_(t,n,r),z_((function(){return W_(t,n,r)})),null},dE=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=cE(t,n,i),l=s||lE(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{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=V_((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=ae.useContext(H_)}"string"==typeof e.className?i=$_(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=L_(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?lE(r):l,g={};for(var b in e)c&&"as"===b||m(b)&&(g[b]=e[b]);return g.className=i,n&&(g.ref=n),ae.createElement(ae.Fragment,null,ae.createElement(uE,{cache:t,serialized:h,isStringTag:"string"==typeof r}),ae.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,iE({},n,r,{shouldForwardProp:cE(h,r,!0)})).apply(void 0,d)},h}};const pE=dE("div",{target:"e19lxcc00"})("");const fE=Object.assign((0,ae.forwardRef)((function({as:e,...t},n){return(0,ae.createElement)(pE,{as:e,ref:n,...t})})),{selector:".components-view"});const hE=J_((function(e,t){const{style:n,...r}=Q_(e,"VisuallyHidden");return(0,ae.createElement)(fE,{ref:t,...r,style:{...oE,...n||{}}})}),"VisuallyHidden"),mE=["onMouseDown","onClick"];const gE=(0,ae.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:p,label:f,children:h,size:m="default",text:g,variant:b,__experimentalIsFocusable:v,describedBy:y,...w}=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 p={"aria-pressed":i};var f,h,m,g,b,v;return a&&(null!==(f=u)&&void 0!==f||(u="small")),t&&(null!==(h=d)&&void 0!==h||(d="primary")),r&&(null!==(m=d)&&void 0!==m||(d="tertiary")),n&&(null!==(g=d)&&void 0!==g||(d="secondary")),e&&(Mt("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(b=d)&&void 0!==b||(d="secondary")),o&&(null!==(v=d)&&void 0!==v||(d="link")),{...p,...c,size:u,variant:d}}(e),{href:k,target:_,"aria-checked":E,"aria-pressed":x,"aria-selected":S,...C}="href"in w?w:{href:void 0,target:void 0,...w},I=$m(gE,"components-button__description"),T="string"==typeof h&&!!h||Array.isArray(h)&&h?.[0]&&null!==h[0]&&"components-tooltip"!==h?.[0]?.props?.className,P=Au("components-button",i,{"is-next-40px-default-size":n,"is-secondary":"secondary"===b,"is-primary":"primary"===b,"is-small":"small"===m,"is-compact":"compact"===m,"is-tertiary":"tertiary"===b,"is-pressed":[!0,"true","mixed"].includes(x),"is-pressed-mixed":"mixed"===x,"is-busy":r,"is-link":"link"===b,"is-destructive":o,"has-text":!!s&&(T||g),"has-icon":!!s}),A=a&&!v,B=void 0===k||A?"button":"a",N="button"===B?{type:"button",disabled:A,"aria-checked":E,"aria-pressed":x,"aria-selected":S}:{},R="a"===B?{href:k,target:_}:{};if(a&&v){N["aria-disabled"]=!0,R["aria-disabled"]=!0;for(const e of mE)C[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const O=!A&&(u&&!!f||!!p||!!f&&!h?.length&&!1!==u),M=y?I:void 0,L=C["aria-describedby"]||M,D={className:P,"aria-label":C["aria-label"]||f,"aria-describedby":L,ref:t},z=(0,ae.createElement)(ae.Fragment,null,s&&"left"===l&&(0,ae.createElement)(sk,{icon:s,size:c}),g&&(0,ae.createElement)(ae.Fragment,null,g),h,s&&"right"===l&&(0,ae.createElement)(sk,{icon:s,size:c})),F="a"===B?(0,ae.createElement)("a",{...R,...C,...D},z):(0,ae.createElement)("button",{...N,...C,...D},z),j=O?{text:h?.length&&y?y:f,shortcut:p,placement:d&&Qw(d)}:{};return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(ik,{...j},F),y&&(0,ae.createElement)(hE,null,(0,ae.createElement)("span",{id:M},y)))})),bE=gE;function vE(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Ig(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Ig(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var yE=Symbol("command"),wE=$b((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=Jm(t,["clickOnEnter","clickOnSpace"]);const i=(0,ae.useRef)(null),a=tb(i,o.as),s=o.type,[l,c]=(0,ae.useState)((()=>!!a&&Ig({tagName:a,type:s})));(0,ae.useEffect)((()=>{i.current&&c(Ig(i.current))}),[]);const[u,d]=(0,ae.useState)(!1),p=(0,ae.useRef)(!1),f=bg(o),[h,m]=sb(o,yE,!0),g=o.onKeyDown,b=Qg((e=>{null==g||g(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(h)return;if(f)return;if(!jg(e))return;if(Ng(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=vE(e);if(o){if(!n){e.preventDefault();const n=e,{view:r}=n,o=Jm(n,["view"]),i=()=>Hg(t,o);_g&&/firefox\//i.test(navigator.userAgent)?Ug(t,"keyup",i):queueMicrotask(i)}}else i&&(p.current=!0,n||(e.preventDefault(),d(!0)))}})),v=o.onKeyUp,y=Qg((e=>{if(null==v||v(e),e.defaultPrevented)return;if(h)return;if(f)return;if(e.metaKey)return;const t=r&&" "===e.key;if(p.current&&t&&(p.current=!1,!vE(e))){e.preventDefault(),d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=Jm(n,["view"]);queueMicrotask((()=>Hg(t,o)))}}));return o=Qm(Zm(Zm({"data-active":u?"":void 0,type:l?"button":void 0},m),o),{ref:Jg(i,o.ref),onKeyDown:b,onKeyUp:y}),o=Pv(o)}));jb((e=>Hb("button",e=wE(e))));var kE=Ub(),_E=kE.useContext,EE=(kE.useScopedContext,kE.useProviderContext,kE.ContextProvider),xE=kE.ScopedContextProvider,SE=$b((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=hg,element:i}=t,a=Jm(t,["store","shouldRegisterItem","getItem","element"]);const s=_E();n=n||s;const l=eb(a.id),c=(0,ae.useRef)(i);return(0,ae.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=Qm(Zm({},a),{ref:Jg(c,a.ref)})}));jb((e=>Hb("div",SE(e))));var CE={id:null};function IE(e,t){return t&&e.item(t)||null}var TE=Symbol("FOCUS_SILENTLY");function PE(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 AE=Ub([EE],[xE]),BE=AE.useContext,NE=(AE.useScopedContext,AE.useProviderContext),RE=AE.ContextProvider,OE=AE.ScopedContextProvider,ME=(0,ae.createContext)(void 0),LE=(0,ae.createContext)(void 0);function DE(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function zE(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=Mg(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=IE(t,l))?void 0:o.element;if(!a)continue;const u=DE(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 FE=$b((e=>{var t=e,{store:n,rowId:r,preventScrollOnKeyDown:o=!1,moveOnKeyPress:i=!0,tabbable:a=!1,getItem:s,"aria-setsize":l,"aria-posinset":c}=t,u=Jm(t,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const d=BE();n=n||d;const p=eb(u.id),f=(0,ae.useRef)(null),h=(0,ae.useContext)(LE),m=Cb(n,(e=>r||(e&&(null==h?void 0:h.baseElement)&&h.baseElement===e.baseElement?h.id:void 0))),g=bg(u)&&!u.accessibleWhenDisabled,b=(0,ae.useCallback)((e=>{const t=Qm(Zm({},e),{id:p||e.id,rowId:m,disabled:!!g});return s?s(t):t}),[p,m,g,s]),v=u.onFocus,y=(0,ae.useRef)(!1),w=Qg((e=>{if(null==v||v(e),e.defaultPrevented)return;if(Fg(e))return;if(!p)return;if(!n)return;const{activeId:t,virtualFocus:r,baseElement:o}=n.getState();if(function(e,t){return!jg(e)&&PE(t,e.target)}(e,n))return;if(t!==p&&n.setActiveId(p),!r)return;if(!jg(e))return;if((i=e.currentTarget).isContentEditable||Ng(i)||"INPUT"===i.tagName&&!Ig(i))return;var i;if(!(null==o?void 0:o.isConnected))return;y.current=!0;e.relatedTarget===o||PE(n,e.relatedTarget)?function(e){e[TE]=!0,e.focus({preventScroll:!0})}(o):o.focus()})),k=u.onBlurCapture,_=Qg((e=>{if(null==k||k(e),e.defaultPrevented)return;const t=null==n?void 0:n.getState();(null==t?void 0:t.virtualFocus)&&y.current&&(y.current=!1,e.preventDefault(),e.stopPropagation())})),E=u.onKeyDown,x=ob(o),S=ob(i),C=Qg((e=>{if(null==E||E(e),e.defaultPrevented)return;if(!jg(e))return;if(!n)return;const{currentTarget:t}=e,r=n.getState(),o=n.item(p),i=!!(null==o?void 0:o.rowId),a="horizontal"!==r.orientation,s="vertical"!==r.orientation,l=()=>!!i||(!!s||(!r.baseElement||!Ng(r.baseElement))),c={ArrowUp:(i||a)&&n.up,ArrowRight:(i||s)&&n.next,ArrowDown:(i||a)&&n.down,ArrowLeft:(i||s)&&n.previous,Home:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.first():null==n?void 0:n.previous(-1)},End:()=>{if(l())return!i||e.ctrlKey?null==n?void 0:n.last():null==n?void 0:n.next(-1)},PageUp:()=>zE(t,n,null==n?void 0:n.up,!0),PageDown:()=>zE(t,n,null==n?void 0:n.down)}[e.key];if(c){const t=c();if(x(e)||void 0!==t){if(!S(e))return;e.preventDefault(),n.move(t)}}})),I=Cb(n,(e=>(null==e?void 0:e.baseElement)||void 0)),T=(0,ae.useMemo)((()=>({id:p,baseElement:I})),[p,I]);u=ib(u,(e=>(0,Fb.jsx)(ME.Provider,{value:T,children:e})),[T]);const P=Cb(n,(e=>!!e&&e.activeId===p)),A=Cb(n,"virtualFocus"),B=function(e,t){const n=t.role,[r,o]=(0,ae.useState)(n);return Yg((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(f,u);let N;P&&(!function(e){return"option"===e||"treeitem"===e}(B)?A&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(B)&&(N=!0):N=!0);const R=Cb(n,(e=>null!=l?l:e&&(null==h?void 0:h.ariaSetSize)&&h.baseElement===e.baseElement?h.ariaSetSize:void 0)),O=Cb(n,(e=>{if(null!=c)return c;if(!e)return;if(!(null==h?void 0:h.ariaPosInSet))return;if(h.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===m));return h.ariaPosInSet+t.findIndex((e=>e.id===p))})),M=Cb(n,(e=>!(null==e?void 0:e.renderedItems.length)||!e.virtualFocus&&(!!a||e.activeId===p)));return u=Qm(Zm({id:p,"aria-selected":N,"data-active-item":P?"":void 0},u),{ref:Jg(f,u.ref),tabIndex:M?u.tabIndex:-1,onFocus:w,onBlurCapture:_,onKeyDown:C}),u=wE(u),u=SE(Qm(Zm({store:n},u),{getItem:b,shouldRegisterItem:!!p&&u.shouldRegisterItem})),Qm(Zm({},u),{"aria-setsize":R,"aria-posinset":O})})),jE=Vb((e=>Hb("button",FE(e))));var VE=Ub([RE],[OE]),HE=VE.useContext,$E=(VE.useScopedContext,VE.useProviderContext,VE.ContextProvider,VE.ScopedContextProvider,$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=HE();return r=FE(Zm({store:n=n||o},r))}))),UE=Vb((e=>Hb("button",$E(e))));const WE=(0,ae.createContext)(void 0);const KE=(0,ae.forwardRef)((function({children:e,as:t,...n},r){const o=(0,ae.useContext)(WE),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("`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,ae.createElement)(t,{...a},e):i?e(a):null;const s=i?e:t&&(0,ae.createElement)(t,null,e);return(0,ae.createElement)(UE,{...a,store:o,render:s})})),GE=({children:e,className:t})=>(0,ae.createElement)("div",{className:t},e);const qE=(0,ae.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:a,...s},l){return(0,ae.useContext)(WE)?(0,ae.createElement)(KE,{className:Au("components-toolbar-button",t),...r,...s,ref:l},(t=>(0,ae.createElement)(bE,{label:a,isPressed:o,disabled:i,...t},e))):(0,ae.createElement)(GE,{className:n},(0,ae.createElement)(bE,{ref:l,icon:s.icon,label:a,shortcut:s.shortcut,"data-subscript":s.subscript,onClick:e=>{e.stopPropagation(),s.onClick&&s.onClick(e)},className:Au("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...s},e))})),YE=qE,XE=({className:e,children:t,...n})=>(0,ae.createElement)("div",{className:e,...n},t),ZE=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function QE(e,t){"function"==typeof e?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function JE(e){const t=(0,ae.useRef)(),n=(0,ae.useRef)(!1),r=(0,ae.useRef)(!1),o=(0,ae.useRef)([]),i=(0,ae.useRef)(e);return i.current=e,(0,ae.useLayoutEffect)((()=>{!1===r.current&&!0===n.current&&e.forEach(((e,n)=>{const r=o.current[n];e!==r&&(QE(r,null),QE(e,t.current))})),o.current=e}),e),(0,ae.useLayoutEffect)((()=>{r.current=!1})),(0,ae.useCallback)((e=>{QE(t,e),r.current=!0,n.current=null!==e;const a=e?i.current:o.current;for(const t of a)QE(t,e)}),[])}function ex({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,a]=(0,ae.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]}var tx="undefined"!=typeof document?ae.useLayoutEffect:ae.useEffect;function nx(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(!nx(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)&&!nx(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function rx(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ox(e,t){const n=rx(e);return Math.round(t*n)/n}function ix(e){const t=ae.useRef(e);return tx((()=>{t.current=e})),t}const ax=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?Nw({element:n.current,padding:r}).fn(t):{}:n?Nw({element:n,padding:r}).fn(t):{};var o}}),sx=(e,t)=>({...Tw(e),options:[e,t]}),lx=(e,t)=>({...Pw(e),options:[e,t]}),cx=(e,t)=>({...Rw(e),options:[e,t]}),ux=(e,t)=>({...Aw(e),options:[e,t]}),dx=(e,t)=>({...Bw(e),options:[e,t]}),px=(e,t)=>({...ax(e),options:[e,t]});function fx(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function hx(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const mx=e=>Array.isArray(e);function gx(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 bx(e){return"string"==typeof e||Array.isArray(e)}function vx(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function yx(e,t,n,r){if("function"==typeof t){const[o,i]=vx(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=vx(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function wx(e,t,n){const r=e.getProps();return yx(r,t,void 0!==n?n:r.custom,e)}const kx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_x=["initial",...kx],Ex=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xx=new Set(Ex),Sx=e=>1e3*e,Cx=e=>e/1e3,Ix={type:"spring",stiffness:500,damping:25,restSpeed:10},Tx={type:"keyframes",duration:.8},Px={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ax=(e,{keyframes:t})=>t.length>2?Tx:xx.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ix:Px;function Bx(e,t){return e[t]||e.default||e}const Nx=!1,Rx=!1,Ox=!1,Mx=e=>null!==e;function Lx(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Mx),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}const Dx=e=>e;const zx=["read","resolveKeyframes","update","preRender","render","postRender"];function Fx(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=zx.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&r?t:n;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,r?o=!0:(r=!0,[t,n]=[n,t],n.clear(),t.forEach(s),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:p}=a,f=()=>{const i=Rx?o.timestamp:performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(f))},h=zx.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(f)),s.schedule(t,i,a)),t}),{});return{schedule:h,cancel:e=>{for(let t=0;t<zx.length;t++)a[zx[t]].cancel(e)},state:o,steps:a}}const{schedule:jx,cancel:Vx,state:Hx,steps:$x}=Fx("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Dx,!0),Ux=e=>/^0[^.\s]+$/u.test(e);let Wx=Dx,Kx=Dx;const Gx=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qx=e=>t=>"string"==typeof t&&t.startsWith(e),Yx=qx("--"),Xx=qx("var(--"),Zx=e=>!!Xx(e)&&Qx.test(e.split("/*")[0].trim()),Qx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Jx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eS(e,t,n=1){Kx(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Jx.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Gx(e)?parseFloat(e):e}return Zx(o)?eS(o,t,n+1):o}const tS=(e,t,n)=>n>t?t:n<e?e:n,nS={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rS={...nS,transform:e=>tS(0,1,e)},oS={...nS,default:1},iS=e=>Math.round(1e5*e)/1e5,aS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,sS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,lS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function cS(e){return"string"==typeof e}const uS=e=>({test:t=>cS(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),dS=uS("deg"),pS=uS("%"),fS=uS("px"),hS=uS("vh"),mS=uS("vw"),gS={...pS,parse:e=>pS.parse(e)/100,transform:e=>pS.transform(100*e)},bS=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),vS=e=>e===nS||e===fS,yS=(e,t)=>parseFloat(e.split(", ")[t]),wS=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return yS(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?yS(t[1],e):0}},kS=new Set(["x","y","z"]),_S=Ex.filter((e=>!kS.has(e)));const ES={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:wS(4,13),y:wS(5,14)};ES.translateX=ES.x,ES.translateY=ES.y;const xS=e=>t=>t.test(e),SS=[nS,fS,pS,dS,mS,hS,{test:e=>"auto"===e,parse:e=>e}],CS=e=>SS.find(xS(e)),IS=new Set;let TS=!1,PS=!1;function AS(){if(PS){const e=Array.from(IS).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return _S.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}PS=!1,TS=!1,IS.forEach((e=>e.complete())),IS.clear()}function BS(){IS.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(PS=!0)}))}class NS{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(IS.add(this),TS||(TS=!0,jx.read(BS),jx.resolveKeyframes(AS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),IS.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,IS.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const RS=(e,t)=>n=>Boolean(cS(n)&&lS.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),OS=(e,t,n)=>r=>{if(!cS(r))return r;const[o,i,a,s]=r.match(aS);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},MS={...nS,transform:e=>Math.round((e=>tS(0,255,e))(e))},LS={test:RS("rgb","red"),parse:OS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+MS.transform(e)+", "+MS.transform(t)+", "+MS.transform(n)+", "+iS(rS.transform(r))+")"};const DS={test:RS("#"),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:LS.transform},zS={test:RS("hsl","hue"),parse:OS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pS.transform(iS(t))+", "+pS.transform(iS(n))+", "+iS(rS.transform(r))+")"},FS={test:e=>LS.test(e)||DS.test(e)||zS.test(e),parse:e=>LS.test(e)?LS.parse(e):zS.test(e)?zS.parse(e):DS.parse(e),transform:e=>cS(e)?e:e.hasOwnProperty("red")?LS.transform(e):zS.transform(e)};const jS="number",VS="color",HS="var",$S="var(",US="${}",WS=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function KS(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(WS,(e=>(FS.test(e)?(r.color.push(i),o.push(VS),n.push(FS.parse(e))):e.startsWith($S)?(r.var.push(i),o.push(HS),n.push(e)):(r.number.push(i),o.push(jS),n.push(parseFloat(e))),++i,US))).split(US);return{values:n,split:a,indexes:r,types:o}}function GS(e){return KS(e).values}function qS(e){const{split:t,types:n}=KS(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===jS?iS(e[i]):t===VS?FS.transform(e[i]):e[i]}return o}}const YS=e=>"number"==typeof e?0:e;const XS={test:function(e){var t,n;return isNaN(e)&&cS(e)&&((null===(t=e.match(aS))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(sS))||void 0===n?void 0:n.length)||0)>0},parse:GS,createTransformer:qS,getAnimatableNone:function(e){const t=GS(e);return qS(e)(t.map(YS))}},ZS=new Set(["brightness","contrast","saturate","opacity"]);function QS(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(aS)||[];if(!r)return e;const o=n.replace(r,"");let i=ZS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const JS=/\b([a-z-]*)\(.*?\)/gu,eC={...XS,getAnimatableNone:e=>{const t=e.match(JS);return t?t.map(QS).join(" "):e}},tC={...nS,transform:Math.round},nC={borderWidth:fS,borderTopWidth:fS,borderRightWidth:fS,borderBottomWidth:fS,borderLeftWidth:fS,borderRadius:fS,radius:fS,borderTopLeftRadius:fS,borderTopRightRadius:fS,borderBottomRightRadius:fS,borderBottomLeftRadius:fS,width:fS,maxWidth:fS,height:fS,maxHeight:fS,size:fS,top:fS,right:fS,bottom:fS,left:fS,padding:fS,paddingTop:fS,paddingRight:fS,paddingBottom:fS,paddingLeft:fS,margin:fS,marginTop:fS,marginRight:fS,marginBottom:fS,marginLeft:fS,rotate:dS,rotateX:dS,rotateY:dS,rotateZ:dS,scale:oS,scaleX:oS,scaleY:oS,scaleZ:oS,skew:dS,skewX:dS,skewY:dS,distance:fS,translateX:fS,translateY:fS,translateZ:fS,x:fS,y:fS,z:fS,perspective:fS,transformPerspective:fS,opacity:rS,originX:gS,originY:gS,originZ:fS,zIndex:tC,backgroundPositionX:fS,backgroundPositionY:fS,fillOpacity:rS,strokeOpacity:rS,numOctaves:tC},rC={...nC,color:FS,backgroundColor:FS,outlineColor:FS,fill:FS,stroke:FS,borderColor:FS,borderTopColor:FS,borderRightColor:FS,borderBottomColor:FS,borderLeftColor:FS,filter:eC,WebkitFilter:eC},oC=e=>rC[e];function iC(e,t){let n=oC(e);return n!==eC&&(n=XS),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aC=new Set(["auto","none","0"]);class sC extends NS{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Zx(r))){const o=eS(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!bS.has(n)||2!==e.length)return;const[r,o]=e,i=CS(r),a=CS(o);if(i!==a)if(vS(i)&&vS(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||Ux(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!aC.has(t)&&KS(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=iC(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ES[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=ES[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function lC(e){let t;return()=>(void 0===t&&(t=e()),t)}let cC;function uC(){cC=void 0}const dC={now:()=>(void 0===cC&&dC.set(Hx.isProcessing||Rx?Hx.timestamp:performance.now()),cC),set:e=>{cC=e,queueMicrotask(uC)}},pC=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!XS.test(e)&&"0"!==e||e.startsWith("url(")));class fC{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=dC.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(BS(),AS()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=dC.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=pC(o,t),s=pC(i,t);return Wx(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,o)){if(Ox||!i)return null==s||s(Lx(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function hC(e,t){return t?e*(1e3/t):0}const mC=5;function gC(e,t,n){const r=Math.max(t-mC,0);return hC(n-e(r),t-r)}const bC=.001,vC=.01,yC=10,wC=.05,kC=1;function _C({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Wx(e<=Sx(yC),"Spring duration must be 10 seconds or less");let a=1-t;a=tS(wC,kC,a),e=tS(vC,yC,Cx(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=xC(t,a),l=Math.exp(-o);return bC-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=xC(Math.pow(t,2),a);return(-o(t)+bC>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-bC,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<EC;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Sx(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 EC=12;function xC(e,t){return e*Math.sqrt(1-t*t)}const SC=["duration","bounce"],CC=["stiffness","damping","mass"];function IC(e,t){return t.some((t=>void 0!==e[t]))}function TC({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,duration:u,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!IC(e,CC)&&IC(e,SC)){const n=_C(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-Cx(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(s*c)),m=i-o,g=Cx(Math.sqrt(s/c)),b=Math.abs(m)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=xC(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)v=e=>i-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((f+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&u||null,next:e=>{const r=v(e);if(p)a.done=e>=u;else{let o=0;h<1&&(o=0===e?Sx(f):gC(v,e,r));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 PC({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],p={done:!1,value:d},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),y=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let w,k;const _=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(p.value)&&(w=e,k=TC({keyframes:[p.value,f(p.value)],velocity:gC(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return k||void 0!==w||(t=!0,y(e),_(e)),void 0!==w&&e>=w?k.next(e-w):(!t&&y(e),p)}}}const AC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BC=1e-7,NC=12;function RC(e,t,n,r){if(e===t&&n===r)return Dx;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=AC(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>BC&&++s<NC);return a}(t,0,1,e,n);return e=>0===e||1===e?e:AC(o(e),t,r)}const OC=RC(.42,0,1,1),MC=RC(0,0,.58,1),LC=RC(.42,0,.58,1),DC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zC=e=>t=>1-e(1-t),FC=e=>1-Math.sin(Math.acos(e)),jC=zC(FC),VC=DC(FC),HC=RC(.33,1.53,.69,.99),$C=zC(HC),UC=DC($C),WC={linear:Dx,easeIn:OC,easeInOut:LC,easeOut:MC,circIn:FC,circInOut:VC,circOut:jC,backIn:$C,backInOut:UC,backOut:HC,anticipate:e=>(e*=2)<1?.5*$C(e):.5*(2-Math.pow(2,-10*(e-1)))},KC=e=>{if(Array.isArray(e)){Kx(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return RC(t,n,r,o)}return"string"==typeof e?(Kx(void 0!==WC[e],`Invalid easing type '${e}'`),WC[e]):e},GC=(e,t)=>n=>t(e(n)),qC=(...e)=>e.reduce(GC),YC=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},XC=(e,t,n)=>e+(t-e)*n;function ZC(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 QC(e,t){return n=>n>0?t:e}const JC=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},eI=[DS,LS,zS];function tI(e){const t=(e=>eI.find((t=>t.test(e))))(e);if(Wx(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===zS&&(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=ZC(s,r,e+1/3),i=ZC(s,r,e),a=ZC(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 nI=(e,t)=>{const n=tI(e),r=tI(t);if(!n||!r)return QC(e,t);const o={...n};return e=>(o.red=JC(n.red,r.red,e),o.green=JC(n.green,r.green,e),o.blue=JC(n.blue,r.blue,e),o.alpha=XC(n.alpha,r.alpha,e),LS.transform(o))},rI=new Set(["none","hidden"]);function oI(e,t){return n=>XC(e,t,n)}function iI(e){return"number"==typeof e?oI:"string"==typeof e?Zx(e)?QC:FS.test(e)?nI:lI:Array.isArray(e)?aI:"object"==typeof e?FS.test(e)?nI:sI:QC}function aI(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>iI(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function sI(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=iI(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const lI=(e,t)=>{const n=XS.createTransformer(t),r=KS(e),o=KS(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?rI.has(e)&&!o.values.length||rI.has(t)&&!r.values.length?function(e,t){return rI.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):qC(aI(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(Wx(!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.`),QC(e,t))};function cI(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return XC(e,t,n);return iI(e)(e,t)}function uI(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Kx(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||cI,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]||Dx:t;i=qC(e,i)}r.push(i)}return r}(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=YC(e[n],e[n+1],t);return a[n](r)};return n?t=>l(tS(e[0],e[i-1],t)):l}function dI(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=YC(0,t,r);e.push(XC(n,1,o))}}(t,e.length-1),t}function pI({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(KC):KC(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:dI(t),e),s=uI(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||LC)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const fI=e=>{const t=({timestamp:t})=>e(t);return{start:()=>jx.update(t,!0),stop:()=>Vx(t),now:()=>Hx.isProcessing?Hx.timestamp:dC.now()}},hI={decay:PC,inertia:PC,tween:pI,keyframes:pI,spring:TC},mI=e=>e/100;class gI extends fC{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||NS;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=hI[t]||pI;let s,l;a!==pI&&"number"!=typeof e[0]&&(s=qC(mI,cI(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:p,repeatType:f,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),b=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,y=o;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===f?(n=1-n,h&&(n-=h/u)):"mirror"===f&&(y=i)),v=tS(0,1,n)*u}const w=b?{done:!1,value:s[0]}:y.next(v);a&&(w.value=a(w.value));let{done:k}=w;b||null===l||(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return _&&void 0!==r&&(w.value=Lx(s,this.options,r)),m&&m(w.value),_&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Cx(e.calculatedDuration):0}get time(){return Cx(this.currentTime)}set time(e){e=Sx(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Cx(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=fI,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const bI=new Set(["opacity","clipPath","filter","transform"]),vI=e=>Array.isArray(e)&&"number"==typeof e[0];function yI(e){return Boolean(!e||"string"==typeof e&&e in kI||vI(e)||Array.isArray(e)&&e.every(yI))}const wI=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,kI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wI([0,.65,.55,1]),circOut:wI([.55,0,1,.45]),backIn:wI([.31,.01,.66,-.59]),backOut:wI([.33,1.53,.69,.99])};function _I(e){return EI(e)||kI.easeOut}function EI(e){return e?vI(e)?wI(e):Array.isArray(e)?e.map(_I):kI[e]:void 0}const xI=lC((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class SI extends fC{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new sC(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:o,ease:i,type:a,motionValue:s,name:l,startTime:c}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if(function(e){return"spring"===e.type||!yI(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new gI({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,o=u.times,i=u.ease,a="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=EI(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"})}(s.owner.current,l,e,{...this.options,duration:r,times:o,ease:i});return u.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(Lx(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:o,type:a,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Cx(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Cx(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Sx(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Dx;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return Dx}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new gI({...c,keyframes:n,duration:r,type:o,ease:i,times:a,isGenerator:!0}),d=Sx(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;return xI()&&n&&bI.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const CI=lC((()=>void 0!==window.ScrollTimeline));class II{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!CI()||!t.attachTimeline)return t.pause(),function(e,t){let n;const r=()=>{const{currentTime:r}=t,o=(null===r?0:r.value)/100;n!==o&&e(o),n=o};return jx.update(r,!0),()=>Vx(r)}((e=>{t.time=t.duration*e}),e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const TI=(e,t,n,r={},o,i,a)=>s=>{const l=Bx(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u-=Sx(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),a&&a()},onStop:a,name:e,motionValue:t,element:i?void 0:o};(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})(l)||(d={...d,...Ax(e,d)}),d.duration&&(d.duration=Sx(d.duration)),d.repeatDelay&&(d.repeatDelay=Sx(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(p=!0)),(Ox||Nx)&&(p=!0,d.duration=0,d.delay=0),p&&!i&&void 0!==t.get()){const e=Lx(d.keyframes,l);if(void 0!==e)return jx.update((()=>{d.onUpdate(e),d.onComplete()})),new II([])}return!i&&SI.supports(d)?new SI(d):new gI(d)},PI=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),AI=e=>mx(e)?e[e.length-1]||0:e;function BI(e,t){-1===e.indexOf(t)&&e.push(t)}function NI(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class RI{constructor(){this.subscriptions=[]}add(e){return BI(this.subscriptions,e),()=>NI(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 OI={current:void 0};class MI{constructor(e,t={}){this.version="11.5.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=dC.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=dC.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new RI);const n=this.events[e].add(t);return"change"===e?()=>{n(),jx.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return OI.current&&OI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=dC.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return hC(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function LI(e,t){return new MI(e,t)}function DI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,LI(n))}const zI=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),FI="data-"+zI("framerAppearId");function jI(e){return e.props[FI]}function VI(e){return xx.has(e)?"transform":bI.has(e)?zI(e):void 0}class HI extends MI{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=VI(e);if(!t)return;const n=this.counts.get(t)||0;this.counts.set(t,n+1),0===n&&(this.output.push(t),this.update());let r=!1;return()=>{if(r)return;r=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&(NI(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}const $I=e=>Boolean(e&&e.getVelocity);function UI(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");return r||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(r=new HI("auto"),e.addValue("willChange",r)),o=r,Boolean($I(o)&&o.add)?r.add(t):void 0;var o}function WI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function KI(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&WI(u,t))continue;const s={delay:n,...Bx(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=jI(e);if(n){const e=window.MotionHandoffAnimation(n,t,jx);null!==e&&(s.startTime=e,d=!0)}}r.start(TI(t,r,o,e.shouldReduceMotion&&xx.has(t)?{type:!1}:s,e,d,UI(e,t)));const p=r.animation;p&&c.push(p)}return s&&Promise.all(c).then((()=>{jx.update((()=>{s&&function(e,t){const n=wx(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)DI(e,t,AI(i[t]))}(e,s)}))})),c}function GI(e,t,n={}){var r;const o=wx(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(KI(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;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(qI).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(GI(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function qI(e,t){return e.sortNodePosition(t)}const YI=[...kx].reverse(),XI=kx.length;function ZI(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=>GI(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=GI(e,t,n);else{const o="function"==typeof t?wx(e,t,n.custom):t;r=Promise.all(KI(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function QI(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!gx(t,e)}function JI(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eT(){return{animate:JI(!0),whileInView:JI(),whileHover:JI(),whileTap:JI(),whileDrag:JI(),whileFocus:JI(),exit:JI()}}class tT{constructor(e){this.isMounted=!1,this.node=e}update(){}}let nT=0;const rT={animation:{Feature:class extends tT{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=ZI(e),n=eT(),r=!0;const o=t=>(n,r)=>{var o;const i=wx(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<XI;t++){const p=YI[t],f=n[p],h=void 0!==a[p]?a[p]:s[p],m=bx(h),g=p===i?f.isActive:null;!1===g&&(d=t);let b=h===s[p]&&h!==a[p]&&m;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...u},!f.isActive&&null===g||!h&&!f.prevProp||hx(h)||"boolean"==typeof h)continue;let v=QI(f.prevProp,h)||p===i&&f.isActive&&!b&&m||t>d&&m,y=!1;const w=Array.isArray(h)?h:[h];let k=w.reduce(o(p),{});!1===g&&(k={});const{prevResolvedValues:_={}}=f,E={..._,...k},x=t=>{v=!0,c.has(t)&&(y=!0,c.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=k[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=mx(t)&&mx(n)?!gx(t,n):t!==n,r?null!=t?x(e):c.add(e):void 0!==t&&c.has(e)?x(e):f.protectedKeys[e]=!0}f.prevProp=h,f.prevResolvedValues=k,f.isActive&&(u={...u,...k}),r&&e.blockInitialAnimation&&(v=!1),!v||b&&!y||l.push(...w.map((e=>({animation:e,options:{type:p}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=eT(),r=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();hx(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends tT{constructor(){super(...arguments),this.id=nT++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},oT=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function iT(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const aT=e=>t=>oT(t)&&e(t,iT(t));function sT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lT(e,t,n,r){return sT(e,t,aT(n),r)}const cT=(e,t)=>Math.abs(e-t);class uT{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=fT(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=cT(e.x,t.x),r=cT(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}=Hx;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=dT(t,this.transformPagePoint),jx.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=fT("pointercancel"===e.type?this.lastMoveEventInfo:dT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!oT(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=dT(iT(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Hx;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,fT(i,this.history)),this.removeListeners=qC(lT(this.contextWindow,"pointermove",this.handlePointerMove),lT(this.contextWindow,"pointerup",this.handlePointerUp),lT(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vx(this.updatePoint)}}function dT(e,t){return t?{point:t(e.point)}:e}function pT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fT({point:e},t){return{point:e,delta:pT(e,mT(t)),offset:pT(e,hT(t)),velocity:gT(t,.1)}}function hT(e){return e[0]}function mT(e){return e[e.length-1]}function gT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=mT(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Sx(t)));)n--;if(!r)return{x:0,y:0};const i=Cx(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 bT(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const vT=bT("dragHorizontal"),yT=bT("dragVertical");function wT(e){let t=!1;if("y"===e)t=yT();else if("x"===e)t=vT();else{const e=vT(),n=yT();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function kT(){const e=wT(!0);return!e||(e(),!1)}function _T(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const ET=.9999,xT=1.0001,ST=-.01,CT=.01;function IT(e){return e.max-e.min}function TT(e,t,n,r=.5){e.origin=r,e.originPoint=XC(t.min,t.max,e.origin),e.scale=IT(n)/IT(t),e.translate=XC(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ET&&e.scale<=xT||isNaN(e.scale))&&(e.scale=1),(e.translate>=ST&&e.translate<=CT||isNaN(e.translate))&&(e.translate=0)}function PT(e,t,n,r){TT(e.x,t.x,n.x,r?r.originX:void 0),TT(e.y,t.y,n.y,r?r.originY:void 0)}function AT(e,t,n){e.min=n.min+t.min,e.max=e.min+IT(t)}function BT(e,t,n){e.min=t.min-n.min,e.max=e.min+IT(t)}function NT(e,t,n){BT(e.x,t.x,n.x),BT(e.y,t.y,n.y)}function RT(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 OT(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 MT=.35;function LT(e,t,n){return{min:DT(e,t),max:DT(e,n)}}function DT(e,t){return"number"==typeof e?e:e[t]||0}const zT=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),FT=()=>({x:{min:0,max:0},y:{min:0,max:0}});function jT(e){return[e("x"),e("y")]}function VT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function HT(e){return void 0===e||1===e}function $T({scale:e,scaleX:t,scaleY:n}){return!HT(e)||!HT(t)||!HT(n)}function UT(e){return $T(e)||WT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function WT(e){return KT(e.x)||KT(e.y)}function KT(e){return e&&"0%"!==e}function GT(e,t,n){return n+t*(e-n)}function qT(e,t,n,r,o){return void 0!==o&&(e=GT(e,o,r)),GT(e,n,r)+t}function YT(e,t=0,n=1,r,o){e.min=qT(e.min,t,n,r,o),e.max=qT(e.max,t,n,r,o)}function XT(e,{x:t,y:n}){YT(e.x,t.translate,t.scale,t.originPoint),YT(e.y,n.translate,n.scale,n.originPoint)}const ZT=.999999999999,QT=1.0000000000001;function JT(e,t){e.min=e.min+t,e.max=e.max+t}function eP(e,t,n,r,o=.5){YT(e,t,n,XC(e.min,e.max,o),r)}function tP(e,t){eP(e.x,t.x,t.scaleX,t.scale,t.originX),eP(e.y,t.y,t.scaleY,t.scale,t.originY)}function nP(e,t){return VT(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 rP=({current:e})=>e?e.ownerDocument.defaultView:null,oP=new WeakMap;class iP{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=FT(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new uT(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(iT(e,"page").point)},onStart:(e,t)=>{var n;const{drag:r,dragPropagation:o,onDragStart:i}=this.getProps();if(r&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=wT(r),!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),jT((e=>{let t=this.getAxisMotionValue(e).get()||0;if(pS.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=IT(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&jx.postRender((()=>i(e,t))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=UI(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.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),resumeAnimation:()=>jT((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rP(this.visualElement)})}stop(e,t){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&jx.postRender((()=>i(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||!aP(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?XC(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?XC(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&_T(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:RT(e.x,n,o),y:RT(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=MT){return!1===e?e=0:!0===e&&(e=MT),{x:LT(e,"left","right"),y:LT(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&jT((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!_T(e))return!1;const n=e.current;Kx(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=nP(e,n),{scroll:o}=t;return o&&(JT(r.x,o.offset.x),JT(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:OT(e.x,t.x),y:OT(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=VT(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=jT((a=>{if(!aP(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(TI(e,n,0,t,this.visualElement,!1,UI(this.visualElement,e)))}stopAnimation(){jT((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){jT((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){jT((t=>{const{drag:n}=this.getProps();if(!aP(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]-XC(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!_T(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};jT((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=IT(e),o=IT(t);return o>r?n=YC(t.min,t.max-r,e.min):r>o&&(n=YC(e.min,e.max-o,t.min)),tS(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(),jT((t=>{if(!aP(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(XC(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;oP.set(this.visualElement,this);const e=lT(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();_T(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),jx.read(t);const o=sT(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(jT((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=MT,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function aP(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const sP=e=>(t,n)=>{e&&jx.postRender((()=>e(t,n)))};const lP=(0,ae.createContext)(null);const cP=(0,ae.createContext)({}),uP=(0,ae.createContext)({}),dP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fP={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!fS.test(e))return e;e=parseFloat(e)}return`${pP(e,t.target.x)}% ${pP(e,t.target.y)}%`}},hP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=XS.parse(e);if(o.length>5)return r;const i=XS.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=XC(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}},mP={};const{schedule:gP,cancel:bP}=Fx(queueMicrotask,!1);class vP extends ae.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=wP,Object.assign(mP,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()})),dP.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()||jx.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),gP.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function yP(e){const[t,n]=function(){const e=(0,ae.useContext)(lP);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,ae.useId)();(0,ae.useEffect)((()=>r(o)),[]);const i=(0,ae.useCallback)((()=>n&&n(o)),[o,n]);return!t&&n?[!1,i]:[!0]}(),r=(0,ae.useContext)(cP);return(0,Fb.jsx)(vP,{...e,layoutGroup:r,switchLayoutGroup:(0,ae.useContext)(uP),isPresent:t,safeToRemove:n})}const wP={borderRadius:{...fP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fP,borderTopRightRadius:fP,borderBottomLeftRadius:fP,borderBottomRightRadius:fP,boxShadow:hP},kP=["TopLeft","TopRight","BottomLeft","BottomRight"],_P=kP.length,EP=e=>"string"==typeof e?parseFloat(e):e,xP=e=>"number"==typeof e||fS.test(e);function SP(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const CP=TP(0,.5,jC),IP=TP(.5,.95,Dx);function TP(e,t,n){return r=>r<e?0:r>t?1:n(YC(e,t,r))}function PP(e,t){e.min=t.min,e.max=t.max}function AP(e,t){PP(e.x,t.x),PP(e.y,t.y)}function BP(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function NP(e,t,n,r,o){return e=GT(e-=t,1/n,r),void 0!==o&&(e=GT(e,1/o,r)),e}function RP(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){pS.test(t)&&(t=parseFloat(t),t=XC(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=XC(i.min,i.max,r);e===i&&(s-=t),e.min=NP(e.min,t,n,s,o),e.max=NP(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const OP=["x","scaleX","originX"],MP=["y","scaleY","originY"];function LP(e,t,n,r){RP(e.x,t,OP,n?n.x:void 0,r?r.x:void 0),RP(e.y,t,MP,n?n.y:void 0,r?r.y:void 0)}function DP(e){return 0===e.translate&&1===e.scale}function zP(e){return DP(e.x)&&DP(e.y)}function FP(e,t){return e.min===t.min&&e.max===t.max}function jP(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function VP(e,t){return jP(e.x,t.x)&&jP(e.y,t.y)}function HP(e){return IT(e.x)/IT(e.y)}function $P(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class UP{constructor(){this.members=[]}add(e){BI(this.members,e),e.scheduleRender()}remove(e){if(NI(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)}}const WP=(e,t)=>e.depth-t.depth;class KP{constructor(){this.children=[],this.isDirty=!1}add(e){BI(this.children,e),this.isDirty=!0}remove(e){NI(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(WP),this.isDirty=!1,this.children.forEach(e)}}function GP(e){const t=$I(e)?e.get():e;return PI(t)?t.toValue():t}const qP={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},YP="undefined"!=typeof window&&void 0!==window.MotionDebug,XP=["","X","Y","Z"],ZP={visibility:"hidden"};let QP=0;function JP(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=jI(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jx,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&eA(r)}function tA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=QP++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,YP&&(qP.totalNodes=qP.resolvedTargetDeltas=qP.recalculatedProjection=0),this.nodes.forEach(oA),this.nodes.forEach(dA),this.nodes.forEach(pA),this.nodes.forEach(iA),YP&&window.MotionDebug.record(qP)},this.resolvedRelativeTargetAt=0,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 KP)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new RI),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=dC.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Vx(r),e(i-t))};return jx.read(r,!0),()=>Vx(r)}(r,250),dP.hasAnimatedSinceResize&&(dP.hasAnimatedSinceResize=!1,this.nodes.forEach(uA))}))}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()||vA,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!VP(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={...Bx(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||uA(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,Vx(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(fA),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&eA(this),!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(sA);this.isUpdating||this.nodes.forEach(lA),this.isUpdating=!1,this.nodes.forEach(cA),this.nodes.forEach(nA),this.nodes.forEach(rA),this.clearAllSnapshots();const e=dC.now();Hx.delta=tS(0,1e3/60,e-Hx.timestamp),Hx.timestamp=e,Hx.isProcessing=!0,$x.update.process(Hx),$x.preRender.process(Hx),$x.render.process(Hx),Hx.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gP.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aA),this.sharedNodes.forEach(hA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jx.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jx.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=FT(),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);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!zP(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||UT(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)),kA((r=n).x),kA(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return FT();const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(EA))){const{scroll:e}=this.root;e&&(JT(n.x,e.offset.x),JT(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=FT();if(AP(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&AP(n,e),JT(n.x,o.offset.x),JT(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n=FT();AP(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&&tP(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),UT(r.latestValues)&&tP(n,r.latestValues)}return UT(this.latestValues)&&tP(n,this.latestValues),n}removeTransform(e){const t=FT();AP(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!UT(n.latestValues))continue;$T(n.latestValues)&&n.updateSnapshot();const r=FT();AP(r,n.measurePageBox()),LP(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return UT(this.latestValues)&&LP(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!==Hx.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||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Hx.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=FT(),this.relativeTargetOrigin=FT(),NT(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),AP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=FT(),this.targetWithTransforms=FT()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,AT(a.x,s.x,l.x),AT(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):AP(this.target,this.layout.layoutBox),XT(this.target,this.targetDelta)):AP(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=FT(),this.relativeTargetOrigin=FT(),NT(this.relativeTargetOrigin,this.target,e.target),AP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}YP&&qP.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!$T(this.parent.latestValues)&&!WT(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===Hx.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;AP(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{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&tP(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,XT(e,a)),r&&UT(i.latestValues)&&tP(e,i.latestValues))}t.x<QT&&t.x>ZT&&(t.x=1),t.y<QT&&t.y>ZT&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=FT());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(BP(this.prevProjectionDelta.x,this.projectionDelta.x),BP(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),PT(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&$P(this.projectionDelta.x,this.prevProjectionDelta.x)&&$P(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),YP&&qP.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zT(),this.projectionDelta=zT(),this.projectionDeltaWithTransform=zT()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=zT();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=FT(),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(bA));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;mA(i.x,e.x,n),mA(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(NT(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){gA(e.x,t.x,n.x,r),gA(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return FP(e.x,t.x)&&FP(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=FT()),AP(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=XC(0,void 0!==n.opacity?n.opacity:1,CP(r)),e.opacityExit=XC(void 0!==t.opacity?t.opacity:1,0,IP(r))):i&&(e.opacity=XC(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<_P;o++){const i=`border${kP[o]}Radius`;let a=SP(t,i),s=SP(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||xP(a)===xP(s)?(e[i]=Math.max(XC(EP(a),EP(s),r),0),(pS.test(s)||pS.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=XC(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&&(Vx(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jx.update((()=>{dP.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=$I(e)?e:LI(e);return r.start(TI("",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&&_A(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||FT();const t=IT(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=IT(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}AP(t,n),tP(t,o),PT(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new UP);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&JP("z",e,r,this.animationValues);for(let t=0;t<XP.length;t++)JP(`rotate${XP[t]}`,e,r,this.animationValues),JP(`skew${XP[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ZP;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=GP(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=GP(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!UT(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(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 mP){if(void 0===a[e])continue;const{correct:t,applyTo:n}=mP[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?GP(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(sA),this.root.sharedNodes.clear()}}}function nA(e){e.updateLayout()}function rA(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?jT((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=IT(r);r.min=t[e].min,r.max=r.min+o})):_A(o,n.layoutBox,t)&&jT((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=IT(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=zT();PT(a,t,n.layoutBox);const s=zT();i?PT(s,e.applyTransform(r,!0),n.measuredBox):PT(s,t,n.layoutBox);const l=!zP(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=FT();NT(a,n.layoutBox,o.layoutBox);const s=FT();NT(s,t,i.layoutBox),VP(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 oA(e){YP&&qP.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 iA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aA(e){e.clearSnapshot()}function sA(e){e.clearMeasurements()}function lA(e){e.isLayoutDirty=!1}function cA(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function uA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dA(e){e.resolveTargetDelta()}function pA(e){e.calcProjection()}function fA(e){e.resetSkewAndRotation()}function hA(e){e.removeLeadSnapshot()}function mA(e,t,n){e.translate=XC(t.translate,0,n),e.scale=XC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gA(e,t,n,r){e.min=XC(t.min,n.min,r),e.max=XC(t.max,n.max,r)}function bA(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const vA={duration:.45,ease:[.4,0,.1,1]},yA=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wA=yA("applewebkit/")&&!yA("chrome/")?Math.round:Dx;function kA(e){e.min=wA(e.min),e.max=wA(e.max)}function _A(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=HP(t),o=HP(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function EA(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const xA=tA({attachResizeListener:(e,t)=>sT(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),SA={current:void 0},CA=tA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!SA.current){const e=new xA({});e.mount(window),e.setOptions({layoutScroll:!0}),SA.current=e}return SA.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),IA={pan:{Feature:class extends tT{constructor(){super(...arguments),this.removePointerDownListener=Dx}onPointerDown(e){this.session=new uT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rP(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:sP(e),onStart:sP(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&jx.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=lT(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 tT{constructor(e){super(e),this.removeGroupControls=Dx,this.removeListeners=Dx,this.controls=new iP(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dx}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:CA,MeasureLayout:yP}};function TA(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return lT(e.current,n,((n,o)=>{if("touch"===n.pointerType||kT())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const a=i[r];a&&jx.postRender((()=>a(n,o)))}),{passive:!e.getProps()[r]})}const PA=(e,t)=>!!t&&(e===t||PA(e,t.parentElement));function AA(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,iT(n))}const BA=new WeakMap,NA=new WeakMap,RA=e=>{const t=BA.get(e.target);t&&t(e)},OA=e=>{e.forEach(RA)};function MA(e,t,n){const r=function({root:e,...t}){const n=e||document;NA.has(n)||NA.set(n,{});const r=NA.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(OA,{root:e,...t})),r[o]}(t);return BA.set(e,n),r.observe(e),()=>{BA.delete(e),r.unobserve(e)}}const LA={some:0,all:1};const DA={inView:{Feature:class extends tT{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:LA[r]};return MA(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 tT{constructor(){super(...arguments),this.removeStartListeners=Dx,this.removeEndListeners=Dx,this.removeAccessibleListeners=Dx,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=lT(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps(),i=o||PA(this.node.current,e.target)?n:r;i&&jx.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),o=lT(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=qC(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=sT(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=sT(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&AA("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&jx.postRender((()=>n(e,t)))}))})),AA("down",((e,t)=>{this.startPress(e,t)}))})),t=sT(this.node.current,"blur",(()=>{this.isPressing&&AA("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=qC(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&&jx.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!kT()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&jx.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=lT(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=sT(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=qC(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends tT{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=qC(sT(this.node.current,"focus",(()=>this.onFocus())),sT(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends tT{mount(){this.unmount=qC(TA(this.node,!0),TA(this.node,!1))}unmount(){}}}},zA={layout:{ProjectionNode:CA,MeasureLayout:yP}},FA=(0,ae.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),jA=(0,ae.createContext)({}),VA="undefined"!=typeof window,HA=VA?ae.useLayoutEffect:ae.useEffect,$A=(0,ae.createContext)({strict:!1});let UA=!1;function WA(e,t,n,r,o){var i;const{visualElement:a}=(0,ae.useContext)(jA),s=(0,ae.useContext)($A),l=(0,ae.useContext)(lP),c=(0,ae.useContext)(FA).reducedMotion,u=(0,ae.useRef)();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const d=u.current,p=(0,ae.useContext)(uP);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:GA(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&_T(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(u.current,n,o,p),(0,ae.useInsertionEffect)((()=>{d&&d.update(n,l)}));const f=n[FI],h=(0,ae.useRef)(Boolean(f)&&!window.MotionHandoffIsComplete&&(null===(i=window.MotionHasOptimisedAnimation)||void 0===i?void 0:i.call(window,f)));return HA((()=>{d&&(d.updateFeatures(),gP.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())})),(0,ae.useEffect)((()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current=!1,UA||(UA=!0,queueMicrotask(KA)))})),d}function KA(){window.MotionHandoffIsComplete=!0}function GA(e){if(e)return!1!==e.options.allowProjection?e.projection:GA(e.parent)}function qA(e,t,n){return(0,ae.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):_T(n)&&(n.current=r))}),[t])}function YA(e){return hx(e.animate)||_x.some((t=>bx(e[t])))}function XA(e){return Boolean(YA(e)||e.variants)}function ZA(e){const{initial:t,animate:n}=function(e,t){if(YA(e)){const{initial:t,animate:n}=e;return{initial:!1===t||bx(t)?t:void 0,animate:bx(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,ae.useContext)(jA));return(0,ae.useMemo)((()=>({initial:t,animate:n})),[QA(t),QA(n)])}function QA(e){return Array.isArray(e)?e.join(" "):e}const JA={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"]},eB={};for(const e in JA)eB[e]={isEnabled:t=>JA[e].some((e=>!!t[e]))};const tB=Symbol.for("motionComponentSymbol");function nB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)eB[t]={...eB[t],...e[t]}}(e);const i=(0,ae.forwardRef)((function(e,i){let a;const s={...(0,ae.useContext)(FA),...e,layoutId:rB(e)},{isStatic:l}=s,c=ZA(e),u=r(e,l);if(!l&&VA){!function(){(0,ae.useContext)($A).strict;0}();const e=function(e){const{drag:t,layout:n}=eB;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(s);a=e.MeasureLayout,c.visualElement=WA(o,u,s,t,e.ProjectionNode)}return(0,Fb.jsxs)(jA.Provider,{value:c,children:[a&&c.visualElement?(0,Fb.jsx)(a,{visualElement:c.visualElement,...s}):null,n(o,e,qA(u,c.visualElement,i),u,l,c.visualElement)]})}));return i[tB]=o,i}function rB({layoutId:e}){const t=(0,ae.useContext)(cP).id;return t&&void 0!==e?t+"-"+e:e}const oB=["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 iB(e){return"string"==typeof e&&!e.includes("-")&&!!(oB.indexOf(e)>-1||/[A-Z]/u.test(e))}function aB(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 sB=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 lB(e,t,n,r){aB(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(sB.has(n)?n:zI(n),t.attrs[n])}function cB(e,{layout:t,layoutId:n}){return xx.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!mP[e]||"opacity"===e)}function uB(e,t,n){var r;const{style:o}=e,i={};for(const a in o)($I(o[a])||t.style&&$I(t.style[a])||cB(a,e)||void 0!==(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(i[a]=o[a]);return n&&o&&"string"==typeof o.willChange&&(n.applyWillChange=!1),i}function dB(e,t,n){const r=uB(e,t,n);for(const n in e)if($I(e[n])||$I(t[n])){r[-1!==Ex.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function pB(e){const t=(0,ae.useRef)(null);return null===t.current&&(t.current=e()),t.current}const fB=e=>(t,n)=>{const r=(0,ae.useContext)(jA),o=(0,ae.useContext)(lP),i=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,a,s){const l={latestValues:gB(o,i,a,!s&&e,t),renderState:n()};return r&&(l.mount=e=>r(o,e,l)),l}(e,t,r,o,n);return n?i():pB(i)};function hB(e,t){const n=VI(t);n&&BI(e,n)}function mB(e,t,n){const r=Array.isArray(t)?t:[t];for(let t=0;t<r.length;t++){const o=yx(e,r[t]);if(o){const{transitionEnd:e,transition:t,...r}=o;n(r,e)}}}function gB(e,t,n,r,o){var i;const a={},s=[],l=r&&void 0===(null===(i=e.style)||void 0===i?void 0:i.willChange),c=o(e,{});for(const e in c)a[e]=GP(c[e]);let{initial:u,animate:d}=e;const p=YA(e),f=XA(e);t&&f&&!p&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===d&&(d=t.animate));let h=!!n&&!1===n.initial;h=h||!1===u;const m=h?d:u;return m&&"boolean"!=typeof m&&!hx(m)&&mB(e,m,((e,t)=>{for(const t in e){let n=e[t];if(Array.isArray(n)){n=n[h?n.length-1:0]}null!==n&&(a[t]=n)}for(const e in t)a[e]=t[e]})),l&&(d&&!1!==u&&!hx(d)&&mB(e,d,(e=>{for(const t in e)hB(s,t)})),s.length&&(a.willChange=s.join(","))),a}const bB=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),vB=()=>({...bB(),attrs:{}}),yB=(e,t)=>t&&"number"==typeof e?t.transform(e):e,wB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kB=Ex.length;function _B(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(xx.has(e))a=!0;else if(Yx(e))o[e]=n;else{const t=yB(n,nC[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<kB;i++){const a=Ex[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=yB(s,nC[a]);l||(o=!1,r+=`${wB[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}function EB(e,t,n){return"string"==typeof e?e:fS.transform(t+n*e)}const xB={offset:"stroke-dashoffset",array:"stroke-dasharray"},SB={offset:"strokeDashoffset",array:"strokeDasharray"};function CB(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(_B(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:h}=e;p.transform&&(h&&(f.transform=p.transform),delete p.transform),h&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${EB(t,e.x,e.width)} ${EB(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?xB:SB;e[i.offset]=fS.transform(-r);const a=fS.transform(t),s=fS.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const IB=e=>"string"==typeof e&&"svg"===e.toLowerCase(),TB={useVisualState:fB({scrapeMotionValuesFromProps:dB,createRenderState:vB,onMount:(e,t,{renderState:n,latestValues:r})=>{jx.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),jx.render((()=>{CB(n,r,IB(t.tagName),e.transformTemplate),lB(t,n)}))}})},PB={useVisualState:fB({applyWillChange:!0,scrapeMotionValuesFromProps:uB,createRenderState:bB})};function AB(e,t,n){for(const r in t)$I(t[r])||cB(r,n)||(e[r]=t[r])}function BB(e,t){const n={};return AB(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,ae.useMemo)((()=>{const n=bB();return _B(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}function NB(e,t){const n={},r=BB(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const RB=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function OB(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RB.has(e)}let MB=e=>!OB(e);try{(LB=o(3062).Z)&&(MB=e=>e.startsWith("on")?!OB(e):LB(e))}catch(kg){}var LB;function DB(e,t,n,r){const o=(0,ae.useMemo)((()=>{const n=vB();return CB(n,t,IB(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};AB(t,e.style,e),o.style={...t,...o.style}}return o}function zB(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(iB(t)?DB:NB)(n,o,i,t),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(MB(o)||!0===n&&OB(o)||!t&&!OB(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==ae.Fragment?{...s,...a,ref:r}:{},{children:c}=n,u=(0,ae.useMemo)((()=>$I(c)?c.get():c),[c]);return(0,ae.createElement)(t,{...l,children:u})}}function FB(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return nB({...iB(n)?TB:PB,preloadedFeatures:e,useRender:zB(r),createVisualElement:t,Component:n})}}const jB={current:null},VB={current:!1};const HB=new WeakMap,$B=[...SS,FS,XS],UB=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],WB=_x.length;class KB{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=NS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,jx.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=YA(t),this.isVariantNode=XA(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&$I(t)&&t.set(s[e],!1)}}mount(e){this.current=e,HB.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))),VB.current||function(){if(VB.current=!0,VA)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>jB.current=e.matches;e.addListener(t),t()}else jB.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||jB.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){HB.delete(this.current),this.projection&&this.projection.unmount(),Vx(this.notifyUpdate),Vx(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),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){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=xx.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&jx.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in eB){const t=eB[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):FT()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<UB.length;t++){const n=UB[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){for(const r in t){const o=t[r],i=n[r];if($I(o))e.addValue(r,o);else if($I(i))e.addValue(r,LI(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,LI(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<WB;e++){const n=_x[e],r=this.props[n];(bx(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=LI(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(Gx(r)||Ux(r))?r=parseFloat(r):!(e=>$B.find(xS(e)))(r)&&XS.test(t)&&(r=iC(e,t)),this.setBaseTarget(e,$I(r)?r.get():r)),$I(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=yx(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||$I(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 RI),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class GB extends KB{constructor(){super(...arguments),this.KeyframeResolver=sC}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class qB extends GB{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=aB}readValueFromInstance(e,t){if(xx.has(t)){const e=oC(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Yx(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return nP(e,t)}build(e,t,n){_B(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return uB(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$I(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class YB extends GB{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=FT}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(xx.has(t)){const e=oC(t);return e&&e.default||0}return t=sB.has(t)?t:zI(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return dB(e,t,n)}build(e,t,n){CB(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){lB(e,t,0,r)}mount(e){this.isSVGTag=IB(e.tagName),super.mount(e)}}const XB=(e,t)=>iB(e)?new YB(t):new qB(t,{allowProjection:e!==ae.Fragment}),ZB=fx(FB({...rT,...DA,...IA,...zA},XB)),QB=new Map;function JB(e){const t=(0,ae.useMemo)((()=>{const t=function(e){if(!e)return null;let t=QB.get(e);return t||("undefined"!=typeof window&&"function"==typeof window.matchMedia?(t=window.matchMedia(e),QB.set(e,t),t):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,ae.useSyncExternalStore)(t.subscribe,t.getValue,(()=>!1))}const eN={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},tN={">=":"min-width","<":"max-width"},nN={">=":(e,t)=>t>=e,"<":(e,t)=>t<e},rN=(0,ae.createContext)(null),oN=(e,t=">=")=>{const n=(0,ae.useContext)(rN),r=JB(!n&&`(${tN[t]}: ${eN[e]}px)`||void 0);return n?nN[t](eN[e],n):r};oN.__experimentalWidthProvider=rN.Provider;const iN=oN;function aN(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 sN=8,lN=9,cN=13,uN=27,dN=32,pN=37,fN=38,hN=39,mN=40,gN=46,bN="alt",vN="ctrl",yN="meta",wN="shift";function kN(e){return e.length<2?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1)}function _N(e,t){return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,t(n)])))}const EN={primary:e=>e()?[yN]:[vN],primaryShift:e=>e()?[wN,yN]:[vN,wN],primaryAlt:e=>e()?[bN,yN]:[vN,bN],secondary:e=>e()?[wN,bN,yN]:[vN,wN,bN],access:e=>e()?[vN,bN]:[wN,bN],ctrl:()=>[vN],alt:()=>[bN],ctrlShift:()=>[vN,wN],shift:()=>[wN],shiftAlt:()=>[wN,bN],undefined:()=>[]},xN=_N(EN,(e=>(t,n=aN)=>[...e(n),t.toLowerCase()].join("+"))),SN=_N(EN,(e=>(t,n=aN)=>{const r=n(),o={[bN]:r?"⌥":"Alt",[vN]:r?"⌃":"Ctrl",[yN]:"⌘",[wN]: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,"+"]}),[]),kN(t)]})),CN=_N(SN,(e=>(t,n=aN)=>e(t,n).join(""))),IN=_N(EN,(e=>(t,n=aN)=>{const r=n(),o={[wN]:"Shift",[yN]:r?"Command":"Control",[vN]:"Control",[bN]:r?"Option":"Alt",",":Kn("Comma"),".":Kn("Period"),"`":Kn("Backtick"),"~":Kn("Tilde")};return[...e(n),t].map((e=>{var t;return kN(null!==(t=o[e])&&void 0!==t?t:e)})).join(r?" ":" + ")}));const TN=_N(EN,(e=>(t,n,r=aN)=>{const o=e(r),i=function(e){return[bN,vN,yN,wN].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 PN(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function AN(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(!PN(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&&PN(n)}(e)}))}function BN(e){const t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function NN(e){return-1!==BN(e)}function RN(e,t){return{element:e,index:t}}function ON(e){return e.element}function MN(e,t){const n=BN(e.element),r=BN(t.element);return n===r?e.index-t.index:n-r}function LN(e){return e.filter(NN).map(RN).sort(MN).map(ON).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 DN(e){return LN(AN(e))}function zN(e){return LN(AN(e.ownerDocument.body)).reverse().find((t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING))}function FN(e){return LN(AN(e.ownerDocument.body)).find((t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING))}const jN={focusable:f,tabbable:h};function VN(e,t){const n=(0,ae.useRef)();return(0,ae.useCallback)((t=>{t?n.current=e(t):n.current&&n.current()}),t)}const HN=function(){return VN((e=>{function t(t){const{key:n,shiftKey:r,target:o}=t;if("Tab"!==n)return;const i=r?"findPrevious":"findNext",a=jN.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 $N(e="firstElement"){const t=(0,ae.useRef)(e),n=e=>{e.focus({preventScroll:!0})},r=(0,ae.useRef)();return(0,ae.useEffect)((()=>{t.current=e}),[e]),(0,ae.useEffect)((()=>()=>{r.current&&clearTimeout(r.current)}),[]),(0,ae.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=jN.tabbable.find(e)[0];t&&n(t)}),0)))}),[])}let UN=null;const WN=function(e){const t=(0,ae.useRef)(null),n=(0,ae.useRef)(null),r=(0,ae.useRef)(e);return(0,ae.useEffect)((()=>{r.current=e}),[e]),(0,ae.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=UN)&&void 0!==o||(UN=n.current));r.current?r.current():(n.current.isConnected?n.current:UN)?.focus(),UN=null}}),[])},KN=["button","submit"];function GN(e){const t=(0,ae.useRef)(e);(0,ae.useEffect)((()=>{t.current=e}),[e]);const n=(0,ae.useRef)(!1),r=(0,ae.useRef)(),o=(0,ae.useCallback)((()=>{clearTimeout(r.current)}),[]);(0,ae.useEffect)((()=>()=>o()),[]),(0,ae.useEffect)((()=>{e||o()}),[e,o]);const i=(0,ae.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 KN.includes(e.type)}return!1}(r)&&(n.current=!0)}),[]),a=(0,ae.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 qN=function(e){const t=(0,ae.useRef)(),{constrainTabbing:n=!1!==e.focusOnMount}=e;(0,ae.useEffect)((()=>{t.current=e}),Object.values(e));const r=HN(),o=$N(e.focusOnMount),i=WN(),a=GN((e=>{t.current?.__unstableOnClose?t.current.__unstableOnClose("focus-outside",e):t.current?.onClose&&t.current.onClose()})),s=(0,ae.useCallback)((e=>{e&&e.addEventListener("keydown",(e=>{e.keyCode===uN&&!e.defaultPrevented&&t.current?.onClose&&(e.preventDefault(),t.current.onClose())}))}),[]);return[JE([n?r:null,!1!==e.focusOnMount?i:null,!1!==e.focusOnMount?o:null,s]),{...a,tabIndex:-1}]},YN=()=>JB("(prefers-reduced-motion: reduce)"),XN=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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 ZN=0;function QN(e){const t=document.scrollingElement||document.body;e&&(ZN=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=ZN)}let JN=0;const eR=function(){return(0,ae.useEffect)((()=>(0===JN&&QN(!0),++JN,()=>{1===JN&&QN(!1),--JN})),[]),null};function tR(e,t){const[n,r]=(0,ae.useMemo)((()=>[n=>e.subscribe(t,n),()=>e.get(t)]),[e,t]);return(0,ae.useSyncExternalStore)(n,r,r)}function nR(){const e=new Map,t=new Map;function n(e){const n=t.get(e);if(n)for(const e of n)e()}return{get:t=>e.get(t),set(t,r){e.set(t,r),n(t)},delete(t){e.delete(t),n(t)},subscribe(e,n){let r=t.get(e);return r||(r=new Set,t.set(e,r)),r.add(n),()=>{r.delete(n),0===r.size&&t.delete(e)}}}}const rR={slots:nR(),fills:nR(),registerSlot:()=>{"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},oR=(0,ae.createContext)(rR);function iR(e){const t=(0,ae.useContext)(oR);return{...tR(t.slots,e),...(0,ae.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 aR={registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>[],subscribe:()=>()=>{}},sR=(0,ae.createContext)(aR),lR=e=>{const{getSlot:t,subscribe:n}=(0,ae.useContext)(sR);return(0,ae.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function cR({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,ae.useContext)(sR),o=lR(e),i=(0,ae.useRef)({name:e,children:t});return(0,ae.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,ae.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,ae.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function uR(e){return"function"==typeof e}class dR extends ae.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=uR(e.children)?e.children(r):e.children;return ae.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,ae.cloneElement)(e,{key:n})}))})).filter((e=>!(e=>"number"!=typeof e&&("string"==typeof e?.valueOf()||Array.isArray(e)?!e.length:!e))(e)));return(0,ae.createElement)(ae.Fragment,null,uR(t)?t(i):i)}}const pR=e=>(0,ae.createElement)(sR.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,ae.createElement)(dR,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),fR=new Set,hR=new WeakMap;function mR(e){const{children:t,document:n}=e;if(!n)return null;const r=(e=>{if(hR.has(e))return hR.get(e);let t=ca().replace(/[0-9]/g,"");for(;fR.has(t);)t=ca().replace(/[0-9]/g,"");fR.add(t);const n=__({container:e,key:t});return hR.set(e,n),n})(n.head);return(0,ae.createElement)(j_,{value:r},t)}const gR=mR;function bR(e){var t;const{name:n,children:r}=e,{registerFill:o,unregisterFill:i,...a}=iR(n),s=function(){const[,e]=(0,ae.useState)({}),t=(0,ae.useRef)(!0);return(0,ae.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),l=(0,ae.useRef)({rerender:s});if((0,ae.useEffect)((()=>(o(l),()=>{i(l)})),[o,i]),!a.ref||!a.ref.current)return null;const c=(0,ae.createElement)(gR,{document:a.ref.current.ownerDocument},"function"==typeof r?r(null!==(t=a.fillProps)&&void 0!==t?t:{}):r);return(0,ly.createPortal)(c,a.ref.current)}const vR=(0,ae.forwardRef)((function(e,t){const{name:n,fillProps:r={},as:o,children:i,...a}=e,{registerSlot:s,unregisterSlot:l,...c}=(0,ae.useContext)(oR),u=(0,ae.useRef)(null);return(0,ae.useLayoutEffect)((()=>(s(n,u,r),()=>{l(n,u)})),[s,l,n]),(0,ae.useLayoutEffect)((()=>{c.updateSlot(n,r)})),(0,ae.createElement)(fE,{as:o,ref:JE([t,u]),...a})}));function yR(){const e=nR(),t=nR();return{slots:e,fills:t,registerSlot:(t,n,r)=>{const o=e.get(t);e.set(t,{...o,ref:n||o?.ref,fillProps:r||o?.fillProps||{}})},updateSlot:(n,r)=>{const o=e.get(n);if(!o)return;if(ss(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.forEach((e=>e.current.rerender()))},unregisterSlot:(t,n)=>{e.get(t)?.ref===n&&e.delete(t)},registerFill:(e,n)=>{t.set(e,[...t.get(e)||[],n])},unregisterFill:(e,n)=>{const r=t.get(e);r&&t.set(e,r.filter((e=>e!==n)))}}}function wR({children:e}){const t=(0,ae.useMemo)(yR,[]);return(0,ae.createElement)(oR.Provider,{value:t},e)}function kR(){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 _R=function({children:e}){const t=(0,ae.useMemo)(kR,[]);return(0,ae.createElement)(sR.Provider,{value:t},e)};function ER(e){return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(cR,{...e}),(0,ae.createElement)(bR,{...e}))}const xR=(0,ae.forwardRef)((function(e,t){const{bubblesVirtually:n,...r}=e;return n?(0,ae.createElement)(vR,{...r,ref:t}):(0,ae.createElement)(pR,{...r})}));function SR({children:e,passthrough:t=!1}){return!(0,ae.useContext)(oR).isDefault&&t?(0,ae.createElement)(ae.Fragment,null,e):(0,ae.createElement)(_R,null,(0,ae.createElement)(wR,null,e))}function CR(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,ae.createElement)(ER,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,ae.createElement)(xR,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const IR="Popover",TR=()=>(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,ae.createElement)(Bu,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,ae.createElement)(Bu,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),PR=(0,ae.createContext)(void 0),AR="components-popover__fallback-container",BR=J_(((e,t)=>{const{animate:n=!0,headerTitle:r,constrainTabbing:o,onClose:i,children:a,className:s,noArrow:l=!0,position:c,placement:u="bottom-start",offset:d=0,focusOnMount:p="firstElement",anchor:f,expandOnMobile:h,onFocusOutside:m,__unstableSlotName:g=IR,flip:b=!0,resize:v=!0,shift:y=!1,inline:w=!1,variant:k,__unstableForcePosition:_,anchorRef:E,anchorRect:x,getAnchorRect:S,isAlternate:C,...I}=Q_(e,"Popover");let T=b,P=v;void 0!==_&&(Mt("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),T=!_,P=!_),void 0!==E&&Mt("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==x&&Mt("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==S&&Mt("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const A=C?"toolbar":k;void 0!==C&&Mt("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const B=(0,ae.useRef)(null),[N,R]=(0,ae.useState)(null),O=(0,ae.useCallback)((e=>{R(e)}),[]),M=iN("medium","<"),L=h&&M,D=!L&&!l,z=c?Qw(c):u,F=[..."overlay"===u?[{name:"overlay",fn:({rects:e})=>e.reference},dx({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`})}})]:[],sx(d),T&&ux(),P&&dx({apply(e){var t;const{firstElementChild:n}=null!==(t=G.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}),y&&lx({crossAxis:!0,limiter:cx(),padding:1}),px({element:B})],j=(0,ae.useContext)(PR)||g,V=iR(j);let H;(i||m)&&(H=(e,t)=>{"focus-outside"===e&&m?m(t):i&&i()});const[$,U]=qN({constrainTabbing:o,focusOnMount:p,__unstableOnClose:H,onClose:H}),{x:W,y:K,refs:G,strategy:q,update:Y,placement:X,middlewareData:{arrow:Z}}=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]=ae.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=ae.useState(r);nx(p,r)||f(r);const[h,m]=ae.useState(null),[g,b]=ae.useState(null),v=ae.useCallback((e=>{e!==_.current&&(_.current=e,m(e))}),[]),y=ae.useCallback((e=>{e!==E.current&&(E.current=e,b(e))}),[]),w=i||h,k=a||g,_=ae.useRef(null),E=ae.useRef(null),x=ae.useRef(u),S=null!=l,C=ix(l),I=ix(o),T=ae.useCallback((()=>{if(!_.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};I.current&&(e.platform=I.current),Ow(_.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};P.current&&!nx(x.current,t)&&(x.current=t,ly.flushSync((()=>{d(t)})))}))}),[p,t,n,I]);tx((()=>{!1===c&&x.current.isPositioned&&(x.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const P=ae.useRef(!1);tx((()=>(P.current=!0,()=>{P.current=!1})),[]),tx((()=>{if(w&&(_.current=w),k&&(E.current=k),w&&k){if(C.current)return C.current(w,k,T);T()}}),[w,k,T,C,S]);const A=ae.useMemo((()=>({reference:_,floating:E,setReference:v,setFloating:y})),[v,y]),B=ae.useMemo((()=>({reference:w,floating:k})),[w,k]),N=ae.useMemo((()=>{const e={position:n,left:0,top:0};if(!B.floating)return e;const t=ox(B.floating,u.x),r=ox(B.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...rx(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,B.floating,u.x,u.y]);return ae.useMemo((()=>({...u,update:T,refs:A,elements:B,floatingStyles:N})),[u,T,A,B,N])}({placement:"overlay"===z?void 0:z,middleware:F,whileElementsMounted:(e,t,n)=>Iw(e,t,n,{layoutShift:!1,animationFrame:!0})}),Q=(0,ae.useCallback)((e=>{B.current=e,Y()}),[Y]),J=E?.top,ee=E?.bottom,te=E?.startContainer,ne=E?.current;(0,ae.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:E,anchorRect:x,getAnchorRect:S,fallbackReferenceElement:N});G.setReference(e)}),[f,E,J,ee,te,ne,x,S,N,G]);const re=JE([G.setFloating,$,t]),oe=L?void 0:{position:q,top:0,left:0,x:ek(W),y:ek(K)},ie=YN(),se=n&&!L&&!ie,[le,ce]=(0,ae.useState)(!1),{style:ue,...de}=(0,ae.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Jw[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]}}})(X)),[X]),pe=se?{style:{...ue,...oe},onAnimationComplete:()=>ce(!0),...de}:{animate:!1,style:oe},fe=(!se||le)&&null!==W&&null!==K;let he=(0,ae.createElement)(ZB.div,{className:Au(s,{"is-expanded":L,"is-positioned":fe,[`is-${"toolbar"===A?"alternate":A}`]:A}),...pe,...I,ref:re,...U,tabIndex:-1},L&&(0,ae.createElement)(eR,null),L&&(0,ae.createElement)("div",{className:"components-popover__header"},(0,ae.createElement)("span",{className:"components-popover__header-title"},r),(0,ae.createElement)(bE,{className:"components-popover__close",icon:XN,onClick:i})),(0,ae.createElement)("div",{className:"components-popover__content"},a),D&&(0,ae.createElement)("div",{ref:Q,className:["components-popover__arrow",`is-${X.split("-")[0]}`].join(" "),style:{left:void 0!==Z?.x&&Number.isFinite(Z.x)?`${Z.x}px`:"",top:void 0!==Z?.y&&Number.isFinite(Z.y)?`${Z.y}px`:""}},(0,ae.createElement)(TR,null)));const me=V.ref&&!w,ge=E||x||f;return me?he=(0,ae.createElement)(ER,{name:j},he):w||(he=(0,ly.createPortal)((0,ae.createElement)(mR,{document},he),(()=>{let e=document.body.querySelector("."+AR);return e||(e=document.createElement("div"),e.className=AR,document.body.append(e)),e})())),ge?he:(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("span",{ref:O}),he)}),"Popover");BR.Slot=(0,ae.forwardRef)((function({name:e=IR},t){return(0,ae.createElement)(xR,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),BR.__unstableSlotNameProvider=PR.Provider;const NR=BR,RR=J_(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:a,headerTitle:s,focusOnMount:l,popoverProps:c,onClose:u,onToggle:d,style:p,open:f,defaultOpen:h,position:m,variant:g}=Q_(e,"Dropdown");void 0!==m&&Mt("`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[b,v]=(0,ae.useState)(null),y=(0,ae.useRef)(),[w,k]=ex({defaultValue:h,value:f,onChange:d});function _(){u?.(),k(!1)}const E={isOpen:!!w,onToggle:()=>k(!w),onClose:_},x=!!(c?.anchor||c?.anchorRef||c?.getAnchorRect||c?.anchorRect);return(0,ae.createElement)("div",{className:o,ref:JE([y,t,v]),tabIndex:-1,style:p},r(E),w&&(0,ae.createElement)(NR,{position:m,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:b,variant:g,...c,className:Au("components-dropdown__content",c?.className,i)},n(E)))}),"Dropdown"),OR=RR,MR=()=>{},LR=["menuitem","menuitemradio","menuitemcheckbox"];class DR extends ae.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?jN.tabbable:jN.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=MR,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&LR.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,ae.createElement)("div",{ref:this.bindContainer,...l},e)}}const zR=(e,t)=>(0,ae.createElement)(DR,{...e,forwardedRef:t});zR.displayName="NavigableContainer";const FR=(0,ae.forwardRef)(zR);const jR=(0,ae.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,ae.createElement)(FR,{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})})),VR=jR;function HR(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=Au(t.className,e.className)),n}function $R(e){return"function"==typeof e}const UR=eE((function(e){const{children:t,className:n,controls:r,icon:o=ZE,label:i,popoverProps:a,toggleProps:s,menuProps:l,disableOpenOnArrowDown:c=!1,text:u,noIcons:d,open:p,defaultOpen:f,onToggle:h,variant:m}=Q_(e,"DropdownMenu");if(!r?.length&&!$R(t))return null;let g;r?.length&&(g=r,Array.isArray(g[0])||(g=[r]));const b=HR({className:"components-dropdown-menu__popover",variant:m},a);return(0,ae.createElement)(OR,{className:n,popoverProps:b,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=bE,...a}=null!=s?s:{},l=HR({className:Au("components-dropdown-menu__toggle",{"is-opened":e})},a);return(0,ae.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=HR({"aria-label":i,className:Au("components-dropdown-menu__menu",{"no-icons":d})},l);return(0,ae.createElement)(VR,{...n,role:"menu"},$R(t)?t(e):null,g?.flatMap(((t,n)=>t.map(((t,r)=>(0,ae.createElement)(bE,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:Au("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:p,defaultOpen:f,onToggle:h})}),"DropdownMenu"),WR=UR;const KR=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,ae.createElement)(WR,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,ae.useContext)(WE)?(0,ae.createElement)(KE,{...t},r):r(t)};const GR=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const a=(0,ae.useContext)(WE);if(!(e&&e.length||t))return null;const s=Au(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,ae.createElement)(KR,{label:o,controls:l,className:s,children:t,...i}):(0,ae.createElement)(XE,{className:s,...i},l?.flatMap(((e,t)=>e.map(((e,n)=>(0,ae.createElement)(YE,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":void 0,...e}))))),t)},qR={default:CR("BlockControls"),block:CR("BlockControlsBlock"),inline:CR("BlockFormatControls"),other:CR("BlockControlsOther"),parent:CR("BlockControlsParent")};function YR({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:r=!1}){const o=function(e,t){const n=tu();return n[Gc]?qR[e]?.Fill:n[qc]&&t?qR.parent.Fill:null}(e,r);if(!o)return null;const i=(0,ae.createElement)(ae.Fragment,null,"default"===e&&(0,ae.createElement)(GR,{controls:t}),n);return(0,ae.createElement)(gR,{document},(0,ae.createElement)(o,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,ae.createElement)(t,{...n},e)),i)})))}function XR(e){const t=[];for(const n of e)t.push(...n);return t}function ZR(e){return e.slice().reverse()}function QR(e,t,n){return Qg((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;if(r.isPropagationStopped())return;if(!jg(r))return;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(r))return;if(function(e){const t=e.target;return!(t&&!Ng(t)||1!==e.key.length||e.ctrlKey||e.metaKey)}(r))return;const i=e.getState(),a=null==(o=IE(e,i.activeId))?void 0:o.element;if(!a)return;const s=r,{view:l}=s,c=Jm(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 JR=$b((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=Jm(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=NE();mg(n=n||s,!1);const l=(0,ae.useRef)(null),c=function(e){const[t,n]=(0,ae.useState)(!1),r=(0,ae.useCallback)((()=>n(!0)),[]),o=e.useState((t=>IE(e,t.activeId)));return(0,ae.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,ae.useEffect)((()=>{var e;if(!n)return;if(!u)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=IE(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(sg({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[n,u,r,o]),Yg((()=>{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&&Vg(o,{relatedTarget:e}),bv(e)||e.focus()}),[n,u,r]);const d=n.useState("activeId"),p=n.useState("virtualFocus");Yg((()=>{var e;if(!n)return;if(!r)return;if(!p)return;const t=l.current;if(l.current=null,!t)return;const o=(null==(e=IE(n,d))?void 0:e.element)||xg(t);o!==t&&Vg(t,{relatedTarget:o})}),[n,d,p,r]);const f=QR(n,a.onKeyDownCapture,l),h=QR(n,a.onKeyUpCapture,l),m=a.onFocusCapture,g=Qg((e=>{if(null==m||m(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[TE];return delete e[TE],t}(e.currentTarget);jg(e)&&o&&(e.stopPropagation(),l.current=r)})),b=a.onFocus,v=Qg((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?jg(e)&&!PE(n,t)&&queueMicrotask(c):jg(e)&&n.setActiveId(null)})),y=a.onBlurCapture,w=Qg((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=IE(n,o))?void 0:t.element,a=e.relatedTarget,s=PE(n,a),c=l.current;if(l.current=null,jg(e)&&s)a===i?c&&c!==a&&Vg(c,e):i?Vg(i,e):c&&Vg(c,e),e.stopPropagation();else{!PE(n,e.target)&&i&&Vg(i,e)}})),k=a.onKeyDown,_=ob(i),E=Qg((e=>{var t;if(null==k||k(e),e.defaultPrevented)return;if(!n)return;if(!jg(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=IE(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=function(e){return e.some((e=>!!e.rowId))}(i);if(("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key)&&Ng(e.currentTarget))return;const d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(XR(ZR(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return null==n?void 0:n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},p=d[e.key];if(p){const t=p();if(void 0!==t){if(!_(e))return;e.preventDefault(),n.move(t)}}}));a=ib(a,(e=>(0,Fb.jsx)(RE,{value:n,children:e})),[n]);const x=n.useState((e=>{var t;if(n&&r&&e.virtualFocus)return null==(t=IE(n,e.activeId))?void 0:t.id}));a=Qm(Zm({"aria-activedescendant":x},a),{ref:Jg(r?n.setBaseElement:null,a.ref),onKeyDownCapture:f,onKeyUpCapture:h,onFocusCapture:g,onFocus:v,onBlurCapture:w,onKeyDown:E});const S=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return a=Pv(Zm({focusable:S},a))})),eO=jb((e=>Hb("div",JR(e))));var tO=(0,ae.createContext)(void 0),nO=$b((e=>{const[t,n]=(0,ae.useState)();return e=ib(e,(e=>(0,Fb.jsx)(tO.Provider,{value:n,children:e})),[]),e=Zm({role:"group","aria-labelledby":t},e)}));jb((e=>Hb("div",nO(e))));var rO=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);return r=nO(r)})),oO=jb((e=>Hb("div",rO(e))));var iO=$b((e=>{var t=e,{store:n,"aria-setsize":r,"aria-posinset":o}=t,i=Jm(t,["store","aria-setsize","aria-posinset"]);const a=BE();mg(n=n||a,!1);const s=eb(i.id),l=n.useState((e=>e.baseElement||void 0)),c=(0,ae.useMemo)((()=>({id:s,baseElement:l,ariaSetSize:r,ariaPosInSet:o})),[s,l,r,o]);return i=ib(i,(e=>(0,Fb.jsx)(LE.Provider,{value:c,children:e})),[c]),i=Zm({id:s},i)})),aO=jb((e=>Hb("div",iO(e))));function sO(e,t,n){return nb(t,[n.store]),Ib(e,n,"items","setItems"),e}function lO(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 cO(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=vg(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:vg(null==n?void 0:n.renderedItems,[])},a=function(e){return null==e?void 0:e.__unstablePrivateStore}(e.store),s=mb({items:r,renderedItems:i.renderedItems},a),l=mb(i,e.store),c=e=>{const t=lO(e);s.setState("renderedItems",t),l.setState("renderedItems",t)};gb(l,(()=>bb(s))),gb(s,(()=>wb(s,["items"],(e=>{l.setState("items",e.items)})))),gb(s,(()=>wb(s,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame((()=>{const{renderedItems:t}=l.getState();e.renderedItems!==t&&c(e.renderedItems)}));if("function"!=typeof IntersectionObserver)return()=>cancelAnimationFrame(n);const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return Eg(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame((()=>c(e.renderedItems))))}),{root:r});for(const t of e.renderedItems)t.element&&o.observe(t.element);return()=>{cancelAnimationFrame(n),o.disconnect()}}))));const u=(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=sg(sg({},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}))}},d=e=>u(e,(e=>s.setState("items",e)),!0);return lg(sg({},l),{registerItem:d,renderItem:e=>fg(d(e),u(e,(e=>s.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=l.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null},__unstablePrivateStore:s})}var uO={id:null};function dO(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function pO(e,t){return e.filter((e=>e.rowId===t))}function fO(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 hO(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function mO(e,t,n){const r=hO(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?dO(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 gO(e){const t=fO(e),n=hO(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(lg(sg({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function bO(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=cO(e),o=vg(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=mb(lg(sg({},r.getState()),{activeId:o,baseElement:vg(null==n?void 0:n.baseElement,null),includesBaseElement:vg(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:vg(null==n?void 0:n.moves,0),orientation:vg(e.orientation,null==n?void 0:n.orientation,"both"),rtl:vg(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:vg(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:vg(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:vg(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:vg(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);gb(i,(()=>yb(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=dO(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(),p=l&&"vertical"!==t?ZR(e):e;if(null==s)return null==(o=dO(p))?void 0:o.id;const f=p.find((e=>e.id===s));if(!f)return null==(a=dO(p))?void 0:a.id;const h=!!f.rowId,m=p.indexOf(f),g=p.slice(m+1),b=pO(g,f.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(b,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const v=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(h?t||"horizontal":t),y=c&&c!==v,w=h&&u&&u!==v;if(n=n||!h&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[uO]:[],...e.slice(0,r)]}(w&&!n?p:pO(p,f.rowId),s,n),t=dO(e,s);return null==t?void 0:t.id}if(w){const e=dO(n?b:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const k=dO(b,s);return!k&&n?null:null==k?void 0:k.id};return lg(sg(sg({},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=dO(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=dO(ZR(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=dO(n))?void 0:t.rowId)&&o;return a(ZR(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=gO(XR(mO(fO(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=gO(ZR(XR(mO(fO(n),t,s))));return a(l,"vertical",o,e)}})}function vO(e,t,n){return Ib(e=sO(e,t,n),n,"activeId","setActiveId"),Ib(e,n,"includesBaseElement"),Ib(e,n,"virtualFocus"),Ib(e,n,"orientation"),Ib(e,n,"rtl"),Ib(e,n,"focusLoop"),Ib(e,n,"focusWrap"),Ib(e,n,"focusShift"),e}function yO(e={}){const[t,n]=Tb(bO,e);return vO(t,n,e)}var wO=o(507),kO=o.n(wO);o(7679);function _O(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function EO(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function xO(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return EO(n.overflowY,t)||EO(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 SO(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 CO=0;function IO(){}function TO(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(!_O(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,p=[],f=e;_O(f)&&l(f);){if((f=null==(u=(c=f).parentElement)?c.getRootNode().host||null:u)===d){p.push(f);break}null!=f&&f===document.body&&xO(f)&&!xO(document.documentElement)||null!=f&&xO(f,s)&&p.push(f)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,w=v.width,k=v.top,_=v.right,E=v.bottom,x=v.left,S="start"===o||"nearest"===o?k:"end"===o?E:k+y/2,C="center"===i?x+w/2:"end"===i?_:x,I=[],T=0;T<p.length;T++){var P=p[T],A=P.getBoundingClientRect(),B=A.height,N=A.width,R=A.top,O=A.right,M=A.bottom,L=A.left;if("if-needed"===r&&k>=0&&x>=0&&E<=m&&_<=h&&k>=R&&E<=M&&x>=L&&_<=O)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:N/P.offsetWidth:0,G="offsetHeight"in P?0===P.offsetHeight?0:B/P.offsetHeight:0;if(d===P)H="start"===o?S:"end"===o?S-m:"nearest"===o?SO(b,b+m,m,F,V,b+S,b+S+y,y):S-m/2,$="start"===i?C:"center"===i?C-h/2:"end"===i?C-h:SO(g,g+h,h,z,j,g+C,g+C+w,w),H=Math.max(0,H+b),$=Math.max(0,$+g);else{H="start"===o?S-R-F:"end"===o?S-M+V+W:"nearest"===o?SO(R,M,B,F,V+W,S,S+y,y):S-(R+B/2)+W/2,$="start"===i?C-L-z:"center"===i?C-(L+N/2)+U/2:"end"===i?C-O+j+U:SO(L,O,N,z,j+U,C,C+w,w);var q=P.scrollLeft,Y=P.scrollTop;S+=Y-(H=Math.max(0,Math.min(Y+H/G,P.scrollHeight-B/G+W))),C+=q-($=Math.max(0,Math.min(q+$/K,P.scrollWidth-N/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 PO(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function AO(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 BO(){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 NO(){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 RO(){return String(CO++)}function OO(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 MO(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=LO(t,r)?t[r]:e[r],n)),{})}function LO(e,t){return void 0!==e[t]}function DO(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function zO(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=FO(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function FO(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?FO(1,0,n,r,!1):FO(-1,n-1,n,r,!1):-1}function jO(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(PO(t,e,n)||r&&PO(t,n.document.activeElement,n))))}const VO=AO((e=>{$O(e).textContent=""}),500);function HO(e,t){const n=$O(t);e&&(n.textContent=e,VO(t))}function $O(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 UO={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function WO(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${ZO(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 KO=AO(((e,t)=>{HO(e(),t)}),200),GO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?ae.useLayoutEffect:ae.useEffect;function qO(e){let{id:t=`downshift-${RO()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,ae.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 YO(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function XO(e){return/^\S{1}$/.test(e)}function ZO(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function QO(e){const t=(0,ae.useRef)(e);return t.current=e,t}function JO(e,t,n){const r=(0,ae.useRef)(),o=(0,ae.useRef)(),i=(0,ae.useCallback)(((t,n)=>{o.current=n,t=MO(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,ae.useReducer)(i,t),l=QO(n),c=(0,ae.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,ae.useEffect)((()=>{u&&r.current&&r.current!==a&&WO(u,MO(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function eM(e,t,n){const[r,o]=JO(e,t,n);return[MO(r,n),o]}const tM={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:TO,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function nM(e,t,n){void 0===n&&(n=UO);const r=e[`default${ZO(t)}`];return void 0!==r?r:n[t]}function rM(e,t,n){void 0===n&&(n=UO);const r=e[t];if(void 0!==r)return r;const o=e[`initial${ZO(t)}`];return void 0!==o?o:nM(e,t,n)}function oM(e){const t=rM(e,"selectedItem"),n=rM(e,"isOpen"),r=rM(e,"highlightedIndex"),o=rM(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function iM(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):zO(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function aM(e,t,n,r){const o=(0,ae.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,ae.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!jO(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||jO(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 sM=()=>IO;function lM(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,ae.useEffect)((()=>{r||KO((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function cM(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,ae.useRef)(!0);return GO((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let uM=IO;function dM(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:iM(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:iM(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:nM(o,"highlightedIndex"),isOpen:nM(o,"isOpen"),selectedItem:nM(o,"selectedItem"),inputValue:nM(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function pM(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}kO().array.isRequired,kO().func,kO().func,kO().func,kO().bool,kO().number,kO().number,kO().number,kO().bool,kO().bool,kO().bool,kO().any,kO().any,kO().any,kO().string,kO().string,kO().string,kO().func,kO().string,kO().func,kO().func,kO().func,kO().func,kO().func,kO().shape({addEventListener:kO().func,removeEventListener:kO().func,document:kO().shape({getElementById:kO().func,activeElement:kO().any,body:kO().any})});var fM=wn(wn({},tM),{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.":""}}),hM=IO;const mM=0,gM=1,bM=2,vM=3,yM=4,wM=5,kM=6,_M=7,EM=8,xM=9,SM=10,CM=11,IM=12,TM=13,PM=14,AM=15,BM=16,NM=17,RM=18,OM=19,MM=20,LM=21,DM=22;var zM=Object.freeze({__proto__:null,MenuKeyDownArrowDown:mM,MenuKeyDownArrowUp:gM,MenuKeyDownEscape:bM,MenuKeyDownHome:vM,MenuKeyDownEnd:yM,MenuKeyDownEnter:wM,MenuKeyDownSpaceButton:kM,MenuKeyDownCharacter:_M,MenuBlur:EM,MenuMouseLeave:xM,ItemMouseMove:SM,ItemClick:CM,ToggleButtonClick:IM,ToggleButtonKeyDownArrowDown:TM,ToggleButtonKeyDownArrowUp:PM,ToggleButtonKeyDownCharacter:AM,FunctionToggleMenu:BM,FunctionOpenMenu:NM,FunctionCloseMenu:RM,FunctionSetHighlightedIndex:OM,FunctionSelectItem:MM,FunctionSetInputValue:LM,FunctionReset:DM});function FM(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case CM:i={isOpen:nM(r,"isOpen"),highlightedIndex:nM(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case AM:{const n=t.key,o=`${e.inputValue}${n}`,a=pM({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 TM:i={highlightedIndex:iM(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case PM:i={highlightedIndex:iM(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case wM:case kM:i={isOpen:nM(r,"isOpen"),highlightedIndex:nM(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case vM:i={highlightedIndex:FO(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case yM:i={highlightedIndex:FO(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case bM:case EM:i={isOpen:!1,highlightedIndex:-1};break;case _M:{const n=t.key,o=`${e.inputValue}${n}`,a=pM({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case mM:i={highlightedIndex:zO(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case gM:i={highlightedIndex:zO(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case MM:i={selectedItem:t.selectedItem};break;default:return dM(e,t,zM)}return{...e,...i}}function jM(e){void 0===e&&(e={}),hM(e,jM);const t={...fM,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=oM(t),[d,p]=eM(FM,u,t),{isOpen:f,highlightedIndex:h,selectedItem:m,inputValue:g}=d,b=(0,ae.useRef)(null),v=(0,ae.useRef)(null),y=(0,ae.useRef)({}),w=(0,ae.useRef)(!0),k=(0,ae.useRef)(null),_=qO(t),E=(0,ae.useRef)(),x=(0,ae.useRef)(!0),S=QO({state:d,props:t}),C=(0,ae.useCallback)((e=>y.current[_.getItemId(e)]),[_]);lM(c,[f,h,g,n],{isInitialMount:x.current,previousResultCount:E.current,items:n,environment:o,itemToString:s,...d}),lM(l,[m],{isInitialMount:x.current,previousResultCount:E.current,items:n,environment:o,itemToString:s,...d});const I=cM({menuElement:v.current,highlightedIndex:h,isOpen:f,itemRefs:y,scrollIntoView:r,getItemNodeFromIndex:C});(0,ae.useEffect)((()=>(k.current=AO((e=>{e({type:LM,inputValue:""})}),500),()=>{k.current.cancel()})),[]),(0,ae.useEffect)((()=>{g&&k.current(p)}),[p,g]),uM({isInitialMount:x.current,props:t,state:d}),(0,ae.useEffect)((()=>{x.current?(i||a||f)&&v.current&&v.current.focus():f?v.current&&v.current.focus():o.document.activeElement===v.current&&b.current&&(w.current=!1,b.current.focus())}),[f]),(0,ae.useEffect)((()=>{x.current||(E.current=n.length)}));const T=aM(f,[v,b],o,(()=>{p({type:EM})})),P=sM("getMenuProps","getToggleButtonProps");(0,ae.useEffect)((()=>{x.current=!1}),[]),(0,ae.useEffect)((()=>{f||(y.current={})}),[f]);const A=(0,ae.useMemo)((()=>({ArrowDown(e){e.preventDefault(),p({type:TM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),p({type:PM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})}})),[p,C]),B=(0,ae.useMemo)((()=>({ArrowDown(e){e.preventDefault(),p({type:mM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),p({type:gM,getItemNodeFromIndex:C,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),p({type:vM,getItemNodeFromIndex:C})},End(e){e.preventDefault(),p({type:yM,getItemNodeFromIndex:C})},Escape(){p({type:bM})},Enter(e){e.preventDefault(),p({type:wM})}," "(e){e.preventDefault(),p({type:kM})}})),[p,C]),N=(0,ae.useCallback)((()=>{p({type:BM})}),[p]),R=(0,ae.useCallback)((()=>{p({type:RM})}),[p]),O=(0,ae.useCallback)((()=>{p({type:NM})}),[p]),M=(0,ae.useCallback)((e=>{p({type:OM,highlightedIndex:e})}),[p]),L=(0,ae.useCallback)((e=>{p({type:MM,selectedItem:e})}),[p]),D=(0,ae.useCallback)((()=>{p({type:DM})}),[p]),z=(0,ae.useCallback)((e=>{p({type:LM,inputValue:e})}),[p]),F=(0,ae.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),j=(0,ae.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,v),{[r]:NO(a,(e=>{v.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:BO(n,(()=>{p({type:xM})})),onKeyDown:BO(o,(e=>{const t=DO(e);t&&B[t]?B[t](e):XO(t)&&p({type:_M,key:t,getItemNodeFromIndex:C})})),onBlur:BO(i,(()=>{if(!1===w.current)return void(w.current=!0);!T.current.isMouseDown&&p({type:EM})})),...s}}),[p,S,B,T,P,_,C]),V=(0,ae.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=()=>{p({type:IM})},c=e=>{const t=DO(e);t&&A[t]?A[t](e):XO(t)&&p({type:AM,key:t,getItemNodeFromIndex:C})},u={[o]:NO(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":S.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=BO(n,l),u.onKeyDown=BO(r,c)),P("getToggleButtonProps",s,o,b),u}),[p,S,A,P,_,C]),H=(0,ae.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=()=>{p({type:CM,index:n})},f=YO(n,t,u.items);if(f<0)throw new Error("Pass either item or item index in getItemProps!");const h={disabled:s,role:"option","aria-selected":`${f===c.highlightedIndex}`,id:_.getItemId(f),[i]:NO(a,(e=>{e&&(y.current[_.getItemId(f)]=e)})),...l};return s||(h.onClick=BO(o,d)),h.onMouseMove=BO(r,(()=>{n!==c.highlightedIndex&&(I.current=!1,p({type:SM,index:n,disabled:s}))})),h}),[p,S,I,_]);return{getToggleButtonProps:V,getLabelProps:F,getMenuProps:j,getItemProps:H,toggleMenu:N,openMenu:O,closeMenu:R,setHighlightedIndex:M,selectItem:L,reset:D,setInputValue:z,highlightedIndex:h,isOpen:f,selectedItem:m,inputValue:g}}jM.stateChangeTypes=zM;kO().array.isRequired,kO().func,kO().func,kO().func,kO().bool,kO().number,kO().number,kO().number,kO().bool,kO().bool,kO().bool,kO().any,kO().any,kO().any,kO().string,kO().string,kO().string,kO().string,kO().string,kO().string,kO().func,kO().string,kO().string,kO().func,kO().func,kO().func,kO().func,kO().func,kO().func,kO().shape({addEventListener:kO().func,removeEventListener:kO().func,document:kO().shape({getElementById:kO().func,activeElement:kO().any,body:kO().any})});kO().array,kO().array,kO().array,kO().func,kO().func,kO().func,kO().number,kO().number,kO().number,kO().func,kO().func,kO().string,kO().string,kO().shape({addEventListener:kO().func,removeEventListener:kO().func,document:kO().shape({getElementById:kO().func,activeElement:kO().any,body:kO().any})});const VM=(0,ae.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,ae.cloneElement)(e,{width:t,height:t,...n,ref:r})})),HM=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));o(2535);function $M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L_(t)}var UM=function(){var e=$M.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const WM="#fff",KM={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},GM={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${WM})`,background:`var(--wp-components-color-background, ${WM})`,foreground:`var(--wp-components-color-foreground, ${KM[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${WM})`,gray:{900:`var(--wp-components-color-foreground, ${KM[900]})`,800:`var(--wp-components-color-gray-800, ${KM[800]})`,700:`var(--wp-components-color-gray-700, ${KM[700]})`,600:`var(--wp-components-color-gray-600, ${KM[600]})`,400:`var(--wp-components-color-gray-400, ${KM[400]})`,300:`var(--wp-components-color-gray-300, ${KM[300]})`,200:`var(--wp-components-color-gray-200, ${KM[200]})`,100:`var(--wp-components-color-gray-100, ${KM[100]})`}},qM={background:GM.background,backgroundDisabled:GM.gray[100],border:GM.gray[600],borderHover:GM.gray[700],borderFocus:GM.accent,borderDisabled:GM.gray[400],textDisabled:GM.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${GM.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${GM.background}, transparent 35%)`},YM=Object.freeze({gray:KM,white:WM,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:GM,ui:qM}),XM=new RegExp(/-left/g),ZM=new RegExp(/-right/g),QM=new RegExp(/Left/g),JM=new RegExp(/Right/g);function eL(e){return"left"===e?"right":"right"===e?"left":XM.test(e)?e.replace(XM,"-right"):ZM.test(e)?e.replace(ZM,"-left"):QM.test(e)?e.replace(QM,"Right"):JM.test(e)?e.replace(JM,"Left"):e}const tL=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[eL(e),t])));function nL(e={},t){return()=>t?Yn()?$M(t,"",""):$M(e,"",""):Yn()?$M(tL(e),"",""):$M(e,"","")}nL.watch=()=>Yn();const rL="4px";function oL(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(${rL} * ${e})`}const iL=e=>null!=e;const aL=J_((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:p,paddingTop:f,paddingX:h,paddingY:m,...g}=Q_(e,"Spacer");return{...g,className:Z_()(iL(n)&&$M("margin:",oL(n),";",""),iL(l)&&$M("margin-bottom:",oL(l),";margin-top:",oL(l),";",""),iL(s)&&$M("margin-left:",oL(s),";margin-right:",oL(s),";",""),iL(a)&&$M("margin-top:",oL(a),";",""),iL(r)&&$M("margin-bottom:",oL(r),";",""),iL(o)&&nL({marginLeft:oL(o)})(),iL(i)&&nL({marginRight:oL(i)})(),iL(c)&&$M("padding:",oL(c),";",""),iL(m)&&$M("padding-bottom:",oL(m),";padding-top:",oL(m),";",""),iL(h)&&$M("padding-left:",oL(h),";padding-right:",oL(h),";",""),iL(f)&&$M("padding-top:",oL(f),";",""),iL(u)&&$M("padding-bottom:",oL(u),";",""),iL(d)&&nL({paddingLeft:oL(d)})(),iL(p)&&nL({paddingRight:oL(p)})(),t)}}(e);return(0,ae.createElement)(fE,{...n,ref:t})}),"Spacer"),sL=aL;const lL=J_((function(e,t){const n=Q_(e,"InputControlSuffixWrapper");return(0,ae.createElement)(sL,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper"),cL=["40em","52em","64em"],uL=(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>cL.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${cL.length} breakpoints, got index ${t}`);const[n,r]=(0,ae.useState)(t);return(0,ae.useEffect)((()=>{const e=()=>{const e=cL.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 dL(e,t={}){const n=uL(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}const pL={name:"zjik7",styles:"display:flex"},fL={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},hL={name:"82a6rk",styles:"flex:1"},mL={name:"13nosa1",styles:">*{min-height:0;}"},gL={name:"1pwxzk4",styles:">*{min-width:0;}"};function bL(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:a="space-between",wrap:s=!1,...l}=Q_(function(e){const{isReversed:t,...n}=e;return void 0!==t?(Mt("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),c=dL(Array.isArray(r)?r:[r]),u="string"==typeof c&&!!c.includes("column"),d=Z_();return{...l,className:(0,ae.useMemo)((()=>{const e=$M({alignItems:null!=t?t:u?"normal":"center",flexDirection:c,flexWrap:s?"wrap":void 0,gap:oL(i),justifyContent:a,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(pL,e,u?mL:gL,n)}),[t,n,d,c,o,i,u,a,s]),isColumn:u}}const vL=(0,ae.createContext)({flexItemDisplay:void 0}),yL=()=>(0,ae.useContext)(vL);const wL=J_((function(e,t){const{children:n,isColumn:r,...o}=bL(e);return(0,ae.createElement)(vL.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,ae.createElement)(fE,{...o,ref:t},n))}),"Flex"),kL=wL;function _L(e){const{className:t,display:n,isBlock:r=!1,...o}=Q_(e,"FlexItem"),i={},a=yL().flexItemDisplay;i.Base=$M({display:n||a},"","");return{...o,className:Z_()(fL,i.Base,r&&hL,t)}}const EL=J_((function(e,t){const n=_L(e);return(0,ae.createElement)(fE,{...n,ref:t})}),"FlexItem");const xL={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function SL(e){return null!=e}const CL=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,IL="…",TL={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},PL={ellipsis:IL,ellipsizeMode:TL.auto,limit:0,numberOfLines:0};function AL(e="",t){const n={...PL,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===TL.none)return e;let a,s;switch(o){case TL.head:a=0,s=i;break;case TL.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==TL.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=SL(r)?r:IL;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 BL(e){const{className:t,children:n,ellipsis:r=IL,ellipsizeMode:o=TL.auto,limit:i=0,numberOfLines:a=0,...s}=Q_(e,"Truncate"),l=Z_();let c;"string"==typeof n?c=n:"number"==typeof n&&(c=n.toString());const u=c?AL(c,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:a}):n,d=!!c&&o===TL.auto;return{...s,className:(0,ae.useMemo)((()=>l(d&&!a&&xL,d&&!!a&&$M(1===a?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",a,";display:-webkit-box;overflow:hidden;",""),t)),[t,l,a,d]),children:u}}let NL;xr([Sr]);const RL=An((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&_r(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!NL){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),NL=e}return NL}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function OL(e){const t=function(e){const t=RL(e);return _r(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const ML="36px",LL="12px",DL={controlSurfaceColor:YM.white,controlTextActiveColor:YM.theme.accent,controlPaddingX:LL,controlPaddingXLarge:`calc(${LL} * 1.3334)`,controlPaddingXSmall:`calc(${LL} / 1.3334)`,controlBackgroundColor:YM.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${YM.theme.accent}`,controlDestructiveBorderColor:YM.alert.red,controlHeight:ML,controlHeightXSmall:`calc( ${ML} * 0.6 )`,controlHeightSmall:`calc( ${ML} * 0.8 )`,controlHeightLarge:`calc( ${ML} * 1.2 )`,controlHeightXLarge:`calc( ${ML} * 1.4 )`},zL={toggleGroupControlBackgroundColor:DL.controlBackgroundColor,toggleGroupControlBorderColor:YM.ui.border,toggleGroupControlBackdropBackgroundColor:DL.controlSurfaceColor,toggleGroupControlBackdropBorderColor:YM.ui.border,toggleGroupControlButtonColorActive:DL.controlBackgroundColor},FL=Object.assign({},DL,zL,{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.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${oL(2)}`,cardPaddingSmall:`${oL(4)}`,cardPaddingMedium:`${oL(4)} ${oL(6)}`,cardPaddingLarge:`${oL(6)} ${oL(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:YM.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:YM.white,surfaceColor:YM.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 jL=$M("color:",YM.gray[900],";line-height:",FL.fontLineHeightBase,";margin:0;text-wrap:pretty;",""),VL={name:"4zleql",styles:"display:block"},HL=$M("color:",YM.alert.green,";",""),$L=$M("color:",YM.alert.red,";",""),UL=$M("color:",YM.gray[700],";",""),WL=$M("mark{background:",YM.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;}",""),KL={name:"50zrmy",styles:"text-transform:uppercase"};var GL=o(5906);const qL=An((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const YL=13,XL={body:YL,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},ZL=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function QL(e=YL){if(e in XL)return QL(XL[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${YL})`} * ${FL.fontSize})`}function JL(e=3){if(!ZL.includes(e))return QL(e);return FL[`fontSizeH${e}`]}var eD={name:"50zrmy",styles:"text-transform:uppercase"};function tD(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:p,isBlock:f=!1,letterSpacing:h,lineHeight:g,optimizeReadabilityFor:b,size:v,truncate:y=!1,upperCase:w=!1,variant:k,weight:_=FL.fontWeight,...E}=Q_(e,"Text");let x=r;const S=Array.isArray(d),C="caption"===v;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:p="",unhighlightStyle:f}){if(!i)return null;if("string"!=typeof i)return i;const h=i,m=(0,GL.findAll)({autoEscape:r,caseSensitive:o,findChunks:a,sanitize:u,searchWords:d,textToHighlight:h}),g=c;let b,v=-1,y="";const w=m.map(((r,i)=>{const a=h.substr(r.start,r.end-r.start);if(r.highlight){let r;v++,r="object"==typeof s?o?s[a]:(s=qL(s))[a.toLowerCase()]:s;const c=v===+t;y=`${r} ${c?e:""}`,b=!0===c&&null!==n?Object.assign({},l,n):l;const u={children:a,className:y,key:i,style:b};return"string"!=typeof g&&(u.highlightIndex=v),(0,ae.createElement)(g,u)}return(0,ae.createElement)("span",{children:a,className:p,key:i,style:f})}));return w}({autoEscape:c,children:r,caseSensitive:u,searchWords:d,sanitize:p})}const I=Z_(),T=(0,ae.useMemo)((()=>{const e={},r=function(e,t){if(t)return t;if(!e)return;let n=`calc(${FL.controlHeight} + ${oL(2)})`;switch(e){case"large":n=`calc(${FL.controlHeightLarge} + ${oL(2)})`;break;case"small":n=`calc(${FL.controlHeightSmall} + ${oL(2)})`;break;case"xSmall":n=`calc(${FL.controlHeightXSmall} + ${oL(2)})`}return n}(t,g);if(e.Base=$M({color:i,display:l,fontSize:QL(v),fontWeight:_,lineHeight:r,letterSpacing:h,textAlign:n},"",""),e.upperCase=eD,e.optimalTextColor=null,b){const t="dark"===OL(b);e.optimalTextColor=$M(t?{color:YM.gray[900]}:{color:YM.white},"","")}return I(jL,e.Base,e.optimalTextColor,s&&$L,!!S&&WL,f&&VL,C&&UL,k&&m[k],w&&e.upperCase,o)}),[t,n,o,i,I,l,f,C,s,S,h,g,b,v,w,k,_]);let P;!0===y&&(P="auto"),!1===y&&(P="none");const A=BL({...E,className:T,children:r,ellipsizeMode:a||P});return!y&&Array.isArray(r)&&(x=ae.Children.map(r,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return rE(e,["Link"])?(0,ae.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...A,children:y?A.children:x}}const nD=J_((function(e,t){const n=tD(e);return(0,ae.createElement)(fE,{as:"span",...n,ref:t})}),"Text");const rD={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};const oD=dE("span",{target:"em5sgkm7"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),iD=dE("span",{target:"em5sgkm6"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),aD=({disabled:e,isBorderless:t})=>t?"transparent":e?YM.ui.borderDisabled:YM.ui.border,sD=dE("div",{target:"em5sgkm5"})("&&&{box-sizing:border-box;border-color:",aD,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",nL({paddingLeft:2}),";}"),lD=dE(kL,{target:"em5sgkm4"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;&:focus-within:not( :has( :is( ",oD,", ",iD," ):focus-within ) ){z-index:1;",sD,"{border-color:",YM.ui.borderFocus,";box-shadow:",FL.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),cD=({disabled:e})=>$M({backgroundColor:e?YM.ui.backgroundDisabled:YM.ui.background},"","");var uD={name:"1d3w5wq",styles:"width:100%"};const dD=({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":$M("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):uD,pD=dE("div",{target:"em5sgkm3"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",cD," ",dD,";"),fD=({disabled:e})=>e?$M({color:YM.ui.textDisabled},"",""):"",hD=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?$M("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},mD=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:oL(4),paddingRight:oL(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:oL(2),paddingRight:oL(2)},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:oL(2),paddingRight:oL(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:oL(4),paddingRight:oL(4)}};return t||(n.default=n.compact),n[e]||n.default},gD=e=>$M(mD(e),"",""),bD=({paddingInlineStart:e,paddingInlineEnd:t})=>$M({paddingInlineStart:e,paddingInlineEnd:t},"",""),vD=({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=$M("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=$M("&:active{cursor:",t,";}","")),$M(n," ",r,";","")},yD=dE("input",{target:"em5sgkm2"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",YM.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",vD," ",fD," ",hD," ",gD," ",bD," &::-webkit-input-placeholder{line-height:normal;}}"),wD=dE(nD,{target:"em5sgkm1"})("&&&{",rD,";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;}"),kD=e=>(0,ae.createElement)(wD,{...e,as:"label"}),_D=dE(EL,{target:"em5sgkm0"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),ED=({disabled:e})=>e?$M({color:YM.ui.textDisabled},"",""):"",xD=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);return $M(r[n]||r.default,"","")},SD=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,compact:8,"__unstable-large":16};e||(r.default=r.compact);const o=r[n]||r.default;return nL({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})},CD=({multiple:e})=>({overflow:e?"auto":"hidden"}),ID=dE("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",YM.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",ED,";",hD,";",xD,";",SD,";",CD,";}"),TD=dE("div",{target:"e1mv6sxx1"})("margin-inline-end:",oL(-1),";line-height:0;"),PD=dE(lL,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",nL({right:0}),";"),AD=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),BD=()=>(0,ae.createElement)(PD,null,(0,ae.createElement)(TD,null,(0,ae.createElement)(VM,{icon:AD,size:18}))),ND={"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 RD(e){var t;return null!==(t=ND[e])&&void 0!==t?t:""}const OD={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const MD=dE("div",{target:"ej5x27r4"})("font-family:",RD("default.fontFamily"),";font-size:",RD("default.fontSize"),";",OD,";"),LD=({__nextHasNoMarginBottom:e=!1})=>!e&&$M("margin-bottom:",oL(2),";",""),DD=dE("div",{target:"ej5x27r3"})(LD," .components-panel__row &{margin-bottom:inherit;}"),zD=$M(rD,";display:inline-block;margin-bottom:",oL(2),";padding:0;",""),FD=dE("label",{target:"ej5x27r2"})(zD,";");var jD={name:"11yad0w",styles:"margin-bottom:revert"};const VD=({__nextHasNoMarginBottom:e=!1})=>!e&&jD,HD=dE("p",{target:"ej5x27r1"})("margin-top:",oL(2),";margin-bottom:0;font-size:",RD("helpText.fontSize"),";font-style:normal;color:",YM.gray[700],";",VD,";"),$D=dE("span",{target:"ej5x27r0"})(zD,";");function UD(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}const WD=(0,ae.memo)((function({disabled:e=!1,isBorderless:t=!1}){return(0,ae.createElement)(sD,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})})),KD=WD;function GD({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,ae.createElement)(hE,{as:"label",htmlFor:n},e):(0,ae.createElement)(_D,null,(0,ae.createElement)(kD,{htmlFor:n,...r},e)):null}function qD(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 YD(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:r,children:o,className:i,disabled:a=!1,hideLabelFromVision:s=!1,labelPosition:l,id:c,isBorderless:u=!1,label:d,prefix:p,size:f="default",suffix:h,...m}=UD(Q_(e,"InputBase")),g=function(e){const t=$m(YD);return e||`input-base-control-${t}`}(c),b=s||!d,{paddingLeft:v,paddingRight:y}=mD({inputSize:f,__next40pxDefaultSize:n}),w=(0,ae.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:v},InputControlSuffixWrapper:{paddingRight:y}})),[v,y]);return(0,ae.createElement)(lD,{...m,...qD(l),className:i,gap:2,ref:t},(0,ae.createElement)(GD,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:l,htmlFor:g},d),(0,ae.createElement)(pD,{__unstableInputWidth:r,className:"components-input-control__container",disabled:a,hideLabel:b,labelPosition:l},(0,ae.createElement)(mk,{value:w},p&&(0,ae.createElement)(oD,{className:"components-input-control__prefix"},p),o,h&&(0,ae.createElement)(iD,{className:"components-input-control__suffix"},h)),(0,ae.createElement)(KD,{disabled:a,isBorderless:u})))}const XD=J_(YD,"InputBase"),ZD=e=>e?.name,QD=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case jM.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case jM.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function JD(e){const{__next40pxDefaultSize:t=!1,className:n,hideLabelFromVision:r,label:o,describedBy:i,options:a,onChange:s,size:l="default",value:c,onMouseOver:u,onMouseOut:d,onFocus:p,onBlur:f,__experimentalShowSelectedHint:h=!1}=UD(e),{getLabelProps:m,getToggleButtonProps:g,getMenuProps:b,getItemProps:v,isOpen:y,highlightedIndex:w,selectedItem:k}=jM({initialSelectedItem:a[0],items:a,itemToString:ZD,onSelectedItemChange:s,...null!=c?{selectedItem:c}:void 0,stateReducer:QD});const _=b({className:"components-custom-select-control__menu","aria-hidden":!y}),E=(0,ae.useCallback)((e=>{e.stopPropagation(),_?.onKeyDown?.(e)}),[_]);return _["aria-activedescendant"]?.startsWith("downshift-null")&&delete _["aria-activedescendant"],(0,ae.createElement)("div",{className:Au("components-custom-select-control",n)},r?(0,ae.createElement)(hE,{as:"label",...m()},o):(0,ae.createElement)(FD,{...m({className:"components-custom-select-control__label"})},o),(0,ae.createElement)(XD,{__next40pxDefaultSize:t,size:l,suffix:(0,ae.createElement)(BD,null)},(0,ae.createElement)(ID,{onMouseOver:u,onMouseOut:d,as:"button",onFocus:p,onBlur:f,selectSize:l,__next40pxDefaultSize:t,...g({"aria-label":o,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:i||(k?On(Kn("Currently selected: %s"),k.name):Kn("No selection"))})},ZD(k),h&&k.__experimentalHint&&(0,ae.createElement)("span",{className:"components-custom-select-control__hint"},k.__experimentalHint)),(0,ae.createElement)("div",{className:"components-custom-select-control__menu-wrapper"},(0,ae.createElement)("ul",{..._,onKeyDown:E},y&&a.map(((e,n)=>(0,ae.createElement)("li",{...v({item:e,index:n,key:e.key,className:Au(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,ae.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===k&&(0,ae.createElement)(VM,{icon:HM,className:"components-custom-select-control__item-icon"}))))))))}function ez(e){return(0,ae.createElement)(JD,{...e,__experimentalShowSelectedHint:!1})}const tz=UM({"0%":{left:"-50%"},"100%":{left:"100%"}}),nz=dE("div",{target:"e15u147w2"})("position:relative;overflow:hidden;width:100%;max-width:160px;height:",FL.borderWidthFocus,";background-color:color-mix(\n\t\tin srgb,\n\t\t",YM.theme.foreground,",\n\t\ttransparent 90%\n\t);border-radius:",FL.radiusBlockUi,";outline:2px solid transparent;outline-offset:2px;");var rz={name:"152sa26",styles:"width:var(--indicator-width);transition:width 0.4s ease-in-out"};const oz=dE("div",{target:"e15u147w1"})("display:inline-block;position:absolute;top:0;height:100%;border-radius:",FL.radiusBlockUi,";background-color:color-mix(\n\t\tin srgb,\n\t\t",YM.theme.foreground,",\n\t\ttransparent 10%\n\t);outline:2px solid transparent;outline-offset:-2px;",(({isIndeterminate:e})=>e?$M({animationDuration:"1.5s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationName:tz,width:"50%"},"",""):rz),";"),iz=dE("progress",{target:"e15u147w0"})({name:"11fb690",styles:"position:absolute;top:0;left:0;opacity:0;width:100%;height:100%"});const az=(0,ae.forwardRef)((function(e,t){const{className:n,value:r,...o}=e,i=!Number.isFinite(r);return(0,ae.createElement)(nz,{className:n},(0,ae.createElement)(oz,{style:{"--indicator-width":i?void 0:`${r}%`},isIndeterminate:i}),(0,ae.createElement)(iz,{max:100,value:r,"aria-label":Kn("Loading …"),ref:t,...o}))}));var sz=Ub([RE,av],[OE,sv]),lz=sz.useContext,cz=sz.useScopedContext,uz=sz.useProviderContext,dz=sz.ContextProvider,pz=sz.ScopedContextProvider,fz=(0,ae.createContext)(void 0),hz=(0,ae.createContext)(!1),mz=(0,Fb.jsx)("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5pt",viewBox:"0 0 16 16",height:"1em",width:"1em",children:(0,Fb.jsx)("polyline",{points:"4,8 7,12 12,4"})});var gz=$b((e=>{var t=e,{store:n,checked:r}=t,o=Jm(t,["store","checked"]);const i=(0,ae.useContext)(hz),a=function(e){return e.checked?e.children||mz:"function"==typeof e.children?e.children:null}({checked:r=null!=r?r:i,children:o.children});return o=Qm(Zm({"aria-hidden":!0},o),{children:a,style:Zm({width:"1em",height:"1em",pointerEvents:"none"},o.style)})}));jb((e=>Hb("span",gz(e))));var bz=$b((e=>{var t=e,{store:n,checked:r}=t,o=Jm(t,["store","checked"]);const i=(0,ae.useContext)(fz);return r=null!=r?r:i,o=gz(Qm(Zm({},o),{checked:r}))})),vz=jb((e=>Hb("span",bz(e))));var yz=Ub([RE],[OE]),wz=yz.useContext,kz=yz.useScopedContext,_z=(yz.useProviderContext,yz.ContextProvider,yz.ScopedContextProvider,(0,ae.createContext)(void 0),Ub([nv,RE],[rv,OE])),Ez=(_z.useContext,_z.useScopedContext,_z.useProviderContext);_z.ContextProvider,_z.ScopedContextProvider,(0,ae.createContext)(void 0),(0,ae.createContext)(!1);function xz(e={}){var t=e,{combobox:n,parent:r,menubar:o}=t,i=cg(t,["combobox","parent","menubar"]);const a=!!o&&!r,s=_b(i.store,function(e,...t){if(e)return hb(e,"pick")(...t)}(r,["values"]),kb(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=s.getState(),c=bO(lg(sg({},i),{store:s,orientation:vg(i.orientation,l.orientation,"vertical")})),u=Lb(lg(sg({},i),{store:s,placement:vg(i.placement,l.placement,"bottom-start"),timeout:vg(i.timeout,l.timeout,a?0:150),hideTimeout:vg(i.hideTimeout,l.hideTimeout,0)})),d=mb(lg(sg(sg({},c.getState()),u.getState()),{initialFocus:vg(l.initialFocus,"container"),values:vg(i.values,l.values,i.defaultValues,{})}),c,u,s);return gb(d,(()=>yb(d,["mounted"],(e=>{e.mounted||d.setState("activeId",null)})))),gb(d,(()=>yb(r,["orientation"],(e=>{d.setState("placement","vertical"===e.orientation?"right-start":"bottom-start")})))),lg(sg(sg(sg({},c),u),d),{combobox:n,parent:r,menubar:o,hideAll:()=>{u.hide(),null==r||r.hideAll()},setInitialFocus:e=>d.setState("initialFocus",e),setValues:e=>d.setState("values",e),setValue:(e,t)=>{"__proto__"!==e&&"constructor"!==e&&(Array.isArray(e)||d.setState("values",(n=>{const r=n[e],o=dg(t,r);return o===r?n:lg(sg({},n),{[e]:void 0!==o&&o})})))}})}function Sz(e={}){const t=lz(),n=wz(),r=Ez();e=Qm(Zm({},e),{parent:void 0!==e.parent?e.parent:t,menubar:void 0!==e.menubar?e.menubar:n,combobox:void 0!==e.combobox?e.combobox:r});const[o,i]=Tb(xz,e);return function(e,t,n){return nb(t,[n.combobox,n.parent,n.menubar]),Ib(e=Mb(e=vO(e,t,n),t,n),n,"values","setValues"),Object.assign(e,{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}(o,i,e)}var Cz=$b((e=>{const t=(0,ae.useRef)(null),n=tb(t,e.as||"button"),[r,o]=(0,ae.useState)((()=>!!n&&Ig({tagName:n,type:e.type})));return(0,ae.useEffect)((()=>{t.current&&o(Ig(t.current))}),[]),e=Qm(Zm({role:r||"a"===n?void 0:"button"},e),{ref:Jg(t,e.ref)}),e=wE(e)}));jb((e=>Hb("button",Cz(e))));var Iz=Symbol("disclosure"),Tz=$b((e=>{var t=e,{store:n,toggleOnClick:r=!0}=t,o=Jm(t,["store","toggleOnClick"]);const i=Gb();mg(n=n||i,!1);const a=(0,ae.useRef)(null),[s,l]=(0,ae.useState)(!1),c=n.useState("disclosureElement"),u=n.useState("open");(0,ae.useEffect)((()=>{let e=c===a.current;(null==c?void 0:c.isConnected)||(null==n||n.setDisclosureElement(a.current),e=!0),l(u&&e)}),[c,n,u]);const d=o.onClick,p=ob(r),[f,h]=sb(o,Iz,!0),m=Qg((e=>{null==d||d(e),e.defaultPrevented||f||p(e)&&(null==n||n.setDisclosureElement(e.currentTarget),null==n||n.toggle())})),g=n.useState("contentElement");return o=Qm(Zm(Zm({"aria-expanded":s,"aria-controls":null==g?void 0:g.id},h),o),{ref:Jg(a,o.ref),onClick:m}),o=Cz(o)}));jb((e=>Hb("button",Tz(e))));var Pz=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=Yb();mg(n=n||o,!1);const i=n.useState("contentElement");return r=Zm({"aria-haspopup":Rg(i,"dialog")},r),r=Tz(Zm({store:n},r))}));jb((e=>Hb("button",Pz(e))));var Az=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=tv();return n=n||o,r=Qm(Zm({},r),{ref:Jg(null==n?void 0:n.setAnchorElement,r.ref)})}));jb((e=>Hb("div",Az(e))));var Bz=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=tv();mg(n=n||o,!1);const i=r.onClick,a=Qg((e=>{null==n||n.setAnchorElement(e.currentTarget),null==i||i(e)}));return r=ib(r,(e=>(0,Fb.jsx)(rv,{value:n,children:e})),[n]),r=Qm(Zm({},r),{onClick:a}),r=Az(Zm({store:n},r)),r=Pz(Zm({store:n},r))}));jb((e=>Hb("button",Bz(e))));var Nz="";function Rz(){Nz=""}function Oz(e,t){var n;const r=(null==(n=e.element)?void 0:n.textContent)||e.children;return!!r&&(o=r,o.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).trim().toLowerCase().startsWith(t.toLowerCase());var o}function Mz(e,t,n){if(!n)return e;const r=e.find((e=>e.id===n));return r&&Oz(r,t)?Nz!==t&&Oz(r,Nz)?e:(Nz=t,function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[CE]:[],...e.slice(0,r)]}(e.filter((e=>Oz(e,Nz))),n).filter((e=>e.id!==n))):e}var Lz=$b((e=>{var t=e,{store:n,typeahead:r=!0}=t,o=Jm(t,["store","typeahead"]);const i=BE();mg(n=n||i,!1);const a=o.onKeyDownCapture,s=(0,ae.useRef)(0),l=Qg((e=>{if(null==a||a(e),e.defaultPrevented)return;if(!r)return;if(!n)return;const{items:t,activeId:o}=n.getState();if(!function(e){const t=e.target;return(!t||!Ng(t))&&(!(" "!==e.key||!Nz.length)||1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key))}(e))return Rz();let i=function(e){return e.filter((e=>!e.disabled))}(t);if(!function(e,t){if(jg(e))return!0;const n=e.target;if(!n)return!1;const r=t.some((e=>e.element===n));return r}(e,i))return Rz();e.preventDefault(),window.clearTimeout(s.current),s.current=window.setTimeout((()=>{Nz=""}),500);const l=e.key.toLowerCase();Nz+=l,i=Mz(i,l,o);const c=i.find((e=>Oz(e,Nz)));c?n.move(c.id):Rz()}));return o=Qm(Zm({},o),{onKeyDownCapture:l})}));jb((e=>Hb("div",Lz(e))));function Dz(e,t){return!!(null==e?void 0:e.some((e=>!!e.element&&(e.element!==t&&"true"===e.element.getAttribute("aria-expanded")))))}var zz=$b((e=>{var t=e,{store:n,focusable:r,accessibleWhenDisabled:o,showOnHover:i}=t,a=Jm(t,["store","focusable","accessibleWhenDisabled","showOnHover"]);const s=uz();mg(n=n||s,!1);const l=(0,ae.useRef)(null),c=n.parent,u=n.menubar,d=!!c,p=!!u&&!d,f=bg(a),h=()=>{const e=l.current;e&&(null==n||n.setDisclosureElement(e),null==n||n.setAnchorElement(e),null==n||n.show())},m=a.onFocus,g=Qg((e=>{if(null==m||m(e),f)return;if(e.defaultPrevented)return;if(null==n||n.setAutoFocusOnShow(!1),null==n||n.setActiveId(null),!u)return;if(!p)return;const{items:t}=u.getState();Dz(t,e.currentTarget)&&h()})),b=n.useState((e=>e.placement.split("-")[0])),v=a.onKeyDown,y=Qg((e=>{if(null==v||v(e),f)return;if(e.defaultPrevented)return;const t=function(e,t){return{ArrowDown:("bottom"===t||"top"===t)&&"first",ArrowUp:("bottom"===t||"top"===t)&&"last",ArrowRight:"right"===t&&"first",ArrowLeft:"left"===t&&"first"}[e.key]}(e,b);t&&(e.preventDefault(),h(),null==n||n.setAutoFocusOnShow(!0),null==n||n.setInitialFocus(t))})),w=a.onClick,k=Qg((e=>{if(null==w||w(e),e.defaultPrevented)return;if(!n)return;const t=!e.detail,{open:r}=n.getState();r&&!t||(d&&!t||n.setAutoFocusOnShow(!0),n.setInitialFocus(t?"first":"container")),d&&h()}));a=ib(a,(e=>(0,Fb.jsx)(dz,{value:n,children:e})),[n]),d&&(a=Qm(Zm({},a),{render:(0,Fb.jsx)(Wb.div,{render:a.render})}));const _=eb(a.id),E=Cb((null==c?void 0:c.combobox)||c,"contentElement"),x=d||p?Og(E,"menuitem"):void 0,S=n.useState("contentElement");return a=Qm(Zm({id:_,role:x,"aria-haspopup":Rg(S,"menu")},a),{ref:Jg(l,a.ref),onFocus:g,onKeyDown:y,onClick:k}),a=Av(Qm(Zm({store:n,focusable:r,accessibleWhenDisabled:o},a),{showOnHover:e=>{if(!(()=>{if("function"==typeof i)return i(e);if(null!=i)return i;if(d)return!0;if(!u)return!1;const{items:t}=u.getState();return p&&Dz(t)})())return!1;const t=p?u:c;return!t||(t.setActiveId(e.currentTarget.id),!0)}})),a=Bz(Zm({store:n,toggleOnClick:!d,focusable:r,accessibleWhenDisabled:o},a)),a=Lz(Zm({store:n,typeahead:p},a))})),Fz=jb((e=>Hb("button",zz(e))));const jz=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var Vz=$b((e=>{var t=e,{store:n,alwaysVisible:r,composite:o}=t,i=Jm(t,["store","alwaysVisible","composite"]);const a=uz();mg(n=n||a,!1);const s=n.parent,l=n.menubar,c=!!s,u=eb(i.id),d=i.onKeyDown,p=n.useState((e=>e.placement.split("-")[0])),f=n.useState((e=>"both"===e.orientation?void 0:e.orientation)),h="vertical"!==f,m=Cb(l,(e=>!!e&&"vertical"!==e.orientation)),g=Qg((e=>{if(null==d||d(e),!e.defaultPrevented){if(c||l&&!h){const t={ArrowRight:()=>"left"===p&&!h,ArrowLeft:()=>"right"===p&&!h,ArrowUp:()=>"bottom"===p&&h,ArrowDown:()=>"top"===p&&h}[e.key];if(null==t?void 0:t())return e.stopPropagation(),e.preventDefault(),null==n?void 0:n.hide()}if(l){const t={ArrowRight:()=>{if(m)return l.next()},ArrowLeft:()=>{if(m)return l.previous()},ArrowDown:()=>{if(!m)return l.next()},ArrowUp:()=>{if(!m)return l.previous()}}[e.key],n=null==t?void 0:t();void 0!==n&&(e.stopPropagation(),e.preventDefault(),l.move(n))}}}));i=ib(i,(e=>(0,Fb.jsx)(pz,{value:n,children:e})),[n]);const b=function(e){var t=e,{store:n}=t,r=Jm(t,["store"]);const[o,i]=(0,ae.useState)(void 0),a=r["aria-label"],s=Cb(n,"disclosureElement"),l=Cb(n,"contentElement");return(0,ae.useEffect)((()=>{const e=s;e&&l&&(a||l.hasAttribute("aria-label")?i(void 0):e.id&&i(e.id))}),[a,s,l]),o}(Zm({store:n},i)),v=ny(n.useState("mounted"),i.hidden,r),y=v?Qm(Zm({},i.style),{display:"none"}):i.style;i=Qm(Zm({id:u,"aria-labelledby":b,hidden:v},i),{ref:Jg(u?n.setContentElement:null,i.ref),style:y,onKeyDown:g});const w=!!n.combobox;return(o=null!=o?o:!w)&&(i=Zm({role:"menu","aria-orientation":f},i)),i=JR(Zm({store:n,composite:o},i)),i=Lz(Zm({store:n,typeahead:!w},i))}));jb((e=>Hb("div",Vz(e))));var Hz=$b((e=>{var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,autoFocusOnShow:a=!0,hideOnHoverOutside:s,alwaysVisible:l}=t,c=Jm(t,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const u=uz();mg(n=n||u,!1);const d=(0,ae.useRef)(null),p=n.parent,f=n.menubar,h=!!p,m=!!f&&!h;c=Qm(Zm({},c),{ref:Jg(d,c.ref)});const g=Vz(Zm({store:n,alwaysVisible:l},c)),{"aria-labelledby":b}=g;c=Jm(g,["aria-labelledby"]);const[v,y]=(0,ae.useState)(),w=n.useState("autoFocusOnShow"),k=n.useState("initialFocus"),_=n.useState("baseElement"),E=n.useState("renderedItems");(0,ae.useEffect)((()=>{let e=!1;return y((t=>{var n,r,o;if(e)return;if(!w)return;if(null==(n=null==t?void 0:t.current)?void 0:n.isConnected)return t;const i=(0,ae.createRef)();switch(k){case"first":i.current=(null==(r=E.find((e=>!e.disabled&&e.element)))?void 0:r.element)||null;break;case"last":i.current=(null==(o=[...E].reverse().find((e=>!e.disabled&&e.element)))?void 0:o.element)||null;break;default:i.current=_}return i})),()=>{e=!0}}),[n,w,k,E,_]);const x=!h&&r,S=!!a,C=!!v||!!c.initialFocus||!!x,I=Cb(n.combobox||n,"contentElement"),T=Cb((null==p?void 0:p.combobox)||p,"contentElement"),P=(0,ae.useMemo)((()=>{if(!T)return;if(!I)return;const e=I.getAttribute("role"),t=T.getAttribute("role");return"menu"!==t&&"menubar"!==t||"menu"!==e?T:void 0}),[I,T]);return void 0!==P&&(c=Zm({preserveTabOrderAnchor:P},c)),c=Gw(Qm(Zm({store:n,alwaysVisible:l,initialFocus:v,autoFocusOnShow:S?C&&a:w||!!x},c),{hideOnEscape:e=>!gg(i,e)&&(null==n||n.hideAll(),!0),hideOnHoverOutside:e=>{const t=null==n?void 0:n.getState().disclosureElement;return!!("function"==typeof s?s(e):null!=s?s:h||m&&(!t||!vv(t)))&&(!!e.defaultPrevented||(!h||(!t||(function(e,t,n){const r=new Event(t,n);e.dispatchEvent(r)}(t,"mouseout",e),!vv(t)||(requestAnimationFrame((()=>{vv(t)||null==n||n.hide()})),!1)))))},modal:x,portal:o,backdrop:!h&&c.backdrop})),c=Zm({"aria-labelledby":b},c)})),$z=Cy(jb((e=>Hb("div",Hz(e)))),uz);function Uz(e){const t=e.relatedTarget;return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null}var Wz=Symbol("composite-hover");var Kz=$b((e=>{var t=e,{store:n,focusOnHover:r=!0,blurOnHoverEnd:o=!!r}=t,i=Jm(t,["store","focusOnHover","blurOnHoverEnd"]);const a=BE();mg(n=n||a,!1);const s=lb(),l=i.onMouseMove,c=ob(r),u=Qg((e=>{if(null==l||l(e),!e.defaultPrevented&&s()&&c(e)){if(!vv(e.currentTarget)){const e=null==n?void 0:n.getState().baseElement;e&&!bv(e)&&e.focus()}null==n||n.setActiveId(e.currentTarget.id)}})),d=i.onMouseLeave,p=ob(o),f=Qg((e=>{var t;null==d||d(e),e.defaultPrevented||s()&&(function(e){const t=Uz(e);return!!t&&Sg(e.currentTarget,t)}(e)||function(e){let t=Uz(e);if(!t)return!1;do{if(pg(t,Wz)&&t[Wz])return!0;t=t.parentElement}while(t);return!1}(e)||c(e)&&p(e)&&(null==n||n.setActiveId(null),null==(t=null==n?void 0:n.getState().baseElement)||t.focus()))})),h=(0,ae.useCallback)((e=>{e&&(e[Wz]=!0)}),[]);return i=Qm(Zm({},i),{ref:Jg(h,i.ref),onMouseMove:u,onMouseLeave:f})}));Vb((e=>Hb("div",Kz(e))));var Gz=$b((e=>{var t=e,{store:n,hideOnClick:r=!0,preventScrollOnKeyDown:o=!0,focusOnHover:i,blurOnHoverEnd:a}=t,s=Jm(t,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const l=cz(!0),c=kz();mg(n=n||l||c,!1);const u=s.onClick,d=ob(r),p="hideAll"in n?n.hideAll:void 0,f=!!p,h=Qg((e=>{if(null==u||u(e),e.defaultPrevented)return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}(e))return;if(function(e){const t=e.currentTarget;if(!t)return!1;const n=Lg();if(n&&!e.metaKey)return!1;if(!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return"a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type}(e))return;if(!p)return;"menu"!==e.currentTarget.getAttribute("aria-haspopup")&&d(e)&&p()})),m=Og(Cb(n,(e=>"contentElement"in e?e.contentElement:null)),"menuitem");return s=Qm(Zm({role:m},s),{onClick:h}),s=FE(Zm({store:n,preventScrollOnKeyDown:o},s)),s=Kz(Qm(Zm({store:n},s),{focusOnHover(e){if(!n)return!1;if(!("function"==typeof i?i(e):null==i||i))return!1;const{baseElement:t,items:r}=n.getState();return f?(e.currentTarget.hasAttribute("aria-expanded")&&e.currentTarget.focus(),!0):!!function(e,t,n){var r;if(!e)return!1;if(vv(e))return!0;const o=null==t?void 0:t.find((e=>{var t;return e.element!==n&&"true"===(null==(t=e.element)?void 0:t.getAttribute("aria-expanded"))})),i=null==(r=null==o?void 0:o.element)?void 0:r.getAttribute("aria-controls");if(!i)return!1;const a=Eg(e).getElementById(i);return!(!a||!vv(a)&&!a.querySelector("[role=menuitem][aria-expanded=true]"))}(t,r,e.currentTarget)&&(e.currentTarget.focus(),!0)},blurOnHoverEnd:e=>"function"==typeof a?a(e):null!=a?a:f})),s})),qz=Vb((e=>Hb("div",Gz(e))));function Yz(e={}){var t;e.store;const n=null==(t=e.store)?void 0:t.getState(),r=mb({value:vg(e.value,null==n?void 0:n.value,e.defaultValue,!1)},e.store);return lg(sg({},r),{setValue:e=>r.setState("value",e)})}function Xz(e={}){const[t,n]=Tb(Yz,e);return function(e,t,n){return nb(t,[n.store]),Ib(e,n,"value","setValue"),e}(t,n,e)}var Zz=Ub(),Qz=Zz.useContext;Zz.useScopedContext,Zz.useProviderContext,Zz.ContextProvider,Zz.ScopedContextProvider;function Jz(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function eF(e){return Array.isArray(e)?e.toString():e}var tF=$b((e=>{var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:a}=t,s=Jm(t,["store","name","value","checked","defaultChecked"]);const l=Qz();n=n||l;const[c,u]=(0,ae.useState)(null!=a&&a),d=Cb(n,(e=>{if(void 0!==i)return i;if(void 0===(null==e?void 0:e.value))return c;if(null!=o){if(Array.isArray(e.value)){const t=eF(o);return e.value.includes(t)}return e.value===o}return!Array.isArray(e.value)&&("boolean"==typeof e.value&&e.value)})),p=(0,ae.useRef)(null),f=function(e,t){return"input"===e&&(!t||"checkbox"===t)}(tb(p,s.as||"input"),s.type),h=d?"mixed"===d:void 0,m="mixed"!==d&&d,g=bg(s),[b,v]=rb();(0,ae.useEffect)((()=>{const e=p.current;e&&(Jz(e,h),f||(e.checked=m,void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[b,h,f,m,r,o]);const y=s.onChange,w=Qg((e=>{if(g)return e.stopPropagation(),void e.preventDefault();if(Jz(e.currentTarget,h),f||(e.currentTarget.checked=!e.currentTarget.checked,v()),null==y||y(e),e.defaultPrevented)return;const t=e.currentTarget.checked;u(t),null==n||n.setValue((e=>{if(null==o)return t;const n=eF(o);return Array.isArray(e)?t?e.includes(n)?e:[...e,n]:e.filter((e=>e!==n)):e!==n&&n}))})),k=s.onClick,_=Qg((e=>{null==k||k(e),e.defaultPrevented||f||w(e)}));return s=ib(s,(e=>(0,Fb.jsx)(hz.Provider,{value:m,children:e})),[m]),s=Qm(Zm({role:f?void 0:"checkbox",type:f?"checkbox":void 0,"aria-checked":d},s),{ref:Jg(p,s.ref),onChange:w,onClick:_}),s=wE(Zm({clickOnEnter:!f},s)),Zm({name:f?r:void 0,value:f?o:void 0,checked:m},s)}));jb((e=>Hb("input",tF(e))));function nF(e,t,n){if(void 0===t)return Array.isArray(e)?e:!!n;const r=function(e){return Array.isArray(e)?e.toString():e}(t);return Array.isArray(e)?n?e.includes(r)?e:[...e,r]:e.filter((e=>e!==r)):n?r:e!==r&&e}var rF=$b((e=>{var t=e,{store:n,name:r,value:o,checked:i,defaultChecked:a,hideOnClick:s=!1}=t,l=Jm(t,["store","name","value","checked","defaultChecked","hideOnClick"]);const c=cz();mg(n=n||c,!1);const u=Xg(a);(0,ae.useEffect)((()=>{null==n||n.setValue(r,((e=[])=>u?nF(e,o,!0):e))}),[n,r,o,u]),(0,ae.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>nF(e,o,i))))}),[n,r,o,i]);const d=Xz({value:n.useState((e=>e.values[r])),setValue(e){null==n||n.setValue(r,(()=>{if(void 0===i)return e;const t=nF(e,o,i);return Array.isArray(t)&&Array.isArray(e)&&function(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t),{length:o}=n;if(r.length!==o)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}(e,t)?e:t}))}});return l=Zm({role:"menuitemcheckbox"},l),l=tF(Zm({store:d,name:r,value:o,checked:i},l)),l=Gz(Zm({store:n,hideOnClick:s},l))})),oF=Vb((e=>Hb("div",rF(e))));var iF=Ub([RE],[OE]),aF=iF.useContext,sF=(iF.useScopedContext,iF.useProviderContext),lF=(iF.ContextProvider,iF.ScopedContextProvider);var cF=$b((e=>{var t=e,{store:n,name:r,value:o,checked:i}=t,a=Jm(t,["store","name","value","checked"]);const s=aF();n=n||s;const l=eb(a.id),c=(0,ae.useRef)(null),u=Cb(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,ae.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,p=function(e,t){return"input"===e&&(!t||"radio"===t)}(tb(c,a.as||"input"),a.type),f=bg(a),[h,m]=rb();(0,ae.useEffect)((()=>{const e=c.current;e&&(p||(void 0!==u&&(e.checked=u),void 0!==r&&(e.name=r),void 0!==o&&(e.value=`${o}`)))}),[h,p,u,r,o]);const g=Qg((e=>{if(f)return e.preventDefault(),void e.stopPropagation();p||(e.currentTarget.checked=!0,m()),null==d||d(e),e.defaultPrevented||null==n||n.setValue(o)})),b=a.onClick,v=Qg((e=>{null==b||b(e),e.defaultPrevented||p||g(e)})),y=a.onFocus,w=Qg((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!p)return;if(!n)return;const{moves:t,activeId:r}=n.getState();t&&(l&&r!==l||g(e))}));return a=Qm(Zm({id:l,role:p?void 0:"radio",type:p?"radio":void 0,"aria-checked":u},a),{ref:Jg(c,a.ref),onChange:g,onClick:v,onFocus:w}),a=FE(Zm({store:n,clickOnEnter:!p},a)),Zm({name:p?r:void 0,value:p?o:void 0,checked:u},a)})),uF=Vb((e=>Hb("input",cF(e))));function dF(e,t,n){return void 0===n?e:n?t:e}var pF=$b((e=>{var t=e,{store:n,name:r,value:o,checked:i,onChange:a,hideOnClick:s=!1}=t,l=Jm(t,["store","name","value","checked","onChange","hideOnClick"]);const c=cz();mg(n=n||c,!1);const u=Xg(l.defaultChecked);(0,ae.useEffect)((()=>{null==n||n.setValue(r,((e=!1)=>dF(e,o,u)))}),[n,r,o,u]),(0,ae.useEffect)((()=>{void 0!==i&&(null==n||n.setValue(r,(e=>dF(e,o,i))))}),[n,r,o,i]);const d=n.useState((e=>e.values[r]===o));return l=ib(l,(e=>(0,Fb.jsx)(fz.Provider,{value:!!d,children:e})),[d]),l=Zm({role:"menuitemradio"},l),l=cF(Zm({name:r,value:o,checked:d,onChange:e=>{if(null==a||a(e),e.defaultPrevented)return;const t=e.currentTarget;null==n||n.setValue(r,(e=>dF(e,o,null!=i?i:t.checked)))}},l)),l=Gz(Zm({store:n,hideOnClick:s},l))})),fF=Vb((e=>Hb("div",pF(e))));var hF=$b((e=>e=rO(e))),mF=jb((e=>Hb("div",hF(e))));var gF=$b((e=>{var t=e,{orientation:n="horizontal"}=t,r=Jm(t,["orientation"]);return r=Zm({role:"separator","aria-orientation":n},r)}));jb((e=>Hb("hr",gF(e))));var bF=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=BE();mg(n=n||o,!1);const i=n.useState((e=>"horizontal"===e.orientation?"vertical":"horizontal"));return r=gF(Qm(Zm({},r),{orientation:i}))}));jb((e=>Hb("hr",bF(e))));var vF=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=lz();return r=bF(Zm({store:n=n||o},r))})),yF=jb((e=>Hb("hr",vF(e))));const wF=J_((function(e,t){const n=BL(e);return(0,ae.createElement)(fE,{as:"span",...n,ref:t})}),"Truncate");const kF="2px",_F="400ms",EF="cubic-bezier( 0.16, 1, 0.3, 1 )",xF=oL(1),SF=oL(2),CF=oL(3),IF=YM.gray[300],TF=YM.gray[200],PF=YM.gray[900],AF=`0 0 0 ${FL.borderWidth} ${IF}, ${FL.popoverShadow}`,BF=`0 0 0 ${FL.borderWidth} ${PF}`,NF="minmax( 0, max-content ) 1fr",RF=UM({"0%":{opacity:0,transform:`translateY(${kF})`},"100%":{opacity:1,transform:"translateY(0)"}}),OF=UM({"0%":{opacity:0,transform:`translateX(-${kF})`},"100%":{opacity:1,transform:"translateX(0)"}}),MF=UM({"0%":{opacity:0,transform:`translateY(-${kF})`},"100%":{opacity:1,transform:"translateY(0)"}}),LF=UM({"0%":{opacity:0,transform:`translateX(${kF})`},"100%":{opacity:1,transform:"translateX(0)"}}),DF=dE($z,{target:"e1kdzosf12"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",NF,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",xF,";background-color:",YM.ui.background,";border-radius:4px;",(e=>$M("box-shadow:","toolbar"===e.variant?BF:AF,";",""))," overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;animation-duration:",_F,";animation-timing-function:",EF,";will-change:transform,opacity;animation-name:",MF,";&[data-side='right']{animation-name:",LF,";}&[data-side='bottom']{animation-name:",RF,";}&[data-side='left']{animation-name:",OF,";}@media ( prefers-reduced-motion ){animation-duration:0s;}"),zF=$M("all:unset;position:relative;min-height:",oL(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",NF,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",RD("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",YM.gray[900],";border-radius:",FL.radiusBlockUi,";padding-block:",SF,";padding-inline:",CF,";scroll-margin:",xF,";user-select:none;outline:none;&[aria-disabled='true']{color:",YM.ui.textDisabled,";cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(\n\t\t\t[aria-disabled='true']\n\t\t){background-color:",YM.theme.accent,";color:",YM.white,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",YM.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",DF,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',YM.gray[100],";color:",YM.gray[900],";}svg{fill:currentColor;}",""),FF=dE(qz,{target:"e1kdzosf11"})(zF,";"),jF=dE(oF,{target:"e1kdzosf10"})(zF,";"),VF=dE(fF,{target:"e1kdzosf9"})(zF,";"),HF=dE("span",{target:"e1kdzosf8"})("grid-column:1;",jF,">&,",VF,">&{min-width:",oL(6),";}",jF,">&,",VF,">&,&:not( :empty ){margin-inline-end:",oL(2),";}display:flex;align-items:center;justify-content:center;color:",YM.gray[700],";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),$F=dE("div",{target:"e1kdzosf7"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",oL(3),";pointer-events:none;"),UF=dE("div",{target:"e1kdzosf6"})("flex:1;display:inline-flex;flex-direction:column;gap:",oL(1),";"),WF=dE("span",{target:"e1kdzosf5"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",oL(3),";color:",YM.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not(",DF,") &,[aria-disabled='true'] *:not(",DF,") &{color:inherit;}"),KF=dE(mF,{target:"e1kdzosf4"})({name:"49aokf",styles:"display:contents"}),GF=dE(yF,{target:"e1kdzosf3"})("grid-column:1/-1;border:none;height:",FL.borderWidth,";background-color:",(e=>"toolbar"===e.variant?PF:TF),";margin-block:",oL(2),";margin-inline:",CF,";outline:2px solid transparent;"),qF=dE(sk,{target:"e1kdzosf2"})("width:",oL(1.5),";",nL({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),YF=dE(wF,{target:"e1kdzosf1"})("font-size:",RD("default.fontSize"),";line-height:20px;color:inherit;"),XF=dE(wF,{target:"e1kdzosf0"})("font-size:",RD("helpText.fontSize"),";line-height:16px;color:",YM.gray[700],";[data-active-item]:not( [data-focus-visible] ) *:not( ",DF," ) &,[aria-disabled='true'] *:not( ",DF," ) &{color:inherit;}"),ZF=(0,ae.createContext)(void 0),QF=(0,ae.forwardRef)((function({prefix:e,suffix:t,children:n,hideOnClick:r=!0,...o},i){const a=(0,ae.useContext)(ZF);return(0,ae.createElement)(FF,{ref:i,...o,accessibleWhenDisabled:!0,hideOnClick:r,store:a?.store},(0,ae.createElement)(HF,null,e),(0,ae.createElement)($F,null,(0,ae.createElement)(UF,null,n),t&&(0,ae.createElement)(WF,null,t)))})),JF=(0,ae.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...r},o){const i=(0,ae.useContext)(ZF);return(0,ae.createElement)(jF,{ref:o,...r,accessibleWhenDisabled:!0,hideOnClick:n,store:i?.store},(0,ae.createElement)(vz,{store:i?.store,render:(0,ae.createElement)(HF,null),style:{width:"auto",height:"auto"}},(0,ae.createElement)(sk,{icon:HM,size:24})),(0,ae.createElement)($F,null,(0,ae.createElement)(UF,null,t),e&&(0,ae.createElement)(WF,null,e)))})),ej=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)((e=>(0,ae.createElement)("circle",e)),{cx:12,cy:12,r:3})),tj=(0,ae.forwardRef)((function({suffix:e,children:t,hideOnClick:n=!1,...r},o){const i=(0,ae.useContext)(ZF);return(0,ae.createElement)(VF,{ref:o,...r,accessibleWhenDisabled:!0,hideOnClick:n,store:i?.store},(0,ae.createElement)(vz,{store:i?.store,render:(0,ae.createElement)(HF,null),style:{width:"auto",height:"auto"}},(0,ae.createElement)(sk,{icon:ej,size:24})),(0,ae.createElement)($F,null,(0,ae.createElement)(UF,null,t),e&&(0,ae.createElement)(WF,null,e)))})),nj=(0,ae.forwardRef)((function(e,t){const n=(0,ae.useContext)(ZF);return(0,ae.createElement)(KF,{ref:t,...e,store:n?.store})})),rj=J_(((e,t)=>{var n;const{open:r,defaultOpen:o=!1,onOpenChange:i,placement:a,trigger:s,gutter:l,children:c,shift:u,modal:d=!0,variant:p,...f}=Q_(e,"DropdownMenu"),h=(0,ae.useContext)(ZF),m=Yn()?"rtl":"ltr";let g=null!==(n=e.placement)&&void 0!==n?n:h?.store?"right-start":"bottom-start";"rtl"===m&&(/right/.test(g)?g=g.replace("right","left"):/left/.test(g)&&(g=g.replace("left","right")));const b=Sz({parent:h?.store,open:r,defaultOpen:o,placement:g,focusLoop:!0,setOpen(e){i?.(e)},rtl:"rtl"===m}),v=(0,ae.useMemo)((()=>({store:b,variant:p})),[b,p]),y=b.useState("placement").split("-")[0];!b.parent||(0,ae.isValidElement)(s)&&QF===s.type||console.warn("For nested DropdownMenus, the `trigger` should always be a `DropdownMenuItem`.");const w=(0,ae.useCallback)((e=>(e.preventDefault(),!0)),[]),k=(0,ae.useMemo)((()=>({dir:m,style:{direction:m}})),[m]);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Fz,{ref:t,store:b,render:b.parent?(0,ae.cloneElement)(s,{suffix:(0,ae.createElement)(ae.Fragment,null,s.props.suffix,(0,ae.createElement)(qF,{"aria-hidden":"true",icon:jz,size:24,preserveAspectRatio:"xMidYMid slice"}))}):s}),(0,ae.createElement)(DF,{...f,modal:d,store:b,gutter:null!=l?l:b.parent?0:8,shift:null!=u?u:b.parent?-4:0,hideOnHoverOutside:!1,"data-side":y,variant:p,wrapperProps:k,hideOnEscape:w,unmountOnHide:!0},(0,ae.createElement)(ZF.Provider,{value:v},c)))}),"DropdownMenu"),oj=(0,ae.forwardRef)((function(e,t){const n=(0,ae.useContext)(ZF);return(0,ae.createElement)(GF,{ref:t,...e,store:n?.store,variant:n?.variant})})),ij=(0,ae.forwardRef)((function(e,t){return(0,ae.createElement)(YF,{numberOfLines:1,ref:t,...e})})),aj=(0,ae.forwardRef)((function(e,t){return(0,ae.createElement)(XF,{numberOfLines:2,ref:t,...e})}));const sj=dE("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});function lj(e){!function(e){for(const[t,n]of Object.entries(e))void 0===n||_r(n).isValid()||"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck(`wp.components.Theme: "${n}" is not a valid color value for the '${t}' prop.`)}(e);const t={...cj(e.accent),...uj(e.background)};return function(e){for(const t of Object.values(e))t&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("wp.components.Theme: "+t)}(function(e,t){const n=e.background||YM.white,r=e.accent||"#3858e9",o=t.foreground||YM.gray[900],i=t.gray||YM.gray;return{accent:_r(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:_r(n).isReadable(o)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:_r(n).contrast(i[600])>=3&&_r(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 cj(e){return e?{accent:e,accentDarker10:_r(e).darken(.1).toHex(),accentDarker20:_r(e).darken(.2).toHex(),accentInverted:dj(e)}:{}}function uj(e){if(!e)return{};const t=dj(e);return{background:e,foreground:t,foregroundInverted:dj(t),gray:pj(e,t)}}function dj(e){return _r(e).isDark()?YM.white:YM.gray[900]}function pj(e,t){const n=_r(e).isDark()?"lighten":"darken",r=Math.abs(_r(e).toHsl().l-_r(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)]=_r(e)[n](i/.884*r).toHex()})),o}xr([Sr,Tr]);const fj=function({accent:e,background:t,className:n,...r}){const o=Z_(),i=(0,ae.useMemo)((()=>o(...(({colors:e})=>{const t=Object.entries(e.gray||{}).map((([e,t])=>`--wp-components-color-gray-${e}: ${t};`)).join("");return[$M("--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,";","")]})(lj({accent:e,background:t})),n)),[e,t,n,o]);return(0,ae.createElement)(sj,{className:i,...r})};function hj(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=bO(lg(sg({},e),{orientation:vg(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:vg(e.focusLoop,null==n?void 0:n.focusLoop,!0)})),o=cO(),i=mb(lg(sg({},r.getState()),{selectedId:vg(e.selectedId,null==n?void 0:n.selectedId,e.defaultSelectedId,void 0),selectOnMove:vg(e.selectOnMove,null==n?void 0:n.selectOnMove,!0)}),r,e.store);return gb(i,(()=>yb(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))})))),gb(i,(()=>wb(i,["selectedId"],(e=>i.setState("activeId",e.selectedId))))),gb(i,(()=>yb(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)})))),gb(i,(()=>yb(i,["renderedItems"],(e=>{const t=e.renderedItems;if(t.length)return yb(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(lg(sg({},e),{tabId:r.id}))}))}))})))),lg(sg(sg({},r),i),{panels:o,setSelectedId:e=>i.setState("selectedId",e),select:e=>{i.setState("selectedId",e),r.move(e)}})}function mj(e={}){const[t,n]=Tb(hj,e);return function(e,t,n){Ib(e=vO(e,t,n),n,"selectedId","setSelectedId"),Ib(e,n,"selectOnMove");const[r,o]=Tb((()=>e.panels),{});return nb(o,[e,o]),(0,ae.useMemo)((()=>Qm(Zm({},e),{panels:r})),[e,r])}(t,n,e)}const gj=(0,ae.createContext)(void 0),bj=()=>(0,ae.useContext)(gj);var vj=Ub([RE],[OE]),yj=(vj.useContext,vj.useScopedContext),wj=vj.useProviderContext,kj=(vj.ContextProvider,vj.ScopedContextProvider),_j=$b((e=>{var t=e,{store:n,accessibleWhenDisabled:r=!0,getItem:o}=t,i=Jm(t,["store","accessibleWhenDisabled","getItem"]);const a=yj();mg(n=n||a,!1);const s=eb(),l=i.id||s,c=bg(i),u=(0,ae.useCallback)((e=>{const t=Qm(Zm({},e),{dimmed:c});return o?o(t):t}),[c,o]),d=i.onClick,p=Qg((e=>{null==d||d(e),e.defaultPrevented||null==n||n.setSelectedId(l)})),f=n.panels.useState((e=>{var t;return null==(t=e.items.find((e=>e.tabId===l)))?void 0:t.id})),h=n.useState((e=>!!l&&e.selectedId===l));return i=Qm(Zm({id:l,role:"tab","aria-selected":h,"aria-controls":f||void 0},i),{onClick:p}),i=FE(Qm(Zm({store:n},i),{accessibleWhenDisabled:r,getItem:u,shouldRegisterItem:!!s&&i.shouldRegisterItem}))})),Ej=Vb((e=>Hb("button",_j(e))));var xj=$b((e=>{var t=e,{store:n,tabId:r,getItem:o}=t,i=Jm(t,["store","tabId","getItem"]);const a=wj();mg(n=n||a,!1);const s=(0,ae.useRef)(null),l=eb(i.id),[c,u]=(0,ae.useState)(!1);(0,ae.useEffect)((()=>{const e=s.current;if(!e)return;const t=fv(e);u(!!t.length)}),[]);const d=(0,ae.useCallback)((e=>{const t=Qm(Zm({},e),{id:l||e.id,tabId:r});return o?o(t):t}),[l,r,o]);i=ib(i,(e=>(0,Fb.jsx)(kj,{value:n,children:e})),[n]);const p=n.panels.useState((()=>{var e;return r||(null==(e=null==n?void 0:n.panels.item(l))?void 0:e.tabId)})),f=n.useState((e=>!!p&&e.selectedId===p));i=Qm(Zm({id:l,role:"tabpanel","aria-labelledby":p||void 0},i),{ref:Jg(s,i.ref)});const h=Bb({open:f});return i=Pv(Zm({focusable:!c},i)),i=ry(Zm({store:h},i)),i=SE(Qm(Zm({store:n.panels},i),{getItem:d}))})),Sj=jb((e=>Hb("div",xj(e))));function Cj(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 Ij=dE("div",{target:"enfox0g2"})({name:"xbm4q1",styles:"display:flex;align-items:stretch;flex-direction:row;&[aria-orientation='vertical']{flex-direction:column;}"}),Tj=dE(Ej,{target:"enfox0g1"})("&{display:inline-flex;align-items:center;position:relative;border-radius:0;height:",oL(12),";background:transparent;border:none;box-shadow:none;cursor:pointer;padding:3px ",oL(4),";margin-left:0;font-weight:500;&[aria-disabled='true']{cursor:default;opacity:0.3;}&:hover{color:",YM.theme.accent,";}&:focus:not( :disabled ){position:relative;box-shadow:none;outline:none;}&::after{content:'';position:absolute;right:0;bottom:0;left:0;pointer-events:none;background:",YM.theme.accent,";height:calc( 0 * var( --wp-admin-border-width-focus ) );border-radius:0;transition:all 0.1s linear;",Cj("transition"),";}&[aria-selected='true']::after{height:calc( 1 * var( --wp-admin-border-width-focus ) );outline:2px solid transparent;outline-offset:-1px;}&::before{content:'';position:absolute;top:",oL(3),";right:",oL(3),";bottom:",oL(3),";left:",oL(3),";pointer-events:none;box-shadow:0 0 0 0 transparent;border-radius:2px;transition:all 0.1s linear;",Cj("transition"),";}&:focus-visible::before{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",YM.theme.accent,";outline:2px solid transparent;}}"),Pj=dE(Sj,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&:focus-visible{border-radius:2px;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",YM.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),Aj=(0,ae.forwardRef)((function({children:e,tabId:t,disabled:n,render:r,...o},i){const a=bj();if(!a)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("`Tabs.Tab` must be wrapped in a `Tabs` component."),null;const{store:s,instanceId:l}=a,c=`${l}-${t}`;return(0,ae.createElement)(Tj,{ref:i,store:s,id:c,disabled:n,render:r,...o},e)}));var Bj=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=wj();mg(n=n||o,!1);const i=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=ib(r,(e=>(0,Fb.jsx)(kj,{value:n,children:e})),[n]),r=Zm({role:"tablist","aria-orientation":i},r),r=JR(Zm({store:n},r))})),Nj=jb((e=>Hb("div",Bj(e))));const Rj=(0,ae.forwardRef)((function({children:e,...t},n){const r=bj();if(!r)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("`Tabs.TabList` must be wrapped in a `Tabs` component."),null;const{store:o}=r,{selectedId:i,activeId:a,selectOnMove:s}=o.useState(),{setActiveId:l}=o;return(0,ae.createElement)(Nj,{ref:n,store:o,render:(0,ae.createElement)(Ij,null),onBlur:()=>{s&&i!==a&&l(i)},...t},e)})),Oj=(0,ae.forwardRef)((function({children:e,tabId:t,focusable:n=!0,...r},o){const i=bj();if(!i)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck("`Tabs.TabPanel` must be wrapped in a `Tabs` component."),null;const{store:a,instanceId:s}=i,l=`${s}-${t}`,c=a.useState((e=>e.selectedId));return(0,ae.createElement)(Pj,{ref:o,store:a,id:`${l}-view`,tabId:l,focusable:n,...r},c===l&&e)}));function Mj({selectOnMove:e=!0,defaultTabId:t,orientation:n="horizontal",onSelect:r,children:o,selectedTabId:i}){const a=$m(Mj,"tabs"),s=mj({selectOnMove:e,orientation:n,defaultSelectedId:t&&`${a}-${t}`,setSelectedId:e=>{const t="string"==typeof e?e.replace(`${a}-`,""):e;r?.(t)},selectedId:i&&`${a}-${i}`}),l=void 0!==i,{items:c,selectedId:u,activeId:d}=s.useState(),{setSelectedId:p,setActiveId:f}=s,h=(0,ae.useRef)(!1);c.length>0&&(h.current=!0);const m=c.find((e=>e.id===u)),g=c.find((e=>!e.dimmed)),b=c.find((e=>e.id===`${a}-${t}`));(0,ae.useLayoutEffect)((()=>{if(!l&&(!t||b)&&!c.find((e=>e.id===u))){if(b&&!b.dimmed)return void p(b?.id);g?p(g.id):h.current&&p(null)}}),[g,b,t,l,c,u,p]),(0,ae.useLayoutEffect)((()=>{m?.dimmed&&(l?p(null):!b||b.dimmed?g&&p(g.id):p(b.id))}),[g,b,l,m?.dimmed,p]),(0,ae.useLayoutEffect)((()=>{l&&h.current&&i&&!m&&p(null)}),[l,m,i,p]),(0,ae.useEffect)((()=>{null===i&&!d&&g?.id&&f(g.id)}),[i,d,g?.id,f]),(0,ae.useEffect)((()=>{l&&requestAnimationFrame((()=>{const e=c?.[0]?.element?.ownerDocument.activeElement;e&&c.some((t=>e===t.element))&&d!==e.id&&f(e.id)}))}),[d,l,c,f]);const v=(0,ae.useMemo)((()=>({store:s,instanceId:a})),[s,a]);return(0,ae.createElement)(gj.Provider,{value:v},o)}Mj.TabList=Rj,Mj.Tab=Aj,Mj.TabPanel=Oj,Mj.Context=gj;const Lj=Mj;function Dj(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const{lock:zj,unlock:Fj}=Ue("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/components"),jj={};function Vj(e){return tR((0,ae.useContext)(oR).fills,e)}zj(jj,{CompositeV2:eO,CompositeGroupV2:oO,CompositeItemV2:jE,CompositeRowV2:aO,useCompositeStoreV2:yO,CustomSelectControl:JD,__experimentalPopoverLegacyPositionToPlacement:Qw,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...CR(t)}},ComponentsContext:fk,ProgressBar:az,Tabs:Lj,Theme:fj,DropdownMenuV2:rj,DropdownMenuGroupV2:nj,DropdownMenuItemV2:QF,DropdownMenuCheckboxItemV2:JF,DropdownMenuRadioItemV2:tj,DropdownMenuSeparatorV2:oj,DropdownMenuItemLabelV2:ij,DropdownMenuItemHelpTextV2:aj,kebabCase:function(e){var t;let n=null!==(t=e?.toString?.())&&void 0!==t?t:"";return n=n.replace(/['\u2019]/,""),za(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}});const{ComponentsContext:Hj}=Du(jj);function $j({group:e="default",...t}){const n=(0,ae.useContext)(WE),r=(0,ae.useContext)(Hj),o=(0,ae.useMemo)((()=>({forwardedContext:[[WE.Provider,{value:n}],[Hj.Provider,{value:r}]]})),[n,r]),i=qR[e]?.Slot,a=Vj(i?.__unstableName);if(!i)return"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck(`Unknown BlockControls group "${e}" provided.`),null;if(!a?.length)return null;const s=(0,ae.createElement)(i,{...t,bubblesVirtually:!0,fillProps:o});return"default"===e?s:(0,ae.createElement)(GR,null,s)}const Uj=YR;Uj.Slot=$j;const Wj=Uj;const Kj=(0,ae.forwardRef)((function(e,t){return(0,ae.useContext)(WE)?(0,ae.createElement)(KE,{ref:t,...e.toggleProps},(t=>(0,ae.createElement)(WR,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,ae.createElement)(WR,{...e})}));const Gj=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,a=$m(e);if(!ae.Children.count(n))return null;const s=`components-menu-group-label-${a}`,l=Au(r,"components-menu-group",{"has-hidden-separator":i});return(0,ae.createElement)("div",{className:l},o&&(0,ae.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},o),(0,ae.createElement)("div",{role:"group","aria-labelledby":o?s:void 0},n))};const qj=(0,ae.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=Au("components-menu-item__button",o),r&&(n=(0,ae.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,ae.createElement)("span",{className:"components-menu-item__item"},n),(0,ae.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,ae.cloneElement)(i,{className:Au("components-menu-items__item-icon",{"has-icon-right":"right"===a})})),(0,ae.createElement)(bE,{ref:t,"aria-checked":"menuitemcheckbox"===c||"menuitemradio"===c?l:void 0,role:c,icon:"left"===a?i:void 0,className:o,...d},(0,ae.createElement)("span",{className:"components-menu-item__item"},n),!u&&(0,ae.createElement)(Xw,{className:"components-menu-item__shortcut",shortcut:s}),!u&&i&&"right"===a&&(0,ae.createElement)(sk,{icon:i}),u)})),Yj=qj,Xj={type:"default"},Zj=(0,ae.createContext)(Xj),Qj=Zj.Provider;function Jj(){return(0,ae.useContext)(Zj)}const eV=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),tV=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),nV=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),rV=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),oV=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),iV=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),aV=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),sV=(0,ae.createContext)(null);function lV(){const e=function(){const e=(0,ae.useRef)(!1);return HA((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),[t,n]=(0,ae.useState)(0),r=(0,ae.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,ae.useCallback)((()=>jx.postRender(r)),[r]),t]}const cV=e=>!e.isLayoutDirty&&e.willUpdate(!1);function uV(){const e=new Set,t=new WeakMap,n=()=>e.forEach(cV);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 dV=e=>!0===e,pV=({children:e,id:t,inherit:n=!0})=>{const r=(0,ae.useContext)(cP),o=(0,ae.useContext)(sV),[i,a]=lV(),s=(0,ae.useRef)(null),l=r.id||o;null===s.current&&((e=>dV(!0===e)||"id"===e)(n)&&l&&(t=t?l+"-"+t:l),s.current={id:t,group:dV(n)&&r.group||uV()});const c=(0,ae.useMemo)((()=>({...s.current,forceRender:i})),[a]);return(0,Fb.jsx)(cP.Provider,{value:c,children:e})},fV=({className:e,children:t,...n})=>(0,ae.createElement)($D,{...n,className:Au("components-base-control__label",e)},t),hV=Object.assign(eE((e=>{const{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:i,className:a,children:s}=Q_(e,"BaseControl");return(0,ae.createElement)(MD,{className:a},(0,ae.createElement)(DD,{className:"components-base-control__field",__nextHasNoMarginBottom:t},r&&n&&(o?(0,ae.createElement)(hE,{as:"label",htmlFor:n},r):(0,ae.createElement)(FD,{className:"components-base-control__label",htmlFor:n},r)),r&&!n&&(o?(0,ae.createElement)(hE,{as:"label"},r):(0,ae.createElement)(fV,null,r)),s),!!i&&(0,ae.createElement)(HD,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},i))}),"BaseControl"),{VisualLabel:fV}),mV=hV;const gV=e=>{const t=$M("border-color:",YM.ui.border,";","");return $M(e&&t," &:hover{border-color:",YM.ui.borderHover,";}&:focus-within{border-color:",YM.ui.borderFocus,";box-shadow:",FL.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")};var bV={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},vV={name:"1ndywgm",styles:"min-height:36px;padding:2px"};const yV=e=>({default:vV,"__unstable-large":bV}[e]),wV={name:"7whenc",styles:"display:flex;width:100%"},kV=dE("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function _V(e={}){var t,n=cg(e,[]);const r=null==(t=n.store)?void 0:t.getState(),o=bO(lg(sg({},n),{focusLoop:vg(n.focusLoop,null==r?void 0:r.focusLoop,!0)})),i=mb(lg(sg({},o.getState()),{value:vg(n.value,null==r?void 0:r.value,n.defaultValue,null)}),o,n.store);return lg(sg(sg({},o),i),{setValue:e=>i.setState("value",e)})}function EV(e={}){const[t,n]=Tb(_V,e);return function(e,t,n){return Ib(e=vO(e,t,n),n,"value","setValue"),e}(t,n,e)}var xV=$b((e=>{var t=e,{store:n}=t,r=Jm(t,["store"]);const o=sF();return mg(n=n||o,!1),r=ib(r,(e=>(0,Fb.jsx)(lF,{value:n,children:e})),[n]),r=Zm({role:"radiogroup"},r),r=JR(Zm({store:n},r))})),SV=jb((e=>Hb("div",xV(e))));const CV=(0,ae.createContext)({}),IV=CV;function TV(e){const t=(0,ae.useRef)();return(0,ae.useEffect)((()=>{t.current=e}),[e]),t.current}function PV(e){const t=(0,ae.useRef)(!0),n=TV(e),r=(0,ae.useRef)(!1);(0,ae.useEffect)((()=>{t.current&&(t.current=!1)}),[]);const o=r.current||!t.current&&n!==e;return(0,ae.useEffect)((()=>{r.current=o}),[o]),o?{value:null!=e?e:"",defaultValue:void 0}:{value:void 0,defaultValue:e}}const AV=(0,ae.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:a,...s},l){const c=$m(AV,"toggle-group-control-as-radio-group"),u=a||c,{value:d,defaultValue:p}=PV(i),f=r?e=>{r(null!=e?e:void 0)}:void 0,h=EV({defaultValue:p,value:d,setValue:f}),m=h.useState("value"),g=h.setValue,b=(0,ae.useMemo)((()=>({baseId:u,isBlock:!t,size:o,value:m,setValue:g})),[u,t,o,m,g]);return(0,ae.createElement)(IV.Provider,{value:b},(0,ae.createElement)(SV,{store:h,"aria-label":n,render:(0,ae.createElement)(fE,null),...s,id:u,ref:l},e))}));const BV=(0,ae.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,id:a,...s},l){const c=$m(BV,"toggle-group-control-as-button-group"),u=a||c,{value:d,defaultValue:p}=PV(i),[f,h]=ex({defaultValue:p,value:d,onChange:r}),m=(0,ae.useMemo)((()=>({baseId:u,value:f,setValue:h,isBlock:!t,isDeselectable:!0,size:o})),[u,f,h,t,o]);return(0,ae.createElement)(IV.Provider,{value:m},(0,ae.createElement)(fE,{"aria-label":n,...s,ref:l,role:"group"},e))}));const NV=J_((function(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:r=!1,className:o,isAdaptiveWidth:i=!1,isBlock:a=!1,isDeselectable:s=!1,label:l,hideLabelFromVision:c=!1,help:u,onChange:d,size:p="default",value:f,children:h,...m}=Q_(e,"ToggleGroupControl"),g=$m(NV,"toggle-group-control"),b=r&&"default"===p?"__unstable-large":p,v=Z_(),y=(0,ae.useMemo)((()=>v((({isBlock:e,isDeselectable:t,size:n})=>$M("background:",YM.ui.background,";border:1px solid transparent;border-radius:",FL.controlBorderRadius,";display:inline-flex;min-width:0;position:relative;",yV(n)," ",!t&&gV(e),";",""))({isBlock:a,isDeselectable:s,size:b}),a&&wV,o)),[o,v,a,s,b]),w=s?BV:AV;return(0,ae.createElement)(mV,{help:u,__nextHasNoMarginBottom:n},!c&&(0,ae.createElement)(kV,null,(0,ae.createElement)(mV.VisualLabel,null,l)),(0,ae.createElement)(w,{...m,className:y,isAdaptiveWidth:i,label:l,onChange:d,ref:t,size:b,value:f},(0,ae.createElement)(pV,{id:g},h)))}),"ToggleGroupControl"),RV=NV;const OV=dE("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),MV={name:"82a6rk",styles:"flex:1"},LV=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>$M("align-items:center;appearance:none;background:transparent;border:none;border-radius:",FL.controlBorderRadius,";color:",YM.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",FL.transitionDurationFast," linear,color ",FL.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",FL.toggleGroupControlBackgroundColor,";}",e&&zV," ",t&&jV({size:r})," ",n&&DV,";",""),DV=$M("color:",YM.white,";&:active{background:transparent;}",""),zV=$M("color:",YM.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",YM.white,",0 0 0 ",FL.borderWidthFocus," ",YM.theme.accent,";outline:2px solid transparent;}",""),FV=dE("div",{target:"et6ln9s0"})("display:flex;font-size:",FL.fontSize,";line-height:1;"),jV=({size:e="default"})=>$M("color:",YM.gray[900],";height:",{default:"30px","__unstable-large":"32px"}[e],";aspect-ratio:1;padding-left:0;padding-right:0;",""),VV=$M("background:",YM.gray[900],";border-radius:",FL.controlBorderRadius,";position:absolute;inset:0;z-index:1;outline:2px solid transparent;outline-offset:-3px;",""),{ButtonContentView:HV,LabelView:$V}=g,UV={duration:0},WV=({showTooltip:e,text:t,children:n})=>e&&t?(0,ae.createElement)(ik,{text:t,placement:"top"},n):(0,ae.createElement)(ae.Fragment,null,n);const KV=J_((function e(t,n){const r=YN(),o=(0,ae.useContext)(CV),i=Q_({...t,id:$m(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:p,showTooltip:f=!1,onFocus:h,...m}=i,g=o.value===d,b=Z_(),v=(0,ae.useMemo)((()=>b(a&&MV)),[b,a]),y=(0,ae.useMemo)((()=>b(LV({isDeselectable:s,isIcon:u,isPressed:g,size:l}),c)),[b,s,u,g,l,c]),w=(0,ae.useMemo)((()=>b(VV)),[b]),k={...m,className:y,"data-value":d,ref:n};return(0,ae.createElement)($V,{className:v},(0,ae.createElement)(WV,{showTooltip:f,text:m["aria-label"]},s?(0,ae.createElement)("button",{...k,onFocus:h,"aria-pressed":g,type:"button",onClick:()=>{s&&g?o.setValue(void 0):o.setValue(d)}},(0,ae.createElement)(HV,null,p)):(0,ae.createElement)(uF,{render:(0,ae.createElement)("button",{type:"button",...k,onFocus:e=>{h?.(e),e.defaultPrevented||o.setValue(d)}}),value:d},(0,ae.createElement)(HV,null,p))),g?(0,ae.createElement)(ZB.div,{layout:!0,layoutRoot:!0},(0,ae.createElement)(ZB.div,{className:w,transition:r?UV:void 0,role:"presentation",layoutId:"toggle-group-backdrop-shared-layout-id"})):null)}),"ToggleGroupControlOptionBase"),GV=KV;const qV=(0,ae.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,ae.createElement)(GV,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,ae.createElement)(sk,{icon:n}))}));const YV=J_((function(e,t){const n=function(e){return _L({isBlock:!0,...Q_(e,"FlexBlock")})}(e);return(0,ae.createElement)(fE,{...n,ref:t})}),"FlexBlock"),XV=()=>{};const ZV=(0,ae.forwardRef)((function(e,t){const{className:n,checked:r,id:o,disabled:i,onChange:a=XV,...s}=e,l=Au("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return(0,ae.createElement)("span",{className:l},(0,ae.createElement)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:r,onChange:a,disabled:i,...s,ref:t}),(0,ae.createElement)("span",{className:"components-form-toggle__track"}),(0,ae.createElement)("span",{className:"components-form-toggle__thumb"}))})),QV={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"}},JV={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 eH(e){return"string"==typeof e?[e]:ae.Children.toArray(e).filter((e=>(0,ae.isValidElement)(e)))}function tH(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Q_(e,"HStack"),a=function(e,t="row"){if(!SL(e))return{};const n="column"===t?JV:QV;return e in n?n[e]:{align:e}}(t,r),s=eH(n).map(((e,t)=>{if(rE(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,ae.createElement)(EL,{isBlock:!0,key:r,...n.props})}return e})),l={children:s,direction:r,justify:"center",...a,...i,gap:o},{isColumn:c,...u}=bL(l);return u}const nH=J_((function(e,t){const n=tH(e);return(0,ae.createElement)(fE,{...n,ref:t})}),"HStack");const rH=(0,ae.forwardRef)((function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:a,disabled:s},l){const c=`inspector-toggle-control-${$m(e)}`,u=Z_()("components-toggle-control",i,!t&&$M({marginBottom:oL(3)},"",""));let d,p;return o&&("function"==typeof o?void 0!==r&&(p=o(r)):p=o,p&&(d=c+"__help")),(0,ae.createElement)(mV,{id:c,help:p,className:u,__nextHasNoMarginBottom:!0},(0,ae.createElement)(nH,{justify:"flex-start",spacing:3},(0,ae.createElement)(ZV,{id:c,checked:r,onChange:function(e){a(e.target.checked)},"aria-describedby":d,disabled:s,ref:l}),(0,ae.createElement)(YV,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))})),oH={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",rules:{"margin-block-start":"0"}},{selector:" > :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",rules:{"margin-block-start":"0"}},{selector:" > :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:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function iH(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function aH(e,t=oH,n,r){let o="";return t?.[n]?.spacingStyles?.length&&r&&t[n].spacingStyles.forEach((t=>{o+=`${iH(e,t.selector.trim())} { `,o+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||r}`)).join("; "),o+="; }"})),o}function sH(e){const{contentSize:t,wideSize:n,type:r="default"}=e,o={},i=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return i.test(t)&&"constrained"===r&&(o.none=On(Kn("Max %s wide"),t)),i.test(n)&&(o.wide=On(Kn("Max %s wide"),n)),o}const lH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z"})),cH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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,ae.createElement)(Bu,{d:"m4.5 7.5v9h1.5v-9z"}),(0,ae.createElement)(Bu,{d:"m18 7.5v9h1.5v-9z"})),uH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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,ae.createElement)(Bu,{d:"m7.5 6h9v-1.5h-9z"}),(0,ae.createElement)(Bu,{d:"m7.5 19.5h9v-1.5h-9z"})),dH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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,ae.createElement)(Bu,{d:"m16.5 6h-9v-1.5h9z"})),pH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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,ae.createElement)(Bu,{d:"m18 16.5v-9h1.5v9z"})),fH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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,ae.createElement)(Bu,{d:"m16.5 19.5h-9v-1.5h9z",style:{fill:"#1e1e1e"}})),hH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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,ae.createElement)(Bu,{d:"m4.5 16.5v-9h1.5v9z"})),mH=["top","right","bottom","left"],gH={top:void 0,right:void 0,bottom:void 0,left:void 0},bH={custom:lH,axial:lH,horizontal:cH,vertical:uH,top:dH,right:pH,bottom:fH,left:hH},vH={default:Kn("Spacing control"),top:Kn("Top"),bottom:Kn("Bottom"),left:Kn("Left"),right:Kn("Right"),mixed:Kn("Mixed"),vertical:Kn("Vertical"),horizontal:Kn("Horizontal"),axial:Kn("Horizontal & vertical"),custom:Kn("Custom")},yH={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function wH(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function kH(e,t){if(!e||wH(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 _H(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function EH(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 xH(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 SH(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=_H(n?.top)||t,o=_H(n?.left)||t;return r===o?r:`${r} ${o}`}const CH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),IH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),TH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),PH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),AH=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),BH={top:{icon:TH,title:Gn("Align top","Block vertical alignment setting")},center:{icon:IH,title:Gn("Align middle","Block vertical alignment setting")},bottom:{icon:CH,title:Gn("Align bottom","Block vertical alignment setting")},stretch:{icon:PH,title:Gn("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:AH,title:Gn("Space between","Block vertical alignment setting")}},NH=["top","center","bottom"];const RH=function({value:e,onChange:t,controls:n=NH,isCollapsed:r=!0,isToolbar:o}){function i(n){return()=>t(e===n?void 0:n)}const a=BH[e],s=BH.top,l=o?GR:Kj,c=o?{isCollapsed:r}:{};return(0,ae.createElement)(l,{icon:a?a.icon:s.icon,label:Gn("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((t=>({...BH[t],isActive:e===t,role:r?"menuitemradio":void 0,onClick:i(t)}))),...c})},OH=e=>(0,ae.createElement)(RH,{...e,isToolbar:!1}),MH={left:eV,center:tV,right:nV,"space-between":rV,stretch:oV};const LH=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?MH[r]:MH.left,l=[{name:"left",icon:eV,title:Kn("Justify items left"),isActive:"left"===r,onClick:()=>a("left")},{name:"center",icon:tV,title:Kn("Justify items center"),isActive:"center"===r,onClick:()=>a("center")},{name:"right",icon:nV,title:Kn("Justify items right"),isActive:"right"===r,onClick:()=>a("right")},{name:"space-between",icon:rV,title:Kn("Space between items"),isActive:"space-between"===r,onClick:()=>a("space-between")},{name:"stretch",icon:oV,title:Kn("Stretch items"),isActive:"stretch"===r,onClick:()=>a("stretch")}],c=i?GR:Kj,u=i?{isCollapsed:t}:{};return(0,ae.createElement)(c,{icon:s,popoverProps:o,label:Kn("Change items justification"),controls:l.filter((t=>e.includes(t.name))),...u})},DH=e=>(0,ae.createElement)(LH,{...e,isToolbar:!1}),zH={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},FH={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},jH={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},VH=["wrap","nowrap"],HH={name:"flex",label:Kn("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:r=!0}=n;return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(kL,null,(0,ae.createElement)(EL,null,(0,ae.createElement)(WH,{layout:e,onChange:t})),(0,ae.createElement)(EL,null,r&&(0,ae.createElement)(GH,{layout:e,onChange:t}))),(0,ae.createElement)(KH,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=n;return(0,ae.createElement)(Wj,{group:"block",__experimentalShareWithChildBlocks:!0},(0,ae.createElement)(WH,{layout:e,onChange:t,isToolbar:!0}),r&&(0,ae.createElement)($H,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=oH}){const{orientation:a="horizontal"}=t,s=n?.spacing?.blockGap&&!Dm(r,"spacing","blockGap")?SH(n?.spacing?.blockGap,"0.5em"):void 0,l=zH[t.justifyContent],c=VH.includes(t.flexWrap)?t.flexWrap:"wrap",u=jH[t.verticalAlignment],d=FH[t.justifyContent]||FH.left;let p="";const f=[];return c&&"wrap"!==c&&f.push(`flex-wrap: ${c}`),"horizontal"===a?(u&&f.push(`align-items: ${u}`),l&&f.push(`justify-content: ${l}`)):(u&&f.push(`justify-content: ${u}`),f.push("flex-direction: column"),f.push(`align-items: ${d}`)),f.length&&(p=`${iH(e)} {\n\t\t\t\t${f.join("; ")};\n\t\t\t}`),o&&s&&(p+=aH(e,i,"flex",s)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function $H({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:r="horizontal"}=e,o="horizontal"===r?jH.center:jH.top,{verticalAlignment:i=o}=e,a=n=>{t({...e,verticalAlignment:n})};if(n)return(0,ae.createElement)(OH,{onChange:a,value:i,controls:"horizontal"===r?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const s=[{value:"flex-start",label:Kn("Align items top")},{value:"center",label:Kn("Align items center")},{value:"flex-end",label:Kn("Align items bottom")}];return(0,ae.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,ae.createElement)("legend",null,Kn("Vertical alignment")),(0,ae.createElement)("div",null,s.map(((e,t,n)=>(0,ae.createElement)(bE,{key:e,label:n,icon:t,isPressed:i===e,onClick:()=>a(e)})))))}const UH={placement:"bottom-start"};function WH({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,ae.createElement)(DH,{allowedControls:a,value:r,onChange:i,popoverProps:UH});const s=[{value:"left",icon:eV,label:Kn("Justify items left")},{value:"center",icon:tV,label:Kn("Justify items center")},{value:"right",icon:nV,label:Kn("Justify items right")}];return"horizontal"===o?s.push({value:"space-between",icon:rV,label:Kn("Space between items")}):s.push({value:"stretch",icon:oV,label:Kn("Stretch items")}),(0,ae.createElement)(RV,{__nextHasNoMarginBottom:!0,label:Kn("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls"},s.map((({value:e,icon:t,label:n})=>(0,ae.createElement)(qV,{key:e,value:e,icon:t,label:n}))))}function KH({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,ae.createElement)(rH,{__nextHasNoMarginBottom:!0,label:Kn("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function GH({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:r,justifyContent:o}=e;return(0,ae.createElement)(RV,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:Kn("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,ae.createElement)(qV,{icon:iV,value:"horizontal",label:Kn("Horizontal")}),(0,ae.createElement)(qV,{icon:aV,value:"vertical",label:Kn("Vertical")}))}const qH={name:"default",label:Kn("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:r,layoutDefinitions:o=oH}){const i=SH(t?.spacing?.blockGap);let a="";Dm(n,"spacing","blockGap")||(i?.top?a=SH(i?.top):"string"==typeof i&&(a=SH(i)));let s="";return r&&a&&(s+=aH(e,o,"default",a)),s},getOrientation:()=>"vertical",getAlignments(e,t){const n=sH(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}},YH="web"===Sl.OS,XH={px:{value:"px",label:YH?"px":Kn("Pixels (px)"),a11yLabel:Kn("Pixels (px)"),step:1},"%":{value:"%",label:YH?"%":Kn("Percentage (%)"),a11yLabel:Kn("Percent (%)"),step:.1},em:{value:"em",label:YH?"em":Kn("Relative to parent font size (em)"),a11yLabel:Gn("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:YH?"rem":Kn("Relative to root font size (rem)"),a11yLabel:Gn("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:YH?"vw":Kn("Viewport width (vw)"),a11yLabel:Kn("Viewport width (vw)"),step:.1},vh:{value:"vh",label:YH?"vh":Kn("Viewport height (vh)"),a11yLabel:Kn("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:YH?"vmin":Kn("Viewport smallest dimension (vmin)"),a11yLabel:Kn("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:YH?"vmax":Kn("Viewport largest dimension (vmax)"),a11yLabel:Kn("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:YH?"ch":Kn("Width of the zero (0) character (ch)"),a11yLabel:Kn("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:YH?"ex":Kn("x-height of the font (ex)"),a11yLabel:Kn("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:YH?"cm":Kn("Centimeters (cm)"),a11yLabel:Kn("Centimeters (cm)"),step:.001},mm:{value:"mm",label:YH?"mm":Kn("Millimeters (mm)"),a11yLabel:Kn("Millimeters (mm)"),step:.1},in:{value:"in",label:YH?"in":Kn("Inches (in)"),a11yLabel:Kn("Inches (in)"),step:.001},pc:{value:"pc",label:YH?"pc":Kn("Picas (pc)"),a11yLabel:Kn("Picas (pc)"),step:1},pt:{value:"pt",label:YH?"pt":Kn("Points (pt)"),a11yLabel:Kn("Points (pt)"),step:1},svw:{value:"svw",label:YH?"svw":Kn("Small viewport width (svw)"),a11yLabel:Kn("Small viewport width (svw)"),step:.1},svh:{value:"svh",label:YH?"svh":Kn("Small viewport height (svh)"),a11yLabel:Kn("Small viewport height (svh)"),step:.1},svi:{value:"svi",label:YH?"svi":Kn("Viewport smallest size in the inline direction (svi)"),a11yLabel:Kn("Small viewport width or height (svi)"),step:.1},svb:{value:"svb",label:YH?"svb":Kn("Viewport smallest size in the block direction (svb)"),a11yLabel:Kn("Small viewport width or height (svb)"),step:.1},svmin:{value:"svmin",label:YH?"svmin":Kn("Small viewport smallest dimension (svmin)"),a11yLabel:Kn("Small viewport smallest dimension (svmin)"),step:.1},lvw:{value:"lvw",label:YH?"lvw":Kn("Large viewport width (lvw)"),a11yLabel:Kn("Large viewport width (lvw)"),step:.1},lvh:{value:"lvh",label:YH?"lvh":Kn("Large viewport height (lvh)"),a11yLabel:Kn("Large viewport height (lvh)"),step:.1},lvi:{value:"lvi",label:YH?"lvi":Kn("Large viewport width or height (lvi)"),a11yLabel:Kn("Large viewport width or height (lvi)"),step:.1},lvb:{value:"lvb",label:YH?"lvb":Kn("Large viewport width or height (lvb)"),a11yLabel:Kn("Large viewport width or height (lvb)"),step:.1},lvmin:{value:"lvmin",label:YH?"lvmin":Kn("Large viewport smallest dimension (lvmin)"),a11yLabel:Kn("Large viewport smallest dimension (lvmin)"),step:.1},dvw:{value:"dvw",label:YH?"dvw":Kn("Dynamic viewport width (dvw)"),a11yLabel:Kn("Dynamic viewport width (dvw)"),step:.1},dvh:{value:"dvh",label:YH?"dvh":Kn("Dynamic viewport height (dvh)"),a11yLabel:Kn("Dynamic viewport height (dvh)"),step:.1},dvi:{value:"dvi",label:YH?"dvi":Kn("Dynamic viewport width or height (dvi)"),a11yLabel:Kn("Dynamic viewport width or height (dvi)"),step:.1},dvb:{value:"dvb",label:YH?"dvb":Kn("Dynamic viewport width or height (dvb)"),a11yLabel:Kn("Dynamic viewport width or height (dvb)"),step:.1},dvmin:{value:"dvmin",label:YH?"dvmin":Kn("Dynamic viewport smallest dimension (dvmin)"),a11yLabel:Kn("Dynamic viewport smallest dimension (dvmin)"),step:.1},dvmax:{value:"dvmax",label:YH?"dvmax":Kn("Dynamic viewport largest dimension (dvmax)"),a11yLabel:Kn("Dynamic viewport largest dimension (dvmax)"),step:.1},svmax:{value:"svmax",label:YH?"svmax":Kn("Small viewport largest dimension (svmax)"),a11yLabel:Kn("Small viewport largest dimension (svmax)"),step:.1},lvmax:{value:"lvmax",label:YH?"lvmax":Kn("Large viewport largest dimension (lvmax)"),a11yLabel:Kn("Large viewport largest dimension (lvmax)"),step:.1}},ZH=Object.values(XH),QH=[XH.px,XH["%"],XH.em,XH.rem,XH.vw,XH.vh],JH=XH.px;function e$(e,t,n){return n$(t?`${null!=e?e:""}${t}`:e,n)}function t$(e){return Array.isArray(e)&&!!e.length}function n$(e,t=ZH){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(t$(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=JH.value;return[r,a]}const r$=({units:e=ZH,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]=n$(n[e.value]);r[t].default=o}})),r};const o$=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),i$=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M7 11.5h10V13H7z"}));const a$={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 s$(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function l$(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?-s$(t-e,n-t,r)+t:e>n?+s$(e-n,n-t,r)+n:e}function c$(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 u$(e,t,n){return(t=c$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(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 p$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d$(Object(n),!0).forEach((function(t){u$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f$={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 h$(e){return e?e[0].toUpperCase()+e.slice(1):""}const m$=["enter","leave"];function g$(e,t="",n=!1){const r=f$[e],o=r&&r[t]||t;return"on"+h$(e)+h$(o)+(function(e=!1,t){return e&&!m$.includes(t)}(n,o)?"Capture":"")}const b$=["gotpointercapture","lostpointercapture"];function v$(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=b$.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function y$(e){return"touches"in e}function w$(e){return y$(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function k$(e){return y$(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function _$(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 E$(e){const t=k$(e);return y$(e)?t.identifier:t.pointerId}function x$(e){const t=k$(e);return[t.clientX,t.clientY]}function S$(e,...t){return"function"==typeof e?e(...t):e}function C$(){}function I$(...e){return 0===e.length?C$:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function T$(e,t){return Object.assign({},t,e||{})}class P${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?S$(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);a$.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 p=t.offset,f=t._active&&!t._blocked||t.active;f&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=S$(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[h,m]=t.offset,[[g,b],[v,y]]=t._bounds;t.overflow=[h<g?-1:h>b?1:0,m<v?-1:m>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 w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[l$(t,i,a,r),l$(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=a$.sub(t.offset,p),this.computeMovement(),f&&(!t.last||o>32)){t.delta=a$.sub(t.offset,p);const e=t.delta.map(Math.abs);a$.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(p$(p$(p$({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class A$ extends P${constructor(...e){super(...e),u$(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=a$.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=a$.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[w$(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 B$=e=>e,N$={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>p$(p$({},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 a$.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?a$.toVector(e):void 0,transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||B$},threshold:e=>a$.toVector(e,0)};const R$=p$(p$({},N$),{},{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=>R$.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]]}}),O$={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 M$="undefined"!=typeof window&&window.document&&window.document.createElement;function L$(){return M$&&"ontouchstart"in window}const D$={isBrowser:M$,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:L$(),touchscreen:L$()||M$&&window.navigator.maxTouchPoints>1,pointer:M$&&"onpointerdown"in window,pointerLock:M$&&"exitPointerLock"in window.document},z$={mouse:0,touch:0,pen:8},F$=p$(p$({},R$),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&D$.pointerLock,D$.touch&&n?"touch":this.pointerLock?"mouse":D$.pointer&&!o?"pointer":D$.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,D$.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=a$.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(a$.toVector(e)),distance:this.transform(a$.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?p$(p$({},z$),e):z$,keyboardDisplacement:(e=10)=>e});p$(p$({},N$),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!D$.touch&&D$.gesture)return"gesture";if(D$.touch&&r)return"touch";if(D$.touchscreen){if(D$.pointer)return"pointer";if(D$.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=T$(S$(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=T$(S$(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 a$.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e});p$(p$({},R$),{},{mouseOnly:(e=!0)=>e});p$(p$({},R$),{},{mouseOnly:(e=!0)=>e});const j$=new Map,V$=new Map;const H$={key:"drag",engine:class extends A${constructor(...e){super(...e),u$(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=R$.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=E$(e),n._pointerActive=!0,this.computeValues(x$(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==w$(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=E$(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=x$(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=a$.sub(o,t._values),this.computeValues(o)),a$.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=E$(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=O$[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,a$.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in O$&&(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:F$};function $$(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 U$={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=(D$.isBrowser?window:void 0))=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},W$=["target","eventOptions","window","enabled","transform"];function K$(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]=K$(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class G${constructor(e,t){u$(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=f$[e];return e+(n&&n[t]||t)}(t,n),s=p$(p$({},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 q${constructor(){u$(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 Y${constructor(e){u$(this,"gestures",new Set),u$(this,"_targetEventStore",new G$(this)),u$(this,"gestureEventStores",{}),u$(this,"gestureTimeoutStores",{}),u$(this,"handlers",{}),u$(this,"config",{}),u$(this,"pointerIds",new Set),u$(this,"touchIds",new Set),u$(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&X$(e,"drag");t.wheel&&X$(e,"wheel");t.scroll&&X$(e,"scroll");t.move&&X$(e,"move");t.pinch&&X$(e,"pinch");t.hover&&X$(e,"hover")}(this,e)}setEventIds(e){return y$(e)?(this.touchIds=new Set(_$(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=$$(r,W$);if(n.shared=K$({target:o,eventOptions:i,window:a,enabled:s,transform:l},U$),t){const e=V$.get(t);n[t]=K$(p$({shared:n.shared},c),e)}else for(const e in c){const t=V$.get(e);t&&(n[e]=K$(p$({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=Z$(n,o.eventOptions,!!r);if(o.enabled){new(j$.get(t))(this,e,t).bind(i)}}const o=Z$(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](p$(p$({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=I$(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=v$(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function X$(e,t){e.gestures.add(t),e.gestureEventStores[t]=new G$(e,t),e.gestureTimeoutStores[t]=new q$}const Z$=(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 p=s?r:g$(r,o,u);n&&d&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function Q$(e,t={},n,r){const o=ae.useMemo((()=>new Y$(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),ae.useEffect(o.effect.bind(o)),ae.useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}function J$(e,t){var n;return n=H$,j$.set(n.key,n.engine),V$.set(n.key,n.resolver),Q$({drag:e},t||{},"drag")}const eU=e=>e,tU={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},nU="CHANGE",rU="COMMIT",oU="CONTROL",iU="DRAG_END",aU="DRAG_START",sU="DRAG",lU="INVALIDATE",cU="PRESS_DOWN",uU="PRESS_ENTER",dU="PRESS_UP",pU="RESET";function fU(e=eU,t=tU,n){const[r,o]=(0,ae.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case oU:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case dU:case cU:n.isDirty=!1;break;case aU:n.isDragging=!0;break;case iU:n.isDragging=!1;break;case nU:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case rU:n.value=t.payload.value,n.isDirty=!1;break;case pU:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case lU:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=tU){const{value:t}=e;return{...tU,...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(nU),u=a(pU),d=a(rU),p=l(aU),f=l(sU),h=l(iU),m=s(dU),g=s(cU),b=s(uU),v=(0,ae.useRef)(r),y=(0,ae.useRef)({value:t.value,onChangeHandler:n});return(0,ae.useLayoutEffect)((()=>{v.current=r,y.current={value:t.value,onChangeHandler:n}})),(0,ae.useLayoutEffect)((()=>{var e;void 0===v.current._event||r.value===y.current.value||r.isDirty||y.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:v.current._event})}),[r.value,r.isDirty]),(0,ae.useLayoutEffect)((()=>{var e;t.value===v.current.value||v.current.isDirty||o({type:oU,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:c,commit:d,dispatch:o,drag:f,dragEnd:h,dragStart:p,invalidate:(e,t)=>o({type:lU,payload:{error:e,event:t}}),pressDown:g,pressEnter:b,pressUp:m,reset:u,state:r}}function hU(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||229===t.keyCode||e(t)}}const mU=()=>{};const gU=(0,ae.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isPressEnterToChange:i=!1,onBlur:a=mU,onChange:s=mU,onDrag:l=mU,onDragEnd:c=mU,onDragStart:u=mU,onKeyDown:d=mU,onValidate:p=mU,size:f="default",stateReducer:h=e=>e,value:m,type:g,...b},v){const{state:y,change:w,commit:k,drag:_,dragEnd:E,dragStart:x,invalidate:S,pressDown:C,pressEnter:I,pressUp:T,reset:P}=fU(h,{isDragEnabled:o,value:m,isPressEnterToChange:i},s),{value:A,isDragging:B,isDirty:N}=y,R=(0,ae.useRef)(!1),O=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,ae.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(B,t),M=e=>{const t=e.currentTarget.value;try{p(t),k(t,e)}catch(t){S(t,e)}},L=J$((e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return c(e),void E(e);l(e),_(e),B||(u(e),x(e))}}),{axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}}),D=o?L():{};let z;return"number"===g&&(z=e=>{b.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,ae.createElement)(yD,{...b,...D,className:"components-input-control__input",disabled:e,dragCursor:O,isDragging:B,id:r,onBlur:e=>{a(e),!N&&e.target.validity.valid||(R.current=!0,M(e))},onChange:e=>{const t=e.target.value;w(t,e)},onKeyDown:hU((e=>{const{key:t}=e;switch(d(e),t){case"ArrowUp":T(e);break;case"ArrowDown":C(e);break;case"Enter":I(e),i&&(e.preventDefault(),M(e));break;case"Escape":i&&N&&(e.preventDefault(),P(m,e))}})),onMouseDown:z,ref:v,inputSize:f,value:null!=A?A:"",type:g})})),bU=gU,vU=()=>{};const yU=(0,ae.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:p="top",onChange:f=vU,onValidate:h=vU,onKeyDown:m=vU,prefix:g,size:b="default",style:v,suffix:y,value:w,...k}=UD(e),_=function(e){const t=$m(yU);return e||`inspector-input-control-${t}`}(c),E=Au("components-input-control",i),x=function(e){const t=(0,ae.useRef)(e.value),[n,r]=(0,ae.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,ae.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:w,onBlur:k.onBlur,onChange:f}),S=s?{"aria-describedby":`${_}__help`}:{};return(0,ae.createElement)(mV,{className:E,help:s,id:_,__nextHasNoMarginBottom:!0},(0,ae.createElement)(XD,{__next40pxDefaultSize:n,__unstableInputWidth:o,disabled:a,gap:3,hideLabelFromVision:l,id:_,justify:"left",label:d,labelPosition:p,prefix:g,size:b,style:v,suffix:y},(0,ae.createElement)(bU,{...k,...S,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:_,isPressEnterToChange:u,onKeyDown:m,onValidate:h,paddingInlineStart:g?oL(2):void 0,paddingInlineEnd:y?oL(2):void 0,ref:t,size:b,stateReducer:r,...x})))})),wU=yU;var kU={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 _U=({hideHTMLArrows:e})=>e?kU:"",EU=dE(wU,{target:"ep09it41"})(_U,";"),xU=dE(bE,{target:"ep09it40"})("&&&&&{color:",YM.theme.accent,";}"),SU={smallSpinButtons:$M("width:",oL(5),";min-width:",oL(5),";height:",oL(5),";","")};function CU(e){const t=Number(e);return isNaN(t)?0:t}function IU(...e){return e.reduce(((e,t)=>e+CU(t)),0)}function TU(e,t,n){const r=CU(e);return Math.max(t,Math.min(r,n))}function PU(e=0,t=1/0,n=1/0,r=1){const o=CU(e),i=CU(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=TU(Math.round(o/i)*i,t,n);return a?CU(s.toFixed(a)):s}const AU=()=>{};const BU=(0,ae.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:p=!1,shiftStep:f=10,step:h=1,spinFactor:m=1,type:g="number",value:b,size:v="default",suffix:y,onChange:w=AU,...k}=UD(e);i&&Mt("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const _=(0,ae.useRef)(),E=JE([_,t]),x="any"===h,S=x?1:CL(h),C=CL(m)*S,I=PU(0,d,u,S),T=(e,t)=>x?""+Math.min(u,Math.max(d,CL(e))):""+PU(e,d,u,null!=t?t:S),P="number"===g?"off":void 0,A=Au("components-number-control",r),B=Z_()("small"===v&&SU.smallSpinButtons),N=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&l,o=r?CL(f)*C:C;let i=function(e){const t=""===e;return!SL(e)||t}(e)?I:e;return"up"===t?i=IU(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=CU(t);return 0===n?r:e-r}),0)}(i,o)),T(i,r?o:void 0)},R=e=>t=>w(String(N(b,e,t)),{event:{...t,target:_.current}});return(0,ae.createElement)(EU,{autoComplete:P,inputMode:"numeric",...k,className:A,dragDirection:o,hideHTMLArrows:"native"!==a,isDragEnabled:s,label:c,max:u,min:d,ref:E,required:p,step:h,type:g,value:b,__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!==dU&&r!==cU||(n.value=N(c,r===dU?"up":"down",a)),r===sU&&s){const[e,t]=i.delta,r=i.shiftKey&&l,a=r?CL(f)*C:C;let s,u;switch(o){case"n":u=t,s=-1;break;case"e":u=e,s=Yn()?-1:1;break;case"s":u=t,s=1;break;case"w":u=e,s=Yn()?1:-1}if(0!==u){u=Math.ceil(Math.abs(u))*Math.sign(u);const e=u*a*s;n.value=T(IU(c,e),r?a:void 0)}}if(r===uU||r===rU){const e=!1===p&&""===c;n.value=e?c:T(c)}return n})(e,t);return null!==(r=n?.(i,t))&&void 0!==r?r:i},size:v,suffix:"custom"===a?(0,ae.createElement)(ae.Fragment,null,y,(0,ae.createElement)(sL,{marginBottom:0,marginRight:2},(0,ae.createElement)(nH,{spacing:1},(0,ae.createElement)(xU,{className:B,icon:o$,size:"small",label:Kn("Increment"),onClick:R("up")}),(0,ae.createElement)(xU,{className:B,icon:i$,size:"small",label:Kn("Decrement"),onClick:R("down")})))):y,onChange:w})})),NU=BU,RU=dE(NU,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",sD,"{transition:box-shadow 0.1s linear;}}"),OU=({selectSize:e})=>({small:$M("box-sizing:border-box;padding:2px 1px;width:20px;color:",YM.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),default:$M("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",oL(2),";padding:",oL(1),";color:",YM.theme.accent,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")}[e]),MU=dE("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",OU,";color:",YM.gray[900],";}"),LU=({selectSize:e="default"})=>({small:$M("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",nL({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",YM.gray[100],";}&:focus{border:1px solid ",YM.ui.borderFocus,";box-shadow:inset 0 0 0 ",FL.borderWidth+" "+YM.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),default:$M("display:flex;justify-content:center;align-items:center;&:hover{color:",YM.ui.borderFocus,";box-shadow:inset 0 0 0 ",FL.borderWidth+" "+YM.ui.borderFocus,";outline:",FL.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",FL.borderWidthFocus+" "+YM.ui.borderFocus,";outline:",FL.borderWidthFocus," solid transparent;}","")}[e]),DU=dE("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",OU,";",LU,";&:not( :disabled ){cursor:pointer;}}");const zU=(0,ae.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=QH,...a},s){if(!t$(i)||1===i?.length)return(0,ae.createElement)(MU,{className:"components-unit-control__unit-label",selectSize:r},o);const l=Au("components-unit-control__select",e);return(0,ae.createElement)(DU,{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,ae.createElement)("option",{value:e.value,key:e.value},e.label))))})),FU={initial:void 0,fallback:""};const jU=function(e,t=FU){const{initial:n,fallback:r}={...FU,...t},[o,i]=(0,ae.useState)(e),a=SL(e);return(0,ae.useEffect)((()=>{a&&o&&i(void 0)}),[a,o]),[function(e=[],t){var n;return null!==(n=e.find(SL))&&void 0!==n?n:t}([e,o,n],r),(0,ae.useCallback)((e=>{a||i(e)}),[a])]};const VU=(0,ae.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:p,onUnitChange:f,size:h="default",unit:m,units:g=QH,value:b,onFocus:v,...y}=UD(e);"unit"in e&&Mt("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const w=null!=b?b:void 0,[k,_]=(0,ae.useMemo)((()=>{const e=function(e,t,n=ZH){const r=Array.isArray(n)?[...n]:[],[,o]=e$(e,t,ZH);return o&&!r.some((e=>e.value===o))&&XH[o]&&r.unshift(XH[o]),r}(w,m,g),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=Dj(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),Dj(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[w,m,g]),[E,x]=e$(w,m,k),[S,C]=jU(1===k.length?k[0].value:m,{initial:x,fallback:""});(0,ae.useEffect)((()=>{void 0!==x&&C(x)}),[x,C]);const I=Au("components-unit-control","components-unit-control-wrapper",i);let T;!s&&u&&k.length&&(T=e=>{y.onKeyDown?.(e),!e.metaKey&&_.test(e.key)&&P.current?.focus()});const P=(0,ae.useRef)(null),A=s?null:(0,ae.createElement)(zU,{ref:P,"aria-label":Kn("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}`),p?.(r,t),f?.(e,t),C(e)},size:["small","compact"].includes(h)||"default"===h&&!y.__next40pxDefaultSize?"small":"default",unit:S,units:k,onFocus:v,onBlur:e.onBlur});let B=y.step;if(!B&&k){var N;const e=k.find((e=>e.value===S));B=null!==(N=e?.step)&&void 0!==N?N:1}return(0,ae.createElement)(RU,{...y,autoComplete:r,className:I,disabled:a,spinControls:"none",isPressEnterToChange:l,label:d,onKeyDown:T,onChange:(e,t)=>{if(""===e||null==e)return void p?.("",t);const n=function(e,t,n,r){const[o,i]=n$(e,t),a=null!=o?o:n;let s=i||r;return!s&&t$(t)&&(s=t[0].value),[a,s]}(e,k,E,S).join("");p?.(n,t)},ref:t,size:h,suffix:A,type:l?"text":"number",value:null!=E?E:"",step:B,onFocus:v,__unstableStateReducer:n})})),HU=VU,$U=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})),UU=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),WU="var:",KU="|",GU="--",qU=(e,t)=>{let n=e;return t.forEach((e=>{n=n?.[e]})),n};function YU(e,t,n,r){const o=qU(e,n);return o?[{selector:t?.selector,key:r,value:ZU(o)}]:[]}function XU(e,t,n,r,o=["top","right","bottom","left"]){const i=qU(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=ZU(qU(i,[n]));return o&&e.push({selector:t?.selector,key:r?.individual.replace("%s",QU(n)),value:o}),e}),[]);a.push(...e)}return a}function ZU(e){if("string"==typeof e&&e.startsWith(WU)){return`var(--wp--${e.slice(WU.length).split(KU).map((e=>za(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(GU)})`}return e}function QU(e){const[t,...n]=e;return t.toUpperCase()+n.join("")}function JU(e){try{return decodeURI(e)}catch(t){return e}}function eW(e){return(t,n)=>YU(t,n,e,function(e){const[t,...n]=e;return t.toLowerCase()+n.map(QU).join("")}(e))}function tW(e){return(t,n)=>["color","style","width"].flatMap((r=>eW(["border",e,r])(t,n)))}const nW={name:"radius",generate:(e,t)=>XU(e,t,["border","radius"],{default:"borderRadius",individual:"border%sRadius"},["topLeft","topRight","bottomLeft","bottomRight"])},rW={name:"background",generate:(e,t)=>YU(e,t,["color","background"],"backgroundColor")},oW={name:"gradient",generate:(e,t)=>YU(e,t,["color","gradient"],"background")},iW={name:"text",generate:(e,t)=>YU(e,t,["color","text"],"color")},aW={name:"minHeight",generate:(e,t)=>YU(e,t,["dimensions","minHeight"],"minHeight")},sW={name:"aspectRatio",generate:(e,t)=>YU(e,t,["dimensions","aspectRatio"],"aspectRatio")},lW={name:"backgroundImage",generate:(e,t)=>{const n=e?.background?.backgroundImage;return"object"==typeof n&&n?.url?[{selector:t.selector,key:"backgroundImage",value:`url( '${encodeURI(JU(n.url))}' )`}]:"string"==typeof n?YU(e,t,["background","backgroundImage"],"backgroundImage"):[]}},cW={name:"backgroundPosition",generate:(e,t)=>YU(e,t,["background","backgroundPosition"],"backgroundPosition")},uW={name:"backgroundRepeat",generate:(e,t)=>YU(e,t,["background","backgroundRepeat"],"backgroundRepeat")},dW={name:"backgroundSize",generate:(e,t)=>YU(e,t,["background","backgroundSize"],"backgroundSize")},pW={name:"shadow",generate:(e,t)=>YU(e,t,["shadow"],"boxShadow")},fW={name:"color",generate:(e,t,n=["outline","color"],r="outlineColor")=>YU(e,t,n,r)},hW={name:"offset",generate:(e,t,n=["outline","offset"],r="outlineOffset")=>YU(e,t,n,r)},mW={name:"style",generate:(e,t,n=["outline","style"],r="outlineStyle")=>YU(e,t,n,r)},gW={name:"width",generate:(e,t,n=["outline","width"],r="outlineWidth")=>YU(e,t,n,r)},bW={name:"padding",generate:(e,t)=>XU(e,t,["spacing","padding"],{default:"padding",individual:"padding%s"})},vW={name:"margin",generate:(e,t)=>XU(e,t,["spacing","margin"],{default:"margin",individual:"margin%s"})},yW={name:"fontSize",generate:(e,t)=>YU(e,t,["typography","fontSize"],"fontSize")},wW={name:"fontStyle",generate:(e,t)=>YU(e,t,["typography","fontStyle"],"fontStyle")},kW={name:"fontWeight",generate:(e,t)=>YU(e,t,["typography","fontWeight"],"fontWeight")},_W={name:"fontFamily",generate:(e,t)=>YU(e,t,["typography","fontFamily"],"fontFamily")},EW={name:"letterSpacing",generate:(e,t)=>YU(e,t,["typography","letterSpacing"],"letterSpacing")},xW={name:"lineHeight",generate:(e,t)=>YU(e,t,["typography","lineHeight"],"lineHeight")},SW={name:"textColumns",generate:(e,t)=>YU(e,t,["typography","textColumns"],"columnCount")},CW={name:"textDecoration",generate:(e,t)=>YU(e,t,["typography","textDecoration"],"textDecoration")},IW={name:"textTransform",generate:(e,t)=>YU(e,t,["typography","textTransform"],"textTransform")},TW={name:"writingMode",generate:(e,t)=>YU(e,t,["typography","writingMode"],"writingMode")},PW=[...[{name:"color",generate:eW(["border","color"])},{name:"style",generate:eW(["border","style"])},{name:"width",generate:eW(["border","width"])},nW,{name:"borderTop",generate:tW("top")},{name:"borderRight",generate:tW("right")},{name:"borderBottom",generate:tW("bottom")},{name:"borderLeft",generate:tW("left")}],...[iW,oW,rW],...[aW,sW],...[fW,mW,hW,gW],...[vW,bW],...[_W,yW,wW,kW,EW,xW,SW,CW,IW,TW],...[pW],...[lW,cW,uW,dW]];function AW(e,t={}){const n=BW(e,t);if(!t?.selector){const e=[];return n.forEach((t=>{e.push(`${za(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}),{}),o=Object.keys(r).reduce(((e,t)=>(e.push(`${t} { ${r[t].map((e=>`${za(e.key)}: ${e.value};`)).join(" ")} }`),e)),[]);return o.join("\n")}function BW(e,t={}){const n=[];return PW.forEach((r=>{"function"==typeof r.generate&&n.push(...r.generate(e,t))})),n}const NW={name:"constrained",label:Kn("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:r,contentSize:o,justifyContent:i="center"}=e,{allowJustification:a=!0,allowCustomContentAndWideSize:s=!0}=n,l=[{value:"left",icon:eV,label:Kn("Justify items left")},{value:"center",icon:tV,label:Kn("Justify items center")},{value:"right",icon:nV,label:Kn("Justify items right")}],[c]=Nm("spacing.units"),u=r$({availableUnits:c||["%","px","em","rem","vw"]});return(0,ae.createElement)(ae.Fragment,null,s&&(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,ae.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,ae.createElement)(HU,{className:"block-editor-hooks__layout-controls-unit-input",label:Kn("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:u}),(0,ae.createElement)(VM,{icon:$U})),(0,ae.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,ae.createElement)(HU,{className:"block-editor-hooks__layout-controls-unit-input",label:Kn("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:u}),(0,ae.createElement)(VM,{icon:UU}))),(0,ae.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Kn("Customize the width for all elements that are assigned to the center or wide columns."))),a&&(0,ae.createElement)(RV,{__nextHasNoMarginBottom:!0,label:Kn("Justification"),value:i,onChange:n=>{t({...e,justifyContent:n})}},l.map((({value:e,icon:t,label:n})=>(0,ae.createElement)(qV,{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=oH}){const{contentSize:a,wideSize:s,justifyContent:l}=t,c=SH(n?.spacing?.blockGap);let u="";Dm(r,"spacing","blockGap")||(c?.top?u=SH(c?.top):"string"==typeof c&&(u=SH(c)));const d="left"===l?"0 !important":"auto !important",p="right"===l?"0 !important":"auto !important";let f=a||s?`\n\t\t\t\t\t${iH(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: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${iH(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${iH(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?f+=`${iH(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===l&&(f+=`${iH(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){BW(n).forEach((t=>{"paddingRight"===t.key?f+=`\n\t\t\t\t\t${iH(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&&(f+=`\n\t\t\t\t\t${iH(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&&(f+=aH(e,i,"constrained",u)),f},getOrientation:()=>"vertical",getAlignments(e){const t=sH(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 RW(e,t,n){return"number"!=typeof e?null:parseFloat(`${TU(e,t,n)}`)}const OW=30,MW=()=>$M({height:OW,minHeight:OW},"",""),LW=12,DW=({__next40pxDefaultSize:e})=>!e&&$M({minHeight:OW},"",""),zW=dE("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;",DW,";"),FW=({color:e=YM.ui.borderFocus})=>$M({color:e},"",""),jW=({marks:e,__nextHasNoMarginBottom:t})=>t?"":$M({marginBottom:e?16:void 0},"",""),VW=dE("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",FW,";",MW,";",jW,";"),HW=dE("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",nL({marginRight:6}),";"),$W=dE("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",nL({marginLeft:6}),";"),UW=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=YM.ui.backgroundDisabled),$M({background:n},"","")},WW=dE("span",{target:"e1epgpqk10"})("background-color:",YM.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;",UW,";"),KW=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=YM.gray[400]),$M({background:n},"","")},GW=dE("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;",KW,";"),qW=dE("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),YW=({disabled:e,isFilled:t})=>{let n=t?"currentColor":YM.gray[300];return e&&(n=YM.gray[400]),$M({backgroundColor:n},"","")},XW=dE("span",{target:"e1epgpqk7"})("height:",LW,"px;left:0;position:absolute;top:-4px;width:1px;",YW,";"),ZW=({isFilled:e})=>$M({color:e?YM.gray[700]:YM.gray[300]},"",""),QW=dE("span",{target:"e1epgpqk6"})("color:",YM.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",ZW,";"),JW=({disabled:e})=>$M("background-color:",e?YM.gray[400]:YM.theme.accent,";",""),eK=dE("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",LW,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",LW,"px;border-radius:50%;",JW,";",nL({marginLeft:-10}),";",nL({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),tK=({isFocused:e})=>e?$M("&::before{content:' ';position:absolute;background-color:",YM.theme.accent,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):"",nK=dE("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",JW,";",tK,";"),rK=dE("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% + ",LW,"px );"),oK=({show:e})=>$M({opacity:e?1:0},"","");var iK={name:"1cypxip",styles:"top:-80%"},aK={name:"1lr98c4",styles:"bottom:-80%"};const sK=({position:e})=>"bottom"===e?aK:iK,lK=dE("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;user-select:none;line-height:1.4;@media not ( prefers-reduced-motion ){transition:opacity 120ms ease;}",oK,";",sK,";",nL({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),cK=dE(NU,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",MW,";}",nL({marginLeft:`${oL(4)} !important`}),";"),uK=dE("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",MW,";}",nL({marginLeft:8}),";");const dK=(0,ae.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,ae.createElement)(rK,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function pK(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,a=Au("components-range-control__mark",n&&"is-filled",t),s=Au("components-range-control__mark-label",n&&"is-filled");return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(XW,{...i,"aria-hidden":"true",className:a,isFilled:n,style:o}),r&&(0,ae.createElement)(QW,{"aria-hidden":"true",className:s,isFilled:n,style:o},r))}function fK(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:a=0,...s}=e;return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(WW,{disabled:t,...s}),n&&(0,ae.createElement)(hK,{disabled:t,marks:n,min:r,max:o,step:i,value:a}))}function hK(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={[Yn()?"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,ae.createElement)(qW,{"aria-hidden":"true",className:"components-range-control__marks"},s.map((e=>(0,ae.createElement)(pK,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function mK(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,ae.useState)(),o=(0,ae.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,ae.useEffect)((()=>{o()}),[o]),(0,ae.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),d=Au("components-simple-tooltip",t),p={...i,zIndex:l};return(0,ae.createElement)(lK,{...c,"aria-hidden":o,className:d,position:u,show:o,role:"tooltip",style:p},s(a))}const gK=()=>{};const bK=(0,ae.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:a,className:s,color:l=YM.theme.accent,currentInput:c,disabled:u=!1,help:d,hideLabelFromVision:p=!1,initialPosition:f,isShiftStepEnabled:h=!0,label:m,marks:g=!1,max:b=100,min:v=0,onBlur:y=gK,onChange:w=gK,onFocus:k=gK,onMouseLeave:_=gK,onMouseMove:E=gK,railColor:x,renderTooltipContent:S=e=>e,resetFallbackValue:C,__next40pxDefaultSize:I=!1,shiftStep:T=10,showTooltip:P,step:A=1,trackColor:B,value:N,withInputField:R=!0,...O}=t,[M,L]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,a]=jU(RW(r,t,n),{initial:RW(null!=o?o:null,t,n),fallback:null});return[i,(0,ae.useCallback)((e=>{a(null===e?null:RW(e,t,n))}),[t,n,a])]}({min:v,max:b,value:null!=N?N:null,initial:f}),D=(0,ae.useRef)(!1);let z=P,F=R;"any"===A&&(z=!1,F=!1);const[j,V]=(0,ae.useState)(z),[H,$]=(0,ae.useState)(!1),U=(0,ae.useRef)(),W=U.current?.matches(":focus"),K=!u&&H,G=null===M,q=G?"":void 0!==M?M:c,Y=G?(b-v)/2+v:M,X=`${TU(G?50:(M-v)/(b-v)*100,0,100)}%`,Z=Au("components-range-control",s),Q=Au("components-range-control__wrapper",!!g&&"is-marked"),J=$m(e,"inspector-range-control"),ee=d?`${J}__help`:void 0,te=!1!==z&&Number.isFinite(M),ne=()=>{let e=parseFloat(`${C}`),t=e;isNaN(e)&&(e=null,t=void 0),L(e),w(t)},re={[Yn()?"right":"left"]:X};return(0,ae.createElement)(mV,{__nextHasNoMarginBottom:r,className:Z,label:m,hideLabelFromVision:p,id:`${J}`,help:d},(0,ae.createElement)(zW,{className:"components-range-control__root",__next40pxDefaultSize:I},a&&(0,ae.createElement)(HW,null,(0,ae.createElement)(sk,{icon:a})),(0,ae.createElement)(VW,{__nextHasNoMarginBottom:r,className:Q,color:l,marks:!!g},(0,ae.createElement)(dK,{...O,className:"components-range-control__slider",describedBy:ee,disabled:u,id:`${J}`,label:m,max:b,min:v,onBlur:e=>{y(e),$(!1),V(!1)},onChange:e=>{const t=parseFloat(e.target.value);L(t),w(t)},onFocus:e=>{k(e),$(!0),V(!0)},onMouseMove:E,onMouseLeave:_,ref:JE([U,n]),step:A,value:null!=q?q:void 0}),(0,ae.createElement)(fK,{"aria-hidden":!0,disabled:u,marks:g,max:b,min:v,railColor:x,step:A,value:Y}),(0,ae.createElement)(GW,{"aria-hidden":!0,className:"components-range-control__track",disabled:u,style:{width:X},trackColor:B}),(0,ae.createElement)(eK,{className:"components-range-control__thumb-wrapper",style:re,disabled:u},(0,ae.createElement)(nK,{"aria-hidden":!0,isFocused:K,disabled:u})),te&&(0,ae.createElement)(mK,{className:"components-range-control__tooltip",inputRef:U,tooltipPosition:"bottom",renderTooltipContent:S,show:W||j,style:re,value:M})),o&&(0,ae.createElement)($W,null,(0,ae.createElement)(sk,{icon:o})),F&&(0,ae.createElement)(cK,{"aria-label":m,className:"components-range-control__number",disabled:u,inputMode:"decimal",isShiftStepEnabled:h,max:b,min:v,onBlur:()=>{D.current&&(ne(),D.current=!1)},onChange:e=>{let t=parseFloat(e);L(t),isNaN(t)?i&&(D.current=!0):((t<v||t>b)&&(t=RW(t,v,b)),w(t),D.current=!1)},shiftStep:T,size:I?"__unstable-large":"default",__unstableInputWidth:oL(I?20:16),step:A,value:q}),i&&(0,ae.createElement)(uK,null,(0,ae.createElement)(bE,{className:"components-range-control__reset",disabled:u||void 0===M,variant:"secondary",size:"small",onClick:ne},Kn("Reset")))))})),vK=bK;const yK=(0,ae.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,ae.createElement)(GV,{...r,"aria-label":o,ref:t},n)})),wK=(0,ae.createContext)({refsMap:nR()});function kK({children:e}){const t=(0,ae.useMemo)((()=>({refsMap:nR()})),[]);return(0,ae.createElement)(wK.Provider,{value:t},e)}function _K(e){const{refsMap:t}=(0,ae.useContext)(wK);return VN((n=>(t.set(e,n),()=>t.delete(e))),[e])}function EK(e){var t;const{refsMap:n}=(0,ae.useContext)(wK);return null!==(t=tR(n,e))&&void 0!==t?t:null}const xK=function(e){return VN((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])},SK=Number.MAX_SAFE_INTEGER;const CK=(0,ae.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:r,__unstableContentRef:o,shift:i=!0,...a},s){const l=EK(e),c=EK(null!=t?t:e),u=JE([s,xK(o)]),[d,p]=(0,ae.useReducer)((e=>(e+1)%SK),0);(0,ae.useLayoutEffect)((()=>{if(!l)return;const e=new window.MutationObserver(p);return e.observe(l,{attributes:!0}),()=>{e.disconnect()}}),[l]);const f=(0,ae.useMemo)((()=>{if(!(d<0||!l||t&&!c))return{getBoundingClientRect(){var e,t,n,r;const o=l.getBoundingClientRect(),i=c?.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),u=Math.max(o.right,null!==(n=i.right)&&void 0!==n?n:-1/0)-a,d=Math.max(o.bottom,null!==(r=i.bottom)&&void 0!==r?r:-1/0)-s;return new window.DOMRect(a,s,u,d)},contextElement:l}}),[t,c,l,d]);return!l||t&&!c?null:(0,ae.createElement)(NR,{ref:u,animate:!1,focusOnMount:!1,anchor:f,__unstableSlotName:r,inline:!r,placement:"top-start",resize:!1,flip:!1,shift:i,...a,className:Au("block-editor-block-popover",a.className),variant:"unstyled"},n)}));(0,ae.forwardRef)((({clientId:e,bottomClientId:t,children:n,...r},o)=>(0,ae.createElement)(CK,{...r,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:o},n)));function IK({selectedElement:e,additionalStyles:t={},children:n}){const[r,o]=(0,ae.useState)(e.offsetWidth),[i,a]=(0,ae.useState)(e.offsetHeight);(0,ae.useEffect)((()=>{const t=new window.ResizeObserver((()=>{o(e.offsetWidth),a(e.offsetHeight)}));return t.observe(e,{box:"border-box"}),()=>t.disconnect()}),[e]);const s=(0,ae.useMemo)((()=>({position:"absolute",width:r,height:i,...t})),[r,i,t]);return(0,ae.createElement)("div",{style:s},n)}const TK=(0,ae.forwardRef)((function({clientId:e,bottomClientId:t,children:n,shift:r=!1,additionalStyles:o,...i},a){var s;null!==(s=t)&&void 0!==s||(t=e);const l=EK(e);return(0,ae.createElement)(CK,{ref:a,clientId:e,bottomClientId:t,shift:r,...i},l&&e===t?(0,ae.createElement)(IK,{selectedElement:l,additionalStyles:o},n):n)}));function PK(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function AK({clientId:e,contentRef:t}){const n=du((e=>e(Am).getSettings().isDistractionFree),[]),r=EK(e);return n||!r?null:(0,ae.createElement)(TK,{className:"block-editor-grid-visualizer",clientId:e,__unstablePopoverSlot:"block-toolbar"},(0,ae.createElement)(BK,{ref:t,blockElement:r}))}const BK=(0,ae.forwardRef)((({blockElement:e},t)=>{const[n,r]=(0,ae.useState)((()=>NK(e)));return(0,ae.useEffect)((()=>{const t=[];for(const n of[e,...e.children]){const o=new window.ResizeObserver((()=>{r(NK(e))}));o.observe(n),t.push(o)}return()=>{for(const e of t)e.disconnect()}}),[e]),(0,ae.createElement)("div",{ref:t,className:"block-editor-grid-visualizer__grid",style:n.style},Array.from({length:n.numItems},((e,t)=>(0,ae.createElement)("div",{key:t,className:"block-editor-grid-visualizer__item"}))))}));function NK(e){const t=PK(e,"grid-template-columns"),n=PK(e,"grid-template-rows");return{numItems:t.split(" ").length*n.split(" ").length,style:{gridTemplateColumns:t,gridTemplateRows:n,gap:PK(e,"gap"),padding:PK(e,"padding")}}}const RK={px:600,"%":100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},OK=[{value:"px",label:"px",default:0},{value:"rem",label:"rem",default:0},{value:"em",label:"em",default:0}],MK={name:"grid",label:Kn("Grid"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowSizingOnChildren:r=!1}=n;return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(zK,{layout:e,onChange:t}),e?.columnCount?(0,ae.createElement)(DK,{layout:e,onChange:t,allowSizingOnChildren:r}):(0,ae.createElement)(LK,{layout:e,onChange:t}))},toolBarControls:function({clientId:e}){return(0,ae.createElement)(AK,{clientId:e})},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=oH}){const{minimumColumnWidth:a="12rem",columnCount:s=null,rowCount:l=null}=t,c=n?.spacing?.blockGap&&!Dm(r,"spacing","blockGap")?SH(n?.spacing?.blockGap,"0.5em"):void 0;let u="";const d=[];return s?(d.push(`grid-template-columns: repeat(${s}, minmax(0, 1fr))`),l&&d.push(`grid-template-rows: repeat(${l}, minmax(0, 1fr))`)):a&&d.push(`grid-template-columns: repeat(auto-fill, minmax(min(${a}, 100%), 1fr))`,"container-type: inline-size"),d.length&&(u=`${iH(e)} { ${d.join("; ")}; }`),o&&c&&(u+=aH(e,i,"grid",c)),u},getOrientation:()=>"horizontal",getAlignments:()=>[]};function LK({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[r,o]=n$(n);return(0,ae.createElement)("fieldset",null,(0,ae.createElement)(mV.VisualLabel,{as:"legend"},Kn("Minimum column width")),(0,ae.createElement)(kL,{gap:4},(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(HU,{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),t({...e,minimumColumnWidth:i})},value:n,units:OK,min:0,label:Kn("Minimum column width"),hideLabelFromVision:!0})),(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(vK,{onChange:n=>{t({...e,minimumColumnWidth:[n,o].join("")})},value:r,min:0,max:RK[o]||600,withInputField:!1,label:Kn("Minimum column width"),hideLabelFromVision:!0}))))}function DK({layout:e,onChange:t,allowSizingOnChildren:n}){const{columnCount:r=3,rowCount:o}=e;return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("fieldset",null,(0,ae.createElement)(mV.VisualLabel,{as:"legend"},Kn("Columns")),(0,ae.createElement)(kL,{gap:4},(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(NU,{size:"__unstable-large",onChange:n=>{const r=""!==n?n:"1";t({...e,columnCount:r})},value:r,min:1,label:Kn("Columns"),hideLabelFromVision:!0})),(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(vK,{value:parseInt(r,10),onChange:n=>t({...e,columnCount:n}),min:1,max:16,withInputField:!1,label:Kn("Columns"),hideLabelFromVision:!0})))),n&&window.__experimentalEnableGridInteractivity&&(0,ae.createElement)("fieldset",null,(0,ae.createElement)(mV.VisualLabel,{as:"legend"},Kn("Rows")),(0,ae.createElement)(kL,{gap:4},(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(NU,{size:"__unstable-large",onChange:n=>{t({...e,rowCount:n})},value:o,min:1,label:Kn("Rows"),hideLabelFromVision:!0})),(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(vK,{value:parseInt(o,10),onChange:n=>t({...e,rowCount:n}),min:1,max:16,withInputField:!1,label:Kn("Rows"),hideLabelFromVision:!0})))))}function zK({layout:e,onChange:t}){const{columnCount:n,minimumColumnWidth:r}=e,[o,i]=(0,ae.useState)(n||3),[a,s]=(0,ae.useState)(r||"12rem"),l=n?"manual":"auto";return(0,ae.createElement)(RV,{__nextHasNoMarginBottom:!0,label:Kn("Type"),value:l,onChange:l=>{"manual"===l?s(r||"12rem"):i(n||3),t({...e,columnCount:"manual"===l?o:null,minimumColumnWidth:"auto"===l?a:null})},isBlock:!0},(0,ae.createElement)(yK,{key:"auto",value:"auto",label:Kn("Auto")}),(0,ae.createElement)(yK,{key:"manual",value:"manual",label:Kn("Manual")}))}const FK=[qH,HH,NW,MK];function jK(e="default"){return FK.find((t=>t.name===e))}const VK=[],HK=["none","left","center","right","wide","full"],$K=["wide","full"];function UK(e=HK){e.includes("none")||(e=["none",...e]);const t=1===e.length&&"none"===e[0],[n,r,o]=du((e=>{var n;if(t)return[!1,!1,!1];const r=e(Am).getSettings();return[null!==(n=r.alignWide)&&void 0!==n&&n,r.supportsLayout,r.__unstableIsBlockBasedTheme]}),[t]),i=Jj();if(t)return VK;const a=jK(i?.type);if(r){const t=a.getAlignments(i,o).filter((t=>e.includes(t.name)));return 1===t.length&&"none"===t[0].name?VK:t}if("default"!==a.name&&"constrained"!==a.name)return VK;const s=e.filter((e=>i.alignments?i.alignments.includes(e):!(!n&&$K.includes(e))&&HK.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?VK:s}const WK=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})),KK=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})),GK=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})),qK=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"})),YK={none:{icon:WK,title:Gn("None","Alignment option")},left:{icon:KK,title:Kn("Align left")},center:{icon:$U,title:Kn("Align center")},right:{icon:GK,title:Kn("Align right")},wide:{icon:UU,title:Kn("Wide width")},full:{icon:qK,title:Kn("Full width")}};const XK=function({value:e,onChange:t,controls:n,isToolbar:r,isCollapsed:o=!0}){const i=UK(n);if(!!!i.length)return null;function a(n){t([e,"none"].includes(n)?void 0:n)}const s=YK[e],l=YK.none,c=r?GR:Kj,u={icon:s?s.icon:l.icon,label:Kn("Align")},d=r?{isCollapsed:o,controls:i.map((({name:t})=>({...YK[t],isActive:e===t||!e&&"none"===t,role:o?"menuitemradio":void 0,onClick:()=>a(t)})))}:{toggleProps:{describedBy:Kn("Change alignment")},children:({onClose:t})=>(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Gj,{className:"block-editor-block-alignment-control__menu-group"},i.map((({name:n,info:r})=>{const{icon:o,title:i}=YK[n],s=n===e||!e&&"none"===n;return(0,ae.createElement)(Yj,{key:n,icon:o,iconPosition:"left",className:Au("components-dropdown-menu__menu-item",{"is-active":s}),isSelected:s,onClick:()=>{a(n),t()},role:"menuitemradio",info:r},i)}))))};return(0,ae.createElement)(c,{...u,...d})},ZK=e=>(0,ae.createElement)(XK,{...e,isToolbar:!1});function QK(e){const t=tu(),{clientId:n=""}=t,{setBlockEditingMode:r,unsetBlockEditingMode:o}=Uc(Am),i=du((e=>n?null:e(Am).getBlockEditingMode()),[n]);return(0,ae.useEffect)((()=>(e&&r(n,e),()=>{e&&o(n)})),[n,e,r,o]),n?t[Yc]:i}const JK=["left","center","right","wide","full"],eG=["wide","full"];function tG(e,t=!0,n=!0){let r;return r=Array.isArray(e)?JK.filter((t=>e.includes(t))):!0===e?[...JK]:[],!n||!0===e&&!t?r.filter((e=>!eG.includes(e))):r}const nG={shareWithChildBlocks:!0,edit:function({name:e,align:t,setAttributes:n}){const r=UK(tG(Lo(e,"align"),Do(e,"alignWide",!0))).map((({name:e})=>e)),o=QK();return r.length&&"default"===o?(0,ae.createElement)(Wj,{group:"block",__experimentalShareWithChildBlocks:!0},(0,ae.createElement)(ZK,{value:t,onChange:t=>{if(!t){const n=Oo(e),r=n?.attributes?.align?.default;r&&(t="")}n({align:t})},controls:r})):null},useBlockProps:function({name:e,align:t}){const n=tG(Lo(e,"align"),Do(e,"alignWide",!0));if(UK(n).some((e=>e.name===t)))return{"data-align":t};return{}},addSaveProps:function(e,t,n){const{align:r}=n,o=Lo(t,"align"),i=Do(t,"alignWide",!0),a=tG(o,i).includes(r);a&&(e.className=Au(`align${r}`,e.className));return e},attributeKeys:["align"],hasSupport:e=>Do(e,"align",!1)};bt("blocks.registerBlockType","core/editor/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||Do(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...JK,""]}}),e}));const rG=()=>{},oG=(0,ae.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:rG,deregisterPanelItem:rG,flagItemCustomization:rG,registerResetAllFilter:rG,deregisterResetAllFilter:rG,areAllOptionalControlsHidden:!0}),iG=()=>(0,ae.useContext)(oG),aG=CR("InspectorControls"),sG=CR("InspectorAdvancedControls"),lG=CR("InspectorControlsBackground"),cG=CR("InspectorControlsBorder"),uG=CR("InspectorControlsColor"),dG=CR("InspectorControlsFilter"),pG=CR("InspectorControlsDimensions"),fG=CR("InspectorControlsPosition"),hG=CR("InspectorControlsTypography"),mG=CR("InspectorControlsListView"),gG=CR("InspectorControlsStyles"),bG={default:aG,advanced:sG,background:lG,border:cG,color:uG,dimensions:pG,effects:CR("InspectorControlsEffects"),filter:dG,list:mG,position:fG,settings:aG,styles:gG,typography:hG};function vG({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:r}){n&&(Mt("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const o=tu(),i=bG[t]?.Fill;return i?o[Gc]?(0,ae.createElement)(gR,{document},(0,ae.createElement)(i,null,(t=>(0,ae.createElement)(wG,{fillProps:t,children:e,resetAllFilter:r})))):null:("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck(`Unknown InspectorControls group "${t}" provided.`),null)}function yG({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:r}=(0,ae.useContext)(oG);return(0,ae.useEffect)((()=>{if(e&&n&&r)return n(e),()=>{r(e)}}),[e,n,r]),t}function wG({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:r=[]}=n,o=(0,ae.createElement)(yG,{resetAllFilter:t},e);return r.reduce(((e,[t,n])=>(0,ae.createElement)(t,{...n},e)),o)}const kG=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const _G=J_((function(e,t){const n=function(e){const{as:t,level:n=2,color:r=YM.gray[900],isBlock:o=!0,weight:i=FL.fontWeightHeading,...a}=Q_(e,"Heading"),s=t||`h${n}`,l={};return"string"==typeof s&&"h"!==s[0]&&(l.role="heading",l["aria-level"]="string"==typeof n?parseInt(n):n),{...tD({color:r,isBlock:o,weight:i,size:JL(n),...a}),...l,as:s}}(e);return(0,ae.createElement)(fE,{...n,ref:t})}),"Heading"),EG=_G;const xG={columns:e=>$M("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:$M("column-gap:",oL(2),";row-gap:",oL(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},SG={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},CG=$M(xG.item.fullWidth," gap:",oL(2),";.components-dropdown-menu{margin:",oL(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",oL(6),";}",""),IG={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},TG=$M(xG.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",MD,"{margin-bottom:0;",DD,":last-child{margin-bottom:0;}}",HD,"{margin-bottom:0;}&& ",_D,"{label{line-height:1.4em;}}",""),PG={name:"eivff4",styles:"display:none"},AG={name:"16gsvie",styles:"min-width:200px"},BG=dE("span",{target:"ews648u0"})("color:",YM.theme.accentDarker10,";font-size:11px;font-weight:500;line-height:1.4;",nL({marginLeft:oL(3)})," text-transform:uppercase;"),NG=$M("color:",YM.gray[900],";&&[aria-disabled='true']{color:",YM.gray[700],";opacity:1;&:hover{color:",YM.gray[700],";}",BG,"{opacity:0.3;}}","");const RG=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,ae.createElement)(BG,{"aria-hidden":!0},Kn("Reset"));return(0,ae.createElement)(ae.Fragment,null,t.map((([t,o])=>o?(0,ae.createElement)(Yj,{key:t,className:e,role:"menuitem",label:On(Kn("Reset %s"),t),onClick:()=>{n(t),mh(On(Kn("%s reset to default"),t),"assertive")},suffix:r},t):(0,ae.createElement)(Yj,{key:t,icon:HM,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},OG=({items:e,toggleItem:t})=>e.length?(0,ae.createElement)(ae.Fragment,null,e.map((([e,n])=>{const r=On(Kn(n?"Hide and reset %s":"Show %s"),e);return(0,ae.createElement)(Yj,{key:e,icon:n?HM:null,isSelected:n,label:r,onClick:()=>{mh(On(Kn(n?"%s hidden and reset to default":"%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,MG=J_(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:a,headingLevel:s=2,label:l,menuItems:c,resetAll:u,toggleItem:d,dropdownMenuProps:p,...f}=function(e){const{className:t,headingLevel:n=2,...r}=Q_(e,"ToolsPanelHeader"),o=Z_(),i=(0,ae.useMemo)((()=>o(CG,t)),[t,o]),a=(0,ae.useMemo)((()=>o(AG)),[o]),s=(0,ae.useMemo)((()=>o(IG)),[o]),l=(0,ae.useMemo)((()=>o(NG)),[o]),{menuItems:c,hasMenuItems:u,areAllOptionalControlsHidden:d}=iG();return{...r,areAllOptionalControlsHidden:d,defaultControlsItemClassName:l,dropdownMenuClassName:a,hasMenuItems:u,headingClassName:s,headingLevel:n,menuItems:c,className:i}}(e);if(!l)return null;const h=Object.entries(c?.default||{}),m=Object.entries(c?.optional||{}),g=n?o$:kG,b=On(Gn("%s options","Button label to reveal tool panel options"),l),v=n?Kn("All options are currently hidden"):void 0,y=[...h,...m].some((([,e])=>e));return(0,ae.createElement)(nH,{...f,ref:t},(0,ae.createElement)(EG,{level:s,className:a},l),i&&(0,ae.createElement)(WR,{...p,icon:g,label:b,menuProps:{className:o},toggleProps:{size:"small",describedBy:v}},(()=>(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Gj,{label:l},(0,ae.createElement)(RG,{items:h,toggleItem:d,itemClassName:r}),(0,ae.createElement)(OG,{items:m,toggleItem:d})),(0,ae.createElement)(Gj,null,(0,ae.createElement)(Yj,{"aria-disabled":!y,variant:"tertiary",onClick:()=>{y&&(u(),mh(Kn("All options reset"),"assertive"))}},Kn("Reset all")))))))}),"ToolsPanelHeader"),LG=MG,DG=({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},zG=e=>e&&0===Object.keys(e).length;function FG(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:a=!1,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l,...c}=Q_(e,"ToolsPanel"),u=(0,ae.useRef)(!1),d=u.current;(0,ae.useEffect)((()=>{d&&(u.current=!1)}),[d]);const[p,f]=(0,ae.useState)([]),[h,m]=(0,ae.useState)([]),[g,b]=(0,ae.useState)([]),v=(0,ae.useCallback)((e=>{f((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),m((t=>t.includes(e.label)?t:[...t,e.label]))}),[f,m]),y=(0,ae.useCallback)((e=>{f((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[f]),w=(0,ae.useCallback)((e=>{b((t=>[...t,e]))}),[b]),k=(0,ae.useCallback)((e=>{b((t=>t.filter((t=>t!==e))))}),[b]),[_,E]=(0,ae.useState)({default:{},optional:{}});(0,ae.useEffect)((()=>{E((e=>DG({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:h})))}),[p,E,h]);const x=(0,ae.useCallback)(((e,t,n="default")=>{E((r=>({...r,[n]:{...r[n],[t]:e}})))}),[E]),[S,C]=(0,ae.useState)(!1);(0,ae.useEffect)((()=>{if(zG(_?.default)&&!zG(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));C(e)}}),[_,C]);const I=Z_(),T=(0,ae.useMemo)((()=>{const e=i&&$M(">div:not( :first-of-type ){display:grid;",xG.columns(2)," ",xG.spacing," ",xG.item.fullWidth,";}","");const n=zG(_?.default)&&S&&SG;return I((e=>$M(xG.columns(e)," ",xG.spacing," border-top:",FL.borderWidth," solid ",YM.gray[300],";margin-top:-1px;padding:",oL(4),";",""))(2),e,n,t)}),[S,t,I,i,_]),P=(0,ae.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};E(r)}),[_,p,E]),A=(0,ae.useCallback)((()=>{"function"==typeof r&&(u.current=!0,r(g));const e=DG({panelItems:p,menuItemOrder:h,shouldReset:!0});E(e)}),[p,g,r,E,h]),B=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},N=B(p),R=B([...p].reverse());return{...c,headingLevel:n,panelContext:(0,ae.useMemo)((()=>({areAllOptionalControlsHidden:S,deregisterPanelItem:y,deregisterResetAllFilter:k,firstDisplayedItem:N,flagItemCustomization:x,hasMenuItems:!!p.length,isResetting:u.current,lastDisplayedItem:R,menuItems:_,panelId:o,registerPanelItem:v,registerResetAllFilter:w,shouldRenderPlaceholderItems:a,__experimentalFirstVisibleItemClass:s,__experimentalLastVisibleItemClass:l})),[S,y,k,N,x,R,_,o,p,w,v,a,s,l]),resetAllItems:A,toggleItem:P,className:T}}const jG={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 VG(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:p,...f}=Q_(e,"Grid"),h=dL(Array.isArray(i)?i:[i]),m=dL(Array.isArray(u)?u:[u]),g=d||!!i&&`repeat( ${h}, 1fr )`,b=p||!!u&&`repeat( ${m}, 1fr )`,v=Z_();return{...f,className:(0,ae.useMemo)((()=>{const e=function(e){return e?jG[e]:{}}(n),i=$M({alignItems:t,display:s?"inline-grid":"grid",gap:`calc( ${FL.gridBase} * ${a} )`,gridTemplateColumns:g||void 0,gridTemplateRows:b||void 0,gridRowGap:c,gridColumnGap:o,justifyContent:l,verticalAlign:s?"middle":void 0,...e},"","");return v(i,r)}),[t,n,r,o,v,a,g,b,s,l,c])}}const HG=J_((function(e,t){const n=VG(e);return(0,ae.createElement)(fE,{...n,ref:t})}),"Grid"),$G=J_(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:a,headingLevel:s,dropdownMenuProps:l,...c}=FG(e);return(0,ae.createElement)(HG,{...c,columns:2,ref:t},(0,ae.createElement)(oG.Provider,{value:o},(0,ae.createElement)(LG,{label:r,resetAll:i,toggleItem:a,headingLevel:s,dropdownMenuProps:l}),n))}),"ToolsPanel"),UG=$G,WG="1600px",KG="320px",GG=1,qG=.25,YG=.75,XG="14px";function ZG(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:QG(u,3),unit:c}}function QG(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function JG(e,t){const{size:n}=e;if(!eq(t?.typography))return n;if(!n||"0"===n||!1===e?.fluid)return n;let r=function(e){const t=e?.typography,n=e?.layout,r=ZG(n?.wideSize)?n?.wideSize:null;return eq(t)&&r?{fluid:{maxViewportWidth:r,...t.fluid}}:{fluid:t?.fluid}}(t);r="object"==typeof r?.fluid?r?.fluid:{};const o=function({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:r=KG,maximumViewportWidth:o=WG,scaleFactor:i=GG,minimumFontSizeLimit:a}){if(a=ZG(a)?a:XG,n){const r=ZG(n);if(!r?.unit)return null;const o=ZG(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),qG),YG),i=QG(r.value*n,3);e=o?.value&&i<o?.value?`${o.value}${o.unit}`:`${i}${r.unit}`}}const s=ZG(e),l=s?.unit||"rem",c=ZG(t,{coerceTo:l});if(!s||!c)return null;const u=ZG(e,{coerceTo:"rem"}),d=ZG(o,{coerceTo:l}),p=ZG(r,{coerceTo:l});if(!d||!p||!u)return null;const f=d.value-p.value;if(!f)return null;const h=QG(p.value/100,3),m=QG(h,3)+l,g=QG(((c.value-s.value)/f*100||1)*i,3);return`clamp(${e}, ${u.value}${u.unit} + ((1vw - ${m}) * ${g}), ${t})`}({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:r?.minFontSize,maximumViewportWidth:r?.maxViewportWidth,minimumViewportWidth:r?.minViewportWidth});return o||n}function eq(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}const tq=[{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)=>JG(e,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:[]}],nq={popoverProps:{placement:"left-start",offset:259}};function rq(e,t,n,r,o){const i=[Zu(e,["blocks",t,...n]),Zu(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 rq(e,t,n,"slug",a.slug)[r]===a[r]?a:void 0}}}}}function oq(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=Zu(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=tq.find((e=>e.cssVarInfix===r));if(!i)return n;const a=rq(e.settings,t,i.path,"slug",o);if(a){const{valueKey:n}=i;return oq(e,t,a[n])}return n}(e,t,n,s):"custom"===a?function(e,t,n,r){var o;const i=null!==(o=Zu(e.settings,["blocks",t,"custom",...r]))&&void 0!==o?o:Zu(e.settings,["custom",...r]);return i?oq(e,t,i):n}(e,t,n,s):n}function iq(e,t){if(!e||!t)return 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 aq({children:e,group:t,label:n}){const{updateBlockAttributes:r}=Uc(Am),{getBlockAttributes:o,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:s}=du(Am),l=a(),c=(0,ae.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:Mm(i.style)},t[n]=i})),r(n,t,!0)}),[o,i,s,l,r]);return(0,ae.createElement)(UG,{className:`${t}-block-support-panel`,label:n,resetAll:c,key:l,panelId:l,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:nq},e)}function sq({Slot:e,fillProps:t,...n}){const r=(0,ae.useContext)(oG),o=(0,ae.useMemo)((()=>{var e;return{...null!=t?t:{},forwardedContext:[...null!==(e=t?.forwardedContext)&&void 0!==e?e:[],[oG.Provider,{value:r}]]}}),[r,t]);return(0,ae.createElement)(e,{...n,fillProps:o,bubblesVirtually:!0})}function lq({__experimentalGroup:e,group:t="default",label:n,fillProps:r,...o}){e&&(Mt("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const i=bG[t]?.Slot,a=Vj(i?.__unstableName),s=(0,ae.useContext)(jA),l=(0,ae.useMemo)((()=>{var e;return{...null!=r?r:{},forwardedContext:[...null!==(e=r?.forwardedContext)&&void 0!==e?e:[],[jA.Provider,{value:s}]]}}),[s,r]);return i?a?.length?n?(0,ae.createElement)(aq,{group:t,label:n},(0,ae.createElement)(sq,{...o,fillProps:l,Slot:i})):(0,ae.createElement)(i,{...o,fillProps:l,bubblesVirtually:!0}):null:("undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck(`Unknown InspectorControls group "${t}" provided.`),null)}const cq=vG;cq.Slot=lq;const uq=e=>(0,ae.createElement)(vG,{...e,group:"advanced"});uq.Slot=e=>(0,ae.createElement)(lq,{...e,group:"advanced"}),uq.slotName="InspectorAdvancedControls";const dq=cq;const pq=e=>$M("font-size:",RD("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:",YM.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",YM.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),fq={name:"1bcj5ek",styles:"width:100%;display:block"},hq={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},mq=$M("border:1px solid ",FL.surfaceBorderColor,";",""),gq=$M(">*:not( marquee )>*{border-bottom:1px solid ",FL.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),bq=FL.controlBorderRadius,vq=$M("border-radius:",bq,";",""),yq=$M("border-radius:",bq,";>*:first-of-type>*{border-top-left-radius:",bq,";border-top-right-radius:",bq,";}>*:last-of-type>*{border-bottom-left-radius:",bq,";border-bottom-right-radius:",bq,";}",""),wq=`calc(${FL.fontSize} * ${FL.fontLineHeightBase})`,kq=`calc((${FL.controlHeight} - ${wq} - 2px) / 2)`,_q=`calc((${FL.controlHeightSmall} - ${wq} - 2px) / 2)`,Eq=`calc((${FL.controlHeightLarge} - ${wq} - 2px) / 2)`,xq={small:$M("padding:",_q," ",FL.controlPaddingXSmall,";",""),medium:$M("padding:",kq," ",FL.controlPaddingX,";",""),large:$M("padding:",Eq," ",FL.controlPaddingXLarge,";","")};const Sq=(0,ae.createContext)({size:"medium"}),Cq=()=>(0,ae.useContext)(Sq);const Iq=J_((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}=Q_(e,"ItemGroup");return{isBordered:n,className:Z_()(n&&mq,o&&gq,r&&yq,t),role:i,isSeparated:o,...a}}(e),{size:a}=Cq(),s={spacedAround:!n&&!r,size:o||a};return(0,ae.createElement)(Sq.Provider,{value:s},(0,ae.createElement)(fE,{...i,ref:t}))}),"ItemGroup"),Tq=()=>{};const Pq=J_(((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=Tq,onDeselect:s,onSelect:l,...c}=Q_(e,"ToolsPanelItem"),{panelId:u,menuItems:d,registerResetAllFilter:p,deregisterResetAllFilter:f,registerPanelItem:h,deregisterPanelItem:m,flagItemCustomization:g,isResetting:b,shouldRenderPlaceholderItems:v,firstDisplayedItem:y,lastDisplayedItem:w,__experimentalFirstVisibleItemClass:k,__experimentalLastVisibleItemClass:_}=iG(),E=(0,ae.useCallback)(n,[i]),x=(0,ae.useCallback)(a,[i]),S=TV(u),C=u===i||null===u;(0,ae.useLayoutEffect)((()=>(C&&null!==S&&h({hasValue:E,isShownByDefault:r,label:o,panelId:i}),()=>{(null===S&&u||u===i)&&m(o)})),[u,C,r,o,E,i,S,h,m]),(0,ae.useEffect)((()=>(C&&p(x),()=>{C&&f(x)})),[p,f,x,C]);const I=r?"default":"optional",T=d?.[I]?.[o],P=TV(T),A=void 0!==d?.[I]?.[o],B=n();(0,ae.useEffect)((()=>{(r||B)&&g(B,o,I)}),[B,I,o,g,r]),(0,ae.useEffect)((()=>{A&&!b&&C&&(!T||B||P||l?.(),!T&&B&&P&&s?.())}),[C,T,A,b,B,P,l,s]);const N=r?void 0!==d?.[I]?.[o]:T,R=Z_(),O=(0,ae.useMemo)((()=>{const e=v&&!N;return R(TG,e&&PG,!e&&t,y===o&&k,w===o&&_)}),[N,v,t,R,y,w,k,_,o]);return{...c,isShown:N,shouldRenderPlaceholder:v,className:O}}(e);return r?(0,ae.createElement)(fE,{...i,ref:t},n):o?(0,ae.createElement)(fE,{...i,ref:t}):null}),"ToolsPanelItem"),Aq=Pq,Bq=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));function Nq(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}function Rq(e){const t=(0,ae.useRef)();return t.current=e,t}function Oq({dropZoneElement:e,isDisabled:t,onDrop:n,onDragStart:r,onDragEnter:o,onDragLeave:i,onDragEnd:a,onDragOver:s}){const l=Rq(n),c=Rq(r),u=Rq(o),d=Rq(i),p=Rq(a),f=Rq(s);return VN((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",b),i.addEventListener("mousemove",b),c.current&&c.current(e))}function s(e){e.preventDefault(),r.contains(e.relatedTarget)||u.current&&u.current(e)}function h(e){!e.defaultPrevented&&f.current&&f.current(e),e.preventDefault()}function m(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),b(e))}function b(e){o&&(o=!1,i.removeEventListener("dragend",b),i.removeEventListener("mousemove",b),p.current&&p.current(e))}return r.dataset.isDropZone="true",r.addEventListener("drop",g),r.addEventListener("dragenter",s),r.addEventListener("dragover",h),r.addEventListener("dragleave",m),i.addEventListener("dragenter",a),()=>{delete r.dataset.isDropZone,r.removeEventListener("drop",g),r.removeEventListener("dragenter",s),r.removeEventListener("dragover",h),r.removeEventListener("dragleave",m),i.removeEventListener("dragend",b),i.removeEventListener("mousemove",b),i.removeEventListener("dragenter",a)}}),[t,e])}class Mq extends ae.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 Lq({children:e,isPresent:t}){const n=(0,ae.useId)(),r=(0,ae.useRef)(null),o=(0,ae.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,ae.useContext)(FA);return(0,ae.useInsertionEffect)((()=>{const{width:e,height:a,top:s,left:l}=o.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${a}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,Fb.jsx)(Mq,{isPresent:t,childRef:r,sizeRef:o,children:ae.cloneElement(e,{ref:r})})}const Dq=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=pB(zq),l=(0,ae.useId)(),c=(0,ae.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?[Math.random()]:[n]);return(0,ae.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),ae.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=(0,Fb.jsx)(Lq,{isPresent:n,children:e})),(0,Fb.jsx)(lP.Provider,{value:c,children:e})};function zq(){return new Map}const Fq=e=>e.key||"";function jq(e){const t=[];return ae.Children.forEach(e,(e=>{(0,ae.isValidElement)(e)&&t.push(e)})),t}const Vq=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Kx(!t,"Replace exitBeforeEnter with mode='wait'");const s=(0,ae.useMemo)((()=>jq(e)),[e]),l=s.map(Fq),c=(0,ae.useRef)(!0),u=(0,ae.useRef)(s),d=pB((()=>new Map)),[p,f]=(0,ae.useState)(s),[h,m]=(0,ae.useState)(s);HA((()=>{c.current=!1,u.current=s;for(let e=0;e<h.length;e++){const t=Fq(h[e]);l.includes(t)?d.delete(t):!0!==d.get(t)&&d.set(t,!1)}}),[h,l.length,l.join("-")]);const g=[];if(s!==p){let e=[...s];for(let t=0;t<h.length;t++){const n=h[t],r=Fq(n);l.includes(r)||(e.splice(t,0,n),g.push(n))}return"wait"===a&&g.length&&(e=g),m(jq(e)),void f(s)}const{forceRender:b}=(0,ae.useContext)(cP);return(0,Fb.jsx)(Fb.Fragment,{children:h.map((e=>{const t=Fq(e),p=s===h||l.includes(t);return(0,Fb.jsx)(Dq,{isPresent:p,initial:!(c.current&&!r)&&void 0,custom:p?void 0:n,presenceAffectsLayout:i,mode:a,onExitComplete:p?void 0:()=>{if(!d.has(t))return;d.set(t,!0);let e=!0;d.forEach((t=>{t||(e=!1)})),e&&(null==b||b(),m(u.current),o&&o())},children:e},t)}))})},Hq={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},$q={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};function Uq({label:e}){const t=YN(),n=(0,ae.createElement)(ZB.div,{variants:Hq,initial:t?"show":"hidden",animate:"show",exit:t?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,ae.createElement)(ZB.div,{variants:$q},(0,ae.createElement)(VM,{icon:Bq,className:"components-drop-zone__content-icon"}),(0,ae.createElement)("span",{className:"components-drop-zone__content-text"},e||Kn("Drop files to upload"))));return t?n:(0,ae.createElement)(Vq,null,n)}const Wq=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[a,s]=(0,ae.useState)(),[l,c]=(0,ae.useState)(),[u,d]=(0,ae.useState)(),p=Oq({onDrop(e){const t=e.dataTransfer?Nq(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?Nq(e.dataTransfer):[]).length>0)&&(t="file"),d(t)},onDragEnd(){s(!1),d(void 0)},onDragEnter(){c(!0)},onDragLeave(){c(!1)}}),f=Au("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,ae.createElement)("div",{...i,ref:p,className:f},l&&(0,ae.createElement)(Uq,{label:t}))};const Kq=J_((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Q_(e,"VStack");return tH({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,ae.createElement)(fE,{...n,ref:t})}),"VStack"),Gq="undefined"!=typeof window?ae.useLayoutEffect:ae.useEffect;function qq({onDragStart:e,onDragMove:t,onDragEnd:n}){const[r,o]=(0,ae.useState)(!1),i=(0,ae.useRef)({onDragStart:e,onDragMove:t,onDragEnd:n});Gq((()=>{i.current.onDragStart=e,i.current.onDragMove=t,i.current.onDragEnd=n}),[e,t,n]);const a=(0,ae.useCallback)((e=>i.current.onDragMove&&i.current.onDragMove(e)),[]),s=(0,ae.useCallback)((e=>{i.current.onDragEnd&&i.current.onDragEnd(e),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",s),o(!1)}),[]),l=(0,ae.useCallback)((e=>{i.current.onDragStart&&i.current.onDragStart(e),document.addEventListener("mousemove",a),document.addEventListener("mouseup",s),o(!0)}),[]);return(0,ae.useEffect)((()=>()=>{r&&(document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",s))}),[r]),{startDrag:l,endDrag:s,isDragging:r}}const Yq={width:200,height:170},Xq=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function Zq(e){return Math.round(100*e)}const Qq=dE("div",{target:"eeew7dm8"})({name:"jqnsxy",styles:"background-color:transparent;display:flex;text-align:center;width:100%"}),Jq=dE("div",{target:"eeew7dm7"})("align-items:center;border-radius:",FL.radiusBlockUi,";cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;&:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 1px rgba( 0, 0, 0, 0.1 );content:'';left:0;pointer-events:none;position:absolute;right:0;top:0;}img,video{border-radius:inherit;box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"),eY=dE("div",{target:"eeew7dm6"})("background:",YM.gray[100],";border-radius:inherit;box-sizing:border-box;height:",Yq.height,"px;max-width:280px;min-width:",Yq.width,"px;width:100%;"),tY=dE(HU,{target:"eeew7dm5"})({name:"1d3w5wq",styles:"width:100%"});var nY={name:"1mn7kwb",styles:"padding-bottom:1em"};const rY=({__nextHasNoMarginBottom:e})=>e?void 0:nY;var oY={name:"1mn7kwb",styles:"padding-bottom:1em"};const iY=({hasHelpText:e=!1})=>e?oY:void 0,aY=dE(kL,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",iY," ",rY,";"),sY=dE("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );z-index:1;@media not ( prefers-reduced-motion ){transition:opacity 100ms linear;}opacity:",(({showOverlay:e})=>e?1:0),";"),lY=dE("div",{target:"eeew7dm2"})({name:"1yzbo24",styles:"background:rgba( 255, 255, 255, 0.4 );backdrop-filter:blur( 16px ) saturate( 180% );position:absolute;transform:translateZ( 0 )"}),cY=dE(lY,{target:"eeew7dm1"})({name:"1sw8ur",styles:"height:1px;left:1px;right:1px"}),uY=dE(lY,{target:"eeew7dm0"})({name:"188vg4t",styles:"width:1px;top:1px;bottom:1px"}),dY=0,pY=100,fY=()=>{};function hY({__nextHasNoMarginBottom:e,__next40pxDefaultSize:t,hasHelpText:n,onChange:r=fY,point:o={x:.5,y:.5}}){const i=Zq(o.x),a=Zq(o.y),s=(e,t)=>{if(void 0===e)return;const n=parseInt(e,10);isNaN(n)||r({...o,[t]:n/100})};return(0,ae.createElement)(aY,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:n,gap:4},(0,ae.createElement)(mY,{__next40pxDefaultSize:t,label:Kn("Left"),"aria-label":Kn("Focal point left position"),value:[i,"%"].join(""),onChange:e=>s(e,"x"),dragDirection:"e"}),(0,ae.createElement)(mY,{__next40pxDefaultSize:t,label:Kn("Top"),"aria-label":Kn("Focal point top position"),value:[a,"%"].join(""),onChange:e=>s(e,"y"),dragDirection:"s"}))}function mY(e){return(0,ae.createElement)(tY,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:pY,min:dY,units:[{value:"%",label:"%"}],...e})}const gY=dE("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:40px;margin:-20px 0 0 -20px;position:absolute;user-select:none;width:40px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.4 );border:1px solid rgba( 255, 255, 255, 0.4 );border-radius:50%;backdrop-filter:blur( 16px ) saturate( 180% );box-shadow:rgb( 0 0 0 / 10% ) 0px 0px 8px;transition:transform 100ms linear;",Cj("transition")," ",(({isDragging:e})=>e&&"\n\t\t\tbox-shadow: rgb( 0 0 0 / 12% ) 0px 0px 10px;\n\t\t\ttransform: scale( 1.1 );\n\t\t\tcursor: grabbing;\n\t\t\t"),";");function bY({left:e="50%",top:t="50%",...n}){const r=Au("components-focal-point-picker__icon_container"),o={left:e,top:t};return(0,ae.createElement)(gY,{...n,className:r,style:o})}function vY({bounds:e,...t}){return(0,ae.createElement)(sY,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,ae.createElement)(cY,{style:{top:"33%"}}),(0,ae.createElement)(cY,{style:{top:"66%"}}),(0,ae.createElement)(uY,{style:{left:"33%"}}),(0,ae.createElement)(uY,{style:{left:"66%"}}))}function yY({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...a}){if(!n)return(0,ae.createElement)(eY,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...a});return function(e=""){return!!e&&(e.startsWith("data:video/")||Xq.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,ae.createElement)("video",{...a,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,ae.createElement)("img",{...a,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}const wY=function e({__nextHasNoMarginBottom:t,__next40pxDefaultSize:n=!1,autoPlay:r=!0,className:o,help:i,label:a,onChange:s,onDrag:l,onDragEnd:c,onDragStart:u,resolvePoint:d,url:p,value:f={x:.5,y:.5},...h}){const[m,g]=(0,ae.useState)(f),[b,v]=(0,ae.useState)(!1),{startDrag:y,endDrag:w,isDragging:k}=qq({onDragStart:e=>{x.current?.focus();const t=T(e);t&&(u?.(t,e),g(t))},onDragMove:e=>{e.preventDefault();const t=T(e);t&&(l?.(t,e),g(t))},onDragEnd:()=>{c?.(),s?.(m)}}),{x:_,y:E}=k?m:f,x=(0,ae.useRef)(null),[S,C]=(0,ae.useState)(Yq),I=(0,ae.useRef)((()=>{if(!x.current)return;const{clientWidth:e,clientHeight:t}=x.current;C(e>0&&t>0?{width:e,height:t}:{...Yq})}));(0,ae.useEffect)((()=>{const e=I.current;if(!x.current)return;const{defaultView:t}=x.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),Gq((()=>{I.current()}),[]);const T=({clientX:e,clientY:t,shiftKey:n})=>{if(!x.current)return;const{top:r,left:o}=x.current.getBoundingClientRect();let i=(e-o)/S.width,a=(t-r)/S.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),P({x:i,y:a})},P=e=>{var t;const n=null!==(t=d?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},A={left:void 0!==_?_*S.width:.5*S.width,top:void 0!==E?E*S.height:.5*S.height},B=Au("components-focal-point-picker-control",o),N=`inspector-focal-point-picker-control-${$m(e)}`;return pk((()=>{v(!0);const e=window.setTimeout((()=>{v(!1)}),600);return()=>window.clearTimeout(e)}),[_,E]),(0,ae.createElement)(mV,{...h,__nextHasNoMarginBottom:t,label:a,id:N,help:i,className:B},(0,ae.createElement)(Qq,{className:"components-focal-point-picker-wrapper"},(0,ae.createElement)(Jq,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:_,y:E},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,s?.(P(r))},onMouseDown:y,onBlur:()=>{k&&w()},ref:x,role:"button",tabIndex:-1},(0,ae.createElement)(vY,{bounds:S,showOverlay:b}),(0,ae.createElement)(yY,{alt:Kn("Media preview"),autoPlay:r,onLoad:I.current,src:p}),(0,ae.createElement)(bY,{...A,isDragging:k}))),(0,ae.createElement)(hY,{__nextHasNoMarginBottom:t,__next40pxDefaultSize:n,hasHelpText:!!i,point:{x:_,y:E},onChange:e=>{s?.(P(e))}}))},kY=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}},_Y=kY("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})),EY="global",xY="info";let SY=0;function CY(e=xY,t,n={}){const{speak:r=!0,isDismissible:o=!0,context:i=EY,id:a=`${i}${++SY}`,actions:s=[],type:l="default",__unstableHTML:c,icon:u=null,explicitDismiss:d=!1,onDismiss:p}=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:p}}}function IY(e,t){return CY("success",e,t)}function TY(e,t){return CY("info",e,t)}function PY(e,t){return CY("error",e,t)}function AY(e,t){return CY("warning",e,t)}function BY(e,t=EY){return{type:"REMOVE_NOTICE",id:e,context:t}}function NY(e="default",t=EY){return{type:"REMOVE_ALL_NOTICES",noticeType:e,context:t}}function RY(e,t=EY){return{type:"REMOVE_NOTICES",ids:e,context:t}}const OY=[];function MY(e,t=EY){return e[t]||OY}const LY=un("core/notices",{reducer:_Y,actions:b,selectors:v});yn(LY);const DY=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...a}){const s=(0,ae.useRef)(null),l=()=>{s.current?.click()},c=i?i({openFileDialog:l}):(0,ae.createElement)(bE,{onClick:l,...a},t);return(0,ae.createElement)("div",{className:"components-form-file-upload"},c,(0,ae.createElement)("input",{type:"file",ref:s,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))},zY=(e,t,n)=>{let r,o,i,a,s,l=0,c=0,u=!1,d=!1,p=!0;function f(t){const n=r,a=o;return r=void 0,o=void 0,c=t,i=e.apply(a,n),i}function h(e,t){a=setTimeout(e,t)}function m(e){return e-(s||0)}function g(e){const n=m(e);return void 0===s||n>=t||n<0||d&&e-c>=l}function b(){const e=Date.now();if(g(e))return y(e);h(b,function(e){const n=m(e),r=e-c,o=t-n;return d?Math.min(o,l-r):o}(e))}function v(){a=void 0}function y(e){return v(),p&&r?f(e):(r=o=void 0,i)}function w(){return void 0!==a}function k(...e){const n=Date.now(),a=g(n);if(r=e,o=this,s=n,a){if(!w())return function(e){return c=e,h(b,t),u?f(e):i}(s);if(d)return h(b,t),f(s)}return w()||h(b,t),i}return n&&(u=!!n.leading,d="maxWait"in n,void 0!==n.maxWait&&(l=Math.max(n.maxWait,t)),p="trailing"in n?!!n.trailing:p),k.cancel=function(){void 0!==a&&clearTimeout(a),c=0,v(),r=s=o=void 0},k.flush=function(){return w()?y(Date.now()):i},k.pending=w,k};function FY(e){return Wc((t=>{const n="core/with-filters/"+e;let r;class o extends ae.Component{constructor(n){super(n),void 0===r&&(r=St(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&(gt("hookRemoved",n,a),gt("hookAdded",n,a))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&(vt("hookRemoved",n),vt("hookAdded",n))}render(){return(0,ae.createElement)(r,{...this.props})}}o.instances=[];const i=zY((()=>{r=St(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),16);function a(t){t===e&&i()}return o}),"withFilters")}const jY=(e,t)=>{const n=$c(),r=(0,ae.useRef)(e);return Gq((()=>{r.current=e})),(0,ae.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])},VY=e=>Wc((t=>n=>{const r=jY(((t,r)=>e(t,n,r)),[]);return(0,ae.createElement)(t,{...n,...r})}),"withDispatch"),HY=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,ae.createElement)(Bu,{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"})),$Y=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),UY=FY("editor.MediaUpload")((()=>null));const WY=function({fallback:e=null,children:t}){const n=du((e=>{const{getSettings:t}=e(Am);return!!t().mediaUpload}),[]);return n?t:e};const KY=UM`
3 - from {
4 - transform: rotate(0deg);
5 - }
6 - to {
7 - transform: rotate(360deg);
8 - }
9 - `,GY=dE("svg",{target:"ea4tfvq2"})("width:",FL.spinnerSize,"px;height:",FL.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",YM.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),qY={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},YY=dE("circle",{target:"ea4tfvq1"})(qY,";stroke:",YM.gray[300],";"),XY=dE("path",{target:"ea4tfvq0"})(qY,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",KY,";");const ZY=(0,ae.forwardRef)((function({className:e,...t},n){return(0,ae.createElement)(GY,{className:Au("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,ae.createElement)(YY,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,ae.createElement)(XY,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));const QY=(0,ae.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:r=!1,label:o,hideLabelFromVision:i,value:a,help:s,id:l,className:c,onChange:u,type:d="text",...p}=e,f=$m(QY,"inspector-text-control",l);return(0,ae.createElement)(mV,{__nextHasNoMarginBottom:n,label:o,hideLabelFromVision:i,id:f,help:s,className:c},(0,ae.createElement)("input",{className:Au("components-text-control__input",{"is-next-40px-default-size":r}),type:d,id:f,value:a,onChange:e=>u(e.target.value),"aria-describedby":s?f+"__help":void 0,ref:t,...p}))})),JY=QY,eX=()=>{};function tX(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const nX=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=eX,isDismissible:i=!0,actions:a=[],politeness:s=tX(t),__unstableHTML:l,onDismiss:c=eX}){!function(e,t){const n="string"==typeof e?e:is(e);(0,ae.useEffect)((()=>{n&&mh(n,t)}),[n,t])}(r,s);const u=Au(e,"components-notice","is-"+t,{"is-dismissible":i});return l&&"string"==typeof n&&(n=(0,ae.createElement)(Da,null,n)),(0,ae.createElement)("div",{className:u},(0,ae.createElement)(hE,null,function(e){switch(e){case"warning":return Kn("Warning notice");case"info":return Kn("Information notice");case"error":return Kn("Error notice");default:return Kn("Notice")}}(t)),(0,ae.createElement)("div",{className:"components-notice__content"},n,(0,ae.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,ae.createElement)(bE,{key:s,href:a,variant:l,onClick:a?void 0:i,className:Au("components-notice__action",e)},t)})))),i&&(0,ae.createElement)(bE,{className:"components-notice__dismiss",icon:XN,label:Kn("Close"),onClick:()=>{c(),o()}}))};const rX=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})),oX=bn({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:rX});function iX(e,t){return function({select:n,dispatch:r}){const o=n.get(e,t);r.set(e,t,!o)}}function aX(e,t,n){return{type:"SET_PREFERENCE_VALUE",scope:e,name:t,value:n}}function sX(e,t){return{type:"SET_PREFERENCE_DEFAULTS",scope:e,defaults:t}}async function lX(e){const t=await e.get();return{type:"SET_PERSISTENCE_LAYER",persistenceLayer:e,persistedData:t}}const cX=(uX=(e,t,n)=>{const r=e.preferences[t]?.[n];return void 0!==r?r:e.defaults[t]?.[n]},(e,t,n)=>["allowRightClickOverrides","distractionFree","editorMode","fixedToolbar","focusMode","hiddenBlockTypes","inactivePanels","keepCaretInsideBlock","mostUsedBlocks","openPanels","showBlockBreadcrumbs","showIconLabels","showListViewByDefault","isPublishSidebarEnabled","isComplementaryAreaVisible","pinnedItems"].includes(n)&&["core/edit-post","core/edit-site"].includes(t)?(Mt(`wp.data.select( 'core/preferences' ).get( '${t}', '${n}' )`,{since:"6.5",alternative:`wp.data.select( 'core/preferences' ).get( 'core', '${n}' )`}),uX(e,"core",n)):uX(e,t,n));var uX;const dX=un("core/preferences",{reducer:oX,actions:y,selectors:w});yn(dX);const pX=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-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"})),fX=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));const hX=function e({children:t,settingsOpen:n,setSettingsOpen:r}){const o=YN(),i=o?ae.Fragment:Vq,a=o?"div":ZB.div,s=`link-control-settings-drawer-${$m(e)}`;return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(bE,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>r(!n),icon:Yn()?fX:jz,"aria-controls":s},Gn("Advanced","Additional link settings")),(0,ae.createElement)(i,null,n&&(0,ae.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,ae.createElement)("div",{className:"block-editor-link-control__drawer-inner"},t))))};function mX(e,t){var n=(0,ae.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,ae.useRef)(!0),o=(0,ae.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,ae.useEffect)((function(){r.current=!1,o.current=a}),[a]),a.result}function gX(e,t,n){const r=mX((()=>zY(e,null!=t?t:0,n)),[e,t,n]);return(0,ae.useEffect)((()=>()=>r.cancel()),[r]),r}const bX=Wc((e=>t=>(0,ae.createElement)(e,{...t,speak:mh,debouncedSpeak:gX(mh,500)})),"withSpokenMessages"),vX=Wc((e=>class extends ae.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,ae.createElement)(e,{...this.props,setTimeout:this.setTimeout,clearTimeout:this.clearTimeout})}}),"withSafeTimeout"),yX=vX,wX=Wc((e=>t=>{const n=$m(e);return(0,ae.createElement)(e,{...t,instanceId:n})}),"instanceId"),kX=Wc((function(e){return e.prototype instanceof ae.Component?class extends e{shouldComponentUpdate(e,t){return!ss(e,this.props)||!ss(t,this.state)}}:class extends ae.Component{shouldComponentUpdate(e){return!ss(e,this.props)}render(){return(0,ae.createElement)(e,{...this.props})}}}),"pure"),_X=e=>Wc((t=>kX((n=>{const r=du(((t,r)=>e(t,n,r)));return(0,ae.createElement)(t,{...n,...r})}))),"withSelect");function EX(e){return"function"==typeof e}class xX extends ae.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,ae.createRef)(),this.inputRef=(0,ae.createRef)(),this.updateSuggestions=zY(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!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.suggestionNodes[n].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"}),e.value===r||this.props.disableSuggestions||(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({selectedSuggestion:null,loading:!0});const o=t(e,{isInitialSuggestions:r});o.then((t=>{this.suggestionsRequest===o&&(this.setState({suggestions:t,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak(On(qn("%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(Kn("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===o&&this.setState({loading:!1})})).finally((()=>{this.suggestionsRequest===o&&(this.suggestionsRequest=null)})),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||e&&e.length||null!==this.suggestionsRequest||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 fN:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case mN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case cN:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case fN:{e.preventDefault();const t=n?n-1:r.length-1;this.setState({selectedSuggestion:t});break}case mN:{e.preventDefault();const t=null===n||n===r.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case lN:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Kn("Link selected.")));break;case cN: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,ae.createElement)(ae.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:r,instanceId:o,placeholder:i=Kn("Paste URL or type to search"),__experimentalRenderControl:a,value:s="",hideLabelFromVision:l=!1}=this.props,{loading:c,showSuggestions:u,selectedSuggestion:d,suggestionsListboxId:p,suggestionOptionIdPrefix:f}=this.state,h=`url-input-control-${o}`,m={id:h,label:t,className:Au("block-editor-url-input",n,{"is-full-width":r}),hideLabelFromVision:l},g={id:h,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:Kn("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==d?`${f}-${d}`:void 0,ref:this.inputRef};return a?a(m,g,c):(e||Mt("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,ae.createElement)(mV,{__nextHasNoMarginBottom:e,...m},(0,ae.createElement)("input",{...g}),c&&(0,ae.createElement)(ZY,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 EX(t)?t({suggestions:r,selectedSuggestion:i,suggestionsListProps:c,buildSuggestionItemProps:u,isLoading:l,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!o?.length,currentInputValue:o}):(0,ae.createElement)(NR,{placement:"bottom",focusOnMount:!1},(0,ae.createElement)("div",{...c,className:Au("block-editor-url-input__suggestions",`${e}__suggestions`)},r.map(((e,t)=>(0,ae.createElement)(bE,{...u(0,t),key:e.id,className:Au("block-editor-url-input__suggestion",{"is-selected":t===i}),onClick:()=>this.handleOnClick(e)},e.title)))))}}const SX=Ne(yX,bX,wX,_X(((e,t)=>{if(EX(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(Am);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(xX);let CX,IX,TX,PX;const AX=/<(\/)?(\w+)\s*(\/)?>/g;function BX(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const NX=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,ae.isValidElement)(e)))};function RX(e){const t=function(){const e=AX.exec(CX);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=PX.length,s=o>IX?IX:null;if(!e[r])return OX(),!1;switch(n){case"no-more-tokens":if(0!==a){const{leadingTextStart:e,tokenStart:t}=PX.pop();TX.push(CX.substr(e,t))}return OX(),!1;case"self-closed":return 0===a?(null!==s&&TX.push(CX.substr(s,o-s)),TX.push(e[r]),IX=o+i,!0):(MX(BX(e[r],o,i)),IX=o+i,!0);case"opener":return PX.push(BX(e[r],o,i,o+i,s)),IX=o+i,!0;case"closer":if(1===a)return function(e){const{element:t,leadingTextStart:n,prevOffset:r,tokenStart:o,children:i}=PX.pop(),a=e?CX.substr(r,e-r):CX.substr(r);a&&i.push(a);null!==n&&TX.push(CX.substr(n,o-n));TX.push((0,ae.cloneElement)(t,null,...i))}(o),IX=o+i,!0;const t=PX.pop(),n=CX.substr(t.prevOffset,o-t.prevOffset);t.children.push(n),t.prevOffset=o+i;const l=BX(t.element,t.tokenStart,t.tokenLength,o+i);return l.children=t.children,MX(l),IX=o+i,!0;default:return OX(),!1}}function OX(){const e=CX.length-IX;0!==e&&TX.push(CX.substr(IX,e))}function MX(e){const{element:t,tokenStart:n,tokenLength:r,prevOffset:o,children:i}=e,a=PX[PX.length-1],s=CX.substr(a.prevOffset,n-a.prevOffset);s&&a.children.push(s),a.children.push((0,ae.cloneElement)(t,null,...i)),a.prevOffset=o||n+r}const LX=(e,t)=>{if(CX=e,IX=0,TX=[],PX=[],AX.lastIndex=0,!NX(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(RX(t));return(0,ae.createElement)(ae.Fragment,null,...TX)},DX=({searchTerm:e,onClick:t,itemProps:n,buttonText:r})=>{if(!e)return null;let o;return o=r?"function"==typeof r?r(e):r:LX(On(Kn("Create: <mark>%s</mark>"),e),{mark:(0,ae.createElement)("mark",null)}),(0,ae.createElement)(Yj,{...n,iconPosition:"left",icon:o$,className:"block-editor-link-control__search-item",onClick:t},o)},zX=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,ae.createElement)(ae.Fragment,null,t);const o=new RegExp(`(${Dj(r)})`,"gi");return LX(t.replace(o,"<mark>$&</mark>"),{mark:(0,ae.createElement)("mark",null)})},FX=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})),jX=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,ae.createElement)(Bu,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})),VX=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})),HX=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{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"})),$X=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})),UX=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),WX=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),KX=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));function GX(e){try{return decodeURI(e)}catch(t){return e}}function qX(e){const t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]}function YX(e,t=null){let n=e.replace(/^(?:https?:)\/\/(?:www\.)?/,"");n.match(/^[^\/]+\/$/)&&(n=n.replace("/",""));if(!t||n.length<=t||!n.match(/\/([^\/?]+)\.(?:[\w]+)(?=\?|$)/))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 XX={post:FX,page:jX,post_tag:VX,category:HX,attachment:$X};function ZX({isURL:e,suggestion:t}){let n=null;return e?n=UX:t.type in XX&&(n=XX[t.type],"page"===t.type&&(t.isFrontPage&&(n=WX),t.isBlogHome&&(n=KX))),n?(0,ae.createElement)(VM,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function QX(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,"/"):e}function JX(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,""):e}function eZ(e){return e.isFrontPage?"front page":e.isBlogHome?"blog home":"post_tag"===e.type?"tag":e.type}const tZ=({itemProps:e,suggestion:t,searchTerm:n,onClick:r,isURL:o=!1,shouldShowType:i=!1})=>{const a=o?Kn("Press ENTER to add this link"):(s=t.url)?Be(GX,qX,(e=>t=>null==t||t!=t?e:t)(""),((e,...t)=>(...n)=>e(...n,...t))(YX,24),JX,QX)(s):s;var s;return(0,ae.createElement)(Yj,{...e,info:a,iconPosition:"left",icon:(0,ae.createElement)(ZX,{suggestion:t,isURL:o}),onClick:r,shortcut:i&&eZ(t),className:"block-editor-link-control__search-item"},(0,ae.createElement)(zX,{text:Nr(t.title),highlight:n}))},nZ="__CREATE__",rZ="link",oZ="mailto",iZ="internal",aZ=[rZ,oZ,"tel",iZ],sZ=[{id:"opensInNewTab",title:Kn("Open in new tab")}];function lZ({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 p=Au("block-editor-link-control__search-results",{"is-loading":l}),f=1===a.length&&aZ.includes(a[0].type),h=t&&!f&&!c,m=!d?.type,g=`block-editor-link-control-search-results-label-${e}`,b=c?Kn("Suggestions"):On(Kn('Search results for "%s"'),n),v=(0,ae.createElement)(hE,{id:g},b);return(0,ae.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},v,(0,ae.createElement)("div",{...o,className:p,"aria-labelledby":g},(0,ae.createElement)(Gj,null,a.map(((e,t)=>h&&nZ===e.type?(0,ae.createElement)(DX,{searchTerm:n,buttonText:u,onClick:()=>r(e),key:e.type,itemProps:i(e,t),isSelected:t===s}):nZ===e.type?null:(0,ae.createElement)(tZ,{key:`${e.id}-${e.type}`,itemProps:i(e,t),suggestion:e,index:t,onClick:()=>{r(e)},isSelected:t===s,isURL:aZ.includes(e.type),searchTerm:n,shouldShowType:m,isFrontPage:e?.isFrontPage,isBlogHome:e?.isBlogHome}))))))}function cZ(e){const t=/^([^\s:]+:)/.exec(e);if(t)return t[1]}const uZ=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;const dZ=/^(?:[a-z]+:|#|\?|\.|\/)/i;function pZ(e){return e?(e=e.trim(),dZ.test(e)||(t=e,uZ.test(t))?e:"http://"+e):e;var t}function fZ(e){if(e.includes(" "))return!1;const t=function(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}(cZ(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 hZ=()=>Promise.resolve([]),mZ=e=>{let t=rZ;const n=cZ(e)||"";return n.includes("mailto")&&(t=oZ),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=iZ),Promise.resolve([{id:e,title:e,url:"URL"===t?pZ(e):e,type:t}])};function gZ(e,t,n){const{fetchSearchSuggestions:r,pageOnFront:o,pageForPosts:i}=du((e=>{const{getSettings:t}=e(Am);return{pageOnFront:t().pageOnFront,pageForPosts:t().pageForPosts,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),a=t?mZ:hZ;return(0,ae.useCallback)(((t,{isInitialSuggestions:s})=>fZ(t)?a(t,{isInitialSuggestions:s}):(async(e,t,n,r,o,i)=>{const{isInitialSuggestions:a}=t,s=await n(e,t);return s.map((e=>Number(e.id)===o?(e.isFrontPage=!0,e):Number(e.id)===i?(e.isBlogHome=!0,e):e)),a||fZ(e)||!r?s:s.concat({title:e,url:e,type:nZ})})(t,{...e,isInitialSuggestions:s},r,n,o,i)),[a,r,o,i,e,n])}const bZ=()=>Promise.resolve([]),vZ=()=>{},yZ=(0,ae.forwardRef)((({value:e,children:t,currentLink:n={},className:r=null,placeholder:o=null,withCreateSuggestion:i=!1,onCreateSuggestion:a=vZ,onChange:s=vZ,onSelect:l=vZ,showSuggestions:c=!0,renderSuggestions:u=e=>(0,ae.createElement)(lZ,{...e}),fetchSuggestions:d=null,allowDirectEntry:p=!0,showInitialSuggestions:f=!1,suggestionsQuery:h={},withURLSuggestion:m=!0,createSuggestionButtonText:g,hideLabelFromVision:b=!1},v)=>{const y=gZ(h,p,i),w=c?d||y:bZ,k=$m(yZ),[_,E]=(0,ae.useState)(),x=async e=>{let t=e;if(nZ!==e.type){if(p||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){}};return(0,ae.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,ae.createElement)(SX,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:Kn("Link"),hideLabelFromVision:b,className:r,value:e,onChange:(e,t)=>{s(e),E(t)},placeholder:null!=o?o:Kn("Search or type url"),__experimentalRenderSuggestions:c?e=>u({...e,instanceId:k,withCreateSuggestion:i,createSuggestionButtonText:g,suggestionsQuery:h,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),x(t)}}):null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:f,onSubmit:(t,n)=>{const r=t||_;r||e?.trim()?.length?x(r||{url:e}):n.preventDefault()},ref:v}),t)})),wZ=yZ;const kZ=(0,ae.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=Au("components-external-link",o),c=!!n?.startsWith("#");return(0,ae.createElement)("a",{...a,className:l,href:n,onClick:t=>{c&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:s,ref:t},(0,ae.createElement)("span",{className:"components-external-link__contents"},r),(0,ae.createElement)("span",{className:"components-external-link__icon","aria-label":Kn("(opens in a new tab)")},"↗"))})),_Z=kZ;var EZ=o(9013),xZ=o.n(EZ);function SZ(e){const t=(0,ae.useRef)(e);return t.current=e,t}function CZ(e,t){const n=SZ(e),r=SZ(t);return VN((e=>{const t=new(xZ())(e,{text:()=>"function"==typeof n.current?n.current():n.current||""});return t.on("success",(({clearSelection:e})=>{e(),r.current&&r.current()})),()=>{t.destroy()}}),[])}const IZ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),TZ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),PZ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),AZ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z"})),{Slot:BZ,Fill:NZ}=CR("BlockEditorLinkControlViewer");function RZ(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 OZ=function(e){const[t,n]=(0,ae.useReducer)(RZ,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=du((e=>{const{getSettings:t}=e(Am);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,ae.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 MZ({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:r=!1,onRemove:o}){const i=du((e=>e(dX).get("core","showIconLabels")),[]),a=n?e?.url:null,{richData:s,isFetching:l}=OZ(a),c=s&&Object.keys(s).length,u=e&&YX(GX(e.url),24)||"",d=!e?.url?.length,p=!d&&Nr(s?.title||e?.title||u);let f;f=s?.icon?(0,ae.createElement)("img",{src:s?.icon,alt:""}):d?(0,ae.createElement)(VM,{icon:IZ,size:32}):(0,ae.createElement)(VM,{icon:UX});const{createNotice:h}=Uc(LY),m=CZ(e.url,(()=>{h("info",Kn("Link copied to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,ae.createElement)("div",{"aria-label":Kn("Currently selected"),className:Au("block-editor-link-control__search-item",{"is-current":!0,"is-rich":c,"is-fetching":!!l,"is-preview":!0,"is-error":d,"is-url-title":p===u})},(0,ae.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,ae.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,ae.createElement)("span",{className:Au("block-editor-link-control__search-item-icon",{"is-image":s?.icon})},f),(0,ae.createElement)("span",{className:"block-editor-link-control__search-item-details"},d?(0,ae.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},Kn("Link is empty")):(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(_Z,{className:"block-editor-link-control__search-item-title",href:e.url},(0,ae.createElement)(wF,{numberOfLines:1},p)),e?.url&&p!==u&&(0,ae.createElement)("span",{className:"block-editor-link-control__search-item-info"},(0,ae.createElement)(wF,{numberOfLines:1},u))))),(0,ae.createElement)(bE,{icon:TZ,label:Kn("Edit link"),onClick:t,size:"compact"}),r&&(0,ae.createElement)(bE,{icon:PZ,label:Kn("Remove link"),onClick:o,size:"compact"}),(0,ae.createElement)(bE,{icon:AZ,label:On(Kn("Copy link%s"),d||i?"":": "+e.url),ref:m,disabled:d,size:"compact"}),(0,ae.createElement)(BZ,{fillProps:e})))}const LZ=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&&Mt("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[p,f]=(0,ae.useState)(!1),[h,m]=(0,ae.useState)(!1),g=VN((e=>{e&&(e.indeterminate=!!s,f(e.matches(":checked")),m(e.matches(":indeterminate")))}),[a,s]),b=$m(e,"inspector-checkbox-control",c);return(0,ae.createElement)(mV,{__nextHasNoMarginBottom:n,label:i,id:b,help:l&&(0,ae.createElement)("span",{className:"components-checkbox-control__help"},l),className:Au("components-checkbox-control",o)},(0,ae.createElement)(nH,{spacing:0,justify:"start",alignment:"top"},(0,ae.createElement)("span",{className:"components-checkbox-control__input-container"},(0,ae.createElement)("input",{ref:g,id:b,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>u(e.target.checked),checked:a,"aria-describedby":l?b+"__help":void 0,...d}),h?(0,ae.createElement)(VM,{icon:i$,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,p?(0,ae.createElement)(VM,{icon:HM,className:"components-checkbox-control__checked",role:"presentation"}):null),r&&(0,ae.createElement)("label",{className:"components-checkbox-control__label",htmlFor:b},r)))},DZ=()=>{},zZ=({value:e,onChange:t=DZ,settings:n})=>{if(!n||!n.length)return null;const r=n=>r=>{t({...e,[n.id]:r})},o=n.map((t=>(0,ae.createElement)(LZ,{__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,ae.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,ae.createElement)(hE,{as:"legend"},Kn("Currently selected link settings")),o)};const FZ=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}}};var jZ=o(3341),VZ=o.n(jZ);const HZ=()=>{},$Z="core/block-editor",UZ="linkControlSettingsDrawer";function WZ({searchInputPlaceholder:e,value:t,settings:n=sZ,onChange:r=HZ,onRemove:o,onCancel:i,noDirectEntry:a=!1,showSuggestions:s=!0,showInitialSuggestions:l,forceIsEditingLink:c,createSuggestion:u,withCreateSuggestion:d,inputValue:p="",suggestionsQuery:f={},noURLSuggestion:h=!1,createSuggestionButtonText:m,hasRichPreviews:g=!1,hasTextControl:b=!1,renderControlBottom:v=null}){void 0===d&&u&&(d=!0);const[y,w]=(0,ae.useState)(!1),{advancedSettingsPreference:k}=du((e=>{var t;return{advancedSettingsPreference:null!==(t=e(dX).get($Z,UZ))&&void 0!==t&&t}}),[]),{set:_}=Uc(dX),E=k||y,x=(0,ae.useRef)(!0),S=(0,ae.useRef)(),C=(0,ae.useRef)(),I=(0,ae.useRef)(!1),T=n.map((({id:e})=>e)),[P,A,B,N,R]=function(e){const[t,n]=(0,ae.useState)(e||{}),[r,o]=(0,ae.useState)(e);return VZ()(e,r)||(o(e),n(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),O=t&&!as(P,t),[M,L]=(0,ae.useState)(void 0!==c?c:!t||!t.url),{createPage:D,isCreatingPage:z,errorMessage:F}=function(e){const t=(0,ae.useRef)(),[n,r]=(0,ae.useState)(!1),[o,i]=(0,ae.useState)(null);return(0,ae.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){r(!0),i(null);try{return t.current=FZ(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||Kn("An unknown error occurred during creation. Please try again.")),e}finally{r(!1)}},isCreatingPage:n,errorMessage:o}}(u);(0,ae.useEffect)((()=>{void 0!==c&&L(c)}),[c]),(0,ae.useEffect)((()=>{if(x.current)return void(x.current=!1);(jN.focusable.find(S.current)[0]||S.current).focus(),I.current=!1}),[M,z]);const j=t?.url?.trim()?.length>0,V=()=>{I.current=!!S.current?.contains(S.current.ownerDocument.activeElement),L(!1)},H=()=>{O&&r({...t,...P,url:$}),V()},$=p||P?.url||"",U=!$?.trim()?.length,W=o&&t&&!M&&!z,K=M&&j,G=j&&b,q=(M||!t)&&!z,Y=!O||U,X=!!n?.length&&M&&j;return(0,ae.createElement)("div",{tabIndex:-1,ref:S,className:"block-editor-link-control"},z&&(0,ae.createElement)("div",{className:"block-editor-link-control__loading"},(0,ae.createElement)(ZY,null)," ",Kn("Creating"),"…"),q&&(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("div",{className:Au({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":G,"has-actions":K})},G&&(0,ae.createElement)(JY,{__nextHasNoMarginBottom:!0,ref:C,className:"block-editor-link-control__field block-editor-link-control__text-content",label:Kn("Text"),value:P?.title,onChange:N,onKeyDown:e=>{const{keyCode:t}=e;t!==cN||U||(e.preventDefault(),H())},size:"__unstable-large"}),(0,ae.createElement)(wZ,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:$,withCreateSuggestion:d,onCreateSuggestion:D,onChange:B,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:f,withURLSuggestion:!h,createSuggestionButtonText:m,hideLabelFromVision:!G}),!K&&(0,ae.createElement)("div",{className:"block-editor-link-control__search-enter"},(0,ae.createElement)(bE,{onClick:Y?HZ:H,label:Kn("Submit"),icon:pX,className:"block-editor-link-control__search-submit","aria-disabled":Y}))),F&&(0,ae.createElement)(nX,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),t&&!M&&!z&&(0,ae.createElement)(MZ,{key:t?.url,value:t,onEditClick:()=>L(!0),hasRichPreviews:g,hasUnlinkControl:W,onRemove:()=>{o(),L(!0)}}),X&&(0,ae.createElement)("div",{className:"block-editor-link-control__tools"},!U&&(0,ae.createElement)(hX,{settingsOpen:E,setSettingsOpen:e=>{_&&_($Z,UZ,e),w(e)}},(0,ae.createElement)(zZ,{value:P,settings:n,onChange:R(T)}))),K&&(0,ae.createElement)(nH,{justify:"right",className:"block-editor-link-control__search-actions"},(0,ae.createElement)(bE,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(t),j?V():o?.(),i?.()}},Kn("Cancel")),(0,ae.createElement)(bE,{variant:"primary",onClick:Y?HZ:H,className:"block-editor-link-control__search-submit","aria-disabled":Y},Kn("Save"))),!z&&v&&v())}WZ.ViewerFill=NZ,WZ.DEFAULT_LINK_SETTINGS=sZ;const KZ=WZ,GZ=()=>{};let qZ=0;const YZ=Ne([VY((e=>{const{createNotice:t,removeNotice:n}=e(LY);return{createNotice:t,removeNotice:n}})),FY("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:r,accept:o,onError:i,onSelect:a,onSelectURL:s,onToggleFeaturedImage:l,useFeaturedImage:c,onFilesUpload:u=GZ,name:d=Kn("Replace"),createNotice:p,removeNotice:f,children:h,multiple:m=!1,addToGallery:g,handleUpload:b=!0,popoverProps:v})=>{const y=du((e=>e(Am).getSettings().mediaUpload),[]),w=!!y,k=(0,ae.useRef)(),_="block-editor/media-replace-flow/error-notice/"+ ++qZ,E=e=>{const t=Nr(e);i?i(t):setTimeout((()=>{p("error",t,{speak:!0,id:_,isDismissible:!0})}),1e3)},x=(e,t)=>{c&&l&&l(),t(),a(e),mh(Kn("The media file has been replaced")),f(_)},S=e=>{e.keyCode===mN&&(e.preventDefault(),e.target.click())},C=m&&!(!r||0===r.length)&&r.every((e=>"image"===e||e.startsWith("image/")));return(0,ae.createElement)(OR,{popoverProps:v,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,ae.createElement)(YE,{ref:k,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:S},d),renderContent:({onClose:i})=>(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(VR,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,ae.createElement)(WY,null,(0,ae.createElement)(UY,{gallery:C,addToGallery:g,multiple:m,value:m?n:t,onSelect:e=>x(e,i),allowedTypes:r,render:({open:e})=>(0,ae.createElement)(Yj,{icon:HY,onClick:e},Kn("Open Media Library"))}),(0,ae.createElement)(DY,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!b)return t(),a(n);u(n),y({allowedTypes:r,filesList:n,onFileChange:([e])=>{x(e,t)},onError:E})})(e,i)},accept:o,multiple:!!m,render:({openFileDialog:e})=>(0,ae.createElement)(Yj,{icon:Bq,onClick:()=>{e()}},Kn("Upload"))})),l&&(0,ae.createElement)(Yj,{icon:$Y,onClick:l,isPressed:c},Kn("Use featured image")),h),s&&(0,ae.createElement)("form",{className:Au("block-editor-media-flow__url-input",{"has-siblings":w||l})},(0,ae.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Kn("Current media URL:")),(0,ae.createElement)(KZ,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{s(e),k.current.focus()}})))})})),XZ="image",ZZ={backgroundImage:!0,backgroundSize:!1};function QZ(e){return!!e?.background?.backgroundImage?.id||!!e?.background?.backgroundImage?.url}const JZ=e=>{if(!e||isNaN(e.x)&&isNaN(e.y))return;return`${100*(isNaN(e.x)?.5:e.x)}% ${100*(isNaN(e.y)?.5:e.y)}%`},eQ=e=>{if(!e)return{x:void 0,y:void 0};let[t,n]=e.split(" ").map((e=>parseFloat(e)/100));return t=isNaN(t)?void 0:t,n=isNaN(n)?t:n,{x:t,y:n}};function tQ({label:e,filename:t,url:n}){const r=e||function(e){let t;if(e){try{t=new URL(e,"http://example.com").pathname.split("/").pop()}catch(e){}return t||void 0}}(n)||Kn("Add background image");return(0,ae.createElement)(Iq,{as:"span"},(0,ae.createElement)(nH,{justify:n?"flex-start":"center",as:"span"},n&&(0,ae.createElement)("span",{className:Au("block-editor-global-styles-background-panel__inspector-image-indicator-wrapper",{"has-image":n}),"aria-hidden":!0},(0,ae.createElement)("span",{className:"block-editor-global-styles-background-panel__inspector-image-indicator",style:{backgroundImage:`url(${n})`}})),(0,ae.createElement)(EL,{as:"span"},(0,ae.createElement)(wF,{numberOfLines:1,className:"block-editor-global-styles-background-panel__inspector-media-replace-title"},r),(0,ae.createElement)(hE,{as:"span"},t?On(Kn("Selected image: %s"),t):Kn("No image selected")))))}function nQ({panelId:e,isShownByDefault:t,onChange:n,style:r,inheritedValue:o}){const i=du((e=>e(Am).getSettings().mediaUpload),[]),{id:a,title:s,url:l}=r?.background?.backgroundImage||{...o?.background?.backgroundImage},c=(0,ae.useRef)(),{createErrorNotice:u}=Uc(LY),d=e=>{u(e,{type:"snackbar"})},p=()=>n(Xu(r,["background","backgroundImage"],void 0)),f=e=>{e&&e.url?vc(e.url)||(e.media_type&&e.media_type!==XZ||!e.media_type&&e.type&&e.type!==XZ?d(Kn("Only images can be used as a background image.")):n(Xu(r,["background","backgroundImage"],{url:e.url,id:e.id,source:"file",title:e.title||void 0}))):p()},h=(0,ae.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]),m=QZ(r);return(0,ae.createElement)(Aq,{className:"single-column",hasValue:()=>m,label:Kn("Background image"),onDeselect:p,isShownByDefault:t,resetAllFilter:h,panelId:e},(0,ae.createElement)("div",{className:"block-editor-global-styles-background-panel__inspector-media-replace-container",ref:c},(0,ae.createElement)(YZ,{mediaId:a,mediaURL:l,allowedTypes:[XZ],accept:"image/*",onSelect:f,name:(0,ae.createElement)(tQ,{label:s,filename:s||Kn("Untitled"),url:l}),variant:"secondary"},m&&(0,ae.createElement)(Yj,{onClick:()=>{const[e]=jN.tabbable.find(c.current);e?.focus(),e?.click(),p()}},Kn("Reset "))),(0,ae.createElement)(Wq,{onFilesDrop:e=>{i({allowedTypes:[XZ],filesList:e,onFileChange([e]){vc(e?.url)||f(e)},onError:d})},label:Kn("Drop to upload")})))}function rQ({panelId:e,isShownByDefault:t,onChange:n,style:r,inheritedValue:o,defaultValues:i}){const a=r?.background?.backgroundSize||o?.background?.backgroundSize,s=r?.background?.backgroundRepeat||o?.background?.backgroundRepeat,l=r?.background?.backgroundImage?.url||o?.background?.backgroundImage?.url,c=r?.background?.backgroundPosition||o?.background?.backgroundPosition,u=void 0!==a&&"cover"!==a&&"contain"!==a||""===a?"auto":a||i?.backgroundSize,d=!("no-repeat"===s||"cover"===u&&void 0===s),p=function(e){return void 0!==e?.background?.backgroundPosition||void 0!==e?.background?.backgroundSize}(r),f=(0,ae.useCallback)((e=>({...e,style:{...e.style,background:{...e.style?.background,backgroundRepeat:void 0,backgroundSize:void 0}}})),[]),h=e=>{let t=s;"contain"===e&&(t="no-repeat"),"cover"===e&&(t=void 0),"cover"!==u&&"contain"!==u||"auto"!==e||(t=void 0),n(Xu(r,["background"],{...r?.background,backgroundRepeat:t,backgroundSize:e}))};return(0,ae.createElement)(Kq,{as:Aq,spacing:2,className:"single-column",hasValue:()=>p,label:Kn("Size"),onDeselect:()=>n(Xu(r,["background"],{...r?.background,backgroundPosition:void 0,backgroundRepeat:void 0,backgroundSize:void 0})),isShownByDefault:t,resetAllFilter:f,panelId:e},(0,ae.createElement)(wY,{__next40pxDefaultSize:!0,label:Kn("Position"),url:l,value:eQ(c),onChange:e=>{n(Xu(r,["background","backgroundPosition"],JZ(e)))}}),(0,ae.createElement)(RV,{size:"__unstable-large",label:Kn("Size"),value:u,onChange:h,isBlock:!0,help:(m=a,Kn("cover"===m||void 0===m?"Image covers the space evenly.":"contain"===m?"Image is contained without distortion.":"Specify a fixed width."))},(0,ae.createElement)(yK,{key:"cover",value:"cover",label:Kn("Cover")}),(0,ae.createElement)(yK,{key:"contain",value:"contain",label:Kn("Contain")}),(0,ae.createElement)(yK,{key:"fixed",value:"auto",label:Kn("Fixed")})),void 0!==u&&"cover"!==u&&"contain"!==u?(0,ae.createElement)(HU,{size:"__unstable-large",onChange:h,value:a}):null,"cover"!==u&&(0,ae.createElement)(rH,{label:Kn("Repeat"),checked:d,onChange:()=>n(Xu(r,["background","backgroundRepeat"],!0===d?"no-repeat":"repeat"))}));var m}function oQ({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o,headerLabel:i}){return(0,ae.createElement)(Kq,{as:UG,spacing:4,label:i,resetAll:()=>{const r=e(n);t(r)},panelId:r,dropdownMenuProps:nq},o)}function iQ({as:e=oQ,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=ZZ,defaultValues:s={},headerLabel:l=Kn("Background image")}){const c=(0,ae.useCallback)((e=>({...e,background:{}})),[]),u=o?.background?.backgroundSize;return(0,ae.createElement)(e,{resetAllFilter:c,value:t,onChange:n,panelId:i,headerLabel:l},(0,ae.createElement)(nQ,{onChange:n,panelId:i,isShownByDefault:a.backgroundImage,style:t,inheritedValue:r}),u&&(0,ae.createElement)(rQ,{onChange:n,panelId:i,isShownByDefault:a.backgroundSize,style:t,inheritedValue:r,defaultValues:s}))}const aQ="background",sQ={backgroundSize:"cover"};function lQ(e,t="any"){const n=Lo(e,aQ);return!0===n||("any"===t?!!n?.backgroundImage||!!n?.backgroundSize||!!n?.backgroundRepeat:!!n?.[t])}function cQ(e){return QZ(e)?"has-background":""}function uQ({children:e}){const t=(0,ae.useCallback)((e=>({...e,style:{...e.style,background:void 0}})),[]);return(0,ae.createElement)(dq,{group:"background",resetAllFilter:t},e)}function dQ({clientId:e,name:t,setAttributes:n,settings:r}){const o=du((t=>t(Am).getBlockAttributes(e)?.style),[e]);if(!function(e){return"web"===Sl.OS&&e?.background?.backgroundImage}(r)||!lQ(t,"backgroundImage"))return null;const i=Lo(t,[aQ,"__experimentalDefaultControls"]),a={...r,background:{...r.background,backgroundSize:r?.background?.backgroundSize&&lQ(t,"backgroundSize")}};return(0,ae.createElement)(iQ,{as:uQ,panelId:e,defaultControls:i,defaultValues:sQ,settings:a,onChange:e=>{n({style:Mm(e)})},value:o})}const pQ={useBlockProps:function({name:e,style:t}){if(!lQ(e)||!t?.background?.backgroundImage)return;const n=function(e){if(!e)return;const t=e?.backgroundImage;let n;return t?.url&&(e?.backgroundSize||(n={backgroundSize:"cover"}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(n={backgroundPosition:"center"})),n}(t?.background);return n?{style:{...n}}:void 0},attributeKeys:["style"],hasSupport:lQ};bt("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 fQ=/[\s#]/g,hQ={type:"string",source:"attribute",attribute:"id",selector:"*"};const mQ={addSaveProps:function(e,t,n){Do(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor);return e},edit:function({anchor:e,setAttributes:t}){if("default"!==QK())return null;const n="web"===Sl.OS;return(0,ae.createElement)(dq,{group:"advanced"},(0,ae.createElement)(JY,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"html-anchor-control",label:Kn("HTML anchor"),help:(0,ae.createElement)(ae.Fragment,null,Kn("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,ae.createElement)(ae.Fragment,null," ",(0,ae.createElement)(_Z,{href:Kn("https://wordpress.org/documentation/article/page-jumps/")},Kn("Learn more about anchors")))),value:e||"",placeholder:n?null:Kn("Add an anchor"),onChange:e=>{e=e.replace(fQ,"-"),t({anchor:e})},autoCapitalize:"none",autoComplete:"off"}))},attributeKeys:["anchor"],hasSupport:e=>Do(e,"anchor")};bt("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||Do(e,"anchor")&&(e.attributes={...e.attributes,anchor:hQ}),e}));const gQ={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};const bQ={addSaveProps:function(e,t,n){return Do(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e},attributeKeys:["ariaLabel"],hasSupport:e=>Do(e,"ariaLabel")};bt("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||Do(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:gQ}),e}));const vQ={edit:function({className:e,setAttributes:t}){return"default"!==QK()?null:(0,ae.createElement)(dq,{group:"advanced"},(0,ae.createElement)(JY,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:Kn("Additional CSS class(es)"),value:e||"",onChange:e=>{t({className:""!==e?e:void 0})},help:Kn("Separate multiple classes with spaces.")}))},addSaveProps:function(e,t,n){Do(t,"customClassName",!0)&&n.className&&(e.className=Au(e.className,n.className));return e},attributeKeys:["className"],hasSupport:e=>Do(e,"customClassName",!0)};bt("blocks.registerBlockType","core/editor/custom-class-name/attribute",(function(e){return Do(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),bt("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){if(!Do(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})),bt("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Do(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([cs(t.name),...e.className.split(" ")])].join(" ").trim():e.className=cs(t.name)),e}));const yQ=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx|svw|lvw|dvw|svh|lvh|dvh|svi|lvi|dvi|svb|lvb|dvb|svmin|lvmin|dvmin|svmax|lvmax|dvmax)?$/;const wQ=["top","right","bottom","left"],kQ=["color","style","width"],_Q=e=>!e||!kQ.some((t=>void 0!==e[t])),EQ=e=>{if(!e)return!1;if(xQ(e)){return!wQ.every((t=>_Q(e[t])))}return!_Q(e)},xQ=(e={})=>Object.keys(e).some((e=>-1!==wQ.indexOf(e))),SQ=e=>{if(!xQ(e))return!1;const t=wQ.map((t=>CQ(e?.[t])));return!t.every((e=>e===t[0]))},CQ=(e,t)=>{if(_Q(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(" ")},IQ=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(yQ);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)));xr([Sr,Tr]);const TQ=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}};function PQ(e,t){if(!e||!t)return;const{kebabCase:n}=Du(jj);return`has-${n(t)}-${e}`}const AQ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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 BQ=$M("",""),NQ={name:"bjn8wh",styles:"position:relative"},RQ=e=>{const{color:t=YM.gray[200],style:n="solid",width:r=FL.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==FL.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},OQ={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function MQ(e){const{className:t,size:n="default",...r}=Q_(e,"BorderBoxControlLinkedButton"),o=Z_();return{...r,className:(0,ae.useMemo)((()=>o((e=>$M("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",nL({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}const LQ=J_(((e,t)=>{const{className:n,isLinked:r,...o}=MQ(e),i=Kn(r?"Unlink sides":"Link sides");return(0,ae.createElement)(ik,{text:i},(0,ae.createElement)(fE,{className:n},(0,ae.createElement)(bE,{...o,size:"small",icon:r?AQ:PZ,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function DQ(e){const{className:t,value:n,size:r="default",...o}=Q_(e,"BorderBoxControlVisualizer"),i=Z_(),a=(0,ae.useMemo)((()=>i(((e,t)=>$M("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:",RQ(e?.top),";border-bottom:",RQ(e?.bottom),";",nL({borderLeft:RQ(e?.left)})()," ",nL({borderRight:RQ(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:a,value:n}}const zQ=J_(((e,t)=>{const{value:n,...r}=DQ(e);return(0,ae.createElement)(fE,{...r,ref:t})}),"BorderBoxControlVisualizer"),FQ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),jQ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M5 11.25h14v1.5H5z"})),VQ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),HQ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),$Q=[{label:Kn("Solid"),icon:jQ,value:"solid"},{label:Kn("Dashed"),icon:VQ,value:"dashed"},{label:Kn("Dotted"),icon:HQ,value:"dotted"}];const UQ=J_((function({onChange:e,...t},n){return(0,ae.createElement)(RV,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:n,isDeselectable:!0,onChange:t=>{e?.(t)},...t},$Q.map((e=>(0,ae.createElement)(qV,{key:e.value,value:e.value,icon:e.icon,label:e.label}))))}),"BorderControlStylePicker"),WQ=UQ;const KQ=(0,ae.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,ae.createElement)("span",{className:Au("component-color-indicator",n),style:{background:r},ref:t,...o})}));const GQ=(0,ae.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:a,label:s,multiple:l=!1,onChange:c,options:u=[],size:d="default",value:p,labelPosition:f="top",children:h,prefix:m,suffix:g,__next40pxDefaultSize:b=!1,__nextHasNoMarginBottom:v=!1,...y}=UD(e),w=function(e){const t=$m(GQ);return e||`inspector-select-control-${t}`}(a),k=o?`${w}__help`:void 0;if(!u?.length&&!h)return null;const _=Au("components-select-control",n);return(0,ae.createElement)(mV,{help:o,id:w,__nextHasNoMarginBottom:v},(0,ae.createElement)(XD,{className:_,disabled:r,hideLabelFromVision:i,id:w,label:s,size:d,suffix:g||!l&&(0,ae.createElement)(BD,null),prefix:m,labelPosition:f,__next40pxDefaultSize:b},(0,ae.createElement)(ID,{...y,__next40pxDefaultSize:b,"aria-describedby":k,className:"components-select-control__input",disabled:r,id:w,multiple:l,onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},ref:t,selectSize:d,value:p},h||u.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,ae.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))})),qQ=GQ,YQ=dE(NU,{target:"ez9hsf47"})("width:",oL(24),";"),XQ=dE(qQ,{target:"ez9hsf46"})("margin-left:",oL(-2),";width:5em;"),ZQ=dE(vK,{target:"ez9hsf45"})("flex:1;margin-right:",oL(2),";"),QQ=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${oL(2)} );\n\tmargin-left: ${oL(1)};\n}`,JQ=dE("div",{target:"ez9hsf44"})("padding-top:",oL(2),";padding-right:0;padding-left:0;padding-bottom:0;"),eJ=dE(nH,{target:"ez9hsf43"})("padding-left:",oL(4),";padding-right:",oL(4),";"),tJ=dE(kL,{target:"ez9hsf42"})("padding-top:",oL(4),";padding-left:",oL(4),";padding-right:",oL(3),";padding-bottom:",oL(5),";"),nJ=dE("div",{target:"ez9hsf41"})(OD,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",oL(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",oL(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 ",FL.borderWidthFocus," #fff;}",QQ,";"),rJ=dE(bE,{target:"ez9hsf40"})("&&&&&{min-width:",oL(6),";padding:0;>svg{margin-right:0;}}"),oJ=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"})),iJ=e=>{const{color:t,colorType:n}=e,[r,o]=(0,ae.useState)(null),i=(0,ae.useRef)(),a=CZ((()=>{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,ae.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,ae.createElement)(ik,{delay:0,hideOnClick:!1,text:r===t.toHex()?Kn("Copied!"):Kn("Copy")},(0,ae.createElement)(rJ,{size:"small",ref:a,icon:oJ,showTooltip:!1}))},aJ=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,ae.createElement)(nH,{spacing:4},(0,ae.createElement)(YQ,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,ae.createElement)(sL,{as:nD,paddingLeft:oL(4),color:YM.theme.accent,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,ae.createElement)(ZQ,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),sJ=({color:e,onChange:t,enableAlpha:n})=>{const{r,g:o,b:i,a}=e.toRgb();return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(aJ,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(_r({r:e,g:o,b:i,a}))}),(0,ae.createElement)(aJ,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(_r({r,g:e,b:i,a}))}),(0,ae.createElement)(aJ,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(_r({r,g:o,b:e,a}))}),n&&(0,ae.createElement)(aJ,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a),onChange:e=>t(_r({r,g:o,b:i,a:e/100}))}))},lJ=({color:e,onChange:t,enableAlpha:n})=>{const r=(0,ae.useMemo)((()=>e.toHsl()),[e]),[o,i]=(0,ae.useState)({...r}),a=e.isEqual(_r(o));(0,ae.useEffect)((()=>{a||i(r)}),[r,a]);const s=a?o:r,l=n=>{const r=_r({...s,...n});e.isEqual(r)?i((e=>({...e,...n}))):t(r)};return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(aJ,{min:0,max:359,label:"Hue",abbreviation:"H",value:s.h,onChange:e=>{l({h:e})}}),(0,ae.createElement)(aJ,{min:0,max:100,label:"Saturation",abbreviation:"S",value:s.s,onChange:e=>{l({s:e})}}),(0,ae.createElement)(aJ,{min:0,max:100,label:"Lightness",abbreviation:"L",value:s.l,onChange:e=>{l({l:e})}}),n&&(0,ae.createElement)(aJ,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s.a),onChange:e=>{l({a:e/100})}}))},cJ=({color:e,onChange:t,enableAlpha:n})=>(0,ae.createElement)(yU,{prefix:(0,ae.createElement)(sL,{as:nD,marginLeft:oL(4),color:YM.theme.accent,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(_r(n))},maxLength:n?9:7,label:Kn("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"}),uJ=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,ae.createElement)(lJ,{...o});case"rgb":return(0,ae.createElement)(sJ,{...o});default:return(0,ae.createElement)(cJ,{...o})}};function dJ(){return(dJ=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 pJ(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 fJ(e){var t=(0,ae.useRef)(e),n=(0,ae.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var hJ=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},mJ=function(e){return"touches"in e},gJ=function(e){return e&&e.ownerDocument.defaultView||self},bJ=function(e,t,n){var r=e.getBoundingClientRect(),o=mJ(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:hJ((o.pageX-(r.left+gJ(e).pageXOffset))/r.width),top:hJ((o.pageY-(r.top+gJ(e).pageYOffset))/r.height)}},vJ=function(e){!mJ(e)&&e.preventDefault()},yJ=ae.memo((function(e){var t=e.onMove,n=e.onKey,r=pJ(e,["onMove","onKey"]),o=(0,ae.useRef)(null),i=fJ(t),a=fJ(n),s=(0,ae.useRef)(null),l=(0,ae.useRef)(!1),c=(0,ae.useMemo)((function(){var e=function(e){vJ(e),(mJ(e)?e.touches.length>0:e.buttons>0)&&o.current?i(bJ(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=gJ(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&&(vJ(t),!function(e,t){return t&&!mJ(e)}(t,l.current)&&r)){if(mJ(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(bJ(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],p=c[2];return(0,ae.useEffect)((function(){return p}),[p]),ae.createElement("div",dJ({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),wJ=function(e){return e.filter(Boolean).join(" ")},kJ=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=wJ(["react-colorful__pointer",e.className]);return ae.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},ae.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},_J=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},EJ=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:_J(e.h),s:_J(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:_J(o/2),a:_J(r,2)}}),xJ=function(e){var t=EJ(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},SJ=function(e){var t=EJ(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},CJ=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:_J(255*[r,s,a,a,l,r][c]),g:_J(255*[l,r,r,s,a,a][c]),b:_J(255*[a,a,l,r,r,s][c]),a:_J(o,2)}},IJ=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?PJ({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}},TJ=IJ,PJ=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:_J(60*(s<0?s+6:s)),s:_J(i?a/i*100:0),v:_J(i/255*100),a:o}},AJ=ae.memo((function(e){var t=e.hue,n=e.onChange,r=wJ(["react-colorful__hue",e.className]);return ae.createElement("div",{className:r},ae.createElement(yJ,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:hJ(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":_J(t),"aria-valuemax":"360","aria-valuemin":"0"},ae.createElement(kJ,{className:"react-colorful__hue-pointer",left:t/360,color:xJ({h:t,s:100,v:100,a:1})})))})),BJ=ae.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:xJ({h:t.h,s:100,v:100,a:1})};return ae.createElement("div",{className:"react-colorful__saturation",style:r},ae.createElement(yJ,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:hJ(t.s+100*e.left,0,100),v:hJ(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+_J(t.s)+"%, Brightness "+_J(t.v)+"%"},ae.createElement(kJ,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:xJ(t)})))})),NJ=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},RJ=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function OJ(e,t,n){var r=fJ(n),o=(0,ae.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,ae.useRef)({color:t,hsva:i});(0,ae.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,ae.useEffect)((function(){var t;NJ(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,ae.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var MJ,LJ="undefined"!=typeof window?ae.useLayoutEffect:ae.useEffect,DJ=new Map,zJ=function(e){LJ((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!DJ.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}',DJ.set(t,n);var r=MJ||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},FJ=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=pJ(e,["className","colorModel","color","onChange"]),s=(0,ae.useRef)(null);zJ(s);var l=OJ(n,o,i),c=l[0],u=l[1],d=wJ(["react-colorful",t]);return ae.createElement("div",dJ({},a,{ref:s,className:d}),ae.createElement(BJ,{hsva:c,onChange:u}),ae.createElement(AJ,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},jJ=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+SJ(Object.assign({},n,{a:0}))+", "+SJ(Object.assign({},n,{a:1}))+")"},i=wJ(["react-colorful__alpha",t]),a=_J(100*n.a);return ae.createElement("div",{className:i},ae.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),ae.createElement(yJ,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:hJ(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},ae.createElement(kJ,{className:"react-colorful__alpha-pointer",left:n.a,color:SJ(n)})))},VJ=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=pJ(e,["className","colorModel","color","onChange"]),s=(0,ae.useRef)(null);zJ(s);var l=OJ(n,o,i),c=l[0],u=l[1],d=wJ(["react-colorful",t]);return ae.createElement("div",dJ({},a,{ref:s,className:d}),ae.createElement(BJ,{hsva:c,onChange:u}),ae.createElement(AJ,{hue:c.h,onChange:u}),ae.createElement(jJ,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},HJ={defaultColor:"rgba(0, 0, 0, 1)",toHsva:IJ,fromHsva:function(e){var t=CJ(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:RJ},$J=function(e){return ae.createElement(VJ,dJ({},e,{colorModel:HJ}))},UJ={defaultColor:"rgb(0, 0, 0)",toHsva:TJ,fromHsva:function(e){var t=CJ(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:RJ},WJ=function(e){return ae.createElement(FJ,dJ({},e,{colorModel:UJ}))};const KJ=({color:e,enableAlpha:t,onChange:n})=>{const r=t?$J:WJ,o=(0,ae.useMemo)((()=>e.toRgbString()),[e]);return(0,ae.createElement)(r,{color:o,onChange:e=>{n(_r(e))},onPointerDown:({currentTarget:e,pointerId:t})=>{e.setPointerCapture(t)},onPointerUp:({currentTarget:e,pointerId:t})=>{e.releasePointerCapture(t)}})};xr([Sr]);const GJ=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],qJ={InputBase:{isBorderless:!0}},YJ=J_(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:a,...s}=Q_(e,"ColorPicker"),[l,c]=ex({onChange:o,value:r,defaultValue:i}),u=(0,ae.useMemo)((()=>_r(l||"")),[l]),d=gX(c),p=(0,ae.useCallback)((e=>{d(e.toHex())}),[d]),[f,h]=(0,ae.useState)(a||"hex");return(0,ae.createElement)(nJ,{ref:t,...s},(0,ae.createElement)(KJ,{onChange:p,color:u,enableAlpha:n}),(0,ae.createElement)(JQ,null,(0,ae.createElement)(eJ,{justify:"space-between"},(0,ae.createElement)(mk,{value:qJ},(0,ae.createElement)(XQ,{__nextHasNoMarginBottom:!0,options:GJ,value:f,onChange:e=>h(e),label:Kn("Color format"),hideLabelFromVision:!0})),(0,ae.createElement)(iJ,{color:u,colorType:a||f})),(0,ae.createElement)(tJ,{direction:"column",gap:2},(0,ae.createElement)(uJ,{colorType:f,color:u,onChange:p,enableAlpha:n}))))}),"ColorPicker"),XJ=YJ;function ZJ(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const QJ=An((e=>{const t=_r(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 JJ(e){const{onChangeComplete:t}=e,n=(0,ae.useCallback)((e=>{t(QJ(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:ZJ(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const e0=e=>(0,ae.createElement)(XJ,{...JJ(e)}),t0=(0,ae.createContext)({});const n0=(0,ae.forwardRef)((function(e,t){const{isPressed:n,...r}=e;return(0,ae.createElement)(bE,{...r,"aria-pressed":n,ref:t})}));const r0=(0,ae.forwardRef)((function(e,t){const{id:n,isSelected:r,compositeStore:o,...i}=e,a=o.useState("activeId");return r&&!a&&o.setActiveId(n),(0,ae.createElement)(jE,{render:(0,ae.createElement)(bE,{...i,role:"option","aria-selected":!!r,ref:t}),store:o,id:n})}));function o0(e){const{actions:t,options:n,baseId:r,className:o,loop:i=!0,children:a,...s}=e,l=yO({focusLoop:i,rtl:Yn()}),c={baseId:r,compositeStore:l};return(0,ae.createElement)("div",{className:o},(0,ae.createElement)(t0.Provider,{value:c},(0,ae.createElement)(eO,{...s,id:r,store:l,role:"listbox"},n),a,t))}function i0(e){const{actions:t,options:n,children:r,baseId:o,...i}=e;return(0,ae.createElement)("div",{...i,id:o},(0,ae.createElement)(t0.Provider,{value:{baseId:o}},n,r,t))}function a0(e){const{asButtons:t,actions:n,options:r,children:o,className:i,...a}=e,s=$m(a0,"components-circular-option-picker",a.id),l=t?i0:o0,c=n?(0,ae.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},n):void 0,u=(0,ae.createElement)("div",{className:"components-circular-option-picker__swatches"},r);return(0,ae.createElement)(l,{...a,baseId:s,className:Au("components-circular-option-picker",i),actions:c,options:u},o)}a0.Option=function e({className:t,isSelected:n,selectedIconProps:r={},tooltipText:o,...i}){const{baseId:a,compositeStore:s}=(0,ae.useContext)(t0),l={id:$m(e,a||"components-circular-option-picker__option"),className:"components-circular-option-picker__option",...i},c=s?(0,ae.createElement)(r0,{...l,compositeStore:s,isSelected:n}):(0,ae.createElement)(n0,{...l,isPressed:n});return(0,ae.createElement)("div",{className:Au(t,"components-circular-option-picker__option-wrapper")},o?(0,ae.createElement)(ik,{text:o},c):c,n&&(0,ae.createElement)(VM,{icon:HM,...r}))},a0.OptionGroup=function({className:e,options:t,...n}){const r="aria-label"in n||"aria-labelledby"in n?"group":void 0;return(0,ae.createElement)("div",{...n,role:r,className:Au("components-circular-option-picker__option-group","components-circular-option-picker__swatches",e)},t)},a0.ButtonAction=function({className:e,children:t,...n}){return(0,ae.createElement)(bE,{className:Au("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},a0.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,ae.createElement)(OR,{className:Au("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,ae.createElement)(bE,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};const s0=a0;const l0=dE(EG,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),c0=({paddingSize:e="small"})=>{if("none"===e)return;const t={small:oL(2),medium:oL(4)};return $M("padding:",t[e]||t.small,";","")},u0=dE("div",{target:"eovvns30"})("margin-left:",oL(-2),";margin-right:",oL(-2),";&:first-of-type{margin-top:",oL(-2),";}&:last-of-type{margin-bottom:",oL(-2),";}",c0,";");const d0=J_((function(e,t){const{paddingSize:n="small",...r}=Q_(e,"DropdownContentWrapper");return(0,ae.createElement)(u0,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");xr([Sr,Tr]);const p0=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function f0({className:e,clearColor:t,colors:n,onChange:r,value:o,...i}){const a=(0,ae.useMemo)((()=>n.map((({color:e,name:n},i)=>{const a=_r(e),s=o===e;return(0,ae.createElement)(s0.Option,{key:`${e}-${i}`,isSelected:s,selectedIconProps:s?{fill:a.contrast()>a.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||On(Kn("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:s?t:()=>r(e,i),"aria-label":n?On(Kn("Color: %s"),n):On(Kn("Color code: %s"),e)})}))),[n,o,r,t]);return(0,ae.createElement)(s0.OptionGroup,{className:e,options:a,...i})}function h0({className:e,clearColor:t,colors:n,onChange:r,value:o,headingLevel:i}){const a=$m(h0,"color-palette");return 0===n.length?null:(0,ae.createElement)(Kq,{spacing:3,className:e},n.map((({name:e,colors:n},s)=>{const l=`${a}-${s}`;return(0,ae.createElement)(Kq,{spacing:2,key:s},(0,ae.createElement)(l0,{id:l,level:i},e),(0,ae.createElement)(f0,{clearColor:t,colors:n,onChange:e=>r(e,s),value:o,"aria-labelledby":l}))})))}function m0({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,ae.useMemo)((()=>({shift:!0,resize:!1,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,ae.createElement)(OR,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}xr([Sr,Tr]);const g0=(0,ae.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":p,"aria-labelledby":f,...h}=e,[m,g]=(0,ae.useState)(c),b=(0,ae.useCallback)((()=>l(void 0)),[l]),v=(0,ae.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?_r(o).toHex():e})(c,e))}),[c]),y=p0(i),w=(0,ae.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:_r(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:_r(n).toHex()))return t;return Kn("Custom")})(c,i,y)),[c,i,y]),k=c?.startsWith("#"),_=c?.replace(/^var\((.+)\)$/,"$1"),E=_?On(Kn('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),w,_):Kn("Custom color picker."),x={clearColor:b,onChange:l,value:c},S=!!o&&(0,ae.createElement)(s0.ButtonAction,{onClick:b},Kn("Clear"));let C;if(n)C={asButtons:!0};else{const e={asButtons:!1,loop:r};C=p?{...e,"aria-label":p}:f?{...e,"aria-labelledby":f}:{...e,"aria-label":Kn("Custom color picker.")}}return(0,ae.createElement)(Kq,{spacing:3,ref:t,...h},!a&&(0,ae.createElement)(m0,{isRenderedInSidebar:u,renderContent:()=>(0,ae.createElement)(d0,{paddingSize:"none"},(0,ae.createElement)(e0,{color:m,onChange:e=>l(e),enableAlpha:s})),renderToggle:({isOpen:e,onToggle:t})=>(0,ae.createElement)(Kq,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,ae.createElement)("button",{ref:v,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":E,style:{background:c},type:"button"}),(0,ae.createElement)(Kq,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,ae.createElement)(wF,{className:"components-color-palette__custom-color-name"},c?w:Kn("No color selected")),(0,ae.createElement)(wF,{className:Au("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":k})},_)))}),(0,ae.createElement)(s0,{...C,actions:S,options:y?(0,ae.createElement)(h0,{...x,headingLevel:d,colors:i,value:c}):(0,ae.createElement)(f0,{...x,colors:i,value:c})}))})),b0=g0;const v0={name:"f3vz0n",styles:"font-weight:500"},y0=$M("box-shadow:inset ",FL.controlBoxShadowFocus,";",""),w0=$M("border:0;padding:0;margin:0;",OD,";",""),k0=$M(RU,"{flex:0 0 auto;}",""),_0=$M("background:#fff;&&>button{aspect-ratio:1;padding:0;display:flex;align-items:center;justify-content:center;",nL({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",FL.borderWidth," solid ",YM.ui.border,";&:focus,&:hover:not( :disabled ){",y0," border-color:",YM.ui.borderFocus,";z-index:1;position:relative;}}",""),E0=(e,t)=>{const{style:n}=e||{};return $M("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?YM.gray[300]:void 0;return $M("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:",oL(4),";width:",oL(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);}","")},x0=$M("width:",228,"px;>div:first-of-type>",FD,"{margin-bottom:0;",v0,";}&& ",FD,"+button:not( .has-text ){min-width:24px;padding:0;}",""),S0=$M("",""),C0=$M("",""),I0=$M("justify-content:center;width:100%;&&{border-top:",FL.borderWidth," solid ",YM.gray[400],";border-top-left-radius:0;border-top-right-radius:0;height:40px;}","");const T0=e=>e.replace(/^var\((.+)\)$/,"$1"),P0=J_(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:a,enableStyle:s,indicatorClassName:l,indicatorWrapperClassName:c,isStyleSettable:u,onReset:d,onColorChange:p,onStyleChange:f,popoverContentClassName:h,popoverControlsClassName:m,resetButtonClassName:g,showDropdownHeader:b,size:v,__unstablePopoverProps:y,...w}=function(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:a,previousStyleSelection:s,size:l="default",__experimentalIsRenderedInSidebar:c=!1,...u}=Q_(e,"BorderControlDropdown"),[d]=n$(t?.width),p=0===d,f=Z_(),h=(0,ae.useMemo)((()=>f(_0,n)),[n,f]),m=(0,ae.useMemo)((()=>f(C0)),[f]),g=(0,ae.useMemo)((()=>f(E0(t,l))),[t,f,l]),b=(0,ae.useMemo)((()=>f(x0)),[f]),v=(0,ae.useMemo)((()=>f(S0)),[f]),y=(0,ae.useMemo)((()=>f(I0)),[f]);return{...u,border:t,className:h,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:m,indicatorWrapperClassName:g,onColorChange:e=>{a({color:e,style:"none"===t?.style?s:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;a({...t,style:e,width:n})},onReset:()=>{a({...t,color:void 0,style:void 0})},popoverContentClassName:v,popoverControlsClassName:b,resetButtonClassName:y,size:l,__experimentalIsRenderedInSidebar:c}}(e),{color:k,style:_}=r||{},E=((e,t)=>{if(e&&t){if(p0(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))}})(k,o),x=((e,t,n,r)=>{if(r){if(t){const e=T0(t.color);return n?On('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):On('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=T0(e);return n?On('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):On('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return Kn("Border color and style picker.")}return t?On('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,T0(t.color)):e?On('Border color picker. The currently selected color has a value of "%1$s".',T0(e)):Kn("Border color picker.")})(k,E,_,s),S=k||_&&"none"!==_,C=n?"bottom left":void 0;return(0,ae.createElement)(OR,{renderToggle:({onToggle:e})=>(0,ae.createElement)(bE,{onClick:e,variant:"tertiary","aria-label":x,tooltipPosition:C,label:Kn("Border color and style picker"),showTooltip:!0,__next40pxDefaultSize:"__unstable-large"===v},(0,ae.createElement)("span",{className:c},(0,ae.createElement)(KQ,{className:l,colorValue:k}))),renderContent:({onClose:e})=>(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(d0,{paddingSize:"medium"},(0,ae.createElement)(Kq,{className:m,spacing:6},b?(0,ae.createElement)(nH,null,(0,ae.createElement)(FD,null,Kn("Border color")),(0,ae.createElement)(bE,{size:"small",label:Kn("Close border color"),icon:FQ,onClick:e})):void 0,(0,ae.createElement)(b0,{className:h,value:k,onChange:p,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:a}),s&&u&&(0,ae.createElement)(WQ,{label:Kn("Style"),value:_,onChange:f}))),S&&(0,ae.createElement)(d0,{paddingSize:"none"},(0,ae.createElement)(bE,{className:g,variant:"tertiary",onClick:()=>{d(),e()}},Kn("Reset")))),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown"),A0=P0,B0=e=>void 0!==e?.width&&""!==e.width||void 0!==e?.color;function N0(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:a=!0,shouldSanitizeBorder:s=!0,size:l="default",value:c,width:u,__experimentalIsRenderedInSidebar:d=!1,__next40pxDefaultSize:p,...f}=Q_(e,"BorderControl"),h="default"===l&&p?"__unstable-large":l,[m,g]=n$(c?.width),b=g||"px",v=0===m,[y,w]=(0,ae.useState)(),[k,_]=(0,ae.useState)(),E=!s||B0(c),x=(0,ae.useCallback)((e=>{!s||B0(e)?o(e):o(void 0)}),[o,s]),S=(0,ae.useCallback)((e=>{const t=""===e?void 0:e,[n]=n$(e),r=0===n,o={...c,width:t};r&&!v&&(w(c?.color),_(c?.style),o.color=void 0,o.style="none"),!r&&v&&(void 0===o.color&&(o.color=y),"none"===o.style&&(o.style=k)),x(o)}),[c,v,y,k,x]),C=(0,ae.useCallback)((e=>{S(`${e}${b}`)}),[S,b]),I=Z_(),T=(0,ae.useMemo)((()=>I(w0,t)),[t,I]);let P=u;r&&(P="__unstable-large"===l?"116px":"90px");const A=(0,ae.useMemo)((()=>{const e=!!P&&k0,t=(e=>$M("height:","__unstable-large"===e?"40px":"30px",";",""))(h);return I($M(RU,"{flex:1 1 40%;}&& ",DU,"{min-height:0;}",""),e,t)}),[P,I,h]),B=(0,ae.useMemo)((()=>I($M("flex:1 1 60%;",nL({marginRight:oL(3)})(),";",""))),[I]);return{...f,className:T,colors:n,enableAlpha:i,enableStyle:a,innerWrapperClassName:A,inputWidth:P,isStyleSettable:E,onBorderChange:x,onSliderChange:C,onWidthChange:S,previousStyleSelection:k,sliderClassName:B,value:c,widthUnit:b,widthValue:m,size:h,__experimentalIsRenderedInSidebar:d,__next40pxDefaultSize:p}}const R0=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,ae.createElement)(hE,{as:"legend"},t):(0,ae.createElement)(FD,{as:"legend"},t):null},O0=J_(((e,t)=>{const{__next40pxDefaultSize:n=!1,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:a,enableStyle:s,hideLabelFromVision:l,innerWrapperClassName:c,inputWidth:u,isStyleSettable:d,label:p,onBorderChange:f,onSliderChange:h,onWidthChange:m,placeholder:g,__unstablePopoverProps:b,previousStyleSelection:v,showDropdownHeader:y,size:w,sliderClassName:k,value:_,widthUnit:E,widthValue:x,withSlider:S,__experimentalIsRenderedInSidebar:C,...I}=N0(e);return(0,ae.createElement)(fE,{as:"fieldset",...I,ref:t},(0,ae.createElement)(R0,{label:p,hideLabelFromVision:l}),(0,ae.createElement)(nH,{spacing:4,className:c},(0,ae.createElement)(HU,{prefix:(0,ae.createElement)(A0,{border:_,colors:r,__unstablePopoverProps:b,disableCustomColors:o,enableAlpha:a,enableStyle:s,isStyleSettable:d,onChange:f,previousStyleSelection:v,showDropdownHeader:y,__experimentalIsRenderedInSidebar:C,size:w}),label:Kn("Border width"),hideLabelFromVision:!0,min:0,onChange:m,value:_?.width||"",placeholder:g,disableUnits:i,__unstableInputWidth:u,size:w}),S&&(0,ae.createElement)(vK,{__nextHasNoMarginBottom:!0,label:Kn("Border width"),hideLabelFromVision:!0,className:k,initialPosition:0,max:100,min:0,onChange:h,step:["px","%"].includes(E)?1:.1,value:x||void 0,withInputField:!1,__next40pxDefaultSize:n})))}),"BorderControl"),M0=O0;function L0(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:a=!1,...s}=Q_(e,"BorderBoxControlSplitControls"),l=Z_(),c=(0,ae.useMemo)((()=>l((e=>$M("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[l,t,i]);return{...s,centeredClassName:(0,ae.useMemo)((()=>l(OQ,t)),[l,t]),className:c,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,ae.useMemo)((()=>l($M(nL({marginLeft:"auto"})(),";",""),t)),[l,t]),size:i,__experimentalIsRenderedInSidebar:a}}const D0=J_(((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:p,__experimentalIsRenderedInSidebar:f,...h}=L0(e),[m,g]=(0,ae.useState)(null),b=(0,ae.useMemo)((()=>l?{placement:l,offset:c,anchor:m,shift:!0}:void 0),[l,c,m]),v={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:a,isCompact:!0,__experimentalIsRenderedInSidebar:f,size:d},y=JE([g,t]);return(0,ae.createElement)(HG,{...h,ref:y,gap:4},(0,ae.createElement)(zQ,{value:p,size:d}),(0,ae.createElement)(M0,{className:n,hideLabelFromVision:!0,label:Kn("Top border"),onChange:e=>s(e,"top"),__unstablePopoverProps:b,value:p?.top,...v}),(0,ae.createElement)(M0,{hideLabelFromVision:!0,label:Kn("Left border"),onChange:e=>s(e,"left"),__unstablePopoverProps:b,value:p?.left,...v}),(0,ae.createElement)(M0,{className:u,hideLabelFromVision:!0,label:Kn("Right border"),onChange:e=>s(e,"right"),__unstablePopoverProps:b,value:p?.right,...v}),(0,ae.createElement)(M0,{className:n,hideLabelFromVision:!0,label:Kn("Bottom border"),onChange:e=>s(e,"bottom"),__unstablePopoverProps:b,value:p?.bottom,...v}))}),"BorderBoxControlSplitControls"),z0=D0;function F0(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:a="default",value:s,__experimentalIsRenderedInSidebar:l=!1,__next40pxDefaultSize:c,...u}=Q_(e,"BorderBoxControl"),d="default"===a&&c?"__unstable-large":a,p=SQ(s),f=xQ(s),h=f?(e=>{if(!e)return;const t=[],n=[],r=[];wQ.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]:IQ(r)}})(s):s,m=f?s:(e=>{if(e&&!_Q(e))return{top:e,right:e,bottom:e,left:e}})(s),g=!isNaN(parseFloat(`${h?.width}`)),[b,v]=(0,ae.useState)(!p),y=Z_(),w=(0,ae.useMemo)((()=>y(BQ,t)),[y,t]),k=(0,ae.useMemo)((()=>y($M("flex:1;",nL({marginRight:"24px"})(),";",""))),[y]),_=(0,ae.useMemo)((()=>y(NQ)),[y]);return{...u,className:w,colors:n,disableUnits:p&&!g,enableAlpha:o,enableStyle:i,hasMixedBorders:p,isLinked:b,linkedControlClassName:k,onLinkedChange:e=>{if(!e)return r(void 0);if(!p||(e=>!!e&&kQ.every((t=>void 0!==e[t])))(e))return r(_Q(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})(h,e),n={top:{...s?.top,...t},right:{...s?.right,...t},bottom:{...s?.bottom,...t},left:{...s?.left,...t}};if(SQ(n))return r(n);const o=_Q(n.top)?void 0:n.top;r(o)},onSplitChange:(e,t)=>{const n={...m,[t]:e};SQ(n)?r(n):r(e)},toggleLinked:()=>v(!b),linkedValue:h,size:d,splitValue:m,wrapperClassName:_,__experimentalIsRenderedInSidebar:l}}const j0=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,ae.createElement)(hE,{as:"label"},t):(0,ae.createElement)(FD,null,t):null},V0=J_(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:a,enableStyle:s,hasMixedBorders:l,hideLabelFromVision:c,isLinked:u,label:d,linkedControlClassName:p,linkedValue:f,onLinkedChange:h,onSplitChange:m,popoverPlacement:g,popoverOffset:b,size:v,splitValue:y,toggleLinked:w,wrapperClassName:k,__experimentalIsRenderedInSidebar:_,...E}=F0(e),[x,S]=(0,ae.useState)(null),C=(0,ae.useMemo)((()=>g?{placement:g,offset:b,anchor:x,shift:!0}:void 0),[g,b,x]),I=JE([S,t]);return(0,ae.createElement)(fE,{className:n,...E,ref:I},(0,ae.createElement)(j0,{label:d,hideLabelFromVision:c}),(0,ae.createElement)(fE,{className:k},u?(0,ae.createElement)(M0,{className:p,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:a,enableStyle:s,onChange:h,placeholder:l?Kn("Mixed"):void 0,__unstablePopoverProps:C,shouldSanitizeBorder:!1,value:f,withSlider:!0,width:"__unstable-large"===v?"116px":"110px",__experimentalIsRenderedInSidebar:_,size:v}):(0,ae.createElement)(z0,{colors:r,disableCustomColors:o,enableAlpha:a,enableStyle:s,onChange:m,popoverPlacement:g,popoverOffset:b,value:y,__experimentalIsRenderedInSidebar:_,size:v}),(0,ae.createElement)(LQ,{onClick:w,isLinked:u,size:v})))}),"BorderBoxControl"),H0=V0;function $0(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function U0(e={}){const{flat:t,...n}=e;return t||$0(Object.values(n).filter(Boolean))||"px"}function W0(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>n$(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=$0(r);return 0===o||o?`${o}${i}`:void 0}function K0(e={}){const t=W0(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function G0(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function q0({onChange:e,selectedUnits:t,setSelectedUnits:n,values:r,...o}){let i=W0(r);void 0===i&&(i=U0(t));const a=G0(r)&&K0(r),s=a?Kn("Mixed"):null;return(0,ae.createElement)(HU,{...o,"aria-label":Kn("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 Y0={topLeft:Kn("Top left"),topRight:Kn("Top right"),bottomLeft:Kn("Bottom left"),bottomRight:Kn("Bottom right")};function X0({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,ae.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(Y0).map((([e,r])=>{const[s,l]=n$(a[e]),c=a[e]?l:t[e]||t.flat;return(0,ae.createElement)(ik,{text:r,placement:"top",key:e},(0,ae.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},(0,ae.createElement)(HU,{...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 Z0({isLinked:e,...t}){const n=Kn(e?"Unlink radii":"Link radii");return(0,ae.createElement)(ik,{text:n},(0,ae.createElement)(bE,{...t,className:"component-border-radius-control__linked-button",size:"small",icon:e?AQ:PZ,iconSize:24,"aria-label":n}))}const Q0={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},J0=0,e1={px:100,em:20,rem:20};function t1({onChange:e,values:t}){const[n,r]=(0,ae.useState)(!G0(t)||!K0(t)),[o,i]=(0,ae.useState)({flat:"string"==typeof t?n$(t)[1]:void 0,topLeft:n$(t?.topLeft)[1],topRight:n$(t?.topRight)[1],bottomLeft:n$(t?.bottomLeft)[1],bottomRight:n$(t?.bottomRight)[1]}),[a]=Nm("spacing.units"),s=r$({availableUnits:a||["px","em","rem"]}),l=U0(o),c=s&&s.find((e=>e.value===l)),u=c?.step||1,[d]=n$(W0(t));return(0,ae.createElement)("fieldset",{className:"components-border-radius-control"},(0,ae.createElement)(mV.VisualLabel,{as:"legend"},Kn("Radius")),(0,ae.createElement)("div",{className:"components-border-radius-control__wrapper"},n?(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(q0,{className:"components-border-radius-control__unit-control",values:t,min:J0,onChange:e,selectedUnits:o,setSelectedUnits:i,units:s}),(0,ae.createElement)(vK,{label:Kn("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=d?d:"",min:J0,max:e1[l],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${l}`:void 0)},step:u,__nextHasNoMarginBottom:!0})):(0,ae.createElement)(X0,{min:J0,onChange:e,selectedUnits:o,setSelectedUnits:i,values:t||Q0,units:s}),(0,ae.createElement)(Z0,{onClick:()=>r(!n),isLinked:n})))}const n1=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"})),r1=[];function o1({shadow:e,onShadowChange:t,settings:n}){const r=l1(n);return(0,ae.createElement)("div",{className:"block-editor-global-styles__shadow-popover-container"},(0,ae.createElement)(Kq,{spacing:4},(0,ae.createElement)(EG,{level:5},Kn("Drop shadow")),(0,ae.createElement)(i1,{presets:r,activeShadow:e,onSelect:t}),(0,ae.createElement)("div",{className:"block-editor-global-styles__clear-shadow"},(0,ae.createElement)(bE,{variant:"tertiary",onClick:()=>t(void 0)},Kn("Clear")))))}function i1({presets:e,activeShadow:t,onSelect:n}){const{CompositeV2:r,useCompositeStoreV2:o}=Du(jj),i=o();return e?(0,ae.createElement)(r,{store:i,role:"listbox",className:"block-editor-global-styles__shadow__list","aria-label":Kn("Drop shadows")},e.map((({name:e,slug:r,shadow:o})=>(0,ae.createElement)(a1,{key:r,label:e,isActive:o===t,type:"unset"===r?"unset":"preset",onSelect:()=>n(o===t?void 0:o),shadow:o})))):null}function a1({type:e,label:t,isActive:n,onSelect:r,shadow:o}){const{CompositeItemV2:i}=Du(jj);return(0,ae.createElement)(i,{role:"option","aria-label":t,"aria-selected":n,className:Au("block-editor-global-styles__shadow__item",{"is-active":n}),render:(0,ae.createElement)(bE,{className:Au("block-editor-global-styles__shadow-indicator",{unset:"unset"===e}),onClick:r,label:t,style:{boxShadow:o},showTooltip:!0},n&&(0,ae.createElement)(VM,{icon:HM}))})}function s1({shadow:e,onShadowChange:t,settings:n}){return(0,ae.createElement)(OR,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles__shadow-dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:Au({"is-open":t}),"aria-expanded":t};return(0,ae.createElement)(bE,{...n},(0,ae.createElement)(nH,{justify:"flex-start"},(0,ae.createElement)(VM,{className:"block-editor-global-styles__toggle-icon",icon:n1,size:24}),(0,ae.createElement)(EL,null,Kn("Drop shadow"))))},renderContent:()=>(0,ae.createElement)(d0,{paddingSize:"medium"},(0,ae.createElement)(o1,{shadow:e,onShadowChange:t,settings:n}))})}function l1(e){return(0,ae.useMemo)((()=>{var t;if(!e?.shadow)return r1;const n=e?.shadow?.defaultPresets,{default:r,theme:o}=null!==(t=e?.shadow?.presets)&&void 0!==t?t:{},i={name:Kn("Unset"),slug:"unset",shadow:"none"},a=[...n&&r||r1,...o||r1];return a.length&&a.unshift(i),a}),[e])}function c1(e){return{hasBorderColor:u1(e),hasBorderRadius:d1(e),hasBorderStyle:p1(e),hasBorderWidth:f1(e),hasShadow:h1(e)}}function u1(e){return e?.border?.color}function d1(e){return e?.border?.radius}function p1(e){return e?.border?.style}function f1(e){return e?.border?.width}function h1(e){const t=l1(e);return!!e?.shadow&&t.length>0}function m1({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o,label:i}){return(0,ae.createElement)(UG,{label:i,resetAll:()=>{const r=e(n);t(r)},panelId:r,dropdownMenuProps:nq},o)}const g1={radius:!0,color:!0,width:!0,shadow:!1};function b1({as:e=m1,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,name:a,defaultControls:s=g1}){var l,c;const u=Rm(o),d=(0,ae.useCallback)((e=>oq({settings:o},"",e)),[o]),p=e=>{const t=u.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},f=(0,ae.useMemo)((()=>{if(xQ(r?.border)){const e={...r?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:d(e[t]?.color)}})),e}return{...r?.border,color:r?.border?.color?d(r?.border?.color):void 0}}),[r?.border,d]),h=e=>n({...t,border:e}),m=u1(o),g=p1(o),b=f1(o),v=d1(o),y=d(f?.radius),w=e=>h({...f,radius:e}),k=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},_=h1(o),E=d(r?.shadow),x=null!==(c=rd(null!==(l=o?.shadow?.presets)&&void 0!==l?l:{}))&&void 0!==c?c:[],S=e=>{const r=x?.find((({shadow:t})=>t===e))?.slug;n(Xu(t,["shadow"],r?`var:preset|shadow|${r}`:e||void 0))},C=(0,ae.useCallback)((e=>({...e,border:void 0,shadow:void 0})),[]),I=s?.color||s?.width,T=m||g||b||v,P=function({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const r=jm(e),o=c1(r);t||n||!e||(t=o?.hasBorderColor||o?.hasBorderStyle||o?.hasBorderWidth||o?.hasBorderRadius,n=o?.hasShadow);if(t&&n)return Kn("Border & Shadow");if(n)return Kn("Shadow");return Kn("Border")}({blockName:a,hasShadowControl:_,hasBorderControl:T});return(0,ae.createElement)(e,{resetAllFilter:C,value:t,onChange:n,panelId:i,label:P},(b||m)&&(0,ae.createElement)(Aq,{hasValue:()=>EQ(t?.border),label:Kn("Border"),onDeselect:()=>(()=>{if(k())return h({radius:t?.border?.radius});h(void 0)})(),isShownByDefault:I,panelId:i},(0,ae.createElement)(H0,{colors:u,enableAlpha:!0,enableStyle:g,onChange:e=>{const t={...e};xQ(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:p(t[e]?.color)})})):t&&(t.color=p(t.color)),h({radius:f?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:f,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large",hideLabelFromVision:!_,label:Kn("Border")})),v&&(0,ae.createElement)(Aq,{hasValue:k,label:Kn("Radius"),onDeselect:()=>w(void 0),isShownByDefault:s.radius,panelId:i},(0,ae.createElement)(t1,{values:y,onChange:e=>{w(e||void 0)}})),_&&(0,ae.createElement)(Aq,{label:Kn("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>S(void 0),isShownByDefault:s.shadow,panelId:i},T?(0,ae.createElement)(mV.VisualLabel,{as:"legend"},Kn("Shadow")):null,(0,ae.createElement)(Iq,{isBordered:!0,isSeparated:!0},(0,ae.createElement)(s1,{shadow:E,onShadowChange:S,settings:o}))))}const v1="__experimentalBorder",y1="shadow",w1=(e,t,n)=>{let r;return e.some((e=>e.colors.some((e=>e[t]===n&&(r=e,!0))))),r},k1=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=w1(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const r=w1(e,"color",n);return r||{color:n}};function _1(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function E1(e){if(xQ(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:Mm(r),borderColor:n}}function x1(e){return xQ(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function S1({label:e,children:t,resetAllFilter:n}){const r=(0,ae.useCallback)((e=>{const t=x1(e),r=n(t);return{...e,...E1(r)}}),[n]);return(0,ae.createElement)(dq,{group:"border",resetAllFilter:r,label:e},t)}function C1({clientId:e,name:t,setAttributes:n,settings:r}){const o=function(e){return Object.values(c1(e)).some(Boolean)}(r);const{style:i,borderColor:a}=du((function(t){const{style:n,borderColor:r}=t(Am).getBlockAttributes(e)||{};return{style:n,borderColor:r}}),[e]),s=(0,ae.useMemo)((()=>x1({style:i,borderColor:a})),[i,a]);if(!o)return null;const l={...Lo(t,[v1,"__experimentalDefaultControls"]),...Lo(t,[y1,"__experimentalDefaultControls"])};return(0,ae.createElement)(b1,{as:S1,panelId:e,settings:r,value:s,onChange:e=>{n(E1(e))},defaultControls:l})}function I1(e,t="any"){if("web"!==Sl.OS)return!1;const n=Lo(e,v1);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function T1(e,t,n){if(!I1(t,"color")||Dm(t,v1,"color"))return e;const r=function(e){const{borderColor:t,style:n}=e,r=PQ("border-color",t);return Au({"has-border-color":t||n?.border?.color,[r]:!!r})}(n),o=Au(e.className,r);return e.className=o||void 0,e}const P1={useBlockProps:function({name:e,borderColor:t,style:n}){const{colors:r}=function(){const[e,t,n,r,o,i,a,s,l,c]=Nm("color.custom","color.palette.custom","color.palette.theme","color.palette.default","color.defaultPalette","color.customGradient","color.gradients.custom","color.gradients.theme","color.gradients.default","color.defaultGradients"),u={disableCustomColors:!e,disableCustomGradients:!i};return u.colors=(0,ae.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:Gn("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:Gn("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:Gn("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[t,n,r,o]),u.gradients=(0,ae.useMemo)((()=>{const e=[];return s&&s.length&&e.push({name:Gn("Theme","Indicates this palette comes from the theme."),gradients:s}),c&&l&&l.length&&e.push({name:Gn("Default","Indicates this palette comes from WordPress."),gradients:l}),a&&a.length&&e.push({name:Gn("Custom","Indicates this palette is created by the user."),gradients:a}),e}),[a,s,l,c]),u.hasColorsOrGradients=!!u.colors.length||!!u.gradients.length,u}();if(!I1(e,"color")||Dm(e,v1,"color"))return{};const{color:o}=k1({colors:r,namedColor:t}),{color:i}=k1({colors:r,namedColor:_1(n?.border?.top?.color)}),{color:a}=k1({colors:r,namedColor:_1(n?.border?.right?.color)}),{color:s}=k1({colors:r,namedColor:_1(n?.border?.bottom?.color)}),{color:l}=k1({colors:r,namedColor:_1(n?.border?.left?.color)});return T1({style:Mm({borderTopColor:i||o,borderRightColor:a||o,borderBottomColor:s||o,borderLeftColor:l||o})||{}},e,{borderColor:t,style:n})},addSaveProps:T1,attributeKeys:["borderColor","style"],hasSupport:e=>I1(e,"color")};function A1(e){if(e)return`has-${e}-gradient-background`}bt("blocks.registerBlockType","core/border/addAttributes",(function(e){return I1(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e}));const B1=dE("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>$M({marginInlineStart:e},"","")),";}",(({zIndex:e})=>$M({zIndex:e},"","")),";");var N1={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const R1=dE("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",B1,"{position:relative;justify-self:start;",(({isLayered:e})=>e?N1:void 0),";}");const O1=J_((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:a=0,...s}=Q_(e,"ZStack"),l=eH(n),c=l.length-1,u=l.map(((e,t)=>{const n=i?c-t:t,r=o?a*t:a,s=(0,ae.isValidElement)(e)?e.key:t;return(0,ae.createElement)(B1,{offsetAmount:r,zIndex:n,key:s},e)}));return(0,ae.createElement)(R1,{...s,className:r,isLayered:o,ref:t},u)}),"ZStack"),M1=O1;const L1=dE("div",{target:"eln3bjz3"})("border-radius:50%;border:",FL.borderWidth," solid ",YM.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),D1=dE("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),z1=dE("div",{target:"eln3bjz1"})("background:",YM.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;"),F1=dE(nD,{target:"eln3bjz0"})("color:",YM.theme.accent,";margin-right:",oL(3),";");const j1=function({value:e,onChange:t,...n}){const r=(0,ae.useRef)(null),o=(0,ae.useRef)(),i=(0,ae.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}=qq({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,ae.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,ae.createElement)(L1,{ref:r,onMouseDown:s,className:"components-angle-picker-control__angle-circle",...n},(0,ae.createElement)(D1,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,ae.createElement)(z1,{className:"components-angle-picker-control__angle-circle-indicator"})))};const V1=(0,ae.forwardRef)((function(e,t){const{className:n,label:r=Kn("Angle"),onChange:o,value:i,...a}=e,s=Au("components-angle-picker-control",n),l=(0,ae.createElement)(F1,null,"°"),[c,u]=Yn()?[l,null]:[null,l];return(0,ae.createElement)(kL,{...a,ref:t,className:s,gap:2},(0,ae.createElement)(YV,null,(0,ae.createElement)(NU,{label:r,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===o)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;o(t)},size:"__unstable-large",step:"1",value:i,spinControls:"none",prefix:c,suffix:u})),(0,ae.createElement)(sL,{marginBottom:"1",marginTop:"auto"},(0,ae.createElement)(j1,{"aria-hidden":"true",value:i,onChange:o})))})),H1=10,$1=0,U1=H1;function W1(e){return Math.max(0,Math.min(100,e))}function K1(e,t,n){const r=e.slice();return r[t]=n,r}function G1(e,t,n){if(function(e,t,n,r=$1){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 K1(e,t,{...e[t],position:n})}function q1(e,t,n){return K1(e,t,{...e[t],color:n})}function Y1(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(W1(100*o/r))}function X1({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${$m(X1)}`;return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(bE,{"aria-label":On(Kn("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:Au("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,ae.createElement)(hE,{id:o},Kn("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 Z1({isRenderedInSidebar:e,className:t,...n}){const r=(0,ae.useMemo)((()=>({placement:"bottom",offset:8,resize:!1})),[]),o=Au("components-custom-gradient-picker__control-point-dropdown",t);return(0,ae.createElement)(m0,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function Q1({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:a,onStopControlPointChange:s,__experimentalIsRenderedInSidebar:l}){const c=(0,ae.useRef)(),u=e=>{if(void 0===c.current||null===n.current)return;const t=Y1(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=c.current;!s&&Math.abs(r-t)>=5&&(c.current.significantMoveHappened=!0),i(G1(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)},p=(0,ae.useRef)();return p.current=d,(0,ae.useEffect)((()=>()=>{p.current?.()}),[]),(0,ae.createElement)(ae.Fragment,null,o.map(((n,p)=>{const f=n?.position;return r!==f&&(0,ae.createElement)(Z1,{isRenderedInSidebar:l,key:p,onClose:s,renderToggle:({isOpen:e,onToggle:t})=>(0,ae.createElement)(X1,{key:p,onClick:()=>{c.current&&c.current.significantMoveHappened||(e?s():a(),t())},onMouseDown:()=>{window&&window.addEventListener&&(c.current={initialPosition:f,index:p,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(G1(o,p,W1(n.position-U1)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(G1(o,p,W1(n.position+U1))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,ae.createElement)(d0,{paddingSize:"none"},(0,ae.createElement)(e0,{enableAlpha:!t,color:n.color,onChange:e=>{i(q1(o,p,_r(e).toRgbString()))}}),!e&&o.length>2&&(0,ae.createElement)(nH,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,ae.createElement)(bE,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,p)),r()},variant:"link"},Kn("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}Q1.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:a}){const[s,l]=(0,ae.useState)(!1);return(0,ae.createElement)(Z1,{isRenderedInSidebar:a,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,ae.createElement)(bE,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(l(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:o$}),renderContent:()=>(0,ae.createElement)(d0,{paddingSize:"none"},(0,ae.createElement)(e0,{enableAlpha:!i,onChange:n=>{s?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return q1(e,r,n)}(e,o,_r(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,_r(n).toRgbString())),l(!0))}})),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};const J1=Q1,e2=(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},t2={id:"IDLE"};function n2({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:a=!1}){const s=(0,ae.useRef)(null),[l,c]=(0,ae.useReducer)(e2,t2),u=e=>{if(!s.current)return;const t=Y1(e.clientX,s.current);n.some((({position:e})=>Math.abs(t-e)<H1))?"MOVING_INSERTER"===l.id&&c({type:"STOP_INSERTER_MOVE"}):c({type:"MOVE_INSERTER",insertPosition:t})},d="MOVING_INSERTER"===l.id,p="INSERTING_CONTROL_POINT"===l.id;return(0,ae.createElement)("div",{className:Au("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:u,onMouseMove:u,onMouseLeave:()=>{c({type:"STOP_INSERTER_MOVE"})}},(0,ae.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,ae.createElement)("div",{ref:s,className:"components-custom-gradient-picker__markers-container"},!o&&(d||p)&&(0,ae.createElement)(J1.InsertPoint,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,insertPosition:l.insertPosition,value:n,onChange:r,onOpenInserter:()=>{c({type:"OPEN_INSERTER"})},onCloseInserter:()=>{c({type:"CLOSE_INSERTER"})}}),(0,ae.createElement)(J1,{__experimentalIsRenderedInSidebar:a,disableAlpha:i,disableRemove:o,gradientPickerDomRef:s,ignoreMarkerPosition:p?l.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{c({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{c({type:"STOP_CONTROL_CHANGE"})}})))}var r2=o(5046);const o2="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",i2={type:"angular",value:"90"},a2=[{value:"linear-gradient",label:Kn("Linear")},{value:"radial-gradient",label:Kn("Radial")}],s2={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 l2({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 c2({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(l2)].filter(Boolean).join(",")})`}function u2(e){return void 0===e.length||"%"!==e.length.type}function d2(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"}}xr([Sr]);const p2=dE(YV,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),f2=dE(YV,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),h2=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,ae.createElement)(V1,{onChange:t=>{n(c2({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},m2=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,ae.createElement)(qQ,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:Kn("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(c2({...e,orientation:e.orientation?void 0:i2,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(c2({...r,type:"radial-gradient"}))})()},options:a2,size:"__unstable-large",value:t?r:void 0})};const g2=function({value:e,onChange:t,__experimentalIsRenderedInSidebar:n=!1}){const{gradientAST:r,hasGradient:o}=function(e){let t,n=!!e;const r=null!=e?e:o2;try{t=r2.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=r2.parse(o2)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:s2[t.orientation.value].toString()}),t.colorStops.some(u2)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(e),i=function(e){return c2({type:"linear-gradient",orientation:i2,colorStops:e.colorStops})}(r),a=r.colorStops.map((e=>({color:d2(e),position:parseInt(e.length.value)})));return(0,ae.createElement)(Kq,{spacing:4,className:"components-custom-gradient-picker"},(0,ae.createElement)(n2,{__experimentalIsRenderedInSidebar:n,background:i,hasGradient:o,value:a,onChange:e=>{t(c2(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=_r(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(r,e)))}}),(0,ae.createElement)(kL,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,ae.createElement)(p2,null,(0,ae.createElement)(m2,{gradientAST:r,hasGradient:o,onChange:t})),(0,ae.createElement)(f2,null,"linear-gradient"===r.type&&(0,ae.createElement)(h2,{gradientAST:r,hasGradient:o,onChange:t}))))},b2=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function v2({className:e,clearGradient:t,gradients:n,onChange:r,value:o,...i}){const a=(0,ae.useMemo)((()=>n.map((({gradient:e,name:n,slug:i},a)=>(0,ae.createElement)(s0.Option,{key:i,value:e,isSelected:o===e,tooltipText:n||On(Kn("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,a),"aria-label":n?On(Kn("Gradient: %s"),n):On(Kn("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,ae.createElement)(s0.OptionGroup,{className:e,options:a,...i})}function y2({className:e,clearGradient:t,gradients:n,onChange:r,value:o,headingLevel:i}){const a=$m(y2);return(0,ae.createElement)(Kq,{spacing:3,className:e},n.map((({name:e,gradients:n},s)=>{const l=`color-palette-${a}-${s}`;return(0,ae.createElement)(Kq,{spacing:2,key:s},(0,ae.createElement)(l0,{level:i,id:l},e),(0,ae.createElement)(v2,{clearGradient:t,gradients:n,onChange:e=>r(e,s),value:o,"aria-labelledby":l}))})))}function w2(e){const{asButtons:t,loop:n,actions:r,headingLevel:o,"aria-label":i,"aria-labelledby":a,...s}=e,l=b2(e.gradients)?(0,ae.createElement)(y2,{headingLevel:o,...s}):(0,ae.createElement)(v2,{...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":Kn("Custom color picker.")}}return(0,ae.createElement)(s0,{...c,actions:r,options:l})}const k2=function({className:e,gradients:t=[],onChange:n,value:r,clearable:o=!0,disableCustomGradients:i=!1,__experimentalIsRenderedInSidebar:a,headingLevel:s=2,...l}){const c=(0,ae.useCallback)((()=>n(void 0)),[n]);return(0,ae.createElement)(Kq,{spacing:t.length?4:0},!i&&(0,ae.createElement)(g2,{__experimentalIsRenderedInSidebar:a,value:r,onChange:n}),(t.length>0||o)&&(0,ae.createElement)(w2,{...l,className:e,clearGradient:c,gradients:t,onChange:n,value:r,actions:o&&!i&&(0,ae.createElement)(s0.ButtonAction,{onClick:c},Kn("Clear")),headingLevel:s}))},_2=["colors","disableCustomColors","gradients","disableCustomGradients"],E2={color:"color",gradient:"gradient"};function x2({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:p=!0,enableAlpha:f,headingLevel:h}){const m=s&&(e&&e.length>0||!n),g=l&&(t&&t.length>0||!r);if(!m&&!g)return null;const b={[E2.color]:(0,ae.createElement)(b0,{value:c,onChange:g?e=>{s(e),l()}:s,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:o,clearable:d,enableAlpha:f,headingLevel:h}),[E2.gradient]:(0,ae.createElement)(k2,{value:u,onChange:m?e=>{l(e),s()}:l,gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:o,clearable:d,headingLevel:h})},v=e=>(0,ae.createElement)("div",{className:"block-editor-color-gradient-control__panel"},b[e]),{Tabs:y}=Du(jj);return(0,ae.createElement)(mV,{__nextHasNoMarginBottom:!0,className:Au("block-editor-color-gradient-control",i)},(0,ae.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,ae.createElement)(Kq,{spacing:1},p&&(0,ae.createElement)("legend",null,(0,ae.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,ae.createElement)(mV.VisualLabel,null,a))),m&&g&&(0,ae.createElement)("div",null,(0,ae.createElement)(y,{defaultTabId:u?E2.gradient:!!m&&E2.color},(0,ae.createElement)(y.TabList,null,(0,ae.createElement)(y.Tab,{tabId:E2.color},Kn("Color")),(0,ae.createElement)(y.Tab,{tabId:E2.gradient},Kn("Gradient"))),(0,ae.createElement)(y.TabPanel,{tabId:E2.color,className:"block-editor-color-gradient-control__panel",focusable:!1},b.color),(0,ae.createElement)(y.TabPanel,{tabId:E2.gradient,className:"block-editor-color-gradient-control__panel",focusable:!1},b.gradient))),!g&&v(E2.color),!m&&v(E2.gradient))))}function S2(e){const[t,n,r,o]=Nm("color.palette","color.gradients","color.custom","color.customGradient");return(0,ae.createElement)(x2,{colors:t,gradients:n,disableCustomColors:!r,disableCustomGradients:!o,...e})}const C2=function(e){return _2.every((t=>e.hasOwnProperty(t)))?(0,ae.createElement)(x2,{...e}):(0,ae.createElement)(S2,{...e})};function I2(e){const t=Rm(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function T2(e){const t=Rm(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function P2(e){const t=Rm(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function A2(e){const t=Rm(e),n=Om(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function B2(e){const t=Rm(e),n=Om(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function N2(e){const t=Rm(e),n=Om(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function R2({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,ae.createElement)(UG,{label:Kn("Elements"),resetAll:()=>{const r=e(n);t(r)},panelId:r,hasInnerWrapper:!0,headingLevel:3,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",dropdownMenuProps:nq},(0,ae.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},o))}const O2={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},M2={placement:"left-start",offset:36,shift:!0},L2=({indicators:e,label:t})=>(0,ae.createElement)(nH,{justify:"flex-start"},(0,ae.createElement)(M1,{isLayered:!1,offset:-8},e.map(((e,t)=>(0,ae.createElement)(kL,{key:t,expanded:!1},(0,ae.createElement)(KQ,{colorValue:e}))))),(0,ae.createElement)(EL,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t));function D2({isGradient:e,inheritedValue:t,userValue:n,setValue:r,colorGradientControlSettings:o}){return(0,ae.createElement)(C2,{...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 z2({label:e,hasValue:t,resetValue:n,isShownByDefault:r,indicators:o,tabs:i,colorGradientControlSettings:a,panelId:s}){const l=i.find((e=>void 0!==e.userValue)),{Tabs:c}=Du(jj);return(0,ae.createElement)(Aq,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:r,panelId:s},(0,ae.createElement)(OR,{popoverProps:M2,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const r={onClick:t,className:Au("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":On(Kn("Color %s styles"),e)};return(0,ae.createElement)(bE,{...r},(0,ae.createElement)(L2,{indicators:o,label:e}))},renderContent:()=>(0,ae.createElement)(d0,{paddingSize:"none"},(0,ae.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},1===i.length&&(0,ae.createElement)(D2,{...i[0],colorGradientControlSettings:a}),i.length>1&&(0,ae.createElement)(c,{defaultTabId:l?.key},(0,ae.createElement)(c.TabList,null,i.map((e=>(0,ae.createElement)(c.Tab,{key:e.key,tabId:e.key},e.label)))),i.map((e=>(0,ae.createElement)(c.TabPanel,{key:e.key,tabId:e.key,focusable:!1},(0,ae.createElement)(D2,{...e,colorGradientControlSettings:a})))))))}))}function F2({as:e=R2,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=O2,children:s}){const l=Rm(o),c=Om(o),u=o?.color?.custom,d=o?.color?.customGradient,p=l.length>0||u,f=c.length>0||d,h=e=>oq({settings:o},"",e),m=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},b=N2(o),v=h(r?.color?.background),y=h(t?.color?.background),w=h(r?.color?.gradient),k=h(t?.color?.gradient),_=T2(o),E=h(r?.elements?.link?.color?.text),x=h(t?.elements?.link?.color?.text),S=h(r?.elements?.link?.[":hover"]?.color?.text),C=h(t?.elements?.link?.[":hover"]?.color?.text),I=I2(o),T=h(r?.color?.text),P=h(t?.color?.text),A=e=>{let r=Xu(t,["color","text"],m(e));T===E&&(r=Xu(r,["elements","link","color","text"],m(e))),n(r)},B=[{name:"caption",label:Kn("Captions"),showPanel:P2(o)},{name:"button",label:Kn("Button"),showPanel:B2(o)},{name:"heading",label:Kn("Heading"),showPanel:A2(o)},{name:"h1",label:Kn("H1"),showPanel:A2(o)},{name:"h2",label:Kn("H2"),showPanel:A2(o)},{name:"h3",label:Kn("H3"),showPanel:A2(o)},{name:"h4",label:Kn("H4"),showPanel:A2(o)},{name:"h5",label:Kn("H5"),showPanel:A2(o)},{name:"h6",label:Kn("H6"),showPanel:A2(o)}],N=(0,ae.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...B.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),R=[I&&{key:"text",label:Kn("Text"),hasValue:()=>!!P,resetValue:()=>A(void 0),isShownByDefault:a.text,indicators:[T],tabs:[{key:"text",label:Kn("Text"),inheritedValue:T,setValue:A,userValue:P}]},b&&{key:"background",label:Kn("Background"),hasValue:()=>!!y||!!k,resetValue:()=>{const e=Xu(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:a.background,indicators:[null!=w?w:v],tabs:[p&&{key:"background",label:Kn("Color"),inheritedValue:v,setValue:e=>{const r=Xu(t,["color","background"],m(e));r.color.gradient=void 0,n(r)},userValue:y},f&&{key:"gradient",label:Kn("Gradient"),inheritedValue:w,setValue:e=>{const r=Xu(t,["color","gradient"],g(e));r.color.background=void 0,n(r)},userValue:k,isGradient:!0}].filter(Boolean)},_&&{key:"link",label:Kn("Link"),hasValue:()=>!!x||!!C,resetValue:()=>{let e=Xu(t,["elements","link",":hover","color","text"],void 0);e=Xu(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:a.link,indicators:[E,S],tabs:[{key:"link",label:Kn("Default"),inheritedValue:E,setValue:e=>{n(Xu(t,["elements","link","color","text"],m(e)))},userValue:x},{key:"hover",label:Kn("Hover"),inheritedValue:S,setValue:e=>{n(Xu(t,["elements","link",":hover","color","text"],m(e)))},userValue:C}]}].filter(Boolean);return B.forEach((({name:e,label:o,showPanel:i})=>{if(!i)return;const s=h(r?.elements?.[e]?.color?.background),l=h(r?.elements?.[e]?.color?.gradient),c=h(r?.elements?.[e]?.color?.text),u=h(t?.elements?.[e]?.color?.background),d=h(t?.elements?.[e]?.color?.gradient),b=h(t?.elements?.[e]?.color?.text),v="caption"!==e;R.push({key:e,label:o,hasValue:()=>!!(b||u||d),resetValue:()=>{const r=Xu(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:v?[c,null!=l?l:s]:[c],tabs:[p&&{key:"text",label:Kn("Text"),inheritedValue:c,setValue:r=>{n(Xu(t,["elements",e,"color","text"],m(r)))},userValue:b},p&&v&&{key:"background",label:Kn("Background"),inheritedValue:s,setValue:r=>{const o=Xu(t,["elements",e,"color","background"],m(r));o.elements[e].color.gradient=void 0,n(o)},userValue:u},f&&v&&{key:"gradient",label:Kn("Gradient"),inheritedValue:l,setValue:r=>{const o=Xu(t,["elements",e,"color","gradient"],g(r));o.elements[e].color.background=void 0,n(o)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,ae.createElement)(e,{resetAllFilter:N,value:t,onChange:n,panelId:i},R.map((e=>(0,ae.createElement)(z2,{key:e.key,...e,colorGradientControlSettings:{colors:l,disableCustomColors:!u,gradients:c,disableCustomGradients:!d},panelId:i}))),s)}xr([Sr,Tr]);const j2=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 p=[{color:u,description:Kn("text color")},{color:d,description:Kn("link color")}],f=_r(c),h=f.alpha()<1,m=f.brightness(),g={level:"AA",size:i||!1!==i&&o>=24?"large":"small"};let b="",v="";for(const e of p){if(!e.color)continue;const t=_r(e.color),n=t.isReadable(f,g),r=t.alpha()<1;if(!n){if(h||r)continue;b=m<t.brightness()?On(Kn("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):On(Kn("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),v=Kn("This color combination may be hard for people to read.");break}r&&l&&(b=Kn("Transparent text may be hard for people to read."),v=Kn("Transparent text may be hard for people to read."))}return b?(mh(v),(0,ae.createElement)("div",{className:"block-editor-contrast-checker"},(0,ae.createElement)(nX,{spokenMessage:null,status:"warning",isDismissible:!1},b))):null};function V2(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function H2({clientId:e}){const[t,n]=(0,ae.useState)(),[r,o]=(0,ae.useState)(),[i,a]=(0,ae.useState)(),s=function(e){const{refsMap:t}=(0,ae.useContext)(wK),n=(0,ae.useRef)();return n.current=e,(0,ae.useMemo)((()=>({get current(){var e;return null!==(e=t.get(n.current))&&void 0!==e?e:null}})),[t])}(e);return(0,ae.useEffect)((()=>{if(!s.current)return;o(V2(s.current).color);const e=s.current?.querySelector("a");e&&e.innerText&&a(V2(e).color);let t=s.current,r=V2(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,r=V2(t).backgroundColor;n(r)})),(0,ae.createElement)(j2,{backgroundColor:t,textColor:r,enableAlphaChecker:!0,linkColor:i})}const $2="color",U2=e=>{const t=Lo(e,$2);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},W2=e=>{if("web"!==Sl.OS)return!1;const t=Lo(e,$2);return null!==t&&"object"==typeof t&&!!t.link},K2=e=>{const t=Lo(e,$2);return null!==t&&"object"==typeof t&&!!t.gradients},G2=e=>{const t=Lo(e,$2);return t&&!1!==t.background},q2=e=>{const t=Lo(e,$2);return t&&!1!==t.text};function Y2(e,t,n){if(!U2(t)||Dm(t,$2))return e;const r=K2(t),{backgroundColor:o,textColor:i,gradient:a,style:s}=n,l=e=>!Dm(t,$2,e),c=l("text")?PQ("color",i):void 0,u=l("gradients")?A1(a):void 0,d=l("background")?PQ("background-color",o):void 0,p=l("background")||l("gradients"),f=o||s?.color?.background||r&&(a||s?.color?.gradient),h=Au(e.className,c,u,{[d]:!(r&&s?.color?.gradient||!d),"has-text-color":l("text")&&(i||s?.color?.text),"has-background":p&&f,"has-link-color":l("link")&&s?.elements?.link?.color});return e.className=h||void 0,e}function X2(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:Mm(s),textColor:n,backgroundColor:o,gradient:a}}function Z2(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 Q2({children:e,resetAllFilter:t}){const n=(0,ae.useCallback)((e=>{const n=Z2(e),r=t(n);return{...e,...X2(r)}}),[t]);return(0,ae.createElement)(dq,{group:"color",resetAllFilter:n},e)}function J2({clientId:e,name:t,setAttributes:n,settings:r}){const o=function(e){const t=I2(e),n=N2(e),r=T2(e),o=A2(e),i=B2(e),a=P2(e);return t||n||r||o||i||a}(r);const{style:i,textColor:a,backgroundColor:s,gradient:l}=du((function(t){const{style:n,textColor:r,backgroundColor:o,gradient:i}=t(Am).getBlockAttributes(e)||{};return{style:n,textColor:r,backgroundColor:o,gradient:i}}),[e]),c=(0,ae.useMemo)((()=>Z2({style:i,textColor:a,backgroundColor:s,gradient:l})),[i,a,s,l]);if(!o)return null;const u=Lo(t,[$2,"__experimentalDefaultControls"]),d="web"===Sl.OS&&!c?.color?.gradient&&(r?.color?.text||r?.color?.link)&&!1!==Lo(t,[$2,"enableContrastChecker"]);return(0,ae.createElement)(F2,{as:Q2,panelId:e,settings:r,value:c,onChange:e=>{n(X2(e))},defaultControls:u,enableContrastChecker:!1!==Lo(t,[$2,"enableContrastChecker"])},d&&(0,ae.createElement)(H2,{clientId:e}))}const e5={useBlockProps:function({name:e,backgroundColor:t,textColor:n,gradient:r,style:o}){const[i,a,s]=Nm("color.palette.custom","color.palette.theme","color.palette.default"),l=(0,ae.useMemo)((()=>[...i||[],...a||[],...s||[]]),[i,a,s]);if(!U2(e)||Dm(e,$2))return{};const c={};n&&!Dm(e,$2,"text")&&(c.color=TQ(l,n)?.color),t&&!Dm(e,$2,"background")&&(c.backgroundColor=TQ(l,t)?.color);const u=Y2({style:c},e,{textColor:n,backgroundColor:t,gradient:r,style:o}),d=t||o?.color?.background||r||o?.color?.gradient;return{...u,className:Au(u.className,!d&&cQ(o))}},addSaveProps:Y2,attributeKeys:["backgroundColor","textColor","gradient","style"],hasSupport:U2},t5={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};bt("blocks.registerBlockType","core/color/addAttribute",(function(e){return U2(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),K2(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),bt("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){const o=e.name;return Lm({linkColor:W2(o),textColor:q2(o),backgroundColor:G2(o),gradient:K2(o)},t5,e,t,n,r)}));const n5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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,ae.createElement)(Bu,{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 r5(e){const[t,...n]=e;if(!t)return null;const[,r]=n$(t.size),o=n.every((e=>{const[,t]=n$(e.size);return t===r}));return o?r:null}const o5=dE("fieldset",{target:"e8tqeku4"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),i5=dE(nH,{target:"e8tqeku3"})("height:",oL(4),";"),a5=dE(bE,{target:"e8tqeku2"})("margin-top:",oL(-1),";"),s5=dE(mV.VisualLabel,{target:"e8tqeku1"})("display:flex;gap:",oL(1),";justify-content:flex-start;margin-bottom:0;"),l5=dE("span",{target:"e8tqeku0"})("color:",YM.gray[700],";"),c5={key:"default",name:Kn("Default"),value:void 0},u5={key:"custom",name:Kn("Custom")},d5=e=>{var t;const{__next40pxDefaultSize:n,fontSizes:r,value:o,disableCustomFontSizes:i,size:a,onChange:s,onSelectCustom:l}=e,c=!!r5(r),u=[c5,...r.map((e=>{let t;if(c){const[n]=n$(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...i?[]:[u5]],d=o?null!==(t=u.find((e=>e.value===o)))&&void 0!==t?t:u5:c5;return(0,ae.createElement)(JD,{__next40pxDefaultSize:n,className:"components-font-size-picker__select",label:Kn("Font size"),hideLabelFromVision:!0,describedBy:On(Kn("Currently selected font size: %s"),d.name),options:u,value:d,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===u5?l():s(e.value)},size:a})},p5=[Kn("S"),Kn("M"),Kn("L"),Kn("XL"),Kn("XXL")],f5=[Kn("Small"),Kn("Medium"),Kn("Large"),Kn("Extra Large"),Kn("Extra Extra Large")],h5=e=>{const{fontSizes:t,value:n,__next40pxDefaultSize:r,size:o,onChange:i}=e;return(0,ae.createElement)(RV,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:r,label:Kn("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,ae.createElement)(yK,{key:e.slug,value:e.size,label:p5[t],"aria-label":e.name||f5[t],showTooltip:!0}))))},m5=["px","em","rem"],g5=(0,ae.forwardRef)(((e,t)=>{const{__next40pxDefaultSize:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:a,size:s="default",units:l=m5,value:c,withSlider:u=!1,withReset:d=!0}=e,p=r$({availableUnits:l}),f=o.length>5,h=o.find((e=>e.size===c)),m=!!c&&!h,[g,b]=(0,ae.useState)(!i&&m),v=(0,ae.useMemo)((()=>{if(g)return Kn("Custom");if(!f)return h?h.name||f5[o.indexOf(h)]:"";const e=r5(o);return e?`(${e})`:""}),[g,f,h,o]);if(0===o.length&&i)return null;const y="string"==typeof c||"string"==typeof o[0]?.size,[w,k]=n$(c,p),_=!!k&&["em","rem"].includes(k),E=void 0===c;return(0,ae.createElement)(o5,{ref:t,className:"components-font-size-picker"},(0,ae.createElement)(hE,{as:"legend"},Kn("Font size")),(0,ae.createElement)(sL,null,(0,ae.createElement)(i5,{className:"components-font-size-picker__header"},(0,ae.createElement)(s5,{"aria-label":`${Kn("Size")} ${v||""}`},Kn("Size"),v&&(0,ae.createElement)(l5,{className:"components-font-size-picker__header__hint"},v)),!i&&(0,ae.createElement)(a5,{label:Kn(g?"Use size preset":"Set custom size"),icon:n5,onClick:()=>{b(!g)},isPressed:g,size:"small"}))),(0,ae.createElement)("div",null,!!o.length&&f&&!g&&(0,ae.createElement)(d5,{__next40pxDefaultSize:n,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:()=>b(!0)}),!f&&!g&&(0,ae.createElement)(h5,{fontSizes:o,value:c,__next40pxDefaultSize: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,ae.createElement)(kL,{className:"components-font-size-picker__custom-size-control"},(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(HU,{__next40pxDefaultSize:n,label:Kn("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:c,onChange:e=>{a?.(void 0===e?void 0:y?e:parseInt(e,10))},size:s,units:y?p:[],min:0})),u&&(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(sL,{marginX:2,marginBottom:0},(0,ae.createElement)(vK,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:n,className:"components-font-size-picker__custom-input",label:Kn("Custom Size"),hideLabelFromVision:!0,value:w,initialPosition:r,withInputField:!1,onChange:e=>{a?.(void 0===e?void 0:y?e+(null!=k?k:"px"):e)},min:0,max:_?10:100,step:_?.1:1}))),d&&(0,ae.createElement)(EL,null,(0,ae.createElement)(gE,{disabled:E,__experimentalIsFocusable:!0,onClick:()=>{a?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"===s||e.__next40pxDefaultSize?"default":"small"},Kn("Reset"))))))})),b5=g5;function v5({value:e="",onChange:t,fontFamilies:n,...r}){const[o]=Nm("typography.fontFamilies");if(n||(n=o),!n||0===n.length)return null;const i=[{value:"",label:Kn("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,ae.createElement)(qQ,{label:Kn("Font"),options:i,value:e,onChange:t,labelPosition:"top",...r})}const y5=[{name:Gn("Regular","font style"),value:"normal"},{name:Gn("Italic","font style"),value:"italic"}],w5=[{name:Gn("Thin","font weight"),value:"100"},{name:Gn("Extra Light","font weight"),value:"200"},{name:Gn("Light","font weight"),value:"300"},{name:Gn("Regular","font weight"),value:"400"},{name:Gn("Medium","font weight"),value:"500"},{name:Gn("Semi Bold","font weight"),value:"600"},{name:Gn("Bold","font weight"),value:"700"},{name:Gn("Extra Bold","font weight"),value:"800"},{name:Gn("Black","font weight"),value:"900"}],k5=(e,t)=>Kn(e?t?"Appearance":"Font style":"Font weight");function _5(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:r=!0,value:{fontStyle:o,fontWeight:i},...a}=e,s=n||r,l=k5(n,r),c={key:"default",name:Kn("Default"),style:{fontStyle:void 0,fontWeight:void 0}},u=(0,ae.useMemo)((()=>n&&r?(()=>{const e=[c];return y5.forEach((({name:t,value:n})=>{w5.forEach((({name:r,value:o})=>{const i="normal"===n?r:On(Kn("%1$s %2$s"),r,t);e.push({key:`${n}-${o}`,name:i,style:{fontStyle:n,fontWeight:o}})}))})),e})():n?(()=>{const e=[c];return y5.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[c];return w5.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,ae.createElement)(ez,{...a,className:"components-font-appearance-control",label:l,describedBy:d?On(Kn(n?r?"Currently selected font appearance: %s":"Currently selected font style: %s":"Currently selected font weight: %s"),d.name):Kn("No selected font appearance"),options:u,value:d,onChange:({selectedItem:e})=>t(e.style)})}const E5=1.5;const x5=({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 E5;default:return e}},s=i?e:"";n||Mt("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,ae.createElement)("div",{className:"block-editor-line-height-control",style:l},(0,ae.createElement)(NU,{...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:Kn("Line height"),placeholder:E5,step:.01,spinFactor:10,value:s,min:0,spinControls:"custom"}))};function S5({value:e,onChange:t,__unstableInputWidth:n="60px",...r}){const[o]=Nm("spacing.units"),i=r$({availableUnits:o||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,ae.createElement)(HU,{...r,label:Kn("Letter spacing"),value:e,__unstableInputWidth:n,units:i,onChange:t})}const C5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),I5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),T5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"}));function P5({label:e,value:t,options:n,onChange:r,className:o}){return(0,ae.createElement)("fieldset",{className:Au("block-editor-segmented-text-control",o)},(0,ae.createElement)(mV.VisualLabel,{as:"legend"},e),(0,ae.createElement)("div",{className:"block-editor-segmented-text-control__buttons"},n.map((e=>(0,ae.createElement)(bE,{size:"compact",key:e.value,icon:e.icon,label:e.label,isPressed:e.value===t,onClick:()=>r(e.value)})))))}const A5=[{label:Kn("None"),value:"none",icon:i$},{label:Kn("Uppercase"),value:"uppercase",icon:C5},{label:Kn("Lowercase"),value:"lowercase",icon:I5},{label:Kn("Capitalize"),value:"capitalize",icon:T5}];function B5({className:e,value:t,onChange:n}){return(0,ae.createElement)(P5,{label:Kn("Letter case"),options:A5,className:Au("block-editor-text-transform-control",e),value:t,onChange:e=>{n(e===t?void 0:e)}})}const N5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),R5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),O5=[{label:Kn("None"),value:"none",icon:i$},{label:Kn("Underline"),value:"underline",icon:N5},{label:Kn("Strikethrough"),value:"line-through",icon:R5}];function M5({value:e,onChange:t,className:n}){return(0,ae.createElement)(P5,{label:Kn("Decoration"),options:O5,className:Au("block-editor-text-decoration-control",n),value:e,onChange:n=>{t(n===e?void 0:n)}})}const L5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),D5=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),z5=[{label:Kn("Horizontal"),value:"horizontal-tb",icon:L5},{label:Kn("Vertical"),value:Yn()?"vertical-lr":"vertical-rl",icon:D5}];function F5({className:e,value:t,onChange:n}){return(0,ae.createElement)(P5,{label:Kn("Orientation"),options:z5,className:Au("block-editor-writing-mode-control",e),value:t,onChange:e=>{n(e===t?void 0:e)}})}const j5=1,V5=6;function H5(e){return!1!==e?.typography?.defaultFontSizes&&e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function $5(e){return t=e?.typography?.fontFamilies,["default","theme","custom"].some((e=>t?.[e]?.length));var t}function U5(e){return e?.typography?.lineHeight}function W5(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function K5(e){return e?.typography?.letterSpacing}function G5(e){return e?.typography?.textTransform}function q5(e){return e?.typography?.textDecoration}function Y5(e){return e?.typography?.writingMode}function X5(e){return e?.typography?.textColumns}function Z5({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,ae.createElement)(UG,{label:Kn("Typography"),resetAll:()=>{const r=e(n);t(r)},panelId:r,dropdownMenuProps:nq},o)}const Q5={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function J5({as:e=Z5,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Q5}){var s;const l=e=>oq({settings:o},"",e),c=$5(o),u=null!==(s=o?.typography?.fontFamilies)&&void 0!==s?s:{},d=u?function(e){let t=nd.get(e);return t||(t=["default","theme","custom"].flatMap((t=>{var n;return null!==(n=e[t])&&void 0!==n?n:[]})),nd.set(e,t)),t}(u):[],p=l(r?.typography?.fontFamily),f=e=>{const r=d?.find((({fontFamily:t})=>t===e))?.slug;n(Xu(t,["typography","fontFamily"],r?`var:preset|font-family|${r}`:e||void 0))},h=H5(o),m=!o?.typography?.customFontSize,g=function(e){var t,n,r;const o=e?.typography?.fontSizes,i=!!e?.typography?.defaultFontSizes;return[...null!==(t=o?.custom)&&void 0!==t?t:[],...null!==(n=o?.theme)&&void 0!==n?n:[],...i&&null!==(r=o?.default)&&void 0!==r?r:[]]}(o),b=l(r?.typography?.fontSize),v=(e,r)=>{n(Xu(t,["typography","fontSize"],(r?.slug?`var:preset|font-size|${r?.slug}`:e)||void 0))},y=W5(o),w=function(e){return Kn(e?.typography?.fontStyle?e?.typography?.fontWeight?"Appearance":"Font style":"Font weight")}(o),k=o?.typography?.fontStyle,_=o?.typography?.fontWeight,E=l(r?.typography?.fontStyle),x=l(r?.typography?.fontWeight),S=({fontStyle:e,fontWeight:r})=>{n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:r||void 0}})},C=U5(o),I=l(r?.typography?.lineHeight),T=e=>{n(Xu(t,["typography","lineHeight"],e||void 0))},P=K5(o),A=l(r?.typography?.letterSpacing),B=e=>{n(Xu(t,["typography","letterSpacing"],e||void 0))},N=X5(o),R=l(r?.typography?.textColumns),O=e=>{n(Xu(t,["typography","textColumns"],e||void 0))},M=G5(o),L=l(r?.typography?.textTransform),D=e=>{n(Xu(t,["typography","textTransform"],e||void 0))},z=q5(o),F=l(r?.typography?.textDecoration),j=e=>{n(Xu(t,["typography","textDecoration"],e||void 0))},V=Y5(o),H=l(r?.typography?.writingMode),$=e=>{n(Xu(t,["typography","writingMode"],e||void 0))},U=(0,ae.useCallback)((e=>({...e,typography:{}})),[]);return(0,ae.createElement)(e,{resetAllFilter:U,value:t,onChange:n,panelId:i},c&&(0,ae.createElement)(Aq,{label:Kn("Font"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>f(void 0),isShownByDefault:a.fontFamily,panelId:i},(0,ae.createElement)(v5,{fontFamilies:d,value:p,onChange:f,size:"__unstable-large",__nextHasNoMarginBottom:!0})),h&&(0,ae.createElement)(Aq,{label:Kn("Size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>v(void 0),isShownByDefault:a.fontSize,panelId:i},(0,ae.createElement)(b5,{value:b,onChange:v,fontSizes:g,disableCustomFontSizes:m,withReset:!1,withSlider:!0,size:"__unstable-large"})),y&&(0,ae.createElement)(Aq,{className:"single-column",label:w,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{S({})},isShownByDefault:a.fontAppearance,panelId:i},(0,ae.createElement)(_5,{value:{fontStyle:E,fontWeight:x},onChange:S,hasFontStyles:k,hasFontWeights:_,size:"__unstable-large",__nextHasNoMarginBottom:!0})),C&&(0,ae.createElement)(Aq,{className:"single-column",label:Kn("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>T(void 0),isShownByDefault:a.lineHeight,panelId:i},(0,ae.createElement)(x5,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:I,onChange:T,size:"__unstable-large"})),P&&(0,ae.createElement)(Aq,{className:"single-column",label:Kn("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>B(void 0),isShownByDefault:a.letterSpacing,panelId:i},(0,ae.createElement)(S5,{value:A,onChange:B,size:"__unstable-large",__unstableInputWidth:"auto"})),N&&(0,ae.createElement)(Aq,{className:"single-column",label:Kn("Columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>O(void 0),isShownByDefault:a.textColumns,panelId:i},(0,ae.createElement)(NU,{label:Kn("Columns"),max:V5,min:j5,onChange:O,size:"__unstable-large",spinControls:"custom",value:R,initialPosition:1})),z&&(0,ae.createElement)(Aq,{className:"single-column",label:Kn("Decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>j(void 0),isShownByDefault:a.textDecoration,panelId:i},(0,ae.createElement)(M5,{value:F,onChange:j,size:"__unstable-large",__unstableInputWidth:"auto"})),V&&(0,ae.createElement)(Aq,{className:"single-column",label:Kn("Orientation"),hasValue:()=>!!t?.typography?.writingMode,onDeselect:()=>$(void 0),isShownByDefault:a.writingMode,panelId:i},(0,ae.createElement)(F5,{value:H,onChange:$,size:"__unstable-large",__nextHasNoMarginBottom:!0})),M&&(0,ae.createElement)(Aq,{label:Kn("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>D(void 0),isShownByDefault:a.textTransform,panelId:i},(0,ae.createElement)(B5,{value:L,onChange:D,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})))}const e3="typography.lineHeight";class t3{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 n3="typography.__experimentalFontFamily";function r3(e,t,n){if(!Do(t,n3))return e;if(Dm(t,E3,"fontFamily"))return e;if(!n?.fontFamily)return e;const r=new t3(e.className),{kebabCase:o}=Du(jj);r.add(`has-${o(n?.fontFamily)}-font-family`);const i=r.value;return e.className=i||void 0,e}const o3={useBlockProps:function({name:e,fontFamily:t}){return r3({},e,{fontFamily:t})},addSaveProps:r3,attributeKeys:["fontFamily"],hasSupport:e=>Do(e,n3)};bt("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return Do(e,n3)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e}));const i3=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};const a3="typography.fontSize";function s3(e,t,n){if(!Do(t,a3))return e;if(Dm(t,E3,"fontSize"))return e;const r=new t3(e.className);r.add(function(e){if(!e)return;const{kebabCase:t}=Du(jj);return`has-${t(e)}-font-size`}(n.fontSize));const o=r.value;return e.className=o||void 0,e}const l3={useBlockProps:function({name:e,fontSize:t,style:n}){const[r,o,i]=Nm("typography.fontSizes","typography.fluid","layout");if(!Do(e,a3)||Dm(e,E3,"fontSize")||!t&&!n?.typography?.fontSize)return;let a;return n?.typography?.fontSize&&(a={style:{fontSize:JG({size:n.typography.fontSize},{typography:{fluid:o},layout:i})}}),t&&(a={style:{fontSize:i3(r,t,n?.typography?.fontSize).size}}),a?s3(a,e,{fontSize:t}):void 0},addSaveProps:s3,attributeKeys:["fontSize","style"],hasSupport:e=>Do(e,a3)},c3={fontSize:[["fontSize"],["style","typography","fontSize"]]};bt("blocks.registerBlockType","core/font/addAttribute",(function(e){return Do(e,a3)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),bt("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,r){return Lm({fontSize:Do(e.name,a3)},c3,e,t,n,r)}));const u3=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})),d3=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})),p3=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})),f3=[{icon:u3,title:Kn("Align text left"),align:"left"},{icon:d3,title:Kn("Align text center"),align:"center"},{icon:p3,title:Kn("Align text right"),align:"right"}],h3={placement:"bottom-start"};const m3=function({value:e,onChange:t,alignmentControls:n=f3,label:r=Kn("Align text"),describedBy:o=Kn("Change text alignment"),isCollapsed:i=!0,isToolbar:a}){function s(n){return()=>t(e===n?void 0:n)}const l=n.find((t=>t.align===e)),c=a?GR:Kj,u=a?{isCollapsed:i}:{toggleProps:{describedBy:o},popoverProps:h3};return(0,ae.createElement)(c,{icon:l?l.icon:Yn()?p3:u3,label:r,controls:n.map((t=>{const{align:n}=t,r=e===n;return{...t,isActive:r,role:i?"menuitemradio":void 0,onClick:s(n)}})),...u})},g3=e=>(0,ae.createElement)(m3,{...e,isToolbar:!1}),b3="typography.textAlign",v3=[{icon:u3,title:Kn("Align text left"),align:"left"},{icon:d3,title:Kn("Align text center"),align:"center"},{icon:p3,title:Kn("Align text right"),align:"right"}],y3=["left","center","right"];function w3(e){let t;return t=Array.isArray(e)?y3.filter((t=>e.includes(t))):!0===e?[...y3]:[],t}const k3={edit:function({style:e,name:t,setAttributes:n}){const r=w3(Lo(t,b3)),o=QK();if(!r.length||"default"!==o)return null;const i=v3.filter((e=>r.includes(e.align)));return(0,ae.createElement)(Wj,{group:"block"},(0,ae.createElement)(g3,{value:e?.typography?.textAlign,onChange:t=>{const r={...e,typography:{...e?.typography,textAlign:t}};n({style:Mm(r)})},alignmentControls:i}))},useBlockProps:function({name:e,style:t}){if(!t?.typography?.textAlign)return null;if(!w3(Lo(e,b3)).length)return null;if(Dm(e,E3,"textAlign"))return null;const n=t.typography.textAlign;return{className:Au({[`has-text-align-${n}`]:n})}},addSaveProps:function(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:r}=n.style.typography,o=Lo(t,b3);w3(o).includes(r)&&!Dm(t,E3,"textAlign")&&(e.className=Au(`has-text-align-${r}`,e.className));return e},attributeKeys:["style"],hasSupport:e=>Do(e,b3,!1)};function _3(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}const E3="typography",x3=[e3,a3,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",n3,b3,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalWritingMode","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function S3(e){const t={..._3(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={..._3(t.typography,["fontFamily"]),fontSize:o?void 0:n},{style:Mm(t),fontFamily:i,fontSize:o}}function C3(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 I3({children:e,resetAllFilter:t}){const n=(0,ae.useCallback)((e=>{const n=C3(e),r=t(n);return{...e,...S3(r)}}),[t]);return(0,ae.createElement)(dq,{group:"typography",resetAllFilter:n},e)}function T3({clientId:e,name:t,setAttributes:n,settings:r}){const{style:o,fontFamily:i,fontSize:a}=du((function(t){const{style:n,fontFamily:r,fontSize:o}=t(Am).getBlockAttributes(e)||{};return{style:n,fontFamily:r,fontSize:o}}),[e]),s=function(e){const t=$5(e),n=U5(e),r=W5(e),o=K5(e),i=G5(e),a=q5(e),s=Y5(e),l=X5(e),c=H5(e);return t||n||r||o||i||c||a||s||l}(r),l=(0,ae.useMemo)((()=>C3({style:o,fontFamily:i,fontSize:a})),[o,a,i]);if(!s)return null;const c=Lo(t,[E3,"__experimentalDefaultControls"]);return(0,ae.createElement)(J5,{as:I3,panelId:e,settings:r,value:l,onChange:e=>{n(S3(e))},defaultControls:c})}const P3=dE("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),A3=dE("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),B3=({isFocused:e})=>$M({backgroundColor:"currentColor",opacity:e?1:.3},"",""),N3=dE("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",B3,";"),R3=dE(N3,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),O3=dE(N3,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),M3=dE(O3,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),L3=dE(R3,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),D3=dE(O3,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),z3=dE(R3,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"});function F3({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/24;return(0,ae.createElement)(P3,{style:{transform:`scale(${c})`},...r},(0,ae.createElement)(A3,null,(0,ae.createElement)(M3,{isFocused:i}),(0,ae.createElement)(L3,{isFocused:a}),(0,ae.createElement)(D3,{isFocused:s}),(0,ae.createElement)(z3,{isFocused:l})))}const j3=dE(HU,{target:"e1jovhle5"})({name:"1ejyr19",styles:"max-width:90px"}),V3=dE(nH,{target:"e1jovhle4"})({name:"1j1lmoi",styles:"grid-column:1/span 3"}),H3=dE(bE,{target:"e1jovhle3"})({name:"tkya7b",styles:"grid-area:1/2;justify-self:end"}),$3=dE("div",{target:"e1jovhle2"})({name:"1dfa8al",styles:"grid-area:1/3;justify-self:end"}),U3=dE(F3,{target:"e1jovhle1"})({name:"ou8xsw",styles:"flex:0 0 auto"}),W3=dE(vK,{target:"e1jovhle0"})("width:100%;margin-inline-end:",oL(2),";"),K3={px:{max:300,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:10,step:.1},rm:{max:10,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}},G3={all:Kn("All sides"),top:Kn("Top side"),bottom:Kn("Bottom side"),left:Kn("Left side"),right:Kn("Right side"),mixed:Kn("Mixed"),vertical:Kn("Top and bottom sides"),horizontal:Kn("Left and right sides")},q3={top:void 0,right:void 0,bottom:void 0,left:void 0},Y3=["top","right","bottom","left"];function X3(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function Z3(e={},t,n=Y3){const r=function(e){const t=[];if(!e?.length)return Y3;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=Y3.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>n$(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=X3(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return X3(t)}(t))&&void 0!==l?l:X3(i);return[a,s].join("")}function Q3(e={},t,n=Y3){const r=Z3(e,t,n);return isNaN(parseFloat(r))}function J3(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function e4(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function t4(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})):Y3.forEach((e=>r[e]=t)),r}const n4=()=>{};function r4({__next40pxDefaultSize:e,onChange:t=n4,onFocus:n=n4,values:r,sides:o,selectedUnits:i,setSelectedUnits:a,...s}){var l,c;const u=$m(r4,"box-control-input-all"),d=Z3(r,i,o),p=J3(r)&&Q3(r,i,o),f=p?G3.mixed:void 0,[h,m]=n$(d),g=e=>{const n=void 0!==e&&!isNaN(parseFloat(e)),i=t4(r,n?e:void 0,o);t(i)};return(0,ae.createElement)(nH,null,(0,ae.createElement)(j3,{...s,__next40pxDefaultSize:e,className:"component-box-control__unit-control",disableUnits:p,id:u,isPressEnterToChange:!0,value:d,onChange:g,onUnitChange:e=>{const t=t4(i,e,o);a(t)},onFocus:e=>{n(e,{side:"all"})},placeholder:f,label:G3.all,hideLabelFromVision:!0}),(0,ae.createElement)(W3,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":u,label:G3.all,hideLabelFromVision:!0,onChange:e=>{g(void 0!==e?[e,m].join(""):void 0)},min:0,max:null!==(l=K3[null!=m?m:"px"]?.max)&&void 0!==l?l:10,step:null!==(c=K3[null!=m?m:"px"]?.step)&&void 0!==c?c:.1,value:null!=h?h:0,withInputField:!1}))}const o4=()=>{};function i4({__next40pxDefaultSize:e,onChange:t=o4,onFocus:n=o4,values:r,selectedUnits:o,setSelectedUnits:i,sides:a,...s}){const l=$m(i4,"box-control-input"),c=e=>t=>{n(t,{side:e})},u=(e,n,o)=>{const i={...r},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[e]=a,o?.event.altKey)switch(e){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(e=>{t(e)})(i)},d=e=>t=>{const n={...o};n[e]=t,i(n)},p=a?.length?Y3.filter((e=>a.includes(e))):Y3;return(0,ae.createElement)(ae.Fragment,null,p.map((t=>{var n,i;const[p,f]=n$(r[t]),h=r[t]?f:o[t],m=[l,t].join("-");return(0,ae.createElement)(V3,{key:`box-control-${t}`,expanded:!0},(0,ae.createElement)(U3,{side:t,sides:a}),(0,ae.createElement)(ik,{placement:"top-end",text:G3[t]},(0,ae.createElement)(j3,{...s,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:m,isPressEnterToChange:!0,value:[p,h].join(""),onChange:(e,n)=>u(t,e,n),onUnitChange:d(t),onFocus:c(t),label:G3[t],hideLabelFromVision:!0})),(0,ae.createElement)(W3,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":m,label:G3[t],hideLabelFromVision:!0,onChange:e=>{u(t,void 0!==e?[e,h].join(""):void 0)},min:0,max:null!==(n=K3[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=K3[null!=h?h:"px"]?.step)&&void 0!==i?i:.1,value:null!=p?p:0,withInputField:!1}))})))}const a4=["vertical","horizontal"];function s4({__next40pxDefaultSize:e,onChange:t,onFocus:n,values:r,selectedUnits:o,setSelectedUnits:i,sides:a,...s}){const l=$m(s4,"box-control-input"),c=e=>t=>{n&&n(t,{side:e})},u=(e,n)=>{if(!t)return;const o={...r},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===e&&(o.top=i,o.bottom=i),"horizontal"===e&&(o.left=i,o.right=i),t(o)},d=e=>t=>{const n={...o};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),i(n)},p=a?.length?a4.filter((e=>a.includes(e))):a4;return(0,ae.createElement)(ae.Fragment,null,p.map((t=>{var n,i;const[p,f]=n$("vertical"===t?r.top:r.left),h="vertical"===t?o.top:o.left,m=[l,t].join("-");return(0,ae.createElement)(V3,{key:t},(0,ae.createElement)(U3,{side:t,sides:a}),(0,ae.createElement)(ik,{placement:"top-end",text:G3[t]},(0,ae.createElement)(j3,{...s,__next40pxDefaultSize:e,className:"component-box-control__unit-control",id:m,isPressEnterToChange:!0,value:[p,null!=h?h:f].join(""),onChange:e=>u(t,e),onUnitChange:d(t),onFocus:c(t),label:G3[t],hideLabelFromVision:!0,key:t})),(0,ae.createElement)(W3,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:e,"aria-controls":m,label:G3[t],hideLabelFromVision:!0,onChange:e=>u(t,void 0!==e?[e,null!=h?h:f].join(""):void 0),min:0,max:null!==(n=K3[null!=h?h:"px"]?.max)&&void 0!==n?n:10,step:null!==(i=K3[null!=h?h:"px"]?.step)&&void 0!==i?i:.1,value:null!=p?p:0,withInputField:!1}))})))}function l4({isLinked:e,...t}){const n=Kn(e?"Unlink sides":"Link sides");return(0,ae.createElement)(ik,{text:n},(0,ae.createElement)(bE,{...t,className:"component-box-control__linked-button",size:"small",icon:e?AQ:PZ,iconSize:24,"aria-label":n}))}const c4={min:0},u4=()=>{};function d4({__next40pxDefaultSize:e=!1,id:t,inputProps:n=c4,onChange:r=u4,label:o=Kn("Box Control"),values:i,units:a,sides:s,splitOnAxis:l=!1,allowReset:c=!0,resetValues:u=q3,onMouseOver:d,onMouseOut:p}){const[f,h]=jU(i,{fallback:q3}),m=f||q3,g=J3(i),b=1===s?.length,[v,y]=(0,ae.useState)(g),[w,k]=(0,ae.useState)(!g||!Q3(m)||b),[_,E]=(0,ae.useState)(e4(w,l)),[x,S]=(0,ae.useState)({top:n$(i?.top)[1],right:n$(i?.right)[1],bottom:n$(i?.bottom)[1],left:n$(i?.left)[1]}),C=function(e){const t=$m(d4,"inspector-box-control");return e||t}(t),I=`${C}-heading`,T={...n,onChange:e=>{r(e),h(e),y(!0)},onFocus:(e,{side:t})=>{E(t)},isLinked:w,units:a,selectedUnits:x,setSelectedUnits:S,sides:s,values:m,onMouseOver:d,onMouseOut:p,__next40pxDefaultSize:e};return(0,ae.createElement)(HG,{id:C,columns:3,templateColumns:"1fr min-content min-content",role:"group","aria-labelledby":I},(0,ae.createElement)(hV.VisualLabel,{id:I},o),w&&(0,ae.createElement)(V3,null,(0,ae.createElement)(U3,{side:_,sides:s}),(0,ae.createElement)(r4,{...T})),!b&&(0,ae.createElement)($3,null,(0,ae.createElement)(l4,{onClick:()=>{k(!w),E(e4(!w,l))},isLinked:w})),!w&&l&&(0,ae.createElement)(s4,{...T}),!w&&!l&&(0,ae.createElement)(i4,{...T}),c&&(0,ae.createElement)(H3,{className:"component-box-control__reset-button",variant:"secondary",size:"small",onClick:()=>{r(u),h(u),S(u),y(!1)},disabled:!v},Kn("Reset")))}const p4=d4,f4={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},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function h4({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,p;u=kH(u,l);let f=l;const h=l.length<=8,m=du((e=>{const t=e(Am).getSettings();return t?.disableCustomSpacingSizes})),[g,b]=(0,ae.useState)(!m&&void 0!==u&&!wH(u)),[v,y]=(0,ae.useState)(n),w=TV(u);u&&w!==u&&!wH(u)&&!0!==g&&b(!0);const[k]=Nm("spacing.units"),_=r$({availableUnits:k||["px","em","rem"]});let E=null;!h&&!g&&void 0!==u&&(!wH(u)||wH(u)&&t)?(f=[...l,{name:t?Kn("Mixed"):On(Kn("Custom (%s)"),u),slug:"custom",size:u}],E=f.length-1):t||(E=g?function(e,t){if(!wH(e))return e;const n=EH(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":EH(e),r=t.findIndex((e=>String(e.slug)===n));return-1!==r?r:NaN}(u,l));const x=(0,ae.useMemo)((()=>n$(E)),[E])[1]||_[0]?.value,S=parseFloat(E,10),C=(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}`},I=t?Kn("Mixed"):null,T=f.map(((e,t)=>({key:t,name:e.name}))),P=l.map(((e,t)=>({value:t,label:void 0}))),A=mH.includes(s)&&a?vH[s]:"",B=a?c?.toLowerCase():c,N=On(Kn("%1$s %2$s"),A,B).trim();return(0,ae.createElement)(nH,{className:"spacing-sizes-control__wrapper"},e&&(0,ae.createElement)(sk,{className:"spacing-sizes-control__icon",icon:e,size:24}),g&&(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(HU,{onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o,onChange:e=>r((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:E,units:_,min:v,placeholder:I,disableUnits:t,label:N,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large",onDragStart:()=>{"-"===u?.charAt(0)&&y(0)},onDrag:()=>{"-"===u?.charAt(0)&&y(0)},onDragEnd:()=>{y(n)}}),(0,ae.createElement)(vK,{onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o,value:S,min:0,max:null!==(d=f4[x]?.max)&&void 0!==d?d:10,step:null!==(p=f4[x]?.steps)&&void 0!==p?p:.1,withInputField:!1,onChange:e=>{r([e,x].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})),h&&!g&&(0,ae.createElement)(vK,{onMouseOver:i,onMouseOut:o,className:"spacing-sizes-control__range-control",value:E,onChange:e=>r(C(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===u&&r("0")},withInputField:!1,"aria-valuenow":E,"aria-valuetext":l[E]?.name,renderTooltipContent:e=>void 0===u?void 0:l[e]?.name,min:0,max:l.length-1,marks:P,label:N,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:i,onBlur:o}),!h&&!g&&(0,ae.createElement)(ez,{className:"spacing-sizes-control__custom-select-control",value:T.find((e=>e.key===E))||"",onChange:e=>{r(C(e.selectedItem.key,"selectList"))},options:T,label:N,hideLabelFromVision:!0,size:"__unstable-large",onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o}),!m&&(0,ae.createElement)(bE,{label:Kn(g?"Use size preset":"Set custom size"),icon:n5,onClick:()=>{b(!g)},isPressed:g,size:"small",className:"spacing-sizes-control__custom-toggle",iconSize:24}))}const m4=["vertical","horizontal"];function g4({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]=kH(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?m4.filter((e=>xH(o,e))):m4;return(0,ae.createElement)(ae.Fragment,null,c.map((t=>{const o="vertical"===t?s.top:s.left;return(0,ae.createElement)(h4,{key:`spacing-sizes-control-${t}`,icon:bH[t],label:vH[t],minimumCustomValue:e,onChange:l(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:o,withInputField:!1})})))}function b4({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,sides:o,spacingSizes:i,type:a,values:s}){const l=o?.length?mH.filter((e=>o.includes(e))):mH,c=e=>n=>{const r={...Object.keys(s).reduce(((e,t)=>(e[t]=kH(s[t],i),e)),{})};r[e]=n,t(r)};return(0,ae.createElement)(ae.Fragment,null,l.map((t=>(0,ae.createElement)(h4,{key:`spacing-sizes-control-${t}`,icon:bH[t],label:vH[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:s[t],withInputField:!1}))))}function v4({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,showSideInLabel:o,side:i,spacingSizes:a,type:s,values:l}){return(0,ae.createElement)(h4,{label:vH[i],minimumCustomValue:e,onChange:(c=i,e=>{const n={...Object.keys(l).reduce(((e,t)=>(e[t]=kH(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 y4=(0,ae.createElement)(sk,{icon:HM,size:24});function w4({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=xH(e,"horizontal"),r=xH(e,"vertical");n&&r?t.axial={label:vH.axial,icon:bH.axial}:n?t.axial={label:vH.horizontal,icon:bH.horizontal}:r&&(t.axial={label:vH.vertical,icon:bH.vertical});let o=0;return mH.forEach((n=>{e.includes(n)&&(o+=1,t[n]={label:vH[n],icon:bH[n]})})),o>1&&(t.custom={label:vH.custom,icon:bH.custom}),t}(n),i=o[r].icon,{custom:a,...s}=o;return(0,ae.createElement)(WR,{icon:i,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{size:"small"}},(({onClose:e})=>(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Gj,null,Object.entries(s).map((([n,{label:o,icon:i}])=>{const a=r===n;return(0,ae.createElement)(Yj,{key:n,icon:i,iconPosition:"left",isSelected:a,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:a?y4:void 0},o)}))),!!a&&(0,ae.createElement)(Gj,null,(0,ae.createElement)(Yj,{icon:a.icon,iconPosition:"left",isSelected:r===yH.custom,role:"menuitemradio",onClick:()=>{t(yH.custom),e()},suffix:r===yH.custom?y4:void 0},a.label)))))}function k4({inputProps:e,label:t,minimumCustomValue:n=0,onChange:r,onMouseOut:o,onMouseOver:i,showSideInLabel:a=!0,sides:s=mH,useSelect:l,values:c}){const u=function(){const e=[{name:0,slug:"0",size:0}],[t]=Nm("spacing.spacingSizes");return t&&e.push(...t),e.length>8&&e.unshift({name:Kn("Default"),slug:"default",size:void 0}),e}(),d=c||gH,p=1===s?.length,f=s?.includes("horizontal")&&s?.includes("vertical")&&2===s?.length,[h,m]=(0,ae.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(xH(t)&&(s||l))return yH.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?yH.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},b=mH.includes(h)&&a?vH[h]:"",v=On(Kn("%1$s %2$s"),t,b).trim(),y=On(Gn("%s options","Button label to reveal side configuration options"),t);return(0,ae.createElement)("fieldset",{className:"spacing-sizes-control"},(0,ae.createElement)(nH,{className:"spacing-sizes-control__header"},(0,ae.createElement)(mV.VisualLabel,{as:"legend",className:"spacing-sizes-control__label"},v),!p&&!f&&(0,ae.createElement)(w4,{label:y,onChange:m,sides:s,value:h})),(0,ae.createElement)(Kq,{spacing:.5},h===yH.axial?(0,ae.createElement)(g4,{...g}):h===yH.custom?(0,ae.createElement)(b4,{...g}):(0,ae.createElement)(v4,{side:h,...g,showSideInLabel:a})))}const _4={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},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function E4({label:e=Kn("Height"),onChange:t,value:n}){var r,o;const i=parseFloat(n),[a]=Nm("spacing.units"),s=r$({availableUnits:a||["%","px","em","rem","vh","vw"]}),l=(0,ae.useMemo)((()=>n$(n)),[n])[1]||s[0]?.value||"px";return(0,ae.createElement)("fieldset",{className:"block-editor-height-control"},(0,ae.createElement)(mV.VisualLabel,{as:"legend"},e),(0,ae.createElement)(kL,null,(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(HU,{value:n,units:s,onChange:t,onUnitChange:e=>{const[r,o]=n$(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):["%","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax"].includes(e)&&r>100&&t(100+e)},min:0,size:"__unstable-large",label:e,hideLabelFromVision:!0})),(0,ae.createElement)(EL,{isBlock:!0},(0,ae.createElement)(sL,{marginX:2,marginBottom:0},(0,ae.createElement)(vK,{value:i,min:0,max:null!==(r=_4[l]?.max)&&void 0!==r?r:100,step:null!==(o=_4[l]?.step)&&void 0!==o?o:.1,withInputField:!1,onChange:e=>{t([e,l].join(""))},__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})))))}function x4(e,t){const{orientation:n="horizontal"}=t;return Kn("fill"===e?"Stretch to fill available space.":"fixed"===e&&"horizontal"===n?"Specify a fixed width.":"fixed"===e?"Specify a fixed height.":"Fit contents.")}function S4({value:e={},onChange:t,parentLayout:n,isShownByDefault:r,panelId:o}){const{selfStretch:i,flexSize:a,columnStart:s,rowStart:l,columnSpan:c,rowSpan:u}=e,{type:d,default:{type:p="default"}={},orientation:f="horizontal"}=null!=n?n:{},h=d||p,m=Kn("horizontal"===f?"Width":"Height");return(0,ae.useEffect)((()=>{"fixed"!==i||a||t({...e,selfStretch:"fit"})}),[]),(0,ae.createElement)(ae.Fragment,null,"flex"===h&&(0,ae.createElement)(Kq,{as:Aq,spacing:2,hasValue:()=>!!i,label:m,onDeselect:()=>{t({selfStretch:void 0,flexSize:void 0})},isShownByDefault:r,panelId:o},(0,ae.createElement)(RV,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:C4(n),value:i||"fit",help:x4(i,n),onChange:e=>{t({selfStretch:e,flexSize:"fixed"!==e?null:a})},isBlock:!0},(0,ae.createElement)(yK,{key:"fit",value:"fit",label:Kn("Fit")}),(0,ae.createElement)(yK,{key:"fill",value:"fill",label:Kn("Fill")}),(0,ae.createElement)(yK,{key:"fixed",value:"fixed",label:Kn("Fixed")})),"fixed"===i&&(0,ae.createElement)(HU,{size:"__unstable-large",onChange:e=>{t({selfStretch:i,flexSize:e})},value:a})),"grid"===h&&(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(nH,{as:Aq,hasValue:()=>!!c||!!u,label:Kn("Grid span"),onDeselect:()=>{t({columnSpan:void 0,rowSpan:void 0})},isShownByDefault:r,panelId:o},(0,ae.createElement)(wU,{size:"__unstable-large",label:Kn("Column span"),type:"number",onChange:e=>{t({columnStart:s,rowStart:l,rowSpan:u,columnSpan:e})},value:c,min:1}),(0,ae.createElement)(wU,{size:"__unstable-large",label:Kn("Row span"),type:"number",onChange:e=>{t({columnStart:s,rowStart:l,columnSpan:c,rowSpan:e})},value:u,min:1})),window.__experimentalEnableGridInteractivity&&(0,ae.createElement)(kL,{as:Aq,hasValue:()=>!!s||!!l,label:Kn("Grid placement"),onDeselect:()=>{t({columnStart:void 0,rowStart:void 0})},isShownByDefault:!1,panelId:o},(0,ae.createElement)(EL,{style:{width:"50%"}},(0,ae.createElement)(wU,{size:"__unstable-large",label:Kn("Column"),type:"number",onChange:e=>{t({columnStart:e,rowStart:l,columnSpan:c,rowSpan:u})},value:s,min:1,max:n?.columnCount?n.columnCount-(null!=c?c:1)+1:void 0})),(0,ae.createElement)(EL,{style:{width:"50%"}},(0,ae.createElement)(wU,{size:"__unstable-large",label:Kn("Row"),type:"number",onChange:e=>{t({columnStart:s,rowStart:e,columnSpan:c,rowSpan:u})},value:l,min:1,max:n?.rowCount?n.rowCount-(null!=u?u:1)+1:void 0})))))}function C4(e){const{orientation:t="horizontal"}=e;return Kn("horizontal"===t?"Width":"Height")}function I4({panelId:e,value:t,onChange:n=()=>{},options:r,defaultValue:o="auto",hasValue:i,isShownByDefault:a=!0}){const s=null!=t?t:"auto",[l,c,u]=Nm("dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),d=c?.map((({name:e,ratio:t})=>({label:e,value:t}))),p=l?.map((({name:e,ratio:t})=>({label:e,value:t}))),f=[{label:Gn("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?p:[],...d||[],{label:Gn("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];return(0,ae.createElement)(Aq,{hasValue:i||(()=>s!==o),label:Kn("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:a,panelId:e},(0,ae.createElement)(qQ,{label:Kn("Aspect ratio"),value:s,options:null!=r?r:f,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0}))}const T4=["horizontal","vertical"];function P4(e){return e?.layout?.contentSize}function A4(e){return e?.layout?.wideSize}function B4(e){return e?.spacing?.padding}function N4(e){return e?.spacing?.margin}function R4(e){return e?.spacing?.blockGap}function O4(e){return e?.dimensions?.minHeight}function M4(e){return e?.dimensions?.aspectRatio}function L4(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||"grid"===r||"grid"===n)&&o;return!!e?.layout&&i}function D4(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 z4(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function F4({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,ae.createElement)(UG,{label:Kn("Dimensions"),resetAll:()=>{const r=e(n);t(r)},panelId:r,dropdownMenuProps:nq},o)}const j4={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function V4({as:e=F4,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=j4,onVisualize:s=()=>{},includeLayoutControls:l=!1}){var c,u,d,p,f,h,m,g;const{dimensions:b,spacing:v}=o,y=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=oq({settings:{dimensions:b,spacing:v}},"",e[n]),t)),{}):oq({settings:{dimensions:b,spacing:v}},"",e),w=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),k=r$({availableUnits:o?.spacing?.units||["%","px","em","rem","vw"]}),_=-1/0,[E,x]=(0,ae.useState)(_),S=P4(o)&&l,C=y(r?.layout?.contentSize),I=e=>{n(Xu(t,["layout","contentSize"],e||void 0))},T=A4(o)&&l,P=y(r?.layout?.wideSize),A=e=>{n(Xu(t,["layout","wideSize"],e||void 0))},B=B4(o),N=z4(y(r?.spacing?.padding)),R=Array.isArray(o?.spacing?.padding)?o?.spacing?.padding:o?.spacing?.padding?.sides,O=R&&R.some((e=>T4.includes(e))),M=e=>{const r=D4(e,R);n(Xu(t,["spacing","padding"],r))},L=()=>s("padding"),D=N4(o),z=z4(y(r?.spacing?.margin)),F=Array.isArray(o?.spacing?.margin)?o?.spacing?.margin:o?.spacing?.margin?.sides,j=F&&F.some((e=>T4.includes(e))),V=e=>{const r=D4(e,F);n(Xu(t,["spacing","margin"],r))},H=()=>s("margin"),$=R4(o),U=y(r?.spacing?.blockGap),W=function(e){return e&&"string"==typeof e?{top:e}:e?{...e,right:e?.left,bottom:e?.top}:e}(U),K=Array.isArray(o?.spacing?.blockGap)?o?.spacing?.blockGap:o?.spacing?.blockGap?.sides,G=K&&K.some((e=>T4.includes(e))),q=e=>{n(Xu(t,["spacing","blockGap"],e))},Y=e=>{e||q(null),!G&&e?.hasOwnProperty("top")?q(e.top):q({top:e?.top,left:e?.left})},X=O4(o),Z=y(r?.dimensions?.minHeight),Q=e=>{const r=Xu(t,["dimensions","minHeight"],e);n(Xu(r,["dimensions","aspectRatio"],void 0))},J=M4(o),ee=y(r?.dimensions?.aspectRatio),te=L4(o),ne=r?.layout,re=(0,ae.useCallback)((e=>({...e,layout:Mm({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0,aspectRatio:void 0}})),[]),oe=()=>s(!1),ie={min:E,onDragStart:()=>{x(0)},onDragEnd:()=>{x(_)}};return(0,ae.createElement)(e,{resetAllFilter:re,value:t,onChange:n,panelId:i},(S||T)&&(0,ae.createElement)("span",{className:"span-columns"},Kn("Set the width of the main content area.")),S&&(0,ae.createElement)(Aq,{className:"single-column",label:Kn("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>I(void 0),isShownByDefault:null!==(c=a.contentSize)&&void 0!==c?c:j4.contentSize,panelId:i},(0,ae.createElement)(nH,{alignment:"flex-end",justify:"flex-start"},(0,ae.createElement)(HU,{label:Kn("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:C||"",onChange:e=>{I(e)},units:k}),(0,ae.createElement)(fE,null,(0,ae.createElement)(VM,{icon:$U})))),T&&(0,ae.createElement)(Aq,{className:"single-column",label:Kn("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>A(void 0),isShownByDefault:null!==(u=a.wideSize)&&void 0!==u?u:j4.wideSize,panelId:i},(0,ae.createElement)(nH,{alignment:"flex-end",justify:"flex-start"},(0,ae.createElement)(HU,{label:Kn("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:P||"",onChange:e=>{A(e)},units:k}),(0,ae.createElement)(fE,null,(0,ae.createElement)(VM,{icon:UU})))),B&&(0,ae.createElement)(Aq,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:Kn("Padding"),onDeselect:()=>M(void 0),isShownByDefault:null!==(d=a.padding)&&void 0!==d?d:j4.padding,className:Au({"tools-panel-item-spacing":w}),panelId:i},!w&&(0,ae.createElement)(p4,{values:N,onChange:M,label:Kn("Padding"),sides:R,units:k,allowReset:!1,splitOnAxis:O,onMouseOver:L,onMouseOut:oe}),w&&(0,ae.createElement)(k4,{values:N,onChange:M,label:Kn("Padding"),sides:R,units:k,allowReset:!1,onMouseOver:L,onMouseOut:oe})),D&&(0,ae.createElement)(Aq,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:Kn("Margin"),onDeselect:()=>V(void 0),isShownByDefault:null!==(p=a.margin)&&void 0!==p?p:j4.margin,className:Au({"tools-panel-item-spacing":w}),panelId:i},!w&&(0,ae.createElement)(p4,{values:z,onChange:V,inputProps:ie,label:Kn("Margin"),sides:F,units:k,allowReset:!1,splitOnAxis:j,onMouseOver:H,onMouseOut:oe}),w&&(0,ae.createElement)(k4,{values:z,onChange:V,minimumCustomValue:-1/0,label:Kn("Margin"),sides:F,units:k,allowReset:!1,onMouseOver:H,onMouseOut:oe})),$&&(0,ae.createElement)(Aq,{hasValue:()=>!!t?.spacing?.blockGap,label:Kn("Block spacing"),onDeselect:()=>q(void 0),isShownByDefault:null!==(f=a.blockGap)&&void 0!==f?f:j4.blockGap,className:Au({"tools-panel-item-spacing":w}),panelId:i},!w&&(G?(0,ae.createElement)(p4,{label:Kn("Block spacing"),min:0,onChange:Y,units:k,sides:K,values:W,allowReset:!1,splitOnAxis:G}):(0,ae.createElement)(HU,{label:Kn("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:q,units:k,value:U})),w&&(0,ae.createElement)(k4,{label:Kn("Block spacing"),min:0,onChange:Y,showSideInLabel:!1,sides:G?K:["top"],values:W,allowReset:!1})),te&&(0,ae.createElement)(S4,{value:ne,onChange:e=>{n({...t,layout:{...e}})},parentLayout:o?.parentLayout,panelId:i,isShownByDefault:null!==(h=a.childLayout)&&void 0!==h?h:j4.childLayout}),X&&(0,ae.createElement)(Aq,{hasValue:()=>!!t?.dimensions?.minHeight,label:Kn("Minimum height"),onDeselect:()=>{Q(void 0)},isShownByDefault:null!==(m=a.minHeight)&&void 0!==m?m:j4.minHeight,panelId:i},(0,ae.createElement)(E4,{label:Kn("Minimum height"),value:Z,onChange:Q})),J&&(0,ae.createElement)(I4,{hasValue:()=>!!t?.dimensions?.aspectRatio,value:ee,onChange:e=>{const r=Xu(t,["dimensions","aspectRatio"],e);n(Xu(r,["dimensions","minHeight"],void 0))},panelId:i,isShownByDefault:null!==(g=a.aspectRatio)&&void 0!==g?g:j4.aspectRatio}))}function H4({clientId:e,value:t,computeStyle:n,forceShow:r}){const o=EK(e),[i,a]=(0,ae.useReducer)((()=>n(o)));(0,ae.useLayoutEffect)((()=>{o&&window.requestAnimationFrame((()=>window.requestAnimationFrame(a)))}),[o,t]);const s=(0,ae.useRef)(t),[l,c]=(0,ae.useState)(!1);return(0,ae.useEffect)((()=>{if(ss(t,s.current)||r)return;c(!0),s.current=t;const e=setTimeout((()=>{c(!1)}),400);return()=>{c(!1),clearTimeout(e)}}),[t,r]),l||r?(0,ae.createElement)(TK,{clientId:e,__unstablePopoverSlot:"block-toolbar"},(0,ae.createElement)("div",{className:"block-editor__spacing-visualizer",style:i})):null}function $4(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function U4({clientId:e,value:t,forceShow:n}){return(0,ae.createElement)(H4,{clientId:e,value:t?.spacing?.margin,computeStyle:e=>{const t=$4(e,"margin-top"),n=$4(e,"margin-right"),r=$4(e,"margin-bottom"),o=$4(e,"margin-left");return{borderTopWidth:t,borderRightWidth:n,borderBottomWidth:r,borderLeftWidth:o,top:t?`-${t}`:0,right:n?`-${n}`:0,bottom:r?`-${r}`:0,left:o?`-${o}`:0}},forceShow:n})}function W4({clientId:e,value:t,forceShow:n}){return(0,ae.createElement)(H4,{clientId:e,value:t?.spacing?.padding,computeStyle:e=>({borderTopWidth:$4(e,"padding-top"),borderRightWidth:$4(e,"padding-right"),borderBottomWidth:$4(e,"padding-bottom"),borderLeftWidth:$4(e,"padding-left")}),forceShow:n})}const K4="dimensions",G4="spacing";function q4({children:e,resetAllFilter:t}){const n=(0,ae.useCallback)((e=>{const n=e.style,r=t(n);return{...e,style:r}}),[t]);return(0,ae.createElement)(dq,{group:"dimensions",resetAllFilter:n},e)}function Y4({clientId:e,name:t,setAttributes:n,settings:r}){const o=function(e){const t=P4(e),n=A4(e),r=B4(e),o=N4(e),i=R4(e),a=O4(e),s=M4(e),l=L4(e);return"web"===Sl.OS&&(t||n||r||o||i||a||s||l)}(r),i=du((t=>t(Am).getBlockAttributes(e)?.style),[e]),[a,s]=function(){const[e,t]=(0,ae.useState)(!1),{hideBlockInterface:n,showBlockInterface:r}=Du(Uc(Am));return(0,ae.useEffect)((()=>{e?n():r()}),[e,r,n]),[e,t]}();if(!o)return null;const l={...Lo(t,[K4,"__experimentalDefaultControls"]),...Lo(t,[G4,"__experimentalDefaultControls"])};return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(V4,{as:q4,panelId:e,settings:r,value:i,onChange:e=>{n({style:Mm(e)})},defaultControls:l,onVisualize:s}),!!r?.spacing?.padding&&(0,ae.createElement)(W4,{forceShow:"padding"===a,clientId:e,value:i}),!!r?.spacing?.margin&&(0,ae.createElement)(U4,{forceShow:"margin"===a,clientId:e,value:i}))}function X4(e,t="any"){if("web"!==Sl.OS)return!1;const n=Lo(e,K4);return!0===n||("any"===t?!(!n?.aspectRatio&&!n?.minHeight):!!n?.[t])}const Z4={useBlockProps:function({name:e,minHeight:t,style:n}){if(!X4(e,"aspectRatio")||Dm(e,K4,"aspectRatio"))return{};const r=Au({"has-aspect-ratio":!!n?.dimensions?.aspectRatio}),o={};n?.dimensions?.aspectRatio?o.minHeight="unset":(t||n?.dimensions?.minHeight)&&(o.aspectRatio="unset");return{className:r,style:o}},attributeKeys:["minHeight","style"],hasSupport:e=>X4(e,"aspectRatio")};const Q4=[...x3,v1,$2,K4,aQ,G4,y1],J4=e=>Q4.some((t=>Do(e,t)));function e6(e={}){const t={};return BW(e).forEach((e=>{t[e.key]=e.value})),t}const t6={[`${v1}.__experimentalSkipSerialization`]:["border"],[`${$2}.__experimentalSkipSerialization`]:[$2],[`${E3}.__experimentalSkipSerialization`]:[E3],[`${K4}.__experimentalSkipSerialization`]:[K4],[`${G4}.__experimentalSkipSerialization`]:[G4],[`${y1}.__experimentalSkipSerialization`]:[y1]},n6={...t6,[`${K4}.aspectRatio`]:[`${K4}.aspectRatio`],[`${aQ}`]:[aQ]},r6={[`${K4}.aspectRatio`]:!0,[`${aQ}`]:!0},o6={gradients:"gradient"};function i6(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;i6(r[t],[n],!0)}else 1===e.length&&delete r[e[0]]})),r}function a6(e,t,n,r=n6){if(!J4(t))return e;let{style:o}=n;return Object.entries(r).forEach((([e,n])=>{const r=r6[e]||Lo(t,e);!0===r&&(o=i6(o,n)),Array.isArray(r)&&r.forEach((e=>{const t=o6[e]||e;o=i6(o,[[...n,t]])}))})),e.style={...e6(o),...e.style},e}const s6={edit:function({clientId:e,name:t,setAttributes:n,__unstableParentLayout:r}){const o={clientId:e,name:t,setAttributes:n,settings:jm(t,r)};return"default"!==QK()?null:(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(J2,{...o}),(0,ae.createElement)(dQ,{...o}),(0,ae.createElement)(T3,{...o}),(0,ae.createElement)(C1,{...o}),(0,ae.createElement)(Y4,{...o}))},hasSupport:J4,addSaveProps:a6,attributeKeys:["style"],useBlockProps:function e({name:t,style:n}){const r=`wp-elements-${$m(e)}`,o=`.editor-styles-wrapper .${r}`,i=n?.elements,a=(0,ae.useMemo)((()=>{if(!i)return;const e=[];return l6.forEach((({elementType:n,pseudo:r,elements:a})=>{if(Dm(t,$2,n))return;const s=i?.[n];if(s){const t=iq(o,Po[n]);e.push(AW(s,{selector:t})),r&&r.forEach((t=>{s[t]&&e.push(AW(s[t],{selector:iq(o,`${Po[n]}${t}`)}))}))}a&&a.forEach((t=>{i[t]&&e.push(AW(i[t],{selector:iq(o,Po[t])}))}))})),e.length>0?e.join(""):void 0}),[o,i,t]);return Fm({css:a}),a6({className:r},t,{style:n},t6)}},l6=[{elementType:"button"},{elementType:"link",pseudo:[":hover"]},{elementType:"heading",elements:["h1","h2","h3","h4","h5","h6"]}];bt("blocks.registerBlockType","core/style/addAttribute",(function(e){return J4(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));bt("blocks.registerBlockType","core/settings/addAttribute",(function(e){return Do(e,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e}));const c6=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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 u6(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} )`}xr([Sr]);const d6=function({values:e}){return e?(0,ae.createElement)(KQ,{colorValue:u6(e,"135deg")}):(0,ae.createElement)(sk,{icon:c6})};function p6({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[a,s]=(0,ae.useState)(!1),l=$m(p6,"color-list-picker-option"),c=`${l}__label`,u=`${l}__content`;return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(bE,{className:"components-color-list-picker__swatch-button",onClick:()=>s((e=>!e)),"aria-expanded":a,"aria-controls":u},(0,ae.createElement)(nH,{justify:"flex-start",spacing:2},t?(0,ae.createElement)(KQ,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,ae.createElement)(sk,{icon:c6}),(0,ae.createElement)("span",{id:c},e))),(0,ae.createElement)("div",{role:"group",id:u,"aria-labelledby":c,"aria-hidden":!a},a&&(0,ae.createElement)(b0,{"aria-label":Kn("Color options"),className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o})))}const f6=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,ae.createElement)("div",{className:"components-color-list-picker"},t.map(((t,a)=>(0,ae.createElement)(p6,{key:a,label:t,value:n[a],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[a]=e,i(t)}}))))},h6=["#333","#CCC"];function m6({value:e,onChange:t}){const n=!!e,r=n?e:h6,o=u6(r),i=function(e){return e.map(((t,n)=>({position:100*n/(e.length-1),color:t})))}(r);return(0,ae.createElement)(n2,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}const g6=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,...p}){const[f,h]=(0,ae.useMemo)((()=>{return!(e=o)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:_r(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]),m="unset"===l,g=Kn("Unset"),b=(0,ae.createElement)(s0.Option,{key:"unset",value:"unset",isSelected:m,tooltipText:g,"aria-label":g,className:"components-duotone-picker__color-indicator",onClick:()=>{c(m?void 0:"unset")}}),v=i.map((({colors:e,slug:t,name:n})=>{const r={background:u6(e,"135deg"),color:"transparent"},o=null!=n?n:On(Kn("Duotone code: %s"),t),i=n?On(Kn("Duotone: %s"),n):o,a=Ps()(e,l);return(0,ae.createElement)(s0.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":Kn("Custom color picker.")}}const w=r?[b,...v]:v;return(0,ae.createElement)(s0,{...p,...y,options:w,actions:!!n&&(0,ae.createElement)(s0.ButtonAction,{onClick:()=>c(void 0)},Kn("Clear"))},(0,ae.createElement)(sL,{paddingTop:0===w.length?0:4},(0,ae.createElement)(Kq,{spacing:3},!a&&!s&&(0,ae.createElement)(m6,{value:m?void 0:l,onChange:c}),!s&&(0,ae.createElement)(f6,{labels:[Kn("Shadows"),Kn("Highlights")],colors:o,value:m?void 0:l,disableCustomColors:a,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=f),e[1]||(e[1]=h);const t=e.length>=2?e:void 0;c(t)}}))))},b6=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"}));const v6=function e({id:t,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:a,onChange:s}){let l;l="unset"===a?(0,ae.createElement)(KQ,{className:"block-editor-duotone-control__unset-indicator"}):a?(0,ae.createElement)(d6,{values:a}):(0,ae.createElement)(VM,{icon:b6});const c=Kn("Apply duotone filter"),u=`${$m(e,"duotone-control",t)}__description`;return(0,ae.createElement)(OR,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:Kn("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,ae.createElement)(YE,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==mN||(n.preventDefault(),t())},label:c,icon:l}),renderContent:()=>(0,ae.createElement)(Gj,{label:Kn("Duotone")},(0,ae.createElement)("p",null,Kn("Create a two-tone color effect without losing your original image.")),(0,ae.createElement)(g6,{"aria-label":c,"aria-describedby":u,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:a,onChange:s}))})};function y6(e){return`${e}{filter:none}`}function w6(e,t){return`${e}{filter:url(#${t})}`}function k6(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=_r(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 _6(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 Zu(i,`${l}.root`,null)||Zu(i,l,null)||e}const t=Zu(a,`${l}.__experimentalSelector`,null);return t?iq(c,t):e}let d;return s&&(d=Zu(i,l,null)),d||(r?_6(e,u[0],n):null)}const E6=[];function x6(e,{presetSetting:t,defaultSetting:n}){const r=!e?.color?.[n],o=e?.color?.[t]?.custom||E6,i=e?.color?.[t]?.theme||E6,a=e?.color?.[t]?.default||E6;return(0,ae.useMemo)((()=>[...o,...i,...r?E6:a]),[r,o,i,a])}function S6(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length>0}function C6({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,ae.createElement)(UG,{label:Gn("Filters","Name for applying graphical effects"),resetAll:()=>{const r=e(n);t(r)},panelId:r,dropdownMenuProps:nq},o)}const I6={duotone:!0},T6={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:Kn("Duotone")},P6=({indicator:e,label:t})=>(0,ae.createElement)(nH,{justify:"flex-start"},(0,ae.createElement)(M1,{isLayered:!1,offset:-8},(0,ae.createElement)(kL,{expanded:!1},"unset"!==e&&e?(0,ae.createElement)(d6,{values:e}):(0,ae.createElement)(KQ,{className:"block-editor-duotone-control__unset-indicator"}))),(0,ae.createElement)(EL,{title:t},t));function A6({as:e=C6,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=I6}){const s=S6(o),l=x6(o,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),c=x6(o,{presetSetting:"palette",defaultSetting:"defaultPalette"}),u=(d=r?.filter?.duotone,oq({settings:o},"",d));var d;const p=e=>{const r=l.find((({colors:t})=>t===e)),o=r?`var:preset|duotone|${r.slug}`:e;n(Xu(t,["filter","duotone"],o))},f=(0,ae.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,ae.createElement)(e,{resetAllFilter:f,value:t,onChange:n,panelId:i},s&&(0,ae.createElement)(Aq,{label:Kn("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>p(void 0),isShownByDefault:a.duotone,panelId:i},(0,ae.createElement)(OR,{popoverProps:T6,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:Au({"is-open":t}),"aria-expanded":t};return(0,ae.createElement)(Iq,{isBordered:!0,isSeparated:!0},(0,ae.createElement)(bE,{...n},(0,ae.createElement)(P6,{indicator:u,label:Kn("Duotone")})))},renderContent:()=>(0,ae.createElement)(d0,{paddingSize:"small"},(0,ae.createElement)(Gj,{label:Kn("Duotone")},(0,ae.createElement)("p",null,Kn("Create a two-tone color effect without losing your original image.")),(0,ae.createElement)(g6,{colorPalette:c,duotonePalette:l,disableCustomColors:!0,disableCustomDuotone:!0,value:u,onChange:p})))})))}const B6=[],N6=window?.navigator.userAgent&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&!window.navigator.userAgent.includes("Chromium");function R6({presetSetting:e,defaultSetting:t}){const[n,r,o,i]=Nm(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,ae.useMemo)((()=>[...r||B6,...o||B6,...n&&i||B6]),[n,r,o,i])}function O6(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}xr([Sr]);const M6={shareWithChildBlocks:!0,edit:function({style:e,setAttributes:t,name:n}){const r=e?.color?.duotone,o=jm(n),i=QK(),a=R6({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),s=R6({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),[l,c]=Nm("color.custom","color.customDuotone"),u=!l,d=!c||0===s?.length&&u;if(0===a?.length&&d)return null;if("default"!==i)return null;const p=Array.isArray(r)?r:O6(r,a);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(dq,{group:"filter"},(0,ae.createElement)(A6,{value:{filter:{duotone:p}},onChange:n=>{const r={...e,color:{...n?.filter}};t({style:r})},settings:o})),(0,ae.createElement)(Wj,{group:"block",__experimentalShareWithChildBlocks:!0},(0,ae.createElement)(v6,{duotonePalette:a,colorPalette:s,disableCustomDuotone:d,disableCustomColors:u,value:p,onChange:n=>{const r=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}(n,a),o={...e,color:{...e?.color,duotone:null!=r?r:n}};t({style:o})},settings:o})))},useBlockProps:function e({name:t,style:n}){const r=$m(e),o=(0,ae.useMemo)((()=>{const e=Oo(t);if(e){if(!Lo(e,"filter.duotone",!1))return null;const t=Lo(e,"color.__experimentalDuotone",!1);if(t){const n=_6(e);return"string"==typeof t?iq(n,t):n}return _6(e,"filter.duotone",{fallback:!0})}}),[t]),i=n?.color?.duotone,a=`wp-duotone-${r}`,s=o&&i;return L6({clientId:r,id:a,selector:o,attribute:i}),{className:s?a:""}},attributeKeys:["style"],hasSupport:e=>Do(e,"filter.duotone")};function L6({clientId:e,id:t,selector:n,attribute:r}){const o=R6({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(r),a=i?void 0:O6(r,o),s="string"==typeof r&&a;let l=null;s?l=a:("string"==typeof r&&!s||i)&&(l=r);const c=n.split(",").map((e=>`.${t}${e.trim()}`)).join(", "),u=Array.isArray(l)||"unset"===l;Fm(u?{css:"unset"!==l?w6(c,t):y6(c),__unstableType:"presets"}:void 0),Fm(u?{assets:"unset"!==l?k6(t,l):"",__unstableType:"svgs"}:void 0);const d=EK(e);(0,ae.useEffect)((()=>{if(u&&d&&N6){const e=d.style.display;d.style.display="inline-block",d.offsetHeight,d.style.display=e}}),[u,d])}function D6(e){return du((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:r}=t(Am),{getBlockType:o,getActiveBlockVariation:i}=t(na),a=n(e),s=o(a);if(!s)return null;const l=r(e),c=i(a,l),u=zo(s)||Fo(s),d=(u?Wo(s,l):void 0)||s.title,p=function(e){const t=e?.style?.position?.type;return"sticky"===t?Kn("Sticky"):"fixed"===t?Kn("Fixed"):null}(l),f={isSynced:u,title:d,icon:s.icon,description:s.description,anchor:l?.anchor,positionLabel:p,positionType:l?.style?.position?.type,name:l?.metadata?.name};return c?{isSynced:u,title:c.title||s.title,icon:c.icon||s.icon,description:c.description||s.description,anchor:l?.anchor,positionLabel:p,positionType:l?.style?.position?.type,name:l?.metadata?.name}:f}),[e])}bt("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Do(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e}));const{CustomSelectControl:z6}=Du(jj),F6="position",j6="block-editor-hooks__position-selection__select-control__option",V6={key:"default",value:"",name:Kn("Default"),className:j6},H6={key:"sticky",value:"sticky",name:Gn("Sticky","Name for the value of the CSS position property"),className:j6,__experimentalHint:Kn("The block will stick to the top of the window instead of scrolling.")},$6={key:"fixed",value:"fixed",name:Gn("Fixed","Name for the value of the CSS position property"),className:j6,__experimentalHint:Kn("The block will not move when the page is scrolled.")},U6=["top","right","bottom","left"],W6=["sticky","fixed"];function K6({name:e}={}){const[t,n]=Nm("position.fixed","position.sticky"),r=!t&&!n;return!Lo(e,F6)||r}function G6({style:e={},clientId:t,name:n,setAttributes:r}){const o=function(e){const t=Lo(e,F6);return!(!0!==t&&!t?.fixed)}(n),i=function(e){const t=Lo(e,F6);return!(!0!==t&&!t?.sticky)}(n),a=e?.position?.type,{firstParentClientId:s}=du((e=>{const{getBlockParents:n}=e(Am),r=n(t);return{firstParentClientId:r[r.length-1]}}),[t]),l=D6(s),c=i&&a===H6.value&&l?On(Kn("The block will stick to the scrollable area of the parent %s block."),l.title):null,u=(0,ae.useMemo)((()=>{const e=[V6];return(i||a===H6.value)&&e.push(H6),(o||a===$6.value)&&e.push($6),e}),[o,i,a]),d=a&&u.find((e=>e.value===a))||V6;return Sl.select({web:u.length>1?(0,ae.createElement)(dq,{group:"position"},(0,ae.createElement)(mV,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:c},(0,ae.createElement)(z6,{__next40pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:Kn("Position"),hideLabelFromVision:!0,describedBy:On(Kn("Currently selected position: %s"),d.name),options:u,value:d,__experimentalShowSelectedHint:!0,onChange:({selectedItem:t})=>{(t=>{const n={...e,position:{...e?.position,type:t,top:"sticky"===t||"fixed"===t?"0px":void 0}};r({style:Mm(n)})})(t.value)},size:"__unstable-large"}))):null,native:null})}const q6={edit:function(e){return K6(e)?null:(0,ae.createElement)(G6,{...e})},useBlockProps:function e({name:t,style:n}){const r=Do(t,F6),o=K6({name:t}),i=r&&!o,a=$m(e),s=`.wp-container-${a}.wp-container-${a}`;let l;i&&(l=function({selector:e,style:t}){let n="";const{type:r}=t?.position||{};return W6.includes(r)?(n+=`${e} {`,n+=`position: ${r};`,U6.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==r&&"fixed"!==r||(n+="z-index: 10"),n+="}",n):n}({selector:s,style:n})||"");const c=Au({[`wp-container-${a}`]:i&&!!l,[`is-position-${n?.position?.type}`]:i&&!!l&&!!n?.position?.type});return Fm({css:l}),{className:c}},attributeKeys:["style"],hasSupport:e=>Do(e,F6)};const Y6=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),X6=()=>{};const Z6=(0,ae.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,ae.createElement)("h2",{className:"components-panel__body-title"},(0,ae.createElement)(bE,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,ae.createElement)("span",{"aria-hidden":"true"},(0,ae.createElement)(sk,{className:"components-panel__arrow",icon:e?Y6:AD})),n,t&&(0,ae.createElement)(sk,{icon:t,className:"components-panel__icon",size:20}))):null)),Q6=(0,ae.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:a,onToggle:s=X6,opened:l,title:c,scrollAfterOpen:u=!0}=e,[d,p]=jU(l,{initial:void 0===a||a,fallback:!1}),f=(0,ae.useRef)(null),h=YN()?"auto":"smooth",m=(0,ae.useRef)();m.current=u,pk((()=>{d&&m.current&&f.current?.scrollIntoView&&f.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:h})}),[d,h]);const g=Au("components-panel__body",o,{"is-opened":d});return(0,ae.createElement)("div",{className:g,ref:JE([f,t])},(0,ae.createElement)(Z6,{icon:i,isOpened:Boolean(d),onClick:e=>{e.preventDefault();const t=!d;p(t),s(t)},title:c,...n}),"function"==typeof r?r({opened:Boolean(d)}):d&&r)})),J6=Q6;const e8=(0,ae.forwardRef)((function(e,t){const{className:n,...r}=e,o=Au("components-button-group",n);return(0,ae.createElement)("div",{ref:t,role:"group",className:o,...r})})),t8="layout";function n8(e){return Do(e,"layout")||Do(e,"__experimentalLayout")}const r8={shareWithChildBlocks:!0,edit:function({layout:e,setAttributes:t,name:n,clientId:r}){const o=jm(n),{layout:i}=o,{themeSupportsLayout:a}=du((e=>{const{getSettings:t}=e(Am);return{themeSupportsLayout:t().supportsLayout}}),[]);if("default"!==QK())return null;const s=Lo(n,t8,{}),l={...i,...s},{allowSwitching:c,allowEditing:u=!0,allowInheriting:d=!0,default:p}=l;if(!u)return null;const f={...s,...e},{type:h,default:{type:m="default"}={}}=f,g=h||m,b=!(!d||g&&"default"!==g&&"constrained"!==g&&!f.inherit),v=e||p||{},{inherit:y=!1,contentSize:w=null}=v;if(("default"===g||"constrained"===g)&&!a)return null;const k=jK(g),_=jK("constrained"),E=!v.type&&(w||y),x=!!y||!!w,S=e=>t({layout:e});return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(dq,null,(0,ae.createElement)(J6,{title:Kn("Layout")},b&&(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(rH,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:Kn("Inner blocks use content width"),checked:"constrained"===k?.name||x,onChange:()=>t({layout:{type:"constrained"===k?.name||x?"default":"constrained"}}),help:Kn("constrained"===k?.name||x?"Nested blocks use content width with options for full and wide widths.":"Nested blocks will fill the width of this container. Toggle to constrain.")})),!y&&c&&(0,ae.createElement)(o8,{type:g,onChange:e=>t({layout:{type:e}})}),k&&"default"!==k.name&&(0,ae.createElement)(k.inspectorControls,{layout:v,onChange:S,layoutBlockSupport:l,name:n,clientId:r}),_&&E&&(0,ae.createElement)(_.inspectorControls,{layout:v,onChange:S,layoutBlockSupport:l,name:n,clientId:r}))),!y&&k&&(0,ae.createElement)(k.toolBarControls,{layout:v,onChange:S,layoutBlockSupport:s,name:n,clientId:r}))},attributeKeys:["layout"],hasSupport:e=>n8(e)};function o8({type:e,onChange:t}){return(0,ae.createElement)(e8,null,FK.map((({name:n,label:r})=>(0,ae.createElement)(bE,{key:n,isPressed:e===n,onClick:()=>t(n)},r))))}function i8({block:e,props:t,blockGapSupport:n,layoutClasses:r}){const{name:o,attributes:i}=t,a=$m(e),{layout:s}=i,{default:l}=Lo(o,t8)||{},c=s?.inherit||s?.contentSize||s?.wideSize?{...s,type:"constrained"}:s||l||{},{kebabCase:u}=Du(jj),d=`wp-container-${u(o)}-is-layout-`,p=`.${d}${a}`,f=null!==n,h=jK(c?.type||"default"),m=h?.getLayoutStyle?.({blockName:o,selector:p,layout:c,style:i?.style,hasBlockGapSupport:f}),g=Au({[`${d}${a}`]:!!m},r);return Fm({css:m}),(0,ae.createElement)(e,{...t,__unstableLayoutClassNames:g})}const a8=Wc((e=>t=>{const{clientId:n,name:r,attributes:o}=t,i=n8(r),a=function(e={},t=""){const{kebabCase:n}=Du(jj),{layout:r}=e,{default:o}=Lo(t,t8)||{},i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||o||{},a=[];if(oH[i?.type||"default"]?.className){const e=oH[i?.type||"default"]?.className,n=t.split("/"),r=`wp-block-${"core"===n[0]?n.pop():n.join("-")}-${e}`;a.push(e,r)}return du((e=>(i?.inherit||i?.contentSize||"constrained"===i?.type)&&e(Am).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments),[i?.contentSize,i?.inherit,i?.type])&&a.push("has-global-padding"),i?.orientation&&a.push(`is-${n(i.orientation)}`),i?.justifyContent&&a.push(`is-content-justification-${n(i.justifyContent)}`),i?.flexWrap&&"nowrap"===i.flexWrap&&a.push("is-nowrap"),a}(o,r),s=du((e=>{if(!i)return;const{getSettings:t,getBlockSettings:r}=Du(e(Am)),{disableLayoutStyles:o}=t();if(o)return;const[a]=r(n,"spacing.blockGap");return{blockGapSupport:a}}),[i,n]);return s?(0,ae.createElement)(i8,{block:e,props:t,layoutClasses:a,...s}):(0,ae.createElement)(e,{...t,__unstableLayoutClassNames:i?a:void 0})}),"withLayoutStyles");bt("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||n8(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),bt("editor.BlockListBlock","core/editor/layout/with-layout-styles",a8);var s8=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l8=function(){return l8=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},l8.apply(this,arguments)},c8={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},u8={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},d8={width:"20px",height:"20px",position:"absolute"},p8={top:l8(l8({},c8),{top:"-5px"}),right:l8(l8({},u8),{left:void 0,right:"-5px"}),bottom:l8(l8({},c8),{top:void 0,bottom:"-5px"}),left:l8(l8({},u8),{left:"-5px"}),topRight:l8(l8({},d8),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:l8(l8({},d8),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:l8(l8({},d8),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:l8(l8({},d8),{left:"-10px",top:"-10px",cursor:"nw-resize"})},f8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return s8(t,e),t.prototype.render=function(){return ae.createElement("div",{className:this.props.className||"",style:l8(l8({position:"absolute",userSelect:"none"},p8[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(ae.PureComponent),h8=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m8=function(){return m8=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},m8.apply(this,arguments)},g8={width:"auto",height:"auto"},b8=function(e,t,n){return Math.max(Math.min(e,n),t)},v8=function(e,t){return Math.round(e/t)*t},y8=function(e,t){return new RegExp(e,"i").test(t)},w8=function(e){return Boolean(e.touches&&e.touches.length)},k8=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},_8=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},E8=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},x8=["as","ref","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],S8="__resizable_base__",C8=function(e){function t(t){var n,r,o,i,a=e.call(this,t)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.appendBase=function(){if(!a.resizable||!a.window)return null;var e=a.parentNode;if(!e)return null;var t=a.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(S8):t.className+=S8,e.appendChild(t),t},a.removeBase=function(e){var t=a.parentNode;t&&t.removeChild(e)},a.state={isResizing:!1,width:null!==(r=null===(n=a.propsSize)||void 0===n?void 0:n.width)&&void 0!==r?r:"auto",height:null!==(i=null===(o=a.propsSize)||void 0===o?void 0:o.height)&&void 0!==i?i:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return h8(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||g8},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){var n;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null===(n=e.propsSize[t])||void 0===n?void 0:n.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return _8(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?_8(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?_8(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&y8("left",i),s=o&&y8("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n,r=this.props.scale||1,o=(n=this.props.resizeRatio||1,Array.isArray(n)?n:[n,n]),i=o[0],a=o[1],s=this.state,l=s.direction,c=s.original,u=this.props,d=u.lockAspectRatio,p=u.lockAspectRatioExtraHeight,f=u.lockAspectRatioExtraWidth,h=c.width,m=c.height,g=p||0,b=f||0;return y8("right",l)&&(h=c.width+(e-c.x)*i/r,d&&(m=(h-b)/this.ratio+g)),y8("left",l)&&(h=c.width-(e-c.x)*i/r,d&&(m=(h-b)/this.ratio+g)),y8("bottom",l)&&(m=c.height+(t-c.y)*a/r,d&&(h=(m-g)*this.ratio+b)),y8("top",l)&&(m=c.height-(t-c.y)*a/r,d&&(h=(m-g)*this.ratio+b)),{newWidth:h,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=a||0,f=s||0;if(i){var h=(u-p)*this.ratio+f,m=(d-p)*this.ratio+f,g=(l-f)/this.ratio+p,b=(c-f)/this.ratio+p,v=Math.max(l,h),y=Math.min(c,m),w=Math.max(u,g),k=Math.min(d,b);e=b8(e,v,y),t=b8(t,w,k)}else e=b8(e,l,c),t=b8(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&w8(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:m8(m8({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&w8(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=w8(e)?e.touches[0].clientX:e.clientX,l=w8(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,p=c.width,f=c.height,h=this.getParentSize(),m=function(e,t,n,r,o,i,a){return r=E8(r,e.width,t,n),o=E8(o,e.height,t,n),i=E8(i,e.width,t,n),a=E8(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(h,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=m.maxWidth,o=m.maxHeight,i=m.minWidth,a=m.minHeight;var g=this.calculateNewSizeFromDirection(s,l),b=g.newHeight,v=g.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(v=k8(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=k8(b,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(v,b,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(v=w.newWidth,b=w.newHeight,this.props.grid){var k=v8(v,this.props.grid[0]),_=v8(b,this.props.grid[1]),E=this.props.snapGap||0;v=0===E||Math.abs(k-v)<=E?k:v,b=0===E||Math.abs(_-b)<=E?_:b}var x={width:v-d.width,height:b-d.height};if(p&&"string"==typeof p)if(p.endsWith("%"))v=v/h.width*100+"%";else if(p.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/h.height*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}var S={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(b,"height")};"row"===this.flexDir?S.flexBasis=S.width:"column"===this.flexDir&&(S.flexBasis=S.height);var C=this.state.width!==S.width,I=this.state.height!==S.height,T=this.state.flexBasis!==S.flexBasis,P=C||I||T;P&&(0,ly.flushSync)((function(){t.setState(S)})),this.props.onResize&&P&&this.props.onResize(e,u,this.resizable,x)}},t.prototype.onMouseUp=function(e){var t,n,r=this.state,o=r.isResizing,i=r.direction,a=r.original;if(o&&this.resizable){var s={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,i,this.resizable,s),this.props.size&&this.setState({width:null!==(t=this.props.size.width)&&void 0!==t?t:"auto",height:null!==(n=this.props.size.height)&&void 0!==n?n:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:m8(m8({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){var t,n;this.setState({width:null!==(t=e.width)&&void 0!==t?t:"auto",height:null!==(n=e.height)&&void 0!==n?n:"auto"})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?ae.createElement(f8,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return ae.createElement("div",{className:a,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==x8.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=m8(m8(m8({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return ae.createElement(r,m8({style:n,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)}}),this.state.isResizing&&ae.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(ae.PureComponent);const I8=(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 T8(e={}){const t=e.onResize,n=(0,ae.useRef)(void 0);n.current=t;const r=e.round||Math.round,o=(0,ae.useRef)(),[i,a]=(0,ae.useState)({width:void 0,height:void 0}),s=(0,ae.useRef)(!1);(0,ae.useEffect)((()=>(s.current=!1,()=>{s.current=!0})),[]);const l=(0,ae.useRef)({width:void 0,height:void 0}),c=function(e,t){const n=(0,ae.useRef)(null),r=(0,ae.useRef)(null),o=(0,ae.useRef)(),i=(0,ae.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,ae.useEffect)((()=>{i()}),[i]),(0,ae.useCallback)((e=>{n.current=e,i()}),[i])}((0,ae.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=I8(o,i,"inlineSize"),u=I8(o,i,"blockSize"),d=c?r(c):void 0,p=u?r(u):void 0;if(l.current.width!==d||l.current.height!==p){const e={width:d,height:p};l.current.width=d,l.current.height=p,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,ae.useMemo)((()=>({ref:c,width:i.width,height:i.height})),[c,i?i.width:null,i?i.height:null])}function P8(){const{ref:e,width:t,height:n}=T8(),r=(0,ae.useMemo)((()=>({width:null!=t?t:null,height:null!=n?n:null})),[t,n]);return[(0,ae.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 A8=()=>{},B8={bottom:"bottom",corner:"corner"};function N8({axis:e,fadeTimeout:t=180,onResize:n=A8,position:r=B8.bottom,showPx:o=!1}){const[i,a]=P8(),s=!!e,[l,c]=(0,ae.useState)(!1),[u,d]=(0,ae.useState)(!1),{width:p,height:f}=a,h=(0,ae.useRef)(f),m=(0,ae.useRef)(p),g=(0,ae.useRef)(),b=(0,ae.useCallback)((()=>{g.current&&window.clearTimeout(g.current),g.current=window.setTimeout((()=>{s||(c(!1),d(!1))}),t)}),[t,s]);(0,ae.useEffect)((()=>{if(!(null!==p||null!==f))return;const e=p!==m.current,t=f!==h.current;if(e||t){if(p&&!m.current&&f&&!h.current)return m.current=p,void(h.current=f);e&&(c(!0),m.current=p),t&&(d(!0),h.current=f),n({width:p,height:f}),b()}}),[p,f,n,b]);const v=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=B8.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===B8.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:f,moveX:l,moveY:u,position:r,showPx:o,width:p});return{label:v,resizeListener:i}}const R8=dE("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),O8=dE("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),M8=dE("div",{target:"e1wq7y4k1"})("background:",YM.theme.foreground,";border-radius:2px;box-sizing:border-box;font-family:",RD("default.fontFamily"),";font-size:12px;color:",YM.theme.foregroundInverted,";padding:4px 8px;position:relative;"),L8=dE(nD,{target:"e1wq7y4k0"})("&&&{color:",YM.theme.foregroundInverted,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const D8=(0,ae.forwardRef)((function({label:e,position:t=B8.corner,zIndex:n=1e3,...r},o){const i=!!e,a=t===B8.bottom,s=t===B8.corner;if(!i)return null;let l={opacity:i?1:void 0,zIndex:n},c={};return a&&(l={...l,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},c={transform:"translate(0, 100%)"}),s&&(l={...l,position:"absolute",top:4,right:Yn()?void 0:4,left:Yn()?4:void 0}),(0,ae.createElement)(O8,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:l,...r},(0,ae.createElement)(M8,{className:"components-resizable-tooltip__tooltip",style:c},(0,ae.createElement)(L8,{as:"span"},e)))})),z8=D8,F8=()=>{};const j8=(0,ae.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=F8,position:a=B8.bottom,showPx:s=!0,zIndex:l=1e3,...c},u){const{label:d,resizeListener:p}=N8({axis:e,fadeTimeout:n,onResize:i,showPx:s,position:a});if(!r)return null;const f=Au("components-resize-tooltip",t);return(0,ae.createElement)(R8,{"aria-hidden":"true",className:f,ref:u,...c},p,(0,ae.createElement)(z8,{"aria-hidden":c["aria-hidden"],label:d,position:a,ref:o,zIndex:l}))})),V8=j8,H8="components-resizable-box__handle",$8="components-resizable-box__side-handle",U8="components-resizable-box__corner-handle",W8={top:Au(H8,$8,"components-resizable-box__handle-top"),right:Au(H8,$8,"components-resizable-box__handle-right"),bottom:Au(H8,$8,"components-resizable-box__handle-bottom"),left:Au(H8,$8,"components-resizable-box__handle-left"),topLeft:Au(H8,U8,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:Au(H8,U8,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:Au(H8,U8,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:Au(H8,U8,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},K8={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},G8={top:K8,right:K8,bottom:K8,left:K8,topLeft:K8,topRight:K8,bottomRight:K8,bottomLeft:K8};const q8=(0,ae.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},a){return(0,ae.createElement)(C8,{className:Au("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:W8,handleStyles:G8,ref:a,...i},t,r&&(0,ae.createElement)(V8,{...o}))})),Y8=q8;function X8({clientId:e,bounds:t,onChange:n}){const r=EK(e),o=r?.parentElement;return r&&o?(0,ae.createElement)(Z8,{clientId:e,bounds:t,blockElement:r,rootBlockElement:o,onChange:n}):null}function Z8({clientId:e,bounds:t,blockElement:n,rootBlockElement:r,onChange:o}){const[i,a]=(0,ae.useState)(null),[s,l]=(0,ae.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,ae.useEffect)((()=>{const e=new window.ResizeObserver((()=>{const e=n.getBoundingClientRect(),t=r.getBoundingClientRect();l({top:e.top>t.top,bottom:e.bottom<t.bottom,left:e.left>t.left,right:e.right<t.right})}));return e.observe(n),()=>e.disconnect()}),[n,r]);const c={right:"flex-start",left:"flex-end"},u={top:"flex-end",bottom:"flex-start"},d={display:"flex",justifyContent:"center",alignItems:"center",...c[i]&&{justifyContent:c[i]},...u[i]&&{alignItems:u[i]}};return(0,ae.createElement)(TK,{className:"block-editor-grid-item-resizer",clientId:e,__unstablePopoverSlot:"block-toolbar",additionalStyles:d},(0,ae.createElement)(Y8,{className:"block-editor-grid-item-resizer__box",size:{width:"100%",height:"100%"},enable:{bottom:s.bottom,bottomLeft:!1,bottomRight:!1,left:s.left,right:s.right,top:s.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onResizeStart:(e,t)=>{a(t),n.ownerDocument.addEventListener("mouseup",(()=>{e.target.dispatchEvent(new Event("mouseup",{bubbles:!0}))}),{once:!0})},onResizeStop:(e,t,i)=>{const a=parseFloat(PK(r,"column-gap")),s=parseFloat(PK(r,"row-gap")),l=Q8(PK(r,"grid-template-columns"),a),c=Q8(PK(r,"grid-template-rows"),s),u=new window.DOMRect(n.offsetLeft+i.offsetLeft,n.offsetTop+i.offsetTop,i.offsetWidth,i.offsetHeight),d=J8(l,u.left)+1,p=J8(c,u.top)+1,f=J8(l,u.right,"end")+1,h=J8(c,u.bottom,"end")+1;o({columnSpan:f-d+1,rowSpan:h-p+1})}}))}function Q8(e,t){const n=[];for(const r of e.split(" ")){const e=n[n.length-1],o=e?e.end+t:0,i=o+parseFloat(r);n.push({start:o,end:i})}return n}function J8(e,t,n="start"){return e.reduce(((r,o,i)=>Math.abs(o[n]-t)<Math.abs(e[r][n]-t)?i:r),0)}const e9={useBlockProps:function e({style:t}){var n;const r=du((e=>!e(Am).getSettings().disableLayoutStyles)),o=null!==(n=t?.layout)&&void 0!==n?n:{},{selfStretch:i,flexSize:a,columnStart:s,rowStart:l,columnSpan:c,rowSpan:u}=o,d=Jj()||{},{columnCount:p,minimumColumnWidth:f}=d,h=$m(e),m=`.wp-container-content-${h}`;let g="";if(r){if("fixed"===i&&a?g=`${m} {\n\t\t\t\tflex-basis: ${a};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===i?g=`${m} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`:s&&c?g=`${m} {\n\t\t\t\tgrid-column: ${s} / span ${c};\n\t\t\t}`:s?g=`${m} {\n\t\t\t\tgrid-column: ${s};\n\t\t\t}`:c&&(g=`${m} {\n\t\t\t\tgrid-column: span ${c};\n\t\t\t}`),(c||s)&&(f||!p)){const e=c?parseInt(c):null,t=s?parseInt(s):null,n=Math.max(e,t);let r=parseFloat(f);isNaN(r)&&(r=12);let o=f?.replace(r,"");["px","rem","em"].includes(o)||(o="rem");g+=`@container (max-width: ${n*r+(n-1)*("px"===o?24:1.5)}${o}) {\n\t\t\t\t${m} {\n\t\t\t\t\tgrid-column: ${c?"1/-1":"auto"};\n\t\t\t\t}\n\t\t\t}`}l&&u?g+=`${m} {\n\t\t\t\tgrid-row: ${l} / span ${u};\n\t\t\t}`:l?g+=`${m} {\n\t\t\t\tgrid-row: ${l};\n\t\t\t}`:u&&(g+=`${m} {\n\t\t\t\tgrid-row: span ${u};\n\t\t\t}`)}if(Fm({css:g}),g)return{className:`wp-container-content-${h}`}},edit:function({clientId:e,style:t,setAttributes:n}){const{type:r="default",allowSizingOnChildren:o=!1}=Jj()||{},i=du((t=>t(Am).getBlockRootClientId(e)),[e]),[a,s]=(0,ae.useState)();return"grid"!==r?null:(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(AK,{clientId:i,contentRef:s}),o&&(0,ae.createElement)(X8,{clientId:e,bounds:a,onChange:({columnSpan:e,rowSpan:r})=>{n({style:{...t,layout:{...t?.layout,columnSpan:e,rowSpan:r}}})}}))},attributeKeys:["style"],hasSupport:()=>!0};function t9({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:r,blocksSelection:o,groupingBlockName:i,onClose:a=()=>{}}){const{getSelectedBlockClientIds:s}=du(Am),{replaceBlocks:l}=Uc(Am);if(!t&&!n)return null;const c=s();return(0,ae.createElement)(ae.Fragment,null,t&&(0,ae.createElement)(Yj,{shortcut:c.length>1?CN.primary("g"):void 0,onClick:()=>{(()=>{const t=ka(o,i);t&&l(e,t)})(),a()}},Gn("Group","verb")),n&&(0,ae.createElement)(Yj,{onClick:()=>{(()=>{let t=o[0].innerBlocks;t.length&&(r&&(t=r(o[0].attributes,o[0].innerBlocks)),l(e,t))})(),a()}},Gn("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor ")))}function n9(e){return du((t=>{const{canEditBlock:n,canMoveBlock:r,canRemoveBlock:o,canLockBlockType:i,getBlockName:a,getBlockRootClientId:s,getTemplateLock:l}=t(Am),c=s(e),u=n(e),d=r(e,c),p=o(e,c);return{canEdit:u,canMove:d,canRemove:p,canLock:i(a(e)),isContentLocked:"contentOnly"===l(e),isLocked:!u||!d||!p}}),[e])}const r9=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{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"})),o9=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{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"}));function i9(e){return Pr(e.ownerDocument.defaultView),e.ownerDocument.defaultView.getComputedStyle(e)}function a9(e,t="vertical"){if(e){if(("vertical"===t||"all"===t)&&e.scrollHeight>e.clientHeight){const{overflowY:t}=i9(e);if(/(auto|scroll)/.test(t))return e}if(("horizontal"===t||"all"===t)&&e.scrollWidth>e.clientWidth){const{overflowX:t}=i9(e);if(/(auto|scroll)/.test(t))return e}return e.ownerDocument===e.parentNode?e:a9(e.parentNode,t)}}const s9=new Set(["alert","status","log","marquee","timer"]),l9=[];function c9(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&s9.has(t))}const u9=(0,ae.createContext)([]),d9=new Map;const p9=(0,ae.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:p,children:f,style:h,overlayClassName:m,className:g,contentLabel:b,onKeyDown:v,isFullScreen:y=!1,size:w,headerActions:k=null,__experimentalHideHeader:_=!1}=e,E=(0,ae.useRef)(),x=$m(p9),S=o?`components-modal-header-${x}`:c.labelledby,C=$N("firstContentElement"===i?"firstElement":i),I=HN(),T=WN(),P=(0,ae.useRef)(null),A=(0,ae.useRef)(null),[B,N]=(0,ae.useState)(!1),[R,O]=(0,ae.useState)(!1);let M;y||"fill"===w?M="is-full-screen":w&&(M=`has-size-${w}`);const L=(0,ae.useCallback)((()=>{if(!P.current)return;const e=a9(P.current);P.current===e?O(!0):O(!1)}),[P]);(0,ae.useEffect)((()=>(function(e){const t=Array.from(document.body.children),n=[];l9.push(n);for(const r of t)r!==e&&c9(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}(E.current),()=>function(){const e=l9.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}())),[]);const D=(0,ae.useRef)();(0,ae.useEffect)((()=>{D.current=u}),[u]);const z=(0,ae.useContext)(u9),F=(0,ae.useRef)([]);(0,ae.useEffect)((()=>{z.push(D);const[e,t]=z;t&&e?.current?.();const n=F.current;return()=>{n[0]?.current?.(),z.shift()}}),[z]),(0,ae.useEffect)((()=>{var e;const t=n,r=1+(null!==(e=d9.get(t))&&void 0!==e?e:0);return d9.set(t,r),document.body.classList.add(n),()=>{const e=d9.get(t)-1;0===e?(document.body.classList.remove(t),d9.delete(t)):d9.set(t,e)}}),[n]),(0,ae.useLayoutEffect)((()=>{if(!window.ResizeObserver||!A.current)return;const e=new ResizeObserver(L);return e.observe(A.current),L(),()=>{e.disconnect()}}),[L,A]);const j=(0,ae.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!B&&n>0?N(!0):B&&n<=0&&N(!1)}),[B]);let V=null;const H={onPointerDown:e=>{e.target===e.currentTarget&&(V=e.target,e.preventDefault())},onPointerUp:({target:e,button:t})=>{const n=e===V;V=null,0===t&&n&&u()}},$=(0,ae.createElement)("div",{ref:JE([E,t]),className:Au("components-modal__screen-overlay",m),onKeyDown:hU((function(e){!a||"Escape"!==e.code&&"Escape"!==e.key||e.defaultPrevented||(e.preventDefault(),u&&u(e))})),...s?H:{}},(0,ae.createElement)(gR,{document},(0,ae.createElement)("div",{className:Au("components-modal__frame",M,g),style:h,ref:JE([I,T,"firstContentElement"!==i?C:null]),role:r,"aria-label":b,"aria-labelledby":b?void 0:S,"aria-describedby":c.describedby,tabIndex:-1,onKeyDown:v},(0,ae.createElement)("div",{className:Au("components-modal__content",{"hide-header":_,"is-scrollable":R,"has-scrolled-content":B}),role:"document",onScroll:j,ref:P,"aria-label":R?Kn("Scrollable section"):void 0,tabIndex:R?0:void 0},!_&&(0,ae.createElement)("div",{className:"components-modal__header"},(0,ae.createElement)("div",{className:"components-modal__header-heading-container"},d&&(0,ae.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},d),o&&(0,ae.createElement)("h1",{id:S,className:"components-modal__header-heading"},o)),k,l&&(0,ae.createElement)(bE,{onClick:u,icon:XN,label:p||Kn("Close")})),(0,ae.createElement)("div",{ref:JE([A,"firstContentElement"===i?C:null])},f)))));return(0,ly.createPortal)((0,ae.createElement)(u9.Provider,{value:F.current},$),document.body)})),f9=p9,h9=(0,ae.createElement)(Nu,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{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"})),m9=["core/block","core/navigation"];function g9(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function b9({clientId:e,onClose:t}){const[n,r]=(0,ae.useState)({move:!1,remove:!1}),{canEdit:o,canMove:i,canRemove:a}=n9(e),{allowsEditLocking:s,templateLock:l,hasTemplateLock:c}=du((t=>{const{getBlockName:n,getBlockAttributes:r}=t(Am),o=n(e),i=Oo(o);return{allowsEditLocking:m9.includes(o),templateLock:r(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}}),[e]),[u,d]=(0,ae.useState)(!!l),{updateBlockAttributes:p}=Uc(Am),f=D6(e),h=$m(b9,"block-editor-block-lock-modal__options-title");(0,ae.useEffect)((()=>{r({move:!i,remove:!a,...s?{edit:!o}:{}})}),[o,i,a,s]);const m=Object.values(n).every(Boolean),g=Object.values(n).some(Boolean)&&!m;return(0,ae.createElement)(f9,{title:On(Kn("Lock %s"),f.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t},(0,ae.createElement)("p",null,Kn("Choose specific attributes to restrict or lock all available options.")),(0,ae.createElement)("form",{onSubmit:r=>{r.preventDefault(),p([e],{lock:n,templateLock:u?g9(n):void 0}),t()}},(0,ae.createElement)("div",{role:"group","aria-labelledby":h,className:"block-editor-block-lock-modal__options"},(0,ae.createElement)(LZ,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,ae.createElement)("span",{id:h},Kn("Lock all")),checked:m,indeterminate:g,onChange:e=>r({move:e,remove:e,...s?{edit:e}:{}})}),(0,ae.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},s&&(0,ae.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,ae.createElement)(LZ,{__nextHasNoMarginBottom:!0,label:Kn("Restrict editing"),checked:!!n.edit,onChange:e=>r((t=>({...t,edit:e})))}),(0,ae.createElement)(sk,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?h9:r9})),(0,ae.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,ae.createElement)(LZ,{__nextHasNoMarginBottom:!0,label:Kn("Disable movement"),checked:n.move,onChange:e=>r((t=>({...t,move:e})))}),(0,ae.createElement)(sk,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?h9:r9})),(0,ae.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,ae.createElement)(LZ,{__nextHasNoMarginBottom:!0,label:Kn("Prevent removal"),checked:n.remove,onChange:e=>r((t=>({...t,remove:e})))}),(0,ae.createElement)(sk,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?h9:r9}))),c&&(0,ae.createElement)(rH,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:Kn("Apply to all blocks inside"),checked:u,disabled:n.move&&!n.remove,onChange:()=>d(!u)})),(0,ae.createElement)(kL,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,ae.createElement)(EL,null,(0,ae.createElement)(bE,{variant:"tertiary",onClick:t},Kn("Cancel"))),(0,ae.createElement)(EL,null,(0,ae.createElement)(bE,{variant:"primary",type:"submit"},Kn("Apply"))))))}function v9({clientId:e}){const{canLock:t,isLocked:n}=n9(e),[r,o]=(0,ae.useReducer)((e=>!e),!1);if(!t)return null;const i=Kn(n?"Unlock":"Lock");return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Yj,{icon:n?r9:o9,onClick:o,"aria-expanded":r,"aria-haspopup":"dialog"},i),r&&(0,ae.createElement)(b9,{clientId:e,onClose:o}))}const y9=()=>{};const w9=Ne([_X(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:r,getSettings:o}=e(Am),i=n(t),a=o().codeEditingEnabled;return{mode:r(t),blockType:i?Oo(i.name):null,isCodeEditingEnabled:a}})),VY(((e,{onToggle:t=y9,clientId:n})=>({onToggleMode(){e(Am).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:r=!1,isCodeEditingEnabled:o=!0}){if(!e||!Do(e,"html",!0)||!o)return null;const i=Kn("visual"===t?"Edit as HTML":"Edit visually");return(0,ae.createElement)(Yj,{onClick:n},!r&&i)}));function k9(e){return 0===e?.trim()?.length}function _9({blockName:e,originalBlockName:t,onClose:n,onSave:r,hasOverridesWarning:o}){const[i,a]=(0,ae.useState)(e),s=(0,ae.useId)(),l=i!==e,c=i===t,u=k9(i),d=l||c;return(0,ae.createElement)(f9,{title:Kn("Rename"),onRequestClose:n,overlayClassName:"block-editor-block-rename-modal",focusOnMount:"firstContentElement",aria:{describedby:s},size:"small"},(0,ae.createElement)("form",{onSubmit:e=>{e.preventDefault(),d&&(mh(On(Kn(c||u?'Block name reset to: "%s".':'Block name changed to: "%s".'),i),"assertive"),r(i),n())}},(0,ae.createElement)("p",{id:s},Kn("Enter a custom name for this block.")),(0,ae.createElement)(Kq,{spacing:"3"},(0,ae.createElement)(JY,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:i,label:Kn("Block name"),hideLabelFromVision:!0,help:o?Kn("This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."):void 0,placeholder:t,onChange:a,onFocus:e=>e.target.select()}),(0,ae.createElement)(nH,{justify:"right"},(0,ae.createElement)(bE,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:n},Kn("Cancel")),(0,ae.createElement)(bE,{__next40pxDefaultSize:!0,"aria-disabled":!d,variant:"primary",type:"submit"},Kn("Save"))))))}function E9({clientId:e}){const[t,n]=(0,ae.useState)(!1),{metadata:r}=du((t=>{const{getBlockAttributes:n}=t(Am),r=n(e)?.metadata;return{metadata:r}}),[e]),{updateBlockAttributes:o}=Uc(Am),i=r?.name,a=!!i&&!!r?.bindings&&Object.values(r.bindings).some((e=>"core/pattern-overrides"===e.source));const s=D6(e);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Yj,{onClick:()=>{n(!0)},"aria-expanded":t,"aria-haspopup":"dialog"},Kn("Rename")),t&&(0,ae.createElement)(_9,{blockName:i||"",originalBlockName:s?.title,hasOverridesWarning:a,onClose:()=>n(!1),onSave:t=>{(t===s?.title||k9(t))&&(t=void 0),function(t){o([e],{metadata:{...r,name:t}})}(t)}}))}const{Fill:x9,Slot:S9}=CR("BlockSettingsMenuControls");function C9({...e}){return(0,ae.createElement)(gR,{document},(0,ae.createElement)(x9,{...e}))}C9.Slot=({fillProps:e,clientIds:t=null})=>{const{selectedBlocks:n,selectedClientIds:r,isContentOnly:o}=du((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:r,getBlockEditingMode:o}=e(Am),i=null!==t?t:r();return{selectedBlocks:n(i),selectedClientIds:i,isContentOnly:"contentOnly"===o(i[0])}}),[t]),{canLock:i}=n9(r[0]),{canRename:a}={canRename:Lo(n[0],"renaming",!0)};const s=1===r.length&&i&&!o,l=1===r.length&&a&&!o,c=function(e){return du((t=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:r,isUngroupable:o,isGroupable:i}=t(Am),{getGroupingBlockName:a,getBlockType:s}=t(na),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])}(r),{isGroupable:u,isUngroupable:d}=c,p=u||d;return(0,ae.createElement)(S9,{fillProps:{...e,selectedBlocks:n,selectedClientIds:r}},(t=>!t?.length>0&&!p&&!s?null:(0,ae.createElement)(Gj,null,p&&(0,ae.createElement)(t9,{...c,onClose:e?.onClose}),s&&(0,ae.createElement)(v9,{clientId:r[0]}),l&&(0,ae.createElement)(E9,{clientId:r[0]}),t,e?.canMove&&!e?.onlyBlock&&!o&&(0,ae.createElement)(Yj,{onClick:Be(e?.onClose,e?.onMoveTo)},Kn("Move to")),1===e?.count&&!o&&(0,ae.createElement)(w9,{clientId:e?.firstBlockClientId,onToggle:e?.onClose}))))};const I9=C9;const T9={edit:function({clientId:e,isSelected:t}){const{templateLock:n,isLockedByParent:r,isEditingAsBlocks:o}=du((t=>{const{getContentLockingParent:n,getTemplateLock:r,getTemporarilyEditingAsBlocks:o}=Du(t(Am));return{templateLock:r(e),isLockedByParent:!!n(e),isEditingAsBlocks:o()===e}}),[e]),{stopEditingAsBlocks:i,modifyContentLockBlock:a}=Du(Uc(Am)),s=!r&&"contentOnly"===n,l=(0,ae.useCallback)((()=>{i(e)}),[e,i]);if(!s&&!o)return null;const c=o&&!s,u=!o&&s&&t;return(0,ae.createElement)(ae.Fragment,null,c&&(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Wj,{group:"other"},(0,ae.createElement)(YE,{onClick:l},Kn("Done")))),u&&(0,ae.createElement)(I9,null,(({selectedClientIds:t,onClose:n})=>1===t.length&&t[0]===e&&(0,ae.createElement)(Yj,{onClick:()=>{a(e),n()}},Kn("Modify")))))},hasSupport:()=>!0},P9="metadata";bt("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[P9]?.type||(e.attributes={...e.attributes,[P9]:{type:"object"}}),e}));const A9=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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 B9=(0,ae.memo)((function({icon:e,showColors:t=!1,className:n,context:r}){"block-default"===e?.src&&(e={src:A9});const o=(0,ae.createElement)(sk,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,ae.createElement)("span",{style:i,className:Au("block-editor-block-icon",n,{"has-colors":t})},o)})),N9={};const R9={edit:function({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const r=du((e=>e(na).getBlockTypes()),[]),o=(0,ae.useMemo)((()=>r?.filter((({name:t,blockHooks:r})=>r&&e in r||n.includes(t)))),[r,e,n]),{blockIndex:i,rootClientId:a,innerBlocksLength:s}=du((e=>{const{getBlocks:n,getBlockIndex:r,getBlockRootClientId:o}=e(Am);return{blockIndex:r(t),innerBlocksLength:n(t)?.length,rootClientId:o(t)}}),[t]),l=du((n=>{const{getBlocks:r,getGlobalBlockCount:i}=n(Am),s=o.reduce(((n,o)=>{if(0===i(o.name))return n;const s=o?.blockHooks?.[e];let l;switch(s){case"before":case"after":l=r(a);break;case"first_child":case"last_child":l=r(t);break;case void 0:l=[...r(a),...r(t)]}const c=l?.find((e=>e.name===o.name));return c?{...n,[o.name]:c.clientId}:n}),{});return Object.values(s).length>0?s:N9}),[o,e,t,a]),{insertBlock:c,removeBlock:u}=Uc(Am);if(!o.length)return null;const d=o.reduce(((e,t)=>{const[n]=t.name.split("/");return e[n]||(e[n]=[]),e[n].push(t),e}),{});return(0,ae.createElement)(dq,null,(0,ae.createElement)(J6,{className:"block-editor-hooks__block-hooks",title:Kn("Plugins"),initialOpen:!0},(0,ae.createElement)("p",{className:"block-editor-hooks__block-hooks-helptext"},Kn("Manage the inclusion of blocks added automatically by plugins.")),Object.keys(d).map((n=>(0,ae.createElement)(ae.Fragment,{key:n},(0,ae.createElement)("h3",null,n),d[n].map((n=>{const r=n.name in l;return(0,ae.createElement)(rH,{checked:r,key:n.title,label:(0,ae.createElement)(nH,{justify:"flex-start"},(0,ae.createElement)(B9,{icon:n.icon}),(0,ae.createElement)("span",null,n.title)),onChange:()=>{if(r)u(l[n.name],!1);else{const r=n.blockHooks[e];((e,n)=>{switch(n){case"before":case"after":c(e,"after"===n?i+1:i,a,!1);break;case"first_child":case"last_child":c(e,"first_child"===n?0:s,t,!1);break;case void 0:c(e,i+1,a,!1)}})(ua(n.name),r)}}})})))))))},attributeKeys:["metadata"],hasSupport:()=>!0};bt("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||Do(e,"renaming",!0)&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const O9={"core/paragraph":["content"],"core/heading":["content"],"core/image":["id","url","title","alt"],"core/button":["url","text","linkTarget","rel"]};function M9(e){return e in O9}function L9(e,t){return M9(e)&&O9[e].includes(t)}const D9=Wc((e=>t=>{const n=$c(),r=du((e=>Du(e(na)).getAllBlockBindingsSources())),o=t.attributes.metadata?.bindings,{name:i,clientId:a,context:s}=t,l=du((()=>{if(!o)return;const e={};for(const[t,l]of Object.entries(o)){const o=r[l.source];if(!o?.getValue||!L9(i,t))continue;const c={registry:n,context:s,clientId:a,attributeName:t,args:l.args};e[t]=o.getValue(c),void 0===e[t]&&(e[t]="url"===t?null:o.getPlaceholder?.(c))}return e}),[o,i,a,s,n,r]),{setAttributes:c}=t,u=(0,ae.useCallback)((e=>{n.batch((()=>{if(!o)return void c(e);const t={...e},l=new Map;for(const[e,n]of Object.entries(t)){if(!o[e]||!L9(i,e))continue;const a=r[o[e].source];(a?.setValue||a?.setValues)&&(l.set(a,{...l.get(a),[e]:n}),delete t[e])}if(l.size)for(const[e,t]of l)if(e.setValues)e.setValues({registry:n,context:s,clientId:a,attributes:t});else for(const[r,i]of Object.entries(t))e.setValue({registry:n,context:s,clientId:a,attributeName:r,args:o[r].args,value:i});Object.keys(t).length&&c(t)}))}),[n,o,i,a,s,c,r]);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(e,{...t,attributes:{...t.attributes,...l},setAttributes:u}))}),"withBlockBindingSupport");var z9;bt("blocks.registerBlockType","core/editor/custom-sources-backwards-compatibility/shim-attribute-source",(function(e,t){return M9(t)?{...e,edit:D9(e.edit)}:e})),function(e){e=e.map((e=>({...e,Edit:(0,ae.memo)(e.edit)})));const t=Wc((t=>n=>{const r=tu();return[...e.map(((e,t)=>{const{Edit:o,hasSupport:i,attributeKeys:a=[],shareWithChildBlocks:s}=e;if(!(r[Gc]||r[qc]&&s)||!i(n.name))return null;const l={};for(const e of a)n.attributes[e]&&(l[e]=n.attributes[e]);return(0,ae.createElement)(o,{key:t,name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...l})})),(0,ae.createElement)(t,{key:"edit",...n})]}),"withBlockEditHooks");bt("editor.BlockEdit","core/editor/hooks",t)}([nG,k3,mQ,vQ,s6,M6,q6,r8,T9,R9,e9].filter(Boolean)),function(e){const t=Wc((t=>n=>{const[r,o]=(0,ae.useState)(Array(e.length).fill(void 0));return[...e.map(((e,t)=>{const{hasSupport:r,attributeKeys:i=[],useBlockProps:a}=e,s={};for(const e of i)n.attributes[e]&&(s[e]=n.attributes[e]);return Object.keys(s).length&&r(n.name)?(0,ae.createElement)(Vm,{key:t,index:t,useBlockProps:a,setAllWrapperProps:o,name:n.name,...s}):null})),(0,ae.createElement)(t,{key:"edit",...n,wrapperProps:r.filter(Boolean).reduce(((e,t)=>({...e,...t,className:Au(e.className,t.className),style:{...e.style,...t.style}})),n.wrapperProps||{})})]}),"withBlockListBlockHooks");bt("editor.BlockListBlock","core/editor/hooks",t)}([nG,k3,pQ,s6,e5,Z4,M6,o3,l3,P1,q6,e9]),z9=[nG,k3,mQ,bQ,vQ,P1,e5,s6,o3,l3],bt("blocks.getSaveContent.extraProps","core/editor/hooks",(function(e,t,n){return z9.reduce(((e,r)=>{const{hasSupport:o,attributeKeys:i=[],addSaveProps:a}=r,s={};for(const e of i)n[e]&&(s[e]=n[e]);return Object.keys(s).length&&o(t)?a(e,t,s):e}),e)}),0),bt("blocks.getSaveContent.extraProps","core/editor/hooks",(e=>(e.hasOwnProperty("className")&&!e.className&&delete e.className,e)));const F9=function(e){return Wc((t=>n=>e(n)?(0,ae.createElement)(t,{...n}):null),"ifCondition")},j9=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),V9=({size:e})=>oL("compact"===e?1:2),H9=dE("div",{target:"effl84m1"})("display:flex;padding-inline-end:",V9,";svg{fill:currentColor;}"),$9=dE(wU,{target:"effl84m0"})("input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}&:not( :focus-within ){--wp-components-color-background:",YM.theme.gray[100],";}");function U9({searchRef:e,value:t,onChange:n,onClose:r}){if(!r&&!t)return(0,ae.createElement)(VM,{icon:j9});return(0,ae.createElement)(bE,{size:"small",icon:FQ,label:Kn(r?"Close search":"Reset search"),onClick:null!=r?r:()=>{n(""),e.current?.focus()}})}const W9=(0,ae.forwardRef)((function({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:r,label:o=Kn("Search"),placeholder:i=Kn("Search"),hideLabelFromVision:a=!0,onClose:s,size:l="default",...c},u){delete c.disabled;const d=(0,ae.useRef)(null),p=$m(W9,"components-search-control"),f=(0,ae.useMemo)((()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e}},InputBase:{isBorderless:!0}})),[e]);return(0,ae.createElement)(mk,{value:f},(0,ae.createElement)($9,{__next40pxDefaultSize:!0,id:p,hideLabelFromVision:a,label:o,ref:JE([d,u]),type:"search",size:l,className:Au("components-search-control",t),onChange:e=>n(null!=e?e:""),autoComplete:"off",placeholder:i,value:null!=r?r:"",suffix:(0,ae.createElement)(H9,{size:l},(0,ae.createElement)(U9,{searchRef:d,value:r,onChange:n,onClose:s})),...c}))})),K9=W9;function G9(e=""){const[t,n]=(0,ae.useState)(e),[r,o]=(0,ae.useState)(e),i=gX(o,250);return(0,ae.useEffect)((()=>{i(t)}),[t]),[t,n,r]}const q9=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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 Y9=function(e){const{children:t}=e;return(0,ae.createElement)("div",{className:"components-tip"},(0,ae.createElement)(VM,{icon:q9}),(0,ae.createElement)("p",null,t))},X9=[LX(Kn("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,ae.createElement)("kbd",null)}),LX(Kn("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,ae.createElement)("kbd",null)}),LX(Kn("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,ae.createElement)("kbd",null)}),Kn("Drag files into the editor to automatically insert media blocks."),Kn("Change a block's type by pressing the block icon on the toolbar.")];const Z9=function(){const[e]=(0,ae.useState)(Math.floor(Math.random()*X9.length));return(0,ae.createElement)(Y9,null,X9[e])},Q9=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),J9=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const e7=function({title:e,icon:t,description:n,blockType:r,className:o}){r&&(Mt("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r));const{parentNavBlockClientId:i}=du((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Am);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:a}=Uc(Am);return(0,ae.createElement)("div",{className:Au("block-editor-block-card",o)},i&&(0,ae.createElement)(bE,{onClick:()=>a(i),label:Kn("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:Yn()?Q9:J9,size:"small"}),(0,ae.createElement)(B9,{icon:t,showColors:!0}),(0,ae.createElement)("div",{className:"block-editor-block-card__content"},(0,ae.createElement)("h2",{className:"block-editor-block-card__title"},e),n&&(0,ae.createElement)("span",{className:"block-editor-block-card__description"},n)))},t7=Wc((e=>t=>(0,ae.createElement)(Vc,null,(n=>(0,ae.createElement)(e,{...t,registry:n})))),"withRegistry"),n7=Wc((e=>t7((({useSubRegistry:t=!0,registry:n,...r})=>{if(!t)return(0,ae.createElement)(e,{registry:n,...r});const[o,i]=(0,ae.useState)(null);return(0,ae.useEffect)((()=>{const e=mn({},n);e.registerStore(zu,Pm),i(e)}),[n]),o?(0,ae.createElement)(Hc,{value:o},(0,ae.createElement)(e,{registry:o,...r})):null}))),"withRegistryProvider"),r7=()=>{};function o7({clientId:e=null,value:t,selection:n,onChange:r=r7,onInput:o=r7}){const i=$c(),{resetBlocks:a,resetSelection:s,replaceInnerBlocks:l,setHasControlledInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:u}=i.dispatch(Am),{getBlockName:d,getBlocks:p,getSelectionStart:f,getSelectionEnd:h}=i.select(Am),m=du((t=>!e||t(Am).areInnerBlocksControlled(e)),[e]),g=(0,ae.useRef)({incoming:null,outgoing:[]}),b=(0,ae.useRef)(!1),v=()=>{t&&(u(),e?i.batch((()=>{c(e,!0);const n=t.map((e=>fa(e)));b.current&&(g.current.incoming=n),u(),l(e,n)})):(b.current&&(g.current.incoming=t),a(t)))},y=(0,ae.useRef)(o),w=(0,ae.useRef)(r);(0,ae.useEffect)((()=>{y.current=o,w.current=r}),[o,r]),(0,ae.useEffect)((()=>{g.current.outgoing.includes(t)?g.current.outgoing[g.current.outgoing.length-1]===t&&(g.current.outgoing=[]):p(e)!==t&&(g.current.outgoing=[],v(),n&&s(n.selectionStart,n.selectionEnd,n.initialPosition))}),[t,e]);const k=(0,ae.useRef)(!1);(0,ae.useEffect)((()=>{k.current?m||(g.current.outgoing=[],v()):k.current=!0}),[m]),(0,ae.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:r,areInnerBlocksControlled:o}=i.select(Am);let a=p(e),s=n(),l=!1;b.current=!0;const c=i.subscribe((()=>{if(null!==e&&null===d(e))return;if(!(!e||o(e)))return;const i=n(),c=p(e),u=c!==a;if(a=c,u&&(g.current.incoming||r()))return g.current.incoming=null,void(s=i);if(u||l&&!u&&i&&!s){s=i,g.current.outgoing.push(a);const e=s?w.current:y.current,n=Kf.has(a);n&&Kf.delete(a),e(a,{selection:{selectionStart:f(),selectionEnd:h(),initialPosition:t()},undoIgnore:n})}l=u}),Am);return()=>{b.current=!1,c()}}),[i,e]),(0,ae.useEffect)((()=>()=>{u(),e?(c(e,!1),u(),l(e,[])):a([])}),[])}const i7=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 a7({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 s7(e){return{type:"UNREGISTER_SHORTCUT",name:e}}const l7=[],c7={display:CN,raw:xN,ariaLabel:IN};function u7(e,t){return e?e.modifier?c7[t][e.modifier](e.character):e.character:null}function d7(e,t){return e[t]?e[t].keyCombination:null}function p7(e,t,n="display"){return u7(d7(e,t),n)}function f7(e,t){return e[t]?e[t].description:null}function h7(e,t){return e[t]&&e[t].aliases?e[t].aliases:l7}const m7=Ft(((e,t)=>[d7(e,t),...h7(e,t)].filter(Boolean)),((e,t)=>[e[t]])),g7=Ft(((e,t)=>m7(e,t).map((e=>u7(e,"raw")))),((e,t)=>[e[t]])),b7=Ft(((e,t)=>Object.entries(e).filter((([,e])=>e.category===t)).map((([e])=>e))),(e=>[e])),v7=un("core/keyboard-shortcuts",{reducer:i7,actions:k,selectors:_});yn(v7);const y7=new Set,w7=e=>{for(const t of y7)t(e)},k7=(0,ae.createContext)({add:e=>{0===y7.size&&document.addEventListener("keydown",w7),y7.add(e)},delete:e=>{y7.delete(e),0===y7.size&&document.removeEventListener("keydown",w7)}});const{Provider:_7}=k7;function E7(){return null}E7.Register=function(){const{registerShortcut:e}=Uc(v7);return(0,ae.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:Kn("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Kn("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Kn("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Kn("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:Kn("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Kn("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:Kn("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/multi-text-selection",category:"selection",description:Kn("Select text across multiple blocks."),keyCombination:{modifier:"shift",character:"arrow"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Kn("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Kn("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Kn("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}}),e({name:"core/block-editor/collapse-list-view",category:"list-view",description:Kn("Collapse all other items."),keyCombination:{modifier:"alt",character:"l"}}),e({name:"core/block-editor/group",category:"block",description:Kn("Create a group block from the selected multiple blocks."),keyCombination:{modifier:"primary",character:"g"}})}),[e]),null};const x7=E7,S7=n7((e=>{const{children:t,settings:n,stripExperimentalSettings:r=!1}=e,{__experimentalUpdateSettings:o}=Du(Uc(Am));return(0,ae.useEffect)((()=>{o({...n,__internalIsInitialized:!0},{stripExperimentalSettings:r,reset:!0})}),[n,r,o]),o7(e),(0,ae.createElement)(SR,{passthrough:!0},!n?.__unstableIsPreviewMode&&(0,ae.createElement)(x7.Register,null),(0,ae.createElement)(kK,null,t))}));const C7={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},I7=(0,ae.createContext)(!1),{Consumer:T7,Provider:P7}=I7;function A7({className:e,children:t,isDisabled:n=!0,...r}){const o=Z_();return(0,ae.createElement)(P7,{value:n},(0,ae.createElement)("div",{inert:n?"true":void 0,className:n?o(C7,e,"components-disabled"):void 0,...r},t))}A7.Context=I7,A7.Consumer=T7;const B7=A7,N7=(0,ae.createContext)({});function R7({value:e,children:t}){const n=(0,ae.useContext)(N7),r=(0,ae.useMemo)((()=>({...n,...e})),[n,e]);return(0,ae.createElement)(N7.Provider,{value:r,children:t})}const O7=N7,M7={},L7=FY("editor.BlockEdit")((e=>{const{name:t}=e,n=Oo(t);if(!n)return null;const r=n.edit||n.save;return(0,ae.createElement)(r,{...e})})),D7=e=>{const{attributes:t={},name:n}=e,r=Oo(n),o=(0,ae.useContext)(O7),i=(0,ae.useMemo)((()=>r&&r.usesContext?Object.fromEntries(Object.entries(o).filter((([e])=>r.usesContext.includes(e)))):M7),[r,o]);if(!r)return null;if(r.apiVersion>1)return(0,ae.createElement)(L7,{...e,context:i});const a=Do(r,"className",!0)?cs(n):null,s=Au(a,t.className,e.className);return(0,ae.createElement)(L7,{...e,context:i,className:s})};function z7({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,isPreviewMode:r,...o}){const{name:i,isSelected:a,clientId:s,attributes:l={},__unstableLayoutClassNames:c}=o,{layout:u=null,metadata:d={}}=l,{bindings:p}=d,f=Do(i,"layout",!1)||Do(i,"__experimentalLayout",!1);return(0,ae.createElement)(eu,{value:(0,ae.useMemo)((()=>({name:i,isSelected:a,clientId:s,layout:f?u:null,__unstableLayoutClassNames:c,[Gc]:e,[qc]:t,[Yc]:n,[Xc]:p,[Zc]:r})),[i,a,s,f,u,c,e,t,n,p,r])},(0,ae.createElement)(D7,{...o}))}const F7=function({className:e,actions:t,children:n,secondaryActions:r}){return(0,ae.createElement)("div",{style:{display:"contents",all:"initial"}},(0,ae.createElement)("div",{className:Au(e,"block-editor-warning")},(0,ae.createElement)("div",{className:"block-editor-warning__contents"},(0,ae.createElement)("p",{className:"block-editor-warning__message"},n),(ae.Children.count(t)>0||r)&&(0,ae.createElement)("div",{className:"block-editor-warning__actions"},ae.Children.count(t)>0&&ae.Children.map(t,((e,t)=>(0,ae.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,ae.createElement)(WR,{className:"block-editor-warning__secondary",icon:kG,label:Kn("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,ae.createElement)(Gj,null,r.map(((e,t)=>(0,ae.createElement)(Yj,{onClick:e.onClick,key:t},e.title))))))))))};var j7=o(841);function V7({title:e,rawContent:t,renderedContent:n,action:r,actionText:o,className:i}){return(0,ae.createElement)("div",{className:i},(0,ae.createElement)("div",{className:"block-editor-block-compare__content"},(0,ae.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,ae.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,ae.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,ae.createElement)(Da,null,Br(n)))),(0,ae.createElement)("div",{className:"block-editor-block-compare__action"},(0,ae.createElement)(bE,{variant:"secondary",tabIndex:"0",onClick:r},o)))}const H7=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:o}){const i=function(e){const t=(Array.isArray(e)?e:[e]).map((e=>fs(e.name,e.attributes,e.innerBlocks)));return t.join("")}(r(e)),a=(s=e.originalContent,l=i,(0,j7.Kx)(s,l).map(((e,t)=>{const n=Au({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,ae.createElement)("span",{key:t,className:n},e.value)})));var s,l;return(0,ae.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,ae.createElement)(V7,{title:Kn("Current"),className:"block-editor-block-compare__current",action:t,actionText:Kn("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,ae.createElement)(V7,{title:Kn("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:o,rawContent:a,renderedContent:i}))},$7=e=>rc({HTML:e.originalContent});function U7({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:r}=du((t=>{const{canInsertBlockType:n,getBlock:r,getBlockRootClientId:o}=t(Am),i=o(e);return{block:r(e),canInsertHTMLBlock:n("core/html",i),canInsertClassicBlock:n("core/freeform",i)}}),[e]),{replaceBlock:o}=Uc(Am),[i,a]=(0,ae.useState)(!1),s=(0,ae.useCallback)((()=>a(!1)),[]),l=(0,ae.useMemo)((()=>({toClassic(){const e=ua("core/freeform",{content:t.originalContent});return o(t.clientId,e)},toHTML(){const e=ua("core/html",{content:t.originalContent});return o(t.clientId,e)},toBlocks(){const e=$7(t);return o(t.clientId,e)},toRecoveredBlock(){const e=ua(t.name,t.attributes,t.innerBlocks);return o(t.clientId,e)}})),[t,o]),c=(0,ae.useMemo)((()=>[{title:Gn("Resolve","imperative verb"),onClick:()=>a(!0)},n&&{title:Kn("Convert to HTML"),onClick:l.toHTML},r&&{title:Kn("Convert to Classic Block"),onClick:l.toClassic}].filter(Boolean)),[n,r,l]);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(F7,{actions:[(0,ae.createElement)(bE,{key:"recover",onClick:l.toRecoveredBlock,variant:"primary"},Kn("Attempt Block Recovery"))],secondaryActions:c},Kn("This block contains unexpected or invalid content.")),i&&(0,ae.createElement)(f9,{title:Kn("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare"},(0,ae.createElement)(H7,{block:t,onKeep:l.toHTML,onConvert:l.toBlocks,convertor:$7,convertButtonText:Kn("Convert to Blocks")})))}const W7=(0,ae.createElement)(F7,{className:"block-editor-block-list__block-crash-warning"},Kn("This block has encountered an error and cannot be previewed.")),K7=()=>W7;class G7 extends ae.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 q7=G7;var Y7=o(321);const X7=function({clientId:e}){const[t,n]=(0,ae.useState)(""),r=du((t=>t(Am).getBlock(e)),[e]),{updateBlock:o}=Uc(Am);return(0,ae.useEffect)((()=>{n(hs(r))}),[r]),(0,ae.createElement)(Y7.Z,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const i=Oo(r.name);if(!i)return;const a=bl(i,t,r.attributes),s=t||fs(i,a),[l]=t?el({...r,attributes:a,originalContent:s}):[!0];o(e,{attributes:a,originalContent:s,isValid:l}),t||n(s)},onChange:e=>n(e.target.value)})};function Z7({isDisabled:e=!1}={}){return VN((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=zY(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 Q7=hee(),J7=e=>uee(e,Q7),eee=hee();J7.write=e=>uee(e,eee);var tee=hee();J7.onStart=e=>uee(e,tee);var nee=hee();J7.onFrame=e=>uee(e,nee);var ree=hee();J7.onFinish=e=>uee(e,ree);var oee=[];J7.setTimeout=(e,t)=>{const n=J7.now()+t,r=()=>{const e=oee.findIndex((e=>e.cancel==r));~e&&oee.splice(e,1),lee-=~e?1:0},o={time:n,handler:e,cancel:r};return oee.splice(iee(n),0,o),lee+=1,dee(),o};var iee=e=>~(~oee.findIndex((t=>t.time>e))||~oee.length);J7.cancel=e=>{tee.delete(e),nee.delete(e),ree.delete(e),Q7.delete(e),eee.delete(e)},J7.sync=e=>{cee=!0,J7.batchedUpdates(e),cee=!1},J7.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,J7.onStart(n)}return r.handler=e,r.cancel=()=>{tee.delete(n),t=null},r};var aee="undefined"!=typeof window?window.requestAnimationFrame:()=>{};J7.use=e=>aee=e,J7.now="undefined"!=typeof performance?()=>performance.now():Date.now,J7.batchedUpdates=e=>e(),J7.catch=console.error,J7.frameLoop="always",J7.advance=()=>{"demand"!==J7.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):fee()};var see=-1,lee=0,cee=!1;function uee(e,t){cee?(t.delete(e),e(0)):(t.add(e),dee())}function dee(){see<0&&(see=0,"demand"!==J7.frameLoop&&aee(pee))}function pee(){~see&&(aee(pee),J7.batchedUpdates(fee))}function fee(){const e=see;see=J7.now();const t=iee(see);t&&(mee(oee.splice(0,t),(e=>e.handler())),lee-=t),lee?(tee.flush(),Q7.flush(e?Math.min(64,see-e):16.667),nee.flush(),eee.flush(),ree.flush()):see=-1}function hee(){let e=new Set,t=e;return{add(n){lee+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(lee-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,lee-=t.size,mee(t,(t=>t(n)&&e.add(t))),lee+=e.size,t=e)}}}function mee(e,t){e.forEach((e=>{try{t(e)}catch(e){J7.catch(e)}}))}var gee=Object.defineProperty,bee={};function vee(){}((e,t)=>{for(var n in t)gee(e,n,{get:t[n],enumerable:!0})})(bee,{assign:()=>Nee,colors:()=>Pee,createStringInterpolator:()=>See,skipAnimation:()=>Aee,to:()=>Cee,willAdvance:()=>Bee});var yee={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 wee(e,t){if(yee.arr(e)){if(!yee.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 kee=(e,t)=>e.forEach(t);function _ee(e,t,n){if(yee.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 Eee=e=>yee.und(e)?[]:yee.arr(e)?e:[e];function xee(e,t){if(e.size){const n=Array.from(e);e.clear(),kee(n,t)}}var See,Cee,Iee=(e,...t)=>xee(e,(e=>e(...t))),Tee=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Pee=null,Aee=!1,Bee=vee,Nee=e=>{e.to&&(Cee=e.to),e.now&&(J7.now=e.now),void 0!==e.colors&&(Pee=e.colors),null!=e.skipAnimation&&(Aee=e.skipAnimation),e.createStringInterpolator&&(See=e.createStringInterpolator),e.requestAnimationFrame&&J7.use(e.requestAnimationFrame),e.batchedUpdates&&(J7.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Bee=e.willAdvance),e.frameLoop&&(J7.frameLoop=e.frameLoop)},Ree=new Set,Oee=[],Mee=[],Lee=0,Dee={get idle(){return!Ree.size&&!Oee.length},start(e){Lee>e.priority?(Ree.add(e),J7.onStart(zee)):(Fee(e),J7(Vee))},advance:Vee,sort(e){if(Lee)J7.onFrame((()=>Dee.sort(e)));else{const t=Oee.indexOf(e);~t&&(Oee.splice(t,1),jee(e))}},clear(){Oee=[],Ree.clear()}};function zee(){Ree.forEach(Fee),Ree.clear(),J7(Vee)}function Fee(e){Oee.includes(e)||jee(e)}function jee(e){Oee.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Oee,(t=>t.priority>e.priority)),0,e)}function Vee(e){const t=Mee;for(let n=0;n<Oee.length;n++){const r=Oee[n];Lee=r.priority,r.idle||(Bee(r),r.advance(e),r.idle||t.push(r))}return Lee=0,(Mee=Oee).length=0,(Oee=t).length>0}var Hee="[-+]?\\d*\\.?\\d+",$ee=Hee+"%";function Uee(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Wee=new RegExp("rgb"+Uee(Hee,Hee,Hee)),Kee=new RegExp("rgba"+Uee(Hee,Hee,Hee,Hee)),Gee=new RegExp("hsl"+Uee(Hee,$ee,$ee)),qee=new RegExp("hsla"+Uee(Hee,$ee,$ee,Hee)),Yee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Xee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Zee=/^#([0-9a-fA-F]{6})$/,Qee=/^#([0-9a-fA-F]{8})$/;function Jee(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 ete(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Jee(o,r,e+1/3),a=Jee(o,r,e),s=Jee(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function tte(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function nte(e){return(parseFloat(e)%360+360)%360/360}function rte(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ote(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ite(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Zee.exec(e))?parseInt(t[1]+"ff",16)>>>0:Pee&&void 0!==Pee[e]?Pee[e]:(t=Wee.exec(e))?(tte(t[1])<<24|tte(t[2])<<16|tte(t[3])<<8|255)>>>0:(t=Kee.exec(e))?(tte(t[1])<<24|tte(t[2])<<16|tte(t[3])<<8|rte(t[4]))>>>0:(t=Yee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Qee.exec(e))?parseInt(t[1],16)>>>0:(t=Xee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Gee.exec(e))?(255|ete(nte(t[1]),ote(t[2]),ote(t[3])))>>>0:(t=qee.exec(e))?(ete(nte(t[1]),ote(t[2]),ote(t[3]))|rte(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 ate=(e,t,n)=>{if(yee.fun(e))return e;if(yee.arr(e))return ate({range:e,output:t,extrapolate:n});if(yee.str(e.output[0]))return See(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 ste=1.70158,lte=1.525*ste,cte=ste+1,ute=2*Math.PI/3,dte=2*Math.PI/4.5,pte=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},fte={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=>cte*e*e*e-ste*e*e,easeOutBack:e=>1+cte*Math.pow(e-1,3)+ste*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-lte)/2:(Math.pow(2*e-2,2)*((lte+1)*(2*e-2)+lte)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ute),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ute)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*dte)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*dte)/2+1,easeInBounce:e=>1-pte(1-e),easeOutBounce:pte,easeInOutBounce:e=>e<.5?(1-pte(1-2*e))/2:(1+pte(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)}},hte=Symbol.for("FluidValue.get"),mte=Symbol.for("FluidValue.observers"),gte=e=>Boolean(e&&e[hte]),bte=e=>e&&e[hte]?e[hte]():e,vte=e=>e[mte]||null;function yte(e,t){const n=e[mte];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var wte=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");kte(this,e)}},kte=(e,t)=>Ste(e,hte,t);function _te(e,t){if(e[hte]){let n=e[mte];n||Ste(e,mte,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ete(e,t){const n=e[mte];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[mte]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var xte,Ste=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Cte=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ite=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Tte=new RegExp(`(${Cte.source})(%|[a-z]+)`,"i"),Pte=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ate=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Bte=e=>{const[t,n]=Nte(e);if(!t||Tee())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&&Ate.test(n)?Bte(n):n||e},Nte=e=>{const t=Ate.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Rte=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Ote=e=>{xte||(xte=Pee?new RegExp(`(${Object.keys(Pee).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>bte(e).replace(Ate,Bte).replace(Ite,ite).replace(xte,ite))),n=t.map((e=>e.match(Cte).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=>ate({...e,output:t})));return e=>{const n=!Tte.test(t[0])&&t.find((e=>Tte.test(e)))?.replace(Cte,"");let r=0;return t[0].replace(Cte,(()=>`${o[r++](e)}${n||""}`)).replace(Pte,Rte)}},Mte="react-spring: ",Lte=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Mte}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Dte=Lte(console.warn);Lte(console.warn);function zte(e){return yee.str(e)&&("#"==e[0]||/\d/.test(e)||!Tee()&&Ate.test(e)||e in(Pee||{}))}var Fte=Tee()?ae.useEffect:ae.useLayoutEffect;function jte(){const e=(0,ae.useState)()[1],t=(()=>{const e=(0,ae.useRef)(!1);return Fte((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Vte=[];var Hte=Symbol.for("Animated:node"),$te=e=>e&&e[Hte],Ute=(e,t)=>{return n=e,r=Hte,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},Wte=e=>e&&e[Hte]&&e[Hte].getPayload(),Kte=class{constructor(){Ute(this,this)}getPayload(){return this.payload||[]}},Gte=class extends Kte{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,yee.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Gte(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return yee.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,yee.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},qte=class extends Gte{constructor(e){super(0),this._string=null,this._toString=ate({output:[e,e]})}static create(e){return new qte(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(yee.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=ate({output:[this.getValue(),e]})),this._value=0,super.reset()}},Yte={dependencies:null},Xte=class extends Kte{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return _ee(this.source,((n,r)=>{var o;(o=n)&&o[Hte]===o?t[r]=n.getValue(e):gte(n)?t[r]=bte(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&kee(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return _ee(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Yte.dependencies&&gte(e)&&Yte.dependencies.add(e);const t=Wte(e);t&&kee(t,(e=>this.add(e)))}},Zte=class extends Xte{constructor(e){super(e)}static create(e){return new Zte(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(Qte)),!0)}};function Qte(e){return(zte(e)?qte:Gte).create(e)}function Jte(e){const t=$te(e);return t?t.constructor:yee.arr(e)?Zte:zte(e)?qte:Gte}var ene=(e,t)=>{const n=!yee.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ae.forwardRef)(((r,o)=>{const i=(0,ae.useRef)(null),a=n&&(0,ae.useCallback)((e=>{i.current=function(e,t){e&&(yee.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,l]=function(e,t){const n=new Set;Yte.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Xte(e),Yte.dependencies=null,[e,n]}(r,t),c=jte(),u=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new tne(u,l),p=(0,ae.useRef)();var f;Fte((()=>(p.current=d,kee(l,(e=>_te(e,d))),()=>{p.current&&(kee(p.current.deps,(e=>Ete(e,p.current))),J7.cancel(p.current.update))}))),(0,ae.useEffect)(u,[]),f=()=>()=>{const e=p.current;kee(e.deps,(t=>Ete(t,e)))},(0,ae.useEffect)(f,Vte);const h=t.getComponentProps(s.getValue());return ae.createElement(e,{...h,ref:a})}))},tne=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&J7.write(this.update)}};var nne=Symbol.for("AnimatedComponent"),rne=e=>yee.str(e)?e:e&&yee.str(e.displayName)?e.displayName:yee.fun(e)&&e.name||null;function one(e,...t){return yee.fun(e)?e(...t):e}var ine=(e,t)=>!0===e||!!(t&&e&&(yee.fun(e)?e(t):Eee(e).includes(t))),ane=(e,t)=>yee.obj(e)?t&&e[t]:e,sne=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,lne=e=>e,cne=(e,t=lne)=>{let n=une;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);yee.und(n)||(r[o]=n)}return r},une=["config","onProps","onStart","onChange","onPause","onResume","onRest"],dne={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 pne(e){const t=function(e){const t={};let n=0;if(_ee(e,((e,r)=>{dne[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return _ee(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function fne(e){return e=bte(e),yee.arr(e)?e.map(fne):zte(e)?bee.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hne(e){return yee.fun(e)||yee.arr(e)&&yee.obj(e[0])}var mne={tension:170,friction:26,mass:1,damping:1,easing:fte.linear,clamp:!1},gne=class{constructor(){this.velocity=0,Object.assign(this,mne)}};function bne(e,t){if(yee.und(t.decay)){const n=!yee.und(t.tension)||!yee.und(t.friction);!n&&yee.und(t.frequency)&&yee.und(t.damping)&&yee.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var vne=[],yne=class{constructor(){this.changed=!1,this.values=vne,this.toValues=null,this.fromValues=vne,this.config=new gne,this.immediate=!1}};function wne(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=ine(n.cancel??r?.cancel,t);if(u)f();else{yee.und(n.pause)||(o.paused=ine(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||ine(e,t)),l=one(n.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(c),c.cancel(),l=c.time-J7.now()}function p(){l>0&&!bee.skipAnimation?(o.delayed=!0,c=J7.setTimeout(f,l),o.pauseQueue.add(d),o.timeouts.add(c)):f()}function f(){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 kne=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?xne(e.get()):t.every((e=>e.noop))?_ne(e.get()):Ene(e.get(),t.every((e=>e.finished))),_ne=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ene=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),xne=e=>({value:e,cancelled:!0,finished:!1});function Sne(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=cne(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),f=e=>{const t=o<=(n.cancelId||0)&&xne(r)||o!==n.asyncId&&Ene(r,!1);if(t)throw e.result=t,d(e),e},h=(e,t)=>{const i=new Ine,a=new Tne;return(async()=>{if(bee.skipAnimation)throw Cne(n),a.result=Ene(r,!1),d(a),a;f(i);const s=yee.obj(e)?{...e}:{...t,to:e};s.parentId=o,_ee(c,((e,t)=>{yee.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return f(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(bee.skipAnimation)return Cne(n),Ene(r,!1);try{let t;t=yee.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(u),p]),m=Ene(r.get(),!0,!1)}catch(e){if(e instanceof Ine)m=e.result;else{if(!(e instanceof Tne))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return yee.fun(a)&&J7.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function Cne(e,t){xee(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ine=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.")}},Tne=class extends Error{constructor(){super("SkipAnimationSignal")}},Pne=e=>e instanceof Bne,Ane=1,Bne=class extends wte{constructor(){super(...arguments),this.id=Ane++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=$te(this);return e&&e.getValue()}to(...e){return bee.to(this,e)}interpolate(...e){return Dte(`${Mte}The "interpolate" function is deprecated in v9 (use "to" instead)`),bee.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){yte(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Dee.sort(this),yte(this,{type:"priority",parent:this,priority:e})}},Nne=Symbol.for("SpringPhase"),Rne=e=>(1&e[Nne])>0,One=e=>(2&e[Nne])>0,Mne=e=>(4&e[Nne])>0,Lne=(e,t)=>t?e[Nne]|=3:e[Nne]&=-3,Dne=(e,t)=>t?e[Nne]|=4:e[Nne]&=-5,zne=class extends Bne{constructor(e,t){if(super(),this.animation=new yne,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,!yee.und(e)||!yee.und(t)){const n=yee.obj(e)?{...e}:{...t,from:e};yee.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(One(this)||this._state.asyncTo)||Mne(this)}get goal(){return bte(this.animation.to)}get velocity(){const e=$te(this);return e instanceof Gte?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Rne(this)}get isAnimating(){return One(this)}get isPaused(){return Mne(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=Wte(r.to);!a&&gte(r.to)&&(o=Eee(bte(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==qte?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=yee.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const p=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(yee.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)<=p,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||p/10,r=i.clamp?0:i.bounce,l=!yee.und(r),f=n==c?s.v0>0:n<c;let h,m=!1;const g=1,b=Math.ceil(e/g);for(let e=0;e<b&&(h=Math.abs(a)>t,h||(u=Math.abs(c-d)<=p,!u));++e){l&&(m=d==c||d>c==f,m&&(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=$te(this),l=s.getValue();if(t){const e=bte(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 J7.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(One(this)){const{to:e,config:t}=this.animation;J7.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 yee.und(e)?(n=this.queue||[],this.queue=[]):n=[yee.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>kne(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Cne(this._state,e&&this._lastCallId),J7.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=yee.obj(n)?n[t]:n,(null==n||hne(n))&&(n=void 0),r=yee.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Rne(this)||(e.reverse&&([n,r]=[r,n]),r=bte(r),yee.und(r)?$te(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,cne(e,((e,t)=>/^on/.test(t)?ane(e,n):e))),Une(this,e,"onProps"),Wne(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 wne(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Mne(this)||(Dne(this,!0),Iee(i.pauseQueue),Wne(this,"onPause",Ene(this,Fne(this,this.animation.to)),this))},resume:()=>{Mne(this)&&(Dne(this,!1),One(this)&&this._resume(),Iee(i.resumeQueue),Wne(this,"onResume",Ene(this,Fne(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=jne(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(xne(this));const r=!yee.und(e.to),o=!yee.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(xne(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&&!yee.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!wee(d,c);p&&(s.from=d),d=bte(d);const f=!wee(u,l);f&&this._focus(u);const h=hne(t.to),{config:m}=s,{decay:g,velocity:b}=m;(r||o)&&(m.velocity=0),t.config&&!h&&function(e,t,n){n&&(bne(n={...n},t),t={...n,...t}),bne(e,t),Object.assign(e,t);for(const t in mne)null==e[t]&&(e[t]=mne[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;yee.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)}(m,one(t.config,i),t.config!==a.config?one(a.config,i):void 0);let v=$te(this);if(!v||yee.und(u))return n(Ene(this,!0));const y=yee.und(t.reset)?o&&!t.default:!yee.und(d)&&ine(t.reset,i),w=y?d:this.get(),k=fne(u),_=yee.num(k)||yee.arr(k)||zte(k),E=!h&&(!_||ine(a.immediate||t.immediate,i));if(f){const e=Jte(u);if(e!==v.constructor){if(!E)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(k)}}const x=v.constructor;let S=gte(u),C=!1;if(!S){const e=y||!Rne(this)&&p;(f||e)&&(C=wee(fne(w),k),S=!C),(wee(s.immediate,E)||E)&&wee(m.decay,g)&&wee(m.velocity,b)||(S=!0)}if(C&&One(this)&&(s.changed&&!y?S=!0:S||this._stop(l)),!h&&((S||gte(l))&&(s.values=v.getPayload(),s.toValues=gte(u)?null:x==qte?[1]:Eee(k)),s.immediate!=E&&(s.immediate=E,E||y||this._set(l)),S)){const{onRest:e}=s;kee($ne,(e=>Une(this,t,e)));const r=Ene(this,Fne(this,l));Iee(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&J7.batchedUpdates((()=>{s.changed=!y,e?.(r,this),y?one(a.onRest,r):s.onStart?.(r,this)}))}y&&this._set(w),h?n(Sne(t.to,t,this._state,this)):S?this._start():One(this)&&!f?this._pendingCalls.add(n):n(_ne(w))}_focus(e){const t=this.animation;e!==t.to&&(vte(this)&&this._detach(),t.to=e,vte(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;gte(t)&&(_te(t,this),Pne(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;gte(e)&&Ete(e,this)}_set(e,t=!0){const n=bte(e);if(!yee.und(n)){const e=$te(this);if(!e||!wee(n,e.getValue())){const r=Jte(n);e&&e.constructor==r?e.setValue(n):Ute(this,r.create(n)),e&&J7.batchedUpdates((()=>{this._onChange(n,t)}))}}return $te(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Wne(this,"onStart",Ene(this,Fne(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),one(this.animation.onChange,e,this)),one(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;$te(this).reset(bte(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),One(this)||(Lne(this,!0),Mne(this)||this._resume())}_resume(){bee.skipAnimation?this.finish():Dee.start(this)}_stop(e,t){if(One(this)){Lne(this,!1);const n=this.animation;kee(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yte(this,{type:"idle",parent:this});const r=t?xne(this.get()):Ene(this.get(),Fne(this,e??n.to));Iee(this._pendingCalls,r),n.changed&&(n.changed=!1,Wne(this,"onRest",r,this))}}};function Fne(e,t){const n=fne(t);return wee(fne(e.get()),n)}function jne(e,t=e.loop,n=e.to){const r=one(t);if(r){const o=!0!==r&&pne(r),i=(o||e).reverse,a=!o||o.reset;return Vne({...e,loop:t,default:!1,pause:void 0,to:!i||hne(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Vne(e){const{to:t,from:n}=e=pne(e),r=new Set;return yee.obj(t)&&Hne(t,r),yee.obj(n)&&Hne(n,r),e.keys=r.size?Array.from(r):null,e}function Hne(e,t){_ee(e,((e,n)=>null!=e&&t.add(n)))}var $ne=["onStart","onRest","onChange","onPause","onResume"];function Une(e,t,n){e.animation[n]=t[n]!==sne(t,n)?ane(t[n],e.key):void 0}function Wne(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Kne=["onStart","onChange","onRest"],Gne=1,qne=class{constructor(e,t){this.id=Gne++,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];yee.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Vne(e)),this}start(e){let{queue:t}=this;return e?t=Eee(e).map(Vne):this.queue=[],this._flush?this._flush(this,t):(Jne(this,t),Yne(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;kee(Eee(t),(t=>n[t].stop(!!e)))}else Cne(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(yee.und(e))this.start({pause:!0});else{const t=this.springs;kee(Eee(e),(e=>t[e].pause()))}return this}resume(e){if(yee.und(e))this.start({pause:!1});else{const t=this.springs;kee(Eee(e),(e=>t[e].resume()))}return this}each(e){_ee(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,xee(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&&xee(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,xee(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)}J7.onFrame(this._onFrame)}};function Yne(e,t){return Promise.all(t.map((t=>Xne(e,t)))).then((t=>kne(e,t)))}async function Xne(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=yee.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=yee.arr(o)||yee.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):kee(Kne,(n=>{const r=t[n];if(yee.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,Iee(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===sne(t,"cancel");(u||f&&d.asyncId)&&p.push(wne(++e._lastAsyncId,{props:t,state:d,actions:{pause:vee,resume:vee,start(t,n){f?(Cne(d,e._lastAsyncId),n(xne(e))):(t.onRest=s,n(Sne(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const h=kne(e,await Promise.all(p));if(a&&h.finished&&(!n||!h.noop)){const n=jne(t,a,o);if(n)return Jne(e,[n]),Xne(e,n,!0)}return l&&J7.batchedUpdates((()=>l(h,e,e.item))),h}function Zne(e,t){const n=new zne;return n.key=e,t&&_te(n,t),n}function Qne(e,t,n){t.keys&&kee(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Jne(e,t){kee(t,(t=>{Qne(e.springs,t,(t=>Zne(t,e)))}))}var ere=({children:e,...t})=>{const n=(0,ae.useContext)(tre),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,ae.useState)((()=>({inputs:t,result:e()}))),r=(0,ae.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,ae.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=tre;return ae.createElement(i,{value:t},e)},tre=function(e,t){return Object.assign(e,ae.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(ere,{});ere.Provider=tre.Provider,ere.Consumer=tre.Consumer;var nre=class extends Bne{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ate(...t);const n=this._get(),r=Jte(n);Ute(this,r.create(n))}advance(e){const t=this._get();wee(t,this.get())||($te(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ore(this._active)&&ire(this)}_get(){const e=yee.arr(this.source)?this.source.map(bte):Eee(bte(this.source));return this.calc(...e)}_start(){this.idle&&!ore(this._active)&&(this.idle=!1,kee(Wte(this),(e=>{e.done=!1})),bee.skipAnimation?(J7.batchedUpdates((()=>this.advance())),ire(this)):Dee.start(this))}_attach(){let e=1;kee(Eee(this.source),(t=>{gte(t)&&_te(t,this),Pne(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){kee(Eee(this.source),(e=>{gte(e)&&Ete(e,this)})),this._active.clear(),ire(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=Eee(this.source).reduce(((e,t)=>Math.max(e,(Pne(t)?t.priority:0)+1)),0))}};function rre(e){return!1!==e.idle}function ore(e){return!e.size||Array.from(e).every(rre)}function ire(e){e.idle||(e.idle=!0,kee(Wte(e),(e=>{e.done=!0})),yte(e,{type:"idle",parent:e}))}bee.assign({createStringInterpolator:Ote,to:(e,t)=>new nre(e,t)});Dee.advance;var are=/^--/;function sre(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||are.test(e)||cre.hasOwnProperty(e)&&cre[e]?(""+t).trim():t+"px"}var lre={};var cre={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},ure=["Webkit","Ms","Moz","O"];cre=Object.keys(cre).reduce(((e,t)=>(ure.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),cre);var dre=/^(matrix|translate|scale|rotate|skew)/,pre=/^(translate)/,fre=/^(rotate|skew)/,hre=(e,t)=>yee.num(e)&&0!==e?e+t:e,mre=(e,t)=>yee.arr(e)?e.every((e=>mre(e,t))):yee.num(e)?e===t:parseFloat(e)===t,gre=class extends Xte{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=>hre(e,"px"))).join(",")})`,mre(e,0)]))),_ee(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(dre.test(t)){if(delete r[t],yee.und(e))return;const n=pre.test(t)?"px":fre.test(t)?"deg":"";o.push(Eee(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${hre(o,n)})`,mre(o,0)]:e=>[`${t}(${e.map((e=>hre(e,n))).join(",")})`,mre(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new bre(o,i)),super(r)}},bre=class extends wte{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 kee(this.inputs,((n,r)=>{const o=bte(n[0]),[i,a]=this.transforms[r](yee.arr(o)?o:n.map(bte));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&kee(this.inputs,(e=>kee(e,(e=>gte(e)&&_te(e,this)))))}observerRemoved(e){0==e&&kee(this.inputs,(e=>kee(e,(e=>gte(e)&&Ete(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),yte(this,e)}};bee.assign({batchedUpdates:ly.unstable_batchedUpdates,createStringInterpolator:Ote,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 vre=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Xte(e),getComponentProps:r=e=>e}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=rne(e)||"Anonymous";return(e=yee.str(e)?i[e]||(i[e]=ene(e,o)):e[nne]||(e[nne]=ene(e,o))).displayName=`Animated(${t})`,e};return _ee(e,((t,n)=>{yee.arr(e)&&(n=rne(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:lre[t]||(lre[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=sre(t,r[t]);are.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 gre(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n});vre.animated;function yre(e){return{top:e.offsetTop,left:e.offsetLeft}}const wre=function({triggerAnimationOnChange:e,clientId:t}){const n=(0,ae.useRef)(),{isTyping:r,getGlobalBlockCount:o,isBlockSelected:i,isFirstMultiSelectedBlock:a,isBlockMultiSelected:s,isAncestorMultiSelected:l}=du(Am),{previous:c,prevRect:u}=(0,ae.useMemo)((()=>({previous:n.current&&yre(n.current),prevRect:n.current&&n.current.getBoundingClientRect()})),[e]);return(0,ae.useLayoutEffect)((()=>{if(!c||!n.current)return;const e=a9(n.current),d=i(t),p=d||a(t);function f(){if(p&&u){const t=n.current.getBoundingClientRect().top-u.top;t&&(e.scrollTop+=t)}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||r()||o()>200)return void f();const h=d||s(t)||l(t)?"1":"",m=new qne({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:e}){if(!n.current)return;let{x:t,y:r}=e;t=Math.round(t),r=Math.round(r);const o=0===t&&0===r;n.current.style.transformOrigin="center center",n.current.style.transform=o?null:`translate3d(${t}px,${r}px,0)`,n.current.style.zIndex=h,f()}});n.current.style.transform=void 0;const g=yre(n.current),b=Math.round(c.left-g.left),v=Math.round(c.top-g.top);return m.start({x:0,y:0,from:{x:b,y:v}}),()=>{m.stop(),m.set({x:0,y:0})}}),[c,u,t,r,o,i,a,s,l]),n},kre=(0,ae.createContext)({});function _re(e){return"INPUT"===e?.nodeName}function Ere(e){return _re(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 xre(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function Sre(e){if(!e)return!1;const{tagName:t}=e;return xre(e)||"BUTTON"===t||"SELECT"===t}function Cre(e,t,n,r){const o=r.style.zIndex,i=r.style.position,{position:a="static"}=i9(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 Ire(e){return"rtl"===i9(e).direction}function Tre(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 Pre(e,t,n){if(!e)return;if(e.focus(),xre(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=Tre(e,t,(()=>function(e,t,n){const{ownerDocument:r}=e,o=Ire(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),Cre(r,n,o?i.bottom-1:i.top+1,e)}(e,t,n)));if(!r)return;const{ownerDocument:o}=e,{defaultView:i}=o;Pr();const a=i.getSelection();Pr(),a.removeAllRanges(),a.addRange(r)}function Are(e,t){return Pre(e,t,void 0)}const Bre=".block-editor-block-list__block",Nre=".block-list-appender",Rre=".block-editor-button-block-appender";function Ore(e,t){return e.closest(Bre)===t.closest(Bre)}function Mre(e,t){return t.closest([Bre,Nre,Rre].join(","))===e}function Lre(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(Bre);return t?t.id.slice(6):void 0}function Dre({clientId:e,initialPosition:t}){const n=(0,ae.useRef)(),{isBlockSelected:r,isMultiSelecting:o,__unstableGetEditorMode:i}=du(Am);return(0,ae.useEffect)((()=>{if(!r(e)||o()||"zoom-out"===i())return;if(null==t)return;if(!n.current)return;const{ownerDocument:a}=n.current;if(Mre(n.current,a.activeElement))return;const s=jN.tabbable.find(n.current).filter((e=>Ere(e))),l=-1===t,c=s[l?s.length-1:0]||n.current;if(Mre(n.current,c)){if(!n.current.getAttribute("contenteditable")){const e=jN.tabbable.findNext(n.current);if(e&&Mre(n.current,e)&&Sre(e))return void e.focus()}Are(c,l)}else n.current.focus()}),[t,e]),n}function zre(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function Fre(e){const{isBlockSelected:t}=du(Am),{selectBlock:n,selectionChange:r}=Uc(Am);return VN((o=>{function i(i){o.parentElement.closest('[contenteditable="true"]')||(t(e)?i.target.isContentEditable||r(e):Mre(o,i.target)&&n(e))}return o.addEventListener("focusin",i),()=>{o.removeEventListener("focusin",i)}}),[t,n])}function jre({clientId:e,isSelected:t}){const{getBlockRootClientId:n,getBlockIndex:r}=du(Am),{insertAfterBlock:o,removeBlock:i}=Uc(Am);return VN((n=>{if(t)return n.addEventListener("keydown",r),n.addEventListener("dragstart",a),()=>{n.removeEventListener("keydown",r),n.removeEventListener("dragstart",a)};function r(t){const{keyCode:r,target:a}=t;r!==cN&&r!==sN&&r!==gN||a!==n||Ere(a)||(t.preventDefault(),r===cN?o(e):i(e))}function a(e){e.preventDefault()}}),[e,t,n,r,o,i])}function Vre(e){const{isNavigationMode:t,isBlockSelected:n}=du(Am),{setNavigationMode:r,selectBlock:o}=Uc(Am);return VN((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])}function Hre(){const e=(0,ae.useContext)(ioe);return VN((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function $re({isSelected:e}){const t=YN();return VN((n=>{if(e){const{ownerDocument:e}=n,{defaultView:r}=e;if(!r.IntersectionObserver)return;const o=new r.IntersectionObserver((e=>{e[0].isIntersecting||n.scrollIntoView({behavior:t?"instant":"smooth"}),o.disconnect()}));return o.observe(n),()=>{o.disconnect()}}}),[e])}function Ure({clientId:e="",isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=Du(du(Am));return VN((r=>{if(!t)return;const o=t=>{(t.target===r||t.target.classList.contains("is-root-container"))&&(t.defaultPrevented||(t.preventDefault(),n(e).forEach((({clientId:e})=>{const t=r.querySelector(`[data-block="${e}"]`);t&&(t.classList.remove("has-editable-outline"),t.offsetWidth,t.classList.add("has-editable-outline"))}))))};return r.addEventListener("click",o),()=>r.removeEventListener("click",o)}),[t])}function Wre(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:r,wrapperProps:o={},isAligned:i,index:a,mode:s,name:l,blockApiVersion:c,blockTitle:u,isSelected:d,isSubtreeDisabled:p,hasOverlay:f,initialPosition:h,blockEditingMode:m,isHighlighted:g,isMultiSelected:b,isPartiallySelected:v,isReusable:y,isDragging:w,hasChildSelected:k,isBlockMovingMode:_,canInsertMovingBlock:E,isEditingDisabled:x,hasEditableOutline:S,isTemporarilyEditingAsBlocks:C,defaultClassName:I,templateLock:T}=(0,ae.useContext)(kre),P=On(Kn("Block: %s"),u),A="html"!==s||t?"":"-visual",B=JE([e.ref,Dre({clientId:n,initialPosition:h}),_K(n),Fre(n),jre({clientId:n,isSelected:d}),Vre(n),VN((e=>(e.addEventListener("mouseout",zre),e.addEventListener("mouseover",zre),()=>{e.removeEventListener("mouseout",zre),e.removeEventListener("mouseover",zre),e.classList.remove("is-hovered")})),[]),Hre(),wre({triggerAnimationOnChange:a,clientId:n}),Z7({isDisabled:!f}),Ure({clientId:n,isEnabled:"core/block"===l||"contentOnly"===T}),$re({isSelected:d})]),N=tu(),R=!!N[Xc]&&M9(l)?{"--wp-admin-theme-color":"var(--wp-block-synced-color)","--wp-admin-theme-color--rgb":"var(--wp-block-synced-color--rgb)"}:{};c<2&&n===N.clientId&&"undefined"!=typeof SCRIPT_DEBUG&&!0===SCRIPT_DEBUG&&ck(`Block type "${l}" must support API version 2 or higher to work correctly with "useBlockProps" method.`);let O=!1;return"-"!==o?.style?.marginTop?.charAt(0)&&"-"!==o?.style?.marginBottom?.charAt(0)&&"-"!==o?.style?.marginLeft?.charAt(0)&&"-"!==o?.style?.marginRight?.charAt(0)||(O=!0),{tabIndex:"disabled"===m?-1:0,...o,...e,ref:B,id:`block-${n}${A}`,role:"document","aria-label":P,"data-block":n,"data-type":l,"data-title":u,inert:p?"true":void 0,className:Au("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":f,"is-selected":d,"is-highlighted":g,"is-multi-selected":b,"is-partially-selected":v,"is-reusable":y,"is-dragging":w,"has-child-selected":k,"is-block-moving-mode":_,"can-insert-moving-block":E,"is-editing-disabled":x,"has-editable-outline":S,"has-negative-margin":O,"is-content-locked-temporarily-editing-as-blocks":C},r,e.className,o.className,I),style:{...o.style,...e.style,...R}}}function Kre({children:e,isHtml:t,...n}){return(0,ae.createElement)("div",{...Wre(n,{__unstableIsHtml:t})},e)}function Gre({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:p,setAttributes:f,onReplace:h,onInsertBlocksAfter:m,onMerge:g,toggleSelection:b}){var v;const{mayDisplayControls:y,mayDisplayParentControls:w,themeSupportsLayout:k,..._}=(0,ae.useContext)(kre),{removeBlock:E}=Uc(Am),x=(0,ae.useCallback)((()=>E(o)),[o,E]),S=Jj()||{};let C=(0,ae.createElement)(z7,{name:c,isSelected:i,attributes:d,setAttributes:f,insertBlocksAfter:n?void 0:m,onReplace:r?h:void 0,onRemove:r?x:void 0,mergeBlocks:r?g:void 0,clientId:o,isSelectionEnabled:a,toggleSelection:b,__unstableLayoutClassNames:l,__unstableParentLayout:Object.keys(S).length?S:void 0,mayDisplayControls:y,mayDisplayParentControls:w,blockEditingMode:_.blockEditingMode,isPreviewMode:_.isPreviewMode});const I=Oo(c);I?.getEditWrapperProps&&(p=function(e,t){const n={...e,...t};return e?.hasOwnProperty("className")&&t?.hasOwnProperty("className")&&(n.className=Au(e.className,t.className)),e?.hasOwnProperty("style")&&t?.hasOwnProperty("style")&&(n.style={...e.style,...t.style}),n}(p,I.getEditWrapperProps(d)));const T=p&&!!p["data-align"]&&!k,P=s?.includes("is-position-sticky");let A;if(T&&(C=(0,ae.createElement)("div",{className:Au("wp-block",P&&s),"data-align":p["data-align"]},C)),u)A="html"===t?(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("div",{style:{display:"none"}},C),(0,ae.createElement)(Kre,{isHtml:!0},(0,ae.createElement)(X7,{clientId:o}))):I?.apiVersion>1?C:(0,ae.createElement)(Kre,null,C);else{const t=e?ls(e):fs(I,d);A=(0,ae.createElement)(Kre,{className:"has-warning"},(0,ae.createElement)(U7,{clientId:o}),(0,ae.createElement)(Da,null,Br(t)))}const{"data-align":B,...N}=null!==(v=p)&&void 0!==v?v:{};return N.className=Au(N.className,B&&k&&`align${B}`,!(B&&P)&&s),(0,ae.createElement)(kre.Provider,{value:{wrapperProps:N,isAligned:T,..._}},(0,ae.createElement)(q7,{fallback:(0,ae.createElement)(Kre,{className:"has-warning"},(0,ae.createElement)(K7,null))},A))}Wre.save=function e(t={}){const{blockType:n,attributes:r}=ds;return e.skipFilters?t:St("blocks.getSaveContent.extraProps",{...t},n,r)};const qre=VY(((e,t,n)=>{const{updateBlockAttributes:r,insertBlocks:o,mergeBlocks:i,replaceBlocks:a,toggleSelection:s,__unstableMarkLastChangeAsPersistent:l,moveBlocksToPosition:c,removeBlock:u}=e(Am);return{setAttributes(e){const{getMultiSelectedBlockClientIds:o}=n.select(Am),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(Am),s=a(r);o(e,s+1,i)},onMerge(e){const{clientId:r,rootClientId:s}=t,{getPreviousBlockClientId:l,getNextBlockClientId:d,getBlock:p,getBlockAttributes:f,getBlockName:h,getBlockOrder:m,getBlockIndex:g,getBlockRootClientId:b,canInsertBlockType:v}=n.select(Am);function y(e,t=!0){const r=b(e),i=m(e),[a]=i;1===i.length&&Vo(p(a))?u(e):n.batch((()=>{if(v(h(a),r))c([a],e,r,g(e));else{const n=ka(p(a),Ro());n&&n.length&&(o(n,g(e),r,t),u(a,!1))}!m(e).length&&Vo(p(e))&&u(e,!1)}))}if(e){if(s){const e=d(s);if(e){if(h(s)!==h(e))return void i(s,e);{const t=f(s),r=f(e);if(Object.keys(t).every((e=>t[e]===r[e])))return void n.batch((()=>{c(m(e),e,s),u(e,!1)}))}}}const e=d(r);if(!e)return;m(e).length?y(e,!1):i(r,e)}else{const e=l(r);if(e)i(e,r);else if(s){const e=l(s);if(e&&h(s)===h(e)){const t=f(s),r=f(e);if(Object.keys(t).every((e=>t[e]===r[e])))return void n.batch((()=>{c(m(s),s,e),u(s,!1)}))}y(s)}else if(h(r)!==Ro()){const e=ka(p(r),Ro());e&&e.length&&a(r,e)}}},onReplace(e,n,r){e.length&&!Ho(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)}}}));Gre=Ne(qre,FY("editor.BlockListBlock"))(Gre);const Yre=(0,ae.memo)((function(e){const{clientId:t,rootClientId:n}=e,r=du((e=>{const{isBlockSelected:r,getBlockMode:o,isSelectionEnabled:i,getTemplateLock:a,getBlockWithoutAttributes:s,getBlockAttributes:l,canRemoveBlock:c,canMoveBlock:u,getSettings:d,getTemporarilyEditingAsBlocks:p,getBlockEditingMode:f,getBlockName:h,isFirstMultiSelectedBlock:m,getMultiSelectedBlockClientIds:g,hasSelectedInnerBlock:b,getBlockIndex:v,isBlockMultiSelected:y,isBlockSubtreeDisabled:w,isBlockHighlighted:k,__unstableIsFullySelected:_,__unstableSelectionHasUnmergeableBlock:E,isBlockBeingDragged:x,isDragging:S,hasBlockMovingClientId:C,canInsertBlockType:I,__unstableHasActiveBlockOverlayActive:T,__unstableGetEditorMode:P,getSelectedBlocksInitialCaretPosition:A}=Du(e(Am)),B=s(t);if(!B)return;const{hasBlockSupport:N,getActiveBlockVariation:R}=e(na),O=l(t),{name:M,isValid:L}=B,D=Oo(M),{supportsLayout:z,__unstableIsPreviewMode:F}=d(),j=D?.apiVersion>1,V={isPreviewMode:F,blockWithoutAttributes:B,name:M,attributes:O,isValid:L,themeSupportsLayout:z,index:v(t),isReusable:zo(D),className:j?O.className:void 0,defaultClassName:j?cs(M):void 0,blockTitle:D?.title};if(F)return V;const H=r(t),$=c(t,n),U=u(t,n),W=R(M,O),K=y(t),G=b(t,!0),q=C(),Y=f(t);return{...V,mode:o(t),isSelectionEnabled:i(),isLocked:!!a(n),templateLock:a(t),canRemove:$,canMove:U,isSelected:H,isTemporarilyEditingAsBlocks:p()===t,blockEditingMode:Y,mayDisplayControls:H||m(t)&&g().every((e=>h(e)===M)),mayDisplayParentControls:N(h(t),"__experimentalExposeControlsToChildren",!1)&&b(t),blockApiVersion:D?.apiVersion||1,blockTitle:W?.title||D?.title,isSubtreeDisabled:"disabled"===Y&&w(t),hasOverlay:T(t)&&!S(),initialPosition:!H||"edit"!==P()&&"zoom-out"!==P()?void 0:A(),isHighlighted:k(t),isMultiSelected:K,isPartiallySelected:K&&!_()&&!E(),isDragging:x(t),hasChildSelected:G,isBlockMovingMode:!!q,canInsertMovingBlock:q&&I(h(q),n),isEditingDisabled:"disabled"===Y,hasEditableOutline:"disabled"!==Y&&"disabled"===f(n)}}),[t,n]),{isPreviewMode:o,mode:i="visual",isSelectionEnabled:a=!1,isLocked:s=!1,canRemove:l=!1,canMove:c=!1,blockWithoutAttributes:u,name:d,attributes:p,isValid:f,isSelected:h=!1,themeSupportsLayout:m,isTemporarilyEditingAsBlocks:g,blockEditingMode:b,mayDisplayControls:v,mayDisplayParentControls:y,index:w,blockApiVersion:k,blockTitle:_,isSubtreeDisabled:E,hasOverlay:x,initialPosition:S,isHighlighted:C,isMultiSelected:I,isPartiallySelected:T,isReusable:P,isDragging:A,hasChildSelected:B,isBlockMovingMode:N,canInsertMovingBlock:R,templateLock:O,isEditingDisabled:M,hasEditableOutline:L,className:D,defaultClassName:z}=r,F=(0,ae.useMemo)((()=>({...u,attributes:p})),[u,p]);if(!r)return null;const j={isPreviewMode:o,clientId:t,className:D,index:w,mode:i,name:d,blockApiVersion:k,blockTitle:_,isSelected:h,isSubtreeDisabled:E,hasOverlay:x,initialPosition:S,blockEditingMode:b,isHighlighted:C,isMultiSelected:I,isPartiallySelected:T,isReusable:P,isDragging:A,hasChildSelected:B,isBlockMovingMode:N,canInsertMovingBlock:R,templateLock:O,isEditingDisabled:M,hasEditableOutline:L,isTemporarilyEditingAsBlocks:g,defaultClassName:z,mayDisplayControls:v,mayDisplayParentControls:y,themeSupportsLayout:m};return(0,ae.createElement)(kre.Provider,{value:j},(0,ae.createElement)(Gre,{...e,mode:i,isSelectionEnabled:a,isLocked:s,canRemove:l,canMove:c,block:F,name:d,attributes:p,isValid:f,isSelected:h}))})),Xre="\ufeff";function Zre({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:r}=du((t=>{const{getBlockCount:n,getSettings:r,getTemplateLock:o}=t(Am),i=!n(e),{bodyPlaceholder:a}=r();return{showPrompt:i,isLocked:!!o(e),placeholder:a}}),[e]),{insertDefaultBlock:o,startTyping:i}=Uc(Am);if(n)return null;const a=Bs(r)||Kn("Type / to choose a block"),s=()=>{o(void 0,e),i()};return(0,ae.createElement)("div",{"data-root-client-id":e||"",className:Au("block-editor-default-block-appender",{"has-visible-prompt":t})},(0,ae.createElement)("p",{tabIndex:"0",role:"button","aria-label":Kn("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{cN!==e.keyCode&&dN!==e.keyCode||s()},onClick:()=>s(),onFocus:()=>{t&&s()}},t?a:Xre),(0,ae.createElement)(Rse,{rootClientId:e,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}function Qre({rootClientId:e}){return du((t=>t(Am).canInsertBlockType(Ro(),e)))?(0,ae.createElement)(Zre,{rootClientId:e}):(0,ae.createElement)(Mse,{rootClientId:e,className:"block-list-appender__toggle"})}function Jre({rootClientId:e,CustomAppender:t,className:n,tagName:r="div"}){const o=du((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:r,getBlockCount:o}=t(Am),i=n();return r()&&e===i?.rootClientId&&0===o(e)}),[e]);return(0,ae.createElement)(r,{tabIndex:-1,className:Au("block-list-appender wp-block",n,{"is-drag-over":o}),contentEditable:!1,"data-block":!0},t?(0,ae.createElement)(t,null):(0,ae.createElement)(Qre,{rootClientId:e}))}const eoe=(0,ae.createContext)();function toe(){const e=(0,ae.useContext)(eoe),t=du((e=>e(Am).getSettings().isDistractionFree||"zoom-out"===e(Am).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:r,isMultiSelecting:o,getSelectedBlockClientIds:i,getTemplateLock:a,__unstableIsWithinBlockOverlay:s,getBlockEditingMode:l,getBlockName:c}=du(Am),{showInsertionPoint:u,hideInsertionPoint:d}=Uc(Am);return VN((p=>{if(!t)return p.addEventListener("mousemove",f),()=>{p.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 d();let p;if(!t.target.classList.contains("is-root-container")){p=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(a(p)||"disabled"===l(p)||"core/block"===c(p))return;const f=n(p)?.orientation||"vertical",h=t.clientY,m=t.clientX;let g=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===f&&t.top>h||e.classList.contains("wp-block")&&"horizontal"===f&&(Yn()?t.right<m:t.left>m)}));if(!g)return void d();if(!g.id&&(g=g.firstElementChild,!g))return void d();const b=g.id.slice(6);if(!b||s(b))return;if(i().includes(b))return;const v=g.getBoundingClientRect();if("horizontal"===f&&(t.clientY>v.bottom||t.clientY<v.top)||"vertical"===f&&(t.clientX>v.right||t.clientX<v.left))return void d();const y=r(b);0!==y?u(p,y,{__unstableWithInserter:!0}):d()}}),[e,n,r,o,u,d,i,t])}function noe(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=du(Am),{clearSelectedBlock:r}=Uc(Am),{clearBlockSelection:o}=e();return VN((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])}const roe=new Set([fN,hN,mN,pN,cN,sN]);function ooe(){const{isTyping:e}=du((e=>{const{isTyping:t}=e(Am);return{isTyping:t()}}),[]),{startTyping:t,stopTyping:n}=Uc(Am),r=function(){const e=du((e=>e(Am).isTyping()),[]),{stopTyping:t}=Uc(Am);return VN((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])}(),o=VN((r=>{const{ownerDocument:o}=r,{defaultView:i}=o,a=i.getSelection();if(e){let l;function c(e){const{target:t}=e;l=i.setTimeout((()=>{Ere(t)||n()}))}function u(e){const{keyCode:t}=e;t!==uN&&t!==lN||n()}function d(){a.isCollapsed||n()}return r.addEventListener("focus",c),r.addEventListener("keydown",u),o.addEventListener("selectionchange",d),()=>{i.clearTimeout(l),r.removeEventListener("focus",c),r.removeEventListener("keydown",u),o.removeEventListener("selectionchange",d)}}function s(e){const{type:n,target:o}=e;Ere(o)&&r.contains(o)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&roe.has(t)}(e))&&t()}return r.addEventListener("keypress",s),r.addEventListener("keydown",s),()=>{r.removeEventListener("keypress",s),r.removeEventListener("keydown",s)}}),[e,t,n]);return JE([r,o])}const ioe=(0,ae.createContext)(),aoe=new WeakMap;function soe({className:e,...t}){const n=iN("medium"),{isOutlineMode:r,isFocusMode:o,editorMode:i,temporarilyEditingAsBlocks:a}=du((e=>{const{getSettings:t,__unstableGetEditorMode:n,getTemporarilyEditingAsBlocks:r,isTyping:o}=Du(e(Am)),{outlineMode:i,focusMode:a}=t();return{isOutlineMode:i&&!o(),isFocusMode:a,editorMode:n(),temporarilyEditingAsBlocks:r()}}),[]),s=$c(),{setBlockVisibility:l}=Uc(Am),c=gX((0,ae.useCallback)((()=>{const e={};aoe.get(s).forEach((([t,n])=>{e[t]=n})),l(e)}),[s]),300,{trailing:!0}),u=(0,ae.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{aoe.get(s)||aoe.set(s,[]);for(const t of e){const e=t.target.getAttribute("data-block");aoe.get(s).push([e,t.isIntersecting])}c()}))}),[]),d=ele({ref:JE([noe(),toe(),ooe()]),className:Au("is-root-container",e,{"is-outline-mode":r,"is-focus-mode":o&&n,"is-navigate-mode":"navigation"===i})},t);return(0,ae.createElement)(ioe.Provider,{value:u},(0,ae.createElement)("div",{...d}),!!a&&(0,ae.createElement)(loe,{clientId:a}))}function loe({clientId:e}){const{stopEditingAsBlocks:t}=Du(Uc(Am)),n=du((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=t(Am);return n(e)||r(e,!0)}),[e]);return(0,ae.useEffect)((()=>{n||t(e)}),[n,e,t]),null}function coe(e){return(0,ae.createElement)(eu,{value:Qc},(0,ae.createElement)(soe,{...e}))}const uoe=[],doe=new Set;function poe({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,layout:o=Xj}){const i=!1!==n,a=!!n,{order:s,selectedBlocks:l,visibleBlocks:c,shouldRenderAppender:u}=du((e=>{const{getSettings:n,getBlockOrder:r,getSelectedBlockClientId:o,getSelectedBlockClientIds:s,__unstableGetVisibleBlocks:l,getTemplateLock:c,getBlockEditingMode:u,__unstableGetEditorMode:d}=e(Am),p=r(t);if(n().__unstableIsPreviewMode)return{order:p,selectedBlocks:uoe,visibleBlocks:doe};const f=o();return{order:p,selectedBlocks:s(),visibleBlocks:l(),shouldRenderAppender:i&&"zoom-out"!==d()&&(a?!c(t)&&"disabled"!==u(t):t===f||!t&&!f&&!p.length)}}),[t,i,a]);return(0,ae.createElement)(Qj,{value:o},s.map((e=>(0,ae.createElement)(su,{key:e,value:!c.has(e)&&!l.includes(e)},(0,ae.createElement)(Yre,{rootClientId:t,clientId:e})))),s.length<1&&e,u&&(0,ae.createElement)(Jre,{tagName:r,rootClientId:t,CustomAppender:n}))}function foe(e){return(0,ae.createElement)(su,{value:!1},(0,ae.createElement)(poe,{...e}))}function hoe(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:r,getSelectedBlockClientId:o,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:a}=e(Am);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:r(),selectedBlockClientId:o(),initialPosition:i(),isFullSelection:a()}}function moe(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:r,selectedBlockClientId:o,isFullSelection:i}=du(hoe,[]);return VN((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 goe(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;Pr();const o=Array.from(r.childNodes).indexOf(t);Pr(),(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){Pr();const t=n.createTextNode("​");(e=e.cloneRange()).insertNode(t),o=e.getClientRects()[0],Pr(t.parentNode),t.parentNode.removeChild(t)}return o}function boe(e,t,n=!1){if(xre(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;Pr();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;Pr(),Pr();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=goe(s),d=goe(a);if(!u||!d)return!1;const p=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&&p&&p>u.height&&l===t)return!1;const f=Ire(e)?!t:t,h=e.getBoundingClientRect(),m=f?h.left+1:h.right-1,g=t?h.top+1:h.bottom-1,b=Tre(e,t,(()=>Cre(r,m,g,e)));if(!b)return!1;const v=goe(b);if(!v)return!1;const y=t?"top":"bottom",w=f?"left":"right",k=v[y]-d[y],_=v[w]-u[w],E=Math.abs(k)<=1,x=Math.abs(_)<=1;return n?E:E&&x}function voe(e,t){return boe(e,t,!0)}function yoe(e,t){return boe(e,t)}function woe(e,t,n,r){let o,i=jN.focusable.find(n);return t&&i.reverse(),i=i.slice(i.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),i.find((function(e){if(!(e.closest("[inert]")||1===e.children.length&&Ore(e,e.firstElementChild)&&"true"===e.firstElementChild.getAttribute("contenteditable"))){if(!jN.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 koe(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:r,__unstableIsFullySelected:o}=du(Am),{selectBlock:i}=Uc(Am);return VN((a=>{let s;function l(){s=null}function c(l){if(l.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:f,metaKey:h}=l,m=c===fN,g=c===pN,b=m||g,v=g||c===hN,y=m||c===mN,w=v||y,k=d||p||f||h,_=y?voe:yoe,{ownerDocument:E}=a,{defaultView:x}=E;if(!w)return;if(r()){if(d)return;if(!o())return;return l.preventDefault(),void(b?i(e()):i(t(),-1))}if(!function(e,t,n){const r=t===fN||t===mN,{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,k))return;y?s||(s=function(e){const t=e.getSelection();Pr();const n=t.rangeCount?t.getRangeAt(0):null;return n?goe(n):null}(x)):s=null;const S=Ire(u)?!b:b,{keepCaretInsideBlock:C}=n();if(d)(function(e,t){const n=woe(e,t,a);return n&&Lre(n)})(u,b)&&_(u,b)&&(a.contentEditable=!0,a.focus());else if(!y||!voe(u,b)||f&&!yoe(u,S)||C){if(v&&x.getSelection().isCollapsed&&yoe(u,S)&&!C){Are(woe(u,S,a),b),l.preventDefault()}}else{const e=woe(u,b,a,!0);e&&(!function(e,t,n){Pre(e,t,n?.left)}(e,f?!b:b,f?void 0:s),l.preventDefault())}}return a.addEventListener("mousedown",l),a.addEventListener("keydown",c),()=>{a.removeEventListener("mousedown",l),a.removeEventListener("keydown",c)}}),[])}function _oe(e,t,n){let r=t;do{if(e===r)return!0;r=r[n]}while(r);return!1}function Eoe(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=du(Am),{multiSelect:r,selectBlock:o}=Uc(Am),i=function(){const{getAllShortcutKeyCombinations:e}=du(v7);return function(t,n){return e(t).some((({modifier:e,character:t})=>TN[e](n,t)))}}();return VN((a=>{function s(s){if(!i("core/block-editor/select-all",s))return;const l=t();if(l.length<2&&!function(e){if(xre(e))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;const{ownerDocument:t}=e,{defaultView:n}=t;Pr();const r=n.getSelection();Pr();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,Pr();const c=a.nodeType===a.TEXT_NODE?a.data.length:a.childNodes.length;return _oe(i,e,"firstChild")&&_oe(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 xoe(e,t){e.contentEditable=t,t&&e.focus()}function Soe(){const{startMultiSelect:e,stopMultiSelect:t}=Uc(Am),{isSelectionEnabled:n,hasSelectedBlock:r,isDraggingBlocks:o,isMultiSelecting:i}=du(Am);return VN((a=>{const{ownerDocument:s}=a,{defaultView:l}=s;let c,u;function d(){t(),l.removeEventListener("mouseup",d),u=l.requestAnimationFrame((()=>{if(!r())return;xoe(a,!1);const e=l.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),{commonAncestorContainer:n}=t,r=t.cloneRange();c.contains(n)&&(c.focus(),e.removeAllRanges(),e.addRange(r))}}))}function p({buttons:t,target:r,relatedTarget:s}){r.contains(s)||o()||1===t&&(i()||a!==r&&"true"===r.getAttribute("contenteditable")&&n()&&(c=r,e(),l.addEventListener("mouseup",d),xoe(a,!0)))}return a.addEventListener("mouseout",p),()=>{a.removeEventListener("mouseout",p),l.removeEventListener("mouseup",d),l.cancelAnimationFrame(u)}}),[e,t,n,r])}function Coe(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t,t&&e.focus())}function Ioe(e){const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t?.closest("[data-wp-block-attribute-key]")}function Toe(){const{multiSelect:e,selectBlock:t,selectionChange:n}=Uc(Am),{getBlockParents:r,getBlockSelectionStart:o,isMultiSelecting:i}=du(Am);return VN((a=>{const{ownerDocument:s}=a,{defaultView:l}=s;function c(s){const c=l.getSelection();if(!c.rangeCount)return;const u=function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(c),d=function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(c);if(!a.contains(u)||!a.contains(d))return;const p=s.shiftKey&&"mouseup"===s.type;if(c.isCollapsed&&!p){if("true"===a.contentEditable&&!i()){Coe(a,!1);let e=u.nodeType===u.ELEMENT_NODE?u:u.parentElement;e=e?.closest("[contenteditable]"),e?.focus()}return}let f=Lre(u),h=Lre(d);if(p){const e=o(),t=Lre(s.target),n=t!==h;(f===h&&c.isCollapsed||!h||n)&&(h=t),f!==e&&(f=e)}if(void 0===f&&void 0===h)return void Coe(a,!1);if(f===h)i()?e(f,f):t(f);else{const t=[...r(f),f],o=[...r(h),h],i=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,o);if(t[i]!==f||o[i]!==h)return void e(t[i],o[i]);const a=Ioe(u),s=Ioe(d);if(a&&s){var m,g;const e=c.getRangeAt(0),t=go({element:a,range:e,__unstableIsEditableTree:!0}),r=go({element:s,range:e,__unstableIsEditableTree:!0}),o=null!==(m=t.start)&&void 0!==m?m:t.end,i=null!==(g=r.start)&&void 0!==g?g:r.end;n({start:{clientId:f,attributeKey:a.dataset.wpBlockAttributeKey,offset:o},end:{clientId:h,attributeKey:s.dataset.wpBlockAttributeKey,offset:i}})}else e(f,h)}}return s.addEventListener("selectionchange",c),l.addEventListener("mouseup",c),()=>{s.removeEventListener("selectionchange",c),l.removeEventListener("mouseup",c)}}),[e,t,n,r])}function Poe(){const{selectBlock:e}=Uc(Am),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:r}=du(Am);return VN((o=>{function i(i){if(!t()||0!==i.button)return;const a=n(),s=Lre(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 Aoe(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:r,hasMultiSelection:o,getBlockName:i,canInsertBlockType:a,getBlockRootClientId:s,getSelectionStart:l,getSelectionEnd:c,getBlockAttributes:u}=du(Am),{replaceBlocks:d,__unstableSplitSelection:p,removeBlocks:f,__unstableDeleteSelection:h,__unstableExpandSelection:m,__unstableMarkAutomaticChange:g}=Uc(Am);return VN((b=>{function v(e){"true"===b.contentEditable&&e.preventDefault()}function y(v){if(!v.defaultPrevented)if(o())v.keyCode===cN?(b.contentEditable=!1,v.preventDefault(),e()?d(t(),ua(Ro())):p()):v.keyCode===sN||v.keyCode===gN?(b.contentEditable=!1,v.preventDefault(),e()?f(t()):r()?h(v.keyCode===gN):m()):1!==v.key.length||v.metaKey||v.ctrlKey||(b.contentEditable=!1,r()?h(v.keyCode===gN):(v.preventDefault(),b.ownerDocument.defaultView.getSelection().removeAllRanges()));else if(v.keyCode===cN){if(v.shiftKey||e())return;const t=n(),r=i(t),o=l(),f=c();if(o.attributeKey===f.attributeKey){const e=u(t)[o.attributeKey],n=va(ya("from").filter((({type:e})=>"enter"===e)),(t=>t.regExp.test(e)));if(n)return d(t,n.transform({content:e})),void g()}if(!Do(r,"splitting",!1)&&!v.__deprecatedOnSplit)return;a(r,s(t))&&(p(),v.preventDefault())}}function w(e){o()&&(b.contentEditable=!1,r()?h():(e.preventDefault(),b.ownerDocument.defaultView.getSelection().removeAllRanges()))}return b.addEventListener("beforeinput",v),b.addEventListener("keydown",y),b.addEventListener("compositionstart",w),()=>{b.removeEventListener("beforeinput",v),b.removeEventListener("keydown",y),b.removeEventListener("compositionstart",w)}}),[])}function Boe(e){Pr(e.defaultView);const t=e.defaultView.getSelection();Pr();const n=t.rangeCount?t.getRangeAt(0):null;return!!n&&!n.collapsed}function Noe(e){return Boe(e)||!!e.activeElement&&function(e){if(!_re(e)&&!Ere(e))return!1;try{const{selectionStart:t,selectionEnd:n}=e;return null===t||t!==n}catch(e){return!0}}(e.activeElement)}const Roe=Symbol("requiresWrapperOnCopy");function Ooe(e,t,n){let r=t;const[o]=t;if(o){if(n.select(na).getBlockType(o.name)[Roe]){const{getBlockRootClientId:e,getBlockName:t,getBlockAttributes:i}=n.select(Am),a=e(o.clientId),s=t(a);s&&(r=ua(s,i(a),r))}}const i=bs(r);e.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");const t=Nr(e).trim();return t.replace(/\n\n+/g,"\n\n")}(i)),e.clipboardData.setData("text/html",i)}function Moe(){const e=$c(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:r,getSettings:o,getBlockName:i,__unstableIsFullySelected:a,__unstableIsSelectionCollapsed:s,__unstableIsSelectionMergeable:l,__unstableGetSelectedBlocksWithPartialSelection:c,canInsertBlockType:u,getBlockRootClientId:d}=du(Am),{flashBlock:p,removeBlocks:f,replaceBlocks:h,__unstableDeleteSelection:m,__unstableExpandSelection:g,__unstableSplitSelection:b}=Uc(Am),v=function(){const{getBlockName:e}=du(Am),{getBlockType:t}=du(na),{createSuccessNotice:n}=Uc(LY);return(0,ae.useCallback)(((r,o)=>{let i="";if(1===o.length){const n=o[0],a=t(e(n))?.title;i=On(Kn("copy"===r?'Copied "%s" to clipboard.':'Moved "%s" to clipboard.'),a)}else i=On("copy"===r?qn("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length):qn("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(i,{type:"snackbar"})}),[])}();return VN((y=>{function w(w){if(w.defaultPrevented)return;const k=n();if(0===k.length)return;const{activeElement:_}=w.target.ownerDocument;if(!y.contains(_))return;const E=l(),x=s()||a(),S=!x&&!E;if("copy"===w.type||"cut"===w.type){if(!r()){const{target:e}=w,{ownerDocument:t}=e,n="copy"===w.type||"cut"===w.type?Noe(t):function(e){return!!e.activeElement&&(_re(e.activeElement)||Ere(e.activeElement)||Boe(e))}(t);if(n)return}if(w.preventDefault(),1===k.length&&p(k[0]),S)g();else{let n;if(v(w.type,k),x)n=t(k);else{const[e,r]=c();n=[e,...t(k.slice(1,k.length-1)),r]}Ooe(w,n,e)}}if("cut"===w.type)x&&!S?f(k):(w.target.ownerDocument.activeElement.contentEditable=!1,m());else if("paste"===w.type){const{__experimentalCanUserUseUnfilteredHTML:e}=o();if("true"===w.clipboardData.getData("rich-text"))return;const{plainText:t,html:n,files:s}=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=Nq(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:[]}}(w),l=a();let c=[];if(s.length){const e=ya("from");c=s.reduce(((t,n)=>{const r=va(e,(e=>"files"===e.type&&e.isMatch([n])));return r&&t.push(r.transform([n])),t}),[]).flat()}else c=Bc({HTML:n,plainText:t,mode:l?"BLOCKS":"AUTO",canUserUseUnfilteredHTML:e});if("string"==typeof c)return;if(l)return h(k,c,c.length-1,-1),void w.preventDefault();if(!r()&&!Do(i(k[0]),"splitting",!1)&&!w.__deprecatedOnSplit)return;const[p]=k,f=d(p);if(!c.every((e=>u(e.name,f))))return;b(c),w.preventDefault()}}return y.ownerDocument.addEventListener("copy",w),y.ownerDocument.addEventListener("cut",w),y.ownerDocument.addEventListener("paste",w),()=>{y.ownerDocument.removeEventListener("copy",w),y.ownerDocument.removeEventListener("cut",w),y.ownerDocument.removeEventListener("paste",w)}}),[])}function Loe(){const[e,t,n]=function(){const e=(0,ae.useRef)(),t=(0,ae.useRef)(),n=(0,ae.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:o,getBlockCount:i}=du(Am),{setNavigationMode:a,setLastFocus:s}=Du(Uc(Am)),l=du((e=>e(Am).isNavigationMode()),[]),{getLastFocus:c}=Du(du(Am)),u=l?void 0:"0",d=(0,ae.useRef)();function p(t){if(d.current)d.current=null;else if(r())e.current.focus();else if(o())c()?.current?c().current.focus():e.current.querySelector(`[data-block="${o()}"]`).focus();else{a(!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=jN.tabbable.find(e.current);o.length&&(r?o[0]:o[o.length-1]).focus()}}const f=(0,ae.createElement)("div",{ref:t,tabIndex:u,onFocus:p}),h=(0,ae.createElement)("div",{ref:n,tabIndex:u,onFocus:p}),m=VN((l=>{function u(e){if(e.defaultPrevented)return;if(e.keyCode===uN&&!r())return e.preventDefault(),void a(!0);if(e.keyCode!==lN)return;const i=e.shiftKey,s=i?"findPrevious":"findNext";if(!r()&&!o())return void(e.target===l&&a(!0));const c=jN.tabbable[s](e.target),u=e.target.closest("[data-block]"),p=u&&c&&(Ore(u,c)||Mre(u,c));if(Sre(c)&&p)return;const f=i?t:n;d.current=!0,f.current.focus({preventScroll:!0})}function p(e){s({...c(),current:e.target});const{ownerDocument:t}=l;e.relatedTarget||t.activeElement!==t.body||0!==i()||l.focus()}function f(r){if(r.keyCode!==lN)return;if("region"===r.target?.getAttribute("role"))return;if(e.current===r.target)return;const o=r.shiftKey?"findPrevious":"findNext",i=jN.tabbable[o](r.target);i!==t.current&&i!==n.current||(r.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:h}=l,{defaultView:m}=h;return m.addEventListener("keydown",f),l.addEventListener("keydown",u),l.addEventListener("focusout",p),()=>{m.removeEventListener("keydown",f),l.removeEventListener("keydown",u),l.removeEventListener("focusout",p)}}),[]);return[f,JE([e,m]),h]}(),r=du((e=>e(Am).hasMultiSelection()),[]);return[e,JE([t,Moe(),Aoe(),Soe(),Toe(),Poe(),moe(),Eoe(),koe(),VN((e=>{if(e.tabIndex=0,r)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",Kn("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[r])]),n]}(0,ae.forwardRef)((function({children:e,...t},n){const[r,o,i]=Loe();return(0,ae.createElement)(ae.Fragment,null,r,(0,ae.createElement)("div",{...t,ref:JE([o,n]),className:Au(t.className,"block-editor-writing-flow")},e),i)}));let Doe=null;function zoe(e,t,n){const r={};for(const t in e)r[t]=e[t];if(e instanceof n.contentDocument.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 Foe(e){return VN((()=>{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,r=e.documentElement,o=["dragover","mousemove"],i={};for(const e of o)i[e]=e=>{const t=Object.getPrototypeOf(e).constructor.name;zoe(e,window[t],n)},r.addEventListener(e,i[e]);return()=>{for(const e of o)r.removeEventListener(e,i[e])}}))}function joe({contentRef:e,children:t,tabIndex:n=0,scale:r=1,frameSize:o=0,readonly:i,forwardedRef:a,title:s=Kn("Editor canvas"),...l}){const{resolvedAssets:c,isPreviewMode:u}=du((e=>{const{getSettings:t}=e(Am),n=t();return{resolvedAssets:n.__unstableResolvedAssets,isPreviewMode:n.__unstableIsPreviewMode}}),[]),{styles:d="",scripts:p=""}=c,[f,h]=(0,ae.useState)(),m=(0,ae.useRef)(),[g,b]=(0,ae.useState)([]),v=noe(),[y,w,k]=Loe(),[_,{height:E}]=P8(),[x,{width:S}]=P8(),C=VN((e=>{let t;function n(e){e.preventDefault()}function r(){const{contentDocument:r,ownerDocument:o}=e,{documentElement:i}=r;t=r,i.classList.add("block-editor-iframe__html"),v(i),b(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 Doe||(Doe=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}),[]),Doe))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=()=>{h(e.contentDocument)},e.addEventListener("load",r),()=>{delete e._load,e.removeEventListener("load",r),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),[I,T]=(0,ae.useState)(),P=VN((e=>{const t=e.ownerDocument.defaultView;T(t.innerHeight);const n=()=>{T(t.innerHeight)};return t.addEventListener("resize",n),()=>{t.removeEventListener("resize",n)}}),[]),[A,B]=(0,ae.useState)(),N=VN((e=>{const t=e.ownerDocument.defaultView;B(t.innerWidth);const n=()=>{B(t.innerWidth)};return t.addEventListener("resize",n),()=>{t.removeEventListener("resize",n)}}),[]),R=1!==r;(0,ae.useEffect)((()=>{R||(m.current=S)}),[S,R]);const O=Z7({isDisabled:!i}),M=JE([Foe(f),e,v,w,O,R?P:null]),L=`<!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>\n\t\t\thtml{\n\t\t\t\theight: auto !important;\n\t\t\t\tmin-height: 100%;\n\t\t\t}\n\t\t\t/* Lowest specificity to not override global styles */\n\t\t\t:where(body) {\n\t\t\t\tmargin: 0;\n\t\t\t\t/* Default background color in case zoom out mode background\n\t\t\t\tcolors the html element */\n\t\t\t\tbackground-color: white;\n\t\t\t}\n\t\t</style>\n\t\t${d}\n\t\t${p}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[D,z]=(0,ae.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([L],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[L]);(0,ae.useEffect)((()=>z),[z]),(0,ae.useEffect)((()=>{if(!f||!R)return;f.documentElement.classList.add("is-zoomed-out");return f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-scale","default"===r?Math.min(S,800)/m.current:r),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-frame-size","number"==typeof o?`${o}px`:o),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-content-height",`${E}px`),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-inner-height",`${I}px`),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-container-width",`${S}px`),f.documentElement.style.setProperty("--wp-block-editor-iframe-zoom-out-prev-container-width",`${m.current}px`),()=>{f.documentElement.classList.remove("is-zoomed-out"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-scale"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-frame-size"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-content-height"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-inner-height"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-container-width"),f.documentElement.style.removeProperty("--wp-block-editor-iframe-zoom-out-prev-container-width")}}),[r,o,f,I,E,S,A,R]);const F=n>=0&&!u,j=(0,ae.createElement)(ae.Fragment,null,F&&y,(0,ae.createElement)("iframe",{...l,style:{border:0,...l.style,height:l.style?.height,transition:"all .3s"},ref:JE([a,C]),tabIndex:n,src:D,title:s,onKeyDown:e=>{if(l.onKeyDown&&l.onKeyDown(e),e.currentTarget.ownerDocument!==e.target.ownerDocument){const{stopPropagation:t}=e.nativeEvent;e.nativeEvent.stopPropagation=()=>{},e.stopPropagation(),e.nativeEvent.stopPropagation=t,zoe(e,window.KeyboardEvent,e.currentTarget)}}},f&&(0,ly.createPortal)((0,ae.createElement)("body",{ref:M,className:Au("block-editor-iframe__body","editor-styles-wrapper",...g)},_,(0,ae.createElement)(gR,{document:f},t)),f.documentElement)),F&&k);return(0,ae.createElement)("div",{className:"block-editor-iframe__container",ref:N},x,(0,ae.createElement)("div",{className:Au("block-editor-iframe__scale-container",R&&"is-zoomed-out"),style:{"--wp-block-editor-iframe-zoom-out-container-width":R&&`${S}px`,"--wp-block-editor-iframe-zoom-out-prev-container-width":R&&`${m.current}px`}},j))}const Voe=(0,ae.forwardRef)((function(e,t){return du((e=>e(Am).getSettings().__internalIsInitialized),[])?(0,ae.createElement)(joe,{...e,forwardedRef:t}):null}));var Hoe=o(5883),$oe=o.n(Hoe);const Uoe=$oe(),Woe=($oe().stringify,$oe().fromJSON,$oe().plugin,$oe().parse,$oe().list,$oe().document,$oe().comment,$oe().atRule,$oe().rule,$oe().decl,$oe().root,$oe().CssSyntaxError);$oe().Declaration,$oe().Container,$oe().Processor,$oe().Document,$oe().Comment,$oe().Warning,$oe().AtRule,$oe().Result,$oe().Input,$oe().Rule,$oe().Root,$oe().Node;var Koe=o(9680),Goe=o.n(Koe),qoe=o(4506),Yoe=o.n(qoe);const Xoe=new Map;const Zoe=(e,t="")=>{let n=Xoe.get(t);return n||(n=new WeakMap,Xoe.set(t,n)),e.map((e=>{let r=n.get(e);return r||(r=function({css:e,ignoredSelectors:t=[],baseURL:n},r=""){if(!r&&!n)return e;const o=e.replace(/:where\(body\)/g,"body");try{return Uoe([r&&Goe()(r,{ignoredSelectors:[...t,r]}),n&&Yoe()({rootUrl:n})].filter(Boolean)).process(o,{}).css}catch(e){return e instanceof Woe?console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e.message+"\n"+e.showSourceCode(!1)):console.warn("wp.blockEditor.transformStyles Failed to transform CSS.",e),null}}(e,t),n.set(e,r)),r}))};function Qoe(e,t){return(0,ae.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=_r(a);s.luminance()>.5||0===s.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e,t])}xr([Sr,Tr]);const Joe=(0,ae.memo)((function({styles:e,scope:t}){const n=du((e=>Du(e(Am)).getStyleOverrides()),[]),[r,o]=(0,ae.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[Zoe(r.filter((e=>e?.css)),t),r.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")]}),[e,n,t]);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("style",{ref:Qoe(r,t)}),r.map(((e,t)=>(0,ae.createElement)("style",{key:t},e))),(0,ae.createElement)(Nu,{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 eie;const tie=2e3,nie=[];function rie({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:r=nie}){e||(e=t);const[o,{height:i}]=P8(),{styles:a}=du((e=>({styles:e(Am).getSettings().styles})),[]),s=(0,ae.useMemo)((()=>a?[...a,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r]:a),[a,r]);eie=eie||(0,ae.memo)(coe);const l=t/e,c=i?t/(i*l):0;return(0,ae.createElement)(B7,{className:"block-editor-block-preview__content",style:{transform:`scale(${l})`,aspectRatio:c,maxHeight:i>tie?tie*l:void 0,minHeight:n}},(0,ae.createElement)(Voe,{contentRef:VN((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:tie,minHeight:0!==l&&l<1&&n?n/l:n}},(0,ae.createElement)(Joe,{styles:s}),o,(0,ae.createElement)(eie,{renderAppender:!1})))}function oie(e){const[t,{width:n}]=P8();return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,ae.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,ae.createElement)(rie,{...e,containerWidth:n})))}const iie=[];const aie=(0,ae.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:r=iie,__experimentalMinHeight:o,__experimentalPadding:i}){o&&(n=o,Mt("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],Mt("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const a=du((e=>e(Am).getSettings()),[]),s=(0,ae.useMemo)((()=>({...a,focusMode:!1,__unstableIsPreviewMode:!0})),[a]),l=(0,ae.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,ae.createElement)(S7,{value:l,settings:s},(0,ae.createElement)(oie,{viewportWidth:t,minHeight:n,additionalStyles:r})):null}));const sie=function({item:e}){var t;const{name:n,title:r,icon:o,description:i,initialAttributes:a,example:s}=e,l=zo(e),c=(0,ae.useMemo)((()=>s?_a(n,{attributes:{...s.attributes,...a},innerBlocks:s.innerBlocks}):ua(n,a)),[n,s,a]);return(0,ae.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,ae.createElement)("div",{className:"block-editor-inserter__preview"},l||s?(0,ae.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,ae.createElement)(aie,{blocks:c,viewportWidth:null!==(t=s?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 24px; }"}]})):(0,ae.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Kn("No preview available."))),!l&&(0,ae.createElement)(e7,{title:r,icon:o,description:i}))};const lie=function(e,t={step:1}){const{step:n=1}=t,[r,o]=(0,ae.useState)([]);return(0,ae.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=ru();for(let r=t.length;r<e.length;r+=n)i.add({},(()=>{(0,ly.flushSync)((()=>{o((t=>[...t,...e.slice(r,r+n)]))}))}));return()=>i.reset()}),[e]),r},{CompositeItemV2:cie}=Du(jj);const uie=(0,ae.forwardRef)((function({isFirst:e,as:t,children:n,...r},o){return(0,ae.createElement)(cie,{ref:o,role:"option",accessibleWhenDisabled:!0,...r,render:r=>{const o={...r,tabIndex:e?0:r.tabIndex};return t?(0,ae.createElement)(t,{...o},n):"function"==typeof n?n(o):(0,ae.createElement)(bE,{...o},n)}})})),die=(e,t,n)=>{let r=!0,o=!0;return n&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),zY(e,t,{leading:r,trailing:o,maxWait:t})},pie="is-dragging-components-draggable";const fie=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,ae.useRef)(null),d=(0,ae.useRef)((()=>{}));return(0,ae.useEffect)((()=>()=>{d.current()}),[]),(0,ae.createElement)(ae.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 p=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(p.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(p),e.dataTransfer.setDragImage(p,0,0)),c.classList.add("components-draggable__clone"),i&&c.classList.add(i);let f=0,h=0;if(u.current){f=e.clientX,h=e.clientY,c.style.transform=`translate( ${f}px, ${h}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}`,f=s-0,h=i-0,c.style.transform=`translate( ${f}px, ${h}px )`,Array.from(l.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),c.appendChild(l),o?r.body.appendChild(c):n?.appendChild(c)}let m=e.clientX,g=e.clientY;const b=die((function(e){if(m===e.clientX&&g===e.clientY)return;const t=f+e.clientX-m,r=h+e.clientY-g;c.style.transform=`translate( ${t}px, ${r}px )`,m=e.clientX,g=e.clientY,f=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(pie),t&&t(e),d.current=()=>{c&&c.parentNode&&c.parentNode.removeChild(c),p&&p.parentNode&&p.parentNode.removeChild(p),r.body.classList.remove(pie),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),d.current(),r&&r(e)}}),c&&(0,ae.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:u},c))},hie=(0,ae.createElement)(Nu,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function mie({count:e,icon:t,isPattern:n,fadeWhenDisabled:r}){const o=n&&Kn("Pattern");return(0,ae.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,ae.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},(0,ae.createElement)(kL,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,ae.createElement)(EL,null,t?(0,ae.createElement)(B9,{icon:t}):o||On(qn("%d block","%d blocks",e),e)),(0,ae.createElement)(EL,null,(0,ae.createElement)(B9,{icon:hie})),r&&(0,ae.createElement)(EL,{className:"block-editor-block-draggable-chip__disabled"},(0,ae.createElement)("span",{className:"block-editor-block-draggable-chip__disabled-icon"})))))}const gie=({isEnabled:e,blocks:t,icon:n,children:r,pattern:o})=>{const i={type:"inserter",blocks:t},a=du((e=>{const{getBlockType:n}=e(na);return 1===t.length&&n(t[0].name)?.icon}),[t]),{startDragging:s,stopDragging:l}=Du(Uc(Am));return(0,ae.createElement)(fie,{__experimentalTransferDataType:"wp-blocks",transferData:i,onDragStart:e=>{s();const n=o?.type===Wu.user&&"unsynced"!==o?.syncStatus?[ua("core/block",{ref:o.id})]:t;e.dataTransfer.setData("text/html",bs(n))},onDragEnd:()=>{l()},__experimentalDragComponent:(0,ae.createElement)(mie,{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 bie=(0,ae.memo)((function({className:e,isFirst:t,item:n,onSelect:r,onHover:o,isDraggable:i,...a}){const s=(0,ae.useRef)(!1),l=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},c=(0,ae.useMemo)((()=>[ua(n.name,n.initialAttributes,da(n.innerBlocks))]),[n.name,n.initialAttributes,n.innerBlocks]),u=zo(n)&&"unsynced"!==n.syncStatus||Fo(n);return(0,ae.createElement)(gie,{isEnabled:i&&!n.isDisabled,blocks:c,icon:n.icon},(({draggable:i,onDragStart:c,onDragEnd:d})=>(0,ae.createElement)("div",{className:Au("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,ae.createElement)(uie,{isFirst:t,className:Au("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),r(n,aN()?e.metaKey:e.ctrlKey),o(null)},onKeyDown:e=>{const{keyCode:t}=e;t===cN&&(e.preventDefault(),r(n,aN()?e.metaKey:e.ctrlKey),o(null))},onMouseEnter:()=>{s.current||o(n)},onMouseLeave:()=>o(null),...a},(0,ae.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:l},(0,ae.createElement)(B9,{icon:n.icon,showColors:!0})),(0,ae.createElement)("span",{className:"block-editor-block-types-list__item-title"},(0,ae.createElement)(wF,{numberOfLines:3},n.title))))))}));const vie=(0,ae.forwardRef)((function(e,t){const[n,r]=(0,ae.useState)(!1);return(0,ae.useEffect)((()=>{n&&mh(Kn("Use left and right arrow keys to move through blocks"))}),[n]),(0,ae.createElement)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&r(!1)},...e})})),{CompositeGroupV2:yie}=Du(jj);const wie=(0,ae.forwardRef)((function(e,t){return(0,ae.createElement)(yie,{role:"presentation",ref:t,...e})}));const kie=function e({items:t=[],onSelect:n,onHover:r=()=>{},children:o,label:i,isDraggable:a=!0}){const s="block-editor-block-types-list",l=$m(e,s);return(0,ae.createElement)(vie,{className:s,"aria-label":i},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}(t,3).map(((e,t)=>(0,ae.createElement)(wie,{key:t},e.map(((e,o)=>(0,ae.createElement)(bie,{key:e.id,item:e,className:us(e.id),onSelect:n,onHover:r,isDraggable:a&&!e.isDisabled,isFirst:0===t&&0===o,rowId:`${l}-${t}`})))))),o)};const _ie=function({title:e,icon:t,children:n}){return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,ae.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),(0,ae.createElement)(sk,{icon:t})),(0,ae.createElement)("div",{className:"block-editor-inserter__panel-content"},n))},Eie=(e,t)=>{const[n]=du((t=>[t(Am).getInserterItems(e)]),[e]),[r,o]=du((e=>{const{getCategories:t,getCollections:n}=e(na);return[t(),n()]}),[]);return[n,r,o,(0,ae.useCallback)((({name:e,initialAttributes:n,innerBlocks:r,syncStatus:o,content:i},a)=>{const s="unsynced"===o?xl(i,{__unstableSkipMigrationLogs:!0}):ua(e,n,da(r));t(s,void 0,a)}),[t])]},{CompositeV2:xie,useCompositeStoreV2:Sie}=Du(jj);const Cie=function({children:e}){const t=Sie({focusShift:!0,focusWrap:"horizontal"});return(0,ae.createElement)(xie,{store:t,render:(0,ae.createElement)(ae.Fragment,null)},e)};const Iie=function(){return(0,ae.createElement)("div",{className:"block-editor-inserter__no-results"},(0,ae.createElement)(VM,{className:"block-editor-inserter__no-results-icon",icon:A9}),(0,ae.createElement)("p",null,Kn("No results found.")))},Tie=[];const Pie=(0,ae.forwardRef)((function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r},o){const[i,a,s,l]=Eie(e,t),c=(0,ae.useMemo)((()=>Uu(i,"frecency","desc").slice(0,6)),[i]),u=(0,ae.useMemo)((()=>i.filter((e=>!e.category))),[i]),d=(0,ae.useMemo)((()=>Be((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}),{})))(i)),[i]),p=(0,ae.useMemo)((()=>{const e={...s};return Object.keys(s).forEach((t=>{e[t]=i.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[i,s]);(0,ae.useEffect)((()=>()=>n(null)),[]);const f=lie(a),h=a.length===f.length,m=(0,ae.useMemo)((()=>Object.entries(s)),[s]),g=lie(h?m:Tie);return i.length?(0,ae.createElement)(Cie,null,(0,ae.createElement)("div",{ref:o},r&&!!c.length&&(0,ae.createElement)(_ie,{title:Gn("Most used","blocks")},(0,ae.createElement)(kie,{items:c,onSelect:l,onHover:n,label:Gn("Most used","blocks")})),f.map((e=>{const t=d[e.slug];return t&&t.length?(0,ae.createElement)(_ie,{key:e.slug,title:e.title,icon:e.icon},(0,ae.createElement)(kie,{items:t,onSelect:l,onHover:n,label:e.title})):null})),h&&u.length>0&&(0,ae.createElement)(_ie,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Kn("Uncategorized")},(0,ae.createElement)(kie,{items:u,onSelect:l,onHover:n,label:Kn("Uncategorized")})),g.map((([e,t])=>{const r=p[e];return r&&r.length?(0,ae.createElement)(_ie,{key:e,title:t.title,icon:t.icon},(0,ae.createElement)(kie,{items:r,onSelect:l,onHover:n,label:t.title})):null})))):(0,ae.createElement)(Iie,null)}));function Aie({selectedCategory:e,patternCategories:t,onClickCategory:n}){const r="block-editor-block-patterns-explorer__sidebar";return(0,ae.createElement)("div",{className:`${r}__categories-list`},t.map((({name:t,label:o})=>(0,ae.createElement)(bE,{key:t,label:o,className:`${r}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)}},o))))}function Bie({searchValue:e,setSearchValue:t}){return(0,ae.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,ae.createElement)(K9,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:Kn("Search for patterns"),placeholder:Kn("Search")}))}const Nie=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:r,setSearchValue:o}){return(0,ae.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,ae.createElement)(Bie,{searchValue:r,setSearchValue:o}),!r&&(0,ae.createElement)(Aie,{selectedCategory:e,patternCategories:t,onClickCategory:n}))};function Rie({currentPage:e,numPages:t,changePage:n,totalItems:r}){return(0,ae.createElement)(Kq,{className:"block-editor-patterns__grid-pagination-wrapper"},(0,ae.createElement)(nD,{variant:"muted"},On(qn("%s item","%s items",r),r)),t>1&&(0,ae.createElement)(nH,{expanded:!1,spacing:3,justify:"flex-start",className:"block-editor-patterns__grid-pagination"},(0,ae.createElement)(nH,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-previous"},(0,ae.createElement)(bE,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":Kn("First page"),__experimentalIsFocusable:!0},(0,ae.createElement)("span",null,"«")),(0,ae.createElement)(bE,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":Kn("Previous page"),__experimentalIsFocusable:!0},(0,ae.createElement)("span",null,"‹"))),(0,ae.createElement)(nD,{variant:"muted"},On(Gn("%1$s of %2$s","paging"),e,t)),(0,ae.createElement)(nH,{expanded:!1,spacing:1,className:"block-editor-patterns__grid-pagination-next"},(0,ae.createElement)(bE,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":Kn("Next page"),__experimentalIsFocusable:!0},(0,ae.createElement)("span",null,"›")),(0,ae.createElement)(bE,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":Kn("Last page"),size:"default",__experimentalIsFocusable:!0},(0,ae.createElement)("span",null,"»")))))}const{CompositeV2:Oie,CompositeItemV2:Mie,useCompositeStoreV2:Lie}=Du(jj),Die=({showTooltip:e,title:t,children:n})=>e?(0,ae.createElement)(ik,{text:t},n):(0,ae.createElement)(ae.Fragment,null,n);function zie({id:e,isDraggable:t,pattern:n,onClick:r,onHover:o,showTitle:i=!0,showTooltip:a,category:s}){const[l,c]=(0,ae.useState)(!1),{blocks:u,viewportWidth:d}=n,p=`block-editor-block-patterns-list__item-description-${$m(zie)}`,f=(0,ae.useMemo)((()=>s&&t?(null!=u?u:[]).map((e=>{const t=fa(e);return t.attributes.metadata?.categories?.includes(s)&&(t.attributes.metadata.categories=[s]),t})):u),[u,t,s]);return(0,ae.createElement)(gie,{isEnabled:t,blocks:f,pattern:n},(({draggable:t,onDragStart:s,onDragEnd:f})=>(0,ae.createElement)("div",{className:"block-editor-block-patterns-list__list-item",draggable:t,onDragStart:e=>{c(!0),s&&(o?.(null),s(e))},onDragEnd:e=>{c(!1),f&&f(e)}},(0,ae.createElement)(Die,{showTooltip:a&&!n.type!==Wu.user,title:n.title},(0,ae.createElement)(Mie,{render:(0,ae.createElement)("div",{role:"option","aria-label":n.title,"aria-describedby":n.description?p:void 0,className:Au("block-editor-block-patterns-list__item",{"block-editor-block-patterns-list__list-item-synced":n.type===Wu.user&&!n.syncStatus})}),id:e,onClick:()=>{r(n,u),o?.(null)},onMouseEnter:()=>{l||o?.(n)},onMouseLeave:()=>o?.(null)},(0,ae.createElement)(aie,{blocks:u,viewportWidth:d}),i&&(0,ae.createElement)(nH,{className:"block-editor-patterns__pattern-details"},n.type===Wu.user&&!n.syncStatus&&(0,ae.createElement)("div",{className:"block-editor-patterns__pattern-icon-wrapper"},(0,ae.createElement)(VM,{className:"block-editor-patterns__pattern-icon",icon:Ru})),(!a||n.type===Wu.user)&&(0,ae.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title)),!!n.description&&(0,ae.createElement)(hE,{id:p},n.description))))))}function Fie(){return(0,ae.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}const jie=(0,ae.forwardRef)((function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:r,onClickPattern:o,orientation:i,label:a=Kn("Block patterns"),category:s,showTitle:l=!0,showTitlesAsTooltip:c,pagingProps:u},d){const p=Lie({orientation:i}),{setActiveId:f}=p;return(0,ae.useEffect)((()=>{f(void 0)}),[f,n,t]),(0,ae.createElement)(Oie,{store:p,role:"listbox",className:"block-editor-block-patterns-list","aria-label":a,ref:d},t.map((t=>n.includes(t)?(0,ae.createElement)(zie,{key:t.name,id:t.name,pattern:t,onClick:o,onHover:r,isDraggable:e,showTitle:l,showTooltip:c,category:s}):(0,ae.createElement)(Fie,{key:t.name}))),u&&(0,ae.createElement)(Rie,{...u}))}));const Vie=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:r,onSelect:o,shouldFocusBlock:i=!0,selectBlockOnInsert:a=!0}){const{getSelectedBlock:s}=du(Am),{destinationRootClientId:l,destinationIndex:c}=du((o=>{const{getSelectedBlockClientId:i,getBlockRootClientId:a,getBlockIndex:s,getBlockOrder:l}=o(Am),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:p,hideInsertionPoint:f,setLastFocus:h}=Du(Uc(Am)),m=(0,ae.useCallback)(((e,t,n=!1)=>{(n||i||a)&&h(null);const p=s();!r&&p&&Ho(p)?u(p.clientId,e,null,i||n?0:null,t):d(e,c,l,a,i||n?0:null,t);const f=Array.isArray(e)?e.length:1;mh(On(qn("%d block added.","%d blocks added.",f),f)),o&&o(e)}),[r,s,u,d,l,c,o,i,a]),g=(0,ae.useCallback)((e=>{e?p(l,c):f()}),[p,f,l,c]);return[l,m,g]},Hie=(e,t,n)=>{const{patternCategories:r,patterns:o,userPatternCategories:i}=du((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:r}=e(Am),{__experimentalUserPatternCategories:o,__experimentalBlockPatternCategories:i}=r();return{patterns:n(t),userPatternCategories:o,patternCategories:i}}),[t]),a=(0,ae.useMemo)((()=>{const e=[...r];return i?.forEach((t=>{e.find((e=>e.name===t.name))||e.push(t)})),e}),[r,i]),{createSuccessNotice:s}=Uc(LY),l=(0,ae.useCallback)(((t,r)=>{const o=t.type===Wu.user&&"unsynced"!==t.syncStatus?[ua("core/block",{ref:t.id})]:r;e((null!=o?o:[]).map((e=>{const t=fa(e);return t.attributes.metadata?.categories?.includes(n)&&(t.attributes.metadata.categories=[n]),t})),t.name),s(On(Kn('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[s,e,n]);return[o,a,l]},$ie=e=>e.name||"",Uie=e=>e.title,Wie=e=>e.description||"",Kie=e=>e.keywords||[],Gie=e=>e.category,qie=()=>null,Yie=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],Xie=/(\p{C}|\p{P}|\p{S})+/giu,Zie=new Map,Qie=new Map;function Jie(e=""){if(Zie.has(e))return Zie.get(e);const t=xn(e,{splitRegexp:Yie,stripRegexp:Xie}).split(" ").filter(Boolean);return Zie.set(e,t),t}function eae(e=""){if(Qie.has(e))return Qie.get(e);let t=ti()(e);return t=t.replace(/^\//,""),t=t.toLowerCase(),Qie.set(e,t),t}const tae=(e="")=>Jie(eae(e)),nae=(e=[],t="",n={})=>{if(0===tae(t).length)return e;const r=e.map((e=>[e,rae(e,t,n)])).filter((([,e])=>e>0));return r.sort((([,e],[,t])=>t-e)),r.map((([e])=>e))};function rae(e,t,n={}){const{getName:r=$ie,getTitle:o=Uie,getDescription:i=Wie,getKeywords:a=Kie,getCategory:s=Gie,getCollection:l=qie}=n,c=r(e),u=o(e),d=i(e),p=a(e),f=s(e),h=l(e),m=eae(t),g=eae(u);let b=0;if(m===g)b+=30;else if(g.startsWith(m))b+=20;else{const e=[c,u,d,...p,f,h].join(" ");0===((e,t)=>e.filter((e=>!tae(t).some((t=>t.includes(e))))))(Jie(m),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}const oae=20,iae=5;function aae(e,t,n,r=""){const[o,i]=(0,ae.useState)(1),a=TV(t),s=TV(r);a===t&&s===r||1===o||i(1);const l=e.length,c=o-1,u=(0,ae.useMemo)((()=>e.slice(c*oae,c*oae+oae)),[c,e]),d=lie(u,{step:iae}),p=Math.ceil(e.length/oae);return(0,ae.useEffect)((function(){const e=a9(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:l,categoryPatterns:u,categoryPatternsAsyncList:d,numPages:p,changePage:e=>{const t=a9(n?.current);t?.scrollTo(0,0),i(e)},currentPage:o}}function sae({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,ae.createElement)(EG,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},On(qn("%d pattern found","%d patterns found",t),t)):null}const lae=function({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:r}){const o=(0,ae.useRef)(),i=gX(mh,500),[a,s]=Vie({rootClientId:r,shouldFocusBlock:!0}),[l,,c]=Hie(s,a,t),u=(0,ae.useMemo)((()=>n.map((e=>e.name))),[n]),d=(0,ae.useMemo)((()=>{const n=l.filter((e=>{if(t===Gu.name)return!0;if(t===qu.name&&e.type===Wu.user)return!0;if("uncategorized"===t){const t=e.categories.some((e=>u.includes(e)));return!e.categories?.length||!t}return e.categories?.includes(t)}));return e?nae(n,e):n}),[e,l,t,u]);(0,ae.useEffect)((()=>{if(!e)return;const t=d.length,n=On(qn("%d result found.","%d results found.",t),t);i(n)}),[e,i,d.length]);const p=aae(d,t,o),[f,h]=(0,ae.useState)(e);e!==f&&(h(e),p.changePage(1));const m=!!d?.length;return(0,ae.createElement)("div",{className:"block-editor-block-patterns-explorer__list",ref:o},(0,ae.createElement)(sae,{filterValue:e,filteredBlockPatternsLength:d.length}),(0,ae.createElement)(Cie,null,m&&(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(jie,{shownPatterns:p.categoryPatternsAsyncList,blockPatterns:p.categoryPatterns,onClickPattern:c,isDraggable:!1}),(0,ae.createElement)(Rie,{...p}))))};function cae(e,t="all"){const[n,r]=Hie(void 0,e),o=(0,ae.useMemo)((()=>"all"===t?n:n.filter((e=>!Yu(e,t)))),[t,n]),i=(0,ae.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=>!function(e,t){return!(!e.categories||!e.categories.length)&&e.categories.some((e=>t.some((t=>t.name===e))))}(e,r)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:Gn("Uncategorized")}),o.some((e=>e.type===Wu.user))&&e.unshift(qu),o.length>0&&e.unshift({name:Gu.name,label:Gu.label}),mh(On(qn("%d category button displayed.","%d category buttons displayed.",e.length),e.length)),e}),[r,o]);return i}function uae({initialCategory:e,rootClientId:t}){const[n,r]=(0,ae.useState)(""),[o,i]=(0,ae.useState)(e?.name),a=cae(t);return(0,ae.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,ae.createElement)(Nie,{selectedCategory:o,patternCategories:a,onClickCategory:i,searchValue:n,setSearchValue:r}),(0,ae.createElement)(lae,{searchValue:n,selectedCategory:o,patternCategories:a,rootClientId:t}))}const dae=function({onModalClose:e,...t}){return(0,ae.createElement)(f9,{title:Kn("Patterns"),onRequestClose:e,isFullScreen:!0},(0,ae.createElement)(uae,{...t}))},pae=(0,ae.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});const fae=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,ae.useContext)(pae);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const hae=J_((function(e,t){const n=function(e){const{onClick:t,as:n=bE,goToParent:r=!1,...o}=Q_(e,"NavigatorBackButton"),{goBack:i,goToParent:a}=fae();return{as:n,onClick:(0,ae.useCallback)((e=>{e.preventDefault(),r?a():i(),t?.(e)}),[r,a,i,t]),...o}}(e);return(0,ae.createElement)(fE,{ref:t,...n})}),"NavigatorBackButton"),mae=hae;function gae(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(vae(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))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var f=u("CHAR"),h=u("NAME"),m=u("PATTERN");if(h||m){var g=f||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:h||s++,prefix:g,suffix:"",pattern:m||i,modifier:u("MODIFIER")||""})}else{var b=f||u("ESCAPED_CHAR");if(b)c+=b;else if(c&&(a.push(c),c=""),u("OPEN")){g=p();var v=u("NAME")||"",y=u("PATTERN")||"",w=p();d("CLOSE"),a.push({name:v||(y?s++:""),pattern:v&&!y?i:y,prefix:g,suffix:w,modifier:u("MODIFIER")||""})}else d("END")}}return a}function bae(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}}}(kae(e,n,t),n,t)}function vae(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function yae(e){return e&&e.sensitive?"":"i"}function wae(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,p=void 0===d?"/#?":d,f=n.endsWith,h="[".concat(vae(void 0===f?"":f),"]|$"),m="[".concat(vae(p),"]"),g=a?"^":"",b=0,v=e;b<v.length;b++){var y=v[b];if("string"==typeof y)g+=vae(u(y));else{var w=vae(u(y.prefix)),k=vae(u(y.suffix));if(y.pattern)if(t&&t.push(y),w||k)if("+"===y.modifier||"*"===y.modifier){var _="*"===y.modifier?"?":"";g+="(?:".concat(w,"((?:").concat(y.pattern,")(?:").concat(k).concat(w,"(?:").concat(y.pattern,"))*)").concat(k,")").concat(_)}else g+="(?:".concat(w,"(").concat(y.pattern,")").concat(k,")").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(w).concat(k,")").concat(y.modifier)}}if(l)o||(g+="".concat(m,"?")),g+=n.endsWith?"(?=".concat(h,")"):"$";else{var E=e[e.length-1],x="string"==typeof E?m.indexOf(E[E.length-1])>-1:void 0===E;o||(g+="(?:".concat(m,"(?=").concat(h,"))?")),x||(g+="(?=".concat(m,"|").concat(h,")"))}return new RegExp(g,yae(n))}(gae(e,n),t,n)}function kae(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 kae(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),yae(n))}(e,t,n):wae(e,t,n)}function _ae(e,t){return bae(t,{decode:decodeURIComponent})(e)}const Eae={name:"xpkswc",styles:"overflow-x:hidden;contain:content"},xae=UM({"0%":{opacity:0,transform:"translateX( 50px )"},"100%":{opacity:1,transform:"none"}}),Sae=UM({"0%":{opacity:0,transform:"translateX( -50px )"},"100%":{opacity:1,transform:"none"}}),Cae=e=>$M("overflow-x:auto;max-height:100%;",(({isInitial:e,isBack:t,isRTL:n})=>{if(e&&!t)return;return $M("animation-duration:0.14s;animation-timing-function:ease-in-out;will-change:transform,opacity;animation-name:",n&&t||!n&&!t?xae:Sae,";@media ( prefers-reduced-motion ){animation-duration:0s;}","")})(e),";",""),Iae=50;function Tae({locationHistory:e}){return e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]}function Pae(e,t,n={}){const{locationHistory:r}=e,{focusTargetSelector:o,isBack:i=!1,skipFocus:a=!1,replace:s=!1,...l}=n;if(r.length>0&&r[r.length-1].path===t)return r;if(i&&r.length>1&&r[r.length-2].path===t)return Tae(e);const c={...l,path:t,isBack:i,hasRestoredFocus:!1,skipFocus:a};if(0===r.length)return s?[]:[c];const u=r.slice(r.length>Iae-1?1:0,-1);return s||u.push({...r[r.length-1],focusTargetSelector:o}),u.push(c),u}function Aae(e,t={}){const{locationHistory:n,screens:r}=e,o=n[n.length-1].path;if(void 0===o)return n;const i=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!==_ae(e,t.path)))&&(r=e)}return r}(o,r);return void 0===i?n:Pae(e,i,{...t,isBack:!0})}function Bae(e,t){let{screens:n,locationHistory:r,matchedPath:o}=e;switch(t.type){case"add":n=function({screens:e},t){return[...e,t]}(e,t.screen);break;case"remove":n=function({screens:e},t){return e.filter((e=>e.id!==t.id))}(e,t.screen);break;case"goback":r=Tae(e);break;case"goto":r=Pae(e,t.path,t.options);break;case"gotoparent":r=Aae(e,t.options)}if(n===e.screens&&r===e.locationHistory)return e;const i=r.length>0?r[r.length-1].path:void 0;return o=void 0!==i?function(e,t){for(const n of t){const t=_ae(e,n.path);if(t)return{params:t.params,id:n.id}}}(i,n):void 0,o&&e.matchedPath&&o.id===e.matchedPath.id&&ss(o.params,e.matchedPath.params)&&(o=e.matchedPath),{screens:n,locationHistory:r,matchedPath:o}}const Nae=J_((function(e,t){const{initialPath:n,children:r,className:o,...i}=Q_(e,"NavigatorProvider"),[a,s]=(0,ae.useReducer)(Bae,n,(e=>({screens:[],locationHistory:[{path:e}],matchedPath:void 0}))),l=(0,ae.useMemo)((()=>({goBack:()=>s({type:"goback"}),goTo:(e,t)=>s({type:"goto",path:e,options:t}),goToParent:e=>s({type:"gotoparent",options:e}),addScreen:e=>s({type:"add",screen:e}),removeScreen:e=>s({type:"remove",screen:e})})),[]),{locationHistory:c,matchedPath:u}=a,d=(0,ae.useMemo)((()=>{var e;return{location:{...c[c.length-1],isInitial:1===c.length},params:null!==(e=u?.params)&&void 0!==e?e:{},match:u?.id,...l}}),[c,u,l]),p=Z_(),f=(0,ae.useMemo)((()=>p(Eae,o)),[o,p]);return(0,ae.createElement)(fE,{ref:t,className:f,...i},(0,ae.createElement)(pae.Provider,{value:d},r))}),"NavigatorProvider"),Rae=Nae;const Oae=J_((function(e,t){const n=(0,ae.useId)(),{children:r,className:o,path:i,...a}=Q_(e,"NavigatorScreen"),{location:s,match:l,addScreen:c,removeScreen:u}=(0,ae.useContext)(pae),d=l===n,p=(0,ae.useRef)(null);(0,ae.useEffect)((()=>{const e={id:n,path:Yr(i)};return c(e),()=>u(e)}),[n,i,c,u]);const f=Yn(),{isInitial:h,isBack:m}=s,g=Z_(),b=(0,ae.useMemo)((()=>g(Cae({isInitial:h,isBack:m,isRTL:f}),o)),[o,g,h,m,f]),v=(0,ae.useRef)(s);(0,ae.useEffect)((()=>{v.current=s}),[s]);const y=s.isInitial&&!s.isBack;(0,ae.useEffect)((()=>{if(y||!d||!p.current||v.current.hasRestoredFocus||s.skipFocus)return;const e=p.current.ownerDocument.activeElement;if(p.current.contains(e))return;let t=null;if(s.isBack&&s.focusTargetSelector&&(t=p.current.querySelector(s.focusTargetSelector)),!t){const[e]=jN.tabbable.find(p.current);t=null!=e?e:p.current}v.current.hasRestoredFocus=!0,t.focus()}),[y,d,s.isBack,s.focusTargetSelector,s.skipFocus]);const w=JE([t,p]);return d?(0,ae.createElement)(fE,{ref:w,className:b,...a},r):null}),"NavigatorScreen"),Mae=Oae,Lae=(e,t)=>`[${e}="${t}"]`;const Dae=J_((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=bE,attributeName:o="id",...i}=Q_(e,"NavigatorButton"),a=Yr(t),{goTo:s}=fae();return{as:r,onClick:(0,ae.useCallback)((e=>{e.preventDefault(),s(a,{focusTargetSelector:Lae(o,a)}),n?.(e)}),[s,n,o,a]),...i,[o]:a}}(e);return(0,ae.createElement)(fE,{ref:t,...n})}),"NavigatorButton"),zae=Dae;const Fae=J_((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...a}=Q_(e,"Item"),{spacedAround:s,size:l}=Cq(),c=i||l,u=t||(void 0!==r?"button":"div"),d=Z_(),p=(0,ae.useMemo)((()=>d(("button"===u||"a"===u)&&pq(u),xq[c]||xq.medium,hq,s&&vq,n)),[u,n,d,c,s]),f=d(fq);return{as:u,className:p,onClick:r,wrapperClassName:f,role:o,...a}}(e);return(0,ae.createElement)("div",{role:n,className:r},(0,ae.createElement)(fE,{...o,ref:t}))}),"Item"),jae=Fae;function Vae({title:e}){return(0,ae.createElement)(Kq,{spacing:0},(0,ae.createElement)(fE,null,(0,ae.createElement)(sL,{marginBottom:0,paddingX:4,paddingY:3},(0,ae.createElement)(nH,{spacing:2},(0,ae.createElement)(mae,{style:{minWidth:24,padding:0},icon:Yn()?Q9:J9,size:"small",label:Kn("Back")}),(0,ae.createElement)(sL,null,(0,ae.createElement)(EG,{level:5},e))))))}function Hae({categories:e,children:t}){return(0,ae.createElement)(Rae,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation"},(0,ae.createElement)(Mae,{path:"/"},(0,ae.createElement)(Iq,null,e.map((e=>(0,ae.createElement)(zae,{key:e.name,path:`/category/${e.name}`,as:jae,isAction:!0},(0,ae.createElement)(nH,null,(0,ae.createElement)(YV,null,e.label),(0,ae.createElement)(VM,{icon:Yn()?J9:Q9}))))))),e.map((e=>(0,ae.createElement)(Mae,{key:e.name,path:`/category/${e.name}`},(0,ae.createElement)(Vae,{title:Kn("Back")}),t(e)))))}const $ae=()=>{};const Uae=function({choices:e=[],onHover:t=$ae,onSelect:n,value:r}){return(0,ae.createElement)(ae.Fragment,null,e.map((e=>{const o=r===e.value;return(0,ae.createElement)(Yj,{key:e.value,role:"menuitemradio",disabled:e.disabled,icon:o?HM: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)})))},Wae=e=>"all"!==e,Kae=e=>e.name===qu.name;function Gae({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:r,scrollContainerRef:o,category:i}){const a=i.name===qu.name?Wu.user:r,s=Wae(a),l=Kae(i),c=(0,ae.useMemo)((()=>[{value:"all",label:Gn("All","patterns")},{value:Ku.full,label:Gn("Synced","patterns"),disabled:s},{value:Ku.unsynced,label:Gn("Not synced","patterns"),disabled:s}]),[s]),u=(0,ae.useMemo)((()=>[{value:"all",label:Gn("All","patterns"),disabled:l},{value:Wu.directory,label:Kn("Pattern Directory"),disabled:l},{value:Wu.theme,label:Kn("Theme & Plugins"),disabled:l},{value:Wu.user,label:Kn("User")}]),[l]);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(WR,{popoverProps:{placement:"right-end"},label:"Filter patterns",icon:(0,ae.createElement)(VM,{icon:(0,ae.createElement)(Nu,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,ae.createElement)(Bu,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",fill:"#1E1E1E"}))})},(()=>(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Gj,{label:Kn("Source")},(0,ae.createElement)(Uae,{choices:u,onSelect:n=>{var r;t(r=n),Wae(r)&&e("all"),o.current?.scrollTo(0,0)},value:a})),(0,ae.createElement)(Gj,{label:Kn("Type")},(0,ae.createElement)(Uae,{choices:c,onSelect:t=>{e(t),o.current?.scrollTo(0,0)},value:n})),(0,ae.createElement)("div",{className:"block-editor-tool-selector__help"},LX(Kn("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,ae.createElement)(_Z,{href:Kn("https://wordpress.org/patterns/")})}))))))}const qae=()=>{};function Yae({rootClientId:e,onInsert:t,onHover:n=qae,category:r,showTitlesAsTooltip:o}){const[i,,a]=Hie(t,e,r?.name),[s,l]=(0,ae.useState)("all"),[c,u]=(0,ae.useState)("all"),d=cae(e,c),p=(0,ae.useRef)(),f=(0,ae.useMemo)((()=>i.filter((e=>!Yu(e,c,s)&&(r.name===Gu.name||(r.name===qu.name&&e.type===Wu.user||("uncategorized"===r.name?!e.categories||!e.categories.some((e=>d.some((t=>t.name===e)))):e.categories?.includes(r.name))))))),[i,d,r.name,c,s]),h=aae(f,r,p),{changePage:m}=h;(0,ae.useEffect)((()=>()=>n(null)),[]);const g=(0,ae.useCallback)((e=>{l(e),m(1)}),[l,m]),b=(0,ae.useCallback)((e=>{u(e),m(1)}),[u,m]);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(Kq,{spacing:2,className:"block-editor-inserter__patterns-category-panel-header"},(0,ae.createElement)(nH,null,(0,ae.createElement)(YV,null,(0,ae.createElement)(EG,{level:4,as:"div"},r.label)),(0,ae.createElement)(Gae,{patternSyncFilter:s,patternSourceFilter:c,setPatternSyncFilter:g,setPatternSourceFilter:b,scrollContainerRef:p,category:r})),!f.length&&(0,ae.createElement)(nD,{variant:"muted",className:"block-editor-inserter__patterns-category-no-results"},Kn("No results found"))),f.length>0&&(0,ae.createElement)(jie,{ref:p,shownPatterns:h.categoryPatternsAsyncList,blockPatterns:h.categoryPatterns,onClickPattern:a,onHover:n,label:r.label,orientation:"vertical",category:r.name,isDraggable:!0,showTitlesAsTooltip:o,patternFilter:c,pagingProps:h}))}const{Tabs:Xae}=Du(jj);const Zae=function({categories:e,selectedCategory:t,onSelectCategory:n,children:r}){return(0,ae.createElement)(Xae,{className:"block-editor-inserter__category-tabs",selectOnMove:!1,selectedTabId:t?t.name:null,orientation:"vertical",onSelect:t=>{n(e.find((e=>e.name===t)))}},(0,ae.createElement)(Xae.TabList,{className:"block-editor-inserter__category-tablist"},e.map((e=>(0,ae.createElement)(Xae.Tab,{key:e.name,tabId:e.name,className:"block-editor-inserter__category-tab","aria-label":e.label,"aria-current":e===t?"true":void 0},(0,ae.createElement)(nH,null,(0,ae.createElement)(YV,null,e.label),(0,ae.createElement)(VM,{icon:Yn()?J9:Q9})))))),e.map((e=>(0,ae.createElement)(Xae.TabPanel,{key:e.name,tabId:e.name,focusable:!1,className:"block-editor-inserter__category-panel"},r))))};const Qae=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:r,children:o}){const[i,a]=(0,ae.useState)(!1),s=cae(r),l=iN("medium","<");return du((e=>Du(e(Am)).isResolvingPatterns()),[])?(0,ae.createElement)("div",{className:"block-editor-inserter__patterns-loading"},(0,ae.createElement)(ZY,null)):s.length?(0,ae.createElement)(ae.Fragment,null,!l&&(0,ae.createElement)("div",{className:"block-editor-inserter__block-patterns-tabs-container"},(0,ae.createElement)(Zae,{categories:s,selectedCategory:t,onSelectCategory:e},o),(0,ae.createElement)(bE,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>a(!0),variant:"secondary"},Kn("Explore all patterns"))),l&&(0,ae.createElement)(Hae,{categories:s},(e=>(0,ae.createElement)("div",{className:"block-editor-inserter__category-panel"},(0,ae.createElement)(Yae,{key:e.name,onInsert:n,rootClientId:r,category:e,showTitlesAsTooltip:!1})))),i&&(0,ae.createElement)(dae,{initialCategory:t||s[0],patternCategories:s,onModalClose:()=>a(!1),rootClientId:r})):(0,ae.createElement)(Iie,null)};function Jae({rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o,patternFilter:i}){return(0,ae.createElement)(Yae,{key:r.name,rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o,patternFilter:i})}const ese=(0,ae.createElement)(Nu,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,ae.createElement)(Bu,{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"})),tse={image:"img",video:"video",audio:"audio"};function nse(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=tse[t],a=(0,ae.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[ua(`core/${t}`,n),a]}const rse=["image"],ose=25,ise={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"},{CompositeItemV2:ase}=Du(jj);function sse({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,ae.createElement)(WR,{className:"block-editor-inserter__media-list__item-preview-options",label:Kn("Options"),popoverProps:ise,icon:kG},(()=>(0,ae.createElement)(Gj,null,(0,ae.createElement)(Yj,{onClick:()=>window.open(n,"_blank").focus(),icon:ese},On(Kn("Report %s"),e.mediaType)))))}function lse({onClose:e,onSubmit:t}){return(0,ae.createElement)(f9,{title:Kn("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"},(0,ae.createElement)(Kq,{spacing:3},(0,ae.createElement)("p",null,Kn("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")),(0,ae.createElement)("p",null,Kn("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."))),(0,ae.createElement)(kL,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,ae.createElement)(EL,null,(0,ae.createElement)(bE,{variant:"tertiary",onClick:e},Kn("Cancel"))),(0,ae.createElement)(EL,null,(0,ae.createElement)(bE,{variant:"primary",onClick:t},Kn("Insert")))))}function cse({media:e,onClick:t,category:n}){const[r,o]=(0,ae.useState)(!1),[i,a]=(0,ae.useState)(!1),[s,l]=(0,ae.useState)(!1),[c,u]=(0,ae.useMemo)((()=>nse(e,n.mediaType)),[e,n.mediaType]),{createErrorNotice:d,createSuccessNotice:p}=Uc(LY),{getSettings:f}=du(Am),h=(0,ae.useCallback)((e=>{if(s)return;const n=f(),r=fa(e),{id:i,url:a,caption:c}=r.attributes;i||n.mediaUpload?i?t(r):(l(!0),window.fetch(a).then((e=>e.blob())).then((e=>{n.mediaUpload({filesList:[e],additionalData:{caption:c},onFileChange([e]){vc(e.url)||(t({...r,attributes:{...r.attributes,id:e.id,url:e.url}}),p(Kn("Image uploaded and inserted."),{type:"snackbar"}),l(!1))},allowedTypes:rse,onError(e){d(e,{type:"snackbar"}),l(!1)}})})).catch((()=>{o(!0),l(!1)}))):o(!0)}),[s,f,t,p,d]),m="string"==typeof e.title?e.title:e.title?.rendered||Kn("no title");let g;if(m.length>ose){const e="...";g=m.slice(0,ose-e.length)+e}const b=(0,ae.useCallback)((()=>a(!0)),[]),v=(0,ae.useCallback)((()=>a(!1)),[]);return(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(gie,{isEnabled:!0,blocks:[c]},(({draggable:t,onDragStart:r,onDragEnd:o})=>(0,ae.createElement)("div",{className:Au("block-editor-inserter__media-list__list-item",{"is-hovered":i}),draggable:t,onDragStart:r,onDragEnd:o},(0,ae.createElement)("div",{onMouseEnter:b,onMouseLeave:v},(0,ae.createElement)(ik,{text:g||m},(0,ae.createElement)(ase,{render:(0,ae.createElement)("div",{"aria-label":m,role:"option",className:"block-editor-inserter__media-list__item"}),onClick:()=>h(c)},(0,ae.createElement)("div",{className:"block-editor-inserter__media-list__item-preview"},u,s&&(0,ae.createElement)("div",{className:"block-editor-inserter__media-list__item-preview-spinner"},(0,ae.createElement)(ZY,null))))),!s&&(0,ae.createElement)(sse,{category:n,media:e}))))),r&&(0,ae.createElement)(lse,{onClose:()=>o(!1),onSubmit:()=>{t(fa(c)),p(Kn("Image inserted."),{type:"snackbar"}),o(!1)}}))}const{CompositeV2:use,useCompositeStoreV2:dse}=Du(jj);const pse=function({mediaList:e,category:t,onClick:n,label:r=Kn("Media List")}){const o=dse();return(0,ae.createElement)(use,{store:o,role:"listbox",className:"block-editor-inserter__media-list","aria-label":r},e.map(((e,r)=>(0,ae.createElement)(cse,{key:e.id||e.sourceId||r,media:e,category:t,onClick:n}))))};const fse=10;function hse({rootClientId:e,onInsert:t,category:n}){const[r,o,i]=G9(),{mediaList:a,isLoading:s}=function(e,t={}){const[n,r]=(0,ae.useState)(),[o,i]=(0,ae.useState)(!1),a=(0,ae.useRef)();return(0,ae.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:fse,search:i}),l="block-editor-inserter__media-panel",c=n.labels.search_items||Kn("Search");return(0,ae.createElement)("div",{className:l},(0,ae.createElement)(K9,{className:`${l}-search`,onChange:o,value:r,label:c,placeholder:c}),s&&(0,ae.createElement)("div",{className:`${l}-spinner`},(0,ae.createElement)(ZY,null)),!s&&!a?.length&&(0,ae.createElement)(Iie,null),!s&&!!a?.length&&(0,ae.createElement)(pse,{rootClientId:e,onClick:t,mediaList:a,category:n}))}const mse=["image","video","audio"];const gse=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:r,children:o}){const i=function(e){const[t,n]=(0,ae.useState)([]),r=du((e=>Du(e(Am)).getInserterMediaCategories()),[]),{canInsertImage:o,canInsertVideo:i,canInsertAudio:a}=du((t=>{const{canInsertBlockType:n}=t(Am);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]);return(0,ae.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}(e),a=iN("medium","<"),s=(0,ae.useCallback)((e=>{if(!e?.url)return;const[t]=nse(e,e.type);r(t)}),[r]),l=(0,ae.useMemo)((()=>i.map((e=>({...e,label:e.labels.name})))),[i]);return l.length?(0,ae.createElement)(ae.Fragment,null,!a&&(0,ae.createElement)("div",{className:"block-editor-inserter__media-tabs-container"},(0,ae.createElement)(Zae,{categories:l,selectedCategory:t,onSelectCategory:n},o),(0,ae.createElement)(WY,null,(0,ae.createElement)(UY,{multiple:!1,onSelect:s,allowedTypes:mse,render:({open:e})=>(0,ae.createElement)(bE,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},Kn("Open Media Library"))}))),a&&(0,ae.createElement)(Hae,{categories:l},(t=>(0,ae.createElement)(hse,{onInsert:r,rootClientId:e,category:t})))):(0,ae.createElement)(Iie,null)},{Fill:bse,Slot:vse}=CR("__unstableInserterMenuExtension");bse.Slot=vse;const yse=bse,wse=[];const kse=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:p=!0,prioritizePatterns:f,selectBlockOnInsert:h}){const m=gX(mh,500),{prioritizedBlocks:g}=du((e=>{const t=e(Am).getBlockListSettings(o);return{prioritizedBlocks:t?.prioritizedInserterBlocks||wse}}),[o]),[b,v]=Vie({onSelect:t,rootClientId:o,clientId:i,isAppender:a,insertionIndex:s,shouldFocusBlock:p,selectBlockOnInsert:h}),[y,w,k,_]=Eie(b,v),[E,,x]=Hie(v,b),S=(0,ae.useMemo)((()=>{if(0===l)return[];const t=nae(E,e);return void 0!==l?t.slice(0,l):t}),[e,E,l]);let C=c;f&&S.length>2&&(C=0);const I=(0,ae.useMemo)((()=>{if(0===C)return[];let t=Uu(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===tae(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 nae(e,r,o)})(t,w,k,e);return void 0!==C?n.slice(0,C):n}),[e,y,w,k,C,g]);(0,ae.useEffect)((()=>{if(!e)return;const t=I.length+S.length,n=On(qn("%d result found.","%d results found.",t),t);m(n)}),[e,m,I,S]);const T=lie(I,{step:9}),P=lie(T.length===I.length?S:wse),A=I.length>0||S.length>0,B=!!I.length&&(0,ae.createElement)(_ie,{title:(0,ae.createElement)(hE,null,Kn("Blocks"))},(0,ae.createElement)(kie,{items:T,onSelect:_,onHover:n,label:Kn("Blocks"),isDraggable:d})),N=!!S.length&&(0,ae.createElement)(_ie,{title:(0,ae.createElement)(hE,null,Kn("Block patterns"))},(0,ae.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,ae.createElement)(jie,{shownPatterns:P,blockPatterns:S,onClickPattern:x,onHover:r,isDraggable:d})));return(0,ae.createElement)(Cie,null,!u&&!A&&(0,ae.createElement)(Iie,null),f?N:B,!!I.length&&!!S.length&&(0,ae.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),f?B:N,u&&(0,ae.createElement)(yse.Slot,{fillProps:{onSelect:_,onHover:n,filterValue:e,hasItems:A,rootClientId:b}},(e=>e.length?e:A?null:(0,ae.createElement)(Iie,null))))},{Tabs:_se}=Du(jj),Ese={name:"blocks",title:Kn("Blocks")},xse={name:"patterns",title:Kn("Patterns")},Sse={name:"media",title:Kn("Media")};const Cse=(0,ae.forwardRef)((function({onSelect:e,children:t,onClose:n,selectedTab:r},o){const i=[Ese,xse,Sse];return(0,ae.createElement)("div",{className:"block-editor-inserter__tabs",ref:o},(0,ae.createElement)(_se,{onSelect:e,selectedTabId:r},(0,ae.createElement)("div",{className:"block-editor-inserter-sidebar__header"},(0,ae.createElement)(bE,{className:"block-editor-inserter-sidebar__close-button",icon:FQ,label:Kn("Close block inserter"),onClick:()=>n(),size:"small"}),(0,ae.createElement)(_se.TabList,{className:"block-editor-inserter__tablist"},i.map((e=>(0,ae.createElement)(_se.Tab,{key:e.name,tabId:e.name,className:"block-editor-inserter__tab"},e.title))))),i.map((e=>(0,ae.createElement)(_se.TabPanel,{key:e.name,tabId:e.name,focusable:!1,className:"block-editor-inserter__tabpanel"},t)))))})),Ise=()=>{};const Tse=(0,ae.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,onSelect:o,showInserterHelpPanel:i,showMostUsedBlocks:a,__experimentalFilterValue:s="",shouldFocusBlock:l=!0,__experimentalOnPatternCategorySelection:c=Ise,onClose:u,__experimentalInitialTab:d,__experimentalInitialCategory:p},f){const h=du((e=>"zoom-out"===e(Am).__unstableGetEditorMode()),[]),[m,g,b]=G9(s),[v,y]=(0,ae.useState)(null),[w,k]=(0,ae.useState)(p),[_,E]=(0,ae.useState)("all"),[x,S]=(0,ae.useState)(null),[C,I]=(0,ae.useState)(d),[T,P,A]=Vie({rootClientId:e,clientId:t,isAppender:n,insertionIndex:r,shouldFocusBlock:l}),B=(0,ae.useRef)(),N=(0,ae.useCallback)(((e,t,n)=>{P(e,t,n),o(),window.requestAnimationFrame((()=>{l||B?.current.contains(f.current.ownerDocument.activeElement)||B?.current.querySelector("button").focus()}))}),[P,o,l]),R=(0,ae.useCallback)(((e,t)=>{P(e,{patternName:t}),o()}),[P,o]),O=(0,ae.useCallback)((e=>{A(!!e),y(e)}),[A,y]),M=(0,ae.useCallback)((e=>{A(!!e)}),[A]),L=(0,ae.useCallback)(((e,t)=>{k(e),E(t),c()}),[k,c]),D="patterns"===C&&!b&&!!w,z="media"===C&&!!x,F=(0,ae.useMemo)((()=>"media"===C?null:(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)(K9,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{v&&y(null),g(e)},value:m,label:Kn("Search for blocks and patterns"),placeholder:Kn("Search")}),!!b&&(0,ae.createElement)(kse,{filterValue:b,onSelect:o,onHover:O,onHoverPattern:M,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:l,prioritizePatterns:"patterns"===C}))),[C,v,y,g,m,b,o,O,M,l,t,e,r,n]),j=(0,ae.useMemo)((()=>(0,ae.createElement)(ae.Fragment,null,(0,ae.createElement)("div",{className:"block-editor-inserter__block-list"},(0,ae.createElement)(Pie,{ref:B,rootClientId:T,onInsert:N,onHover:O,showMostUsedBlocks:a})),i&&(0,ae.createElement)("div",{className:"block-editor-inserter__tips"},(0,ae.createElement)(hE,{as:"h2"},Kn("A tip for using the block editor")),(0,ae.createElement)(Z9,null)))),[T,N,O,a,i]),V=(0,ae.useMemo)((()=>(0,ae.createElement)(Qae,{rootClientId:T,onInsert:R,onSelectCategory:L,selectedCategory:w},D&&(0,ae.createElement)(Jae,{rootClientId:T,onInsert:R,onHover:M,category:w,patternFilter:_,showTitlesAsTooltip:!0}))),[T,M,R,L,_,w,D]),H=(0,ae.useMemo)((()=>(0,ae.createElement)(gse,{rootClientId:T,selectedCategory:x,onSelectCategory:S,onInsert:N},z&&(0,ae.createElement)(hse,{rootClientId:T,onInsert:N,category:x}))),[T,N,x,S,z]);!function(e=!0){const{__unstableSetEditorMode:t}=Uc(Am),{__unstableGetEditorMode:n}=du(Am),r=(0,ae.useRef)(null),o=n();(0,ae.useEffect)((()=>(r.current||(r.current=o),()=>{n()!==r.current&&t(r.current)})),[]),(0,ae.useEffect)((()=>{e&&"zoom-out"!==o?t("zoom-out"):e||r.current===o||t(r.current)}),[t,e,o])}(D);const $=(0,ae.useRef)();return(0,ae.useLayoutEffect)((()=>{$.current&&window.requestAnimationFrame((()=>{$.current.querySelector('[role="tab"][aria-selected="true"]')?.focus()}))}),[]),(0,ae.createElement)("div",{className:Au("block-editor-inserter__menu",{"show-panel":D||z,"is-zoom-out":h}),ref:f},(0,ae.createElement)("div",{className:"block-editor-inserter__main-area"},(0,ae.createElement)(Cse,{ref:$,onSelect:e=>{"patterns"!==e&&k(null),I(e)},onClose:u,selectedTab:C},F,"blocks"===C&&!b&&j,"patterns"===C&&!b&&V,"media"===C&&H)),i&&v&&(0,ae.createElement)(NR,{className:"block-editor-inserter__preview-container__popover",placement:"right-start",offset:16,focusOnMount:!1,animate:!1},(0,ae.createElement)(sie,{item:v})))}));function Pse({onSelect:e,rootClientId:t,clientId:n,isAppender:r,prioritizePatterns:o,selectBlockOnInsert:i,hasSearch:a=!0}){const[s,l]=(0,ae.useState)(""),[c,u]=Vie({onSelect:e,rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:i}),[d]=Eie(c,u),[p]=Hie(u,c),{setInserterIsOpened:f,insertionIndex:h}=du((e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:o}=e(Am),i=t(),a=r(n),s=o();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===a?s:a}}),[n]),m=p.length&&(!!s||o),g=a&&(m&&p.length>6||d.length>6);(0,ae.useEffect)((()=>{f&&f(!1)}),[f]);let b=0;return m&&(b=o?4:2),(0,ae.createElement)("div",{className:Au("block-editor-inserter__quick-inserter",{"has-search":g,"has-expand":f})},g&&(0,ae.createElement)(K9,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:s,onChange:e=>{l(e)},label:Kn("Search for blocks and patterns"),placeholder:Kn("Search")}),(0,ae.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,ae.createElement)(kse,{filterValue:s,onSelect:e,rootClientId:t,clientId:n,isAppender:r,maxBlockPatterns:b,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:o,selectBlockOnInsert:i})),f&&(0,ae.createElement)(bE,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{f({rootClientId:t,insertionIndex:h,filterValue:s})},"aria-label":Kn("Browse all. This will open the main inserter panel in the editor toolbar.")},Kn("Browse all")))}const Ase=({onToggle:e,disabled:t,isOpen:n,blockTitle:r,hasSingleBlockType:o,toggleProps:i={},prioritizePatterns:a})=>{const{as:s=bE,label:l,onClick:c,...u}=i;let d=l;return!d&&o?d=On(Gn("Add %s","directly add the only allowed block"),r):!d&&a?d=Kn("Add pattern"):d||(d=Gn("Add block","Generic label for block inserter button")),(0,ae.createElement)(s,{icon:o$,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 Bse extends ae.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=Ase,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,ae.createElement)(Pse,{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,ae.createElement)(Tse,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:r,showInserterHelpPanel:o})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:r,__experimentalIsQuick:o,onSelectOrClose:i}=this.props;return t||n?this.renderToggle({onToggle:r}):(0,ae.createElement)(OR,{className:"block-editor-inserter",contentClassName:Au("block-editor-inserter__popover",{"is-quick":o}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Kn("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}const Nse=Ne([_X(((e,{clientId:t,rootClientId:n,shouldDirectInsert:r=!0})=>{const{getBlockRootClientId:o,hasInserterItems:i,getAllowedBlocks:a,getDirectInsertBlock:s,getSettings:l}=e(Am),{getBlockVariations:c}=e(na),u=a(n=n||o(t)||void 0),d=r&&s(n),p=l(),f=1===u?.length&&0===c(u[0].name,"inserter")?.length;let h=!1;return f&&(h=u[0]),{hasItems:i(n),hasSingleBlockType:f,blockTitle:h?h.title:"",allowedBlockType:h,directInsertBlock:d,rootClientId:n,prioritizePatterns:p.__experimentalPreferPatternsOnRoot&&!n}})),VY(((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(Am);let p;if(l){const e=function(e){const{getBlock:t,getPreviousBlockClientId:i}=n(Am);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);p=ua(l.name,{...l.attributes||{},...e})}else p=ua(s.name);d(p,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:a,getBlockRootClientId:s}=n(Am);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:p?.clientId});mh(On(Kn("%s block added"),s.title))}}))),F9((({hasItems:e,isAppender:t,rootClientId:n,clientId:r})=>e||!t&&!n&&!r))])(Bse),Rse=(0,ae.forwardRef)(((e,t)=>(0,ae.createElement)(Nse,{ref:t,...e})));function Ose({rootClientId:e,className:t,onFocus:n,tabIndex:r},o){return(0,ae.createElement)(Rse,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:i,isOpen:a,blockTitle:s,hasSingleBlockType:l})=>{let c;c=l?On(Gn("Add %s","directly add the only allowed block"),s):Gn("Add block","Generic label for block inserter button");const u=!l;let d=(0,ae.createElement)(bE,{ref:o,onFocus:n,tabIndex:r,className:Au(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,ae.createElement)(hE,{as:"span"},c),(0,ae.createElement)(VM,{icon:o$}));return(u||l)&&(d=(0,ae.createElement)(ik,{text:c},d)),d},isAppender:!0})}(0,ae.forwardRef)(((e,t)=>(Mt("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),Ose(e,t))));const Mse=(0,ae.forwardRef)(Ose),Lse=Wc((e=>t=>{const{clientId:n}=tu();return(0,ae.createElement)(e,{...t,clientId:n})}),"withClientId"),Dse=Lse((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:r,isToggle:o})=>(0,ae.createElement)(Mse,{className:Au({"block-list-appender__toggle":o}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:r}))),zse=Ne([Lse,_X(((e,{clientId:t})=>{const{getBlockOrder:n}=e(Am),r=n(t);return{lastBlockClientId:r[r.length-1]}}))])((({clientId:e})=>(0,ae.createElement)(Zre,{rootClientId:e}))),Fse=new WeakMap;function jse(e,t,n,r,o,i,a,s,l,c,u,d){const{updateBlockListSettings:p}=Uc(Am),f=$c(),h=function(e){const[t,n]=(0,ae.useState)(e);return ss(t,e)||n(e),t}(n),m=(0,ae.useMemo)((()=>r),r),g=void 0===l||"contentOnly"===t?t:l;(0,ae.useLayoutEffect)((()=>{const t={allowedBlocks:h,prioritizedInserterBlocks:m,templateLock:g};if(void 0!==c&&(t.__experimentalCaptureToolbars=c),void 0!==u)t.orientation=u;else{const e=jK(d?.type);t.orientation=e.getOrientation(d)}void 0!==a&&(Mt("__experimentalDefaultBlock",{alternative:"defaultBlock",since:"6.3",version:"6.4"}),t.defaultBlock=a),void 0!==o&&(t.defaultBlock=o),void 0!==s&&(Mt("__experimentalDirectInsert",{alternative:"directInsert",since:"6.3",version:"6.4"}),t.directInsert=s),void 0!==i&&(t.directInsert=i),void 0!==t.directInsert&&"boolean"!=typeof t.directInsert&&Mt("Using `Function` as a `directInsert` argument",{alternative:"`boolean` values",since:"6.5"}),Fse.get(f)||Fse.set(f,[]),Fse.get(f).push([e,t]),window.queueMicrotask((()=>{Fse.get(f)?.length&&f.batch((()=>{Fse.get(f).forEach((e=>{p(...e)})),Fse.set(f,[])}))}))}),[e,h,m,g,o,i,a,s,c,u,p,d,f])}function Vse(e,t,n,r,o,i,a,s,l){return c=>{const{srcRootClientId:u,srcClientIds:d,type:p,blocks:f}=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}(c);if("inserter"===p){a();const e=f.map((e=>fa(e)));i(e,!0,null)}if("block"===p){const a=n(d[0]);if(u===e&&a===t)return;if(d.includes(e)||r(d).some((t=>t===e)))return;if("group"===s){const e=d.map((e=>l(e)));return void i(e,!0,null,d)}const c=u===e,p=d.length;o(d,u,c&&a<t?t-p:t)}}}function Hse(e,t,n={}){const{operation:r="insert",nearestSide:o="right"}=n,{canInsertBlockType:i,getBlockIndex:a,getClientIdsOfDescendants:s,getBlockOrder:l,getBlocksByClientId:c,getSettings:u,getBlock:d,isGroupable:p}=du(Am),{getGroupingBlockName:f}=du(na),{insertBlocks:h,moveBlocksToPosition:m,updateBlockAttributes:g,clearSelectedBlock:b,replaceBlocks:v,removeBlocks:y}=Uc(Am),w=$c(),k=(0,ae.useCallback)(((n,a=!0,s=0,c=[])=>{Array.isArray(n)||(n=[n]);const u=l(e)[t],m=n.map((e=>e.clientId)),g=p([...m,u]);if("replace"===r)v(u,n,void 0,s);else if("group"===r&&g){const t=d(u);"left"===o?n.push(t):n.unshift(t);const r=n.map((e=>ua(e.name,e.attributes,e.innerBlocks))),a=n.every((e=>"core/image"===e.name)),l=i("core/gallery",e),p=ua(a&&l?"core/gallery":f(),{layout:{type:"flex",flexWrap:a&&l?null:"nowrap"}},r);v([u,...c],p,void 0,s)}else h(n,t,e,a,s)}),[l,e,t,p,r,v,d,o,i,f,h]),_=(0,ae.useCallback)(((n,o,i)=>{if("replace"===r){const r=c(n),o=l(e)[t];w.batch((()=>{y(n,!1),v(o,r,void 0,0)}))}else m(n,o,e,i)}),[r,l,c,m,w,y,v,t,e]),E=Vse(e,t,a,s,_,k,b,r,d),x=function(e,t,n,r,o){return i=>{if(!t().mediaUpload)return;const a=va(ya("from"),(t=>"files"===t.type&&r(t.blockName,e)&&t.isMatch(i)));if(a){const e=a.transform(i,n);o(e)}}}(e,u,g,i,k),S=function(e){return t=>{const n=Bc({HTML:t,mode:"BLOCKS"});n.length&&e(n)}}(k);return e=>{const t=Nq(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?S(n):t.length?x(t):E(e)}}function $se(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]}const Use=30,Wse=120,Kse=120;function Gse({dropZoneElement:e,rootClientId:t="",parentClientId:n="",isDisabled:r=!1}={}){const o=$c(),[i,a]=(0,ae.useState)({index:null,operation:"insert"}),{getBlockType:s}=du(na),{getBlockListSettings:l,getBlocks:c,getBlockIndex:u,getDraggedBlockClientIds:d,getBlockNamesByClientId:p,getAllowedBlocks:f,isDragging:h}=Du(du(Am)),{showInsertionPoint:m,hideInsertionPoint:g,startDragging:b,stopDragging:v}=Du(Uc(Am)),y=Hse("before"===i.operation||"after"===i.operation?n:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),w=function(e,t,n){const r=mX((()=>die(e,null!=t?t:0,n)),[e,t,n]);return(0,ae.useEffect)((()=>()=>r.cancel()),[r]),r}((0,ae.useCallback)(((r,i)=>{h()||b();const g=f(t),v=p([t])[0],y=p(d()),w=function(e,t,n,r){let o=!0;if(t){const e=t?.map((({name:e})=>e));o=n.every((t=>e?.includes(t)))}const i=n.map((t=>e(t))).every((e=>{const[t]=e?.parent||[];return!t||t===r}));return o&&i}(s,g,y,v);if(!w)return;const k=c(t);if(0===k.length)return void o.batch((()=>{a({index:0,operation:"insert"}),m(t,0,{operation:"insert"})}));const _=k.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:Ho(e),getBoundingClientRect:()=>i.getElementById(`block-${t}`).getBoundingClientRect(),blockIndex:u(t),blockOrientation:l(t)?.orientation}})),[E,x,S]=function(e,t,n="vertical",r={}){const o="horizontal"===n?["left","right"]:["top","bottom"];let i=0,a="before",s=1/0,l=null,c="right";const{dropZoneElement:u,parentBlockOrientation:d,rootBlockIndex:p=0}=r;if(u&&"horizontal"!==d){const e=u.getBoundingClientRect(),[n,r]=$se(t,e,["top","bottom"]);if(e.height>Wse&&n<Use){if("top"===r)return[p,"before"];if("bottom"===r)return[p+1,"after"]}}const f=Yn();if(u&&"horizontal"===d){const e=u.getBoundingClientRect(),[n,r]=$se(t,e,["left","right"]);if(e.width>Kse&&n<Use){if(f&&"right"===r||!f&&"left"===r)return[p,"before"];if(f&&"left"===r||!f&&"right"===r)return[p+1,"after"]}}e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:r,blockIndex:u,blockOrientation:d})=>{const p=r();let[h,m]=$se(t,p,o);const[g,b]=$se(t,p,["left","right"]),v=function(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}(t,p);e&&v?h=0:"vertical"===n&&"horizontal"!==d&&(v&&g<Use||!v&&function(e,t){return t.top<=e.y&&t.bottom>=e.y}(t,p))&&(l=u,c=b),h<s&&(a="bottom"===m||!f&&"right"===m||f&&"left"===m?"after":"before",s=h,i=u)}));const h=i+("after"===a?1:-1),m=!!e[i]?.isUnmodifiedDefaultBlock,g=!!e[h]?.isUnmodifiedDefaultBlock;if(null!==l)return[l,"group",c];if(!m&&!g)return["after"===a?i+1:i,"insert"];return[m?i:h,"replace"]}(_,{x:r.clientX,y:r.clientY},l(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?l(n)?.orientation:void 0,rootBlockIndex:u(t)});o.batch((()=>{a({index:E,operation:x,nearestSide:S});const e=["before","after"].includes(x)?n:t;m(e,E,{operation:x,nearestSide:S})}))}),[f,t,p,d,s,c,l,e,n,u,o,m,h,b]),200);return Oq({dropZoneElement:e,isDisabled:r,onDrop:y,onDragOver(e){w(e,e.currentTarget.ownerDocument)},onDragLeave(){w.cancel(),g()},onDragEnd(){w.cancel(),v(),g()}})}const qse={};function Yse({children:e,clientId:t}){const n=function(e){return du((t=>{const n=t(Am).getBlock(e);if(!n)return;const r=t(na).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);return(0,ae.createElement)(R7,{value:n},e)}const Xse=(0,ae.memo)(foe);function Zse(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:p,__experimentalAppenderTagName:f,renderAppender:h,orientation:m,placeholder:g,layout:b,name:v,blockType:y,parentLock:w,defaultLayout:k}=e;jse(t,w,n,r,o,i,a,s,c,p,m,b),function(e,t,n,r){const{getBlocks:o,getSelectedBlocksInitialCaretPosition:i,isBlockSelected:a}=du(Am),{replaceInnerBlocks:s,__unstableMarkNextChangeAsNotPersistent:l}=Uc(Am),c=(0,ae.useRef)(null);(0,ae.useLayoutEffect)((()=>{let u=!1;return window.queueMicrotask((()=>{if(u)return;const d=o(e),p=0===d.length||"all"===n||"contentOnly"===n,f=!Ps()(t,c.current);if(!p||!f)return;c.current=t;const h=Dc(d,t);Ps()(h,d)||(l(),s(e,h,0===d.length&&r&&0!==h.length&&a(e),i()))})),()=>{u=!0}}),[t,n,e])}(t,l,c,d);const _=Lo(v,"layout")||Lo(v,"__experimentalLayout")||qse,{allowSizingOnChildren:E=!1}=_,x=b||_,S=(0,ae.useMemo)((()=>({...k,...x,...E&&{allowSizingOnChildren:!0}})),[k,x,E]),C=(0,ae.createElement)(Xse,{rootClientId:t,renderAppender:h,__experimentalAppenderTagName:f,layout:S,wrapperRef:u,placeholder:g});return 0===Object.keys(y.providesContext).length?C:(0,ae.createElement)(Yse,{clientId:t},C)}function Qse(e){return o7(e),(0,ae.createElement)(Zse,{...e})}const Jse=(0,ae.forwardRef)(((e,t)=>{const n=ele({ref:t},e);return(0,ae.createElement)("div",{className:"block-editor-inner-blocks"},(0,ae.createElement)("div",{...n}))}));function ele(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:r,dropZoneElement:o}=t,{clientId:i,layout:a=null,__unstableLayoutClassNames:s=""}=tu(),l=du((e=>{const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:r,__unstableGetEditorMode:o,getTemplateLock:a,getBlockRootClientId:s,getBlockEditingMode:l,getBlockSettings:c,isDragging:u,getSettings:d}=Du(e(Am));let p;if("zoom-out"===o()){const{sectionRootClientId:e}=Du(d());p=i!==e}if(!i)return{isDropZoneDisabled:p};const{hasBlockSupport:f,getBlockType:h}=e(na),m=t(i),g="navigation"===o(),b=l(i),v=s(i),[y]=c(i,"layout");return void 0!==p&&(p="disabled"===b),{__experimentalCaptureToolbars:f(m,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==m&&!n(i)&&!r(i,!0)&&g&&!u(),name:m,blockType:h(m),parentLock:a(v),parentClientId:v,isDropZoneDisabled:p,defaultLayout:y}}),[i]),{__experimentalCaptureToolbars:c,hasOverlay:u,name:d,blockType:p,parentLock:f,parentClientId:h,isDropZoneDisabled:m,defaultLayout:g}=l,b=Gse({dropZoneElement:o,rootClientId:i,parentClientId:h}),v=JE([e.ref,r||m?null:b]),y={__experimentalCaptureToolbars:c,layout:a,name:d,blockType:p,parentLock:f,defaultLayout:g,...t},w=y.value&&y.onChange?Qse:Zse;return{...e,ref:v,className:Au(e.className,"block-editor-block-list__layout",n?"":s,{"has-overlay":u}),children:i?(0,ae.createElement)(w,{...y,clientId:i}):(0,ae.createElement)(foe,{...t})}}ele.save=function(e={}){const{innerBlocks:t}=ps;if(!Array.isArray(t))return{...e,children:t};const n=bs(t,{isInnerBlocks:!0}),r=(0,ae.createElement)(Da,null,n);return{...e,children:r}},Jse.DefaultBlockAppender=zse,Jse.ButtonBlockAppender=Dse,Jse.Content=()=>ele.save().children;const tle=Jse;const nle=function(e){return React.createElement("div",null,React.createElement(React.Fragment,null,React.createElement(tle.Content,null)))};wp.i18n.__;var rle=wp.i18n.__;(0,wp.blocks.registerBlockType)("fluent-booking/calendar",{title:rle("FluentBooking Event"),description:rle("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:[rle("fluent"),rle("fluent booking"),rle("calendar"),rle("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:nle})})()})();
1 +(function(){"use strict";const{InspectorControls:Y,PanelColorSettings:q}=wp.blockEditor,{__:a}=wp.i18n,{PanelBody:G,PanelRow:J}=wp.components,O=window.fluent_booking_block.hosts,Q=Object.values(O),U=p=>{const{attributes:{slotId:s,calendarId:P,calendars:V,primary_color:E,date_round:f,avatarStyle:D,hideHostInfo:H,theme:h},setAttributes:u}=p,g=l=>{const c=l.target.value.split(",");u({slotId:c[0],calendarId:c[1]})},m=l=>{u({date_round:l.target.value})},k=l=>{u({avatarStyle:l.target.value})},C=l=>{u({theme:l.target.value})},S=l=>{u({hideHostInfo:l.target.value})},N=[{value:E,onChange:l=>{u({primary_color:l})},label:a("Primary Color")}];return wp.element.createElement(Y,null,wp.element.createElement(G,{title:"General Settings",initialOpen:!0},wp.element.createElement(J,null,wp.element.createElement("div",{className:"fcal_block_settings"},wp.element.createElement("div",{className:"fcal_block_inspector_widget"},wp.element.createElement("h3",{className:"label"},a("Select An Event")),wp.element.createElement("select",{value:[s,P],onChange:g},wp.element.createElement("option",{key:"default",value:""},a("---Select a Event---")),Q.map((l,c)=>wp.element.createElement("optgroup",{label:l.title,key:c},l.events.map((t,n)=>wp.element.createElement("option",{key:n,value:[t.id,l.id]},t.title)))))),wp.element.createElement("div",{className:"fcal_block_inspector_widget"},wp.element.createElement("h3",{className:"label"},a("Date Style")),wp.element.createElement("select",{value:f,onChange:m},wp.element.createElement("option",{value:"4px"},a("Square")),wp.element.createElement("option",{value:"50%"},a("Rounded")))),wp.element.createElement("div",{className:"fcal_block_inspector_widget"},wp.element.createElement("h3",{className:"label"},a("Avatar Style")),wp.element.createElement("select",{value:D,onChange:k},wp.element.createElement("option",{value:"8px"},a("Square")),wp.element.createElement("option",{value:"50%"},a("Rounded")))),wp.element.createElement("div",{className:"fcal_block_inspector_widget fcal_block_inspector_host_info"},wp.element.createElement("h3",{className:"label"},a("Host Info")),wp.element.createElement("select",{value:H,onChange:S},wp.element.createElement("option",{value:"no"},a("Show")),wp.element.createElement("option",{value:"yes"},a("Hide")))),wp.element.createElement("div",{className:"fcal_block_inspector_widget fcal_block_theme"},wp.element.createElement("h3",{className:"label"},a("Color Schema")),wp.element.createElement("select",{value:h,onChange:C},wp.element.createElement("option",{value:"system-default"},a("System Default")),wp.element.createElement("option",{value:"light"},a("Light")),wp.element.createElement("option",{value:"dark"},a("Dark"))))))),h!="dark"?wp.element.createElement("div",{className:"fluent-latest-posts-content-color-settings"},wp.element.createElement(q,{title:a("Customization"),colorSettings:N})):"")},{__:W}=wp.i18n,{Fragment:B,useEffect:T,useState:F}=wp.element,K=p=>{const{attributes:{slotId:s},setAttributes:P}=p;let V=["January","February","March","April","May","June","July","August","September","October","November","December"],E=["sun","mon","tue","wed","thu","fri","sat"],f=new Date,D=f.getFullYear(),H=f.getMonth();const[h,u]=F([]),[g,m]=F({}),[k,C]=F(""),S=()=>{const t=new Date,n=t.getFullYear(),d=t.getMonth(),_=[],o=new Date(n,d,1).getDay(),z=new Date(n,d+1,0).getDate(),I=new Date(n,d,0).getDate(),L=d===0?11:d-1;for(let w=I-o;w<I;w++){let M=new Date(L===11?n-1:n,L,w+1);_.push({name:"",enabled:!1,date:M})}for(let w=0;w<z;w++){const x=new Date(n,d,w+1).toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"}),$=!!g[x];_.push({name:`${w+1}`,enabled:$,date:x})}u(_)},N=()=>{const t=new Date().getFullYear(),n=new Date().getMonth(),d={event_id:s,action:"fluent_cal_get_available_dates",start_date:`${t}-${n+1}-01`},_=new URLSearchParams(d).toString();fetch(`${window.fluentCalendarGutenbergVars.ajaxurl}?${_}`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(o=>{if(!o.ok)throw new Error("Network response was not ok");return o.json()}).then(o=>{m(o==null?void 0:o.available_slots),C(o==null?void 0:o.timezone)}).catch(o=>{console.error("There was an error!",o)})};T(()=>{N()},[s]),T(()=>{S()},[g]);let l=new Date;function c(t){const n=t.getFullYear(),d=String(t.getMonth()+1).padStart(2,"0"),_=String(t.getDate()).padStart(2,"0");return`${n}-${d}-${_}`}return[wp.element.createElement(B,null,wp.element.createElement("div",{className:"fcal_block_calendar_container"},wp.element.createElement("div",{className:"fcal_block_calendar_header"},wp.element.createElement("div",{className:"fcal_block_calendar_month_year"},wp.element.createElement("h3",null,V[H]," ",wp.element.createElement("span",null,D)))),wp.element.createElement("div",{className:"fcal_block_calendar"},E.map((t,n)=>wp.element.createElement("span",{className:"day-name",key:n},t)),h.map((t,n)=>wp.element.createElement(B,{key:n},t.enabled?wp.element.createElement("span",{role:"button",tabIndex:"0","aria-label":`Select Day ${t.name}`,className:"day day-enabled"},wp.element.createElement("span",{className:c(l)===t.date?"is-today":""},t.name)):wp.element.createElement("span",{className:"day day-disabled"},wp.element.createElement("span",{className:c(l)===t.date?"is-today":""},t.name))))),k?wp.element.createElement("div",{className:"fcal_block_timezone"},wp.element.createElement("h3",null,W("Timezone")),wp.element.createElement("span",{className:"timezone"},k)):""))]},{Fragment:X,useEffect:Z,useState:A}=wp.element,{__:b}=wp.i18n,{Spinner:ee}=wp.components,te=p=>{var I,L,w,M,x,$,j;const{attributes:{slotId:s,calendars:P,calendarId:V,eventHash:E,avatarStyle:f,hideHostInfo:D,theme:H},setAttributes:h}=p,[u,g]=A(!1),[m,k]=A([]),[C,S]=A(!1),N=wp.apiFetch,{addQueryArgs:l}=wp.url,[c,t]=A([]);Z(()=>{n()},[]),Z(()=>{c.length&&(s?(_(),d()):E&&o())},[s,c]);const n=r=>{g(!0),N({path:l("fluent-booking/v2/calendars",{...r})}).then(e=>{t(e.calendars.data)}).catch(e=>{S(e)}).finally(()=>{g(!1)})},d=r=>{g(!0),N({path:l(`fluent-booking/v2/events/${s}`,{...r,event_hash:E})}).then(e=>{var v;k(e.calendar_event);const i=String(((v=e.calendar_event)==null?void 0:v.id)||"");i&&i!==String(s)&&h({slotId:i})}).catch(e=>{S(e)}).finally(()=>{g(!1)})},_=()=>{const r=c.flatMap(e=>{var i;return(i=e.slots)!=null&&i.length?e.slots:[]}).find(e=>e.id==s);r&&h({eventHash:r.hash})},o=()=>{const r=c.flatMap(e=>{var i;return(i=e.slots)!=null&&i.length?e.slots:[]}).find(e=>e.hash==E);r&&h({slotId:r.id})},z=r=>{var v;const e=r.target.value.split(","),i=(v=c.find(R=>R.id==e[1]))==null?void 0:v.slots.find(R=>R.id==e[0]);h({slotId:e[0],calendarId:e[1],eventHash:i.hash})};return[wp.element.createElement(X,null,wp.element.createElement("div",{className:s?"fcal_block_landing_page fcal_block_landing_preview":"fcal_block_landing_page "},s&&m?wp.element.createElement("div",{className:H+" fcal_block_preview_wrap"},D=="no"?wp.element.createElement("div",{className:"fcal_block_preview_aside"},wp.element.createElement("div",{className:"fcal_author"},wp.element.createElement("div",{className:"fcal_author_avatar"},wp.element.createElement("img",{style:{borderRadius:f||"8px"},src:(L=(I=m.calendar)==null?void 0:I.author_profile)==null?void 0:L.avatar,alt:(w=m.calendar)==null?void 0:w.title})),wp.element.createElement("h3",{className:"fcal_author_name"},(M=m.calendar)==null?void 0:M.title)),wp.element.createElement("div",{className:"fcal_slot_info"},wp.element.createElement("h2",{className:"fcal_slot_heading"},m.title),wp.element.createElement("div",{className:"slot_timing fcal_icon_item"},wp.element.createElement("svg",{fill:"#000000",width:"16px",height:"16px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000"},wp.element.createElement("g",{strokeWidth:"0"}),wp.element.createElement("g",{strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement("g",null,wp.element.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"}))),wp.element.createElement("span",null,m.duration," ",b("Minutes"))),((x=m.location_settings)==null?void 0:x.type)=="in_person_organizer"?wp.element.createElement("div",{className:"slot_location fcal_icon_item"},wp.element.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"},wp.element.createElement("title",null,"Physical location"),wp.element.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"})),wp.element.createElement("span",null,($=m.location_settings)==null?void 0:$.title)):null,((j=m.location_settings)==null?void 0:j.type)=="phone_organizer"?wp.element.createElement("div",{className:"slot_location fcal_icon_item"},wp.element.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"},wp.element.createElement("title",null,"Physical location"),wp.element.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"})),wp.element.createElement("span",null,b("Phone Call"))):null),wp.element.createElement("div",{className:"fcal_slot_description"},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:m.description}}))):null,wp.element.createElement("div",{className:"fcal_block_preview_date_wrapper"},wp.element.createElement(K,{attributes:p.attributes,setAttributes:p.setAttributes}))):wp.element.createElement("div",{className:"fcal_block_select_cal"},u?wp.element.createElement("h2",{className:"fcal_block_loading"},b("Loading..."),wp.element.createElement(ee,null)):wp.element.createElement("div",null,c&&c.length&&!C?wp.element.createElement("select",{value:[s,V],id:"fcal_select_calendar",onChange:z},wp.element.createElement("option",{key:"default",value:""},b("---Select a Event---")),c.map((r,e)=>wp.element.createElement("optgroup",{label:r.title,key:e},r.slots.map((i,v)=>wp.element.createElement("option",{key:v,value:[i.id,r.id]},i.title))))):wp.element.createElement("div",{className:"fcal_calendar_not_found"},wp.element.createElement("h2",null,b(C?"Something went wrong!":"No Calendars found!")))))))]},{useBlockProps:le}=wp.blockEditor,ne=p=>{const s=le({className:"fluent-booking-block"});return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{...s},wp.element.createElement(te,{attributes:p.attributes,setAttributes:p.setAttributes})),wp.element.createElement(U,{attributes:p.attributes,setAttributes:p.setAttributes}))},{InnerBlocks:ae}=wp.blockEditor,ce=p=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(ae.Content,null)),se={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"}},oe=()=>wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"32",viewBox:"0 0 30 32",fill:"none"},wp.element.createElement("g",{clipPath:"url(#clip0_1688_2013)"},wp.element.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"}),wp.element.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"}),wp.element.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"}),wp.element.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"}),wp.element.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"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.346 22.415V22.083H20.5468V31.9048H20.8779L30.346 22.415Z",fill:"#2653C7"})),wp.element.createElement("defs",null,wp.element.createElement("clipPath",{id:"clip0_1688_2013"},wp.element.createElement("rect",{width:"159",height:"32",fill:"white"})))),{__:y}=wp.i18n,{registerBlockType:re}=wp.blocks;re("fluent-booking/calendar",{apiVersion:3,title:y("FluentBooking Event"),description:y("FluentBooking Event"),category:"widgets",icon:oe,keywords:[y("fluent"),y("fluent booking"),y("calendar"),y("booking")],supports:{align:["wide","full"],html:!0},attributes:se,edit:ne,save:ce})})();