%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/jugement/wp-includes/js/dist/
Upload File :
Create Path :
Current File : /home/emergentqj/jugement/wp-includes/js/dist/block-editor.min.js

/*! This file is auto-generated */
!function(){var e={480:function(e,t,n){"use strict";var r=n(5304)("ArrayBuffer.prototype.byteLength",!0),o=n(4602);e.exports=function(e){return o(e)?r?r(e):e.byteLength:NaN}},5304:function(e,t,n){"use strict";var r=n(3803),o=n(6427),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},6427:function(e,t,n){"use strict";var r=n(7870),o=n(3803),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},3303:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},7870:function(e,t,n){"use strict";var r=n(3303);e.exports=Function.prototype.bind||r},3803:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(8040)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(7870),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},8040:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(9063);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},9063:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6411:function(e,t){var n,r,o;
/*!
	autosize 4.0.4
	license: MIT
	http://www.jacklmoore.com/autosize
*/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&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!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",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),s()}function s(){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),d()}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 p(){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 d(){p();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"),p(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),p(),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 l(e){var t=o.get(e);t&&t.destroy()}function s(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],l),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.default=c,e.exports=t.default},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},4827:function(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()}))]}},2656:function(e,t,n){"use strict";var r=n(8918),o=n(6724),i=n(1642),a=n(3828);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===l&&p?p.enumerable:!l,value:n,writable:null===s&&p?p.writable:!s});else{if(!u&&(l||s||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},1198:function(e,t){"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,a=t.length,l=0,s=0;i<a;i++){var c=t[i];if(c.removed){if(c.value=e.join(r.slice(s,s+c.count)),s+=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 p=n.slice(l,l+c.count);p=p.map((function(e,t){var n=r[s+t];return n.length>e.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(l,l+c.count));l+=c.count,c.added||(s+=c.count)}}var d=t[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[a-2].value+=d.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 l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,c=1,u=l+s,p=[{newPos:-1,components:[]}],d=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=l&&d+1>=s)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=p[n-1],d=p[n+1],f=(d?d.newPos:0)-n;u&&(p[n-1]=void 0);var m=u&&u.newPos+1<l,y=d&&0<=f&&f<s;if(m||y){if(!m||y&&u.newPos<d.newPos?(o={newPos:(g=d).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>=l&&f+1>=s)return a(r(i,o.components,t,e,i.useLongestToken));p[n]=o}else p[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 m=f();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,a=e.newPos,l=a-r,s=0;a+1<o&&l+1<i&&this.equals(t[a+1],n[l+1]);)a++,l++,s++;return s&&e.components.push({count:s}),e.newPos=a,l},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("")}}},1973:function(e,t,n){"use strict";var r;t.Kx=function(e,t,n){return o.diff(e,t,n)};var o=new(((r=n(1198))&&r.__esModule?r:{default:r}).default)},1345:function(e,t,n){"use strict";var r=n(5022);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,l=n.alignWithLeft,s=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,p=n.offsetRight||0;o=void 0===o||o;var d=r.isWindow(t),f=r.offset(e),m=r.outerHeight(e),y=r.outerWidth(e),g=void 0,h=void 0,b=void 0,v=void 0,_=void 0,k=void 0,S=void 0,E=void 0,w=void 0,C=void 0;d?(S=t,C=r.height(S),w=r.width(S),E={left:r.scrollLeft(S),top:r.scrollTop(S)},_={left:f.left-E.left-c,top:f.top-E.top-s},k={left:f.left+y-(E.left+w)+p,top:f.top+m-(E.top+C)+u},v=E):(g=r.offset(t),h=t.clientHeight,b=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},_={left:f.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:f.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},k={left:f.left+y-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+p,top:f.top+m-(g.top+h+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),_.top<0||k.top>0?!0===a?r.scrollTop(t,v.top+_.top):!1===a?r.scrollTop(t,v.top+k.top):_.top<0?r.scrollTop(t,v.top+_.top):r.scrollTop(t,v.top+k.top):i||((a=void 0===a||!!a)?r.scrollTop(t,v.top+_.top):r.scrollTop(t,v.top+k.top)),o&&(_.left<0||k.left>0?!0===l?r.scrollLeft(t,v.left+_.left):!1===l?r.scrollLeft(t,v.left+k.left):_.left<0?r.scrollLeft(t,v.left+_.left):r.scrollLeft(t,v.left+k.left):i||((l=void 0===l||!!l)?r.scrollLeft(t,v.left+_.left):r.scrollLeft(t,v.left+k.left)))}},5425:function(e,t,n){"use strict";e.exports=n(1345)},5022:function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function o(e){return r(e)}function i(e){return r(e,!0)}function a(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=o(r),t.top+=i(r),t}var l=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),s=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",p="left";var d=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function m(e){return"border-box"===d(e,"boxSizing")}"undefined"!=typeof window&&(d=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[c]&&e[c][t];if(l.test(n)&&!s.test(t)){var r=e.style,o=r[p],i=e[u][p];e[u][p]=e[c][p],r[p]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[p]=o,e[u][p]=i}return""===n?"auto":n});var y=["margin","border","padding"],g=-1,h=2,b=1;function v(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var l=void 0;l="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(d(e,l))||0}return r}function _(e){return null!=e&&e==e.window}var k={};function S(e,t,n){if(_(e))return"width"===t?k.viewportWidth(e):k.viewportHeight(e);if(9===e.nodeType)return"width"===t?k.docWidth(e):k.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(d(e),m(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=d(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?b:g);var l=void 0!==o||i,s=o||a;if(n===g)return l?s-v(e,["border","padding"],r):a;if(l){var c=n===h?-v(e,["border"],r):v(e,["margin"],r);return s+(n===b?0:c)}return a+v(e,y.slice(n),r)}f(["Width","Height"],(function(e){k["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],k["viewport"+e](n))},k["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var E={position:"absolute",visibility:"hidden",display:"block"};function w(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=S.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,E,(function(){t=S.apply(void 0,n)})),t}function C(e,t,r){var o=r;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):d(e,t);for(var i in t)t.hasOwnProperty(i)&&C(e,i,t[i])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);k["outer"+t]=function(t,n){return t&&w(t,e,n?0:b)};var n="width"===e?["Left","Right"]:["Top","Bottom"];k[e]=function(t,r){if(void 0===r)return t&&w(t,e,g);if(t){d(t);return m(t)&&(r+=v(t,["padding","border"],n)),C(t,e,r)}}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===C(e,"position")&&(e.style.position="relative");var n=a(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(C(e,i))||0,r[i]=o+t[i]-n[i]);C(e,r)}(e,t)},isWindow:_,each:f,css:C,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(_(e)){if(void 0===t)return o(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(_(e)){if(void 0===t)return i(e);window.scrollTo(o(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},k)},8918:function(e,t,n){"use strict";var r=n(292)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},3592:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},5903:function(e,t,n){"use strict";var r=n(3592);e.exports=Function.prototype.bind||r},292:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(4482)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(5903),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},4482:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(7457);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},7457:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6788:function(e){"use strict";e.exports=EvalError},6716:function(e){"use strict";e.exports=Error},9204:function(e){"use strict";e.exports=RangeError},9908:function(e){"use strict";e.exports=ReferenceError},6724:function(e){"use strict";e.exports=SyntaxError},1642:function(e){"use strict";e.exports=TypeError},1451:function(e){"use strict";e.exports=URIError},7998:function(e,t,n){"use strict";var r=n(1642);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},5249:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(3777),i=n(5443),a=n(8659),l=n(3082);e.exports=function(e){if(o(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=function(e,t){var n=e[t];if(null!=n){if(!i(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(e,Symbol.toPrimitive):l(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var s=t.call(e,n);if(o(s))return s;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||l(e))&&(n="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,l="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<l.length;++a)if(n=e[l[a]],i(n)&&(r=n.call(e),o(r)))return r;throw new TypeError("No default value")}(e,"default"===n?"number":n)}},3777:function(e){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},5619:function(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}},4843:function(e,t,n){"use strict";var r=n(5443),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},3828:function(e,t,n){"use strict";var r=n(2473)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},8819:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},8729:function(e,t,n){"use strict";var r=n(8819);e.exports=Function.prototype.bind||r},2473:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(5810)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(8729),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},5810:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1759);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},1759:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},8198:function(e,t,n){"use strict";var r=n(8918),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},1856:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},9905:function(e,t,n){"use strict";var r=n.g.Symbol,o=n(5682);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5682:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},81:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},4111:function(e,t,n){"use strict";var r=n(81);e.exports=function(){return r()&&!!Symbol.toStringTag}},9429:function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(766);e.exports=i.call(r,o)},2075:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},766:function(e,t,n){"use strict";var r=n(2075);e.exports=Function.prototype.bind||r},8575:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},4602:function(e,t,n){"use strict";var r=n(4374),o=n(7442),i=n(3767)("%ArrayBuffer%",!0),a=o("ArrayBuffer.prototype.byteLength",!0),l=o("Object.prototype.toString"),s=!!i&&!a&&new i(0).slice,c=!!s&&r(s);e.exports=a||c?function(e){if(!e||"object"!=typeof e)return!1;try{return a?a(e):c(e,0),!0}catch(e){return!1}}:i?function(e){return"[object ArrayBuffer]"===l(e)}:function(e){return!1}},7442:function(e,t,n){"use strict";var r=n(3767),o=n(4374),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},4374:function(e,t,n){"use strict";var r=n(7410),o=n(3767),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},1818:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},7410:function(e,t,n){"use strict";var r=n(1818);e.exports=Function.prototype.bind||r},3767:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(6945)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(7410),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},6945:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6992);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6992:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},5443:function(e){"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=o?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(a(e))return!1;var t=l.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},8659:function(e){"use strict";var t=Date.prototype.getDay,n=Object.prototype.toString,r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(r?function(e){try{return t.call(e),!0}catch(e){return!1}}(e):"[object Date]"===n.call(e))}},5604:function(e,t,n){"use strict";var r=n(6131)("SharedArrayBuffer.prototype.byteLength",!0);e.exports=r?function(e){if(!e||"object"!=typeof e)return!1;try{return r(e),!0}catch(e){return!1}}:function(e){return!1}},6131:function(e,t,n){"use strict";var r=n(6254),o=n(7679),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},7679:function(e,t,n){"use strict";var r=n(578),o=n(6254),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},901:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},578:function(e,t,n){"use strict";var r=n(901);e.exports=Function.prototype.bind||r},6254:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(2665)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(578),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},2665:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(2408);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},2408:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3082:function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(9905)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},2527:function(e,t,n){"use strict";var r=n(4010);e.exports=function(e){return!!r(e)}},9894:function(e,t,n){var r=n(4827);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 l=r(e,"font-size");a.style.fontSize=l,a.style.padding="0px",a.style.border="0px";var s=document.body;s.appendChild(a),n=a.offsetHeight,s.removeChild(a)}return n}},7970:function(e,t,n){e.exports=n(195)},3110:function(e){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},3812:function(e){var t,n,r,o,i,a,l,s,c,u,p,d,f,m,y,g=!1;function h(){if(!g){g=!0;var e=navigator.userAgent,h=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),y=/Mobile/i.exec(e),p=!!/Win64/.exec(e),h){(t=h[1]?parseFloat(h[1]):h[5]?parseFloat(h[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);a=v?parseFloat(v[1])+4:t,n=h[2]?parseFloat(h[2]):NaN,r=h[3]?parseFloat(h[3]):NaN,(o=h[4]?parseFloat(h[4]):NaN)?(h=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=h&&h[1]?parseFloat(h[1]):NaN):i=NaN}else t=n=r=i=o=NaN;if(b){if(b[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;s=!!b[2],c=!!b[3]}else l=s=c=!1}}var b={ie:function(){return h()||t},ieCompatibilityMode:function(){return h()||a>t},ie64:function(){return b.ie()&&p},firefox:function(){return h()||n},opera:function(){return h()||r},webkit:function(){return h()||o},safari:function(){return b.webkit()},chrome:function(){return h()||i},windows:function(){return h()||s},osx:function(){return h()||l},linux:function(){return h()||c},iphone:function(){return h()||d},mobile:function(){return h()||d||f||u||y},nativeApp:function(){return h()||m},android:function(){return h()||u},ipad:function(){return h()||f}};e.exports=b},7939:function(e,t,n){"use strict";var r,o=n(3110);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */,e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},195:function(e,t,n){"use strict";var r=n(3812),o=n(7939);function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},8383:function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(4418),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),c=l.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),l=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var m=c&&n;if(l&&e.length>0&&!o.call(e,0))for(var y=0;y<e.length;++y)d.push(String(y));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var h in e)m&&"prototype"===h||!o.call(e,h)||d.push(String(h));if(s)for(var b=function(e){if("undefined"==typeof window||!f)return p(e);try{return p(e)}catch(e){return!1}}(e),v=0;v<u.length;++v)b&&"constructor"===u[v]||!o.call(e,u[v])||d.push(u[v]);return d}}e.exports=r},806:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(4418),i=Object.keys,a=i?function(e){return i(e)}:n(8383),l=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?l(r.call(e)):l(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},4418:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},131:function(e){"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},5372:function(e,t,n){"use strict";var r=n(9567);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}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}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438: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 l=n(9196),s=n(2652),c=n(6411),u=n(9894),p="autosize:resized",d=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(p,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(p,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),s=a(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return l.createElement("textarea",i({},s,{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:s.number,maxRows:s.number,onResize:s.func,innerRef:s.any,async:s.bool},t}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(d,i({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var r=n(5438);t.Z=r.TextareaAutosize},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"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","ß":"ss","Ţ":"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},3002:function(e,t,n){"use strict";var r=n(8024)("%Array.prototype.concat%"),o=n(9386),i=n(3315)("Array.prototype.slice"),a=n(1489)()&&Symbol.isConcatSpreadable,l=[],s=a?o.apply(r,l):null,c=a?n(9277):null;e.exports=a?function(e){for(var t=0;t<arguments.length;t+=1){var n=arguments[t];if(n&&"object"==typeof n&&"boolean"==typeof n[a]){l[a]||(l[a]=!0);var r=c(n)?i(n):[n];r[a]=!0,arguments[t]=r}}return s(arguments)}:o(r,l)},3315:function(e,t,n){"use strict";var r=n(8024),o=n(9386),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},9386:function(e,t,n){"use strict";var r=n(5127),o=n(8024),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},6850:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},5127:function(e,t,n){"use strict";var r=n(6850);e.exports=Function.prototype.bind||r},8024:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(330)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(5127),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},330:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1489);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},1489:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9277:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},1312:function(e,t,n){"use strict";var r=n(2137),o=n(6073),i=r("RegExp.prototype.exec"),a=n(1642);e.exports=function(e){if(!o(e))throw new a("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},2137:function(e,t,n){"use strict";var r=n(5273),o=n(381),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},381:function(e,t,n){"use strict";var r=n(3331),o=n(5273),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},7780:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},3331:function(e,t,n){"use strict";var r=n(7780);e.exports=Function.prototype.bind||r},5273:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(6339)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(3331),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},6339:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6789);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6789:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6073:function(e,t,n){"use strict";var r,o,i,a,l=n(2137),s=n(4111)();if(s){r=l("Object.prototype.hasOwnProperty"),o=l("RegExp.prototype.exec"),i={};var c=function(){throw i};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var u=l("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},4521:function(e,t,n){"use strict";var r=n(1757),o=n(2656),i=n(8198)(),a=n(3828),l=n(1642),s=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new l("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},5371:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},9015:function(e,t,n){"use strict";var r=n(5371);e.exports=Function.prototype.bind||r},1757:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(1207)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(9015),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},1207:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(2326);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},2326:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},5467:function(e,t,n){"use strict";var r=n(7998),o=n(6245),i=n(6907)("String.prototype.replace"),a=/^\s$/.test("᠎"),l=a?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=a?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return i(i(e,l,""),s,"")}},4113:function(e,t,n){"use strict";var r=n(7618),o=n(5213),i=n(7998),a=n(5467),l=n(5626),s=n(1029),c=r(l()),u=function(e){return i(e),c(e)};o(u,{getPolyfill:l,implementation:a,shim:s}),e.exports=u},6907:function(e,t,n){"use strict";var r=n(5037),o=n(7618),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},7618:function(e,t,n){"use strict";var r=n(1769),o=n(5037),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},5213:function(e,t,n){"use strict";var r=n(806),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=n(2656),s=n(8198)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;s?l(e,t,n,!0):l(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)c(e,i[l],t[i[l]],n[i[l]])};u.supportsDescriptors=!!s,e.exports=u},1032:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},1769:function(e,t,n){"use strict";var r=n(1032);e.exports=Function.prototype.bind||r},5037:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(5570)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(1769),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},5570:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5889);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5889:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},5626:function(e,t,n){"use strict";var r=n(5467),o="᠎";e.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&o.trim()===o&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:r}},1029:function(e,t,n){"use strict";var r=n(5213),o=n(5626);e.exports=function(){var e=o();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},3124:function(e,t,n){"use strict";var r=n(4010),o=n(1140),i=n(3828);function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)}var c=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},u=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;function d(e){var t=c(e);if(p)for(var n=p(e),r=0;r<n.length;r++)u.call(e,n[r])&&t.push(n[r]);return t}var f=Object.prototype.hasOwnProperty||function(e,t){return t in e};function m(e,t){if("object"==typeof e&&null!==e){var n;if(l(e))n=[];else if("[object Date]"===a(e))n=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))n=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))n={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e)||function(e){return"[object Number]"===a(e)}(e)||function(e){return"[object String]"===a(e)}(e))n=Object(e);else{if(r(e))return o(e);if(Object.create&&Object.getPrototypeOf)n=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)n={};else{var i=e.constructor&&e.constructor.prototype||e.__proto__||{},u=function(){};u.prototype=i,n=new u}}return s((t.includeSymbols?d:c)(e),(function(t){n[t]=e[t]})),n}return e}var y={__proto__:null};function g(e,t){var n=[],r=[],o=!0,a=arguments.length>2?arguments[2]:y,u=a.includeSymbols?d:c,p=!!a.immutable;return function e(c){var d=p?m(c,a):c,y={},g=!0,h={node:d,node_:c,path:[].concat(n),parent:r[r.length-1],parents:r,key:n[n.length-1],isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(g=!1)},delete:function(e){delete h.parent.node[h.key],e&&(g=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(g=!1)},keys:null,before:function(e){y.before=e},after:function(e){y.after=e},pre:function(e){y.pre=e},post:function(e){y.post=e},stop:function(){o=!1},block:function(){g=!1}};if(!o)return h;function b(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=u(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<r.length;e++)if(r[e].node_===c){h.circular=r[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}b();var v=t.call(h,h.node);return void 0!==v&&h.update&&h.update(v),y.before&&y.before.call(h,h.node),g?("object"!=typeof h.node||null===h.node||h.circular||(r.push(h),b(),s(h.keys,(function(t,r){n.push(t),y.pre&&y.pre.call(h,h.node[t],t);var o=e(h.node[t]);p&&f.call(h.node,t)&&!function(e,t){return"function"!=typeof i||!i(e,t).writable}(h.node,t)&&(h.node[t]=o.node),o.isLast=r===h.keys.length-1,o.isFirst=0===r,y.post&&y.post.call(h,o),n.pop()})),r.pop()),y.after&&y.after.call(h,h.node),h):h}(e).node}function h(e){this.options=arguments.length>1?arguments[1]:y,this.value=e}function b(e){return new h(e,arguments.length>1?arguments[1]:y)}h.prototype.get=function(e){for(var t=this.value,n=0;t&&n<e.length;n++){var r=e[n];if(!f.call(t,r)||!this.options.includeSymbols&&"symbol"==typeof r)return;t=t[r]}return t},h.prototype.has=function(e){for(var t=this.value,n=0;t&&n<e.length;n++){var r=e[n];if(!f.call(t,r)||!this.options.includeSymbols&&"symbol"==typeof r)return!1;t=t[r]}return!0},h.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];f.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},h.prototype.map=function(e){return g(this.value,e,{__proto__:null,immutable:!0,includeSymbols:!!this.options.includeSymbols})},h.prototype.forEach=function(e){return this.value=g(this.value,e,this.options),this.value},h.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},h.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},h.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},h.prototype.clone=function(){var e=[],t=[],n=this.options;return r(this.value)?o(this.value):function r(o){for(var i=0;i<e.length;i++)if(e[i]===o)return t[i];if("object"==typeof o&&null!==o){var a=m(o,n);return e.push(o),t.push(a),s((n.includeSymbols?d:c)(o),(function(e){a[e]=r(o[e])})),e.pop(),t.pop(),a}return o}(this.value)},s(d(h.prototype),(function(e){b[e]=function(t){var n=[].slice.call(arguments,1),r=new h(t);return r[e].apply(r,n)}})),e.exports=b},6740:function(e,t,n){"use strict";var r=n(1642),o=n(6798)("TypedArray.prototype.buffer",!0),i=n(2527);e.exports=o||function(e){if(!i(e))throw new r("Not a Typed Array");return e.buffer}},6798:function(e,t,n){"use strict";var r=n(1634),o=n(8388),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},8388:function(e,t,n){"use strict";var r=n(7715),o=n(1634),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},9003:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},7715:function(e,t,n){"use strict";var r=n(9003);e.exports=Function.prototype.bind||r},1634:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(263)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(7715),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},263:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(9184);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},9184:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7046:function(e,t,n){"use strict";var r=n(4843),o=n(2526),i=n(4343)(),a={},l=n(1856)(),s=n(3828),c=Object.defineProperty;if(s){var u=function(e){return e.byteOffset};r(i,(function(e){if("function"==typeof n.g[e]||"object"==typeof n.g[e]){var t=n.g[e].prototype,r=s(t,"byteOffset");if(!r&&l){var i=t.__proto__;r=s(i,"byteOffset")}if(r&&r.get)a[e]=o(r.get);else if(c){var p=new n.g[e](2);(r=s(p,"byteOffset"))&&r.configurable&&c(p,"length",{value:3}),2===p.length&&(a[e]=u)}}}))}var p=n(2527);e.exports=function(e){return!!p(e)&&function(e){var t;return r(a,(function(n){if("number"!=typeof t)try{var r=n(e);"number"==typeof r&&(t=r)}catch(e){}})),t}(e)}},2526:function(e,t,n){"use strict";var r=n(1530),o=n(3699),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},1609:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},1530:function(e,t,n){"use strict";var r=n(1609);e.exports=Function.prototype.bind||r},3699:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(5162)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(1530),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},5162:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(3903);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},3903:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},8150:function(e,t,n){"use strict";var r=n(4888),o=n(4843),i=n(3828),a=n(1856)(),l=n(2527),s=n(131),c={__proto__:null},u=Object.defineProperty;if(i){var p=function(e){return e.length};o(s,(function(e){var t=n.g[e];if("function"==typeof t||"object"==typeof t){var o=t.prototype,l=i(o,"length");if(!l&&a){var s=o.__proto__;l=i(s,"length")}if(l&&l.get)c["$"+e]=r(l.get);else if(u){var d=new n.g[e](2);(l=i(d,"length"))&&l.configurable&&u(d,"length",{value:3}),2===d.length&&(c["$"+e]=p)}}}))}e.exports=function(e){return!!l(e)&&function(e){var t;return o(c,(function(n){if("number"!=typeof t)try{var r=n(e);"number"==typeof r&&(t=r)}catch(e){}})),t}(e)}},4888:function(e,t,n){"use strict";var r=n(3576),o=n(8031),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},7380:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},3576:function(e,t,n){"use strict";var r=n(7380);e.exports=Function.prototype.bind||r},8031:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(307)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(3576),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},307:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1766);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},1766:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},4073:function(e,t,n){"use strict";var r=n(1642),o=n(3675),i=n(9661),a=n(1320),l=n(1367),s=n(2967),c=n(8055),u=n(3383),p=n(2897),d=n(7249),f=n(9149),m=n(1586),y=n(817),g=n(3842),h=n(6740),b=n(7046);e.exports=function(e,t){var n=this;g(n,"SEQ-CST");var v,_=n.length,k=p(e);v=k===-1/0?0:k<0?l(_+k,0):s(k,_);var S,E=void 0===t?_:p(t);S=E===-1/0?0:E<0?l(_+E,0):s(E,_);var w=l(S-v,0),C=y(n,[w]);if(w>0){if(a(h(n)))throw new r("Cannot use a Typed Array with an underlying ArrayBuffer that is detached");if(m(n)===m(C))for(var x=h(n),I=h(C),A=f(n),B=v*A+b(n),P=b(C),T=P+w*A;P<T;){var O=i(x,B,"UINT8",!0,"UNORDERED");u(I,P,"UINT8",O,!0,"UNORDERED"),B+=1,P+=1}else for(var M=0;v<S;){var R=d(v),N=o(n,R);c(C,d(M),N,!0),v+=1,M+=1}}return C}},1140:function(e,t,n){"use strict";var r=n(6776),o=n(8374),i=n(4073),a=n(5046),l=n(8564),s=o(a());r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},1154:function(e,t,n){"use strict";var r=n(682),o=n(8374),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},8374:function(e,t,n){"use strict";var r=n(8474),o=n(682),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},6776:function(e,t,n){"use strict";var r=n(806),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=n(2656),s=n(8198)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;s?l(e,t,n,!0):l(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)c(e,i[l],t[i[l]],n[i[l]])};u.supportsDescriptors=!!s,e.exports=u},2855:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},8474:function(e,t,n){"use strict";var r=n(2855);e.exports=Function.prototype.bind||r},682:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(5314)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(8474),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},5314:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6188);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6188:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6841:function(e){"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},l=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var d=document.all;s.call(d)===s.call(document.all)&&(p=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&l(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return l(e);if(a(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},5726:function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&s&&"function"==typeof s.get?s.get:null,u=l&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,y=Object.prototype.toString,g=Function.prototype.toString,h=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,k=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,w=Array.prototype.join,C=Array.prototype.slice,x=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-x(-e):x(e);if(r!==e){var o=String(r),i=b.call(t,o.length+1);return v.call(o,n,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var N=n(5794),F=N.custom,L=V(F)?F:null;function D(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return v.call(String(e),/"/g,"&quot;")}function j(e){return!("[object Array]"!==$(e)||T&&"object"==typeof e&&T in e)}function z(e){return!("[object RegExp]"!==$(e)||T&&"object"==typeof e&&T in e)}function V(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!B)return!1;try{return B.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,l){var s=r||{};if(H(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!H(s,"customInspect")||s.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return _?R(t,S):S}if("bigint"==typeof t){var x=String(t)+"n";return _?R(t,x):x}var A=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=A&&A>0&&"object"==typeof t)return j(t)?"[Array]":"[Object]";var F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=w.call(Array(e.indent+1)," ")}return{base:n,prev:w.call(Array(t+1),n)}}(s,o);if(void 0===l)l=[];else if(W(l,t)>=0)return"[Circular]";function G(t,n,r){if(n&&(l=C.call(l)).push(n),r){var i={depth:s.depth};return H(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),e(t,i,o+1,l)}return e(t,s,o+1,l)}if("function"==typeof t&&!z(t)){var q=function(e){if(e.name)return e.name;var t=h.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,G);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(ee.length>0?" { "+w.call(ee,", ")+" }":"")}if(V(t)){var te=P?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):B.call(t);return"object"!=typeof t||P?te:J(te)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+k.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+D(U(re[oe].value),"double",s);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+k.call(String(t.nodeName))+">"}if(j(t)){if(0===t.length)return"[]";var ie=X(t,G);return F&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,F)+"]":"[ "+w.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||T&&"object"==typeof e&&T in e)}(t)){var ae=X(t,G);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+w.call(ae,", ")+" }":"{ ["+String(t)+"] "+w.call(E.call("[cause]: "+G(t.cause),ae),", ")+" }"}if("object"==typeof t&&y){if(L&&"function"==typeof t[L]&&N)return N(t,{depth:A-o});if("symbol"!==y&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(G(n,t,!0)+" => "+G(e,t))})),Y("Map",i.call(t),le,F)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(G(e,t))})),Y("Set",c.call(t),se,F)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==$(e)||T&&"object"==typeof e&&T in e)}(t))return J(G(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return J(G(I.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||T&&"object"==typeof e&&T in e)}(t))return J(m.call(t));if(function(e){return!("[object String]"!==$(e)||T&&"object"==typeof e&&T in e)}(t))return J(G(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==$(e)||T&&"object"==typeof e&&T in e)}(t)&&!z(t)){var ce=X(t,G),ue=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",de=!ue&&T&&Object(t)===t&&T in t?b.call($(t),8,-1):pe?"Object":"",fe=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||pe?"["+w.call(E.call([],de||[],pe||[]),": ")+"] ":"");return 0===ce.length?fe+"{}":F?fe+"{"+Q(ce,F)+"}":fe+"{ "+w.call(ce,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return G.call(e,t)}function $(e){return y.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(b.call(e,0,t.maxStringLength),t)+r}return D(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):w.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+w.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=j(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=H(e,o)?t(e[o],e):""}var i,a="function"==typeof A?A(e):[];if(P){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var s in e)H(e,s)&&(n&&String(Number(s))===s&&s<e.length||P&&i["$"+s]instanceof Symbol||(S.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof A)for(var c=0;c<a.length;c++)O.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},5046:function(e,t,n){"use strict";var r=n(4073);e.exports=function(){return"function"==typeof Uint8Array&&Uint8Array.prototype.slice||r}},8564:function(e,t,n){"use strict";var r=n(6776),o=n(9495),i=n(5046);e.exports=function(){if("function"==typeof Uint8Array){var e=i(),t=o(Uint8Array.prototype);r(t,{slice:e},{slice:function(){return t.slice!==e}})}return e}},4010:function(e,t,n){"use strict";var r=n(4843),o=n(4343),i=n(4899),a=n(7120),l=n(3828),s=a("Object.prototype.toString"),c=n(4111)(),u="undefined"==typeof globalThis?n.g:globalThis,p=o(),d=a("String.prototype.slice"),f=Object.getPrototypeOf,m=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},y={__proto__:null};r(p,c&&l&&f?function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=f(t),r=l(n,Symbol.toStringTag);if(!r){var o=f(n);r=l(o,Symbol.toStringTag)}y["$"+e]=i(r.get)}}:function(e){var t=new u[e],n=t.slice||t.set;n&&(y["$"+e]=i(n))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=d(s(e),8,-1);return m(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(y,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return l?function(e){var t=!1;return r(y,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}},7120:function(e,t,n){"use strict";var r=n(6883),o=n(4899),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},4899:function(e,t,n){"use strict";var r=n(7961),o=n(6883),i=n(4521),a=n(1642),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,l),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(r,s,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,l,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},7562:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),l=n(0,o.length-a.length),s=[],c=0;c<l;c++)s[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},7961:function(e,t,n){"use strict";var r=n(7562);e.exports=Function.prototype.bind||r},6883:function(e,t,n){"use strict";var r,o=n(6716),i=n(6788),a=n(9204),l=n(9908),s=n(6724),c=n(1642),u=n(1451),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},y=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,g=n(8861)(),h=n(1856)(),b=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":y,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(e){var S=b(b(e));k["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(n=b(o.prototype))}return k[t]=n,n},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=n(7961),x=n(9429),I=C.call(Function.call,Array.prototype.concat),A=C.call(Function.apply,Array.prototype.splice),B=C.call(Function.call,String.prototype.replace),P=C.call(Function.call,String.prototype.slice),T=C.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,R=function(e,t){var n,r=e;if(x(w,r)&&(r="%"+(n=w[r])[0]+"%"),x(k,r)){var o=k[r];if(o===v&&(o=E(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return B(e,O,(function(e,t,n,o){r[r.length]=n?B(o,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),i=o.name,a=o.value,l=!1,u=o.alias;u&&(r=u[0],A(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var m=n[p],y=P(m,0,1),g=P(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&d||(l=!0),x(k,i="%"+(r+="."+m)+"%"))a=k[i];else if(null!=a){if(!(m in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var h=f(a,m);a=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[m]}else d=x(a,m),a=a[m];d&&!l&&(k[i]=a)}}return a}},8861:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(704);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},704:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9196:function(e){"use strict";e.exports=window.React},5794:function(){},4343:function(e,t,n){"use strict";var r=n(131),o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},7153:function(e,t){var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6245:function(e,t,n){"use strict";var r=n(5037)("%String%"),o=n(1642);e.exports=function(e){if("symbol"==typeof e)throw new o("Cannot convert a Symbol value to a string");return r(e)}},2981:function(e,t,n){"use strict";var r=n(1642),o=n(1320),i=n(4602),a=n(5604),l=n(480);e.exports=function(e,t){var n=a(e);if(!i(e)&&!n)throw new r("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if("SEQ-CST"!==t&&"UNORDERED"!==t)throw new r("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");if(o(e))throw new r("Assertion failed: `arrayBuffer` must not be detached");return l(e)}},6548:function(e,t,n){"use strict";var r=n(682)("%BigInt%",!0),o=n(9204),i=n(1642),a=r&&r(0);e.exports=function(e,t){if("bigint"!=typeof e||"bigint"!=typeof t)throw new i("Assertion failed: `n` and `d` arguments must be BigInts");if(t===a)throw new o("Division by zero");return e===a?a:e%t}},9002:function(e,t,n){"use strict";var r=n(1642),o=n(6862),i=n(208),a=n(8367),l=n(4065),s=n(9762),c=n(3392),u=n(8110),p=n(9655);e.exports=function(e,t,n){if("Object"!==p(e))throw new r("Assertion failed: Type(O) is not Object");if(!s(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var d=o(n)?n:u(n);if(!o(d))throw new r("Assertion failed: Desc is not a valid Property Descriptor");return i(l,c,a,e,t,d)}},8367:function(e,t,n){"use strict";var r=n(1642),o=n(6862),i=n(2646);e.exports=function(e){if(void 0!==e&&!o(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return i(e)}},3675:function(e,t,n){"use strict";var r=n(1642),o=n(5726),i=n(9762),a=n(9655);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},9661:function(e,t,n){"use strict";var r=n(682),o=n(6724),i=n(1642),a=r("%Uint8Array%",!0),l=n(1154)("Array.prototype.slice"),s=n(6156),c=n(1320),u=n(9219),p=n(4602),d=n(5604),f=n(3002),m=n(2170),y=n(2142);e.exports=function(e,t,n,r,g){var h=d(e);if(!p(e)&&!h)throw new i("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if(!s(t))throw new i("Assertion failed: `byteIndex` must be an integer");if("string"!=typeof n||"number"!=typeof m.size["$"+n])throw new i("Assertion failed: `type` must be a Typed Array element type");if("boolean"!=typeof r)throw new i("Assertion failed: `isTypedArray` must be a boolean");if("SEQ-CST"!==g&&"UNORDERED"!==g)throw new i("Assertion failed: `order` must be either `SEQ-CST` or `UNORDERED`");if(arguments.length>5&&"boolean"!=typeof arguments[5])throw new i("Assertion failed: `isLittleEndian` must be a boolean, if present");if(c(e))throw new i("Assertion failed: `arrayBuffer` is detached");if(t<0)throw new i("Assertion failed: `byteIndex` must be non-negative");var b,v=m.size["$"+n];if(!v)throw new i('Assertion failed: `type` must be one of "INT8", "UINT8", "UINT8C", "INT16", "UINT16", "INT32", "UINT32", "BIGINT64", "BIGUINT64", "FLOAT32", or "FLOAT64"');if(h)throw new o("SharedArrayBuffer is not supported by this implementation");b=l(new a(e,t),0,v);var _=arguments.length>5?arguments[5]:"little"===y,k=_?l(f([0,0,0,0,0,0,0,0],b),-v):l(f(b,[0,0,0,0,0,0,0,0]),0,v);return u(n,k,_)}},5584:function(e,t,n){"use strict";var r=n(1642),o=n(9429),i=n(9762),a=n(9655);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: `O` must be an Object");if(!i(t))throw new r("Assertion failed: `P` must be a Property Key");return o(e,t)}},2985:function(e,t,n){"use strict";e.exports=n(692)},4734:function(e){"use strict";e.exports=function(e){return"BIGUINT64"===e||"BIGINT64"===e}},3071:function(e,t,n){"use strict";e.exports=n(6841)},7010:function(e,t,n){"use strict";var r=n(4342)("%Reflect.construct%",!0),o=n(9002);try{o({},"",{"[[Get]]":function(){}})}catch(e){o=null}if(o&&r){var i={},a={};o(a,"length",{"[[Get]]":function(){throw i},"[[Enumerable]]":!0}),e.exports=function(e){try{r(e,a)}catch(e){return e===i}}}else e.exports=function(e){return"function"==typeof e&&!!e.prototype}},4065:function(e,t,n){"use strict";var r=n(1642),o=n(9429),i=n(6862);e.exports=function(e){if(void 0===e)return!1;if(!i(e))throw new r("Assertion failed: `Desc` must be a Property Descriptor");return!(!o(e,"[[Value]]")&&!o(e,"[[Writable]]"))}},1320:function(e,t,n){"use strict";var r=n(1642),o=n(480),i=n(4343)(),a=n(1154),l=n(4602),s=n(5604),c=a("SharedArrayBuffer.prototype.byteLength",!0);e.exports=function(e){var t=s(e);if(!l(e)&&!t)throw new r("Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot");if(0===(t?c:o)(e))try{new n.g[i[0]](e)}catch(e){return!!e&&"TypeError"===e.name}return!1}},9442:function(e,t,n){"use strict";var r=n(1642),o=n(1154),i=o("%ArrayBuffer.prototype.resizable%",!0),a=o("%SharedArrayBuffer.prototype.growable%",!0),l=n(4602),s=n(5604);e.exports=function(e){var t=l(e),n=s(e);if(!t&&!n)throw new r("Assertion failed: `arrayBuffer` must be an ArrayBuffer or SharedArrayBuffer");return t&&i?!i(e):!n||!a||!a(e)}},9762:function(e){"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},9954:function(e,t,n){"use strict";var r=n(1642),o=n(1320),i=n(9149),a=n(359),l=n(6740),s=n(7046),c=n(8150);e.exports=function(e){if(!a(e))throw new r("Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record");var t=e["[[Object]]"],n=e["[[CachedBufferByteLength]]"];if(o(l(t))&&"DETACHED"!==n)throw new r("Assertion failed: typed array is detached only if the byte length is ~DETACHED~");if("DETACHED"===n)return!0;var u,p=s(t),d=c(t);"AUTO"===d?u=n:u=p+d*i(t);return p>n||u>n}},7551:function(e){"use strict";e.exports=function(e){return"UINT8"===e||"UINT8C"===e||"UINT16"===e||"UINT32"===e||"BIGUINT64"===e}},6005:function(e,t,n){"use strict";var r=n(1642),o=n(2981),i=n(1320),a=n(2527),l=n(6740);e.exports=function(e,t){if(!a(e))throw new r("Assertion failed: `obj` must be a Typed Array");if("SEQ-CST"!==t&&"UNORDERED"!==t)throw new r("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");var n=l(e);return{"[[Object]]":e,"[[CachedBufferByteLength]]":i(n)?"DETACHED":o(n,t)}}},4604:function(e,t,n){"use strict";var r=n(1642),o=n(5584),i=n(1242),a=n(2947),l=n(3181),s=n(2587),c=n(5562),u=n(5465),p=n(5964),d=n(9496),f=n(6550),m=n(3647),y=n(7511),g=n(1520),h=n(806),b={__proto__:null,INT8:1,UINT8:1,UINT8C:1,INT16:2,UINT16:2,INT32:4,UINT32:4,BIGINT64:8,BIGUINT64:8,FLOAT32:4,FLOAT64:8},v={__proto__:null,INT8:c,UINT8:d,UINT8C:f,INT16:l,UINT16:u,INT32:s,UINT32:p,BIGINT64:i,BIGUINT64:a};e.exports=function(e,t,n){if("string"!=typeof e||!o(b,e))throw new r("Assertion failed: `type` must be a TypedArray element type: "+h(b));if("number"!=typeof t&&"bigint"!=typeof t)throw new r("Assertion failed: `value` must be a Number or a BigInt");if("boolean"!=typeof n)throw new r("Assertion failed: `isLittleEndian` must be a Boolean");if("FLOAT32"===e)return m(t,n);if("FLOAT64"===e)return y(t,n);var i=b[e],a=(0,v[e])(t);return g(a,i,n)}},9219:function(e,t,n){"use strict";var r=n(682),o=n(1154),i=n(9204),a=n(6724),l=n(1642),s=r("%BigInt%",!0),c=n(5584),u=n(2985),p=n(4734),d=n(7551),f=n(8727),m=n(7604),y=n(2367),g=n(8172),h=n(1824),b=o("Array.prototype.reverse"),v=o("Array.prototype.slice"),_=n(806),k={__proto__:null,INT8:1,UINT8:1,UINT8C:1,INT16:2,UINT16:2,INT32:4,UINT32:4,BIGINT64:8,BIGUINT64:8,FLOAT32:4,FLOAT64:8};e.exports=function(e,t,n){if(!c(k,e))throw new l("Assertion failed: `type` must be a TypedArray element type: "+_(k));if(!u(t)||!g(t,h))throw new l("Assertion failed: `rawBytes` must be an Array of bytes");if("boolean"!=typeof n)throw new l("Assertion failed: `isLittleEndian` must be a Boolean");var r=k[e];if(t.length!==r)throw new i("Assertion failed: `rawBytes` must have a length of "+r+" for type "+e);var o=p(e);if(o&&!s)throw new a("this environment does not support BigInts");return t=v(t,0,r),n||b(t),"FLOAT32"===e?f(t):"FLOAT64"===e?m(t):y(t,r,d(e),o)}},3392:function(e,t,n){"use strict";var r=n(9404);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},8055:function(e,t,n){"use strict";var r=n(1642),o=n(9762),i=n(3392),a=n(9655),l=function(){try{return delete[].length,!0}catch(e){return!1}}();e.exports=function(e,t,n,s){if("Object"!==a(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");if("boolean"!=typeof s)throw new r("Assertion failed: `Throw` must be a Boolean");if(s){if(e[t]=n,l&&!i(e[t],n))throw new r("Attempted to assign to readonly property.");return!0}try{return e[t]=n,!l||i(e[t],n)}catch(e){return!1}}},3383:function(e,t,n){"use strict";var r=n(682),o=n(6724),i=n(1642),a=r("%Uint8Array%",!0),l=n(6156),s=n(4734),c=n(1320),u=n(4604),p=n(4602),d=n(5604),f=n(9429),m=n(2170),y=n(2142),g=n(9065);e.exports=function(e,t,n,r,h,b){var v=d(e);if(!p(e)&&!v)throw new i("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if(!l(t)||t<0)throw new i("Assertion failed: `byteIndex` must be a non-negative integer");if("string"!=typeof n||!f(m.size,"$"+n))throw new i("Assertion failed: `type` must be a Typed Array Element Type");if("number"!=typeof r&&"bigint"!=typeof r)throw new i("Assertion failed: `value` must be a Number or a BigInt");if("boolean"!=typeof h)throw new i("Assertion failed: `isTypedArray` must be a boolean");if("SEQ-CST"!==b&&"UNORDERED"!==b&&"INIT"!==b)throw new i('Assertion failed: `order` must be `"SEQ-CST"`, `"UNORDERED"`, or `"INIT"`');if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("Assertion failed: `isLittleEndian` must be a boolean, if present");if(c(e))throw new i("Assertion failed: ArrayBuffer is detached");if(s(n)?"bigint"!=typeof r:"number"!=typeof r)throw new i("Assertion failed: `value` must be a BigInt if type is ~BIGINT64~ or ~BIGUINT64~, otherwise a Number");var _=m.size["$"+n],k=u(n,r,arguments.length>6?arguments[6]:"little"===y);if(v)throw new o("SharedArrayBuffer is not supported by this implementation");var S=new a(e,t,_);g(k,(function(e,t){S[t]=e}))}},5994:function(e,t,n){"use strict";var r=n(682)("%Symbol.species%",!0),o=n(1642),i=n(7010),a=n(9655);e.exports=function(e,t){if("Object"!==a(e))throw new o("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==a(n))throw new o("O.constructor is not an Object");var l=r?n[r]:void 0;if(null==l)return t;if(i(l))return l;throw new o("no constructor found")}},907:function(e,t,n){"use strict";var r=n(682)("%BigInt%",!0),o=n(1642),i=n(6724);e.exports=function(e){if("string"!=typeof e)throw new o("`argument` must be a string");if(!r)throw new i("BigInts are not supported in this environment");try{return r(e)}catch(e){return}}},4967:function(e,t,n){"use strict";var r=n(682),o=r("%Number%"),i=r("%RegExp%"),a=n(1642),l=r("%parseInt%"),s=n(1154),c=n(1312),u=s("String.prototype.slice"),p=c(/^0b[01]+$/i),d=c(/^0o[0-7]+$/i),f=c(/^[-+]0x[0-9a-f]+$/i),m=c(new i("["+["…","​","￾"].join("")+"]","g")),y=n(4113);e.exports=function e(t){if("string"!=typeof t)throw new a("Assertion failed: `argument` is not a String");if(p(t))return o(l(u(t,2),2));if(d(t))return o(l(u(t,2),8));if(m(t)||f(t))return NaN;var n=y(t);return n!==t?e(n):o(t)}},9752:function(e,t,n){"use strict";var r=n(682),o=r("%BigInt%",!0),i=r("%Number%"),a=n(1642),l=n(6724),s=n(907),c=n(210);e.exports=function(e){if(!o)throw new l("BigInts are not supported in this environment");var t=c(e,i);if(null==t)throw new a("Cannot convert null or undefined to a BigInt");if("boolean"==typeof t)return o(t?1:0);if("number"==typeof t)throw new a("Cannot convert a Number value to a BigInt");if("string"==typeof t){var n=s(t);if(void 0===n)throw new a("Failed to parse String to BigInt");return n}if("symbol"==typeof t)throw new a("Cannot convert a Symbol value to a BigInt");if("bigint"!=typeof t)throw new l("Assertion failed: unknown primitive type");return t}},1242:function(e,t,n){"use strict";var r=n(682),o=r("%BigInt%",!0),i=r("%Math.pow%"),a=n(9752),l=n(6548),s=n(8626),c=o&&BigInt(i(2,32))*BigInt(i(2,31)),u=o&&BigInt(i(2,32))*BigInt(i(2,32));e.exports=function(e){var t=a(e),n=s(l,t,u);return n>=c?n-u:n}},2947:function(e,t,n){"use strict";var r=n(682),o=r("%BigInt%",!0),i=r("%Math.pow%"),a=n(9752),l=n(6548),s=n(8626),c=o&&BigInt(i(2,32))*BigInt(i(2,32));e.exports=function(e){var t=a(e);return s(l,t,c)}},6440:function(e){"use strict";e.exports=function(e){return!!e}},3181:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),a=n(7991);e.exports=function(e){var t=o(e);if(!a(t)||0===t)return 0;var n=i(t),l=r(n,65536);return l>=32768?l-65536:l}},2587:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),a=n(7991),l=4294967296;e.exports=function(e){var t=o(e);if(!a(t)||0===t)return 0;var n=i(t),s=r(n,l),c=s>=2147483648?s-l:s;return 0===c?0:c}},5562:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),a=n(7991);e.exports=function(e){var t=o(e);if(!a(t)||0===t)return 0;var n=i(t),l=r(n,256);return l>=128?l-256:l}},2897:function(e,t,n){"use strict";var r=n(3438),o=n(736),i=n(9404),a=n(7991);e.exports=function(e){var t=r(e);return i(t)||0===t?0:a(t)?o(t):t}},3438:function(e,t,n){"use strict";var r=n(682),o=n(1642),i=r("%Number%"),a=n(4968),l=n(210),s=n(4967);e.exports=function(e){var t=a(e)?e:l(e,i);if("symbol"==typeof t)throw new o("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new o("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?s(t):i(t)}},210:function(e,t,n){"use strict";var r=n(5249);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},8110:function(e,t,n){"use strict";var r=n(9429),o=n(1642),i=n(9655),a=n(6440),l=n(3071);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!l(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!l(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},7249:function(e,t,n){"use strict";var r=n(682)("%String%"),o=n(1642);e.exports=function(e){if("symbol"==typeof e)throw new o("Cannot convert a Symbol value to a string");return r(e)}},5465:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),a=n(7991);e.exports=function(e){var t=o(e);if(!a(t)||0===t)return 0;var n=i(t),l=r(n,65536);return 0===l?0:l}},5964:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),a=n(7991);e.exports=function(e){var t=o(e);if(!a(t)||0===t)return 0;var n=i(t),l=r(n,4294967296);return 0===l?0:l}},9496:function(e,t,n){"use strict";var r=n(7991),o=n(8457),i=n(3438),a=n(736);e.exports=function(e){var t=i(e);if(!r(t)||0===t)return 0;var n=a(t);return o(n,256)}},6550:function(e,t,n){"use strict";var r=n(3832),o=n(3438),i=n(3473),a=n(9404);e.exports=function(e){var t=o(e);if(a(t))return 0;var n=r(t,0,255),l=i(n);return n<l+.5?l:n>l+.5?l+1:l%2==0?l:l+1}},9655:function(e,t,n){"use strict";var r=n(1528);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},7265:function(e,t,n){"use strict";var r=n(6724),o=n(1642),i=n(2985),a=n(7010),l=n(9954),s=n(8921),c=n(3842),u=n(4343)();e.exports=function(e,t){if(!a(e))throw new o("Assertion failed: `constructor` must be a constructor");if(!i(t))throw new o("Assertion failed: `argumentList` must be a List");if(0===u.length)throw new r("Assertion failed: Typed Arrays are not supported in this environment");var n;n=0===t.length?new e:1===t.length?new e(t[0]):2===t.length?new e(t[0],t[1]):new e(t[0],t[1],t[2]);var p=c(n,"SEQ-CST");if(1===t.length&&"number"==typeof t[0]){if(l(p))throw new o("new Typed Array is out of bounds");if(s(p)<t[0])throw new o("`argumentList[0]` must be <= `newTypedArray.length`")}return n}},9149:function(e,t,n){"use strict";var r=n(6724),o=n(1642),i=n(6156),a=n(4010),l=n(2170);e.exports=function(e){var t=a(e);if(!1===t)throw new o("Assertion failed: `O` must be a TypedArray");var n=l.size["$"+l.name["$"+t]];if(!i(n)||n<0)throw new r("Assertion failed: Unknown TypedArray type `"+t+"`");return n}},1586:function(e,t,n){"use strict";var r=n(6724),o=n(1642),i=n(4010),a=n(2170);e.exports=function(e){var t=i(e);if(!1===t)throw new o("Assertion failed: `O` must be a TypedArray");var n=a.name["$"+t];if("string"!=typeof n)throw new r("Assertion failed: Unknown TypedArray type `"+t+"`");return n}},8921:function(e,t,n){"use strict";var r=n(1642),o=n(3473),i=n(9442),a=n(9954),l=n(9149),s=n(359),c=n(6740),u=n(7046),p=n(8150);e.exports=function(e){if(!s(e))throw new r("Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record");if(a(e))throw new r("Assertion failed: `taRecord` is out of bounds");var t=e["[[Object]]"],n=p(t);if("AUTO"!==n)return n;if(i(c(t)))throw new r("Assertion failed: array buffer is not fixed length");var d=u(t),f=l(t),m=e["[[CachedBufferByteLength]]"];if("DETACHED"===m)throw new r("Assertion failed: typed array is detached");return o((m-d)/f)}},817:function(e,t,n){"use strict";var r=n(6724),o=n(1642),i=n(4010),a=n(4343)(),l=n(2985),s=n(5994),c=n(7265),u=n(9660);e.exports=function(e,t){if(0===a.length)throw new r("Assertion failed: Typed Arrays are not supported in this environment");var n=i(e);if(!n)throw new o("Assertion failed: exemplar must be a TypedArray");if(!l(t))throw new o("Assertion failed: `argumentList` must be a List");var p=u(n);if("function"!=typeof p)throw new r("Assertion failed: `constructor` of `exemplar` ("+n+") must exist. Please report this!");var d=s(e,p);return c(d,t)}},3842:function(e,t,n){"use strict";var r=n(1642),o=n(9954),i=n(6005),a=n(9655),l=n(2527);e.exports=function(e,t){if("SEQ-CST"!==t&&"UNORDERED"!==t)throw new r("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");if("Object"!==a(e))throw new r("Assertion failed: `O` must be an Object");if(!l(e))throw new r("Assertion failed: `O` must be a Typed Array");var n=i(e,t);if(o(n))throw new r("`O` must be in-bounds and backed by a non-detached buffer");return n}},3832:function(e,t,n){"use strict";var r=n(682),o=n(1642),i=r("%Math.max%"),a=r("%Math.min%");e.exports=function(e,t,n){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof n||!(t<=n))throw new o("Assertion failed: all three arguments must be MVs, and `lower` must be `<= upper`");return a(i(t,e),n)}},3473:function(e){"use strict";var t=Math.floor;e.exports=function(e){return"bigint"==typeof e?e:t(e)}},1367:function(e,t,n){"use strict";var r=n(682);e.exports=r("%Math.max%")},2967:function(e,t,n){"use strict";var r=n(682);e.exports=r("%Math.min%")},8457:function(e,t,n){"use strict";var r=n(2076);e.exports=function(e,t){return r(e,t)}},2170:function(e){"use strict";e.exports={__proto__:null,name:{__proto__:null,$Int8Array:"INT8",$Uint8Array:"UINT8",$Uint8ClampedArray:"UINT8C",$Int16Array:"INT16",$Uint16Array:"UINT16",$Int32Array:"INT32",$Uint32Array:"UINT32",$BigInt64Array:"BIGINT64",$BigUint64Array:"BIGUINT64",$Float32Array:"FLOAT32",$Float64Array:"FLOAT64"},size:{__proto__:null,$INT8:1,$UINT8:1,$UINT8C:1,$INT16:2,$UINT16:2,$INT32:4,$UINT32:4,$BIGINT64:8,$BIGUINT64:8,$FLOAT32:4,$FLOAT64:8}}},736:function(e,t,n){"use strict";var r=n(3473),o=n(1642);e.exports=function(e){if("number"!=typeof e&&"bigint"!=typeof e)throw new o("argument must be a Number or a BigInt");var t=e<0?-r(-e):r(e);return 0===t?0:t}},1528:function(e){"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},4342:function(e,t,n){"use strict";e.exports=n(682)},208:function(e,t,n){"use strict";var r=n(8198),o=n(8918),i=r.hasArrayLengthDefineBug(),a=i&&n(692),l=n(1154)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,r,s,c){if(!o){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(s in r&&l(r,s)!==!!c["[[Enumerable]]"])return!1;var u=c["[[Value]]"];return r[s]=u,t(r[s],u)}return i&&"length"===s&&"[[Value]]"in c&&a(r)&&r.length!==c["[[Value]]"]?(r.length=c["[[Value]]"],r.length===c["[[Value]]"]):(o(r,s,n(c)),!0)}},692:function(e,t,n){"use strict";var r=n(682)("%Array%"),o=!r.isArray&&n(1154)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===o(e)}},8727:function(e,t,n){"use strict";var r=n(682)("%Math.pow%");e.exports=function(e){var t=128&e[3]?-1:1,n=(127&e[3])<<1|e[2]>>7,o=(127&e[2])<<16|e[1]<<8|e[0];return 0===n&&0===o?1===t?0:-0:255===n&&0===o?1===t?1/0:-1/0:255===n&&0!==o?NaN:-127===(n-=127)?t*o*r(2,-149):t*(1+o*r(2,-23))*r(2,n)}},7604:function(e,t,n){"use strict";var r=n(682)("%Math.pow%");e.exports=function(e){var t=128&e[7]?-1:1,n=(127&e[7])<<4|(240&e[6])>>4,o=281474976710656*(15&e[6])+1099511627776*e[5]+4294967296*e[4]+16777216*e[3]+65536*e[2]+256*e[1]+e[0];return 0===n&&0===o?0*t:2047===n&&0!==o?NaN:2047===n&&0===o?t*(1/0):-1023===(n-=1023)?t*o*5e-324:t*(1+o/4503599627370496)*r(2,n)}},2367:function(e,t,n){"use strict";var r=n(682),o=r("%Math.pow%"),i=r("%Number%"),a=r("%BigInt%",!0);e.exports=function(e,t,n,r){for(var l=r?a:i,s=l(0),c=0;c<e.length;c++)s+=l(e[c]*o(2,8*c));if(!n){var u=8*t;128&e[t-1]&&(s-=l(o(2,u)))}return s}},2142:function(e,t,n){"use strict";var r=n(682),o=r("%Uint8Array%",!0),i=r("%Uint32Array%",!0),a=n(6740),l=i&&new i([305419896]),s=l&&new o(a(l));e.exports=s?120===s[0]?"little":18===s[0]?"big":52===s[0]?"mixed":"unknown":"indeterminate"},8172:function(e){"use strict";e.exports=function(e,t){for(var n=0;n<e.length;n+=1)if(!t(e[n],n,e))return!1;return!0}},9065:function(e){"use strict";e.exports=function(e,t){for(var n=0;n<e.length;n+=1)t(e[n],n,e)}},1211:function(e){"use strict";var t=1075;e.exports=function(e){var n="";if(0===e)return n;for(var r,o=t,i=0;i<t;i+=1)if((r=2*e)>=1?(e=r-1,n+="1",o===t&&(o=i)):(e=r,n+="0"),1===r||i-o>54)return n;return n}},2646:function(e){"use strict";e.exports=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},9495:function(e,t,n){"use strict";var r=n(682)("%Object.getPrototypeOf%",!0),o=n(1856)();e.exports=r||(o?function(e){return e.__proto__}:null)},20:function(e,t,n){"use strict";var r=n(682)("%Math.floor%");e.exports=function(e){for(var t,n="";e>0;)n=(t=e/2)===(e=r(t))?"0"+n:"1"+n;return n}},1520:function(e,t,n){"use strict";var r=n(682),o=r("%Number%"),i=r("%BigInt%",!0);e.exports=function(e,t,n){var r="bigint"==typeof e?i:o;e<0&&(e>>>=0);for(var a=[],l=0;l<t;l++)a[n?l:t-1-l]=o(e&r(255)),e>>=r(8);return a}},1824:function(e){"use strict";e.exports=function(e){return"number"==typeof e&&e>=0&&e<=255&&(0|e)===e}},7991:function(e,t,n){"use strict";var r=n(9404);e.exports=function(e){return("number"==typeof e||"bigint"==typeof e)&&!r(e)&&e!==1/0&&e!==-1/0}},6156:function(e,t,n){"use strict";var r=n(682),o=r("%Math.abs%"),i=r("%Math.floor%"),a=n(9404),l=n(7991);e.exports=function(e){if("number"!=typeof e||a(e)||!l(e))return!1;var t=o(e);return i(t)===t}},9404:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2745:function(e){"use strict";e.exports=function(e){return 0===e&&1/e==-1/0}},4968:function(e){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},2076:function(e){"use strict";var t=Math.floor;e.exports=function(e,n){var r=e%n;return t(r>=0?r:r+n)}},8626:function(e){"use strict";e.exports=function(e,t,n){var r=e(t,n);return r>=0?r:r+n}},6862:function(e,t,n){"use strict";var r=n(1642),o=n(9429),i={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};e.exports=function(e){if(!e||"object"!=typeof e)return!1;for(var t in e)if(o(e,t)&&!i[t])return!1;var n=o(e,"[[Value]]")||o(e,"[[Writable]]"),a=o(e,"[[Get]]")||o(e,"[[Set]]");if(n&&a)throw new r("Property Descriptors may not be both accessor and data descriptors");return!0}},359:function(e,t,n){"use strict";var r=n(9429),o=n(2527),i=n(6156);e.exports=function(e){return!!e&&"object"==typeof e&&r(e,"[[Object]]")&&r(e,"[[CachedBufferByteLength]]")&&(i(e["[[CachedBufferByteLength]]"])&&e["[[CachedBufferByteLength]]"]>=0||"DETACHED"===e["[[CachedBufferByteLength]]"])&&o(e["[[Object]]"])}},9660:function(e,t,n){"use strict";var r=n(682),o={__proto__:null,$Int8Array:r("%Int8Array%",!0),$Uint8Array:r("%Uint8Array%",!0),$Uint8ClampedArray:r("%Uint8ClampedArray%",!0),$Int16Array:r("%Int16Array%",!0),$Uint16Array:r("%Uint16Array%",!0),$Int32Array:r("%Int32Array%",!0),$Uint32Array:r("%Uint32Array%",!0),$BigInt64Array:r("%BigInt64Array%",!0),$BigUint64Array:r("%BigUint64Array%",!0),$Float32Array:r("%Float32Array%",!0),$Float64Array:r("%Float64Array%",!0)};e.exports=function(e){return o["$"+e]}},3647:function(e,t,n){"use strict";var r=n(682),o=r("%Math.abs%"),i=r("%Math.floor%"),a=r("%Math.pow%"),l=n(7991),s=n(9404),c=n(2745);e.exports=function(e,t){if(s(e))return t?[0,0,192,127]:[127,192,0,0];var n;if(0===e)return n=c(e)?128:0,t?[0,0,0,n]:[n,0,0,0];if(o(e)>34028234663852886e22||!l(e))return n=e<0?255:127,t?[0,0,128,n]:[n,128,0,0];var r=e<0?1:0;e=o(e);for(var u=0;e>=2;)u+=1,e/=2;for(;e<1;)u-=1,e*=2;var p=e-1;p*=a(2,23)+.5,u+=127;var d=r<<31|(u<<=23)|(p=i(p)),f=255&d,m=255&(d>>=8),y=255&(d>>=8),g=255&(d>>=8);return t?[f,m,y,g]:[g,y,m,f]}},7511:function(e,t,n){"use strict";var r=n(682),o=r("%parseInt%"),i=r("%Math.abs%"),a=r("%Math.floor%"),l=n(1154),s=l("String.prototype.indexOf"),c=l("String.prototype.slice"),u=n(1211),p=n(20),d=n(2745),f=1023,m="11111111111",y="00000000000",g=y+y+y+y+"0000000";e.exports=function(e,t){var n,r,l=e<0||d(e)?"1":"0";if(isNaN(e))n=m,r="1"+g;else if(isFinite(e))if(0===e)n=y,r="0"+g;else{e=i(e);var h,b=a(e),v=p(b),_=u(e-b);if(v)n=v.length-1;else{var k=s(_,"1");k>-1&&(h=k+1),n=-h}r=v+_,n<0?(n<=-1023&&(h=1022),r=c(r,h)):r=c(r,1),n=c(y+p(n+f),-11),r=c(r+g+"0",0,52)}else n=m,r="0"+g;for(var S=l+n+r,E=[],w=0;w<8;w++){E[t?8-w-1:w]=o(c(S,8*w,8*(w+1)),2)}return E}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r),n.d(r,{AlignmentControl:function(){return ck},AlignmentToolbar:function(){return uk},Autocomplete:function(){return _k},BlockAlignmentControl:function(){return Ea},BlockAlignmentToolbar:function(){return wa},BlockBreadcrumb:function(){return Ak},BlockColorsStyleSelector:function(){return Ok},BlockContextProvider:function(){return nl},BlockControls:function(){return Xr},BlockEdit:function(){return ll},BlockEditorKeyboardShortcuts:function(){return _A},BlockEditorProvider:function(){return Zp},BlockFormatControls:function(){return Qr},BlockIcon:function(){return Hp},BlockInspector:function(){return EI},BlockList:function(){return Xy},BlockMover:function(){return wI},BlockNavigationDropdown:function(){return ZS},BlockPreview:function(){return Ef},BlockSelectionClearer:function(){return Qp},BlockSettingsMenu:function(){return CI},BlockSettingsMenuControls:function(){return O_},BlockStyles:function(){return rE},BlockTitle:function(){return Ik},BlockToolbar:function(){return XI},BlockTools:function(){return gA},BlockVerticalAlignmentControl:function(){return jo},BlockVerticalAlignmentToolbar:function(){return zo},ButtonBlockAppender:function(){return by},ButtonBlockerAppender:function(){return hy},ColorPalette:function(){return xE},ColorPaletteControl:function(){return IE},ContrastChecker:function(){return fh},CopyHandler:function(){return bS},DefaultBlockAppender:function(){return yy},FontSizePicker:function(){return X_},HeadingLevelDropdown:function(){return sE},HeightControl:function(){return Ub},InnerBlocks:function(){return qy},Inserter:function(){return my},InspectorAdvancedControls:function(){return Ka},InspectorControls:function(){return qa},JustifyContentControl:function(){return Ho},JustifyToolbar:function(){return $o},LineHeightControl:function(){return Fh},MediaPlaceholder:function(){return xC},MediaReplaceFlow:function(){return hC},MediaUpload:function(){return Jm},MediaUploadCheck:function(){return qm},MultiSelectScrollIntoView:function(){return kA},NavigableToolbar:function(){return OC},ObserveTyping:function(){return CA},PanelColorSettings:function(){return IC},PlainText:function(){return gx},RichText:function(){return fx},RichTextShortcut:function(){return vx},RichTextToolbarButton:function(){return _x},SETTINGS_DEFAULTS:function(){return _},SkipToSelectedBlock:function(){return Hx},ToolSelector:function(){return Ex},Typewriter:function(){return PA},URLInput:function(){return Cw},URLInputButton:function(){return Ix},URLPopover:function(){return SC},Warning:function(){return cl},WritingFlow:function(){return dd},__experimentalBlockAlignmentMatrixControl:function(){return wk},__experimentalBlockFullHeightAligmentControl:function(){return Sk},__experimentalBlockPatternSetup:function(){return kE},__experimentalBlockPatternsList:function(){return Wf},__experimentalBlockVariationPicker:function(){return uE},__experimentalBlockVariationTransforms:function(){return wE},__experimentalBorderRadiusControl:function(){return _g},__experimentalColorGradientControl:function(){return Qg},__experimentalColorGradientSettingsDropdown:function(){return NE},__experimentalDateFormatPicker:function(){return PE},__experimentalDuotoneControl:function(){return Cv},__experimentalFontAppearanceControl:function(){return Mh},__experimentalFontFamilyControl:function(){return Bh},__experimentalGetBorderClassesAndStyles:function(){return U_},__experimentalGetColorClassesAndStyles:function(){return z_},__experimentalGetElementClassName:function(){return DA},__experimentalGetGapCSSValue:function(){return To},__experimentalGetGradientClass:function(){return zg},__experimentalGetGradientObjectByGradientValue:function(){return Gg},__experimentalGetMatchingVariation:function(){return jA},__experimentalGetSpacingClassesAndStyles:function(){return H_},__experimentalImageEditor:function(){return gw},__experimentalImageSizeControl:function(){return vw},__experimentalImageURLInputUI:function(){return Rx},__experimentalInspectorPopoverHeader:function(){return NA},__experimentalLetterSpacingControl:function(){return Lh},__experimentalLibrary:function(){return bA},__experimentalLinkControl:function(){return pC},__experimentalLinkControlSearchInput:function(){return Zw},__experimentalLinkControlSearchItem:function(){return Nw},__experimentalLinkControlSearchResults:function(){return Vw},__experimentalListView:function(){return qS},__experimentalPanelColorGradientSettings:function(){return UE},__experimentalPreviewOptions:function(){return Vx},__experimentalPublishDateTimePicker:function(){return FA},__experimentalRecursionProvider:function(){return OA},__experimentalResponsiveBlockControl:function(){return bx},__experimentalSpacingSizesControl:function(){return Lb},__experimentalTextDecorationControl:function(){return Kh},__experimentalTextTransformControl:function(){return Gh},__experimentalUnitControl:function(){return wx},__experimentalUseBlockOverlayActive:function(){return Pp},__experimentalUseBlockPreview:function(){return wf},__experimentalUseBorderProps:function(){return j_},__experimentalUseColorProps:function(){return G_},__experimentalUseCustomSides:function(){return fv},__experimentalUseGradient:function(){return $g},__experimentalUseHasRecursion:function(){return MA},__experimentalUseMultipleOriginColorsAndGradients:function(){return ig},__experimentalUseResizeCanvas:function(){return Gx},__unstableBlockNameContext:function(){return Dx},__unstableBlockSettingsMenuFirstItem:function(){return NS},__unstableBlockToolbarLastItem:function(){return Lx},__unstableDuotoneFilter:function(){return Bv},__unstableDuotoneStylesheet:function(){return Iv},__unstableDuotoneUnsetStylesheet:function(){return Av},__unstableEditorStyles:function(){return bf},__unstableGetValuesFromColors:function(){return xv},__unstableIframe:function(){return md},__unstableInserterMenuExtension:function(){return ey},__unstablePresetDuotoneFilter:function(){return Pv},__unstableRichTextInputEvent:function(){return kx},__unstableUseBlockSelectionClearer:function(){return Yp},__unstableUseClipboardHandler:function(){return hS},__unstableUseMouseMoveTypingReset:function(){return EA},__unstableUseTypewriter:function(){return BA},__unstableUseTypingObserver:function(){return wA},createCustomColorsHOC:function(){return Y_},getColorClassName:function(){return og},getColorObjectByAttributeValues:function(){return ng},getColorObjectByColorValue:function(){return rg},getComputedFluidTypographyValue:function(){return oi},getCustomValueFromPreset:function(){return xo},getFontSize:function(){return fb},getFontSizeClass:function(){return yb},getFontSizeObjectByValue:function(){return mb},getGradientSlugByValue:function(){return Hg},getGradientValueBySlug:function(){return Vg},getPxFromCssUnit:function(){return qA},getSpacingPresetCssVar:function(){return Ao},getTypographyClassesAndStyles:function(){return $_},isValueSpacingPreset:function(){return Co},privateApis:function(){return sT},store:function(){return zr},storeConfig:function(){return jr},transformStyles:function(){return yf},useBlockDisplayInformation:function(){return Jv},useBlockEditContext:function(){return Wr},useBlockProps:function(){return Op},useCachedTruthy:function(){return W_},useInnerBlocksProps:function(){return Ky},useSetting:function(){return Yo},withColorContext:function(){return CE},withColors:function(){return Q_},withFontSizes:function(){return nk}});var e={};n.r(e),n.d(e,{getBlockEditingMode:function(){return Z},getBlockRemovalRules:function(){return te},getEnabledBlockParents:function(){return X},getEnabledClientIdsTree:function(){return Q},getLastInsertedBlocksClientIds:function(){return J},getRemovalPromptData:function(){return ee},isBlockInterfaceHidden:function(){return q},isBlockSubtreeDisabled:function(){return Y}});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:function(){return ln},__experimentalGetAllowedBlocks:function(){return Ft},__experimentalGetAllowedPatterns:function(){return zt},__experimentalGetBlockListSettingsForBlocks:function(){return Jt},__experimentalGetDirectInsertBlock:function(){return Lt},__experimentalGetGlobalBlocksByName:function(){return ye},__experimentalGetLastBlockAttributeChanges:function(){return Qt},__experimentalGetParsedPattern:function(){return Ut},__experimentalGetPatternTransformItems:function(){return Ht},__experimentalGetPatternsByBlockTypes:function(){return Gt},__experimentalGetReusableBlockTitle:function(){return Zt},__unstableGetBlockWithoutInnerBlocks:function(){return se},__unstableGetClientIdWithClientIdsTree:function(){return ue},__unstableGetClientIdsTree:function(){return pe},__unstableGetContentLockingParent:function(){return pn},__unstableGetEditorMode:function(){return tn},__unstableGetSelectedBlocksWithPartialSelection:function(){return Ze},__unstableGetTemporarilyEditingAsBlocks:function(){return dn},__unstableGetVisibleBlocks:function(){return un},__unstableHasActiveBlockOverlayActive:function(){return fn},__unstableIsFullySelected:function(){return We},__unstableIsLastBlockChangeIgnored:function(){return Yt},__unstableIsSelectionCollapsed:function(){return Ke},__unstableIsSelectionMergeable:function(){return Je},__unstableIsWithinBlockOverlay:function(){return mn},__unstableSelectionHasUnmergeableBlock:function(){return qe},areInnerBlocksControlled:function(){return an},canEditBlock:function(){return xt},canInsertBlockType:function(){return _t},canInsertBlocks:function(){return kt},canLockBlockType:function(){return It},canMoveBlock:function(){return wt},canMoveBlocks:function(){return Ct},canRemoveBlock:function(){return St},canRemoveBlocks:function(){return Et},didAutomaticChange:function(){return rn},getAdjacentBlockClientId:function(){return Oe},getAllowedBlocks:function(){return Nt},getBehaviors:function(){return Kt},getBlock:function(){return le},getBlockAttributes:function(){return ae},getBlockCount:function(){return be},getBlockHierarchyRootClientId:function(){return Pe},getBlockIndex:function(){return Qe},getBlockInsertionPoint:function(){return ft},getBlockListSettings:function(){return $t},getBlockMode:function(){return at},getBlockName:function(){return oe},getBlockNamesByClientId:function(){return he},getBlockOrder:function(){return Ye},getBlockParents:function(){return Ae},getBlockParentsByBlockName:function(){return Be},getBlockRootClientId:function(){return Ie},getBlockSelectionEnd:function(){return Se},getBlockSelectionStart:function(){return ke},getBlockTransformItems:function(){return Mt},getBlocks:function(){return ce},getBlocksByClientId:function(){return ge},getClientIdsOfDescendants:function(){return de},getClientIdsWithDescendants:function(){return fe},getDraggedBlockClientIds:function(){return ct},getFirstMultiSelectedBlockClientId:function(){return Ue},getGlobalBlockCount:function(){return me},getInserterItems:function(){return Ot},getLastMultiSelectedBlockClientId:function(){return je},getLowestCommonAncestorWithSelectedBlock:function(){return Te},getMultiSelectedBlockClientIds:function(){return Le},getMultiSelectedBlocks:function(){return De},getMultiSelectedBlocksEndClientId:function(){return $e},getMultiSelectedBlocksStartClientId:function(){return He},getNextBlockClientId:function(){return Re},getPatternsByBlockTypes:function(){return Vt},getPreviousBlockClientId:function(){return Me},getSelectedBlock:function(){return xe},getSelectedBlockClientId:function(){return Ce},getSelectedBlockClientIds:function(){return Fe},getSelectedBlockCount:function(){return Ee},getSelectedBlocksInitialCaretPosition:function(){return Ne},getSelectionEnd:function(){return _e},getSelectionStart:function(){return ve},getSettings:function(){return Wt},getTemplate:function(){return gt},getTemplateLock:function(){return ht},hasBlockMovingClientId:function(){return nn},hasDraggedInnerBlock:function(){return tt},hasInserterItems:function(){return Rt},hasMultiSelection:function(){return rt},hasSelectedBlock:function(){return we},hasSelectedInnerBlock:function(){return et},isAncestorBeingDragged:function(){return pt},isAncestorMultiSelected:function(){return Ge},isBlockBeingDragged:function(){return ut},isBlockHighlighted:function(){return on},isBlockInsertionPointVisible:function(){return mt},isBlockMultiSelected:function(){return Ve},isBlockSelected:function(){return Xe},isBlockValid:function(){return ie},isBlockVisible:function(){return cn},isBlockWithinSelection:function(){return nt},isCaretWithinFormattedText:function(){return dt},isDraggingBlocks:function(){return st},isFirstMultiSelectedBlock:function(){return ze},isLastBlockChangePersistent:function(){return qt},isMultiSelecting:function(){return ot},isNavigationMode:function(){return en},isSelectionEnabled:function(){return it},isTyping:function(){return lt},isValidTemplate:function(){return yt},wasBlockJustInserted:function(){return sn}});var o={};n.r(o),n.d(o,{__experimentalUpdateSettings:function(){return gn},clearBlockRemovalPrompt:function(){return En},ensureDefaultBlock:function(){return Sn},hideBlockInterface:function(){return hn},privateRemoveBlocks:function(){return kn},setBlockEditingMode:function(){return vn},setBlockRemovalRules:function(){return wn},showBlockInterface:function(){return bn},unsetBlockEditingMode:function(){return _n}});var i={};n.r(i),n.d(i,{__unstableDeleteSelection:function(){return rr},__unstableExpandSelection:function(){return ir},__unstableMarkAutomaticChange:function(){return wr},__unstableMarkLastChangeAsPersistent:function(){return Sr},__unstableMarkNextChangeAsNotPersistent:function(){return Er},__unstableSaveReusableBlock:function(){return kr},__unstableSetEditorMode:function(){return xr},__unstableSetTemporarilyEditingAsBlocks:function(){return Nr},__unstableSplitSelection:function(){return or},clearSelectedBlock:function(){return zn},duplicateBlocks:function(){return Ar},enterFormattedText:function(){return yr},exitFormattedText:function(){return gr},flashBlock:function(){return Or},hideInsertionPoint:function(){return er},insertAfterBlock:function(){return Pr},insertBeforeBlock:function(){return Br},insertBlock:function(){return Yn},insertBlocks:function(){return Qn},insertDefaultBlock:function(){return br},mergeBlocks:function(){return ar},moveBlockToPosition:function(){return Zn},moveBlocksDown:function(){return Kn},moveBlocksToPosition:function(){return Jn},moveBlocksUp:function(){return qn},multiSelect:function(){return jn},receiveBlocks:function(){return On},removeBlock:function(){return sr},removeBlocks:function(){return lr},replaceBlock:function(){return $n},replaceBlocks:function(){return Hn},replaceInnerBlocks:function(){return cr},resetBlocks:function(){return Bn},resetSelection:function(){return Tn},selectBlock:function(){return Nn},selectNextBlock:function(){return Ln},selectPreviousBlock:function(){return Fn},selectionChange:function(){return hr},setBlockMovingClientId:function(){return Ir},setBlockVisibility:function(){return Rr},setHasControlledInnerBlocks:function(){return Mr},setNavigationMode:function(){return Cr},setTemplateValidity:function(){return tr},showInsertionPoint:function(){return Xn},startDraggingBlocks:function(){return fr},startMultiSelect:function(){return Dn},startTyping:function(){return pr},stopDraggingBlocks:function(){return mr},stopMultiSelect:function(){return Un},stopTyping:function(){return dr},synchronizeTemplate:function(){return nr},toggleBlockHighlight:function(){return Tr},toggleBlockMode:function(){return ur},toggleSelection:function(){return Vn},updateBlock:function(){return Rn},updateBlockAttributes:function(){return Mn},updateBlockListSettings:function(){return vr},updateSettings:function(){return _r},validateBlocksToTemplate:function(){return Pn}});var a={};n.r(a),n.d(a,{AdvancedPanel:function(){return kB},BorderPanel:function(){return Ag},ColorPanel:function(){return dh},DimensionsPanel:function(){return nv},EffectsPanel:function(){return gB},FiltersPanel:function(){return jv},GlobalStylesContext:function(){return hi},TypographyPanel:function(){return lb},areGlobalStyleConfigsEqual:function(){return gi},getBlockCSSSelector:function(){return Tv},getLayoutStyles:function(){return eB},useGlobalSetting:function(){return ki},useGlobalStyle:function(){return Si},useGlobalStylesOutput:function(){return uB},useGlobalStylesOutputWithConfig:function(){return cB},useGlobalStylesReset:function(){return _i},useHasBorderPanel:function(){return kg},useHasColorPanel:function(){return Xg},useHasDimensionsPanel:function(){return Hb},useHasEffectsPanel:function(){return dB},useHasFiltersPanel:function(){return Rv},useHasTypographyPanel:function(){return Zh},useSettingsForBlockElement:function(){return Ei}});var l=window.wp.blocks,s=window.wp.hooks;(0,s.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,l.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var c=window.wp.element,u=n(7153),p=n.n(u),d=window.wp.compose,f=window.wp.components,m=window.wp.data;var y={default:(0,f.createSlotFill)("BlockControls"),block:(0,f.createSlotFill)("BlockControlsBlock"),inline:(0,f.createSlotFill)("BlockFormatControls"),other:(0,f.createSlotFill)("BlockControlsOther"),parent:(0,f.createSlotFill)("BlockControlsParent")},g=n(5619),h=n.n(g),b=window.wp.i18n;const v={insertUsage:{}},_={alignWide:!1,supportsLayout:!0,colors:[{name:(0,b.__)("Black"),slug:"black",color:"#000000"},{name:(0,b.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,b.__)("White"),slug:"white",color:"#ffffff"},{name:(0,b.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,b.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,b.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,b.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,b.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,b.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,b.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,b.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,b.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,b._x)("Small","font size name"),size:13,slug:"small"},{name:(0,b._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,b._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,b._x)("Large","font size name"),size:36,slug:"large"},{name:(0,b._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,b.__)("Thumbnail")},{slug:"medium",name:(0,b.__)("Medium")},{slug:"large",name:(0,b.__)("Large")},{slug:"full",name:(0,b.__)("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:(0,b.__)("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:(0,b.__)("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:(0,b.__)("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:(0,b.__)("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:(0,b.__)("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:(0,b.__)("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:(0,b.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,b.__)("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:(0,b.__)("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:(0,b.__)("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:(0,b.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,b.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function k(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function S(e,t,n,r=1){const o=[...e];return o.splice(t,r),k(o,e.slice(t,t+r),n)}const E=e=>e;function w(e,t=""){const n=new Map,r=[];return n.set(t,r),e.forEach((e=>{const{clientId:t,innerBlocks:o}=e;r.push(t),w(o,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function C(e,t=""){const n=[],r=[[t,e]];for(;r.length;){const[e,t]=r.shift();t.forEach((({innerBlocks:t,...o})=>{n.push([o.clientId,e]),t?.length&&r.push([o.clientId,t])}))}return n}function x(e,t=E){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 I(e){return x(e,(e=>{const{attributes:t,...n}=e;return n}))}function A(e){return x(e,(e=>e.attributes))}function B(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&h()(e.clientIds,t.clientIds)&&function(e,t){return h()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function P(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 T(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 O=(0,d.pipe)(m.combineReducers,(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),P(r,n.blocks),T(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)}),T(r,[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":r.tree=new Map(r.tree),n.clientIds.forEach((e=>{r.tree.set(e,{...r.tree.get(e),attributes:r.attributes.get(e)})})),T(r,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...r}=n.shift();n.push(...e),t[r.clientId]=!0}return t}(n.blocks);r.tree=new Map(r.tree),n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e))).forEach((e=>{r.tree.delete(e)})),P(r,n.blocks),T(r,n.blocks.map((e=>e.clientId)),!1);const o=[];for(const e of n.clientIds)void 0===t.parents.get(e)||""!==t.parents.get(e)&&!r.byClientId.get(t.parents.get(e))||o.push(t.parents.get(e));T(r,o,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const o of n.clientIds)void 0===t.parents.get(o)||""!==t.parents.get(o)&&!r.byClientId.get(t.parents.get(o))||e.push(t.parents.get(o));r.tree=new Map(r.tree),n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e))).forEach((e=>{r.tree.delete(e)})),T(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),T(r,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];r.tree=new Map(r.tree),T(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})})),T(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(I(n.blocks)),attributes:new Map(A(n.blocks)),order:w(n.blocks),parents:new Map(C(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),P(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n=!1;return(r,o)=>{let i=e(r,o);const a="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===i&&!a){var l;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;const e=null===(l=r?.isPersistentChange)||void 0===l||l;return r.isPersistentChange===e?r:{...i,isPersistentChange:e}}return i={...i,isPersistentChange:a?!n:!B(o,t)},t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,i}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,r)=>{const o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const r=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(r,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return I(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)})),I(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 A(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let r=!1;const o=new Map(e);for(const i of t.clientIds){var n;const a=Object.entries(t.uniqueByBlock?t.attributes[i]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===a.length)continue;let l=!1;const s=e.get(i),c={};a.forEach((([e,t])=>{s[e]!==t&&(l=!0,c[e]=t)})),r=r||l,l&&o.set(i,{...s,...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)})),A(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=w(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=w(t.blocks,n),{index:i=r.length}=t,a=new Map(e);return o.forEach(((e,t)=>{a.set(t,e)})),a.set(n,k(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,S(e.get(o),t,a,i.length)),n}const l=new Map(e);return l.set(n,null!==(r=e.get(n)?.filter((e=>!i.includes(e))))&&void 0!==r?r:[]),l.set(o,k(e.get(o),i,a)),l}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),l=new Map(e);return l.set(r,S(i,a,a-1,n.length)),l}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 l=a.indexOf(o),s=new Map(e);return s.set(r,S(a,l,l+1,n.length)),s}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const r=w(t.blocks),o=new Map(e);return t.replacedClientIds.forEach((e=>{o.delete(e)})),r.forEach(((e,t)=>{""!==t&&o.set(t,e)})),o.forEach(((e,t)=>{const i=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...r.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);o.set(t,i)})),o}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,r)=>{var o;const i=null!==(o=e?.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==o?o:[];i.length!==e.length&&n.set(r,i)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return C(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return C(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),C(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks(e={},{type:t,clientId:n,hasControlledInnerBlocks:r}){return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:r}:e}});function M(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 R=(0,m.combineReducers)({blocks:O,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,l=e?.selectionEnd?.clientId;if(!a&&!l)return e;if(!t.blocks.some((e=>e.clientId===a)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===l)))return{...e,selectionEnd:e.selectionStart}}const n=M(e.selectionStart,t),r=M(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 h()(e[n],t.settings)?e:{...e,[n]:t.settings}}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:r,__unstableWithInserter:o,operation:i}=t,a={rootClientId:n,index:r,__unstableWithInserter:o,operation:i};return h()(e,a)?e:a}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=_,t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(e=v,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:r,name:o}=n;let i=o;const a=(0,m.select)(l.store).getActiveBlockVariation(o,r);return a?.name&&(i+="/"+a.name),"core/block"===o&&(i+="/"+r.ref),{...e,insertUsage:{...e.insertUsage,[i]:{time:t.time,count:e.insertUsage[i]?e.insertUsage[i].count+1:1}}}}),e)}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(e="edit",t){return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:r}=t;return r?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":case"REPLACE_INNER_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),r=t.meta?.source;return{clientIds:n,source:r};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,blockNamesForPrompt:r}=t;return{clientIds:e,selectPrevious:n,blockNamesForPrompt:r};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e}});var N=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}}(R),F={};function L(e){return[e]}function D(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 U(e,t){var n,r=t||L;function o(){n=new WeakMap}function i(){var t,o,i,a,l,s=arguments.length;for(a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];for(t=function(e){var t,r,o,i,a,l=n,s=!0;for(t=0;t<e.length;t++){if(!(a=r=e[t])||"object"!=typeof a){s=!1;break}l.has(r)?l=l.get(r):(o=new WeakMap,l.set(r,o),l=o)}return l.has(F)||((i=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=s,l.set(F,i)),l.get(F)}(l=r.apply(null,a)),t.isUniqueByDependants||(t.lastDependants&&!D(l,t.lastDependants,0)&&t.clear(),t.lastDependants=l),o=t.head;o;){if(D(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}var j=window.wp.primitives;var z=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"})),V=window.wp.richText,G=window.wp.deprecated,H=n.n(G);function $(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:r}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:r}}const W=(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 l=t.findIndex((e=>e===r)),s=t.findIndex((e=>e===o));return l>s?1:s>l?-1:0};function K(e,t,n="asc"){return e.concat().sort(W(t,e,n))}function q(e){return e.isBlockInterfaceHidden}function J(e){return e?.lastBlockInserted?.clientIds}function Z(e,t=""){if(e.blockEditingModes.has(t))return e.blockEditingModes.get(t);if(!t)return"default";const n=Ie(e,t);if("contentOnly"===ht(e,n)){const n=oe(e,t);return(0,m.select)(l.store).__experimentalHasContentRoleAttribute(n)?"contentOnly":"disabled"}const r=Z(e,n);return"contentOnly"===r?"default":r}const Y=U(((e,t)=>{const n=t=>{const r=e.blockEditingModes.get(t);return(void 0===r||"disabled"===r)&&Ye(e,t).every(n)};return"disabled"===Z(e,t)&&Ye(e,t).every(n)}),(e=>[e.blockEditingModes,e.blocks.parents])),Q=U(((e,t="")=>Ye(e,t).flatMap((t=>"disabled"!==Z(e,t)?[{clientId:t,innerBlocks:Q(e,t)}]:Q(e,t)))),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),X=U(((e,t,n=!1)=>Ae(e,t,n).filter((t=>"disabled"!==Z(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function ee(e){return e.removalPromptData}function te(e){return e.blockRemovalRules}const ne=[],re=new Set;function oe(e,t){const n=e.blocks.byClientId.get(t),r="core/social-link";if("web"!==c.Platform.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 ie(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function ae(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function le(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const se=U(((e,t)=>e.blocks.byClientId.has(t)?{...e.blocks.byClientId.get(t),attributes:ae(e,t)}:null),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function ce(e,t){const n=t&&an(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||ne}const ue=U(((e,t)=>(H()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:pe(e,t)})),(e=>[e.blocks.order])),pe=U(((e,t="")=>(H()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Ye(e,t).map((t=>ue(e,t))))),(e=>[e.blocks.order])),de=U(((e,t)=>{const n=[];for(const r of t)for(const t of Ye(e,r))n.push(t,...de(e,[t]));return n}),(e=>[e.blocks.order])),fe=U((e=>{const t=[];for(const n of Ye(e))t.push(n,...de(e,[n]));return t}),(e=>[e.blocks.order])),me=U(((e,t)=>{const n=fe(e);return t?n.reduce(((n,r)=>e.blocks.byClientId.get(r).name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),ye=U(((e,t)=>{if(!t)return ne;const n=Array.isArray(t)?t:[t],r=fe(e).filter((t=>{const r=e.blocks.byClientId.get(t);return n.includes(r.name)}));return r.length>0?r:ne}),(e=>[e.blocks.order,e.blocks.byClientId])),ge=U(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>le(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),he=U(((e,t)=>ge(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>ge(e,t)));function be(e,t){return Ye(e,t).length}function ve(e){return e.selection.selectionStart}function _e(e){return e.selection.selectionEnd}function ke(e){return e.selection.selectionStart.clientId}function Se(e){return e.selection.selectionEnd.clientId}function Ee(e){const t=Le(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function we(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function Ce(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:r}=t;return r&&r===n.clientId?r:null}function xe(e){const t=Ce(e);return t?le(e,t):null}function Ie(e,t){return e.blocks.parents.has(t)?e.blocks.parents.get(t):null}const Ae=U(((e,t,n=!1)=>{const r=[];let o=t;for(;e.blocks.parents.get(o);)o=e.blocks.parents.get(o),r.push(o);return r.length?n?r:r.reverse():ne}),(e=>[e.blocks.parents])),Be=U(((e,t,n,r=!1)=>{const o=Ae(e,t,r),i=Array.isArray(n)?e=>n.includes(e):e=>n===e;return o.filter((t=>i(oe(e,t))))}),(e=>[e.blocks.parents]));function Pe(e,t){let n,r=t;do{n=r,r=e.blocks.parents.get(r)}while(r);return n}function Te(e,t){const n=Ce(e),r=[...Ae(e,t),t],o=[...Ae(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 Oe(e,t,n=1){if(void 0===t&&(t=Ce(e)),void 0===t&&(t=n<0?Ue(e):je(e)),!t)return null;const r=Ie(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 Me(e,t){return Oe(e,t,-1)}function Re(e,t){return Oe(e,t,1)}function Ne(e){return e.initialPosition}const Fe=U((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return ne;if(t.clientId===n.clientId)return[t.clientId];const r=Ie(e,t.clientId);if(null===r)return ne;const o=Ye(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 Le(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?ne:Fe(e)}const De=U((e=>{const t=Le(e);return t.length?t.map((t=>le(e,t))):ne}),(e=>[...Fe.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ue(e){return Le(e)[0]||null}function je(e){const t=Le(e);return t[t.length-1]||null}function ze(e,t){return Ue(e)===t}function Ve(e,t){return-1!==Le(e).indexOf(t)}const Ge=U(((e,t)=>{let n=t,r=!1;for(;n&&!r;)n=Ie(e,n),r=Ve(e,n);return r}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function He(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function $e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function We(e){const t=ve(e),n=_e(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ke(e){const t=ve(e),n=_e(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function qe(e){return Fe(e).some((t=>{const n=oe(e,t);return!(0,l.getBlockType)(n).merge}))}function Je(e,t){const n=ve(e),r=_e(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=Ie(e,n.clientId);if(o!==Ie(e,r.clientId))return!1;const i=Ye(e,o);let a,s;i.indexOf(n.clientId)>i.indexOf(r.clientId)?(a=r,s=n):(a=n,s=r);const c=t?s.clientId:a.clientId,u=t?a.clientId:s.clientId,p=oe(e,c);if(!(0,l.getBlockType)(p).merge)return!1;const d=le(e,u);if(d.name===p)return!0;const f=(0,l.switchToBlockType)(d,p);return f&&f.length}const Ze=e=>{const t=ve(e),n=_e(e);if(t.clientId===n.clientId)return ne;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return ne;const r=Ie(e,t.clientId);if(r!==Ie(e,n.clientId))return ne;const o=Ye(e,r),i=o.indexOf(t.clientId),a=o.indexOf(n.clientId),[s,c]=i>a?[n,t]:[t,n],u=le(e,s.clientId),p=(0,l.getBlockType)(u.name),d=le(e,c.clientId),f=(0,l.getBlockType)(d.name),m=u.attributes[s.attributeKey],y=d.attributes[c.attributeKey],g=p.attributes[s.attributeKey],h=f.attributes[c.attributeKey];let b=(0,V.create)({html:m,...$(g)}),v=(0,V.create)({html:y,...$(h)});return b=(0,V.remove)(b,0,s.offset),v=(0,V.remove)(v,c.offset,v.text.length),[{...u,attributes:{...u.attributes,[s.attributeKey]:(0,V.toHTMLString)({value:b,...$(g)})}},{...d,attributes:{...d.attributes,[c.attributeKey]:(0,V.toHTMLString)({value:v,...$(h)})}}]};function Ye(e,t){return e.blocks.order.get(t||"")||ne}function Qe(e,t){return Ye(e,Ie(e,t)).indexOf(t)}function Xe(e,t){const{selectionStart:n,selectionEnd:r}=e.selection;return n.clientId===r.clientId&&n.clientId===t}function et(e,t,n=!1){return Ye(e,t).some((t=>Xe(e,t)||Ve(e,t)||n&&et(e,t,n)))}function tt(e,t,n=!1){return Ye(e,t).some((t=>ut(e,t)||n&&tt(e,t,n)))}function nt(e,t){if(!t)return!1;const n=Le(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function rt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function ot(e){return e.isMultiSelecting}function it(e){return e.isSelectionEnabled}function at(e,t){return e.blocksMode[t]||"visual"}function lt(e){return e.isTyping}function st(e){return!!e.draggedBlocks.length}function ct(e){return e.draggedBlocks}function ut(e,t){return e.draggedBlocks.includes(t)}function pt(e,t){if(!st(e))return!1;return Ae(e,t).some((t=>ut(e,t)))}function dt(){return H()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const ft=U((e=>{let t,n;const{insertionPoint:r,selection:{selectionEnd:o}}=e;if(null!==r)return r;const{clientId:i}=o;return i?(t=Ie(e,i)||void 0,n=Qe(e,o.clientId)+1):n=Ye(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function mt(e){return null!==e.insertionPoint}function yt(e){return e.template.isValid}function gt(e){return e.settings.template}function ht(e,t){var n,r;return t?null!==(n=$t(e,t)?.templateLock)&&void 0!==n&&n:null!==(r=e.settings.templateLock)&&void 0!==r&&r}const bt=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,vt=(e,t,n=null)=>{let r;if(t&&"object"==typeof t?(r=t,t=r.name):r=(0,l.getBlockType)(t),!r)return!1;const{allowedBlockTypes:o}=Wt(e);if(!bt(o,t,!0))return!1;if(!!ht(e,n))return!1;if("disabled"===Z(e,null!=n?n:""))return!1;const i=$t(e,n);if(n&&void 0===i)return!1;const a=i?.allowedBlocks,c=bt(a,t),u=r.parent,p=oe(e,n),d=bt(u,p);let f=!0;const m=r.ancestor;if(m){f=[n,...Ae(e,n)].some((t=>bt(m,oe(e,t))))}const y=f&&(null===c&&null===d||!0===c||!0===d);return y?(0,s.applyFilters)("blockEditor.__unstableCanInsertBlockType",y,r,n,{getBlock:le.bind(null,e),getBlockParentsByBlockName:Be.bind(null,e)}):y},_t=U(vt,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]));function kt(e,t,n=null){return t.every((t=>_t(e,oe(e,t),n)))}function St(e,t,n=null){const r=ae(e,t);return null===r||(void 0!==r.lock?.remove?!r.lock.remove:!ht(e,n)&&"disabled"!==Z(e,n))}function Et(e,t,n=null){return t.every((t=>St(e,t,n)))}function wt(e,t,n=null){const r=ae(e,t);return null===r||(void 0!==r.lock?.move?!r.lock.move:"all"!==ht(e,n)&&"disabled"!==Z(e,n))}function Ct(e,t,n=null){return t.every((t=>wt(e,t,n)))}function xt(e,t){const n=ae(e,t);if(null===n)return!0;const{lock:r}=n;return!r?.edit}function It(e,t){return!!(0,l.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function At(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const Bt=(e,t,n)=>!!(0,l.hasBlockSupport)(t,"inserter",!0)&&vt(e,t.name,n),Pt=(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}},Tt=(e,{buildScope:t="inserter"})=>n=>{const r=n.name;let o=!1;(0,l.hasBlockSupport)(n.name,"multiple",!0)||(o=ge(e,fe(e)).some((({name:e})=>e===n.name)));const{time:i,count:a=0}=At(e,r)||{},s={id:r,name:n.name,title:n.title,icon:n.icon,isDisabled:o,frecency:Pt(i,a)};if("transform"===t)return s;const c=(0,l.getBlockVariations)(n.name,"inserter");return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:c,example:n.example,utility:1}},Ot=U(((e,t=null)=>{const n=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,r=vt(e,"core/block",t)?Xt(e).filter((e=>"fully"===e.wp_pattern_sync_status||""===e.wp_pattern_sync_status||!e.wp_pattern_sync_status)).map((t=>{let r=z;if("web"===c.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(n);if(e){const[,,t="core/",n]=e,o=(0,l.getBlockType)(t+n);o&&(r=o.icon)}}const o=`core/block/${t.id}`,{time:i,count:a=0}=At(e,o)||{},s=Pt(i,a);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:r,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:s,content:t.content.raw}})):[],o=Tt(e,{buildScope:"inserter"}),i=(0,l.getBlockTypes)().filter((n=>Bt(e,n,t))).map(o).reduce(((t,n)=>{const{variations:r=[]}=n;if(r.some((({isDefault:e})=>e))||t.push(n),r.length){const o=((e,t)=>n=>{const r=`${t.id}/${n.name}`,{time:o,count:i=0}=At(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:Pt(o,i)}})(e,n);t.push(...r.map(o))}return t}),[]),{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]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Xt(e),(0,l.getBlockTypes)()])),Mt=U(((e,t,n=null)=>{const r=Array.isArray(t)?t:[t],o=Tt(e,{buildScope:"transform"}),i=(0,l.getBlockTypes)().filter((t=>Bt(e,t,n))).map(o),a=Object.fromEntries(Object.entries(i).map((([,e])=>[e.name,e]))),s=(0,l.getPossibleBlockTransformations)(r).reduce(((e,t)=>(a[t?.name]&&e.push(a[t.name]),e)),[]);return K(s,(e=>a[e.name].frecency),"desc")}),((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,l.getBlockTypes)()])),Rt=U(((e,t=null)=>{if((0,l.getBlockTypes)().some((n=>Bt(e,n,t))))return!0;return vt(e,"core/block",t)&&Xt(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Xt(e),(0,l.getBlockTypes)()])),Nt=U(((e,t=null)=>{if(t)return(0,l.getBlockTypes)().filter((n=>Bt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,l.getBlockTypes)()])),Ft=U(((e,t=null)=>(H()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),Nt(e,t))),((e,t)=>[...Nt.getDependants(e,t)])),Lt=U(((e,t=null)=>{if(!t)return;const n=e.blockListSettings[t]?.__experimentalDefaultBlock,r=e.blockListSettings[t]?.__experimentalDirectInsert;return n&&r?"function"==typeof r?r(le(e,t))?n:null:n:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)]));function Dt(e){var t;return(null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne).filter((e=>"unsynced"===e.wp_pattern_sync_status)).map((e=>({name:`core/block/${e.id}`,title:e.title.raw,categories:["custom"],content:e.content.raw})))}const Ut=U(((e,t)=>{const n=[...e.settings.__experimentalBlockPatterns,...Dt(e)].find((({name:e})=>e===t));return n?{...n,blocks:(0,l.parse)(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks])),jt=U((e=>{const t=e.settings.__experimentalBlockPatterns,n=Dt(e),{allowedBlockTypes:r}=Wt(e),o=[...t,...n].filter((({inserter:e=!0})=>!!e)).map((({name:t})=>Ut(e,t))),i=o.filter((({blocks:e})=>((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!bt(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0})(e,r)));return i}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes])),zt=U(((e,t=null)=>{const n=jt(e).filter((({blocks:n})=>n.every((({name:n})=>_t(e,n,t)))));return n}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId.get(t)])),Vt=U(((e,t,n=null)=>{if(!t)return ne;const r=zt(e,n),o=Array.isArray(t)?t:[t],i=r.filter((e=>e?.blockTypes?.some?.((e=>o.includes(e)))));return 0===i.length?ne:i}),((e,t,n)=>[...zt.getDependants(e,n)])),Gt=U(((e,t,n=null)=>(H()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),Vt(e,t,n))),((e,t,n)=>[...zt.getDependants(e,n)])),Ht=U(((e,t,n=null)=>{if(!t)return ne;if(t.some((({clientId:t,innerBlocks:n})=>n.length||an(e,t))))return ne;const r=Array.from(new Set(t.map((({name:e})=>e))));return Vt(e,r,n)}),((e,t,n)=>[...Vt.getDependants(e,n)]));function $t(e,t){return e.blockListSettings[t]}function Wt(e){return e.settings}function Kt(e){return e.settings.behaviors}function qt(e){return e.blocks.isPersistentChange}const Jt=U(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),Zt=U(((e,t)=>{const n=Xt(e).find((e=>e.id===t));return n?n.title?.raw:null}),(e=>[Xt(e)]));function Yt(e){return e.blocks.isIgnoredChange}function Qt(e){return e.lastBlockAttributesChange}function Xt(e){var t;return null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne}function en(e){return"navigation"===e.editorMode}function tn(e){return e.editorMode}function nn(e){return e.hasBlockMovingClientId}function rn(e){return!!e.automaticChangeStatus}function on(e,t){return e.highlightedBlock===t}function an(e,t){return!!e.blocks.controlledInnerBlocks[t]}const ln=U(((e,t)=>{if(!t.length)return null;const n=Ce(e);if(t.includes(oe(e,n)))return n;const r=Le(e),o=Be(e,n||r[0],t);return o?o[o.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function sn(e,t,n){const{lastBlockInserted:r}=e;return r.clientIds?.includes(t)&&r.source===n}function cn(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const un=U((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?re:t}),(e=>[e.blockVisibility])),pn=U(((e,t)=>{let n,r=t;for(;e.blocks.parents.has(r);)r=e.blocks.parents.get(r),r&&"contentOnly"===ht(e,r)&&(n=r);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function dn(e){return e.temporarilyEditingAsBlocks}function fn(e,t){if("default"!==Z(e,t))return!1;if(!xt(e,t))return!0;const n=tn(e);if("zoom-out"===n&&t&&!Ie(e,t))return!0;const r=(0,l.hasBlockSupport)(oe(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!r&&an(e,t))&&!Xe(e,t)&&!et(e,t,!0)}function mn(e,t){let n=e.blocks.parents.get(t);for(;n;){if(fn(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const yn=["inserterMediaCategories","blockInspectorAnimation"];function gn(e,t=!1){let n=e;if(t&&"web"===c.Platform.OS){n={};for(const t in e)yn.includes(t)||(n[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:n}}function hn(){return{type:"HIDE_BLOCK_INTERFACE"}}function bn(){return{type:"SHOW_BLOCK_INTERFACE"}}function vn(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function _n(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const kn=(e,t=!0,n=!1)=>({select:r,dispatch:o})=>{if(!e||!e.length)return;var i;i=e,e=Array.isArray(i)?i:[i];const a=r.getBlockRootClientId(e[0]);if(!r.canRemoveBlocks(e,a))return;const l=!n&&r.getBlockRemovalRules();if(l){const n=new Set,i=[...e];for(;i.length;){const e=i.shift(),t=r.getBlockName(e);l[t]&&n.add(t);const o=r.getBlockOrder(e);i.push(...o)}if(n.size)return void o(function(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,blockNamesForPrompt:n}}(e,t,Array.from(n)))}t&&o.selectPreviousBlock(e[0],t),o({type:"REMOVE_BLOCKS",clientIds:e}),o(Sn())},Sn=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function En(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function wn(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}var Cn=window.wp.a11y;const xn="†";function In(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(xn)}))}const An=e=>Array.isArray(e)?e:[e],Bn=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(Pn(e))},Pn=e=>({select:t,dispatch:n})=>{const r=t.getTemplate(),o=t.getTemplateLock(),i=!r||"all"!==o||(0,l.doBlocksMatchTemplate)(e,r);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function Tn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function On(e){return H()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Mn(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:An(e),attributes:t,uniqueByBlock:n}}function Rn(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Nn(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Fn=(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)}},Ln=e=>({select:t,dispatch:n})=>{const r=t.getNextBlockClientId(e);r&&n.selectBlock(r)};function Dn(){return{type:"START_MULTI_SELECT"}}function Un(){return{type:"STOP_MULTI_SELECT"}}const jn=(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();(0,Cn.speak)((0,b.sprintf)((0,b._n)("%s block selected.","%s blocks selected.",i),i),"assertive")};function zn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Vn(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Gn(e,t){var n;const r=null!==(n=t?.__experimentalPreferredStyleVariations?.value)&&void 0!==n?n:{};return e.map((e=>{const t=e.name;if(!(0,l.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!r[t])return e;const n=e.attributes?.className;if(n?.includes("is-style-"))return e;const{attributes:o={}}=e,i=r[t];return{...e,attributes:{...o,className:`${n||""} is-style-${i}`.trim()}}}))}const Hn=(e,t,n,r=0,o)=>({select:i,dispatch:a})=>{e=An(e),t=Gn(An(t),i.getSettings());const l=i.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,l))return}a({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o}),a(Sn())};function $n(e,t){return Hn(e,t)}const Wn=e=>(t,n)=>({select:r,dispatch:o})=>{r.canMoveBlocks(t,n)&&o({type:e,clientIds:An(t),rootClientId:n})},Kn=Wn("MOVE_BLOCKS_DOWN"),qn=Wn("MOVE_BLOCKS_UP"),Jn=(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 Zn(e,t="",n="",r){return Jn([e],t,n,r)}function Yn(e,t,n,r,o){return Qn([e],t,n,r,0,o)}const Qn=(e,t,n,r=!0,o=0,i)=>({select:a,dispatch:l})=>{null!==o&&"object"==typeof o&&(i=o,o=0,H()("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=Gn(An(e),a.getSettings());const s=[];for(const t of e){a.canInsertBlockType(t.name,n)&&s.push(t)}s.length&&l({type:"INSERT_BLOCKS",blocks:s,index:t,rootClientId:n,time:Date.now(),updateSelection:r,initialPosition:r?o:null,meta:i})};function Xn(e,t,n={}){const{__unstableWithInserter:r,operation:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r,operation:o}}const er=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function tr(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const nr=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),r=e.getTemplate(),o=(0,l.synchronizeBlocksWithTemplate)(n,r);t.resetBlocks(o)},rr=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 c,u;s.indexOf(o.clientId)>s.indexOf(i.clientId)?(c=i,u=o):(c=o,u=i);const p=e?u:c,d=n.getBlock(p.clientId),f=(0,l.getBlockType)(d.name);if(!f.merge)return;const m=c,y=u,g=n.getBlock(m.clientId),h=(0,l.getBlockType)(g.name),b=n.getBlock(y.clientId),v=(0,l.getBlockType)(b.name),_=g.attributes[m.attributeKey],k=b.attributes[y.attributeKey],S=h.attributes[m.attributeKey],E=v.attributes[y.attributeKey];let w=(0,V.create)({html:_,...$(S)}),C=(0,V.create)({html:k,...$(E)});w=(0,V.remove)(w,m.offset,w.text.length),C=(0,V.insert)(C,xn,0,y.offset);const x=(0,l.cloneBlock)(g,{[m.attributeKey]:(0,V.toHTMLString)({value:w,...$(S)})}),I=(0,l.cloneBlock)(b,{[y.attributeKey]:(0,V.toHTMLString)({value:C,...$(E)})}),A=e?x:I,B=g.name===b.name?[A]:(0,l.switchToBlockType)(A,f.name);if(!B||!B.length)return;let P;if(e){const e=B.pop();P=f.merge(e.attributes,I.attributes)}else{const e=B.shift();P=f.merge(x.attributes,e.attributes)}const T=In(P),O=P[T],M=(0,V.create)({html:O,...$(f.attributes[T])}),R=M.text.indexOf(xn),N=(0,V.remove)(M,R,R+1),F=(0,V.toHTMLString)({value:N,...$(f.attributes[T])});P[T]=F;const L=n.getSelectedBlockClientIds(),D=[...e?B:[],{...d,attributes:{...d.attributes,...P}},...e?[]:B];t.batch((()=>{r.selectionChange(d.clientId,T,R,R),r.replaceBlocks(L,D,0,n.getSelectedBlocksInitialCaretPosition())}))},or=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),r=e.getSelectionEnd();if(n.clientId===r.clientId)return;if(!n.attributeKey||!r.attributeKey||void 0===n.offset||void 0===r.offset)return;const o=e.getBlockRootClientId(n.clientId);if(o!==e.getBlockRootClientId(r.clientId))return;const i=e.getBlockOrder(o);let a,s;i.indexOf(n.clientId)>i.indexOf(r.clientId)?(a=r,s=n):(a=n,s=r);const c=a,u=s,p=e.getBlock(c.clientId),d=(0,l.getBlockType)(p.name),f=e.getBlock(u.clientId),m=(0,l.getBlockType)(f.name),y=p.attributes[c.attributeKey],g=f.attributes[u.attributeKey],h=d.attributes[c.attributeKey],b=m.attributes[u.attributeKey];let v=(0,V.create)({html:y,...$(h)}),_=(0,V.create)({html:g,...$(b)});v=(0,V.remove)(v,c.offset,v.text.length),_=(0,V.remove)(_,0,u.offset),t.replaceBlocks(e.getSelectedBlockClientIds(),[{...p,attributes:{...p.attributes,[c.attributeKey]:(0,V.toHTMLString)({value:v,...$(h)})}},(0,l.createBlock)((0,l.getDefaultBlockName)()),{...f,attributes:{...f.attributes,[u.attributeKey]:(0,V.toHTMLString)({value:_,...$(b)})}}],1,e.getSelectedBlocksInitialCaretPosition())},ir=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),r=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:r.clientId}})},ar=(e,t)=>({registry:n,select:r,dispatch:o})=>{const i=[e,t];o({type:"MERGE_BLOCKS",blocks:i});const[a,s]=i,c=r.getBlock(a),u=(0,l.getBlockType)(c.name);if(!u)return;const p=r.getBlock(s);if(u&&!u.merge){const e=(0,l.switchToBlockType)(p,u.name);if(1!==e?.length)return void o.selectBlock(c.clientId);const[t]=e;return t.innerBlocks.length<1?void o.selectBlock(c.clientId):void n.batch((()=>{o.insertBlocks(t.innerBlocks,void 0,a),o.removeBlock(s),o.selectBlock(t.innerBlocks[0].clientId)}))}const d=(0,l.getBlockType)(p.name),{clientId:f,attributeKey:m,offset:y}=r.getSelectionStart(),g=(f===a?u:d).attributes[m],h=(f===a||f===s)&&void 0!==m&&void 0!==y&&!!g;g||("number"==typeof m?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 m):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const b=(0,l.cloneBlock)(c),v=(0,l.cloneBlock)(p);if(h){const e=f===a?b:v,t=e.attributes[m],n=(0,V.insert)((0,V.create)({html:t,...$(g)}),xn,y,y);e.attributes[m]=(0,V.toHTMLString)({value:n,...$(g)})}const _=c.name===p.name?[v]:(0,l.switchToBlockType)(v,c.name);if(!_||!_.length)return;const k=u.merge(b.attributes,_[0].attributes);if(h){const e=In(k),t=k[e],n=(0,V.create)({html:t,...$(u.attributes[e])}),r=n.text.indexOf(xn),i=(0,V.remove)(n,r,r+1),a=(0,V.toHTMLString)({value:i,...$(u.attributes[e])});k[e]=a,o.selectionChange(c.clientId,e,r,r)}o.replaceBlocks([c.clientId,p.clientId],[{...c,attributes:{...c.attributes,...k}},..._.slice(1)],0)},lr=(e,t=!0)=>kn(e,t);function sr(e,t){return lr([e],t)}function cr(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 ur(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function pr(){return{type:"START_TYPING"}}function dr(){return{type:"STOP_TYPING"}}function fr(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function mr(){return{type:"STOP_DRAGGING_BLOCKS"}}function yr(){return H()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function gr(){return H()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function hr(e,t,n,r){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}:{type:"SELECTION_CHANGE",...e}}const br=(e,t,n)=>({dispatch:r})=>{const o=(0,l.getDefaultBlockName)();if(!o)return;const i=(0,l.createBlock)(o,e);return r.insertBlock(i,n,t)};function vr(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function _r(e){return gn(e,!0)}function kr(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Sr(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Er(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const wr=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},Cr=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},xr=e=>({dispatch:t,select:n})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart();e&&t.selectBlock(n.getBlockHierarchyRootClientId(e))}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,Cn.speak)((0,b.__)("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?(0,Cn.speak)((0,b.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,Cn.speak)((0,b.__)("You are currently in zoom-out mode."))},Ir=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Cn.speak)((0,b.__)("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."))},Ar=(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=>!(0,l.hasBlockSupport)(e,"multiple",!0))))return;const a=n.getBlockRootClientId(e[0]),s=An(e),c=n.getBlockIndex(s[s.length-1]),u=o.map((e=>(0,l.__experimentalCloneSanitizedBlock)(e)));return r.insertBlocks(u,c+1,a,t),u.length>1&&t&&r.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map((e=>e.clientId))},Br=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e);if(t.getTemplateLock(r))return;const o=t.getBlockIndex(e);return n.insertDefaultBlock({},r,o)},Pr=e=>({select:t,dispatch:n})=>{if(!e)return;const r=t.getBlockRootClientId(e);if(t.getTemplateLock(r))return;const o=t.getBlockIndex(e);return n.insertDefaultBlock({},r,o+1)};function Tr(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Or=e=>async({dispatch:t})=>{t(Tr(e,!0)),await new Promise((e=>setTimeout(e,150))),t(Tr(e,!1))};function Mr(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Rr(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Nr(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const Fr="core/block-editor";var Lr=window.wp.privateApis;const{lock:Dr,unlock:Ur}=(0,Lr.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-editor"),jr={reducer:N,selectors:t,actions:i},zr=(0,m.createReduxStore)(Fr,{...jr,persist:["preferences"]}),Vr=(0,m.registerStore)(Fr,{...jr,persist:["preferences"]});Ur(Vr).registerPrivateActions(o),Ur(Vr).registerPrivateSelectors(e),Ur(zr).registerPrivateActions(o),Ur(zr).registerPrivateSelectors(e);const Gr={name:"",isSelected:!1},Hr=(0,c.createContext)(Gr),{Provider:$r}=Hr;function Wr(){return(0,c.useContext)(Hr)}function Kr(){const{isSelected:e,clientId:t,name:n}=Wr();return(0,m.useSelect)((r=>{if(e)return!0;const{getBlockName:o,isFirstMultiSelectedBlock:i,getMultiSelectedBlockClientIds:a}=r(zr);return!!i(t)&&a().every((e=>o(e)===n))}),[t,e,n])}function qr({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:r=!1}){const o=function(e,t){const n=Kr(),{clientId:r}=Wr(),o=(0,m.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:o}=e(zr),{hasBlockSupport:i}=e(l.store);return t&&i(n(r),"__experimentalExposeControlsToChildren",!1)&&o(r)}),[t,r]);return n?y[e]?.Fill:o?y.parent.Fill:null}(e,r);if(!o)return null;const i=(0,c.createElement)(c.Fragment,null,"default"===e&&(0,c.createElement)(f.ToolbarGroup,{controls:t}),n);return(0,c.createElement)(f.__experimentalStyleProvider,{document:document},(0,c.createElement)(o,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,c.createElement)(t,{...n},e)),i)})))}window.wp.warning;const{ComponentsContext:Jr}=Ur(f.privateApis);function Zr({group:e="default",...t}){const n=(0,c.useContext)(f.__experimentalToolbarContext),r=(0,c.useContext)(Jr),o=(0,c.useMemo)((()=>({forwardedContext:[[f.__experimentalToolbarContext.Provider,{value:n}],[Jr.Provider,{value:r}]]})),[n,r]),i=y[e]?.Slot,a=(0,f.__experimentalUseSlotFills)(i?.__unstableName);if(!i)return"undefined"!=typeof process&&process.env,null;if(!a?.length)return null;const l=(0,c.createElement)(i,{...t,bubblesVirtually:!0,fillProps:o});return"default"===e?l:(0,c.createElement)(f.ToolbarGroup,null,l)}const Yr=qr;Yr.Slot=Zr;const Qr=e=>(0,c.createElement)(qr,{group:"inline",...e});Qr.Slot=e=>(0,c.createElement)(Zr,{group:"inline",...e});var Xr=Yr;var eo=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));var to=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"}));var no=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));var ro=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));var oo=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"}));var io=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var ao=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));const lo={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function so(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function co(e,t=lo,n,r){let o="";return t?.[n]?.spacingStyles?.length&&r&&t[n].spacingStyles.forEach((t=>{o+=`${so(e,t.selector.trim())} { `,o+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||r}`)).join("; "),o+="; }"})),o}function uo(e){const{contentSize:t,wideSize:n,type:r="default"}=e,o={},i=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return i.test(t)&&"constrained"===r&&(o.none=(0,b.sprintf)((0,b.__)("Max %s wide"),t)),i.test(n)&&(o.wide=(0,b.sprintf)((0,b.__)("Max %s wide"),n)),o}var po=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}}));var fo=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M8.2 5.3h8V3.8h-8v1.5zm0 14.5h8v-1.5h-8v1.5zm3.5-6.5h1v-1h-1v1zm1-6.5h-1v.5h1v-.5zm-1 4.5h1v-1h-1v1zm0-2h1v-1h-1v1zm0 7.5h1v-.5h-1v.5zm1-2.5h-1v1h1v-1zm-8.5 1.5h1.5v-8H4.2v8zm14.5-8v8h1.5v-8h-1.5zm-5 4.5v-1h-1v1h1zm-6.5 0h.5v-1h-.5v1zm3.5-1v1h1v-1h-1zm6 1h.5v-1h-.5v1zm-8-1v1h1v-1h-1zm6 0v1h1v-1h-1z",style:{fill:"#1e1e1e",fillRule:"evenodd",clipRule:"evenodd"}}));var mo=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(j.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}}));var yo=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(j.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e"}}));var go=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(j.Path,{d:"M7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}}));var ho=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M20.5 7H19v10h1.5V7z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(j.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}}));var bo=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M7 20.5h10V19H7v1.5z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(j.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}}));const vo=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M5 17H3.5V7H5v10z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(j.Path,{d:"M7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}}));const _o=["top","right","bottom","left"],ko={top:void 0,right:void 0,bottom:void 0,left:void 0},So={custom:po,axial:fo,horizontal:mo,vertical:yo,top:go,right:ho,bottom:bo,left:vo},Eo={default:(0,b.__)("Spacing control"),top:(0,b.__)("Top"),bottom:(0,b.__)("Bottom"),left:(0,b.__)("Left"),right:(0,b.__)("Right"),mixed:(0,b.__)("Mixed"),vertical:(0,b.__)("Vertical"),horizontal:(0,b.__)("Horizontal"),axial:(0,b.__)("Horizontal & vertical"),custom:(0,b.__)("Custom")},wo={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function Co(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function xo(e,t){if(!Co(e))return e;const n=Bo(e),r=t.find((e=>String(e.slug)===n));return r?.size}function Io(e,t){if(!e||Co(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 Ao(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function Bo(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 Po(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 To(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=Ao(n?.top)||t,o=Ao(n?.left)||t;return r===o?r:`${r} ${o}`}const Oo=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Mo=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Ro=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),No=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),Fo=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),Lo={top:{icon:Ro,title:(0,b._x)("Align top","Block vertical alignment setting")},center:{icon:Mo,title:(0,b._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Oo,title:(0,b._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:No,title:(0,b._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Fo,title:(0,b._x)("Space between","Block vertical alignment setting")}},Do=["top","center","bottom"];var Uo=function({value:e,onChange:t,controls:n=Do,isCollapsed:r=!0,isToolbar:o}){const i=Lo[e],a=Lo.top,l=o?f.ToolbarGroup:f.ToolbarDropdownMenu,s=o?{isCollapsed:r}:{};return(0,c.createElement)(l,{icon:i?i.icon:a.icon,label:(0,b._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...Lo[n],isActive:e===n,role:r?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})),...s})};const jo=e=>(0,c.createElement)(Uo,{...e,isToolbar:!1}),zo=e=>(0,c.createElement)(Uo,{...e,isToolbar:!0}),Vo={left:eo,center:to,right:no,"space-between":ro,stretch:oo};var Go=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)},l=r?Vo[r]:Vo.left,s=[{name:"left",icon:eo,title:(0,b.__)("Justify items left"),isActive:"left"===r,onClick:()=>a("left")},{name:"center",icon:to,title:(0,b.__)("Justify items center"),isActive:"center"===r,onClick:()=>a("center")},{name:"right",icon:no,title:(0,b.__)("Justify items right"),isActive:"right"===r,onClick:()=>a("right")},{name:"space-between",icon:ro,title:(0,b.__)("Space between items"),isActive:"space-between"===r,onClick:()=>a("space-between")},{name:"stretch",icon:oo,title:(0,b.__)("Stretch items"),isActive:"stretch"===r,onClick:()=>a("stretch")}],u=i?f.ToolbarGroup:f.ToolbarDropdownMenu,p=i?{isCollapsed:t}:{};return(0,c.createElement)(u,{icon:l,popoverProps:o,label:(0,b.__)("Change items justification"),controls:s.filter((t=>e.includes(t.name))),...p})};const Ho=e=>(0,c.createElement)(Go,{...e,isToolbar:!1}),$o=e=>(0,c.createElement)(Go,{...e,isToolbar:!0});var Wo=window.lodash;const Ko=["color","border","dimensions","typography","spacing"],qo={"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},Jo={"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"},Zo=e=>Jo[e]||e;function Yo(e){const{name:t,clientId:n}=Wr();return(0,m.useSelect)((r=>{if(Ko.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let o=(0,s.applyFilters)("blockEditor.useSetting.before",void 0,e,n,t);if(void 0!==o)return o;const i=Zo(e),a=[n,...r(zr).getBlockParents(n,!0)];for(const e of a){const n=r(zr).getBlockName(e);if((0,l.hasBlockSupport)(n,"__experimentalSettings",!1)){var c;const n=r(zr).getBlockAttributes(e);if(o=null!==(c=(0,Wo.get)(n,`settings.blocks.${t}.${i}`))&&void 0!==c?c:(0,Wo.get)(n,`settings.${i}`),void 0!==o)break}}const u=r(zr).getSettings();if(void 0===o){var p;const e=`__experimentalFeatures.${i}`,n=`__experimentalFeatures.blocks.${t}.${i}`;o=null!==(p=(0,Wo.get)(u,n))&&void 0!==p?p:(0,Wo.get)(u,e)}var d,f;if(void 0!==o)return l.__EXPERIMENTAL_PATHS_WITH_MERGE[i]?null!==(d=null!==(f=o.custom)&&void 0!==f?f:o.theme)&&void 0!==d?d:o.default:o;const m=qo[i]?qo[i](u):void 0;return void 0!==m?m:"typography.dropCap"===i||void 0}),[t,n,e])}const Qo="1600px",Xo="320px",ei=1,ti=.25,ni=.75,ri="14px";function oi({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewPortWidth:r=Xo,maximumViewPortWidth:o=Qo,scaleFactor:i=ei,minimumFontSizeLimit:a}){if(a=ii(a)?a:ri,n){const r=ii(n);if(!r?.unit)return null;const o=ii(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),ti),ni),i=ai(r.value*n,3);e=o?.value&&i<o?.value?`${o.value}${o.unit}`:`${i}${r.unit}`}}const l=ii(e),s=l?.unit||"rem",c=ii(t,{coerceTo:s});if(!l||!c)return null;const u=ii(e,{coerceTo:"rem"}),p=ii(o,{coerceTo:s}),d=ii(r,{coerceTo:s});if(!p||!d||!u)return null;const f=ai(d.value/100,3),m=ai(f,3)+s,y=ai(((c.value-l.value)/(p.value-d.value)*100||1)*i,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${m}) * ${y})`}, ${t})`}function ii(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}$`),l=e.match(a);if(!l||l.length<3)return null;let[,s,c]=l,u=parseFloat(s);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:ai(u,3),unit:c}}function ai(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function li(e,t){const{size:n}=e;if(!si(t))return n;if(!n||"0"===n||!1===e?.fluid)return n;const r="object"==typeof t?.fluid?t?.fluid:{},o=oi({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:r?.minFontSize,maximumViewPortWidth:r?.maxViewPortWidth});return o||n}function si(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function ci(e){const t=e?.typography,n=e?.layout,r=ii(n?.wideSize)?n?.wideSize:null;return si(t)&&r?{fluid:{maxViewPortWidth:r,...t.fluid}}:{fluid:t?.fluid}}const ui="body",pi=[{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)=>li(e,ci(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:[]}],di={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function fi(e,t,n,r,o){const i=[(0,Wo.get)(e,["blocks",t,...n]),(0,Wo.get)(e,n)];for(const a of i)if(a){const i=["custom","theme","default"];for(const l of i){const i=a[l];if(i){const a=i.find((e=>e[r]===o));if(a){if("slug"===r)return a;return fi(e,t,n,"slug",a.slug)[r]===a[r]?a:void 0}}}}}function mi(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=(0,Wo.get)(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,...l]=i;return"preset"===a?function(e,t,n,[r,o]){const i=pi.find((e=>e.cssVarInfix===r));if(!i)return n;const a=fi(e.settings,t,i.path,"slug",o);if(a){const{valueKey:n}=i;return mi(e,t,a[n])}return n}(e,t,n,l):"custom"===a?function(e,t,n,r){var o;const i=null!==(o=(0,Wo.get)(e.settings,["blocks",t,"custom",...r]))&&void 0!==o?o:(0,Wo.get)(e.settings,["custom",...r]);return i?mi(e,t,i):n}(e,t,n,l):n}function yi(e,t){const n=e.split(","),r=t.split(","),o=[];return n.forEach((e=>{r.forEach((t=>{o.push(`${e.trim()} ${t.trim()}`)}))})),o.join(", ")}function gi(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:h()(e?.styles,t?.styles)&&h()(e?.settings,t?.settings)}const hi=(0,c.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),bi={settings:{},styles:{}},vi=["appearanceTools","useRootPaddingAwareAlignments","border.color","border.radius","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","position.fixed","position.sticky","spacing.customSpacingSize","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textColumns","typography.textDecoration","typography.textTransform"],_i=()=>{const{user:e,setUserConfig:t}=(0,c.useContext)(hi);return[!!e&&!h()(e,bi),(0,c.useCallback)((()=>t((()=>bi))),[t])]};function ki(e,t,n="all"){const{setUserConfig:r,...o}=(0,c.useContext)(hi),i=t?".blocks."+t:"",a=e?"."+e:"",l=`settings${i}${a}`,s=`settings${a}`,u="all"===n?"merged":n;return[(0,c.useMemo)((()=>{const t=o[u];if(!t)throw"Unsupported source";var n;if(e)return null!==(n=(0,Wo.get)(t,l))&&void 0!==n?n:(0,Wo.get)(t,s);const r={};return vi.forEach((e=>{var n;const o=null!==(n=(0,Wo.get)(t,`settings${i}.${e}`))&&void 0!==n?n:(0,Wo.get)(t,`settings.${e}`);o&&(0,Wo.set)(r,e,o)})),r}),[o,u,e,l,s,i]),e=>{r((t=>{const n=JSON.parse(JSON.stringify(t));return(0,Wo.set)(n,l,e),n}))}]}function Si(e,t,n="all",{shouldDecodeEncode:r=!0}={}){const{merged:o,base:i,user:a,setUserConfig:l}=(0,c.useContext)(hi),s=e?"."+e:"",u=t?`styles.blocks.${t}${s}`:`styles${s}`;let p,d;switch(n){case"all":p=(0,Wo.get)(o,u),d=r?mi(o,t,p):p;break;case"user":p=(0,Wo.get)(a,u),d=r?mi(o,t,p):p;break;case"base":p=(0,Wo.get)(i,u),d=r?mi(i,t,p):p;break;default:throw"Unsupported source"}return[d,n=>{l((i=>{const a=JSON.parse(JSON.stringify(i));return(0,Wo.set)(a,u,r?function(e,t,n,r){if(!r)return r;const o=di[n],i=pi.find((e=>e.cssVarInfix===o));if(!i)return r;const{valueKey:a,path:l}=i,s=fi(e,t,l,a,r);return s?`var:preset|${o}|${s.slug}`:r}(o.settings,t,e,n):n),a}))}]}function Ei(e,t,n){const{supportedStyles:r,supports:o}=(0,m.useSelect)((e=>({supportedStyles:Ur(e(l.store)).getSupportedStyles(t,n),supports:e(l.store).getBlockType(t)?.supports})),[t,n]);return(0,c.useMemo)((()=>{const t={...e};return r.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1}),r.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&r.includes("color"),background:t.color?.background&&(r.includes("background")||r.includes("backgroundColor")),button:t.color?.button&&r.includes("buttonColor"),heading:t.color?.heading&&r.includes("headingColor"),link:t.color?.link&&r.includes("linkColor"),caption:t.color?.caption&&r.includes("captionColor")},r.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),r.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textTransform","textDecoration"].forEach((e=>{r.includes(e)||(t.typography={...t.typography,[e]:!1})})),r.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{r.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{r.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(o?.spacing?.[e])?o?.spacing?.[e]:o?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),r.includes("minHeight")||(t.dimensions={...t.dimensions,minHeight:!1}),["radius","color","style","width"].forEach((e=>{r.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),t.shadow=!!r.includes("shadow")&&t.shadow,t}),[e,r,o])}function wi(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,r=e?.color?.palette?.default,o=e?.color?.defaultPalette;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,b._x)("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:(0,b._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:(0,b._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,r,o])}function Ci(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,r=e?.color?.gradients?.default,o=e?.color?.defaultGradients;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,b._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),o&&r&&r.length&&e.push({name:(0,b._x)("Default","Indicates this palette comes from WordPress."),gradients:r}),t&&t.length&&e.push({name:(0,b._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,r,o])}var xi=function(){return xi=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},xi.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Ii(e){return e.toLowerCase()}var Ai=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Bi=/[^A-Z0-9]+/gi;function Pi(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?Ai:n,o=t.stripRegexp,i=void 0===o?Bi:o,a=t.transform,l=void 0===a?Ii:a,s=t.delimiter,c=void 0===s?" ":s,u=Ti(Ti(e,r,"$1\0$2"),i,"\0"),p=0,d=u.length;"\0"===u.charAt(p);)p++;for(;"\0"===u.charAt(d-1);)d--;return u.slice(p,d).split("\0").map(l).join(c)}function Ti(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Oi(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),Pi(e,xi({delimiter:"."},t))}(e,xi({delimiter:"-"},t))}function Mi(e){let t=e;var n;"string"!=typeof e&&(t=null!==(n=e?.toString?.())&&void 0!==n?n:"");return t=t.replace(/['\u2019]/,""),Oi(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function Ri(e){return e&&"object"==typeof e?{...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Ri(t)])))}:e}function Ni(e,t,n){const r=function(e){return Array.isArray(e)?e:"number"==typeof e?[e.toString()]:[e]}(t),o=e?Ri(e):{};return r.reduce(((e,t,o)=>(void 0===e[t]&&(e[t]={}),o===r.length-1&&(e[t]=n),e[t])),o),o}const Fi=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,Fi(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function Li(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 l=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=(0,Wo.get)(a,e);t&&(l={...l,attributes:Ni(l.attributes,e,t)})}))})),l}function Di(e,t,n){const r=(0,l.getBlockSupport)(e,t),o=r?.__experimentalSkipSerialization;return Array.isArray(o)?o.includes(n):o}function Ui(e,t){const n=Yo("typography.fontFamilies"),r=Yo("typography.fontSizes"),o=Yo("typography.customFontSize"),i=Yo("typography.fontStyle"),a=Yo("typography.fontWeight"),l=Yo("typography.lineHeight"),s=Yo("typography.textColumns"),u=Yo("typography.textDecoration"),p=Yo("typography.textTransform"),d=Yo("typography.letterSpacing"),f=Yo("spacing.padding"),m=Yo("spacing.margin"),y=Yo("spacing.blockGap"),g=Yo("spacing.spacingSizes"),h=Yo("spacing.units"),b=Yo("dimensions.minHeight"),v=Yo("layout"),_=Yo("border.color"),k=Yo("border.radius"),S=Yo("border.style"),E=Yo("border.width"),w=Yo("color.custom"),C=Yo("color.palette.custom"),x=Yo("color.customDuotone"),I=Yo("color.palette.theme"),A=Yo("color.palette.default"),B=Yo("color.defaultPalette"),P=Yo("color.defaultDuotone"),T=Yo("color.duotone.custom"),O=Yo("color.duotone.theme"),M=Yo("color.duotone.default"),R=Yo("color.gradients.custom"),N=Yo("color.gradients.theme"),F=Yo("color.gradients.default"),L=Yo("color.defaultGradients"),D=Yo("color.customGradient"),U=Yo("color.background"),j=Yo("color.link"),z=Yo("color.text");return Ei((0,c.useMemo)((()=>({color:{palette:{custom:C,theme:I,default:A},gradients:{custom:R,theme:N,default:F},duotone:{custom:T,theme:O,default:M},defaultGradients:L,defaultPalette:B,defaultDuotone:P,custom:w,customGradient:D,customDuotone:x,background:U,link:j,text:z},typography:{fontFamilies:{custom:n},fontSizes:{custom:r},customFontSize:o,fontStyle:i,fontWeight:a,lineHeight:l,textColumns:s,textDecoration:u,textTransform:p,letterSpacing:d},spacing:{spacingSizes:{custom:g},padding:f,margin:m,blockGap:y,units:h},border:{color:_,radius:k,style:S,width:E},dimensions:{minHeight:b},layout:v,parentLayout:t})),[n,r,o,i,a,l,s,u,p,d,f,m,y,g,h,b,v,t,_,k,S,E,w,C,x,I,A,B,P,T,O,M,R,N,F,L,D,U,j,z]),e)}const ji={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},zi={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Vi={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},Gi=["wrap","nowrap"];var Hi={name:"flex",label:(0,b.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:r=!0}=n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.Flex,null,(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(Ki,{layout:e,onChange:t})),(0,c.createElement)(f.FlexItem,null,r&&(0,c.createElement)(Ji,{layout:e,onChange:t}))),(0,c.createElement)(qi,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:r=!0}=n;return(0,c.createElement)(Xr,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(Ki,{layout:e,onChange:t,isToolbar:!0}),r&&(0,c.createElement)($i,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=lo}){const{orientation:a="horizontal"}=t,l=n?.spacing?.blockGap&&!Di(r,"spacing","blockGap")?To(n?.spacing?.blockGap,"0.5em"):void 0,s=ji[t.justifyContent],c=Gi.includes(t.flexWrap)?t.flexWrap:"wrap",u=Vi[t.verticalAlignment],p=zi[t.justifyContent]||zi.left;let d="";const f=[];return c&&"wrap"!==c&&f.push(`flex-wrap: ${c}`),"horizontal"===a?(u&&f.push(`align-items: ${u}`),s&&f.push(`justify-content: ${s}`)):(u&&f.push(`justify-content: ${u}`),f.push("flex-direction: column"),f.push(`align-items: ${p}`)),f.length&&(d=`${so(e)} {\n\t\t\t\t${f.join("; ")};\n\t\t\t}`),o&&l&&(d+=co(e,i,"flex",l)),d},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function $i({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:r="horizontal"}=e,o="horizontal"===r?Vi.center:Vi.top,{verticalAlignment:i=o}=e,a=n=>{t({...e,verticalAlignment:n})};if(n)return(0,c.createElement)(jo,{onChange:a,value:i,controls:"horizontal"===r?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const l=[{value:"flex-start",label:(0,b.__)("Align items top")},{value:"center",label:(0,b.__)("Align items center")},{value:"flex-end",label:(0,b.__)("Align items bottom")}];return(0,c.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,c.createElement)("legend",null,(0,b.__)("Vertical alignment")),(0,c.createElement)("div",null,l.map(((e,t,n)=>(0,c.createElement)(f.Button,{key:e,label:n,icon:t,isPressed:i===e,onClick:()=>a(e)})))))}const Wi={placement:"bottom-start"};function Ki({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,c.createElement)(Ho,{allowedControls:a,value:r,onChange:i,popoverProps:Wi});const l=[{value:"left",icon:eo,label:(0,b.__)("Justify items left")},{value:"center",icon:to,label:(0,b.__)("Justify items center")},{value:"right",icon:no,label:(0,b.__)("Justify items right")}];return"horizontal"===o?l.push({value:"space-between",icon:ro,label:(0,b.__)("Space between items")}):l.push({value:"stretch",icon:oo,label:(0,b.__)("Stretch items")}),(0,c.createElement)(f.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Justification"),value:r,onChange:i,className:"block-editor-hooks__flex-layout-justification-controls"},l.map((({value:e,icon:t,label:n})=>(0,c.createElement)(f.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n}))))}function qi({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,c.createElement)(f.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Ji({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:r,justifyContent:o}=e;return(0,c.createElement)(f.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,b.__)("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,c.createElement)(f.__experimentalToggleGroupControlOptionIcon,{icon:io,value:"horizontal",label:(0,b.__)("Horizontal")}),(0,c.createElement)(f.__experimentalToggleGroupControlOptionIcon,{icon:ao,value:"vertical",label:(0,b.__)("Vertical")}))}var Zi={name:"default",label:(0,b.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:r,layoutDefinitions:o=lo}){const i=To(t?.spacing?.blockGap);let a="";Di(n,"spacing","blockGap")||(i?.top?a=To(i?.top):"string"==typeof i&&(a=To(i)));let l="";return r&&a&&(l+=co(e,o,"default",a)),l},getOrientation(){return"vertical"},getAlignments(e,t){const n=uo(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}};var Yi=function({icon:e,size:t=24,...n}){return(0,c.cloneElement)(e,{width:t,height:t,...n})};var Qi=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"}));var Xi=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),ea=window.wp.styleEngine,ta={name:"constrained",label:(0,b.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:r,contentSize:o,justifyContent:i="center"}=e,{allowJustification:a=!0}=n,l=[{value:"left",icon:eo,label:(0,b.__)("Justify items left")},{value:"center",icon:to,label:(0,b.__)("Justify items center")},{value:"right",icon:no,label:(0,b.__)("Justify items right")}],s=(0,f.__experimentalUseCustomUnits)({availableUnits:Yo("spacing.units")||["%","px","em","rem","vw"]});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(f.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,b.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:s}),(0,c.createElement)(Yi,{icon:Qi})),(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(f.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,b.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:s}),(0,c.createElement)(Yi,{icon:Xi}))),(0,c.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,b.__)("Customize the width for all elements that are assigned to the center or wide columns.")),a&&(0,c.createElement)(f.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Justification"),value:i,onChange:n=>{t({...e,justifyContent:n})}},l.map((({value:e,icon:t,label:n})=>(0,c.createElement)(f.__experimentalToggleGroupControlOptionIcon,{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=lo}){const{contentSize:a,wideSize:l,justifyContent:s}=t,c=To(n?.spacing?.blockGap);let u="";Di(r,"spacing","blockGap")||(c?.top?u=To(c?.top):"string"==typeof c&&(u=To(c)));const p="left"===s?"0 !important":"auto !important",d="right"===s?"0 !important":"auto !important";let f=a||l?`\n\t\t\t\t\t${so(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:l};\n\t\t\t\t\t\tmargin-left: ${p};\n\t\t\t\t\t\tmargin-right: ${d};\n\t\t\t\t\t}\n\t\t\t\t\t${so(e,"> .alignwide")}  {\n\t\t\t\t\t\tmax-width: ${null!=l?l:a};\n\t\t\t\t\t}\n\t\t\t\t\t${so(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===s?f+=`${so(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${p}; }`:"right"===s&&(f+=`${so(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${d}; }`),n?.spacing?.padding){(0,ea.getCSSRules)(n).forEach((t=>{"paddingRight"===t.key?f+=`\n\t\t\t\t\t${so(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${so(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+=co(e,i,"constrained",u)),f},getOrientation(){return"vertical"},getAlignments(e){const t=uo(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}};const na={px:600,"%":100,vw:100,vh:100,em:38,rem:38};var ra={name:"grid",label:(0,b.__)("Grid"),inspectorControls:function({layout:e={},onChange:t}){return e?.columnCount?(0,c.createElement)(ia,{layout:e,onChange:t}):(0,c.createElement)(oa,{layout:e,onChange:t})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:r,hasBlockGapSupport:o,layoutDefinitions:i=lo}){const{minimumColumnWidth:a="12rem",columnCount:l=null}=t,s=n?.spacing?.blockGap&&!Di(r,"spacing","blockGap")?To(n?.spacing?.blockGap,"0.5em"):void 0;let c="";const u=[];return l?u.push(`grid-template-columns: repeat(${l}, minmax(0, 1fr))`):a&&u.push(`grid-template-columns: repeat(auto-fill, minmax(min(${a}, 100%), 1fr))`),u.length&&(c=`${so(e)} { ${u.join("; ")}; }`),o&&s&&(c+=co(e,i,"grid",s)),c},getOrientation(){return"horizontal"},getAlignments(){return[]}};function oa({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[r,o]=(0,f.__experimentalParseQuantityAndUnitFromRawValue)(n);return(0,c.createElement)("fieldset",null,(0,c.createElement)(f.BaseControl.VisualLabel,{as:"legend"},(0,b.__)("Minimum column width")),(0,c.createElement)(f.Flex,{gap:4},(0,c.createElement)(f.FlexItem,{isBlock:!0},(0,c.createElement)(f.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:n})},onUnitChange:n=>{let i;["em","rem"].includes(n)&&"px"===o?i=(r/16).toFixed(2)+n:["em","rem"].includes(o)&&"px"===n?i=Math.round(16*r)+n:["vh","vw","%"].includes(n)&&r>100&&(i=100+n),t({...e,minimumColumnWidth:i})},value:n,min:0})),(0,c.createElement)(f.FlexItem,{isBlock:!0},(0,c.createElement)(f.RangeControl,{onChange:n=>{t({...e,minimumColumnWidth:[n,o].join("")})},value:r,min:0,max:na[o]||600,withInputField:!1}))))}function ia({layout:e,onChange:t}){const{columnCount:n=3}=e;return(0,c.createElement)(f.RangeControl,{label:(0,b.__)("Columns"),value:n,onChange:n=>t({...e,columnCount:n}),min:1,max:6})}const aa=[Zi,Hi,ta,ra];function la(e="default"){return aa.find((t=>t.name===e))}const sa={type:"default"},ca=(0,c.createContext)(sa),ua=ca.Provider;function pa(){return(0,c.useContext)(ca)}function da({layout:e={},css:t,...n}){const r=la(e.type),o=null!==Yo("spacing.blockGap");if(r){if(t)return(0,c.createElement)("style",null,t);const i=r.getLayoutStyle?.({hasBlockGapSupport:o,layout:e,...n});if(i)return(0,c.createElement)("style",null,i)}return null}const fa=[],ma=["none","left","center","right","wide","full"],ya=["wide","full"];function ga(e=ma){e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n,isBlockBasedTheme:r}=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout,isBlockBasedTheme:n.__unstableIsBlockBasedTheme}}),[]),o=pa(),i=la(o?.type),a=i.getAlignments(o,r);if(n){const t=a.filter((({name:t})=>e.includes(t)));return 1===t.length&&"none"===t[0].name?fa:t}if("default"!==i.name&&"constrained"!==i.name)return fa;const{alignments:l=ma}=o,s=e.filter((e=>(o.alignments||t||!ya.includes(e))&&l.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?fa:s}var ha=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"}));var ba=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"}));var va=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"}));var _a=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"}));const ka={none:{icon:ha,title:(0,b._x)("None","Alignment option")},left:{icon:ba,title:(0,b.__)("Align left")},center:{icon:Qi,title:(0,b.__)("Align center")},right:{icon:va,title:(0,b.__)("Align right")},wide:{icon:Xi,title:(0,b.__)("Wide width")},full:{icon:_a,title:(0,b.__)("Full width")}};var Sa=function({value:e,onChange:t,controls:n,isToolbar:r,isCollapsed:o=!0}){const i=ga(n);if(!!!i.length)return null;function a(n){t([e,"none"].includes(n)?void 0:n)}const l=ka[e],s=ka.none,u=r?f.ToolbarGroup:f.ToolbarDropdownMenu,d={icon:l?l.icon:s.icon,label:(0,b.__)("Align")},m=r?{isCollapsed:o,controls:i.map((({name:t})=>({...ka[t],isActive:e===t||!e&&"none"===t,role:o?"menuitemradio":void 0,onClick:()=>a(t)})))}:{toggleProps:{describedBy:(0,b.__)("Change alignment")},children:({onClose:t})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},i.map((({name:n,info:r})=>{const{icon:o,title:i}=ka[n],l=n===e||!e&&"none"===n;return(0,c.createElement)(f.MenuItem,{key:n,icon:o,iconPosition:"left",className:p()("components-dropdown-menu__menu-item",{"is-active":l}),isSelected:l,onClick:()=>{a(n),t()},role:"menuitemradio",info:r},i)}))))};return(0,c.createElement)(u,{...d,...m})};const Ea=e=>(0,c.createElement)(Sa,{...e,isToolbar:!1}),wa=e=>(0,c.createElement)(Sa,{...e,isToolbar:!0}),Ca=(0,c.createContext)(null);function xa(e){var t;const{clientId:n=""}=null!==(t=(0,c.useContext)(Ca))&&void 0!==t?t:{},r=(0,m.useSelect)((e=>Ur(e(zr)).getBlockEditingMode(n)),[n]),{setBlockEditingMode:o,unsetBlockEditingMode:i}=Ur((0,m.useDispatch)(zr));return(0,c.useEffect)((()=>(e&&o(n,e),()=>{e&&i(n)})),[n,e]),r}const Ia=["left","center","right","wide","full"],Aa=["wide","full"];function Ba(e,t=!0,n=!0){let r;return r=Array.isArray(e)?Ia.filter((t=>e.includes(t))):!0===e?[...Ia]:[],!n||!0===e&&!t?r.filter((e=>!Aa.includes(e))):r}const Pa=(0,d.createHigherOrderComponent)((e=>t=>{const n=(0,c.createElement)(e,{key:"edit",...t}),{name:r}=t,o=ga(Ba((0,l.getBlockSupport)(r,"align"),(0,l.hasBlockSupport)(r,"alignWide",!0))).map((({name:e})=>e)),i=xa();if(!o.length||"default"!==i)return n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Xr,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(Ea,{value:t.attributes.align,onChange:e=>{if(!e){const n=(0,l.getBlockType)(t.name),r=n?.attributes?.align?.default;r&&(e="")}t.setAttributes({align:e})},controls:o})),n)}),"withToolbarControls"),Ta=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r}=t,{align:o}=r,i=ga(Ba((0,l.getBlockSupport)(n,"align"),(0,l.hasBlockSupport)(n,"alignWide",!0)));if(void 0===o)return(0,c.createElement)(e,{...t});let a=t.wrapperProps;return i.some((e=>e.name===o))&&(a={...a,"data-align":o}),(0,c.createElement)(e,{...t,wrapperProps:a})}),"withDataAlign");(0,s.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||(0,l.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Ia,""]}}),e})),(0,s.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Ta),(0,s.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Pa),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:r}=n;return Ba((0,l.getBlockSupport)(t,"align"),(0,l.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=p()(`align${r}`,e.className)),e})),(0,s.addFilter)("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 Oa=(0,f.createSlotFill)("InspectorControls"),Ma=(0,f.createSlotFill)("InspectorAdvancedControls"),Ra=(0,f.createSlotFill)("InspectorControlsBorder"),Na=(0,f.createSlotFill)("InspectorControlsColor"),Fa=(0,f.createSlotFill)("InspectorControlsFilter"),La=(0,f.createSlotFill)("InspectorControlsDimensions"),Da=(0,f.createSlotFill)("InspectorControlsPosition"),Ua=(0,f.createSlotFill)("InspectorControlsTypography");var ja={default:Oa,advanced:Ma,border:Ra,color:Na,filter:Fa,dimensions:La,list:(0,f.createSlotFill)("InspectorControlsListView"),settings:Oa,styles:(0,f.createSlotFill)("InspectorControlsStyles"),typography:Ua,position:Da};function za({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:r}){n&&(H()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const o=Kr(),i=ja[t]?.Fill;return i?o?(0,c.createElement)(f.__experimentalStyleProvider,{document:document},(0,c.createElement)(i,null,(t=>(0,c.createElement)(Va,{fillProps:t,children:e,resetAllFilter:r})))):null:("undefined"!=typeof process&&process.env,null)}function Va({children:e,resetAllFilter:t,fillProps:n}){const{registerResetAllFilter:r,deregisterResetAllFilter:o}=n;(0,c.useEffect)((()=>(t&&r&&r(t),()=>{t&&o&&o(t)})),[t,r,o]);const i=n&&Object.keys(n).length>0?n:null;return(0,c.createElement)(f.__experimentalToolsPanelContext.Provider,{value:i},e)}function Ga({children:e,group:t,label:n}){const{updateBlockAttributes:r}=(0,m.useDispatch)(zr),{getBlockAttributes:o,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:l}=(0,m.useSelect)(zr),s=a(),u=(0,c.useCallback)(((e=[])=>{const t={},n=l()?i():[s];n.forEach((n=>{const{style:r}=o(n);let i={style:r};e.forEach((e=>{i={...i,...e(i)}})),i={...i,style:Fi(i.style)},t[n]=i})),r(n,t,!0)}),[o,i,l,s,r]);return(0,c.createElement)(f.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:u,key:s,panelId:s,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},e)}function Ha({Slot:e,...t}){const n=(0,c.useContext)(f.__experimentalToolsPanelContext);return(0,c.createElement)(e,{...t,fillProps:n,bubblesVirtually:!0})}function $a({__experimentalGroup:e,group:t="default",label:n,...r}){e&&(H()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const o=ja[t]?.Slot,i=(0,f.__experimentalUseSlotFills)(o?.__unstableName);return o?i?.length?n?(0,c.createElement)(Ga,{group:t,label:n},(0,c.createElement)(Ha,{...r,Slot:o})):(0,c.createElement)(o,{...r,bubblesVirtually:!0}):null:("undefined"!=typeof process&&process.env,null)}const Wa=za;Wa.Slot=$a;const Ka=e=>(0,c.createElement)(za,{...e,group:"advanced"});Ka.Slot=e=>(0,c.createElement)($a,{...e,group:"advanced"}),Ka.slotName="InspectorAdvancedControls";var qa=Wa;const Ja=/[\s#]/g,Za={type:"string",source:"attribute",attribute:"id",selector:"*"};const Ya=(0,d.createHigherOrderComponent)((e=>t=>{const n=(0,l.hasBlockSupport)(t.name,"anchor"),r=xa();if(n&&t.isSelected){const n="web"===c.Platform.OS,o=(0,c.createElement)(f.TextControl,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:(0,b.__)("HTML anchor"),help:(0,c.createElement)(c.Fragment,null,(0,b.__)("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,c.createElement)(f.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/page-jumps/")},(0,b.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,b.__)("Add an anchor"),onChange:e=>{e=e.replace(Ja,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),n&&"default"===r&&(0,c.createElement)(qa,{group:"advanced"},o),!n&&"core/heading"===t.name&&(0,c.createElement)(qa,null,(0,c.createElement)(f.PanelBody,{title:(0,b.__)("Heading settings")},o)))}return(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||(0,l.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Za}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Ya),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,l.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Qa={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};(0,s.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,l.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:Qa}),e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/ariaLabel/save-props",(function(e,t,n){return(0,l.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e}));const Xa=(0,d.createHigherOrderComponent)((e=>t=>{const n=xa();return(0,l.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),"default"===n&&(0,c.createElement)(qa,{group:"advanced"},(0,c.createElement)(f.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,b.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,b.__)("Separate multiple classes with spaces.")}))):(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,l.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Xa),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,l.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=p()(e.className,n.className)),e})),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){if(!(0,l.hasBlockSupport)(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})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,l.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,l.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,l.getBlockDefaultClassName)(t.name)),e}));var el=window.wp.dom;const tl=(0,c.createContext)({});function nl({value:e,children:t}){const n=(0,c.useContext)(tl),r=(0,c.useMemo)((()=>({...n,...e})),[n,e]);return(0,c.createElement)(tl.Provider,{value:r,children:t})}var rl=tl;const ol={},il=(0,f.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,l.getBlockType)(t);if(!n)return null;const r=n.edit||n.save;return(0,c.createElement)(r,{...e})}));var al=e=>{const{attributes:t={},name:n}=e,r=(0,l.getBlockType)(n),o=(0,c.useContext)(rl),i=(0,c.useMemo)((()=>r&&r.usesContext?Object.fromEntries(Object.entries(o).filter((([e])=>r.usesContext.includes(e)))):ol),[r,o]);if(!r)return null;if(r.apiVersion>1)return(0,c.createElement)(il,{...e,context:i});const a=(0,l.hasBlockSupport)(r,"className",!0)?(0,l.getBlockDefaultClassName)(n):null,s=p()(a,t.className,e.className);return(0,c.createElement)(il,{...e,context:i,className:s})};function ll(e){const{name:t,isSelected:n,clientId:r,attributes:o={},__unstableLayoutClassNames:i}=e,{layout:a=null}=o,s={name:t,isSelected:n,clientId:r,layout:(0,l.hasBlockSupport)(t,"layout",!1)||(0,l.hasBlockSupport)(t,"__experimentalLayout",!1)?a:null,__unstableLayoutClassNames:i};return(0,c.createElement)($r,{value:(0,c.useMemo)((()=>s),Object.values(s))},(0,c.createElement)(al,{...e}))}var sl=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var cl=function({className:e,actions:t,children:n,secondaryActions:r}){return(0,c.createElement)("div",{style:{display:"contents",all:"initial"}},(0,c.createElement)("div",{className:p()(e,"block-editor-warning")},(0,c.createElement)("div",{className:"block-editor-warning__contents"},(0,c.createElement)("p",{className:"block-editor-warning__message"},n),(c.Children.count(t)>0||r)&&(0,c.createElement)("div",{className:"block-editor-warning__actions"},c.Children.count(t)>0&&c.Children.map(t,((e,t)=>(0,c.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,c.createElement)(f.DropdownMenu,{className:"block-editor-warning__secondary",icon:sl,label:(0,b.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,c.createElement)(f.MenuGroup,null,r.map(((e,t)=>(0,c.createElement)(f.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))},ul=n(1973);function pl({title:e,rawContent:t,renderedContent:n,action:r,actionText:o,className:i}){return(0,c.createElement)("div",{className:i},(0,c.createElement)("div",{className:"block-editor-block-compare__content"},(0,c.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,c.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,c.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,c.createElement)(c.RawHTML,null,(0,el.safeHTML)(n)))),(0,c.createElement)("div",{className:"block-editor-block-compare__action"},(0,c.createElement)(f.Button,{variant:"secondary",tabIndex:"0",onClick:r},o)))}var dl=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:o}){const i=(a=r(e),(Array.isArray(a)?a:[a]).map((e=>(0,l.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var a;const s=(u=e.originalContent,d=i,(0,ul.Kx)(u,d).map(((e,t)=>{const n=p()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,c.createElement)("span",{key:t,className:n},e.value)})));var u,d;return(0,c.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,c.createElement)(pl,{title:(0,b.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,b.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,c.createElement)(pl,{title:(0,b.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:o,rawContent:s,renderedContent:i}))};const fl=e=>(0,l.rawHandler)({HTML:e.originalContent});function ml({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:r}=(0,m.useSelect)((t=>{const{canInsertBlockType:n,getBlock:r,getBlockRootClientId:o}=t(zr),i=o(e);return{block:r(e),canInsertHTMLBlock:n("core/html",i),canInsertClassicBlock:n("core/freeform",i)}}),[e]),{replaceBlock:o}=(0,m.useDispatch)(zr),[i,a]=(0,c.useState)(!1),s=(0,c.useCallback)((()=>a(!1)),[]),u=(0,c.useMemo)((()=>({toClassic(){const e=(0,l.createBlock)("core/freeform",{content:t.originalContent});return o(t.clientId,e)},toHTML(){const e=(0,l.createBlock)("core/html",{content:t.originalContent});return o(t.clientId,e)},toBlocks(){const e=fl(t);return o(t.clientId,e)},toRecoveredBlock(){const e=(0,l.createBlock)(t.name,t.attributes,t.innerBlocks);return o(t.clientId,e)}})),[t,o]),p=(0,c.useMemo)((()=>[{title:(0,b._x)("Resolve","imperative verb"),onClick:()=>a(!0)},n&&{title:(0,b.__)("Convert to HTML"),onClick:u.toHTML},r&&{title:(0,b.__)("Convert to Classic Block"),onClick:u.toClassic}].filter(Boolean)),[n,r,u]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(cl,{actions:[(0,c.createElement)(f.Button,{key:"recover",onClick:u.toRecoveredBlock,variant:"primary"},(0,b.__)("Attempt Block Recovery"))],secondaryActions:p},(0,b.__)("This block contains unexpected or invalid content.")),i&&(0,c.createElement)(f.Modal,{title:(0,b.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare"},(0,c.createElement)(dl,{block:t,onKeep:u.toHTML,onConvert:u.toBlocks,convertor:fl,convertButtonText:(0,b.__)("Convert to Blocks")})))}const yl=(0,c.createElement)(cl,{className:"block-editor-block-list__block-crash-warning"},(0,b.__)("This block has encountered an error and cannot be previewed."));var gl=()=>yl;class hl extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var bl=hl,vl=n(773);var _l=function({clientId:e}){const[t,n]=(0,c.useState)(""),r=(0,m.useSelect)((t=>t(zr).getBlock(e)),[e]),{updateBlock:o}=(0,m.useDispatch)(zr);return(0,c.useEffect)((()=>{n((0,l.getBlockContent)(r))}),[r]),(0,c.createElement)(vl.Z,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const i=(0,l.getBlockType)(r.name);if(!i)return;const a=(0,l.getBlockAttributes)(i,t,r.attributes),s=t||(0,l.getSaveContent)(i,a),[c]=t?(0,l.validateBlock)({...r,attributes:a,originalContent:s}):[!0];o(e,{attributes:a,originalContent:s,isValid:c}),t||n(s)},onChange:e=>n(e.target.value)})},kl=n(9196),Sl=n.n(kl),El=Object.defineProperty,wl={};((e,t)=>{for(var n in t)El(e,n,{get:t[n],enumerable:!0})})(wl,{assign:()=>rs,colors:()=>es,createStringInterpolator:()=>Zl,skipAnimation:()=>ts,to:()=>Yl,willAdvance:()=>ns});var Cl=zl(),xl=e=>Ll(e,Cl),Il=zl();xl.write=e=>Ll(e,Il);var Al=zl();xl.onStart=e=>Ll(e,Al);var Bl=zl();xl.onFrame=e=>Ll(e,Bl);var Pl=zl();xl.onFinish=e=>Ll(e,Pl);var Tl=[];xl.setTimeout=(e,t)=>{const n=xl.now()+t,r=()=>{const e=Tl.findIndex((e=>e.cancel==r));~e&&Tl.splice(e,1),Nl-=~e?1:0},o={time:n,handler:e,cancel:r};return Tl.splice(Ol(n),0,o),Nl+=1,Dl(),o};var Ol=e=>~(~Tl.findIndex((t=>t.time>e))||~Tl.length);xl.cancel=e=>{Al.delete(e),Bl.delete(e),Pl.delete(e),Cl.delete(e),Il.delete(e)},xl.sync=e=>{Fl=!0,xl.batchedUpdates(e),Fl=!1},xl.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,xl.onStart(n)}return r.handler=e,r.cancel=()=>{Al.delete(n),t=null},r};var Ml="undefined"!=typeof window?window.requestAnimationFrame:()=>{};xl.use=e=>Ml=e,xl.now="undefined"!=typeof performance?()=>performance.now():Date.now,xl.batchedUpdates=e=>e(),xl.catch=console.error,xl.frameLoop="always",xl.advance=()=>{"demand"!==xl.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):jl()};var Rl=-1,Nl=0,Fl=!1;function Ll(e,t){Fl?(t.delete(e),e(0)):(t.add(e),Dl())}function Dl(){Rl<0&&(Rl=0,"demand"!==xl.frameLoop&&Ml(Ul))}function Ul(){~Rl&&(Ml(Ul),xl.batchedUpdates(jl))}function jl(){const e=Rl;Rl=xl.now();const t=Ol(Rl);t&&(Vl(Tl.splice(0,t),(e=>e.handler())),Nl-=t),Nl?(Al.flush(),Cl.flush(e?Math.min(64,Rl-e):16.667),Bl.flush(),Il.flush(),Pl.flush()):Rl=-1}function zl(){let e=new Set,t=e;return{add(n){Nl+=t!=e||e.has(n)?0:1,e.add(n)},delete(n){return Nl-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Nl-=t.size,Vl(t,(t=>t(n)&&e.add(t))),Nl+=e.size,t=e)}}}function Vl(e,t){e.forEach((e=>{try{t(e)}catch(e){xl.catch(e)}}))}function Gl(){}var Hl={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 $l(e,t){if(Hl.arr(e)){if(!Hl.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 Wl=(e,t)=>e.forEach(t);function Kl(e,t,n){if(Hl.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 ql=e=>Hl.und(e)?[]:Hl.arr(e)?e:[e];function Jl(e,t){if(e.size){const n=Array.from(e);e.clear(),Wl(n,t)}}var Zl,Yl,Ql=(e,...t)=>Jl(e,(e=>e(...t))),Xl=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),es=null,ts=!1,ns=Gl,rs=e=>{e.to&&(Yl=e.to),e.now&&(xl.now=e.now),void 0!==e.colors&&(es=e.colors),null!=e.skipAnimation&&(ts=e.skipAnimation),e.createStringInterpolator&&(Zl=e.createStringInterpolator),e.requestAnimationFrame&&xl.use(e.requestAnimationFrame),e.batchedUpdates&&(xl.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ns=e.willAdvance),e.frameLoop&&(xl.frameLoop=e.frameLoop)},os=new Set,is=[],as=[],ls=0,ss={get idle(){return!os.size&&!is.length},start(e){ls>e.priority?(os.add(e),xl.onStart(cs)):(us(e),xl(ds))},advance:ds,sort(e){if(ls)xl.onFrame((()=>ss.sort(e)));else{const t=is.indexOf(e);~t&&(is.splice(t,1),ps(e))}},clear(){is=[],os.clear()}};function cs(){os.forEach(us),os.clear(),xl(ds)}function us(e){is.includes(e)||ps(e)}function ps(e){is.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(is,(t=>t.priority>e.priority)),0,e)}function ds(e){const t=as;for(let n=0;n<is.length;n++){const r=is[n];ls=r.priority,r.idle||(ns(r),r.advance(e),r.idle||t.push(r))}return ls=0,(as=is).length=0,(is=t).length>0}var fs="[-+]?\\d*\\.?\\d+",ms=fs+"%";function ys(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gs=new RegExp("rgb"+ys(fs,fs,fs)),hs=new RegExp("rgba"+ys(fs,fs,fs,fs)),bs=new RegExp("hsl"+ys(fs,ms,ms)),vs=new RegExp("hsla"+ys(fs,ms,ms,fs)),_s=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ks=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ss=/^#([0-9a-fA-F]{6})$/,Es=/^#([0-9a-fA-F]{8})$/;function ws(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 Cs(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ws(o,r,e+1/3),a=ws(o,r,e),l=ws(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function xs(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Is(e){return(parseFloat(e)%360+360)%360/360}function As(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Bs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ps(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ss.exec(e))?parseInt(t[1]+"ff",16)>>>0:es&&void 0!==es[e]?es[e]:(t=gs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|255)>>>0:(t=hs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|As(t[4]))>>>0:(t=_s.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Es.exec(e))?parseInt(t[1],16)>>>0:(t=ks.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=bs.exec(e))?(255|Cs(Is(t[1]),Bs(t[2]),Bs(t[3])))>>>0:(t=vs.exec(e))?(Cs(Is(t[1]),Bs(t[2]),Bs(t[3]))|As(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 Ts=(e,t,n)=>{if(Hl.fun(e))return e;if(Hl.arr(e))return Ts({range:e,output:t,extrapolate:n});if(Hl.str(e.output[0]))return Zl(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=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,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(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],s,a,l,r.map)}};var Os=1.70158,Ms=1.525*Os,Rs=Os+1,Ns=2*Math.PI/3,Fs=2*Math.PI/4.5,Ls=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},Ds={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=>Rs*e*e*e-Os*e*e,easeOutBack:e=>1+Rs*Math.pow(e-1,3)+Os*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ms)/2:(Math.pow(2*e-2,2)*((Ms+1)*(2*e-2)+Ms)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ns),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ns)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Fs)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Fs)/2+1,easeInBounce:e=>1-Ls(1-e),easeOutBounce:Ls,easeInOutBounce:e=>e<.5?(1-Ls(1-2*e))/2:(1+Ls(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)}},Us=Symbol.for("FluidValue.get"),js=Symbol.for("FluidValue.observers"),zs=e=>Boolean(e&&e[Us]),Vs=e=>e&&e[Us]?e[Us]():e,Gs=e=>e[js]||null;function Hs(e,t){const n=e[js];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var $s=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ws(this,e)}},Ws=(e,t)=>Zs(e,Us,t);function Ks(e,t){if(e[Us]){let n=e[js];n||Zs(e,js,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function qs(e,t){const n=e[js];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[js]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Js,Zs=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ys=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Qs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Xs=new RegExp(`(${Ys.source})(%|[a-z]+)`,"i"),ec=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,tc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,nc=e=>{const[t,n]=rc(e);if(!t||Xl())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&&tc.test(n)?nc(n):n||e},rc=e=>{const t=tc.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},oc=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ic=e=>{Js||(Js=es?new RegExp(`(${Object.keys(es).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Vs(e).replace(tc,nc).replace(Qs,Ps).replace(Js,Ps))),n=t.map((e=>e.match(Ys).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=>Ts({...e,output:t})));return e=>{const n=!Xs.test(t[0])&&t.find((e=>Xs.test(e)))?.replace(Ys,"");let r=0;return t[0].replace(Ys,(()=>`${o[r++](e)}${n||""}`)).replace(ec,oc)}},ac="react-spring: ",lc=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ac}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},sc=lc(console.warn);var cc=lc(console.warn);function uc(e){return Hl.str(e)&&("#"==e[0]||/\d/.test(e)||!Xl()&&tc.test(e)||e in(es||{}))}var pc=Xl()?kl.useEffect:kl.useLayoutEffect,dc=()=>{const e=(0,kl.useRef)(!1);return pc((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function fc(){const e=(0,kl.useState)()[1],t=dc();return()=>{t.current&&e(Math.random())}}var mc=e=>(0,kl.useEffect)(e,yc),yc=[];function gc(e){const t=(0,kl.useRef)();return(0,kl.useEffect)((()=>{t.current=e})),t.current}var hc=Symbol.for("Animated:node"),bc=e=>e&&e[hc],vc=(e,t)=>{return n=e,r=hc,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},_c=e=>e&&e[hc]&&e[hc].getPayload(),kc=class{constructor(){vc(this,this)}getPayload(){return this.payload||[]}},Sc=class extends kc{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Hl.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Sc(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Hl.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,Hl.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ec=class extends Sc{constructor(e){super(0),this._string=null,this._toString=Ts({output:[e,e]})}static create(e){return new Ec(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Hl.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=Ts({output:[this.getValue(),e]})),this._value=0,super.reset()}},wc={dependencies:null},Cc=class extends kc{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Kl(this.source,((n,r)=>{var o;(o=n)&&o[hc]===o?t[r]=n.getValue(e):zs(n)?t[r]=Vs(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Wl(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Kl(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){wc.dependencies&&zs(e)&&wc.dependencies.add(e);const t=_c(e);t&&Wl(t,(e=>this.add(e)))}},xc=class extends Cc{constructor(e){super(e)}static create(e){return new xc(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(Ic)),!0)}};function Ic(e){return(uc(e)?Ec:Sc).create(e)}function Ac(e){const t=bc(e);return t?t.constructor:Hl.arr(e)?xc:uc(e)?Ec:Sc}var Bc=(e,t)=>{const n=!Hl.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,kl.forwardRef)(((r,o)=>{const i=(0,kl.useRef)(null),a=n&&(0,kl.useCallback)((e=>{i.current=function(e,t){e&&(Hl.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[l,s]=function(e,t){const n=new Set;wc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Cc(e),wc.dependencies=null,[e,n]}(r,t),c=fc(),u=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},p=new Pc(u,s),d=(0,kl.useRef)();pc((()=>(d.current=p,Wl(s,(e=>Ks(e,p))),()=>{d.current&&(Wl(d.current.deps,(e=>qs(e,d.current))),xl.cancel(d.current.update))}))),(0,kl.useEffect)(u,[]),mc((()=>()=>{const e=d.current;Wl(e.deps,(t=>qs(t,e)))}));const f=t.getComponentProps(l.getValue());return kl.createElement(e,{...f,ref:a})}))},Pc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&xl.write(this.update)}};var Tc=Symbol.for("AnimatedComponent"),Oc=e=>Hl.str(e)?e:e&&Hl.str(e.displayName)?e.displayName:Hl.fun(e)&&e.name||null;function Mc(e,...t){return Hl.fun(e)?e(...t):e}var Rc=(e,t)=>!0===e||!!(t&&e&&(Hl.fun(e)?e(t):ql(e).includes(t))),Nc=(e,t)=>Hl.obj(e)?t&&e[t]:e,Fc=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Lc=e=>e,Dc=(e,t=Lc)=>{let n=Uc;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);Hl.und(n)||(r[o]=n)}return r},Uc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],jc={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 zc(e){const t=function(e){const t={};let n=0;if(Kl(e,((e,r)=>{jc[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Kl(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Vc(e){return e=Vs(e),Hl.arr(e)?e.map(Vc):uc(e)?wl.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Gc(e){for(const t in e)return!0;return!1}function Hc(e){return Hl.fun(e)||Hl.arr(e)&&Hl.obj(e[0])}function $c(e,t){e.ref?.delete(e),t?.delete(e)}function Wc(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Kc={tension:170,friction:26,mass:1,damping:1,easing:Ds.linear,clamp:!1};function qc(e,t){if(Hl.und(t.decay)){const n=!Hl.und(t.tension)||!Hl.und(t.friction);!n&&Hl.und(t.frequency)&&Hl.und(t.damping)&&Hl.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Jc=[];function Zc(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,l)=>{let s,c,u=Rc(n.cancel??r?.cancel,t);if(u)f();else{Hl.und(n.pause)||(o.paused=Rc(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||Rc(e,t)),s=Mc(n.delay||0,t),e?(o.resumeQueue.add(d),i.pause()):(i.resume(),d())}function p(){o.resumeQueue.add(d),o.timeouts.delete(c),c.cancel(),s=c.time-xl.now()}function d(){s>0&&!wl.skipAnimation?(o.delayed=!0,c=xl.setTimeout(f,s),o.pauseQueue.add(p),o.timeouts.add(c)):f()}function f(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(p),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){l(e)}}}))}var Yc=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?eu(e.get()):t.every((e=>e.noop))?Qc(e.get()):Xc(e.get(),t.every((e=>e.finished))),Qc=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Xc=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),eu=e=>({value:e,cancelled:!0,finished:!1});function tu(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:l,promise:s}=n;return i||e!==l||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Dc(t,((e,t)=>"onRest"===t?void 0:e));let u,p;const d=new Promise(((e,t)=>(u=e,p=t))),f=e=>{const t=o<=(n.cancelId||0)&&eu(r)||o!==n.asyncId&&Xc(r,!1);if(t)throw e.result=t,p(e),e},m=(e,t)=>{const i=new ru,a=new ou;return(async()=>{if(wl.skipAnimation)throw nu(n),a.result=Xc(r,!1),p(a),a;f(i);const l=Hl.obj(e)?{...e}:{...t,to:e};l.parentId=o,Kl(c,((e,t)=>{Hl.und(l[t])&&(l[t]=e)}));const s=await r.start(l);return f(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let y;if(wl.skipAnimation)return nu(n),Xc(r,!1);try{let t;t=Hl.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),d]),y=Xc(r.get(),!0,!1)}catch(e){if(e instanceof ru)y=e.result;else{if(!(e instanceof ou))throw e;y=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?l:void 0,n.promise=i?s:void 0)}return Hl.fun(a)&&xl.batchedUpdates((()=>{a(y,r,r.item)})),y})():s}function nu(e,t){Jl(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var ru=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.")}},ou=class extends Error{constructor(){super("SkipAnimationSignal")}},iu=e=>e instanceof lu,au=1,lu=class extends $s{constructor(){super(...arguments),this.id=au++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=bc(this);return e&&e.getValue()}to(...e){return wl.to(this,e)}interpolate(...e){return sc(`${ac}The "interpolate" function is deprecated in v9 (use "to" instead)`),wl.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){Hs(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ss.sort(this),Hs(this,{type:"priority",parent:this,priority:e})}},su=Symbol.for("SpringPhase"),cu=e=>(1&e[su])>0,uu=e=>(2&e[su])>0,pu=e=>(4&e[su])>0,du=(e,t)=>t?e[su]|=3:e[su]&=-3,fu=(e,t)=>t?e[su]|=4:e[su]&=-5,mu=class extends lu{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Jc,this.toValues=null,this.fromValues=Jc,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Kc)}},this.immediate=!1}},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,!Hl.und(e)||!Hl.und(t)){const n=Hl.obj(e)?{...e}:{...t,from:e};Hl.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(uu(this)||this._state.asyncTo)||pu(this)}get goal(){return Vs(this.animation.to)}get velocity(){const e=bc(this);return e instanceof Sc?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return cu(this)}get isAnimating(){return uu(this)}get isPaused(){return pu(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=_c(r.to);!a&&zs(r.to)&&(o=ql(Vs(r.to))),r.values.forEach(((l,s)=>{if(l.done)return;const c=l.constructor==Ec?1:a?a[s].lastPosition:o[s];let u=r.immediate,p=c;if(!u){if(p=l.lastPosition,i.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[s],o=null!=l.v0?l.v0:l.v0=Hl.arr(i.velocity)?i.velocity[s]:i.velocity;let a;const d=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Hl.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);p=n+o/(1-e)*(1-r),u=Math.abs(l.lastPosition-p)<=d,a=o*r}else{a=null==l.lastVelocity?o:l.lastVelocity;const t=i.restVelocity||d/10,r=i.clamp?0:i.bounce,s=!Hl.und(r),f=n==c?l.v0>0:n<c;let m,y=!1;const g=1,h=Math.ceil(e/g);for(let e=0;e<h&&(m=Math.abs(a)>t,m||(u=Math.abs(c-p)<=d,!u));++e){s&&(y=p==c||p>c==f,y&&(a=-a*r,p=c));a+=(1e-6*-i.tension*(p-c)+.001*-i.friction*a)/i.mass*g,p+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),p=n+i.easing(r)*(c-n),a=(p-l.lastPosition)/e,u=1==r}l.lastVelocity=a,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[s].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(p,i.round)&&(n=!0)}));const l=bc(this),s=l.getValue();if(t){const e=Vs(r.to);s===e&&!n||i.decay?n&&i.decay&&this._onChange(s):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return xl.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(uu(this)){const{to:e,config:t}=this.animation;xl.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 Hl.und(e)?(n=this.queue||[],this.queue=[]):n=[Hl.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Yc(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),nu(this._state,e&&this._lastCallId),xl.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=Hl.obj(n)?n[t]:n,(null==n||Hc(n))&&(n=void 0),r=Hl.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return cu(this)||(e.reverse&&([n,r]=[r,n]),r=Vs(r),Hl.und(r)?bc(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Dc(e,((e,t)=>/^on/.test(t)?Nc(e,n):e))),ku(this,e,"onProps"),Su(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 Zc(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{pu(this)||(fu(this,!0),Ql(i.pauseQueue),Su(this,"onPause",Xc(this,yu(this,this.animation.to)),this))},resume:()=>{pu(this)&&(fu(this,!1),uu(this)&&this._resume(),Ql(i.resumeQueue),Su(this,"onResume",Xc(this,yu(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=gu(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(eu(this));const r=!Hl.und(e.to),o=!Hl.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(eu(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:l}=this,{to:s,from:c}=l;let{to:u=s,from:p=c}=e;!o||r||t.default&&!Hl.und(u)||(u=p),t.reverse&&([u,p]=[p,u]);const d=!$l(p,c);d&&(l.from=p),p=Vs(p);const f=!$l(u,s);f&&this._focus(u);const m=Hc(t.to),{config:y}=l,{decay:g,velocity:h}=y;(r||o)&&(y.velocity=0),t.config&&!m&&function(e,t,n){n&&(qc(n={...n},t),t={...n,...t}),qc(e,t),Object.assign(e,t);for(const t in Kc)null==e[t]&&(e[t]=Kc[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;Hl.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)}(y,Mc(t.config,i),t.config!==a.config?Mc(a.config,i):void 0);let b=bc(this);if(!b||Hl.und(u))return n(Xc(this,!0));const v=Hl.und(t.reset)?o&&!t.default:!Hl.und(p)&&Rc(t.reset,i),_=v?p:this.get(),k=Vc(u),S=Hl.num(k)||Hl.arr(k)||uc(k),E=!m&&(!S||Rc(a.immediate||t.immediate,i));if(f){const e=Ac(u);if(e!==b.constructor){if(!E)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(k)}}const w=b.constructor;let C=zs(u),x=!1;if(!C){const e=v||!cu(this)&&d;(f||e)&&(x=$l(Vc(_),k),C=!x),($l(l.immediate,E)||E)&&$l(y.decay,g)&&$l(y.velocity,h)||(C=!0)}if(x&&uu(this)&&(l.changed&&!v?C=!0:C||this._stop(s)),!m&&((C||zs(s))&&(l.values=b.getPayload(),l.toValues=zs(u)?null:w==Ec?[1]:ql(k)),l.immediate!=E&&(l.immediate=E,E||v||this._set(s)),C)){const{onRest:e}=l;Wl(_u,(e=>ku(this,t,e)));const r=Xc(this,yu(this,s));Ql(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&xl.batchedUpdates((()=>{l.changed=!v,e?.(r,this),v?Mc(a.onRest,r):l.onStart?.(r,this)}))}v&&this._set(_),m?n(tu(t.to,t,this._state,this)):C?this._start():uu(this)&&!f?this._pendingCalls.add(n):n(Qc(_))}_focus(e){const t=this.animation;e!==t.to&&(Gs(this)&&this._detach(),t.to=e,Gs(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;zs(t)&&(Ks(t,this),iu(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;zs(e)&&qs(e,this)}_set(e,t=!0){const n=Vs(e);if(!Hl.und(n)){const e=bc(this);if(!e||!$l(n,e.getValue())){const r=Ac(n);e&&e.constructor==r?e.setValue(n):vc(this,r.create(n)),e&&xl.batchedUpdates((()=>{this._onChange(n,t)}))}}return bc(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Su(this,"onStart",Xc(this,yu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Mc(this.animation.onChange,e,this)),Mc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;bc(this).reset(Vs(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),uu(this)||(du(this,!0),pu(this)||this._resume())}_resume(){wl.skipAnimation?this.finish():ss.start(this)}_stop(e,t){if(uu(this)){du(this,!1);const n=this.animation;Wl(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Hs(this,{type:"idle",parent:this});const r=t?eu(this.get()):Xc(this.get(),yu(this,e??n.to));Ql(this._pendingCalls,r),n.changed&&(n.changed=!1,Su(this,"onRest",r,this))}}};function yu(e,t){const n=Vc(t);return $l(Vc(e.get()),n)}function gu(e,t=e.loop,n=e.to){const r=Mc(t);if(r){const o=!0!==r&&zc(r),i=(o||e).reverse,a=!o||o.reset;return hu({...e,loop:t,default:!1,pause:void 0,to:!i||Hc(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function hu(e){const{to:t,from:n}=e=zc(e),r=new Set;return Hl.obj(t)&&vu(t,r),Hl.obj(n)&&vu(n,r),e.keys=r.size?Array.from(r):null,e}function bu(e){const t=hu(e);return Hl.und(t.default)&&(t.default=Dc(t)),t}function vu(e,t){Kl(e,((e,n)=>null!=e&&t.add(n)))}var _u=["onStart","onRest","onChange","onPause","onResume"];function ku(e,t,n){e.animation[n]=t[n]!==Fc(t,n)?Nc(t[n],e.key):void 0}function Su(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Eu=["onStart","onChange","onRest"],wu=1,Cu=class{constructor(e,t){this.id=wu++,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];Hl.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(hu(e)),this}start(e){let{queue:t}=this;return e?t=ql(e).map(hu):this.queue=[],this._flush?this._flush(this,t):(Ou(this,t),xu(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Wl(ql(t),(t=>n[t].stop(!!e)))}else nu(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Hl.und(e))this.start({pause:!0});else{const t=this.springs;Wl(ql(e),(e=>t[e].pause()))}return this}resume(e){if(Hl.und(e))this.start({pause:!1});else{const t=this.springs;Wl(ql(e),(e=>t[e].resume()))}return this}each(e){Kl(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,Jl(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&&Jl(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,Jl(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)}xl.onFrame(this._onFrame)}};function xu(e,t){return Promise.all(t.map((t=>Iu(e,t)))).then((t=>Yc(e,t)))}async function Iu(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:l,onResolve:s}=t,c=Hl.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Hl.arr(o)||Hl.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Wl(Eu,(n=>{const r=t[n];if(Hl.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 p=e._state;t.pause===!p.paused?(p.paused=t.pause,Ql(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===Fc(t,"cancel");(u||f&&p.asyncId)&&d.push(Zc(++e._lastAsyncId,{props:t,state:p,actions:{pause:Gl,resume:Gl,start(t,n){f?(nu(p,e._lastAsyncId),n(eu(e))):(t.onRest=l,n(tu(u,t,p,e)))}}})),p.paused&&await new Promise((e=>{p.resumeQueue.add(e)}));const m=Yc(e,await Promise.all(d));if(a&&m.finished&&(!n||!m.noop)){const n=gu(t,a,o);if(n)return Ou(e,[n]),Iu(e,n,!0)}return s&&xl.batchedUpdates((()=>s(m,e,e.item))),m}function Au(e,t){const n={...e.springs};return t&&Wl(ql(t),(e=>{Hl.und(e.keys)&&(e=hu(e)),Hl.obj(e.to)||(e={...e,to:void 0}),Tu(n,e,(e=>Pu(e)))})),Bu(e,n),n}function Bu(e,t){Kl(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ks(t,e))}))}function Pu(e,t){const n=new mu;return n.key=e,t&&Ks(n,t),n}function Tu(e,t,n){t.keys&&Wl(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Ou(e,t){Wl(t,(t=>{Tu(e.springs,t,(t=>Pu(t,e)))}))}var Mu,Ru,Nu=({children:e,...t})=>{const n=(0,kl.useContext)(Fu),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,kl.useState)((()=>({inputs:t,result:e()}))),r=(0,kl.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,kl.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=Fu;return kl.createElement(i,{value:t},e)},Fu=(Mu=Nu,Ru={},Object.assign(Mu,kl.createContext(Ru)),Mu.Provider._context=Mu,Mu.Consumer._context=Mu,Mu);Nu.Provider=Fu.Provider,Nu.Consumer=Fu.Consumer;var Lu=()=>{const e=[],t=function(t){cc(`${ac}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Wl(e,((e,o)=>{if(Hl.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Wl(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Wl(e,(e=>e.resume(...arguments))),this},t.set=function(t){Wl(e,((e,n)=>{const r=Hl.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Wl(e,((e,r)=>{if(Hl.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return Wl(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Wl(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Hl.fun(e)?e(n,t):e};return t._getProps=n,t};function Du(e,t,n){const r=Hl.fun(t)&&t;r&&!n&&(n=[]);const o=(0,kl.useMemo)((()=>r||3==arguments.length?Lu():void 0),[]),i=(0,kl.useRef)(0),a=fc(),l=(0,kl.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Au(e,t);return i.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?xu(e,t):new Promise((r=>{Bu(e,n),l.queue.push((()=>{r(xu(e,t))})),a()}))}})),[]),s=(0,kl.useRef)([...l.ctrls]),c=[],u=gc(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=s.current[o]||(s.current[o]=new Cu(null,l.flush)),n=r?r(o,e):t[o];n&&(c[o]=bu(n))}}(0,kl.useMemo)((()=>{Wl(s.current.slice(e,u),(e=>{$c(e,o),e.stop(!0)})),s.current.length=e,p(u,e)}),[e]),(0,kl.useMemo)((()=>{p(0,Math.min(u,e))}),n);const d=s.current.map(((e,t)=>Au(e,c[t]))),f=(0,kl.useContext)(Nu),m=gc(f),y=f!==m&&Gc(f);pc((()=>{i.current++,l.ctrls=s.current;const{queue:e}=l;e.length&&(l.queue=[],Wl(e,(e=>e()))),Wl(s.current,((e,t)=>{o?.add(e),y&&e.start({default:f});const n=c[t];n&&(Wc(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),mc((()=>()=>{Wl(l.ctrls,(e=>e.stop(!0)))}));const g=d.map((e=>({...e})));return o?[g,o]:g}function Uu(e,t){const n=Hl.fun(e),[[r],o]=Du(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var ju=class extends lu{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ts(...t);const n=this._get(),r=Ac(n);vc(this,r.create(n))}advance(e){const t=this._get();$l(t,this.get())||(bc(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Vu(this._active)&&Gu(this)}_get(){const e=Hl.arr(this.source)?this.source.map(Vs):ql(Vs(this.source));return this.calc(...e)}_start(){this.idle&&!Vu(this._active)&&(this.idle=!1,Wl(_c(this),(e=>{e.done=!1})),wl.skipAnimation?(xl.batchedUpdates((()=>this.advance())),Gu(this)):ss.start(this))}_attach(){let e=1;Wl(ql(this.source),(t=>{zs(t)&&Ks(t,this),iu(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Wl(ql(this.source),(e=>{zs(e)&&qs(e,this)})),this._active.clear(),Gu(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=ql(this.source).reduce(((e,t)=>Math.max(e,(iu(t)?t.priority:0)+1)),0))}};function zu(e){return!1!==e.idle}function Vu(e){return!e.size||Array.from(e).every(zu)}function Gu(e){e.idle||(e.idle=!0,Wl(_c(e),(e=>{e.done=!0})),Hs(e,{type:"idle",parent:e}))}wl.assign({createStringInterpolator:ic,to:(e,t)=>new ju(e,t)});ss.advance;var Hu=window.ReactDOM,$u=/^--/;function Wu(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||$u.test(e)||qu.hasOwnProperty(e)&&qu[e]?(""+t).trim():t+"px"}var Ku={};var qu={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},Ju=["Webkit","Ms","Moz","O"];qu=Object.keys(qu).reduce(((e,t)=>(Ju.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),qu);var Zu=/^(matrix|translate|scale|rotate|skew)/,Yu=/^(translate)/,Qu=/^(rotate|skew)/,Xu=(e,t)=>Hl.num(e)&&0!==e?e+t:e,ep=(e,t)=>Hl.arr(e)?e.every((e=>ep(e,t))):Hl.num(e)?e===t:parseFloat(e)===t,tp=class extends Cc{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=>Xu(e,"px"))).join(",")})`,ep(e,0)]))),Kl(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Zu.test(t)){if(delete r[t],Hl.und(e))return;const n=Yu.test(t)?"px":Qu.test(t)?"deg":"";o.push(ql(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${Xu(o,n)})`,ep(o,0)]:e=>[`${t}(${e.map((e=>Xu(e,n))).join(",")})`,ep(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new np(o,i)),super(r)}},np=class extends $s{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 Wl(this.inputs,((n,r)=>{const o=Vs(n[0]),[i,a]=this.transforms[r](Hl.arr(o)?o:n.map(Vs));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Wl(this.inputs,(e=>Wl(e,(e=>zs(e)&&Ks(e,this)))))}observerRemoved(e){0==e&&Wl(this.inputs,(e=>Wl(e,(e=>zs(e)&&qs(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Hs(this,e)}};wl.assign({batchedUpdates:Hu.unstable_batchedUpdates,createStringInterpolator:ic,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 rp=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Cc(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Oc(e)||"Anonymous";return(e=Hl.str(e)?i[e]||(i[e]=Bc(e,o)):e[Tc]||(e[Tc]=Bc(e,o))).displayName=`Animated(${t})`,e};return Kl(e,((t,n)=>{Hl.arr(e)&&(n=Oc(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:l,...s}=t,c=Object.values(s),u=Object.keys(s).map((t=>n||e.hasAttribute(t)?t:Ku[t]||(Ku[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=Wu(t,r[t]);$u.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!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new tp(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),op=rp.animated;const ip=e=>e+1,ap=e=>({top:e.offsetTop,left:e.offsetLeft});var lp=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:r}){const o=(0,c.useRef)(),i=(0,d.useReducedMotion)()||!n,[a,l]=(0,c.useReducer)(ip,0),[s,u]=(0,c.useReducer)(ip,0),[p,f]=(0,c.useState)({x:0,y:0}),m=(0,c.useMemo)((()=>o.current?ap(o.current):null),[r]),y=(0,c.useMemo)((()=>{if(!t||!o.current)return()=>{};const e=(0,el.getScrollContainer)(o.current);if(!e)return()=>{};const n=o.current.getBoundingClientRect();return()=>{const t=o.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}}),[r,t]);return(0,c.useLayoutEffect)((()=>{a&&u()}),[a]),(0,c.useLayoutEffect)((()=>{if(!m)return;if(i)return void y();o.current.style.transform=void 0;const e=ap(o.current);l(),f({x:Math.round(m.left-e.left),y:Math.round(m.top-e.top)})}),[r]),Uu({from:{x:p.x,y:p.y},to:{x:0,y:0},reset:a!==s,config:{mass:5,tension:2e3,friction:200},immediate:i,onChange:function({value:t}){if(!o.current)return;let{x:n,y:r}=t;n=Math.round(n),r=Math.round(r);const i=0===n&&0===r;o.current.style.transformOrigin="center center",o.current.style.transform=i?void 0:`translate3d(${n}px,${r}px,0)`,o.current.style.zIndex=e?"1":"",y()}}),o};const sp=".block-editor-block-list__block",cp=".block-list-appender",up=".block-editor-button-block-appender";function pp(e,t){return t.closest([sp,cp,up].join(","))===e}function dp(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(sp);return t?t.id.slice(6):void 0}function fp(e){const t=(0,c.useRef)(),n=function(e){return(0,m.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,__unstableGetEditorMode:r,isBlockSelected:o}=t(zr);if(o(e)&&"edit"===r())return n()}),[e])}(e),{isBlockSelected:r,isMultiSelecting:o}=(0,m.useSelect)(zr);return(0,c.useEffect)((()=>{if(!r(e)||o())return;if(null==n)return;if(!t.current)return;const{ownerDocument:i}=t.current;if(pp(t.current,i.activeElement))return;const a=el.focus.tabbable.find(t.current).filter((e=>(0,el.isTextField)(e))),l=-1===n,s=a[l?a.length-1:0]||t.current;if(pp(t.current,s)){if(!t.current.getAttribute("contenteditable")){const e=el.focus.tabbable.findNext(t.current);if(e&&pp(t.current,e)&&(0,el.isFormElement)(e))return void e.focus()}(0,el.placeCaretAtHorizontalEdge)(s,l)}else t.current.focus()}),[n,e]),t}function mp(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function yp(){const e=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return t().outlineMode}),[]);return(0,d.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",mp),t.addEventListener("mouseover",mp),()=>{t.removeEventListener("mouseout",mp),t.removeEventListener("mouseover",mp),t.classList.remove("is-hovered")}}),[e])}function gp(e){return(0,m.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:r,isBlockSelected:o,isBlockMultiSelected:i,getBlockName:a,getSettings:s,hasSelectedInnerBlock:c,isTyping:u,__unstableIsFullySelected:d,__unstableSelectionHasUnmergeableBlock:f}=t(zr),{outlineMode:m}=s(),y=n(e),g=o(e),h=a(e),b=c(e,!0),v=i(e);return p()({"is-selected":g,"is-highlighted":r(e),"is-multi-selected":v,"is-partially-selected":v&&!d()&&!f(),"is-reusable":(0,l.isReusableBlock)((0,l.getBlockType)(h)),"is-dragging":y,"has-child-selected":b,"remove-outline":g&&m&&u()})}),[e])}function hp(e){return(0,m.useSelect)((t=>{const n=t(zr).getBlockName(e),r=(0,l.getBlockType)(n);if(r?.apiVersion>1)return(0,l.getBlockDefaultClassName)(n)}),[e])}function bp(e){return(0,m.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:r}=t(zr),o=r(e);if(!o?.className)return;const i=(0,l.getBlockType)(n(e));return i?.apiVersion>1?o.className:void 0}),[e])}function vp(e){return(0,m.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:r,getBlockName:o,getBlockRootClientId:i,isBlockSelected:a}=t(zr);if(!a(e))return;const l=n();return l?p()("is-block-moving-mode",{"can-insert-moving-block":r(o(l),i(e))}):void 0}),[e])}function _p(e){const{isBlockSelected:t}=(0,m.useSelect)(zr),{selectBlock:n,selectionChange:r}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((o=>{function i(i){o.parentElement.closest('[contenteditable="true"]')||(t(e)?i.target.isContentEditable||r(e):pp(o,i.target)&&n(e))}return o.addEventListener("focusin",i),()=>{o.removeEventListener("focusin",i)}}),[t,n])}var kp=window.wp.keycodes;function Sp(e){const t=(0,m.useSelect)((t=>t(zr).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:r}=(0,m.useSelect)(zr),{insertDefaultBlock:o,removeBlock:i}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((a=>{if(t)return a.addEventListener("keydown",l),a.addEventListener("dragstart",s),()=>{a.removeEventListener("keydown",l),a.removeEventListener("dragstart",s)};function l(t){const{keyCode:l,target:s}=t;l!==kp.ENTER&&l!==kp.BACKSPACE&&l!==kp.DELETE||s!==a||(0,el.isTextField)(s)||(t.preventDefault(),l===kp.ENTER?o({},n(e),r(e)+1):i(e))}function s(e){e.preventDefault()}}),[e,t,n,r,o,i])}function Ep(e){const{isNavigationMode:t,isBlockSelected:n}=(0,m.useSelect)(zr),{setNavigationMode:r,selectBlock:o}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((i=>{function a(i){t()&&!i.defaultPrevented&&(i.preventDefault(),n(e)?r(!1):o(e))}return i.addEventListener("mousedown",a),()=>{i.addEventListener("mousedown",a)}}),[e,t,n,r])}const wp=(0,c.createContext)({refs:new Map,callbacks:new Map});function Cp({children:e}){const t=(0,c.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,c.createElement)(wp.Provider,{value:t},e)}function xp(e){const{refs:t,callbacks:n}=(0,c.useContext)(wp),r=(0,c.useRef)();return(0,c.useLayoutEffect)((()=>(t.set(r,e),()=>{t.delete(r)})),[e]),(0,d.useRefEffect)((t=>{r.current=t,n.forEach(((n,r)=>{e===n&&r(t)}))}),[e])}function Ip(e){const{refs:t}=(0,c.useContext)(wp),n=(0,c.useRef)();return n.current=e,(0,c.useMemo)((()=>({get current(){let e=null;for(const[r,o]of t.entries())o===n.current&&r.current&&(e=r.current);return e}})),[])}function Ap(e){const{callbacks:t}=(0,c.useContext)(wp),n=Ip(e),[r,o]=(0,c.useState)(null);return(0,c.useLayoutEffect)((()=>{if(e)return t.set(o,e),()=>{t.delete(o)}}),[e]),n.current||r}function Bp(){const e=(0,c.useContext)(Zy);return(0,d.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Pp(e){return(0,m.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(zr);return n(e)}),[e])}const Tp=200;function Op(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:r,wrapperProps:o={},isAligned:i}=(0,c.useContext)(Ca),{index:a,mode:s,name:u,blockApiVersion:f,blockTitle:y,isPartOfSelection:g,adjustScrolling:h,enableAnimation:v,isSubtreeDisabled:_}=(0,m.useSelect)((e=>{const{getBlockAttributes:t,getBlockIndex:r,getBlockMode:o,getBlockName:i,isTyping:a,getGlobalBlockCount:s,isBlockSelected:c,isBlockMultiSelected:u,isAncestorMultiSelected:p,isFirstMultiSelectedBlock:d,isBlockSubtreeDisabled:f}=Ur(e(zr)),{getActiveBlockVariation:m}=e(l.store),y=c(n),g=u(n)||p(n),h=i(n),b=(0,l.getBlockType)(h),v=m(h,t(n));return{index:r(n),mode:o(n),name:h,blockApiVersion:b?.apiVersion||1,blockTitle:v?.title||b?.title,isPartOfSelection:y||g,adjustScrolling:y||d(n),enableAnimation:!a()&&s()<=Tp,isSubtreeDisabled:f(n)}}),[n]),k=Pp(n),S=(0,b.sprintf)((0,b.__)("Block: %s"),y),E="html"!==s||t?"":"-visual",w=(0,d.useMergeRefs)([e.ref,fp(n),xp(n),_p(n),Sp(n),Ep(n),yp(),Bp(),lp({isSelected:g,adjustScrolling:h,enableAnimation:v,triggerAnimationOnChange:a}),(0,d.useDisabled)({isDisabled:!k})]),C=Wr();return f<2&&n===C.clientId&&"undefined"!=typeof process&&process.env,{tabIndex:0,...o,...e,ref:w,id:`block-${n}${E}`,role:"document","aria-label":S,"data-block":n,"data-type":u,"data-title":y,inert:_?"true":void 0,className:p()(p()("block-editor-block-list__block",{"wp-block":!i,"has-block-overlay":k}),r,e.className,o.className,gp(n),hp(n),bp(n),vp(n)),style:{...o.style,...e.style}}}function Mp({children:e,isHtml:t,...n}){return(0,c.createElement)("div",{...Op(n,{__unstableIsHtml:t})},e)}Op.save=l.__unstableGetBlockProps;const Rp=(0,m.withSelect)(((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:r,getBlockMode:o,isSelectionEnabled:i,getTemplateLock:a,__unstableGetBlockWithoutInnerBlocks:l,canRemoveBlock:s,canMoveBlock:c}=e(zr),u=l(t),p=r(t),d=a(n),f=s(t,n),m=c(t,n),{name:y,attributes:g,isValid:h}=u||{};return{mode:o(t),isSelectionEnabled:i(),isLocked:!!d,canRemove:f,canMove:m,block:u,name:y,attributes:g,isValid:h,isSelected:p}})),Np=(0,m.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:r,insertBlocks:o,mergeBlocks:i,replaceBlocks:a,toggleSelection:s,__unstableMarkLastChangeAsPersistent:c,moveBlocksToPosition:u,removeBlock:p}=e(zr);return{setAttributes(e){const{getMultiSelectedBlockClientIds:o}=n.select(zr),i=o(),{clientId:a}=t,l=i.length?i:[a];r(l,e)},onInsertBlocks(e,n){const{rootClientId:r}=t;o(e,n,r)},onInsertBlocksAfter(e){const{clientId:r,rootClientId:i}=t,{getBlockIndex:a}=n.select(zr),l=a(r);o(e,l+1,i)},onMerge(e){const{clientId:r,rootClientId:a}=t,{getPreviousBlockClientId:s,getNextBlockClientId:c,getBlock:d,getBlockAttributes:f,getBlockName:m,getBlockOrder:y,getBlockIndex:g,getBlockRootClientId:h,canInsertBlockType:b}=n.select(zr);function v(e,t=!0){const r=h(e),i=y(e),[a]=i;1===i.length&&(0,l.isUnmodifiedBlock)(d(a))?p(e):n.batch((()=>{if(b(m(a),r))u([a],e,r,g(e));else{const n=(0,l.switchToBlockType)(d(a),(0,l.getDefaultBlockName)());n&&n.length&&(o(n,g(e),r,t),p(a,!1))}!y(e).length&&(0,l.isUnmodifiedBlock)(d(e))&&p(e,!1)}))}if(e){if(a){const e=c(a);if(e){if(m(a)!==m(e))return void i(a,e);{const t=f(a),r=f(e);if(Object.keys(t).every((e=>t[e]===r[e])))return void n.batch((()=>{u(y(e),e,a),p(e,!1)}))}}}const e=c(r);if(!e)return;y(e).length?v(e,!1):i(r,e)}else{const e=s(r);if(e)i(e,r);else if(a){const e=s(a);if(e&&m(a)===m(e)){const t=f(a),r=f(e);if(Object.keys(t).every((e=>t[e]===r[e])))return void n.batch((()=>{u(y(a),a,e),p(a,!1)}))}v(a)}}},onReplace(e,n,r){e.length&&!(0,l.isUnmodifiedDefaultBlock)(e[e.length-1])&&c(),a([t.clientId],e,n,r)},toggleSelection(e){s(e)}}}));var Fp=(0,d.compose)(d.pure,Rp,Np,(0,d.ifCondition)((({block:e})=>!!e)),(0,f.withFilters)("editor.BlockListBlock"))((function({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:r,clientId:o,isSelected:i,isSelectionEnabled:a,className:s,__unstableLayoutClassNames:u,name:d,isValid:f,attributes:y,wrapperProps:g,setAttributes:h,onReplace:b,onInsertBlocksAfter:v,onMerge:_,toggleSelection:k}){var S;const{themeSupportsLayout:E,isTemporarilyEditingAsBlocks:w,blockEditingMode:C}=(0,m.useSelect)((e=>{const{getSettings:t,__unstableGetTemporarilyEditingAsBlocks:n,getBlockEditingMode:r}=Ur(e(zr));return{themeSupportsLayout:t().supportsLayout,isTemporarilyEditingAsBlocks:n()===o,blockEditingMode:r(o)}}),[o]),{removeBlock:x}=(0,m.useDispatch)(zr),I=(0,c.useCallback)((()=>x(o)),[o]),A=pa()||{};let B=(0,c.createElement)(ll,{name:d,isSelected:i,attributes:y,setAttributes:h,insertBlocksAfter:n?void 0:v,onReplace:r?b:void 0,onRemove:r?I:void 0,mergeBlocks:r?_:void 0,clientId:o,isSelectionEnabled:a,toggleSelection:k,__unstableLayoutClassNames:u,__unstableParentLayout:Object.keys(A).length?A:void 0});const P=(0,l.getBlockType)(d);"disabled"===C&&(g={...g,tabIndex:-1}),P?.getEditWrapperProps&&(g=function(e,t){const n={...e,...t};return e?.className&&t?.className&&(n.className=p()(e.className,t.className)),e?.style&&t?.style&&(n.style={...e.style,...t.style}),n}(g,P.getEditWrapperProps(y)));const T=g&&!!g["data-align"]&&!E;let O;if(T&&(B=(0,c.createElement)("div",{className:"wp-block","data-align":g["data-align"]},B)),f)O="html"===t?(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{style:{display:"none"}},B),(0,c.createElement)(Mp,{isHtml:!0},(0,c.createElement)(_l,{clientId:o}))):P?.apiVersion>1?B:(0,c.createElement)(Mp,{...g},B);else{const t=e?(0,l.serializeRawBlock)(e):(0,l.getSaveContent)(P,y);O=(0,c.createElement)(Mp,{className:"has-warning"},(0,c.createElement)(ml,{clientId:o}),(0,c.createElement)(c.RawHTML,null,(0,el.safeHTML)(t)))}const{"data-align":M,...R}=null!==(S=g)&&void 0!==S?S:{},N={clientId:o,className:p()({"is-editing-disabled":"disabled"===C,"is-content-locked-temporarily-editing-as-blocks":w},M&&E&&`align${M}`,s),wrapperProps:R,isAligned:T},F=(0,c.useMemo)((()=>N),Object.values(N));return(0,c.createElement)(Ca.Provider,{value:F},(0,c.createElement)(bl,{fallback:(0,c.createElement)(Mp,{className:"has-warning"},(0,c.createElement)(gl,null))},O))})),Lp=window.wp.htmlEntities;var Dp=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Up=[(0,c.createInterpolateElement)((0,b.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,b.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,b.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,b.__)("Drag files into the editor to automatically insert media blocks."),(0,b.__)("Change a block's type by pressing the block icon on the toolbar.")];var jp=function(){const[e]=(0,c.useState)(Math.floor(Math.random()*Up.length));return(0,c.createElement)(f.Tip,null,Up[e])};var zp=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var Vp=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var Gp=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));var Hp=(0,c.memo)((function({icon:e,showColors:t=!1,className:n,context:r}){"block-default"===e?.src&&(e={src:Gp});const o=(0,c.createElement)(f.Icon,{icon:e&&e.src?e.src:e,context:r}),i=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,c.createElement)("span",{style:i,className:p()("block-editor-block-icon",n,{"has-colors":t})},o)}));var $p=function({title:e,icon:t,description:n,blockType:r,className:o}){r&&(H()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r));const{parentNavBlockClientId:i}=(0,m.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(zr);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:a}=(0,m.useDispatch)(zr);return(0,c.createElement)("div",{className:p()("block-editor-block-card",o)},i&&(0,c.createElement)(f.Button,{onClick:()=>a(i),label:(0,b.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,b.isRTL)()?zp:Vp,isSmall:!0}),(0,c.createElement)(Hp,{icon:t,showColors:!0}),(0,c.createElement)("div",{className:"block-editor-block-card__content"},(0,c.createElement)("h2",{className:"block-editor-block-card__title"},e),(0,c.createElement)("span",{className:"block-editor-block-card__description"},n)))};const Wp=(0,d.createHigherOrderComponent)((e=>(0,m.withRegistry)((({useSubRegistry:t=!0,registry:n,...r})=>{if(!t)return(0,c.createElement)(e,{registry:n,...r});const[o,i]=(0,c.useState)(null);return(0,c.useEffect)((()=>{const e=(0,m.createRegistry)({},n);e.registerStore(Fr,jr),i(e)}),[n]),o?(0,c.createElement)(m.RegistryProvider,{value:o},(0,c.createElement)(e,{registry:o,...r})):null}))),"withRegistryProvider");const Kp=()=>{};function qp({clientId:e=null,value:t,selection:n,onChange:r=Kp,onInput:o=Kp}){const i=(0,m.useRegistry)(),{resetBlocks:a,resetSelection:s,replaceInnerBlocks:u,selectBlock:p,setHasControlledInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=i.dispatch(zr),{hasSelectedBlock:y,getBlockName:g,getBlocks:h,getSelectionStart:b,getSelectionEnd:v,getBlock:_}=i.select(zr),k=(0,m.useSelect)((t=>!e||t(zr).areInnerBlocksControlled(e)),[e]),S=(0,c.useRef)({incoming:null,outgoing:[]}),E=(0,c.useRef)(!1),w=()=>{t&&(f(),e?i.batch((()=>{d(e,!0);const n=t.map((e=>(0,l.cloneBlock)(e)));E.current&&(S.current.incoming=n),f(),u(e,n)})):(E.current&&(S.current.incoming=t),a(t)))},C=(0,c.useRef)(o),x=(0,c.useRef)(r);(0,c.useEffect)((()=>{C.current=o,x.current=r}),[o,r]),(0,c.useEffect)((()=>{if(S.current.outgoing.includes(t))S.current.outgoing[S.current.outgoing.length-1]===t&&(S.current.outgoing=[]);else if(h(e)!==t){S.current.outgoing=[];const t=y(),r=b(),o=v();if(w(),n)s(n.selectionStart,n.selectionEnd,n.initialPosition);else{const n=_(r.clientId);t&&!n?p(e):s(r,o)}}}),[t,e]),(0,c.useEffect)((()=>{k||(S.current.outgoing=[],w())}),[k]),(0,c.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:r,areInnerBlocksControlled:o}=i.select(zr);let a=h(e),l=n(),s=!1;E.current=!0;const c=i.subscribe((()=>{if(null!==e&&null===g(e))return;if(!(!e||o(e)))return;const i=n(),c=h(e),u=c!==a;if(a=c,u&&(S.current.incoming||r()))return S.current.incoming=null,void(l=i);if(u||s&&!u&&i&&!l){l=i,S.current.outgoing.push(a);(l?x.current:C.current)(a,{selection:{selectionStart:b(),selectionEnd:v(),initialPosition:t()}})}s=u}));return()=>{E.current=!1,c()}}),[i,e]),(0,c.useEffect)((()=>()=>{f(),e?(d(e,!1),f(),u(e,[])):a([])}),[])}const Jp=Wp((e=>{const{children:t,settings:n,stripExperimentalSettings:r=!1}=e,{__experimentalUpdateSettings:o}=Ur((0,m.useDispatch)(zr));return(0,c.useEffect)((()=>{o({...n,__internalIsInitialized:!0},r)}),[n]),qp(e),(0,c.createElement)(Cp,null,t)}));var Zp=e=>(0,c.createElement)(Jp,{...e,stripExperimentalSettings:!0},e.children);function Yp(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,m.useSelect)(zr),{clearSelectedBlock:r}=(0,m.useDispatch)(zr),{clearBlockSelection:o}=e();return(0,d.useRefEffect)((e=>{if(o)return e.addEventListener("mousedown",i),()=>{e.removeEventListener("mousedown",i)};function i(o){(t()||n())&&o.target===e&&r()}}),[t,n,r,o])}function Qp(e){return(0,c.createElement)("div",{ref:Yp(),...e})}function Xp(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:r,getSelectedBlockClientId:o,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:a}=e(zr);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:r(),selectedBlockClientId:o(),initialPosition:i(),isFullSelection:a()}}function ed(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:r,selectedBlockClientId:o,isFullSelection:i}=(0,m.useSelect)(Xp,[]);return(0,d.useRefEffect)((o=>{const{ownerDocument:a}=o,{defaultView:l}=a;if(null==e)return;if(!r||t)return;const{length:s}=n;s<2||i&&(o.contentEditable=!0,o.focus(),l.getSelection().removeAllRanges())}),[r,t,n,o,e,i])}function td(e,t,n,r){let o,i=el.focus.focusable.find(n);return t&&i.reverse(),i=i.slice(i.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),i.find((function(e){if(1!==e.children.length||!function(e,t){return e.closest(sp)===t.closest(sp)}(e,e.firstElementChild)||"true"!==e.firstElementChild.getAttribute("contenteditable")){if(!el.focus.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 nd(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:r,__unstableIsFullySelected:o}=(0,m.useSelect)(zr),{selectBlock:i}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((a=>{let l;function s(){l=null}function c(s){if(s.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:p,ctrlKey:d,altKey:f,metaKey:m}=s,y=c===kp.UP,g=c===kp.DOWN,h=c===kp.LEFT,b=c===kp.RIGHT,v=y||h,_=h||b,k=y||g,S=_||k,E=p||d||f||m,w=k?el.isVerticalEdge:el.isHorizontalEdge,{ownerDocument:C}=a,{defaultView:x}=C;if(!S)return;if(r()){if(p)return;if(!o())return;return s.preventDefault(),void(v?i(e()):i(t(),-1))}if(!function(e,t,n){const r=t===kp.UP||t===kp.DOWN,{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,E))return;k?l||(l=(0,el.computeCaretRect)(x)):l=null;const I=(0,el.isRTL)(u)?!v:v,{keepCaretInsideBlock:A}=n();if(p)(function(e,t){const n=td(e,t,a);return n&&dp(n)})(u,v)&&w(u,v)&&(a.contentEditable=!0,a.focus());else if(!k||!(0,el.isVerticalEdge)(u,v)||f&&!(0,el.isHorizontalEdge)(u,I)||A){if(_&&x.getSelection().isCollapsed&&(0,el.isHorizontalEdge)(u,I)&&!A){const e=td(u,I,a);(0,el.placeCaretAtHorizontalEdge)(e,v),s.preventDefault()}}else{const e=td(u,v,a,!0);e&&((0,el.placeCaretAtVerticalEdge)(e,f?!v:v,f?void 0:l),s.preventDefault())}}return a.addEventListener("mousedown",s),a.addEventListener("keydown",c),()=>{a.removeEventListener("mousedown",s),a.removeEventListener("keydown",c)}}),[])}var rd=window.wp.keyboardShortcuts;function od(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,m.useSelect)(zr),{multiSelect:r,selectBlock:o}=(0,m.useDispatch)(zr),i=(0,rd.__unstableUseShortcutEventMatch)();return(0,d.useRefEffect)((a=>{function l(l){if(!i("core/block-editor/select-all",l))return;const s=t();if(s.length<2&&!(0,el.isEntirelySelected)(l.target))return;l.preventDefault();const[c]=s,u=n(c),p=e(u);s.length!==p.length?r(p[0],p[p.length-1]):u&&(a.ownerDocument.defaultView.getSelection().removeAllRanges(),o(u))}return a.addEventListener("keydown",l),()=>{a.removeEventListener("keydown",l)}}),[])}function id(e,t){e.contentEditable=t,t&&e.focus()}function ad(){const{startMultiSelect:e,stopMultiSelect:t}=(0,m.useDispatch)(zr),{isSelectionEnabled:n,hasMultiSelection:r,isDraggingBlocks:o}=(0,m.useSelect)(zr);return(0,d.useRefEffect)((i=>{const{ownerDocument:a}=i,{defaultView:l}=a;let s,c;function u(){t(),l.removeEventListener("mouseup",u),c=l.requestAnimationFrame((()=>{if(r())return;id(i,!1);const e=l.getSelection();if(e.rangeCount){const{commonAncestorContainer:t}=e.getRangeAt(0);s.contains(t)&&s.focus()}}))}function p({buttons:t,target:r}){o()||1===t&&"true"===r.getAttribute("contenteditable")&&n()&&(s=a.activeElement,e(),l.addEventListener("mouseup",u),id(i,!0))}return i.addEventListener("mouseout",p),()=>{i.removeEventListener("mouseout",p),l.removeEventListener("mouseup",u),l.cancelAnimationFrame(c)}}),[e,t,n,r])}function ld(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t),t&&e.focus()}function sd(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,m.useDispatch)(zr),{getBlockParents:r,getBlockSelectionStart:o}=(0,m.useSelect)(zr);return(0,d.useRefEffect)((n=>{const{ownerDocument:i}=n,{defaultView:a}=i;function l(i){const l=a.getSelection();if(!l.rangeCount)return;const s=i.shiftKey&&"mouseup"===i.type;if(l.isCollapsed&&!s)return void ld(n,!1);let c=dp(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(l)),u=dp(function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(l));if(s){const e=o(),t=dp(i.target),n=t!==u;(c===u&&l.isCollapsed||!u||n)&&(u=t),c!==e&&(c=e)}if(void 0===c&&void 0===u)return void ld(n,!1);if(c===u)t(c);else{const t=[...r(c),c],n=[...r(u),u],o=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,n);e(t[o],n[o])}}function s(){i.addEventListener("selectionchange",l),a.addEventListener("mouseup",l)}function c(){i.removeEventListener("selectionchange",l),a.removeEventListener("mouseup",l)}function u(){c(),s()}return s(),n.addEventListener("focusin",u),()=>{c(),n.removeEventListener("focusin",u)}}),[e,t,n,r])}function cd(){const{selectBlock:e}=(0,m.useDispatch)(zr),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:r}=(0,m.useSelect)(zr);return(0,d.useRefEffect)((o=>{function i(i){if(!t()||0!==i.button)return;const a=n(),l=dp(i.target);i.shiftKey?a!==l&&(o.contentEditable=!0,o.focus()):r()&&e(l)}return o.addEventListener("mousedown",i),()=>{o.removeEventListener("mousedown",i)}}),[e,t,n,r])}function ud(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:r}=(0,m.useSelect)(zr),{replaceBlocks:o,__unstableSplitSelection:i,removeBlocks:a,__unstableDeleteSelection:s,__unstableExpandSelection:c}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((u=>{function p(e){"true"===u.contentEditable&&e.preventDefault()}function d(p){p.defaultPrevented||r()&&(p.keyCode===kp.ENTER?(u.contentEditable=!1,p.preventDefault(),e()?o(t(),(0,l.createBlock)((0,l.getDefaultBlockName)())):i()):p.keyCode===kp.BACKSPACE||p.keyCode===kp.DELETE?(u.contentEditable=!1,p.preventDefault(),e()?a(t()):n()?s(p.keyCode===kp.DELETE):c()):1!==p.key.length||p.metaKey||p.ctrlKey||(u.contentEditable=!1,n()?s(p.keyCode===kp.DELETE):(p.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges())))}function f(e){r()&&(u.contentEditable=!1,n()?s():(e.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges()))}return u.addEventListener("beforeinput",p),u.addEventListener("keydown",d),u.addEventListener("compositionstart",f),()=>{u.removeEventListener("beforeinput",p),u.removeEventListener("keydown",d),u.removeEventListener("compositionstart",f)}}),[])}function pd(){const[e,t,n]=function(){const e=(0,c.useRef)(),t=(0,c.useRef)(),n=(0,c.useRef)(),r=(0,c.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:i,getBlockCount:a}=(0,m.useSelect)(zr),{setNavigationMode:l}=(0,m.useDispatch)(zr),s=(0,m.useSelect)((e=>e(zr).isNavigationMode()),[])?void 0:"0",u=(0,c.useRef)();function p(t){if(u.current)u.current=null;else if(o())e.current.focus();else if(i())r.current.focus();else{l(!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=el.focus.tabbable.find(e.current);o.length&&(r?o[0]:o[o.length-1]).focus()}}const f=(0,c.createElement)("div",{ref:t,tabIndex:s,onFocus:p}),y=(0,c.createElement)("div",{ref:n,tabIndex:s,onFocus:p}),g=(0,d.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===kp.ESCAPE&&!o())return e.preventDefault(),void l(!0);if(e.keyCode!==kp.TAB)return;const r=e.shiftKey,a=r?"findPrevious":"findNext";if(!o()&&!i())return void(e.target===s&&l(!0));const c=el.focus.tabbable[a](e.target);if((0,el.isFormElement)(c)&&((e,t)=>{const n=t.closest("[data-block]")?.getAttribute("data-block"),r=n===i(),o=e.contains(t);return r||o})(e.target.closest("[data-block]"),c))return;const p=r?t:n;u.current=!0,p.current.focus({preventScroll:!0})}function p(e){r.current=e.target;const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==a()||s.focus()}function d(r){if(r.keyCode!==kp.TAB)return;if("region"===r.target?.getAttribute("role"))return;if(e.current===r.target)return;const o=r.shiftKey?"findPrevious":"findNext",i=el.focus.tabbable[o](r.target);i!==t.current&&i!==n.current||(r.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:f}=s,{defaultView:m}=f;return m.addEventListener("keydown",d),s.addEventListener("keydown",c),s.addEventListener("focusout",p),()=>{m.removeEventListener("keydown",d),s.removeEventListener("keydown",c),s.removeEventListener("focusout",p)}}),[]);return[f,(0,d.useMergeRefs)([e,g]),y]}(),r=(0,m.useSelect)((e=>e(zr).hasMultiSelection()),[]);return[e,(0,d.useMergeRefs)([t,ud(),ad(),sd(),cd(),ed(),od(),nd(),(0,d.useRefEffect)((e=>{if(e.tabIndex=0,e.contentEditable=r,r)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",(0,b.__)("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[r])]),n]}var dd=(0,c.forwardRef)((function({children:e,...t},n){const[r,o,i]=pd();return(0,c.createElement)(c.Fragment,null,r,(0,c.createElement)("div",{...t,ref:(0,d.useMergeRefs)([o,n]),className:p()(t.className,"block-editor-writing-flow")},e),i)}));function fd({contentRef:e,children:t,tabIndex:n=0,scale:r=1,frameSize:o=0,expand:i=!1,readonly:a,forwardedRef:l,...s}){const{resolvedAssets:u,isPreviewMode:y}=(0,m.useSelect)((e=>{const t=e(zr).getSettings();return{resolvedAssets:t.__unstableResolvedAssets,isPreviewMode:t.__unstableIsPreviewMode}}),[]),{styles:g="",scripts:h=""}=u,[v,_]=(0,c.useState)(),[k,S]=(0,c.useState)([]),E=(0,c.useMemo)((()=>Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:r}=t;if(null===n)return e;if(!r)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:r})=>n?e(r):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(r)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),r=document.getElementById(t);r&&e.push(r.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),r=document.getElementById(t);r&&e.push(r.cloneNode(!0))}}return e}),[])),[]),w=Yp(),[C,x,I]=pd(),[A,{height:B}]=(0,d.useResizeObserver)(),P=(0,d.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function r(){const{contentDocument:r,ownerDocument:o}=e,{documentElement:i}=r;t=r,function(e){const{defaultView:t}=e,{frameElement:n}=t;function r(e){const r=Object.getPrototypeOf(e).constructor.name,o=window[r],i={};for(const t in e)i[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();i.clientX+=e.left,i.clientY+=e.top}const a=new o(e.type,i);!n.dispatchEvent(a)&&e.preventDefault()}const o=["dragover","mousemove"];for(const t of o)e.addEventListener(t,r)}(r),w(i),S(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 E)r.getElementById(e.id)||(r.head.appendChild(e.cloneNode(!0)),y||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=()=>{_(e.contentDocument)},e.addEventListener("load",r),()=>{e.removeEventListener("load",r),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),T=(0,d.useDisabled)({isDisabled:!a}),O=(0,d.useMergeRefs)([e,w,x,T]),M=`<!doctype html>\n<html>\n\t<head>\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>\n\t\t${g}\n\t\t${h}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[R,N]=(0,c.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([M],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[M]);(0,c.useEffect)((()=>N),[N]);const F=B*(1-r)/2;return(0,c.createElement)(c.Fragment,null,n>=0&&C,(0,c.createElement)("iframe",{...s,style:{...s.style,height:i?B:s.style?.height,marginTop:1!==r?-F+o:s.style?.marginTop,marginBottom:1!==r?-F+o:s.style?.marginBottom,transform:1!==r?`scale( ${r} )`:s.style?.transform,transition:"all .3s"},ref:(0,d.useMergeRefs)([l,P]),tabIndex:n,src:R,title:(0,b.__)("Editor canvas")},v&&(0,c.createPortal)((0,c.createElement)("body",{ref:O,className:p()("block-editor-iframe__body","editor-styles-wrapper",...k)},A,(0,c.createElement)(f.__experimentalStyleProvider,{document:v},t)),v.documentElement)),n>=0&&I)}var md=(0,c.forwardRef)((function(e,t){return(0,m.useSelect)((e=>e(zr).getSettings().__internalIsInitialized),[])?(0,c.createElement)(fd,{...e,forwardedRef:t}):null})),yd={grad:.9,turn:360,rad:360/(2*Math.PI)},gd=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},hd=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},bd=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},vd=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},_d=function(e){return{r:bd(e.r,0,255),g:bd(e.g,0,255),b:bd(e.b,0,255),a:bd(e.a)}},kd=function(e){return{r:hd(e.r),g:hd(e.g),b:hd(e.b),a:hd(e.a,3)}},Sd=/^#([0-9a-f]{3,8})$/i,Ed=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wd=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),l=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(l<0?l+6:l),s:i?a/i*100:0,v:i/255*100,a:o}},Cd=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),l=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,l,a,a,s,r][c],g:255*[s,r,r,l,a,a][c],b:255*[a,a,s,r,r,l][c],a:o}},xd=function(e){return{h:vd(e.h),s:bd(e.s,0,100),l:bd(e.l,0,100),a:bd(e.a)}},Id=function(e){return{h:hd(e.h),s:hd(e.s),l:hd(e.l),a:hd(e.a,3)}},Ad=function(e){return Cd((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},Bd=function(e){return{h:(t=wd(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},Pd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Od=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Md=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rd={string:[[function(e){var t=Sd.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?hd(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?hd(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Od.exec(e)||Md.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:_d({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=Pd.exec(e)||Td.exec(e);if(!t)return null;var n,r,o=xd({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(yd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ad(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 gd(t)&&gd(n)&&gd(r)?_d({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(!gd(t)||!gd(n)||!gd(r))return null;var a=xd({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Ad(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!gd(t)||!gd(n)||!gd(r))return null;var a=function(e){return{h:vd(e.h),s:bd(e.s,0,100),v:bd(e.v,0,100),a:bd(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Cd(a)},"hsv"]]},Nd=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]},Fd=function(e){return"string"==typeof e?Nd(e.trim(),Rd.string):"object"==typeof e&&null!==e?Nd(e,Rd.object):[null,void 0]},Ld=function(e,t){var n=Bd(e);return{h:n.h,s:bd(n.s+100*t,0,100),l:n.l,a:n.a}},Dd=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ud=function(e,t){var n=Bd(e);return{h:n.h,s:n.s,l:bd(n.l+100*t,0,100),a:n.a}},jd=function(){function e(e){this.parsed=Fd(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 hd(Dd(this.rgba),2)},e.prototype.isDark=function(){return Dd(this.rgba)<.5},e.prototype.isLight=function(){return Dd(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=kd(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?Ed(hd(255*o)):"","#"+Ed(t)+Ed(n)+Ed(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return kd(this.rgba)},e.prototype.toRgbString=function(){return t=(e=kd(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 Id(Bd(this.rgba))},e.prototype.toHslString=function(){return t=(e=Id(Bd(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=wd(this.rgba),{h:hd(e.h),s:hd(e.s),v:hd(e.v),a:hd(e.a,3)};var e},e.prototype.invert=function(){return zd({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),zd(Ld(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),zd(Ld(this.rgba,-e))},e.prototype.grayscale=function(){return zd(Ld(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),zd(Ud(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),zd(Ud(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?zd({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):hd(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Bd(this.rgba);return"number"==typeof e?zd({h:e,s:t.s,l:t.l,a:t.a}):hd(t.h)},e.prototype.isEqual=function(e){return this.toHex()===zd(e).toHex()},e}(),zd=function(e){return e instanceof jd?e:new jd(e)},Vd=[],Gd=function(e){e.forEach((function(e){Vd.indexOf(e)<0&&(e(jd,Rd),Vd.push(e))}))};function Hd(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,l=r[this.toHex()];if(l)return l;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,u="black";if(!i.length)for(var p in n)i[p]=new e(n[p]).toRgb();for(var d in n){var f=(o=s,a=i[d],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=d)}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 $d=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Wd=function(e){return.2126*$d(e.r)+.7152*$d(e.g)+.0722*$d(e.b)};function Kd(e){e.prototype.luminance=function(){return e=Wd(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,l,s,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(l=Wd(i))>(s=Wd(a))?(l+.05)/(s+.05):(s+.05)/(l+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}var qd=n(3124),Jd=n.n(qd);const Zd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Yd(e,t){t=t||{};let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){const e={line:n,column:r};return function(t){return t.position=new a(e),f(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;const l=[];function s(o){const i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;l.push(i)}function c(){return d(/^{\s*/)}function u(){return d(/^}/)}function p(){let t;const n=[];for(f(),m(n);e.length&&"}"!==e.charAt(0)&&(t=w()||C());)!1!==t&&(n.push(t),m(n));return n}function d(t){const n=t.exec(e);if(!n)return;const r=n[0];return o(r),e=e.slice(r.length),n}function f(){d(/^\s*/)}function m(e){let t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){const t=i();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");const a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}function g(){const e=d(/^([^{]+)/);if(e)return Qd(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function h(){const e=i();let t=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=Qd(t[0]),!d(/^:\s*/))return s("property missing ':'");const n=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Zd,""),value:n?Qd(n[0]).replace(Zd,""):""});return d(/^[;\s]*/),r}function b(){const e=[];if(!c())return s("missing '{'");let t;for(m(e);t=h();)!1!==t&&(e.push(t),m(e));return u()?e:s("missing '}'")}function v(){let e;const t=[],n=i();for(;e=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:b()})}const _=E("import"),k=E("charset"),S=E("namespace");function E(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=i(),r=d(t);if(!r)return;const o={type:e};return o[e]=r[1].trim(),n(o)}}function w(){if("@"===e[0])return function(){const e=i();let t=d(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=d(/^([-\w]+)\s*/),!t)return s("@keyframes missing name");const r=t[1];if(!c())return s("@keyframes missing '{'");let o,a=m();for(;o=v();)a.push(o),a=a.concat(m());return u()?e({type:"keyframes",name:r,vendor:n,keyframes:a}):s("@keyframes missing '}'")}()||function(){const e=i(),t=d(/^@media *([^{]+)/);if(!t)return;const n=Qd(t[1]);if(!c())return s("@media missing '{'");const r=m().concat(p());return u()?e({type:"media",media:n,rules:r}):s("@media missing '}'")}()||function(){const e=i(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Qd(t[1]),media:Qd(t[2])})}()||function(){const e=i(),t=d(/^@supports *([^{]+)/);if(!t)return;const n=Qd(t[1]);if(!c())return s("@supports missing '{'");const r=m().concat(p());return u()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}()||_()||k()||S()||function(){const e=i(),t=d(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=Qd(t[1]),r=Qd(t[2]);if(!c())return s("@document missing '{'");const o=m().concat(p());return u()?e({type:"document",document:r,vendor:n,rules:o}):s("@document missing '}'")}()||function(){const e=i();if(!d(/^@page */))return;const t=g()||[];if(!c())return s("@page missing '{'");let n,r=m();for(;n=h();)r.push(n),r=r.concat(m());return u()?e({type:"page",selectors:t,declarations:r}):s("@page missing '}'")}()||function(){const e=i();if(!d(/^@host\s*/))return;if(!c())return s("@host missing '{'");const t=m().concat(p());return u()?e({type:"host",rules:t}):s("@host missing '}'")}()||function(){const e=i();if(!d(/^@font-face\s*/))return;if(!c())return s("@font-face missing '{'");let t,n=m();for(;t=h();)n.push(t),n=n.concat(m());return u()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}()}function C(){const e=i(),t=g();return t?(m(),e({type:"rule",selectors:t,declarations:b()})):s("selector missing")}return Xd(function(){const e=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:l}}}())}function Qd(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Xd(e,t){const n=e&&"string"==typeof e.type,r=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){Xd(e,r)})):n&&"object"==typeof n&&Xd(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var ef=n(8575),tf=n.n(ef),nf=rf;function rf(e){this.options=e||{}}rf.prototype.emit=function(e){return e},rf.prototype.visit=function(e){return this[e.type](e)},rf.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var of=af;function af(e){nf.call(this,e)}tf()(af,nf),af.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},af.prototype.comment=function(e){return this.emit("",e.position)},af.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},af.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},af.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},af.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},af.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},af.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},af.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},af.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},af.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},af.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},af.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},af.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},af.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},af.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var lf=sf;function sf(e){e=e||{},nf.call(this,e),this.indentation=e.indent}tf()(sf,nf),sf.prototype.compile=function(e){return this.stylesheet(e)},sf.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},sf.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},sf.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},sf.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},sf.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("  {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},sf.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},sf.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},sf.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},sf.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},sf.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},sf.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},sf.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},sf.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},sf.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},sf.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},sf.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},sf.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||"  ")};var cf=function(e,t){try{const n=Yd(e),r=Jd().map(n,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return function(e,t){return((t=t||{}).compress?new of(t):new lf(t)).compile(e)}(r)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}};function uf(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function pf(e,t){return new URL(e,t).toString()}var df=e=>t=>{if("declaration"===t.type){const i=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const r=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};uf(e)&&r.push(e)}return r}(t.value).map((o=e,e=>({...e,newUrl:"url("+e.before+e.quote+pf(e.value,o)+e.quote+e.after+")"})));return{...t,value:(n=t.value,r=i,r.forEach((e=>{n=n.replace(e.source,e.newUrl)})),n)}}var n,r,o;return t};const ff=/^(body|html|:root).*$/;var mf=(e,t=[])=>n=>{const r=n=>t.includes(n.trim())?n:n.match(ff)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(r)}:n};var yf=(e,t="")=>Object.values(null!=e?e:[]).map((({css:e,baseURL:n})=>{const r=[];return t&&r.push(mf(t)),n&&r.push(df(n)),r.length?cf(e,(0,d.compose)(r)):e}));const gf=".editor-styles-wrapper";function hf(e){return(0,c.useCallback)((e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:r}=t,o=t.querySelector(gf);let i;if(o)i=n?.getComputedStyle(o,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),r.appendChild(e),i=n?.getComputedStyle(e,null).getPropertyValue("background-color"),r.removeChild(e)}const a=zd(i);a.luminance()>.5||0===a.alpha()?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}),[e])}function bf({styles:e}){const t=(0,c.useMemo)((()=>Object.values(null!=e?e:[])),[e]),n=(0,c.useMemo)((()=>yf(t.filter((e=>e?.css)),gf)),[t]),r=(0,c.useMemo)((()=>t.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")),[t]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("style",{ref:hf(t)}),n.map(((e,t)=>(0,c.createElement)("style",{key:t},e))),(0,c.createElement)(f.SVG,{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:r}}))}let vf;Gd([Hd,Kd]);const _f=2e3;function kf({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:r=[]}){e||(e=t);const[o,{height:i}]=(0,d.useResizeObserver)(),{styles:a}=(0,m.useSelect)((e=>({styles:e(zr).getSettings().styles})),[]),l=(0,c.useMemo)((()=>a?[...a,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...r]:a),[a,r]);vf=vf||(0,d.pure)(Xy);const s=t/e;return(0,c.createElement)(f.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${s})`,height:i*s,maxHeight:i>_f?_f*s:void 0,minHeight:n}},(0,c.createElement)(md,{contentRef:(0,d.useRefEffect)((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:_f,minHeight:0!==s&&s<1&&n?n/s:n}},(0,c.createElement)(bf,{styles:l}),o,(0,c.createElement)(vf,{renderAppender:!1})))}function Sf(e){const[t,{width:n}]=(0,d.useResizeObserver)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,c.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,c.createElement)(kf,{...e,containerWidth:n})))}var Ef=(0,c.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:r=[],__experimentalMinHeight:o,__experimentalPadding:i}){o&&(n=o,H()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),i&&(r=[...r,{css:`body { padding: ${i}px; }`}],H()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const a=(0,m.useSelect)((e=>e(zr).getSettings()),[]),l=(0,c.useMemo)((()=>({...a,__unstableIsPreviewMode:!0})),[a]),s=(0,c.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,c.createElement)(Jp,{value:s,settings:l},(0,c.createElement)(Sf,{viewportWidth:t,minHeight:n,additionalStyles:r})):null}));function wf({blocks:e,props:t={},layout:n}){const r=(0,m.useSelect)((e=>e(zr).getSettings()),[]),o=(0,c.useMemo)((()=>({...r,__unstableIsPreviewMode:!0})),[r]),i=(0,d.useDisabled)(),a=(0,d.useMergeRefs)([t.ref,i]),l=(0,c.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),s=(0,c.createElement)(Jp,{value:l,settings:o},(0,c.createElement)(tg,{renderAppender:!1,layout:n}));return{...t,ref:a,className:p()(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?s:null}}var Cf=function({item:e}){var t;const{name:n,title:r,icon:o,description:i,initialAttributes:a,example:s}=e,u=(0,l.isReusableBlock)(e);return(0,c.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,c.createElement)("div",{className:"block-editor-inserter__preview"},u||s?(0,c.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,c.createElement)(Ef,{blocks:s?(0,l.getBlockFromExample)(n,{attributes:{...s.attributes,...a},innerBlocks:s.innerBlocks}):(0,l.createBlock)(n,a),viewportWidth:null!==(t=s?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 16px; }"}]})):(0,c.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,b.__)("No Preview Available."))),!u&&(0,c.createElement)($p,{title:r,icon:o,description:i}))};var xf=(0,c.createContext)();var If=(0,c.forwardRef)((function({isFirst:e,as:t,children:n,...r},o){const i=(0,c.useContext)(xf);return(0,c.createElement)(f.__unstableCompositeItem,{ref:o,state:i,role:"option",focusable:!0,...r},(r=>{const o={...r,tabIndex:e?0:r.tabIndex};return t?(0,c.createElement)(t,{...o},n):"function"==typeof n?n(o):(0,c.createElement)(f.Button,{...o},n)}))}));var Af=(0,c.createElement)(j.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function Bf({count:e,icon:t,isPattern:n}){const r=n&&(0,b.__)("Pattern");return(0,c.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,c.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},(0,c.createElement)(f.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,c.createElement)(f.FlexItem,null,t?(0,c.createElement)(Hp,{icon:t}):r||(0,b.sprintf)((0,b._n)("%d block","%d blocks",e),e)),(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(Hp,{icon:Af})))))}var Pf=({isEnabled:e,blocks:t,icon:n,children:r,isPattern:o})=>{const i={type:"inserter",blocks:t};return(0,c.createElement)(f.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:i,onDragStart:e=>{e.dataTransfer.setData("text/html",(0,l.serialize)(t))},__experimentalDragComponent:(0,c.createElement)(Bf,{count:t.length,icon:n,isPattern:o})},(({onDraggableStart:t,onDraggableEnd:n})=>r({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0})))};var Tf=(0,c.memo)((function({className:e,isFirst:t,item:n,onSelect:r,onHover:o,isDraggable:i,...a}){const s=(0,c.useRef)(!1),u=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},d=(0,c.useMemo)((()=>[(0,l.createBlock)(n.name,n.initialAttributes,(0,l.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.initialAttributes]),m=(0,l.isReusableBlock)(n)&&"unsynced"!==n.syncStatus||(0,l.isTemplatePart)(n);return(0,c.createElement)(Pf,{isEnabled:i&&!n.disabled,blocks:d,icon:n.icon},(({draggable:i,onDragStart:l,onDragEnd:d})=>(0,c.createElement)("div",{className:p()("block-editor-block-types-list__list-item",{"is-synced":m}),draggable:i,onDragStart:e=>{s.current=!0,l&&(o(null),l(e))},onDragEnd:e=>{s.current=!1,d&&d(e)}},(0,c.createElement)(If,{isFirst:t,className:p()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),r(n,(0,kp.isAppleOS)()?e.metaKey:e.ctrlKey),o(null)},onKeyDown:e=>{const{keyCode:t}=e;t===kp.ENTER&&(e.preventDefault(),r(n,(0,kp.isAppleOS)()?e.metaKey:e.ctrlKey),o(null))},onMouseEnter:()=>{s.current||o(n)},onMouseLeave:()=>o(null),...a},(0,c.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:u},(0,c.createElement)(Hp,{icon:n.icon,showColors:!0})),(0,c.createElement)("span",{className:"block-editor-block-types-list__item-title"},(0,c.createElement)(f.__experimentalTruncate,{numberOfLines:3},n.title))))))}));var Of=(0,c.forwardRef)((function(e,t){const[n,r]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{n&&(0,Cn.speak)((0,b.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,c.createElement)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&r(!1)},...e})}));var Mf=(0,c.forwardRef)((function(e,t){const n=(0,c.useContext)(xf);return(0,c.createElement)(f.__unstableCompositeGroup,{state:n,role:"presentation",ref:t,...e})}));var Rf=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:r,label:o,isDraggable:i=!0}){return(0,c.createElement)(Of,{className:"block-editor-block-types-list","aria-label":o},function(e,t){const n=[];for(let r=0,o=e.length;r<o;r+=t)n.push(e.slice(r,r+t));return n}(e,3).map(((e,r)=>(0,c.createElement)(Mf,{key:r},e.map(((e,o)=>(0,c.createElement)(Tf,{key:e.id,item:e,className:(0,l.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:i&&!e.isDisabled,isFirst:0===r&&0===o})))))),r)};var Nf=function({title:e,icon:t,children:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,c.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),(0,c.createElement)(f.Icon,{icon:t})),(0,c.createElement)("div",{className:"block-editor-inserter__panel-content"},n))};var Ff=(e,t)=>{const{categories:n,collections:r,items:o}=(0,m.useSelect)((t=>{const{getInserterItems:n}=t(zr),{getCategories:r,getCollections:o}=t(l.store);return{categories:r(),collections:o(),items:n(e)}}),[e]);return[o,n,r,(0,c.useCallback)((({name:e,initialAttributes:n,innerBlocks:r,syncStatus:o,content:i},a)=>{const s="unsynced"===o?(0,l.parse)(i,{__unstableSkipMigrationLogs:!0}):(0,l.createBlock)(e,n,(0,l.createBlocksFromInnerBlocksTemplate)(r));t(s,void 0,a)}),[t])]};var Lf=function({children:e}){const t=(0,f.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return(0,c.createElement)(xf.Provider,{value:t},e)};const Df=[];var Uf=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r}){const[o,i,a,l]=Ff(e,t),s=(0,c.useMemo)((()=>K(o,"frecency","desc").slice(0,6)),[o]),u=(0,c.useMemo)((()=>o.filter((e=>!e.category))),[o]),p=(0,c.useMemo)((()=>(0,d.pipe)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>e.reduce(((e,t)=>{const{category:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{})))(o)),[o]),f=(0,c.useMemo)((()=>{const e={...a};return Object.keys(a).forEach((t=>{e[t]=o.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[o,a]);(0,c.useEffect)((()=>()=>n(null)),[]);const m=(0,d.useAsyncList)(i),y=i.length===m.length,g=(0,c.useMemo)((()=>Object.entries(a)),[a]),h=(0,d.useAsyncList)(y?g:Df);return(0,c.createElement)(Lf,null,(0,c.createElement)("div",null,r&&!!s.length&&(0,c.createElement)(Nf,{title:(0,b._x)("Most used","blocks")},(0,c.createElement)(Rf,{items:s,onSelect:l,onHover:n,label:(0,b._x)("Most used","blocks")})),m.map((e=>{const t=p[e.slug];return t&&t.length?(0,c.createElement)(Nf,{key:e.slug,title:e.title,icon:e.icon},(0,c.createElement)(Rf,{items:t,onSelect:l,onHover:n,label:e.title})):null})),y&&u.length>0&&(0,c.createElement)(Nf,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,b.__)("Uncategorized")},(0,c.createElement)(Rf,{items:u,onSelect:l,onHover:n,label:(0,b.__)("Uncategorized")})),h.map((([e,t])=>{const r=f[e];return r&&r.length?(0,c.createElement)(Nf,{key:e,title:t.title,icon:t.icon},(0,c.createElement)(Rf,{items:r,onSelect:l,onHover:n,label:t.title})):null}))))},jf=window.wp.notices;const zf={name:"custom",label:(0,b.__)("My patterns"),description:(0,b.__)("Custom patterns add by site users")};var Vf=(e,t)=>{const{patternCategories:n,patterns:r}=(0,m.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:r}=e(zr);return{patterns:n(t),patternCategories:r().__experimentalBlockPatternCategories}}),[t]),o=(0,c.useMemo)((()=>[...n,zf]),[n]),{createSuccessNotice:i}=(0,m.useDispatch)(jf.store),a=(0,c.useCallback)(((t,n)=>{e((null!=n?n:[]).map((e=>(0,l.cloneBlock)(e))),t.name),i((0,b.sprintf)((0,b.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[i,e]);return[r,o,a]};const Gf=({showTooltip:e,title:t,children:n})=>e?(0,c.createElement)(f.Tooltip,{text:t},n):(0,c.createElement)(c.Fragment,null,n);function Hf({isDraggable:e,pattern:t,onClick:n,onHover:r,composite:o,showTooltip:i}){const[a,l]=(0,c.useState)(!1),{blocks:s,viewportWidth:u}=t,p=`block-editor-block-patterns-list__item-description-${(0,d.useInstanceId)(Hf)}`;return(0,c.createElement)(Pf,{isEnabled:e,blocks:s,isPattern:!!t},(({draggable:e,onDragStart:d,onDragEnd:m})=>(0,c.createElement)("div",{className:"block-editor-block-patterns-list__list-item",draggable:e,onDragStart:e=>{l(!0),d&&(r?.(null),d(e))},onDragEnd:e=>{l(!1),m&&m(e)}},(0,c.createElement)(Gf,{showTooltip:i,title:t.title},(0,c.createElement)(f.__unstableCompositeItem,{role:"option",as:"div",...o,className:"block-editor-block-patterns-list__item",onClick:()=>{n(t,s),r?.(null)},onMouseEnter:()=>{a||r?.(t)},onMouseLeave:()=>r?.(null),"aria-label":t.title,"aria-describedby":t.description?p:void 0},(0,c.createElement)(Ef,{blocks:s,viewportWidth:u}),!i&&(0,c.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&(0,c.createElement)(f.VisuallyHidden,{id:p},t.description))))))}function $f(){return(0,c.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Wf=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:r,onClickPattern:o,orientation:i,label:a=(0,b.__)("Block Patterns"),showTitlesAsTooltip:l}){const s=(0,f.__unstableUseCompositeState)({orientation:i});return(0,c.createElement)(f.__unstableComposite,{...s,role:"listbox",className:"block-editor-block-patterns-list","aria-label":a},t.map((t=>n.includes(t)?(0,c.createElement)(Hf,{key:t.name,pattern:t,onClick:o,onHover:r,isDraggable:e,composite:s,showTooltip:l}):(0,c.createElement)($f,{key:t.name}))))};function Kf({selectedCategory:e,patternCategories:t,onClickCategory:n}){const r="block-editor-block-patterns-explorer__sidebar";return(0,c.createElement)("div",{className:`${r}__categories-list`},t.map((({name:t,label:o})=>(0,c.createElement)(f.Button,{key:t,label:o,className:`${r}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)}},o))))}function qf({filterValue:e,setFilterValue:t}){return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,c.createElement)(f.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,b.__)("Search for patterns"),placeholder:(0,b.__)("Search")}))}var Jf=function({selectedCategory:e,patternCategories:t,onClickCategory:n,filterValue:r,setFilterValue:o}){return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,c.createElement)(qf,{filterValue:r,setFilterValue:o}),!r&&(0,c.createElement)(Kf,{selectedCategory:e,patternCategories:t,onClickCategory:n}))};var Zf=function(){return(0,c.createElement)("div",{className:"block-editor-inserter__no-results"},(0,c.createElement)(Yi,{className:"block-editor-inserter__no-results-icon",icon:Gp}),(0,c.createElement)("p",null,(0,b.__)("No results found.")))};var Yf=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:r,onSelect:o,shouldFocusBlock:i=!0,selectBlockOnInsert:a=!0}){const{getSelectedBlock:s}=(0,m.useSelect)(zr),{destinationRootClientId:u,destinationIndex:p}=(0,m.useSelect)((o=>{const{getSelectedBlockClientId:i,getBlockRootClientId:a,getBlockIndex:l,getBlockOrder:s}=o(zr),c=i();let u,p=e;return void 0!==t?u=t:n?u=l(n):!r&&c?(p=a(c),u=l(c)+1):u=s(p).length,{destinationRootClientId:p,destinationIndex:u}}),[e,t,n,r]),{replaceBlocks:d,insertBlocks:f,showInsertionPoint:y,hideInsertionPoint:g}=(0,m.useDispatch)(zr),h=(0,c.useCallback)(((e,t,n=!1)=>{const c=s();!r&&c&&(0,l.isUnmodifiedDefaultBlock)(c)?d(c.clientId,e,null,i||n?0:null,t):f(e,p,u,a,i||n?0:null,t);const m=Array.isArray(e)?e.length:1,y=(0,b.sprintf)((0,b._n)("%d block added.","%d blocks added.",m),m);(0,Cn.speak)(y),o&&o(e)}),[r,s,d,f,u,p,o,i,a]),v=(0,c.useCallback)((e=>{e?y(u,p):g()}),[y,g,u,p]);return[u,h,v]},Qf=n(4793),Xf=n.n(Qf);const em=e=>e.name||"",tm=e=>e.title,nm=e=>e.description||"",rm=e=>e.keywords||[],om=e=>e.category,im=()=>null;function am(e=""){return Pi(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function lm(e=""){return e=(e=(e=Xf()(e)).replace(/^\//,"")).toLowerCase()}const sm=(e="")=>am(lm(e)),cm=(e,t,n,r)=>{if(0===sm(r).length)return e;return um(e,r,{getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},um=(e=[],t="",n={})=>{if(0===sm(t).length)return e;const r=e.map((e=>[e,pm(e,t,n)])).filter((([,e])=>e>0));return r.sort((([,e],[,t])=>t-e)),r.map((([e])=>e))};function pm(e,t,n={}){const{getName:r=em,getTitle:o=tm,getDescription:i=nm,getKeywords:a=rm,getCategory:l=om,getCollection:s=im}=n,c=r(e),u=o(e),p=i(e),d=a(e),f=l(e),m=s(e),y=lm(t),g=lm(u);let h=0;if(y===g)h+=30;else if(g.startsWith(y))h+=20;else{const e=[c,u,p,...d,f,m].join(" ");0===((e,t)=>e.filter((e=>!sm(t).some((t=>t.includes(e))))))(am(y),e).length&&(h+=10)}if(0!==h&&c.startsWith("core/")){h+=c!==e.id?1:2}return h}function dm({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,c.createElement)(f.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,b.sprintf)((0,b._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',t),t,e)):null}var fm=function({filterValue:e,selectedCategory:t,patternCategories:n}){const r=(0,d.useDebounce)(Cn.speak,500),[o,i]=Yf({shouldFocusBlock:!0}),[a,,l]=Vf(i,o),s=(0,c.useMemo)((()=>n.map((e=>e.name))),[n]),u=(0,c.useMemo)((()=>e?um(a,e):a.filter((e=>"uncategorized"===t?!e.categories?.length||e.categories.every((e=>!s.includes(e))):e.categories?.includes(t)))),[e,a,t,s]);(0,c.useEffect)((()=>{if(!e)return;const t=u.length,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",t),t);r(n)}),[e,r,u.length]);const p=(0,d.useAsyncList)(u,{step:2}),f=!!u?.length;return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},f&&(0,c.createElement)(dm,{filterValue:e,filteredBlockPatternsLength:u.length}),(0,c.createElement)(Lf,null,!f&&(0,c.createElement)(Zf,null),f&&(0,c.createElement)(Wf,{shownPatterns:p,blockPatterns:u,onClickPattern:l,isDraggable:!1})))};function mm({initialCategory:e,patternCategories:t}){const[n,r]=(0,c.useState)(""),[o,i]=(0,c.useState)(e?.name);return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,c.createElement)(Jf,{selectedCategory:o,patternCategories:t,onClickCategory:i,filterValue:n,setFilterValue:r}),(0,c.createElement)(fm,{filterValue:n,selectedCategory:o,patternCategories:t}))}var ym=function({onModalClose:e,...t}){return(0,c.createElement)(f.Modal,{title:(0,b.__)("Patterns"),onRequestClose:e,isFullScreen:!0},(0,c.createElement)(mm,{...t}))};function gm({title:e}){return(0,c.createElement)(f.__experimentalVStack,{spacing:0},(0,c.createElement)(f.__experimentalView,null,(0,c.createElement)(f.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,c.createElement)(f.__experimentalHStack,{spacing:2},(0,c.createElement)(f.__experimentalNavigatorBackButton,{style:{minWidth:24,padding:0},icon:(0,b.isRTL)()?zp:Vp,isSmall:!0,"aria-label":(0,b.__)("Navigate to the previous view")}),(0,c.createElement)(f.__experimentalSpacer,null,(0,c.createElement)(f.__experimentalHeading,{level:5},e))))))}function hm({categories:e,children:t}){return(0,c.createElement)(f.__experimentalNavigatorProvider,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation"},(0,c.createElement)(f.__experimentalNavigatorScreen,{path:"/"},(0,c.createElement)(f.__experimentalItemGroup,null,e.map((e=>(0,c.createElement)(f.__experimentalNavigatorButton,{key:e.name,path:`/category/${e.name}`,as:f.__experimentalItem,isAction:!0},(0,c.createElement)(f.__experimentalHStack,null,(0,c.createElement)(f.FlexBlock,null,e.label),(0,c.createElement)(Yi,{icon:(0,b.isRTL)()?Vp:zp}))))))),e.map((e=>(0,c.createElement)(f.__experimentalNavigatorScreen,{key:e.name,path:`/category/${e.name}`},(0,c.createElement)(gm,{title:(0,b.__)("Back")}),t(e)))))}const bm=()=>{},vm=["custom","featured","posts","text","gallery","call-to-action","banner","header","footer"];function _m(e){const[t,n]=Vf(void 0,e),r=(0,c.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>n.some((t=>t.name===e))))),[n]),o=(0,c.useMemo)((()=>{const e=n.filter((e=>t.some((t=>t.categories?.includes(e.name))))).sort((({name:e},{name:t})=>{let n=vm.indexOf(e),r=vm.indexOf(t);return n<0&&(n=vm.length),r<0&&(r=vm.length),n-r}));return t.some((e=>!r(e)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,b._x)("Uncategorized")}),e}),[n,t,r]);return o}function km({rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o}){const i=(0,c.useRef)();return(0,c.useEffect)((()=>{const e=setTimeout((()=>{const[e]=el.focus.tabbable.find(i.current);e?.focus()}));return()=>clearTimeout(e)}),[r]),(0,c.createElement)("div",{ref:i,className:"block-editor-inserter__patterns-category-dialog"},(0,c.createElement)(Sm,{rootClientId:e,onInsert:t,onHover:n,category:r,showTitlesAsTooltip:o}))}function Sm({rootClientId:e,onInsert:t,onHover:n=bm,category:r,showTitlesAsTooltip:o}){const[i,,a]=Vf(t,e),l=_m(e),s=(0,c.useMemo)((()=>i.filter((e=>{var t;if("uncategorized"!==r.name)return e.categories?.includes(r.name);return 0===(null!==(t=e.categories?.filter((e=>l.find((t=>t.name===e)))))&&void 0!==t?t:[]).length}))),[i,l,r.name]),u=(0,d.useAsyncList)(s);return(0,c.useEffect)((()=>()=>n(null)),[]),s.length?(0,c.createElement)("div",{className:"block-editor-inserter__patterns-category-panel"},(0,c.createElement)("div",{className:"block-editor-inserter__patterns-category-panel-title"},r.label),(0,c.createElement)("p",null,r.description),(0,c.createElement)(Wf,{shownPatterns:u,blockPatterns:s,onClickPattern:a,onHover:n,label:r.label,orientation:"vertical",category:r.label,isDraggable:!0,showTitlesAsTooltip:o})):null}var Em=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:r}){const[o,i]=(0,c.useState)(!1),a=_m(r),l=t||a[0],s=(0,d.useViewportMatch)("medium","<");return(0,c.createElement)(c.Fragment,null,!s&&(0,c.createElement)("div",{className:"block-editor-inserter__block-patterns-tabs-container"},(0,c.createElement)("nav",{"aria-label":(0,b.__)("Block pattern categories")},(0,c.createElement)(f.__experimentalItemGroup,{role:"list",className:"block-editor-inserter__block-patterns-tabs"},a.map((n=>(0,c.createElement)(f.__experimentalItem,{role:"listitem",key:n.name,onClick:()=>e(n),className:n===t?"block-editor-inserter__patterns-category block-editor-inserter__patterns-selected-category":"block-editor-inserter__patterns-category","aria-label":n.label,"aria-current":n===t?"true":void 0},(0,c.createElement)(f.__experimentalHStack,null,(0,c.createElement)(f.FlexBlock,null,n.label),(0,c.createElement)(Yi,{icon:(0,b.isRTL)()?Vp:zp}))))),(0,c.createElement)("div",{role:"listitem"},(0,c.createElement)(f.Button,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>i(!0),variant:"secondary"},(0,b.__)("Explore all patterns")))))),s&&(0,c.createElement)(hm,{categories:a},(e=>(0,c.createElement)(Sm,{onInsert:n,rootClientId:r,category:e,showTitlesAsTooltip:!1}))),o&&(0,c.createElement)(ym,{initialCategory:l,patternCategories:a,onModalClose:()=>i(!1)}))},wm=window.wp.url;var Cm=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),xm=window.wp.preferences;const Im="isResuableBlocksrRenameHintVisible";function Am(){const e=(0,m.useSelect)((e=>{var t;return null===(t=e(xm.store).get("core",Im))||void 0===t||t}),[]),t=(0,c.useRef)(),{set:n}=(0,m.useDispatch)(xm.store);return e?(0,c.createElement)("div",{ref:t,className:"reusable-blocks-menu-items__rename-hint"},(0,c.createElement)("div",{className:"reusable-blocks-menu-items__rename-hint-content"},(0,b.__)("Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.")),(0,c.createElement)(f.Button,{className:"reusable-blocks-menu-items__rename-hint-dismiss",icon:Cm,iconSize:"16",label:(0,b.__)("Dismiss hint"),onClick:()=>{const e=el.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",Im,!1)},showTooltip:!1})):null}function Bm({onHover:e,onInsert:t,rootClientId:n}){const[r,,,o]=Ff(n,t),i=(0,c.useMemo)((()=>r.filter((({category:e})=>"reusable"===e))),[r]);return 0===i.length?(0,c.createElement)(Zf,null):(0,c.createElement)(Nf,{title:(0,b.__)("Synced patterns")},(0,c.createElement)(Rf,{items:i,onSelect:o,onHover:e,label:(0,b.__)("Synced patterns")}))}var Pm=function({rootClientId:e,onInsert:t,onHover:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__hint"},(0,c.createElement)(Am,null)),(0,c.createElement)(Bm,{onHover:n,onInsert:t,rootClientId:e}),(0,c.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},(0,c.createElement)(f.Button,{className:"block-editor-inserter__manage-reusable-blocks",variant:"secondary",href:(0,wm.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,b.__)("Manage my patterns"))))};function Tm(e){const[t,n]=(0,c.useState)([]),{canInsertImage:r,canInsertVideo:o,canInsertAudio:i}=(0,m.useSelect)((t=>{const{canInsertBlockType:n}=t(zr);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]),a=function(){const{inserterMediaCategories:e,allowedMimeTypes:t,enableOpenverseMediaCategory:n}=(0,m.useSelect)((e=>{const t=e(zr).getSettings();return{inserterMediaCategories:t.inserterMediaCategories,allowedMimeTypes:t.allowedMimeTypes,enableOpenverseMediaCategory:t.enableOpenverseMediaCategory}}),[]),r=(0,c.useMemo)((()=>{if(e&&t)return e.filter((e=>!(!n&&"openverse"===e.name)&&Object.values(t).some((t=>t.startsWith(`${e.mediaType}/`)))))}),[e,t,n]);return r}();return(0,c.useEffect)((()=>{(async()=>{const e=[];if(!a)return;const t=new Map(await Promise.all(a.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]})))),l={image:r,video:o,audio:i};a.forEach((n=>{l[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[r,o,i,a]),t}var Om=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var Mm=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"})),Rm=window.wp.blob;const Nm={image:"img",video:"video",audio:"audio"};function Fm(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=Nm[t],a=(0,c.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[(0,l.createBlock)(`core/${t}`,n),a]}const Lm=["image"],Dm=25,Um={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"};function jm({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,c.createElement)(f.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,b.__)("Options"),popoverProps:Um,icon:Om},(()=>(0,c.createElement)(f.MenuGroup,null,(0,c.createElement)(f.MenuItem,{onClick:()=>window.open(n,"_blank").focus(),icon:Mm},(0,b.sprintf)((0,b.__)("Report %s"),e.mediaType)))))}function zm({onClose:e,onSubmit:t}){return(0,c.createElement)(f.Modal,{title:(0,b.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"},(0,c.createElement)(f.__experimentalVStack,{spacing:3},(0,c.createElement)("p",null,(0,b.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")),(0,c.createElement)("p",null,(0,b.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."))),(0,c.createElement)(f.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(f.Button,{variant:"tertiary",onClick:e},(0,b.__)("Cancel"))),(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(f.Button,{variant:"primary",onClick:t},(0,b.__)("Insert")))))}function Vm({media:e,onClick:t,composite:n,category:r}){const[o,i]=(0,c.useState)(!1),[a,s]=(0,c.useState)(!1),[u,d]=(0,c.useState)(!1),[y,g]=(0,c.useMemo)((()=>Fm(e,r.mediaType)),[e,r.mediaType]),{createErrorNotice:h,createSuccessNotice:v}=(0,m.useDispatch)(jf.store),_=(0,m.useSelect)((e=>e(zr).getSettings().mediaUpload),[]),k=(0,c.useCallback)((e=>{if(u)return;const n=(0,l.cloneBlock)(e),{id:r,url:o,caption:a}=n.attributes;r?t(n):(d(!0),window.fetch(o).then((e=>e.blob())).then((e=>{_({filesList:[e],additionalData:{caption:a},onFileChange([e]){(0,Rm.isBlobURL)(e.url)||(t({...n,attributes:{...n.attributes,id:e.id,url:e.url}}),v((0,b.__)("Image uploaded and inserted."),{type:"snackbar"}),d(!1))},allowedTypes:Lm,onError(e){h(e,{type:"snackbar"}),d(!1)}})})).catch((()=>{i(!0),d(!1)})))}),[u,t,_,h,v]),S=e.title?.rendered||e.title;let E;if(S.length>Dm){const e="...";E=S.slice(0,Dm-e.length)+e}const w=(0,c.useCallback)((()=>s(!0)),[]),C=(0,c.useCallback)((()=>s(!1)),[]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Pf,{isEnabled:!0,blocks:[y]},(({draggable:t,onDragStart:o,onDragEnd:i})=>(0,c.createElement)("div",{className:p()("block-editor-inserter__media-list__list-item",{"is-hovered":a}),draggable:t,onDragStart:o,onDragEnd:i},(0,c.createElement)(f.Tooltip,{text:E||S},(0,c.createElement)("div",{onMouseEnter:w,onMouseLeave:C},(0,c.createElement)(f.__unstableCompositeItem,{role:"option",as:"div",...n,className:"block-editor-inserter__media-list__item",onClick:()=>k(y),"aria-label":S},(0,c.createElement)("div",{className:"block-editor-inserter__media-list__item-preview"},g,u&&(0,c.createElement)("div",{className:"block-editor-inserter__media-list__item-preview-spinner"},(0,c.createElement)(f.Spinner,null)))),!u&&(0,c.createElement)(jm,{category:r,media:e})))))),o&&(0,c.createElement)(zm,{onClose:()=>i(!1),onSubmit:()=>{t((0,l.cloneBlock)(y)),v((0,b.__)("Image inserted."),{type:"snackbar"}),i(!1)}}))}var Gm=function({mediaList:e,category:t,onClick:n,label:r=(0,b.__)("Media List")}){const o=(0,f.__unstableUseCompositeState)();return(0,c.createElement)(f.__unstableComposite,{...o,role:"listbox",className:"block-editor-inserter__media-list","aria-label":r},e.map(((e,r)=>(0,c.createElement)(Vm,{key:e.id||e.sourceId||r,media:e,category:t,onClick:n,composite:o}))))};function Hm(e=""){const[t,n]=(0,c.useState)(e),[r,o]=(0,c.useState)(e),i=(0,d.useDebounce)(o,250);return(0,c.useEffect)((()=>{r!==t&&i(t)}),[r,t]),[t,n,r]}const $m=10;function Wm({rootClientId:e,onInsert:t,category:n}){const r=(0,c.useRef)();return(0,c.useEffect)((()=>{const e=setTimeout((()=>{const[e]=el.focus.tabbable.find(r.current);e?.focus()}));return()=>clearTimeout(e)}),[n]),(0,c.createElement)("div",{ref:r,className:"block-editor-inserter__media-dialog"},(0,c.createElement)(Km,{rootClientId:e,onInsert:t,category:n}))}function Km({rootClientId:e,onInsert:t,category:n}){const[r,o,i]=Hm(),{mediaList:a,isLoading:l}=function(e,t={}){const[n,r]=(0,c.useState)(),[o,i]=(0,c.useState)(!1),a=(0,c.useRef)();return(0,c.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:$m,search:i}),s="block-editor-inserter__media-panel",u=n.labels.search_items||(0,b.__)("Search");return(0,c.createElement)("div",{className:s},(0,c.createElement)(f.SearchControl,{className:`${s}-search`,onChange:o,value:r,label:u,placeholder:u}),l&&(0,c.createElement)("div",{className:`${s}-spinner`},(0,c.createElement)(f.Spinner,null)),!l&&!a?.length&&(0,c.createElement)(Zf,null),!l&&!!a?.length&&(0,c.createElement)(Gm,{rootClientId:e,onClick:t,mediaList:a,category:n}))}var qm=function({fallback:e=null,children:t}){const n=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return!!t().mediaUpload}),[]);return n?t:e};var Jm=(0,f.withFilters)("editor.MediaUpload")((()=>null));const Zm=["image","video","audio"];var Ym=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:r}){const o=Tm(e),i=(0,d.useViewportMatch)("medium","<"),a="block-editor-inserter__media-tabs",l=(0,c.useCallback)((e=>{if(!e?.url)return;const[t]=Fm(e,e.type);r(t)}),[r]),s=(0,c.useMemo)((()=>o.map((e=>({...e,label:e.labels.name})))),[o]);return(0,c.createElement)(c.Fragment,null,!i&&(0,c.createElement)("div",{className:`${a}-container`},(0,c.createElement)("nav",{"aria-label":(0,b.__)("Media categories")},(0,c.createElement)(f.__experimentalItemGroup,{role:"list",className:a},o.map((e=>(0,c.createElement)(f.__experimentalItem,{role:"listitem",key:e.name,onClick:()=>n(e),className:p()(`${a}__media-category`,{"is-selected":t===e}),"aria-label":e.labels.name,"aria-current":e===t?"true":void 0},(0,c.createElement)(f.__experimentalHStack,null,(0,c.createElement)(f.FlexBlock,null,e.labels.name),(0,c.createElement)(Yi,{icon:(0,b.isRTL)()?Vp:zp}))))),(0,c.createElement)("div",{role:"listitem"},(0,c.createElement)(qm,null,(0,c.createElement)(Jm,{multiple:!1,onSelect:l,allowedTypes:Zm,render:({open:e})=>(0,c.createElement)(f.Button,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},(0,b.__)("Open Media Library"))})))))),i&&(0,c.createElement)(hm,{categories:s},(t=>(0,c.createElement)(Km,{onInsert:r,rootClientId:e,category:t}))))};const{Fill:Qm,Slot:Xm}=(0,f.createSlotFill)("__unstableInserterMenuExtension");Qm.Slot=Xm;var ey=Qm;const ty=(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,ny=[];var ry=function({filterValue:e,onSelect:t,onHover:n,rootClientId:r,clientId:o,isAppender:i,__experimentalInsertionIndex:a,maxBlockPatterns:l,maxBlockTypes:s,showBlockDirectory:u=!1,isDraggable:p=!0,shouldFocusBlock:y=!0,prioritizePatterns:g,selectBlockOnInsert:h}){const v=(0,d.useDebounce)(Cn.speak,500),{prioritizedBlocks:_}=(0,m.useSelect)((e=>{const t=e(zr).getBlockListSettings(r);return{prioritizedBlocks:t?.prioritizedInserterBlocks||ny}}),[r]),[k,S]=Yf({onSelect:t,rootClientId:r,clientId:o,isAppender:i,insertionIndex:a,shouldFocusBlock:y,selectBlockOnInsert:h}),[E,w,C,x]=Ff(k,S),[I,,A]=Vf(S,k),B=(0,c.useMemo)((()=>{if(0===l)return[];const t=um(I,e);return void 0!==l?t.slice(0,l):t}),[e,I,l]);let P=s;g&&B.length>2&&(P=0);const T=(0,c.useMemo)((()=>{if(0===P)return[];let t=K(E,"frecency","desc");!e&&_.length&&(t=ty(t,_));const n=cm(t,w,C,e);return void 0!==P?n.slice(0,P):n}),[e,E,w,C,P,_]);(0,c.useEffect)((()=>{if(!e)return;const t=T.length+B.length,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",t),t);v(n)}),[e,v,T,B]);const O=(0,d.useAsyncList)(T,{step:9}),M=(0,d.useAsyncList)(O.length===T.length?B:ny),R=T.length>0||B.length>0,N=!!T.length&&(0,c.createElement)(Nf,{title:(0,c.createElement)(f.VisuallyHidden,null,(0,b.__)("Blocks"))},(0,c.createElement)(Rf,{items:O,onSelect:x,onHover:n,label:(0,b.__)("Blocks"),isDraggable:p})),F=!!B.length&&(0,c.createElement)(Nf,{title:(0,c.createElement)(f.VisuallyHidden,null,(0,b.__)("Block Patterns"))},(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,c.createElement)(Wf,{shownPatterns:M,blockPatterns:B,onClickPattern:A,onHover:n,isDraggable:p})));return(0,c.createElement)(Lf,null,!u&&!R&&(0,c.createElement)(Zf,null),g?F:N,!!T.length&&!!B.length&&(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),g?N:F,u&&(0,c.createElement)(ey.Slot,{fillProps:{onSelect:x,onHover:n,filterValue:e,hasItems:R,rootClientId:k}},(e=>e.length?e:R?null:(0,c.createElement)(Zf,null))))};const oy={name:"blocks",title:(0,b.__)("Blocks")},iy={name:"patterns",title:(0,b.__)("Patterns")},ay={name:"reusable",title:(0,b.__)("Synced patterns"),icon:z},ly={name:"media",title:(0,b.__)("Media")};var sy=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,showMedia:r=!1,onSelect:o,prioritizePatterns:i}){const a=(0,c.useMemo)((()=>{const e=[];return i&&t&&e.push(iy),e.push(oy),!i&&t&&e.push(iy),r&&e.push(ly),n&&e.push(ay),e}),[i,t,n,r]);return(0,c.createElement)(f.TabPanel,{className:"block-editor-inserter__tabs",tabs:a,onSelect:o},e)};var cy=(0,c.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,onSelect:o,showInserterHelpPanel:i,showMostUsedBlocks:a,__experimentalFilterValue:l="",shouldFocusBlock:s=!0,prioritizePatterns:u},d){const[y,g,h]=Hm(l),[v,_]=(0,c.useState)(null),[k,S]=(0,c.useState)(null),[E,w]=(0,c.useState)(null),[C,x]=(0,c.useState)(null),[I,A,B]=Yf({rootClientId:e,clientId:t,isAppender:n,insertionIndex:r,shouldFocusBlock:s}),{showPatterns:P,inserterItems:T}=(0,m.useSelect)((e=>{const{__experimentalGetAllowedPatterns:t,getInserterItems:n}=e(zr);return{showPatterns:!!t(I).length,inserterItems:n(I)}}),[I]),O=(0,c.useMemo)((()=>T.some((({category:e})=>"reusable"===e))),[T]),M=!!Tm(I).length,R=(0,c.useCallback)(((e,t,n)=>{A(e,t,n),o()}),[A,o]),N=(0,c.useCallback)(((e,t)=>{A(e,{patternName:t}),o()}),[A,o]),F=(0,c.useCallback)((e=>{B(!!e),_(e)}),[B,_]),L=(0,c.useCallback)((e=>{B(!!e)}),[B]),D=(0,c.useCallback)((e=>{S(e)}),[S]),U=(0,c.useMemo)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__block-list"},(0,c.createElement)(Uf,{rootClientId:I,onInsert:R,onHover:F,showMostUsedBlocks:a})),i&&(0,c.createElement)("div",{className:"block-editor-inserter__tips"},(0,c.createElement)(f.VisuallyHidden,{as:"h2"},(0,b.__)("A tip for using the block editor")),(0,c.createElement)(jp,null)))),[I,R,F,a,i]),j=(0,c.useMemo)((()=>(0,c.createElement)(Em,{rootClientId:I,onInsert:N,onSelectCategory:D,selectedCategory:k})),[I,N,D,k]),z=(0,c.useMemo)((()=>(0,c.createElement)(Pm,{rootClientId:I,onInsert:R,onHover:F})),[I,R,F]),V=(0,c.useMemo)((()=>(0,c.createElement)(Ym,{rootClientId:I,selectedCategory:E,onSelectCategory:w,onInsert:R})),[I,R,E,w]),G=(0,c.useCallback)((e=>"blocks"===e.name?U:"patterns"===e.name?j:"reusable"===e.name?z:"media"===e.name?V:void 0),[U,j,z,V]),H=(0,c.useRef)();(0,c.useImperativeHandle)(d,(()=>({focusSearch:()=>{H.current.focus()}})));const $="patterns"===C&&!h&&k,W=!h&&(P||O||M),K="media"===C&&!h&&E;return(0,c.createElement)("div",{className:"block-editor-inserter__menu"},(0,c.createElement)("div",{className:p()("block-editor-inserter__main-area",{"show-as-tabs":W})},(0,c.createElement)(f.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{v&&_(null),g(e)},value:y,label:(0,b.__)("Search for blocks and patterns"),placeholder:(0,b.__)("Search"),ref:H}),!!h&&(0,c.createElement)("div",{className:"block-editor-inserter__no-tab-container"},(0,c.createElement)(ry,{filterValue:h,onSelect:o,onHover:F,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:r,showBlockDirectory:!0,shouldFocusBlock:s})),W&&(0,c.createElement)(sy,{showPatterns:P,showReusableBlocks:O,showMedia:M,prioritizePatterns:u,onSelect:x},G),!h&&!W&&(0,c.createElement)("div",{className:"block-editor-inserter__no-tab-container"},U)),K&&(0,c.createElement)(Wm,{rootClientId:I,onInsert:R,category:E}),i&&v&&(0,c.createElement)(Cf,{item:v}),$&&(0,c.createElement)(km,{rootClientId:I,onInsert:N,onHover:L,category:k,showTitlesAsTooltip:!0}))}));function uy({onSelect:e,rootClientId:t,clientId:n,isAppender:r,prioritizePatterns:o,selectBlockOnInsert:i}){const[a,l]=(0,c.useState)(""),[s,u]=Yf({onSelect:e,rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:i}),[d]=Ff(s,u),[y]=Vf(u,s),{setInserterIsOpened:g,insertionIndex:h}=(0,m.useSelect)((e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:o}=e(zr),i=t(),a=r(n),l=o();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===a?l:a}}),[n]),v=y.length&&(!!a||o),_=v&&y.length>6||d.length>6;(0,c.useEffect)((()=>{g&&g(!1)}),[g]);let k=0;return v&&(k=o?4:2),(0,c.createElement)("div",{className:p()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":g})},_&&(0,c.createElement)(f.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:a,onChange:e=>{l(e)},label:(0,b.__)("Search for blocks and patterns"),placeholder:(0,b.__)("Search")}),(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,c.createElement)(ry,{filterValue:a,onSelect:e,rootClientId:t,clientId:n,isAppender:r,maxBlockPatterns:k,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:o,selectBlockOnInsert:i})),g&&(0,c.createElement)(f.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{g({rootClientId:t,insertionIndex:h,filterValue:a})},"aria-label":(0,b.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,b.__)("Browse all")))}const py=({onToggle:e,disabled:t,isOpen:n,blockTitle:r,hasSingleBlockType:o,toggleProps:i={},prioritizePatterns:a})=>{const{as:l=f.Button,label:s,onClick:u,...p}=i;let d=s;return!d&&o?d=(0,b.sprintf)((0,b._x)("Add %s","directly add the only allowed block"),r):!d&&a?d=(0,b.__)("Add pattern"):d||(d=(0,b._x)("Add block","Generic label for block inserter button")),(0,c.createElement)(l,{icon:Dp,label:d,tooltipPosition:"bottom",onClick:function(t){e&&e(t),u&&u(t)},className:"block-editor-inserter__toggle","aria-haspopup":!o&&"true","aria-expanded":!o&&n,disabled:t,...p})};class dy extends c.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:l,renderToggle:s=py,prioritizePatterns:c}=this.props;return s({onToggle:e,isOpen:t,disabled:n||!l,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:l,selectBlockOnInsert:s}=this.props;return i?(0,c.createElement)(uy,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;l&&"function"==typeof l&&l(n),e()},rootClientId:t,clientId:n,isAppender:r,prioritizePatterns:a,selectBlockOnInsert:s}):(0,c.createElement)(cy,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:r,showInserterHelpPanel:o,prioritizePatterns:a})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:r,__experimentalIsQuick:o,onSelectOrClose:i}=this.props;return t||n?this.renderToggle({onToggle:r}):(0,c.createElement)(f.Dropdown,{className:"block-editor-inserter",contentClassName:p()("block-editor-inserter__popover",{"is-quick":o}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,b.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}const fy=(0,d.compose)([(0,m.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:r=!0})=>{const{getBlockRootClientId:o,hasInserterItems:i,getAllowedBlocks:a,__experimentalGetDirectInsertBlock:s,getSettings:c}=e(zr),{getBlockVariations:u}=e(l.store),p=a(n=n||o(t)||void 0),d=r&&s(n),f=c(),m=1===p?.length&&0===u(p[0].name,"inserter")?.length;let y=!1;return m&&(y=p[0]),{hasItems:i(n),hasSingleBlockType:m,blockTitle:y?y.title:"",allowedBlockType:y,directInsertBlock:d,rootClientId:n,prioritizePatterns:f.__experimentalPreferPatternsOnRoot&&!n}})),(0,m.withDispatch)(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:r,clientId:o,isAppender:i,hasSingleBlockType:a,allowedBlockType:s,directInsertBlock:c,onSelectOrClose:u,selectBlockOnInsert:p}=t;if(!a&&!c)return;const{insertBlock:d}=e(zr);let f;if(c){const e=function(e){const{getBlock:t,getPreviousBlockClientId:i}=n(zr);if(!e||!o&&!r)return{};const a={};let l={};if(o){const e=t(o),n=t(i(o));e?.name===n?.name&&(l=n?.attributes||{})}else{const e=t(r);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];c&&c?.name===t.name&&(l=t.attributes)}}return e.forEach((e=>{l.hasOwnProperty(e)&&(a[e]=l[e])})),a}(c.attributesToCopy);f=(0,l.createBlock)(c.name,{...c.attributes||{},...e})}else f=(0,l.createBlock)(s.name);d(f,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:a,getBlockRootClientId:l}=n(zr);if(o)return e(o);const s=t();return!i&&s&&l(s)===r?e(s)+1:a(r).length}(),r,p),u&&u({clientId:f?.clientId});const m=(0,b.sprintf)((0,b.__)("%s block added"),s.title);(0,Cn.speak)(m)}}))),(0,d.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:r})=>e||!t&&!n&&!r))])(dy);var my=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(fy,{ref:t,...e})));var yy=(0,d.compose)((0,m.withSelect)(((e,t)=>{const{getBlockCount:n,getSettings:r,getTemplateLock:o}=e(zr),i=!n(t.rootClientId),{bodyPlaceholder:a}=r();return{showPrompt:i,isLocked:!!o(t.rootClientId),placeholder:a}})),(0,m.withDispatch)(((e,t)=>{const{insertDefaultBlock:n,startTyping:r}=e(zr);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),r()}}})))((function({isLocked:e,onAppend:t,showPrompt:n,placeholder:r,rootClientId:o}){if(e)return null;const i=(0,Lp.decodeEntities)(r)||(0,b.__)("Type / to choose a block");return(0,c.createElement)("div",{"data-root-client-id":o||"",className:p()("block-editor-default-block-appender",{"has-visible-prompt":n})},(0,c.createElement)("p",{tabIndex:"0",role:"button","aria-label":(0,b.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{kp.ENTER!==e.keyCode&&kp.SPACE!==e.keyCode||t()},onClick:()=>t(),onFocus:()=>{n&&t()}},n?i:"\ufeff"),(0,c.createElement)(my,{rootClientId:o,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function gy({rootClientId:e,className:t,onFocus:n,tabIndex:r},o){return(0,c.createElement)(my,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:i,isOpen:a,blockTitle:l,hasSingleBlockType:s})=>{let u;u=s?(0,b.sprintf)((0,b._x)("Add %s","directly add the only allowed block"),l):(0,b._x)("Add block","Generic label for block inserter button");const d=!s;let m=(0,c.createElement)(f.Button,{ref:o,onFocus:n,tabIndex:r,className:p()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":d?"true":void 0,"aria-expanded":d?a:void 0,disabled:i,label:u},!s&&(0,c.createElement)(f.VisuallyHidden,{as:"span"},u),(0,c.createElement)(Yi,{icon:Dp}));return(d||s)&&(m=(0,c.createElement)(f.Tooltip,{text:u},m)),m},isAppender:!0})}const hy=(0,c.forwardRef)(((e,t)=>(H()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),gy(e,t))));var by=(0,c.forwardRef)(gy);function vy({rootClientId:e}){return(0,m.useSelect)((t=>t(zr).canInsertBlockType((0,l.getDefaultBlockName)(),e)))?(0,c.createElement)(yy,{rootClientId:e}):(0,c.createElement)(by,{rootClientId:e,className:"block-list-appender__toggle"})}var _y=function({rootClientId:e,renderAppender:t,className:n,tagName:r="div"}){const o=function(e,t){const n=(0,m.useSelect)((n=>{const{getTemplateLock:r,getSelectedBlockClientId:o,__unstableGetEditorMode:i,getBlockEditingMode:a}=Ur(n(zr));if(!1===t)return!1;if(!t){const t=o();if(e!==t&&(e||t))return!1}return!r(e)&&"disabled"!==a(e)&&"zoom-out"!==i()}),[e,t]);return n?t?(0,c.createElement)(t,null):(0,c.createElement)(vy,{rootClientId:e}):null}(e,t),i=(0,m.useSelect)((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:r,getBlockCount:o}=t(zr),i=n();return r()&&e===i?.rootClientId&&0===o(e)}),[e]);return o?(0,c.createElement)(r,{tabIndex:-1,className:p()("block-list-appender wp-block",n,{"is-drag-over":i}),contentEditable:!1,"data-block":!0},o):null};var ky=function(e){return(0,d.useRefEffect)((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])};const Sy=Number.MAX_SAFE_INTEGER;(0,c.createContext)();var Ey=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:r,__unstableContentRef:o,...i}){const[a,l]=(0,c.useReducer)((e=>(e+1)%Sy),0),{orientation:s,rootClientId:u,isVisible:d}=(0,m.useSelect)((n=>{const{getBlockListSettings:r,getBlockRootClientId:o,isBlockVisible:i}=n(zr),a=o(null!=e?e:t);return{orientation:r(a)?.orientation||"vertical",rootClientId:a,isVisible:i(e)&&i(t)}}),[e,t]),y=Ap(e),g=Ap(t),h="vertical"===s,v=(0,c.useMemo)((()=>{if(a<0||!y&&!g||!d)return;const{ownerDocument:e}=y||g;return{ownerDocument:e,getBoundingClientRect(){const e=y?y.getBoundingClientRect():null,t=g?g.getBoundingClientRect():null;let n=0,r=0,o=0,i=0;return h?(r=e?e.bottom:t.top,o=e?e.width:t.width,i=t&&e?t.top-e.bottom:0,n=e?e.left:t.left):(r=e?e.top:t.top,i=e?e.height:t.height,(0,b.isRTL)()?(n=t?t.right:e.left,o=e&&t?e.left-t.right:0):(n=e?e.right:t.left,o=e&&t?t.left-e.right:0)),new window.DOMRect(n,r,o,i)}}}),[y,g,a,h,d]),_=ky(o);return(0,c.useLayoutEffect)((()=>{if(!y)return;const e=new window.MutationObserver(l);return e.observe(y,{attributes:!0}),()=>{e.disconnect()}}),[y]),(0,c.useLayoutEffect)((()=>{if(!g)return;const e=new window.MutationObserver(l);return e.observe(g,{attributes:!0}),()=>{e.disconnect()}}),[g]),(0,c.useLayoutEffect)((()=>{if(y)return y.ownerDocument.defaultView.addEventListener("resize",l),()=>{y.ownerDocument.defaultView?.removeEventListener("resize",l)}}),[y]),(y||g)&&d?(0,c.createElement)(f.Popover,{ref:_,animate:!1,anchor:v,focusOnMount:!1,__unstableSlotName:r||null,key:t+"--"+u,...i,className:p()("block-editor-block-popover","block-editor-block-popover__inbetween",i.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled"},(0,c.createElement)("div",{className:"block-editor-block-popover__inbetween-container"},n)):null};const wy=Number.MAX_SAFE_INTEGER;var Cy=(0,c.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstableRefreshSize:r,__unstableCoverTarget:o=!1,__unstablePopoverSlot:i,__unstableContentRef:a,shift:l=!0,...s},u){const m=Ap(e),y=Ap(null!=t?t:e),g=(0,d.useMergeRefs)([u,ky(a)]),[h,b]=(0,c.useReducer)((e=>(e+1)%wy),0);(0,c.useLayoutEffect)((()=>{if(!m)return;const e=new window.MutationObserver(b);return e.observe(m,{attributes:!0}),()=>{e.disconnect()}}),[m]);const v=(0,c.useMemo)((()=>h<0||!m||y!==m?{}:{position:"absolute",width:m.offsetWidth,height:m.offsetHeight}),[m,y,r,h]),_=(0,c.useMemo)((()=>{if(!(h<0||!m||t&&!y))return{getBoundingClientRect(){var e,t,n,r;const o=m.getBoundingClientRect(),i=y?.getBoundingClientRect(),a=Math.min(o.left,null!==(e=i?.left)&&void 0!==e?e:1/0),l=Math.min(o.top,null!==(t=i?.top)&&void 0!==t?t:1/0),s=Math.max(o.right,null!==(n=i.right)&&void 0!==n?n:-1/0)-a,c=Math.max(o.bottom,null!==(r=i.bottom)&&void 0!==r?r:-1/0)-l;return new window.DOMRect(a,l,s,c)},ownerDocument:m.ownerDocument}}),[t,y,m,h]);return!m||t&&!y?null:(0,c.createElement)(f.Popover,{ref:g,animate:!1,focusOnMount:!1,anchor:_,__unstableSlotName:i||null,placement:"top-start",resize:!1,flip:!1,shift:l,...s,className:p()("block-editor-block-popover",s.className),variant:"unstyled"},o&&(0,c.createElement)("div",{style:v},n),!o&&n)}));const xy={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};var Iy=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,m.useSelect)((e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(zr),r=n(),o=t(r.rootClientId);return o.length?{clientId:o[r.index]}:{}}),[]),r=(0,d.useReducedMotion)();return(0,c.createElement)(Cy,{clientId:n,__unstableCoverTarget:!0,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone"},(0,c.createElement)(f.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:r?xy.show:xy.hide,animate:xy.show,exit:r?xy.show:xy.exit,className:"block-editor-block-popover__drop-zone-foreground"}))};const Ay=(0,c.createContext)();function By({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n,hideInsertionPoint:r}=(0,m.useDispatch)(zr),o=(0,c.useContext)(Ay),i=(0,c.useRef)(),{orientation:a,previousClientId:l,nextClientId:s,rootClientId:u,isInserterShown:y,isDistractionFree:g,isNavigationMode:h}=(0,m.useSelect)((e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:r,isBlockBeingDragged:o,getPreviousBlockClientId:i,getNextBlockClientId:a,getSettings:l,isNavigationMode:s}=e(zr),c=r(),u=t(c.rootClientId);if(!u.length)return{};let p=u[c.index-1],d=u[c.index];for(;o(p);)p=i(p);for(;o(d);)d=a(d);const f=l();return{previousClientId:p,nextClientId:d,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isNavigationMode:s(),isDistractionFree:f.isDistractionFree,isInserterShown:c?.__unstableWithInserter}}),[]),b=(0,d.useReducedMotion)();const v={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:y?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},_={start:{scale:b?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(g&&!h)return null;const k=p()("block-editor-block-list__insertion-point","is-"+a);return(0,c.createElement)(Ey,{previousClientId:l,nextClientId:s,__unstablePopoverSlot:e,__unstableContentRef:t},(0,c.createElement)(f.__unstableMotion.div,{layout:!b,initial:b?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:i,tabIndex:-1,onClick:function(e){e.target===i.current&&s&&n(s,-1)},onFocus:function(e){e.target!==i.current&&(o.current=!0)},className:p()(k,{"is-with-inserter":y}),onHoverEnd:function(e){e.target!==i.current||o.current||r()}},(0,c.createElement)(f.__unstableMotion.div,{variants:v,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),y&&(0,c.createElement)(f.__unstableMotion.div,{variants:_,className:p()("block-editor-block-list__insertion-point-inserter")},(0,c.createElement)(my,{position:"bottom center",clientId:s,rootClientId:u,__experimentalIsQuick:!0,onToggle:e=>{o.current=e},onSelectOrClose:()=>{o.current=!1}}))))}function Py(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:r}=(0,m.useSelect)((e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:r}=e(zr),o=t();return{insertionPoint:o,isVisible:n(),isBlockListEmpty:0===r(o?.rootClientId)}}),[]);return!n||r?null:"replace"===t.operation?(0,c.createElement)(Iy,{key:`${t.rootClientId}-${t.index}`,...e}):(0,c.createElement)(By,{...e})}function Ty(){const e=(0,c.useContext)(Ay),t=(0,m.useSelect)((e=>e(zr).getSettings().isDistractionFree||"zoom-out"===e(zr).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:r,isMultiSelecting:o,getSelectedBlockClientIds:i,getTemplateLock:a,__unstableIsWithinBlockOverlay:l,getBlockEditingMode:s}=Ur((0,m.useSelect)(zr)),{showInsertionPoint:u,hideInsertionPoint:p}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((c=>{if(!t)return c.addEventListener("mousemove",d),()=>{c.removeEventListener("mousemove",d)};function d(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 p();let c;if(!t.target.classList.contains("is-root-container")){c=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(a(c)||"disabled"===s(c))return;const d=n(c)?.orientation||"vertical",f=t.clientY,m=t.clientX;let y=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===d&&t.top>f||e.classList.contains("wp-block")&&"horizontal"===d&&((0,b.isRTL)()?t.right<m:t.left>m)}));if(!y)return void p();if(!y.id&&(y=y.firstElementChild,!y))return void p();const g=y.id.slice(6);if(!g||l(g))return;if(i().includes(g))return;const h=y.getBoundingClientRect();if("horizontal"===d&&(t.clientY>h.bottom||t.clientY<h.top)||"vertical"===d&&(t.clientX>h.right||t.clientX<h.left))return void p();const v=r(g);0!==v?u(c,v,{__unstableWithInserter:!0}):p()}}),[e,n,r,o,u,p,i,t])}const Oy="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,My="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var Ry=(0,d.createHigherOrderComponent)((e=>t=>{const{clientId:n}=Wr();return(0,c.createElement)(e,{...t,clientId:n})}),"withClientId");var Ny=Ry((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:r,isToggle:o})=>(0,c.createElement)(by,{className:p()({"block-list-appender__toggle":o}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:r})));var Fy=(0,d.compose)([Ry,(0,m.withSelect)(((e,{clientId:t})=>{const{getBlockOrder:n}=e(zr),r=n(t);return{lastBlockClientId:r[r.length-1]}}))])((({clientId:e})=>(0,c.createElement)(yy,{rootClientId:e})));const Ly=new WeakMap;function Dy(e,t,n,r,o,i,a){return s=>{const{srcRootClientId:c,srcClientIds:u,type:p,blocks:d}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(s);if("inserter"===p){a();const e=d.map((e=>(0,l.cloneBlock)(e)));i(e,!0,null)}if("block"===p){const i=n(u[0]);if(c===e&&i===t)return;if(u.includes(e)||r(u).some((t=>t===e)))return;const a=c===e,l=u.length;o(u,c,a&&i<t?t-l:t)}}}function Uy(e,t,n={}){const{operation:r="insert"}=n,o=(0,m.useSelect)((e=>e(zr).getSettings().mediaUpload),[]),{canInsertBlockType:i,getBlockIndex:a,getClientIdsOfDescendants:s,getBlockOrder:u,getBlocksByClientId:p}=(0,m.useSelect)(zr),{insertBlocks:d,moveBlocksToPosition:f,updateBlockAttributes:y,clearSelectedBlock:g,replaceBlocks:h,removeBlocks:b}=(0,m.useDispatch)(zr),v=(0,m.useRegistry)(),_=(0,c.useCallback)(((n,o=!0,i=0)=>{if("replace"===r){const r=u(e)[t];h(r,n,void 0,i)}else d(n,t,e,o,i)}),[r,u,d,h,t,e]),k=(0,c.useCallback)(((n,o,i)=>{if("replace"===r){const r=p(n),o=u(e)[t];v.batch((()=>{b(n,!1),h(o,r,void 0,0)}))}else f(n,o,e,i)}),[r,u,p,d,f,b,t,e]),S=Dy(e,t,a,s,k,_,g),E=function(e,t,n,r,o,i){return t=>{if(!n)return;const a=(0,l.findTransform)((0,l.getBlockTransforms)("from"),(n=>"files"===n.type&&o(n.blockName,e)&&n.isMatch(t)));if(a){const e=a.transform(t,r);i(e)}}}(e,0,o,y,i,_),w=function(e,t,n){return e=>{const t=(0,l.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&n(t)}}(0,0,_);return e=>{const t=(0,el.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?w(n):t.length?E(t):S(e)}}function jy(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,l=r?i:o,s=r?t.left:t.top,c=r?t.right:t.bottom,u=t[n];let p;return p=a>=s&&a<=c?a:a<c?s:c,Math.sqrt((a-p)**2+(l-u)**2)}(e,t,n);(void 0===r||i<r)&&(r=i,o=n)})),[r,o]}function zy(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function Vy({rootClientId:e=""}={}){const t=(0,m.useRegistry)(),[n,r]=(0,c.useState)({index:null,operation:"insert"}),o=(0,m.useSelect)((t=>{const{__unstableIsWithinBlockOverlay:n,__unstableHasActiveBlockOverlayActive:r,getBlockEditingMode:o}=Ur(t(zr));return"default"!==o(e)||r(e)||n(e)}),[e]),{getBlockListSettings:i,getBlocks:a,getBlockIndex:s}=(0,m.useSelect)(zr),{showInsertionPoint:u,hideInsertionPoint:p}=(0,m.useDispatch)(zr),f=Uy(e,n.index,{operation:n.operation}),y=(0,d.useThrottle)((0,c.useCallback)(((n,o)=>{const c=a(e);if(0===c.length)return void t.batch((()=>{r({index:0,operation:"insert"}),u(e,0,{operation:"insert"})}));const p=c.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,l.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=>o.getElementById(`block-${t}`).getBoundingClientRect(),blockIndex:s(t)}})),[d,f]=function(e,t,n="vertical"){const r="horizontal"===n?["left","right"]:["top","bottom"],o=(0,b.isRTL)();let i=0,a="before",l=1/0;e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:n,blockIndex:s})=>{const c=n();let[u,p]=jy(t,c,r);e&&zy(t,c)&&(u=0),u<l&&(a="bottom"===p||!o&&"right"===p||o&&"left"===p?"after":"before",l=u,i=s)}));const s=i+("after"===a?1:-1),c=!!e[i]?.isUnmodifiedDefaultBlock,u=!!e[s]?.isUnmodifiedDefaultBlock;if(!c&&!u)return["after"===a?i+1:i,"insert"];return[c?i:s,"replace"]}(p,{x:n.clientX,y:n.clientY},i(e)?.orientation);t.batch((()=>{r({index:d,operation:f}),u(e,d,{operation:f})}))}),[a,e,i,t,u,s]),200);return(0,d.__experimentalUseDropZone)({isDisabled:o,onDrop:f,onDragOver(e){y(e,e.currentTarget.ownerDocument)},onDragLeave(){y.cancel(),p()},onDragEnd(){y.cancel(),p()}})}const Gy={};function Hy(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:r,__experimentalDefaultBlock:o,__experimentalDirectInsert:i,template:a,templateLock:s,wrapperRef:u,templateInsertUpdatesSelection:p,__experimentalCaptureToolbars:d,__experimentalAppenderTagName:f,renderAppender:y,orientation:g,placeholder:b,layout:v}=e;!function(e,t,n,r,o,i,a,l,s){const{updateBlockListSettings:u}=(0,m.useDispatch)(zr),p=(0,m.useRegistry)(),{parentLock:d}=(0,m.useSelect)((t=>{const n=t(zr).getBlockRootClientId(e);return{parentLock:t(zr).getTemplateLock(n)}}),[e]),f=(0,c.useMemo)((()=>t),t),y=(0,c.useMemo)((()=>n),n),g=void 0===i||"contentOnly"===d?d:i;(0,c.useLayoutEffect)((()=>{const t={allowedBlocks:f,prioritizedInserterBlocks:y,templateLock:g};if(void 0!==a&&(t.__experimentalCaptureToolbars=a),void 0!==l)t.orientation=l;else{const e=la(s?.type);t.orientation=e.getOrientation(s)}void 0!==r&&(t.__experimentalDefaultBlock=r),void 0!==o&&(t.__experimentalDirectInsert=o),Ly.get(p)||Ly.set(p,[]),Ly.get(p).push([e,t]),window.queueMicrotask((()=>{Ly.get(p)?.length&&p.batch((()=>{Ly.get(p).forEach((e=>{u(...e)})),Ly.set(p,[])}))}))}),[e,f,y,g,r,o,a,l,u,s,p])}(t,n,r,o,i,s,d,g,v),function(e,t,n,r){const{getBlocks:o,getSelectedBlocksInitialCaretPosition:i,isBlockSelected:a}=(0,m.useSelect)(zr),{replaceInnerBlocks:s,__unstableMarkNextChangeAsNotPersistent:u}=(0,m.useDispatch)(zr),{innerBlocks:p}=(0,m.useSelect)((t=>({innerBlocks:t(zr).getBlocks(e)})),[e]),d=(0,c.useRef)(null);(0,c.useLayoutEffect)((()=>{let c=!1;return window.queueMicrotask((()=>{if(c)return;const p=o(e),f=0===p.length||"all"===n||"contentOnly"===n,m=!h()(t,d.current);if(!f||!m)return;d.current=t;const y=(0,l.synchronizeBlocksWithTemplate)(p,t);h()(y,p)||(u(),s(e,y,0===p.length&&r&&0!==y.length&&a(e),i()))})),()=>{c=!0}}),[p,t,n,e])}(t,a,s,p);const _=function(e){return(0,m.useSelect)((t=>{const n=t(zr).getBlock(e);if(!n)return;const r=t(l.store).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),k=(0,m.useSelect)((e=>e(zr).getBlock(t)?.name),[t]),S=(0,l.getBlockSupport)(k,"layout")||(0,l.getBlockSupport)(k,"__experimentalLayout")||Gy,{allowSizingOnChildren:E=!1}=S,w=Yo("layout")||Gy,C=v||S,x=(0,c.useMemo)((()=>({...w,...C,...E&&{allowSizingOnChildren:!0}})),[w,C,E]);return(0,c.createElement)(nl,{value:_},(0,c.createElement)(tg,{rootClientId:t,renderAppender:y,__experimentalAppenderTagName:f,layout:x,wrapperRef:u,placeholder:b}))}function $y(e){return qp(e),(0,c.createElement)(Hy,{...e})}const Wy=(0,c.forwardRef)(((e,t)=>{const n=Ky({ref:t},e);return(0,c.createElement)("div",{className:"block-editor-inner-blocks"},(0,c.createElement)("div",{...n}))}));function Ky(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:r}=t,{clientId:o,layout:i=null,__unstableLayoutClassNames:a=""}=Wr(),s=(0,d.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:u,hasOverlay:f}=(0,m.useSelect)((e=>{if(!o)return{};const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:r,__unstableGetEditorMode:i}=e(zr),a=t(o),c="navigation"===i()||s;return{__experimentalCaptureToolbars:e(l.store).hasBlockSupport(a,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==a&&!n(o)&&!r(o,!0)&&c}}),[o,s]),y=Vy({rootClientId:o}),g=(0,d.useMergeRefs)([e.ref,r?null:y]),h={__experimentalCaptureToolbars:u,layout:i,...t},b=h.value&&h.onChange?$y:Hy;return{...e,ref:g,className:p()(e.className,"block-editor-block-list__layout",n?"":a,{"has-overlay":f}),children:o?(0,c.createElement)(b,{...h,clientId:o}):(0,c.createElement)(tg,{...t})}}Ky.save=l.__unstableGetInnerBlocksProps,Wy.DefaultBlockAppender=Fy,Wy.ButtonBlockAppender=Ny,Wy.Content=()=>Ky.save().children;var qy=Wy;const Jy=(0,c.createContext)(),Zy=(0,c.createContext)(),Yy=new WeakMap;function Qy({className:e,...t}){const[n,r]=(0,c.useState)(),o=(0,d.useViewportMatch)("medium"),{isOutlineMode:i,isFocusMode:a,editorMode:l}=(0,m.useSelect)((e=>{const{getSettings:t,__unstableGetEditorMode:n}=e(zr),{outlineMode:r,focusMode:o}=t();return{isOutlineMode:r,isFocusMode:o,editorMode:n()}}),[]),s=(0,m.useRegistry)(),{setBlockVisibility:u}=(0,m.useDispatch)(zr),f=(0,d.useDebounce)((0,c.useCallback)((()=>{const e={};Yy.get(s).forEach((([t,n])=>{e[t]=n})),u(e)}),[s]),300,{trailing:!0}),y=(0,c.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{Yy.get(s)||Yy.set(s,[]);for(const t of e){const e=t.target.getAttribute("data-block");Yy.get(s).push([e,t.isIntersecting])}f()}))}),[]),g=Ky({ref:(0,d.useMergeRefs)([Yp(),Ty(),r]),className:p()("is-root-container",e,{"is-outline-mode":i,"is-focus-mode":a&&o,"is-navigate-mode":"navigation"===l})},t);return(0,c.createElement)(Jy.Provider,{value:n},(0,c.createElement)(Zy.Provider,{value:y},(0,c.createElement)("div",{...g})))}function Xy(e){return function(){const{patterns:e,isPreviewMode:t}=(0,m.useSelect)((e=>{const{__experimentalBlockPatterns:t,__unstableIsPreviewMode:n}=e(zr).getSettings();return{patterns:t,isPreviewMode:n}}),[]);(0,c.useEffect)((()=>{if(t)return;if(!e?.length)return;let n,r=-1;const o=()=>{r++,r>=e.length||((0,m.select)(zr).__experimentalGetParsedPattern(e[r].name),n=Oy(o))};return n=Oy(o),()=>My(n)}),[e,t])}(),(0,c.createElement)($r,{value:Gr},(0,c.createElement)(Qy,{...e}))}function eg({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,layout:o=sa}){const{order:i,selectedBlocks:a,visibleBlocks:l}=(0,m.useSelect)((e=>{const{getBlockOrder:n,getSelectedBlockClientIds:r,__unstableGetVisibleBlocks:o}=e(zr);return{order:n(t),selectedBlocks:r(),visibleBlocks:o()}}),[t]);return(0,c.createElement)(ua,{value:o},i.map((e=>(0,c.createElement)(m.AsyncModeProvider,{key:e,value:!l.has(e)&&!a.includes(e)},(0,c.createElement)(Fp,{rootClientId:t,clientId:e})))),i.length<1&&e,(0,c.createElement)(_y,{tagName:r,rootClientId:t,renderAppender:n}))}function tg(e){return(0,c.createElement)(m.AsyncModeProvider,{value:!1},(0,c.createElement)(eg,{...e}))}Xy.__unstableElementContext=Jy,Gd([Hd,Kd]);const ng=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}},rg=(e,t)=>e?.find((e=>e.color===t));function og(e,t){if(e&&t)return`has-${Mi(t)}-${e}`}function ig(){const e={disableCustomColors:!Yo("color.custom"),disableCustomGradients:!Yo("color.customGradient")},t=Yo("color.palette.custom"),n=Yo("color.palette.theme"),r=Yo("color.palette.default"),o=Yo("color.defaultPalette");e.colors=(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,b._x)("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:(0,b._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:(0,b._x)("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[r,n,t,o]);const i=Yo("color.gradients.custom"),a=Yo("color.gradients.theme"),l=Yo("color.gradients.default"),s=Yo("color.defaultGradients");return e.gradients=(0,c.useMemo)((()=>{const e=[];return a&&a.length&&e.push({name:(0,b._x)("Theme","Indicates this palette comes from the theme."),gradients:a}),s&&l&&l.length&&e.push({name:(0,b._x)("Default","Indicates this palette comes from WordPress."),gradients:l}),i&&i.length&&e.push({name:(0,b._x)("Custom","Indicates this palette is created by the user."),gradients:i}),e}),[i,a,l,s]),e.hasColorsOrGradients=!!e.colors.length||!!e.gradients.length,e}function ag(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function lg(e={}){const{flat:t,...n}=e;return t||ag(Object.values(n).filter(Boolean))||"px"}function sg(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>(0,f.__experimentalParseQuantityAndUnitFromRawValue)(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=ag(r);return 0===o||o?`${o}${i}`:void 0}function cg(e={}){const t=sg(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function ug(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function pg({onChange:e,selectedUnits:t,setSelectedUnits:n,values:r,...o}){let i=sg(r);void 0===i&&(i=lg(t));const a=ug(r)&&cg(r),l=a?(0,b.__)("Mixed"):null;return(0,c.createElement)(f.__experimentalUnitControl,{...o,"aria-label":(0,b.__)("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:l,size:"__unstable-large"})}const dg={topLeft:(0,b.__)("Top left"),topRight:(0,b.__)("Top right"),bottomLeft:(0,b.__)("Bottom left"),bottomRight:(0,b.__)("Bottom right")};function fg({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,c.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(dg).map((([e,r])=>{const[l,s]=(0,f.__experimentalParseQuantityAndUnitFromRawValue)(a[e]),u=a[e]?s:t[e]||t.flat;return(0,c.createElement)(f.Tooltip,{text:r,position:"top",key:e},(0,c.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},(0,c.createElement)(f.__experimentalUnitControl,{...o,"aria-label":r,value:[l,u].join(""),onChange:i(e),onUnitChange:(p=e,e=>{const r={...t};r[p]=e,n(r)}),size:"__unstable-large"})));var p})))}var mg=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var yg=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));function gg({isLinked:e,...t}){const n=e?(0,b.__)("Unlink radii"):(0,b.__)("Link radii");return(0,c.createElement)(f.Tooltip,{text:n},(0,c.createElement)("span",null,(0,c.createElement)(f.Button,{...t,className:"component-border-radius-control__linked-button",isSmall:!0,icon:e?mg:yg,iconSize:24,"aria-label":n})))}const hg={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},bg=0,vg={px:100,em:20,rem:20};function _g({onChange:e,values:t}){const[n,r]=(0,c.useState)(!ug(t)||!cg(t)),[o,i]=(0,c.useState)({flat:"string"==typeof t?(0,f.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,f.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,f.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,f.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,f.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),a=(0,f.__experimentalUseCustomUnits)({availableUnits:Yo("spacing.units")||["px","em","rem"]}),l=lg(o),s=a&&a.find((e=>e.value===l)),u=s?.step||1,[p]=(0,f.__experimentalParseQuantityAndUnitFromRawValue)(sg(t));return(0,c.createElement)("fieldset",{className:"components-border-radius-control"},(0,c.createElement)(f.BaseControl.VisualLabel,{as:"legend"},(0,b.__)("Radius")),(0,c.createElement)("div",{className:"components-border-radius-control__wrapper"},n?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(pg,{className:"components-border-radius-control__unit-control",values:t,min:bg,onChange:e,selectedUnits:o,setSelectedUnits:i,units:a}),(0,c.createElement)(f.RangeControl,{label:(0,b.__)("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=p?p:"",min:bg,max:vg[l],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${l}`:void 0)},step:u,__nextHasNoMarginBottom:!0})):(0,c.createElement)(fg,{min:bg,onChange:e,selectedUnits:o,setSelectedUnits:i,values:t||hg,units:a}),(0,c.createElement)(gg,{onClick:()=>r(!n),isLinked:n})))}function kg(e){return[Sg(e),Eg(e),wg(e),Cg(e)].some(Boolean)}function Sg(e){return e?.border?.color}function Eg(e){return e?.border?.radius}function wg(e){return e?.border?.style}function Cg(e){return e?.border?.width}function xg({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,c.createElement)(f.__experimentalToolsPanel,{label:(0,b.__)("Border"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const Ig={radius:!0,color:!0,width:!0};function Ag({as:e=xg,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Ig}){const l=wi(o),s=e=>{const t=l.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},u=(0,c.useCallback)((e=>{const t=l.flatMap((({colors:e})=>e)).find((({slug:t})=>e==="var:preset|color|"+t));return t?t.color:e}),[l]),p=(0,c.useMemo)((()=>{if((0,f.__experimentalHasSplitBorders)(r?.border)){const e={...r?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:u(e[t]?.color)}})),e}return{...r?.border,color:r?.border?.color?u(r?.border?.color):void 0}}),[r?.border,u]),d=e=>n({...t,border:e}),m=Sg(o),y=wg(o),g=Cg(o),h=Eg(o),v=(_=p?.radius,mi({settings:o},"",_));var _;const k=e=>d({...p,radius:e}),S=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},E=(0,c.useCallback)((e=>({...e,border:void 0})),[]),w=a?.color||a?.width;return(0,c.createElement)(e,{resetAllFilter:E,value:t,onChange:n,panelId:i},(g||m)&&(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>(0,f.__experimentalIsDefinedBorder)(t?.border),label:(0,b.__)("Border"),onDeselect:()=>(()=>{if(S())return d({radius:t?.border?.radius});d(void 0)})(),isShownByDefault:w,panelId:i},(0,c.createElement)(f.__experimentalBorderBoxControl,{colors:l,enableAlpha:!0,enableStyle:y,onChange:e=>{const t={...e};(0,f.__experimentalHasSplitBorders)(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:s(t[e]?.color)})})):t&&(t.color=s(t.color)),d({radius:p?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:p,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large"})),h&&(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:S,label:(0,b.__)("Radius"),onDeselect:()=>k(void 0),isShownByDefault:a.radius,panelId:i},(0,c.createElement)(_g,{values:v,onChange:e=>{k(e||void 0)}})))}const Bg="__experimentalBorder",Pg=(e,t,n)=>{let r;return e.some((e=>e.colors.some((e=>e[t]===n&&(r=e,!0))))),r},Tg=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Pg(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const r=Pg(e,"color",n);return r||{color:n}};function Og(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Mg(e){if((0,f.__experimentalHasSplitBorders)(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:Fi(r),borderColor:n}}function Rg(e){return(0,f.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Ng({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=Rg(e),r=t(n);return{...e,...Mg(r)}}),[t]);return(0,c.createElement)(qa,{group:"border",resetAllFilter:n},e)}function Fg(e){const{clientId:t,name:n,attributes:r,setAttributes:o}=e,i=Ui(n),a=kg(i),s=(0,c.useMemo)((()=>Rg({style:r.style,borderColor:r.borderColor})),[r.style,r.borderColor]);if(!a)return null;const u=(0,l.getBlockSupport)(e.name,[Bg,"__experimentalDefaultControls"]);return(0,c.createElement)(Ag,{as:Ng,panelId:t,settings:i,value:s,onChange:e=>{o(Mg(e))},defaultControls:u})}function Lg(e,t="any"){if("web"!==c.Platform.OS)return!1;const n=(0,l.getBlockSupport)(e,Bg);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function Dg(e,t,n){if(!Lg(t,"color")||Di(t,Bg,"color"))return e;const r=Ug(n),o=p()(e.className,r);return e.className=o||void 0,e}function Ug(e){const{borderColor:t,style:n}=e,r=og("border-color",t);return p()({"has-border-color":t||n?.border?.color,[r]:!!r})}const jg=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r}=t,{borderColor:o,style:i}=r,{colors:a}=ig();if(!Lg(n,"color")||Di(n,Bg,"color"))return(0,c.createElement)(e,{...t});const{color:l}=Tg({colors:a,namedColor:o}),{color:s}=Tg({colors:a,namedColor:Og(i?.border?.top?.color)}),{color:u}=Tg({colors:a,namedColor:Og(i?.border?.right?.color)}),{color:p}=Tg({colors:a,namedColor:Og(i?.border?.bottom?.color)}),{color:d}=Tg({colors:a,namedColor:Og(i?.border?.left?.color)}),f={borderTopColor:s||l,borderRightColor:u||l,borderBottomColor:p||l,borderLeftColor:d||l};let m=t.wrapperProps;return m={...t.wrapperProps,style:{...t.wrapperProps?.style,...f}},(0,c.createElement)(e,{...t,wrapperProps:m})}),"withBorderColorPaletteStyles");function zg(e){if(e)return`has-${e}-gradient-background`}function Vg(e,t){const n=e?.find((e=>e.slug===t));return n&&n.gradient}function Gg(e,t){const n=e?.find((e=>e.gradient===t));return n}function Hg(e,t){const n=Gg(e,t);return n&&n.slug}function $g({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=Wr(),r=Yo("color.gradients.custom"),o=Yo("color.gradients.theme"),i=Yo("color.gradients.default"),a=(0,c.useMemo)((()=>[...r||[],...o||[],...i||[]]),[r,o,i]),{gradient:l,customGradient:s}=(0,m.useSelect)((r=>{const{getBlockAttributes:o}=r(zr),i=o(n)||{};return{customGradient:i[t],gradient:i[e]}}),[n,e,t]),{updateBlockAttributes:u}=(0,m.useDispatch)(zr),p=(0,c.useCallback)((r=>{const o=Hg(a,r);u(n,o?{[e]:o,[t]:void 0}:{[e]:void 0,[t]:r})}),[a,n,u]),d=zg(l);let f;return f=l?Vg(a,l):s,{gradientClass:d,gradientValue:f,setGradient:p}}(0,s.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Lg(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",Dg),(0,s.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!Lg(e,"color")||Di(e,Bg,"color"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Dg(r,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",jg);const Wg=["colors","disableCustomColors","gradients","disableCustomGradients"],Kg={name:"color",title:(0,b.__)("Solid"),value:"color"},qg={name:"gradient",title:(0,b.__)("Gradient"),value:"gradient"},Jg=[Kg,qg];function Zg({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:r,__experimentalIsRenderedInSidebar:o,className:i,label:a,onColorChange:l,onGradientChange:s,colorValue:u,gradientValue:d,clearable:m,showTitle:y=!0,enableAlpha:g,headingLevel:h}){const b=l&&(e&&e.length>0||!n),v=s&&(t&&t.length>0||!r);if(!b&&!v)return null;const _={[Kg.value]:(0,c.createElement)(f.ColorPalette,{value:u,onChange:v?e=>{l(e),s()}:l,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:o,clearable:m,enableAlpha:g,headingLevel:h}),[qg.value]:(0,c.createElement)(f.GradientPicker,{__nextHasNoMargin:!0,value:d,onChange:b?e=>{s(e),l()}:s,gradients:t,disableCustomGradients:r,__experimentalIsRenderedInSidebar:o,clearable:m,headingLevel:h})},k=e=>(0,c.createElement)("div",{className:"block-editor-color-gradient-control__panel"},_[e]);return(0,c.createElement)(f.BaseControl,{__nextHasNoMarginBottom:!0,className:p()("block-editor-color-gradient-control",i)},(0,c.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,c.createElement)(f.__experimentalVStack,{spacing:1},y&&(0,c.createElement)("legend",null,(0,c.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,c.createElement)(f.BaseControl.VisualLabel,null,a))),b&&v&&(0,c.createElement)(f.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:Jg,initialTabName:d?qg.value:!!b&&Kg.value},(e=>k(e.value))),!v&&k(Kg.value),!b&&k(qg.value))))}function Yg(e){const t={};return t.colors=Yo("color.palette"),t.gradients=Yo("color.gradients"),t.disableCustomColors=!Yo("color.custom"),t.disableCustomGradients=!Yo("color.customGradient"),(0,c.createElement)(Zg,{...t,...e})}var Qg=function(e){return Wg.every((t=>e.hasOwnProperty(t)))?(0,c.createElement)(Zg,{...e}):(0,c.createElement)(Yg,{...e})};function Xg(e){const t=eh(e),n=ih(e),r=th(e),o=rh(e),i=rh(e),a=nh(e);return t||n||r||o||i||a}function eh(e){const t=wi(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function th(e){const t=wi(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function nh(e){const t=wi(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function rh(e){const t=wi(e),n=Ci(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function oh(e){const t=wi(e),n=Ci(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function ih(e){const t=wi(e),n=Ci(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function ah({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,c.createElement)(f.__experimentalToolsPanel,{label:(0,b.__)("Color"),resetAll:()=>{const r=e(n);t(r)},panelId:r,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,c.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},o))}const lh={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},sh={placement:"left-start",offset:36,shift:!0},ch=({indicators:e,label:t})=>(0,c.createElement)(f.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(f.__experimentalZStack,{isLayered:!1,offset:-8},e.map(((e,t)=>(0,c.createElement)(f.Flex,{key:t,expanded:!1},(0,c.createElement)(f.ColorIndicator,{colorValue:e}))))),(0,c.createElement)(f.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t));function uh({isGradient:e,inheritedValue:t,userValue:n,setValue:r,colorGradientControlSettings:o}){return(0,c.createElement)(Qg,{...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 ph({label:e,hasValue:t,resetValue:n,isShownByDefault:r,indicators:o,tabs:i,colorGradientControlSettings:a,panelId:l}){const s=i.map((({key:e,label:t})=>({name:e,title:t})));return(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:r,panelId:l},(0,c.createElement)(f.Dropdown,{popoverProps:sh,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const r={onClick:t,className:p()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":(0,b.sprintf)((0,b.__)("Color %s styles"),e)};return(0,c.createElement)(f.Button,{...r},(0,c.createElement)(ch,{indicators:o,label:e}))},renderContent:()=>(0,c.createElement)(f.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,c.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},1===i.length&&(0,c.createElement)(uh,{...i[0],colorGradientControlSettings:a}),i.length>1&&(0,c.createElement)(f.TabPanel,{tabs:s},(e=>{const t=i.find((t=>t.key===e.name));return t?(0,c.createElement)(uh,{...t,colorGradientControlSettings:a}):null}))))}))}function dh({as:e=ah,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=lh,children:l}){const s=wi(o),u=Ci(o),p=o?.color?.custom,d=o?.color?.customGradient,f=s.length>0||p,m=u.length>0||d,y=e=>mi({settings:o},"",e),g=e=>{const t=s.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},h=e=>{const t=u.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},v=eh(o),_=y(r?.color?.text),k=y(t?.color?.text),S=e=>{n(Ni(t,["color","text"],g(e)))},E=ih(o),w=y(r?.color?.background),C=y(t?.color?.background),x=y(r?.color?.gradient),I=y(t?.color?.gradient),A=th(o),B=y(r?.elements?.link?.color?.text),P=y(t?.elements?.link?.color?.text),T=y(r?.elements?.link?.[":hover"]?.color?.text),O=y(t?.elements?.link?.[":hover"]?.color?.text),M=[{name:"caption",label:(0,b.__)("Captions"),showPanel:nh(o)},{name:"button",label:(0,b.__)("Button"),showPanel:oh(o)},{name:"heading",label:(0,b.__)("Heading"),showPanel:rh(o)},{name:"h1",label:(0,b.__)("H1"),showPanel:rh(o)},{name:"h2",label:(0,b.__)("H2"),showPanel:rh(o)},{name:"h3",label:(0,b.__)("H3"),showPanel:rh(o)},{name:"h4",label:(0,b.__)("H4"),showPanel:rh(o)},{name:"h5",label:(0,b.__)("H5"),showPanel:rh(o)},{name:"h6",label:(0,b.__)("H6"),showPanel:rh(o)}],R=(0,c.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...M.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),N=[v&&{key:"text",label:(0,b.__)("Text"),hasValue:()=>!!k,resetValue:()=>S(void 0),isShownByDefault:a.text,indicators:[_],tabs:[{key:"text",label:(0,b.__)("Text"),inheritedValue:_,setValue:S,userValue:k}]},E&&{key:"background",label:(0,b.__)("Background"),hasValue:()=>!!C||!!I,resetValue:()=>{const e=Ni(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:a.background,indicators:[null!=x?x:w],tabs:[f&&{key:"background",label:(0,b.__)("Solid"),inheritedValue:w,setValue:e=>{const r=Ni(t,["color","background"],g(e));r.color.gradient=void 0,n(r)},userValue:C},m&&{key:"gradient",label:(0,b.__)("Gradient"),inheritedValue:x,setValue:e=>{const r=Ni(t,["color","gradient"],h(e));r.color.background=void 0,n(r)},userValue:I,isGradient:!0}].filter(Boolean)},A&&{key:"link",label:(0,b.__)("Link"),hasValue:()=>!!P||!!O,resetValue:()=>{let e=Ni(t,["elements","link",":hover","color","text"],void 0);e=Ni(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:a.link,indicators:[B,T],tabs:[{key:"link",label:(0,b.__)("Default"),inheritedValue:B,setValue:e=>{n(Ni(t,["elements","link","color","text"],g(e)))},userValue:P},{key:"hover",label:(0,b.__)("Hover"),inheritedValue:T,setValue:e=>{n(Ni(t,["elements","link",":hover","color","text"],g(e)))},userValue:O}]}].filter(Boolean);return M.forEach((({name:e,label:o,showPanel:i})=>{if(!i)return;const l=y(r?.elements?.[e]?.color?.background),s=y(r?.elements?.[e]?.color?.gradient),c=y(r?.elements?.[e]?.color?.text),u=y(t?.elements?.[e]?.color?.background),p=y(t?.elements?.[e]?.color?.gradient),d=y(t?.elements?.[e]?.color?.text),v="caption"!==e;N.push({key:e,label:o,hasValue:()=>!!(d||u||p),resetValue:()=>{const r=Ni(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!=s?s:l]:[c],tabs:[f&&{key:"text",label:(0,b.__)("Text"),inheritedValue:c,setValue:r=>{n(Ni(t,["elements",e,"color","text"],g(r)))},userValue:d},f&&v&&{key:"background",label:(0,b.__)("Background"),inheritedValue:l,setValue:r=>{const o=Ni(t,["elements",e,"color","background"],g(r));o.elements[e].color.gradient=void 0,n(o)},userValue:u},m&&v&&{key:"gradient",label:(0,b.__)("Gradient"),inheritedValue:s,setValue:r=>{const o=Ni(t,["elements",e,"color","gradient"],h(r));o.elements[e].color.background=void 0,n(o)},userValue:p,isGradient:!0}].filter(Boolean)})})),(0,c.createElement)(e,{resetAllFilter:R,value:t,onChange:n,panelId:i},N.map((e=>(0,c.createElement)(ph,{key:e.key,...e,colorGradientControlSettings:{colors:s,disableCustomColors:!p,gradients:u,disableCustomGradients:!d},panelId:i}))),l)}Gd([Hd,Kd]);var fh=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:r,fontSize:o,isLargeText:i,textColor:a,linkColor:l,enableAlphaChecker:s=!1}){const u=e||t;if(!u)return null;const p=a||n,d=l||r;if(!p&&!d)return null;const m=[{color:p,description:(0,b.__)("text color")},{color:d,description:(0,b.__)("link color")}],y=zd(u),g=y.alpha()<1,h=y.brightness(),v={level:"AA",size:i||!1!==i&&o>=24?"large":"small"};let _="",k="";for(const e of m){if(!e.color)continue;const t=zd(e.color),n=t.isReadable(y,v),r=t.alpha()<1;if(!n){if(g||r)continue;_=h<t.brightness()?(0,b.sprintf)((0,b.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,b.sprintf)((0,b.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),k=(0,b.__)("This color combination may be hard for people to read.");break}r&&s&&(_=(0,b.__)("Transparent text may be hard for people to read."),k=(0,b.__)("Transparent text may be hard for people to read."))}return _?((0,Cn.speak)(k),(0,c.createElement)("div",{className:"block-editor-contrast-checker"},(0,c.createElement)(f.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},_))):null};function mh(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function yh({clientId:e}){const[t,n]=(0,c.useState)(),[r,o]=(0,c.useState)(),[i,a]=(0,c.useState)(),l=Ip(e);return(0,c.useEffect)((()=>{if(!l.current)return;o(mh(l.current).color);const e=l.current?.querySelector("a");e&&e.innerText&&a(mh(e).color);let t=l.current,r=mh(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,r=mh(t).backgroundColor;n(r)})),(0,c.createElement)(fh,{backgroundColor:t,textColor:r,enableAlphaChecker:!0,linkColor:i})}const gh="color",hh=e=>{const t=(0,l.getBlockSupport)(e,gh);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},bh=e=>{if("web"!==c.Platform.OS)return!1;const t=(0,l.getBlockSupport)(e,gh);return null!==t&&"object"==typeof t&&!!t.link},vh=e=>{const t=(0,l.getBlockSupport)(e,gh);return null!==t&&"object"==typeof t&&!!t.gradients},_h=e=>{const t=(0,l.getBlockSupport)(e,gh);return t&&!1!==t.background},kh=e=>{const t=(0,l.getBlockSupport)(e,gh);return t&&!1!==t.text};function Sh(e,t,n){if(!hh(t)||Di(t,gh))return e;const r=vh(t),{backgroundColor:o,textColor:i,gradient:a,style:l}=n,s=e=>!Di(t,gh,e),c=s("text")?og("color",i):void 0,u=s("gradients")?zg(a):void 0,d=s("background")?og("background-color",o):void 0,f=s("background")||s("gradients"),m=o||l?.color?.background||r&&(a||l?.color?.gradient),y=p()(e.className,c,u,{[d]:!(r&&l?.color?.gradient||!d),"has-text-color":s("text")&&(i||l?.color?.text),"has-background":f&&m,"has-link-color":s("link")&&l?.elements?.link?.color});return e.className=y||void 0,e}function Eh(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,l={...e};return l.color={...l.color,text:n?void 0:t,background:o?void 0:r,gradient:a?void 0:i},{style:Fi(l),textColor:n,backgroundColor:o,gradient:a}}function wh(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 Ch({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=wh(e),r=t(n);return{...e,...Eh(r)}}),[t]);return(0,c.createElement)(qa,{group:"color",resetAllFilter:n},e)}function xh(e){const{clientId:t,name:n,attributes:r,setAttributes:o}=e,i=Ui(n),a=Xg(i),s=(0,c.useMemo)((()=>wh({style:r.style,textColor:r.textColor,backgroundColor:r.backgroundColor,gradient:r.gradient})),[r.style,r.textColor,r.backgroundColor,r.gradient]);if(!a)return null;const u=(0,l.getBlockSupport)(e.name,[gh,"__experimentalDefaultControls"]),p="web"===c.Platform.OS&&!s?.color?.gradient&&(i?.color?.text||i?.color?.link)&&!1!==(0,l.getBlockSupport)(e.name,[gh,"enableContrastChecker"]);return(0,c.createElement)(dh,{as:Ch,panelId:t,settings:i,value:s,onChange:e=>{o(Eh(e))},defaultControls:u,enableContrastChecker:!1!==(0,l.getBlockSupport)(e.name,[gh,"enableContrastChecker"])},p&&(0,c.createElement)(yh,{clientId:t}))}const Ih=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r}=t,{backgroundColor:o,textColor:i}=r,a=Yo("color.palette.custom"),l=Yo("color.palette.theme"),s=Yo("color.palette.default"),u=(0,c.useMemo)((()=>[...a||[],...l||[],...s||[]]),[a,l,s]);if(!hh(n)||Di(n,gh))return(0,c.createElement)(e,{...t});const p={};i&&!Di(n,gh,"text")&&(p.color=ng(u,i)?.color),o&&!Di(n,gh,"background")&&(p.backgroundColor=ng(u,o)?.color);let d=t.wrapperProps;return d={...t.wrapperProps,style:{...p,...t.wrapperProps?.style}},(0,c.createElement)(e,{...t,wrapperProps:d})}),"withColorPaletteStyles"),Ah={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Bh({value:e="",onChange:t,fontFamilies:n,...r}){const o=Yo("typography.fontFamilies");if(n||(n=o),!n||0===n.length)return null;const i=[{value:"",label:(0,b.__)("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,c.createElement)(f.SelectControl,{label:(0,b.__)("Font"),options:i,value:e,onChange:t,labelPosition:"top",...r})}(0,s.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return hh(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),vh(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Sh),(0,s.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!hh(e)||Di(e,gh))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Sh(r,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Ih),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){const o=e.name;return Li({linkColor:bh(o),textColor:kh(o),backgroundColor:_h(o),gradient:vh(o)},Ah,e,t,n,r)}));const Ph=[{name:(0,b._x)("Regular","font style"),value:"normal"},{name:(0,b._x)("Italic","font style"),value:"italic"}],Th=[{name:(0,b._x)("Thin","font weight"),value:"100"},{name:(0,b._x)("Extra Light","font weight"),value:"200"},{name:(0,b._x)("Light","font weight"),value:"300"},{name:(0,b._x)("Regular","font weight"),value:"400"},{name:(0,b._x)("Medium","font weight"),value:"500"},{name:(0,b._x)("Semi Bold","font weight"),value:"600"},{name:(0,b._x)("Bold","font weight"),value:"700"},{name:(0,b._x)("Extra Bold","font weight"),value:"800"},{name:(0,b._x)("Black","font weight"),value:"900"}],Oh=(e,t)=>e?t?(0,b.__)("Appearance"):(0,b.__)("Font style"):(0,b.__)("Font weight");function Mh(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:r=!0,value:{fontStyle:o,fontWeight:i},...a}=e,l=n||r,s=Oh(n,r),u={key:"default",name:(0,b.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},p=(0,c.useMemo)((()=>n&&r?(()=>{const e=[u];return Ph.forEach((({name:t,value:n})=>{Th.forEach((({name:r,value:o})=>{const i="normal"===n?r:(0,b.sprintf)((0,b.__)("%1$s %2$s"),r,t);e.push({key:`${n}-${o}`,name:i,style:{fontStyle:n,fontWeight:o}})}))})),e})():n?(()=>{const e=[u];return Ph.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[u];return Th.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options]),d=p.find((e=>e.style.fontStyle===o&&e.style.fontWeight===i))||p[0];return l&&(0,c.createElement)(f.CustomSelectControl,{...a,className:"components-font-appearance-control",label:s,describedBy:d?n?r?(0,b.sprintf)((0,b.__)("Currently selected font appearance: %s"),d.name):(0,b.sprintf)((0,b.__)("Currently selected font style: %s"),d.name):(0,b.sprintf)((0,b.__)("Currently selected font weight: %s"),d.name):(0,b.__)("No selected font appearance"),options:p,value:d,onChange:({selectedItem:e})=>t(e.style),__nextUnconstrainedWidth:!0})}const Rh=1.5,Nh=.1;var Fh=({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 Rh;default:return e}},l=i?e:"";n||H()("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 s=n?void 0:{marginBottom:24};return(0,c.createElement)("div",{className:"block-editor-line-height-control",style:s},(0,c.createElement)(f.__experimentalNumberControl,{...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:(0,b.__)("Line height"),placeholder:Rh,step:Nh,value:l,min:0,spinControls:"custom"}))};function Lh({value:e,onChange:t,__unstableInputWidth:n="60px",...r}){const o=(0,f.__experimentalUseCustomUnits)({availableUnits:Yo("spacing.units")||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,c.createElement)(f.__experimentalUnitControl,{...r,label:(0,b.__)("Letter spacing"),value:e,__unstableInputWidth:n,units:o,onChange:t})}var Dh=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M7 11.5h10V13H7z"}));var Uh=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));var jh=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));var zh=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));const Vh=[{name:(0,b.__)("None"),value:"none",icon:Dh},{name:(0,b.__)("Uppercase"),value:"uppercase",icon:Uh},{name:(0,b.__)("Lowercase"),value:"lowercase",icon:jh},{name:(0,b.__)("Capitalize"),value:"capitalize",icon:zh}];function Gh({className:e,value:t,onChange:n}){return(0,c.createElement)("fieldset",{className:p()("block-editor-text-transform-control",e)},(0,c.createElement)(f.BaseControl.VisualLabel,{as:"legend"},(0,b.__)("Letter case")),(0,c.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Vh.map((e=>(0,c.createElement)(f.Button,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}var Hh=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));var $h=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));const Wh=[{name:(0,b.__)("None"),value:"none",icon:Dh},{name:(0,b.__)("Underline"),value:"underline",icon:Hh},{name:(0,b.__)("Strikethrough"),value:"line-through",icon:$h}];function Kh({value:e,onChange:t,className:n}){return(0,c.createElement)("fieldset",{className:p()("block-editor-text-decoration-control",n)},(0,c.createElement)(f.BaseControl.VisualLabel,{as:"legend"},(0,b.__)("Decoration")),(0,c.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Wh.map((n=>(0,c.createElement)(f.Button,{key:n.value,icon:n.icon,label:n.name,isPressed:n.value===e,onClick:()=>{t(n.value===e?void 0:n.value)}})))))}const qh=1,Jh=6;function Zh(e){const t=Qh(e),n=Xh(e),r=eb(e),o=tb(e),i=nb(e),a=rb(e),l=ob(e),s=Yh(e);return t||n||r||o||i||s||a||l}function Yh(e){var t,n,r,o;const i=!e?.typography?.customFontSize,a=null!==(t=e?.typography?.fontSizes)&&void 0!==t?t:{},l=[].concat(null!==(n=a?.custom)&&void 0!==n?n:[]).concat(null!==(r=a?.theme)&&void 0!==r?r:[]).concat(null!==(o=a.default)&&void 0!==o?o:[]);return!!l?.length||!i}function Qh(e){var t,n,r;const o=e?.typography?.fontFamilies,i=[].concat(null!==(t=o?.custom)&&void 0!==t?t:[]).concat(null!==(n=o?.theme)&&void 0!==n?n:[]).concat(null!==(r=o?.default)&&void 0!==r?r:[]).sort(((e,t)=>(e?.name||e?.slug).localeCompare(t?.name||e?.slug)));return!!i?.length}function Xh(e){return e?.typography?.lineHeight}function eb(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t||n}function tb(e){return e?.typography?.letterSpacing}function nb(e){return e?.typography?.textTransform}function rb(e){return e?.typography?.textDecoration}function ob(e){return e?.typography?.textColumns}function ib({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,c.createElement)(f.__experimentalToolsPanel,{label:(0,b.__)("Typography"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const ab={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textTransform:!0,textDecoration:!0,textColumns:!0};function lb({as:e=ib,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=ab}){var l,s,u,p,d,m,y;const g=e=>mi({settings:o},"",e),h=Qh(o),v=o?.typography?.fontFamilies,_=[].concat(null!==(l=v?.custom)&&void 0!==l?l:[]).concat(null!==(s=v?.theme)&&void 0!==s?s:[]).concat(null!==(u=v?.default)&&void 0!==u?u:[]),k=g(r?.typography?.fontFamily),S=e=>{const r=_?.find((({fontFamily:t})=>t===e))?.slug;n(Ni(t,["typography","fontFamily"],r?`var:preset|font-family|${r}`:e||void 0))},E=Yh(o),w=!o?.typography?.customFontSize,C=null!==(p=o?.typography?.fontSizes)&&void 0!==p?p:{},x=[].concat(null!==(d=C?.custom)&&void 0!==d?d:[]).concat(null!==(m=C?.theme)&&void 0!==m?m:[]).concat(null!==(y=C.default)&&void 0!==y?y:[]),I=g(r?.typography?.fontSize),A=(e,r)=>{n(Ni(t,["typography","fontSize"],(r?.slug?`var:preset|font-size|${r?.slug}`:e)||void 0))},B=eb(o),P=function(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t?n?(0,b.__)("Appearance"):(0,b.__)("Font style"):(0,b.__)("Font weight")}(o),T=o?.typography?.fontStyle,O=o?.typography?.fontWeight,M=g(r?.typography?.fontStyle),R=g(r?.typography?.fontWeight),N=({fontStyle:e,fontWeight:r})=>{n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:r||void 0}})},F=Xh(o),L=g(r?.typography?.lineHeight),D=e=>{n(Ni(t,["typography","lineHeight"],e||void 0))},U=tb(o),j=g(r?.typography?.letterSpacing),z=e=>{n(Ni(t,["typography","letterSpacing"],e||void 0))},V=ob(o),G=g(r?.typography?.textColumns),H=e=>{n(Ni(t,["typography","textColumns"],e||void 0))},$=nb(o),W=g(r?.typography?.textTransform),K=e=>{n(Ni(t,["typography","textTransform"],e||void 0))},q=rb(o),J=g(r?.typography?.textDecoration),Z=e=>{n(Ni(t,["typography","textDecoration"],e||void 0))},Y=(0,c.useCallback)((e=>({...e,typography:{}})),[]);return(0,c.createElement)(e,{resetAllFilter:Y,value:t,onChange:n,panelId:i},h&&(0,c.createElement)(f.__experimentalToolsPanelItem,{label:(0,b.__)("Font family"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>S(void 0),isShownByDefault:a.fontFamily,panelId:i},(0,c.createElement)(Bh,{fontFamilies:_,value:k,onChange:S,size:"__unstable-large",__nextHasNoMarginBottom:!0})),E&&(0,c.createElement)(f.__experimentalToolsPanelItem,{label:(0,b.__)("Font size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>A(void 0),isShownByDefault:a.fontSize,panelId:i},(0,c.createElement)(f.FontSizePicker,{value:I,onChange:A,fontSizes:x,disableCustomFontSizes:w,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})),B&&(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"single-column",label:P,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{N({})},isShownByDefault:a.fontAppearance,panelId:i},(0,c.createElement)(Mh,{value:{fontStyle:M,fontWeight:R},onChange:N,hasFontStyles:T,hasFontWeights:O,size:"__unstable-large",__nextHasNoMarginBottom:!0})),F&&(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"single-column",label:(0,b.__)("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>D(void 0),isShownByDefault:a.lineHeight,panelId:i},(0,c.createElement)(Fh,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:L,onChange:D,size:"__unstable-large"})),U&&(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"single-column",label:(0,b.__)("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>z(void 0),isShownByDefault:a.letterSpacing,panelId:i},(0,c.createElement)(Lh,{value:j,onChange:z,size:"__unstable-large",__unstableInputWidth:"auto"})),V&&(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"single-column",label:(0,b.__)("Text columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>H(void 0),isShownByDefault:a.textColumns,panelId:i},(0,c.createElement)(f.__experimentalNumberControl,{label:(0,b.__)("Text columns"),max:Jh,min:qh,onChange:H,size:"__unstable-large",spinControls:"custom",value:G,initialPosition:1})),q&&(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"single-column",label:(0,b.__)("Text decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>Z(void 0),isShownByDefault:a.textDecoration,panelId:i},(0,c.createElement)(Kh,{value:J,onChange:Z,size:"__unstable-large",__unstableInputWidth:"auto"})),$&&(0,c.createElement)(f.__experimentalToolsPanelItem,{label:(0,b.__)("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>K(void 0),isShownByDefault:a.textTransform,panelId:i},(0,c.createElement)(Gh,{value:W,onChange:K,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})))}const sb="typography.lineHeight";var cb=window.wp.tokenList,ub=n.n(cb);const pb="typography.__experimentalFontFamily";function db(e,t,n){if(!(0,l.hasBlockSupport)(t,pb))return e;if(Di(t,kb,"fontFamily"))return e;if(!n?.fontFamily)return e;const r=new(ub())(e.className);r.add(`has-${Mi(n?.fontFamily)}-font-family`);const o=r.value;return e.className=o||void 0,e}(0,s.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,l.hasBlockSupport)(e,pb)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",db),(0,s.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!(0,l.hasBlockSupport)(e,pb))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),db(r,e,n)},e}));const fb=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};function mb(e,t){const n=e?.find((({size:e})=>e===t));return n||{size:t}}function yb(e){if(e)return`has-${Mi(e)}-font-size`}const gb="typography.fontSize";function hb(e,t,n){if(!(0,l.hasBlockSupport)(t,gb))return e;if(Di(t,kb,"fontSize"))return e;const r=new(ub())(e.className);r.add(yb(n.fontSize));const o=r.value;return e.className=o||void 0,e}const bb=(0,d.createHigherOrderComponent)((e=>t=>{const n=Yo("typography.fontSizes"),{name:r,attributes:{fontSize:o,style:i},wrapperProps:a}=t;if(!(0,l.hasBlockSupport)(r,gb)||Di(r,kb,"fontSize")||!o||i?.typography?.fontSize)return(0,c.createElement)(e,{...t});const s=fb(n,o,i?.typography?.fontSize).size,u={...t,wrapperProps:{...a,style:{fontSize:s,...a?.style}}};return(0,c.createElement)(e,{...u})}),"withFontSizeInlineStyles"),vb={fontSize:[["fontSize"],["style","typography","fontSize"]]};function _b(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}(0,s.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,l.hasBlockSupport)(e,gb)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",hb),(0,s.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!(0,l.hasBlockSupport)(e,gb))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),hb(r,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",bb),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,r){const o=e.name;return Li({fontSize:(0,l.hasBlockSupport)(o,gb)},vb,e,t,n,r)})),(0,s.addFilter)("blocks.registerBlockType","core/font-size/addEditPropsForFluidCustomFontSizes",(function(e){if(!(0,l.hasBlockSupport)(e,gb)||Di(e,kb,"fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{const n=t?t(e):{},r=n?.style?.fontSize,o=ci((0,m.select)(zr).getSettings().__experimentalFeatures),i=r?li({size:r},o):null;return null===i?n:{...n,style:{...n?.style,fontSize:i}}},e}),11);const kb="typography",Sb=[sb,gb,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",pb,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Eb(e){const t={..._b(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={..._b(t.typography,["fontFamily"]),fontSize:o?void 0:n},{style:Fi(t),fontFamily:i,fontSize:o}}function wb(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 Cb({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=wb(e),r=t(n);return{...e,...Eb(r)}}),[t]);return(0,c.createElement)(qa,{group:"typography",resetAllFilter:n},e)}function xb({clientId:e,name:t,attributes:n,setAttributes:r,__unstableParentLayout:o}){const i=Ui(t,o),a=Zh(i),s=(0,c.useMemo)((()=>wb({style:n.style,fontFamily:n.fontFamily,fontSize:n.fontSize})),[n.style,n.fontSize,n.fontFamily]);if(!a)return null;const u=(0,l.getBlockSupport)(t,[kb,"__experimentalDefaultControls"]);return(0,c.createElement)(lb,{as:Cb,panelId:e,settings:i,value:s,onChange:e=>{r(Eb(e))},defaultControls:u})}var Ib=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const Ab={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1}};function Bb({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:r,onMouseOut:o,onMouseOver:i,showSideInLabel:a=!0,side:l,spacingSizes:s,type:u,value:p}){var y,g;p=Io(p,s);let h=s;const v=s.length<=8,_=(0,m.useSelect)((e=>{const t=e(zr).getSettings();return t?.disableCustomSpacingSizes})),[k,S]=(0,c.useState)(!_&&void 0!==p&&!Co(p)),E=(0,d.usePrevious)(p);p&&E!==p&&!Co(p)&&!0!==k&&S(!0);const w=(0,f.__experimentalUseCustomUnits)({availableUnits:Yo("spacing.units")||["px","em","rem"]});let C=null;!v&&!k&&void 0!==p&&(!Co(p)||Co(p)&&t)?(h=[...s,{name:t?(0,b.__)("Mixed"):(0,b.sprintf)((0,b.__)("Custom (%s)"),p),slug:"custom",size:p}],C=h.length-1):t||(C=k?xo(p,s):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":Bo(e),r=t.findIndex((e=>String(e.slug)===n));return-1!==r?r:NaN}(p,s));const x=(0,c.useMemo)((()=>(0,f.__experimentalParseQuantityAndUnitFromRawValue)(C)),[C])[1]||w[0].value,I=parseFloat(C,10),A=(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|${s[e]?.slug}`},B=t?(0,b.__)("Mixed"):null,P=h.map(((e,t)=>({key:t,name:e.name}))),T=s.map(((e,t)=>({value:t,label:void 0}))),O=_o.includes(l)&&a?Eo[l]:"",M=a?u?.toLowerCase():u,R=(0,b.sprintf)((0,b.__)("%1$s %2$s"),O,M).trim();return(0,c.createElement)(f.__experimentalHStack,{className:"spacing-sizes-control__wrapper"},e&&(0,c.createElement)(f.Icon,{className:"spacing-sizes-control__icon",icon:e,size:24}),k&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.__experimentalUnitControl,{onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o,onChange:e=>r((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:C,units:w,min:n,placeholder:B,disableUnits:t,label:R,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large"}),(0,c.createElement)(f.RangeControl,{onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o,value:I,min:0,max:null!==(y=Ab[x]?.max)&&void 0!==y?y:10,step:null!==(g=Ab[x]?.steps)&&void 0!==g?g:.1,withInputField:!1,onChange:e=>{r([e,x].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})),v&&!k&&(0,c.createElement)(f.RangeControl,{onMouseOver:i,onMouseOut:o,className:"spacing-sizes-control__range-control",value:C,onChange:e=>r(A(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===p&&r("0")},withInputField:!1,"aria-valuenow":C,"aria-valuetext":s[C]?.name,renderTooltipContent:e=>void 0===p?void 0:s[e]?.name,min:0,max:s.length-1,marks:T,label:R,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:i,onBlur:o}),!v&&!k&&(0,c.createElement)(f.CustomSelectControl,{className:"spacing-sizes-control__custom-select-control",value:P.find((e=>e.key===C))||"",onChange:e=>{r(A(e.selectedItem.key,"selectList"))},options:P,label:R,hideLabelFromVision:!0,__nextUnconstrainedWidth:!0,size:"__unstable-large",onMouseOver:i,onMouseOut:o,onFocus:i,onBlur:o}),!_&&(0,c.createElement)(f.Button,{label:k?(0,b.__)("Use size preset"):(0,b.__)("Set custom size"),icon:Ib,onClick:()=>{S(!k)},isPressed:k,isSmall:!0,className:"spacing-sizes-control__custom-toggle",iconSize:24}))}const Pb=["vertical","horizontal"];function Tb({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,sides:o,spacingSizes:i,type:a,values:l}){const s=e=>n=>{if(!t)return;const r={...Object.keys(l).reduce(((e,t)=>(e[t]=Io(l[t],i),e)),{})};"vertical"===e&&(r.top=n,r.bottom=n),"horizontal"===e&&(r.left=n,r.right=n),t(r)},u=o?.length?Pb.filter((e=>Po(o,e))):Pb;return(0,c.createElement)(c.Fragment,null,u.map((t=>{const o="vertical"===t?l.top:l.left;return(0,c.createElement)(Bb,{key:`spacing-sizes-control-${t}`,icon:So[t],label:Eo[t],minimumCustomValue:e,onChange:s(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:o,withInputField:!1})})))}function Ob({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,sides:o,spacingSizes:i,type:a,values:l}){const s=o?.length?_o.filter((e=>o.includes(e))):_o,u=e=>n=>{const r={...Object.keys(l).reduce(((e,t)=>(e[t]=Io(l[t],i),e)),{})};r[e]=n,t(r)};return(0,c.createElement)(c.Fragment,null,s.map((t=>(0,c.createElement)(Bb,{key:`spacing-sizes-control-${t}`,icon:So[t],label:Eo[t],minimumCustomValue:e,onChange:u(t),onMouseOut:n,onMouseOver:r,side:t,spacingSizes:i,type:a,value:l[t],withInputField:!1}))))}function Mb({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:r,showSideInLabel:o,side:i,spacingSizes:a,type:l,values:s}){return(0,c.createElement)(Bb,{label:Eo[i],minimumCustomValue:e,onChange:(u=i,e=>{const n={...Object.keys(s).reduce(((e,t)=>(e[t]=Io(s[t],a),e)),{})};n[u]=e,t(n)}),onMouseOut:n,onMouseOver:r,showSideInLabel:o,side:i,spacingSizes:a,type:l,value:s[i],withInputField:!1});var u}var Rb=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const Nb=(0,c.createElement)(f.Icon,{icon:Rb,size:24});function Fb({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=Po(e,"horizontal"),r=Po(e,"vertical");n&&r?t.axial={label:Eo.axial,icon:So.axial}:n?t.axial={label:Eo.horizontal,icon:So.horizontal}:r&&(t.axial={label:Eo.vertical,icon:So.vertical});let o=0;return _o.forEach((n=>{e.includes(n)&&(o+=1,t[n]={label:Eo[n],icon:So[n]})})),o>1&&(t.custom={label:Eo.custom,icon:So.custom}),t}(n),i=o[r].icon,{custom:a,...l}=o;return(0,c.createElement)(f.DropdownMenu,{icon:i,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{isSmall:!0}},(({onClose:e})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.MenuGroup,null,Object.entries(l).map((([n,{label:o,icon:i}])=>{const a=r===n;return(0,c.createElement)(f.MenuItem,{key:n,icon:i,iconPosition:"left",isSelected:a,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:a?Nb:void 0},o)}))),!!a&&(0,c.createElement)(f.MenuGroup,null,(0,c.createElement)(f.MenuItem,{icon:a.icon,iconPosition:"left",isSelected:r===wo.custom,role:"menuitemradio",onClick:()=>{t(wo.custom),e()},suffix:r===wo.custom?Nb:void 0},a.label)))))}function Lb({inputProps:e,label:t,minimumCustomValue:n=0,onChange:r,onMouseOut:o,onMouseOver:i,showSideInLabel:a=!0,sides:l=_o,useSelect:s,values:u}){const p=function(){const e=[{name:0,slug:"0",size:0},...Yo("spacing.spacingSizes")||[]];return e.length>8&&e.unshift({name:(0,b.__)("Default"),slug:"default",size:void 0}),e}(),d=u||ko,m=1===l?.length,y=l?.includes("horizontal")&&l?.includes("vertical")&&2===l?.length,[g,h]=(0,c.useState)(function(e={},t){const{top:n,right:r,bottom:o,left:i}=e,a=[n,r,o,i].filter(Boolean),l=!(n!==o||i!==r||!n&&!i),s=!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(Po(t)&&(l||s))return wo.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?wo.custom:t[0]}(d,l)),v={...e,minimumCustomValue:n,onChange:e=>{const t={...u,...e};r(t)},onMouseOut:o,onMouseOver:i,sides:l,spacingSizes:p,type:t,useSelect:s,values:d},_=_o.includes(g)&&a?Eo[g]:"",k=(0,b.sprintf)((0,b.__)("%1$s %2$s"),t,_).trim(),S=(0,b.sprintf)((0,b._x)("%s options","Button label to reveal side configuration options"),t);return(0,c.createElement)("fieldset",{className:"spacing-sizes-control"},(0,c.createElement)(f.__experimentalHStack,{className:"spacing-sizes-control__header"},(0,c.createElement)(f.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label"},k),!m&&!y&&(0,c.createElement)(Fb,{label:S,onChange:h,sides:l,value:g})),g===wo.axial?(0,c.createElement)(Tb,{...v}):g===wo.custom?(0,c.createElement)(Ob,{...v}):(0,c.createElement)(Mb,{side:g,...v,showSideInLabel:a}))}const Db={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1}};function Ub({label:e=(0,b.__)("Height"),onChange:t,value:n}){var r,o;const i=parseFloat(n),a=(0,f.__experimentalUseCustomUnits)({availableUnits:Yo("spacing.units")||["%","px","em","rem","vh","vw"]}),l=(0,c.useMemo)((()=>(0,f.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||a[0]?.value||"px";return(0,c.createElement)("fieldset",{className:"block-editor-height-control"},(0,c.createElement)(f.BaseControl.VisualLabel,{as:"legend"},e),(0,c.createElement)(f.Flex,null,(0,c.createElement)(f.FlexItem,{isBlock:!0},(0,c.createElement)(f.__experimentalUnitControl,{value:n,units:a,onChange:t,onUnitChange:e=>{const[r,o]=(0,f.__experimentalParseQuantityAndUnitFromRawValue)(n);["em","rem"].includes(e)&&"px"===o?t((r/16).toFixed(2)+e):["em","rem"].includes(o)&&"px"===e?t(Math.round(16*r)+e):["vh","vw","%"].includes(e)&&r>100&&t(100+e)},min:0,size:"__unstable-large"})),(0,c.createElement)(f.FlexItem,{isBlock:!0},(0,c.createElement)(f.__experimentalSpacer,{marginX:2,marginBottom:0},(0,c.createElement)(f.RangeControl,{value:i,min:0,max:null!==(r=Db[l]?.max)&&void 0!==r?r:100,step:null!==(o=Db[l]?.step)&&void 0!==o?o:.1,withInputField:!1,onChange:e=>{t([e,l].join(""))},__nextHasNoMarginBottom:!0})))))}function jb(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?(0,b.__)("Stretch to fill available space."):"fixed"===e&&"horizontal"===n?(0,b.__)("Specify a fixed width."):"fixed"===e?(0,b.__)("Specify a fixed height."):(0,b.__)("Fit contents.")}function zb({value:e={},onChange:t,parentLayout:n}){const{selfStretch:r,flexSize:o}=e;return(0,c.useEffect)((()=>{"fixed"!==r||o||t({...e,selfStretch:"fit"})}),[]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:Vb(n),value:r||"fit",help:jb(r,n),onChange:n=>{const r="fixed"!==n?null:o;t({...e,selfStretch:n,flexSize:r})},isBlock:!0},(0,c.createElement)(f.__experimentalToggleGroupControlOption,{key:"fit",value:"fit",label:(0,b.__)("Fit")}),(0,c.createElement)(f.__experimentalToggleGroupControlOption,{key:"fill",value:"fill",label:(0,b.__)("Fill")}),(0,c.createElement)(f.__experimentalToggleGroupControlOption,{key:"fixed",value:"fixed",label:(0,b.__)("Fixed")})),"fixed"===r&&(0,c.createElement)(f.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,flexSize:n})},value:o}))}function Vb(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?(0,b.__)("Width"):(0,b.__)("Height")}const Gb=["horizontal","vertical"];function Hb(e){const t=$b(e),n=Wb(e),r=Kb(e),o=qb(e),i=Jb(e),a=Zb(e),l=Yb(e);return"web"===c.Platform.OS&&(t||n||r||o||i||a||l)}function $b(e){return e?.layout?.contentSize}function Wb(e){return e?.layout?.wideSize}function Kb(e){return e?.spacing?.padding}function qb(e){return e?.spacing?.margin}function Jb(e){return e?.spacing?.blockGap}function Zb(e){return e?.dimensions?.minHeight}function Yb(e){var t;const{type:n="default",default:{type:r="default"}={},allowSizingOnChildren:o=!1}=null!==(t=e?.parentLayout)&&void 0!==t?t:{},i=("flex"===r||"flex"===n)&&o;return!!e?.layout&&i}function Qb(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 Xb(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function ev({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,c.createElement)(f.__experimentalToolsPanel,{label:(0,b.__)("Dimensions"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const tv={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!0};function nv({as:e=ev,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=tv,onVisualize:l=(()=>{}),includeLayoutControls:s=!1}){var u,d,m,y,g,h,v,_;const{dimensions:k,spacing:S}=o,E=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=mi({settings:{dimensions:k,spacing:S}},"",e[n]),t)),{}):mi({settings:{dimensions:k,spacing:S}},"",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),C=(0,f.__experimentalUseCustomUnits)({availableUnits:o?.spacing?.units||["%","px","em","rem","vw"]}),x=$b(o)&&s,I=E(r?.layout?.contentSize),A=e=>{n(Ni(t,["layout","contentSize"],e||void 0))},B=Wb(o)&&s,P=E(r?.layout?.wideSize),T=e=>{n(Ni(t,["layout","wideSize"],e||void 0))},O=Kb(o),M=Xb(E(r?.spacing?.padding)),R=Array.isArray(o?.spacing?.padding)?o?.spacing?.padding:o?.spacing?.padding?.sides,N=R&&R.some((e=>Gb.includes(e))),F=e=>{const r=Qb(e,R);n(Ni(t,["spacing","padding"],r))},L=()=>l("padding"),D=qb(o),U=Xb(E(r?.spacing?.margin)),j=Array.isArray(o?.spacing?.margin)?o?.spacing?.margin:o?.spacing?.margin?.sides,z=j&&j.some((e=>Gb.includes(e))),V=e=>{const r=Qb(e,j);n(Ni(t,["spacing","margin"],r))},G=()=>l("margin"),H=Jb(o),$=E(r?.spacing?.blockGap),W=function(e){return e&&"string"==typeof e?{top:e}:e?{...e,right:e?.left,bottom:e?.top}:e}($),K=Array.isArray(o?.spacing?.blockGap)?o?.spacing?.blockGap:o?.spacing?.blockGap?.sides,q=K&&K.some((e=>Gb.includes(e))),J=e=>{n(Ni(t,["spacing","blockGap"],e))},Z=e=>{e||J(null),!q&&e?.hasOwnProperty("top")?J(e.top):J({top:e?.top,left:e?.left})},Y=Zb(o),Q=E(r?.dimensions?.minHeight),X=e=>{n(Ni(t,["dimensions","minHeight"],e))},ee=Yb(o),te=r?.layout,{orientation:ne="horizontal"}=null!==(u=o?.parentLayout)&&void 0!==u?u:{},re="horizontal"===ne?(0,b.__)("Width"):(0,b.__)("Height"),oe=e=>{n({...t,layout:{...t?.layout,...e}})},ie=(0,c.useCallback)((e=>({...e,layout:Fi({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0}})),[]),ae=()=>l(!1);return(0,c.createElement)(e,{resetAllFilter:ie,value:t,onChange:n,panelId:i},(x||B)&&(0,c.createElement)("span",{className:"span-columns"},(0,b.__)("Set the width of the main content area.")),x&&(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"single-column",label:(0,b.__)("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>A(void 0),isShownByDefault:null!==(d=a.contentSize)&&void 0!==d?d:tv.contentSize,panelId:i},(0,c.createElement)(f.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,c.createElement)(f.__experimentalUnitControl,{label:(0,b.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:I||"",onChange:e=>{A(e)},units:C}),(0,c.createElement)(f.__experimentalView,null,(0,c.createElement)(Yi,{icon:Qi})))),B&&(0,c.createElement)(f.__experimentalToolsPanelItem,{className:"single-column",label:(0,b.__)("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>T(void 0),isShownByDefault:null!==(m=a.wideSize)&&void 0!==m?m:tv.wideSize,panelId:i},(0,c.createElement)(f.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,c.createElement)(f.__experimentalUnitControl,{label:(0,b.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:P||"",onChange:e=>{T(e)},units:C}),(0,c.createElement)(f.__experimentalView,null,(0,c.createElement)(Yi,{icon:Xi})))),O&&(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:(0,b.__)("Padding"),onDeselect:()=>F(void 0),isShownByDefault:null!==(y=a.padding)&&void 0!==y?y:tv.padding,className:p()({"tools-panel-item-spacing":w}),panelId:i},!w&&(0,c.createElement)(f.__experimentalBoxControl,{values:M,onChange:F,label:(0,b.__)("Padding"),sides:R,units:C,allowReset:!1,splitOnAxis:N,onMouseOver:L,onMouseOut:ae}),w&&(0,c.createElement)(Lb,{values:M,onChange:F,label:(0,b.__)("Padding"),sides:R,units:C,allowReset:!1,onMouseOver:L,onMouseOut:ae})),D&&(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:(0,b.__)("Margin"),onDeselect:()=>V(void 0),isShownByDefault:null!==(g=a.margin)&&void 0!==g?g:tv.margin,className:p()({"tools-panel-item-spacing":w}),panelId:i},!w&&(0,c.createElement)(f.__experimentalBoxControl,{values:U,onChange:V,label:(0,b.__)("Margin"),sides:j,units:C,allowReset:!1,splitOnAxis:z,onMouseOver:G,onMouseOut:ae}),w&&(0,c.createElement)(Lb,{values:U,onChange:V,label:(0,b.__)("Margin"),sides:j,units:C,allowReset:!1,onMouseOver:G,onMouseOut:ae})),H&&(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.blockGap,label:(0,b.__)("Block spacing"),onDeselect:()=>J(void 0),isShownByDefault:null!==(h=a.blockGap)&&void 0!==h?h:tv.blockGap,className:p()({"tools-panel-item-spacing":w}),panelId:i},!w&&(q?(0,c.createElement)(f.__experimentalBoxControl,{label:(0,b.__)("Block spacing"),min:0,onChange:Z,units:C,sides:K,values:W,allowReset:!1,splitOnAxis:q}):(0,c.createElement)(f.__experimentalUnitControl,{label:(0,b.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:J,units:C,value:$})),w&&(0,c.createElement)(Lb,{label:(0,b.__)("Block spacing"),min:0,onChange:Z,showSideInLabel:!1,sides:q?K:["top"],values:W,allowReset:!1})),Y&&(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>!!t?.dimensions?.minHeight,label:(0,b.__)("Min. height"),onDeselect:()=>{X(void 0)},isShownByDefault:null!==(v=a.minHeight)&&void 0!==v?v:tv.minHeight,panelId:i},(0,c.createElement)(Ub,{label:(0,b.__)("Min. height"),value:Q,onChange:X})),ee&&(0,c.createElement)(f.__experimentalVStack,{as:f.__experimentalToolsPanelItem,spacing:2,hasValue:()=>!!t?.layout,label:re,onDeselect:()=>{oe({selfStretch:void 0,flexSize:void 0})},isShownByDefault:null!==(_=a.childLayout)&&void 0!==_?_:tv.childLayout,panelId:i},(0,c.createElement)(zb,{value:te,onChange:oe,parentLayout:o?.parentLayout})))}var rv=window.wp.isShallowEqual,ov=n.n(rv);function iv(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function av({clientId:e,attributes:t,forceShow:n}){const r=Ap(e),[o,i]=(0,c.useState)(),a=t?.style?.spacing?.margin;(0,c.useEffect)((()=>{if(!r||null===r.ownerDocument.defaultView)return;const e=iv(r,"margin-top"),t=iv(r,"margin-right"),n=iv(r,"margin-bottom"),o=iv(r,"margin-left");i({borderTopWidth:e,borderRightWidth:t,borderBottomWidth:n,borderLeftWidth:o,top:e?`-${e}`:0,right:t?`-${t}`:0,bottom:n?`-${n}`:0,left:o?`-${o}`:0})}),[r,a]);const[l,s]=(0,c.useState)(!1),u=(0,c.useRef)(a),p=(0,c.useRef)();return(0,c.useEffect)((()=>(ov()(a,u.current)||n||(s(!0),u.current=a,p.current=setTimeout((()=>{s(!1)}),400)),()=>{s(!1),p.current&&window.clearTimeout(p.current)})),[a,n]),l||n?(0,c.createElement)(Cy,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:a,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,c.createElement)("div",{className:"block-editor__padding-visualizer",style:o})):null}function lv(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function sv({clientId:e,attributes:t,forceShow:n}){const r=Ap(e),[o,i]=(0,c.useState)(),a=t?.style?.spacing?.padding;(0,c.useEffect)((()=>{r&&null!==r.ownerDocument.defaultView&&i({borderTopWidth:lv(r,"padding-top"),borderRightWidth:lv(r,"padding-right"),borderBottomWidth:lv(r,"padding-bottom"),borderLeftWidth:lv(r,"padding-left")})}),[r,a]);const[l,s]=(0,c.useState)(!1),u=(0,c.useRef)(a),p=(0,c.useRef)();return(0,c.useEffect)((()=>(ov()(a,u.current)||n||(s(!0),u.current=a,p.current=setTimeout((()=>{s(!1)}),400)),()=>{s(!1),p.current&&window.clearTimeout(p.current)})),[a,n]),l||n?(0,c.createElement)(Cy,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:a,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,c.createElement)("div",{className:"block-editor__padding-visualizer",style:o})):null}const cv="dimensions",uv="spacing";function pv({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=e.style,r=t(n);return{...e,style:r}}),[t]);return(0,c.createElement)(qa,{group:"dimensions",resetAllFilter:n},e)}function dv(e){const{clientId:t,name:n,attributes:r,setAttributes:o,__unstableParentLayout:i}=e,a=Ui(n,i),s=Hb(a),u=r.style,[p,d]=function(){const[e,t]=(0,c.useState)(!1),{hideBlockInterface:n,showBlockInterface:r}=Ur((0,m.useDispatch)(zr));return(0,c.useEffect)((()=>{e?n():r()}),[e,r,n]),[e,t]}();if(!s)return null;const f={...(0,l.getBlockSupport)(e.name,[cv,"__experimentalDefaultControls"]),...(0,l.getBlockSupport)(e.name,[uv,"__experimentalDefaultControls"])};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(nv,{as:pv,panelId:t,settings:a,value:u,onChange:e=>{o({style:Fi(e)})},defaultControls:f,onVisualize:d}),!!a?.spacing?.padding&&(0,c.createElement)(sv,{forceShow:"padding"===p,...e}),!!a?.spacing?.margin&&(0,c.createElement)(av,{forceShow:"margin"===p,...e}))}function fv(){H()("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}const mv=[...Sb,Bg,gh,cv,uv],yv=e=>mv.some((t=>(0,l.hasBlockSupport)(e,t)));function gv(e={}){const t={};return(0,ea.getCSSRules)(e).forEach((e=>{t[e.key]=e.value})),t}const hv={[`${Bg}.__experimentalSkipSerialization`]:["border"],[`${gh}.__experimentalSkipSerialization`]:[gh],[`${kb}.__experimentalSkipSerialization`]:[kb],[`${cv}.__experimentalSkipSerialization`]:[cv],[`${uv}.__experimentalSkipSerialization`]:[uv]},bv={...hv,[`${uv}`]:["spacing.blockGap"]},vv={gradients:"gradient"};function _v(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;_v(r[t],[n],!0)}else 1===e.length&&delete r[e[0]]})),r}function kv(e,t,n,r=bv){if(!yv(t))return e;let{style:o}=n;return Object.entries(r).forEach((([e,n])=>{const r=(0,l.getBlockSupport)(t,e);!0===r&&(o=_v(o,n)),Array.isArray(r)&&r.forEach((e=>{const t=vv[e]||e;o=_v(o,[[...n,t]])}))})),e.style={...gv(o),...e.style},e}const Sv=(0,d.createHigherOrderComponent)((e=>t=>{const n=Kr(),r=xa();return(0,c.createElement)(c.Fragment,null,n&&"default"===r&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(xh,{...t}),(0,c.createElement)(xb,{...t}),(0,c.createElement)(Fg,{...t}),(0,c.createElement)(dv,{...t})),(0,c.createElement)(e,{...t}))}),"withToolbarControls"),Ev=(0,d.createHigherOrderComponent)((e=>t=>{const n=`wp-elements-${(0,d.useInstanceId)(e)}`,r=Di(t.name,gh,"link"),o=(0,c.useMemo)((()=>{const e=[{styles:r?void 0:t.attributes.style?.elements?.link,selector:`.editor-styles-wrapper .${n} ${l.__EXPERIMENTAL_ELEMENTS.link}`},{styles:r?void 0:t.attributes.style?.elements?.link?.[":hover"],selector:`.editor-styles-wrapper .${n} ${l.__EXPERIMENTAL_ELEMENTS.link}:hover`}],o=[];for(const{styles:t,selector:n}of e)if(t){const e=(0,ea.compileCSS)(t,{selector:n});o.push(e)}return o.length>0?o.join(""):void 0}),[t.attributes.style?.elements,n,r]),i=(0,c.useContext)(Xy.__unstableElementContext);return(0,c.createElement)(c.Fragment,null,o&&i&&(0,c.createPortal)((0,c.createElement)("style",{dangerouslySetInnerHTML:{__html:o}}),i),(0,c.createElement)(e,{...t,className:t.attributes.style?.elements?p()(t.className,n):t.className}))}),"withElementsStyles");(0,s.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return yv(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",kv),(0,s.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!yv(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),kv(r,e,n,hv)},e})),(0,s.addFilter)("editor.BlockEdit","core/style/with-block-controls",Sv),(0,s.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",Ev);(0,s.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){return t=e,(0,l.hasBlockSupport)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t}));var wv=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"}));var Cv=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:r,value:o,onChange:i}){let a;return a="unset"===o?(0,c.createElement)(f.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):o?(0,c.createElement)(f.DuotoneSwatch,{values:o}):(0,c.createElement)(Yi,{icon:wv}),(0,c.createElement)(f.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,b.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,c.createElement)(f.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==kp.DOWN||(n.preventDefault(),t())},label:(0,b.__)("Apply duotone filter"),icon:a}),renderContent:()=>(0,c.createElement)(f.MenuGroup,{label:(0,b.__)("Duotone")},(0,c.createElement)("div",{className:"block-editor-duotone-control__description"},(0,b.__)("Create a two-tone color effect without losing your original image.")),(0,c.createElement)(f.DuotonePicker,{colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:r,value:o,onChange:i}))})};function xv(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=zd(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}function Iv({selector:e,id:t}){const n=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return(0,c.createElement)("style",null,n)}function Av({selector:e}){const t=`\n${e} {\n\tfilter: none;\n}\n`;return(0,c.createElement)("style",null,t)}function Bv({id:e,colors:t}){const n=xv(t);return(0,c.createElement)(f.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},(0,c.createElement)("defs",null,(0,c.createElement)("filter",{id:e},(0,c.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),(0,c.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},(0,c.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),(0,c.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),(0,c.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}),(0,c.createElement)("feFuncA",{type:"table",tableValues:n.a.join(" ")})),(0,c.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"}))))}function Pv({preset:e}){return(0,c.createElement)(Bv,{id:`wp-duotone-${e.slug}`,colors:e.colors})}function Tv(e,t="root",n={}){if(!t)return null;const{fallback:r=!1}=n,{name:o,selectors:i,supports:a}=e,l=i&&Object.keys(i).length>0,s=Array.isArray(t)?t.join("."):t;let c=null;if(c=l&&i.root?i?.root:a?.__experimentalSelector?a.__experimentalSelector:".wp-block-"+o.replace("core/","").replace("/","-"),"root"===s)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=r?c:null;if(l){return(0,Wo.get)(i,`${s}.root`,null)||(0,Wo.get)(i,s,null)||e}const t=(0,Wo.get)(a,`${s}.__experimentalSelector`,null);return t?yi(c,t):e}let p;return l&&(p=(0,Wo.get)(i,s,null)),p||(r?Tv(e,u[0],n):null)}const Ov=[];function Mv(e,{presetSetting:t,defaultSetting:n}){const r=!e?.color?.[n],o=e?.color?.[t]?.custom||Ov,i=e?.color?.[t]?.theme||Ov,a=e?.color?.[t]?.default||Ov;return(0,c.useMemo)((()=>[...o,...i,...r?Ov:a]),[r,o,i,a])}function Rv(e){return Nv(e)}function Nv(e){return e.color.customDuotone||e.color.defaultDuotone}function Fv({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,c.createElement)(f.__experimentalToolsPanel,{label:(0,b._x)("Filters","Name for applying graphical effects"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const Lv={duotone:!0},Dv={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,b.__)("Duotone")},Uv=({indicator:e,label:t})=>(0,c.createElement)(f.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(f.__experimentalZStack,{isLayered:!1,offset:-8},(0,c.createElement)(f.Flex,{expanded:!1},"unset"!==e&&e?(0,c.createElement)(f.DuotoneSwatch,{values:e}):(0,c.createElement)(f.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}))),(0,c.createElement)(f.FlexItem,{title:t},t));function jv({as:e=Fv,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=Lv}){const l=Nv(o),s=Mv(o,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),u=Mv(o,{presetSetting:"palette",defaultSetting:"defaultPalette"}),d=(m=r?.filter?.duotone,mi({settings:o},"",m));var m;const y=e=>{const r=s.find((({colors:t})=>t===e)),o=r?`var:preset|duotone|${r.slug}`:e;n(Ni(t,["filter","duotone"],o))},g=!o?.color?.custom,h=!o?.color?.customDuotone||0===u?.length&&g,v=(0,c.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,c.createElement)(e,{resetAllFilter:v,value:t,onChange:n,panelId:i},l&&(0,c.createElement)(f.__experimentalToolsPanelItem,{label:(0,b.__)("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>y(void 0),isShownByDefault:a.duotone,panelId:i},(0,c.createElement)(f.Dropdown,{popoverProps:Dv,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:p()({"is-open":t}),"aria-expanded":t};return(0,c.createElement)(f.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,c.createElement)(f.Button,{...n},(0,c.createElement)(Uv,{indicator:d,label:(0,b.__)("Duotone")})))},renderContent:()=>(0,c.createElement)(f.__experimentalDropdownContentWrapper,{paddingSize:"medium"},(0,c.createElement)(f.__experimentalVStack,null,(0,c.createElement)("p",null,(0,b.__)("Create a two-tone color effect without losing your original image.")),(0,c.createElement)(f.DuotonePicker,{colorPalette:u,duotonePalette:s,disableCustomColors:g,disableCustomDuotone:h,value:d,onChange:y})))})))}const zv=[];function Vv({selector:e,id:t,colors:n}){return"unset"===n?(0,c.createElement)(Av,{selector:e}):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Bv,{id:t,colors:n}),(0,c.createElement)(Iv,{id:t,selector:e}))}function Gv({presetSetting:e,defaultSetting:t}){const n=!Yo(t),r=Yo(`${e}.custom`)||zv,o=Yo(`${e}.theme`)||zv,i=Yo(`${e}.default`)||zv;return(0,c.useMemo)((()=>[...r,...o,...n?zv:i]),[n,r,o,i])}function Hv(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}function $v({attributes:e,setAttributes:t,name:n}){const r=e?.style,o=r?.color?.duotone,i=Ui(n),a=Gv({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),l=Gv({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),s=!Yo("color.custom"),u=!Yo("color.customDuotone")||0===l?.length&&s;if(0===a?.length&&u)return null;const p=Array.isArray(o)?o:Hv(o,a);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qa,{group:"filter"},(0,c.createElement)(jv,{value:{filter:{duotone:p}},onChange:e=>{const n={...r,color:{...e?.filter}};t({style:n})},settings:i})),(0,c.createElement)(Xr,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(Cv,{duotonePalette:a,colorPalette:l,disableCustomDuotone:u,disableCustomColors:s,value:p,onChange:e=>{const n=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(e,a),o={...r,color:{...r?.color,duotone:null!=n?n:e}};t({style:o})},settings:i})))}Gd([Hd]);const Wv=(0,d.createHigherOrderComponent)((e=>t=>{const n=(0,l.hasBlockSupport)(t.name,"filter.duotone"),r=xa();return(0,c.createElement)(c.Fragment,null,n&&"default"===r&&(0,c.createElement)($v,{...t}),(0,c.createElement)(e,{...t}))}),"withDuotoneControls");function Kv({id:e,selector:t,attribute:n}){const r=(0,c.useContext)(Xy.__unstableElementContext),o=Gv({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),i=Array.isArray(n),a=i?void 0:Hv(n,o),l="string"==typeof n&&a;let s=null;l?s=a:("string"==typeof n&&!l||i)&&(s=n);const u=t.split(",").map((t=>`.editor-styles-wrapper .${e}${t.trim()}`)).join(", "),p=Array.isArray(s)||"unset"===s;return r&&p&&(0,c.createPortal)((0,c.createElement)(Vv,{selector:u,id:e,colors:s}),r)}const qv=(0,d.createHigherOrderComponent)((e=>t=>{const n=(0,d.useInstanceId)(e),r=(0,c.useMemo)((()=>{const e=(0,l.getBlockType)(t.name);if(e){if(!(0,l.getBlockSupport)(e,"filter.duotone",!1))return null;const t=(0,l.getBlockSupport)(e,"color.__experimentalDuotone",!1);if(t){const n=Tv(e);return"string"==typeof t?yi(n,t):n}return Tv(e,"filter.duotone",{fallback:!0})}}),[t.name]),o=t?.attributes?.style?.color?.duotone,i=`wp-duotone-${n}`,a=r&&o,s=a?p()(t?.className,i):t?.className;return(0,c.createElement)(c.Fragment,null,a&&(0,c.createElement)(Kv,{id:i,selector:r,attribute:o}),(0,c.createElement)(e,{...t,className:s}))}),"withDuotoneStyles");function Jv(e){return(0,m.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:r,__experimentalGetReusableBlockTitle:o}=t(zr),{getBlockType:i,getActiveBlockVariation:a}=t(l.store),s=n(e),c=i(s);if(!c)return null;const u=r(e),p=a(s,u),d=(0,l.isReusableBlock)(c),f=(d?o(u.ref):void 0)||c.title,m=d||(0,l.isTemplatePart)(c),y=function(e){const t=e?.style?.position?.type;return"sticky"===t?(0,b.__)("Sticky"):"fixed"===t?(0,b.__)("Fixed"):null}(u),g={isSynced:m,title:f,icon:c.icon,description:c.description,anchor:u?.anchor,positionLabel:y,positionType:u?.style?.position?.type};return p?{isSynced:m,title:p.title||c.title,icon:p.icon||c.icon,description:p.description||c.description,anchor:u?.anchor,positionLabel:y,positionType:u?.style?.position?.type}:g}),[e])}(0,s.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,l.hasBlockSupport)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,s.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",Wv),(0,s.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",qv);const{CustomSelectControl:Zv}=Ur(f.privateApis),Yv="position",Qv="block-editor-hooks__position-selection__select-control__option",Xv={key:"default",value:"",name:(0,b.__)("Default"),className:Qv},e_={key:"sticky",value:"sticky",name:(0,b._x)("Sticky","Name for the value of the CSS position property"),className:Qv,__experimentalHint:(0,b.__)("The block will stick to the top of the window instead of scrolling.")},t_={key:"fixed",value:"fixed",name:(0,b._x)("Fixed","Name for the value of the CSS position property"),className:Qv,__experimentalHint:(0,b.__)("The block will not move when the page is scrolled.")},n_=["top","right","bottom","left"],r_=["sticky","fixed"];function o_(e){const t=e.style?.position?.type;return"sticky"===t||"fixed"===t}function i_({name:e}={}){const t=Yo("position.fixed"),n=Yo("position.sticky"),r=!t&&!n;return o=e,!(0,l.getBlockSupport)(o,Yv)||r;var o}function a_(e){const{attributes:{style:t={}},clientId:n,name:r,setAttributes:o}=e,i=function(e){const t=(0,l.getBlockSupport)(e,Yv);return!(!0!==t&&!t?.fixed)}(r),a=function(e){const t=(0,l.getBlockSupport)(e,Yv);return!(!0!==t&&!t?.sticky)}(r),s=t?.position?.type,{firstParentClientId:u}=(0,m.useSelect)((e=>{const{getBlockParents:t}=e(zr),r=t(n);return{firstParentClientId:r[r.length-1]}}),[n]),p=Jv(u),d=a&&s===e_.value&&p?(0,b.sprintf)((0,b.__)("The block will stick to the scrollable area of the parent %s block."),p.title):null,y=(0,c.useMemo)((()=>{const e=[Xv];return(a||s===e_.value)&&e.push(e_),(i||s===t_.value)&&e.push(t_),e}),[i,a,s]),g=s&&y.find((e=>e.value===s))||Xv;return c.Platform.select({web:y.length>1?(0,c.createElement)(qa,{group:"position"},(0,c.createElement)(f.BaseControl,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:d},(0,c.createElement)(Zv,{__nextUnconstrainedWidth:!0,__next36pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:(0,b.__)("Position"),hideLabelFromVision:!0,describedBy:(0,b.sprintf)((0,b.__)("Currently selected position: %s"),g.name),options:y,value:g,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{(e=>{const n={...t,position:{...t?.position,type:e,top:"sticky"===e||"fixed"===e?"0px":void 0}};o({style:Fi(n)})})(e.value)},size:"__unstable-large"}))):null,native:null})}const l_=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n}=t;return[(0,l.hasBlockSupport)(n,Yv)&&!i_(t)&&(0,c.createElement)(a_,{key:"position",...t}),(0,c.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),s_=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r}=t,o=(0,l.hasBlockSupport)(n,Yv)&&!i_(t),i=(0,d.useInstanceId)(e),a=(0,c.useContext)(Xy.__unstableElementContext);let s;o&&(s=function({selector:e,style:t}){let n="";const{type:r}=t?.position||{};return r_.includes(r)?(n+=`${e} {`,n+=`position: ${r};`,n_.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==r&&"fixed"!==r||(n+="z-index: 10"),n+="}",n):n}({selector:`.wp-container-${i}.wp-container-${i}`,style:r?.style})||"");const u=p()(t?.className,{[`wp-container-${i}`]:o&&!!s,[`is-position-${r?.style?.position?.type}`]:o&&!!s&&!!r?.style?.position?.type});return(0,c.createElement)(c.Fragment,null,o&&a&&!!s&&(0,c.createPortal)((0,c.createElement)("style",null,s),a),(0,c.createElement)(e,{...t,className:u}))}),"withPositionStyles");(0,s.addFilter)("editor.BlockListBlock","core/editor/position/with-position-styles",s_),(0,s.addFilter)("editor.BlockEdit","core/editor/position/with-inspector-controls",l_);const c_="layout";function u_(e){return(0,l.hasBlockSupport)(e,"layout")||(0,l.hasBlockSupport)(e,"__experimentalLayout")}function p_(e={},t=""){const n=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return t().__experimentalFeatures?.useRootPaddingAwareAlignments}),[]),{layout:r}=e,{default:o}=(0,l.getBlockSupport)(t,c_)||{},i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||o||{},a=[];if(lo[i?.type||"default"]?.className){const e=lo[i?.type||"default"]?.className,n=`wp-block-${t.split("/").pop()}-${e}`;a.push(e,n)}return(i?.inherit||i?.contentSize||"constrained"===i?.type)&&n&&a.push("has-global-padding"),i?.orientation&&a.push(`is-${Mi(i.orientation)}`),i?.justifyContent&&a.push(`is-content-justification-${Mi(i.justifyContent)}`),i?.flexWrap&&"nowrap"===i.flexWrap&&a.push("is-nowrap"),a}function d_({setAttributes:e,attributes:t,name:n}){const{layout:r}=t,o=Yo("layout"),{themeSupportsLayout:i}=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return{themeSupportsLayout:t().supportsLayout}}),[]),a=xa(),s=(0,l.getBlockSupport)(n,c_,{}),{allowSwitching:u,allowEditing:p=!0,allowInheriting:d=!0,default:y}=s;if(!p)return null;const g=!(!d||!o||r?.type&&"default"!==r?.type&&"constrained"!==r?.type&&!r?.inherit),h=r||y||{},{inherit:v=!1,type:_="default",contentSize:k=null}=h;if(("default"===_||"constrained"===_)&&!i)return null;const S=la(_),E=la("constrained"),w=!h.type&&(k||v),C=!!v||!!k,x=t=>e({layout:t});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qa,null,(0,c.createElement)(f.PanelBody,{title:(0,b.__)("Layout")},g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:(0,b.__)("Inner blocks use content width"),checked:"constrained"===S?.name||C,onChange:()=>e({layout:{type:"constrained"===S?.name||C?"default":"constrained"}}),help:"constrained"===S?.name||C?(0,b.__)("Nested blocks use content width with options for full and wide widths."):(0,b.__)("Nested blocks will fill the width of this container. Toggle to constrain.")})),!v&&u&&(0,c.createElement)(f_,{type:_,onChange:t=>e({layout:{type:t}})}),S&&"default"!==S.name&&(0,c.createElement)(S.inspectorControls,{layout:h,onChange:x,layoutBlockSupport:s}),E&&w&&(0,c.createElement)(E.inspectorControls,{layout:h,onChange:x,layoutBlockSupport:s}))),!v&&"default"===a&&S&&(0,c.createElement)(S.toolBarControls,{layout:h,onChange:x,layoutBlockSupport:s}))}function f_({type:e,onChange:t}){return(0,c.createElement)(f.ButtonGroup,null,aa.map((({name:n,label:r})=>(0,c.createElement)(f.Button,{key:n,isPressed:e===n,onClick:()=>t(n)},r))))}const m_=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n}=t,r=u_(n),o=xa();return[r&&"default"===o&&(0,c.createElement)(d_,{key:"layout",...t}),(0,c.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),y_=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r}=t,o=u_(n),i=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return!!t().disableLayoutStyles})),a=o&&!i,s=(0,d.useInstanceId)(e),u=(0,c.useContext)(Xy.__unstableElementContext),{layout:f}=r,{default:y}=(0,l.getBlockSupport)(n,c_)||{},g=f?.inherit||f?.contentSize||f?.wideSize?{...f,type:"constrained"}:f||y||{},h=o?p_(r,n):null,b=`.wp-container-${s}.wp-container-${s}`,v=null!==Yo("spacing.blockGap");let _;if(a){const e=la(g?.type||"default");_=e?.getLayoutStyle?.({blockName:n,selector:b,layout:g,style:r?.style,hasBlockGapSupport:v})}const k=p()({[`wp-container-${s}`]:a&&!!_},h);return(0,c.createElement)(c.Fragment,null,a&&u&&!!_&&(0,c.createPortal)((0,c.createElement)(da,{blockName:n,selector:b,css:_,layout:g,style:r?.style}),u),(0,c.createElement)(e,{...t,__unstableLayoutClassNames:k}))}),"withLayoutStyles"),g_=(0,d.createHigherOrderComponent)((e=>t=>{const{attributes:n}=t,{style:{layout:r={}}={}}=n,{selfStretch:o,flexSize:i}=r,a=o||i,l=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return!!t().disableLayoutStyles})),s=a&&!l,u=(0,c.useContext)(Xy.__unstableElementContext),f=(0,d.useInstanceId)(e),y=`.wp-container-content-${f}`;let g="";"fixed"===o&&i?g+=`${y} {\n\t\t\t\tflex-basis: ${i};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===o&&(g+=`${y} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`);const h=p()(t?.className,{[`wp-container-content-${f}`]:s&&!!g});return(0,c.createElement)(c.Fragment,null,s&&u&&!!g&&(0,c.createPortal)((0,c.createElement)("style",null,g),u),(0,c.createElement)(e,{...t,className:h}))}),"withChildLayoutStyles");function h_(e){return(0,m.useSelect)((t=>{const{getBlockRootClientId:n,getBlocksByClientId:r,canInsertBlockType:o,getSelectedBlockClientIds:i}=t(zr),{getGroupingBlockName:a,getBlockType:s}=t(l.store),c=e?.length?e:i(),u=a(),p=o(u,c?.length?n(c[0]):void 0),d=r(c),f=1===d.length,[m]=d,y=f&&(m.name===u||s(m.name)?.transforms?.ungroup)&&!!m.innerBlocks.length;return{clientIds:c,isGroupable:p&&d.length,isUngroupable:y,blocksSelection:d,groupingBlockName:u,onUngroup:y&&s(m.name)?.transforms?.ungroup}}),[e])}function b_({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:r,blocksSelection:o,groupingBlockName:i,onClose:a=(()=>{})}){const{replaceBlocks:s}=(0,m.useDispatch)(zr);return t||n?(0,c.createElement)(c.Fragment,null,t&&(0,c.createElement)(f.MenuItem,{onClick:()=>{(()=>{const t=(0,l.switchToBlockType)(o,i);t&&s(e,t)})(),a()}},(0,b._x)("Group","verb")),n&&(0,c.createElement)(f.MenuItem,{onClick:()=>{(()=>{let t=o[0].innerBlocks;t.length&&(r&&(t=r(o[0].attributes,o[0].innerBlocks)),s(e,t))})(),a()}},(0,b._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor "))):null}function v_(e){return(0,m.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:r,canRemoveBlock:o,canLockBlockType:i,getBlockName:a,getBlockRootClientId:l,getTemplateLock:s}=t(zr),c=l(e),u=n(e),p=r(e,c),d=o(e,c);return{canEdit:u,canMove:p,canRemove:d,canLock:i(a(e)),isContentLocked:"contentOnly"===s(e),isLocked:!u||!p||!d}}),[e])}(0,s.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||u_(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,s.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",y_),(0,s.addFilter)("editor.BlockListBlock","core/editor/layout/with-child-layout-styles",g_),(0,s.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",m_);var __=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{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"}));var k_=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{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"}));var S_=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{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"}));const E_=["core/block","core/navigation"];function w_(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function C_({clientId:e,onClose:t}){const[n,r]=(0,c.useState)({move:!1,remove:!1}),{canEdit:o,canMove:i,canRemove:a}=v_(e),{allowsEditLocking:s,templateLock:u,hasTemplateLock:p}=(0,m.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:r}=t(zr),o=n(e),i=(0,l.getBlockType)(o);return{allowsEditLocking:E_.includes(o),templateLock:r(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}}),[e]),[y,g]=(0,c.useState)(!!u),{updateBlockAttributes:h}=(0,m.useDispatch)(zr),v=Jv(e),_=(0,d.useInstanceId)(C_,"block-editor-block-lock-modal__options-title");(0,c.useEffect)((()=>{r({move:!i,remove:!a,...s?{edit:!o}:{}})}),[o,i,a,s]);const k=Object.values(n).every(Boolean),S=Object.values(n).some(Boolean)&&!k;return(0,c.createElement)(f.Modal,{title:(0,b.sprintf)((0,b.__)("Lock %s"),v.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t},(0,c.createElement)("p",null,(0,b.__)("Choose specific attributes to restrict or lock all available options.")),(0,c.createElement)("form",{onSubmit:r=>{r.preventDefault(),h([e],{lock:n,templateLock:y?w_(n):void 0}),t()}},(0,c.createElement)("div",{role:"group","aria-labelledby":_,className:"block-editor-block-lock-modal__options"},(0,c.createElement)(f.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,c.createElement)("span",{id:_},(0,b.__)("Lock all")),checked:k,indeterminate:S,onChange:e=>r({move:e,remove:e,...s?{edit:e}:{}})}),(0,c.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},s&&(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(f.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Restrict editing"),checked:!!n.edit,onChange:e=>r((t=>({...t,edit:e})))}),(0,c.createElement)(f.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?S_:__})),(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(f.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Disable movement"),checked:n.move,onChange:e=>r((t=>({...t,move:e})))}),(0,c.createElement)(f.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?S_:__})),(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(f.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Prevent removal"),checked:n.remove,onChange:e=>r((t=>({...t,remove:e})))}),(0,c.createElement)(f.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?S_:__}))),p&&(0,c.createElement)(f.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:(0,b.__)("Apply to all blocks inside"),checked:y,disabled:n.move&&!n.remove,onChange:()=>g(!y)})),(0,c.createElement)(f.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(f.Button,{variant:"tertiary",onClick:t},(0,b.__)("Cancel"))),(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(f.Button,{variant:"primary",type:"submit"},(0,b.__)("Apply"))))))}function x_({clientId:e}){const{canLock:t,isLocked:n}=v_(e),[r,o]=(0,c.useReducer)((e=>!e),!1);if(!t)return null;const i=n?(0,b.__)("Unlock"):(0,b.__)("Lock");return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.MenuItem,{icon:n?__:k_,onClick:o},i),r&&(0,c.createElement)(C_,{clientId:e,onClose:o}))}const I_=()=>{};var A_=(0,d.compose)([(0,m.withSelect)(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:r,getSettings:o}=e(zr),i=n(t),a=o().codeEditingEnabled;return{mode:r(t),blockType:i?(0,l.getBlockType)(i.name):null,isCodeEditingEnabled:a}})),(0,m.withDispatch)(((e,{onToggle:t=I_,clientId:n})=>({onToggleMode(){e(zr).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:r=!1,isCodeEditingEnabled:o=!0}){if(!e||!(0,l.hasBlockSupport)(e,"html",!0)||!o)return null;const i="visual"===t?(0,b.__)("Edit as HTML"):(0,b.__)("Edit visually");return(0,c.createElement)(f.MenuItem,{onClick:n},!r&&i)}));const{Fill:B_,Slot:P_}=(0,f.createSlotFill)("BlockSettingsMenuControls");function T_({...e}){return(0,c.createElement)(f.__experimentalStyleProvider,{document:document},(0,c.createElement)(B_,{...e}))}T_.Slot=({fillProps:e,clientIds:t=null,__unstableDisplayLocation:n})=>{const{selectedBlocks:r,selectedClientIds:o,canRemove:i}=(0,m.useSelect)((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:r,canRemoveBlocks:o}=e(zr),i=null!==t?t:r();return{selectedBlocks:n(i),selectedClientIds:i,canRemove:o(i)}}),[t]),{canLock:a}=v_(o[0]),l=1===o.length&&a,s=h_(o),{isGroupable:u,isUngroupable:p}=s,y=(u||p)&&i;return(0,c.createElement)(P_,{fillProps:{...e,__unstableDisplayLocation:n,selectedBlocks:r,selectedClientIds:o}},(t=>!t?.length>0&&!y&&!l?null:(0,c.createElement)(f.MenuGroup,null,y&&(0,c.createElement)(b_,{...s,onClose:e?.onClose}),l&&(0,c.createElement)(x_,{clientId:o[0]}),t,e?.canMove&&!e?.onlyBlock&&(0,c.createElement)(f.MenuItem,{onClick:(0,d.pipe)(e?.onClose,e?.onMoveTo)},(0,b.__)("Move to")),1===e?.count&&(0,c.createElement)(A_,{clientId:e?.firstBlockClientId,onToggle:e?.onClose}))))};var O_=T_;function M_({clientId:e,stopEditingAsBlock:t}){const n=(0,m.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=t(zr);return n(e)||r(e,!0)}),[e]);return(0,c.useEffect)((()=>{n||t()}),[n,t]),null}const R_=(0,d.createHigherOrderComponent)((e=>t=>{const{getBlockListSettings:n,getSettings:r}=(0,m.useSelect)(zr),o=(0,c.useRef)(),{templateLock:i,isLockedByParent:a,isEditingAsBlocks:l}=(0,m.useSelect)((e=>{const{__unstableGetContentLockingParent:n,getTemplateLock:r,__unstableGetTemporarilyEditingAsBlocks:o}=e(zr);return{templateLock:r(t.clientId),isLockedByParent:!!n(t.clientId),isEditingAsBlocks:o()===t.clientId}}),[t.clientId]),{updateSettings:s,updateBlockListSettings:u,__unstableSetTemporarilyEditingAsBlocks:p}=(0,m.useDispatch)(zr),d=!a&&"contentOnly"===i,{__unstableMarkNextChangeAsNotPersistent:y,updateBlockAttributes:g}=(0,m.useDispatch)(zr),h=(0,c.useCallback)((()=>{y(),g(t.clientId,{templateLock:"contentOnly"}),u(t.clientId,{...n(t.clientId),templateLock:"contentOnly"}),s({focusMode:o.current}),p()}),[t.clientId,s,u,n,y,g,p]);if(!d&&!l)return(0,c.createElement)(e,{key:"edit",...t});const v=l&&!d,_=!l&&d&&t.isSelected;return(0,c.createElement)(c.Fragment,null,v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(M_,{clientId:t.clientId,stopEditingAsBlock:h}),(0,c.createElement)(Xr,{group:"other"},(0,c.createElement)(f.ToolbarButton,{onClick:()=>{h()}},(0,b.__)("Done")))),_&&(0,c.createElement)(O_,null,(({onClose:e})=>(0,c.createElement)(f.MenuItem,{onClick:()=>{y(),g(t.clientId,{templateLock:void 0}),u(t.clientId,{...n(t.clientId),templateLock:!1}),o.current=r().focusMode,s({focusMode:!0}),p(t.clientId),e()}},(0,b.__)("Modify")))),(0,c.createElement)(e,{key:"edit",...t}))}),"withToolbarControls");(0,s.addFilter)("editor.BlockEdit","core/content-lock-ui/with-block-controls",R_);const N_="metadata";function F_(e,t=""){if(!e.name.startsWith("core/"))return!1;const n=(0,l.getBlockSupport)(e,"__experimentalMetadata");return!(!0!==n&&!n?.[t])}function L_({blockName:e,blockBehaviors:t,onChangeBehavior:n,onChangeAnimation:r,disabled:o=!1}){const{settings:i,themeBehaviors:a}=(0,m.useSelect)((t=>{const{getBehaviors:n,getSettings:r}=t(zr);return{settings:r()?.__experimentalFeatures?.blocks?.[e]?.behaviors,themeBehaviors:n()?.blocks?.[e]}}),[e]),s={default:{value:"default",label:(0,b.__)("Default")},noBehaviors:{value:"",label:(0,b.__)("No behaviors")}},u=Object.entries(i).filter((([t,n])=>(0,l.hasBlockSupport)(e,`behaviors.${t}`)&&n)).map((([e])=>({value:e,label:`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}`}))),p=[...Object.values(s),...u];if(0===u.length)return null;const d={...a,...t||{}},y=o?(0,b.__)("The lightbox behavior is disabled for linked images."):"";return(0,c.createElement)(qa,{group:"advanced"},(0,c.createElement)("div",null,(0,c.createElement)(f.SelectControl,{label:(0,b.__)("Behaviors"),value:void 0===t?"default":d?.lightbox.enabled?"lightbox":"",options:p,onChange:n,hideCancelButton:!0,help:y,size:"__unstable-large",disabled:o}),d?.lightbox.enabled&&(0,c.createElement)(f.SelectControl,{label:(0,b.__)("Animation"),value:d?.lightbox.animation?d?.lightbox.animation:"",options:[{value:"zoom",label:(0,b.__)("Zoom")},{value:"fade",label:"Fade"}],onChange:r,hideCancelButton:!1,size:"__unstable-large",disabled:o})))}(0,s.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[N_]?.type||F_(e,"name")&&(e.attributes={...e.attributes,[N_]:{type:"object"}}),e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/metadata/save-props",(function(e,t,n){return F_(t)&&(e[N_]=n[N_]),e})),(0,s.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||F_(e,"name")&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const D_=(0,d.createHigherOrderComponent)((e=>t=>{const n=(0,c.createElement)(e,{key:"edit",...t});if(!(0,l.hasBlockSupport)(t.name,"behaviors"))return n;const r=void 0!==t.attributes?.linkDestination&&"none"!==t.attributes?.linkDestination;return(0,c.createElement)(c.Fragment,null,n,(0,c.createElement)(L_,{blockName:t.name,blockBehaviors:t.attributes.behaviors,onChangeBehavior:e=>{"default"===e?t.setAttributes({behaviors:void 0}):t.setAttributes({behaviors:{lightbox:{enabled:"lightbox"===e,animation:"lightbox"===e?"zoom":""}}})},onChangeAnimation:e=>{t.setAttributes({behaviors:{lightbox:{enabled:t.attributes.behaviors.lightbox.enabled,animation:e}}})},disabled:r}))}),"withBehaviors");function U_(e){const t=e.style?.border||{};return{className:Ug(e)||void 0,style:gv({border:t})}}function j_(e){const{colors:t}=ig(),n=U_(e),{borderColor:r}=e;if(r){const e=Tg({colors:t,namedColor:r});n.style.borderColor=e.color}return n}function z_(e){const{backgroundColor:t,textColor:n,gradient:r,style:o}=e,i=og("background-color",t),a=og("color",n),l=zg(r),s=l||o?.color?.gradient;return{className:p()(a,l,{[i]:!s&&!!i,"has-text-color":n||o?.color?.text,"has-background":t||o?.color?.background||r||o?.color?.gradient,"has-link-color":o?.elements?.link?.color})||void 0,style:gv({color:o?.color||{}})}}window?.__experimentalInteractivityAPI&&(0,s.addFilter)("editor.BlockEdit","core/behaviors/with-inspector-control",D_);const V_={};function G_(e){const{backgroundColor:t,textColor:n,gradient:r}=e,o=Yo("color.palette.custom"),i=Yo("color.palette.theme"),a=Yo("color.palette.default"),l=Yo("color.gradients")||V_,s=(0,c.useMemo)((()=>[...o||[],...i||[],...a||[]]),[o,i,a]),u=(0,c.useMemo)((()=>[...l?.custom||[],...l?.theme||[],...l?.default||[]]),[l]),p=z_(e);if(t){const e=ng(s,t);p.style.backgroundColor=e.color}if(r&&(p.style.background=Vg(u,r)),n){const e=ng(s,n);p.style.color=e.color}return p}function H_(e){const{style:t}=e;return{style:gv({spacing:t?.spacing||{}})}}function $_(e,t){let n=e?.style?.typography||{};const r=ci(t);n={...n,fontSize:li({size:e?.style?.typography?.fontSize},r)};const o=gv({typography:n}),i=e?.fontFamily?`has-${Mi(e.fontFamily)}-font-family`:"";return{className:p()(i,yb(e?.fontSize)),style:o}}function W_(e){const[t,n]=(0,c.useState)(e);return(0,c.useEffect)((()=>{e&&n(e)}),[e]),t}const K_=([e,...t])=>e.toUpperCase()+t.join(""),q_=e=>(0,d.createHigherOrderComponent)((t=>n=>(0,c.createElement)(t,{...n,colors:e})),"withCustomColorPalette"),J_=()=>(0,d.createHigherOrderComponent)((e=>t=>{const n=Yo("color.palette.custom"),r=Yo("color.palette.theme"),o=Yo("color.palette.default"),i=(0,c.useMemo)((()=>[...n||[],...r||[],...o||[]]),[n,r,o]);return(0,c.createElement)(e,{...t,colors:i})}),"withEditorColorPalette");function Z_(e,t){const n=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:Mi(t)}:t})),{});return(0,d.compose)([t,e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){const n=zd(t),r=({color:e})=>n.contrast(e),o=Math.max(...e.map(r));return e.find((e=>r(e)===o)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=>{const n=K_(t),r=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,r),e}),{})}createSetColor(e,t){return n=>{const r=rg(this.props.colors,n);this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},r){return Object.entries(n).reduce(((n,[o,i])=>{const a=ng(t,e[o],e[`custom${K_(o)}`]),l=r[o],s=l?.color;return s===a.color&&l?n[o]=l:n[o]={...a,class:og(i,a.slug)},n}),{})}render(){return(0,c.createElement)(e,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function Y_(e){return(...t)=>{const n=q_(e);return(0,d.createHigherOrderComponent)(Z_(t,n),"withCustomColors")}}function Q_(...e){const t=J_();return(0,d.createHigherOrderComponent)(Z_(e,t),"withColors")}var X_=function(e){const t=Yo("typography.fontSizes"),n=!Yo("typography.customFontSize");return(0,c.createElement)(f.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:n})};const ek=[],tk=([e,...t])=>e.toUpperCase()+t.join("");var nk=(...e)=>{const t=e.reduce(((e,t)=>(e[t]=`custom${tk(t)}`,e)),{});return(0,d.createHigherOrderComponent)((0,d.compose)([(0,d.createHigherOrderComponent)((e=>t=>{const n=Yo("typography.fontSizes")||ek;return(0,c.createElement)(e,{...t,fontSizes:n})}),"withFontSizes"),e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=>(e[`set${tk(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=>{const r=this.props.fontSizes?.find((({size:e})=>e===Number(n)));this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},r){const o=(t,n)=>!r[n]||(e[n]?e[n]!==r[n].slug:r[n].size!==e[t]);if(!Object.values(t).some(o))return null;const i=Object.entries(t).filter((([e,t])=>o(t,e))).reduce(((t,[r,o])=>{const i=e[r],a=fb(n,i,e[o]);return t[r]={...a,class:yb(i)},t}),{});return{...r,...i}}render(){return(0,c.createElement)(e,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var rk=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"}));var ok=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"}));var ik=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"}));const ak=[{icon:rk,title:(0,b.__)("Align text left"),align:"left"},{icon:ok,title:(0,b.__)("Align text center"),align:"center"},{icon:ik,title:(0,b.__)("Align text right"),align:"right"}],lk={placement:"bottom-start"};var sk=function({value:e,onChange:t,alignmentControls:n=ak,label:r=(0,b.__)("Align text"),describedBy:o=(0,b.__)("Change text alignment"),isCollapsed:i=!0,isToolbar:a}){function l(n){return()=>t(e===n?void 0:n)}const s=n.find((t=>t.align===e)),u=a?f.ToolbarGroup:f.ToolbarDropdownMenu,p=a?{isCollapsed:i}:{toggleProps:{describedBy:o},popoverProps:lk};return(0,c.createElement)(u,{icon:s?s.icon:(0,b.isRTL)()?ik:rk,label:r,controls:n.map((t=>{const{align:n}=t,r=e===n;return{...t,isActive:r,role:i?"menuitemradio":void 0,onClick:l(n)}})),...p})};const ck=e=>(0,c.createElement)(sk,{...e,isToolbar:!1}),uk=e=>(0,c.createElement)(sk,{...e,isToolbar:!0}),pk=()=>{};var dk={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n,prioritizedBlocks:r}=(0,m.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockListSettings:r,getBlockRootClientId:o}=e(zr),i=t(),a=o(i);return{selectedBlockName:i?n(i):null,rootClientId:a,prioritizedBlocks:r(a)?.prioritizedInserterBlocks}}),[]),[o,i,a]=Ff(t,pk),l=(0,c.useMemo)((()=>(e.trim()?cm(o,i,a,e):ty(K(o,"frecency","desc"),r)).filter((e=>e.name!==n)).slice(0,9)),[e,n,o,i,a,r]),s=(0,c.useMemo)((()=>l.map((e=>{const{title:t,icon:n,isDisabled:r}=e;return{key:`block-${e.id}`,value:e,label:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Hp,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))),[l]);return[s]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:r}=e;return{action:"replace",value:(0,l.createBlock)(t,n,(0,l.createBlocksFromInnerBlocksTemplate)(r))}}},fk=window.wp.apiFetch,mk=n.n(fk);var yk=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var gk=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));var hk={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await mk()({path:(0,wm.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords(e){return[...e.title.split(/\s+/)]},getOptionLabel(e){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Yi,{key:"icon",icon:"page"===e.subtype?yk:gk}),e.title)},getOptionCompletion(e){return(0,c.createElement)("a",{href:e.url},e.title)}};const bk=[];function vk({completers:e=bk}){const{name:t}=Wr();return(0,c.useMemo)((()=>{let n=[...e,hk];return(t===(0,l.getDefaultBlockName)()||(0,l.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=[...n,dk]),(0,s.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map((e=>({...e})))),n=(0,s.applyFilters)("editor.Autocomplete.completers",n,t)),n}),[e,t])}var _k=function(e){return(0,c.createElement)(f.Autocomplete,{...e,completers:vk(e)})};var kk=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var Sk=function({isActive:e,label:t=(0,b.__)("Toggle full height"),onToggle:n,isDisabled:r}){return(0,c.createElement)(f.ToolbarButton,{isActive:e,icon:kk,label:t,onClick:()=>n(!e),disabled:r})};const Ek=()=>{};var wk=function(e){const{label:t=(0,b.__)("Change matrix alignment"),onChange:n=Ek,value:r="center",isDisabled:o}=e,i=(0,c.createElement)(f.__experimentalAlignmentMatrixControl.Icon,{value:r});return(0,c.createElement)(f.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:e,isOpen:n})=>(0,c.createElement)(f.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==kp.DOWN||(t.preventDefault(),e())},label:t,icon:i,showTooltip:!0,disabled:o}),renderContent:()=>(0,c.createElement)(f.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:r})})};var Ck=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function xk({clientId:e,maximumLength:t,context:n}){const{attributes:r,name:o,reusableBlockTitle:i}=(0,m.useSelect)((t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:r,__experimentalGetReusableBlockTitle:o}=t(zr),i=n(e);if(!i)return{};const a=(0,l.isReusableBlock)((0,l.getBlockType)(i));return{attributes:r(e),name:i,reusableBlockTitle:a&&o(r(e).ref)}}),[e]),a=Jv(e);if(!o||!a)return null;const s=(0,l.getBlockType)(o),c=s?(0,l.__experimentalGetBlockLabel)(s,r,n):null,u=i||c,p=u&&u!==s.title?u:a.title;if(t&&t>0&&p.length>t){const e="...";return p.slice(0,t-e.length)+e}return p}function Ik({clientId:e,maximumLength:t,context:n}){return xk({clientId:e,maximumLength:t,context:n})}var Ak=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,m.useDispatch)(zr),{clientId:r,parents:o,hasSelection:i}=(0,m.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:r}=Ur(e(zr)),o=n();return{parents:r(o),clientId:o,hasSelection:!!t().clientId}}),[]),a=e||(0,b.__)("Document");return(0,c.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,b.__)("Block breadcrumb")},(0,c.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&(0,c.createElement)(f.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},a),!i&&a,!!r&&(0,c.createElement)(Yi,{icon:Ck,className:"block-editor-block-breadcrumb__separator"})),o.map((e=>(0,c.createElement)("li",{key:e},(0,c.createElement)(f.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},(0,c.createElement)(Ik,{clientId:e,maximumLength:35})),(0,c.createElement)(Yi,{icon:Ck,className:"block-editor-block-breadcrumb__separator"})))),!!r&&(0,c.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},(0,c.createElement)(Ik,{clientId:r,maximumLength:35})))};const Bk=()=>(0,c.createElement)(f.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,c.createElement)(f.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),Pk=({style:e,className:t})=>(0,c.createElement)("div",{className:"block-library-colors-selector__icon-container"},(0,c.createElement)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e},(0,c.createElement)(Bk,null))),Tk=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:r})=>(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(f.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,b.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{r||e.keyCode!==kp.DOWN||(e.preventDefault(),n())},icon:(0,c.createElement)(t,null,(0,c.createElement)(e,null,(0,c.createElement)(Pk,null)))}));var Ok=({children:e,...t})=>(H()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,c.createElement)(f.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:Tk(t),renderContent:()=>e}));var Mk=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));const Rk=(0,c.createContext)({}),Nk=()=>(0,c.useContext)(Rk);function Fk({children:e,...t}){const n=(0,c.useRef)();return(0,c.useEffect)((()=>{n.current&&(n.current.textContent=n.current.textContent)}),[e]),(0,c.createElement)("div",{hidden:!0,...t,ref:n},e)}const Lk=(0,c.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...r},o)=>{const{insertedBlock:i,setInsertedBlock:a}=Nk(),l=(0,d.useInstanceId)(Lk),{hideInserter:s}=(0,m.useSelect)((e=>{const{getTemplateLock:t,__unstableGetEditorMode:r}=e(zr);return{hideInserter:!!t(n)||"zoom-out"===r()}}),[n]),u=xk({clientId:n,context:"list-view"}),p=xk({clientId:i?.clientId,context:"list-view"});if((0,c.useEffect)((()=>{p?.length&&(0,Cn.speak)((0,b.sprintf)((0,b.__)("%s block inserted"),p),"assertive")}),[p]),s)return null;const f=`list-view-appender__${l}`,y=(0,b.sprintf)((0,b.__)("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return(0,c.createElement)("div",{className:"list-view-appender"},(0,c.createElement)(my,{ref:o,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0,...r,toggleProps:{"aria-describedby":f},onSelectOrClose:e=>{e?.clientId&&a(e)}}),(0,c.createElement)(Fk,{id:f},y))})),Dk=op(f.__experimentalTreeGridRow),Uk=(0,c.forwardRef)((({isSelected:e,position:t,level:n,rowCount:r,children:o,className:i,path:a,...l},s)=>{const u=lp({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:a}),f=(0,d.useMergeRefs)([s,u]);return(0,c.createElement)(Dk,{ref:f,className:p()("block-editor-list-view-leaf",i),level:n,positionInSet:t,setSize:r,isExpanded:void 0,...l},o)}));var jk=Uk;var zk=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var Vk=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Gk=(e,t)=>"up"===e?"horizontal"===t?(0,b.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,b.isRTL)()?"left":"right":"down":null;function Hk(e,t,n,r,o,i,a){const l=n+1;if(e>1)return function(e,t,n,r,o,i){const a=t+1;if(n&&r)return(0,b.__)("All blocks are selected, and cannot be moved");if(o>0&&!r){const t=Gk("down",i);if("down"===t)return(0,b.sprintf)((0,b.__)("Move %1$d blocks from position %2$d down by one place"),e,a);if("left"===t)return(0,b.sprintf)((0,b.__)("Move %1$d blocks from position %2$d left by one place"),e,a);if("right"===t)return(0,b.sprintf)((0,b.__)("Move %1$d blocks from position %2$d right by one place"),e,a)}if(o>0&&r){const e=Gk("down",i);if("down"===e)return(0,b.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,b.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,b.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(o<0&&!n){const t=Gk("up",i);if("up"===t)return(0,b.sprintf)((0,b.__)("Move %1$d blocks from position %2$d up by one place"),e,a);if("left"===t)return(0,b.sprintf)((0,b.__)("Move %1$d blocks from position %2$d left by one place"),e,a);if("right"===t)return(0,b.sprintf)((0,b.__)("Move %1$d blocks from position %2$d right by one place"),e,a)}if(o<0&&n){const e=Gk("up",i);if("up"===e)return(0,b.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,b.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,b.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,r,o,i,a);if(r&&o)return(0,b.sprintf)((0,b.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!o){const e=Gk("down",a);if("down"===e)return(0,b.sprintf)((0,b.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===e)return(0,b.sprintf)((0,b.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===e)return(0,b.sprintf)((0,b.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(i>0&&o){const e=Gk("down",a);if("down"===e)return(0,b.sprintf)((0,b.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,b.sprintf)((0,b.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,b.sprintf)((0,b.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(i<0&&!r){const e=Gk("up",a);if("up"===e)return(0,b.sprintf)((0,b.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===e)return(0,b.sprintf)((0,b.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===e)return(0,b.sprintf)((0,b.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(i<0&&r){const e=Gk("up",a);if("up"===e)return(0,b.sprintf)((0,b.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,b.sprintf)((0,b.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,b.sprintf)((0,b.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const $k=(e,t)=>"up"===e?"horizontal"===t?(0,b.isRTL)()?zp:Vp:zk:"down"===e?"horizontal"===t?(0,b.isRTL)()?Vp:zp:Vk:null,Wk=(e,t)=>"up"===e?"horizontal"===t?(0,b.isRTL)()?(0,b.__)("Move right"):(0,b.__)("Move left"):(0,b.__)("Move up"):"down"===e?"horizontal"===t?(0,b.isRTL)()?(0,b.__)("Move left"):(0,b.__)("Move right"):(0,b.__)("Move down"):null,Kk=(0,c.forwardRef)((({clientIds:e,direction:t,orientation:n,...r},o)=>{const i=(0,d.useInstanceId)(Kk),a=Array.isArray(e)?e:[e],s=a.length,{blockType:u,isDisabled:y,rootClientId:g,isFirst:h,isLast:b,firstIndex:v,orientation:_="vertical"}=(0,m.useSelect)((e=>{const{getBlockIndex:r,getBlockRootClientId:o,getBlockOrder:i,getBlock:s,getBlockListSettings:c}=e(zr),u=a[0],p=o(u),d=r(u),f=r(a[a.length-1]),m=i(p),y=s(u),g=0===d,h=f===m.length-1,{orientation:b}=c(p)||{};return{blockType:y?(0,l.getBlockType)(y.name):null,isDisabled:"up"===t?g:h,rootClientId:p,firstIndex:d,isFirst:g,isLast:h,orientation:n||b}}),[e,t]),{moveBlocksDown:k,moveBlocksUp:S}=(0,m.useDispatch)(zr),E="up"===t?S:k,w=`block-editor-block-mover-button__description-${i}`;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.Button,{ref:o,className:p()("block-editor-block-mover-button",`is-${t}-button`),icon:$k(t,_),label:Wk(t,_),"aria-describedby":w,...r,onClick:y?null:t=>{E(e,g),r.onClick&&r.onClick(t)},disabled:y,__experimentalIsFocusable:!0}),(0,c.createElement)(f.VisuallyHidden,{id:w},Hk(s,u&&u.title,v,h,b,"up"===t?-1:1,_)))})),qk=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(Kk,{direction:"up",ref:t,...e}))),Jk=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(Kk,{direction:"down",ref:t,...e})));var Zk=(0,c.createElement)(j.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"}));var Yk=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"}));var Qk=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));function Xk({onClick:e}){return(0,c.createElement)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander"},(0,c.createElement)(Yi,{icon:(0,b.isRTL)()?Qk:Ck}))}var eS=(0,c.forwardRef)((function({className:e,block:{clientId:t},onClick:n,onToggleExpanded:r,tabIndex:o,onFocus:i,onDragStart:a,onDragEnd:l,draggable:s,isExpanded:u,ariaLabel:d,ariaDescribedBy:y,updateFocusAndSelection:g},h){const v=Jv(t),_=xk({clientId:t,context:"list-view"}),{isLocked:k}=v_(t),{getSelectedBlockClientIds:S,getPreviousBlockClientId:E,getBlockRootClientId:w,getBlockOrder:C,canRemoveBlocks:x}=(0,m.useSelect)(zr),{removeBlocks:I}=(0,m.useDispatch)(zr),A=(0,rd.__unstableUseShortcutEventMatch)(),B="sticky"===v?.positionType,P=v?.positionLabel?(0,b.sprintf)((0,b.__)("Position: %1$s"),v.positionLabel):"";return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.Button,{className:p()("block-editor-list-view-block-select-button",e),onClick:n,onKeyDown:function(e){if(e.keyCode===kp.ENTER||e.keyCode===kp.SPACE)n(e);else if(e.keyCode===kp.BACKSPACE||e.keyCode===kp.DELETE||A("core/block-editor/remove",e)){var r;const e=S(),n=e.includes(t),o=n?e[0]:t,i=w(o),a=n?e:[t];if(!x(a,i))return;let l=null!==(r=E(o))&&void 0!==r?r:i;I(a,!1);const s=e.length>0&&0===S().length;l||(l=C()[0]),g(l,s)}},ref:h,tabIndex:o,onFocus:i,onDragStart:e=>{e.dataTransfer.clearData(),a?.(e)},onDragEnd:l,draggable:s,href:`#block-${t}`,"aria-label":d,"aria-describedby":y,"aria-expanded":u},(0,c.createElement)(Xk,{onClick:r}),(0,c.createElement)(Hp,{icon:v?.icon,showColors:!0,context:"list-view"}),(0,c.createElement)(f.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1},(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},(0,c.createElement)(f.__experimentalTruncate,{ellipsizeMode:"auto"},_)),v?.anchor&&(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper"},(0,c.createElement)(f.__experimentalTruncate,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto"},v.anchor)),P&&B&&(0,c.createElement)(f.Tooltip,{text:P},(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__sticky"},(0,c.createElement)(Yi,{icon:Zk}))),k&&(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__lock"},(0,c.createElement)(Yi,{icon:Yk})))))}));var tS=({children:e,clientIds:t,cloneClassname:n,onDragStart:r,onDragEnd:o})=>{const{srcRootClientId:i,isDraggable:a,icon:s}=(0,m.useSelect)((e=>{const{canMoveBlocks:n,getBlockRootClientId:r,getBlockName:o,getBlockAttributes:i}=e(zr),{getBlockType:a,getActiveBlockVariation:s}=e(l.store),c=r(t[0]),u=o(t[0]),p=s(u,i(t[0]));return{srcRootClientId:c,isDraggable:n(t,c),icon:p?.icon||a(u)?.icon}}),[t]),u=(0,c.useRef)(!1),[p,d,y]=function(){const e=(0,c.useRef)(null),t=(0,c.useRef)(null),n=(0,c.useRef)(null),r=(0,c.useRef)(null);return(0,c.useEffect)((()=>()=>{r.current&&(clearInterval(r.current),r.current=null)}),[]),[(0,c.useCallback)((o=>{e.current=o.clientY,n.current=(0,el.getScrollContainer)(o.target),r.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,c.useCallback)((r=>{if(!n.current)return;const o=n.current.offsetHeight,i=e.current-n.current.offsetTop,a=r.clientY-n.current.offsetTop;if(r.clientY>i){const e=Math.max(o-i-50,0),n=Math.max(a-i-50,0),r=0===e||0===n?0:n/e;t.current=25*r}else if(r.clientY<i){const e=Math.max(i-50,0),n=Math.max(i-a-50,0),r=0===e||0===n?0:n/e;t.current=-25*r}else t.current=0}),[]),()=>{e.current=null,n.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}(),{startDraggingBlocks:g,stopDraggingBlocks:h}=(0,m.useDispatch)(zr);if((0,c.useEffect)((()=>()=>{u.current&&h()}),[]),!a)return e({draggable:!1});const b={type:"block",srcClientIds:t,srcRootClientId:i};return(0,c.createElement)(f.Draggable,{cloneClassname:n,__experimentalTransferDataType:"wp-blocks",transferData:b,onDragStart:e=>{window.requestAnimationFrame((()=>{g(t),u.current=!0,p(e),r&&r()}))},onDragOver:d,onDragEnd:()=>{h(),u.current=!1,y(),o&&o()},__experimentalDragComponent:(0,c.createElement)(Bf,{count:t.length,icon:s})},(({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n})))};const nS=(0,c.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:r,position:o,siblingBlockCount:i,level:a,isExpanded:l,selectedClientIds:s,...u},d)=>{const{clientId:f}=n,{blockMovingClientId:y,selectedBlockInBlockEditor:g}=(0,m.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n}=e(zr);return{blockMovingClientId:t(),selectedBlockInBlockEditor:n()}}),[]),{AdditionalBlockContent:h,insertedBlock:b,setInsertedBlock:v}=Nk(),_=y&&g===f,k=p()("block-editor-list-view-block-contents",{"is-dropping-before":_}),S=s.includes(f)?s:[f];return(0,c.createElement)(c.Fragment,null,h&&(0,c.createElement)(h,{block:n,insertedBlock:b,setInsertedBlock:v}),(0,c.createElement)(tS,{clientIds:S},(({draggable:s,onDragStart:p,onDragEnd:f})=>(0,c.createElement)(eS,{ref:d,className:k,block:n,onClick:e,onToggleExpanded:t,isSelected:r,position:o,siblingBlockCount:i,level:a,draggable:s,onDragStart:p,onDragEnd:f,isExpanded:l,...u}))))}));var rS=nS;var oS=(0,c.memo)((function e({block:{clientId:t},isDragged:n,isSelected:r,isBranchSelected:o,selectBlock:i,position:a,level:s,rowCount:u,siblingBlockCount:y,showBlockMovers:g,path:h,isExpanded:v,selectedClientIds:_,isSyncedBranch:k}){const S=(0,c.useRef)(null),E=(0,c.useRef)(null),[w,C]=(0,c.useState)(!1),{isLocked:x,canEdit:I}=v_(t),A=r&&_[0]===t,B=r&&_[_.length-1]===t,{toggleBlockHighlight:P}=(0,m.useDispatch)(zr),T=Jv(t),O=T?.title||(0,b.__)("Untitled"),M=(0,m.useSelect)((e=>e(zr).getBlock(t)),[t]),R=(0,m.useSelect)((e=>e(zr).getBlockName(t)),[t]),N=(0,m.useSelect)((e=>Ur(e(zr)).getBlockEditingMode(t)),[t]),F=(0,l.hasBlockSupport)(R,"__experimentalToolbar",!0)&&"default"===N,L=`list-view-block-select-button__${(0,d.useInstanceId)(e)}`,D=((e,t,n)=>(0,b.sprintf)((0,b.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(a,y,s),U=x?(0,b.sprintf)((0,b.__)("%s (locked)"),O):O,j=(0,b.sprintf)((0,b.__)("Options for %s"),O),{isTreeGridMounted:z,expand:V,collapse:G,BlockSettingsMenu:H,listViewInstanceId:$,expandedState:W,setInsertedBlock:K,treeGridElementRef:q}=Nk(),J=g&&y>0,Z=p()("block-editor-list-view-block__mover-cell",{"is-visible":w||r}),Y=p()("block-editor-list-view-block__menu-cell",{"is-visible":w||A});(0,c.useEffect)((()=>{!z&&r&&S.current.focus()}),[]);const Q=(0,c.useCallback)((()=>{C(!0),P(t,!0)}),[t,C,P]),X=(0,c.useCallback)((()=>{C(!1),P(t,!1)}),[t,C,P]),ee=(0,c.useCallback)((e=>{i(e,t),e.preventDefault()}),[t,i]),te=(0,c.useCallback)(((e,t)=>{t&&i(void 0,e,null,null);const n=()=>{const t=q.current?.querySelector(`[role=row][data-block="${e}"]`);return t?el.focus.focusable.find(t)[0]:null};let r=n();r?r.focus():window.requestAnimationFrame((()=>{r=n(),r&&r.focus()}))}),[i,q]),ne=(0,c.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===v?G(t):!1===v&&V(t)}),[t,V,G,v]);let re;J?re=2:F||(re=3);const oe=p()({"is-selected":r,"is-first-selected":A,"is-last-selected":B,"is-branch-selected":o,"is-synced-branch":k,"is-dragging":n,"has-single-cell":!F,"is-synced":T?.isSynced}),ie=_.includes(t)?_:[t];!function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const r=1===t.length;(0,c.useLayoutEffect)((()=>{if(!e||!r||!n.current)return;const t=(0,el.getScrollContainer)(n.current),{ownerDocument:o}=n.current;if(t===o.body||t===o.documentElement||!t)return;const i=n.current.getBoundingClientRect(),a=t.getBoundingClientRect();(i.top<a.top||i.bottom>a.bottom)&&n.current.scrollIntoView()}),[e,r,n])}({isSelected:r,rowItemRef:E,selectedClientIds:_});const ae=r&&1===_.length;return(0,c.createElement)(jk,{className:oe,onMouseEnter:Q,onMouseLeave:X,onFocus:Q,onBlur:X,level:s,position:a,rowCount:u,path:h,id:`list-view-${$}-block-${t}`,"data-block":t,"data-expanded":I?v:void 0,ref:E},(0,c.createElement)(f.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:re,ref:S,"aria-selected":!!r},(({ref:e,tabIndex:t,onFocus:n})=>(0,c.createElement)("div",{className:"block-editor-list-view-block__contents-container"},(0,c.createElement)(rS,{block:M,onClick:ee,onToggleExpanded:ne,isSelected:r,position:a,siblingBlockCount:y,level:s,ref:e,tabIndex:ae?0:t,onFocus:n,isExpanded:I?v:void 0,selectedClientIds:_,ariaLabel:U,ariaDescribedBy:L,updateFocusAndSelection:te}),(0,c.createElement)(Fk,{id:L},D)))),J&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.__experimentalTreeGridCell,{className:Z,withoutGridItem:!0},(0,c.createElement)(f.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:r})=>(0,c.createElement)(qk,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:r}))),(0,c.createElement)(f.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:r})=>(0,c.createElement)(Jk,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:r}))))),F&&H&&(0,c.createElement)(f.__experimentalTreeGridCell,{className:Y,"aria-selected":!!r},(({ref:e,tabIndex:t,onFocus:n})=>(0,c.createElement)(H,{clientIds:ie,block:M,icon:Om,label:j,toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,expand:V,expandedState:W,setInsertedBlock:K,__experimentalSelectBlock:te}))))}));function iS(e,t,n,r){var o;const i=n?.includes(e.clientId);if(i)return 0;return(null!==(o=t[e.clientId])&&void 0!==o?o:r)?1+e.innerBlocks.reduce(aS(t,n,r),0):1}const aS=(e,t,n)=>(r,o)=>{var i;const a=t?.includes(o.clientId);if(a)return r;return(null!==(i=e[o.clientId])&&void 0!==i?i:n)&&o.innerBlocks.length>0?r+iS(o,e,t,n):r+1},lS=()=>{};var sS=(0,c.memo)((function e(t){const{blocks:n,selectBlock:r=lS,showBlockMovers:o,selectedClientIds:i,level:a=1,path:l="",isBranchDragged:s=!1,isBranchSelected:u=!1,listPosition:p=0,fixedListWindow:d,isExpanded:y,parentId:g,shouldShowInnerBlocks:h=!0,isSyncedBranch:b=!1,showAppender:v=!0}=t,_=Jv(g),k=b||!!_?.isSynced,S=(0,m.useSelect)((e=>!g||e(zr).canEditBlock(g)),[g]),{expandedState:E,draggedClientIds:w}=Nk();if(!S)return null;const C=v&&1===a,x=n.filter(Boolean),I=x.length,A=C?I+1:I;let B=p;return(0,c.createElement)(c.Fragment,null,x.map(((t,n)=>{var p;const{clientId:f,innerBlocks:g}=t;n>0&&(B+=iS(x[n-1],E,w,y));const{itemInView:b}=d,v=b(B),_=n+1,S=l.length>0?`${l}_${_}`:`${_}`,C=!!g?.length,P=C&&h?null!==(p=E[f])&&void 0!==p?p:y:void 0,T=!!w?.includes(f),O=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(f,i),M=u||O&&C,R=T||v||O||s;return(0,c.createElement)(m.AsyncModeProvider,{key:f,value:!O},R&&(0,c.createElement)(oS,{block:t,selectBlock:r,isSelected:O,isBranchSelected:M,isDragged:T||s,level:a,position:_,rowCount:A,siblingBlockCount:I,showBlockMovers:o,path:S,isExpanded:P,listPosition:B,selectedClientIds:i,isSyncedBranch:k}),!R&&(0,c.createElement)("tr",null,(0,c.createElement)("td",{className:"block-editor-list-view-placeholder"})),C&&P&&(0,c.createElement)(e,{parentId:f,blocks:g,selectBlock:r,showBlockMovers:o,level:a+1,path:S,listPosition:B+1,fixedListWindow:d,isBranchSelected:M,isBranchDragged:T||s,selectedClientIds:i,isExpanded:y,isSyncedBranch:k}))})),C&&(0,c.createElement)(f.__experimentalTreeGridRow,{level:a,setSize:A,positionInSet:A,isExpanded:!0},(0,c.createElement)(f.__experimentalTreeGridCell,null,(e=>(0,c.createElement)(Lk,{clientId:g,nestingLevel:a,blockCount:I,...e})))))}));function cS({listViewRef:e,blockDropTarget:t}){const{rootClientId:n,clientId:r,dropPosition:o}=t||{},[i,a]=(0,c.useMemo)((()=>{if(!e.current)return[];return[n?e.current.querySelector(`[data-block="${n}"]`):void 0,r?e.current.querySelector(`[data-block="${r}"]`):void 0]}),[n,r]),l=a||i,s=(0,b.isRTL)(),u=(0,c.useCallback)((e=>{if(!i)return 0;const t=i.querySelector(".block-editor-block-icon").getBoundingClientRect();return s?e.right-t.left:t.right-e.left}),[i,s]),p=(0,c.useCallback)(((e,t)=>{if(!l)return 0;let n=l.offsetWidth;const r=(0,el.getScrollContainer)(l,"horizontal"),o=l.ownerDocument,i=r===o.body||r===o.documentElement;if(r&&!i){const o=r.getBoundingClientRect(),i=(0,b.isRTL)()?o.right-e.right:e.left-o.left,a=r.clientWidth;if(a<n+i&&(n=a-i),!s&&e.left+t<o.left)return n-=o.left-e.left,n;if(s&&e.right-t>o.right)return n-=e.right-o.right,n}return n-t}),[s,l]),d=(0,c.useMemo)((()=>{if(!l)return{};const e=l.getBoundingClientRect(),t=u(e);return{width:p(e,t)}}),[u,p,l]),m=(0,c.useMemo)((()=>{if(!l||!("top"===o||"bottom"===o||"inside"===o))return;const e=l.ownerDocument;return{ownerDocument:e,getBoundingClientRect(){const t=l.getBoundingClientRect(),n=u(t);let r=s?t.left:t.left+n,i=0,a=0;const c=(0,el.getScrollContainer)(l,"horizontal"),d=c===e.body||c===e.documentElement;if(c&&!d){const e=c.getBoundingClientRect(),t=s?c.offsetWidth-c.clientWidth:0;r<e.left+t&&(r=e.left+t)}"top"===o?(i=t.top,a=t.top):(i=t.bottom,a=t.bottom);const f=p(t,n),m=a-i;return new window.DOMRect(r,i,f,m)}}}),[l,o,u,p,s]);return l?(0,c.createElement)(f.Popover,{animate:!1,anchor:m,focusOnMount:!1,className:"block-editor-list-view-drop-indicator",variant:"unstyled"},(0,c.createElement)("div",{style:d,className:"block-editor-list-view-drop-indicator__line"})):null}function uS(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,m.useDispatch)(zr),{getBlockName:r,getBlockParents:o,getBlockSelectionStart:i,getSelectedBlockClientIds:a,hasMultiSelection:s,hasSelectedBlock:u}=(0,m.useSelect)(zr),{getBlockType:p}=(0,m.useSelect)(l.store),d=(0,c.useCallback)((async(l,c,d,f)=>{if(!l?.shiftKey)return void n(c,f);l.preventDefault();const m="keydown"===l.type&&(l.keyCode===kp.UP||l.keyCode===kp.DOWN||l.keyCode===kp.HOME||l.keyCode===kp.END);if(!m&&!u()&&!s())return void n(c,null);const y=a(),g=[...o(c),c];m&&!y.some((e=>g.includes(e)))&&await e();let h=i(),v=c;m&&(u()||s()||(h=c),d&&(v=d));const _=o(h),k=o(v),{start:S,end:E}=function(e,t,n,r){const o=[...n,e],i=[...r,t],a=Math.min(o.length,i.length)-1;return{start:o[a],end:i[a]}}(h,v,_,k);await t(S,E,null);const w=a();if((l.keyCode===kp.HOME||l.keyCode===kp.END)&&w.length>1)return;const C=y.filter((e=>!w.includes(e)));let x;if(1===C.length){const e=p(r(C[0]))?.title;e&&(x=(0,b.sprintf)((0,b.__)("%s deselected."),e))}else C.length>1&&(x=(0,b.sprintf)((0,b.__)("%s blocks deselected."),C.length));x&&(0,Cn.speak)(x,"assertive")}),[e,r,p,o,i,a,s,u,t,n]);return{updateBlockSelection:d}}const pS=28;function dS(e,t){const n=e[t+1];return n&&n.isDraggedBlock?dS(e,t+1):n}const fS=["top","bottom"];function mS(e,t,n=!1){let r,o,i,a,l;for(let n=0;n<e.length;n++){const s=e[n];if(s.isDraggedBlock)continue;const c=s.element.getBoundingClientRect(),[u,p]=jy(t,c,fS),d=zy(t,c);if(void 0===i||u<i||d){i=u;const t=e.indexOf(s),n=e[t-1];if("top"===p&&n&&n.rootClientId===s.rootClientId&&!n.isDraggedBlock?(o=n,r="bottom",a=n.element.getBoundingClientRect(),l=t-1):(o=s,r=p,a=c,l=t),d)break}}if(!o)return;const s=function(e,t){const n=[];let r=e;for(;r;)n.push({...r}),r=t.find((e=>e.clientId===r.rootClientId));return n}(o,e),c="bottom"===r;if(c&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0&&o.isExpanded||function(e,t,n=1,r=!1){const o=r?t.right-n*pS:t.left+n*pS;return(r?e.x<o-pS:e.x>o+pS)&&e.y<t.bottom}(t,a,s.length,n))){const e=o.isExpanded?0:o.innerBlockCount||0;return{rootClientId:o.clientId,blockIndex:e,dropPosition:"inside"}}if(c&&o.rootClientId&&function(e,t,n=1,r=!1){const o=r?t.right-n*pS:t.left+n*pS;return r?e.x>o:e.x<o}(t,a,s.length,n)){const i=dS(e,l),c=o.nestingLevel,u=i?i.nestingLevel:1;if(c&&u){const p=function(e,t,n=1,r=!1){const o=r?t.right-n*pS:t.left+n*pS,i=r?o-e.x:e.x-o,a=Math.round(i/pS);return Math.abs(a)}(t,a,s.length,n),d=Math.max(Math.min(p,c-u),0);if(s[d]){let t=o.blockIndex;if(s[d].nestingLevel===i?.nestingLevel)t=i?.blockIndex;else for(let n=l;n>=0;n--){const r=e[n];if(r.rootClientId===s[d].rootClientId){t=r.blockIndex+1;break}}return{rootClientId:s[d].rootClientId,clientId:o.clientId,blockIndex:t,dropPosition:r}}}}if(!o.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+u,dropPosition:r}}function yS(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}function gS(){const{getBlockName:e}=(0,m.useSelect)(zr),{getBlockType:t}=(0,m.useSelect)(l.store),{createSuccessNotice:n}=(0,m.useDispatch)(jf.store);return(0,c.useCallback)(((r,o)=>{let i="";if(1===o.length){const n=o[0],a=t(e(n))?.title;i="copy"===r?(0,b.sprintf)((0,b.__)('Copied "%s" to clipboard.'),a):(0,b.sprintf)((0,b.__)('Moved "%s" to clipboard.'),a)}else i="copy"===r?(0,b.sprintf)((0,b._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):(0,b.sprintf)((0,b._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(i,{type:"snackbar"})}),[])}function hS(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:r,__unstableIsFullySelected:o,__unstableIsSelectionCollapsed:i,__unstableIsSelectionMergeable:a,__unstableGetSelectedBlocksWithPartialSelection:s,canInsertBlockType:c}=(0,m.useSelect)(zr),{flashBlock:u,removeBlocks:p,replaceBlocks:f,__unstableDeleteSelection:y,__unstableExpandSelection:g,insertBlocks:h}=(0,m.useDispatch)(zr),b=gS();return(0,d.useRefEffect)((d=>{function m(m){if(m.defaultPrevented)return;const v=t();if(0===v.length)return;if(!n()){const{target:e}=m,{ownerDocument:t}=e;if("copy"===m.type||"cut"===m.type?(0,el.documentHasUncollapsedSelection)(t):(0,el.documentHasSelection)(t))return}if(!d.contains(m.target.ownerDocument.activeElement))return;m.preventDefault();const _=a(),k=i()||o(),S=!k&&!_;if("copy"===m.type||"cut"===m.type)if(1===v.length&&u(v[0]),S)g();else{let t;if(b(m.type,v),k)t=e(v);else{const[n,r]=s();t=[n,...e(v.slice(1,v.length-1)),r]}const n=m.clipboardData.getData("__unstableWrapperBlockName");n&&(t=(0,l.createBlock)(n,JSON.parse(m.clipboardData.getData("__unstableWrapperBlockAttributes")),t));const r=(0,l.serialize)(t);m.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,el.__unstableStripHTML)(e).trim().replace(/\n\n+/g,"\n\n")}(r)),m.clipboardData.setData("text/html",r)}if("cut"===m.type)k&&!S?p(v):(m.target.ownerDocument.activeElement.contentEditable=!1,y());else if("paste"===m.type){const{__experimentalCanUserUseUnfilteredHTML:e}=r(),{plainText:t,html:n,files:o}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const r=(0,el.getFilesFromDataTransfer)(e);return r.length&&!yS(r,n)?{files:r}:{html:n,plainText:t,files:[]}}(m);let i=[];if(o.length){const e=(0,l.getBlockTransforms)("from");i=o.reduce(((t,n)=>{const r=(0,l.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return r&&t.push(r.transform([n])),t}),[]).flat()}else i=(0,l.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});if(1===v.length){const[e]=v;if(i.every((t=>c(t.name,e))))return void h(i,void 0,e)}f(v,i,i.length-1,-1)}}return d.ownerDocument.addEventListener("copy",m),d.ownerDocument.addEventListener("cut",m),d.ownerDocument.addEventListener("paste",m),()=>{d.ownerDocument.removeEventListener("copy",m),d.ownerDocument.removeEventListener("cut",m),d.ownerDocument.removeEventListener("paste",m)}}),[])}var bS=function({children:e}){return(0,c.createElement)("div",{ref:hS()},e)};const vS="align",_S="__experimentalBorder",kS="color",SS="customClassName",ES="typography.__experimentalFontFamily",wS="typography.fontSize",CS="layout",xS=[...["typography.lineHeight",wS,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",ES,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"],_S,kS,"spacing"];const IS={align:e=>(0,l.hasBlockSupport)(e,vS),borderColor:e=>function(e,t="any"){if("web"!==c.Platform.OS)return!1;const n=(0,l.getBlockSupport)(e,_S);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,l.getBlockSupport)(e,kS);return t&&!1!==t.background},textColor:e=>{const t=(0,l.getBlockSupport)(e,kS);return t&&!1!==t.text},gradient:e=>{const t=(0,l.getBlockSupport)(e,kS);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,l.hasBlockSupport)(e,SS,!0),fontFamily:e=>(0,l.hasBlockSupport)(e,ES),fontSize:e=>(0,l.hasBlockSupport)(e,wS),layout:e=>(0,l.hasBlockSupport)(e,CS),style:e=>xS.some((t=>(0,l.hasBlockSupport)(e,t)))};function AS(e,t){return Object.entries(IS).reduce(((n,[r,o])=>(o(e.name)&&o(t.name)&&(n[r]=e.attributes[r]),n)),{})}function BS(e,t,n){for(let r=0;r<Math.min(t.length,e.length);r+=1)n(e[r].clientId,AS(t[r],e[r])),BS(e[r].innerBlocks,t[r].innerBlocks,n)}function PS(){const e=(0,m.useRegistry)(),{updateBlockAttributes:t}=(0,m.useDispatch)(zr),{createSuccessNotice:n,createWarningNotice:r,createErrorNotice:o}=(0,m.useDispatch)(jf.store);return(0,c.useCallback)((async i=>{let a="";try{if(!window.navigator.clipboard)return void o((0,b.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});a=await window.navigator.clipboard.readText()}catch(e){return void o((0,b.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!a||!function(e){try{const t=(0,l.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(a))return void r((0,b.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const s=(0,l.parse)(a);if(1===s.length?e.batch((()=>{BS(i,i.map((()=>s[0])),t)})):e.batch((()=>{BS(i,s,t)})),1===i.length){const e=(0,l.getBlockType)(i[0].name)?.title;n((0,b.sprintf)((0,b.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,b.sprintf)((0,b.__)("Pasted styles to %d blocks."),i.length),{type:"snackbar"})}),[e.batch,t,n,r,o])}function TS({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:r,getBlockRootClientId:o,getBlocksByClientId:i,canMoveBlocks:a,canRemoveBlocks:s}=(0,m.useSelect)(zr),{getDefaultBlockName:c,getGroupingBlockName:u}=(0,m.useSelect)(l.store),p=i(e),d=o(e[0]),f=p.every((e=>!!e&&((0,l.hasBlockSupport)(e.name,"color")||(0,l.hasBlockSupport)(e.name,"typography")))),y=p.every((e=>!!e&&(0,l.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,d))),g=r(c(),d),h=a(e,d),b=s(e,d),{removeBlocks:v,replaceBlocks:_,duplicateBlocks:k,insertAfterBlock:S,insertBeforeBlock:E,flashBlock:w,setBlockMovingClientId:C,setNavigationMode:x,selectBlock:I}=(0,m.useDispatch)(zr),A=gS(),B=PS();return t({canCopyStyles:f,canDuplicate:y,canInsertDefaultBlock:g,canMove:h,canRemove:b,rootClientId:d,blocks:p,onDuplicate(){return k(e,n)},onRemove(){return v(e,n)},onInsertBefore(){const t=Array.isArray(e)?e[0]:t;E(t)},onInsertAfter(){const t=Array.isArray(e)?e[e.length-1]:t;S(t)},onMoveTo(){x(!0),I(e[0]),C(e[0])},onGroup(){if(!p.length)return;const t=u(),n=(0,l.switchToBlockType)(p,t);n&&_(e,n)},onUngroup(){if(!p.length)return;const t=p[0].innerBlocks;t.length&&_(e,t)},onCopy(){const e=p.map((({clientId:e})=>e));1===p.length&&w(e[0]),A("copy",e)},async onPasteStyles(){await B(p)}})}var OS=(0,d.compose)((0,m.withSelect)(((e,{clientId:t})=>{const n=e(zr).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}})),(0,m.withDispatch)(((e,{block:t})=>({onClick:()=>e(zr).replaceBlocks(t.clientId,(0,l.rawHandler)({HTML:(0,l.getBlockContent)(t)}))}))))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const r=(0,b.__)("Convert to Blocks");return(0,c.createElement)(f.MenuItem,{onClick:t},!n&&r)}));const{Fill:MS,Slot:RS}=(0,f.createSlotFill)("__unstableBlockSettingsMenuFirstItem");MS.Slot=RS;var NS=MS;const{clearTimeout:FS,setTimeout:LS}=window,DS=()=>{},US=200;function jS({ref:e,isFocused:t,debounceTimeout:n=US,onChange:r=DS}){const[o,i]=(0,c.useState)(!1),a=(0,c.useRef)(),l=t=>{e?.current&&i(t),r(t)},s=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},u=()=>{const e=a.current;e&&FS&&FS(e)};return(0,c.useEffect)((()=>()=>{l(!1),u()}),[]),{showMovers:o,debouncedShowMovers:e=>{e&&e.stopPropagation(),u(),o||l(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),u(),a.current=LS((()=>{s()&&l(!1)}),n)}}}function zS({ref:e,debounceTimeout:t=US,onChange:n=DS}){const[r,o]=(0,c.useState)(!1),{showMovers:i,debouncedShowMovers:a,debouncedHideMovers:l}=jS({ref:e,debounceTimeout:t,isFocused:r,onChange:n}),s=(0,c.useRef)(!1),u=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,c.useEffect)((()=>{const t=e.current,n=()=>{u()&&(o(!0),a())},r=()=>{u()||(o(!1),l())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",r,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",r))}}),[e,s,o,a,l]),{showMovers:i,gestures:{onMouseMove:a,onMouseLeave:l}}}const VS={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function GS({blocks:e,onCopy:t,label:n}){const r=(0,d.useCopyToClipboard)((()=>(0,l.serialize)(e)),t),o=e.length>1?(0,b.__)("Copy blocks"):(0,b.__)("Copy"),i=n||o;return(0,c.createElement)(f.MenuItem,{ref:r},i)}function HS({clientIds:e,__experimentalSelectBlock:t,children:n,__unstableDisplayLocation:r,...o}){const i=Array.isArray(e)?e:[e],a=i.length,s=i[0],{firstParentClientId:u,isDistractionFree:p,onlyBlock:y,parentBlockType:g,previousBlockClientId:h,selectedBlockClientIds:v}=(0,m.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockRootClientId:r,getPreviousBlockClientId:o,getSelectedBlockClientIds:i,getSettings:a,getBlockAttributes:c}=e(zr),{getActiveBlockVariation:u}=e(l.store),p=r(s),d=p&&n(p);return{firstParentClientId:p,isDistractionFree:a().isDistractionFree,onlyBlock:1===t(p),parentBlockType:p&&(u(d,c(p))||(0,l.getBlockType)(d)),previousBlockClientId:o(s),selectedBlockClientIds:i()}}),[s]),{getBlockOrder:_,getSelectedBlockClientIds:k}=(0,m.useSelect)(zr),S=(0,m.useSelect)((e=>{const{getShortcutRepresentation:t}=e(rd.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),E=(0,rd.__unstableUseShortcutEventMatch)(),{selectBlock:w,toggleBlockHighlight:C}=(0,m.useDispatch)(zr),x=v.length>0,I=(0,c.useCallback)((async e=>{if(t){const n=await e;n&&n[0]&&t(n[0],!1)}}),[t]),A=(0,c.useCallback)((()=>{if(t){let e=h||u;e||(e=_()[0]);const n=x&&0===k().length;t(e,n)}}),[t,h,u,_,x,k]),B=1===a?(0,b.__)("Delete"):(0,b.__)("Delete blocks"),P=(0,c.useRef)(),{gestures:T}=zS({ref:P,onChange(e){e&&p||C(u,e)}}),O=v?.includes(u);return(0,c.createElement)(TS,{clientIds:e,__experimentalUpdateSelection:!t},(({canCopyStyles:t,canDuplicate:i,canInsertDefaultBlock:l,canMove:p,canRemove:m,onDuplicate:h,onInsertAfter:v,onInsertBefore:_,onRemove:k,onCopy:C,onPasteStyles:x,onMoveTo:M,blocks:R})=>(0,c.createElement)(f.DropdownMenu,{icon:Om,label:(0,b.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:VS,noIcons:!0,menuProps:{onKeyDown(e){e.defaultPrevented||(E("core/block-editor/remove",e)&&m?(e.preventDefault(),A(k())):E("core/block-editor/duplicate",e)&&i?(e.preventDefault(),I(h())):E("core/block-editor/insert-after",e)&&l?(e.preventDefault(),v()):E("core/block-editor/insert-before",e)&&l&&(e.preventDefault(),_()))}},...o},(({onClose:o})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.MenuGroup,null,(0,c.createElement)(NS.Slot,{fillProps:{onClose:o}}),!O&&!!u&&(0,c.createElement)(f.MenuItem,{...T,ref:P,icon:(0,c.createElement)(Hp,{icon:g.icon}),onClick:()=>w(u)},(0,b.sprintf)((0,b.__)("Select parent block (%s)"),g.title)),1===a&&(0,c.createElement)(OS,{clientId:s}),(0,c.createElement)(GS,{blocks:R,onCopy:C}),i&&(0,c.createElement)(f.MenuItem,{onClick:(0,d.pipe)(o,h,I),shortcut:S.duplicate},(0,b.__)("Duplicate")),l&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.MenuItem,{onClick:(0,d.pipe)(o,_),shortcut:S.insertBefore},(0,b.__)("Add before")),(0,c.createElement)(f.MenuItem,{onClick:(0,d.pipe)(o,v),shortcut:S.insertAfter},(0,b.__)("Add after")))),t&&(0,c.createElement)(f.MenuGroup,null,(0,c.createElement)(GS,{blocks:R,onCopy:C,label:(0,b.__)("Copy styles")}),(0,c.createElement)(f.MenuItem,{onClick:x},(0,b.__)("Paste styles"))),(0,c.createElement)(O_.Slot,{fillProps:{onClose:o,canMove:p,onMoveTo:M,onlyBlock:y,count:a,firstBlockClientId:s},clientIds:e,__unstableDisplayLocation:r}),"function"==typeof n?n({onClose:o}):c.Children.map((e=>(0,c.cloneElement)(e,{onClose:o}))),m&&(0,c.createElement)(f.MenuGroup,null,(0,c.createElement)(f.MenuItem,{onClick:(0,d.pipe)(o,k,A),shortcut:S.remove},B)))))))}var $S=HS;const WS=(e,t)=>Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;const KS=(0,c.forwardRef)((function e({id:t,blocks:n,dropZoneElement:r,showBlockMovers:o=!1,isExpanded:i=!1,showAppender:a=!1,blockSettingsMenu:l=HS,rootClientId:s,description:u,onSelect:p,additionalBlockContent:y},g){n&&H()("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const h=(0,d.useInstanceId)(e),{clientIdsTree:v,draggedClientIds:_,selectedClientIds:k}=function({blocks:e,rootClientId:t}){return(0,m.useSelect)((n=>{const{getDraggedBlockClientIds:r,getSelectedBlockClientIds:o,getEnabledClientIdsTree:i}=Ur(n(zr));return{selectedClientIds:o(),draggedClientIds:r(),clientIdsTree:null!=e?e:i(t)}}),[e,t])}({blocks:n,rootClientId:s}),{getBlock:S}=(0,m.useSelect)(zr),{visibleBlockCount:E,shouldShowInnerBlocks:w}=(0,m.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n,__unstableGetEditorMode:r}=e(zr),o=_?.length>0?n(_).length+1:0;return{visibleBlockCount:t()-o,shouldShowInnerBlocks:"zoom-out"!==r()}}),[_]),{updateBlockSelection:C}=uS(),[x,I]=(0,c.useReducer)(WS,{}),{ref:A,target:B}=function({dropZoneElement:e}){const{getBlockRootClientId:t,getBlockIndex:n,getBlockCount:r,getDraggedBlockClientIds:o,canInsertBlocks:i}=(0,m.useSelect)(zr),[a,l]=(0,c.useState)(),{rootClientId:s,blockIndex:u}=a||{},p=Uy(s,u),f=(0,b.isRTL)(),y=o(),g=(0,d.useThrottle)((0,c.useCallback)(((e,o)=>{const a={x:e.clientX,y:e.clientY},s=!!y?.length,c=mS(Array.from(o.querySelectorAll("[data-block]")).map((e=>{const o=e.dataset.block,a="true"===e.dataset.expanded,l=e.classList.contains("is-dragging"),c=parseInt(e.getAttribute("aria-level"),10),u=t(o);return{clientId:o,isExpanded:a,rootClientId:u,blockIndex:n(o),element:e,nestingLevel:c||void 0,isDraggedBlock:!!s&&l,innerBlockCount:r(o),canInsertDraggedBlocksAsSibling:!s||i(y,u),canInsertDraggedBlocksAsChild:!s||i(y,o)}})),a,f);c&&l(c)}),[i,y,r,n,t,f]),200);return{ref:(0,d.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){a&&p(e)},onDragLeave(){g.cancel(),l(null)},onDragOver(e){g(e,e.currentTarget)},onDragEnd(){g.cancel(),l(null)}}),target:a}}({dropZoneElement:r}),P=(0,c.useRef)(),T=(0,d.useMergeRefs)([P,A,g]),O=(0,c.useRef)(!1),[M,R]=(0,c.useState)(null),{setSelectedTreeId:N}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,r]=(0,c.useState)(null),{selectedBlockParentClientIds:o}=(0,m.useSelect)((t=>{const{getBlockParents:n}=t(zr);return{selectedBlockParentClientIds:n(e,!1)}}),[e]),i=Array.isArray(o)&&o.length?o:null;return(0,c.useEffect)((()=>{n!==e&&i&&t({type:"expand",clientIds:o})}),[e]),{setSelectedTreeId:r}}({firstSelectedBlockClientId:k[0],setExpandedState:I}),F=(0,c.useCallback)(((e,t,n)=>{C(e,t,null,n),N(t),p&&p(S(t))}),[N,C,p,S]);(0,c.useEffect)((()=>{O.current=!0}),[]);const[L]=(0,d.__experimentalUseFixedWindowList)(P,36,E,{useWindowing:!0,windowOverscan:40}),D=(0,c.useCallback)((e=>{e&&I({type:"expand",clientIds:[e]})}),[I]),U=(0,c.useCallback)((e=>{e&&I({type:"collapse",clientIds:[e]})}),[I]),j=(0,c.useCallback)((e=>{D(e?.dataset?.block)}),[D]),z=(0,c.useCallback)((e=>{U(e?.dataset?.block)}),[U]),V=(0,c.useCallback)(((e,t,n)=>{e.shiftKey&&C(e,t?.dataset?.block,n?.dataset?.block)}),[C]),G=(0,c.useMemo)((()=>({isTreeGridMounted:O.current,draggedClientIds:_,expandedState:x,expand:D,collapse:U,BlockSettingsMenu:l,listViewInstanceId:h,AdditionalBlockContent:y,insertedBlock:M,setInsertedBlock:R,treeGridElementRef:P})),[_,x,D,U,l,h,y,M,R]);return v.length||a?(0,c.createElement)(m.AsyncModeProvider,{value:!0},(0,c.createElement)(cS,{listViewRef:P,blockDropTarget:B}),(0,c.createElement)(f.__experimentalTreeGrid,{id:t,className:"block-editor-list-view-tree","aria-label":(0,b.__)("Block navigation structure"),ref:T,onCollapseRow:z,onExpandRow:j,onFocusRow:V,applicationAriaLabel:(0,b.__)("Block navigation structure"),"aria-description":u},(0,c.createElement)(Rk.Provider,{value:G},(0,c.createElement)(sS,{blocks:v,parentId:s,selectBlock:F,showBlockMovers:o,fixedListWindow:L,selectedClientIds:k,isExpanded:i,shouldShowInnerBlocks:w,showAppender:a})))):null}));var qS=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(KS,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function JS({isEnabled:e,onToggle:t,isOpen:n,innerRef:r,...o}){return(0,c.createElement)(f.Button,{...o,ref:r,icon:Mk,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,b.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}var ZS=(0,c.forwardRef)((function({isDisabled:e,...t},n){H()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const r=(0,m.useSelect)((e=>!!e(zr).getBlockCount()),[])&&!e;return(0,c.createElement)(f.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:o})=>(0,c.createElement)(JS,{...t,innerRef:n,isOpen:e,onToggle:o,isEnabled:r}),renderContent:()=>(0,c.createElement)("div",{className:"block-editor-block-navigation__container"},(0,c.createElement)("p",{className:"block-editor-block-navigation__label"},(0,b.__)("List view")),(0,c.createElement)(qS,null))})}));function YS(e,t,n){const r=new(ub())(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}function QS(e){return e?.find((e=>e.isDefault))}function XS({genericPreviewBlock:e,style:t,className:n,activeStyle:r}){const o=(0,l.getBlockType)(e.name)?.example,i=YS(n,r,t),a=(0,c.useMemo)((()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:i+" block-editor-block-styles__block-preview-container"},example:o})),[e,i]);return(0,c.createElement)(Cf,{item:a})}function eE({clientId:e,onSwitch:t}){const{styles:n,block:r,blockType:o,className:i}=(0,m.useSelect)((t=>{const{getBlock:n}=t(zr),r=n(e);if(!r)return{};const o=(0,l.getBlockType)(r.name),{getBlockStyles:i}=t(l.store);return{block:r,blockType:o,styles:i(r.name),className:r.attributes.className||""}}),[e]),{updateBlockAttributes:a}=(0,m.useDispatch)(zr),s=function(e){return e&&0!==e.length?QS(e)?e:[{name:"default",label:(0,b._x)("Default","block style"),isDefault:!0},...e]:[]}(n),u=function(e,t){for(const n of new(ub())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),r=e?.find((({name:e})=>e===t));if(r)return r}return QS(e)}(s,i),p=function(e,t){return(0,c.useMemo)((()=>{const n=t?.example,r=t?.name;return n&&r?(0,l.getBlockFromExample)(r,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,l.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(r,o);return{onSelect:n=>{const r=YS(i,u,n);a(e,{className:r}),t()},stylesToRender:s,activeStyle:u,genericPreviewBlock:p,className:i}}const tE=()=>{};function nE({clientId:e,onSwitch:t=tE,onHoverClassName:n=tE}){const{onSelect:r,stylesToRender:o,activeStyle:i,genericPreviewBlock:a,className:l}=eE({clientId:e,onSwitch:t}),[s,u]=(0,c.useState)(null),m=(0,d.useViewportMatch)("medium","<");if(!o||0===o.length)return null;const y=(0,d.debounce)(u,250),g=e=>{var t;s!==e?(y(e),n(null!==(t=e?.name)&&void 0!==t?t:null)):y.cancel()};return(0,c.createElement)("div",{className:"block-editor-block-styles"},(0,c.createElement)("div",{className:"block-editor-block-styles__variants"},o.map((e=>{const t=e.isDefault?(0,b.__)("Default"):e.label||e.name;return(0,c.createElement)(f.Button,{className:p()("block-editor-block-styles__item",{"is-active":i.name===e.name}),key:e.name,variant:"secondary",label:t,onMouseEnter:()=>g(e),onFocus:()=>g(e),onMouseLeave:()=>g(null),onBlur:()=>g(null),onClick:()=>(e=>{r(e),n(null),u(null),y.cancel()})(e),"aria-current":i.name===e.name},(0,c.createElement)(f.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text"},t))}))),s&&!m&&(0,c.createElement)(f.Popover,{placement:"left-start",offset:20,focusOnMount:!1},(0,c.createElement)("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>g(null)},(0,c.createElement)(XS,{activeStyle:i,className:l,genericPreviewBlock:a,style:s}))))}var rE=nE;nE.Slot=()=>(H()("BlockStyles.Slot",{version:"6.4",since:"6.2"}),null);const oE={0:(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),1:(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})),2:(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})),3:(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})),4:(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})),5:(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})),6:(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"}))};function iE({level:e}){var t;return null!==(t=oE[e])&&void 0!==t?t:null}const aE=[1,2,3,4,5,6],lE={className:"block-library-heading-level-dropdown"};function sE({options:e=aE,value:t,onChange:n}){return(0,c.createElement)(f.ToolbarDropdownMenu,{popoverProps:lE,icon:(0,c.createElement)(iE,{level:t}),label:(0,b.__)("Change level"),controls:e.map((e=>{{const r=e===t;return{icon:(0,c.createElement)(iE,{level:e,isPressed:r}),label:0===e?(0,b.__)("Paragraph"):(0,b.sprintf)((0,b.__)("Heading %d"),e),isActive:r,onClick(){n(e)},role:"menuitemradio"}}}))})}var cE=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var uE=function({icon:e=cE,label:t=(0,b.__)("Choose variation"),instructions:n=(0,b.__)("Select a variation to start with."),variations:r,onSelect:o,allowSkip:i}){const a=p()("block-editor-block-variation-picker",{"has-many-variations":r.length>4});return(0,c.createElement)(f.Placeholder,{icon:e,label:t,instructions:n,className:a},(0,c.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,b.__)("Block variations")},r.map((e=>(0,c.createElement)("li",{key:e.name},(0,c.createElement)(f.Button,{variant:"secondary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>o(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,c.createElement)("span",{className:"block-editor-block-variation-picker__variation-label"},e.title))))),i&&(0,c.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,c.createElement)(f.Button,{variant:"link",onClick:()=>o()},(0,b.__)("Skip"))))};var pE=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"}));const dE="carousel",fE="grid",mE=({onBlockPatternSelect:e})=>(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},(0,c.createElement)(f.Button,{variant:"primary",onClick:e},(0,b.__)("Choose"))),yE=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:r})=>(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},(0,c.createElement)(f.Button,{icon:Vp,label:(0,b.__)("Previous pattern"),onClick:e,disabled:0===n}),(0,c.createElement)(f.Button,{icon:zp,label:(0,b.__)("Next pattern"),onClick:t,disabled:n===r-1}));var gE=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:r,activeSlide:o,totalSlides:i,onBlockPatternSelect:a})=>{const l=e===dE,s=(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},(0,c.createElement)(f.Button,{icon:_a,label:(0,b.__)("Carousel view"),onClick:()=>t(dE),isPressed:l}),(0,c.createElement)(f.Button,{icon:pE,label:(0,b.__)("Grid view"),onClick:()=>t(fE),isPressed:e===fE}));return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},l&&(0,c.createElement)(yE,{handlePrevious:n,handleNext:r,activeSlide:o,totalSlides:i}),s,l&&(0,c.createElement)(mE,{onBlockPatternSelect:a}))};var hE=function(e,t,n){return(0,m.useSelect)((r=>{const{getBlockRootClientId:o,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:a}=r(zr),l=o(e);return n?a(l).filter(n):i(t,l)}),[e,t,n])};const bE=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:r,showTitles:o})=>{const i=(0,f.__unstableUseCompositeState)(),a="block-editor-block-pattern-setup__container";if(e===dE){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__carousel"},(0,c.createElement)("div",{className:a},(0,c.createElement)("ul",{className:"carousel-container"},n.map(((t,n)=>(0,c.createElement)(_E,{className:e.get(n)||"",key:t.name,pattern:t}))))))}return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__grid"},(0,c.createElement)(f.__unstableComposite,{...i,role:"listbox",className:a,"aria-label":(0,b.__)("Patterns list")},n.map((e=>(0,c.createElement)(vE,{key:e.name,pattern:e,onSelect:r,composite:i,showTitles:o})))))};function vE({pattern:e,onSelect:t,composite:n,showTitles:r}){const o="block-editor-block-pattern-setup-list",{blocks:i,description:a,viewportWidth:l=700}=e,s=(0,d.useInstanceId)(vE,`${o}__item-description`);return(0,c.createElement)("div",{className:`${o}__list-item`,"aria-label":e.title,"aria-describedby":e.description?s:void 0},(0,c.createElement)(f.__unstableCompositeItem,{role:"option",as:"div",...n,className:`${o}__item`,onClick:()=>t(i)},(0,c.createElement)(Ef,{blocks:i,viewportWidth:l}),r&&(0,c.createElement)("div",{className:`${o}__item-title`},e.title),!!a&&(0,c.createElement)(f.VisuallyHidden,{id:s},a)))}function _E({className:e,pattern:t,minHeight:n}){const{blocks:r,title:o,description:i}=t,a=(0,d.useInstanceId)(_E,"block-editor-block-pattern-setup-list__item-description");return(0,c.createElement)("li",{className:`pattern-slide ${e}`,"aria-label":o,"aria-describedby":i?a:void 0},(0,c.createElement)(Ef,{blocks:r,minHeight:n}),!!i&&(0,c.createElement)(f.VisuallyHidden,{id:a},i))}var kE=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:r,initialViewMode:o=dE,showTitles:i=!1})=>{const[a,s]=(0,c.useState)(o),[u,p]=(0,c.useState)(0),{replaceBlock:d}=(0,m.useDispatch)(zr),f=hE(e,t,n);if(!f?.length)return null;const y=r||(t=>{const n=t.map((e=>(0,l.cloneBlock)(e)));d(e,n)});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:`block-editor-block-pattern-setup view-mode-${a}`},(0,c.createElement)(bE,{viewMode:a,activeSlide:u,patterns:f,onBlockPatternSelect:y,showTitles:i}),(0,c.createElement)(gE,{viewMode:a,setViewMode:s,activeSlide:u,totalSlides:f.length,handleNext:()=>{p((e=>e+1))},handlePrevious:()=>{p((e=>e-1))},onBlockPatternSelect:()=>{y(f[u].blocks)}})))};function SE({className:e,onSelectVariation:t,selectedValue:n,variations:r}){return(0,c.createElement)("fieldset",{className:e},(0,c.createElement)(f.VisuallyHidden,{as:"legend"},(0,b.__)("Transform to variation")),r.map((e=>(0,c.createElement)(f.Button,{key:e.name,icon:(0,c.createElement)(Hp,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,b.sprintf)((0,b.__)("Transform to %s"),e.title),onClick:()=>t(e.name),"aria-label":e.title,showTooltip:!0}))))}function EE({className:e,onSelectVariation:t,selectedValue:n,variations:r}){const o=r.map((({name:e,title:t,description:n})=>({value:e,label:t,info:n})));return(0,c.createElement)(f.DropdownMenu,{className:e,label:(0,b.__)("Transform to variation"),text:(0,b.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:Vk,toggleProps:{iconPosition:"right"}},(()=>(0,c.createElement)("div",{className:`${e}__container`},(0,c.createElement)(f.MenuGroup,null,(0,c.createElement)(f.MenuItemsChoice,{choices:o,value:n,onSelect:t})))))}var wE=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,m.useDispatch)(zr),{activeBlockVariation:n,variations:r}=(0,m.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:r}=t(l.store),{getBlockName:o,getBlockAttributes:i}=t(zr),a=e&&o(e);return{activeBlockVariation:n(a,i(e)),variations:a&&r(a,"transform")}}),[e]),o=n?.name,i=(0,c.useMemo)((()=>{const e=new Set;return!!r&&(r.forEach((t=>{t.icon&&e.add(t.icon?.src||t.icon)})),e.size===r.length)}),[r]);if(!r?.length)return null;const a=i?SE:EE;return(0,c.createElement)(a,{className:"block-editor-block-variation-transforms",onSelectVariation:n=>{t(e,{...r.find((({name:e})=>e===n)).attributes})},selectedValue:o,variations:r})},CE=(0,d.createHigherOrderComponent)((e=>t=>{const n=Yo("color.palette"),r=!Yo("color.custom"),o=void 0===t.colors?n:t.colors,i=void 0===t.disableCustomColors?r:t.disableCustomColors,a=o&&o.length>0||!i;return(0,c.createElement)(e,{...t,colors:o,disableCustomColors:i,hasColorsToChoose:a})}),"withColorContext"),xE=CE(f.ColorPalette);function IE({onChange:e,value:t,...n}){return(0,c.createElement)(Qg,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var AE=window.wp.date;const BE=new Date(2022,0,25);function PE({format:e,defaultFormat:t,onChange:n}){return(0,c.createElement)("fieldset",{className:"block-editor-date-format-picker"},(0,c.createElement)(f.VisuallyHidden,{as:"legend"},(0,b.__)("Date format")),(0,c.createElement)(f.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Default format"),help:`${(0,b.__)("Example:")}  ${(0,AE.dateI18n)(t,BE)}`,checked:!e,onChange:e=>n(e?null:t)}),e&&(0,c.createElement)(TE,{format:e,onChange:n}))}function TE({format:e,onChange:t}){var n;const r=[...new Set(["Y-m-d",(0,b._x)("n/j/Y","short date format"),(0,b._x)("n/j/Y g:i A","short date format with time"),(0,b._x)("M j, Y","medium date format"),(0,b._x)("M j, Y g:i A","medium date format with time"),(0,b._x)("F j, Y","long date format"),(0,b._x)("M j","short date format without the year")])],o=r.map(((e,t)=>({key:`suggested-${t}`,name:(0,AE.dateI18n)(e,BE),format:e}))),i={key:"custom",name:(0,b.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",__experimentalHint:(0,b.__)("Enter your own date format")},[a,l]=(0,c.useState)((()=>!!e&&!r.includes(e)));return(0,c.createElement)(f.__experimentalVStack,null,(0,c.createElement)(f.CustomSelectControl,{__nextUnconstrainedWidth:!0,label:(0,b.__)("Choose a format"),options:[...o,i],value:a?i:null!==(n=o.find((t=>t.format===e)))&&void 0!==n?n:i,onChange:({selectedItem:e})=>{e===i?l(!0):(l(!1),t(e.format))}}),a&&(0,c.createElement)(f.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Custom format"),hideLabelFromVision:!0,help:(0,c.createInterpolateElement)((0,b.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,c.createElement)(f.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:e=>t(e)}))}const OE=({setting:e,children:t,panelId:n,...r})=>(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...r,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter},t),ME=({colorValue:e,label:t})=>(0,c.createElement)(f.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(f.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,c.createElement)(f.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t)),RE=e=>({onToggle:t,isOpen:n})=>{const{colorValue:r,label:o}=e,i={onClick:t,className:p()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n};return(0,c.createElement)(f.Button,{...i},(0,c.createElement)(ME,{colorValue:r,label:o}))};function NE({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:r,gradients:o,settings:i,__experimentalIsRenderedInSidebar:a,...l}){let s;return a&&(s={placement:"left-start",offset:36,shift:!0}),(0,c.createElement)(c.Fragment,null,i.map(((i,u)=>{var p;const d={clearable:!1,colorValue:i.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:r,gradientValue:i.gradientValue,gradients:o,label:i.label,onColorChange:i.onColorChange,onGradientChange:i.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:a,...i},m={colorValue:null!==(p=i.gradientValue)&&void 0!==p?p:i.colorValue,label:i.label};return i&&(0,c.createElement)(OE,{key:u,setting:i,...l},(0,c.createElement)(f.Dropdown,{popoverProps:s,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:RE(m),renderContent:()=>(0,c.createElement)(f.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,c.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},(0,c.createElement)(Qg,{...d})))}))})))}const FE=["colors","disableCustomColors","gradients","disableCustomGradients"],LE=({className:e,colors:t,gradients:n,disableCustomColors:r,disableCustomGradients:o,children:i,settings:a,title:l,showTitle:s=!0,__experimentalIsRenderedInSidebar:u,enableAlpha:y})=>{const g=(0,d.useInstanceId)(LE),{batch:h}=(0,m.useRegistry)();return t&&0!==t.length||n&&0!==n.length||!r||!o||!a?.every((e=>(!e.colors||0===e.colors.length)&&(!e.gradients||0===e.gradients.length)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,c.createElement)(f.__experimentalToolsPanel,{className:p()("block-editor-panel-color-gradient-settings",e),label:s?l:void 0,resetAll:()=>{h((()=>{a.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:r})=>{e?n():t&&r()}))}))},panelId:g,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,c.createElement)(NE,{settings:a,panelId:g,colors:t,gradients:n,disableCustomColors:r,disableCustomGradients:o,__experimentalIsRenderedInSidebar:u,enableAlpha:y}),!!i&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.__experimentalSpacer,{marginY:4})," ",i)):null},DE=e=>{const t=ig();return(0,c.createElement)(LE,{...t,...e})};var UE=e=>FE.every((t=>e.hasOwnProperty(t)))?(0,c.createElement)(LE,{...e}):(0,c.createElement)(DE,{...e});const jE=(0,c.createContext)({}),zE=()=>(0,c.useContext)(jE);function VE({id:e,url:t,naturalWidth:n,naturalHeight:r,onFinishEditing:o,onSaveImage:i,children:a}){const l=function({url:e,naturalWidth:t,naturalHeight:n}){const[r,o]=(0,c.useState)(),[i,a]=(0,c.useState)(),[l,u]=(0,c.useState)({x:0,y:0}),[p,d]=(0,c.useState)(100),[f,m]=(0,c.useState)(0),y=t/n,[g,h]=(0,c.useState)(y),b=(0,c.useCallback)((()=>{const t=(f+90)%360;let n=y;if(f%180==90&&(n=1/y),0===t)return o(),m(t),h(y),void u({x:-l.y*n,y:l.x*n});const r=new window.Image;r.src=e,r.onload=function(e){const r=document.createElement("canvas");let i=0,a=0;t%180?(r.width=e.target.height,r.height=e.target.width):(r.width=e.target.width,r.height=e.target.height),90!==t&&180!==t||(i=r.width),270!==t&&180!==t||(a=r.height);const s=r.getContext("2d");s.translate(i,a),s.rotate(t*Math.PI/180),s.drawImage(e.target,0,0),r.toBlob((e=>{o(URL.createObjectURL(e)),m(t),h(r.width/r.height),u({x:-l.y*n,y:l.x*n})}))};const i=(0,s.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof i&&(r.crossOrigin=i)}),[f,y]);return(0,c.useMemo)((()=>({editedUrl:r,setEditedUrl:o,crop:i,setCrop:a,position:l,setPosition:u,zoom:p,setZoom:d,rotation:f,setRotation:m,rotateClockwise:b,aspect:g,setAspect:h,defaultAspect:y})),[r,i,l,p,f,b,g,y])}({url:t,naturalWidth:n,naturalHeight:r}),u=function({crop:e,rotation:t,height:n,width:r,aspect:o,url:i,id:a,onSaveImage:l,onFinishEditing:s}){const{createErrorNotice:u}=(0,m.useDispatch)(jf.store),[p,d]=(0,c.useState)(!1),f=(0,c.useCallback)((()=>{d(!1),s()}),[d,s]),y=(0,c.useCallback)((()=>{d(!0);const n=[];t>0&&n.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&n.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),mk()({path:`/wp/v2/media/${a}/edit`,method:"POST",data:{src:i,modifiers:n}}).then((e=>{l({id:e.id,url:e.source_url})})).catch((e=>{u((0,b.sprintf)((0,b.__)("Could not edit image. %s"),(0,el.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{d(!1),s()}))}),[d,e,t,n,r,o,i,l,u,d,s]);return(0,c.useMemo)((()=>({isInProgress:p,apply:y,cancel:f})),[p,y,f])}({id:e,url:t,onSaveImage:i,onFinishEditing:o,...l}),p=(0,c.useMemo)((()=>({...l,...u})),[l,u]);return(0,c.createElement)(jE.Provider,{value:p},a)}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var GE=function(e,t){return GE=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])},GE(e,t)};var HE=function(){return HE=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},HE.apply(this,arguments)};Object.create;Object.create;var $E=n(7970),WE=n.n($E);function KE(e,t,n,r,o){void 0===o&&(o=0);var i=ew(t.width,t.height,o),a=i.width,l=i.height;return{x:qE(e.x,a,n.width,r),y:qE(e.y,l,n.height,r)}}function qE(e,t,n,r){var o=t*r/2-n/2;return tw(e,-o,o)}function JE(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function ZE(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function YE(e,t){return Math.min(e,Math.max(0,t))}function QE(e,t){return t}function XE(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ew(e,t,n){var r=n*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function tw(e,t,n){return Math.min(Math.max(e,t),n)}function nw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var rw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=Sl().createRef(),n.videoRef=Sl().createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,r,o,i){var a=ew(t.width,t.height,n),l=tw(r.width/a.width*(100/e.width),o,i);return{crop:{x:l*a.width/2-r.width/2-a.width*l*(e.x/100),y:l*a.height/2-r.height/2-a.height*l*(e.y/100)},zoom:l}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=t.crop,o=t.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}else if(n.props.initialCroppedAreaPixels){var i=function(e,t,n,r,o,i){void 0===n&&(n=0);var a=ew(t.naturalWidth,t.naturalHeight,n),l=tw(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),o,i),s=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*s,y:((a.height-e.height)/2-e.y)*s},zoom:l}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);r=i.crop,o=i.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}},n.computeSizes=function(){var e,t,r,o,i,a,l=n.imageRef.current||n.videoRef.current;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var s=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(r=n.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(o=n.videoRef.current)||void 0===o?void 0:o.videoHeight)||0,p=c/u,d=void 0;if(l.offsetWidth<c||l.offsetHeight<u)switch(n.props.objectFit){default:case"contain":d=s>p?{width:n.containerRect.height*p,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/p};break;case"horizontal-cover":d={width:n.containerRect.width,height:n.containerRect.width/p};break;case"vertical-cover":d={width:n.containerRect.height*p,height:n.containerRect.height};break;case"auto-cover":d=c>u?{width:n.containerRect.width,height:n.containerRect.width/p}:{width:n.containerRect.height*p,height:n.containerRect.height}}else d={width:l.offsetWidth,height:l.offsetHeight};n.mediaSize=HE(HE({},d),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var f=n.props.cropSize?n.props.cropSize:function(e,t,n,r,o,i){void 0===i&&(i=0);var a=ew(e,t,i),l=a.width,s=a.height,c=Math.min(l,n),u=Math.min(s,r);return c>u*o?{width:u*o,height:u}:{width:c,height:c/o}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===f.height&&(null===(a=n.state.cropSize)||void 0===a?void 0:a.width)===f.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(f),n.setState({cropSize:f},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(f),f}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var r=t.getMousePoint(e),o=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(o,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,r,o=e.x,i=e.y;n.dragStartPosition={x:o,y:i},n.dragStartCrop=HE({},n.props.crop),null===(r=(t=n.props).onInteractionStart)||void 0===r||r.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==r){var e=t-n.dragStartPosition.x,o=r-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+o},a=n.props.restrictPosition?KE(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(a)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),o=WE()(e).pixelY,i=n.props.zoom-o*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(r-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,o=n.props,i=o.crop,a=o.zoom;return{x:(t+i.x)/a,y:(r+i.y)/a}},n.setNewZoom=function(e,t,r){var o=(void 0===r?{}:r).shouldUpdatePosition,i=void 0===o||o;if(n.state.cropSize&&n.props.onZoomChange){var a=tw(e,n.props.minZoom,n.props.maxZoom);if(i){var l=n.getPointOnContainer(t),s=n.getPointOnMedia(l),c={x:s.x*a-l.x,y:s.y*a-l.y},u=n.props.restrictPosition?KE(c,n.mediaSize,n.state.cropSize,a,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(a)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,r,o,i,a){void 0===i&&(i=0),void 0===a&&(a=!0);var l=a?YE:QE,s=ew(t.width,t.height,i),c=ew(t.naturalWidth,t.naturalHeight,i),u={x:l(100,((s.width-n.width/o)/2-e.x/o)/s.width*100),y:l(100,((s.height-n.height/o)/2-e.y/o)/s.height*100),width:l(100,n.width/s.width*100/o),height:l(100,n.height/s.height*100/o)},p=Math.round(l(c.width,u.width*c.width/100)),d=Math.round(l(c.height,u.height*c.height/100)),f=c.width>=c.height*r?{width:Math.round(d*r),height:d}:{width:p,height:Math.round(p/r)};return{croppedAreaPercentages:u,croppedAreaPixels:HE(HE({},f),{x:Math.round(l(c.width-f.width,u.x*c.width/100)),y:Math.round(l(c.height-f.height,u.y*c.height/100))})}}(n.props.restrictPosition?KE(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?KE(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}GE(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,r,o,i,a,l,s,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)?this.computeSizes():(null===(i=e.crop)||void 0===i?void 0:i.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(s=this.props.crop)||void 0===s?void 0:s.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=JE(n,r),this.lastPinchRotation=ZE(n,r),this.onDragStart(XE(n,r))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),i=XE(r,o);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=JE(r,o),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var a=ZE(r,o),l=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(l),n.lastPinchRotation=a}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,o=t.mediaProps,i=t.transform,a=t.crop,l=a.x,s=a.y,c=t.rotation,u=t.zoom,p=t.cropShape,d=t.showGrid,f=t.style,m=f.containerStyle,y=f.cropAreaStyle,g=f.mediaStyle,h=t.classes,b=h.containerClassName,v=h.cropAreaClassName,_=h.mediaClassName,k=t.objectFit;return Sl().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:nw("reactEasyCrop_Container",b)},n?Sl().createElement("img",HE({alt:"",className:nw("reactEasyCrop_Image","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical","auto-cover"===k&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),_)},o,{src:n,ref:this.imageRef,style:HE(HE({},g),{transform:i||"translate(".concat(l,"px, ").concat(s,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):r&&Sl().createElement("video",HE({autoPlay:!0,loop:!0,muted:!0,className:nw("reactEasyCrop_Video","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical","auto-cover"===k&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),_)},o,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:HE(HE({},g),{transform:i||"translate(".concat(l,"px, ").concat(s,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map((function(e){return Sl().createElement("source",HE({key:e.src},e))}))),this.state.cropSize&&Sl().createElement("div",{style:HE(HE({},y),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:nw("reactEasyCrop_CropArea","round"===p&&"reactEasyCrop_CropAreaRound",d&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Sl().Component);const ow=100,iw=300,aw={placement:"bottom-start"};function lw({url:e,width:t,height:n,clientWidth:r,naturalHeight:o,naturalWidth:i,borderProps:a}){const{isInProgress:l,editedUrl:s,position:u,zoom:d,aspect:m,setPosition:y,setCrop:g,setZoom:h,rotation:b}=zE();let v=n||r*o/i;return b%180==90&&(v=r*i/o),(0,c.createElement)("div",{className:p()("wp-block-image__crop-area",a?.className,{"is-applying":l}),style:{...a?.style,width:t||r,height:v}},(0,c.createElement)(rw,{image:s||e,disabled:l,minZoom:ow/100,maxZoom:iw/100,crop:u,zoom:d/100,aspect:m,onCropChange:e=>{y(e)},onCropComplete:e=>{g(e)},onZoomChange:e=>{h(100*e)}}),l&&(0,c.createElement)(f.Spinner,null))}var sw=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));function cw(){const{isInProgress:e,zoom:t,setZoom:n}=zE();return(0,c.createElement)(f.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:aw,renderToggle:({isOpen:t,onToggle:n})=>(0,c.createElement)(f.ToolbarButton,{icon:sw,label:(0,b.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>(0,c.createElement)(f.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Zoom"),min:ow,max:iw,value:Math.round(t),onChange:n})})}var uw=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function pw({aspectRatios:e,isDisabled:t,label:n,onClick:r,value:o}){return(0,c.createElement)(f.MenuGroup,{label:n},e.map((({title:e,aspect:n})=>(0,c.createElement)(f.MenuItem,{key:n,disabled:t,onClick:()=>{r(n)},role:"menuitemradio",isSelected:n===o,icon:n===o?Rb:void 0},e))))}function dw({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:r,defaultAspect:o}=zE();return(0,c.createElement)(f.DropdownMenu,{icon:uw,label:(0,b.__)("Aspect Ratio"),popoverProps:aw,toggleProps:e,className:"wp-block-image__aspect-ratio"},(({onClose:e})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(pw,{isDisabled:t,onClick:t=>{r(t),e()},value:n,aspectRatios:[{title:(0,b.__)("Original"),aspect:o},{title:(0,b.__)("Square"),aspect:1}]}),(0,c.createElement)(pw,{label:(0,b.__)("Landscape"),isDisabled:t,onClick:t=>{r(t),e()},value:n,aspectRatios:[{title:(0,b.__)("16:10"),aspect:1.6},{title:(0,b.__)("16:9"),aspect:16/9},{title:(0,b.__)("4:3"),aspect:4/3},{title:(0,b.__)("3:2"),aspect:1.5}]}),(0,c.createElement)(pw,{label:(0,b.__)("Portrait"),isDisabled:t,onClick:t=>{r(t),e()},value:n,aspectRatios:[{title:(0,b.__)("10:16"),aspect:.625},{title:(0,b.__)("9:16"),aspect:9/16},{title:(0,b.__)("3:4"),aspect:3/4},{title:(0,b.__)("2:3"),aspect:2/3}]}))))}var fw=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function mw(){const{isInProgress:e,rotateClockwise:t}=zE();return(0,c.createElement)(f.ToolbarButton,{icon:fw,label:(0,b.__)("Rotate"),onClick:t,disabled:e})}function yw(){const{isInProgress:e,apply:t,cancel:n}=zE();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.ToolbarButton,{onClick:t,disabled:e},(0,b.__)("Apply")),(0,c.createElement)(f.ToolbarButton,{onClick:n},(0,b.__)("Cancel")))}function gw({id:e,url:t,width:n,height:r,clientWidth:o,naturalHeight:i,naturalWidth:a,onSaveImage:l,onFinishEditing:s,borderProps:u}){return(0,c.createElement)(VE,{id:e,url:t,naturalWidth:a,naturalHeight:i,onSaveImage:l,onFinishEditing:s},(0,c.createElement)(lw,{borderProps:u,url:t,width:n,height:r,clientWidth:o,naturalHeight:i,naturalWidth:a}),(0,c.createElement)(Xr,null,(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(cw,null),(0,c.createElement)(f.ToolbarItem,null,(e=>(0,c.createElement)(dw,{toggleProps:e}))),(0,c.createElement)(mw,null)),(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(yw,null))))}const hw=[25,50,75,100],bw=()=>{};function vw({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:r=[],isResizable:o=!0,slug:i,width:a,height:l,onChange:s,onChangeImage:u=bw}){H()("wp.blockEditor.__experimentalImageSizeControl",{since:"6.3",alternative:"wp.blockEditor.privateApis.DimensionsTool and wp.blockEditor.privateApis.ResolutionTool"});const{currentHeight:p,currentWidth:d,updateDimension:m,updateDimensions:y}=function(e,t,n,r,o){var i,a;const[l,s]=(0,c.useState)(null!==(i=null!=t?t:r)&&void 0!==i?i:""),[u,p]=(0,c.useState)(null!==(a=null!=e?e:n)&&void 0!==a?a:"");return(0,c.useEffect)((()=>{void 0===t&&void 0!==r&&s(r),void 0===e&&void 0!==n&&p(n)}),[r,n]),(0,c.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(l)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&p(e)}),[t,e]),{currentHeight:u,currentWidth:l,updateDimension:(e,t)=>{const n=""===t?void 0:parseInt(t,10);"width"===e?s(n):p(n),o({[e]:n})},updateDimensions:(e,t)=>{p(null!=e?e:n),s(null!=t?t:r),o({height:e,width:t})}}}(l,a,n,t,s);return(0,c.createElement)(c.Fragment,null,r&&r.length>0&&(0,c.createElement)(f.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Resolution"),value:i,options:r,onChange:u,help:e,size:"__unstable-large"}),o&&(0,c.createElement)("div",{className:"block-editor-image-size-control"},(0,c.createElement)(f.__experimentalHStack,{align:"baseline",spacing:"3"},(0,c.createElement)(f.__experimentalNumberControl,{className:"block-editor-image-size-control__width",label:(0,b.__)("Width"),value:d,min:1,onChange:e=>m("width",e),size:"__unstable-large"}),(0,c.createElement)(f.__experimentalNumberControl,{className:"block-editor-image-size-control__height",label:(0,b.__)("Height"),value:p,min:1,onChange:e=>m("height",e),size:"__unstable-large"})),(0,c.createElement)(f.__experimentalHStack,null,(0,c.createElement)(f.ButtonGroup,{"aria-label":(0,b.__)("Image size presets")},hw.map((e=>{const r=Math.round(t*(e/100)),o=Math.round(n*(e/100)),i=d===r&&p===o;return(0,c.createElement)(f.Button,{key:e,isSmall:!0,variant:i?"primary":void 0,isPressed:i,onClick:()=>y(o,r)},e,"%")}))),(0,c.createElement)(f.Button,{isSmall:!0,onClick:()=>y()},(0,b.__)("Reset")))))}var _w=function e({children:t,settingsOpen:n,setSettingsOpen:r}){const o=(0,d.useReducedMotion)(),i=o?c.Fragment:f.__unstableAnimatePresence,a=o?"div":f.__unstableMotion.div,l=`link-control-settings-drawer-${(0,d.useInstanceId)(e)}`;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.Button,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>r(!n),icon:(0,b.isRTL)()?Qk:Ck,"aria-controls":l},(0,b._x)("Advanced","Additional link settings")),(0,c.createElement)(i,null,n&&(0,c.createElement)(a,{className:"block-editor-link-control__drawer",hidden:!n,id:l,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1}},(0,c.createElement)("div",{className:"block-editor-link-control__drawer-inner"},t))))},kw=n(5425),Sw=n.n(kw);function Ew(e){return"function"==typeof e}class ww extends c.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,c.createRef)(),this.inputRef=(0,c.createRef)(),this.updateSuggestions=(0,d.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,isUpdatingSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:r,__experimentalShowInitialSuggestions:o=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Sw()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),e.value===r||this.props.disableSuggestions||this.state.isUpdatingSuggestions||(r?.length?this.updateSuggestions(r):o&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const r=!e?.length;if(e=e.trim(),!r&&(e.length<2||!n&&(0,wm.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({isUpdatingSuggestions:!0,selectedSuggestion:null,loading:!0});const o=t(e,{isInitialSuggestions:r});o.then((t=>{this.suggestionsRequest===o&&(this.setState({suggestions:t,isUpdatingSuggestions:!1,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,b.sprintf)((0,b._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):this.props.debouncedSpeak((0,b.__)("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===o&&this.setState({isUpdatingSuggestions:!1,loading:!1})})),this.suggestionsRequest=o}onChange(e){this.props.onChange(e.target.value)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.state.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:r,loading:o}=this.state;if(!t||!r.length||o){switch(e.keyCode){case kp.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case kp.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case kp.ENTER:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case kp.UP:{e.preventDefault();const t=n?n-1:r.length-1;this.setState({selectedSuggestion:t});break}case kp.DOWN:{e.preventDefault();const t=null===n||n===r.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case kp.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak((0,b.__)("Link selected.")));break;case kp.ENTER: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,c.createElement)(c.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:r,instanceId:o,placeholder:i=(0,b.__)("Paste URL or type to search"),__experimentalRenderControl:a,value:l="",hideLabelFromVision:s=!1}=this.props,{loading:u,showSuggestions:d,selectedSuggestion:m,suggestionsListboxId:y,suggestionOptionIdPrefix:g}=this.state,h=`url-input-control-${o}`,v={id:h,label:t,className:p()("block-editor-url-input",n,{"is-full-width":r}),hideLabelFromVision:s},_={id:h,value:l,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:(0,b.__)("URL"),"aria-expanded":d,"aria-autocomplete":"list","aria-owns":y,"aria-activedescendant":null!==m?`${g}-${m}`:void 0,ref:this.inputRef};return a?a(v,_,u):(e||H()("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,c.createElement)(f.BaseControl,{__nextHasNoMarginBottom:e,...v},(0,c.createElement)("input",{..._}),u&&(0,c.createElement)(f.Spinner,null)))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:r,suggestionsValue:o,selectedSuggestion:i,suggestionsListboxId:a,suggestionOptionIdPrefix:l,loading:s}=this.state;if(!n||0===r.length)return null;const u={id:a,ref:this.autocompleteRef,role:"listbox"},d=(e,t)=>({role:"option",tabIndex:"-1",id:`${l}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===i||void 0});return Ew(t)?t({suggestions:r,selectedSuggestion:i,suggestionsListProps:u,buildSuggestionItemProps:d,isLoading:s,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!o?.length,currentInputValue:o}):(0,c.createElement)(f.Popover,{placement:"bottom",focusOnMount:!1},(0,c.createElement)("div",{...u,className:p()("block-editor-url-input__suggestions",`${e}__suggestions`)},r.map(((e,t)=>(0,c.createElement)(f.Button,{...d(0,t),key:e.id,className:p()("block-editor-url-input__suggestion",{"is-selected":t===i}),onClick:()=>this.handleOnClick(e)},e.title)))))}}var Cw=(0,d.compose)(d.withSafeTimeout,f.withSpokenMessages,d.withInstanceId,(0,m.withSelect)(((e,t)=>{if(Ew(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(zr);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(ww);var xw=({searchTerm:e,onClick:t,itemProps:n,buttonText:r})=>{if(!e)return null;let o;return o=r?"function"==typeof r?r(e):r:(0,c.createInterpolateElement)((0,b.sprintf)((0,b.__)("Create: <mark>%s</mark>"),e),{mark:(0,c.createElement)("mark",null)}),(0,c.createElement)(f.MenuItem,{...n,iconPosition:"left",icon:Dp,className:"block-editor-link-control__search-item",onClick:t},o)};var Iw=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));var Aw=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var Bw=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{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"}));var Pw=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var Tw=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));const Ow={post:Iw,page:yk,post_tag:Aw,category:Bw,attachment:Pw};function Mw({isURL:e,suggestion:t}){let n=null;return e?n=Tw:t.type in Ow&&(n=Ow[t.type]),n?(0,c.createElement)(Yi,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function Rw(e){return e.isFrontPage?"front page":"post_tag"===e.type?"tag":e.type}var Nw=({itemProps:e,suggestion:t,searchTerm:n,onClick:r,isURL:o=!1,shouldShowType:i=!1})=>{const a=o?(0,b.__)("Press ENTER to add this link"):(0,wm.filterURLForDisplay)((0,wm.safeDecodeURI)(t?.url));return(0,c.createElement)(f.MenuItem,{...e,info:a,iconPosition:"left",icon:(0,c.createElement)(Mw,{suggestion:t,isURL:o}),onClick:r,shortcut:i&&Rw(t),className:"block-editor-link-control__search-item"},(0,c.createElement)(f.TextHighlight,{text:(0,el.__unstableStripHTML)(t.title),highlight:n}))};const Fw="__CREATE__",Lw="link",Dw="mailto",Uw="internal",jw=[Lw,Dw,"tel",Uw],zw=[{id:"opensInNewTab",title:(0,b.__)("Open in new tab")}];function Vw({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:r,suggestionsListProps:o,buildSuggestionItemProps:i,suggestions:a,selectedSuggestion:l,isLoading:s,isInitialSuggestions:u,createSuggestionButtonText:d,suggestionsQuery:m}){const y=p()("block-editor-link-control__search-results",{"is-loading":s}),g=1===a.length&&jw.includes(a[0].type),h=t&&!g&&!u,v=!m?.type,_=`block-editor-link-control-search-results-label-${e}`,k=u?(0,b.__)("Suggestions"):(0,b.sprintf)((0,b.__)('Search results for "%s"'),n),S=(0,c.createElement)(f.VisuallyHidden,{id:_},k);return(0,c.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},S,(0,c.createElement)("div",{...o,className:y,"aria-labelledby":_},(0,c.createElement)(f.MenuGroup,null,a.map(((e,t)=>h&&Fw===e.type?(0,c.createElement)(xw,{searchTerm:n,buttonText:d,onClick:()=>r(e),key:e.type,itemProps:i(e,t),isSelected:t===l}):Fw===e.type?null:(0,c.createElement)(Nw,{key:`${e.id}-${e.type}`,itemProps:i(e,t),suggestion:e,index:t,onClick:()=>{r(e)},isSelected:t===l,isURL:jw.includes(e.type),searchTerm:n,shouldShowType:v,isFrontPage:e?.isFrontPage}))))))}function Gw(e){if(e.includes(" "))return!1;const t=(0,wm.getProtocol)(e),n=(0,wm.isValidProtocol)(t),r=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),o=e?.startsWith("www."),i=e?.startsWith("#")&&(0,wm.isValidFragment)(e);return n||o||i||r}const Hw=()=>Promise.resolve([]),$w=e=>{let t=Lw;const n=(0,wm.getProtocol)(e)||"";return n.includes("mailto")&&(t=Dw),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=Uw),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,wm.prependHTTP)(e):e,type:t}])};function Ww(e,t,n,r){const{fetchSearchSuggestions:o,pageOnFront:i}=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return{pageOnFront:t().pageOnFront,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),a=t?$w:Hw;return(0,c.useCallback)(((t,{isInitialSuggestions:i})=>Gw(t)?a(t,{isInitialSuggestions:i}):(async(e,t,n,r,o)=>{const{isInitialSuggestions:i}=t,a=await n(e,t);return a.map((e=>Number(e.id)===o?(e.isFrontPage=!0,e):e)),i||Gw(e)||!r?a:a.concat({title:e,url:e,type:Fw})})(t,{...e,isInitialSuggestions:i},o,n,r)),[a,o,i,e,n,r])}const Kw=()=>Promise.resolve([]),qw=()=>{},Jw=(0,c.forwardRef)((({value:e,children:t,currentLink:n={},className:r=null,placeholder:o=null,withCreateSuggestion:i=!1,onCreateSuggestion:a=qw,onChange:l=qw,onSelect:s=qw,showSuggestions:u=!0,renderSuggestions:f=(e=>(0,c.createElement)(Vw,{...e})),fetchSuggestions:m=null,allowDirectEntry:y=!0,showInitialSuggestions:g=!1,suggestionsQuery:h={},withURLSuggestion:v=!0,createSuggestionButtonText:_,hideLabelFromVision:k=!1},S)=>{const E=Ww(h,y,i,v),w=u?m||E:Kw,C=(0,d.useInstanceId)(Jw),[x,I]=(0,c.useState)(),A=async e=>{let t=e;if(Fw!==e.type){if(y||t&&Object.keys(t).length>=1){const{id:e,url:r,...o}=null!=n?n:{};s({...o,...t},t)}}else try{t=await a(e.title),t?.url&&s(t)}catch(e){}},B=p()(r,{});return(0,c.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,c.createElement)(Cw,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:(0,b.__)("Link"),hideLabelFromVision:k,className:B,value:e,onChange:(e,t)=>{l(e),I(t)},placeholder:null!=o?o:(0,b.__)("Search or type url"),__experimentalRenderSuggestions:u?e=>f({...e,instanceId:C,withCreateSuggestion:i,createSuggestionButtonText:_,suggestionsQuery:h,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),A(t)}}):null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:g,onSubmit:(t,n)=>{const r=t||x;r||e?.trim()?.length?A(r||{url:e}):n.preventDefault()},ref:S}),t)}));var Zw=Jw;var Yw=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));var Qw=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));const{Slot:Xw,Fill:eC}=(0,f.createSlotFill)("BlockEditorLinkControlViewer");function tC(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}`)}}var nC=function(e){const[t,n]=(0,c.useReducer)(tC,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,c.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 rC({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:r=!1,onRemove:o}){const i=n?e?.url:null,{richData:a,isFetching:l}=nC(i),s=a&&Object.keys(a).length,u=e&&(0,wm.filterURLForDisplay)((0,wm.safeDecodeURI)(e.url),16)||"",d=a?.title||e?.title||u,m=!e?.url?.length;let y;return y=a?.icon?(0,c.createElement)("img",{src:a?.icon,alt:""}):m?(0,c.createElement)(Yi,{icon:Yw,size:32}):(0,c.createElement)(Yi,{icon:Tw}),(0,c.createElement)("div",{"aria-label":(0,b.__)("Currently selected"),className:p()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":s,"is-fetching":!!l,"is-preview":!0,"is-error":m})},(0,c.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,c.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,c.createElement)("span",{className:p()("block-editor-link-control__search-item-icon",{"is-image":a?.icon})},y),(0,c.createElement)("span",{className:"block-editor-link-control__search-item-details"},m?(0,c.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},(0,b.__)("Link is empty")):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url},(0,el.__unstableStripHTML)(d)),e?.url&&(0,c.createElement)("span",{className:"block-editor-link-control__search-item-info"},u)))),(0,c.createElement)(f.Button,{icon:Qw,label:(0,b.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:t,iconSize:24}),r&&(0,c.createElement)(f.Button,{icon:yg,label:(0,b.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:o,iconSize:24}),(0,c.createElement)(Xw,{fillProps:e})),!!(s&&(a?.image||a?.description)||l)&&(0,c.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},(a?.image||l)&&(0,c.createElement)("div",{"aria-hidden":!a?.image,className:p()("block-editor-link-control__search-item-image",{"is-placeholder":!a?.image})},a?.image&&(0,c.createElement)("img",{src:a?.image,alt:""})),(a?.description||l)&&(0,c.createElement)("div",{"aria-hidden":!a?.description,className:p()("block-editor-link-control__search-item-description",{"is-placeholder":!a?.description})},a?.description&&(0,c.createElement)(f.__experimentalText,{truncate:!0,numberOfLines:"2"},a.description))))}const oC=()=>{};var iC=({value:e,onChange:t=oC,settings:n})=>{if(!n||!n.length)return null;const r=n=>r=>{t({...e,[n.id]:r})},o=n.map((t=>(0,c.createElement)(f.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:r(t),checked:!!e&&!!e[t.id]})));return(0,c.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,c.createElement)(f.VisuallyHidden,{as:"legend"},(0,b.__)("Currently selected link settings")),o)};const aC=e=>{let t=!1;return{promise:new Promise(((n,r)=>{e.then((e=>t?r({isCanceled:!0}):n(e)),(e=>r(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}};const lC=()=>{},sC="core/block-editor",cC="linkControlSettingsDrawer";function uC({searchInputPlaceholder:e,value:t,settings:n=zw,onChange:r=lC,onRemove:o,onCancel:i,noDirectEntry:a=!1,showSuggestions:l=!0,showInitialSuggestions:s,forceIsEditingLink:u,createSuggestion:d,withCreateSuggestion:y,inputValue:g="",suggestionsQuery:h={},noURLSuggestion:v=!1,createSuggestionButtonText:_,hasRichPreviews:k=!1,hasTextControl:S=!1,renderControlBottom:E=null}){void 0===y&&d&&(y=!0);const[w,C]=(0,c.useState)(!1),{advancedSettingsPreference:x}=(0,m.useSelect)((e=>{var t;return{advancedSettingsPreference:null!==(t=e(xm.store).get(sC,cC))&&void 0!==t&&t}}),[]),{set:I}=(0,m.useDispatch)(xm.store),A=x||w,B=(0,c.useRef)(!0),P=(0,c.useRef)(),T=(0,c.useRef)(),O=(0,c.useRef)(!1),M=n.map((({id:e})=>e)),[R,N,F,L,D]=function(e){const[t,n]=(0,c.useState)(e||{});return(0,c.useEffect)((()=>{n((t=>e&&e!==t?e:t))}),[e]),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>r=>{const o=Object.keys(r).reduce(((t,n)=>(e.includes(n)&&(t[n]=r[n]),t)),{});n({...t,...o})}]}(t),U=t&&!(0,rv.isShallowEqualObjects)(R,t),[j,z]=(0,c.useState)(void 0!==u?u:!t||!t.url),{createPage:V,isCreatingPage:G,errorMessage:H}=function(e){const t=(0,c.useRef)(),[n,r]=(0,c.useState)(!1),[o,i]=(0,c.useState)(null);return(0,c.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){r(!0),i(null);try{return t.current=aC(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||(0,b.__)("An unknown error occurred during creation. Please try again.")),e}finally{r(!1)}},isCreatingPage:n,errorMessage:o}}(d);(0,c.useEffect)((()=>{void 0!==u&&u!==j&&z(u)}),[u]),(0,c.useEffect)((()=>{if(B.current)return void(B.current=!1);(el.focus.focusable.find(P.current)[0]||P.current).focus(),O.current=!1}),[j,G]);const $=t?.url?.trim()?.length>0,W=()=>{O.current=!!P.current?.contains(P.current.ownerDocument.activeElement),z(!1)},K=()=>{U&&r({...t,...R,url:q}),W()},q=g||R?.url||"",J=!q?.trim()?.length,Z=o&&t&&!j&&!G,Y=j&&$,Q=$&&S,X=(j||!t)&&!G,ee=!U||J,te=!!n?.length&&j&&$;return(0,c.createElement)("div",{tabIndex:-1,ref:P,className:"block-editor-link-control"},G&&(0,c.createElement)("div",{className:"block-editor-link-control__loading"},(0,c.createElement)(f.Spinner,null)," ",(0,b.__)("Creating"),"…"),X&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:p()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":Q})},Q&&(0,c.createElement)(f.TextControl,{__nextHasNoMarginBottom:!0,ref:T,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,b.__)("Text"),value:R?.title,onChange:L,onKeyDown:e=>{const{keyCode:t}=e;t!==kp.ENTER||J||(e.preventDefault(),K())},size:"__unstable-large"}),(0,c.createElement)(Zw,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:q,withCreateSuggestion:y,onCreateSuggestion:V,onChange:F,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(M.includes(n)||(t[n]=e[n]),t)),{});r({...R,...t,title:R?.title||e?.title}),W()},showInitialSuggestions:s,allowDirectEntry:!a,showSuggestions:l,suggestionsQuery:h,withURLSuggestion:!v,createSuggestionButtonText:_,hideLabelFromVision:!Q})),H&&(0,c.createElement)(f.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},H)),t&&!j&&!G&&(0,c.createElement)(rC,{key:t?.url,value:t,onEditClick:()=>z(!0),hasRichPreviews:k,hasUnlinkControl:Z,onRemove:o}),te&&(0,c.createElement)("div",{className:"block-editor-link-control__tools"},!J&&(0,c.createElement)(_w,{settingsOpen:A,setSettingsOpen:e=>{I&&I(sC,cC,e),C(e)}},(0,c.createElement)(iC,{value:R,settings:n,onChange:D(M)}))),Y&&(0,c.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,c.createElement)(f.Button,{variant:"primary",onClick:ee?lC:K,className:"block-editor-link-control__search-submit","aria-disabled":ee},(0,b.__)("Save")),(0,c.createElement)(f.Button,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),N(t),$?W():o?.(),i?.()}},(0,b.__)("Cancel"))),E&&E())}uC.ViewerFill=eC;var pC=uC;var dC=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,c.createElement)(j.Path,{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"}));var fC=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var mC=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{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"}));const yC=()=>{};let gC=0;var hC=(0,d.compose)([(0,m.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(jf.store);return{createNotice:t,removeNotice:n}})),(0,f.withFilters)("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:r,accept:o,onError:i,onSelect:a,onSelectURL:l,onToggleFeaturedImage:s,useFeaturedImage:u,onFilesUpload:d=yC,name:y=(0,b.__)("Replace"),createNotice:g,removeNotice:h,children:v,multiple:_=!1,addToGallery:k,handleUpload:S=!0,popoverProps:E})=>{const w=(0,m.useSelect)((e=>e(zr).getSettings().mediaUpload),[]),C=!!w,x=(0,c.useRef)(),I="block-editor/media-replace-flow/error-notice/"+ ++gC,A=e=>{const t=(0,el.__unstableStripHTML)(e);i?i(t):setTimeout((()=>{g("error",t,{speak:!0,id:I,isDismissible:!0})}),1e3)},B=(e,t)=>{u&&s&&s(),t(),a(e),(0,Cn.speak)((0,b.__)("The media file has been replaced")),h(I)},P=e=>{e.keyCode===kp.DOWN&&(e.preventDefault(),e.target.click())},T=_&&!(!r||0===r.length)&&r.every((e=>"image"===e||e.startsWith("image/")));return(0,c.createElement)(f.Dropdown,{popoverProps:E,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,c.createElement)(f.ToolbarButton,{ref:x,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:P},y),renderContent:({onClose:i})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,c.createElement)(qm,null,(0,c.createElement)(Jm,{gallery:T,addToGallery:k,multiple:_,value:_?n:t,onSelect:e=>B(e,i),allowedTypes:r,render:({open:e})=>(0,c.createElement)(f.MenuItem,{icon:dC,onClick:e},(0,b.__)("Open Media Library"))}),(0,c.createElement)(f.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!S)return t(),a(n);d(n),w({allowedTypes:r,filesList:n,onFileChange:([e])=>{B(e,t)},onError:A})})(e,i)},accept:o,multiple:_,render:({openFileDialog:e})=>(0,c.createElement)(f.MenuItem,{icon:fC,onClick:()=>{e()}},(0,b.__)("Upload"))})),s&&(0,c.createElement)(f.MenuItem,{icon:mC,onClick:s,isPressed:u},(0,b.__)("Use featured image")),v),l&&(0,c.createElement)("form",{className:p()("block-editor-media-flow__url-input",{"has-siblings":C||s})},(0,c.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},(0,b.__)("Current media URL:")),(0,c.createElement)(f.Tooltip,{text:e,position:"bottom"},(0,c.createElement)("div",null,(0,c.createElement)(pC,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{l(e),x.current.focus()}})))))})}));var bC=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,c.createElement)(j.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));function vC({url:e,urlLabel:t,className:n}){const r=p()(n,"block-editor-url-popover__link-viewer-url");return e?(0,c.createElement)(f.ExternalLink,{className:r,href:e},t||(0,wm.filterURLForDisplay)((0,wm.safeDecodeURI)(e))):(0,c.createElement)("span",{className:r})}const{__experimentalPopoverLegacyPositionToPlacement:_C}=Ur(f.privateApis);function kC({additionalControls:e,children:t,renderSettings:n,placement:r,focusOnMount:o="firstElement",position:i,...a}){let l;void 0!==i&&H()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==r?l=r:void 0!==i&&(l=_C(i)),l=l||"bottom";const[s,u]=(0,c.useState)(!1),p=!!n&&s;return(0,c.createElement)(f.Popover,{className:"block-editor-url-popover",focusOnMount:o,placement:l,shift:!0,...a},(0,c.createElement)("div",{className:"block-editor-url-popover__input-container"},(0,c.createElement)("div",{className:"block-editor-url-popover__row"},t,!!n&&(0,c.createElement)(f.Button,{className:"block-editor-url-popover__settings-toggle",icon:Vk,label:(0,b.__)("Link settings"),onClick:()=>{u(!s)},"aria-expanded":s})),p&&(0,c.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},n())),e&&!p&&(0,c.createElement)("div",{className:"block-editor-url-popover__additional-controls"},e))}kC.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:r,...o}){return(0,c.createElement)("form",{className:p()("block-editor-url-popover__link-editor",t),...o},(0,c.createElement)(Cw,{__nextHasNoMarginBottom:!0,value:r,onChange:n,autocompleteRef:e}),(0,c.createElement)(f.Button,{icon:bC,label:(0,b.__)("Apply"),type:"submit"}))},kC.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:r,urlLabel:o,...i}){return(0,c.createElement)("div",{className:p()("block-editor-url-popover__link-viewer",e),...i},(0,c.createElement)(vC,{url:r,urlLabel:o,className:t}),n&&(0,c.createElement)(f.Button,{icon:Qw,label:(0,b.__)("Edit"),onClick:n}))};var SC=kC;const EC=()=>{},wC=({src:e,onChange:t,onSubmit:n,onClose:r,popoverAnchor:o})=>(0,c.createElement)(SC,{anchor:o,onClose:r},(0,c.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n},(0,c.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":(0,b.__)("URL"),placeholder:(0,b.__)("Paste or type URL"),onChange:t,value:e}),(0,c.createElement)(f.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:bC,label:(0,b.__)("Apply"),type:"submit"}))),CC=({isURLInputVisible:e,src:t,onChangeSrc:n,onSubmitSrc:r,openURLInput:o,closeURLInput:i})=>{const[a,l]=(0,c.useState)(null);return(0,c.createElement)("div",{className:"block-editor-media-placeholder__url-input-container",ref:l},(0,c.createElement)(f.Button,{className:"block-editor-media-placeholder__button",onClick:o,isPressed:e,variant:"tertiary"},(0,b.__)("Insert from URL")),e&&(0,c.createElement)(wC,{src:t,onChange:n,onSubmit:r,onClose:i,popoverAnchor:a}))};var xC=(0,f.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:r,labels:o={},mediaPreview:i,notices:a,isAppender:s,accept:u,addToGallery:d,multiple:y=!1,handleUpload:g=!0,disableDropZone:h,disableMediaButtons:v,onError:_,onSelect:k,onCancel:S,onSelectURL:E,onToggleFeaturedImage:w,onDoubleClick:C,onFilesPreUpload:x=EC,onHTMLDrop:I,children:A,mediaLibraryButton:B,placeholder:P,style:T}){I&&H()("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const O=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return t().mediaUpload}),[]),[M,R]=(0,c.useState)(""),[N,F]=(0,c.useState)(!1);(0,c.useEffect)((()=>{var t;R(null!==(t=e?.src)&&void 0!==t?t:"")}),[e?.src]);const L=e=>{R(e.target.value)},D=()=>{F(!0)},U=()=>{F(!1)},j=e=>{e.preventDefault(),M&&E&&(E(M),U())},z=n=>{if(!g)return k(n);let r;if(x(n),y)if(d){let t=[];r=n=>{const r=(null!=e?e:[]).filter((e=>e.id?!t.some((({id:t})=>Number(t)===Number(e.id))):!t.some((({urlSlug:t})=>e.url.includes(t)))));k(r.concat(n)),t=n.map((e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else r=k;else r=([e])=>k(e);O({allowedTypes:t,filesList:n,onFileChange:r,onError:_})};async function V(e){const n=(0,l.pasteHandler)({HTML:e});return await async function(e){if(!e||!Array.isArray(e))return;const n=function e(t){return t.flatMap((t=>"core/image"!==t.name&&"core/audio"!==t.name&&"core/video"!==t.name||!t.attributes.url?e(t.innerBlocks):[t]))}(e);if(!n.length)return;const r=await Promise.all(n.map((e=>e.attributes.id?e.attributes:new Promise(((n,r)=>{window.fetch(e.attributes.url).then((e=>e.blob())).then((o=>O({filesList:[o],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption},onFileChange:([e])=>{e.id&&n(e)},allowedTypes:t,onError:r}))).catch((()=>n(e.attributes.url)))}))))).catch((e=>_(e)));k(y?r:r[0])}(n)}const G=e=>{z(e.target.files)},$=null!=P?P:e=>{let{instructions:l,title:u}=o;if(O||E||(l=(0,b.__)("To edit this block, you need permission to upload media.")),void 0===l||void 0===u){const e=null!=t?t:[],[n]=e,r=1===e.length,o=r&&"audio"===n,i=r&&"image"===n,a=r&&"video"===n;void 0===l&&O&&(l=(0,b.__)("Upload a media file or pick one from your media library."),o?l=(0,b.__)("Upload an audio file, pick one from your media library, or add one with a URL."):i?l=(0,b.__)("Upload an image file, pick one from your media library, or add one with a URL."):a&&(l=(0,b.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===u&&(u=(0,b.__)("Media"),o?u=(0,b.__)("Audio"):i?u=(0,b.__)("Image"):a&&(u=(0,b.__)("Video")))}const d=p()("block-editor-media-placeholder",n,{"is-appender":s});return(0,c.createElement)(f.Placeholder,{icon:r,label:u,instructions:l,className:d,notices:a,onDoubleClick:C,preview:i,style:T},e,A)},W=()=>h?null:(0,c.createElement)(f.DropZone,{onFilesDrop:z,onHTMLDrop:V}),K=()=>S&&(0,c.createElement)(f.Button,{className:"block-editor-media-placeholder__cancel-button",title:(0,b.__)("Cancel"),variant:"link",onClick:S},(0,b.__)("Cancel")),q=()=>E&&(0,c.createElement)(CC,{isURLInputVisible:N,src:M,onChangeSrc:L,onSubmitSrc:j,openURLInput:D,closeURLInput:U}),J=()=>w&&(0,c.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},(0,c.createElement)(f.Button,{className:"block-editor-media-placeholder__button",onClick:w,variant:"tertiary"},(0,b.__)("Use featured image")));return v?(0,c.createElement)(qm,null,W()):(0,c.createElement)(qm,{fallback:$(q())},(()=>{const n=null!=B?B:({open:e})=>(0,c.createElement)(f.Button,{variant:"tertiary",onClick:()=>{e()}},(0,b.__)("Media Library")),r=(0,c.createElement)(Jm,{addToGallery:d,gallery:y&&!(!t||0===t.length)&&t.every((e=>"image"===e||e.startsWith("image/"))),multiple:y,onSelect:k,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map((({id:e})=>e)):e.id,render:n});if(O&&s)return(0,c.createElement)(c.Fragment,null,W(),(0,c.createElement)(f.FormFileUpload,{onChange:G,accept:u,multiple:y,render:({openFileDialog:e})=>{const t=(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.Button,{variant:"primary",className:p()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e},(0,b.__)("Upload")),r,q(),J(),K());return $(t)}}));if(O){const e=(0,c.createElement)(c.Fragment,null,W(),(0,c.createElement)(f.FormFileUpload,{variant:"primary",className:p()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:G,accept:u,multiple:y},(0,b.__)("Upload")),r,q(),J(),K());return $(e)}return $(r)})())}));var IC=({colorSettings:e,...t})=>{const n=e.map((e=>{if(!e)return e;const{value:t,onChange:n,...r}=e;return{...r,colorValue:t,onColorChange:n}}));return(0,c.createElement)(UE,{settings:n,gradients:[],disableCustomGradients:!0,...t})};const AC={placement:"bottom-start"};var BC=()=>(0,c.createElement)(c.Fragment,null,["bold","italic","link","unknown"].map((e=>(0,c.createElement)(f.Slot,{name:`RichText.ToolbarControls.${e}`,key:e}))),(0,c.createElement)(f.Slot,{name:"RichText.ToolbarControls"},(e=>{if(!e.length)return null;const t=e.map((([{props:e}])=>e)).some((({isActive:e})=>e));return(0,c.createElement)(f.ToolbarItem,null,(n=>(0,c.createElement)(f.DropdownMenu,{icon:Vk,label:(0,b.__)("More"),toggleProps:{...n,className:p()(n.className,{"is-pressed":t}),describedBy:(0,b.__)("Displays more block tools")},controls:K(e.map((([{props:e}])=>e)),"title"),popoverProps:AC})))})));function PC(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}function TC(e,t,n,r,o,i){const[a]=(0,c.useState)(t),[l]=(0,c.useState)(r),s=(0,c.useCallback)((()=>{!function(e){const[t]=el.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[]);(0,rd.useShortcut)("core/block-editor/focus-toolbar",(()=>{i&&s()})),(0,c.useEffect)((()=>{a&&s()}),[n,a,s]),(0,c.useEffect)((()=>{const t=e.current;let n=0;return a||(n=window.requestAnimationFrame((()=>{const e=PC(t),n=l||0;var r;e[n]&&(r=t).contains(r.ownerDocument.activeElement)&&e[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(n),!o||!t)return;const e=PC(t).findIndex((e=>0===e.tabIndex));o(e)}}),[l,a])}var OC=function({children:e,focusOnMount:t,shouldUseKeyboardFocusShortcut:n=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:o,...i}){const a=(0,c.useRef)(),l=function(e){const[t,n]=(0,c.useState)(!0),r=(0,c.useCallback)((()=>{const t=!el.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||H()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[]);return(0,c.useLayoutEffect)((()=>{const t=new window.MutationObserver(r);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[t]),t}(a);return TC(a,t,l,r,o,n),l?(0,c.createElement)(f.Toolbar,{label:i["aria-label"],ref:a,...i},e):(0,c.createElement)(f.NavigableMenu,{orientation:"horizontal",role:"toolbar",ref:a,...i},e)};function MC({editableContentElement:e,activeFormats:t}){const n=t[t.length-1],r=n?.type,o=(0,m.useSelect)((e=>e(V.store).getFormatType(r)),[r]),i=(0,V.useAnchor)({editableContentElement:e,settings:o});return(0,c.createElement)(RC,{popoverAnchor:i})}function RC({popoverAnchor:e}){return(0,c.createElement)(f.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},(0,c.createElement)(OC,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,b.__)("Format tools")},(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(BC,null))))}var NC=({inline:e,editableContentElement:t,value:n})=>{const r=(0,m.useSelect)((e=>e(zr).getSettings().hasInlineToolbar),[]);if(e)return(0,c.createElement)(RC,{popoverAnchor:t});if(r){const e=(0,V.getActiveFormats)(n);return(0,V.isCollapsed)(n)&&!e.length?null:(0,c.createElement)(MC,{editableContentElement:t,activeFormats:e})}return(0,c.createElement)(Xr,{group:"inline"},(0,c.createElement)(BC,null))};function FC(){const{didAutomaticChange:e,getSettings:t}=(0,m.useSelect)(zr);return(0,d.useRefEffect)((n=>{function r(n){const{keyCode:r}=n;if(n.defaultPrevented)return;if(r!==kp.DELETE&&r!==kp.BACKSPACE&&r!==kp.ESCAPE)return;const{__experimentalUndo:o}=t();o&&e()&&(n.preventDefault(),o())}return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}}),[])}var LC=window.wp.shortcode;function DC(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function UC(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function jC({allowedFormats:e,disableFormats:t}){return t?jC.EMPTY_ARRAY:e}jC.EMPTY_ARRAY=[];const zC=e=>(0,LC.regexp)(".*").test(e);function VC({value:e,pastedBlocks:t=[],onReplace:n,onSplit:r,onSplitMiddle:o,multilineTag:i}){if(!n||!r)return;const{start:a=0,end:l=0}=e,s={...e,start:a,end:l},c=[],[u,p]=(0,V.split)(s),d=t.length>0;let f=-1;const m=(0,V.isEmpty)(u)&&!(0,V.isEmpty)(p);d&&(0,V.isEmpty)(u)||(c.push(r((0,V.toHTMLString)({value:u,multilineTag:i}),!m)),f+=1),d?(c.push(...t),f+=t.length):o&&c.push(o()),(d||o)&&(0,V.isEmpty)(p)||c.push(r((0,V.toHTMLString)({value:p,multilineTag:i}),m));n(c,d?f:1,d?-1:0)}function GC(e,t){return t?(0,V.replace)(e,/\n+/g,V.__UNSTABLE_LINE_SEPARATOR):(0,V.replace)(e,new RegExp(V.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function HC(e){const t=(0,c.useRef)(e);return t.current=e,(0,d.useRefEffect)((e=>{function n(e){const{isSelected:n,disableFormats:r,onChange:o,value:i,formatTypes:a,tagName:s,onReplace:c,onSplit:u,onSplitMiddle:p,__unstableEmbedURLOnPaste:d,multilineTag:f,preserveWhiteSpace:m,pastePlainText:y}=t.current;if(!n)return;const{clipboardData:g}=e;let h="",b="";try{h=g.getData("text/plain"),b=g.getData("text/html")}catch(e){try{b=g.getData("Text")}catch(e){return}}if(b=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;e=e.substring(n+t.length);const r="\x3c!--EndFragment--\x3e",o=e.indexOf(r);o>-1&&(e=e.substring(0,o));return e}(b),b=function(e){const t="<meta charset='utf-8'>";if(e.startsWith(t))return e.slice(t.length);return e}(b),e.preventDefault(),window.console.log("Received HTML:\n\n",b),window.console.log("Received plain text:\n\n",h),r)return void o((0,V.insert)(i,h));const v=a.reduce(((e,{__unstablePasteRule:t})=>(t&&e===i&&(e=t(i,{html:b,plainText:h})),e)),i);if(v!==i)return void o(v);const _=[...(0,el.getFilesFromDataTransfer)(g)];if("true"===g.getData("rich-text")){const e=g.getData("rich-text-multi-line-tag")||void 0;let t=(0,V.create)({html:b,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:m});return t=GC(t,!!f),DC(t,i.activeFormats),void o((0,V.insert)(i,t))}if(y)return void o((0,V.insert)(i,(0,V.create)({text:h})));if(_?.length&&window.console.log("Received items:\n\n",_),_?.length&&!yS(_,b)){const e=(0,l.getBlockTransforms)("from"),t=_.reduce(((t,n)=>{const r=(0,l.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return r&&t.push(r.transform([n])),t}),[]).flat();if(!t.length)return;return void(c&&(0,V.isEmpty)(i)?c(t):VC({value:i,pastedBlocks:t,onReplace:c,onSplit:u,onSplitMiddle:p,multilineTag:f}))}let k=c&&u?"AUTO":"INLINE";"AUTO"===k&&(0,V.isEmpty)(i)&&zC(h)&&(k="BLOCKS"),d&&(0,V.isEmpty)(i)&&(0,wm.isURL)(h.trim())&&(k="BLOCKS");const S=(0,l.pasteHandler)({HTML:b,plainText:h,mode:k,tagName:s,preserveWhiteSpace:m});if("string"==typeof S){let e=(0,V.create)({html:S});e=GC(e,!!f),DC(e,i.activeFormats),o((0,V.insert)(i,e))}else S.length>0&&(c&&(0,V.isEmpty)(i)?c(S,S.length-1,-1):VC({value:i,pastedBlocks:S,onReplace:c,onSplit:u,onSplitMiddle:p,multilineTag:f}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}}),[])}const $C=["`",'"',"'","“”","‘’"];function WC(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,m.useDispatch)(zr),r=(0,c.useRef)(e);return r.current=e,(0,d.useRefEffect)((e=>{function o(o){const{inputType:i,data:a}=o,{value:l,onChange:c}=r.current;if("insertText"!==i)return;if((0,V.isCollapsed)(l))return;const u=(0,s.applyFilters)("blockEditor.wrapSelectionSettings",$C).find((([e,t])=>e===a||t===a));if(!u)return;const[p,d=p]=u,f=l.start,m=l.end+p.length;let y=(0,V.insert)(l,p,f,f);y=(0,V.insert)(y,d,m,m),t(),c(y),n();const g={};for(const e in o)g[e]=o[e];g.data=d;const{ownerDocument:h}=e,{defaultView:b}=h,v=new b.InputEvent("input",g);window.queueMicrotask((()=>{o.target.dispatchEvent(v)})),o.preventDefault()}return e.addEventListener("beforeinput",o),()=>{e.removeEventListener("beforeinput",o)}}),[])}function KC(e){let t=e.length;for(;t--;){const n=In(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].replace(xn,""),[e[t].clientId,n,0,0];const r=KC(e[t].innerBlocks);if(r)return r}return[]}function qC(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,m.useDispatch)(zr),r=(0,c.useRef)(e);return r.current=e,(0,d.useRefEffect)((e=>{function o(){const{getValue:e,onReplace:t,selectionChange:o}=r.current;if(!t)return;const i=e(),{start:a,text:s}=i;if(" "!==s.slice(a-1,a))return;const c=s.slice(0,a).trim(),u=(0,l.getBlockTransforms)("from").filter((({type:e})=>"prefix"===e)),p=(0,l.findTransform)(u,(({prefix:e})=>c===e));if(!p)return;const d=(0,V.toHTMLString)({value:(0,V.insert)(i,xn,0,a)}),f=p.transform(d);return o(...KC([f])),t([f]),n(),!0}function i(e){const{inputType:i,type:a}=e,{getValue:l,onChange:s,__unstableAllowPrefixTransformations:c,formatTypes:u}=r.current;if("insertText"!==i&&"compositionend"!==a)return;if(c&&o&&o())return;const p=l(),d=u.reduce(((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e)),function(e){const t="tales of gutenberg",{start:n,text:r}=e;return n<18||r.slice(n-18,n).toLowerCase()!==t?e:(0,V.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(p));d!==p&&(t(),s({...d,activeFormats:p.activeFormats}),n())}return e.addEventListener("input",i),e.addEventListener("compositionend",i),()=>{e.removeEventListener("input",i),e.removeEventListener("compositionend",i)}}),[])}function JC(e){const t=(0,c.useRef)(e);return t.current=e,(0,d.useRefEffect)((e=>{function n(e){const{keyCode:n}=e;if(e.defaultPrevented)return;const{value:r,onMerge:o,onRemove:i}=t.current;if(n===kp.DELETE||n===kp.BACKSPACE){const{start:t,end:a,text:l}=r,s=n===kp.BACKSPACE,c=r.activeFormats&&!!r.activeFormats.length;if(!(0,V.isCollapsed)(r)||c||s&&0!==t||!s&&a!==l.length)return;o&&o(!s),i&&(0,V.isEmpty)(r)&&s&&i(!s),e.preventDefault()}}return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}}),[])}function ZC(e){const{__unstableMarkAutomaticChange:t}=(0,m.useDispatch)(zr),n=(0,c.useRef)(e);return n.current=e,(0,d.useRefEffect)((e=>{function r(e){if(e.defaultPrevented)return;if(e.keyCode!==kp.ENTER)return;const{removeEditorOnlyFormats:r,value:o,onReplace:i,onSplit:a,onSplitMiddle:s,multilineTag:c,onChange:u,disableLineBreaks:p,onSplitAtEnd:d}=n.current;e.preventDefault();const f={...o};f.formats=r(o);const m=i&&a;if(i){const e=(0,l.getBlockTransforms)("from").filter((({type:e})=>"enter"===e)),n=(0,l.findTransform)(e,(e=>e.regExp.test(f.text)));n&&(i([n.transform({content:f.text})]),t())}if(c)e.shiftKey?p||u((0,V.insert)(f,"\n")):m&&(0,V.__unstableIsEmptyLine)(f)?VC({value:f,onReplace:i,onSplit:a,onSplitMiddle:s,multilineTag:c}):u((0,V.__unstableInsertLineSeparator)(f));else{const{text:t,start:n,end:r}=f,o=d&&n===r&&r===t.length;e.shiftKey||!m&&!o?p||u((0,V.insert)(f,"\n")):!m&&o?d():m&&VC({value:f,onReplace:i,onSplit:a,onSplitMiddle:s,multilineTag:c})}}return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[])}function YC(e){return e(V.store).getFormatTypes()}const QC=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function XC(e,t){return"object"!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=>[`${t}.${e}`,n])))}function ex(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,r)=>(n[r.slice(t.length+1)]=e[r],n)),{})}function tx(e){return(0,d.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}),[])}function nx(e){return(0,d.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}}),[])}function rx(){const{__unstableMarkLastChangeAsPersistent:e}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((t=>{function n(t){"insertReplacementText"===t.inputType&&e()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}}),[])}function ox(e){const t=(0,c.useRef)(e);t.current=e;const{isMultiSelecting:n}=(0,m.useSelect)(zr);return(0,d.useRefEffect)((e=>{function r(){if(!n())return;const t=e.parentElement.closest('[contenteditable="true"]');t&&t.focus()}function o(n){if(n.keyCode!==kp.SPACE)return;if(null===e.closest("button, summary"))return;const{value:r,onChange:o}=t.current;o((0,V.insert)(r," ")),n.preventDefault()}return e.addEventListener("focus",r),e.addEventListener("keydown",o),()=>{e.removeEventListener("focus",r),e.removeEventListener("keydown",o)}}),[])}const ix={},ax=Symbol("usesContext");function lx({onChange:e,onFocus:t,value:n,forwardedRef:r,settings:o}){const{name:i,edit:a,[ax]:l}=o,s=(0,c.useContext)(rl),u=(0,c.useMemo)((()=>l?Object.fromEntries(Object.entries(s).filter((([e])=>l.includes(e)))):ix),[l,s]);if(!a)return null;const p=(0,V.getActiveFormat)(n,i),d=void 0!==p,f=(0,V.getActiveObject)(n),m=void 0!==f&&f.type===i;return(0,c.createElement)(a,{key:i,isActive:d,activeAttributes:d&&p.attributes||{},isObjectActive:m,activeObjectAttributes:m&&f.attributes||{},value:n,onChange:e,onFocus:t,contentRef:r,context:u})}function sx({formatTypes:e,...t}){return e.map((e=>(0,c.createElement)(lx,{settings:e,...t,key:e.name})))}const cx=({value:e,tagName:t,multiline:n,...r})=>{Array.isArray(e)&&(H()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e=l.children.toHTML(e));const o=UC(n);!e&&o&&(e=`<${o}></${o}>`);const i=(0,c.createElement)(c.RawHTML,null,e);if(t){const{format:e,...n}=r;return(0,c.createElement)(t,{...n},i)}return i},ux=(0,c.createContext)(),px=(0,c.createContext)();const dx=(0,c.forwardRef)((function e({children:t,tagName:n="div",value:r="",onChange:o,isSelected:i,multiline:a,inlineToolbar:s,wrapperClassName:u,autocompleters:y,onReplace:g,placeholder:h,allowedFormats:b,withoutInteractiveFormatting:v,onRemove:_,onMerge:k,onSplit:S,__unstableOnSplitAtEnd:E,__unstableOnSplitMiddle:w,identifier:C,preserveWhiteSpace:x,__unstablePastePlainText:I,__unstableEmbedURLOnPaste:A,__unstableDisableFormats:B,disableLineBreaks:P,__unstableAllowPrefixTransformations:T,...O},M){a&&H()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const R=(0,d.useInstanceId)(e);C=C||R,O=function(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:r,textAlign:o,selectionColor:i,tagsToEliminate:a,disableEditingMenu:l,fontSize:s,fontFamily:c,fontWeight:u,fontStyle:p,minWidth:d,maxWidth:f,setRef:m,disableSuggestions:y,disableAutocorrection:g,...h}=e;return h}(O);const N=(0,c.useRef)(),{clientId:F}=Wr(),{selectionStart:L,selectionEnd:D,isSelected:U}=(0,m.useSelect)((e=>{const{getSelectionStart:t,getSelectionEnd:n}=e(zr),r=t(),o=n();let a;return void 0===i?a=r.clientId===F&&o.clientId===F&&r.attributeKey===C:i&&(a=r.clientId===F),{selectionStart:a?r.offset:void 0,selectionEnd:a?o.offset:void 0,isSelected:a}})),{getSelectionStart:j,getSelectionEnd:z,getBlockRootClientId:G}=(0,m.useSelect)(zr),{selectionChange:$}=(0,m.useDispatch)(zr),W=UC(a),K=jC({allowedFormats:b,disableFormats:B}),q=!K||K.length>0;let J=r,Z=o;Array.isArray(r)&&(H()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),J=l.children.toHTML(r),Z=e=>o(l.children.fromDOM((0,V.__unstableCreateElement)(document,e).childNodes)));const Y=(0,c.useCallback)(((e,t)=>{const n={},r=void 0===e&&void 0===t;if("number"==typeof e||r){if(void 0===t&&G(F)!==G(z().clientId))return;n.start={clientId:F,attributeKey:C,offset:e}}if("number"==typeof t||r){if(void 0===e&&G(F)!==G(j().clientId))return;n.end={clientId:F,attributeKey:C,offset:t}}$(n)}),[F,C]),{formatTypes:Q,prepareHandlers:X,valueHandlers:ee,changeHandlers:te,dependencies:ne}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:r}){const o=(0,m.useSelect)(YC,[]),i=(0,c.useMemo)((()=>o.filter((({name:e,interactive:t,tagName:o})=>!(r&&!r.includes(e)||n&&(t||QC.has(o)))))),[o,r,n]),a=(0,m.useSelect)((n=>i.reduce(((r,o)=>o.__experimentalGetPropsForEditableTreePreparation?{...r,...XC(o.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),o.name)}:r),{})),[i,e,t]),l=(0,m.useDispatch)(),s=[],u=[],p=[],d=[];for(const e in a)d.push(a[e]);return i.forEach((n=>{if(n.__experimentalCreatePrepareEditableTree){const r=n.__experimentalCreatePrepareEditableTree(ex(a,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(r):s.push(r)}if(n.__experimentalCreateOnChangeEditableValue){let r={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(r=n.__experimentalGetPropsForEditableTreeChangeHandler(l,{richTextIdentifier:t,blockClientId:e}));const o=ex(a,n.name);p.push(n.__experimentalCreateOnChangeEditableValue({..."object"==typeof o?o:{},...r},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:i,prepareHandlers:s,valueHandlers:u,changeHandlers:p,dependencies:d}}({clientId:F,identifier:C,withoutInteractiveFormatting:v,allowedFormats:K});function re(e){return Q.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,V.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:oe,getValue:ie,onChange:ae,ref:le}=(0,V.__unstableUseRichText)({value:J,onChange(e,{__unstableFormats:t,__unstableText:n}){Z(e),Object.values(te).forEach((e=>{e(t,n)}))},selectionStart:L,selectionEnd:D,onSelectionChange:Y,placeholder:h,__unstableIsSelected:U,__unstableMultilineTag:W,__unstableDisableFormats:B,preserveWhiteSpace:x,__unstableDependencies:[...ne,n],__unstableAfterParse:function(e){return ee.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:re,__unstableAddInvisibleFormats:function(e){return X.reduce(((t,n)=>n(t,e.text)),e.formats)}}),se=function(e){return(0,f.__unstableUseAutocompleteProps)({...e,completers:vk(e)})}({onReplace:g,completers:y,record:oe,onChange:ae});!function({html:e,value:t}){const n=(0,c.useRef)(),r=t.activeFormats&&!!t.activeFormats.length,{__unstableMarkLastChangeAsPersistent:o}=(0,m.useDispatch)(zr);(0,c.useLayoutEffect)((()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=>{o()}),1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}o()}else n.current=t.text}),[e,r])}({html:J,value:oe});const ce=(0,c.useRef)(new Set),ue=(0,c.useRef)(new Set);function pe(){N.current?.focus()}const de=n;return(0,c.createElement)(c.Fragment,null,U&&(0,c.createElement)(ux.Provider,{value:ce},(0,c.createElement)(px.Provider,{value:ue},(0,c.createElement)(f.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},t&&t({value:oe,onChange:ae,onFocus:pe}),(0,c.createElement)(sx,{value:oe,onChange:ae,onFocus:pe,formatTypes:Q,forwardedRef:N})))),U&&q&&(0,c.createElement)(NC,{inline:s,editableContentElement:N.current,value:oe}),(0,c.createElement)(de,{role:"textbox","aria-multiline":!P,"aria-label":h,...O,...se,ref:(0,d.useMergeRefs)([M,se.ref,O.ref,le,WC({value:oe,onChange:ae}),qC({getValue:ie,onChange:ae,__unstableAllowPrefixTransformations:T,formatTypes:Q,onReplace:g,selectionChange:$}),rx(),(0,d.useRefEffect)((e=>{function t(e){(kp.isKeyboardEvent.primary(e,"z")||kp.isKeyboardEvent.primary(e,"y")||kp.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}}),[]),tx(ce),nx(ue),FC(),HC({isSelected:U,disableFormats:B,onChange:ae,value:oe,formatTypes:Q,tagName:n,onReplace:g,onSplit:S,onSplitMiddle:w,__unstableEmbedURLOnPaste:A,multilineTag:W,preserveWhiteSpace:x,pastePlainText:I}),JC({value:oe,onMerge:k,onRemove:_}),ZC({removeEditorOnlyFormats:re,value:oe,onReplace:g,onSplit:S,onSplitMiddle:w,multilineTag:W,onChange:ae,disableLineBreaks:P,onSplitAtEnd:E}),ox({value:oe,onChange:ae}),N]),contentEditable:!0,suppressContentEditableWarning:!0,className:p()("block-editor-rich-text__editable",O.className,"rich-text"),tabIndex:0===O.tabIndex?null:O.tabIndex}))}));dx.Content=cx,dx.isEmpty=e=>!e||0===e.length;var fx=dx;const mx=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(fx,{ref:t,...e,__unstableDisableFormats:!0,preserveWhiteSpace:!0})));mx.Content=({value:e="",tagName:t="div",...n})=>(0,c.createElement)(t,{...n},e);var yx=mx;var gx=(0,c.forwardRef)((({__experimentalVersion:e,...t},n)=>{if(2===e)return(0,c.createElement)(yx,{ref:n,...t});const{className:r,onChange:o,...i}=t;return(0,c.createElement)(vl.Z,{ref:n,className:p()("block-editor-plain-text",r),onChange:e=>o(e.target.value),...i})}));function hx({property:e,viewport:t,desc:n}){const r=(0,d.useInstanceId)(hx),o=n||(0,b.sprintf)((0,b._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{"aria-describedby":`rbc-desc-${r}`},t.label),(0,c.createElement)(f.VisuallyHidden,{as:"span",id:`rbc-desc-${r}`},o))}var bx=function(e){const{title:t,property:n,toggleLabel:r,onIsResponsiveChange:o,renderDefaultControl:i,renderResponsiveControls:a,isResponsive:l=!1,defaultLabel:s={id:"all",label:(0,b.__)("All")},viewports:u=[{id:"small",label:(0,b.__)("Small screens")},{id:"medium",label:(0,b.__)("Medium screens")},{id:"large",label:(0,b.__)("Large screens")}]}=e;if(!t||!n||!i)return null;const d=r||(0,b.sprintf)((0,b.__)("Use the same %s on all screensizes."),n),m=(0,b.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),y=i((0,c.createElement)(hx,{property:n,viewport:s}),s);return(0,c.createElement)("fieldset",{className:"block-editor-responsive-block-control"},(0,c.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),(0,c.createElement)("div",{className:"block-editor-responsive-block-control__inner"},(0,c.createElement)(f.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-responsive-block-control__toggle",label:d,checked:!l,onChange:o,help:m}),(0,c.createElement)("div",{className:p()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&y,l&&(a?a(u):u.map((e=>(0,c.createElement)(c.Fragment,{key:e.id},i((0,c.createElement)(hx,{property:n,viewport:e}),e))))))))};function vx({character:e,type:t,onUse:n}){const r=(0,c.useContext)(ux),o=(0,c.useRef)();return o.current=n,(0,c.useEffect)((()=>{function n(n){kp.isKeyboardEvent[t](n,e)&&(o.current(),n.preventDefault())}return r.current.add(n),()=>{r.current.delete(n)}}),[e,t]),null}function _x({name:e,shortcutType:t,shortcutCharacter:n,...r}){let o,i="RichText.ToolbarControls";return e&&(i+=`.${e}`),t&&n&&(o=kp.displayShortcut[t](n)),(0,c.createElement)(f.Fill,{name:i},(0,c.createElement)(f.ToolbarButton,{...r,shortcut:o}))}function kx({inputType:e,onInput:t}){const n=(0,c.useContext)(px),r=(0,c.useRef)();return r.current=t,(0,c.useEffect)((()=>{function t(t){t.inputType===e&&(r.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}}),[e]),null}const Sx=(0,c.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,c.createElement)(f.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Ex=(0,c.forwardRef)((function(e,t){const n=(0,m.useSelect)((e=>e(zr).__unstableGetEditorMode()),[]),{__unstableSetEditorMode:r}=(0,m.useDispatch)(zr);return(0,c.createElement)(f.Dropdown,{renderToggle:({isOpen:r,onToggle:o})=>(0,c.createElement)(f.Button,{...e,ref:t,icon:"navigation"===n?Sx:Qw,"aria-expanded":r,"aria-haspopup":"true",onClick:o,label:(0,b.__)("Tools")}),popoverProps:{placement:"bottom-start"},renderContent:()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.NavigableMenu,{role:"menu","aria-label":(0,b.__)("Tools")},(0,c.createElement)(f.MenuItemsChoice,{value:"navigation"===n?"navigation":"edit",onSelect:r,choices:[{value:"edit",label:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Yi,{icon:Qw}),(0,b.__)("Edit"))},{value:"navigation",label:(0,c.createElement)(c.Fragment,null,Sx,(0,b.__)("Select"))}]})),(0,c.createElement)("div",{className:"block-editor-tool-selector__help"},(0,b.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function wx({units:e,...t}){const n=(0,f.__experimentalUseCustomUnits)({availableUnits:Yo("spacing.units")||["%","px","em","rem","vw"],units:e});return(0,c.createElement)(f.__experimentalUnitControl,{units:n,...t})}var Cx=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));class xx extends c.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,r=e?(0,b.__)("Edit link"):(0,b.__)("Insert link");return(0,c.createElement)("div",{className:"block-editor-url-input__button"},(0,c.createElement)(f.Button,{icon:mg,label:r,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&(0,c.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},(0,c.createElement)("div",{className:"block-editor-url-input__button-modal-line"},(0,c.createElement)(f.Button,{className:"block-editor-url-input__back",icon:Cx,label:(0,b.__)("Close"),onClick:this.toggle}),(0,c.createElement)(Cw,{__nextHasNoMarginBottom:!0,value:e||"",onChange:t}),(0,c.createElement)(f.Button,{icon:bC,label:(0,b.__)("Submit"),type:"submit"}))))}}var Ix=xx;const Ax="none",Bx="custom",Px="media",Tx="attachment",Ox=["noreferrer","noopener"],Mx=(0,c.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(f.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,c.createElement)(f.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),(0,c.createElement)(f.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Rx=({linkDestination:e,onChangeUrl:t,url:n,mediaType:r="image",mediaUrl:o,mediaLink:i,linkTarget:a,linkClass:l,rel:s})=>{const[u,p]=(0,c.useState)(!1),[d,m]=(0,c.useState)(null),[y,g]=(0,c.useState)(!1),[h,v]=(0,c.useState)(null),_=(0,c.useRef)(null),k=()=>{g(!1)},S=()=>{const e=[{linkDestination:Px,title:(0,b.__)("Media File"),url:"image"===r?o:void 0,icon:Mx}];return"image"===r&&i&&e.push({linkDestination:Tx,title:(0,b.__)("Attachment Page"),url:"image"===r?i:void 0,icon:(0,c.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(f.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,c.createElement)(f.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},E=(0,c.createElement)(f.__experimentalVStack,{spacing:"3"},(0,c.createElement)(f.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(null!=s?s:"").split(" ");Ox.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(null!=s?s:"").split(" ").filter((e=>!1===Ox.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===a}),(0,c.createElement)(f.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Link rel"),value:null!=s?s:"",onChange:e=>{t({rel:e})}}),(0,c.createElement)(f.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Link CSS Class"),value:l||"",onChange:e=>{t({linkClass:e})}})),w=null!==h?h:n,C=(S().find((t=>t.linkDestination===e))||{}).title;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.ToolbarButton,{icon:mg,className:"components-toolbar__control",label:n?(0,b.__)("Edit link"):(0,b.__)("Insert link"),"aria-expanded":u,onClick:()=>{p(!0)},ref:m}),u&&(0,c.createElement)(SC,{anchor:d,onFocusOutside:e=>{const t=_.current;t&&t.contains(e.target)||(p(!1),v(null),k())},onClose:()=>{v(null),k(),p(!1)},renderSettings:()=>E,additionalControls:!w&&(0,c.createElement)(f.NavigableMenu,null,S().map((e=>(0,c.createElement)(f.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{v(null),(e=>{const n=S();let r;r=e?(n.find((t=>t.url===e))||{linkDestination:Bx}).linkDestination:Ax,t({linkDestination:r,href:e})})(e.url),k()}},e.title))))},(!n||y)&&(0,c.createElement)(SC.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:w,onChangeInputValue:v,onSubmit:e=>{if(h){const e=S().find((e=>e.url===h))?.linkDestination||Bx;t({href:h,linkDestination:e})}k(),v(null),e.preventDefault()},autocompleteRef:_}),n&&!y&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(SC.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:()=>{e!==Px&&e!==Tx||v(""),g(!0)},urlLabel:C}),(0,c.createElement)(f.Button,{icon:Cm,label:(0,b.__)("Remove link"),onClick:()=>{t({linkDestination:Ax,href:""})}}))))},{Fill:Nx,Slot:Fx}=(0,f.createSlotFill)("__unstableBlockToolbarLastItem");Nx.Slot=Fx;var Lx=Nx;var Dx=(0,c.createContext)("");var Ux=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));var jx=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}));var zx=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));function Vx({children:e,viewLabel:t,className:n,isEnabled:r=!0,deviceType:o,setDeviceType:i,label:a}){if((0,d.useViewportMatch)("small","<"))return null;const l={className:p()(n,"block-editor-post-preview__dropdown-content"),placement:"bottom-end"},s={className:"block-editor-post-preview__button-toggle",disabled:!r,children:t},u={"aria-label":(0,b.__)("View options")},m={mobile:Ux,tablet:jx,desktop:zx};return(0,c.createElement)(f.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:l,toggleProps:s,menuProps:u,icon:m[o.toLowerCase()],label:a||(0,b.__)("Preview")},(()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.MenuGroup,null,(0,c.createElement)(f.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>i("Desktop"),icon:"Desktop"===o&&Rb},(0,b.__)("Desktop")),(0,c.createElement)(f.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>i("Tablet"),icon:"Tablet"===o&&Rb},(0,b.__)("Tablet")),(0,c.createElement)(f.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>i("Mobile"),icon:"Mobile"===o&&Rb},(0,b.__)("Mobile"))),e)))}function Gx(e){const[t,n]=(0,c.useState)(window.innerWidth);(0,c.useEffect)((()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[e]);const r=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px",n=(window.innerHeight<800?36:72)+"px",o="auto";switch(e){case"Tablet":case"Mobile":return{width:r(e),marginTop:n,marginBottom:n,marginLeft:o,marginRight:o,height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var Hx=(0,m.withSelect)((e=>({selectedBlockClientId:e(zr).getBlockSelectionStart()})))((({selectedBlockClientId:e})=>{const t=Ip(e);return e?(0,c.createElement)(f.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()}},(0,b.__)("Skip to the selected block")):null})),$x=window.wp.wordcount;var Wx=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));var Kx=(0,m.withSelect)((e=>{const{getMultiSelectedBlocks:t}=e(zr);return{blocks:t()}}))((function({blocks:e}){const t=(0,$x.count)((0,l.serialize)(e),"words");return(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},(0,c.createElement)(Hp,{icon:Wx,showColors:!0}),(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},(0,b.sprintf)((0,b._n)("%d Block","%d Blocks",e.length),e.length)),(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},(0,b.sprintf)((0,b._n)("%d word selected.","%d words selected.",t),t))))}));function qx({blockName:e}){const{preferredStyle:t,onUpdatePreferredStyleVariations:n,styles:r}=(0,m.useSelect)((t=>{var n;const r=t(zr).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:r?.value?.[e],onUpdatePreferredStyleVariations:null!==(n=r?.onChange)&&void 0!==n?n:null,styles:t(l.store).getBlockStyles(e)}}),[e]),o=(0,c.useMemo)((()=>[{label:(0,b.__)("Not set"),value:""},...r.map((({label:e,name:t})=>({label:e,value:t})))]),[r]),i=(0,c.useMemo)((()=>QS(r)?.name),[r]),a=(0,c.useCallback)((t=>{n(e,t)}),[e,n]);return t&&t!==i?n&&(0,c.createElement)("div",{className:"default-style-picker__default-switcher"},(0,c.createElement)(f.SelectControl,{__nextHasNoMarginBottom:!0,options:o,value:t||"",label:(0,b.__)("Default Style"),onChange:a})):null}var Jx=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var Zx=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const Yx={name:"settings",title:(0,b.__)("Settings"),value:"settings",icon:Jx,className:"block-editor-block-inspector__tab-item"},Qx={name:"styles",title:(0,b.__)("Styles"),value:"styles",icon:Zx,className:"block-editor-block-inspector__tab-item"},Xx={name:"list",title:(0,b.__)("List View"),value:"list-view",icon:Mk,className:"block-editor-block-inspector__tab-item"};var eI=()=>{const e=(0,f.__experimentalUseSlotFills)(Ka.slotName);return Boolean(e&&e.length)?(0,c.createElement)(f.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,b.__)("Advanced"),initialOpen:!1},(0,c.createElement)(qa.Slot,{group:"advanced"})):null};const tI=()=>{const[e,t]=(0,c.useState)(),{multiSelectedBlocks:n}=(0,m.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(zr);return{multiSelectedBlocks:t(n())}}),[]);return(0,c.useLayoutEffect)((()=>{void 0===e&&t(n.some((({attributes:e})=>!!e?.style?.position?.type)))}),[e,n,t]),(0,c.createElement)(f.PanelBody,{className:"block-editor-block-inspector__position",title:(0,b.__)("Position"),initialOpen:null!=e&&e},(0,c.createElement)(qa.Slot,{group:"position"}))};var nI=()=>{const e=(0,f.__experimentalUseSlotFills)(ja.position.Slot.__unstableName);return Boolean(e&&e.length)?(0,c.createElement)(tI,null):null};const rI="isInspectorControlsTabsHintVisible";function oI(){const e=(0,m.useSelect)((e=>{var t;return null===(t=e(xm.store).get("core",rI))||void 0===t||t}),[]),t=(0,c.useRef)(),{set:n}=(0,m.useDispatch)(xm.store);return e?(0,c.createElement)("div",{ref:t,className:"block-editor-inspector-controls-tabs__hint"},(0,c.createElement)("div",{className:"block-editor-inspector-controls-tabs__hint-content"},(0,b.__)("Looking for other block settings? They've moved to the styles tab.")),(0,c.createElement)(f.Button,{className:"block-editor-inspector-controls-tabs__hint-dismiss",icon:Cm,iconSize:"16",label:(0,b.__)("Dismiss hint"),onClick:()=>{const e=el.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",rI,!1)},showTooltip:!1})):null}var iI=({showAdvancedControls:e=!1})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qa.Slot,null),(0,c.createElement)(nI,null),e&&(0,c.createElement)("div",null,(0,c.createElement)(eI,null)),(0,c.createElement)(oI,null));var aI=({blockName:e,clientId:t,hasBlockStyles:n})=>(0,c.createElement)(c.Fragment,null,n&&(0,c.createElement)("div",null,(0,c.createElement)(f.PanelBody,{title:(0,b.__)("Styles")},(0,c.createElement)(rE,{clientId:t}),(0,l.hasBlockSupport)(e,"defaultStylePicker",!0)&&(0,c.createElement)(qx,{blockName:e}))),(0,c.createElement)(qa.Slot,{group:"color",label:(0,b.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qa.Slot,{group:"filter"}),(0,c.createElement)(qa.Slot,{group:"typography",label:(0,b.__)("Typography")}),(0,c.createElement)(qa.Slot,{group:"dimensions",label:(0,b.__)("Dimensions")}),(0,c.createElement)(qa.Slot,{group:"border",label:(0,b.__)("Border")}),(0,c.createElement)(qa.Slot,{group:"styles"}));const lI=["core/navigation"];var sI=e=>!lI.includes(e);function cI({blockName:e,clientId:t,hasBlockStyles:n,tabs:r}){const o=sI(e)?void 0:Xx.name;return(0,c.createElement)(f.TabPanel,{className:"block-editor-block-inspector__tabs",tabs:r,initialTabName:o,key:t},(r=>r.name===Yx.name?(0,c.createElement)(iI,{showAdvancedControls:!!e}):r.name===Qx.name?(0,c.createElement)(aI,{blockName:e,clientId:t,hasBlockStyles:n}):r.name===Xx.name?(0,c.createElement)(qa.Slot,{group:"list"}):void 0))}const uI=[];function pI(e){const t=[],{border:n,color:r,default:o,dimensions:i,list:a,position:l,styles:s,typography:c}=ja,u=sI(e),p=(0,f.__experimentalUseSlotFills)(a.Slot.__unstableName),d=!u&&!!p&&p.length,y=[...(0,f.__experimentalUseSlotFills)(n.Slot.__unstableName)||[],...(0,f.__experimentalUseSlotFills)(r.Slot.__unstableName)||[],...(0,f.__experimentalUseSlotFills)(i.Slot.__unstableName)||[],...(0,f.__experimentalUseSlotFills)(s.Slot.__unstableName)||[],...(0,f.__experimentalUseSlotFills)(c.Slot.__unstableName)||[]].length,g=(0,f.__experimentalUseSlotFills)(Ka.slotName)||[],h=[...(0,f.__experimentalUseSlotFills)(o.Slot.__unstableName)||[],...(0,f.__experimentalUseSlotFills)(l.Slot.__unstableName)||[],...d&&y>1?g:[]];d&&t.push(Xx),h.length&&t.push(Yx),y&&t.push(Qx);const b=function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,m.useSelect)((e=>e(zr).getSettings().blockInspectorTabs),[]));return b?t:uI}const{createPrivateSlotFill:dI}=Ur(f.privateApis),{Fill:fI,Slot:mI}=dI("BlockInformation"),yI=e=>Kr()?(0,c.createElement)(fI,{...e}):null;yI.Slot=e=>(0,c.createElement)(mI,{...e});var gI=yI;function hI({clientIds:e}){return e.length?(0,c.createElement)(f.__experimentalVStack,{spacing:1},e.map((e=>(0,c.createElement)(bI,{key:e,clientId:e})))):null}function bI({clientId:e}){const{name:t,icon:n,isSelected:r}=(0,m.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:r,isBlockSelected:o,hasSelectedInnerBlock:i}=t(zr),{getBlockType:a}=t(l.store),s=a(n(e)),c=r(e);return{name:s&&(0,l.__experimentalGetBlockLabel)(s,c,"list-view"),icon:s?.icon,isSelected:o(e)||i(e,!0)}}),[e]),{selectBlock:o}=(0,m.useDispatch)(zr);return(0,c.createElement)(f.Button,{isPressed:r,onClick:()=>o(e)},(0,c.createElement)(f.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(Hp,{icon:n}),(0,c.createElement)(f.FlexItem,null,t)))}function vI({topLevelLockedBlock:e}){const t=(0,m.useSelect)((t=>{const{getClientIdsOfDescendants:n,getBlockName:r,getBlockEditingMode:o}=Ur(t(zr));return n([e]).filter((e=>"core/list-item"!==r(e)&&"contentOnly"===o(e)))}),[e]),n=Jv(e);return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)($p,{...n,className:n.isSynced&&"is-synced"}),(0,c.createElement)(wE,{blockClientId:e}),(0,c.createElement)(gI.Slot,null),(0,c.createElement)(f.PanelBody,{title:(0,b.__)("Content")},(0,c.createElement)(hI,{clientIds:t})))}const _I=({animate:e,wrapper:t,children:n})=>e?t(n):n,kI=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const r=e&&"leftToRight"===e.enterDirection?-50:50;return(0,c.createElement)(f.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:r,opacity:0},key:t},n)},SI=({clientId:e,blockName:t})=>{const n=pI(t),r=n?.length>1,o=(0,m.useSelect)((e=>{const{getBlockStyles:n}=e(l.store),r=n(t);return r&&r.length>0}),[t]),i=Jv(e);return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)($p,{...i,className:i.isSynced&&"is-synced"}),(0,c.createElement)(wE,{blockClientId:e}),(0,c.createElement)(gI.Slot,null),r&&(0,c.createElement)(cI,{hasBlockStyles:o,clientId:e,blockName:t,tabs:n}),!r&&(0,c.createElement)(c.Fragment,null,o&&(0,c.createElement)("div",null,(0,c.createElement)(f.PanelBody,{title:(0,b.__)("Styles")},(0,c.createElement)(rE,{clientId:e}),(0,l.hasBlockSupport)(t,"defaultStylePicker",!0)&&(0,c.createElement)(qx,{blockName:t}))),(0,c.createElement)(qa.Slot,null),(0,c.createElement)(qa.Slot,{group:"list"}),(0,c.createElement)(qa.Slot,{group:"color",label:(0,b.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qa.Slot,{group:"typography",label:(0,b.__)("Typography")}),(0,c.createElement)(qa.Slot,{group:"dimensions",label:(0,b.__)("Dimensions")}),(0,c.createElement)(qa.Slot,{group:"border",label:(0,b.__)("Border")}),(0,c.createElement)(qa.Slot,{group:"styles"}),(0,c.createElement)(nI,null),(0,c.createElement)("div",null,(0,c.createElement)(eI,null))),(0,c.createElement)(Hx,{key:"back"}))};var EI=({showNoBlockSelectedMessage:e=!0})=>{const{count:t,selectedBlockName:n,selectedBlockClientId:r,blockType:o,topLevelLockedBlock:i}=(0,m.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:r,__unstableGetContentLockingParent:o,getTemplateLock:i}=e(zr),a=t(),s=a&&r(a),c=s&&(0,l.getBlockType)(s);return{count:n(),selectedBlockClientId:a,selectedBlockName:s,blockType:c,topLevelLockedBlock:o(a)||("contentOnly"===i(a)?a:void 0)}}),[]),a=pI(o?.name),s=a?.length>1,u=function(e,t){return(0,m.useSelect)((t=>{if(e){const n=t(zr).getSettings().blockInspectorAnimation,r=n?.animationParent,{getSelectedBlockClientId:o,getBlockParentsByBlockName:i}=t(zr);return i(o(),r,!0)[0]||e.name===r?n?.[e.name]:null}return null}),[t,e])}(o,r);if(t>1)return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)(Kx,null),s?(0,c.createElement)(cI,{tabs:a}):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qa.Slot,null),(0,c.createElement)(qa.Slot,{group:"color",label:(0,b.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qa.Slot,{group:"typography",label:(0,b.__)("Typography")}),(0,c.createElement)(qa.Slot,{group:"dimensions",label:(0,b.__)("Dimensions")}),(0,c.createElement)(qa.Slot,{group:"border",label:(0,b.__)("Border")}),(0,c.createElement)(qa.Slot,{group:"styles"})));const p=n===(0,l.getUnregisteredTypeHandlerName)();return o&&r&&!p?i?(0,c.createElement)(vI,{topLevelLockedBlock:i}):(0,c.createElement)(_I,{animate:u,wrapper:e=>(0,c.createElement)(kI,{blockInspectorAnimationSettings:u,selectedBlockClientId:r},e)},(0,c.createElement)(SI,{clientId:r,blockName:o.name})):e?(0,c.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,b.__)("No block selected.")):null};var wI=function({clientIds:e,hideDragHandle:t}){const{canMove:n,rootClientId:r,isFirst:o,isLast:i,orientation:a}=(0,m.useSelect)((t=>{const{getBlockIndex:n,getBlockListSettings:r,canMoveBlocks:o,getBlockOrder:i,getBlockRootClientId:a}=t(zr),l=Array.isArray(e)?e:[e],s=l[0],c=a(s),u=n(s),p=n(l[l.length-1]),d=i(c);return{canMove:o(e,c),rootClientId:c,isFirst:0===u,isLast:p===d.length-1,orientation:r(c)?.orientation}}),[e]);if(!n||o&&i&&!r)return null;const l=(0,b.__)("Drag");return(0,c.createElement)(f.ToolbarGroup,{className:p()("block-editor-block-mover",{"is-horizontal":"horizontal"===a})},!t&&(0,c.createElement)(tS,{clientIds:e},(e=>(0,c.createElement)(f.Button,{icon:Af,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:l,tabIndex:"-1",...e}))),(0,c.createElement)("div",{className:"block-editor-block-mover__move-button-container"},(0,c.createElement)(f.ToolbarItem,null,(t=>(0,c.createElement)(qk,{clientIds:e,...t}))),(0,c.createElement)(f.ToolbarItem,null,(t=>(0,c.createElement)(Jk,{clientIds:e,...t})))))};var CI=function({clientIds:e,...t}){return(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(f.ToolbarItem,null,(n=>(0,c.createElement)($S,{clientIds:e,toggleProps:n,...t}))))};function xI(){const{selectBlock:e,toggleBlockHighlight:t}=(0,m.useDispatch)(zr),{firstParentClientId:n,isVisible:r,isDistractionFree:o}=(0,m.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:r,getSettings:o,getBlockEditingMode:i}=Ur(e(zr)),{hasBlockSupport:a}=e(l.store),s=n(r()),c=s[s.length-1],u=t(c),p=(0,l.getBlockType)(u),d=o();return{firstParentClientId:c,isVisible:c&&"default"===i(c)&&a(p,"__experimentalParentSelector",!0),isDistractionFree:d.isDistractionFree}}),[]),i=Jv(n),a=(0,c.useRef)(),{gestures:s}=zS({ref:a,onChange(e){e&&o||t(n,e)}});return r?(0,c.createElement)("div",{className:"block-editor-block-parent-selector",key:n,ref:a,...s},(0,c.createElement)(f.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:(0,b.sprintf)((0,b.__)("Select %s"),i?.title),showTooltip:!0,icon:(0,c.createElement)(Hp,{icon:i?.icon})})):null}function II({blocks:e}){return(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,c.createElement)(f.Popover,{className:"block-editor-block-switcher__preview__popover",placement:"bottom-start",focusOnMount:!1},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,b.__)("Preview")),(0,c.createElement)(Ef,{viewportWidth:500,blocks:e})))))}const AI={};function BI({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:r,icon:o,title:i}=e;return(0,c.createElement)(f.MenuItem,{className:(0,l.getBlockMenuDefaultClassName)(r),onClick:e=>{e.preventDefault(),t(r)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(r)},(0,c.createElement)(Hp,{icon:o,showColors:!0}),i)}var PI=({transformations:e,onSelect:t,blocks:n})=>{const[r,o]=(0,c.useState)();return(0,c.createElement)(c.Fragment,null,r&&(0,c.createElement)(II,{blocks:(0,l.cloneBlock)(n[0],e.find((({name:e})=>e===r)).attributes)}),e?.map((e=>(0,c.createElement)(BI,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:o}))))};function TI({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=>(0,c.createElement)(OI,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:n})))}function OI({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:r,icon:o,title:i,isDisabled:a}=e;return(0,c.createElement)(f.MenuItem,{className:(0,l.getBlockMenuDefaultClassName)(r),onClick:e=>{e.preventDefault(),t(r)},disabled:a,onMouseLeave:()=>n(null),onMouseEnter:()=>n(r)},(0,c.createElement)(Hp,{icon:o,showColors:!0}),i)}var MI=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:r,onSelectVariation:o,blocks:i})=>{const[a,s]=(0,c.useState)(),{priorityTextTransformations:u,restTransformations:p}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,c.useMemo)((()=>{const n=Object.keys(t);return e.reduce(((e,t)=>{const{name:r}=t;return n.includes(r)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]})}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=>t[e]<t[n]?-1:1)),n}(t),d=u.length&&p.length,m=!!p.length&&(0,c.createElement)(TI,{restTransformations:p,onSelect:r,setHoveredTransformItemName:s});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.MenuGroup,{label:(0,b.__)("Transform to"),className:e},a&&(0,c.createElement)(II,{blocks:(0,l.switchToBlockType)(i,a)}),!!n?.length&&(0,c.createElement)(PI,{transformations:n,blocks:i,onSelect:o}),u.map((e=>(0,c.createElement)(OI,{key:e.name,item:e,onSelect:r,setHoveredTransformItemName:s}))),!d&&m),!!d&&(0,c.createElement)(f.MenuGroup,{className:e},m))};const RI=()=>{};function NI({clientId:e,onSwitch:t=RI}){const{onSelect:n,stylesToRender:r,activeStyle:o}=eE({clientId:e,onSwitch:t});return r&&0!==r.length?(0,c.createElement)(c.Fragment,null,r.map((e=>{const t=e.label||e.name;return(0,c.createElement)(f.MenuItem,{key:e.name,icon:o.name===e.name?Rb:null,onClick:()=>n(e)},(0,c.createElement)(f.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function FI({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,c.createElement)(f.MenuGroup,{label:(0,b.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},(0,c.createElement)(NI,{clientId:n,onSwitch:t}))}const LI=(e,t,n=new Set)=>{const{clientId:r,name:o,innerBlocks:i=[]}=e;if(!n.has(r)){if(o===t)return e;for(const e of i){const r=LI(e,t,n);if(r)return r}}},DI=(e,t)=>{const n=((e,t)=>{const n=(0,l.__experimentalGetBlockAttributesNamesByRole)(e,"content");return n?.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var UI=(e,t)=>(0,c.useMemo)((()=>e.reduce(((e,n)=>{const r=((e,t)=>{const n=t.map((e=>(0,l.cloneBlock)(e))),r=new Set;for(const t of e){let e=!1;for(const o of n){const n=LI(o,t.name,r);if(n){e=!0,r.add(n.clientId),DI(n,t);break}}if(!e)return}return n})(t,n.blocks);return r&&e.push({...n,transformedBlocks:r}),e}),[])),[e,t]);function jI({patterns:e,onSelect:t}){return(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,c.createElement)(f.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,b.__)("Preview")),(0,c.createElement)(zI,{patterns:e,onSelect:t})))))}function zI({patterns:e,onSelect:t}){const n=(0,f.__unstableUseCompositeState)();return(0,c.createElement)(f.__unstableComposite,{...n,role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,b.__)("Patterns list")},e.map((e=>(0,c.createElement)(VI,{key:e.name,pattern:e,onSelect:t,composite:n}))))}function VI({pattern:e,onSelect:t,composite:n}){const r="block-editor-block-switcher__preview-patterns-container",o=(0,d.useInstanceId)(VI,`${r}-list__item-description`);return(0,c.createElement)("div",{className:`${r}-list__list-item`},(0,c.createElement)(f.__unstableCompositeItem,{role:"option",as:"div",...n,"aria-label":e.title,"aria-describedby":e.description?o:void 0,className:`${r}-list__item`,onClick:()=>t(e.transformedBlocks)},(0,c.createElement)(Ef,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,c.createElement)("div",{className:`${r}-list__item-title`},e.title)),!!e.description&&(0,c.createElement)(f.VisuallyHidden,{id:o},e.description))}var GI=function({blocks:e,patterns:t,onSelect:n}){const[r,o]=(0,c.useState)(!1),i=UI(t,e);return i.length?(0,c.createElement)(f.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},r&&(0,c.createElement)(jI,{patterns:i,onSelect:n}),(0,c.createElement)(f.MenuItem,{onClick:e=>{e.preventDefault(),o(!r)},icon:zp},(0,b.__)("Patterns"))):null};const HI=({clientIds:e,blocks:t})=>{const{replaceBlocks:n,multiSelect:r,updateBlockAttributes:o}=(0,m.useDispatch)(zr),i=Jv(t[0].clientId),{possibleBlockTransformations:a,canRemove:s,hasBlockStyles:u,icon:p,patterns:d}=(0,m.useSelect)((n=>{const{getBlockRootClientId:r,getBlockTransformItems:o,__experimentalGetPatternTransformItems:a,canRemoveBlocks:s}=n(zr),{getBlockStyles:c,getBlockType:u}=n(l.store),p=r(Array.isArray(e)?e[0]:e),[{name:d}]=t,f=1===t.length,m=f&&c(d);let y;if(f)y=i?.icon;else{y=1===new Set(t.map((({name:e})=>e))).size?u(d)?.icon:Wx}return{possibleBlockTransformations:o(t,p),canRemove:s(e,p),hasBlockStyles:!!m?.length,icon:y,patterns:a(t,p)}}),[e,t,i?.icon]),y=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:r}=(0,m.useSelect)((n=>{const{getBlockRootClientId:r,getBlockAttributes:o,canRemoveBlocks:i}=n(zr),{getActiveBlockVariation:a,getBlockVariations:s}=n(l.store),c=r(Array.isArray(e)?e[0]:e),u=i(e,c);if(1!==t.length||!u)return AI;const[p]=t;return{blockVariationTransformations:s(p.name,"transform"),activeBlockVariation:a(p.name,o(p.clientId))}}),[e,t]);return(0,c.useMemo)((()=>r?.filter((({name:e})=>e!==n?.name))),[r,n])}({clientIds:e,blocks:t}),g=xk({clientId:Array.isArray(e)?e[0]:e,maximumLength:35}),h=1===t.length&&(0,l.isReusableBlock)(t[0]),v=1===t.length&&(0,l.isTemplatePart)(t[0]);function _(e){e.length>1&&r(e[0].clientId,e[e.length-1].clientId)}const k=!!a.length&&s&&!v,S=!!y?.length,E=!!d?.length&&s;if(!u&&!k&&!S)return(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(f.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:g,icon:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Hp,{icon:p,showColors:!0}),(h||v)&&(0,c.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},g))}));const w=g,C=1===t.length?(0,b.sprintf)((0,b.__)("%s: Change block type or style"),g):(0,b.sprintf)((0,b._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),x=k||S,I=u||x||E;return(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(f.ToolbarItem,null,(r=>(0,c.createElement)(f.DropdownMenu,{className:"block-editor-block-switcher",label:w,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Hp,{icon:p,className:"block-editor-block-switcher__toggle",showColors:!0}),(h||v)&&(0,c.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},g)),toggleProps:{describedBy:C,...r},menuProps:{orientation:"both"}},(({onClose:r})=>I&&(0,c.createElement)("div",{className:"block-editor-block-switcher__container"},E&&(0,c.createElement)(GI,{blocks:t,patterns:d,onSelect:t=>{!function(t){n(e,t),_(t)}(t),r()}}),x&&(0,c.createElement)(MI,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:a,possibleBlockVariationTransformations:y,blocks:t,onSelect:o=>{!function(r){const o=(0,l.switchToBlockType)(t,r);n(e,o),_(o)}(o),r()},onSelectVariation:e=>{!function(e){o(t[0].clientId,{...y.find((({name:t})=>t===e)).attributes})}(e),r()}}),u&&(0,c.createElement)(FI,{hoveredBlock:t[0],onSwitch:r})))))))};var $I=({clientIds:e})=>{const t=(0,m.useSelect)((t=>t(zr).getBlocksByClientId(e)),[e]);return!t.length||t.some((e=>!e))?null:(0,c.createElement)(HI,{clientIds:e,blocks:t})};function WI({clientId:e,wrapperRef:t}){const{canEdit:n,canMove:r,canRemove:o,canLock:i}=v_(e),[a,l]=(0,c.useReducer)((e=>!e),!1),s=(0,c.useRef)(null),u=(0,c.useRef)(!0),p=!i||n&&r&&o;return(0,c.useEffect)((()=>{u.current?u.current=!1:!a&&p&&el.focus.focusable.find(t.current,{sequential:!1}).find((e=>"BUTTON"===e.tagName&&e!==s.current))?.focus()}),[a,p,t]),p?null:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.ToolbarGroup,{className:"block-editor-block-lock-toolbar"},(0,c.createElement)(f.ToolbarButton,{icon:S_,label:(0,b.__)("Unlock"),onClick:l,ref:s})),a&&(0,c.createElement)(C_,{clientId:e,onClose:l}))}var KI=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));var qI=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"}));var JI=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"}));const ZI={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"}};var YI=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:r}=h_(),{replaceBlocks:o}=(0,m.useDispatch)(zr),{canRemove:i,variations:a}=(0,m.useSelect)((e=>{const{canRemoveBlocks:r}=e(zr),{getBlockVariations:o}=e(l.store);return{canRemove:r(t),variations:o(n,"transform")}}),[t,n]),s=r=>{const i=(0,l.switchToBlockType)(e,n);"string"!=typeof r&&(r="group"),i&&i.length>0&&(i[0].attributes.layout=ZI[r],o(t,i))};if(!r||!i)return null;const u=!!a.find((({name:e})=>"group-row"===e)),p=!!a.find((({name:e})=>"group-stack"===e));return(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(f.ToolbarButton,{icon:KI,label:(0,b._x)("Group","verb"),onClick:s}),u&&(0,c.createElement)(f.ToolbarButton,{icon:qI,label:(0,b._x)("Row","single horizontal line"),onClick:()=>s("row")}),p&&(0,c.createElement)(f.ToolbarButton,{icon:JI,label:(0,b._x)("Stack","verb"),onClick:()=>s("stack")}))};function QI({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,m.useSelect)((e=>!!t&&"html"===e(zr).getBlockMode(t)),[t]),{toggleBlockMode:r}=(0,m.useDispatch)(zr);return n?(0,c.createElement)(f.ToolbarGroup,null,(0,c.createElement)(f.ToolbarButton,{onClick:()=>{r(t)}},(0,b.__)("Edit visually"))):null}var XI=({hideDragHandle:e})=>{const{blockClientIds:t,blockClientId:n,blockType:r,hasFixedToolbar:o,isDistractionFree:i,isValid:a,isVisual:s,blockEditingMode:u}=(0,m.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:r,isBlockValid:o,getBlockRootClientId:i,getSettings:a,getBlockEditingMode:s}=Ur(e(zr)),c=r(),u=c[0],p=i(u),d=a();return{blockClientIds:c,blockClientId:u,blockType:u&&(0,l.getBlockType)(t(u)),hasFixedToolbar:d.hasFixedToolbar,isDistractionFree:d.isDistractionFree,rootClientId:p,isValid:c.every((e=>o(e))),isVisual:c.every((e=>"visual"===n(e))),blockEditingMode:s(u)}}),[]),y=(0,c.useRef)(null),{toggleBlockHighlight:g}=(0,m.useDispatch)(zr),h=(0,c.useRef)(),{showMovers:b,gestures:v}=zS({ref:h,onChange(e){e&&i||g(n,e)}}),_=(0,d.useViewportMatch)("medium","<")||o,k=!(0,d.useViewportMatch)("medium","<");if(r&&!(0,l.hasBlockSupport)(r,"__experimentalToolbar",!0))return null;const S=_||b;if(0===t.length)return null;const E=a&&s,w=t.length>1,C=(0,l.isReusableBlock)(r)||(0,l.isTemplatePart)(r),x=p()("block-editor-block-toolbar",{"is-showing-movers":S,"is-synced":C});return(0,c.createElement)("div",{className:x,ref:y},!w&&k&&"default"===u&&(0,c.createElement)(xI,null),(E||w)&&"default"===u&&(0,c.createElement)("div",{ref:h,...v},(0,c.createElement)(f.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},(0,c.createElement)($I,{clientIds:t}),!w&&(0,c.createElement)(WI,{clientId:t[0],wrapperRef:y}),(0,c.createElement)(wI,{clientIds:t,hideDragHandle:e}))),E&&w&&(0,c.createElement)(YI,null),E&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Xr.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(Xr.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(Xr.Slot,{className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(Xr.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(Xr.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(Dx.Provider,{value:r?.name},(0,c.createElement)(Lx.Slot,null))),(0,c.createElement)(QI,{clientIds:t}),"default"===u&&(0,c.createElement)(CI,{clientIds:t}))};var eA=function({clientId:e,rootClientId:t}){const n=Jv(e),r=(0,m.useSelect)((n=>{const{getBlock:r,getBlockIndex:o,hasBlockMovingClientId:i,getBlockListSettings:a,__unstableGetEditorMode:l}=n(zr),s=o(e),{name:c,attributes:u}=r(e);return{index:s,name:c,attributes:u,blockMovingMode:i(),orientation:a(t)?.orientation,editorMode:l()}}),[e,t]),{index:o,name:i,attributes:a,blockMovingMode:s,orientation:u,editorMode:d}=r,{setNavigationMode:y,removeBlock:g}=(0,m.useDispatch)(zr),h=(0,c.useRef)(),v=(0,l.getBlockType)(i),_=(0,l.__experimentalGetAccessibleBlockLabel)(v,a,o+1,u);(0,c.useEffect)((()=>{h.current.focus(),(0,Cn.speak)(_)}),[_]);const k=Ap(e),{hasBlockMovingClientId:S,getBlockIndex:E,getBlockRootClientId:w,getClientIdsOfDescendants:C,getSelectedBlockClientId:x,getMultiSelectedBlocksEndClientId:I,getPreviousBlockClientId:A,getNextBlockClientId:B}=(0,m.useSelect)(zr),{selectBlock:P,clearSelectedBlock:T,setBlockMovingClientId:O,moveBlockToPosition:M}=(0,m.useDispatch)(zr),R=p()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!s}),N=(0,b.__)("Drag");return(0,c.createElement)("div",{className:R},(0,c.createElement)(f.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(Hp,{icon:n?.icon,showColors:!0})),(0,c.createElement)(f.FlexItem,null,"zoom-out"===d&&(0,c.createElement)(wI,{clientIds:[e],hideDragHandle:!0}),"navigation"===d&&(0,c.createElement)(tS,{clientIds:[e]},(e=>(0,c.createElement)(f.Button,{icon:Af,className:"block-selection-button_drag-handle","aria-hidden":"true",label:N,tabIndex:"-1",...e})))),(0,c.createElement)(f.FlexItem,null,(0,c.createElement)(f.Button,{ref:h,onClick:"navigation"===d?()=>y(!1):void 0,onKeyDown:function(t){const{keyCode:n}=t,r=n===kp.UP,o=n===kp.DOWN,i=n===kp.LEFT,a=n===kp.RIGHT,l=n===kp.TAB,s=n===kp.ESCAPE,c=n===kp.ENTER,u=n===kp.SPACE,p=t.shiftKey;if(n===kp.BACKSPACE||n===kp.DELETE)return g(e),void t.preventDefault();const d=x(),f=I(),m=A(f||d),y=B(f||d),h=l&&p||r,b=l&&!p||o,v=i,_=a;let R;if(h)R=m;else if(b)R=y;else if(v){var N;R=null!==(N=w(d))&&void 0!==N?N:d}else if(_){var F;R=null!==(F=C([d])[0])&&void 0!==F?F:d}const L=S();if(s&&L&&!t.defaultPrevented&&(O(null),t.preventDefault()),(c||u)&&L){const e=w(L),t=w(d),n=E(L);let r=E(d);n<r&&e===t&&(r-=1),M(L,e,t,r),P(L),O(null)}if(b||h||v||_)if(R)t.preventDefault(),P(R);else if(l&&d){let e;if(b){e=k;do{e=el.focus.tabbable.findNext(e)}while(e&&k.contains(e));e||(e=k.ownerDocument.defaultView.frameElement,e=el.focus.tabbable.findNext(e))}else e=el.focus.tabbable.findPrevious(k);e&&(t.preventDefault(),e.focus(),T())}},label:_,showTooltip:!1,className:"block-selection-button_select-button"},(0,c.createElement)(Ik,{clientId:e,maximumLength:35})))))};var tA=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var nA=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));function rA(e="default"){const t=y[e]?.Slot,n=(0,f.__experimentalUseSlotFills)(t?.__unstableName);return t?!!n?.length:("undefined"!=typeof process&&process.env,null)}var oA=function({focusOnMount:e,isFixed:t,...n}){const[r,o]=(0,c.useState)(!1),i=(0,c.useRef)(),a=(0,d.useViewportMatch)("medium"),{blockType:s,blockEditingMode:u,hasParents:g,showParentSelector:h,selectedBlockClientId:v}=(0,m.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:r,getBlockEditingMode:o}=Ur(e(zr)),{getBlockType:i}=e(l.store),a=r(),s=a[0],c=n(s),u=c[c.length-1],p=i(t(u));return{selectedBlockClientId:s,blockType:s&&i(t(s)),blockEditingMode:o(s),hasParents:c.length,showParentSelector:p&&"default"===o(u)&&(0,l.hasBlockSupport)(p,"__experimentalParentSelector",!0)&&a.length<=1&&"default"===o(s)}}),[]);(0,c.useEffect)((()=>{o(!1)}),[v]);const _=(0,d.useViewportMatch)("large",">="),k=document.body.classList.contains("is-fullscreen-mode");(0,c.useLayoutEffect)((()=>{if(!t||!s)return;const e=document.querySelector(".block-editor-block-contextual-toolbar");if(!e)return;if(!_)return void(e.style={});if(r)return void(e.style.width="auto");const n=document.querySelector(".edit-post-header__settings"),o=document.querySelector(".edit-site-header-edit-mode__end"),i=window.getComputedStyle(e),a=!!n&&window.getComputedStyle(n),l=!!o&&window.getComputedStyle(o),c=parseFloat(i.marginLeft),u=a?parseFloat(a.width)+10:0,p=l?parseFloat(l.width):0;e.style.width=`calc(100% - ${p+u+c+(k?0:160)}px)`}),[t,_,r,k,s]);const S=!s||(0,l.hasBlockSupport)(s,"__experimentalToolbar",!0),E=function(){let e=!1;for(const t in y)rA(t)&&(e=!0);return e}();if(!S||"default"!==u&&!E)return null;const w=p()("block-editor-block-contextual-toolbar",{"has-parent":g&&h,"is-fixed":t,"is-collapsed":r});return(0,c.createElement)(OC,{focusOnMount:e,className:w,"aria-label":(0,b.__)("Block tools"),...n},!r&&(0,c.createElement)(XI,{hideDragHandle:t}),t&&a&&s&&(0,c.createElement)(f.ToolbarGroup,{className:r?"block-editor-block-toolbar__group-expand-fixed-toolbar":"block-editor-block-toolbar__group-collapse-fixed-toolbar"},(0,c.createElement)(f.ToolbarItem,{as:f.ToolbarButton,ref:i,icon:r?tA:nA,onClick:()=>{o((e=>!e)),i.current.focus()},label:r?(0,b.__)("Show block tools"):(0,b.__)("Hide block tools")})))};const iA={placement:"top-start"},aA={...iA,flip:!1,shift:!0},lA={...iA,flip:!0,shift:!1};function sA(e,t,n,r,o){if(!e||!t)return aA;const i=n?.scrollTop||0,a=t.getBoundingClientRect(),l=i+e.getBoundingClientRect().top,s=e.ownerDocument.documentElement.clientHeight,c=l+r,u=a.top>c,p=a.height>s-r;return o||!u&&!p?lA:aA}function cA(){const e=(0,d.useViewportMatch)("medium"),{shouldShowContextualToolbar:t,canFocusHiddenToolbar:n,fixedToolbarCanBeFocused:r}=(0,m.useSelect)((t=>{const{__unstableGetEditorMode:n,isMultiSelecting:r,isTyping:o,isBlockInterfaceHidden:i,getBlock:a,getSettings:s,isNavigationMode:c,getSelectedBlockClientId:u,getFirstMultiSelectedBlockClientId:p}=Ur(t(zr)),d="edit"===n(),f=s().hasFixedToolbar,m=s().isDistractionFree,y=p()||u(),g=!!y,h=(0,l.isUnmodifiedDefaultBlock)(a(y)||{}),b=d&&!f&&(!m||c())&&e&&!r()&&!o()&&g&&!h&&!i();return{shouldShowContextualToolbar:b,canFocusHiddenToolbar:d&&g&&!b&&!f&&!m&&!h,fixedToolbarCanBeFocused:(f||!e)&&y}}),[e]);return{shouldShowContextualToolbar:t,canFocusHiddenToolbar:n,fixedToolbarCanBeFocused:r}}function uA(e){const{__unstableGetEditorMode:t,hasMultiSelection:n,isTyping:r,getLastMultiSelectedBlockClientId:o}=e(zr);return{editorMode:t(),hasMultiSelection:n(),isTyping:r(),lastClientId:n()?o():null}}function pA({clientId:e,rootClientId:t,isEmptyDefaultBlock:n,capturingClientId:r,__unstablePopoverSlot:o,__unstableContentRef:i}){const{editorMode:a,hasMultiSelection:l,isTyping:s,lastClientId:u}=(0,m.useSelect)(uA,[]),f=(0,m.useSelect)((t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:r,getBlockOrder:o}=t(zr);if(!n())return!1;const i=r();return o(i.rootClientId)[i.index]===e}),[e]),y=(0,c.useRef)(!1),{shouldShowContextualToolbar:g,canFocusHiddenToolbar:h}=cA(),{stopTyping:b}=(0,m.useDispatch)(zr),v=!s&&"edit"===a&&n,_=!l&&("navigation"===a||"zoom-out"===a);(0,rd.useShortcut)("core/block-editor/focus-toolbar",(()=>{y.current=!0,b(!0)}),{isDisabled:!h}),(0,c.useEffect)((()=>{y.current=!1}));const k=(0,c.useRef)();(0,c.useEffect)((()=>{k.current=void 0}),[e]);const S=function({contentElement:e,clientId:t}){const n=Ap(t),[r,o]=(0,c.useState)(0),{blockIndex:i,isSticky:a}=(0,m.useSelect)((e=>{const{getBlockIndex:n,getBlockAttributes:r}=e(zr);return{blockIndex:n(t),isSticky:o_(r(t))}}),[t]),l=(0,c.useMemo)((()=>{if(e)return(0,el.getScrollContainer)(e)}),[e]),[s,u]=(0,c.useState)((()=>sA(e,n,l,r,a))),p=(0,d.useRefEffect)((e=>{o(e.offsetHeight)}),[]),f=(0,c.useCallback)((()=>u(sA(e,n,l,r,a))),[e,n,l,r]);return(0,c.useLayoutEffect)(f,[i,f]),(0,c.useLayoutEffect)((()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let r;t?.addEventHandler?.("resize",f);const o=n?.ownerDocument?.defaultView;return o.ResizeObserver&&(r=new o.ResizeObserver(f),r.observe(n)),()=>{t?.removeEventHandler?.("resize",f),r&&r.disconnect()}}),[f,e,n]),{...s,ref:p}}({contentElement:i?.current,clientId:e});return v?(0,c.createElement)(Cy,{clientId:r||e,__unstableCoverTarget:!0,bottomClientId:u,className:p()("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":f}),__unstablePopoverSlot:o,__unstableContentRef:i,resize:!1,shift:!1,...S},(0,c.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},(0,c.createElement)(my,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0}))):_||g?(0,c.createElement)(Cy,{clientId:r||e,bottomClientId:u,className:p()("block-editor-block-list__block-popover",{"is-insertion-point-visible":f}),__unstablePopoverSlot:o,__unstableContentRef:i,resize:!1,...S},g&&(0,c.createElement)(oA,{focusOnMount:y.current,__experimentalInitialIndex:k.current,__experimentalOnIndexChange:e=>{k.current=e},key:e}),_&&(0,c.createElement)(eA,{clientId:e,rootClientId:t})):null}function dA(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:r,getBlock:o,getBlockParents:i,__experimentalGetBlockListSettingsForBlocks:a}=e(zr),s=t()||n();if(!s)return;const{name:c,attributes:u={}}=o(s)||{},p=i(s),d=a(p),f=p.find((e=>d[e]?.__experimentalCaptureToolbars));return{clientId:s,rootClientId:r(s),name:c,isEmptyDefaultBlock:c&&(0,l.isUnmodifiedDefaultBlock)({name:c,attributes:u}),capturingClientId:f}}function fA({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=(0,m.useSelect)(dA,[]);if(!n)return null;const{clientId:r,rootClientId:o,name:i,isEmptyDefaultBlock:a,capturingClientId:l}=n;return i?(0,c.createElement)(pA,{clientId:r,rootClientId:o,isEmptyDefaultBlock:a,capturingClientId:l,__unstablePopoverSlot:e,__unstableContentRef:t}):null}var mA=function({__unstableContentRef:e}){const[t,n]=(0,c.useState)(!1),r=(0,m.useSelect)((e=>e(zr).getBlockOrder()),[]);return(0,c.useEffect)((()=>{const e=setTimeout((()=>{n(!0)}),500);return()=>{clearTimeout(e)}}),[]),t?r.map(((t,n)=>n===r.length-1?null:(0,c.createElement)(Ey,{key:t,previousClientId:t,nextClientId:r[n+1],__unstableContentRef:e},(0,c.createElement)("div",{className:"block-editor-block-list__insertion-point-inserter is-with-inserter"},(0,c.createElement)(my,{position:"bottom center",clientId:r[n+1],__experimentalIsQuick:!0}))))):null};function yA(e){const{__unstableGetEditorMode:t,getSettings:n,isTyping:r}=e(zr);return{isZoomOutMode:"zoom-out"===t(),hasFixedToolbar:n().hasFixedToolbar,isTyping:r()}}function gA({children:e,__unstableContentRef:t,...n}){const r=(0,d.useViewportMatch)("medium"),{hasFixedToolbar:o,isZoomOutMode:i,isTyping:a}=(0,m.useSelect)(yA,[]),l=(0,rd.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:s,getBlockRootClientId:u}=(0,m.useSelect)(zr),{duplicateBlocks:p,removeBlocks:y,insertAfterBlock:g,insertBeforeBlock:h,clearSelectedBlock:b,selectBlock:v,moveBlocksUp:_,moveBlocksDown:k}=(0,m.useDispatch)(zr);const S=ky(t),E=ky(t);return(0,c.createElement)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(l("core/block-editor/move-up",e)){const t=s();if(t.length){e.preventDefault();const n=u(t[0]);_(t,n)}}else if(l("core/block-editor/move-down",e)){const t=s();if(t.length){e.preventDefault();const n=u(t[0]);k(t,n)}}else if(l("core/block-editor/duplicate",e)){const t=s();t.length&&(e.preventDefault(),p(t))}else if(l("core/block-editor/remove",e)){const t=s();t.length&&(e.preventDefault(),y(t))}else if(l("core/block-editor/insert-after",e)){const t=s();t.length&&(e.preventDefault(),g(t[t.length-1]))}else if(l("core/block-editor/insert-before",e)){const t=s();t.length&&(e.preventDefault(),h(t[0]))}else if(l("core/block-editor/unselect",e)){const n=s();n.length&&(e.preventDefault(),n.length>1?v(n[0]):b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges(),t?.current.focus())}}},(0,c.createElement)(Ay.Provider,{value:(0,c.useRef)(!1)},!a&&(0,c.createElement)(Py,{__unstableContentRef:t}),!i&&(o||!r)&&(0,c.createElement)(oA,{isFixed:!0}),(0,c.createElement)(fA,{__unstableContentRef:t}),(0,c.createElement)(f.Popover.Slot,{name:"block-toolbar",ref:S}),e,(0,c.createElement)(f.Popover.Slot,{name:"__unstable-block-tools-after",ref:E}),i&&(0,c.createElement)(mA,{__unstableContentRef:t})))}const hA=()=>{};var bA=(0,c.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:r,showMostUsedBlocks:o=!1,__experimentalInsertionIndex:i,__experimentalFilterValue:a,onSelect:l=hA,shouldFocusBlock:s=!1},u){const{destinationRootClientId:p,prioritizePatterns:d}=(0,m.useSelect)((n=>{const{getBlockRootClientId:r,getSettings:o}=n(zr),i=e||r(t)||void 0;return{destinationRootClientId:i,prioritizePatterns:o().__experimentalPreferPatternsOnRoot&&!i}}),[t,e]);return(0,c.createElement)(cy,{onSelect:l,rootClientId:p,clientId:t,isAppender:n,showInserterHelpPanel:r,showMostUsedBlocks:o,__experimentalInsertionIndex:i,__experimentalFilterValue:a,shouldFocusBlock:s,prioritizePatterns:d,ref:u})}));function vA(){return null}vA.Register=function(){const{registerShortcut:e}=(0,m.useDispatch)(rd.store);return(0,c.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:(0,b.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,b.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,b.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,b.__)("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:(0,b.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,b.__)("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:(0,b.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,b.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,b.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,b.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var _A=vA;function kA(){return H()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const SA=new Set([kp.UP,kp.RIGHT,kp.DOWN,kp.LEFT,kp.ENTER,kp.BACKSPACE]);function EA(){const e=(0,m.useSelect)((e=>e(zr).isTyping()),[]),{stopTyping:t}=(0,m.useDispatch)(zr);return(0,d.useRefEffect)((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])}function wA(){const{isTyping:e,hasInlineToolbar:t}=(0,m.useSelect)((e=>{const{isTyping:t,getSettings:n}=e(zr);return{isTyping:t(),hasInlineToolbar:n().hasInlineToolbar}}),[]),{startTyping:n,stopTyping:r}=(0,m.useDispatch)(zr),o=EA(),i=(0,d.useRefEffect)((o=>{const{ownerDocument:i}=o,{defaultView:a}=i,l=a.getSelection();if(e){let c;function u(e){const{target:t}=e;c=a.setTimeout((()=>{(0,el.isTextField)(t)||r()}))}function p(e){const{keyCode:t}=e;t!==kp.ESCAPE&&t!==kp.TAB||r()}function d(){l.isCollapsed||r()}return o.addEventListener("focus",u),o.addEventListener("keydown",p),t||i.addEventListener("selectionchange",d),()=>{a.clearTimeout(c),o.removeEventListener("focus",u),o.removeEventListener("keydown",p),i.removeEventListener("selectionchange",d)}}function s(e){const{type:t,target:r}=e;(0,el.isTextField)(r)&&o.contains(r)&&("keydown"!==t||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&SA.has(t)}(e))&&n()}return o.addEventListener("keypress",s),o.addEventListener("keydown",s),()=>{o.removeEventListener("keypress",s),o.removeEventListener("keydown",s)}}),[e,t,n,r]);return(0,d.useMergeRefs)([o,i])}var CA=function({children:e}){return(0,c.createElement)("div",{ref:wA()},e)};const xA=-1!==window.navigator.userAgent.indexOf("Trident"),IA=new Set([kp.UP,kp.DOWN,kp.LEFT,kp.RIGHT]),AA=.75;function BA(){const e=(0,m.useSelect)((e=>e(zr).hasSelectedBlock()),[]);return(0,d.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:r}=n;let o,i,a;function l(){o||(o=r.requestAnimationFrame((()=>{d(),o=null})))}function s(e){i&&r.cancelAnimationFrame(i),i=r.requestAnimationFrame((()=>{c(e),i=null}))}function c({keyCode:e}){if(!f())return;const o=(0,el.computeCaretRect)(r);if(!o)return;if(!a)return void(a=o);if(IA.has(e))return void(a=o);const i=o.top-a.top;if(0===i)return;const l=(0,el.getScrollContainer)(t);if(!l)return;const s=l===n.body||l===n.documentElement,c=s?r.scrollY:l.scrollTop,u=s?0:l.getBoundingClientRect().top,p=s?a.top/r.innerHeight:(a.top-u)/(r.innerHeight-u);if(0===c&&p<AA&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(a=o);const d=s?r.innerHeight:l.clientHeight;a.top+a.height>u+d||a.top<u?a=o:s?r.scrollBy(0,i):l.scrollTop+=i}function u(){n.addEventListener("selectionchange",p)}function p(){n.removeEventListener("selectionchange",p),d()}function d(){f()&&(a=(0,el.computeCaretRect)(r))}function f(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return r.addEventListener("scroll",l,!0),r.addEventListener("resize",l,!0),t.addEventListener("keydown",s),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{r.removeEventListener("scroll",l,!0),r.removeEventListener("resize",l,!0),t.removeEventListener("keydown",s),t.removeEventListener("keyup",c),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",p),r.cancelAnimationFrame(o),r.cancelAnimationFrame(i)}}),[e])}var PA=xA?e=>e.children:function({children:e}){return(0,c.createElement)("div",{ref:BA(),className:"block-editor__typewriter"},e)};const TA=(0,c.createContext)({});function OA({children:e,uniqueId:t,blockName:n=""}){const r=(0,c.useContext)(TA),{name:o}=Wr();n=n||o;const i=(0,c.useMemo)((()=>function(e,t,n){const r={...e,[t]:e[t]?new Set(e[t]):new Set};return r[t].add(n),r}(r,n,t)),[r,n,t]);return(0,c.createElement)(TA.Provider,{value:i},e)}function MA(e,t=""){const n=(0,c.useContext)(TA),{name:r}=Wr();return t=t||r,Boolean(n[t]?.has(e))}var RA=(0,c.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(j.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function NA({title:e,help:t,actions:n=[],onClose:r}){return(0,c.createElement)(f.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4},(0,c.createElement)(f.__experimentalHStack,{alignment:"center"},(0,c.createElement)(f.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13},e),(0,c.createElement)(f.__experimentalSpacer,null),n.map((({label:e,icon:t,onClick:n})=>(0,c.createElement)(f.Button,{key:e,className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n},!t&&e))),r&&(0,c.createElement)(f.Button,{className:"block-editor-inspector-popover-header__action",label:(0,b.__)("Close"),icon:RA,onClick:r})),t&&(0,c.createElement)(f.__experimentalText,null,t))}var FA=(0,c.forwardRef)((function({onClose:e,onChange:t,...n},r){return(0,c.createElement)("div",{ref:r,className:"block-editor-publish-date-time-picker"},(0,c.createElement)(NA,{title:(0,b.__)("Publish"),actions:[{label:(0,b.__)("Now"),onClick:()=>t?.(null)}],onClose:e}),(0,c.createElement)(f.DateTimePicker,{startOfWeek:(0,AE.getSettings)().l10n.startOfWeek,onChange:t,...n}))}));const LA={button:"wp-element-button",caption:"wp-element-caption"},DA=e=>LA[e]?LA[e]:"";function UA(e,t){return Object.entries(t).every((([t,n])=>"object"==typeof n&&"object"==typeof e[t]?UA(e[t],n):e[t]===n))}const jA=(e,t)=>{if(!t||!e)return;const n=t.filter((({attributes:t})=>!(!t||!Object.keys(t).length)&&UA(e,t)));return 1===n.length?n[0]:void 0};function zA(e){const t=e?.trim().match(/^(0?[-.]?\d*\.?\d+)(r?e[m|x]|v[h|w|min|max]+|p[x|t|c]|[c|m]m|%|in|ch|Q|lh)$/);return isNaN(e)||isNaN(parseFloat(e))?t?{value:parseFloat(t[1])||t[1],unit:t[2]}:{value:e,unit:void 0}:{value:parseFloat(e),unit:"px"}}function VA(e){try{return Function(`'use strict'; return (${e})`)()}catch(e){return null}}function GA(e,t){const n=e.split(/[(),]/g).filter(Boolean),r=n.slice(1).map((e=>zA(WA(e,t)).value)).filter(Boolean);switch(n[0]){case"min":return Math.min(...r)+"px";case"max":return Math.max(...r)+"px";case"clamp":return 3!==r.length?null:r[1]<r[0]?r[0]+"px":r[1]>r[2]?r[2]+"px":r[1]+"px";case"calc":return r[0]+"px"}}function HA(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=GA(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return zA(e)}function $A(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}function WA(e,t={}){if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=zA(e);return n.unit||(n=HA(e)),$A(e)&&!n.unit?function(e){let t=!1;const n=e.match(/\d+\.?\d*[a-zA-Z]+|\.\d+[a-zA-Z]+/g);if(n)for(const r of n){const n=zA(WA(r));if(!parseFloat(n.value)){t=!0;break}e=e.replace(r,n.value)}else t=!0;const r=e.match(/(max|min|clamp)/g);if(!t&&r){const t=e.split(",");for(const n of t){const t=n.replace(/\s|calc/g,"");if($A(t)){const r=VA(t);if(r){const t=r.toFixed(0)+"px";e=e.replace(n,t)}}}const n=HA(e);return n?n.value+n.unit:null}if(t)return null;const o=VA(e);return o?o.toFixed(0)+"px":null}(e):function(e,t){const n=96,r=.01,o=Object.assign({},{fontSize:16,lineHeight:16,width:375,height:812,type:"font"},t),i={em:o.fontSize,rem:o.fontSize,vh:o.height*r,vw:o.width*r,vmin:(o.width<o.height?o.width:o.height)*r,vmax:(o.width>o.height?o.width:o.height)*r,"%":("font"===o.type?o.fontSize:o.width)*r,ch:8,ex:7.15625,lh:o.lineHeight},a={in:n,cm:37.79527559055118,mm:3.7795275590551185,pt:1.3333333333333333,pc:16,px:1,Q:.9448818897637794};return i[e.unit]?(i[e.unit]*e.value).toFixed(0)+"px":a[e.unit]?(a[e.unit]*e.value).toFixed(0)+"px":null}(n,t)}const KA={};var qA=function(e,t={}){const n=e+function(e){let t="";e.hasOwnProperty("fontSize")&&(t=":"+e.width);e.hasOwnProperty("lineHeight")&&(t=":"+e.lineHeight);e.hasOwnProperty("width")&&(t=":"+e.width);e.hasOwnProperty("height")&&(t=":"+e.height);e.hasOwnProperty("type")&&(t=":"+e.type);return t}(t);return KA[n]||(KA[n]=WA(e,t)),KA[n]};const JA={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function ZA(e){const t="var:";if(e?.startsWith?.(t)){return`var(--wp--${e.slice(4).split("|").join("--")})`}return e}function YA(e={},t,n){let r=[];return Object.keys(e).forEach((o=>{const i=t+Mi(o.replace("/","-")),a=e[o];if(a instanceof Object){const e=i+n;r=[...r,...YA(a,e,n)]}else r.push(`${i}: ${a}`)})),r}const QA=(e,t)=>{const n={};return Object.entries(e).forEach((([e,r])=>{if("root"===e||!t?.[e])return;const o="string"==typeof r;if(o||Object.entries(r).forEach((([r,o])=>{if("root"===r||!t?.[e][r])return;const i=XA({[e]:{[r]:t[e][r]}});n[o]=[...n[o]||[],...i],delete t[e][r]})),o||r.root){const i=o?r:r.root,a=XA({[e]:t[e]});n[i]=[...n[i]||[],...a],delete t[e]}})),n};function XA(e={},t="",n,r={}){const o=ui===t,i=Object.entries(l.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[r,{value:i,properties:a,useEngine:l,rootOnly:s}])=>{if(s&&!o)return t;const c=i;if("elements"===c[0]||l)return t;const u=(0,Wo.get)(e,c);if("--wp--style--root--padding"===r&&("string"==typeof u||!n))return t;if(a&&"string"!=typeof u)Object.entries(a).forEach((e=>{const[n,r]=e;if(!(0,Wo.get)(u,[r],!1))return;const o=n.startsWith("--")?n:Mi(n);t.push(`${o}: ${ZA((0,Wo.get)(u,[r]))}`)}));else if((0,Wo.get)(e,c,!1)){const n=r.startsWith("--")?r:Mi(r);t.push(`${n}: ${ZA((0,Wo.get)(e,c))}`)}return t}),[]);return(0,ea.getCSSRules)(e).forEach((e=>{if(o&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:Mi(e.key);let a=e.value;if("string"!=typeof a&&a?.ref){const e=a.ref.split(".");if(a=(0,Wo.get)(r,e),!a||a?.ref)return}"font-size"===t&&(a=li({size:a},ci(r?.settings))),i.push(`${t}: ${a}`)})),i}function eB({layoutDefinitions:e=lo,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:o,fallbackGapValue:i}){let a="",l=r?To(t?.spacing?.blockGap):"";if(o&&(n===ui?l=l||"0.5em":!r&&i&&(l=i)),l&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:o})=>{(r||"flex"===t||"grid"===t)&&o?.length&&o.forEach((t=>{const o=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{o.push(`${e}: ${t||l}`)})),o.length){let i="";i=r?n===ui?`:where(${n} .${e})${t?.selector||""}`:`${n}-${e}${t?.selector||""}`:n===ui?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,a+=`${i} { ${o.join("; ")}; }`}}))})),n===ui&&r&&(a+=`${n} { --wp--style--block-gap: ${l}; }`)),n===ui&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:r,baseStyles:o})=>{r&&t.includes(r)&&(a+=`${n} .${e} { display:${r}; }`),o?.length&&o.forEach((t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t}`)})),r.length){a+=`${`${n} .${e}${t?.selector||""}`} { ${r.join("; ")}; }`}}))}))}return a}const tB=["border","color","dimensions","spacing","typography","filter","outline","shadow"];function nB(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>tB.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const rB=(e,t)=>{var n;const r=[];if(!e?.settings)return r;const o=e=>{const t={};return pi.forEach((({path:n})=>{const r=(0,Wo.get)(e,n,!1);!1!==r&&(0,Wo.set)(t,n,r)})),t},i=o(e.settings),a=e.settings?.custom;return(Object.keys(i).length>0||a)&&r.push({presets:i,custom:a,selector:ui}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const i=o(n),a=n.custom;(Object.keys(i).length>0||a)&&r.push({presets:i,custom:a,selector:t[e]?.selector})})),r},oB=(e,t)=>{const n=rB(e,t);let r="";return n.forEach((({presets:t,custom:n,selector:o})=>{const i=function(e={},t){return pi.reduce(((n,{path:r,valueKey:o,valueFunc:i,cssVarInfix:a})=>{const l=(0,Wo.get)(e,r,[]);return["default","theme","custom"].forEach((e=>{l[e]&&l[e].forEach((e=>{o&&!i?n.push(`--wp--preset--${a}--${Mi(e.slug)}: ${e[o]}`):i&&"function"==typeof i&&n.push(`--wp--preset--${a}--${Mi(e.slug)}: ${i(e,t)}`)}))})),n}),[])}(t,e?.settings),a=YA(n,"--wp--custom--","--");a.length>0&&i.push(...a),i.length>0&&(r+=`${o}{${i.join(";")};}`)})),r},iB=(e,t,n,r,o=!1)=>{const i=((e,t)=>{var n;const r=[];if(!e?.styles)return r;const o=nB(e.styles);return o&&r.push({styles:o,selector:ui}),Object.entries(l.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements?.[t]&&r.push({styles:e.styles?.elements?.[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var o;const i=nB(n);if(n?.variations){const e={};Object.keys(n.variations).forEach((t=>{e[t]=nB(n.variations[t])})),i.variations=e}i&&t?.[e]?.selector&&r.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:i,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(null!==(o=n?.elements)&&void 0!==o?o:{}).forEach((([n,o])=>{o&&t?.[e]&&l.__EXPERIMENTAL_ELEMENTS[n]&&r.push({styles:o,selector:t[e]?.selector.split(",").map((e=>l.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),r})(e,t),a=rB(e,t),s=e?.settings?.useRootPaddingAwareAlignments,{contentSize:c,wideSize:u}=e?.settings?.layout||{};let p="body {margin: 0;";if(c&&(p+=` --wp--style--global--content-size: ${c};`),u&&(p+=` --wp--style--global--wide-size: ${u};`),s&&(p+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; }\n\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; }\n\t\t\t.has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;"),p+="}",i.forEach((({selector:t,duotoneSelector:i,styles:a,fallbackGapValue:l,hasLayoutSupport:c,featureSelectors:u,styleVariationSelectors:d})=>{if(u){const e=QA(u,a);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");p+=`${e}{${n};}`}}))}if(d&&Object.entries(d).forEach((([t,n])=>{const r=a?.variations?.[t];if(r){if(u){const e=QA(u,r);Object.entries(e).forEach((([e,t])=>{if(t.length){const r=function(e,t){const n=e.split(","),r=[];return n.forEach((e=>{r.push(`${t.trim()}${e.trim()}`)})),r.join(", ")}(e,n),o=t.join(";");p+=`${r}{${o};}`}}))}const t=XA(r,n,s,e);t.length&&(p+=`${n}{${t.join(";")};}`)}})),i){const e={};a?.filter&&(e.filter=a.filter,delete a.filter);const t=XA(e);t.length&&(p+=`${i}{${t.join(";")};}`)}o||ui!==t&&!c||(p+=eB({style:a,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:r,fallbackGapValue:l}));const f=XA(a,t,s,e);f?.length&&(p+=`${t}{${f.join(";")};}`);const m=Object.entries(a).filter((([e])=>e.startsWith(":")));m?.length&&m.forEach((([e,n])=>{const r=XA(n);if(!r?.length)return;const o=`${t.split(",").map((t=>t+e)).join(",")}{${r.join(";")};}`;p+=o}))})),p+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",p+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",p+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",n){const t=To(e?.styles?.spacing?.blockGap)||"0.5em";p+=`:where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,p+=":where(.wp-site-blocks) > :first-child:first-child { margin-block-start: 0; }",p+=":where(.wp-site-blocks) > :last-child:last-child { margin-block-end: 0; }"}return a.forEach((({selector:e,presets:t})=>{ui===e&&(e="");const n=function(e="*",t={}){return pi.reduce(((n,{path:r,cssVarInfix:o,classes:i})=>{if(!i)return n;const a=(0,Wo.get)(t,r,[]);return["default","theme","custom"].forEach((t=>{a[t]&&a[t].forEach((({slug:t})=>{i.forEach((({classSuffix:r,propertyName:i})=>{const a=`.has-${Mi(t)}-${r}`,l=e.split(",").map((e=>`${e}${a}`)).join(","),s=`var(--wp--preset--${o}--${Mi(t)})`;n+=`${l}{${i}: ${s} !important;}`}))}))})),n}),"")}(e,t);n.length>0&&(p+=n)})),p};function aB(e,t){return rB(e,t).flatMap((({presets:e})=>function(e={}){return pi.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,Wo.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,c.renderToString)((0,c.createElement)(Pv,{preset:e,key:e.slug})))))).join("")}))}(e)))}const lB=(e,t)=>{const n={};return e.forEach((e=>{const r=e.name,o=Tv(e);let i=Tv(e,"filter.duotone");if(!i){const t=Tv(e),n=(0,l.getBlockSupport)(e,"color.__experimentalDuotone",!1);i=n&&yi(t,n)}const a=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,s=e?.supports?.spacing?.blockGap?.__experimentalDefault,c=t(r),u={};c?.length&&c.forEach((e=>{const t=`.is-style-${e.name}${o}`;u[e.name]=t}));const p=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(JA).forEach((([t,r])=>{const o=Tv(e,t);o&&(n[r]=o)})),n})(e,o);n[r]={duotoneSelector:i,fallbackGapValue:s,featureSelectors:Object.keys(p).length?p:void 0,hasLayoutSupport:a,name:r,selector:o,styleVariationSelectors:Object.keys(u).length?u:void 0}})),n};const sB=(e,t)=>{let n="";return e.split("&").forEach((e=>{n+=e.includes("{")?t+e:t+"{"+e+"}"})),n};function cB(e={}){const[t]=ki("spacing.blockGap"),n=null!==t,r=!n,o=(0,m.useSelect)((e=>{const{getSettings:t}=e(zr);return!!t().disableLayoutStyles})),i=(0,m.useSelect)((e=>e(l.store).getBlockStyles),[]);return(0,c.useMemo)((()=>{var t;if(!e?.styles||!e?.settings)return[];e=function(e){return e.styles?.blocks?.["core/separator"]&&e.styles?.blocks?.["core/separator"].color?.background&&!e.styles?.blocks?.["core/separator"].color?.text&&!e.styles?.blocks?.["core/separator"].border?.color?{...e,styles:{...e.styles,blocks:{...e.styles.blocks,"core/separator":{...e.styles.blocks["core/separator"],color:{...e.styles.blocks["core/separator"].color,text:e.styles?.blocks["core/separator"].color.background}}}}}:e}(e);const a=lB((0,l.getBlockTypes)(),i),s=oB(e,a),c=iB(e,a,n,r,o),u=aB(e,a),p=[{css:s,isGlobalStyles:!0},{css:c,isGlobalStyles:!0},{css:null!==(t=e.styles.css)&&void 0!==t?t:"",isGlobalStyles:!0},{assets:u,__unstableType:"svg",isGlobalStyles:!0}];return(0,l.getBlockTypes)().forEach((t=>{if(e.styles.blocks[t.name]?.css){const n=a[t.name].selector;p.push({css:sB(e.styles.blocks[t.name]?.css,n),isGlobalStyles:!0})}})),[p,e.settings]}),[n,r,e,o])}function uB(){const{merged:e}=(0,c.useContext)(hi);return cB(e)}var pB=(0,c.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(j.Path,{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"}));function dB(e){return fB(e)}function fB(e){return!!e?.shadow}function mB({resetAllFilter:e,onChange:t,value:n,panelId:r,children:o}){return(0,c.createElement)(f.__experimentalToolsPanel,{label:(0,b.__)("Effects"),resetAll:()=>{const r=e(n);t(r)},panelId:r},o)}const yB={shadow:!0};function gB({as:e=mB,value:t,onChange:n,inheritedValue:r=t,settings:o,panelId:i,defaultControls:a=yB}){const l=fB(o),s=(u=r?.shadow,mi({settings:o},"",u));var u;const p=e=>{n(Ni(t,["shadow"],e))},d=(0,c.useCallback)((e=>({...e,shadow:void 0})),[]);return(0,c.createElement)(e,{resetAllFilter:d,value:t,onChange:n,panelId:i},l&&(0,c.createElement)(f.__experimentalToolsPanelItem,{label:(0,b.__)("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>p(void 0),isShownByDefault:a.shadow,panelId:i},(0,c.createElement)(f.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,c.createElement)(hB,{shadow:s,onShadowChange:p,settings:o}))))}const hB=({shadow:e,onShadowChange:t,settings:n})=>(0,c.createElement)(f.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles-effects-panel__shadow-dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:p()({"is-open":t}),"aria-expanded":t};return(0,c.createElement)(f.Button,{...n},(0,c.createElement)(f.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(Yi,{className:"block-editor-global-styles-effects-panel__toggle-icon",icon:pB,size:24}),(0,c.createElement)(f.FlexItem,null,(0,b.__)("Shadow"))))},renderContent:()=>(0,c.createElement)(f.__experimentalDropdownContentWrapper,{paddingSize:"medium"},(0,c.createElement)(bB,{shadow:e,onShadowChange:t,settings:n}))});function bB({shadow:e,onShadowChange:t,settings:n}){const r=n?.shadow?.presets?.default,o=n?.shadow?.presets?.theme,i=n?.shadow?.defaultPresets,a=[...i?r:[],...o||[]];return(0,c.createElement)("div",{className:"block-editor-global-styles-effects-panel__shadow-popover-container"},(0,c.createElement)(f.__experimentalVStack,{spacing:4},(0,c.createElement)(f.__experimentalHeading,{level:5},(0,b.__)("Shadow")),(0,c.createElement)(vB,{presets:a,activeShadow:e,onSelect:t})))}function vB({presets:e,activeShadow:t,onSelect:n}){return e?(0,c.createElement)(f.__experimentalGrid,{columns:6,gap:0,align:"center",justify:"center"},e.map((({name:e,slug:r,shadow:o})=>(0,c.createElement)(_B,{key:r,label:e,isActive:o===t,onSelect:()=>n(o===t?void 0:o),shadow:o})))):null}function _B({label:e,isActive:t,onSelect:n,shadow:r}){return(0,c.createElement)("div",{className:"block-editor-global-styles-effects-panel__shadow-indicator-wrapper"},(0,c.createElement)(f.Button,{className:"block-editor-global-styles-effects-panel__shadow-indicator",onClick:n,label:e,style:{boxShadow:r},showTooltip:!0},t&&(0,c.createElement)(Yi,{icon:Rb})))}function kB({value:e,onChange:t,inheritedValue:n=e}){const[r,o]=(0,c.useState)(null),i=n?.css;return(0,c.createElement)(f.__experimentalVStack,{spacing:3},(0,c.createElement)(f.TextareaControl,{label:(0,b.__)("Additional CSS"),__nextHasNoMarginBottom:!0,value:i,onChange:n=>function(n){if(t({...e,css:n}),r){const[t]=yf([{css:e}],".editor-styles-wrapper");t&&o(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void o(null);const[t]=yf([{css:e.target.value}],".editor-styles-wrapper");o(null===t?(0,b.__)("There is an error with your CSS structure."):null)},className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1}),r&&(0,c.createElement)(f.Tooltip,{text:r},(0,c.createElement)("div",{className:"block-editor-global-styles-advanced-panel__custom-css-validation-wrapper"},(0,c.createElement)(Yi,{icon:Yw,className:"block-editor-global-styles-advanced-panel__custom-css-validation-icon"}))))}function SB(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return EB(e,t,n);switch(typeof e){case"string":case"number":return}const{type:r,props:o}=e;switch(r){case c.StrictMode:case c.Fragment:return EB(o.children,t,n);case c.RawHTML:return;case qy.Content:return wB(t,n);case cx:return void t.push(o.value)}switch(typeof r){case"string":return void 0!==o.children?EB(o.children,t,n):void 0;case"function":return SB(r.prototype&&"function"==typeof r.prototype.render?new r(o).render():r(o),t,n)}}function EB(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)SB(e[n],...t)}function wB(e,t){for(let n=0;n<t.length;n++){const{name:r,attributes:o,innerBlocks:i}=t[n];SB((0,l.getSaveElement)(r,o,(0,c.createElement)(qy.Content,null)),e,i)}}const CB=[{label:(0,b._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},{label:(0,b._x)("Square - 1:1","Aspect ratio option for dimensions control"),value:"1"},{label:(0,b._x)("Standard - 4:3","Aspect ratio option for dimensions control"),value:"4/3"},{label:(0,b._x)("Portrait - 3:4","Aspect ratio option for dimensions control"),value:"3/4"},{label:(0,b._x)("Classic - 3:2","Aspect ratio option for dimensions control"),value:"3/2"},{label:(0,b._x)("Classic Portrait - 2:3","Aspect ratio option for dimensions control"),value:"2/3"},{label:(0,b._x)("Wide - 16:9","Aspect ratio option for dimensions control"),value:"16/9"},{label:(0,b._x)("Tall - 9:16","Aspect ratio option for dimensions control"),value:"9/16"},{label:(0,b._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];function xB({panelId:e,value:t,onChange:n=(()=>{}),options:r=CB,defaultValue:o=CB[0].value,isShownByDefault:i=!0}){const a=null!=t?t:"auto";return(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>a!==o,label:(0,b.__)("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:i,panelId:e},(0,c.createElement)(f.SelectControl,{label:(0,b.__)("Aspect ratio"),value:a,options:r,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0}))}const IB=[{value:"fill",label:(0,b._x)("Fill","Scale option for dimensions control"),help:(0,b.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,b._x)("Contain","Scale option for dimensions control"),help:(0,b.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,b._x)("Cover","Scale option for dimensions control"),help:(0,b.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,b._x)("None","Scale option for dimensions control"),help:(0,b.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,b._x)("Scale down","Scale option for dimensions control"),help:(0,b.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function AB({panelId:e,value:t,onChange:n,options:r=IB,defaultValue:o=IB[0].value,isShownByDefault:i=!0}){const a=null!=t?t:"fill",l=(0,c.useMemo)((()=>r.reduce(((e,t)=>(e[t.value]=t.help,e)),{})),[r]);return(0,c.createElement)(f.__experimentalToolsPanelItem,{label:(0,b.__)("Scale"),isShownByDefault:i,hasValue:()=>a!==o,onDeselect:()=>n(o),panelId:e},(0,c.createElement)(f.__experimentalToggleGroupControl,{label:(0,b.__)("Scale"),isBlock:!0,help:l[a],value:a,onChange:n,__nextHasNoMarginBottom:!0},r.map((e=>(0,c.createElement)(f.__experimentalToggleGroupControlOption,{key:e.value,...e})))))}function BB(){return BB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BB.apply(this,arguments)}function PB(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var TB=/^((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)-.*))$/,OB=PB((function(e){return TB.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var MB=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),RB=Math.abs,NB=String.fromCharCode,FB=Object.assign;function LB(e){return e.trim()}function DB(e,t,n){return e.replace(t,n)}function UB(e,t){return e.indexOf(t)}function jB(e,t){return 0|e.charCodeAt(t)}function zB(e,t,n){return e.slice(t,n)}function VB(e){return e.length}function GB(e){return e.length}function HB(e,t){return t.push(e),e}var $B=1,WB=1,KB=0,qB=0,JB=0,ZB="";function YB(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$B,column:WB,length:a,return:""}}function QB(e,t){return FB(YB("",null,null,"",null,null,0),e,{length:-e.length},t)}function XB(){return JB=qB>0?jB(ZB,--qB):0,WB--,10===JB&&(WB=1,$B--),JB}function eP(){return JB=qB<KB?jB(ZB,qB++):0,WB++,10===JB&&(WB=1,$B++),JB}function tP(){return jB(ZB,qB)}function nP(){return qB}function rP(e,t){return zB(ZB,e,t)}function oP(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 iP(e){return $B=WB=1,KB=VB(ZB=e),qB=0,[]}function aP(e){return ZB="",e}function lP(e){return LB(rP(qB-1,uP(91===e?e+2:40===e?e+1:e)))}function sP(e){for(;(JB=tP())&&JB<33;)eP();return oP(e)>2||oP(JB)>3?"":" "}function cP(e,t){for(;--t&&eP()&&!(JB<48||JB>102||JB>57&&JB<65||JB>70&&JB<97););return rP(e,nP()+(t<6&&32==tP()&&32==eP()))}function uP(e){for(;eP();)switch(JB){case e:return qB;case 34:case 39:34!==e&&39!==e&&uP(JB);break;case 40:41===e&&uP(e);break;case 92:eP()}return qB}function pP(e,t){for(;eP()&&e+JB!==57&&(e+JB!==84||47!==tP()););return"/*"+rP(t,qB-1)+"*"+NB(47===e?e:eP())}function dP(e){for(;!oP(tP());)eP();return rP(e,qB)}var fP="-ms-",mP="-moz-",yP="-webkit-",gP="comm",hP="rule",bP="decl",vP="@keyframes";function _P(e,t){for(var n="",r=GB(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function kP(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bP:return e.return=e.return||e.value;case gP:return"";case vP:return e.return=e.value+"{"+_P(e.children,r)+"}";case hP:e.value=e.props.join(",")}return VB(n=_P(e.children,r))?e.return=e.value+"{"+n+"}":""}function SP(e){return aP(EP("",null,null,null,[""],e=iP(e),0,[0],e))}function EP(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,p=a,d=0,f=0,m=0,y=1,g=1,h=1,b=0,v="",_=o,k=i,S=r,E=v;g;)switch(m=b,b=eP()){case 40:if(108!=m&&58==jB(E,p-1)){-1!=UB(E+=DB(lP(b),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:E+=lP(b);break;case 9:case 10:case 13:case 32:E+=sP(m);break;case 92:E+=cP(nP()-1,7);continue;case 47:switch(tP()){case 42:case 47:HB(CP(pP(eP(),nP()),t,n),s);break;default:E+="/"}break;case 123*y:l[c++]=VB(E)*h;case 125*y:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==h&&(E=DB(E,/\f/g,"")),f>0&&VB(E)-p&&HB(f>32?xP(E+";",r,n,p-1):xP(DB(E," ","")+";",r,n,p-2),s);break;case 59:E+=";";default:if(HB(S=wP(E,t,n,c,u,o,l,v,_=[],k=[],p),i),123===b)if(0===u)EP(E,t,S,S,_,i,p,l,k);else switch(99===d&&110===jB(E,3)?100:d){case 100:case 108:case 109:case 115:EP(e,S,S,r&&HB(wP(e,S,S,0,0,o,l,v,o,_=[],p),k),o,k,p,l,r?_:k);break;default:EP(E,S,S,S,[""],k,0,l,k)}}c=u=f=0,y=h=1,v=E="",p=a;break;case 58:p=1+VB(E),f=m;default:if(y<1)if(123==b)--y;else if(125==b&&0==y++&&125==XB())continue;switch(E+=NB(b),b*y){case 38:h=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(VB(E)-1)*h,h=1;break;case 64:45===tP()&&(E+=lP(eP())),d=tP(),u=p=VB(v=E+=dP(nP())),b++;break;case 45:45===m&&2==VB(E)&&(y=0)}}return i}function wP(e,t,n,r,o,i,a,l,s,c,u){for(var p=o-1,d=0===o?i:[""],f=GB(d),m=0,y=0,g=0;m<r;++m)for(var h=0,b=zB(e,p+1,p=RB(y=a[m])),v=e;h<f;++h)(v=LB(y>0?d[h]+" "+b:DB(b,/&\f/g,d[h])))&&(s[g++]=v);return YB(e,t,n,0===o?hP:l,s,c,u)}function CP(e,t,n){return YB(e,t,n,gP,NB(JB),zB(e,2,-2),0)}function xP(e,t,n,r){return YB(e,t,n,bP,zB(e,0,r),zB(e,r+1,-1),r)}var IP=function(e,t,n){for(var r=0,o=0;r=o,o=tP(),38===r&&12===o&&(t[n]=1),!oP(o);)eP();return rP(e,qB)},AP=function(e,t){return aP(function(e,t){var n=-1,r=44;do{switch(oP(r)){case 0:38===r&&12===tP()&&(t[n]=1),e[n]+=IP(qB-1,t,n);break;case 2:e[n]+=lP(r);break;case 4:if(44===r){e[++n]=58===tP()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=NB(r)}}while(r=eP());return e}(iP(e),t))},BP=new WeakMap,PP=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)||BP.get(n))&&!r){BP.set(e,!0);for(var o=[],i=AP(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},TP=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function OP(e,t){switch(function(e,t){return 45^jB(e,0)?(((t<<2^jB(e,0))<<2^jB(e,1))<<2^jB(e,2))<<2^jB(e,3):0}(e,t)){case 5103:return yP+"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 yP+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yP+e+mP+e+fP+e+e;case 6828:case 4268:return yP+e+fP+e+e;case 6165:return yP+e+fP+"flex-"+e+e;case 5187:return yP+e+DB(e,/(\w+).+(:[^]+)/,yP+"box-$1$2"+fP+"flex-$1$2")+e;case 5443:return yP+e+fP+"flex-item-"+DB(e,/flex-|-self/,"")+e;case 4675:return yP+e+fP+"flex-line-pack"+DB(e,/align-content|flex-|-self/,"")+e;case 5548:return yP+e+fP+DB(e,"shrink","negative")+e;case 5292:return yP+e+fP+DB(e,"basis","preferred-size")+e;case 6060:return yP+"box-"+DB(e,"-grow","")+yP+e+fP+DB(e,"grow","positive")+e;case 4554:return yP+DB(e,/([^-])(transform)/g,"$1"+yP+"$2")+e;case 6187:return DB(DB(DB(e,/(zoom-|grab)/,yP+"$1"),/(image-set)/,yP+"$1"),e,"")+e;case 5495:case 3959:return DB(e,/(image-set\([^]*)/,yP+"$1$`$1");case 4968:return DB(DB(e,/(.+:)(flex-)?(.*)/,yP+"box-pack:$3"+fP+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yP+e+e;case 4095:case 3583:case 4068:case 2532:return DB(e,/(.+)-inline(.+)/,yP+"$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(VB(e)-1-t>6)switch(jB(e,t+1)){case 109:if(45!==jB(e,t+4))break;case 102:return DB(e,/(.+:)(.+)-([^]+)/,"$1"+yP+"$2-$3$1"+mP+(108==jB(e,t+3)?"$3":"$2-$3"))+e;case 115:return~UB(e,"stretch")?OP(DB(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jB(e,t+1))break;case 6444:switch(jB(e,VB(e)-3-(~UB(e,"!important")&&10))){case 107:return DB(e,":",":"+yP)+e;case 101:return DB(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yP+(45===jB(e,14)?"inline-":"")+"box$3$1"+yP+"$2$3$1"+fP+"$2box$3")+e}break;case 5936:switch(jB(e,t+11)){case 114:return yP+e+fP+DB(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yP+e+fP+DB(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yP+e+fP+DB(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yP+e+fP+e+e}return e}var MP=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bP:e.return=OP(e.value,e.length);break;case vP:return _P([QB(e,{value:DB(e.value,"@","@"+yP)})],r);case hP: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 _P([QB(e,{props:[DB(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return _P([QB(e,{props:[DB(t,/:(plac\w+)/,":"+yP+"input-$1")]}),QB(e,{props:[DB(t,/:(plac\w+)/,":-moz-$1")]}),QB(e,{props:[DB(t,/:(plac\w+)/,fP+"input-$1")]})],r)}return""}))}}],RP=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||MP;var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s,c,u,p,d=[kP,(p=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(c=[PP,TP].concat(r,d),u=GB(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){s=n,function(e){_P(SP(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new MB({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(l),m};var NP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function FP(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var LP=/[A-Z]|^ms/g,DP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UP=function(e){return 45===e.charCodeAt(1)},jP=function(e){return null!=e&&"boolean"!=typeof e},zP=FP((function(e){return UP(e)?e:e.replace(LP,"-$&").toLowerCase()})),VP=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(DP,(function(e,t,n){return HP={name:t,styles:n,next:HP},t}))}return 1===NP[e]||UP(e)||"number"!=typeof t||0===t?t:t+"px"};function GP(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return HP={name:n.name,styles:n.styles,next:HP},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)HP={name:r.name,styles:r.styles,next:HP},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=GP(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":jP(a)&&(r+=zP(i)+":"+VP(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=GP(e,t,a);switch(i){case"animation":case"animationName":r+=zP(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)jP(a[s])&&(r+=zP(i)+":"+VP(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=HP,i=n(e);return HP=o,GP(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var HP,$P=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var WP=!!kl.useInsertionEffect&&kl.useInsertionEffect,KP=WP||function(e){return e()},qP=(WP||kl.useLayoutEffect,kl.createContext("undefined"!=typeof HTMLElement?RP({key:"css"}):null));qP.Provider;var JP=function(e){return(0,kl.forwardRef)((function(t,n){var r=(0,kl.useContext)(qP);return e(t,r,n)}))};var ZP=kl.createContext({});var YP=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},QP=OB,XP=function(e){return"theme"!==e},eT=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?QP:XP},tT=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},nT=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return YP(t,n,r),KP((function(){return function(e,t,n){YP(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)}}(t,n,r)})),null},rT=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 l=tT(t,n,i),s=l||eT(a),c=!s("as");return function(){var u=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{0,p.push(u[0][0]);for(var d=u.length,f=1;f<d;f++)p.push(u[f],u[0][f])}var m=JP((function(e,t,n){var r=c&&e.as||a,i="",u=[],d=e;if(null==e.theme){for(var f in d={},e)d[f]=e[f];d.theme=kl.useContext(ZP)}"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";HP=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=GP(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=GP(n,t,e[a]),r&&(o+=i[a]);$P.lastIndex=0;for(var l,s="";null!==(l=$P.exec(o));)s+="-"+l[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)+s;return{name:c,styles:o,next:HP}}(p.concat(u),t.registered,d);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var y=c&&void 0===l?eT(r):s,g={};for(var h in e)c&&"as"===h||y(h)&&(g[h]=e[h]);return g.className=i,g.ref=n,kl.createElement(kl.Fragment,null,kl.createElement(nT,{cache:t,serialized:m,isStringTag:"string"==typeof r}),kl.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=p,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,BB({},n,r,{shouldForwardProp:tT(m,r,!0)})).apply(void 0,p)},m}};const oT=rT(f.__experimentalToolsPanelItem,{target:"ef8pe3d0"})({name:"957xgf",styles:"grid-column:span 1"});function iT({panelId:e,value:t={},onChange:n=(()=>{}),units:r,isShownByDefault:o=!0}){var i,a;const l="auto"===t.width?"":null!==(i=t.width)&&void 0!==i?i:"",s="auto"===t.height?"":null!==(a=t.height)&&void 0!==a?a:"",u=e=>r=>{const o={...t};r?o[e]=r:delete o[e],n(o)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(oT,{label:(0,b.__)("Width"),isShownByDefault:o,hasValue:()=>""!==l,onDeselect:u("width"),panelId:e},(0,c.createElement)(f.__experimentalUnitControl,{label:(0,b.__)("Width"),placeholder:(0,b.__)("Auto"),labelPosition:"top",units:r,min:0,value:l,onChange:u("width"),size:"__unstable-large"})),(0,c.createElement)(oT,{label:(0,b.__)("Height"),isShownByDefault:o,hasValue:()=>""!==s,onDeselect:u("height"),panelId:e},(0,c.createElement)(f.__experimentalUnitControl,{label:(0,b.__)("Height"),placeholder:(0,b.__)("Auto"),labelPosition:"top",units:r,min:0,value:s,onChange:u("height"),size:"__unstable-large"})))}var aT=function({panelId:e,value:t={},onChange:n=(()=>{}),aspectRatioOptions:r,defaultAspectRatio:o="auto",scaleOptions:i,defaultScale:a="fill",unitsOptions:l}){const s=void 0===t.width||"auto"===t.width?null:t.width,u=void 0===t.height||"auto"===t.height?null:t.height,p=void 0===t.aspectRatio||"auto"===t.aspectRatio?null:t.aspectRatio,d=void 0===t.scale||"fill"===t.scale?null:t.scale,[f,m]=(0,c.useState)(d),[y,g]=(0,c.useState)(p),h=s&&u?"custom":y,b=p||s&&u;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(xB,{panelId:e,options:r,defaultValue:o,value:h,onChange:e=>{const r={...t};g(e="auto"===e?null:e),e?r.aspectRatio=e:delete r.aspectRatio,e?f?r.scale=f:(r.scale=a,m(a)):delete r.scale,e&&s&&u&&delete r.height,n(r)}}),b&&(0,c.createElement)(AB,{panelId:e,options:i,defaultValue:a,value:f,onChange:e=>{const r={...t};m(e="fill"===e?null:e),e?r.scale=e:delete r.scale,n(r)}}),(0,c.createElement)(iT,{panelId:e,units:l,value:{width:s,height:u},onChange:({width:e,height:r})=>{const o={...t};r="auto"===r?null:r,(e="auto"===e?null:e)?o.width=e:delete o.width,r?o.height=r:delete o.height,e&&r?delete o.aspectRatio:y&&(o.aspectRatio=y),y||!!e==!!r?f?o.scale=f:(o.scale=a,m(a)):delete o.scale,n(o)}}))};const lT=[{label:(0,b._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,b._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,b._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,b._x)("Full Size","Image size option for resolution control"),value:"full"}];const sT={};Dr(sT,{...a,ExperimentalBlockEditorProvider:Jp,getRichTextValues:function(e=[]){l.__unstableGetBlockProps.skipFilters=!0;const t=[];return wB(t,e),l.__unstableGetBlockProps.skipFilters=!1,t},PrivateInserter:fy,PrivateListView:KS,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,c.createElement)(Cy,{clientId:e,__unstableCoverTarget:!0,__unstablePopoverSlot:"block-toolbar",shift:!1,...n},(0,c.createElement)(f.ResizableBox,{...t}))},BlockInfo:gI,useShouldContextualToolbarShow:cA,cleanEmptyObject:Fi,useBlockEditingMode:xa,BlockQuickNavigation:hI,LayoutStyle:da,BlockRemovalWarningModal:function({rules:e}){const{clientIds:t,selectPrevious:n,blockNamesForPrompt:r}=(0,m.useSelect)((e=>Ur(e(zr)).getRemovalPromptData())),{clearBlockRemovalPrompt:o,setBlockRemovalRules:i,privateRemoveBlocks:a}=Ur((0,m.useDispatch)(zr));if((0,c.useEffect)((()=>(i(e),()=>{i()})),[e,i]),!r)return;return(0,c.createElement)(f.Modal,{title:(0,b.__)("Are you sure?"),onRequestClose:o,style:{maxWidth:"40rem"}},1===r.length?(0,c.createElement)("p",null,e[r[0]]):(0,c.createElement)("ul",{style:{listStyleType:"disc",paddingLeft:"1rem"}},r.map((t=>(0,c.createElement)("li",{key:t},e[t])))),(0,c.createElement)("p",null,r.length>1?(0,b.__)("Removing these blocks is not advised."):(0,b.__)("Removing this block is not advised.")),(0,c.createElement)(f.__experimentalHStack,{justify:"right"},(0,c.createElement)(f.Button,{variant:"tertiary",onClick:o},(0,b.__)("Cancel")),(0,c.createElement)(f.Button,{variant:"primary",onClick:()=>{a(t,n,!0),o()}},(0,b.__)("Delete"))))},useLayoutClasses:p_,useLayoutStyles:function(e={},t,n){const{layout:r={},style:o={}}=e,i=r?.inherit||r?.contentSize||r?.wideSize?{...r,type:"constrained"}:r||{},a=la(i?.type||"default"),l=null!==Yo("spacing.blockGap"),s=a?.getLayoutStyle?.({blockName:t,selector:n,layout:r,style:o,hasBlockGapSupport:l});return s},DimensionsTool:aT,ResolutionTool:function({panelId:e,value:t,onChange:n,options:r=lT,defaultValue:o=lT[0].value,isShownByDefault:i=!0}){const a=null!=t?t:o;return(0,c.createElement)(f.__experimentalToolsPanelItem,{hasValue:()=>a!==o,label:(0,b.__)("Resolution"),onDeselect:()=>n(o),isShownByDefault:i,panelId:e},(0,c.createElement)(f.SelectControl,{label:(0,b.__)("Resolution"),value:a,options:r,onChange:n,help:(0,b.__)("Select the size of the source image."),size:"__unstable-large"}))},ReusableBlocksRenameHint:Am,useReusableBlocksRenameHint:function(){return(0,m.useSelect)((e=>{var t;return null===(t=e(xm.store).get("core",Im))||void 0===t||t}),[])},usesContextKey:ax})}(),(window.wp=window.wp||{}).blockEditor=r}();

Zerion Mini Shell 1.0