PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/lotterywin.kerihosting.com/wp-includes/js/dist/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/lotterywin.kerihosting.com/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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},3303:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(7870),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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 l(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t=null,n=null,r=null,l=function(){e.clientWidth!==n&&d()},a=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!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",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",l,!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:a,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 l=i("autosize:resized");try{e.dispatchEvent(l)}catch(e){}}}}function a(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 l(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),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)},4403:function(e,t){var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&e.push(l)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},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),l=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 a=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=!!l&&l(e,t);if(r)r(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===a&&p?p.enumerable:!a,value:n,writable:null===s&&p?p.writable:!s});else{if(!u&&(a||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,l=t.length,a=0,s=0;i<l;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(a,a+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(a,a+c.count));a+=c.count,c.added||(s+=c.count)}}var d=t[l-1];return l>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[l-2].value+=d.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}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]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var l=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,u=1,p=s+c,d=[{newPos:-1,components:[]}],f=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=s&&f+1>=c)return a([{value:this.join(t),count:t.length}]);function y(){for(var n=-1*u;n<=u;n+=2){var i=void 0,p=d[n-1],f=d[n+1],y=(f?f.newPos:0)-n;p&&(d[n-1]=void 0);var m=p&&p.newPos+1<s,g=f&&0<=y&&y<c;if(m||g){if(!m||g&&p.newPos<f.newPos?(i=o(f),l.pushComponent(i.components,void 0,!0)):((i=p).newPos++,l.pushComponent(i.components,!0,void 0)),y=l.extractCommon(i,t,e,n),i.newPos+1>=s&&y+1>=c)return a(r(l,i.components,t,e,l.useLongestToken));d[n]=i}else d[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>p)return i();y()||e()}),0)}();else for(;u<=p;){var m=y();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,l=e.newPos,a=l-r,s=0;l+1<o&&a+1<i&&this.equals(t[l+1],n[a+1]);)l++,a++,s++;return s&&e.components.push({count:s}),e.newPos=l,a},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,l=n.alignWithTop,a=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),y=r.outerHeight(e),m=r.outerWidth(e),g=void 0,h=void 0,b=void 0,v=void 0,_=void 0,k=void 0,E=void 0,S=void 0,w=void 0,A=void 0;d?(E=t,A=r.height(E),w=r.width(E),S={left:r.scrollLeft(E),top:r.scrollTop(E)},_={left:f.left-S.left-c,top:f.top-S.top-s},k={left:f.left+m-(S.left+w)+p,top:f.top+y-(S.top+A)+u},v=S):(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+m-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+p,top:f.top+y-(g.top+h+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),_.top<0||k.top>0?!0===l?r.scrollTop(t,v.top+_.top):!1===l?r.scrollTop(t,v.top+k.top):_.top<0?r.scrollTop(t,v.top+_.top):r.scrollTop(t,v.top+k.top):i||((l=void 0===l||!!l)?r.scrollTop(t,v.top+_.top):r.scrollTop(t,v.top+k.top)),o&&(_.left<0||k.left>0?!0===a?r.scrollLeft(t,v.left+_.left):!1===a?r.scrollLeft(t,v.left+k.left):_.left<0?r.scrollLeft(t,v.left+_.left):r.scrollLeft(t,v.left+k.left):i||((a=void 0===a||!!a)?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 l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,l=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=l.clientLeft||i.clientLeft||0,top:r-=l.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=o(r),t.top+=i(r),t}var a=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),s=/^(top|right|bottom|left)$/;var c=void 0;function u(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===c(e,"boxSizing")}"undefined"!=typeof window&&(c=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.currentStyle&&e.currentStyle[t];if(a.test(n)&&!s.test(t)){var r=e.style,o=r.left,i=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=i}return""===n?"auto":n});var d=["margin","border","padding"];function f(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])}function y(e,t,n){var r=0,o=void 0,i=void 0,l=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(l=0;l<n.length;l++){var a=void 0;a="border"===o?o+n[l]+"Width":o+n[l],r+=parseFloat(c(e,a))||0}return r}function m(e){return null!=e&&e==e.window}var g={};function h(e,t,n){if(m(e))return"width"===t?g.viewportWidth(e):g.viewportHeight(e);if(9===e.nodeType)return"width"===t?g.docWidth(e):g.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(c(e),p(e)),l=0;(null==o||o<=0)&&(o=void 0,(null==(l=c(e,t))||Number(l)<0)&&(l=e.style[t]||0),l=parseFloat(l)||0),void 0===n&&(n=i?1:-1);var a=void 0!==o||i,s=o||l;if(-1===n)return a?s-y(e,["border","padding"],r):l;if(a){var u=2===n?-y(e,["border"],r):y(e,["margin"],r);return s+(1===n?0:u)}return l+y(e,d.slice(n),r)}u(["Width","Height"],(function(e){g["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],g["viewport"+e](n))},g["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 b={position:"absolute",visibility:"hidden",display:"block"};function v(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=h.apply(void 0,n):f(e,b,(function(){t=h.apply(void 0,n)})),t}function _(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)):c(e,t);for(var i in t)t.hasOwnProperty(i)&&_(e,i,t[i])}u(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);g["outer"+t]=function(t,n){return t&&v(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];g[e]=function(t,r){if(void 0===r)return t&&v(t,e,-1);if(t){c(t);return p(t)&&(r+=y(t,["padding","border"],n)),_(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 l(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(_(e,i))||0,r[i]=o+t[i]-n[i]);_(e,r)}(e,t)},isWindow:m,each:u,css:_,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(m(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(m(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},g)},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="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(5903),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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),l=n(8659),a=n(3082),s=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,l,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(l=0;l<a.length;++l)if(n=e[a[l]],i(n)&&(r=n.call(e),o(r)))return r;throw new TypeError("No default value")},c=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.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=c(e,Symbol.toPrimitive):a(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(l(e)||a(e))&&(n="string"),s(e,"default"===n?"number":n)}},3777:function(e){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},4843:function(e,t,n){"use strict";var r=n(5443),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,l=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))},a=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)},s=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.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),"[object Array]"===o.call(e)?l(e,t,i):"string"==typeof e?a(e,t,i):s(e,t,i)}},9930:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var l,a=n.call(arguments,1),s=function(){if(this instanceof l){var t=i.apply(this,a.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,a.concat(n.call(arguments)))},c=Math.max(0,i.length-a.length),u=[],p=0;p<c;p++)u.push("$"+p);if(l=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),i.prototype){var d=function(){};d.prototype=i.prototype,l.prototype=new d,d.prototype=null}return l}},1930:function(e,t,n){"use strict";var r=n(9930);e.exports=Function.prototype.bind||r},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="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(8729),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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(3010)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},3010:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,l=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new l},u=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,p=n(1779)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},y="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((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%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":y,"%TypeError%":l,"%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%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return m[t]=n,n},h={"%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"]},b=n(1930),v=n(9284),_=b.call(Function.call,Array.prototype.concat),k=b.call(Function.apply,Array.prototype.splice),E=b.call(Function.call,String.prototype.replace),S=b.call(Function.call,String.prototype.slice),w=b.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,I=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,A,(function(e,t,n,o){r[r.length]=n?E(o,C,"$1"):t||e})),r},x=function(e,t){var n,r=e;if(v(h,r)&&(r="%"+(n=h[r])[0]+"%"),v(m,r)){var i=m[r];if(i===f&&(i=g(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===w(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=I(e),r=n.length>0?n[0]:"",i=x("%"+r+"%",t),a=i.name,c=i.value,u=!1,p=i.alias;p&&(r=p[0],k(n,_([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var y=n[d],g=S(y,0,1),h=S(y,-1);if(('"'===g||"'"===g||"`"===g||'"'===h||"'"===h||"`"===h)&&g!==h)throw new o("property names with quotes must have matching quotes");if("constructor"!==y&&f||(u=!0),v(m,a="%"+(r+="."+y)+"%"))c=m[a];else if(null!=c){if(!(y in c)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var b=s(c,y);c=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[y]}else f=v(c,y),c=c[y];f&&!u&&(m[a]=c)}}return c}},1779:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(8030);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},8030: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}},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}},9284:function(e,t,n){"use strict";var r=n(1930);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},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="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=o("ArrayBuffer.prototype.byteLength",!0),a=o("Object.prototype.toString"),s=!!i&&!l&&new i(0).slice,c=!!s&&r(s);e.exports=l||c?function(e){if(!e||"object"!=typeof e)return!1;try{return l?l(e):c(e,0),!0}catch(e){return!1}}:i?function(e){return"[object ArrayBuffer]"===a(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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},1818:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(7410),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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/,l=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},a=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!l(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!l(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(l(e))return!1;var t=a.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))}},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,l=document.createElement(i);l.innerHTML=" ","TEXTAREA"===i.toUpperCase()&&l.setAttribute("rows","1");var a=r(e,"font-size");l.style.fontSize=a,l.style.padding="0px",l.style.border="0px";var s=document.body;s.appendChild(l),n=l.offsetHeight,s.removeChild(l)}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,l,a,s,c,u,p,d,f,y,m,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),y=/FBAN\/\w+;/i.exec(e),m=/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);l=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);a=!_||parseFloat(_[1].replace("_","."))}else a=!1;s=!!b[2],c=!!b[3]}else a=s=c=!1}}var b={ie:function(){return h()||t},ieCompatibilityMode:function(){return h()||l>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()||a},linux:function(){return h()||c},iphone:function(){return h()||d},mobile:function(){return h()||d||f||u||m},nativeApp:function(){return h()||y},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 l=document.createElement("div");l.setAttribute(n,"return;"),i="function"==typeof l[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,l=n(4418),a=Object.prototype.propertyIsEnumerable,s=!a.call({toString:null},"toString"),c=a.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=l(e),a=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var y=c&&n;if(a&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var h in e)y&&"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,l=i?function(e){return i(e)}:n(8383),a=Object.keys;l.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)?a(r.call(e)):a(e)})}else Object.keys=l;return Object.keys||l},e.exports=l},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,l){if(l!==r){var a=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 a.name="Invariant Violation",a}}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},l=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 a=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=l(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return a.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}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(d,i({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var r=n(5438);t.Z=r.TextareaAutosize},3002:function(e,t,n){"use strict";var r=n(8024)("%Array.prototype.concat%"),o=n(9386),i=n(3315)("Array.prototype.slice"),l=n(1489)()&&Symbol.isConcatSpreadable,a=[],s=l?o.apply(r,a):null,c=l?n(9277):null;e.exports=l?function(e){for(var t=0;t<arguments.length;t+=1){var n=arguments[t];if(n&&"object"==typeof n&&"boolean"==typeof n[l]){a[l]||(a[l]=!0);var r=c(n)?i(n):[n];r[l]=!0,arguments[t]=r}}return s(arguments)}:o(r,a)},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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},6850:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(5127),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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"),l=n(1642);e.exports=function(e){if(!o(e))throw new l("`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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},7780:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(3331),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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,l,a=n(2137),s=n(4111)();if(s){r=a("Object.prototype.hasOwnProperty"),o=a("RegExp.prototype.exec"),i={};var c=function(){throw i};l={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(l[Symbol.toPrimitive]=c)}var u=a("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,l)}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(8594)(),l=n(3828),a=n(1642),s=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&l){var u=l(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="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(9015),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},8594: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},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}},3124:function(e,t,n){"use strict";var r=n(4010),o=n(1140),i=n(3828);function l(e){return Object.prototype.toString.call(e)}var a=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 y(e,t){return"function"!=typeof i||!i(e,t).writable}function m(e,t){if("object"==typeof e&&null!==e){var n;if(a(e))n=[];else if("[object Date]"===l(e))n=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===l(e)}(e))n=new RegExp(e);else if(function(e){return"[object Error]"===l(e)}(e))n={message:e.message};else if(function(e){return"[object Boolean]"===l(e)}(e)||function(e){return"[object Number]"===l(e)}(e)||function(e){return"[object String]"===l(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 g={__proto__:null};function h(e,t){var n=[],r=[],o=!0,i=arguments.length>2?arguments[2]:g,l=i.includeSymbols?d:c,u=!!i.immutable;return function e(c){var p=u?m(c,i):c,d={},g=!0,h={node:p,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){a(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(g=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.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=l(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),d.before&&d.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),d.pre&&d.pre.call(h,h.node[t],t);var o=e(h.node[t]);u&&f.call(h.node,t)&&!y(h.node,t)&&(h.node[t]=o.node),o.isLast=r===h.keys.length-1,o.isFirst=0===r,d.post&&d.post.call(h,o),n.pop()})),r.pop()),d.after&&d.after.call(h,h.node),h):h}(e).node}function b(e){this.options=arguments.length>1?arguments[1]:g,this.value=e}function v(e){var t=arguments.length>1?arguments[1]:g;return new b(e,t)}b.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},b.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},b.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},b.prototype.map=function(e){return h(this.value,e,{__proto__:null,immutable:!0,includeSymbols:!!this.options.includeSymbols})},b.prototype.forEach=function(e){return this.value=h(this.value,e,this.options),this.value},b.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},b.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},b.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},b.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 l=m(o,n);return e.push(o),t.push(l),s((n.includeSymbols?d:c)(o),(function(e){l[e]=r(o[e])})),e.pop(),t.pop(),l}return o}(this.value)},s(d(b.prototype),(function(e){v[e]=function(t){var n=[].slice.call(arguments,1),r=new b(t);return r[e].apply(r,n)}})),e.exports=v},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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},9003:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(7715),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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)(),l={},a=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&&a){var i=t.__proto__;r=s(i,"byteOffset")}if(r&&r.get)l[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&&(l[e]=u)}}}))}var p=n(2527);e.exports=function(e){return!!p(e)&&function(e){var t;return r(l,(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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},1609:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(1530),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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),l=n(1856)(),a=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,a=i(o,"length");if(!a&&l){var s=o.__proto__;a=i(s,"length")}if(a&&a.get)c["$"+e]=r(a.get);else if(u){var d=new n.g[e](2);(a=i(d,"length"))&&a.configurable&&u(d,"length",{value:3}),2===d.length&&(c["$"+e]=p)}}}))}e.exports=function(e){return!!a(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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},7380:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(3576),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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),l=n(1320),a=n(1367),s=n(2967),c=n(8055),u=n(3383),p=n(2897),d=n(7249),f=n(9149),y=n(1586),m=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?a(_+k,0):s(k,_);var E,S=void 0===t?_:p(t);E=S===-1/0?0:S<0?a(_+S,0):s(S,_);var w=a(E-v,0),A=m(n,[w]);if(w>0){if(l(h(n)))throw new r("Cannot use a Typed Array with an underlying ArrayBuffer that is detached");if(y(n)===y(A))for(var C=h(n),I=h(A),x=f(n),B=v*x+b(n),P=b(A),T=P+w*x;P<T;){var O=i(C,B,"UINT8",!0,"UNORDERED");u(I,P,"UINT8",O,!0,"UNORDERED"),B+=1,P+=1}else for(var N=0;v<E;){var R=d(v),F=o(n,R);c(A,d(N),F,!0),v+=1,N+=1}}return A}},1140:function(e,t,n){"use strict";var r=n(6776),o=n(8374),i=n(4073),l=n(5046),a=n(8564),s=o(l());r(s,{getPolyfill:l,implementation:i,shim:a}),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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,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,l=Array.prototype.concat,a=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?a(e,t,n,!0):a(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=l.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a<i.length;a+=1)c(e,i[a],t[i[a]],n[i[a]])};u.supportsDescriptors=!!s,e.exports=u},6118: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},2855:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(8474),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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/,l=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},a=function(e){try{return!l(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!l(e)&&a(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return a(e);if(l(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},589:function(e,t,n){"use strict";var r=n(1154)("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}},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,l=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&s&&"function"==typeof s.get?s.get:null,u=a&&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,y=Boolean.prototype.valueOf,m=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,E=RegExp.prototype.test,S=Array.prototype.concat,w=Array.prototype.join,A=Array.prototype.slice,C=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=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,N=("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||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-C(-e):C(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 F=n(5794),M=F.custom,D=z(M)?M:null;function L(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return v.call(String(e),/"/g,""")}function j(e){return!("[object Array]"!==W(e)||T&&"object"==typeof e&&T in e)}function V(e){return!("[object RegExp]"!==W(e)||T&&"object"==typeof e&&T in e)}function z(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,a){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 m=!H(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)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 E=String(t);return _?R(t,E):E}if("bigint"==typeof t){var C=String(t)+"n";return _?R(t,C):C}var x=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof t)return j(t)?"[Array]":"[Object]";var M=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===a)a=[];else if($(a,t)>=0)return"[Circular]";function G(t,n,r){if(n&&(a=A.call(a)).push(n),r){var i={depth:s.depth};return H(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),e(t,i,o+1,a)}return e(t,s,o+1,a)}if("function"==typeof t&&!V(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=Z(t,G);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(ee.length>0?" { "+w.call(ee,", ")+" }":"")}if(z(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+"="+L(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=Z(t,G);return M&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ie)?"["+X(ie,M)+"]":"[ "+w.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||T&&"object"==typeof e&&T in e)}(t)){var le=Z(t,G);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+w.call(le,", ")+" }":"{ ["+String(t)+"] "+w.call(S.call("[cause]: "+G(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(D&&"function"==typeof t[D]&&F)return F(t,{depth:x-o});if("symbol"!==m&&"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 ae=[];return l&&l.call(t,(function(e,n){ae.push(G(n,t,!0)+" => "+G(e,t))})),Q("Map",i.call(t),ae,M)}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))})),Q("Set",c.call(t),se,M)}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 Y("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 Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==W(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]"!==W(e)||T&&"object"==typeof e&&T in e)}(t))return J(y.call(t));if(function(e){return!("[object String]"!==W(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]"!==W(e)||T&&"object"==typeof e&&T in e)}(t)&&!V(t)){var ce=Z(t,G),ue=N?N(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(W(t),8,-1):pe?"Object":"",fe=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||pe?"["+w.call(S.call([],de||[],pe||[]),": ")+"] ":"");return 0===ce.length?fe+"{}":M?fe+"{"+X(ce,M)+"}":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 W(e){return m.call(e)}function $(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 L(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 Y(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?X(n,r):w.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+w.call(e,","+n)+"\n"+t.prev}function Z(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,l="function"==typeof x?x(e):[];if(P){i={};for(var a=0;a<l.length;a++)i["$"+l[a]]=l[a]}for(var s in e)H(e,s)&&(n&&String(Number(s))===s&&s<e.length||P&&i["$"+s]instanceof Symbol||(E.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof x)for(var c=0;c<l.length;c++)O.call(e,l[c])&&r.push("["+t(l[c])+"]: "+t(e[l[c]],e));return r}},3786:function(e,t,n){"use strict";var r=n(7998),o=n(7249),i=n(1154)("String.prototype.replace"),l=/^\s$/.test("á Ž"),a=l?/^[\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=l?/[\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,a,""),s,"")}},6368:function(e,t,n){"use strict";var r=n(8374),o=n(6776),i=n(7998),l=n(3786),a=n(3040),s=n(4695),c=r(a()),u=function(e){return i(e),c(e)};o(u,{getPolyfill:a,implementation:l,shim:s}),e.exports=u},3040:function(e,t,n){"use strict";var r=n(3786),o="á Ž";e.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&o.trim()===o&&"_á Ž"==="_á Ž".trim()&&"á Ž_"==="á Ž_".trim()?String.prototype.trim:r}},4695:function(e,t,n){"use strict";var r=n(6776),o=n(3040);e.exports=function(){var e=o();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},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),l=n(7120),a=n(3828),s=l("Object.prototype.toString"),c=n(2346)(),u="undefined"==typeof globalThis?n.g:globalThis,p=o(),d=l("String.prototype.slice"),f=Object.getPrototypeOf,y=l("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(p,c&&a&&f?function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=f(t),r=a(n,Symbol.toStringTag);if(!r){var o=f(n);r=a(o,Symbol.toStringTag)}m["$"+e]=i(r.get)}}:function(e){var t=new u[e],n=t.slice||t.set;n&&(m["$"+e]=i(n))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=d(s(e),8,-1);return y(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return r(m,(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),l=n(1642),a=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(s,a),u=n(8918),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("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,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},7562:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=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},l=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s=this;if("function"!=typeof s||n.apply(s)!==o)throw new TypeError(t+s);for(var c,u=l(arguments,1),p=function(){if(this instanceof c){var t=s.apply(this,i(u,arguments));return Object(t)===t?t:this}return s.apply(e,i(u,arguments))},d=r(0,s.length-u.length),f=[],y=0;y<d;y++)f[y]="$"+y;if(c=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(p),s.prototype){var m=function(){};m.prototype=s.prototype,c.prototype=new m,m.prototype=null}return c}},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),l=n(9204),a=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 y=function(){throw new c},m=f?function(){try{return y}catch(e){try{return f(arguments,"callee").get}catch(e){return y}}}():y,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%":l,"%ReferenceError%":a,"%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%":m,"%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 E=b(b(e));k["%Error.prototype%"]=E}var S=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"]},A=n(7961),C=n(9429),I=A.call(Function.call,Array.prototype.concat),x=A.call(Function.apply,Array.prototype.splice),B=A.call(Function.call,String.prototype.replace),P=A.call(Function.call,String.prototype.slice),T=A.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=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,N,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(C(w,r)&&(r="%"+(n=w[r])[0]+"%"),C(k,r)){var o=k[r];if(o===v&&(o=S(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=R(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),i=o.name,l=o.value,a=!1,u=o.alias;u&&(r=u[0],x(n,I([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var y=n[p],m=P(y,0,1),g=P(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==y&&d||(a=!0),C(k,i="%"+(r+="."+y)+"%"))l=k[i];else if(null!=l){if(!(y in l)){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(l,y);l=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:l[y]}else d=C(l,y),l=l[y];d&&!a&&(k[i]=l)}}return l}},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}},2346:function(e,t,n){"use strict";var r=n(704);e.exports=function(){return r()&&!!Symbol.toStringTag}},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}},2981:function(e,t,n){"use strict";var r=n(1642),o=n(1320),i=n(4602),l=n(589),a=n(480);e.exports=function(e,t){var n=l(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 a(e)}},6548:function(e,t,n){"use strict";var r=n(682)("%BigInt%",!0),o=n(9204),i=n(1642),l=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===l)throw new o("Division by zero");return e===l?l:e%t}},9002:function(e,t,n){"use strict";var r=n(1642),o=n(6862),i=n(208),l=n(8367),a=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(a,c,l,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),l=n(9655);e.exports=function(e,t){if("Object"!==l(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),l=r("%Uint8Array%",!0),a=n(1154)("Array.prototype.slice"),s=n(6156),c=n(1320),u=n(9219),p=n(4602),d=n(589),f=n(3002),y=n(2170),m=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 y.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=y.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=a(new l(e,t),0,v);var _=arguments.length>5?arguments[5]:"little"===m,k=_?a(f([0,0,0,0,0,0,0,0],b),-v):a(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),l=n(9655);e.exports=function(e,t){if("Object"!==l(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={},l={};o(l,"length",{"[[Get]]":function(){throw i},"[[Enumerable]]":!0}),e.exports=function(e){try{r(e,l)}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)(),l=n(1154),a=n(4602),s=n(589),c=l("SharedArrayBuffer.prototype.byteLength",!0);e.exports=function(e){var t=s(e);if(!a(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),l=o("%SharedArrayBuffer.prototype.growable%",!0),a=n(4602),s=n(589);e.exports=function(e){var t=a(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||!l||!l(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),l=n(359),a=n(6740),s=n(7046),c=n(8150);e.exports=function(e){if(!l(e))throw new r("Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record");var t=e["[[Object]]"],n=e["[[CachedBufferByteLength]]"];if(o(a(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),l=n(2527),a=n(6740);e.exports=function(e,t){if(!l(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=a(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),l=n(2947),a=n(3181),s=n(2587),c=n(5562),u=n(5465),p=n(5964),d=n(9496),f=n(6550),y=n(3647),m=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:a,UINT16:u,INT32:s,UINT32:p,BIGINT64:i,BIGUINT64:l};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 y(t,n);if("FLOAT64"===e)return m(t,n);var i=b[e],l=(0,v[e])(t);return g(l,i,n)}},9219:function(e,t,n){"use strict";var r=n(682),o=n(1154),i=n(9204),l=n(6724),a=n(1642),s=r("%BigInt%",!0),c=n(5584),u=n(2985),p=n(4734),d=n(7551),f=n(8727),y=n(7604),m=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 a("Assertion failed: `type` must be a TypedArray element type: "+_(k));if(!u(t)||!g(t,h))throw new a("Assertion failed: `rawBytes` must be an Array of bytes");if("boolean"!=typeof n)throw new a("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 l("this environment does not support BigInts");return t=v(t,0,r),n||b(t),"FLOAT32"===e?f(t):"FLOAT64"===e?y(t):m(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),l=n(9655),a=function(){try{return delete[].length,!0}catch(e){return!1}}();e.exports=function(e,t,n,s){if("Object"!==l(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,a&&!i(e[t],n))throw new r("Attempted to assign to readonly property.");return!0}try{return e[t]=n,!a||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),l=r("%Uint8Array%",!0),a=n(6156),s=n(4734),c=n(1320),u=n(4604),p=n(4602),d=n(589),f=n(9429),y=n(2170),m=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(!a(t)||t<0)throw new i("Assertion failed: `byteIndex` must be a non-negative integer");if("string"!=typeof n||!f(y.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 _=y.size["$"+n],k=arguments.length>6?arguments[6]:"little"===m,E=u(n,r,k);if(v)throw new o("SharedArrayBuffer is not supported by this implementation");var S=new l(e,t,_);g(E,(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),l=n(9655);e.exports=function(e,t){if("Object"!==l(e))throw new o("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==l(n))throw new o("O.constructor is not an Object");var a=r?n[r]:void 0;if(null==a)return t;if(i(a))return a;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%"),l=n(1642),a=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),y=c(new i("["+["Â…","​","￾"].join("")+"]","g")),m=n(6368);e.exports=function e(t){if("string"!=typeof t)throw new l("Assertion failed: `argument` is not a String");if(p(t))return o(a(u(t,2),2));if(d(t))return o(a(u(t,2),8));if(y(t)||f(t))return NaN;var n=m(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%"),l=n(1642),a=n(6724),s=n(907),c=n(210);e.exports=function(e){if(!o)throw new a("BigInts are not supported in this environment");var t=c(e,i);if(null==t)throw new l("Cannot convert null or undefined to a BigInt");if("boolean"==typeof t)return o(t?1:0);if("number"==typeof t)throw new l("Cannot convert a Number value to a BigInt");if("string"==typeof t){var n=s(t);if(void 0===n)throw new l("Failed to parse String to BigInt");return n}if("symbol"==typeof t)throw new l("Cannot convert a Symbol value to a BigInt");if("bigint"!=typeof t)throw new a("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%"),l=n(9752),a=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=l(e),n=s(a,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%"),l=n(9752),a=n(6548),s=n(8626),c=o&&BigInt(i(2,32))*BigInt(i(2,32));e.exports=function(e){var t=l(e);return s(a,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),l=n(7991);e.exports=function(e){var t=o(e);if(!l(t)||0===t)return 0;var n=i(t),a=r(n,65536);return a>=32768?a-65536:a}},2587:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),l=n(7991),a=4294967296;e.exports=function(e){var t=o(e);if(!l(t)||0===t)return 0;var n=i(t),s=r(n,a),c=s>=2147483648?s-a:s;return 0===c?0:c}},5562:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),l=n(7991);e.exports=function(e){var t=o(e);if(!l(t)||0===t)return 0;var n=i(t),a=r(n,256);return a>=128?a-256:a}},2897:function(e,t,n){"use strict";var r=n(3438),o=n(736),i=n(9404),l=n(7991);e.exports=function(e){var t=r(e);return i(t)||0===t?0:l(t)?o(t):t}},3438:function(e,t,n){"use strict";var r=n(682),o=n(1642),i=r("%Number%"),l=n(4968),a=n(210),s=n(4967);e.exports=function(e){var t=l(e)?e:a(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),l=n(6440),a=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]]"]=l(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=l(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=l(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!a(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!a(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),l=n(7991);e.exports=function(e){var t=o(e);if(!l(t)||0===t)return 0;var n=i(t),a=r(n,65536);return 0===a?0:a}},5964:function(e,t,n){"use strict";var r=n(8457),o=n(3438),i=n(736),l=n(7991);e.exports=function(e){var t=o(e);if(!l(t)||0===t)return 0;var n=i(t),a=r(n,4294967296);return 0===a?0:a}},9496:function(e,t,n){"use strict";var r=n(7991),o=n(8457),i=n(3438),l=n(736);e.exports=function(e){var t=i(e);if(!r(t)||0===t)return 0;var n=l(t);return o(n,256)}},6550:function(e,t,n){"use strict";var r=n(3832),o=n(3438),i=n(3473),l=n(9404);e.exports=function(e){var t=o(e);if(l(t))return 0;var n=r(t,0,255),a=i(n);return n<a+.5?a:n>a+.5?a+1:a%2==0?a:a+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),l=n(7010),a=n(9954),s=n(8921),c=n(3842),u=n(4343)();e.exports=function(e,t){if(!l(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(a(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),l=n(4010),a=n(2170);e.exports=function(e){var t=l(e);if(!1===t)throw new o("Assertion failed: `O` must be a TypedArray");var n=a.size["$"+a.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),l=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=l.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),l=n(9954),a=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(l(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=a(t),y=e["[[CachedBufferByteLength]]"];if("DETACHED"===y)throw new r("Assertion failed: typed array is detached");return o((y-d)/f)}},817:function(e,t,n){"use strict";var r=n(6724),o=n(1642),i=n(4010),l=n(4343)(),a=n(2985),s=n(5994),c=n(7265),u=n(9660);e.exports=function(e,t){if(0===l.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(!a(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),l=n(9655),a=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"!==l(e))throw new r("Assertion failed: `O` must be an Object");if(!a(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%"),l=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 l(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(6118),o=n(8918),i=r.hasArrayLengthDefineBug(),l=i&&n(692),a=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&&a(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&&l(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%"),l=r("%BigInt%",!0);e.exports=function(e,t,n,r){for(var a=r?l:i,s=a(0),c=0;c<e.length;c++)s+=a(e[c]*o(2,8*c));if(!n){var u=8*t;128&e[t-1]&&(s-=a(o(2,u)))}return s}},2142:function(e,t,n){"use strict";var r=n(682),o=r("%Uint8Array%",!0),i=r("%Uint32Array%",!0),l=n(6740),a=i&&new i([305419896]),s=a&&new o(l(a));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 l=[],a=0;a<t;a++)l[n?a:t-1-a]=o(e&r(255)),e>>=r(8);return l}},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%"),l=n(9404),a=n(7991);e.exports=function(e){if("number"!=typeof e||l(e)||!a(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]]"),l=o(e,"[[Get]]")||o(e,"[[Set]]");if(n&&l)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%"),l=r("%Math.pow%"),a=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||!a(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*=l(2,23)+.5,u+=127;var d=r<<31|(u<<=23)|(p=i(p)),f=255&d,y=255&(d>>=8),m=255&(d>>=8),g=255&(d>>=8);return t?[f,y,m,g]:[g,m,y,f]}},7511:function(e,t,n){"use strict";var r=n(682),o=r("%parseInt%"),i=r("%Math.abs%"),l=r("%Math.floor%"),a=n(1154),s=a("String.prototype.indexOf"),c=a("String.prototype.slice"),u=n(1211),p=n(20),d=n(2745),f=1023,y="11111111111",m="00000000000",g="000000000000000000000000000000000000000000000000000";e.exports=function(e,t){var n,r,a=e<0||d(e)?"1":"0";if(isNaN(e))n=y,r="1"+g;else if(isFinite(e))if(0===e)n=m,r="0"+g;else{e=i(e);var h,b=l(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(m+p(n+f),-11),r=c(r+g+"0",0,52)}else n=y,r="0"+g;for(var E=a+n+r,S=[],w=0;w<8;w++){S[t?8-w-1:w]=o(c(E,8*w,8*(w+1)),2)}return S}}},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 jh},AlignmentToolbar:function(){return Vh},Autocomplete:function(){return Yh},BlockAlignmentControl:function(){return Uo},BlockAlignmentToolbar:function(){return jo},BlockBreadcrumb:function(){return tb},BlockColorsStyleSelector:function(){return lb},BlockContextProvider:function(){return ti},BlockControls:function(){return or},BlockEdit:function(){return ii},BlockEditorKeyboardShortcuts:function(){return Lk},BlockEditorProvider:function(){return Mc},BlockFormatControls:function(){return rr},BlockIcon:function(){return Nc},BlockInspector:function(){return Rk},BlockList:function(){return Ny},BlockMover:function(){return Jd},BlockNavigationDropdown:function(){return Bb},BlockPreview:function(){return cp},BlockSelectionClearer:function(){return Uc},BlockSettingsMenu:function(){return Xf},BlockSettingsMenuControls:function(){return qf},BlockStyles:function(){return Nb},BlockTitle:function(){return Nd},BlockToolbar:function(){return ly},BlockTools:function(){return Fk},BlockVerticalAlignmentControl:function(){return so},BlockVerticalAlignmentToolbar:function(){return co},ButtonBlockAppender:function(){return Ed},ButtonBlockerAppender:function(){return kd},ColorPalette:function(){return Qb},ColorPaletteControl:function(){return Xb},ContrastChecker:function(){return Cm},CopyHandler:function(){return Tf},DefaultBlockAppender:function(){return vd},FontSizePicker:function(){return gg},InnerBlocks:function(){return By},Inserter:function(){return bd},InspectorAdvancedControls:function(){return Dr},InspectorControls:function(){return Lr},JustifyContentControl:function(){return fo},JustifyToolbar:function(){return yo},LineHeightControl:function(){return Xm},MediaPlaceholder:function(){return T_},MediaReplaceFlow:function(){return C_},MediaUpload:function(){return w_},MediaUploadCheck:function(){return A_},MultiSelectScrollIntoView:function(){return Uk},NavigableToolbar:function(){return Ld},ObserveTyping:function(){return Gk},PanelColorSettings:function(){return O_},PlainText:function(){return lk},RichText:function(){return rk},RichTextShortcut:function(){return ck},RichTextToolbarButton:function(){return uk},SETTINGS_DEFAULTS:function(){return h},SkipToSelectedBlock:function(){return xk},ToolSelector:function(){return fk},Typewriter:function(){return Kk},URLInput:function(){return Xv},URLInputButton:function(){return hk},URLPopover:function(){return B_},Warning:function(){return ai},WritingFlow:function(){return Zc},__experimentalBlockAlignmentMatrixControl:function(){return Zh},__experimentalBlockContentOverlay:function(){return nb},__experimentalBlockFullHeightAligmentControl:function(){return Xh},__experimentalBlockPatternSetup:function(){return $b},__experimentalBlockPatternsList:function(){return Op},__experimentalBlockVariationPicker:function(){return Fb},__experimentalBlockVariationTransforms:function(){return Jb},__experimentalBorderRadiusControl:function(){return sm},__experimentalBorderStyleControl:function(){return ym},__experimentalColorGradientControl:function(){return Uy},__experimentalColorGradientSettingsDropdown:function(){return jy},__experimentalDateFormatPicker:function(){return tv},__experimentalDuotoneControl:function(){return rh},__experimentalFontAppearanceControl:function(){return Jm},__experimentalFontFamilyControl:function(){return sg},__experimentalGetBorderClassesAndStyles:function(){return _h},__experimentalGetColorClassesAndStyles:function(){return Eh},__experimentalGetGradientClass:function(){return km},__experimentalGetGradientObjectByGradientValue:function(){return Sm},__experimentalGetMatchingVariation:function(){return Qk},__experimentalGetSpacingClassesAndStyles:function(){return Ah},__experimentalImageEditingProvider:function(){return Rv},__experimentalImageEditor:function(){return Hv},__experimentalImageSizeControl:function(){return $v},__experimentalImageURLInputUI:function(){return Ak},__experimentalLayoutStyle:function(){return Oo},__experimentalLetterSpacingControl:function(){return Lg},__experimentalLibrary:function(){return Mk},__experimentalLinkControl:function(){return k_},__experimentalLinkControlSearchInput:function(){return p_},__experimentalLinkControlSearchItem:function(){return t_},__experimentalLinkControlSearchResults:function(){return o_},__experimentalListView:function(){return Ib},__experimentalPanelColorGradientSettings:function(){return uv},__experimentalPreviewOptions:function(){return Ck},__experimentalResponsiveBlockControl:function(){return sk},__experimentalTextDecorationControl:function(){return Cg},__experimentalTextTransformControl:function(){return Rg},__experimentalToolsPanelColorDropdown:function(){return Im},__experimentalUnitControl:function(){return yk},__experimentalUseBlockPreview:function(){return up},__experimentalUseBorderProps:function(){return kh},__experimentalUseColorProps:function(){return wh},__experimentalUseCustomSides:function(){return Yr},__experimentalUseGradient:function(){return Am},__experimentalUseNoRecursiveRenders:function(){return Yk},__experimentalUseResizeCanvas:function(){return Ik},__unstableBlockNameContext:function(){return iy},__unstableBlockSettingsMenuFirstItem:function(){return Df},__unstableBlockToolbarLastItem:function(){return Af},__unstableEditorStyles:function(){return ip},__unstableIframe:function(){return nu},__unstableInserterMenuExtension:function(){return ad},__unstablePresetDuotoneFilter:function(){return fh},__unstableRichTextInputEvent:function(){return pk},__unstableUseBlockSelectionClearer:function(){return Lc},__unstableUseClipboardHandler:function(){return Pf},__unstableUseMouseMoveTypingReset:function(){return Vk},__unstableUseTypewriter:function(){return $k},__unstableUseTypingObserver:function(){return zk},createCustomColorsHOC:function(){return Ph},getColorClassName:function(){return Wy},getColorObjectByAttributeValues:function(){return Gy},getColorObjectByColorValue:function(){return Hy},getFontSize:function(){return fg},getFontSizeClass:function(){return mg},getFontSizeObjectByValue:function(){return yg},getGradientSlugByValue:function(){return wm},getGradientValueBySlug:function(){return Em},getPxFromCssUnit:function(){return aE},store:function(){return qn},storeConfig:function(){return Kn},transformStyles:function(){return np},useBlockDisplayInformation:function(){return Td},useBlockEditContext:function(){return Xn},useBlockProps:function(){return Ec},useCachedTruthy:function(){return Ch},useInnerBlocksProps:function(){return xy},useSetting:function(){return Cr},withColorContext:function(){return Yb},withColors:function(){return Th},withFontSizes:function(){return Nh}});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:function(){return Mt},__experimentalGetAllowedBlocks:function(){return gt},__experimentalGetAllowedPatterns:function(){return _t},__experimentalGetBlockListSettingsForBlocks:function(){return Ct},__experimentalGetDirectInsertBlock:function(){return ht},__experimentalGetGlobalBlocksByName:function(){return Z},__experimentalGetLastBlockAttributeChanges:function(){return Bt},__experimentalGetParsedPattern:function(){return bt},__experimentalGetPatternTransformItems:function(){return Et},__experimentalGetPatternsByBlockTypes:function(){return kt},__experimentalGetReusableBlockTitle:function(){return It},__unstableGetBlockWithoutInnerBlocks:function(){return $},__unstableGetClientIdWithClientIdsTree:function(){return q},__unstableGetClientIdsTree:function(){return J},__unstableGetSelectedBlocksWithPartialSelection:function(){return Oe},__unstableIsFullySelected:function(){return Be},__unstableIsLastBlockChangeIgnored:function(){return xt},__unstableIsSelectionCollapsed:function(){return Pe},__unstableIsSelectionMergeable:function(){return Te},areInnerBlocksControlled:function(){return Ft},canInsertBlockType:function(){return tt},canInsertBlocks:function(){return nt},canLockBlockType:function(){return at},canMoveBlock:function(){return it},canMoveBlocks:function(){return lt},canRemoveBlock:function(){return rt},canRemoveBlocks:function(){return ot},didAutomaticChange:function(){return Nt},getAdjacentBlockClientId:function(){return me},getBlock:function(){return W},getBlockAttributes:function(){return H},getBlockCount:function(){return te},getBlockHierarchyRootClientId:function(){return fe},getBlockIndex:function(){return Re},getBlockInsertionPoint:function(){return qe},getBlockListSettings:function(){return St},getBlockMode:function(){return Ve},getBlockName:function(){return z},getBlockOrder:function(){return Ne},getBlockParents:function(){return pe},getBlockParentsByBlockName:function(){return de},getBlockRootClientId:function(){return ue},getBlockSelectionEnd:function(){return ie},getBlockSelectionStart:function(){return oe},getBlockTransformItems:function(){return yt},getBlocks:function(){return K},getBlocksByClientId:function(){return ee},getClientIdsOfDescendants:function(){return Y},getClientIdsWithDescendants:function(){return Q},getDraggedBlockClientIds:function(){return He},getFirstMultiSelectedBlockClientId:function(){return Ee},getGlobalBlockCount:function(){return X},getInserterItems:function(){return ft},getLastMultiSelectedBlockClientId:function(){return Se},getLowestCommonAncestorWithSelectedBlock:function(){return ye},getMultiSelectedBlockClientIds:function(){return _e},getMultiSelectedBlocks:function(){return ke},getMultiSelectedBlocksEndClientId:function(){return xe},getMultiSelectedBlocksStartClientId:function(){return Ie},getNextBlockClientId:function(){return he},getPreviousBlockClientId:function(){return ge},getSelectedBlock:function(){return ce},getSelectedBlockClientId:function(){return se},getSelectedBlockClientIds:function(){return ve},getSelectedBlockCount:function(){return le},getSelectedBlocksInitialCaretPosition:function(){return be},getSelectionEnd:function(){return re},getSelectionStart:function(){return ne},getSettings:function(){return wt},getTemplate:function(){return Qe},getTemplateLock:function(){return Xe},hasBlockMovingClientId:function(){return Ot},hasInserterItems:function(){return mt},hasMultiSelection:function(){return Le},hasSelectedBlock:function(){return ae},hasSelectedInnerBlock:function(){return Me},isAncestorBeingDragged:function(){return $e},isAncestorMultiSelected:function(){return Ce},isBlockBeingDragged:function(){return We},isBlockHighlighted:function(){return Rt},isBlockInsertionPointVisible:function(){return Je},isBlockMultiSelected:function(){return Ae},isBlockSelected:function(){return Fe},isBlockValid:function(){return G},isBlockWithinSelection:function(){return De},isCaretWithinFormattedText:function(){return Ke},isDraggingBlocks:function(){return Ge},isFirstMultiSelectedBlock:function(){return we},isLastBlockChangePersistent:function(){return At},isMultiSelecting:function(){return Ue},isNavigationMode:function(){return Tt},isSelectionEnabled:function(){return je},isTyping:function(){return ze},isValidTemplate:function(){return Ye},wasBlockJustInserted:function(){return Dt}});var t={};n.r(t),n.d(t,{__unstableDeleteSelection:function(){return gn},__unstableExpandSelection:function(){return bn},__unstableMarkAutomaticChange:function(){return Dn},__unstableMarkLastChangeAsPersistent:function(){return Fn},__unstableMarkNextChangeAsNotPersistent:function(){return Mn},__unstableSaveReusableBlock:function(){return Rn},__unstableSplitSelection:function(){return hn},clearSelectedBlock:function(){return Zt},duplicateBlocks:function(){return jn},enterFormattedText:function(){return xn},exitFormattedText:function(){return Bn},flashBlock:function(){return Hn},hideInsertionPoint:function(){return fn},insertAfterBlock:function(){return zn},insertBeforeBlock:function(){return Vn},insertBlock:function(){return un},insertBlocks:function(){return pn},insertDefaultBlock:function(){return Tn},mergeBlocks:function(){return vn},moveBlockToPosition:function(){return cn},moveBlocksDown:function(){return ln},moveBlocksToPosition:function(){return sn},moveBlocksUp:function(){return an},multiSelect:function(){return Xt},receiveBlocks:function(){return Ht},removeBlock:function(){return kn},removeBlocks:function(){return _n},replaceBlock:function(){return rn},replaceBlocks:function(){return nn},replaceInnerBlocks:function(){return En},resetBlocks:function(){return Vt},resetSelection:function(){return Gt},selectBlock:function(){return Kt},selectNextBlock:function(){return Jt},selectPreviousBlock:function(){return qt},selectionChange:function(){return Pn},setBlockMovingClientId:function(){return Un},setHasControlledInnerBlocks:function(){return Wn},setNavigationMode:function(){return Ln},setTemplateValidity:function(){return yn},showInsertionPoint:function(){return dn},startDraggingBlocks:function(){return Cn},startMultiSelect:function(){return Yt},startTyping:function(){return wn},stopDraggingBlocks:function(){return In},stopMultiSelect:function(){return Qt},stopTyping:function(){return An},synchronizeTemplate:function(){return mn},toggleBlockHighlight:function(){return Gn},toggleBlockMode:function(){return Sn},toggleSelection:function(){return en},updateBlock:function(){return $t},updateBlockAttributes:function(){return Wt},updateBlockListSettings:function(){return On},updateSettings:function(){return Nn},validateBlocksToTemplate:function(){return zt}});var o=window.wp.blocks,i=window.wp.hooks;function l(){return l=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},l.apply(this,arguments)}(0,i.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,o.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var a=window.wp.element,s=n(4403),c=n.n(s),u=window.lodash,p=window.wp.compose,d=window.wp.components,f=window.wp.data;var y={default:(0,d.createSlotFill)("BlockControls"),block:(0,d.createSlotFill)("BlockControlsBlock"),inline:(0,d.createSlotFill)("BlockFormatControls"),other:(0,d.createSlotFill)("BlockControlsOther"),parent:(0,d.createSlotFill)("BlockControlsParent")},m=window.wp.i18n;const g={insertUsage:{}},h={alignWide:!1,supportsLayout:!0,colors:[{name:(0,m.__)("Black"),slug:"black",color:"#000000"},{name:(0,m.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,m.__)("White"),slug:"white",color:"#ffffff"},{name:(0,m.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,m.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,m.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,m.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,m.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,m.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,m.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,m.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,m.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,m._x)("Small","font size name"),size:13,slug:"small"},{name:(0,m._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,m._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,m._x)("Large","font size name"),size:36,slug:"large"},{name:(0,m._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,m.__)("Thumbnail")},{slug:"medium",name:(0,m.__)("Medium")},{slug:"large",name:(0,m.__)("Large")},{slug:"full",name:(0,m.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],__unstableGalleryWithImageBlocks:!1,generateAnchors:!1,gradients:[{name:(0,m.__)("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,m.__)("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,m.__)("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,m.__)("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,m.__)("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,m.__)("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,m.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,m.__)("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,m.__)("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,m.__)("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,m.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,m.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function b(e,t,n){return[...e.slice(0,n),...(0,u.castArray)(t),...e.slice(n)]}function v(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=[...e];return o.splice(t,r),b(o,e.slice(t,t+r),n)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={[t]:[]};return e.forEach((e=>{const{clientId:r,innerBlocks:o}=e;n[t].push(r),Object.assign(n,_(o,r))})),n}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(((e,n)=>Object.assign(e,{[n.clientId]:t},k(n.innerBlocks,n.clientId))),{})}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.identity;const n={},r=[...e];for(;r.length;){const{innerBlocks:e,...o}=r.shift();r.push(...e),n[o.clientId]=t(o)}return n}function S(e){return E(e,(e=>(0,u.omit)(e,"attributes")))}function w(e){return E(e,(e=>e.attributes))}function A(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&(0,u.isEqual)(e.clientIds,t.clientIds)&&function(e,t){return(0,u.isEqual)((0,u.keys)(e),(0,u.keys)(t))}(e.attributes,t.attributes)}function C(e,t){const n={},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[e.clientId]={};for(const t of o)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes[t.clientId],innerBlocks:t.innerBlocks.map((e=>n[e.clientId]))});return n}function I(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=new Set([]),i=new Set;for(const t of n){let n=r?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){i.add(n);break}o.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of o)t[e]={...t[e]};for(const n of o)t[n].innerBlocks=(e.order[n]||[]).map((e=>t[e]));for(const n of i)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map((e=>t[e]))};return t}const x=(0,u.flow)(f.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=(0,u.mapValues)(t.attributes,((n,o)=>{const{name:i}=t.byClientId[o];return"core/block"===i&&n.ref===e?{...n,ref:r}:n}))}return e(t,n)}),(e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const r=e(t,n);if(r===t)return t;switch(r.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=C(r,n.blocks);r.tree=I(r,{...r.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":r.tree=I(r,{...r.tree,[n.clientId]:{...r.tree[n.clientId],...r.byClientId[n.clientId],attributes:r.attributes[n.clientId]}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce(((e,t)=>(e[t]={...r.tree[t],attributes:r.attributes[t]},e)),{});r.tree=I(r,{...r.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=C(r,n.blocks);r.tree=I(r,{...(0,u.omit)(r.tree,n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e)))),...e},n.blocks.map((e=>e.clientId)),!1);const o=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!r.byClientId[t.parents[e]]||o.push(t.parents[e]);r.tree=I(r,r.tree,o,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const o of n.clientIds)void 0===t.parents[o]||""!==t.parents[o]&&!r.byClientId[t.parents[o]]||e.push(t.parents[o]);r.tree=I(r,(0,u.omit)(r.tree,n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e)))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),r.tree=I(r,r.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];r.tree=I(r,r.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=(0,u.keys)((0,u.omitBy)(r.attributes,((e,t)=>"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId)));r.tree=I(r,{...r.tree,...e.reduce(((e,t)=>(e[t]={...r.byClientId[t],attributes:r.attributes[t],innerBlocks:r.tree[t].innerBlocks},e)),{})},e,!1)}}return r}),(e=>(t,n)=>{const r=e=>{let r=e;for(let o=0;o<r.length;o++)!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=[...r]),r.push(...t.order[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[n.rootClientId]&&(o=e(o,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));let i=o;return n.blocks.length&&(i=e(i,{...n,type:"INSERT_BLOCKS",index:0}),i.order={...i.order,...(0,u.reduce)(r,((e,n,r)=>(t.order[r]&&(e[r]=t.order[r]),e)),{})}),i}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:S(n.blocks),attributes:w(n.blocks),order:_(n.blocks),parents:k(n.blocks),controlledInnerBlocks:{}},r=C(e,n.blocks);return e.tree={...r,"":{innerBlocks:n.blocks.map((e=>r[e.clientId]))}},e}return e(t,n)}),(function(e){let t,n=!1;return(r,o)=>{let i=e(r,o);const l="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===i&&!l){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;const e=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===e?r:{...i,isPersistentChange:e}}return i={...i,isPersistentChange:l?!n:!A(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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...S(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=(0,u.omit)(t.updates,"attributes");return(0,u.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,u.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...w(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e[t])))return e;const n=t.clientIds.reduce(((n,r)=>({...n,[r]:(0,u.reduce)(t.uniqueByBlock?t.attributes[r]:t.attributes,((t,n,o)=>{var i,l;return n!==t[o]&&((t=(i=e[r])===(l=t)?{...i}:l)[o]=n),t}),e[r])})),{});return t.clientIds.every((t=>n[t]===e[t]))?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,u.omit)(e,t.replacedClientIds),...w(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=_(t.blocks);return{...e,...(0,u.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,r=e[n]||[],o=_(t.blocks,n),{index:i=r.length}=t;return{...e,...o,[n]:b(r,o[n],i)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:r="",clientIds:o}=t,{index:i=e[r].length}=t;if(n===r){const t=e[r].indexOf(o[0]);return{...e,[r]:v(e[r],t,i,o.length)}}return{...e,[n]:(0,u.without)(e[n],...o),[r]:b(e[r],o,i)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:r=""}=t,o=(0,u.first)(n),i=e[r];if(!i.length||o===(0,u.first)(i))return e;const l=i.indexOf(o);return{...e,[r]:v(i,l,l-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:r=""}=t,o=(0,u.first)(n),i=(0,u.last)(n),l=e[r];if(!l.length||i===(0,u.last)(l))return e;const a=l.indexOf(o);return{...e,[r]:v(l,a,a+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const r=_(t.blocks);return(0,u.flow)([e=>(0,u.omit)(e,t.replacedClientIds),e=>({...e,...(0,u.omit)(r,"")}),e=>(0,u.mapValues)(e,(e=>(0,u.reduce)(e,((e,t)=>t===n[0]?[...e,...r[""]]:(-1===n.indexOf(t)&&e.push(t),e)),[])))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.flow)([e=>(0,u.omit)(e,t.removedClientIds),e=>(0,u.mapValues)(e,(e=>(0,u.without)(e,...t.removedClientIds)))])(e)}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":return{...e,...k(t.blocks)};case"INSERT_BLOCKS":return{...e,...k(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce(((e,n)=>(e[n]=t.toRootClientId||"",e)),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...(0,u.omit)(e,t.replacedClientIds),...k(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:r}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:r}:e}});function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;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}var P,T,O=(0,f.combineReducers)({blocks:x,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t,n,r;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;switch(i.type){case"SELECTION_CHANGE":return i.clientId?{selectionStart:{clientId:i.clientId,attributeKey:i.attributeKey,offset:i.startOffset},selectionEnd:{clientId:i.clientId,attributeKey:i.attributeKey,offset:i.endOffset}}:{selectionStart:i.start||o.selectionStart,selectionEnd:i.end||o.selectionEnd};case"RESET_SELECTION":const{selectionStart:l,selectionEnd:a}=i;return{selectionStart:l,selectionEnd:a};case"MULTI_SELECT":const{start:s,end:c}=i;return s===(null===(e=o.selectionStart)||void 0===e?void 0:e.clientId)&&c===(null===(t=o.selectionEnd)||void 0===t?void 0:t.clientId)?o:{selectionStart:{clientId:s},selectionEnd:{clientId:c}};case"RESET_BLOCKS":const u=null==o||null===(n=o.selectionStart)||void 0===n?void 0:n.clientId,p=null==o||null===(r=o.selectionEnd)||void 0===r?void 0:r.clientId;if(!u&&!p)return o;if(!i.blocks.some((e=>e.clientId===u)))return{selectionStart:{},selectionEnd:{}};if(!i.blocks.some((e=>e.clientId===p)))return{...o,selectionEnd:o.selectionStart}}return{selectionStart:B(o.selectionStart,i),selectionEnd:B(o.selectionEnd,i)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return(0,u.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?(0,u.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?(0,u.omit)(e,n):e}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:r}=t;return{rootClientId:e,index:n,__unstableWithInserter:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:r,name:i}=n,l=(0,f.select)(o.store).getActiveBlockVariation(i,r);let a=null!=l&&l.name?`${i}/${l.name}`:i;const s={name:a};return"core/block"===i&&(s.ref=r.ref,a+="/"+r.ref),{...e,insertUsage:{...e.insertUsage,[a]:{time:t.time,count:e.insertUsage[a]?e.insertUsage[a].count+1:1,insert:s}}}}),e)}return e},lastBlockAttributesChange:function(e,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 null},isNavigationMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:r}=t;return r?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":if(!n.blocks.length)return t;return{clientId:n.blocks[0].clientId,source:null===(e=n.meta)||void 0===e?void 0:e.source};case"RESET_BLOCKS":return{}}return t}});function N(e){return[e]}function R(){var e={clear:function(){e.head=null}};return e}function F(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 M(e,t){var n,r;function o(){n=T?new WeakMap:R()}function i(){var n,o,i,l,a,s=arguments.length;for(l=new Array(s),i=0;i<s;i++)l[i]=arguments[i];for(a=t.apply(null,l),(n=r(a)).isUniqueByDependants||(n.lastDependants&&!F(a,n.lastDependants,0)&&n.clear(),n.lastDependants=a),o=n.head;o;){if(F(o.args,l,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,l)},l[0]=null,o.args=l,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=N),r=T?function(e){var t,r,o,i,l,a=n,s=!0;for(t=0;t<e.length;t++){if(r=e[t],!(l=r)||"object"!=typeof l){s=!1;break}a.has(r)?a=a.get(r):(o=new WeakMap,a.set(r,o),a=o)}return a.has(P)||((i=R()).isUniqueByDependants=s,a.set(P,i)),a.get(P)}:function(){return n},i.getDependants=t,i.clear=o,o(),i}P={},T="undefined"!=typeof WeakMap;var D=window.wp.primitives;var L=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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"})),U=window.wp.richText;function j(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:r}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:r}}const V=[];function z(e,t){const n=e.blocks.byClientId[t],r="core/social-link";if("web"!==a.Platform.OS&&(null==n?void 0:n.name)===r){const n=e.blocks.attributes[t],{service:o}=n;return o?`core/social-link-${o}`:r}return n?n.name:null}function G(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function H(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function W(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const $=M(((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:H(e,t)}:null}),((e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]));function K(e,t){var n;const r=t&&Ft(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[r])||void 0===n?void 0:n.innerBlocks)||V}const q=M(((e,t)=>({clientId:t,innerBlocks:J(e,t)})),(e=>[e.blocks.order])),J=M((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(Ne(e,t),(t=>q(e,t)))}),(e=>[e.blocks.order])),Y=M(((e,t)=>{const n=[];for(const r of t)for(const t of Ne(e,r))n.push(t,...Y(e,[t]));return n}),(e=>[e.blocks.order])),Q=M((e=>{const t=[];for(const n of Ne(e))t.push(n,...Y(e,[n]));return t}),(e=>[e.blocks.order])),X=M(((e,t)=>{const n=Q(e);return t?(0,u.reduce)(n,((n,r)=>e.blocks.byClientId[r].name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),Z=M(((e,t)=>{if(!t)return V;const n=Q(e).filter((n=>e.blocks.byClientId[n].name===t));return n.length>0?n:V}),(e=>[e.blocks.order,e.blocks.byClientId])),ee=M(((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>W(e,t)))),((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>e.blocks.tree[t]))));function te(e,t){return Ne(e,t).length}function ne(e){return e.selection.selectionStart}function re(e){return e.selection.selectionEnd}function oe(e){return e.selection.selectionStart.clientId}function ie(e){return e.selection.selectionEnd.clientId}function le(e){const t=_e(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function ae(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function se(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:r}=t;return r&&r===n.clientId?r:null}function ce(e){const t=se(e);return t?W(e,t):null}function ue(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const pe=M((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[];let o=t;for(;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(e=>[e.blocks.parents])),de=M((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=pe(e,t,r);return(0,u.map)((0,u.filter)((0,u.map)(o,(t=>({id:t,name:z(e,t)}))),(e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n})),(e=>{let{id:t}=e;return t}))}),(e=>[e.blocks.parents]));function fe(e,t){let n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function ye(e,t){const n=se(e),r=[...pe(e,t),t],o=[...pe(e,n),n];let i;const l=Math.min(r.length,o.length);for(let e=0;e<l&&r[e]===o[e];e++)i=r[e];return i}function me(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=se(e)),void 0===t&&(t=n<0?Ee(e):Se(e)),!t)return null;const r=ue(e,t);if(null===r)return null;const{order:o}=e.blocks,i=o[r],l=i.indexOf(t),a=l+1*n;return a<0||a===i.length?null:i[a]}function ge(e,t){return me(e,t,-1)}function he(e,t){return me(e,t,1)}function be(e){return e.initialPosition}const ve=M((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return V;if(t.clientId===n.clientId)return[t.clientId];const r=ue(e,t.clientId);if(null===r)return V;const o=Ne(e,r),i=o.indexOf(t.clientId),l=o.indexOf(n.clientId);return i>l?o.slice(l,i+1):o.slice(i,l+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function _e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?V:ve(e)}const ke=M((e=>{const t=_e(e);return t.length?t.map((t=>W(e,t))):V}),(e=>[...ve.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ee(e){return(0,u.first)(_e(e))||null}function Se(e){return(0,u.last)(_e(e))||null}function we(e,t){return Ee(e)===t}function Ae(e,t){return-1!==_e(e).indexOf(t)}const Ce=M(((e,t)=>{let n=t,r=!1;for(;n&&!r;)n=ue(e,n),r=Ae(e,n);return r}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Ie(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function xe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Be(e){const t=ne(e),n=re(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Pe(e){const t=ne(e),n=re(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function Te(e,t){const n=ne(e),r=re(e);if(n.clientId===r.clientId)return!1;if(!n.attributeKey||!r.attributeKey||void 0===n.offset||void 0===r.offset)return!1;const i=ue(e,n.clientId);if(i!==ue(e,r.clientId))return!1;const l=Ne(e,i);let a,s;l.indexOf(n.clientId)>l.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=W(e,c);if(!(0,o.getBlockType)(p.name).merge)return!1;const d=W(e,u);if(d.name===p.name)return!0;const f=(0,o.switchToBlockType)(d,p.name);return f&&f.length}const Oe=e=>{const t=ne(e),n=re(e);if(t.clientId===n.clientId)return V;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return V;const r=ue(e,t.clientId);if(r!==ue(e,n.clientId))return V;const i=Ne(e,r),l=i.indexOf(t.clientId),a=i.indexOf(n.clientId),[s,c]=l>a?[n,t]:[t,n],u=W(e,s.clientId),p=(0,o.getBlockType)(u.name),d=W(e,c.clientId),f=(0,o.getBlockType)(d.name),y=u.attributes[s.attributeKey],m=d.attributes[c.attributeKey],g=p.attributes[s.attributeKey],h=f.attributes[c.attributeKey];let b=(0,U.create)({html:y,...j(g)}),v=(0,U.create)({html:m,...j(h)});return b=(0,U.remove)(b,0,s.offset),v=(0,U.remove)(v,c.offset,v.text.length),[{...u,attributes:{...u.attributes,[s.attributeKey]:(0,U.toHTMLString)({value:b,...j(g)})}},{...d,attributes:{...d.attributes,[c.attributeKey]:(0,U.toHTMLString)({value:v,...j(h)})}}]};function Ne(e,t){return e.blocks.order[t||""]||V}function Re(e,t){return Ne(e,ue(e,t)).indexOf(t)}function Fe(e,t){const{selectionStart:n,selectionEnd:r}=e.selection;return n.clientId===r.clientId&&n.clientId===t}function Me(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,u.some)(Ne(e,t),(t=>Fe(e,t)||Ae(e,t)||n&&Me(e,t,n)))}function De(e,t){if(!t)return!1;const n=_e(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Le(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Ue(e){return e.isMultiSelecting}function je(e){return e.isSelectionEnabled}function Ve(e,t){return e.blocksMode[t]||"visual"}function ze(e){return e.isTyping}function Ge(e){return!!e.draggedBlocks.length}function He(e){return e.draggedBlocks}function We(e,t){return e.draggedBlocks.includes(t)}function $e(e,t){if(!Ge(e))return!1;const n=pe(e,t);return(0,u.some)(n,(t=>We(e,t)))}function Ke(e){return e.isCaretWithinFormattedText}function qe(e){let t,n;const{insertionPoint:r,selection:{selectionEnd:o}}=e;if(null!==r)return r;const{clientId:i}=o;return i?(t=ue(e,i)||void 0,n=Re(e,o.clientId)+1):n=Ne(e).length,{rootClientId:t,index:n}}function Je(e){return null!==e.insertionPoint}function Ye(e){return e.template.isValid}function Qe(e){return e.settings.template}function Xe(e,t){if(!t)return e.settings.templateLock;const n=St(e,t);return n?n.templateLock:null}const Ze=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,u.isBoolean)(e)?e:(0,u.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},et=function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=(0,o.getBlockType)(t),!n)return!1;const{allowedBlockTypes:l}=wt(e),a=Ze(l,t,!0);if(!a)return!1;const s=!!Xe(e,r);if(s)return!1;const c=St(e,r);if(r&&void 0===c)return!1;const p=null==c?void 0:c.allowedBlocks,d=Ze(p,t),f=n.parent,y=z(e,r),m=Ze(f,y);let g=!0;const h=n.ancestor;if(h){const t=[r,...pe(e,r)];g=(0,u.some)(t,(t=>Ze(h,z(e,t))))}const b=g&&(null===d&&null===m||!0===d||!0===m);return b?(0,i.applyFilters)("blockEditor.__unstableCanInsertBlockType",b,n,r,{getBlock:W.bind(null,e),getBlockParentsByBlockName:de.bind(null,e)}):b},tt=M(et,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]));function nt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>tt(e,z(e,t),n)))}function rt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=H(e,t);if(null===r)return!0;const{lock:o}=r,i=!!Xe(e,n);return void 0===o||void 0===(null==o?void 0:o.remove)?!i:!(null!=o&&o.remove)}function ot(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>rt(e,t,n)))}function it(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=H(e,t);if(null===r)return;const{lock:o}=r,i="all"===Xe(e,n);return void 0===o||void 0===(null==o?void 0:o.move)?!i:!(null!=o&&o.move)}function lt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>it(e,t,n)))}function at(e,t){var n;return!!(0,o.hasBlockSupport)(t,"lock",!0)&&!(null===(n=e.settings)||void 0===n||!n.canLockBlocks)}function st(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}const ct=(e,t,n)=>!!(0,o.hasBlockSupport)(t,"inserter",!0)&&et(e,t.name,n),ut=(e,t)=>n=>{const r=`${t.id}/${n.name}`,{time:o,count:i=0}=st(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)}},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}},dt=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const r=t.name;let i=!1;(0,o.hasBlockSupport)(t.name,"multiple",!0)||(i=(0,u.some)(ee(e,Q(e)),{name:t.name}));const{time:l,count:a=0}=st(e,r)||{},s={id:r,name:t.name,title:t.title,icon:t.icon,isDisabled:i,frecency:pt(l,a)};if("transform"===n)return s;const c=(0,o.getBlockVariations)(t.name,"inserter");return{...s,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:c,example:t.example,utility:1}}},ft=M((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=dt(e,{buildScope:"inserter"}),r=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,i=t=>{let n=L;if("web"===a.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(r);if(e){const[,,t="core/",r]=e,i=(0,o.getBlockType)(t+r);i&&(n=i.icon)}}const i=`core/block/${t.id}`,{time:l,count:s=0}=st(e,i)||{},c=pt(l,s);return{id:i,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:c}},l=(0,o.getBlockTypes)().filter((n=>ct(e,n,t))).map(n),s=et(e,"core/block",t)?Pt(e).map(i):[],c=l.reduce(((t,n)=>{const{variations:r=[]}=n;if(r.some((e=>{let{isDefault:t}=e;return t}))||t.push(n),r.length){const o=ut(e,n);t.push(...r.map(o))}return t}),[]),u=(e,t)=>{const{core:n,noncore:r}=e;return(t.name.startsWith("core/")?n:r).push(t),e},{core:p,noncore:d}=c.reduce(u,{core:[],noncore:[]}),f=[...p,...d];return[...f,...s]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Pt(e),(0,o.getBlockTypes)()])),yt=M((function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const[i]=t,l=dt(e,{buildScope:"transform"}),a=(0,o.getBlockTypes)().filter((t=>ct(e,t,r))).map(l),s=(0,u.mapKeys)(a,(e=>{let{name:t}=e;return t}));s["*"]={frecency:1/0,id:"*",isDisabled:!1,name:"*",title:(0,m.__)("Unwrap"),icon:null===(n=s[i.name])||void 0===n?void 0:n.icon};const c=(0,o.getPossibleBlockTransformations)(t).reduce(((e,t)=>("*"===t?e.push(s["*"]):s[null==t?void 0:t.name]&&e.push(s[t.name]),e)),[]);return(0,u.orderBy)(c,(e=>s[e.name].frecency),"desc")}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,o.getBlockTypes)()])),mt=M((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(0,u.some)((0,o.getBlockTypes)(),(n=>ct(e,n,t)));if(n)return!0;const r=et(e,"core/block",t)&&Pt(e).length>0;return r}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Pt(e),(0,o.getBlockTypes)()])),gt=M((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return(0,u.filter)((0,o.getBlockTypes)(),(n=>ct(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,o.getBlockTypes)()])),ht=M((function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!r)return;const o=null===(t=e.blockListSettings[r])||void 0===t?void 0:t.__experimentalDefaultBlock,i=null===(n=e.blockListSettings[r])||void 0===n?void 0:n.__experimentalDirectInsert;return o&&i?"function"==typeof i?i(W(e,r))?o:null:o:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree[t]])),bt=M(((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find((e=>{let{name:n}=e;return n===t}));return n?{...n,blocks:(0,o.parse)(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns])),vt=M((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=wt(e),r=t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return bt(e,n)})),o=r.filter((e=>{let{blocks:t}=e;return((e,t)=>{if((0,u.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var r;const e=n.shift();if(!Ze(t,e.name||e.blockName,!0))return!1;null===(r=e.innerBlocks)||void 0===r||r.forEach((e=>{n.push(e)}))}return!0})(t,n)}));return o}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),_t=M((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=vt(e),r=(0,u.filter)(n,(n=>{let{blocks:r}=n;return r.every((n=>{let{name:r}=n;return tt(e,r,t)}))}));return r}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]])),kt=M((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return V;const r=_t(e,n),o=Array.isArray(t)?t:[t];return r.filter((e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,(e=>o.includes(e)))}))}),((e,t)=>[..._t.getDependants(e,t)])),Et=M((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return V;if(t.some((t=>{let{clientId:n,innerBlocks:r}=t;return r.length||Ft(e,n)})))return V;const r=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return kt(e,r,n)}),((e,t)=>[...kt.getDependants(e,t)]));function St(e,t){return e.blockListSettings[t]}function wt(e){return e.settings}function At(e){return e.blocks.isPersistentChange}const Ct=M((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})}),(e=>[e.blockListSettings])),It=M(((e,t)=>{var n;const r=(0,u.find)(Pt(e),(e=>e.id===t));return r?null===(n=r.title)||void 0===n?void 0:n.raw:null}),(e=>[Pt(e)]));function xt(e){return e.blocks.isIgnoredChange}function Bt(e){return e.lastBlockAttributesChange}function Pt(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:V}function Tt(e){return e.isNavigationMode}function Ot(e){return e.hasBlockMovingClientId}function Nt(e){return!!e.automaticChangeStatus}function Rt(e,t){return e.highlightedBlock===t}function Ft(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Mt=M(((e,t)=>{if(!t.length)return null;const n=se(e);if(t.includes(z(e,n)))return n;const r=_e(e),o=de(e,n||r[0],t);return o?(0,u.last)(o):null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Dt(e,t,n){const{lastBlockInserted:r}=e;return r.clientId===t&&r.source===n}var Lt=window.wp.a11y,Ut=window.wp.deprecated,jt=n.n(Ut);const Vt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(zt(e))},zt=e=>t=>{let{select:n,dispatch:r}=t;const i=n.getTemplate(),l=n.getTemplateLock(),a=!i||"all"!==l||(0,o.doBlocksMatchTemplate)(e,i);if(a!==n.isValidTemplate())return r.setTemplateValidity(a),a};function Gt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Ht(e){return jt()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Wt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:(0,u.castArray)(e),attributes:t,uniqueByBlock:n}}function $t(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Kt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const qt=e=>t=>{let{select:n,dispatch:r}=t;const o=n.getPreviousBlockClientId(e);o&&r.selectBlock(o,-1)},Jt=e=>t=>{let{select:n,dispatch:r}=t;const o=n.getNextBlockClientId(e);o&&r.selectBlock(o)};function Yt(){return{type:"START_MULTI_SELECT"}}function Qt(){return{type:"STOP_MULTI_SELECT"}}const Xt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r=>{let{select:o,dispatch:i}=r;if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;i({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const l=o.getSelectedBlockCount();(0,Lt.speak)((0,m.sprintf)((0,m._n)("%s block selected.","%s blocks selected.",l),l),"assertive")}};function Zt(){return{type:"CLEAR_SELECTED_BLOCK"}}function en(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function tn(e,t){var n,r;const i=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((e=>{var t;const n=e.name;if(!(0,o.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!i[n])return e;const r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=r&&r.includes("is-style-"))return e;const{attributes:l={}}=e,a=i[n];return{...e,attributes:{...l,className:`${r||""} is-style-${a}`.trim()}}}))}const nn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0;return i=>{let{select:l,dispatch:a}=i;e=(0,u.castArray)(e),t=tn((0,u.castArray)(t),l.getSettings());const s=l.getBlockRootClientId((0,u.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!l.canInsertBlockType(n.name,s))return}a({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r,meta:o}),a((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:r}=t.getSettings();r||n.insertDefaultBlock()}))}};function rn(e,t){return nn(e,t)}const on=e=>(t,n)=>r=>{let{select:o,dispatch:i}=r;o.canMoveBlocks(t,n)&&i({type:e,clientIds:(0,u.castArray)(t),rootClientId:n})},ln=on("MOVE_BLOCKS_DOWN"),an=on("MOVE_BLOCKS_UP"),sn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;return o=>{let{select:i,dispatch:l}=o;if(i.canMoveBlocks(e,t)){if(t!==n){if(!i.canRemoveBlocks(e,t))return;if(!i.canInsertBlocks(e,n))return}l({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r})}}};function cn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0;return sn([e],t,n,r)}function un(e,t,n,r,o){return pn([e],t,n,r,0,o)}const pn=function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;return l=>{let{select:a,dispatch:s}=l;(0,u.isObject)(o)&&(i=o,o=0,jt()("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=tn((0,u.castArray)(e),a.getSettings());const c=[];for(const t of e){a.canInsertBlockType(t.name,n)&&c.push(t)}c.length&&s({type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,initialPosition:r?o:null,meta:i})}};function dn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:r}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:r}}function fn(){return{type:"HIDE_INSERTION_POINT"}}function yn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const mn=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const r=t.getBlocks(),i=t.getTemplate(),l=(0,o.synchronizeBlocksWithTemplate)(r,i);n.resetBlocks(l)},gn=e=>t=>{let{registry:n,select:r,dispatch:i}=t;const l=r.getSelectionStart(),a=r.getSelectionEnd();if(l.clientId===a.clientId)return;if(!l.attributeKey||!a.attributeKey||void 0===l.offset||void 0===a.offset)return!1;const s=r.getBlockRootClientId(l.clientId);if(s!==r.getBlockRootClientId(a.clientId))return;const c=r.getBlockOrder(s);let p,d;c.indexOf(l.clientId)>c.indexOf(a.clientId)?(p=a,d=l):(p=l,d=a);const f=e?d:p,y=r.getBlock(f.clientId),m=(0,o.getBlockType)(y.name);if(!m.merge)return;const g=p,h=d,b=r.getBlock(g.clientId),v=(0,o.getBlockType)(b.name),_=r.getBlock(h.clientId),k=(0,o.getBlockType)(_.name),E=b.attributes[g.attributeKey],S=_.attributes[h.attributeKey],w=v.attributes[g.attributeKey],A=k.attributes[h.attributeKey];let C=(0,U.create)({html:E,...j(w)}),I=(0,U.create)({html:S,...j(A)});C=(0,U.remove)(C,g.offset,C.text.length),I=(0,U.insert)(I,"†",0,h.offset);const x=(0,o.cloneBlock)(b,{[g.attributeKey]:(0,U.toHTMLString)({value:C,...j(w)})}),B=(0,o.cloneBlock)(_,{[h.attributeKey]:(0,U.toHTMLString)({value:I,...j(A)})}),P=e?x:B,T=b.name===_.name?[P]:(0,o.switchToBlockType)(P,m.name);if(!T||!T.length)return;let O;if(e){const e=T.pop();O=m.merge(e.attributes,B.attributes)}else{const e=T.shift();O=m.merge(x.attributes,e.attributes)}const N=(0,u.findKey)(O,(e=>"string"==typeof e&&-1!==e.indexOf("†"))),R=O[N],F=(0,U.create)({html:R,...j(m.attributes[N])}),M=F.text.indexOf("†"),D=(0,U.remove)(F,M,M+1),L=(0,U.toHTMLString)({value:D,...j(m.attributes[N])});O[N]=L;const V=r.getSelectedBlockClientIds(),z=[...e?T:[],{...y,attributes:{...y.attributes,...O}},...e?[]:T];n.batch((()=>{i.selectionChange(y.clientId,N,M,M),i.replaceBlocks(V,z,0,r.getSelectedBlocksInitialCaretPosition())}))},hn=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getSelectionStart(),i=t.getSelectionEnd();if(r.clientId===i.clientId)return;if(!r.attributeKey||!i.attributeKey||void 0===r.offset||void 0===i.offset)return;const l=t.getBlockRootClientId(r.clientId);if(l!==t.getBlockRootClientId(i.clientId))return;const a=t.getBlockOrder(l);let s,c;a.indexOf(r.clientId)>a.indexOf(i.clientId)?(s=i,c=r):(s=r,c=i);const u=s,p=c,d=t.getBlock(u.clientId),f=(0,o.getBlockType)(d.name),y=t.getBlock(p.clientId),m=(0,o.getBlockType)(y.name),g=d.attributes[u.attributeKey],h=y.attributes[p.attributeKey],b=f.attributes[u.attributeKey],v=m.attributes[p.attributeKey];let _=(0,U.create)({html:g,...j(b)}),k=(0,U.create)({html:h,...j(v)});_=(0,U.remove)(_,u.offset,_.text.length),k=(0,U.remove)(k,0,p.offset),n.replaceBlocks(t.getSelectedBlockClientIds(),[{...d,attributes:{...d.attributes,[u.attributeKey]:(0,U.toHTMLString)({value:_,...j(b)})}},(0,o.createBlock)((0,o.getDefaultBlockName)()),{...y,attributes:{...y.attributes,[p.attributeKey]:(0,U.toHTMLString)({value:k,...j(v)})}}],1,t.getSelectedBlocksInitialCaretPosition())},bn=()=>e=>{let{select:t,dispatch:n}=e;const r=t.getSelectionStart(),o=t.getSelectionEnd();n.selectionChange({start:{clientId:r.clientId},end:{clientId:o.clientId}})},vn=(e,t)=>n=>{let{select:r,dispatch:i}=n;const l=[e,t];i({type:"MERGE_BLOCKS",blocks:l});const[a,s]=l,c=r.getBlock(a),p=(0,o.getBlockType)(c.name);if(p&&!p.merge)return void i.selectBlock(c.clientId);const d=r.getBlock(s),f=(0,o.getBlockType)(d.name),{clientId:y,attributeKey:m,offset:g}=r.getSelectionStart(),h=(y===a?p:f).attributes[m],b=(y===a||y===s)&&void 0!==m&&void 0!==g&&!!h;h||("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 v=(0,o.cloneBlock)(c),_=(0,o.cloneBlock)(d);if(b){const e=y===a?v:_,t=e.attributes[m],n=(0,U.insert)((0,U.create)({html:t,...j(h)}),"†",g,g);e.attributes[m]=(0,U.toHTMLString)({value:n,...j(h)})}const k=c.name===d.name?[_]:(0,o.switchToBlockType)(_,c.name);if(!k||!k.length)return;const E=p.merge(v.attributes,k[0].attributes);if(b){const e=(0,u.findKey)(E,(e=>"string"==typeof e&&-1!==e.indexOf("†"))),t=E[e],n=(0,U.create)({html:t,...j(p.attributes[e])}),r=n.text.indexOf("†"),o=(0,U.remove)(n,r,r+1),l=(0,U.toHTMLString)({value:o,...j(p.attributes[e])});E[e]=l,i.selectionChange(c.clientId,e,r,r)}i.replaceBlocks([c.clientId,d.clientId],[{...c,attributes:{...c.attributes,...E}},...k.slice(1)],0)},_n=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:r,dispatch:o}=n;if(!e||!e.length)return;e=(0,u.castArray)(e);const i=r.getBlockRootClientId(e[0]);r.canRemoveBlocks(e,i)&&(t&&o.selectPreviousBlock(e[0]),o({type:"REMOVE_BLOCKS",clientIds:e}),o((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:r}=t.getSettings();r||n.insertDefaultBlock()})))}};function kn(e,t){return _n([e],t)}function En(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?r:null,time:Date.now()}}function Sn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function wn(){return{type:"START_TYPING"}}function An(){return{type:"STOP_TYPING"}}function Cn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function In(){return{type:"STOP_DRAGGING_BLOCKS"}}function xn(){return{type:"ENTER_FORMATTED_TEXT"}}function Bn(){return{type:"EXIT_FORMATTED_TEXT"}}function Pn(e,t,n,r){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}:{type:"SELECTION_CHANGE",...e}}const Tn=(e,t,n)=>r=>{let{dispatch:i}=r;const l=(0,o.getDefaultBlockName)();if(!l)return;const a=(0,o.createBlock)(l,e);return i.insertBlock(a,n,t)};function On(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Nn(e){return{type:"UPDATE_SETTINGS",settings:e}}function Rn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Fn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Mn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const Dn=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n((()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},Ln=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?(0,Lt.speak)((0,m.__)("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.")):(0,Lt.speak)((0,m.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},Un=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Lt.speak)((0,m.__)("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."))}},jn=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:r,dispatch:i}=n;if(!e||!e.length)return;const l=r.getBlocksByClientId(e);if((0,u.some)(l,(e=>!e)))return;const a=l.map((e=>e.name));if(a.some((e=>!(0,o.hasBlockSupport)(e,"multiple",!0))))return;const s=r.getBlockRootClientId(e[0]),c=r.getBlockIndex((0,u.last)((0,u.castArray)(e))),p=l.map((e=>(0,o.__experimentalCloneSanitizedBlock)(e)));return i.insertBlocks(p,c+1,s,t),p.length>1&&t&&i.multiSelect((0,u.first)(p).clientId,(0,u.last)(p).clientId),p.map((e=>e.clientId))}},Vn=e=>t=>{let{select:n,dispatch:r}=t;if(!e)return;const o=n.getBlockRootClientId(e);if(n.getTemplateLock(o))return;const i=n.getBlockIndex(e);return r.insertDefaultBlock({},o,i)},zn=e=>t=>{let{select:n,dispatch:r}=t;if(!e)return;const o=n.getBlockRootClientId(e);if(n.getTemplateLock(o))return;const i=n.getBlockIndex(e);return r.insertDefaultBlock({},o,i+1)};function Gn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Hn=e=>async t=>{let{dispatch:n}=t;n(Gn(e,!0)),await new Promise((e=>setTimeout(e,150))),n(Gn(e,!1))};function Wn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}const $n="core/block-editor",Kn={reducer:O,selectors:e,actions:t},qn=(0,f.createReduxStore)($n,{...Kn,persist:["preferences"]});(0,f.registerStore)($n,{...Kn,persist:["preferences"]});const Jn={name:"",isSelected:!1},Yn=(0,a.createContext)(Jn),{Provider:Qn}=Yn;function Xn(){return(0,a.useContext)(Yn)}function Zn(){const{isSelected:e,clientId:t,name:n}=Xn();return(0,f.useSelect)((r=>{if(e)return!0;const{getBlockName:o,isFirstMultiSelectedBlock:i,getMultiSelectedBlockClientIds:l}=r(qn);return!!i(t)&&l().every((e=>o(e)===n))}),[t,e,n])}function er(e){let{group:t="default",controls:n,children:r,__experimentalShareWithChildBlocks:i=!1}=e;const l=function(e,t){const n=Zn(),{clientId:r}=Xn(),i=(0,f.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:i}=e(qn),{hasBlockSupport:l}=e(o.store);return t&&l(n(r),"__experimentalExposeControlsToChildren",!1)&&i(r)}),[t,r]);var l;return n?null===(l=y[e])||void 0===l?void 0:l.Fill:i?y.parent.Fill:null}(t,i);return l?(0,a.createElement)(d.__experimentalStyleProvider,{document:document},(0,a.createElement)(l,null,(e=>{const o=(0,u.isEmpty)(e)?null:e;return(0,a.createElement)(d.__experimentalToolbarContext.Provider,{value:o},"default"===t&&(0,a.createElement)(d.ToolbarGroup,{controls:n}),r)}))):null}function tr(e){let{group:t="default",...n}=e;const r=(0,a.useContext)(d.__experimentalToolbarContext),o=y[t].Slot,i=(0,d.__experimentalUseSlot)(o.__unstableName);return Boolean(i.fills&&i.fills.length)?"default"===t?(0,a.createElement)(o,l({},n,{bubblesVirtually:!0,fillProps:r})):(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(o,l({},n,{bubblesVirtually:!0,fillProps:r}))):null}const nr=er;nr.Slot=tr;const rr=e=>(0,a.createElement)(er,l({group:"inline"},e));rr.Slot=e=>(0,a.createElement)(tr,l({group:"inline"},e));var or=nr;var ir=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"}));var lr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"}));var ar=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"}));var sr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"}));var cr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"}));var ur=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));var pr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));var dr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"}));var fr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));var yr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));var mr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"}));var gr=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"}));function hr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e} ${t}`)).join(",")}const br=(0,a.createContext)({refs:new Map,callbacks:new Map});function vr(e){let{children:t}=e;const n=(0,a.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,a.createElement)(br.Provider,{value:n},t)}function _r(e){const{refs:t,callbacks:n}=(0,a.useContext)(br),r=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>(t.set(r,e),()=>{t.delete(r)})),[e]),(0,p.useRefEffect)((t=>{r.current=t,n.forEach(((n,r)=>{e===n&&r(t)}))}),[e])}function kr(e){const{refs:t}=(0,a.useContext)(br),n=(0,a.useRef)();return n.current=e,(0,a.useMemo)((()=>({get current(){let e=null;for(const[r,o]of t.entries())o===n.current&&r.current&&(e=r.current);return e}})),[])}function Er(e){const{callbacks:t}=(0,a.useContext)(br),n=kr(e),[r,o]=(0,a.useState)(null);return(0,a.useLayoutEffect)((()=>{if(e)return t.set(o,e),()=>{t.delete(o)}}),[e]),n.current||r}const Sr=["color","border","typography","spacing"],wr={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0: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=>void 0===e.fontSizes?void 0: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},Ar={"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"};function Cr(e){const{name:t}=Xn(),n=(0,f.useSelect)((n=>{var r;if(Sr.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");const i=n(qn).getSettings(),l=(e=>Ar[e]||e)(e),a=`__experimentalFeatures.${l}`,s=`__experimentalFeatures.blocks.${t}.${l}`,c=null!==(r=(0,u.get)(i,s))&&void 0!==r?r:(0,u.get)(i,a);var p,d;if(void 0!==c)return o.__EXPERIMENTAL_PATHS_WITH_MERGE[l]?null!==(p=null!==(d=c.custom)&&void 0!==d?d:c.theme)&&void 0!==p?p:c.default:c;const f=wr[l]?wr[l](i):void 0;return void 0!==f?f:"typography.dropCap"===l||void 0}),[t,e]);return n}window.wp.warning;var Ir={default:(0,d.createSlotFill)("InspectorControls"),advanced:(0,d.createSlotFill)("InspectorAdvancedControls"),border:(0,d.createSlotFill)("InspectorControlsBorder"),color:(0,d.createSlotFill)("InspectorControlsColor"),dimensions:(0,d.createSlotFill)("InspectorControlsDimensions"),typography:(0,d.createSlotFill)("InspectorControlsTypography")};function xr(e){var t;let{__experimentalGroup:n="default",children:r}=e;const o=Zn(),i=null===(t=Ir[n])||void 0===t?void 0:t.Fill;return i?o?(0,a.createElement)(d.__experimentalStyleProvider,{document:document},(0,a.createElement)(i,null,(e=>{const t=(0,u.isEmpty)(e)?null:e;return(0,a.createElement)(d.__experimentalToolsPanelContext.Provider,{value:t},r)}))):null:("undefined"!=typeof process&&process.env,null)}const Br=e=>{if(!(0,u.isObject)(e)||Array.isArray(e))return e;const t=(0,u.pickBy)((0,u.mapValues)(e,Br),u.identity);return(0,u.isEmpty)(t)?void 0:t};function Pr(e,t,n){return(0,u.setWith)(e?(0,u.clone)(e):{},t,n,u.clone)}function Tr(e,t,n,r,o,i){var l;if((0,u.every)(e,(e=>!e)))return n;if(1===i.length&&n.innerBlocks.length===r.length)return n;let a=null===(l=r[0])||void 0===l?void 0:l.attributes;if(i.length>1&&r.length>1){if(!r[o])return n;var s;a=null===(s=r[o])||void 0===s?void 0:s.attributes}let c=n;return(0,u.forEach)(e,((e,n)=>{e&&t[n].forEach((e=>{const t=(0,u.get)(a,e);t&&(c={...c,attributes:Pr(c.attributes,e,t)})}))})),c}function Or(e,t,n){const r=(0,o.getBlockSupport)(e,t),i=null==r?void 0:r.__experimentalSkipSerialization;return Array.isArray(i)?i.includes(n):i}function Nr(e){let{children:t,group:n,label:r}=e;const{updateBlockAttributes:o}=(0,f.useDispatch)(qn),{getBlockAttributes:i,getMultiSelectedBlockClientIds:l,getSelectedBlockClientId:s,hasMultiSelection:c}=(0,f.useSelect)(qn),u=s(),p=(0,a.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},n=c()?l():[u];n.forEach((n=>{const{style:r}=i(n);let o={style:r};e.forEach((e=>{o={...o,...e(o)}})),o={...o,style:Br(o.style)},t[n]=o})),o(n,t,!0)}),[Br,i,l,c,u,o]);return(0,a.createElement)(d.__experimentalToolsPanel,{className:`${n}-block-support-panel`,label:r,resetAll:p,key:u,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},t)}function Rr(e){let{Slot:t,...n}=e;const r=(0,a.useContext)(d.__experimentalToolsPanelContext);return(0,a.createElement)(t,l({},n,{fillProps:r,bubblesVirtually:!0}))}function Fr(e){var t;let{__experimentalGroup:n="default",label:r,...o}=e;const i=null===(t=Ir[n])||void 0===t?void 0:t.Slot,s=(0,d.__experimentalUseSlot)(null==i?void 0:i.__unstableName);if(!i||!s)return"undefined"!=typeof process&&process.env,null;return Boolean(s.fills&&s.fills.length)?r?(0,a.createElement)(Nr,{group:n,label:r},(0,a.createElement)(Rr,l({},o,{Slot:i}))):(0,a.createElement)(i,l({},o,{bubblesVirtually:!0})):null}const Mr=xr;Mr.Slot=Fr;const Dr=e=>(0,a.createElement)(xr,l({},e,{__experimentalGroup:"advanced"}));Dr.Slot=e=>(0,a.createElement)(Fr,l({},e,{__experimentalGroup:"advanced"})),Dr.slotName="InspectorAdvancedControls";var Lr=Mr;function Ur(e){const t=(0,o.getBlockSupport)(e,Wr);return!!(!0===t||null!=t&&t.margin)}function jr(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Cr("spacing.margin"),n=!Qr(e,"margin");return!Ur(e)||t||n}function Vr(e){var t;const{name:n,attributes:{style:r},setAttributes:o}=e,i=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["%","px","em","rem","vw"]}),l=Yr(n,"margin"),s=l&&l.some((e=>Kr.includes(e)));if(jr(e))return null;return a.Platform.select({web:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...r,spacing:{...null==r?void 0:r.spacing,margin:e}};o({style:Br(t)})},onChangeShowVisualizer:e=>{const t={...r,visualizers:{margin:e}};o({style:Br(t)})},label:(0,m.__)("Margin"),sides:l,units:i,allowReset:!1,splitOnAxis:s})),native:null})}function zr(e){const t=(0,o.getBlockSupport)(e,Wr);return!!(!0===t||null!=t&&t.padding)}function Gr(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Cr("spacing.padding"),n=!Qr(e,"padding");return!zr(e)||t||n}function Hr(e){var t;const{name:n,attributes:{style:r},setAttributes:o}=e,i=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["%","px","em","rem","vw"]}),l=Yr(n,"padding"),s=l&&l.some((e=>Kr.includes(e)));if(Gr(e))return null;return a.Platform.select({web:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...r,spacing:{...null==r?void 0:r.spacing,padding:e}};o({style:Br(t)})},onChangeShowVisualizer:e=>{const t={...r,visualizers:{padding:e}};o({style:Br(t)})},label:(0,m.__)("Padding"),sides:l,units:i,allowReset:!1,splitOnAxis:s})),native:null})}const Wr="spacing",$r=["top","right","bottom","left"],Kr=["vertical","horizontal"];function qr(e){const t=eo(e),n=Gr(e),r=jr(e),i=Jr(e),l=function(e){if("web"!==a.Platform.OS)return!1;return Xr(e)||zr(e)||Ur(e)}(e.name);if(i||!l)return null;const s=(0,o.getBlockSupport)(e.name,[Wr,"__experimentalDefaultControls"]),c=e=>t=>{var n;return{...t,style:{...t.style,spacing:{...null===(n=t.style)||void 0===n?void 0:n.spacing,[e]:void 0}}}};return(0,a.createElement)(Lr,{__experimentalGroup:"dimensions"},!n&&(0,a.createElement)(d.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding)}(e),label:(0,m.__)("Padding"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:Br({...r,spacing:{...null==r?void 0:r.spacing,padding:void 0}})})}(e),resetAllFilter:c("padding"),isShownByDefault:null==s?void 0:s.padding,panelId:e.clientId},(0,a.createElement)(Hr,e)),!r&&(0,a.createElement)(d.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin)}(e),label:(0,m.__)("Margin"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:Br({...r,spacing:{...null==r?void 0:r.spacing,margin:void 0}})})}(e),resetAllFilter:c("margin"),isShownByDefault:null==s?void 0:s.margin,panelId:e.clientId},(0,a.createElement)(Vr,e)),!t&&(0,a.createElement)(d.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap)}(e),label:(0,m.__)("Block spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:{...r,spacing:{...null==r?void 0:r.spacing,blockGap:void 0}}})}(e),resetAllFilter:c("blockGap"),isShownByDefault:null==s?void 0:s.blockGap,panelId:e.clientId},(0,a.createElement)(to,e)))}const Jr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=eo(e),n=Gr(e),r=jr(e);return t&&n&&r};function Yr(e,t){var n;const r=(0,o.getBlockSupport)(e,Wr);if(r&&"boolean"!=typeof r[t])return Array.isArray(r[t])?r[t]:null!==(n=r[t])&&void 0!==n&&n.sides?r[t].sides:void 0}function Qr(e,t){const n=Yr(e,t);return!(n&&n.some((e=>$r.includes(e)))&&n.some((e=>Kr.includes(e))))||(console.warn(`The ${t} support for the "${e}" block can not be configured to support both axial and arbitrary sides.`),!1)}function Xr(e){const t=(0,o.getBlockSupport)(e,Wr);return!!(!0===t||null!=t&&t.blockGap)}function Zr(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:null==e?void 0:e.top,left:t?e:null==e?void 0:e.left}}function eo(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Cr("spacing.blockGap");return!Xr(e)||t}function to(e){var t;const{clientId:n,attributes:{style:r},name:o,setAttributes:i}=e,l=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["%","px","em","rem","vw"]}),s=Yr(o,"blockGap"),c=kr(n);if(eo(e))return null;const u=s&&s.some((e=>Kr.includes(e))),p=e=>{var t;let n=e;e&&u&&(n={...Zr(e)});const o={...r,spacing:{...null==r?void 0:r.spacing,blockGap:n}};i({style:Br(o)});const l=(null===(t=window)||void 0===t?void 0:t.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var a;c.current&&l&&(null===(a=c.current.parentNode)||void 0===a||a.replaceChild(c.current,c.current))},f=Zr(null==r||null===(t=r.spacing)||void 0===t?void 0:t.blockGap),y=u?{...f,right:null==f?void 0:f.left,bottom:null==f?void 0:f.top}:null==f?void 0:f.top;return a.Platform.select({web:(0,a.createElement)(a.Fragment,null,u?(0,a.createElement)(d.__experimentalBoxControl,{label:(0,m.__)("Block spacing"),min:0,onChange:p,units:l,sides:s,values:y,allowReset:!1,splitOnAxis:u}):(0,a.createElement)(d.__experimentalUnitControl,{label:(0,m.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:p,units:l,value:y})),native:null})}const no=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),ro=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),oo={top:{icon:(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(d.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:(0,m._x)("Align top","Block vertical alignment setting")},center:{icon:ro,title:(0,m._x)("Align middle","Block vertical alignment setting")},bottom:{icon:no,title:(0,m._x)("Align bottom","Block vertical alignment setting")}},io=["top","center","bottom"],lo={isAlternate:!0};var ao=function(e){let{value:t,onChange:n,controls:r=io,isCollapsed:o=!0,isToolbar:i}=e;const s=oo[t],c=oo.top,u=i?d.ToolbarGroup:d.ToolbarDropdownMenu,p=i?{isCollapsed:o}:{};return(0,a.createElement)(u,l({popoverProps:lo,icon:s?s.icon:c.icon,label:(0,m._x)("Change vertical alignment","Block vertical alignment setting label"),controls:r.map((e=>{return{...oo[e],isActive:t===e,role:o?"menuitemradio":void 0,onClick:(r=e,()=>n(t===r?void 0:r))};var r}))},p))};const so=e=>(0,a.createElement)(ao,l({},e,{isToolbar:!1})),co=e=>(0,a.createElement)(ao,l({},e,{isToolbar:!0})),uo={left:pr,center:dr,right:fr,"space-between":yr};var po=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:r,value:o,popoverProps:i,isToolbar:s}=e;const c=e=>{r(e===o?void 0:e)},u=o?uo[o]:uo.left,p=[{name:"left",icon:pr,title:(0,m.__)("Justify items left"),isActive:"left"===o,onClick:()=>c("left")},{name:"center",icon:dr,title:(0,m.__)("Justify items center"),isActive:"center"===o,onClick:()=>c("center")},{name:"right",icon:fr,title:(0,m.__)("Justify items right"),isActive:"right"===o,onClick:()=>c("right")},{name:"space-between",icon:yr,title:(0,m.__)("Space between items"),isActive:"space-between"===o,onClick:()=>c("space-between")}],f=s?d.ToolbarGroup:d.ToolbarDropdownMenu,y=s?{isCollapsed:n}:{};return(0,a.createElement)(f,l({icon:u,popoverProps:i,label:(0,m.__)("Change items justification"),controls:p.filter((e=>t.includes(e.name)))},y))};const fo=e=>(0,a.createElement)(po,l({},e,{isToolbar:!1})),yo=e=>(0,a.createElement)(po,l({},e,{isToolbar:!0})),mo={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},go={left:"flex-start",right:"flex-end",center:"center"},ho={top:"flex-start",center:"center",bottom:"flex-end"},bo=["wrap","nowrap"];var vo={name:"flex",label:(0,m.__)("Flex"),inspectorControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:r={}}=e;const{allowOrientation:o=!0}=r;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.Flex,null,(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(ko,{layout:t,onChange:n})),(0,a.createElement)(d.FlexItem,null,o&&(0,a.createElement)(So,{layout:t,onChange:n}))),(0,a.createElement)(Eo,{layout:t,onChange:n}))},toolBarControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:r}=e;if(null!=r&&r.allowSwitching)return null;const{allowVerticalAlignment:o=!0}=r;return(0,a.createElement)(or,{group:"block",__experimentalShareWithChildBlocks:!0},(0,a.createElement)(ko,{layout:t,onChange:n,isToolbar:!0}),o&&"vertical"!==(null==t?void 0:t.orientation)&&(0,a.createElement)(_o,{layout:t,onChange:n,isToolbar:!0}))},save:function(e){var t,n;let{selector:r,layout:i,style:l,blockName:s}=e;const{orientation:c="horizontal"}=i,u=Cr("spacing.blockGap"),p=(0,o.getBlockSupport)(s,["spacing","blockGap","__experimentalDefault"])||"0.5em",d=null!==u,f=null!=l&&null!==(t=l.spacing)&&void 0!==t&&t.blockGap&&!Or(s,"spacing","blockGap")?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";const n=Zr(e);if(!n)return null;const r=(null==n?void 0:n.top)||t,o=(null==n?void 0:n.left)||t;return r===o?r:`${r} ${o}`}(null==l||null===(n=l.spacing)||void 0===n?void 0:n.blockGap,p):`var( --wp--style--block-gap, ${p} )`,y=mo[i.justifyContent]||mo.left,m=bo.includes(i.flexWrap)?i.flexWrap:"wrap",g=`\n\t\tflex-direction: row;\n\t\talign-items: ${ho[i.verticalAlignment]||ho.center};\n\t\tjustify-content: ${y};\n\t\t`,h=`\n\t\tflex-direction: column;\n\t\talign-items: ${go[i.justifyContent]||go.left};\n\t\t`;return(0,a.createElement)("style",null,`\n\t\t\t\t${hr(r)} {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-wrap: ${m};\n\t\t\t\t\tgap: ${d?f:p};\n\t\t\t\t\t${"horizontal"===c?g:h}\n\t\t\t\t}\n\n\t\t\t\t${hr(r,"> *")} {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t`)},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function _o(e){let{layout:t,onChange:n,isToolbar:r=!1}=e;const{verticalAlignment:o=ho.center}=t,i=e=>{n({...t,verticalAlignment:e})};if(r)return(0,a.createElement)(so,{onChange:i,value:o});const l=[{value:"flex-start",label:(0,m.__)("Align items top")},{value:"center",label:(0,m.__)("Align items center")},{value:"flex-end",label:(0,m.__)("Align items bottom")}];return(0,a.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,a.createElement)("legend",null,(0,m.__)("Vertical alignment")),(0,a.createElement)("div",null,l.map(((e,t,n)=>(0,a.createElement)(d.Button,{key:e,label:n,icon:t,isPressed:o===e,onClick:()=>i(e)})))))}function ko(e){let{layout:t,onChange:n,isToolbar:r=!1}=e;const{justifyContent:o="left",orientation:i="horizontal"}=t,l=e=>{n({...t,justifyContent:e})},s=["left","center","right"];if("horizontal"===i&&s.push("space-between"),r)return(0,a.createElement)(fo,{allowedControls:s,value:o,onChange:l,popoverProps:{position:"bottom right",isAlternate:!0}});const c=[{value:"left",icon:pr,label:(0,m.__)("Justify items left")},{value:"center",icon:dr,label:(0,m.__)("Justify items center")},{value:"right",icon:fr,label:(0,m.__)("Justify items right")}];return"horizontal"===i&&c.push({value:"space-between",icon:yr,label:(0,m.__)("Space between items")}),(0,a.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-justification-controls"},(0,a.createElement)("legend",null,(0,m.__)("Justification")),(0,a.createElement)("div",null,c.map((e=>{let{value:t,icon:n,label:r}=e;return(0,a.createElement)(d.Button,{key:t,label:r,icon:n,isPressed:o===t,onClick:()=>l(t)})}))))}function Eo(e){let{layout:t,onChange:n}=e;const{flexWrap:r="wrap"}=t;return(0,a.createElement)(d.ToggleControl,{label:(0,m.__)("Allow to wrap to multiple lines"),onChange:e=>{n({...t,flexWrap:e?"wrap":"nowrap"})},checked:"wrap"===r})}function So(e){let{layout:t,onChange:n}=e;const{orientation:r="horizontal"}=t;return(0,a.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-orientation-controls"},(0,a.createElement)("legend",null,(0,m.__)("Orientation")),(0,a.createElement)(d.Button,{label:"horizontal",icon:mr,isPressed:"horizontal"===r,onClick:()=>n({...t,orientation:"horizontal"})}),(0,a.createElement)(d.Button,{label:"vertical",icon:gr,isPressed:"vertical"===r,onClick:()=>n({...t,orientation:"vertical"})}))}var wo=function(e){let{icon:t,size:n=24,...r}=e;return(0,a.cloneElement)(t,{width:n,height:n,...r})},Ao={name:"default",label:(0,m.__)("Flow"),inspectorControls:function(e){let{layout:t,onChange:n}=e;const{wideSize:r,contentSize:o}=t,i=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["%","px","em","rem","vw"]});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,a.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,a.createElement)(d.__experimentalUnitControl,{label:(0,m.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,contentSize:e})},units:i}),(0,a.createElement)(wo,{icon:ar})),(0,a.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,a.createElement)(d.__experimentalUnitControl,{label:(0,m.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,wideSize:e})},units:i}),(0,a.createElement)(wo,{icon:cr}))),(0,a.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},(0,a.createElement)(d.Button,{variant:"secondary",isSmall:!0,disabled:!o&&!r,onClick:()=>n({contentSize:void 0,wideSize:void 0,inherit:!1})},(0,m.__)("Reset"))),(0,a.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,m.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},toolBarControls:function(){return null},save:function(e){var t;let{selector:n,layout:r={},style:o,blockName:i}=e;const{contentSize:l,wideSize:s}=r,c=null!==Cr("spacing.blockGap"),u=Zr(null==o||null===(t=o.spacing)||void 0===t?void 0:t.blockGap),p=null!=u&&u.top&&!Or(i,"spacing","blockGap")?null==u?void 0:u.top:"var( --wp--style--block-gap )";let d=l||s?`\n\t\t\t\t\t${hr(n,"> :where(:not(.alignleft):not(.alignright))")} {\n\t\t\t\t\t\tmax-width: ${null!=l?l:s};\n\t\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t\t}\n\t\t\t\t\t${hr(n,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=s?s:l};\n\t\t\t\t\t}\n\t\t\t\t\t${hr(n,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return d+=`\n\t\t\t${hr(n,"> .alignleft")} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-inline-start: 0;\n\t\t\t\tmargin-inline-end: 2em;\n\t\t\t}\n\t\t\t${hr(n,"> .alignright")} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-inline-start: 2em;\n\t\t\t\tmargin-inline-end: 0;\n\t\t\t}\n\n\t\t\t${hr(n,"> .aligncenter")} {\n\t\t\t\tmargin-left: auto !important;\n\t\t\t\tmargin-right: auto !important;\n\t\t\t}\n\t\t`,c&&(d+=`\n\t\t\t\t${hr(n,"> *")} {\n\t\t\t\t\tmargin-block-start: 0;\n\t\t\t\t\tmargin-block-end: 0;\n\t\t\t\t}\n\t\t\t\t${hr(n,"> * + *")} {\n\t\t\t\t\tmargin-block-start: ${p};\n\t\t\t\t}\n\t\t\t`),(0,a.createElement)("style",null,d)},getOrientation:()=>"vertical",getAlignments(e){const t=function(e){const{contentSize:t,wideSize:n}=e,r={},o=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;o.test(t)&&(r.none=(0,m.sprintf)((0,m.__)("Max %s wide"),t));o.test(n)&&(r.wide=(0,m.sprintf)((0,m.__)("Max %s wide"),n));return r}(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 Co=[Ao,vo];function Io(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Co.find((t=>t.name===e))}const xo={type:"default"},Bo=(0,a.createContext)(xo),Po=Bo.Provider;function To(){return(0,a.useContext)(Bo)}function Oo(e){let{layout:t={},...n}=e;const r=Io(t.type);return r?(0,a.createElement)(r.save,l({layout:t},n)):null}const No=["none","left","center","right","wide","full"],Ro=["wide","full"];function Fo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:No;e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=(0,f.useSelect)((e=>{const{getSettings:t}=e(qn),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}}),[]),r=To(),o=Io(null==r?void 0:r.type),i=o.getAlignments(r);if(n){const t=i.filter((t=>{let{name:n}=t;return e.includes(n)}));return 1===t.length&&"none"===t[0].name?[]:t}if("default"!==o.name)return[];const{alignments:l=No}=r,a=e.filter((e=>(r.alignments||t||!Ro.includes(e))&&l.includes(e))).map((e=>({name:e})));return 1===a.length&&"none"===a[0].name?[]:a}const Mo={none:{icon:ir,title:(0,m._x)("None","Alignment option")},left:{icon:lr,title:(0,m.__)("Align left")},center:{icon:ar,title:(0,m.__)("Align center")},right:{icon:sr,title:(0,m.__)("Align right")},wide:{icon:cr,title:(0,m.__)("Wide width")},full:{icon:ur,title:(0,m.__)("Full width")}},Do={isAlternate:!0};var Lo=function(e){let{value:t,onChange:n,controls:r,isToolbar:o,isCollapsed:i=!0}=e;const s=Fo(r);if(!!!s.length)return null;function u(e){n([t,"none"].includes(e)?void 0:e)}const p=Mo[t],f=Mo.none,y=o?d.ToolbarGroup:d.ToolbarDropdownMenu,g={popoverProps:Do,icon:p?p.icon:f.icon,label:(0,m.__)("Align"),toggleProps:{describedBy:(0,m.__)("Change alignment")}},h=o||a.Platform.isNative?{isCollapsed:o?i:void 0,controls:s.map((e=>{let{name:n}=e;return{...Mo[n],isActive:t===n||!t&&"none"===n,role:i?"menuitemradio":void 0,onClick:()=>u(n)}}))}:{children:e=>{let{onClose:n}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},s.map((e=>{let{name:r,info:o}=e;const{icon:i,title:l}=Mo[r],s=r===t||!t&&"none"===r;return(0,a.createElement)(d.MenuItem,{key:r,icon:i,iconPosition:"left",className:c()("components-dropdown-menu__menu-item",{"is-active":s}),isSelected:s,onClick:()=>{u(r),n()},role:"menuitemradio",info:o},l)}))))}};return(0,a.createElement)(y,l({},g,h))};const Uo=e=>(0,a.createElement)(Lo,l({},e,{isToolbar:!1})),jo=e=>(0,a.createElement)(Lo,l({},e,{isToolbar:!0})),Vo=["left","center","right","wide","full"],zo=["wide","full"];function Go(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Vo.filter((t=>e.includes(t))):!0===e?[...Vo]:[],!r||!0===e&&!n?(0,u.without)(t,...zo):t}const Ho=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n}=t,r=Fo(Go((0,o.getBlockSupport)(n,"align"),(0,o.hasBlockSupport)(n,"alignWide",!0))).map((e=>{let{name:t}=e;return t}));return(0,a.createElement)(a.Fragment,null,!!r.length&&(0,a.createElement)(or,{group:"block",__experimentalShareWithChildBlocks:!0},(0,a.createElement)(Uo,{value:t.attributes.align,onChange:e=>{if(!e){var n,r;const i=(0,o.getBlockType)(t.name);(null==i||null===(n=i.attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="")}t.setAttributes({align:e})},controls:r})),(0,a.createElement)(e,t))}),"withToolbarControls"),Wo=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r}=t,{align:i}=r,s=Fo(Go((0,o.getBlockSupport)(n,"align"),(0,o.hasBlockSupport)(n,"alignWide",!0)));if(void 0===i)return(0,a.createElement)(e,t);let c=t.wrapperProps;return s.some((e=>e.name===i))&&(c={...c,"data-align":i}),(0,a.createElement)(e,l({},t,{wrapperProps:c}))}));(0,i.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return(0,u.has)(e.attributes,["align","type"])||(0,o.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Vo,""]}}),e})),(0,i.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Wo),(0,i.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Ho),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:r}=n;return Go((0,o.getBlockSupport)(t,"align"),(0,o.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=c()(`align${r}`,e.className)),e})),(0,i.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return(0,u.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const $o=/[\s#]/g,Ko={type:"string",source:"attribute",attribute:"id",selector:"*"};const qo=(0,p.createHigherOrderComponent)((e=>t=>{if((0,o.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===a.Platform.OS,r=(0,a.createElement)(d.TextControl,{className:"html-anchor-control",label:(0,m.__)("HTML anchor"),help:(0,a.createElement)(a.Fragment,null,(0,m.__)("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,a.createElement)(d.ExternalLink,{href:(0,m.__)("https://wordpress.org/support/article/page-jumps/")},(0,m.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,m.__)("Add an anchor"),onChange:e=>{e=e.replace($o,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),n&&(0,a.createElement)(Lr,{__experimentalGroup:"advanced"},r),!n&&"core/heading"===t.name&&(0,a.createElement)(Lr,null,(0,a.createElement)(d.PanelBody,{title:(0,m.__)("Heading settings")},r)))}return(0,a.createElement)(e,t)}),"withInspectorControl");(0,i.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return(0,u.has)(e.attributes,["anchor","type"])||(0,o.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Ko}),e})),(0,i.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",qo),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,o.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Jo=(0,p.createHigherOrderComponent)((e=>t=>(0,o.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),(0,a.createElement)(Lr,{__experimentalGroup:"advanced"},(0,a.createElement)(d.TextControl,{autoComplete:"off",label:(0,m.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,m.__)("Separate multiple classes with spaces.")}))):(0,a.createElement)(e,t)),"withInspectorControl");function Yo(e,t,n,r){const o=(0,u.get)(e,n);if(!o)return[];const i=[];if("string"==typeof o)i.push({selector:t.selector,key:r,value:o});else{const e=["top","right","bottom","left"].reduce(((e,n)=>{const i=(0,u.get)(o,[n]);return i&&e.push({selector:t.selector,key:`${r}${(0,u.upperFirst)(n)}`,value:i}),e}),[]);i.push(...e)}return i}(0,i.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,o.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,i.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Jo),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,o.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=c()(e.className,n.className)),e})),(0,i.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){if(!(0,o.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]){var i;const r=null===(i=t[n])||void 0===i?void 0:i.attributes.className;if(r)return{...e,attributes:{...e.attributes,className:r}}}return e})),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,o.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=(0,u.uniq)([(0,o.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=(0,o.getBlockDefaultClassName)(t.name)),e}));const Qo=[{name:"margin",generate:(e,t)=>Yo(e,t,["spacing","margin"],"margin")},{name:"padding",generate:(e,t)=>Yo(e,t,["spacing","padding"],"padding")}];function Xo(e,t){const n=[];return Qo.forEach((r=>{n.push(...r.generate(e,t))})),n}var Zo=window.wp.dom;const ei=(0,a.createContext)({});function ti(e){let{value:t,children:n}=e;const r=(0,a.useContext)(ei),o=(0,a.useMemo)((()=>({...r,...t})),[r,t]);return(0,a.createElement)(ei.Provider,{value:o,children:n})}var ni=ei;const ri={};var oi=(0,d.withFilters)("editor.BlockEdit")((e=>{const{attributes:t={},name:n}=e,r=(0,o.getBlockType)(n),i=(0,a.useContext)(ni),s=(0,a.useMemo)((()=>r&&r.usesContext?(0,u.pick)(i,r.usesContext):ri),[r,i]);if(!r)return null;const p=r.edit||r.save;if(r.apiVersion>1)return(0,a.createElement)(p,l({},e,{context:s}));const d=(0,o.hasBlockSupport)(r,"className",!0)?(0,o.getBlockDefaultClassName)(n):null,f=c()(d,t.className);return(0,a.createElement)(p,l({},e,{context:s,className:f}))}));function ii(e){const{name:t,isSelected:n,clientId:r}=e,o={name:t,isSelected:n,clientId:r};return(0,a.createElement)(Qn,{value:(0,a.useMemo)((()=>o),Object.values(o))},(0,a.createElement)(oi,e))}var li=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var ai=function(e){let{className:t,actions:n,children:r,secondaryActions:o}=e;return(0,a.createElement)("div",{style:{display:"contents",all:"initial"}},(0,a.createElement)("div",{className:c()(t,"block-editor-warning")},(0,a.createElement)("div",{className:"block-editor-warning__contents"},(0,a.createElement)("p",{className:"block-editor-warning__message"},r),(a.Children.count(n)>0||o)&&(0,a.createElement)("div",{className:"block-editor-warning__actions"},a.Children.count(n)>0&&a.Children.map(n,((e,t)=>(0,a.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),o&&(0,a.createElement)(d.DropdownMenu,{className:"block-editor-warning__secondary",icon:li,label:(0,m.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,a.createElement)(d.MenuGroup,null,o.map(((e,t)=>(0,a.createElement)(d.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))},si=n(1973);function ci(e){let{title:t,rawContent:n,renderedContent:r,action:o,actionText:i,className:l}=e;return(0,a.createElement)("div",{className:l},(0,a.createElement)("div",{className:"block-editor-block-compare__content"},(0,a.createElement)("h2",{className:"block-editor-block-compare__heading"},t),(0,a.createElement)("div",{className:"block-editor-block-compare__html"},n),(0,a.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,a.createElement)(a.RawHTML,null,(0,Zo.safeHTML)(r)))),(0,a.createElement)("div",{className:"block-editor-block-compare__action"},(0,a.createElement)(d.Button,{variant:"secondary",tabIndex:"0",onClick:o},i)))}var ui=function(e){let{block:t,onKeep:n,onConvert:r,convertor:i,convertButtonText:l}=e;const s=(p=i(t),(0,u.castArray)(p).map((e=>(0,o.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var p;const d=(f=t.originalContent,y=s,(0,si.Kx)(f,y).map(((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,a.createElement)("span",{key:t,className:n},e.value)})));var f,y;return(0,a.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,a.createElement)(ci,{title:(0,m.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:(0,m.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),(0,a.createElement)(ci,{title:(0,m.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:l,rawContent:d,renderedContent:s}))};const pi=e=>(0,o.rawHandler)({HTML:e.originalContent});var di=(0,p.compose)([(0,f.withSelect)(((e,t)=>{let{clientId:n}=t;return{block:e(qn).getBlock(n)}})),(0,f.withDispatch)(((e,t)=>{let{block:n}=t;const{replaceBlock:r}=e(qn);return{convertToClassic(){r(n.clientId,(e=>(0,o.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){r(n.clientId,(e=>(0,o.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){r(n.clientId,pi(n))},attemptBlockRecovery(){r(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:r}=e;return(0,o.createBlock)(t,n,r)})(n))}}}))])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:r,attemptBlockRecovery:i,block:l}=e;const s=!!(0,o.getBlockType)("core/html"),[c,u]=(0,a.useState)(!1),p=(0,a.useCallback)((()=>u(!0)),[]),f=(0,a.useCallback)((()=>u(!1)),[]),y=(0,a.useMemo)((()=>[{title:(0,m._x)("Resolve","imperative verb"),onClick:p},s&&{title:(0,m.__)("Convert to HTML"),onClick:t},{title:(0,m.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)),[p,t,r]);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(ai,{actions:[(0,a.createElement)(d.Button,{key:"recover",onClick:i,variant:"primary"},(0,m.__)("Attempt Block Recovery"))],secondaryActions:y},(0,m.__)("This block contains unexpected or invalid content.")),c&&(0,a.createElement)(d.Modal,{title:(0,m.__)("Resolve Block"),onRequestClose:f,className:"block-editor-block-compare"},(0,a.createElement)(ui,{block:l,onKeep:t,onConvert:n,convertor:pi,convertButtonText:(0,m.__)("Convert to Blocks")})))}));const fi=(0,a.createElement)(ai,{className:"block-editor-block-list__block-crash-warning"},(0,m.__)("This block has encountered an error and cannot be previewed."));var yi=()=>fi;class mi extends a.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 gi=mi,hi=n(773);var bi=function(e){let{clientId:t}=e;const[n,r]=(0,a.useState)(""),i=(0,f.useSelect)((e=>e(qn).getBlock(t)),[t]),{updateBlock:l}=(0,f.useDispatch)(qn);return(0,a.useEffect)((()=>{r((0,o.getBlockContent)(i))}),[i]),(0,a.createElement)(hi.Z,{className:"block-editor-block-list__block-html-textarea",value:n,onBlur:()=>{const e=(0,o.getBlockType)(i.name);if(!e)return;const a=(0,o.getBlockAttributes)(e,n,i.attributes),s=n||(0,o.getSaveContent)(e,a),[c]=n?(0,o.validateBlock)({...i,attributes:a,originalContent:s}):[!0];l(t,{attributes:a,originalContent:s,isValid:c}),n||r({content:s})},onChange:e=>r(e.target.value)})},vi=n(9196),_i=n.n(vi),ki=Object.defineProperty,Ei={};((e,t)=>{for(var n in t)ki(e,n,{get:t[n],enumerable:!0})})(Ei,{assign:()=>tl,colors:()=>Xi,createStringInterpolator:()=>qi,skipAnimation:()=>Zi,to:()=>Ji,willAdvance:()=>el});var Si=Ui(),wi=e=>Fi(e,Si),Ai=Ui();wi.write=e=>Fi(e,Ai);var Ci=Ui();wi.onStart=e=>Fi(e,Ci);var Ii=Ui();wi.onFrame=e=>Fi(e,Ii);var xi=Ui();wi.onFinish=e=>Fi(e,xi);var Bi=[];wi.setTimeout=(e,t)=>{const n=wi.now()+t,r=()=>{const e=Bi.findIndex((e=>e.cancel==r));~e&&Bi.splice(e,1),Ni-=~e?1:0},o={time:n,handler:e,cancel:r};return Bi.splice(Pi(n),0,o),Ni+=1,Mi(),o};var Pi=e=>~(~Bi.findIndex((t=>t.time>e))||~Bi.length);wi.cancel=e=>{Ci.delete(e),Ii.delete(e),xi.delete(e),Si.delete(e),Ai.delete(e)},wi.sync=e=>{Ri=!0,wi.batchedUpdates(e),Ri=!1},wi.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,wi.onStart(n)}return r.handler=e,r.cancel=()=>{Ci.delete(n),t=null},r};var Ti="undefined"!=typeof window?window.requestAnimationFrame:()=>{};wi.use=e=>Ti=e,wi.now="undefined"!=typeof performance?()=>performance.now():Date.now,wi.batchedUpdates=e=>e(),wi.catch=console.error,wi.frameLoop="always",wi.advance=()=>{"demand"!==wi.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Li()};var Oi=-1,Ni=0,Ri=!1;function Fi(e,t){Ri?(t.delete(e),e(0)):(t.add(e),Mi())}function Mi(){Oi<0&&(Oi=0,"demand"!==wi.frameLoop&&Ti(Di))}function Di(){~Oi&&(Ti(Di),wi.batchedUpdates(Li))}function Li(){const e=Oi;Oi=wi.now();const t=Pi(Oi);t&&(ji(Bi.splice(0,t),(e=>e.handler())),Ni-=t),Ni?(Ci.flush(),Si.flush(e?Math.min(64,Oi-e):16.667),Ii.flush(),Ai.flush(),xi.flush()):Oi=-1}function Ui(){let e=new Set,t=e;return{add(n){Ni+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Ni-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Ni-=t.size,ji(t,(t=>t(n)&&e.add(t))),Ni+=e.size,t=e)}}}function ji(e,t){e.forEach((e=>{try{t(e)}catch(e){wi.catch(e)}}))}function Vi(){}var zi={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 Gi(e,t){if(zi.arr(e)){if(!zi.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 Hi=(e,t)=>e.forEach(t);function Wi(e,t,n){if(zi.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 $i=e=>zi.und(e)?[]:zi.arr(e)?e:[e];function Ki(e,t){if(e.size){const n=Array.from(e);e.clear(),Hi(n,t)}}var qi,Ji,Yi=(e,...t)=>Ki(e,(e=>e(...t))),Qi=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Xi=null,Zi=!1,el=Vi,tl=e=>{e.to&&(Ji=e.to),e.now&&(wi.now=e.now),void 0!==e.colors&&(Xi=e.colors),null!=e.skipAnimation&&(Zi=e.skipAnimation),e.createStringInterpolator&&(qi=e.createStringInterpolator),e.requestAnimationFrame&&wi.use(e.requestAnimationFrame),e.batchedUpdates&&(wi.batchedUpdates=e.batchedUpdates),e.willAdvance&&(el=e.willAdvance),e.frameLoop&&(wi.frameLoop=e.frameLoop)},nl=new Set,rl=[],ol=[],il=0,ll={get idle(){return!nl.size&&!rl.length},start(e){il>e.priority?(nl.add(e),wi.onStart(al)):(sl(e),wi(ul))},advance:ul,sort(e){if(il)wi.onFrame((()=>ll.sort(e)));else{const t=rl.indexOf(e);~t&&(rl.splice(t,1),cl(e))}},clear(){rl=[],nl.clear()}};function al(){nl.forEach(sl),nl.clear(),wi(ul)}function sl(e){rl.includes(e)||cl(e)}function cl(e){rl.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(rl,(t=>t.priority>e.priority)),0,e)}function ul(e){const t=ol;for(let n=0;n<rl.length;n++){const r=rl[n];il=r.priority,r.idle||(el(r),r.advance(e),r.idle||t.push(r))}return il=0,(ol=rl).length=0,(rl=t).length>0}var pl="[-+]?\\d*\\.?\\d+",dl=pl+"%";function fl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yl=new RegExp("rgb"+fl(pl,pl,pl)),ml=new RegExp("rgba"+fl(pl,pl,pl,pl)),gl=new RegExp("hsl"+fl(pl,dl,dl)),hl=new RegExp("hsla"+fl(pl,dl,dl,pl)),bl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,vl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_l=/^#([0-9a-fA-F]{6})$/,kl=/^#([0-9a-fA-F]{8})$/;function El(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 Sl(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=El(o,r,e+1/3),l=El(o,r,e),a=El(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*l)<<16|Math.round(255*a)<<8}function wl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Al(e){return(parseFloat(e)%360+360)%360/360}function Cl(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Il(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function xl(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=_l.exec(e))?parseInt(t[1]+"ff",16)>>>0:Xi&&void 0!==Xi[e]?Xi[e]:(t=yl.exec(e))?(wl(t[1])<<24|wl(t[2])<<16|wl(t[3])<<8|255)>>>0:(t=ml.exec(e))?(wl(t[1])<<24|wl(t[2])<<16|wl(t[3])<<8|Cl(t[4]))>>>0:(t=bl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=kl.exec(e))?parseInt(t[1],16)>>>0:(t=vl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gl.exec(e))?(255|Sl(Al(t[1]),Il(t[2]),Il(t[3])))>>>0:(t=hl.exec(e))?(Sl(Al(t[1]),Il(t[2]),Il(t[3]))|Cl(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 Bl=(e,t,n)=>{if(zi.fun(e))return e;if(zi.arr(e))return Bl({range:e,output:t,extrapolate:n});if(zi.str(e.output[0]))return qi(e);const r=e,o=r.output,i=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",a=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,l,a,s){let c=s?s(e):e;if(c<t){if("identity"===l)return c;"clamp"===l&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(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,l,a,r.map)}};var Pl=1.70158,Tl=1.525*Pl,Ol=Pl+1,Nl=2*Math.PI/3,Rl=2*Math.PI/4.5,Fl=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},Ml={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=>Ol*e*e*e-Pl*e*e,easeOutBack:e=>1+Ol*Math.pow(e-1,3)+Pl*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Tl)/2:(Math.pow(2*e-2,2)*((Tl+1)*(2*e-2)+Tl)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Nl),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Nl)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Rl)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Rl)/2+1,easeInBounce:e=>1-Fl(1-e),easeOutBounce:Fl,easeInOutBounce:e=>e<.5?(1-Fl(1-2*e))/2:(1+Fl(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)}},Dl=Symbol.for("FluidValue.get"),Ll=Symbol.for("FluidValue.observers"),Ul=e=>Boolean(e&&e[Dl]),jl=e=>e&&e[Dl]?e[Dl]():e,Vl=e=>e[Ll]||null;function zl(e,t){const n=e[Ll];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Gl=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Hl(this,e)}},Hl=(e,t)=>ql(e,Dl,t);function Wl(e,t){if(e[Dl]){let n=e[Ll];n||ql(e,Ll,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $l(e,t){const n=e[Ll];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ll]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Kl,ql=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Jl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Yl=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ql=new RegExp(`(${Jl.source})(%|[a-z]+)`,"i"),Xl=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Zl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ea=e=>{const[t,n]=ta(e);if(!t||Qi())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&&Zl.test(n)?ea(n):n||e},ta=e=>{const t=Zl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},na=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ra=e=>{Kl||(Kl=Xi?new RegExp(`(${Object.keys(Xi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>jl(e).replace(Zl,ea).replace(Yl,xl).replace(Kl,xl))),n=t.map((e=>e.match(Jl).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=>Bl({...e,output:t})));return e=>{const n=!Ql.test(t[0])&&t.find((e=>Ql.test(e)))?.replace(Jl,"");let r=0;return t[0].replace(Jl,(()=>`${o[r++](e)}${n||""}`)).replace(Xl,na)}},oa="react-spring: ",ia=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${oa}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},la=ia(console.warn);var aa=ia(console.warn);function sa(e){return zi.str(e)&&("#"==e[0]||/\d/.test(e)||!Qi()&&Zl.test(e)||e in(Xi||{}))}var ca=Qi()?vi.useEffect:vi.useLayoutEffect;function ua(){const e=(0,vi.useState)()[1],t=(()=>{const e=(0,vi.useRef)(!1);return ca((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var pa=e=>(0,vi.useEffect)(e,da),da=[];function fa(e){const t=(0,vi.useRef)();return(0,vi.useEffect)((()=>{t.current=e})),t.current}var ya=Symbol.for("Animated:node"),ma=e=>e&&e[ya],ga=(e,t)=>{return n=e,r=ya,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},ha=e=>e&&e[ya]&&e[ya].getPayload(),ba=class{constructor(){ga(this,this)}getPayload(){return this.payload||[]}},va=class extends ba{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,zi.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new va(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return zi.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,zi.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},_a=class extends va{constructor(e){super(0),this._string=null,this._toString=Bl({output:[e,e]})}static create(e){return new _a(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(zi.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=Bl({output:[this.getValue(),e]})),this._value=0,super.reset()}},ka={dependencies:null},Ea=class extends ba{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Wi(this.source,((n,r)=>{var o;(o=n)&&o[ya]===o?t[r]=n.getValue(e):Ul(n)?t[r]=jl(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Hi(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Wi(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ka.dependencies&&Ul(e)&&ka.dependencies.add(e);const t=ha(e);t&&Hi(t,(e=>this.add(e)))}},Sa=class extends Ea{constructor(e){super(e)}static create(e){return new Sa(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(wa)),!0)}};function wa(e){return(sa(e)?_a:va).create(e)}function Aa(e){const t=ma(e);return t?t.constructor:zi.arr(e)?Sa:sa(e)?_a:va}var Ca=(e,t)=>{const n=!zi.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,vi.forwardRef)(((r,o)=>{const i=(0,vi.useRef)(null),l=n&&(0,vi.useCallback)((e=>{i.current=function(e,t){e&&(zi.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[a,s]=function(e,t){const n=new Set;ka.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Ea(e),ka.dependencies=null,[e,n]}(r,t),c=ua(),u=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,a.getValue(!0)))&&c()},p=new Ia(u,s),d=(0,vi.useRef)();ca((()=>(d.current=p,Hi(s,(e=>Wl(e,p))),()=>{d.current&&(Hi(d.current.deps,(e=>$l(e,d.current))),wi.cancel(d.current.update))}))),(0,vi.useEffect)(u,[]),pa((()=>()=>{const e=d.current;Hi(e.deps,(t=>$l(t,e)))}));const f=t.getComponentProps(a.getValue());return vi.createElement(e,{...f,ref:l})}))},Ia=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&wi.write(this.update)}};var xa=Symbol.for("AnimatedComponent"),Ba=e=>zi.str(e)?e:e&&zi.str(e.displayName)?e.displayName:zi.fun(e)&&e.name||null;function Pa(e,...t){return zi.fun(e)?e(...t):e}var Ta=(e,t)=>!0===e||!!(t&&e&&(zi.fun(e)?e(t):$i(e).includes(t))),Oa=(e,t)=>zi.obj(e)?t&&e[t]:e,Na=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ra=e=>e,Fa=(e,t=Ra)=>{let n=Ma;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);zi.und(n)||(r[o]=n)}return r},Ma=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Da={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 La(e){const t=function(e){const t={};let n=0;if(Wi(e,((e,r)=>{Da[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Wi(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Ua(e){return e=jl(e),zi.arr(e)?e.map(Ua):sa(e)?Ei.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ja(e){for(const t in e)return!0;return!1}function Va(e){return zi.fun(e)||zi.arr(e)&&zi.obj(e[0])}function za(e,t){e.ref?.delete(e),t?.delete(e)}function Ga(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ha={tension:170,friction:26,mass:1,damping:1,easing:Ml.linear,clamp:!1};function Wa(e,t){if(zi.und(t.decay)){const n=!zi.und(t.tension)||!zi.und(t.friction);!n&&zi.und(t.frequency)&&zi.und(t.damping)&&zi.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var $a=[];function Ka(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((l,a)=>{let s,c,u=Ta(n.cancel??r?.cancel,t);if(u)f();else{zi.und(n.pause)||(o.paused=Ta(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||Ta(e,t)),s=Pa(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-wi.now()}function d(){s>0&&!Ei.skipAnimation?(o.delayed=!0,c=wi.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},l)}catch(e){a(e)}}}))}var qa=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Qa(e.get()):t.every((e=>e.noop))?Ja(e.get()):Ya(e.get(),t.every((e=>e.finished))),Ja=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ya=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Qa=e=>({value:e,cancelled:!0,finished:!1});function Xa(e,t,n,r){const{callId:o,parentId:i,onRest:l}=t,{asyncTo:a,promise:s}=n;return i||e!==a||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Fa(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)&&Qa(r)||o!==n.asyncId&&Ya(r,!1);if(t)throw e.result=t,p(e),e},y=(e,t)=>{const i=new es,l=new ts;return(async()=>{if(Ei.skipAnimation)throw Za(n),l.result=Ya(r,!1),p(l),l;f(i);const a=zi.obj(e)?{...e}:{...t,to:e};a.parentId=o,Wi(c,((e,t)=>{zi.und(a[t])&&(a[t]=e)}));const s=await r.start(a);return f(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let m;if(Ei.skipAnimation)return Za(n),Ya(r,!1);try{let t;t=zi.arr(e)?(async e=>{for(const t of e)await y(t)})(e):Promise.resolve(e(y,r.stop.bind(r))),await Promise.all([t.then(u),d]),m=Ya(r.get(),!0,!1)}catch(e){if(e instanceof es)m=e.result;else{if(!(e instanceof ts))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?s:void 0)}return zi.fun(l)&&wi.batchedUpdates((()=>{l(m,r,r.item)})),m})():s}function Za(e,t){Ki(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var es=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.")}},ts=class extends Error{constructor(){super("SkipAnimationSignal")}},ns=e=>e instanceof os,rs=1,os=class extends Gl{constructor(){super(...arguments),this.id=rs++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ma(this);return e&&e.getValue()}to(...e){return Ei.to(this,e)}interpolate(...e){return la(`${oa}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ei.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){zl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ll.sort(this),zl(this,{type:"priority",parent:this,priority:e})}},is=Symbol.for("SpringPhase"),ls=e=>(1&e[is])>0,as=e=>(2&e[is])>0,ss=e=>(4&e[is])>0,cs=(e,t)=>t?e[is]|=3:e[is]&=-3,us=(e,t)=>t?e[is]|=4:e[is]&=-5,ps=class extends os{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=$a,this.toValues=null,this.fromValues=$a,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Ha)}},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,!zi.und(e)||!zi.und(t)){const n=zi.obj(e)?{...e}:{...t,from:e};zi.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(as(this)||this._state.asyncTo)||ss(this)}get goal(){return jl(this.animation.to)}get velocity(){const e=ma(this);return e instanceof va?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ls(this)}get isAnimating(){return as(this)}get isPaused(){return ss(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,l=ha(r.to);!l&&Ul(r.to)&&(o=$i(jl(r.to))),r.values.forEach(((a,s)=>{if(a.done)return;const c=a.constructor==_a?1:l?l[s].lastPosition:o[s];let u=r.immediate,p=c;if(!u){if(p=a.lastPosition,i.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const n=r.fromValues[s],o=null!=a.v0?a.v0:a.v0=zi.arr(i.velocity)?i.velocity[s]:i.velocity;let l;const d=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(zi.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(a.lastPosition-p)<=d,l=o*r}else{l=null==a.lastVelocity?o:a.lastVelocity;const t=i.restVelocity||d/10,r=i.clamp?0:i.bounce,s=!zi.und(r),f=n==c?a.v0>0:n<c;let y,m=!1;const g=1,h=Math.ceil(e/g);for(let e=0;e<h&&(y=Math.abs(l)>t,y||(u=Math.abs(c-p)<=d,!u));++e){s&&(m=p==c||p>c==f,m&&(l=-l*r,p=c));l+=(1e-6*-i.tension*(p-c)+.001*-i.friction*l)/i.mass*g,p+=l*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,a.durationProgress>0&&(a.elapsedTime=i.duration*a.durationProgress,t=a.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,a.durationProgress=r),p=n+i.easing(r)*(c-n),l=(p-a.lastPosition)/e,u=1==r}a.lastVelocity=l,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),u=!0)}l&&!l[s].done&&(u=!1),u?a.done=!0:t=!1,a.setValue(p,i.round)&&(n=!0)}));const a=ma(this),s=a.getValue();if(t){const e=jl(r.to);s===e&&!n||i.decay?n&&i.decay&&this._onChange(s):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return wi.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(as(this)){const{to:e,config:t}=this.animation;wi.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 zi.und(e)?(n=this.queue||[],this.queue=[]):n=[zi.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>qa(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Za(this._state,e&&this._lastCallId),wi.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=zi.obj(n)?n[t]:n,(null==n||Va(n))&&(n=void 0),r=zi.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return ls(this)||(e.reverse&&([n,r]=[r,n]),r=jl(r),zi.und(r)?ma(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Fa(e,((e,t)=>/^on/.test(t)?Oa(e,n):e))),bs(this,e,"onProps"),vs(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 Ka(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ss(this)||(us(this,!0),Yi(i.pauseQueue),vs(this,"onPause",Ya(this,ds(this,this.animation.to)),this))},resume:()=>{ss(this)&&(us(this,!1),as(this)&&this._resume(),Yi(i.resumeQueue),vs(this,"onResume",Ya(this,ds(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=fs(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Qa(this));const r=!zi.und(e.to),o=!zi.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Qa(this));this._lastToId=t.callId}const{key:i,defaultProps:l,animation:a}=this,{to:s,from:c}=a;let{to:u=s,from:p=c}=e;!o||r||t.default&&!zi.und(u)||(u=p),t.reverse&&([u,p]=[p,u]);const d=!Gi(p,c);d&&(a.from=p),p=jl(p);const f=!Gi(u,s);f&&this._focus(u);const y=Va(t.to),{config:m}=a,{decay:g,velocity:h}=m;(r||o)&&(m.velocity=0),t.config&&!y&&function(e,t,n){n&&(Wa(n={...n},t),t={...n,...t}),Wa(e,t),Object.assign(e,t);for(const t in Ha)null==e[t]&&(e[t]=Ha[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;zi.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(m,Pa(t.config,i),t.config!==l.config?Pa(l.config,i):void 0);let b=ma(this);if(!b||zi.und(u))return n(Ya(this,!0));const v=zi.und(t.reset)?o&&!t.default:!zi.und(p)&&Ta(t.reset,i),_=v?p:this.get(),k=Ua(u),E=zi.num(k)||zi.arr(k)||sa(k),S=!y&&(!E||Ta(l.immediate||t.immediate,i));if(f){const e=Aa(u);if(e!==b.constructor){if(!S)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 A=Ul(u),C=!1;if(!A){const e=v||!ls(this)&&d;(f||e)&&(C=Gi(Ua(_),k),A=!C),(Gi(a.immediate,S)||S)&&Gi(m.decay,g)&&Gi(m.velocity,h)||(A=!0)}if(C&&as(this)&&(a.changed&&!v?A=!0:A||this._stop(s)),!y&&((A||Ul(s))&&(a.values=b.getPayload(),a.toValues=Ul(u)?null:w==_a?[1]:$i(k)),a.immediate!=S&&(a.immediate=S,S||v||this._set(s)),A)){const{onRest:e}=a;Hi(hs,(e=>bs(this,t,e)));const r=Ya(this,ds(this,s));Yi(this._pendingCalls,r),this._pendingCalls.add(n),a.changed&&wi.batchedUpdates((()=>{a.changed=!v,e?.(r,this),v?Pa(l.onRest,r):a.onStart?.(r,this)}))}v&&this._set(_),y?n(Xa(t.to,t,this._state,this)):A?this._start():as(this)&&!f?this._pendingCalls.add(n):n(Ja(_))}_focus(e){const t=this.animation;e!==t.to&&(Vl(this)&&this._detach(),t.to=e,Vl(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ul(t)&&(Wl(t,this),ns(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ul(e)&&$l(e,this)}_set(e,t=!0){const n=jl(e);if(!zi.und(n)){const e=ma(this);if(!e||!Gi(n,e.getValue())){const r=Aa(n);e&&e.constructor==r?e.setValue(n):ga(this,r.create(n)),e&&wi.batchedUpdates((()=>{this._onChange(n,t)}))}}return ma(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,vs(this,"onStart",Ya(this,ds(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Pa(this.animation.onChange,e,this)),Pa(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ma(this).reset(jl(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),as(this)||(cs(this,!0),ss(this)||this._resume())}_resume(){Ei.skipAnimation?this.finish():ll.start(this)}_stop(e,t){if(as(this)){cs(this,!1);const n=this.animation;Hi(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),zl(this,{type:"idle",parent:this});const r=t?Qa(this.get()):Ya(this.get(),ds(this,e??n.to));Yi(this._pendingCalls,r),n.changed&&(n.changed=!1,vs(this,"onRest",r,this))}}};function ds(e,t){const n=Ua(t);return Gi(Ua(e.get()),n)}function fs(e,t=e.loop,n=e.to){const r=Pa(t);if(r){const o=!0!==r&&La(r),i=(o||e).reverse,l=!o||o.reset;return ys({...e,loop:t,default:!1,pause:void 0,to:!i||Va(n)?n:void 0,from:l?e.from:void 0,reset:l,...o})}}function ys(e){const{to:t,from:n}=e=La(e),r=new Set;return zi.obj(t)&&gs(t,r),zi.obj(n)&&gs(n,r),e.keys=r.size?Array.from(r):null,e}function ms(e){const t=ys(e);return zi.und(t.default)&&(t.default=Fa(t)),t}function gs(e,t){Wi(e,((e,n)=>null!=e&&t.add(n)))}var hs=["onStart","onRest","onChange","onPause","onResume"];function bs(e,t,n){e.animation[n]=t[n]!==Na(t,n)?Oa(t[n],e.key):void 0}function vs(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var _s=["onStart","onChange","onRest"],ks=1,Es=class{constructor(e,t){this.id=ks++,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];zi.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ys(e)),this}start(e){let{queue:t}=this;return e?t=$i(e).map(ys):this.queue=[],this._flush?this._flush(this,t):(Bs(this,t),Ss(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Hi($i(t),(t=>n[t].stop(!!e)))}else Za(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(zi.und(e))this.start({pause:!0});else{const t=this.springs;Hi($i(e),(e=>t[e].pause()))}return this}resume(e){if(zi.und(e))this.start({pause:!1});else{const t=this.springs;Hi($i(e),(e=>t[e].resume()))}return this}each(e){Wi(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,Ki(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,l=o||i&&n.size?this.get():null;o&&t.size&&Ki(t,(([e,t])=>{t.value=l,e(t,this,this._item)})),i&&(this._started=!1,Ki(n,(([e,t])=>{t.value=l,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)}wi.onFrame(this._onFrame)}};function Ss(e,t){return Promise.all(t.map((t=>ws(e,t)))).then((t=>qa(e,t)))}async function ws(e,t,n){const{keys:r,to:o,from:i,loop:l,onRest:a,onResolve:s}=t,c=zi.obj(t.default)&&t.default;l&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=zi.arr(o)||zi.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Hi(_s,(n=>{const r=t[n];if(zi.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,Yi(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===Na(t,"cancel");(u||f&&p.asyncId)&&d.push(Ka(++e._lastAsyncId,{props:t,state:p,actions:{pause:Vi,resume:Vi,start(t,n){f?(Za(p,e._lastAsyncId),n(Qa(e))):(t.onRest=a,n(Xa(u,t,p,e)))}}})),p.paused&&await new Promise((e=>{p.resumeQueue.add(e)}));const y=qa(e,await Promise.all(d));if(l&&y.finished&&(!n||!y.noop)){const n=fs(t,l,o);if(n)return Bs(e,[n]),ws(e,n,!0)}return s&&wi.batchedUpdates((()=>s(y,e,e.item))),y}function As(e,t){const n={...e.springs};return t&&Hi($i(t),(e=>{zi.und(e.keys)&&(e=ys(e)),zi.obj(e.to)||(e={...e,to:void 0}),xs(n,e,(e=>Is(e)))})),Cs(e,n),n}function Cs(e,t){Wi(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Wl(t,e))}))}function Is(e,t){const n=new ps;return n.key=e,t&&Wl(n,t),n}function xs(e,t,n){t.keys&&Hi(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Bs(e,t){Hi(t,(t=>{xs(e.springs,t,(t=>Is(t,e)))}))}var Ps,Ts,Os=({children:e,...t})=>{const n=(0,vi.useContext)(Ns),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,vi.useState)((()=>({inputs:t,result:e()}))),r=(0,vi.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,vi.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=Ns;return vi.createElement(i,{value:t},e)},Ns=(Ps=Os,Ts={},Object.assign(Ps,vi.createContext(Ts)),Ps.Provider._context=Ps,Ps.Consumer._context=Ps,Ps);Os.Provider=Ns.Provider,Os.Consumer=Ns.Consumer;var Rs=()=>{const e=[],t=function(t){aa(`${oa}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 Hi(e,((e,o)=>{if(zi.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 Hi(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Hi(e,(e=>e.resume(...arguments))),this},t.set=function(t){Hi(e,((e,n)=>{const r=zi.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Hi(e,((e,r)=>{if(zi.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 Hi(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Hi(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return zi.fun(e)?e(n,t):e};return t._getProps=n,t};function Fs(e,t,n){const r=zi.fun(t)&&t;r&&!n&&(n=[]);const o=(0,vi.useMemo)((()=>r||3==arguments.length?Rs():void 0),[]),i=(0,vi.useRef)(0),l=ua(),a=(0,vi.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=As(e,t);return i.current>0&&!a.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?Ss(e,t):new Promise((r=>{Cs(e,n),a.queue.push((()=>{r(Ss(e,t))})),l()}))}})),[]),s=(0,vi.useRef)([...a.ctrls]),c=[],u=fa(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=s.current[o]||(s.current[o]=new Es(null,a.flush)),n=r?r(o,e):t[o];n&&(c[o]=ms(n))}}(0,vi.useMemo)((()=>{Hi(s.current.slice(e,u),(e=>{za(e,o),e.stop(!0)})),s.current.length=e,p(u,e)}),[e]),(0,vi.useMemo)((()=>{p(0,Math.min(u,e))}),n);const d=s.current.map(((e,t)=>As(e,c[t]))),f=(0,vi.useContext)(Os),y=fa(f),m=f!==y&&ja(f);ca((()=>{i.current++,a.ctrls=s.current;const{queue:e}=a;e.length&&(a.queue=[],Hi(e,(e=>e()))),Hi(s.current,((e,t)=>{o?.add(e),m&&e.start({default:f});const n=c[t];n&&(Ga(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),pa((()=>()=>{Hi(a.ctrls,(e=>e.stop(!0)))}));const g=d.map((e=>({...e})));return o?[g,o]:g}function Ms(e,t){const n=zi.fun(e),[[r],o]=Fs(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var Ds=class extends os{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Bl(...t);const n=this._get(),r=Aa(n);ga(this,r.create(n))}advance(e){const t=this._get();Gi(t,this.get())||(ma(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Us(this._active)&&js(this)}_get(){const e=zi.arr(this.source)?this.source.map(jl):$i(jl(this.source));return this.calc(...e)}_start(){this.idle&&!Us(this._active)&&(this.idle=!1,Hi(ha(this),(e=>{e.done=!1})),Ei.skipAnimation?(wi.batchedUpdates((()=>this.advance())),js(this)):ll.start(this))}_attach(){let e=1;Hi($i(this.source),(t=>{Ul(t)&&Wl(t,this),ns(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Hi($i(this.source),(e=>{Ul(e)&&$l(e,this)})),this._active.clear(),js(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=$i(this.source).reduce(((e,t)=>Math.max(e,(ns(t)?t.priority:0)+1)),0))}};function Ls(e){return!1!==e.idle}function Us(e){return!e.size||Array.from(e).every(Ls)}function js(e){e.idle||(e.idle=!0,Hi(ha(e),(e=>{e.done=!0})),zl(e,{type:"idle",parent:e}))}Ei.assign({createStringInterpolator:ra,to:(e,t)=>new Ds(e,t)});ll.advance;var Vs=window.ReactDOM,zs=/^--/;function Gs(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||zs.test(e)||Ws.hasOwnProperty(e)&&Ws[e]?(""+t).trim():t+"px"}var Hs={};var Ws={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},$s=["Webkit","Ms","Moz","O"];Ws=Object.keys(Ws).reduce(((e,t)=>($s.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Ws);var Ks=/^(matrix|translate|scale|rotate|skew)/,qs=/^(translate)/,Js=/^(rotate|skew)/,Ys=(e,t)=>zi.num(e)&&0!==e?e+t:e,Qs=(e,t)=>zi.arr(e)?e.every((e=>Qs(e,t))):zi.num(e)?e===t:parseFloat(e)===t,Xs=class extends Ea{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=>Ys(e,"px"))).join(",")})`,Qs(e,0)]))),Wi(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Ks.test(t)){if(delete r[t],zi.und(e))return;const n=qs.test(t)?"px":Js.test(t)?"deg":"";o.push($i(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${Ys(o,n)})`,Qs(o,0)]:e=>[`${t}(${e.map((e=>Ys(e,n))).join(",")})`,Qs(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Zs(o,i)),super(r)}},Zs=class extends Gl{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 Hi(this.inputs,((n,r)=>{const o=jl(n[0]),[i,l]=this.transforms[r](zi.arr(o)?o:n.map(jl));e+=" "+i,t=t&&l})),t?"none":e}observerAdded(e){1==e&&Hi(this.inputs,(e=>Hi(e,(e=>Ul(e)&&Wl(e,this)))))}observerRemoved(e){0==e&&Hi(this.inputs,(e=>Hi(e,(e=>Ul(e)&&$l(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),zl(this,e)}};Ei.assign({batchedUpdates:Vs.unstable_batchedUpdates,createStringInterpolator:ra,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 ec=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Ea(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Ba(e)||"Anonymous";return(e=zi.str(e)?i[e]||(i[e]=Ca(e,o)):e[xa]||(e[xa]=Ca(e,o))).displayName=`Animated(${t})`,e};return Wi(e,((t,n)=>{zi.arr(e)&&(n=Ba(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:l,viewBox:a,...s}=t,c=Object.values(s),u=Object.keys(s).map((t=>n||e.hasAttribute(t)?t:Hs[t]||(Hs[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=Gs(t,r[t]);zs.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!==l&&(e.scrollLeft=l),void 0!==a&&e.setAttribute("viewBox",a)},createAnimatedStyle:e=>new Xs(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),tc=ec.animated;const nc=e=>e+1,rc=e=>({top:e.offsetTop,left:e.offsetLeft});var oc=function(e){let{isSelected:t,adjustScrolling:n,enableAnimation:r,triggerAnimationOnChange:o}=e;const i=(0,a.useRef)(),l=(0,p.useReducedMotion)()||!r,[s,c]=(0,a.useReducer)(nc,0),[u,d]=(0,a.useReducer)(nc,0),[f,y]=(0,a.useState)({x:0,y:0}),m=(0,a.useMemo)((()=>i.current?rc(i.current):null),[o]),g=(0,a.useMemo)((()=>{if(!n||!i.current)return()=>{};const e=(0,Zo.getScrollContainer)(i.current);if(!e)return()=>{};const t=i.current.getBoundingClientRect();return()=>{const n=i.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[o,n]);function h(e){let{value:n}=e,{x:r,y:o}=n;r=Math.round(r),o=Math.round(o),r===h.x&&o===h.y||(!function(e){let{x:n,y:r}=e;if(!i.current)return;const o=0===n&&0===r;i.current.style.transformOrigin=o?"":"center",i.current.style.transform=o?"":`translate3d(${n}px,${r}px,0)`,i.current.style.zIndex=!t||o?"":"1",g()}({x:r,y:o}),h.x=r,h.y=o)}return(0,a.useLayoutEffect)((()=>{s&&d()}),[s]),(0,a.useLayoutEffect)((()=>{if(!m)return;if(l)return void g();i.current.style.transform="";const e=rc(i.current);c(),y({x:Math.round(m.left-e.left),y:Math.round(m.top-e.top)})}),[o]),h.x=0,h.y=0,Ms({from:{x:f.x,y:f.y},to:{x:0,y:0},reset:s!==u,config:{mass:5,tension:2e3,friction:200},immediate:l,onChange:h}),i};const ic=".block-editor-block-list__block",lc=".block-list-appender",ac=".block-editor-button-block-appender";function sc(e,t){return t.closest([ic,lc,ac].join(","))===e}function cc(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(ic);return t?t.id.slice("block-".length):void 0}function uc(e){const t=(0,a.useRef)(),n=function(e){return(0,f.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,isNavigationMode:r,isBlockSelected:o}=t(qn);if(o(e)&&!r())return n()}),[e])}(e),{isBlockSelected:r,isMultiSelecting:o}=(0,f.useSelect)(qn);return(0,a.useEffect)((()=>{if(!r(e)||o())return;if(null==n)return;if(!t.current)return;const{ownerDocument:i}=t.current;if(t.current.contains(i.activeElement))return;const l=Zo.focus.tabbable.find(t.current).filter((e=>(0,Zo.isTextField)(e))),a=-1===n,s=(a?u.last:u.first)(l)||t.current;if(sc(t.current,s)){if(!t.current.getAttribute("contenteditable")){const e=Zo.focus.tabbable.findNext(t.current);if(e&&sc(t.current,e)&&(0,Zo.isFormElement)(e))return void e.focus()}(0,Zo.placeCaretAtHorizontalEdge)(s,a)}else t.current.focus()}),[n,e]),t}function pc(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function dc(){const e=(0,f.useSelect)((e=>{const{isNavigationMode:t,getSettings:n}=e(qn);return t()||n().outlineMode}),[]);return(0,p.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",pc),t.addEventListener("mouseover",pc),()=>{t.removeEventListener("mouseout",pc),t.removeEventListener("mouseover",pc),t.classList.remove("is-hovered")}}),[e])}function fc(e){return(0,f.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:r,isBlockSelected:i,isBlockMultiSelected:l,getBlockName:a,getSettings:s,hasSelectedInnerBlock:u,isTyping:p,__experimentalGetActiveBlockIdByBlockNames:d}=t(qn),{__experimentalSpotlightEntityBlocks:f,outlineMode:y}=s(),m=n(e),g=i(e),h=a(e),b=u(e,!0),v=d(f);return c()({"is-selected":g,"is-highlighted":r(e),"is-multi-selected":l(e),"is-reusable":(0,o.isReusableBlock)((0,o.getBlockType)(h)),"is-dragging":m,"has-child-selected":b,"has-active-entity":v,"is-active-entity":v===e,"remove-outline":g&&y&&p()})}),[e])}function yc(e){return(0,f.useSelect)((t=>{const n=t(qn).getBlockName(e),r=(0,o.getBlockType)(n);if((null==r?void 0:r.apiVersion)>1)return(0,o.getBlockDefaultClassName)(n)}),[e])}function mc(e){return(0,f.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:r}=t(qn),i=r(e);if(null==i||!i.className)return;const l=(0,o.getBlockType)(n(e));return(null==l?void 0:l.apiVersion)>1?i.className:void 0}),[e])}function gc(e){return(0,f.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:r,getBlockName:o,getBlockRootClientId:i,isBlockSelected:l}=t(qn);if(!l(e))return;const a=n();return a?c()("is-block-moving-mode",{"can-insert-moving-block":r(o(a),i(e))}):void 0}),[e])}function hc(e){const{isBlockSelected:t}=(0,f.useSelect)(qn),{selectBlock:n,selectionChange:r}=(0,f.useDispatch)(qn);return(0,p.useRefEffect)((o=>{function i(i){o.parentElement.closest('[contenteditable="true"]')||(t(e)?i.target.isContentEditable||r(e):sc(o,i.target)&&n(e))}return o.addEventListener("focusin",i),()=>{o.removeEventListener("focusin",i)}}),[t,n])}var bc=window.wp.keycodes;function vc(e){const t=(0,f.useSelect)((t=>t(qn).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:r}=(0,f.useSelect)(qn),{insertDefaultBlock:o,removeBlock:i}=(0,f.useDispatch)(qn);return(0,p.useRefEffect)((l=>{if(t)return l.addEventListener("keydown",a),l.addEventListener("dragstart",s),()=>{l.removeEventListener("keydown",a),l.removeEventListener("dragstart",s)};function a(t){const{keyCode:a,target:s}=t;a!==bc.ENTER&&a!==bc.BACKSPACE&&a!==bc.DELETE||s!==l||(0,Zo.isTextField)(s)||(t.preventDefault(),a===bc.ENTER?o({},n(e),r(e)+1):i(e))}function s(e){e.preventDefault()}}),[e,t,n,r,o,i])}function _c(e){const{isNavigationMode:t,isBlockSelected:n}=(0,f.useSelect)(qn),{setNavigationMode:r,selectBlock:o}=(0,f.useDispatch)(qn);return(0,p.useRefEffect)((i=>{function l(i){t()&&!i.defaultPrevented&&(i.preventDefault(),n(e)?r(!1):o(e))}return i.addEventListener("mousedown",l),()=>{i.addEventListener("mousedown",l)}}),[e,t,n,r])}function kc(){const e=(0,a.useContext)(Ty);return(0,p.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Ec(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:n,className:r,wrapperProps:i={},isAligned:l}=(0,a.useContext)(Sc),{index:s,mode:u,name:d,blockApiVersion:y,blockTitle:g,isPartOfSelection:h,adjustScrolling:b,enableAnimation:v}=(0,f.useSelect)((e=>{const{getBlockIndex:t,getBlockMode:r,getBlockName:i,isTyping:l,getGlobalBlockCount:a,isBlockSelected:s,isBlockMultiSelected:c,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:p}=e(qn),d=s(n),f=c(n)||u(n),y=i(n),m=(0,o.getBlockType)(y);return{index:t(n),mode:r(n),name:y,blockApiVersion:(null==m?void 0:m.apiVersion)||1,blockTitle:null==m?void 0:m.title,isPartOfSelection:d||f,adjustScrolling:d||p(n),enableAnimation:!l()&&a()<=200}}),[n]),_=(0,m.sprintf)((0,m.__)("Block: %s"),g),k="html"!==u||t?"":"-visual",E=(0,p.useMergeRefs)([e.ref,uc(n),_r(n),hc(n),vc(n),_c(n),dc(),kc(),oc({isSelected:h,adjustScrolling:b,enableAnimation:v,triggerAnimationOnChange:s})]),S=Xn();return y<2&&n===S.clientId&&"undefined"!=typeof process&&process.env,{...i,...e,ref:E,id:`block-${n}${k}`,tabIndex:0,role:"document","aria-label":_,"data-block":n,"data-type":d,"data-title":g,className:c()(c()("block-editor-block-list__block",{"wp-block":!l}),r,e.className,i.className,fc(n),yc(n),mc(n),gc(n)),style:{...i.style,...e.style}}}Ec.save=o.__unstableGetBlockProps;const Sc=(0,a.createContext)();function wc(e){let{children:t,isHtml:n,...r}=e;return(0,a.createElement)("div",Ec(r,{__unstableIsHtml:n}),t)}const Ac=(0,f.withSelect)(((e,t)=>{let{clientId:n,rootClientId:r}=t;const{isBlockSelected:o,getBlockMode:i,isSelectionEnabled:l,getTemplateLock:a,__unstableGetBlockWithoutInnerBlocks:s,canRemoveBlock:c,canMoveBlock:u}=e(qn),p=s(n),d=o(n),f=a(r),y=c(n,r),m=u(n,r),{name:g,attributes:h,isValid:b}=p||{};return{mode:i(n),isSelectionEnabled:l(),isLocked:!!f,canRemove:y,canMove:m,block:p,name:g,attributes:h,isValid:b,isSelected:d}})),Cc=(0,f.withDispatch)(((e,t,n)=>{let{select:r}=n;const{updateBlockAttributes:i,insertBlocks:l,mergeBlocks:a,replaceBlocks:s,toggleSelection:c,__unstableMarkLastChangeAsPersistent:u}=e(qn);return{setAttributes(e){const{getMultiSelectedBlockClientIds:n}=r(qn),o=n(),{clientId:l}=t,a=o.length?o:[l];i(a,e)},onInsertBlocks(e,n){const{rootClientId:r}=t;l(e,n,r)},onInsertBlocksAfter(e){const{clientId:n,rootClientId:o}=t,{getBlockIndex:i}=r(qn),a=i(n);l(e,a+1,o)},onMerge(e){const{clientId:n}=t,{getPreviousBlockClientId:o,getNextBlockClientId:i}=r(qn);if(e){const e=i(n);e&&a(n,e)}else{const e=o(n);e&&a(e,n)}},onReplace(e,n,r){e.length&&!(0,o.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),s([t.clientId],e,n,r)},toggleSelection(e){c(e)}}}));var Ic=(0,p.compose)(p.pure,Ac,Cc,(0,p.ifCondition)((e=>{let{block:t}=e;return!!t})),(0,d.withFilters)("editor.BlockListBlock"))((function(e){var t;let{block:{__unstableBlockSource:n},mode:r,isLocked:i,canRemove:l,clientId:s,isSelected:p,isSelectionEnabled:d,className:y,name:m,isValid:g,attributes:h,wrapperProps:b,setAttributes:v,onReplace:_,onInsertBlocksAfter:k,onMerge:E,toggleSelection:S}=e;const w=(0,f.useSelect)((e=>{const{getSettings:t}=e(qn);return t().supportsLayout}),[]),{removeBlock:A}=(0,f.useDispatch)(qn),C=(0,a.useCallback)((()=>A(s)),[s]);let I=(0,a.createElement)(ii,{name:m,isSelected:p,attributes:h,setAttributes:v,insertBlocksAfter:i?void 0:k,onReplace:l?_:void 0,onRemove:l?C:void 0,mergeBlocks:l?E:void 0,clientId:s,isSelectionEnabled:d,toggleSelection:S});const x=(0,o.getBlockType)(m);null!=x&&x.getEditWrapperProps&&(b=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(b,x.getEditWrapperProps(h)));const B=b&&!!b["data-align"]&&!w;let P;if(B&&(I=(0,a.createElement)("div",{className:"wp-block","data-align":b["data-align"]},I)),g)P="html"===r?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{style:{display:"none"}},I),(0,a.createElement)(wc,{isHtml:!0},(0,a.createElement)(bi,{clientId:s}))):(null==x?void 0:x.apiVersion)>1?I:(0,a.createElement)(wc,b,I);else{const e=n?(0,o.serializeRawBlock)(n):(0,o.getSaveContent)(x,h);P=(0,a.createElement)(wc,{className:"has-warning"},(0,a.createElement)(di,{clientId:s}),(0,a.createElement)(a.RawHTML,null,(0,Zo.safeHTML)(e)))}const T={clientId:s,className:null!==(t=b)&&void 0!==t&&t["data-align"]&&w?c()(y,`align${b["data-align"]}`):y,wrapperProps:(0,u.omit)(b,["data-align"]),isAligned:B},O=(0,a.useMemo)((()=>T),Object.values(T));return(0,a.createElement)(Sc.Provider,{value:O},(0,a.createElement)(gi,{fallback:(0,a.createElement)(wc,{className:"has-warning"},(0,a.createElement)(yi,null))},P))})),xc=window.wp.htmlEntities;var Bc=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Pc=[(0,a.createInterpolateElement)((0,m.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,a.createElement)("kbd",null)}),(0,a.createInterpolateElement)((0,m.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,a.createElement)("kbd",null)}),(0,a.createInterpolateElement)((0,m.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,a.createElement)("kbd",null)}),(0,m.__)("Drag files into the editor to automatically insert media blocks."),(0,m.__)("Change a block's type by pressing the block icon on the toolbar.")];var Tc=function(){const[e]=(0,a.useState)(Math.floor(Math.random()*Pc.length));return(0,a.createElement)(d.Tip,null,Pc[e])};var Oc=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Nc=(0,a.memo)((function(e){var t;let{icon:n,showColors:r=!1,className:o}=e;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Oc});const i=(0,a.createElement)(d.Icon,{icon:n&&n.src?n.src:n}),l=r?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return(0,a.createElement)("span",{style:l,className:c()("block-editor-block-icon",o,{"has-colors":r})},i)}));var Rc=function(e){let{title:t,icon:n,description:r,blockType:o}=e;return o&&(jt()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:t,icon:n,description:r}=o)),(0,a.createElement)("div",{className:"block-editor-block-card"},(0,a.createElement)(Nc,{icon:n,showColors:!0}),(0,a.createElement)("div",{className:"block-editor-block-card__content"},(0,a.createElement)("h2",{className:"block-editor-block-card__title"},t),(0,a.createElement)("span",{className:"block-editor-block-card__description"},r)))};function Fc(e){let{clientId:t=null,value:n,selection:r,onChange:i=u.noop,onInput:l=u.noop}=e;const s=(0,f.useRegistry)(),{resetBlocks:c,resetSelection:p,replaceInnerBlocks:d,setHasControlledInnerBlocks:y,__unstableMarkNextChangeAsNotPersistent:m}=s.dispatch(qn),{getBlockName:g,getBlocks:h}=s.select(qn),b=(0,f.useSelect)((e=>!t||e(qn).areInnerBlocksControlled(t)),[t]),v=(0,a.useRef)({incoming:null,outgoing:[]}),_=(0,a.useRef)(!1),k=()=>{n&&(m(),t?s.batch((()=>{y(t,!0);const e=n.map((e=>(0,o.cloneBlock)(e)));_.current&&(v.current.incoming=e),m(),d(t,e)})):(_.current&&(v.current.incoming=n),c(n)))},E=(0,a.useRef)(l),S=(0,a.useRef)(i);(0,a.useEffect)((()=>{E.current=l,S.current=i}),[l,i]),(0,a.useEffect)((()=>{v.current.outgoing.includes(n)?(0,u.last)(v.current.outgoing)===n&&(v.current.outgoing=[]):h(t)!==n&&(v.current.outgoing=[],k(),r&&p(r.selectionStart,r.selectionEnd,r.initialPosition))}),[n,t]),(0,a.useEffect)((()=>{b||(v.current.outgoing=[],k())}),[b]),(0,a.useEffect)((()=>{const{getSelectionStart:e,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:r,isLastBlockChangePersistent:o,__unstableIsLastBlockChangeIgnored:i,areInnerBlocksControlled:l}=s.select(qn);let a=h(t),c=o(),u=!1;_.current=!0;const p=s.subscribe((()=>{if(null!==t&&null===g(t))return;if(!(!t||l(t)))return;const s=o(),p=h(t),d=p!==a;if(a=p,d&&(v.current.incoming||i()))return v.current.incoming=null,void(c=s);if(d||u&&!d&&s&&!c){c=s,v.current.outgoing.push(a);(c?S.current:E.current)(a,{selection:{selectionStart:e(),selectionEnd:n(),initialPosition:r()}})}u=d}));return()=>p()}),[s,t])}var Mc=(0,p.createHigherOrderComponent)((e=>(0,f.withRegistry)((t=>{let{useSubRegistry:n=!0,registry:r,...o}=t;if(!n)return(0,a.createElement)(e,l({registry:r},o));const[i,s]=(0,a.useState)(null);return(0,a.useEffect)((()=>{const e=(0,f.createRegistry)({},r);e.registerStore($n,Kn),s(e)}),[r]),i?(0,a.createElement)(f.RegistryProvider,{value:i},(0,a.createElement)(e,l({registry:i},o))):null}))),"withRegistryProvider")((function(e){const{children:t,settings:n}=e,{updateSettings:r}=(0,f.useDispatch)(qn);return(0,a.useEffect)((()=>{r(n)}),[n]),Fc(e),(0,a.createElement)(vr,null,t)}));function Dc(e){let{onClick:t}=e;return(0,a.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},(0,a.createElement)(d.Disabled,null,(0,a.createElement)(Ny,null)))}function Lc(){const{hasSelectedBlock:e,hasMultiSelection:t}=(0,f.useSelect)(qn),{clearSelectedBlock:n}=(0,f.useDispatch)(qn);return(0,p.useRefEffect)((r=>{function o(o){(e()||t())&&o.target===r&&n()}return r.addEventListener("mousedown",o),()=>{r.removeEventListener("mousedown",o)}}),[e,t,n])}function Uc(e){return(0,a.createElement)("div",l({ref:Lc()},e))}function jc(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:r,getSelectedBlockClientId:o,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:l}=e(qn);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:r(),selectedBlockClientId:o(),initialPosition:i(),isFullSelection:l()}}function Vc(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:r,selectedBlockClientId:o,isFullSelection:i}=(0,f.useSelect)(jc,[]),l=kr(o),a=kr((0,u.first)(n)),s=kr((0,u.last)(n));return(0,p.useRefEffect)((c=>{const{ownerDocument:u}=c,{defaultView:p}=u;if(null==e)return;if(!r||t){if(!o||t)return;const e=p.getSelection();if(e.rangeCount&&!e.isCollapsed){const t=l.current,{startContainer:n,endContainer:r}=e.getRangeAt(0);!t||t.contains(n)&&t.contains(r)||e.removeAllRanges()}return}const{length:d}=n;if(d<2)return;if(!i)return;if(c.contentEditable=!0,c.focus(),!a.current||!s.current)return;const f=p.getSelection(),y=u.createRange();y.setStartBefore(a.current),y.setEndAfter(s.current),f.removeAllRanges(),f.addRange(y)}),[r,t,n,o,e,i])}function zc(e,t,n,r){let o,i=Zo.focus.focusable.find(n);return t&&(i=(0,u.reverse)(i)),i=i.slice(i.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),(0,u.find)(i,(function(e){if(!Zo.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 Gc(){const{getSelectedBlockClientId:e,getMultiSelectedBlocksEndClientId:t,getPreviousBlockClientId:n,getNextBlockClientId:r,getSettings:o,hasMultiSelection:i}=(0,f.useSelect)(qn);return(0,p.useRefEffect)((l=>{let a;function s(){a=null}function c(e,t){const n=zc(e,t,l);return!n||!function(e,t){return e.closest(ic)===t.closest(ic)}(e,n)}function u(s){const{keyCode:u,target:p}=s,d=u===bc.UP,f=u===bc.DOWN,y=u===bc.LEFT,m=u===bc.RIGHT,g=d||y,h=y||m,b=d||f,v=h||b,_=s.shiftKey,k=_||s.ctrlKey||s.altKey||s.metaKey,E=b?Zo.isVerticalEdge:Zo.isHorizontalEdge,{ownerDocument:S}=l,{defaultView:w}=S;if(i())return;if(b?a||(a=(0,Zo.computeCaretRect)(w)):a=null,s.defaultPrevented)return;if(!v)return;if(!function(e,t,n){if((t===bc.UP||t===bc.DOWN)&&!n)return!0;const{tagName:r}=e;return"INPUT"!==r&&"TEXTAREA"!==r}(p,u,k))return;const A=(0,Zo.isRTL)(p)?!g:g,{keepCaretInsideBlock:C}=o(),I=e();if(_){const e=t(),o=n(e||I),i=r(e||I);(g&&o||!g&&i)&&c(p,g)&&E(p,g)&&(l.contentEditable=!0,l.focus())}else if(b&&(0,Zo.isVerticalEdge)(p,g)&&!C){const e=zc(p,g,l,!0);e&&((0,Zo.placeCaretAtVerticalEdge)(e,g,a),s.preventDefault())}else if(h&&w.getSelection().isCollapsed&&(0,Zo.isHorizontalEdge)(p,A)&&!C){const e=zc(p,A,l);(0,Zo.placeCaretAtHorizontalEdge)(e,g),s.preventDefault()}}return l.addEventListener("mousedown",s),l.addEventListener("keydown",u),()=>{l.removeEventListener("mousedown",s),l.removeEventListener("keydown",u)}}),[])}var Hc=window.wp.keyboardShortcuts;function Wc(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,f.useSelect)(qn),{multiSelect:r}=(0,f.useDispatch)(qn),o=(0,Hc.__unstableUseShortcutEventMatch)();return(0,p.useRefEffect)((i=>{function l(i){if(!o("core/block-editor/select-all",i))return;const l=t();if(l.length<2&&!(0,Zo.isEntirelySelected)(i.target))return;const[a]=l,s=n(a);let c=e(s);l.length===c.length&&(c=e(n(s)));const p=(0,u.first)(c),d=(0,u.last)(c);p!==d&&(r(p,d),i.preventDefault())}return i.addEventListener("keydown",l),()=>{i.removeEventListener("keydown",l)}}),[])}function $c(e,t){e.contentEditable=t,t&&e.focus()}function Kc(){const{startMultiSelect:e,stopMultiSelect:t}=(0,f.useDispatch)(qn),{isSelectionEnabled:n,hasMultiSelection:r}=(0,f.useSelect)(qn);return(0,p.useRefEffect)((o=>{const{ownerDocument:i}=o,{defaultView:l}=i;let a,s;function c(){t(),l.removeEventListener("mouseup",c),s=l.requestAnimationFrame((()=>{if(r())return;$c(o,!1);const e=l.getSelection();if(e.rangeCount){const{commonAncestorContainer:t}=e.getRangeAt(0);a.contains(t)&&a.focus()}}))}function u(t){let{buttons:r,target:s}=t;1===r&&s.getAttribute("contenteditable")&&n()&&(a=i.activeElement,e(),l.addEventListener("mouseup",c),$c(o,!0))}return o.addEventListener("mouseout",u),()=>{o.removeEventListener("mouseout",u),l.removeEventListener("mouseup",c),l.cancelAnimationFrame(s)}}),[e,t,n,r])}function qc(e,t){e.contentEditable=t,t&&e.focus()}function Jc(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,f.useDispatch)(qn),{getBlockParents:r,getBlockSelectionStart:o}=(0,f.useSelect)(qn);return(0,p.useRefEffect)((n=>{const{ownerDocument:i}=n,{defaultView:l}=i;function a(i){const a=l.getSelection();if(!a.rangeCount)return void qc(n,!1);const s=i.shiftKey&&"mouseup"===i.type;if(a.isCollapsed&&!s)return void qc(n,!1);let c=cc(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE?t:t.childNodes[n]}(a)),u=cc(function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE?t:t.childNodes[n-1]}(a));if(s){const e=o(),t=cc(i.target),n=t!==u;(c===u&&a.isCollapsed||!u||n)&&(u=t),c!==e&&(c=e)}if(void 0===c&&void 0===u)return void qc(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",a),l.addEventListener("mouseup",a)}function c(){i.removeEventListener("selectionchange",a),l.removeEventListener("mouseup",a)}function u(){c(),s()}return s(),n.addEventListener("focusin",u),()=>{c(),n.removeEventListener("focusin",u)}}),[e,t,n,r])}function Yc(){const{selectBlock:e}=(0,f.useDispatch)(qn),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:r}=(0,f.useSelect)(qn);return(0,p.useRefEffect)((o=>{function i(i){if(!t()||0!==i.button)return;const l=n(),a=cc(i.target);i.shiftKey?l!==a&&(o.contentEditable=!0,o.focus()):r()&&e(a)}return o.addEventListener("mousedown",i),()=>{o.removeEventListener("mousedown",i)}}),[e,t,n,r])}function Qc(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:r}=(0,f.useSelect)(qn),{replaceBlocks:i,__unstableSplitSelection:l,removeBlocks:a,__unstableDeleteSelection:s,__unstableExpandSelection:c}=(0,f.useDispatch)(qn);return(0,p.useRefEffect)((u=>{function p(p){p.defaultPrevented||r()&&(p.keyCode===bc.ENTER?(u.contentEditable=!1,p.preventDefault(),e()?i(t(),(0,o.createBlock)((0,o.getDefaultBlockName)())):l()):p.keyCode===bc.BACKSPACE||p.keyCode===bc.DELETE?(u.contentEditable=!1,p.preventDefault(),e()?a(t()):n()?s(p.keyCode===bc.DELETE):c()):1!==p.key.length||p.metaKey||p.ctrlKey||(u.contentEditable=!1,n()?s(p.keyCode===bc.DELETE):(p.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges())))}function d(e){r()&&(u.contentEditable=!1,n()?s():(e.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges()))}return u.addEventListener("keydown",p),u.addEventListener("compositionstart",d),()=>{u.removeEventListener("keydown",p),u.removeEventListener("compositionstart",d)}}),[])}function Xc(){const[e,t,n]=function(){const e=(0,a.useRef)(),t=(0,a.useRef)(),n=(0,a.useRef)(),r=(0,a.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:i,getBlockCount:l}=(0,f.useSelect)(qn),{setNavigationMode:s}=(0,f.useDispatch)(qn),c=(0,f.useSelect)((e=>e(qn).isNavigationMode()),[])?void 0:"0",u=(0,a.useRef)();function d(t){if(u.current)u.current=null;else if(o())e.current.focus();else if(i())r.current.focus();else{s(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";Zo.focus.tabbable[n](t.target).focus()}}const y=(0,a.createElement)("div",{ref:t,tabIndex:c,onFocus:d}),m=(0,a.createElement)("div",{ref:n,tabIndex:c,onFocus:d}),g=(0,p.useRefEffect)((a=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===bc.ESCAPE&&!o())return e.preventDefault(),void s(!0);if(e.keyCode!==bc.TAB)return;const r=e.shiftKey,l=r?"findPrevious":"findNext";if(!o()&&!i())return void(e.target===a&&s(!0));if(((0,Zo.isFormElement)(e.target)||e.target.getAttribute("data-block")===i())&&(0,Zo.isFormElement)(Zo.focus.tabbable[l](e.target)))return;const c=r?t:n;u.current=!0,c.current.focus({preventScroll:!0})}function p(e){r.current=e.target;const{ownerDocument:t}=a;e.relatedTarget||t.activeElement!==t.body||0!==l()||a.focus()}function d(r){var o;if(r.keyCode!==bc.TAB)return;if("region"===(null===(o=r.target)||void 0===o?void 0:o.getAttribute("role")))return;if(e.current===r.target)return;const i=r.shiftKey?"findPrevious":"findNext",l=Zo.focus.tabbable[i](r.target);l!==t.current&&l!==n.current||(r.preventDefault(),l.focus({preventScroll:!0}))}const{ownerDocument:f}=a,{defaultView:y}=f;return y.addEventListener("keydown",d),a.addEventListener("keydown",c),a.addEventListener("focusout",p),()=>{y.removeEventListener("keydown",d),a.removeEventListener("keydown",c),a.removeEventListener("focusout",p)}}),[]);return[y,(0,p.useMergeRefs)([e,g]),m]}(),r=(0,f.useSelect)((e=>e(qn).hasMultiSelection()),[]);return[e,(0,p.useMergeRefs)([t,Qc(),Kc(),Jc(),Yc(),Vc(),Wc(),Gc(),(0,p.useRefEffect)((e=>{if(e.tabIndex=-1,e.contentEditable=r,r)return e.setAttribute("aria-label",(0,m.__)("Multiple selected blocks")),()=>{e.removeAttribute("aria-label")}}),[r])]),n]}var Zc=(0,a.forwardRef)((function(e,t){let{children:n,...r}=e;const[o,i,s]=Xc();return(0,a.createElement)(a.Fragment,null,o,(0,a.createElement)("div",l({},r,{ref:(0,p.useMergeRefs)([i,t]),className:c()(r.className,"block-editor-writing-flow")}),n),s)}));const eu="editor-styles-wrapper";function tu(e){return(0,a.useMemo)((()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)}),[e])}var nu=(0,a.forwardRef)((function(e,t){let{contentRef:n,children:r,head:o,tabIndex:i=0,assets:s,...u}=e;const[,f]=(0,a.useReducer)((()=>({}))),[y,g]=(0,a.useState)(),[h,b]=(0,a.useState)([]),v=tu(null==s?void 0:s.styles),_=tu(null==s?void 0:s.scripts),k=Lc(),[E,S,w]=Xc(),A=(0,p.useRefEffect)((e=>{function t(){const{contentDocument:t,ownerDocument:n}=e,{readyState:r,documentElement:o}=t;return("interactive"===r||"complete"===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 l=new o(e.type,i);!n.dispatchEvent(l)&&e.preventDefault()}const o=["dragover"];for(const t of o)e.addEventListener(t,r)}(t),g(t),k(o),b(Array.from(n.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),t.dir=n.dir,o.removeChild(t.head),o.removeChild(t.body),!0)}return e.addEventListener("load",t),()=>e.removeEventListener("load",t)}),[]),C=(0,p.useRefEffect)((e=>{_.reduce(((t,n)=>t.then((()=>async function(e,t){let{id:n,src:r}=t;return new Promise(((t,o)=>{const i=e.ownerDocument.createElement("script");i.id=n,r?(i.src=r,i.onload=()=>t(),i.onerror=()=>o()):t(),e.appendChild(i)}))}(e,n)))),Promise.resolve()).finally((()=>{f()}))}),[]),I=(0,p.useMergeRefs)([n,k,S]),x=(0,p.useRefEffect)((e=>{Array.from(document.styleSheets).forEach((t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:r}=t;if(r&&"LINK"===n.tagName&&"wp-reset-editor-styles-css"!==n.id&&Array.from(r).find((e=>{let{selectorText:t}=e;return t&&(t.includes(`.${eu}`)||t.includes(".wp-block"))}))&&!e.ownerDocument.getElementById(n.id)){e.appendChild(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),r=document.getElementById(t);r&&e.appendChild(r.cloneNode(!0))}}))}),[]);return o=(0,a.createElement)(a.Fragment,null,(0,a.createElement)("style",null,"body{margin:0}"),v.map((e=>{let{tagName:t,href:n,id:r,rel:o,media:i,textContent:l}=e;const s=t.toLowerCase();return"style"===s?(0,a.createElement)(s,{id:r,key:r},l):(0,a.createElement)(s,{href:n,id:r,rel:o,media:i,key:r})})),o),(0,a.createElement)(a.Fragment,null,i>=0&&E,(0,a.createElement)("iframe",l({},u,{ref:(0,p.useMergeRefs)([t,A]),tabIndex:i,srcDoc:"<!doctype html>",title:(0,m.__)("Editor canvas")}),y&&(0,a.createPortal)((0,a.createElement)(a.Fragment,null,(0,a.createElement)("head",{ref:C},o),(0,a.createElement)("body",{ref:I,className:c()(eu,...h)},(0,a.createElement)("div",{style:{display:"none"},ref:x}),(0,a.createElement)(d.__experimentalStyleProvider,{document:y},r))),y.documentElement)),i>=0&&w)})),ru={grad:.9,turn:360,rad:360/(2*Math.PI)},ou=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},iu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},lu=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},au=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},su=function(e){return{r:lu(e.r,0,255),g:lu(e.g,0,255),b:lu(e.b,0,255),a:lu(e.a)}},cu=function(e){return{r:iu(e.r),g:iu(e.g),b:iu(e.b),a:iu(e.a,3)}},uu=/^#([0-9a-f]{3,8})$/i,pu=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},du=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),l=i-Math.min(t,n,r),a=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:60*(a<0?a+6:a),s:i?l/i*100:0,v:i/255*100,a:o}},fu=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),l=r*(1-n),a=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,l,l,s,r][c],g:255*[s,r,r,a,l,l][c],b:255*[l,l,s,r,r,a][c],a:o}},yu=function(e){return{h:au(e.h),s:lu(e.s,0,100),l:lu(e.l,0,100),a:lu(e.a)}},mu=function(e){return{h:iu(e.h),s:iu(e.s),l:iu(e.l),a:iu(e.a,3)}},gu=function(e){return fu((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},hu=function(e){return{h:(t=du(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},bu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_u=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ku=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Eu={string:[[function(e){var t=uu.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?iu(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?iu(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=_u.exec(e)||ku.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:su({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=bu.exec(e)||vu.exec(e);if(!t)return null;var n,r,o=yu({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(ru[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return gu(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 ou(t)&&ou(n)&&ou(r)?su({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(!ou(t)||!ou(n)||!ou(r))return null;var l=yu({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return gu(l)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ou(t)||!ou(n)||!ou(r))return null;var l=function(e){return{h:au(e.h),s:lu(e.s,0,100),v:lu(e.v,0,100),a:lu(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return fu(l)},"hsv"]]},Su=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]},wu=function(e){return"string"==typeof e?Su(e.trim(),Eu.string):"object"==typeof e&&null!==e?Su(e,Eu.object):[null,void 0]},Au=function(e,t){var n=hu(e);return{h:n.h,s:lu(n.s+100*t,0,100),l:n.l,a:n.a}},Cu=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Iu=function(e,t){var n=hu(e);return{h:n.h,s:n.s,l:lu(n.l+100*t,0,100),a:n.a}},xu=function(){function e(e){this.parsed=wu(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 iu(Cu(this.rgba),2)},e.prototype.isDark=function(){return Cu(this.rgba)<.5},e.prototype.isLight=function(){return Cu(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=cu(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?pu(iu(255*o)):"","#"+pu(t)+pu(n)+pu(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return cu(this.rgba)},e.prototype.toRgbString=function(){return t=(e=cu(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 mu(hu(this.rgba))},e.prototype.toHslString=function(){return t=(e=mu(hu(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=du(this.rgba),{h:iu(e.h),s:iu(e.s),v:iu(e.v),a:iu(e.a,3)};var e},e.prototype.invert=function(){return Bu({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),Bu(Au(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Bu(Au(this.rgba,-e))},e.prototype.grayscale=function(){return Bu(Au(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Bu(Iu(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Bu(Iu(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?Bu({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):iu(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=hu(this.rgba);return"number"==typeof e?Bu({h:e,s:t.s,l:t.l,a:t.a}):iu(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Bu(e).toHex()},e}(),Bu=function(e){return e instanceof xu?e:new xu(e)},Pu=[],Tu=function(e){e.forEach((function(e){Pu.indexOf(e)<0&&(e(xu,Eu),Pu.push(e))}))};function Ou(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,l,a=r[this.toHex()];if(a)return a;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,l=i[d],Math.pow(o.r-l.r,2)+Math.pow(o.g-l.g,2)+Math.pow(o.b-l.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 Nu=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ru=function(e){return.2126*Nu(e.r)+.7152*Nu(e.g)+.0722*Nu(e.b)};function Fu(e){e.prototype.luminance=function(){return e=Ru(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,l,a,s,c=t instanceof e?t:new e(t);return i=this.rgba,l=c.toRgb(),n=(a=Ru(i))>(s=Ru(l))?(a+.05)/(s+.05):(s+.05)/(a+.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)>=(l=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===l?7:"AA"===o&&"large"===l?3:4.5);var n,r,o,i,l}}var Mu=n(3124),Du=n.n(Mu);const Lu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Uu(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 l(e),f(),t}}function l(e){this.start=e,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;const a=[];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;a.push(i)}function c(){return d(/^{\s*/)}function u(){return d(/^}/)}function p(){let t;const n=[];for(f(),y(n);e.length&&"}"!==e.charAt(0)&&(t=w()||A());)!1!==t&&(n.push(t),y(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 y(e){let t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){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 l=e.slice(2,n-2);return r+=2,o(l),e=e.slice(n),r+=2,t({type:"comment",comment:l})}function g(){const e=d(/^([^{]+)/);if(e)return ju(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=ju(t[0]),!d(/^:\s*/))return s("property missing ':'");const n=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Lu,""),value:n?ju(n[0]).replace(Lu,""):""});return d(/^[;\s]*/),r}function b(){const e=[];if(!c())return s("missing '{'");let t;for(y(e);t=h();)!1!==t&&(e.push(t),y(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 _=S("import"),k=S("charset"),E=S("namespace");function S(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,l=y();for(;o=v();)l.push(o),l=l.concat(y());return u()?e({type:"keyframes",name:r,vendor:n,keyframes:l}):s("@keyframes missing '}'")}()||function(){const e=i(),t=d(/^@media *([^{]+)/);if(!t)return;const n=ju(t[1]);if(!c())return s("@media missing '{'");const r=y().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:ju(t[1]),media:ju(t[2])})}()||function(){const e=i(),t=d(/^@supports *([^{]+)/);if(!t)return;const n=ju(t[1]);if(!c())return s("@supports missing '{'");const r=y().concat(p());return u()?e({type:"supports",supports:n,rules:r}):s("@supports missing '}'")}()||_()||k()||E()||function(){const e=i(),t=d(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=ju(t[1]),r=ju(t[2]);if(!c())return s("@document missing '{'");const o=y().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=y();for(;n=h();)r.push(n),r=r.concat(y());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=y().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=y();for(;t=h();)n.push(t),n=n.concat(y());return u()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}()}function A(){const e=i(),t=g();return t?(y(),e({type:"rule",selectors:t,declarations:b()})):s("selector missing")}return Vu(function(){const e=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())}function ju(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Vu(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){Vu(e,r)})):n&&"object"==typeof n&&Vu(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var zu=n(8575),Gu=n.n(zu),Hu=Wu;function Wu(e){this.options=e||{}}Wu.prototype.emit=function(e){return e},Wu.prototype.visit=function(e){return this[e.type](e)},Wu.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 $u=Ku;function Ku(e){Hu.call(this,e)}Gu()(Ku,Hu),Ku.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Ku.prototype.comment=function(e){return this.emit("",e.position)},Ku.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Ku.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ku.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("}")},Ku.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Ku.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Ku.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ku.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Ku.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Ku.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("}")},Ku.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Ku.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ku.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Ku.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("}"):""},Ku.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var qu=Ju;function Ju(e){e=e||{},Hu.call(this,e),this.indentation=e.indent}Gu()(Ju,Hu),Ju.prototype.compile=function(e){return this.stylesheet(e)},Ju.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Ju.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Ju.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Ju.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}")},Ju.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}")},Ju.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Ju.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Ju.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}")},Ju.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)+"}")},Ju.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")},Ju.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}")},Ju.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}")},Ju.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}")},Ju.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Ju.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()+"}"):""},Ju.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Ju.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Yu=function(e,t){try{const o=Uu(e),i=Du().map(o,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return n=i,((r=r||{}).compress?new $u(r):new qu(r)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,r};function Qu(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 Xu(e,t){return new URL(e,t).toString()}var Zu=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]};Qu(e)&&r.push(e)}return r}(t.value).map((o=e,e=>({...e,newUrl:"url("+e.before+e.quote+Xu(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 ep=/^(body|html|:root).*$/;var tp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>{const r=n=>t.includes(n.trim())?n:n.match(ep)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(r)}:n}};var np=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(e,(e=>{let{css:n,baseURL:r}=e;const o=[];return t&&o.push(tp(t)),r&&o.push(Zu(r)),o.length?Yu(n,(0,p.compose)(o)):n}))};const rp=".editor-styles-wrapper";function op(e){return(0,a.useCallback)((e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:r}=t,o=t.querySelector(rp);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 l=Bu(i);l.luminance()>.5||0===l.alpha()?r.classList.remove("is-dark-theme"):r.classList.add("is-dark-theme")}),[e])}function ip(e){let{styles:t}=e;const n=(0,a.useMemo)((()=>np(t,rp)),[t]);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("style",{ref:op(t)}),n.map(((e,t)=>(0,a.createElement)("style",{key:t},e))))}let lp;Tu([Ou,Fu]);const ap=2e3;var sp=function(e){let{viewportWidth:t,__experimentalPadding:n,__experimentalMinHeight:r}=e;const[o,{width:i}]=(0,p.useResizeObserver)(),[l,{height:s}]=(0,p.useResizeObserver)(),{styles:c,assets:u}=(0,f.useSelect)((e=>{const t=e(qn).getSettings();return{styles:t.styles,assets:t.__unstableResolvedAssets}}),[]),y=(0,a.useMemo)((()=>c?[...c,{css:"body{height:auto;overflow:hidden;}",__unstableType:"presets"}]:c),[c]);lp=lp||(0,p.pure)(Ny);const m=i/t;return(0,a.createElement)("div",{className:"block-editor-block-preview__container"},o,(0,a.createElement)(d.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${m})`,height:s*m,maxHeight:s>ap?ap*m:void 0,minHeight:r}},(0,a.createElement)(nu,{head:(0,a.createElement)(ip,{styles:y}),assets:u,contentRef:(0,p.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.padding=n+"px",e.style.position="relative"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:t,height:s,pointerEvents:"none",maxHeight:ap,minHeight:m<1&&r?r/m:r}},l,(0,a.createElement)(lp,{renderAppender:!1}))))};var cp=(0,a.memo)((function(e){let{blocks:t,__experimentalPadding:n=0,viewportWidth:r=1200,__experimentalLive:o=!1,__experimentalOnClick:i,__experimentalMinHeight:l}=e;const s=(0,f.useSelect)((e=>e(qn).getSettings()),[]),c=(0,a.useMemo)((()=>{const e={...s};return e.__experimentalBlockPatterns=[],e}),[s]),p=(0,a.useMemo)((()=>(0,u.castArray)(t)),[t]);return t&&0!==t.length?(0,a.createElement)(Mc,{value:p,settings:c},o?(0,a.createElement)(Dc,{onClick:i}):(0,a.createElement)(sp,{viewportWidth:r,__experimentalPadding:n,__experimentalMinHeight:l})):null}));function up(e){let{blocks:t,props:n={},__experimentalLayout:r}=e;const o=(0,f.useSelect)((e=>e(qn).getSettings()),[]),i=(0,p.__experimentalUseDisabled)(),l=(0,p.useMergeRefs)([n.ref,i]),s=(0,a.useMemo)((()=>({...o,__experimentalBlockPatterns:[]})),[o]),d=(0,a.useMemo)((()=>(0,u.castArray)(t)),[t]),y=(0,a.createElement)(Mc,{value:d,settings:s},(0,a.createElement)(Fy,{renderAppender:!1,__experimentalLayout:r}));return{...n,ref:l,className:c()(n.className,"block-editor-block-preview__live-content","components-disabled"),children:null!=t&&t.length?y:null}}var pp=function(e){var t,n;let{item:r}=e;const{name:i,title:l,icon:s,description:c,initialAttributes:u}=r,p=(0,o.getBlockType)(i),d=(0,o.isReusableBlock)(r);return(0,a.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,a.createElement)("div",{className:"block-editor-inserter__preview"},d||null!=p&&p.example?(0,a.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,a.createElement)(cp,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=p.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:p.example?(0,o.getBlockFromExample)(r.name,{attributes:{...p.example.attributes,...u},innerBlocks:p.example.innerBlocks}):(0,o.createBlock)(i,u)})):(0,a.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,m.__)("No Preview Available."))),!d&&(0,a.createElement)(Rc,{title:l,icon:s,description:c}))};var dp=(0,a.createContext)();var fp=(0,a.forwardRef)((function(e,t){let{isFirst:n,as:r,children:o,...i}=e;const s=(0,a.useContext)(dp);return(0,a.createElement)(d.__unstableCompositeItem,l({ref:t,state:s,role:"option",focusable:!0},i),(e=>{const t={...e,tabIndex:n?0:e.tabIndex};return r?(0,a.createElement)(r,t,o):"function"==typeof o?o(t):(0,a.createElement)(d.Button,t,o)}))}));var yp=(0,a.createElement)(D.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function mp(e){let{count:t,icon:n}=e;return(0,a.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,a.createElement)("div",{className:"block-editor-block-draggable-chip"},(0,a.createElement)(d.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,a.createElement)(d.FlexItem,null,n?(0,a.createElement)(Nc,{icon:n}):(0,m.sprintf)((0,m._n)("%d block","%d blocks",t),t)),(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(Nc,{icon:yp})))))}var gp=e=>{let{isEnabled:t,blocks:n,icon:r,children:o}=e;const i={type:"inserter",blocks:n};return(0,a.createElement)(d.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:i,__experimentalDragComponent:(0,a.createElement)(mp,{count:n.length,icon:r})},(e=>{let{onDraggableStart:n,onDraggableEnd:r}=e;return o({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?r:void 0})}))};function hp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var bp=(0,a.memo)((function(e){let{className:t,isFirst:n,item:r,onSelect:i,onHover:s,isDraggable:u,...p}=e;const d=(0,a.useRef)(!1),f=r.icon?{backgroundColor:r.icon.background,color:r.icon.foreground}:{},y=(0,a.useMemo)((()=>[(0,o.createBlock)(r.name,r.initialAttributes,(0,o.createBlocksFromInnerBlocksTemplate)(r.innerBlocks))]),[r.name,r.initialAttributes,r.initialAttributes]);return(0,a.createElement)(gp,{isEnabled:u&&!r.disabled,blocks:y,icon:r.icon},(e=>{let{draggable:o,onDragStart:u,onDragEnd:y}=e;return(0,a.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:o,onDragStart:e=>{d.current=!0,u&&(s(null),u(e))},onDragEnd:e=>{d.current=!1,y&&y(e)}},(0,a.createElement)(fp,l({isFirst:n,className:c()("block-editor-block-types-list__item",t),disabled:r.isDisabled,onClick:e=>{e.preventDefault(),i(r,hp()?e.metaKey:e.ctrlKey),s(null)},onKeyDown:e=>{const{keyCode:t}=e;t===bc.ENTER&&(e.preventDefault(),i(r,hp()?e.metaKey:e.ctrlKey),s(null))},onFocus:()=>{d.current||s(r)},onMouseEnter:()=>{d.current||s(r)},onMouseLeave:()=>s(null),onBlur:()=>s(null)},p),(0,a.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:f},(0,a.createElement)(Nc,{icon:r.icon,showColors:!0})),(0,a.createElement)("span",{className:"block-editor-block-types-list__item-title"},r.title)))}))}));var vp=(0,a.forwardRef)((function(e,t){const[n,r]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{n&&(0,Lt.speak)((0,m.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,a.createElement)("div",l({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{r(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&r(!1)}},e))}));var _p=(0,a.forwardRef)((function(e,t){const n=(0,a.useContext)(dp);return(0,a.createElement)(d.__unstableCompositeGroup,l({state:n,role:"presentation",ref:t},e))}));var kp=function(e){let{items:t=[],onSelect:n,onHover:r=(()=>{}),children:i,label:l,isDraggable:s=!0}=e;return(0,a.createElement)(vp,{className:"block-editor-block-types-list","aria-label":l},function(e,t){const n=[];for(let r=0,o=e.length;r<o;r+=t)n.push(e.slice(r,r+t));return n}(t,3).map(((e,t)=>(0,a.createElement)(_p,{key:t},e.map(((e,i)=>(0,a.createElement)(bp,{key:e.id,item:e,className:(0,o.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:r,isDraggable:s,isFirst:0===t&&0===i})))))),i)};var Ep=function(e){let{title:t,icon:n,children:r}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,a.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),(0,a.createElement)(d.Icon,{icon:n})),(0,a.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var Sp=(e,t)=>{const{categories:n,collections:r,items:i}=(0,f.useSelect)((t=>{const{getInserterItems:n}=t(qn),{getCategories:r,getCollections:i}=t(o.store);return{categories:r(),collections:i(),items:n(e)}}),[e]);return[i,n,r,(0,a.useCallback)(((e,n)=>{let{name:r,initialAttributes:i,innerBlocks:l}=e;const a=(0,o.createBlock)(r,i,(0,o.createBlocksFromInnerBlocksTemplate)(l));t(a,void 0,n)}),[t])]};var wp=function(e){let{children:t}=e;const n=(0,d.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return(0,a.createElement)(dp.Provider,{value:n},t)};const Ap=[];var Cp=function(e){let{rootClientId:t,onInsert:n,onHover:r,showMostUsedBlocks:o}=e;const[i,l,s,c]=Sp(t,n),d=(0,a.useMemo)((()=>(0,u.orderBy)(i,["frecency"],["desc"]).slice(0,6)),[i]),f=(0,a.useMemo)((()=>i.filter((e=>!e.category))),[i]),y=(0,a.useMemo)((()=>(0,u.flow)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>(0,u.groupBy)(e,"category")))(i)),[i]),g=(0,a.useMemo)((()=>{const e={...s};return Object.keys(s).forEach((t=>{e[t]=i.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[i,s]);(0,a.useEffect)((()=>()=>r(null)),[]);const h=(0,p.useAsyncList)(l),b=l.length===h.length,v=(0,a.useMemo)((()=>Object.entries(s)),[s]),_=(0,p.useAsyncList)(b?v:Ap);return(0,a.createElement)(wp,null,(0,a.createElement)("div",null,o&&!!d.length&&(0,a.createElement)(Ep,{title:(0,m._x)("Most used","blocks")},(0,a.createElement)(kp,{items:d,onSelect:c,onHover:r,label:(0,m._x)("Most used","blocks")})),(0,u.map)(h,(e=>{const t=y[e.slug];return t&&t.length?(0,a.createElement)(Ep,{key:e.slug,title:e.title,icon:e.icon},(0,a.createElement)(kp,{items:t,onSelect:c,onHover:r,label:e.title})):null})),b&&f.length>0&&(0,a.createElement)(Ep,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,m.__)("Uncategorized")},(0,a.createElement)(kp,{items:f,onSelect:c,onHover:r,label:(0,m.__)("Uncategorized")})),(0,u.map)(_,(e=>{let[t,n]=e;const o=g[t];return o&&o.length?(0,a.createElement)(Ep,{key:t,title:n.title,icon:n.icon},(0,a.createElement)(kp,{items:o,onSelect:c,onHover:r,label:n.title})):null}))))};var Ip=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:r,openPatternExplorer:o}=e;const i=(0,p.useViewportMatch)("medium","<"),l=c()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns");return(0,a.createElement)(d.Flex,{justify:"space-between",align:"start",gap:"4",className:l},(0,a.createElement)(d.FlexItem,{isBlock:!0},(0,a.createElement)(d.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:(0,m.__)("Filter patterns"),hideLabelFromVision:!0,value:t.name,onChange:e=>{r(n.find((t=>e===t.name)))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return n.map((t=>e.push({value:t.name,label:t.label}))),e})()})),!i&&(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(d.Button,{variant:"secondary",className:"block-editor-inserter__patterns-explorer-expand",label:(0,m.__)("Explore all patterns"),onClick:()=>o()},(0,m._x)("Explore","Label for showing all block patterns"))))},xp=window.wp.notices;var Bp=(e,t)=>{const{patternCategories:n,patterns:r}=(0,f.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:r}=e(qn);return{patterns:n(t),patternCategories:r().__experimentalBlockPatternCategories}}),[t]),{createSuccessNotice:i}=(0,f.useDispatch)(xp.store),l=(0,a.useCallback)(((t,n)=>{e((0,u.map)(n,(e=>(0,o.cloneBlock)(e))),t.name),i((0,m.sprintf)((0,m.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[]);return[r,n,l]};function Pp(e){let{isDraggable:t,pattern:n,onClick:r,composite:o}=e;const{blocks:i,viewportWidth:s}=n,c=`block-editor-block-patterns-list__item-description-${(0,p.useInstanceId)(Pp)}`;return(0,a.createElement)(gp,{isEnabled:t,blocks:i},(e=>{let{draggable:t,onDragStart:u,onDragEnd:p}=e;return(0,a.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?c:void 0,draggable:t,onDragStart:u,onDragEnd:p},(0,a.createElement)(d.__unstableCompositeItem,l({role:"option",as:"div"},o,{className:"block-editor-block-patterns-list__item",onClick:()=>r(n,i)}),(0,a.createElement)(cp,{blocks:i,viewportWidth:s}),(0,a.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&(0,a.createElement)(d.VisuallyHidden,{id:c},n.description)))}))}function Tp(){return(0,a.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Op=function(e){let{isDraggable:t,blockPatterns:n,shownPatterns:r,onClickPattern:o,orientation:i,label:s=(0,m.__)("Block Patterns")}=e;const c=(0,d.__unstableUseCompositeState)({orientation:i});return(0,a.createElement)(d.__unstableComposite,l({},c,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":s}),n.map((e=>r.includes(e)?(0,a.createElement)(Pp,{key:e.name,pattern:e,onClick:o,isDraggable:t,composite:c}):(0,a.createElement)(Tp,{key:e.name}))))};function Np(e){let{selectedCategory:t,patternCategories:n,onClickCategory:r}=e;const o="block-editor-block-patterns-explorer__sidebar";return(0,a.createElement)("div",{className:`${o}__categories-list`},n.map((e=>{let{name:n,label:i}=e;return(0,a.createElement)(d.Button,{key:n,label:i,className:`${o}__categories-list__item`,isPressed:t===n,onClick:()=>{r(n)}},i)})))}function Rp(e){let{filterValue:t,setFilterValue:n}=e;return(0,a.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,a.createElement)(d.SearchControl,{onChange:n,value:t,label:(0,m.__)("Search for patterns"),placeholder:(0,m.__)("Search")}))}var Fp=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:r,filterValue:o,setFilterValue:i}=e;return(0,a.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,a.createElement)(Rp,{filterValue:o,setFilterValue:i}),!o&&(0,a.createElement)(Np,{selectedCategory:t,patternCategories:n,onClickCategory:r}))};var Mp=function(){return(0,a.createElement)("div",{className:"block-editor-inserter__no-results"},(0,a.createElement)(wo,{className:"block-editor-inserter__no-results-icon",icon:Oc}),(0,a.createElement)("p",null,(0,m.__)("No results found.")))};var Dp=function(e){let{rootClientId:t="",insertionIndex:n,clientId:r,isAppender:i,onSelect:l,shouldFocusBlock:s=!0}=e;const{getSelectedBlock:c}=(0,f.useSelect)(qn),{destinationRootClientId:p,destinationIndex:d}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:o,getBlockRootClientId:l,getBlockIndex:a,getBlockOrder:s}=e(qn),c=o();let u,p=t;return void 0!==n?u=n:r?u=a(r):!i&&c?(p=l(c),u=a(c)+1):u=s(p).length,{destinationRootClientId:p,destinationIndex:u}}),[t,n,r,i]),{replaceBlocks:y,insertBlocks:g,showInsertionPoint:h,hideInsertionPoint:b}=(0,f.useDispatch)(qn),v=(0,a.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=c();!i&&r&&(0,o.isUnmodifiedDefaultBlock)(r)?y(r.clientId,e,null,s||n?0:null,t):g(e,d,p,!0,s||n?0:null,t);const a=(0,m.sprintf)((0,m._n)("%d block added.","%d blocks added.",(0,u.castArray)(e).length),(0,u.castArray)(e).length);(0,Lt.speak)(a),l&&l()}),[i,c,y,g,p,d,l,s]),_=(0,a.useCallback)((e=>{e?h(p,d):b()}),[h,b,p,d]);return[p,v,_]};const Lp=e=>e.name||"",Up=e=>e.title,jp=e=>e.description||"",Vp=e=>e.keywords||[],zp=e=>e.category,Gp=()=>null;function Hp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(0,u.deburr)(e),e=e.replace(/^\//,""),e=e.toLowerCase(),e}const Wp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,u.words)(Hp(e))},$p=(e,t)=>(0,u.differenceWith)(e,Wp(t),((e,t)=>t.includes(e))),Kp=(e,t,n,r)=>{if(0===Wp(r).length)return e;return qp(e,r,{getCategory:e=>{var n;return null===(n=(0,u.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},qp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Wp(t);if(0===r.length)return e;const o=e.map((e=>[e,Jp(e,t,n)])).filter((e=>{let[,t]=e;return t>0}));return o.sort(((e,t)=>{let[,n]=e,[,r]=t;return r-n})),o.map((e=>{let[t]=e;return t}))};function Jp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getName:r=Lp,getTitle:o=Up,getDescription:i=jp,getKeywords:l=Vp,getCategory:a=zp,getCollection:s=Gp}=n,c=r(e),p=o(e),d=i(e),f=l(e),y=a(e),m=s(e),g=Hp(t),h=Hp(p);let b=0;if(g===h)b+=30;else if(h.startsWith(g))b+=20;else{const e=[c,p,d,...f,y,m].join(" "),t=(0,u.words)(g);0===$p(t,e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}function Yp(e){let{filterValue:t,filteredBlockPatternsLength:n}=e;return t?(0,a.createElement)(d.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,m.sprintf)((0,m._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',n),n,t)):null}var Qp=function(e){let{filterValue:t,selectedCategory:n,patternCategories:r}=e;const o=(0,p.useDebounce)(Lt.speak,500),[i,l]=Dp({shouldFocusBlock:!0}),[s,,c]=Bp(l,i),u=(0,a.useMemo)((()=>r.map((e=>e.name))),[r]),d=(0,a.useMemo)((()=>t?qp(s,t):s.filter((e=>{var t,r;return"uncategorized"===n?!(null!==(t=e.categories)&&void 0!==t&&t.length)||e.categories.every((e=>!u.includes(e))):null===(r=e.categories)||void 0===r?void 0:r.includes(n)}))),[t,n,s]);(0,a.useEffect)((()=>{if(!t)return;const e=d.length,n=(0,m.sprintf)((0,m._n)("%d result found.","%d results found.",e),e);o(n)}),[t,o]);const f=(0,p.useAsyncList)(d,{step:2}),y=!(null==d||!d.length);return(0,a.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},y&&(0,a.createElement)(Yp,{filterValue:t,filteredBlockPatternsLength:d.length}),(0,a.createElement)(wp,null,!y&&(0,a.createElement)(Mp,null),y&&(0,a.createElement)(Op,{shownPatterns:f,blockPatterns:d,onClickPattern:c,isDraggable:!1})))};function Xp(e){let{initialCategory:t,patternCategories:n}=e;const[r,o]=(0,a.useState)(""),[i,l]=(0,a.useState)(null==t?void 0:t.name);return(0,a.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,a.createElement)(Fp,{selectedCategory:i,patternCategories:n,onClickCategory:l,filterValue:r,setFilterValue:o}),(0,a.createElement)(Qp,{filterValue:r,selectedCategory:i,patternCategories:n}))}var Zp=function(e){let{onModalClose:t,...n}=e;return(0,a.createElement)(d.Modal,{title:(0,m.__)("Patterns"),closeLabel:(0,m.__)("Close"),onRequestClose:t,isFullScreen:!0},(0,a.createElement)(Xp,n))};function ed(e){let{rootClientId:t,onInsert:n,selectedCategory:r,populatedCategories:o}=e;const[i,,l]=Bp(n,t),s=(0,a.useCallback)((e=>{var t;if(null===(t=e.categories)||void 0===t||!t.length)return 1/0;const n=o.reduce(((e,t,n)=>{let{name:r}=t;return e[r]=n,e}),{});return Math.min(...e.categories.map((e=>void 0!==n[e]?n[e]:1/0)))}),[o]),c=(0,a.useMemo)((()=>i.filter((e=>{var t;return"uncategorized"===r.name?s(e)===1/0:null===(t=e.categories)||void 0===t?void 0:t.includes(r.name)}))),[i,r]),u=(0,a.useMemo)((()=>c.sort(((e,t)=>s(e)-s(t)))),[c,s]),d=(0,p.useAsyncList)(u);return c.length?(0,a.createElement)("div",{className:"block-editor-inserter__panel-content"},(0,a.createElement)(Op,{shownPatterns:d,blockPatterns:c,onClickPattern:l,label:r.label,orientation:"vertical",isDraggable:!0})):null}var td=function(e){let{rootClientId:t,onInsert:n,onClickCategory:r,selectedCategory:o}=e;const[i,l]=(0,a.useState)(!1),[s,c]=Bp(),u=(0,a.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>c.some((t=>t.name===e))))),[c]),p=(0,a.useMemo)((()=>{const e=c.filter((e=>s.some((t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})))).sort(((e,t)=>{let{name:n}=e,{name:r}=t;return[n,r].includes("featured")?"featured"===n?-1:1:0}));return s.some((e=>!u(e)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,m._x)("Uncategorized")}),e}),[s,c]),d=o||p[0];return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ip,{selectedCategory:d,patternCategories:p,onClickCategory:r,openPatternExplorer:()=>l(!0)}),!i&&(0,a.createElement)(ed,{rootClientId:t,onInsert:n,selectedCategory:d,populatedCategories:p}),i&&(0,a.createElement)(Zp,{initialCategory:d,patternCategories:p,onModalClose:()=>l(!1)}))},nd=window.wp.url;function rd(e){let{onHover:t,onInsert:n,rootClientId:r}=e;const[o,,,i]=Sp(r,n),l=(0,a.useMemo)((()=>o.filter((e=>{let{category:t}=e;return"reusable"===t}))),[o]);return 0===l.length?(0,a.createElement)(Mp,null):(0,a.createElement)(Ep,{title:(0,m.__)("Reusable blocks")},(0,a.createElement)(kp,{items:l,onSelect:i,onHover:t,label:(0,m.__)("Reusable blocks")}))}var od=function(e){let{rootClientId:t,onInsert:n,onHover:r}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(rd,{onHover:r,onInsert:n,rootClientId:t}),(0,a.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},(0,a.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:(0,nd.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,m.__)("Manage Reusable blocks"))))};const{Fill:id,Slot:ld}=(0,d.createSlotFill)("__unstableInserterMenuExtension");id.Slot=ld;var ad=id;const sd=[];var cd=function(e){let{filterValue:t,onSelect:n,onHover:r,rootClientId:o,clientId:i,isAppender:l,__experimentalInsertionIndex:s,maxBlockPatterns:c,maxBlockTypes:f,showBlockDirectory:y=!1,isDraggable:g=!0,shouldFocusBlock:h=!0,prioritizePatterns:b}=e;const v=(0,p.useDebounce)(Lt.speak,500),[_,k]=Dp({onSelect:n,rootClientId:o,clientId:i,isAppender:l,insertionIndex:s,shouldFocusBlock:h}),[E,S,w,A]=Sp(_,k),[C,,I]=Bp(k,_),x=(0,a.useMemo)((()=>{if(0===c)return[];const e=qp(C,t);return void 0!==c?e.slice(0,c):e}),[t,C,c]);let B=f;b&&x.length>2&&(B=0);const P=(0,a.useMemo)((()=>{if(0===B)return[];const e=Kp((0,u.orderBy)(E,["frecency"],["desc"]),S,w,t);return void 0!==B?e.slice(0,B):e}),[t,E,S,w,f]);(0,a.useEffect)((()=>{if(!t)return;const e=P.length+x.length,n=(0,m.sprintf)((0,m._n)("%d result found.","%d results found.",e),e);v(n)}),[t,v]);const T=(0,p.useAsyncList)(P,{step:9}),O=(0,p.useAsyncList)(T.length===P.length?x:sd),N=!(0,u.isEmpty)(P)||!(0,u.isEmpty)(x),R=!!P.length&&(0,a.createElement)(Ep,{title:(0,a.createElement)(d.VisuallyHidden,null,(0,m.__)("Blocks"))},(0,a.createElement)(kp,{items:T,onSelect:A,onHover:r,label:(0,m.__)("Blocks"),isDraggable:g})),F=!!x.length&&(0,a.createElement)(Ep,{title:(0,a.createElement)(d.VisuallyHidden,null,(0,m.__)("Block Patterns"))},(0,a.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,a.createElement)(Op,{shownPatterns:O,blockPatterns:x,onClickPattern:I,isDraggable:g})));return(0,a.createElement)(wp,null,!y&&!N&&(0,a.createElement)(Mp,null),b?F:R,!!P.length&&!!x.length&&(0,a.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),b?R:F,y&&(0,a.createElement)(ad.Slot,{fillProps:{onSelect:A,onHover:r,filterValue:t,hasItems:N,rootClientId:_}},(e=>e.length?e:N?null:(0,a.createElement)(Mp,null))))};const ud={name:"blocks",title:(0,m.__)("Blocks")},pd={name:"patterns",title:(0,m.__)("Patterns")},dd={name:"reusable",title:(0,m.__)("Reusable")};var fd=function(e){let{children:t,showPatterns:n=!1,showReusableBlocks:r=!1,onSelect:o}=e;const i=(0,a.useMemo)((()=>{const e=[ud];return n&&e.push(pd),r&&e.push(dd),e}),[ud,n,pd,r,dd]);return(0,a.createElement)(d.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:o},t)};var yd=(0,a.forwardRef)((function(e,t){let{rootClientId:n,clientId:r,isAppender:o,__experimentalInsertionIndex:i,onSelect:l,showInserterHelpPanel:s,showMostUsedBlocks:c,__experimentalFilterValue:u="",shouldFocusBlock:p=!0}=e;const[y,g]=(0,a.useState)(u),[h,b]=(0,a.useState)(null),[v,_]=(0,a.useState)(null),[k,E,S]=Dp({rootClientId:n,clientId:r,isAppender:o,insertionIndex:i,shouldFocusBlock:p}),{showPatterns:w,hasReusableBlocks:A}=(0,f.useSelect)((e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:r}=e(qn);return{showPatterns:!!n(k).length,hasReusableBlocks:!(null===(t=r().__experimentalReusableBlocks)||void 0===t||!t.length)}}),[k]),C=(0,a.useCallback)(((e,t,n)=>{E(e,t,n),l()}),[E,l]),I=(0,a.useCallback)(((e,t)=>{E(e,{patternName:t}),l()}),[E,l]),x=(0,a.useCallback)((e=>{S(!!e),b(e)}),[S,b]),B=(0,a.useCallback)((e=>{_(e)}),[_]),P=(0,a.useMemo)((()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"block-editor-inserter__block-list"},(0,a.createElement)(Cp,{rootClientId:k,onInsert:C,onHover:x,showMostUsedBlocks:c})),s&&(0,a.createElement)("div",{className:"block-editor-inserter__tips"},(0,a.createElement)(d.VisuallyHidden,{as:"h2"},(0,m.__)("A tip for using the block editor")),(0,a.createElement)(Tc,null)))),[k,C,x,y,c,s]),T=(0,a.useMemo)((()=>(0,a.createElement)(td,{rootClientId:k,onInsert:I,onClickCategory:B,selectedCategory:v})),[k,I,B,v]),O=(0,a.useMemo)((()=>(0,a.createElement)(od,{rootClientId:k,onInsert:C,onHover:x})),[k,C,x]),N=(0,a.useCallback)((e=>"blocks"===e.name?P:"patterns"===e.name?T:O),[P,T,O]),R=(0,a.useRef)();return(0,a.useImperativeHandle)(t,(()=>({focusSearch:()=>{R.current.focus()}}))),(0,a.createElement)("div",{className:"block-editor-inserter__menu"},(0,a.createElement)("div",{className:"block-editor-inserter__main-area"},(0,a.createElement)("div",{className:"block-editor-inserter__content"},(0,a.createElement)(d.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{h&&b(null),g(e)},value:y,label:(0,m.__)("Search for blocks and patterns"),placeholder:(0,m.__)("Search"),ref:R}),!!y&&(0,a.createElement)(cd,{filterValue:y,onSelect:l,onHover:x,rootClientId:n,clientId:r,isAppender:o,__experimentalInsertionIndex:i,showBlockDirectory:!0,shouldFocusBlock:p}),!y&&(w||A)&&(0,a.createElement)(fd,{showPatterns:w,showReusableBlocks:A},N),!y&&!w&&!A&&P)),s&&h&&(0,a.createElement)(pp,{item:h}))}));function md(e){let{onSelect:t,rootClientId:n,clientId:r,isAppender:o,prioritizePatterns:i}=e;const[l,s]=(0,a.useState)(""),[u,p]=Dp({onSelect:t,rootClientId:n,clientId:r,isAppender:o}),[y]=Sp(u,p),[g]=Bp(p,u),{setInserterIsOpened:h,insertionIndex:b}=(0,f.useSelect)((e=>{const{getSettings:t,getBlockIndex:n,getBlockCount:o}=e(qn),i=t(),l=n(r),a=o();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===l?a:l}}),[r]),v=g.length&&(!!l||i),_=v&&g.length>6||y.length>6;(0,a.useEffect)((()=>{h&&h(!1)}),[h]);let k=0;return v&&(k=i?4:2),(0,a.createElement)("div",{className:c()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":h})},_&&(0,a.createElement)(d.SearchControl,{className:"block-editor-inserter__search",value:l,onChange:e=>{s(e)},label:(0,m.__)("Search for blocks and patterns"),placeholder:(0,m.__)("Search")}),(0,a.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,a.createElement)(cd,{filterValue:l,onSelect:t,rootClientId:n,clientId:r,isAppender:o,maxBlockPatterns:k,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:i})),h&&(0,a.createElement)(d.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{h({rootClientId:n,insertionIndex:b,filterValue:l})},"aria-label":(0,m.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,m.__)("Browse all")))}const gd=e=>{let t,{onToggle:n,disabled:r,isOpen:o,blockTitle:i,hasSingleBlockType:s,toggleProps:c={},prioritizePatterns:u}=e;t=s?(0,m.sprintf)((0,m._x)("Add %s","directly add the only allowed block"),i):u?(0,m.__)("Add pattern"):(0,m._x)("Add block","Generic label for block inserter button");const{onClick:p,...f}=c;return(0,a.createElement)(d.Button,l({icon:Bc,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),p&&p(e)},className:"block-editor-inserter__toggle","aria-haspopup":!s&&"true","aria-expanded":!s&&o,disabled:r},f))};class hd extends a.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(e){let{onToggle:t,isOpen:n}=e;const{disabled:r,blockTitle:o,hasSingleBlockType:i,directInsertBlock:l,toggleProps:a,hasItems:s,renderToggle:c=gd,prioritizePatterns:u}=this.props;return c({onToggle:t,isOpen:n,disabled:r||!s,blockTitle:o,hasSingleBlockType:i,directInsertBlock:l,toggleProps:a,prioritizePatterns:u})}renderContent(e){let{onClose:t}=e;const{rootClientId:n,clientId:r,isAppender:o,showInserterHelpPanel:i,__experimentalIsQuick:l,prioritizePatterns:s}=this.props;return l?(0,a.createElement)(md,{onSelect:()=>{t()},rootClientId:n,clientId:r,isAppender:o,prioritizePatterns:s}):(0,a.createElement)(yd,{onSelect:()=>{t()},rootClientId:n,clientId:r,isAppender:o,showInserterHelpPanel:i})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:r,__experimentalIsQuick:o,onSelectOrClose:i}=this.props;return t||n?this.renderToggle({onToggle:r}):(0,a.createElement)(d.Dropdown,{className:"block-editor-inserter",contentClassName:c()("block-editor-inserter__popover",{"is-quick":o}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,m.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}var bd=(0,p.compose)([(0,f.withSelect)(((e,t)=>{let{clientId:n,rootClientId:r}=t;const{getBlockRootClientId:i,hasInserterItems:l,__experimentalGetAllowedBlocks:a,__experimentalGetDirectInsertBlock:s,getBlockIndex:c,getBlockCount:p,getSettings:d}=e(qn),{getBlockVariations:f}=e(o.store);r=r||i(n)||void 0;const y=a(r),m=s(r),g=c(n),h=p(),b=d(),v=1===(0,u.size)(y)&&0===(0,u.size)(f(y[0].name,"inserter"));let _=!1;return v&&(_=y[0]),{hasItems:l(r),hasSingleBlockType:v,blockTitle:_?_.title:"",allowedBlockType:_,directInsertBlock:m,rootClientId:r,prioritizePatterns:b.__experimentalPreferPatternsOnRoot&&!r&&g>0&&(g<h||0===h)}})),(0,f.withDispatch)(((e,t,n)=>{let{select:r}=n;return{insertOnlyAllowedBlock(){const{rootClientId:n,clientId:i,isAppender:l,hasSingleBlockType:a,allowedBlockType:s,directInsertBlock:c,onSelectOrClose:u}=t;if(!a&&!c)return;const{insertBlock:p}=e(qn);let d;if(c){const e=function(e){const{getBlock:t,getPreviousBlockClientId:o}=r(qn);if(!e||!i&&!n)return{};const l={};let a={};if(i){const e=t(i),n=t(o(i));(null==e?void 0:e.name)===(null==n?void 0:n.name)&&(a=(null==n?void 0:n.attributes)||{})}else{var s;const e=t(n);if(null!=e&&null!==(s=e.innerBlocks)&&void 0!==s&&s.length){const t=e.innerBlocks[e.innerBlocks.length-1];c&&(null==c?void 0:c.name)===t.name&&(a=t.attributes)}}return e.forEach((e=>{a.hasOwnProperty(e)&&(l[e]=a[e])})),l}(c.attributesToCopy);d=(0,o.createBlock)(c.name,{...c.attributes||{},...e})}else d=(0,o.createBlock)(s.name);p(d,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:o,getBlockRootClientId:a}=r(qn);if(i)return e(i);const s=t();return!l&&s&&a(s)===n?e(s)+1:o(n).length}(),n),u&&u();const f=(0,m.sprintf)((0,m.__)("%s block added"),s.title);(0,Lt.speak)(f)}}})),(0,p.ifCondition)((e=>{let{hasItems:t,isAppender:n,rootClientId:r,clientId:o}=e;return t||!n&&!r&&!o}))])(hd);var vd=(0,p.compose)((0,f.withSelect)(((e,t)=>{const{getBlockCount:n,getSettings:r,getTemplateLock:o}=e(qn),i=!n(t.rootClientId),{bodyPlaceholder:l}=r();return{showPrompt:i,isLocked:!!o(t.rootClientId),placeholder:l}})),(0,f.withDispatch)(((e,t)=>{const{insertDefaultBlock:n,startTyping:r}=e(qn);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),r()}}})))((function(e){let{isLocked:t,onAppend:n,showPrompt:r,placeholder:o,rootClientId:i}=e;if(t)return null;const l=(0,xc.decodeEntities)(o)||(0,m.__)("Type / to choose a block");return(0,a.createElement)("div",{"data-root-client-id":i||"",className:c()("block-editor-default-block-appender",{"has-visible-prompt":r})},(0,a.createElement)("p",{tabIndex:"0",role:"button","aria-label":(0,m.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{bc.ENTER!==e.keyCode&&bc.SPACE!==e.keyCode||n()},onClick:()=>n(),onFocus:()=>{r&&n()}},r?l:"\ufeff"),(0,a.createElement)(bd,{rootClientId:i,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function _d(e,t){let{rootClientId:n,className:r,onFocus:o,tabIndex:i}=e;return(0,a.createElement)(bd,{position:"bottom center",rootClientId:n,__experimentalIsQuick:!0,renderToggle:e=>{let n,{onToggle:l,disabled:s,isOpen:u,blockTitle:p,hasSingleBlockType:f}=e;n=f?(0,m.sprintf)((0,m._x)("Add %s","directly add the only allowed block"),p):(0,m._x)("Add block","Generic label for block inserter button");const y=!f;let g=(0,a.createElement)(d.Button,{ref:t,onFocus:o,tabIndex:i,className:c()(r,"block-editor-button-block-appender"),onClick:l,"aria-haspopup":y?"true":void 0,"aria-expanded":y?u:void 0,disabled:s,label:n},!f&&(0,a.createElement)(d.VisuallyHidden,{as:"span"},n),(0,a.createElement)(wo,{icon:Bc}));return(y||f)&&(g=(0,a.createElement)(d.Tooltip,{text:n},g)),g},isAppender:!0})}const kd=(0,a.forwardRef)(((e,t)=>(jt()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),_d(e,t))));var Ed=(0,a.forwardRef)(_d);var Sd=(0,f.withSelect)(((e,t)=>{let{rootClientId:n}=t;const{canInsertBlockType:r,getTemplateLock:i,getSelectedBlockClientId:l}=e(qn);return{isLocked:!!i(n),canInsertDefaultBlock:r((0,o.getDefaultBlockName)(),n),selectedBlockClientId:l()}}))((function(e){let t,{rootClientId:n,canInsertDefaultBlock:r,isLocked:o,renderAppender:i,className:l,selectedBlockClientId:s,tagName:u="div"}=e;if(o||!1===i)return null;if(i)t=(0,a.createElement)(i,null);else{if(!(s===n||!n&&!s))return null;t=r?(0,a.createElement)(vd,{rootClientId:n}):(0,a.createElement)(Ed,{rootClientId:n,className:"block-list-appender__toggle"})}return(0,a.createElement)(u,{tabIndex:-1,className:c()("block-list-appender wp-block",l),contentEditable:!1,"data-block":!0},t)}));function wd(e){return(0,p.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 Ad=(0,a.createContext)();function Cd(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const{selectBlock:r,hideInsertionPoint:o}=(0,f.useDispatch)(qn),i=(0,a.useContext)(Ad),l=(0,a.useRef)(),{orientation:s,previousClientId:u,nextClientId:y,rootClientId:g,isInserterShown:h}=(0,f.useSelect)((e=>{var t;const{getBlockOrder:n,getBlockListSettings:r,getBlockInsertionPoint:o,isBlockBeingDragged:i,getPreviousBlockClientId:l,getNextBlockClientId:a}=e(qn),s=o(),c=n(s.rootClientId);if(!c.length)return{};let u=c[s.index-1],p=c[s.index];for(;i(u);)u=l(u);for(;i(p);)p=a(p);return{previousClientId:u,nextClientId:p,orientation:(null===(t=r(s.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:s.rootClientId,isInserterShown:null==s?void 0:s.__unstableWithInserter}}),[]),b=Er(u),v=Er(y),_="vertical"===s,k=(0,a.useMemo)((()=>{if(!b&&!v)return{};const e=b?b.getBoundingClientRect():null,t=v?v.getBoundingClientRect():null;if(_)return{width:b?b.offsetWidth:v.offsetWidth,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=(0,m.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:b?b.offsetHeight:v.offsetHeight}}),[b,v]),E=(0,a.useCallback)((()=>{if(!b&&!v)return{};const{ownerDocument:e}=b||v,t=b?b.getBoundingClientRect():null,n=v?v.getBoundingClientRect():null;return _?(0,m.isRTL)()?{top:t?t.bottom:n.top,left:t?t.right:n.right,right:t?t.left:n.left,bottom:n?n.top:t.bottom,ownerDocument:e}:{top:t?t.bottom:n.top,left:t?t.left:n.left,right:t?t.right:n.right,bottom:n?n.top:t.bottom,ownerDocument:e}:(0,m.isRTL)()?{top:t?t.top:n.top,left:t?t.left:n.right,right:n?n.right:t.left,bottom:t?t.bottom:n.bottom,ownerDocument:e}:{top:t?t.top:n.top,left:t?t.right:n.left,right:n?n.left:t.right,bottom:t?t.bottom:n.bottom,ownerDocument:e}}),[b,v]),S=wd(n),w=(0,p.useReducedMotion)(),A=c()("block-editor-block-list__insertion-point","is-"+s);const C=b&&v&&h,I={start:{..._?{height:0,left:"50%",right:"50%",y:0}:{width:0,top:"50%",bottom:"50%",x:0},opacity:0},rest:{..._?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:C?.4:0}},hover:{..._?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:.4}}},x={start:{scale:w?1:0},rest:{scale:1,transition:{delay:.2}}};return(0,a.createElement)(d.Popover,{ref:S,noArrow:!0,animate:!1,getAnchorRect:E,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:t||null,key:y+"--"+g},(0,a.createElement)(d.__unstableMotion.div,{layout:!w,initial:w?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:l,tabIndex:-1,onClick:function(e){e.target===l.current&&y&&r(y,-1)},onFocus:function(e){e.target!==l.current&&(i.current=!0)},className:c()(A,{"is-with-inserter":C}),onHoverEnd:function(e){e.target!==l.current||i.current||o()},style:k},(0,a.createElement)(d.__unstableMotion.div,{variants:I,className:"block-editor-block-list__insertion-point-indicator"}),C&&(0,a.createElement)(d.__unstableMotion.div,{variants:x,className:c()("block-editor-block-list__insertion-point-inserter")},(0,a.createElement)(bd,{position:"bottom center",clientId:y,rootClientId:g,__experimentalIsQuick:!0,onToggle:e=>{i.current=e},onSelectOrClose:()=>{i.current=!1}}))))}function Id(e){let{children:t,__unstablePopoverSlot:n,__unstableContentRef:r}=e;const o=(0,f.useSelect)((e=>e(qn).isBlockInsertionPointVisible()),[]);return(0,a.createElement)(Ad.Provider,{value:(0,a.useRef)(!1)},o&&(0,a.createElement)(Cd,{__unstablePopoverSlot:n,__unstableContentRef:r}),t)}function xd(){const e=(0,a.useContext)(Ad),t=(0,f.useSelect)((e=>e(qn).getSettings().hasReducedUI),[]),{getBlockListSettings:n,getBlockRootClientId:r,getBlockIndex:o,isBlockInsertionPointVisible:i,isMultiSelecting:l,getSelectedBlockClientIds:s,getTemplateLock:c}=(0,f.useSelect)(qn),{showInsertionPoint:u,hideInsertionPoint:d}=(0,f.useDispatch)(qn);return(0,p.useRefEffect)((r=>{if(!t)return r.addEventListener("mousemove",a),()=>{r.removeEventListener("mousemove",a)};function a(t){var r,a;if(e.current)return;if(l())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(i()&&d());let p;if(!t.target.classList.contains("is-root-container")){p=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(c(p))return;const f=(null===(r=n(p))||void 0===r?void 0:r.orientation)||"vertical",y=t.target.getBoundingClientRect(),m=t.clientY-y.top,g=t.clientX-y.left;let h=Array.from(t.target.children).find((e=>e.classList.contains("wp-block")&&"vertical"===f&&e.offsetTop>m||e.classList.contains("wp-block")&&"horizontal"===f&&e.offsetLeft>g));if(!h)return;if(!h.id&&(h=h.firstElementChild,!h))return;if(null===(a=h.parentElement)||void 0===a?void 0:a.closest(".block-editor-block-content-overlay.overlay-active"))return;const b=h.id.slice("block-".length);if(!b)return;if(s().includes(b))return;const v=h.getBoundingClientRect();if("horizontal"===f&&(t.clientY>v.bottom||t.clientY<v.top)||"vertical"===f&&(t.clientX>v.right||t.clientX<v.left))return void(i()&&d());const _=o(b);0!==_?u(p,_,{__unstableWithInserter:!0}):i()&&d()}}),[e,n,r,o,i,l,u,d,s])}const Bd="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,Pd="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;function Td(e){return(0,f.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:r}=t(qn),{getBlockType:i,getActiveBlockVariation:l}=t(o.store),a=n(e),s=i(a);if(!s)return null;const c=r(e),u=l(a,c),p={title:s.title,icon:s.icon,description:s.description,anchor:null==c?void 0:c.anchor};return u?{title:u.title||s.title,icon:u.icon||s.icon,description:u.description||s.description}:p}),[e])}function Od(e,t){const{attributes:n,name:r,reusableBlockTitle:i}=(0,f.useSelect)((t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:r,__experimentalGetReusableBlockTitle:i}=t(qn),l=n(e);if(!l)return{};const a=(0,o.isReusableBlock)((0,o.getBlockType)(l));return{attributes:r(e),name:l,reusableBlockTitle:a&&i(r(e).ref)}}),[e]),l=Td(e);if(!r||!l)return null;const a=(0,o.getBlockType)(r),s=a?(0,o.__experimentalGetBlockLabel)(a,n):null,c=i||s,p=c&&c!==a.title?c:l.title;return t&&t>0?(0,u.truncate)(p,{length:t}):p}function Nd(e){let{clientId:t,maximumLength:n}=e;return Od(t,n)}var Rd=e=>{let{children:t,clientIds:n,cloneClassname:r,onDragStart:i,onDragEnd:l}=e;const{srcRootClientId:s,isDraggable:c,icon:u}=(0,f.useSelect)((e=>{var t;const{canMoveBlocks:r,getBlockRootClientId:i,getBlockName:l}=e(qn),a=i(n[0]),s=l(n[0]);return{srcRootClientId:a,isDraggable:r(n,a),icon:null===(t=(0,o.getBlockType)(s))||void 0===t?void 0:t.icon}}),[n]),p=(0,a.useRef)(!1),[y,m,g]=function(){const e=(0,a.useRef)(null),t=(0,a.useRef)(null),n=(0,a.useRef)(null),r=(0,a.useRef)(null);return(0,a.useEffect)((()=>()=>{r.current&&(clearInterval(r.current),r.current=null)}),[]),[(0,a.useCallback)((o=>{e.current=o.clientY,n.current=(0,Zo.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,a.useCallback)((r=>{if(!n.current)return;const o=n.current.offsetHeight,i=e.current-n.current.offsetTop,l=r.clientY-n.current.offsetTop;if(r.clientY>i){const e=Math.max(o-i-50,0),n=Math.max(l-i-50,0)/e;t.current=25*n}else if(r.clientY<i){const e=Math.max(i-50,0),n=Math.max(i-l-50,0)/e;t.current=-25*n}else t.current=0}),[]),()=>{e.current=null,n.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}(),{startDraggingBlocks:h,stopDraggingBlocks:b}=(0,f.useDispatch)(qn);if((0,a.useEffect)((()=>()=>{p.current&&b()}),[]),!c)return t({isDraggable:!1});const v={type:"block",srcClientIds:n,srcRootClientId:s};return(0,a.createElement)(d.Draggable,{cloneClassname:r,__experimentalTransferDataType:"wp-blocks",transferData:v,onDragStart:e=>{h(n),p.current=!0,y(e),i&&i()},onDragOver:m,onDragEnd:()=>{b(),p.current=!1,g(),l&&l()},__experimentalDragComponent:(0,a.createElement)(mp,{count:n.length,icon:u})},(e=>{let{onDraggableStart:n,onDraggableEnd:r}=e;return t({draggable:!0,onDragStart:n,onDragEnd:r})}))};var Fd=function(e){let{clientId:t,rootClientId:n,blockElement:r}=e;const i=Td(t),s=(0,f.useSelect)((e=>{var r;const{getBlock:o,getBlockIndex:i,hasBlockMovingClientId:l,getBlockListSettings:a}=e(qn),s=i(t),{name:c,attributes:u}=o(t);return{index:s,name:c,attributes:u,blockMovingMode:l(),orientation:null===(r=a(n))||void 0===r?void 0:r.orientation}}),[t,n]),{index:u,name:p,attributes:y,blockMovingMode:g,orientation:h}=s,{setNavigationMode:b,removeBlock:v}=(0,f.useDispatch)(qn),_=(0,a.useRef)(),k=(0,o.getBlockType)(p),E=(0,o.__experimentalGetAccessibleBlockLabel)(k,y,u+1,h);(0,a.useEffect)((()=>{_.current.focus(),(0,Lt.speak)(E)}),[E]);const{hasBlockMovingClientId:S,getBlockIndex:w,getBlockRootClientId:A,getClientIdsOfDescendants:C,getSelectedBlockClientId:I,getMultiSelectedBlocksEndClientId:x,getPreviousBlockClientId:B,getNextBlockClientId:P,isNavigationMode:T}=(0,f.useSelect)(qn),{selectBlock:O,clearSelectedBlock:N,setBlockMovingClientId:R,moveBlockToPosition:F}=(0,f.useDispatch)(qn),M=c()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!g}),D=(0,m.__)("Drag");return(0,a.createElement)("div",{className:M},(0,a.createElement)(d.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(Nc,{icon:null==i?void 0:i.icon,showColors:!0})),(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(Rd,{clientIds:[t]},(e=>(0,a.createElement)(d.Button,l({icon:yp,className:"block-selection-button_drag-handle","aria-hidden":"true",label:D,tabIndex:"-1"},e))))),(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(d.Button,{ref:_,onClick:()=>b(!1),onKeyDown:function(e){const{keyCode:n}=e,o=n===bc.UP,i=n===bc.DOWN,l=n===bc.LEFT,a=n===bc.RIGHT,s=n===bc.TAB,c=n===bc.ESCAPE,u=n===bc.ENTER,p=n===bc.SPACE,d=e.shiftKey;if(n===bc.BACKSPACE||n===bc.DELETE)return v(t),void e.preventDefault();const f=I(),y=x(),m=B(y||f),g=P(y||f),h=s&&d||o,b=s&&!d||i,_=l,k=a;let E;if(h)E=m;else if(b)E=g;else if(_){var M;E=null!==(M=A(f))&&void 0!==M?M:f}else if(k){var D;E=null!==(D=C([f])[0])&&void 0!==D?D:f}const L=S();if(c&&T()&&(N(),e.preventDefault()),c&&L&&!e.defaultPrevented&&(R(null),e.preventDefault()),(u||p)&&L){const e=A(L),t=A(f),n=w(L);let r=w(f);n<r&&e===t&&(r-=1),F(L,e,t,r),O(L),R(null)}if(b||h||_||k)if(E)e.preventDefault(),O(E);else if(s&&f){let t;if(b){t=r;do{t=Zo.focus.tabbable.findNext(t)}while(t&&r.contains(t));t||(t=r.ownerDocument.defaultView.frameElement,t=Zo.focus.tabbable.findNext(t))}else t=Zo.focus.tabbable.findPrevious(r);t&&(e.preventDefault(),t.focus(),N())}},label:E,className:"block-selection-button_select-button"},(0,a.createElement)(Nd,{clientId:t,maximumLength:35})))))};function Md(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}function Dd(e,t,n,r,o){const[i]=(0,a.useState)(t),[l]=(0,a.useState)(r),s=(0,a.useCallback)((()=>{!function(e){const[t]=Zo.focus.tabbable.find(e);t&&t.focus()}(e.current)}),[]);(0,Hc.useShortcut)("core/block-editor/focus-toolbar",s),(0,a.useEffect)((()=>{i&&s()}),[n,i,s]),(0,a.useEffect)((()=>{let t=0;return l&&!i&&(t=window.requestAnimationFrame((()=>{const t=Md(e.current),n=l||0;var r;t[n]&&(r=e.current).contains(r.ownerDocument.activeElement)&&t[n].focus()}))),()=>{if(window.cancelAnimationFrame(t),!o||!e.current)return;const n=Md(e.current).findIndex((e=>0===e.tabIndex));o(n)}}),[l,i])}var Ld=function(e){let{children:t,focusOnMount:n,__experimentalInitialIndex:r,__experimentalOnIndexChange:o,...i}=e;const s=(0,a.useRef)(),c=function(e){const[t,n]=(0,a.useState)(!0),r=(0,a.useCallback)((()=>{const t=!Zo.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||jt()("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,a.useLayoutEffect)((()=>{const t=new window.MutationObserver(r);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[t]),t}(s);return Dd(s,n,c,r,o),c?(0,a.createElement)(d.Toolbar,l({label:i["aria-label"],ref:s},i),t):(0,a.createElement)(d.NavigableMenu,l({orientation:"horizontal",role:"toolbar",ref:s},i),t)};var Ud=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var jd=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var Vd=(0,a.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(D.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var zd=(0,a.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(D.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function Gd(e,t,n,r,o,i,l){const a=n+1,s=e=>"up"===e?"horizontal"===l?(0,m.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===l?(0,m.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,r,o){const i=t+1;if(o<0&&n)return(0,m.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return(0,m.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return(0,m.sprintf)((0,m._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,i);if(o>0&&!r)return(0,m.sprintf)((0,m._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,i)}(e,n,r,o,i);if(r&&o)return(0,m.sprintf)((0,m.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!o){const e=s("down");if("down"===e)return(0,m.sprintf)((0,m.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===e)return(0,m.sprintf)((0,m.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===e)return(0,m.sprintf)((0,m.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(i>0&&o){const e=s("down");if("down"===e)return(0,m.sprintf)((0,m.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,m.sprintf)((0,m.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,m.sprintf)((0,m.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(i<0&&!r){const e=s("up");if("up"===e)return(0,m.sprintf)((0,m.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===e)return(0,m.sprintf)((0,m.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===e)return(0,m.sprintf)((0,m.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(i<0&&r){const e=s("up");if("up"===e)return(0,m.sprintf)((0,m.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,m.sprintf)((0,m.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,m.sprintf)((0,m.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const Hd=(e,t)=>"up"===e?"horizontal"===t?(0,m.isRTL)()?Ud:jd:Vd:"down"===e?"horizontal"===t?(0,m.isRTL)()?jd:Ud:zd:null,Wd=(e,t)=>"up"===e?"horizontal"===t?(0,m.isRTL)()?(0,m.__)("Move right"):(0,m.__)("Move left"):(0,m.__)("Move up"):"down"===e?"horizontal"===t?(0,m.isRTL)()?(0,m.__)("Move left"):(0,m.__)("Move right"):(0,m.__)("Move down"):null,$d=(0,a.forwardRef)(((e,t)=>{let{clientIds:n,direction:r,orientation:i,...s}=e;const y=(0,p.useInstanceId)($d),m=(0,u.castArray)(n).length,{blockType:g,isDisabled:h,rootClientId:b,isFirst:v,isLast:_,firstIndex:k,orientation:E="vertical"}=(0,f.useSelect)((e=>{const{getBlockIndex:t,getBlockRootClientId:l,getBlockOrder:a,getBlock:s,getBlockListSettings:c}=e(qn),p=(0,u.castArray)(n),d=(0,u.first)(p),f=l(d),y=t(d),m=t((0,u.last)(p)),g=a(f),h=s(d),b=0===y,v=m===g.length-1,{orientation:_}=c(f)||{};return{blockType:h?(0,o.getBlockType)(h.name):null,isDisabled:"up"===r?b:v,rootClientId:f,firstIndex:y,isFirst:b,isLast:v,orientation:i||_}}),[n,r]),{moveBlocksDown:S,moveBlocksUp:w}=(0,f.useDispatch)(qn),A="up"===r?w:S,C=`block-editor-block-mover-button__description-${y}`;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.Button,l({ref:t,className:c()("block-editor-block-mover-button",`is-${r}-button`),icon:Hd(r,E),label:Wd(r,E),"aria-describedby":C},s,{onClick:h?null:e=>{A(n,b),s.onClick&&s.onClick(e)},"aria-disabled":h})),(0,a.createElement)("span",{id:C,className:"block-editor-block-mover-button__description"},Gd(m,g&&g.title,k,v,_,"up"===r?-1:1,E)))})),Kd=(0,a.forwardRef)(((e,t)=>(0,a.createElement)($d,l({direction:"up",ref:t},e)))),qd=(0,a.forwardRef)(((e,t)=>(0,a.createElement)($d,l({direction:"down",ref:t},e))));var Jd=(0,f.withSelect)(((e,t)=>{var n;let{clientIds:r}=t;const{getBlock:i,getBlockIndex:l,getBlockListSettings:a,canMoveBlocks:s,getBlockOrder:c,getBlockRootClientId:p}=e(qn),d=(0,u.castArray)(r),f=(0,u.first)(d),y=i(f),m=p((0,u.first)(d)),g=l(f),h=0===g,b=l((0,u.last)(d))===c(m).length-1;return{blockType:y?(0,o.getBlockType)(y.name):null,canMove:s(r,m),rootClientId:m,firstIndex:g,isFirst:h,isLast:b,orientation:null===(n=a(m))||void 0===n?void 0:n.orientation}}))((function(e){let{isFirst:t,isLast:n,clientIds:r,canMove:o,isHidden:i,rootClientId:s,orientation:u,hideDragHandle:p}=e;const[f,y]=(0,a.useState)(!1),g=()=>y(!0),h=()=>y(!1);if(!o||t&&n&&!s)return null;const b=(0,m.__)("Drag");return(0,a.createElement)("div",{className:c()("block-editor-block-mover",{"is-visible":f||!i,"is-horizontal":"horizontal"===u})},!p&&(0,a.createElement)(Rd,{clientIds:r,cloneClassname:"block-editor-block-mover__drag-clone"},(e=>(0,a.createElement)(d.Button,l({icon:yp,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:b,tabIndex:"-1"},e)))),(0,a.createElement)(d.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},(0,a.createElement)(d.ToolbarItem,{onFocus:g,onBlur:h},(e=>(0,a.createElement)(Kd,l({clientIds:r},e)))),(0,a.createElement)(d.ToolbarItem,{onFocus:g,onBlur:h},(e=>(0,a.createElement)(qd,l({clientIds:r},e))))))}));const{clearTimeout:Yd,setTimeout:Qd}=window,Xd=200;function Zd(e){let{ref:t,isFocused:n,debounceTimeout:r=Xd,onChange:o=u.noop}=e;const[i,l]=(0,a.useState)(!1),s=(0,a.useRef)(),c=e=>{null!=t&&t.current&&l(e),o(e)},p=()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},d=()=>{const e=s.current;e&&Yd&&Yd(e)};return(0,a.useEffect)((()=>()=>{c(!1),d()}),[]),{showMovers:i,debouncedShowMovers:e=>{e&&e.stopPropagation(),d(),i||c(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),d(),s.current=Qd((()=>{p()&&c(!1)}),r)}}}function ef(e){let{ref:t,debounceTimeout:n=Xd,onChange:r=u.noop}=e;const[o,i]=(0,a.useState)(!1),{showMovers:l,debouncedShowMovers:s,debouncedHideMovers:c}=Zd({ref:t,debounceTimeout:n,isFocused:o,onChange:r}),p=(0,a.useRef)(!1),d=()=>(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement);return(0,a.useEffect)((()=>{const e=t.current,n=()=>{d()&&(i(!0),s())},r=()=>{d()||(i(!1),c())};return e&&!p.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),p.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,p,i,s,c]),{showMovers:l,gestures:{onMouseMove:s,onMouseLeave:c}}}function tf(){const{selectBlock:e,toggleBlockHighlight:t}=(0,f.useDispatch)(qn),{firstParentClientId:n,shouldHide:r,hasReducedUI:i}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:r,getSettings:i}=e(qn),{hasBlockSupport:l}=e(o.store),a=n(r()),s=a[a.length-1],c=t(s),u=(0,o.getBlockType)(c),p=i();return{firstParentClientId:s,shouldHide:!l(u,"__experimentalParentSelector",!0),hasReducedUI:p.hasReducedUI}}),[]),s=Td(n),c=(0,a.useRef)(),{gestures:u}=ef({ref:c,onChange(e){e&&i||t(n,e)}});return r||void 0===n?null:(0,a.createElement)("div",l({className:"block-editor-block-parent-selector",key:n,ref:c},u),(0,a.createElement)(d.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:(0,m.sprintf)((0,m.__)("Select %s"),s.title),showTooltip:!0,icon:(0,a.createElement)(Nc,{icon:s.icon})}))}var nf=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function rf(e){let{blocks:t}=e;return(0,a.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,a.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,a.createElement)(d.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},(0,a.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,a.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,m.__)("Preview")),(0,a.createElement)(cp,{viewportWidth:500,blocks:t})))))}var of=e=>{let{className:t,possibleBlockTransformations:n,onSelect:r,blocks:i}=e;const[l,s]=(0,a.useState)();return(0,a.createElement)(d.MenuGroup,{label:(0,m.__)("Transform to"),className:t},l&&(0,a.createElement)(rf,{blocks:(0,o.switchToBlockType)(i,l)}),n.map((e=>{const{name:t,icon:n,title:i,isDisabled:l}=e;return(0,a.createElement)(d.MenuItem,{key:t,className:(0,o.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),r(t)},disabled:l,onMouseLeave:()=>s(null),onMouseEnter:()=>s(t)},(0,a.createElement)(Nc,{icon:n,showColors:!0}),i)})))};var lf=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),af=window.wp.tokenList,sf=n.n(af);function cf(e,t,n){const r=new(sf())(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}function uf(e){return(0,u.find)(e,"isDefault")}function pf(e){let{clientId:t,onSwitch:n}=e;const{styles:r,block:i,blockType:l,className:s}=(0,f.useSelect)((e=>{const{getBlock:n}=e(qn),r=n(t);if(!r)return{};const i=(0,o.getBlockType)(r.name),{getBlockStyles:l}=e(o.store);return{block:r,blockType:i,styles:l(r.name),className:r.attributes.className||""}}),[t]),{updateBlockAttributes:c}=(0,f.useDispatch)(qn),p=function(e){return e&&0!==e.length?uf(e)?e:[{name:"default",label:(0,m._x)("Default","block style"),isDefault:!0},...e]:[]}(r),d=function(e,t){for(const n of new(sf())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),r=(0,u.find)(e,{name:t});if(r)return r}return(0,u.find)(e,"isDefault")}(p,s),y=function(e,t){return(0,a.useMemo)((()=>{const n=null==t?void 0:t.example,r=null==t?void 0:t.name;return n&&r?(0,o.getBlockFromExample)(r,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,o.cloneBlock)(e):void 0}),[null!=t&&t.example?null==e?void 0:e.name:e,t])}(i,l);return{onSelect:e=>{const r=cf(s,d,e);c(t,{className:r}),n()},stylesToRender:p,activeStyle:d,genericPreviewBlock:y,className:s}}function df(e){let{clientId:t,onSwitch:n=u.noop}=e;const{onSelect:r,stylesToRender:o,activeStyle:i}=pf({clientId:t,onSwitch:n});return o&&0!==o.length?(0,a.createElement)(a.Fragment,null,o.map((e=>{const t=e.label||e.name;return(0,a.createElement)(d.MenuItem,{key:e.name,icon:i.name===e.name?lf:null,onClick:()=>r(e)},(0,a.createElement)(d.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function ff(e){let{hoveredBlock:t,onSwitch:n}=e;const{clientId:r}=t;return(0,a.createElement)(d.MenuGroup,{label:(0,m.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},(0,a.createElement)(df,{clientId:r,onSwitch:n}))}const yf=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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=yf(e,t,n);if(r)return r}}},mf=(e,t)=>{const n=((e,t)=>{const n=(0,o.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var gf=(e,t)=>(0,a.useMemo)((()=>e.reduce(((e,n)=>{const r=((e,t)=>{const n=t.map((e=>(0,o.cloneBlock)(e))),r=new Set;for(const t of e){let e=!1;for(const o of n){const n=yf(o,t.name,r);if(n){e=!0,r.add(n.clientId),mf(n,t);break}}if(!e)return}return n})(t,n.blocks);return r&&e.push({...n,transformedBlocks:r}),e}),[])),[e,t]);function hf(e){let{patterns:t,onSelect:n}=e;return(0,a.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,a.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,a.createElement)(d.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,a.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,a.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,m.__)("Preview")),(0,a.createElement)(bf,{patterns:t,onSelect:n})))))}function bf(e){let{patterns:t,onSelect:n}=e;const r=(0,d.__unstableUseCompositeState)();return(0,a.createElement)(d.__unstableComposite,l({},r,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,m.__)("Patterns list")}),t.map((e=>(0,a.createElement)(vf,{key:e.name,pattern:e,onSelect:n,composite:r}))))}function vf(e){let{pattern:t,onSelect:n,composite:r}=e;const o="block-editor-block-switcher__preview-patterns-container",i=(0,p.useInstanceId)(vf,`${o}-list__item-description`);return(0,a.createElement)("div",{className:`${o}-list__list-item`,"aria-label":t.title,"aria-describedby":t.description?i:void 0},(0,a.createElement)(d.__unstableCompositeItem,l({role:"option",as:"div"},r,{className:`${o}-list__item`,onClick:()=>n(t.transformedBlocks)}),(0,a.createElement)(cp,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),(0,a.createElement)("div",{className:`${o}-list__item-title`},t.title)),!!t.description&&(0,a.createElement)(d.VisuallyHidden,{id:i},t.description))}var _f=function(e){let{blocks:t,patterns:n,onSelect:r}=e;const[o,i]=(0,a.useState)(!1),l=gf(n,t);return l.length?(0,a.createElement)(d.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&(0,a.createElement)(hf,{patterns:l,onSelect:r}),(0,a.createElement)(d.MenuItem,{onClick:e=>{e.preventDefault(),i(!o)},icon:Ud},(0,m.__)("Patterns"))):null};const kf=e=>{let{clientIds:t,blocks:n}=e;const{replaceBlocks:r}=(0,f.useDispatch)(qn),i=Td(n[0].clientId),{possibleBlockTransformations:l,canRemove:s,hasBlockStyles:c,icon:p,blockTitle:y,patterns:g}=(0,f.useSelect)((e=>{var r;const{getBlockRootClientId:l,getBlockTransformItems:a,__experimentalGetPatternTransformItems:s}=e(qn),{getBlockStyles:c,getBlockType:p}=e(o.store),{canRemoveBlocks:d}=e(qn),f=l((0,u.castArray)(t)[0]),[{name:y}]=n,m=1===n.length,g=m&&c(y);let h;if(m)h=null==i?void 0:i.icon;else{var b;h=1===(0,u.uniq)(n.map((e=>{let{name:t}=e;return t}))).length?null===(b=p(y))||void 0===b?void 0:b.icon:nf}return{possibleBlockTransformations:a(n,f),canRemove:d(t,f),hasBlockStyles:!(null==g||!g.length),icon:h,blockTitle:null===(r=p(y))||void 0===r?void 0:r.title,patterns:s(n,f)}}),[t,n,null==i?void 0:i.icon]),h=1===n.length&&(0,o.isReusableBlock)(n[0]),b=1===n.length&&(0,o.isTemplatePart)(n[0]),v=!!l.length&&s,_=!(null==g||!g.length)&&s;if(!c&&!v)return(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(d.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:y,icon:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Nc,{icon:p,showColors:!0}),(h||b)&&(0,a.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},(0,a.createElement)(Nd,{clientId:t,maximumLength:35})))}));const k=y,E=1===n.length?(0,m.sprintf)((0,m.__)("%s: Change block type or style"),y):(0,m.sprintf)((0,m._n)("Change type of %d block","Change type of %d blocks",n.length),n.length),S=c||v||_;return(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(d.ToolbarItem,null,(e=>(0,a.createElement)(d.DropdownMenu,{className:"block-editor-block-switcher",label:k,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Nc,{icon:p,className:"block-editor-block-switcher__toggle",showColors:!0}),(h||b)&&(0,a.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},(0,a.createElement)(Nd,{clientId:t,maximumLength:35}))),toggleProps:{describedBy:E,...e},menuProps:{orientation:"both"}},(e=>{let{onClose:i}=e;return S&&(0,a.createElement)("div",{className:"block-editor-block-switcher__container"},_&&(0,a.createElement)(_f,{blocks:n,patterns:g,onSelect:e=>{(e=>{r(t,e)})(e),i()}}),v&&(0,a.createElement)(of,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:l,blocks:n,onSelect:e=>{(e=>{r(t,(0,o.switchToBlockType)(n,e))})(e),i()}}),c&&(0,a.createElement)(ff,{hoveredBlock:n[0],onSwitch:i}))})))))};var Ef=e=>{let{clientIds:t}=e;const n=(0,f.useSelect)((e=>e(qn).getBlocksByClientId(t)),[t]);return!n.length||n.some((e=>!e))?null:(0,a.createElement)(kf,{clientIds:t,blocks:n})};const{Fill:Sf,Slot:wf}=(0,d.createSlotFill)("__unstableBlockToolbarLastItem");Sf.Slot=wf;var Af=Sf;var Cf=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})),If=window.wp.blob;function xf(e,t){if(t&&1===(null==e?void 0:e.length)&&0===e[0].type.indexOf("image/")){var n;const e=/<\s*img\b/gi;return 1!==(null===(n=t.match(e))||void 0===n?void 0:n.length)}return!1}function Bf(){const{getBlockName:e}=(0,f.useSelect)(qn),{getBlockType:t}=(0,f.useSelect)(o.store),{createSuccessNotice:n}=(0,f.useDispatch)(xp.store);return(0,a.useCallback)(((r,o)=>{let i="";if(1===o.length){var l;const n=o[0],a=null===(l=t(e(n)))||void 0===l?void 0:l.title;i="copy"===r?(0,m.sprintf)((0,m.__)('Copied "%s" to clipboard.'),a):(0,m.sprintf)((0,m.__)('Moved "%s" to clipboard.'),a)}else i="copy"===r?(0,m.sprintf)((0,m._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):(0,m.sprintf)((0,m._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(i,{type:"snackbar"})}),[])}function Pf(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:r,__unstableIsFullySelected:i,__unstableIsSelectionCollapsed:l,__unstableIsSelectionMergeable:a,__unstableGetSelectedBlocksWithPartialSelection:s}=(0,f.useSelect)(qn),{flashBlock:c,removeBlocks:u,replaceBlocks:d,__unstableDeleteSelection:y,__unstableExpandSelection:m}=(0,f.useDispatch)(qn),g=Bf();return(0,p.useRefEffect)((p=>{function f(f){const h=t();if(0===h.length)return;if(!n()){const{target:e}=f,{ownerDocument:t}=e;if("copy"===f.type||"cut"===f.type?(0,Zo.documentHasUncollapsedSelection)(t):(0,Zo.documentHasSelection)(t))return}if(!p.contains(f.target.ownerDocument.activeElement))return;const b=f.defaultPrevented;f.preventDefault();const v=a(),_=l()||i(),k=!_&&!v;if("copy"===f.type||"cut"===f.type)if(1===h.length&&c(h[0]),k)m();else{let t;if(g(f.type,h),_)t=e(h);else{const[n,r]=s();t=[n,...e(h.slice(1,h.length-1)),r]}const n=(0,o.serialize)(t);f.clipboardData.setData("text/plain",n),f.clipboardData.setData("text/html",n)}if("cut"===f.type)_&&!k?u(h):y();else if("paste"===f.type){if(b)return;const{__experimentalCanUserUseUnfilteredHTML:e}=r(),{plainText:t,html:n}=function(e){let{clipboardData:t}=e,n="",r="";try{n=t.getData("text/plain"),r=t.getData("text/html")}catch(e){try{r=t.getData("Text")}catch(e){return}}const o=(0,Zo.getFilesFromDataTransfer)(t).filter((e=>{let{type:t}=e;return/^image\/(?:jpe?g|png|gif|webp)$/.test(t)}));return o.length&&!xf(o,r)&&(r=o.map((e=>`<img src="${(0,If.createBlobURL)(e)}">`)).join(""),n=""),{html:r,plainText:n}}(f),i=(0,o.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});d(h,i,i.length-1,-1)}}return p.ownerDocument.addEventListener("copy",f),p.ownerDocument.addEventListener("cut",f),p.ownerDocument.addEventListener("paste",f),()=>{p.ownerDocument.removeEventListener("copy",f),p.ownerDocument.removeEventListener("cut",f),p.ownerDocument.removeEventListener("paste",f)}}),[])}var Tf=function(e){let{children:t}=e;return(0,a.createElement)("div",{ref:Pf()},t)};function Of(e){let{clientIds:t,children:n,__experimentalUpdateSelection:r}=e;const{canInsertBlockType:i,getBlockRootClientId:l,getBlocksByClientId:a,canMoveBlocks:s,canRemoveBlocks:c}=(0,f.useSelect)(qn),{getDefaultBlockName:p,getGroupingBlockName:d}=(0,f.useSelect)(o.store),y=a(t),m=l(t[0]),g=(0,u.every)(y,(e=>!!e&&(0,o.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m))),h=i(p(),m),b=s(t,m),v=c(t,m),{removeBlocks:_,replaceBlocks:k,duplicateBlocks:E,insertAfterBlock:S,insertBeforeBlock:w,flashBlock:A,setBlockMovingClientId:C,setNavigationMode:I,selectBlock:x}=(0,f.useDispatch)(qn),B=Bf();return n({canDuplicate:g,canInsertDefaultBlock:h,canMove:b,canRemove:v,rootClientId:m,blocks:y,onDuplicate:()=>E(t,r),onRemove:()=>_(t,r),onInsertBefore(){w((0,u.first)((0,u.castArray)(t)))},onInsertAfter(){S((0,u.last)((0,u.castArray)(t)))},onMoveTo(){I(!0),x(t[0]),C(t[0])},onGroup(){if(!y.length)return;const e=d(),n=(0,o.switchToBlockType)(y,e);n&&k(t,n)},onUngroup(){if(!y.length)return;const e=y[0].innerBlocks;e.length&&k(t,e)},onCopy(){const e=y.map((e=>{let{clientId:t}=e;return t}));1===y.length&&A(e[0]),B("copy",e)}})}var Nf=(0,p.compose)([(0,f.withSelect)(((e,t)=>{let{clientId:n}=t;const{getBlock:r,getBlockMode:i,getSettings:l}=e(qn),a=r(n),s=l().codeEditingEnabled;return{mode:i(n),blockType:a?(0,o.getBlockType)(a.name):null,isCodeEditingEnabled:s}})),(0,f.withDispatch)(((e,t)=>{let{onToggle:n=u.noop,clientId:r}=t;return{onToggleMode(){e(qn).toggleBlockMode(r),n()}}}))])((function(e){let{blockType:t,mode:n,onToggleMode:r,small:i=!1,isCodeEditingEnabled:l=!0}=e;if(!(0,o.hasBlockSupport)(t,"html",!0)||!l)return null;const s="visual"===n?(0,m.__)("Edit as HTML"):(0,m.__)("Edit visually");return(0,a.createElement)(d.MenuItem,{onClick:r},!i&&s)}));var Rf=(0,p.compose)((0,f.withSelect)(((e,t)=>{let{clientId:n}=t;const r=e(qn).getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),(0,f.withDispatch)(((e,t)=>{let{block:n}=t;return{onClick:()=>e(qn).replaceBlocks(n.clientId,(0,o.rawHandler)({HTML:(0,o.getBlockContent)(n)}))}})))((function(e){let{shouldRender:t,onClick:n,small:r}=e;if(!t)return null;const o=(0,m.__)("Convert to Blocks");return(0,a.createElement)(d.MenuItem,{onClick:n},!r&&o)}));const{Fill:Ff,Slot:Mf}=(0,d.createSlotFill)("__unstableBlockSettingsMenuFirstItem");Ff.Slot=Mf;var Df=Ff;function Lf(e){let{clientIds:t,isGroupable:n,isUngroupable:r,blocksSelection:i,groupingBlockName:l,onClose:s=(()=>{})}=e;const{replaceBlocks:c}=(0,f.useDispatch)(qn);return n||r?(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(d.MenuItem,{onClick:()=>{(()=>{const e=(0,o.switchToBlockType)(i,l);e&&c(t,e)})(),s()}},(0,m._x)("Group","verb")),r&&(0,a.createElement)(d.MenuItem,{onClick:()=>{(()=>{const e=i[0].innerBlocks;e.length&&c(t,e)})(),s()}},(0,m._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}function Uf(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:r,groupingBlockName:i}=(0,f.useSelect)((e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:r,canInsertBlockType:i,getSelectedBlockClientIds:l}=e(qn),{getGroupingBlockName:a}=e(o.store),s=l(),c=a(),u=i(c,null!=s&&s.length?n(s[0]):void 0),p=r(s),d=1===p.length&&(null===(t=p[0])||void 0===t?void 0:t.name)===c;return{clientIds:s,isGroupable:u&&p.length,isUngroupable:d&&!!p[0].innerBlocks.length,blocksSelection:p,groupingBlockName:c}}),[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:r,groupingBlockName:i}}var jf=(0,a.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(D.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 Vf=(0,a.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(D.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"}));function zf(e){return(0,f.useSelect)((t=>{const{canMoveBlock:n,canRemoveBlock:r,canLockBlockType:o,getBlockName:i,getBlockRootClientId:l}=t(qn),a=l(e),s=n(e,a),c=r(e,a);return{canMove:s,canRemove:c,canLock:o(i(e)),isLocked:!s||!c}}),[e])}function Gf(e){let{clientId:t,onClose:n}=e;const[r,o]=(0,a.useState)({move:!1,remove:!1}),{canMove:i,canRemove:l}=zf(t),{updateBlockAttributes:s}=(0,f.useDispatch)(qn),c=Td(t),u=(0,p.useInstanceId)(Gf,"block-editor-block-lock-modal__options-title");(0,a.useEffect)((()=>{o({move:!i,remove:!l})}),[i,l]);const y=Object.values(r).every(Boolean),g=Object.values(r).some(Boolean)&&!y;return(0,a.createElement)(d.Modal,{title:(0,m.sprintf)((0,m.__)("Lock %s"),c.title),overlayClassName:"block-editor-block-lock-modal",closeLabel:(0,m.__)("Close"),onRequestClose:n},(0,a.createElement)("form",{onSubmit:e=>{e.preventDefault(),s([t],{lock:r}),n()}},(0,a.createElement)("p",null,(0,m.__)("Choose specific attributes to restrict or lock all available options.")),(0,a.createElement)("div",{role:"group","aria-labelledby":u,className:"block-editor-block-lock-modal__options"},(0,a.createElement)(d.CheckboxControl,{className:"block-editor-block-lock-modal__options-title",label:(0,a.createElement)("span",{id:u},(0,m.__)("Lock all")),checked:y,indeterminate:g,onChange:e=>o({move:e,remove:e})}),(0,a.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},(0,a.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,a.createElement)(d.CheckboxControl,{label:(0,a.createElement)(a.Fragment,null,(0,m.__)("Disable movement"),(0,a.createElement)(d.Icon,{icon:r.move?Vf:jf})),checked:r.move,onChange:e=>o((t=>({...t,move:e})))})),(0,a.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,a.createElement)(d.CheckboxControl,{label:(0,a.createElement)(a.Fragment,null,(0,m.__)("Prevent removal"),(0,a.createElement)(d.Icon,{icon:r.remove?Vf:jf})),checked:r.remove,onChange:e=>o((t=>({...t,remove:e})))})))),(0,a.createElement)(d.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(d.Button,{variant:"tertiary",onClick:n},(0,m.__)("Cancel"))),(0,a.createElement)(d.FlexItem,null,(0,a.createElement)(d.Button,{variant:"primary",type:"submit"},(0,m.__)("Apply"))))))}function Hf(e){let{clientId:t}=e;const{canLock:n,isLocked:r}=zf(t),[o,i]=(0,a.useReducer)((e=>!e),!1);if(!n)return null;const l=r?(0,m.__)("Unlock"):(0,m.__)("Lock");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.MenuItem,{icon:r?jf:Vf,onClick:i},l),o&&(0,a.createElement)(Gf,{clientId:t,onClose:i}))}const{Fill:Wf,Slot:$f}=(0,d.createSlotFill)("BlockSettingsMenuControls");function Kf(e){let{...t}=e;return(0,a.createElement)(d.__experimentalStyleProvider,{document:document},(0,a.createElement)(Wf,t))}Kf.Slot=e=>{let{fillProps:t,clientIds:n=null}=e;const{selectedBlocks:r,selectedClientIds:o,canRemove:i}=(0,f.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:r,canRemoveBlocks:o}=e(qn),i=null!==n?n:r();return{selectedBlocks:(0,u.map)((0,u.compact)(t(i)),(e=>e.name)),selectedClientIds:i,canRemove:o(i)}}),[n]),s=1===o.length,c=Uf(),{isGroupable:p,isUngroupable:y}=c,m=(p||y)&&i;return(0,a.createElement)($f,{fillProps:{...t,selectedBlocks:r,selectedClientIds:o}},(e=>!(null!=e&&e.length)>0&&!m&&!s?null:(0,a.createElement)(d.MenuGroup,null,s&&(0,a.createElement)(Hf,{clientId:o[0]}),e,m&&(0,a.createElement)(Lf,l({},c,{onClose:null==t?void 0:t.onClose})))))};var qf=Kf;const Jf={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function Yf(e){let{blocks:t,onCopy:n}=e;const r=(0,p.useCopyToClipboard)((()=>(0,o.serialize)(t)),n);return(0,a.createElement)(d.MenuItem,{ref:r},(0,m.__)("Copy"))}var Qf=function(e){let{clientIds:t,__experimentalSelectBlock:n,children:r,...i}=e;const s=(0,u.castArray)(t),c=s.length,p=s[0],{firstParentClientId:y,hasReducedUI:g,onlyBlock:h,parentBlockType:b,previousBlockClientId:v,nextBlockClientId:_,selectedBlockClientIds:k}=(0,f.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockParents:r,getPreviousBlockClientId:i,getNextBlockClientId:l,getSelectedBlockClientIds:a,getSettings:s}=e(qn),c=r(p),u=c[c.length-1],d=n(u);return{firstParentClientId:u,hasReducedUI:s().hasReducedUI,onlyBlock:1===t(),parentBlockType:(0,o.getBlockType)(d),previousBlockClientId:i(p),nextBlockClientId:l(p),selectedBlockClientIds:a()}}),[p]),E=(0,f.useSelect)((e=>{const{getShortcutRepresentation:t}=e(Hc.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")}}),[]),{selectBlock:S,toggleBlockHighlight:w}=(0,f.useDispatch)(qn),A=(0,a.useCallback)(n?async e=>{const t=await e;t&&t[0]&&n(t[0])}:u.noop,[n]),C=Od(p,25),I=(0,a.useCallback)(n?()=>{const e=v||_;e&&k.includes(p)&&!k.includes(e)&&n(e)}:u.noop,[n,v,_,k]),x=(0,m.sprintf)((0,m.__)("Remove %s"),C),B=1===c?x:(0,m.__)("Remove blocks"),P=(0,a.useRef)(),{gestures:T}=ef({ref:P,onChange(e){e&&g||w(y,e)}});return(0,a.createElement)(Of,{clientIds:t,__experimentalUpdateSelection:!n},(e=>{let{canDuplicate:n,canInsertDefaultBlock:o,canMove:s,canRemove:f,onDuplicate:g,onInsertAfter:v,onInsertBefore:_,onRemove:k,onCopy:w,onMoveTo:C,blocks:x}=e;return(0,a.createElement)(d.DropdownMenu,l({icon:Cf,label:(0,m.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Jf,noIcons:!0},i),(e=>{let{onClose:i}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.MenuGroup,null,(0,a.createElement)(Df.Slot,{fillProps:{onClose:i}}),void 0!==y&&(0,a.createElement)(d.MenuItem,l({},T,{ref:P,icon:(0,a.createElement)(Nc,{icon:b.icon}),onClick:()=>S(y)}),(0,m.sprintf)((0,m.__)("Select parent block (%s)"),b.title)),1===c&&(0,a.createElement)(Rf,{clientId:p}),(0,a.createElement)(Yf,{blocks:x,onCopy:w}),n&&(0,a.createElement)(d.MenuItem,{onClick:(0,u.flow)(i,g,A),shortcut:E.duplicate},(0,m.__)("Duplicate")),o&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.MenuItem,{onClick:(0,u.flow)(i,_),shortcut:E.insertBefore},(0,m.__)("Insert before")),(0,a.createElement)(d.MenuItem,{onClick:(0,u.flow)(i,v),shortcut:E.insertAfter},(0,m.__)("Insert after"))),s&&!h&&(0,a.createElement)(d.MenuItem,{onClick:(0,u.flow)(i,C)},(0,m.__)("Move to")),1===c&&(0,a.createElement)(Nf,{clientId:p,onToggle:i})),(0,a.createElement)(qf.Slot,{fillProps:{onClose:i},clientIds:t}),"function"==typeof r?r({onClose:i}):a.Children.map((e=>(0,a.cloneElement)(e,{onClose:i}))),f&&(0,a.createElement)(d.MenuGroup,null,(0,a.createElement)(d.MenuItem,{onClick:(0,u.flow)(i,k,I),shortcut:E.remove},B)))}))}))};var Xf=function(e){let{clientIds:t,...n}=e;return(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(d.ToolbarItem,null,(e=>(0,a.createElement)(Qf,l({clientIds:t,toggleProps:e},n)))))};function Zf(e){let{clientId:t}=e;const n=Td(t),{canMove:r,canRemove:o,canLock:i}=zf(t),[l,s]=(0,a.useReducer)((e=>!e),!1);return i?r&&o?null:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.ToolbarGroup,{className:"block-editor-block-lock-toolbar"},(0,a.createElement)(d.ToolbarButton,{icon:Vf,label:(0,m.sprintf)((0,m.__)("Unlock %s"),n.title),onClick:s})),l&&(0,a.createElement)(Gf,{clientId:t,onClose:s})):null}var ey=(0,a.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(D.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 ty=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M9.2 6.5H4V8h5.2c.3 0 .5.2.5.5v7c0 .3-.2.5-.5.5H4v1.5h5.2c1.1 0 2-.9 2-2v-7c0-1.1-.8-2-2-2zM14.8 8H20V6.5h-5.2c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2H20V16h-5.2c-.3 0-.5-.2-.5-.5v-7c-.1-.3.2-.5.5-.5z"}));var ny=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M16 4v5.2c0 .3-.2.5-.5.5h-7c-.3.1-.5-.2-.5-.5V4H6.5v5.2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4H16zm-.5 8.8h-7c-1.1 0-2 .9-2 2V20H8v-5.2c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5V20h1.5v-5.2c0-1.2-.9-2-2-2z"}));const ry={group:void 0,row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"}};var oy=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:r}=Uf(),{replaceBlocks:i}=(0,f.useDispatch)(qn),{canRemove:l}=(0,f.useSelect)((e=>{const{canRemoveBlocks:n}=e(qn);return{canRemove:n(t)}}),[t]),s=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"group";const l=(0,o.switchToBlockType)(e,n);l&&l.length>0&&(l[0].attributes.layout=ry[r],i(t,l))};return r&&l?(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(d.ToolbarButton,{icon:ey,label:(0,m._x)("Group","verb"),onClick:s}),(0,a.createElement)(d.ToolbarButton,{icon:ty,label:(0,m._x)("Row","single horizontal line"),onClick:()=>s("row")}),(0,a.createElement)(d.ToolbarButton,{icon:ny,label:(0,m._x)("Stack","verb"),onClick:()=>s("stack")})):null};var iy=(0,a.createContext)("");var ly=e=>{let{hideDragHandle:t}=e;const{blockClientIds:n,blockClientId:r,blockType:i,hasFixedToolbar:s,hasReducedUI:u,isValid:y,isVisual:m}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:r,isBlockValid:i,getBlockRootClientId:l,getSettings:a}=e(qn),s=r(),c=s[0],u=l(c),p=a();return{blockClientIds:s,blockClientId:c,blockType:c&&(0,o.getBlockType)(t(c)),hasFixedToolbar:p.hasFixedToolbar,hasReducedUI:p.hasReducedUI,rootClientId:u,isValid:s.every((e=>i(e))),isVisual:s.every((e=>"visual"===n(e)))}}),[]),{toggleBlockHighlight:g}=(0,f.useDispatch)(qn),h=(0,a.useRef)(),{showMovers:b,gestures:v}=ef({ref:h,onChange(e){e&&u||g(r,e)}}),_=(0,p.useViewportMatch)("medium","<")||s;if(i&&!(0,o.hasBlockSupport)(i,"__experimentalToolbar",!0))return null;const k=_||b;if(0===n.length)return null;const E=y&&m,S=n.length>1,w=c()("block-editor-block-toolbar",k&&"is-showing-movers");return(0,a.createElement)("div",{className:w},!S&&!_&&(0,a.createElement)(tf,{clientIds:n}),(0,a.createElement)("div",l({ref:h},v),(E||S)&&(0,a.createElement)(d.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},(0,a.createElement)(Ef,{clientIds:n}),!S&&(0,a.createElement)(Zf,{clientId:n[0]}),(0,a.createElement)(Jd,{clientIds:n,hideDragHandle:t||u}))),E&&S&&(0,a.createElement)(oy,null),E&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(or.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,a.createElement)(or.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,a.createElement)(or.Slot,{className:"block-editor-block-toolbar__slot"}),(0,a.createElement)(or.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,a.createElement)(or.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,a.createElement)(iy.Provider,{value:null==i?void 0:i.name},(0,a.createElement)(Af.Slot,null))),(0,a.createElement)(Xf,{clientIds:n}))};var ay=function(e){let{focusOnMount:t,isFixed:n,...r}=e;const{blockType:i,hasParents:s,showParentSelector:u}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:r}=e(qn),{getBlockType:i}=e(o.store),l=r(),a=l[0],s=n(a),c=i(t(s[s.length-1]));return{blockType:a&&i(t(a)),hasParents:s.length,showParentSelector:(0,o.hasBlockSupport)(c,"__experimentalParentSelector",!0)&&l.length<=1}}),[]);if(i&&!(0,o.hasBlockSupport)(i,"__experimentalToolbar",!0))return null;const p=c()("block-editor-block-contextual-toolbar",{"has-parent":s&&u,"is-fixed":n});return(0,a.createElement)(Ld,l({focusOnMount:t,className:p,"aria-label":(0,m.__)("Block tools")},r),(0,a.createElement)(ly,{hideDragHandle:n}))};function sy(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:r,isTyping:o,isCaretWithinFormattedText:i,getSettings:l,getLastMultiSelectedBlockClientId:a}=e(qn);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:o(),isCaretWithinFormattedText:i(),hasMultiSelection:r(),hasFixedToolbar:l().hasFixedToolbar,lastClientId:a()}}function cy(e){let{clientId:t,rootClientId:n,isValid:r,isEmptyDefaultBlock:o,capturingClientId:i,__unstablePopoverSlot:l,__unstableContentRef:s}=e;const{isNavigationMode:u,isMultiSelecting:y,isTyping:m,isCaretWithinFormattedText:g,hasMultiSelection:h,hasFixedToolbar:b,lastClientId:v}=(0,f.useSelect)(sy,[]),_=(0,f.useSelect)((e=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:r,getBlockOrder:o}=e(qn);if(!n())return!1;const i=r();return o(i.rootClientId)[i.index]===t}),[t]),k=(0,p.useViewportMatch)("medium"),[E,S]=(0,a.useState)(!1),[w,A]=(0,a.useState)(!1),{stopTyping:C}=(0,f.useDispatch)(qn),I=!m&&!u&&o&&r,x=u,B=!u&&!b&&k&&!I&&!y&&(!m||g),P=!(u||B||b||o);(0,Hc.useShortcut)("core/block-editor/focus-toolbar",(()=>{S(!0),C(!0)}),{isDisabled:!P}),(0,a.useEffect)((()=>{B||S(!1)}),[B]);const T=(0,a.useRef)(),O=Er(t),N=Er(v),R=Er(i),F=wd(s);if(!(x||B||E||I))return null;let M=O;if(!M)return null;i&&(M=R);let D=M;if(h){if(!N)return null;D={top:M,bottom:N}}const L=I?"top left right":"top right left",{ownerDocument:U}=M,j=I?void 0:U.defaultView.frameElement||(0,Zo.getScrollContainer)(M)||U.body;return(0,a.createElement)(d.Popover,{ref:F,noArrow:!0,animate:!1,position:L,focusOnMount:!1,anchorRef:D,className:c()("block-editor-block-list__block-popover",{"is-insertion-point-visible":_}),__unstableStickyBoundaryElement:j,__unstableSlotName:l||null,__unstableBoundaryParent:!0,__unstableObserveElement:M,shouldAnchorIncludePadding:!0,__unstableEditorCanvasWrapper:null==s?void 0:s.current},(B||E)&&(0,a.createElement)("div",{onFocus:function(){A(!0)},onBlur:function(){A(!1)},tabIndex:-1,className:c()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},(0,a.createElement)(bd,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(B||E)&&(0,a.createElement)(ay,{focusOnMount:E,__experimentalInitialIndex:T.current,__experimentalOnIndexChange:e=>{T.current=e},key:t}),x&&(0,a.createElement)(Fd,{clientId:t,rootClientId:n,blockElement:M}),I&&(0,a.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},(0,a.createElement)(bd,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function uy(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:r,getBlock:i,getBlockParents:l,__experimentalGetBlockListSettingsForBlocks:a}=e(qn),s=t()||n();if(!s)return;const{name:c,attributes:p={},isValid:d}=i(s)||{},f=l(s),y=a(f),m=(0,u.find)(f,(e=>{var t;return null===(t=y[e])||void 0===t?void 0:t.__experimentalCaptureToolbars}));return{clientId:s,rootClientId:r(s),name:c,isValid:d,isEmptyDefaultBlock:c&&(0,o.isUnmodifiedDefaultBlock)({name:c,attributes:p}),capturingClientId:m}}function py(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const r=(0,f.useSelect)(uy,[]);if(!r)return null;const{clientId:o,rootClientId:i,name:l,isValid:s,isEmptyDefaultBlock:c,capturingClientId:u}=r;return l?(0,a.createElement)(cy,{clientId:o,rootClientId:i,isValid:s,isEmptyDefaultBlock:c,capturingClientId:u,__unstablePopoverSlot:t,__unstableContentRef:n}):null}function dy(e){let{children:t}=e;const n=(0,a.useContext)(Ad),r=(0,a.useContext)(d.Disabled.Context);return n||r?t:(jt()('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools",since:"5.8"}),(0,a.createElement)(Id,{__unstablePopoverSlot:"block-toolbar"},(0,a.createElement)(py,{__unstablePopoverSlot:"block-toolbar"}),t))}var fy=(0,p.createHigherOrderComponent)((e=>t=>{const{clientId:n}=Xn();return(0,a.createElement)(e,l({},t,{clientId:n}))}),"withClientId");var yy=fy((e=>{let{clientId:t,showSeparator:n,isFloating:r,onAddBlock:o,isToggle:i}=e;return(0,a.createElement)(Ed,{className:c()({"block-list-appender__toggle":i}),rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})}));var my=(0,p.compose)([fy,(0,f.withSelect)(((e,t)=>{let{clientId:n}=t;const{getBlockOrder:r}=e(qn),o=r(n);return{lastBlockClientId:(0,u.last)(o)}}))])((e=>{let{clientId:t}=e;return(0,a.createElement)(vd,{rootClientId:t})})),gy=window.wp.isShallowEqual,hy=n.n(gy);const by=new WeakMap;function vy(e,t,n,r,i,l,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 n=d.map((e=>(0,o.cloneBlock)(e)));l(n,t,e,!0,null)}if("block"===p){const o=n(u[0]);if(c===e&&o===t)return;if(u.includes(e)||r(u).some((t=>t===e)))return;const l=c===e,a=u.length;i(u,c,e,l&&o<t?t-a:t)}}}function _y(e,t){const n=(0,f.useSelect)((e=>e(qn).getSettings().mediaUpload),[]),{canInsertBlockType:r,getBlockIndex:i,getClientIdsOfDescendants:l}=(0,f.useSelect)(qn),{insertBlocks:a,moveBlocksToPosition:s,updateBlockAttributes:c,clearSelectedBlock:u}=(0,f.useDispatch)(qn),p=vy(e,t,i,l,s,a,u),d=function(e,t,n,r,i,l){return a=>{if(!n)return;const s=(0,o.findTransform)((0,o.getBlockTransforms)("from"),(t=>"files"===t.type&&i(t.blockName,e)&&t.isMatch(a)));if(s){const n=s.transform(a,r);l(n,t,e)}}}(e,t,n,c,r,a),y=function(e,t,n){return r=>{const i=(0,o.pasteHandler)({HTML:r,mode:"BLOCKS"});i.length&&n(i,t,e)}}(e,t,a);return e=>{const t=(0,Zo.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?y(n):t.length?d(t):p(e)}}function ky(e,t,n){const r="top"===n||"bottom"===n,{x:o,y:i}=e,l=r?o:i,a=r?i:o,s=r?t.left:t.top,c=r?t.right:t.bottom,u=t[n];let p;return p=l>=s&&l<=c?l:l<c?s:c,Math.sqrt((l-p)**2+(a-u)**2)}function Ey(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((o=>{const i=ky(e,t,o);(void 0===n||i<n)&&(n=i,r=o)})),[n,r]}function Sy(e,t,n){const r="horizontal"===n?["left","right"]:["top","bottom"],o=(0,m.isRTL)();let i,l;return e.forEach(((e,n)=>{const a=e.getBoundingClientRect(),[s,c]=Ey(t,a,r);if(void 0===l||s<l){l=s,i=n+("bottom"===c||!o&&"right"===c||o&&"left"===c?1:0)}})),i}function wy(){let{rootClientId:e=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=(0,a.useState)(null),r=(0,f.useSelect)((t=>{const{getTemplateLock:n}=t(qn);return"all"===n(e)}),[e]),{getBlockListSettings:o}=(0,f.useSelect)(qn),{showInsertionPoint:i,hideInsertionPoint:l}=(0,f.useDispatch)(qn),s=_y(e,t),c=(0,p.useThrottle)((0,a.useCallback)(((t,r)=>{var l;const a=Sy(Array.from(r.children).filter((e=>e.classList.contains("wp-block"))),{x:t.clientX,y:t.clientY},null===(l=o(e))||void 0===l?void 0:l.orientation);n(void 0===a?0:a),null!==a&&i(e,a)}),[]),200);return(0,p.__experimentalUseDropZone)({isDisabled:r,onDrop:s,onDragOver(e){c(e,e.currentTarget)},onDragLeave(){c.cancel(),l(),n(null)},onDragEnd(){c.cancel(),l(),n(null)}})}function Ay(e){const{clientId:t,allowedBlocks:n,__experimentalDefaultBlock:r,__experimentalDirectInsert:i,template:l,templateLock:s,wrapperRef:c,templateInsertUpdatesSelection:p,__experimentalCaptureToolbars:d,__experimentalAppenderTagName:y,renderAppender:m,orientation:g,placeholder:h,__experimentalLayout:b}=e;!function(e,t,n,r,o,i,l,s){const{updateBlockListSettings:c}=(0,f.useDispatch)(qn),{blockListSettings:u,parentLock:p}=(0,f.useSelect)((t=>{const n=t(qn).getBlockRootClientId(e);return{blockListSettings:t(qn).getBlockListSettings(e),parentLock:t(qn).getTemplateLock(n)}}),[e]),d=(0,a.useMemo)((()=>t),t);(0,a.useLayoutEffect)((()=>{const t={allowedBlocks:d,templateLock:void 0===o?p:o};if(void 0!==i&&(t.__experimentalCaptureToolbars=i),void 0!==l)t.orientation=l;else{const e=Io(null==s?void 0:s.type);t.orientation=e.getOrientation(s)}void 0!==n&&(t.__experimentalDefaultBlock=n),void 0!==r&&(t.__experimentalDirectInsert=r),hy()(u,t)||c(e,t)}),[e,u,d,n,r,o,p,i,l,c,s])}(t,n,r,i,s,d,g,b),function(e,t,n,r){const{getSelectedBlocksInitialCaretPosition:i}=(0,f.useSelect)(qn),{replaceInnerBlocks:l}=(0,f.useDispatch)(qn),s=(0,f.useSelect)((t=>t(qn).getBlocks(e)),[e]),c=(0,a.useRef)(null);(0,a.useLayoutEffect)((()=>{if((0===s.length||"all"===n)&&!(0,u.isEqual)(t,c.current)){c.current=t;const n=(0,o.synchronizeBlocksWithTemplate)(s,t);(0,u.isEqual)(n,s)||l(e,n,0===s.length&&r&&0!==n.length,i())}}),[s,t,n,e])}(t,l,s,p);const v=(0,f.useSelect)((e=>{const n=e(qn).getBlock(t),r=(0,o.getBlockType)(n.name);if(r&&r.providesContext)return function(e,t){by.has(t)||by.set(t,new WeakMap);const n=by.get(t);if(!n.has(e)){const r=(0,u.mapValues)(t.providesContext,(t=>e[t]));n.set(e,r)}return n.get(e)}(n.attributes,r)}),[t]);return(0,a.createElement)(ti,{value:v},(0,a.createElement)(Fy,{rootClientId:t,renderAppender:m,__experimentalAppenderTagName:y,__experimentalLayout:b,wrapperRef:c,placeholder:h}))}function Cy(e){return Fc(e),(0,a.createElement)(Ay,e)}const Iy=(0,a.forwardRef)(((e,t)=>{const n=xy({ref:t},e);return(0,a.createElement)("div",{className:"block-editor-inner-blocks"},(0,a.createElement)("div",n))}));function xy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:n}=Xn(),r=(0,p.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:i,hasOverlay:s}=(0,f.useSelect)((e=>{if(!n)return{};const{getBlockName:t,isBlockSelected:i,hasSelectedInnerBlock:l,isNavigationMode:a}=e(qn),s=t(n),c=a()||r;return{__experimentalCaptureToolbars:e(o.store).hasBlockSupport(s,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==s&&!i(n)&&!l(n,!0)&&c}}),[n,r]),u=(0,p.useMergeRefs)([e.ref,wy({rootClientId:n})]),d={__experimentalCaptureToolbars:i,...t},y=d.value&&d.onChange?Cy:Ay;return{...e,ref:u,className:c()(e.className,"block-editor-block-list__layout",{"has-overlay":s}),children:n?(0,a.createElement)(y,l({},d,{clientId:n})):(0,a.createElement)(Fy,t)}}xy.save=o.__unstableGetInnerBlocksProps,Iy.DefaultBlockAppender=my,Iy.ButtonBlockAppender=yy,Iy.Content=()=>xy.save().children;var By=Iy;const Py=(0,a.createContext)(),Ty=(0,a.createContext)();function Oy(e){let{className:t,...n}=e;const[r,o]=(0,a.useState)(),i=(0,p.useViewportMatch)("medium"),{isOutlineMode:l,isFocusMode:s,isNavigationMode:u}=(0,f.useSelect)((e=>{const{getSettings:t,isNavigationMode:n}=e(qn),{outlineMode:r,focusMode:o}=t();return{isOutlineMode:r,isFocusMode:o,isNavigationMode:n()}}),[]),d=xy({ref:(0,p.useMergeRefs)([Lc(),xd(),o]),className:c()("is-root-container",t,{"is-outline-mode":l,"is-focus-mode":s&&i,"is-navigate-mode":u})},n);return(0,a.createElement)(Py.Provider,{value:r},(0,a.createElement)("div",d))}function Ny(e){return function(){const e=(0,f.useSelect)((e=>e(qn).getSettings().__experimentalBlockPatterns),[]);(0,a.useEffect)((()=>{if(null==e||!e.length)return;let t,n=-1;const r=()=>{n++,n>=e.length||((0,f.select)(qn).__experimentalGetParsedPattern(e[n].name),t=Bd(r))};return t=Bd(r),()=>Pd(t)}),[e])}(),(0,a.createElement)(dy,null,(0,a.createElement)(Qn,{value:Jn},(0,a.createElement)(Oy,e)))}function Ry(e){let{placeholder:t,rootClientId:n,renderAppender:r,__experimentalAppenderTagName:o,__experimentalLayout:i=xo}=e;const[l,s]=(0,a.useState)(new Set),c=(0,a.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{s((t=>{const n=new Set(t);for(const t of e){const e=t.target.getAttribute("data-block");n[t.isIntersecting?"add":"delete"](e)}return n}))}))}),[s]),{order:u,selectedBlocks:p}=(0,f.useSelect)((e=>{const{getBlockOrder:t,getSelectedBlockClientIds:r}=e(qn);return{order:t(n),selectedBlocks:r()}}),[n]);return(0,a.createElement)(Po,{value:i},(0,a.createElement)(Ty.Provider,{value:c},u.map((e=>(0,a.createElement)(f.AsyncModeProvider,{key:e,value:!l.has(e)&&!p.includes(e)},(0,a.createElement)(Ic,{rootClientId:n,clientId:e}))))),u.length<1&&t,(0,a.createElement)(Sd,{tagName:o,rootClientId:n,renderAppender:r}))}function Fy(e){return(0,a.createElement)(f.AsyncModeProvider,{value:!1},(0,a.createElement)(Ry,e))}Ny.__unstableElementContext=Py;const My=["colors","disableCustomColors","gradients","disableCustomGradients"];function Dy(e){let{colors:t,gradients:n,disableCustomColors:r,disableCustomGradients:o,__experimentalHasMultipleOrigins:i,__experimentalIsRenderedInSidebar:l,className:s,label:p,onColorChange:f,onGradientChange:y,colorValue:g,gradientValue:h,clearable:b,showTitle:v=!0,enableAlpha:_}=e;const k=f&&(!(0,u.isEmpty)(t)||!r),E=y&&(!(0,u.isEmpty)(n)||!o),[S,w]=(0,a.useState)(h?"gradient":!!k&&"color");return k||E?(0,a.createElement)(d.BaseControl,{className:c()("block-editor-color-gradient-control",s)},(0,a.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,a.createElement)(d.__experimentalVStack,{spacing:1},v&&(0,a.createElement)("legend",null,(0,a.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,a.createElement)(d.BaseControl.VisualLabel,null,p))),k&&E&&(0,a.createElement)(d.__experimentalToggleGroupControl,{value:S,onChange:w,label:(0,m.__)("Select color type"),hideLabelFromVision:!0,isBlock:!0},(0,a.createElement)(d.__experimentalToggleGroupControlOption,{value:"color",label:(0,m.__)("Solid")}),(0,a.createElement)(d.__experimentalToggleGroupControlOption,{value:"gradient",label:(0,m.__)("Gradient")})),("color"===S||!E)&&(0,a.createElement)(d.ColorPalette,{value:g,onChange:E?e=>{f(e),y()}:f,colors:t,disableCustomColors:r,__experimentalHasMultipleOrigins:i,__experimentalIsRenderedInSidebar:l,clearable:b,enableAlpha:_}),("gradient"===S||!k)&&(0,a.createElement)(d.GradientPicker,{value:h,onChange:k?e=>{y(e),f()}:y,gradients:n,disableCustomGradients:o,__experimentalHasMultipleOrigins:i,__experimentalIsRenderedInSidebar:l,clearable:b})))):null}function Ly(e){const t={};return t.colors=Cr("color.palette"),t.gradients=Cr("color.gradients"),t.disableCustomColors=!Cr("color.custom"),t.disableCustomGradients=!Cr("color.customGradient"),(0,a.createElement)(Dy,l({},t,e))}var Uy=function(e){return(0,u.every)(My,(t=>e.hasOwnProperty(t)))?(0,a.createElement)(Dy,e):(0,a.createElement)(Ly,e)};function jy(e){let t,{colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:i,__experimentalHasMultipleOrigins:s,__experimentalIsRenderedInSidebar:u,enableAlpha:p,settings:f}=e;return u&&(t="bottom left"),(0,a.createElement)(d.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,className:"block-editor-panel-color-gradient-settings__item-group"},f.map(((e,f)=>e&&(0,a.createElement)(d.Dropdown,{key:f,position:t,className:"block-editor-panel-color-gradient-settings__dropdown",contentClassName:"block-editor-panel-color-gradient-settings__dropdown-content",renderToggle:t=>{var n;let{isOpen:r,onToggle:o}=t;return(0,a.createElement)(d.__experimentalItem,{onClick:o,className:c()("block-editor-panel-color-gradient-settings__item",{"is-open":r})},(0,a.createElement)(d.__experimentalHStack,{justify:"flex-start"},(0,a.createElement)(d.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:null!==(n=e.gradientValue)&&void 0!==n?n:e.colorValue}),(0,a.createElement)(d.FlexItem,null,e.label)))},renderContent:()=>(0,a.createElement)(Uy,l({showTitle:!1,colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:i,__experimentalHasMultipleOrigins:s,__experimentalIsRenderedInSidebar:u,enableAlpha:p},e))}))))}function Vy(){return{disableCustomColors:!Cr("color.custom"),disableCustomGradients:!Cr("color.customGradient")}}function zy(){const e=Vy(),t=Cr("color.palette.custom"),n=Cr("color.palette.theme"),r=Cr("color.palette.default"),o=Cr("color.defaultPalette");e.colors=(0,a.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,m._x)("Theme","Indicates this palette comes from the theme."),colors:n}),o&&r&&r.length&&e.push({name:(0,m._x)("Default","Indicates this palette comes from WordPress."),colors:r}),t&&t.length&&e.push({name:(0,m._x)("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[r,n,t]);const i=Cr("color.gradients.custom"),l=Cr("color.gradients.theme"),s=Cr("color.gradients.default"),c=Cr("color.defaultGradients");return e.gradients=(0,a.useMemo)((()=>{const e=[];return l&&l.length&&e.push({name:(0,m._x)("Theme","Indicates this palette comes from the theme."),gradients:l}),c&&s&&s.length&&e.push({name:(0,m._x)("Default","Indicates this palette comes from WordPress."),gradients:s}),i&&i.length&&e.push({name:(0,m._x)("Custom","Indicates this palette is created by the user."),gradients:i}),e}),[i,l,s]),e}Tu([Ou,Fu]);const Gy=(e,t,n)=>{if(t){const n=(0,u.find)(e,{slug:t});if(n)return n}return{color:n}},Hy=(e,t)=>(0,u.find)(e,{color:t});function Wy(e,t){if(e&&t)return`has-${(0,u.kebabCase)(t)}-${e}`}const $y=[];function Ky(e){const{attributes:{borderColor:t,style:n},setAttributes:r}=e,o=zy(),i=o.colors.reduce(((e,t)=>e.concat(t.colors)),[]),{color:s}=(null==n?void 0:n.border)||{},[c,u]=(0,a.useState)((()=>{var e;return null===(e=Gy(i,t,s))||void 0===e?void 0:e.color}));(0,a.useEffect)((()=>{var e;u(null===(e=Gy(i,t,s))||void 0===e?void 0:e.color)}),[t,s,i]);const p=[{label:(0,m.__)("Color"),onColorChange:e=>{u(e);const t=Hy(i,e),o={...n,border:{...null==n?void 0:n.border,color:null!=t&&t.slug?void 0:e}},l=null!=t&&t.slug?t.slug:void 0;r({style:Br(o),borderColor:l})},colorValue:c,clearable:!1}];return(0,a.createElement)(jy,l({settings:p,disableCustomColors:!0,disableCustomGradients:!0,__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,enableAlpha:!0},o))}function qy(e,t,n){var r;if(!vm(t,"color")||Or(t,hm,"color"))return e;const{borderColor:o,style:i}=n,l=Wy("border-color",o),a=c()(e.className,{"has-border-color":o||(null==i||null===(r=i.border)||void 0===r?void 0:r.color),[l]:!!l});return e.className=a||void 0,e}const Jy=(0,p.createHigherOrderComponent)((e=>t=>{var n,r;const{name:o,attributes:i}=t,{borderColor:s}=i,c=Cr("color.palette")||$y;if(!vm(o,"color")||Or(o,hm,"color"))return(0,a.createElement)(e,t);const u={borderColor:s?null===(n=Gy(c,s))||void 0===n?void 0:n.color:void 0};let p=t.wrapperProps;return p={...t.wrapperProps,style:{...u,...null===(r=t.wrapperProps)||void 0===r?void 0:r.style}},(0,a.createElement)(e,l({},t,{wrapperProps:p}))}));function Yy(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function Qy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)return e;const t=Object.values(e).map((e=>(0,d.__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=Yy(r),l=0===o||o?`${o}${i}`:void 0;return l}function Xy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Qy(e),n="string"!=typeof e&&isNaN(parseFloat(t));return n}function Zy(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function em(e){let{onChange:t,values:n,...r}=e;const o=Qy(n),i=Zy(n)&&Xy(n),s=i?(0,m.__)("Mixed"):null;return(0,a.createElement)(d.__experimentalUnitControl,l({},r,{"aria-label":(0,m.__)("Border radius"),disableUnits:i,isOnly:!0,value:o,onChange:t,placeholder:s}))}(0,i.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return vm(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",qy),(0,i.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!vm(e,"color")||Or(e,hm,"color"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),qy(r,e,n)},e})),(0,i.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Jy);const tm={topLeft:(0,m.__)("Top left"),topRight:(0,m.__)("Top right"),bottomLeft:(0,m.__)("Bottom left"),bottomRight:(0,m.__)("Bottom right")};function nm(e){let{onChange:t,values:n,...r}=e;const o="string"!=typeof n?n:{topLeft:n,topRight:n,bottomLeft:n,bottomRight:n};return(0,a.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(tm).map((e=>{let[n,i]=e;return(0,a.createElement)(d.__experimentalUnitControl,l({},r,{key:n,"aria-label":i,value:o[n],onChange:(s=n,e=>{t&&t({...o,[s]:e||void 0})})}));var s})))}var rm=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));var om=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));function im(e){let{isLinked:t,...n}=e;const r=t?(0,m.__)("Unlink Radii"):(0,m.__)("Link Radii");return(0,a.createElement)(d.Tooltip,{text:r},(0,a.createElement)(d.Button,l({},n,{className:"component-border-radius-control__linked-button",isPrimary:t,isSecondary:!t,isSmall:!0,icon:t?rm:om,iconSize:16,"aria-label":r})))}const lm={topLeft:null,topRight:null,bottomLeft:null,bottomRight:null},am={px:100,em:20,rem:20};function sm(e){let{onChange:t,values:n}=e;const[r,o]=(0,a.useState)(!Zy(n)||!Xy(n)),i=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["px","em","rem"]}),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e){const[,t]=(0,d.__experimentalParseQuantityAndUnitFromRawValue)(e);return t||"px"}const t=Object.values(e).map((e=>{const[,t]=(0,d.__experimentalParseQuantityAndUnitFromRawValue)(e);return t}));return Yy(t)||"px"}(n),s=i&&i.find((e=>e.value===l)),c=(null==s?void 0:s.step)||1,[u]=(0,d.__experimentalParseQuantityAndUnitFromRawValue)(Qy(n));return(0,a.createElement)("fieldset",{className:"components-border-radius-control"},(0,a.createElement)("legend",null,(0,m.__)("Radius")),(0,a.createElement)("div",{className:"components-border-radius-control__wrapper"},r?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(em,{className:"components-border-radius-control__unit-control",values:n,min:0,onChange:t,units:i}),(0,a.createElement)(d.RangeControl,{className:"components-border-radius-control__range-control",value:null!=u?u:"",min:0,max:am[l],initialPosition:0,withInputField:!1,onChange:e=>{t(void 0!==e?`${e}${l}`:void 0)},step:c})):(0,a.createElement)(nm,{min:0,onChange:t,values:n||lm,units:i}),(0,a.createElement)(im,{onClick:()=>o(!r),isLinked:r})))}function cm(e){var t;const{attributes:{style:n},setAttributes:r}=e;return(0,a.createElement)(sm,{values:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,onChange:e=>{let t={...n,border:{...null==n?void 0:n.border,radius:e}};void 0!==e&&""!==e||(t=Br(t)),r({style:t})}})}var um=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,a.createElement)(D.Path,{d:"M5 11.25h14v1.5H5z"}));var pm=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,a.createElement)(D.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var dm=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,a.createElement)(D.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const fm=[{label:(0,m.__)("Solid"),icon:um,value:"solid"},{label:(0,m.__)("Dashed"),icon:pm,value:"dashed"},{label:(0,m.__)("Dotted"),icon:dm,value:"dotted"}];function ym(e){let{onChange:t,value:n}=e;return(0,a.createElement)("fieldset",{className:"components-border-style-control"},(0,a.createElement)("legend",null,(0,m.__)("Style")),(0,a.createElement)("div",{className:"components-border-style-control__buttons"},fm.map((e=>(0,a.createElement)(d.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===n,onClick:()=>t(e.value===n?void 0:e.value),"aria-label":e.label})))))}const mm=e=>{var t;const{attributes:{style:n},setAttributes:r}=e;return(0,a.createElement)(ym,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};r({style:Br(t)})}})};const gm=e=>{const{attributes:{borderColor:t,style:n},setAttributes:r}=e,{width:o,color:i,style:l}=(null==n?void 0:n.border)||{},[s,c]=(0,a.useState)(),[u,p]=(0,a.useState)(),[f,y]=(0,a.useState)(),g=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["px","em","rem"]});return(0,a.createElement)(d.__experimentalUnitControl,{value:o,label:(0,m.__)("Width"),min:0,onChange:e=>{let a={...n,border:{...null==n?void 0:n.border,width:e}},d=t;const m=0===parseFloat(e),g=0===parseFloat(o);m&&!g&&(p(t),y(i),c(l),d=void 0,a.border.color=void 0,a.border.style="none"),!m&&g&&("none"===l&&(a.border.style=s),void 0===t&&(d=u,a.border.color=f)),void 0!==e&&""!==e||(a=Br(a)),r({borderColor:d,style:a})},units:g})};const hm="__experimentalBorder";function bm(e){const{clientId:t}=e,n=Cr("border.color")&&vm(e.name,"color"),r=Cr("border.radius")&&vm(e.name,"radius"),i=Cr("border.style")&&vm(e.name,"style"),l=Cr("border.width")&&vm(e.name,"width");if([!n,!r,!i,!l].every(Boolean))return null;const s=(0,o.getBlockSupport)(e.name,[hm,"__experimentalDefaultControls"]),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{var r;return{...n,...t,style:{...n.style,border:{...null===(r=n.style)||void 0===r?void 0:r.border,[e]:void 0}}}}};return(0,a.createElement)(Lr,{__experimentalGroup:"border"},l&&(0,a.createElement)(d.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.border)||void 0===n||!n.width)}(e),label:(0,m.__)("Width"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:_m(r,"width")})}(e),isShownByDefault:null==s?void 0:s.width,resetAllFilter:c("width"),panelId:t},(0,a.createElement)(gm,e)),i&&(0,a.createElement)(d.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.border)||void 0===n||!n.style)}(e),label:(0,m.__)("Style"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:_m(r,"style")})}(e),isShownByDefault:null==s?void 0:s.style,resetAllFilter:c("style"),panelId:t},(0,a.createElement)(mm,e)),n&&(0,a.createElement)(d.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t;const{attributes:{borderColor:n,style:r}}=e;return!!n||!(null==r||null===(t=r.border)||void 0===t||!t.color)}(e),label:(0,m.__)("Color"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({borderColor:void 0,style:_m(r,"color")})}(e),isShownByDefault:null==s?void 0:s.color,resetAllFilter:c("color",{borderColor:void 0}),panelId:t},(0,a.createElement)(Ky,e)),r&&(0,a.createElement)(d.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;const r=null===(t=e.attributes.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius;return"object"==typeof r?Object.entries(r).some(Boolean):!!r}(e),label:(0,m.__)("Radius"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:_m(r,"radius")})}(e),isShownByDefault:null==s?void 0:s.radius,resetAllFilter:c("radius"),panelId:t},(0,a.createElement)(cm,e)))}function vm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==a.Platform.OS)return!1;const n=(0,o.getBlockSupport)(e,hm);return!0===n||("any"===t?!!(null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style):!(null==n||!n[t]))}function _m(e,t){return Br({...e,border:{...null==e?void 0:e.border,[t]:void 0}})}function km(e){if(e)return`has-${e}-gradient-background`}function Em(e,t){const n=(0,u.find)(e,["slug",t]);return n&&n.gradient}function Sm(e,t){return(0,u.find)(e,["gradient",t])}function wm(e,t){const n=Sm(e,t);return n&&n.slug}function Am(){let{gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:n}=Xn(),r=Cr("color.gradients.custom"),o=Cr("color.gradients.theme"),i=Cr("color.gradients.default"),l=(0,a.useMemo)((()=>[...r||[],...o||[],...i||[]]),[r,o,i]),{gradient:s,customGradient:c}=(0,f.useSelect)((r=>{const{getBlockAttributes:o}=r(qn),i=o(n)||{};return{customGradient:i[t],gradient:i[e]}}),[n,e,t]),{updateBlockAttributes:u}=(0,f.useDispatch)(qn),p=(0,a.useCallback)((r=>{const o=wm(l,r);u(n,o?{[e]:o,[t]:void 0}:{[e]:void 0,[t]:r})}),[l,n,u]),d=km(s);let y;return y=s?Em(l,s):c,{gradientClass:d,gradientValue:y,setGradient:p}}Tu([Ou,Fu]);var Cm=function(e){let{backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:r,fallbackLinkColor:o,fontSize:i,isLargeText:l,textColor:s,linkColor:c,enableAlphaChecker:u=!1}=e;const p=t||n;if(!p)return null;const f=s||r,y=c||o;if(!f&&!y)return null;const g=[{color:f,description:(0,m.__)("text color")},{color:y,description:(0,m.__)("link color")}],h=Bu(p),b=h.alpha()<1,v=h.brightness(),_={level:"AA",size:l||!1!==l&&i>=24?"large":"small"};let k="",E="";for(const e of g){if(!e.color)continue;const t=Bu(e.color),n=t.isReadable(h,_),r=t.alpha()<1;if(!n){if(b||r)continue;k=v<t.brightness()?(0,m.sprintf)((0,m.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,m.sprintf)((0,m.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),E=(0,m.__)("This color combination may be hard for people to read.");break}r&&u&&(k=(0,m.__)("Transparent text may be hard for people to read."),E=(0,m.__)("Transparent text may be hard for people to read."))}return k?((0,Lt.speak)(E),(0,a.createElement)("div",{className:"block-editor-contrast-checker"},(0,a.createElement)(d.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},k))):null};function Im(e){var t;let{settings:n,enableAlpha:r,...o}=e;const i={...zy(),clearable:!1,enableAlpha:r,label:n.label,onColorChange:n.onColorChange,onGradientChange:n.onGradientChange,colorValue:n.colorValue,gradientValue:n.gradientValue},s=null!==(t=n.gradientValue)&&void 0!==t?t:n.colorValue;return(0,a.createElement)(d.__experimentalToolsPanelItem,l({hasValue:n.hasValue,label:n.label,onDeselect:n.onDeselect,isShownByDefault:n.isShownByDefault,resetAllFilter:n.resetAllFilter},o,{className:"block-editor-tools-panel-color-gradient-settings__item"}),(0,a.createElement)(d.Dropdown,{className:"block-editor-tools-panel-color-dropdown",contentClassName:"block-editor-panel-color-gradient-settings__dropdown-content",renderToggle:e=>{let{isOpen:t,onToggle:r}=e;return(0,a.createElement)(d.Button,{onClick:r,"aria-expanded":t,className:c()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":t})},(0,a.createElement)(d.__experimentalHStack,{justify:"flex-start"},(0,a.createElement)(d.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:s}),(0,a.createElement)(d.FlexItem,null,n.label)))},renderContent:()=>(0,a.createElement)(Uy,l({showTitle:!1,__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,enableAlpha:!0},i))}))}function xm(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Bm(e){let{enableAlpha:t=!1,settings:n,clientId:r,enableContrastChecking:o=!0}=e;const[i,l]=(0,a.useState)(),[s,c]=(0,a.useState)(),[u,p]=(0,a.useState)(),d=kr(r);return(0,a.useEffect)((()=>{var e;if(!o)return;if(!d.current)return;c(xm(d.current).color);const t=null===(e=d.current)||void 0===e?void 0:e.querySelector("a");t&&t.innerText&&p(xm(t).color);let n=d.current,r=xm(n).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&n.parentNode&&n.parentNode.nodeType===n.parentNode.ELEMENT_NODE;)n=n.parentNode,r=xm(n).backgroundColor;l(r)})),(0,a.createElement)(Lr,{__experimentalGroup:"color"},n.map(((e,n)=>(0,a.createElement)(Im,{key:n,settings:e,panelId:r,enableAlpha:t}))),o&&(0,a.createElement)(Cm,{backgroundColor:i,textColor:s,enableAlphaChecker:t,linkColor:u}))}const Pm="color",Tm=e=>{const t=(0,o.getBlockSupport)(e,Pm);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Om=e=>{if("web"!==a.Platform.OS)return!1;const t=(0,o.getBlockSupport)(e,Pm);return(0,u.isObject)(t)&&!!t.link},Nm=e=>{const t=(0,o.getBlockSupport)(e,Pm);return(0,u.isObject)(t)&&!!t.gradients},Rm=e=>{const t=(0,o.getBlockSupport)(e,Pm);return t&&!1!==t.background},Fm=e=>{const t=(0,o.getBlockSupport)(e,Pm);return t&&!1!==t.text},Mm=e=>t=>{var n,r,o,i,l,a,s,c,u,p;return"background"===e?!!(t.attributes.backgroundColor||null!==(o=t.attributes.style)&&void 0!==o&&null!==(i=o.color)&&void 0!==i&&i.background||t.attributes.gradient||null!==(l=t.attributes.style)&&void 0!==l&&null!==(a=l.color)&&void 0!==a&&a.gradient):"link"===e?!(null===(s=t.attributes.style)||void 0===s||null===(c=s.elements)||void 0===c||null===(u=c.link)||void 0===u||null===(p=u.color)||void 0===p||!p.text):!!t.attributes[`${e}Color`]||!(null===(n=t.attributes.style)||void 0===n||null===(r=n.color)||void 0===r||!r[e])},Dm=(e,t)=>Br(Pr(t,e,void 0)),Lm=e=>({textColor:void 0,style:Dm(["color","text"],e.style)}),Um=e=>({style:Dm(["elements","link","color","text"],e.style)}),jm=e=>{var t;return{backgroundColor:void 0,gradient:void 0,style:{...e.style,color:{...null===(t=e.style)||void 0===t?void 0:t.color,background:void 0,gradient:void 0}}}};function Vm(e,t,n){var r,o,i,l,a,s;if(!Tm(t)||Or(t,Pm))return e;const u=Nm(t),{backgroundColor:p,textColor:d,gradient:f,style:y}=n,m=e=>!Or(t,Pm,e),g=m("text")?Wy("color",d):void 0,h=m("gradients")?km(f):void 0,b=m("background")?Wy("background-color",p):void 0,v=m("background")||m("gradients"),_=p||(null==y||null===(r=y.color)||void 0===r?void 0:r.background)||u&&(f||(null==y||null===(o=y.color)||void 0===o?void 0:o.gradient)),k=c()(e.className,g,h,{[b]:!(u&&null!=y&&null!==(i=y.color)&&void 0!==i&&i.gradient||!b),"has-text-color":m("text")&&(d||(null==y||null===(l=y.color)||void 0===l?void 0:l.text)),"has-background":v&&_,"has-link-color":m("link")&&(null==y||null===(a=y.elements)||void 0===a||null===(s=a.link)||void 0===s?void 0:s.color)});return e.className=k||void 0,e}const zm=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Gy(e,n[1]).color:t};function Gm(e){var t,n,r,i,l,s,c,u,p;const{name:d,attributes:f}=e,y=Cr("color.palette.custom"),g=Cr("color.palette.theme"),h=Cr("color.palette.default"),b=(0,a.useMemo)((()=>[...y||[],...g||[],...h||[]]),[y,g,h]),v=Cr("color.gradients.custom"),_=Cr("color.gradients.theme"),k=Cr("color.gradients.default"),E=(0,a.useMemo)((()=>[...v||[],..._||[],...k||[]]),[v,_,k]),S=Cr("color.custom"),w=Cr("color.customGradient"),A=Cr("color.background"),C=Cr("color.link"),I=Cr("color.text"),x=S||!g||(null==g?void 0:g.length)>0,B=w||!_||(null==_?void 0:_.length)>0,P=(0,a.useRef)(f);if((0,a.useEffect)((()=>{P.current=f}),[f]),!Tm(d))return null;const T=Om(d)&&C&&x,O=Fm(d)&&I&&x,N=Rm(d)&&A&&x,R=Nm(d)&&B;if(!(T||O||N||R))return null;const{style:F,textColor:M,backgroundColor:D,gradient:L}=f;let U;if(R&&L)U=Em(E,L);else if(R){var j;U=null==F||null===(j=F.color)||void 0===j?void 0:j.gradient}const V=t=>n=>{var r,o;const i=Hy(b,n),l=t+"Color",a={...P.current.style,color:{...null===(r=P.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color,[t]:null!=i&&i.slug?void 0:n}},s=null!=i&&i.slug?i.slug:void 0,c={style:Br(a),[l]:s};e.setAttributes(c),P.current={...P.current,...c}},z=!("web"!==a.Platform.OS||L||null!=F&&null!==(t=F.color)&&void 0!==t&&t.gradient),G=(0,o.getBlockSupport)(e.name,[Pm,"__experimentalDefaultControls"]);return(0,a.createElement)(Bm,{enableContrastChecking:z,clientId:e.clientId,enableAlpha:!0,settings:[...O?[{label:(0,m.__)("Text"),onColorChange:V("text"),colorValue:Gy(b,M,null==F||null===(n=F.color)||void 0===n?void 0:n.text).color,isShownByDefault:null==G?void 0:G.text,hasValue:()=>Mm("text")(e),onDeselect:()=>(e=>{let{attributes:t,setAttributes:n}=e;n({textColor:void 0,style:Dm(["color","text"],t.style)})})(e),resetAllFilter:Lm}]:[],...N||R?[{label:(0,m.__)("Background"),onColorChange:N?V("background"):void 0,colorValue:Gy(b,D,null==F||null===(r=F.color)||void 0===r?void 0:r.background).color,gradientValue:U,onGradientChange:R?t=>{const n=wm(E,t);let r;if(n){var o,i,l;const e={...null===(o=P.current)||void 0===o?void 0:o.style,color:{...null===(i=P.current)||void 0===i||null===(l=i.style)||void 0===l?void 0:l.color,gradient:void 0}};r={style:Br(e),gradient:n}}else{var a,s,c;const e={...null===(a=P.current)||void 0===a?void 0:a.style,color:{...null===(s=P.current)||void 0===s||null===(c=s.style)||void 0===c?void 0:c.color,gradient:t}};r={style:Br(e),gradient:void 0}}e.setAttributes(r),P.current={...P.current,...r}}:void 0,isShownByDefault:null==G?void 0:G.background,hasValue:()=>Mm("background")(e),onDeselect:()=>(e=>{let{attributes:t,setAttributes:n}=e;n(jm(t))})(e),resetAllFilter:jm}]:[],...T?[{label:(0,m.__)("Link"),onColorChange:t=>{const n=Hy(b,t),r=null!=n&&n.slug?`var:preset|color|${n.slug}`:t,o=Br(Pr(F,["elements","link","color","text"],r));e.setAttributes({style:o})},colorValue:zm(b,null==F||null===(i=F.elements)||void 0===i||null===(l=i.link)||void 0===l||null===(s=l.color)||void 0===s?void 0:s.text),clearable:!(null==F||null===(c=F.elements)||void 0===c||null===(u=c.link)||void 0===u||null===(p=u.color)||void 0===p||!p.text),isShownByDefault:null==G?void 0:G.link,hasValue:()=>Mm("link")(e),onDeselect:()=>(e=>{let{attributes:t,setAttributes:n}=e;n({style:Dm(["elements","link","color","text"],t.style)})})(e),resetAllFilter:Um}]:[]]})}const Hm=(0,p.createHigherOrderComponent)((e=>t=>{var n;const{name:r,attributes:o}=t,{backgroundColor:i,textColor:s}=o,c=Cr("color.palette.custom")||[],u=Cr("color.palette.theme")||[],p=Cr("color.palette.default")||[],d=(0,a.useMemo)((()=>[...c||[],...u||[],...p||[]]),[c,u,p]);if(!Tm(r)||Or(r,Pm))return(0,a.createElement)(e,t);const f={};var y,m;s&&!Or(r,Pm,"text")&&(f.color=null===(y=Gy(d,s))||void 0===y?void 0:y.color);i&&!Or(r,Pm,"background")&&(f.backgroundColor=null===(m=Gy(d,i))||void 0===m?void 0:m.color);let g=t.wrapperProps;return g={...t.wrapperProps,style:{...f,...null===(n=t.wrapperProps)||void 0===n?void 0:n.style}},(0,a.createElement)(e,l({},t,{wrapperProps:g}))})),Wm={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};(0,i.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Tm(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Nm(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Vm),(0,i.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Tm(e)||Or(e,Pm))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),Vm(r,e,n)},e})),(0,i.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Hm),(0,i.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,r){const o=e.name;return Tr({linkColor:Om(o),textColor:Fm(o),backgroundColor:Rm(o),gradient:Nm(o)},Wm,e,t,n,r)}));const $m=[{name:(0,m._x)("Regular","font style"),value:"normal"},{name:(0,m._x)("Italic","font style"),value:"italic"}],Km=[{name:(0,m._x)("Thin","font weight"),value:"100"},{name:(0,m._x)("Extra Light","font weight"),value:"200"},{name:(0,m._x)("Light","font weight"),value:"300"},{name:(0,m._x)("Regular","font weight"),value:"400"},{name:(0,m._x)("Medium","font weight"),value:"500"},{name:(0,m._x)("Semi Bold","font weight"),value:"600"},{name:(0,m._x)("Bold","font weight"),value:"700"},{name:(0,m._x)("Extra Bold","font weight"),value:"800"},{name:(0,m._x)("Black","font weight"),value:"900"}],qm=(e,t)=>e?t?(0,m.__)("Appearance"):(0,m.__)("Font style"):(0,m.__)("Font weight");function Jm(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:r=!0,value:{fontStyle:o,fontWeight:i}}=e,l=n||r,s=qm(n,r),c={key:"default",name:(0,m.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},u=(0,a.useMemo)((()=>n&&r?(()=>{const e=[c];return $m.forEach((t=>{let{name:n,value:r}=t;Km.forEach((t=>{let{name:o,value:i}=t;const l="normal"===r?o:(0,m.sprintf)((0,m.__)("%1$s %2$s"),o,n);e.push({key:`${r}-${i}`,name:l,style:{fontStyle:r,fontWeight:i}})}))})),e})():n?(()=>{const e=[c];return $m.forEach((t=>{let{name:n,value:r}=t;e.push({key:r,name:n,style:{fontStyle:r,fontWeight:void 0}})})),e})():(()=>{const e=[c];return Km.forEach((t=>{let{name:n,value:r}=t;e.push({key:r,name:n,style:{fontStyle:void 0,fontWeight:r}})})),e})()),[e.options]),p=u.find((e=>e.style.fontStyle===o&&e.style.fontWeight===i))||u[0];return l&&(0,a.createElement)(d.CustomSelectControl,{className:"components-font-appearance-control",label:s,describedBy:p?n?r?(0,m.sprintf)((0,m.__)("Currently selected font appearance: %s"),p.name):(0,m.sprintf)((0,m.__)("Currently selected font style: %s"),p.name):(0,m.sprintf)((0,m.__)("Currently selected font weight: %s"),p.name):(0,m.__)("No selected font appearance"),options:u,value:p,onChange:e=>{let{selectedItem:n}=e;return t(n.style)}})}const Ym=1.5,Qm=.1;var Xm=e=>{let{value:t,onChange:n,__nextHasNoMarginBottom:r=!1,__unstableInputWidth:o="60px"}=e;const i=function(e){return void 0!==e&&""!==e}(t),l=i?t:"";r||jt()("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=r?void 0:{marginBottom:24};return(0,a.createElement)("div",{className:"block-editor-line-height-control",style:s},(0,a.createElement)(d.__experimentalNumberControl,{__unstableInputWidth:o,__unstableStateReducer:(e,t)=>{var n;const r=["insertText","insertFromPaste"].includes(null===(n=t.payload.event.nativeEvent)||void 0===n?void 0:n.inputType),o=((e,t)=>{if(i)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return Ym;default:return e}})(e.value,r);return{...e,value:o}},onChange:n,label:(0,m.__)("Line height"),placeholder:Ym,step:Qm,value:l,min:0}))};const Zm="typography.lineHeight";function eg(e){var t;const{attributes:{style:n},setAttributes:r}=e;return(0,a.createElement)(Xm,{__unstableInputWidth:"100%",__nextHasNoMarginBottom:!0,value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:e=>{const t={...n,typography:{...null==n?void 0:n.typography,lineHeight:e}};r({style:Br(t)})}})}function tg(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!Cr("typography.lineHeight");return!(0,o.hasBlockSupport)(e,Zm)||t}const ng="typography.__experimentalFontStyle",rg="typography.__experimentalFontWeight";function og(e){var t,n;const{attributes:{style:r},setAttributes:o}=e,i=!ig(e),l=!lg(e),s=null==r||null===(t=r.typography)||void 0===t?void 0:t.fontStyle,c=null==r||null===(n=r.typography)||void 0===n?void 0:n.fontWeight;return(0,a.createElement)(Jm,{onChange:e=>{o({style:Br({...r,typography:{...null==r?void 0:r.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:i,hasFontWeights:l,value:{fontStyle:s,fontWeight:c}})}function ig(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,o.hasBlockSupport)(e,ng),n=Cr("typography.fontStyle");return!t||!n}function lg(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,o.hasBlockSupport)(e,rg),n=Cr("typography.fontWeight");return!t||!n}function ag(e){const t=ig(e),n=lg(e);return t&&n}function sg(e){let{value:t="",onChange:n,fontFamilies:r,...o}=e;const i=Cr("typography.fontFamilies");if(r||(r=i),(0,u.isEmpty)(r))return null;const s=[{value:"",label:(0,m.__)("Default")},...r.map((e=>{let{fontFamily:t,name:n}=e;return{value:t,label:n||t}}))];return(0,a.createElement)(d.SelectControl,l({label:(0,m.__)("Font family"),options:s,value:t,onChange:n,labelPosition:"top"},o))}const cg="typography.__experimentalFontFamily";function ug(e,t,n){if(!(0,o.hasBlockSupport)(t,cg))return e;if(Or(t,zg,"fontFamily"))return e;if(null==n||!n.fontFamily)return e;const r=new(sf())(e.className);r.add(`has-${(0,u.kebabCase)(null==n?void 0:n.fontFamily)}-font-family`);const i=r.value;return e.className=i||void 0,e}function pg(e){var t;let{setAttributes:n,attributes:{fontFamily:r}}=e;const o=Cr("typography.fontFamilies"),i=null===(t=(0,u.find)(o,(e=>{let{slug:t}=e;return r===t})))||void 0===t?void 0:t.fontFamily;return(0,a.createElement)(sg,{className:"block-editor-hooks-font-family-control",fontFamilies:o,value:i,onChange:function(e){const t=(0,u.find)(o,(t=>{let{fontFamily:n}=t;return n===e}));n({fontFamily:null==t?void 0:t.slug})}})}function dg(e){let{name:t}=e;const n=Cr("typography.fontFamilies");return!n||0===n.length||!(0,o.hasBlockSupport)(t,cg)}(0,i.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,o.hasBlockSupport)(e,cg)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",ug),(0,i.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!(0,o.hasBlockSupport)(e,cg))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),ug(r,e,n)},e}));const fg=(e,t,n)=>{if(t){const n=(0,u.find)(e,{slug:t});if(n)return n}return{size:n}};function yg(e,t){const n=(0,u.find)(e,{size:t});return n||{size:t}}function mg(e){if(e)return`has-${(0,u.kebabCase)(e)}-font-size`}var gg=function(e){const t=Cr("typography.fontSizes"),n=!Cr("typography.customFontSize");return(0,a.createElement)(d.FontSizePicker,l({},e,{fontSizes:t,disableCustomFontSizes:n}))};const hg="typography.fontSize";function bg(e,t,n){if(!(0,o.hasBlockSupport)(t,hg))return e;if(Or(t,zg,"fontSize"))return e;const r=new(sf())(e.className);r.add(mg(n.fontSize));const i=r.value;return e.className=i||void 0,e}function vg(e){var t,n;const{attributes:{fontSize:r,style:o},setAttributes:i}=e,l=Cr("typography.fontSizes"),s=fg(l,r,null==o||null===(t=o.typography)||void 0===t?void 0:t.fontSize),c=(null==s?void 0:s.size)||(null==o||null===(n=o.typography)||void 0===n?void 0:n.fontSize)||r;return(0,a.createElement)(gg,{onChange:e=>{const t=yg(l,e).slug;i({style:Br({...o,typography:{...null==o?void 0:o.typography,fontSize:t?void 0:e}}),fontSize:t})},value:c,withReset:!1})}function _g(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Cr("typography.fontSizes"),n=!(null==t||!t.length);return!(0,o.hasBlockSupport)(e,hg)||!n}const kg=(0,p.createHigherOrderComponent)((e=>t=>{var n,r;const i=Cr("typography.fontSizes"),{name:l,attributes:{fontSize:s,style:c},wrapperProps:u}=t;if(!(0,o.hasBlockSupport)(l,hg)||Or(l,zg,"fontSize")||!s||null!=c&&null!==(n=c.typography)&&void 0!==n&&n.fontSize)return(0,a.createElement)(e,t);const p=fg(i,s,null==c||null===(r=c.typography)||void 0===r?void 0:r.fontSize).size,d={...t,wrapperProps:{...u,style:{fontSize:p,...null==u?void 0:u.style}}};return(0,a.createElement)(e,d)}),"withFontSizeInlineStyles"),Eg={fontSize:[["fontSize"],["style","typography","fontSize"]]};(0,i.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,o.hasBlockSupport)(e,hg)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",bg),(0,i.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!(0,o.hasBlockSupport)(e,hg))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),bg(r,e,n)},e})),(0,i.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",kg),(0,i.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,r){const i=e.name;return Tr({fontSize:(0,o.hasBlockSupport)(i,hg)},Eg,e,t,n,r)}));var Sg=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 wg=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Ag=[{name:(0,m.__)("Underline"),value:"underline",icon:Sg},{name:(0,m.__)("Strikethrough"),value:"line-through",icon:wg}];function Cg(e){let{value:t,onChange:n}=e;return(0,a.createElement)("fieldset",{className:"block-editor-text-decoration-control"},(0,a.createElement)("legend",null,(0,m.__)("Decoration")),(0,a.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Ag.map((e=>(0,a.createElement)(d.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:e.value===t,onClick:()=>n(e.value===t?void 0:e.value),"aria-label":e.name})))))}const Ig="typography.__experimentalTextDecoration";function xg(e){var t;const{attributes:{style:n},setAttributes:r}=e;return(0,a.createElement)(Cg,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){r({style:Br({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function Bg(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!(0,o.hasBlockSupport)(e,Ig),n=Cr("typography.textDecoration");return t||!n}var Pg=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Tg=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Og=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Ng=[{name:(0,m.__)("Uppercase"),value:"uppercase",icon:Pg},{name:(0,m.__)("Lowercase"),value:"lowercase",icon:Tg},{name:(0,m.__)("Capitalize"),value:"capitalize",icon:Og}];function Rg(e){let{value:t,onChange:n}=e;return(0,a.createElement)("fieldset",{className:"block-editor-text-transform-control"},(0,a.createElement)("legend",null,(0,m.__)("Letter case")),(0,a.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Ng.map((e=>(0,a.createElement)(d.Button,{key:e.value,icon:e.icon,isSmall:!0,isPressed:t===e.value,"aria-label":e.name,onClick:()=>n(t===e.value?void 0:e.value)})))))}const Fg="typography.__experimentalTextTransform";function Mg(e){var t;const{attributes:{style:n},setAttributes:r}=e;return(0,a.createElement)(Rg,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){r({style:Br({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function Dg(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!(0,o.hasBlockSupport)(e,Fg),n=Cr("typography.textTransform");return t||!n}function Lg(e){let{value:t,onChange:n,__unstableInputWidth:r="60px"}=e;const o=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,a.createElement)(d.__experimentalUnitControl,{label:(0,m.__)("Letter spacing"),value:t,__unstableInputWidth:r,units:o,onChange:n})}const Ug="typography.__experimentalLetterSpacing";function jg(e){var t;const{attributes:{style:n},setAttributes:r}=e;return(0,a.createElement)(Lg,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){r({style:Br({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})},__unstableInputWidth:"100%"})}function Vg(){let{name:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!(0,o.hasBlockSupport)(e,Ug),n=Cr("typography.letterSpacing");return t||!n}const zg="typography",Gg=[Zm,hg,ng,rg,cg,Ig,Fg,Ug];function Hg(e){const{clientId:t}=e,n=dg(e),r=_g(e),i=ag(e),l=tg(e),s=Bg(e),c=Dg(e),u=Vg(e),p=!ig(e),f=!lg(e),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[ag(e),_g(e),tg(e),dg(e),Bg(e),Dg(e),Vg(e)];return t.filter(Boolean).length===t.length}(e),g=Wg(e.name);if(y||!g)return null;const h=(0,o.getBlockSupport)(e.name,[zg,"__experimentalDefaultControls"]),b=e=>t=>{var n;return{...t,style:{...t.style,typography:{...null===(n=t.style)||void 0===n?void 0:n.typography,[e]:void 0}}}};return(0,a.createElement)(Lr,{__experimentalGroup:"typography"},!n&&(0,a.createElement)(d.__experimentalToolsPanelItem,{hasValue:()=>function(e){return!!e.attributes.fontFamily}(e),label:(0,m.__)("Font family"),onDeselect:()=>function(e){let{setAttributes:t}=e;t({fontFamily:void 0})}(e),isShownByDefault:null==h?void 0:h.fontFamily,resetAllFilter:e=>({...e,fontFamily:void 0}),panelId:t},(0,a.createElement)(pg,e)),!r&&(0,a.createElement)(d.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t;const{fontSize:n,style:r}=e.attributes;return!!n||!(null==r||null===(t=r.typography)||void 0===t||!t.fontSize)}(e),label:(0,m.__)("Font size"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({fontSize:void 0,style:Br({...r,typography:{...null==r?void 0:r.typography,fontSize:void 0}})})}(e),isShownByDefault:null==h?void 0:h.fontSize,resetAllFilter:e=>{var t;return{...e,fontSize:void 0,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontSize:void 0}}}},panelId:t},(0,a.createElement)(vg,e)),!i&&(0,a.createElement)(d.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t;const{fontStyle:n,fontWeight:r}=(null===(t=e.attributes.style)||void 0===t?void 0:t.typography)||{};return!!n||!!r}(e),label:qm(p,f),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:Br({...r,typography:{...null==r?void 0:r.typography,fontStyle:void 0,fontWeight:void 0}})})}(e),isShownByDefault:null==h?void 0:h.fontAppearance,resetAllFilter:e=>{var t;return{...e,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontStyle:void 0,fontWeight:void 0}}}},panelId:t},(0,a.createElement)(og,e)),!l&&(0,a.createElement)(d.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.lineHeight)}(e),label:(0,m.__)("Line height"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:Br({...r,typography:{...null==r?void 0:r.typography,lineHeight:void 0}})})}(e),isShownByDefault:null==h?void 0:h.lineHeight,resetAllFilter:b("lineHeight"),panelId:t},(0,a.createElement)(eg,e)),!s&&(0,a.createElement)(d.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textDecoration)}(e),label:(0,m.__)("Decoration"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:Br({...r,typography:{...null==r?void 0:r.typography,textDecoration:void 0}})})}(e),isShownByDefault:null==h?void 0:h.textDecoration,resetAllFilter:b("textDecoration"),panelId:t},(0,a.createElement)(xg,e)),!c&&(0,a.createElement)(d.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textTransform)}(e),label:(0,m.__)("Letter case"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:Br({...r,typography:{...null==r?void 0:r.typography,textTransform:void 0}})})}(e),isShownByDefault:null==h?void 0:h.textTransform,resetAllFilter:b("textTransform"),panelId:t},(0,a.createElement)(Mg,e)),!u&&(0,a.createElement)(d.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.letterSpacing)}(e),label:(0,m.__)("Letter spacing"),onDeselect:()=>function(e){let{attributes:t={},setAttributes:n}=e;const{style:r}=t;n({style:Br({...r,typography:{...null==r?void 0:r.typography,letterSpacing:void 0}})})}(e),isShownByDefault:null==h?void 0:h.letterSpacing,resetAllFilter:b("letterSpacing"),panelId:t},(0,a.createElement)(jg,e)))}const Wg=e=>Gg.some((t=>(0,o.hasBlockSupport)(e,t)));const $g=[...Gg,hm,Pm,Wr],Kg=e=>$g.some((t=>(0,o.hasBlockSupport)(e,t))),qg="var:";function Jg(e){if((0,u.startsWith)(e,qg)){return`var(--wp--${e.slice(qg.length).split("|").join("--")})`}return e}function Yg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["spacing.blockGap"],n={};Object.keys(o.__EXPERIMENTAL_STYLE_PROPERTY).forEach((r=>{const i=o.__EXPERIMENTAL_STYLE_PROPERTY[r].value,l=o.__EXPERIMENTAL_STYLE_PROPERTY[r].properties;if((0,u.has)(e,i)&&"elements"!==(0,u.first)(i)){const a=(0,u.get)(e,i);o.__EXPERIMENTAL_STYLE_PROPERTY[r].useEngine||(l&&!(0,u.isString)(a)?Object.entries(l).forEach((e=>{const[t,r]=e,o=(0,u.get)(a,[r]);o&&(n[t]=Jg(o))})):t.includes(i.join("."))||(n[r]=Jg((0,u.get)(e,i))))}}));const r=Xo(e,{selector:"self"});return r.forEach((e=>{if("self"!==e.selector)throw"This style can't be added as inline style";n[e.key]=e.value})),n}const Qg={[`${hm}.__experimentalSkipSerialization`]:["border"],"color.__experimentalSkipSerialization":[Pm],[`${zg}.__experimentalSkipSerialization`]:[zg],[`${Wr}.__experimentalSkipSerialization`]:["spacing"]},Xg={...Qg,[`${Wr}`]:["spacing.blockGap"]},Zg={gradients:"gradient"};function eh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xg;if(!Kg(t))return e;let{style:i}=n;return(0,u.forEach)(r,((e,n)=>{const r=(0,o.getBlockSupport)(t,n);!0===r&&(i=(0,u.omit)(i,e)),Array.isArray(r)&&r.forEach((t=>{const n=Zg[t]||t;i=(0,u.omit)(i,[[...e,n]])}))})),e.style={...Yg(i),...e.style},e}const th=(0,p.createHigherOrderComponent)((e=>t=>{const n=Zn();return(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Gm,t),(0,a.createElement)(Hg,t),(0,a.createElement)(bm,t),(0,a.createElement)(qr,t)),(0,a.createElement)(e,t))}),"withToolbarControls"),nh=(0,p.createHigherOrderComponent)((e=>t=>{var n,r;const i=`wp-elements-${(0,p.useInstanceId)(e)}`,s=Or(t.name,Pm,"link")?(0,u.omit)(null===(n=t.attributes.style)||void 0===n?void 0:n.elements,["link"]):null===(r=t.attributes.style)||void 0===r?void 0:r.elements,d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,u.map)(t,((t,n)=>{const r=Yg(t);return(0,u.isEmpty)(r)?"":[`.editor-styles-wrapper .${e} ${o.__EXPERIMENTAL_ELEMENTS[n]}{`,...(0,u.map)(r,((e,t)=>`\t${(0,u.kebabCase)(t)}: ${e};`)),"}"].join("\n")})).join("\n")}(i,s),f=(0,a.useContext)(Ny.__unstableElementContext);return(0,a.createElement)(a.Fragment,null,s&&f&&(0,a.createPortal)((0,a.createElement)("style",{dangerouslySetInnerHTML:{__html:d}}),f),(0,a.createElement)(e,l({},t,{className:s?c()(t.className,i):t.className})))}));(0,i.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Kg(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,i.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",eh),(0,i.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Kg(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let r={};return t&&(r=t(n)),eh(r,e,n,Qg)},e})),(0,i.addFilter)("editor.BlockEdit","core/style/with-block-controls",th),(0,i.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",nh);var rh=function(e){let{colorPalette:t,duotonePalette:n,disableCustomColors:r,disableCustomDuotone:o,value:i,onChange:l}=e;return(0,a.createElement)(d.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,m.__)("Duotone"),isAlternate:!0},renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,a.createElement)(d.ToolbarButton,{showTooltip:!0,onClick:n,"aria-haspopup":"true","aria-expanded":t,onKeyDown:e=>{t||e.keyCode!==bc.DOWN||(e.preventDefault(),n())},label:(0,m.__)("Apply duotone filter"),icon:(0,a.createElement)(d.DuotoneSwatch,{values:i})})},renderContent:()=>(0,a.createElement)(d.MenuGroup,{label:(0,m.__)("Duotone")},(0,a.createElement)("div",{className:"block-editor-duotone-control__description"},(0,m.__)("Create a two-tone color effect without losing your original image.")),(0,a.createElement)(d.DuotonePicker,{colorPalette:t,duotonePalette:n,disableCustomColors:r,disableCustomDuotone:o,value:i,onChange:l}))})};const oh=[];function ih(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=Bu(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 lh(e){let{selector:t,id:n}=e;const r=`\n${t} {\n\tfilter: url( #${n} );\n}\n`;return(0,a.createElement)("style",null,r)}function ah(e){let{id:t,values:n}=e;return(0,a.createElement)(d.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,a.createElement)("defs",null,(0,a.createElement)("filter",{id:t},(0,a.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,a.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},(0,a.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),(0,a.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),(0,a.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}),(0,a.createElement)("feFuncA",{type:"table",tableValues:n.a.join(" ")})),(0,a.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"}))))}function sh(e){let{selector:t,id:n,values:r}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(ah,{id:n,values:r}),(0,a.createElement)(lh,{id:n,selector:t}))}function ch(e){let{presetSetting:t,defaultSetting:n}=e;const r=!Cr(n),o=Cr(`${t}.custom`)||oh,i=Cr(`${t}.theme`)||oh,l=Cr(`${t}.default`)||oh;return(0,a.useMemo)((()=>[...o,...i,...r?oh:l]),[r,o,i,l])}function uh(e){var t;let{attributes:n,setAttributes:r}=e;const o=null==n?void 0:n.style,i=null==o||null===(t=o.color)||void 0===t?void 0:t.duotone,l=ch({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),s=ch({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),c=!Cr("color.custom"),u=!Cr("color.customDuotone")||0===(null==s?void 0:s.length)&&c;return 0===(null==l?void 0:l.length)&&u?null:(0,a.createElement)(or,{group:"block",__experimentalShareWithChildBlocks:!0},(0,a.createElement)(rh,{duotonePalette:l,colorPalette:s,disableCustomDuotone:u,disableCustomColors:c,value:i,onChange:e=>{const t={...o,color:{...null==o?void 0:o.color,duotone:e}};r({style:t})}}))}Tu([Ou]);const ph=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,o.hasBlockSupport)(t.name,"color.__experimentalDuotone");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),n&&(0,a.createElement)(uh,t))}),"withDuotoneControls");const dh=(0,p.createHigherOrderComponent)((e=>t=>{var n,r,i;const s=(0,o.getBlockSupport)(t.name,"color.__experimentalDuotone"),u=null==t||null===(n=t.attributes)||void 0===n||null===(r=n.style)||void 0===r||null===(i=r.color)||void 0===i?void 0:i.duotone;if(!s||!u)return(0,a.createElement)(e,t);const d=`wp-duotone-${(0,p.useInstanceId)(e)}`,f=function(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(", ")}(`.editor-styles-wrapper .${d}`,s),y=c()(null==t?void 0:t.className,d),m=(0,a.useContext)(Ny.__unstableElementContext);return(0,a.createElement)(a.Fragment,null,m&&(0,a.createPortal)((0,a.createElement)(sh,{selector:f,id:d,values:ih(u)}),m),(0,a.createElement)(e,l({},t,{className:y})))}),"withDuotoneStyles");function fh(e){let{preset:t}=e;return(0,a.createElement)(ah,{id:`wp-duotone-${t.slug}`,values:ih(t.colors)})}(0,i.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,o.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,i.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",ph),(0,i.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",dh);const yh="__experimentalLayout";function mh(e){let{setAttributes:t,attributes:n,name:r}=e;const{layout:i}=n,l=Cr("layout"),s=(0,f.useSelect)((e=>{const{getSettings:t}=e(qn);return t().supportsLayout}),[]),c=(0,o.getBlockSupport)(r,yh,{}),{allowSwitching:u,allowEditing:p=!0,allowInheriting:y=!0,default:g}=c;if(!p)return null;const h=!(!y||!l||null!=i&&i.type&&"default"!==(null==i?void 0:i.type)&&(null==i||!i.inherit)),b=i||g||{},{inherit:v=!1,type:_="default"}=b;if("default"===_&&!s)return null;const k=Io(_),E=e=>t({layout:e});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Lr,null,(0,a.createElement)(d.PanelBody,{title:(0,m.__)("Layout")},h&&(0,a.createElement)(d.ToggleControl,{label:(0,m.__)("Inherit default layout"),checked:!!v,onChange:()=>t({layout:{inherit:!v}})}),!v&&u&&(0,a.createElement)(gh,{type:_,onChange:e=>t({layout:{type:e}})}),!v&&k&&(0,a.createElement)(k.inspectorControls,{layout:b,onChange:E,layoutBlockSupport:c}))),!v&&k&&(0,a.createElement)(k.toolBarControls,{layout:b,onChange:E,layoutBlockSupport:c}))}function gh(e){let{type:t,onChange:n}=e;return(0,a.createElement)(d.ButtonGroup,null,Co.map((e=>{let{name:r,label:o}=e;return(0,a.createElement)(d.Button,{key:r,isPressed:t===r,onClick:()=>n(r)},o)})))}const hh=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n}=t;return[(0,o.hasBlockSupport)(n,yh)&&(0,a.createElement)(mh,l({key:"layout"},t)),(0,a.createElement)(e,l({key:"edit"},t))]}),"withInspectorControls"),bh=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:r}=t,i=(0,o.hasBlockSupport)(n,yh),s=(0,p.useInstanceId)(e),d=Cr("layout")||{},f=(0,a.useContext)(Ny.__unstableElementContext),{layout:y}=r,{default:m}=(0,o.getBlockSupport)(n,yh)||{},g=null!=y&&y.inherit?d:y||m||{},h=i?function(e){var t,n,r;const o=[];return e.layout?(null!=e&&null!==(t=e.layout)&&void 0!==t&&t.orientation&&o.push(`is-${(0,u.kebabCase)(e.layout.orientation)}`),null!=e&&null!==(n=e.layout)&&void 0!==n&&n.justifyContent&&o.push(`is-content-justification-${(0,u.kebabCase)(e.layout.justifyContent)}`),null!=e&&null!==(r=e.layout)&&void 0!==r&&r.flexWrap&&"nowrap"===e.layout.flexWrap&&o.push("is-nowrap"),o):o}(r):null,b=c()(null==t?void 0:t.className,{[`wp-container-${s}`]:i},h);return(0,a.createElement)(a.Fragment,null,i&&f&&(0,a.createPortal)((0,a.createElement)(Oo,{blockName:n,selector:`.wp-container-${s}`,layout:g,style:null==r?void 0:r.style}),f),(0,a.createElement)(e,l({},t,{className:b})))}));(0,i.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return(0,u.has)(e.attributes,["layout","type"])||(0,o.hasBlockSupport)(e,yh)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,i.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",bh),(0,i.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",hh);const vh=[];function _h(e){var t;let{borderColor:n,style:r}=e;const o=(null==r?void 0:r.border)||{},i=Wy("border-color",n);return{className:c()({[i]:!!i,"has-border-color":n||(null==r||null===(t=r.border)||void 0===t?void 0:t.color)})||void 0,style:Yg({border:o})}}function kh(e){const t=Cr("color.palette")||vh,n=_h(e);if(e.borderColor){const r=Gy(t,e.borderColor);n.style.borderColor=r.color}return n}function Eh(e){var t,n,r,o,i,l;const{backgroundColor:a,textColor:s,gradient:u,style:p}=e,d=Wy("background-color",a),f=Wy("color",s),y=km(u),m=y||(null==p||null===(t=p.color)||void 0===t?void 0:t.gradient);return{className:c()(f,y,{[d]:!m&&!!d,"has-text-color":s||(null==p||null===(n=p.color)||void 0===n?void 0:n.text),"has-background":a||(null==p||null===(r=p.color)||void 0===r?void 0:r.background)||u||(null==p||null===(o=p.color)||void 0===o?void 0:o.gradient),"has-link-color":null==p||null===(i=p.elements)||void 0===i||null===(l=i.link)||void 0===l?void 0:l.color})||void 0,style:Yg({color:(null==p?void 0:p.color)||{}})}}const Sh={};function wh(e){const{backgroundColor:t,textColor:n,gradient:r}=e,o=Cr("color.palette.custom")||[],i=Cr("color.palette.theme")||[],l=Cr("color.palette.default")||[],s=Cr("color.gradients")||Sh,c=(0,a.useMemo)((()=>[...o||[],...i||[],...l||[]]),[o,i,l]),u=(0,a.useMemo)((()=>[...(null==s?void 0:s.custom)||[],...(null==s?void 0:s.theme)||[],...(null==s?void 0:s.default)||[]]),[s]),p=Eh(e);if(t){const e=Gy(c,t);p.style.backgroundColor=e.color}if(r&&(p.style.background=Em(u,r)),n){const e=Gy(c,n);p.style.color=e.color}return p}function Ah(e){const{style:t}=e;return{style:Yg({spacing:(null==t?void 0:t.spacing)||{}})}}function Ch(e){const[t,n]=(0,a.useState)(e);return(0,a.useEffect)((()=>{e&&n(e)}),[e]),t}const Ih=e=>(0,p.createHigherOrderComponent)((t=>n=>(0,a.createElement)(t,l({},n,{colors:e}))),"withCustomColorPalette"),xh=()=>(0,p.createHigherOrderComponent)((e=>t=>{const n=Cr("color.palette.custom"),r=Cr("color.palette.theme"),o=Cr("color.palette.default"),i=(0,a.useMemo)((()=>[...n||[],...r||[],...o||[]]),[n,r,o]);return(0,a.createElement)(e,l({},t,{colors:i}))}),"withEditorColorPalette");function Bh(e,t){const n=(0,u.reduce)(e,((e,t)=>({...e,...(0,u.isString)(t)?{[t]:(0,u.kebabCase)(t)}:t})),{});return(0,p.compose)([t,e=>class extends a.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=Bu(t);return(0,u.maxBy)(e,(e=>{let{color:t}=e;return n.contrast(t)})).color}(t,e)}createSetters(){return(0,u.reduce)(n,((e,t,n)=>{const r=(0,u.upperFirst)(n),o=`custom${r}`;return e[`set${r}`]=this.createSetColor(n,o),e}),{})}createSetColor(e,t){return n=>{const r=Hy(this.props.colors,n);this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:r,colors:o}=e;return(0,u.reduce)(n,((e,n,i)=>{const l=Gy(o,r[i],r[`custom${(0,u.upperFirst)(i)}`]),a=t[i];return(null==a?void 0:a.color)===l.color&&a?e[i]=a:e[i]={...l,class:Wy(n,l.slug)},e}),{})}render(){return(0,a.createElement)(e,l({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function Ph(e){return function(){const t=Ih(e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(0,p.createHigherOrderComponent)(Bh(r,t),"withCustomColors")}}function Th(){const e=xh();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,p.createHigherOrderComponent)(Bh(n,e),"withColors")}const Oh=[];var Nh=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=(0,u.reduce)(t,((e,t)=>(e[t]=`custom${(0,u.upperFirst)(t)}`,e)),{});return(0,p.createHigherOrderComponent)((0,p.compose)([(0,p.createHigherOrderComponent)((e=>t=>{const n=Cr("typography.fontSizes")||Oh;return(0,a.createElement)(e,l({},t,{fontSizes:n}))}),"withFontSizes"),e=>class extends a.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return(0,u.reduce)(r,((e,t,n)=>(e[`set${(0,u.upperFirst)(n)}`]=this.createSetFontSize(n,t),e)),{})}createSetFontSize(e,t){return n=>{const r=(0,u.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps(e,t){let{attributes:n,fontSizes:o}=e;const i=(e,r)=>!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e]);if(!(0,u.some)(r,i))return null;const l=(0,u.reduce)((0,u.pickBy)(r,i),((e,t,r)=>{const i=n[r],l=fg(o,i,n[t]);return e[r]={...l,class:mg(i)},e}),{});return{...t,...l}}render(){return(0,a.createElement)(e,l({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")};var Rh=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));var Fh=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));var Mh=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));const Dh=[{icon:Rh,title:(0,m.__)("Align text left"),align:"left"},{icon:Fh,title:(0,m.__)("Align text center"),align:"center"},{icon:Mh,title:(0,m.__)("Align text right"),align:"right"}],Lh={position:"bottom right",isAlternate:!0};var Uh=function(e){let{value:t,onChange:n,alignmentControls:r=Dh,label:o=(0,m.__)("Align"),describedBy:i=(0,m.__)("Change text alignment"),isCollapsed:s=!0,isToolbar:c}=e;function p(e){return()=>n(t===e?void 0:e)}const f=(0,u.find)(r,(e=>e.align===t)),y=c?d.ToolbarGroup:d.ToolbarDropdownMenu,g=c?{isCollapsed:s}:{};return(0,a.createElement)(y,l({icon:f?f.icon:(0,m.isRTL)()?Mh:Rh,label:o,toggleProps:{describedBy:i},popoverProps:Lh,controls:r.map((e=>{const{align:n}=e,r=t===n;return{...e,isActive:r,role:s?"menuitemradio":void 0,onClick:p(n)}}))},g))};const jh=e=>(0,a.createElement)(Uh,l({},e,{isToolbar:!1})),Vh=e=>(0,a.createElement)(Uh,l({},e,{isToolbar:!0}));var zh={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:r}=e(qn),o=t();return{selectedBlockName:o?n(o):null,rootClientId:r().rootClientId}}),[]),[r,o,i]=Sp(t,u.noop),l=(0,a.useMemo)((()=>(e.trim()?Kp(r,o,i,e):(0,u.orderBy)(r,["frecency"],["desc"])).filter((e=>e.name!==n)).slice(0,9)),[e,n,r,o,i]),s=(0,a.useMemo)((()=>l.map((e=>{const{title:t,icon:n,isDisabled:r}=e;return{key:`block-${e.id}`,value:e,label:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Nc,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))),[l]);return[s]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:r}=e;return{action:"replace",value:(0,o.createBlock)(t,n,(0,o.createBlocksFromInnerBlocksTemplate)(r))}}},Gh=window.wp.apiFetch,Hh=n.n(Gh);var Wh=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 $h=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Kh={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await Hh()({path:(0,nd.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=>[...e.title.split(/\s+/)],getOptionLabel:e=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(wo,{key:"icon",icon:"page"===e.subtype?Wh:$h}),e.title),getOptionCompletion:e=>(0,a.createElement)("a",{href:e.url},e.title)};const qh=[];function Jh(e){let{completers:t=qh}=e;const{name:n}=Xn();return(0,a.useMemo)((()=>{let e=t;return(n===(0,o.getDefaultBlockName)()||(0,o.getBlockSupport)(n,"__experimentalSlashInserter",!1))&&(e=e.concat([zh,Kh])),(0,i.hasFilter)("editor.Autocomplete.completers")&&(e===t&&(e=e.map(u.clone)),e=(0,i.applyFilters)("editor.Autocomplete.completers",e,n)),e}),[t,n])}var Yh=function(e){return(0,a.createElement)(d.Autocomplete,l({},e,{completers:Jh(e)}))};var Qh=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Xh=function(e){let{isActive:t,label:n=(0,m.__)("Toggle full height"),onToggle:r,isDisabled:o}=e;return(0,a.createElement)(d.ToolbarButton,{isActive:t,icon:Qh,label:n,onClick:()=>r(!t),disabled:o})};var Zh=function(e){const{label:t=(0,m.__)("Change matrix alignment"),onChange:n=u.noop,value:r="center",isDisabled:o}=e,i=(0,a.createElement)(d.__experimentalAlignmentMatrixControl.Icon,{value:r}),l="block-editor-block-alignment-matrix-control",s=`${l}__popover`;return(0,a.createElement)(d.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:e=>{let{onToggle:n,isOpen:r}=e;return(0,a.createElement)(d.ToolbarButton,{onClick:n,"aria-haspopup":"true","aria-expanded":r,onKeyDown:e=>{r||e.keyCode!==bc.DOWN||(e.preventDefault(),n())},label:t,icon:i,showTooltip:!0,disabled:o})},renderContent:()=>(0,a.createElement)(d.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:r})})};var eb=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var tb=function(e){let{rootLabelText:t}=e;const{selectBlock:n,clearSelectedBlock:r}=(0,f.useDispatch)(qn),{clientId:o,parents:i,hasSelection:l}=(0,f.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:r}=e(qn),o=n();return{parents:r(o),clientId:o,hasSelection:!!t().clientId}}),[]),s=t||(0,m.__)("Document");return(0,a.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,m.__)("Block breadcrumb")},(0,a.createElement)("li",{className:l?void 0:"block-editor-block-breadcrumb__current","aria-current":l?void 0:"true"},l&&(0,a.createElement)(d.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:r},s),!l&&s,!!o&&(0,a.createElement)(wo,{icon:eb,className:"block-editor-block-breadcrumb__separator"})),i.map((e=>(0,a.createElement)("li",{key:e},(0,a.createElement)(d.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>n(e)},(0,a.createElement)(Nd,{clientId:e,maximumLength:35})),(0,a.createElement)(wo,{icon:eb,className:"block-editor-block-breadcrumb__separator"})))),!!o&&(0,a.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},(0,a.createElement)(Nd,{clientId:o,maximumLength:35})))};function nb(e){let{clientId:t,tagName:n="div",wrapperProps:r,className:o}=e;const[i,s]=(0,a.useState)(!0),[u,p]=(0,a.useState)(!1),{isParentSelected:d,hasChildSelected:y,isDraggingBlocks:m,isParentHighlighted:g}=(0,f.useSelect)((e=>{const{isBlockSelected:n,hasSelectedInnerBlock:r,isDraggingBlocks:o,isBlockHighlighted:i}=e(qn);return{isParentSelected:n(t),hasChildSelected:r(t,!0),isDraggingBlocks:o(),isParentHighlighted:i(t)}}),[t]),h=c()("block-editor-block-content-overlay",null==r?void 0:r.className,o,{"overlay-active":i,"parent-highlighted":g,"is-dragging-blocks":m});return(0,a.useEffect)((()=>{d||y||i||s(!0),d&&!u&&i&&s(!1),y&&i&&s(!1)}),[d,y,i,u]),(0,a.createElement)(n,l({},r,{className:h,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onMouseUp:i?()=>s(!1):void 0}),null==r?void 0:r.children)}const rb=()=>(0,a.createElement)(d.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,a.createElement)(d.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"})),ob=e=>{let{style:t,className:n}=e;return(0,a.createElement)("div",{className:"block-library-colors-selector__icon-container"},(0,a.createElement)("div",{className:`${n} block-library-colors-selector__state-selection`,style:t},(0,a.createElement)(rb,null)))},ib=e=>{let{TextColor:t,BackgroundColor:n}=e;return e=>{let{onToggle:r,isOpen:o}=e;return(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(d.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,m.__)("Open Colors Selector"),onClick:r,onKeyDown:e=>{o||e.keyCode!==bc.DOWN||(e.preventDefault(),r())},icon:(0,a.createElement)(n,null,(0,a.createElement)(t,null,(0,a.createElement)(ob,null)))}))}};var lb=e=>{let{children:t,...n}=e;return(0,a.createElement)(d.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:ib(n),renderContent:()=>t})};var ab=(0,a.createElement)(D.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(D.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));const sb=tc(d.__experimentalTreeGridRow);function cb(e){let{isSelected:t,position:n,level:r,rowCount:o,children:i,className:s,path:u,...p}=e;const d=oc({isSelected:t,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:u});return(0,a.createElement)(sb,l({ref:d,className:c()("block-editor-list-view-leaf",s),level:r,positionInSet:n,setSize:o},p),i)}function ub(e){let{onClick:t}=e;return(0,a.createElement)("span",{className:"block-editor-list-view__expander",onClick:e=>t(e,{forceToggle:!0}),"aria-hidden":"true"},(0,a.createElement)(wo,{icon:eb}))}var pb=(0,a.forwardRef)((function(e,t){let{className:n,block:{clientId:r},onClick:o,onToggleExpanded:i,tabIndex:l,onFocus:s,onDragStart:u,onDragEnd:p,draggable:f}=e;const y=Td(r),{isLocked:m}=zf(r);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.Button,{className:c()("block-editor-list-view-block-select-button",n),onClick:o,onKeyDown:function(e){e.keyCode!==bc.ENTER&&e.keyCode!==bc.SPACE||o(e)},ref:t,tabIndex:l,onFocus:s,onDragStart:e=>{e.dataTransfer.clearData(),null==u||u(e)},onDragEnd:p,draggable:f,href:`#block-${r}`,"aria-hidden":!0},(0,a.createElement)(ub,{onClick:i}),(0,a.createElement)(Nc,{icon:null==y?void 0:y.icon,showColors:!0}),(0,a.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},(0,a.createElement)(Nd,{clientId:r,maximumLength:35})),(null==y?void 0:y.anchor)&&(0,a.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor"},y.anchor),m&&(0,a.createElement)("span",{className:"block-editor-list-view-block-select-button__lock"},(0,a.createElement)(wo,{icon:Vf}))))}));const db=(0,a.forwardRef)(((e,t)=>{let{onClick:n,onToggleExpanded:r,block:o,isSelected:i,position:s,siblingBlockCount:u,level:p,isExpanded:d,selectedClientIds:y,...m}=e;const{clientId:g}=o,{blockMovingClientId:h,selectedBlockInBlockEditor:b}=(0,f.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n}=e(qn);return{blockMovingClientId:t(),selectedBlockInBlockEditor:n()}}),[g]),v=h&&b===g,_=c()("block-editor-list-view-block-contents",{"is-dropping-before":v}),k=y.includes(g)?y:[g];return(0,a.createElement)(Rd,{clientIds:k},(e=>{let{draggable:c,onDragStart:f,onDragEnd:y}=e;return(0,a.createElement)(pb,l({ref:t,className:_,block:o,onClick:n,onToggleExpanded:r,isSelected:i,position:s,siblingBlockCount:u,level:p,draggable:c,onDragStart:f,onDragEnd:y,isExpanded:d},m))}))}));var fb=db;const yb=(0,a.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),mb=()=>(0,a.useContext)(yb);var gb=(0,a.memo)((function e(t){let{block:n,isDragged:r,isSelected:o,isBranchSelected:i,selectBlock:l,position:s,level:u,rowCount:y,siblingBlockCount:g,showBlockMovers:h,path:b,isExpanded:v,selectedClientIds:_,preventAnnouncement:k}=t;const E=(0,a.useRef)(null),[S,w]=(0,a.useState)(!1),{clientId:A}=n,C=o&&_[0]===A,I=o&&_[_.length-1]===A,{toggleBlockHighlight:x}=(0,f.useDispatch)(qn),B=Td(A),{isLocked:P}=zf(A),T=`list-view-block-select-button__${(0,p.useInstanceId)(e)}`,O=((e,t,n)=>(0,m.sprintf)((0,m.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(s,g,u);let N=(0,m.__)("Link");B&&(N=P?(0,m.sprintf)((0,m.__)("%s link (locked)"),B.title):(0,m.sprintf)((0,m.__)("%s link"),B.title));const R=B?(0,m.sprintf)((0,m.__)("Options for %s block"),B.title):(0,m.__)("Options"),{__experimentalFeatures:F,__experimentalPersistentListViewFeatures:M,__experimentalHideContainerBlockActions:D,isTreeGridMounted:L,expand:U,collapse:j}=mb(),V=h&&g>0,z=c()("block-editor-list-view-block__mover-cell",{"is-visible":S||o}),G=c()("block-editor-list-view-block__menu-cell",{"is-visible":S||C});(0,a.useEffect)((()=>{M&&!L&&o&&E.current.focus()}),[]);const H=M?x:()=>{},W=(0,a.useCallback)((()=>{w(!0),H(A,!0)}),[A,w,H]),$=(0,a.useCallback)((()=>{w(!1),H(A,!1)}),[A,w,H]),K=(0,a.useCallback)((e=>{l(e,A),e.preventDefault()}),[A,l]),q=(0,a.useCallback)((e=>{l(void 0,e)}),[l]),J=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===v?j(A):!1===v&&U(A)}),[A,U,j,v]),Y=F&&(!D||D&&u>1),Q=F&&!Y;let X;V?X=2:Q&&(X=3);const Z=c()({"is-selected":o,"is-first-selected":C,"is-last-selected":I,"is-branch-selected":M&&i,"is-dragging":r,"has-single-cell":Q}),ee=_.includes(A)?_:[A];return(0,a.createElement)(cb,{className:Z,onMouseEnter:W,onMouseLeave:$,onFocus:W,onBlur:$,level:u,position:s,rowCount:y,path:b,id:`list-view-block-${A}`,"data-block":A,isExpanded:v,"aria-selected":!!o},(0,a.createElement)(d.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:X,ref:E,"aria-label":N,"aria-selected":!!o,"aria-expanded":v,"aria-describedby":T},(e=>{let{ref:t,tabIndex:r,onFocus:i}=e;return(0,a.createElement)("div",{className:"block-editor-list-view-block__contents-container"},(0,a.createElement)(fb,{block:n,onClick:K,onToggleExpanded:J,isSelected:o,position:s,siblingBlockCount:g,level:u,ref:t,tabIndex:r,onFocus:i,isExpanded:v,selectedClientIds:_,preventAnnouncement:k}),(0,a.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:T},O))})),V&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.__experimentalTreeGridCell,{className:z,withoutGridItem:!0},(0,a.createElement)(d.__experimentalTreeGridItem,null,(e=>{let{ref:t,tabIndex:n,onFocus:r}=e;return(0,a.createElement)(Kd,{orientation:"vertical",clientIds:[A],ref:t,tabIndex:n,onFocus:r})})),(0,a.createElement)(d.__experimentalTreeGridItem,null,(e=>{let{ref:t,tabIndex:n,onFocus:r}=e;return(0,a.createElement)(qd,{orientation:"vertical",clientIds:[A],ref:t,tabIndex:n,onFocus:r})})))),Y&&(0,a.createElement)(d.__experimentalTreeGridCell,{className:G,"aria-selected":!!o},(e=>{let{ref:t,tabIndex:n,onFocus:r}=e;return(0,a.createElement)(Qf,{clientIds:ee,icon:Cf,label:R,toggleProps:{ref:t,className:"block-editor-list-view-block__menu",tabIndex:n,onFocus:r},disableOpenOnArrowDown:!0,__experimentalSelectBlock:q})})))}));function hb(e,t,n,r){var o;if(null==n?void 0:n.includes(e.clientId))return 0;return(null!==(o=t[e.clientId])&&void 0!==o?o:r)?1+e.innerBlocks.reduce(bb(t,n,r),0):1}const bb=(e,t,n)=>(r,o)=>{var i;if(null==t?void 0:t.includes(o.clientId))return r;return(null!==(i=e[o.clientId])&&void 0!==i?i:n)&&o.innerBlocks.length>0?r+hb(o,e,t,n):r+1};function vb(e){const{blocks:t,selectBlock:n,showBlockMovers:r,showNestedBlocks:o,selectedClientIds:i,level:l=1,path:s="",isBranchSelected:c=!1,listPosition:p=0,fixedListWindow:d,expandNested:y}=e,{expandedState:m,draggedClientIds:g,__experimentalPersistentListViewFeatures:h}=mb(),b=(0,u.compact)(t),v=b.length;let _=p;return(0,a.createElement)(a.Fragment,null,b.map(((e,t)=>{var p;const{clientId:k,innerBlocks:E}=e;t>0&&(_+=hb(b[t-1],m,g,y));const S=h,{itemInView:w}=d,A=!S||w(_),C=t+1,I=s.length>0?`${s}_${C}`:`${C}`,x=o&&!!E&&!!E.length,B=x?null!==(p=m[k])&&void 0!==p?p:y:void 0,P=!(null==g||!g.includes(k)),T=P||A,O=((e,t)=>(0,u.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e)(k,i),N=c||O&&x;return(0,a.createElement)(f.AsyncModeProvider,{key:k,value:!O},T&&(0,a.createElement)(gb,{block:e,selectBlock:n,isSelected:O,isBranchSelected:N,isDragged:P,level:l,position:C,rowCount:v,siblingBlockCount:v,showBlockMovers:r,path:I,isExpanded:B,listPosition:_,selectedClientIds:i}),!T&&(0,a.createElement)("tr",null,(0,a.createElement)("td",{className:"block-editor-list-view-placeholder"})),x&&B&&!P&&(0,a.createElement)(vb,{blocks:E,selectBlock:n,showBlockMovers:r,showNestedBlocks:o,level:l+1,path:I,listPosition:_+1,fixedListWindow:d,isBranchSelected:N,selectedClientIds:i,expandNested:y}))})))}vb.defaultProps={selectBlock:()=>{}};var _b=(0,a.memo)(vb);function kb(e){let{listViewRef:t,blockDropTarget:n}=e;const{rootClientId:r,clientId:o,dropPosition:i}=n||{},[l,s]=(0,a.useMemo)((()=>{if(!t.current)return[];return[r?t.current.querySelector(`[data-block="${r}"]`):void 0,o?t.current.querySelector(`[data-block="${o}"]`):void 0]}),[r,o]),c=s||l,u=(0,a.useCallback)((()=>{if(!l)return 0;const e=c.getBoundingClientRect();return l.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left}),[l,c]),p=(0,a.useMemo)((()=>{if(!c)return{};const e=u();return{width:c.offsetWidth-e}}),[u,c]),f=(0,a.useCallback)((()=>{if(!c)return{};const e=c.ownerDocument,t=c.getBoundingClientRect(),n=u(),r={left:t.left+n,right:t.right,width:0,height:t.height,ownerDocument:e};return"top"===i?{...r,top:t.top,bottom:t.top}:"bottom"===i||"inside"===i?{...r,top:t.bottom,bottom:t.bottom}:{}}),[c,i,u]);return c?(0,a.createElement)(d.Popover,{noArrow:!0,animate:!1,getAnchorRect:f,focusOnMount:!1,className:"block-editor-list-view-drop-indicator"},(0,a.createElement)("div",{style:p,className:"block-editor-list-view-drop-indicator__line"})):null}function Eb(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,f.useDispatch)(qn),{getBlockName:r,getBlockParents:i,getBlockSelectionStart:l,getBlockSelectionEnd:s,getSelectedBlockClientIds:c,hasMultiSelection:p,hasSelectedBlock:d}=(0,f.useSelect)(qn),{getBlockType:y}=(0,f.useSelect)(o.store),g=(0,a.useCallback)((async(o,a,s)=>{if(null==o||!o.shiftKey)return await e(),void n(a);o.preventDefault();const f="keydown"===o.type&&(o.keyCode===bc.UP||o.keyCode===bc.DOWN||o.keyCode===bc.HOME||o.keyCode===bc.END);if(!f&&!d()&&!p())return void n(a,null);const g=c(),h=[...i(a),a];f&&!g.some((e=>h.includes(e)))&&await e();let b=l(),v=a;f&&(d()||p()||(b=a),s&&(v=s));const _=i(b),k=i(v),{start:E,end:S}=function(e,t,n,r){const o=[...n,e],i=[...r,t],l=Math.min(o.length,i.length)-1;return{start:o[l],end:i[l]}}(b,v,_,k);await t(E,S,null);const w=c();if((o.keyCode===bc.HOME||o.keyCode===bc.END)&&w.length>1)return;const A=(0,u.difference)(g,w);let C;if(1===A.length){var I;const e=null===(I=y(r(A[0])))||void 0===I?void 0:I.title;e&&(C=(0,m.sprintf)((0,m.__)("%s deselected."),e))}else A.length>1&&(C=(0,m.sprintf)((0,m.__)("%s blocks deselected."),A.length));C&&(0,Lt.speak)(C)}),[e,r,y,i,l,s,c,p,d,t,n]);return{updateBlockSelection:g}}function Sb(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const wb=["top","bottom"];function Ab(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:r,canInsertBlocks:o}=(0,f.useSelect)(qn),[i,l]=(0,a.useState)(),{rootClientId:s,blockIndex:c}=i||{},u=_y(s,c),d=r(),y=(0,p.useThrottle)((0,a.useCallback)(((r,i)=>{const a={x:r.clientX,y:r.clientY},s=!(null==d||!d.length),c=function(e,t){let n,r,o,i;for(const l of e){if(l.isDraggedBlock)continue;const a=l.element.getBoundingClientRect(),[s,c]=Ey(t,a,wb),u=Sb(t,a);if(void 0===o||s<o||u){o=s;const t=e.indexOf(l),p=e[t-1];if("top"===c&&p&&p.rootClientId===l.rootClientId&&!p.isDraggedBlock?(r=p,n="bottom",i=p.element.getBoundingClientRect()):(r=l,n=c,i=a),u)break}}if(!r)return;const l="bottom"===n;if(l&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,i)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(!r.canInsertDraggedBlocksAsSibling)return;const a=l?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+a,dropPosition:n}}(Array.from(i.querySelectorAll("[data-block]")).map((r=>{const i=r.dataset.block,l=e(i);return{clientId:i,rootClientId:l,blockIndex:t(i),element:r,isDraggedBlock:!!s&&d.includes(i),innerBlockCount:n(i),canInsertDraggedBlocksAsSibling:!s||o(d,l),canInsertDraggedBlocksAsChild:!s||o(d,i)}})),a);c&&l(c)}),[d]),200);return{ref:(0,p.__experimentalUseDropZone)({onDrop:u,onDragOver(e){y(e,e.currentTarget)},onDragEnd(){y.cancel(),l(null)}}),target:i}}const Cb=(e,t)=>Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;var Ib=(0,a.forwardRef)((function(e,t){let{blocks:n,__experimentalFeatures:r,__experimentalPersistentListViewFeatures:o,__experimentalHideContainerBlockActions:i,showNestedBlocks:s,showBlockMovers:c,id:u,expandNested:y=!1,...g}=e;const{clientIdsTree:h,draggedClientIds:b,selectedClientIds:v}=function(e){return(0,f.useSelect)((t=>{const{getDraggedBlockClientIds:n,getSelectedBlockClientIds:r,__unstableGetClientIdsTree:o}=t(qn);return{selectedClientIds:r(),draggedClientIds:n(),clientIdsTree:e||o()}}),[e])}(n),{visibleBlockCount:_}=(0,f.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n}=e(qn),r=(null==b?void 0:b.length)>0?n(b).length+1:0;return{visibleBlockCount:t()-r}}),[b]),{updateBlockSelection:k}=Eb(),[E,S]=(0,a.useReducer)(Cb,{}),{ref:w,target:A}=Ab(),C=(0,a.useRef)(),I=(0,p.useMergeRefs)([C,w,t]),x=(0,a.useRef)(!1),{setSelectedTreeId:B}=function(e){let{firstSelectedBlockClientId:t,setExpandedState:n}=e;const[r,o]=(0,a.useState)(null),{selectedBlockParentClientIds:i}=(0,f.useSelect)((e=>{const{getBlockParents:n}=e(qn);return{selectedBlockParentClientIds:n(t,!1)}}),[t]),l=Array.isArray(i)&&i.length?i:null;return(0,a.useEffect)((()=>{r!==t&&l&&n({type:"expand",clientIds:i})}),[t]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:v[0],setExpandedState:S}),P=(0,a.useCallback)(((e,t)=>{k(e,t),B(t)}),[B,k]);(0,a.useEffect)((()=>{x.current=!0}),[]);const[T]=(0,p.__experimentalUseFixedWindowList)(C,36,_,{useWindowing:o,windowOverscan:40}),O=(0,a.useCallback)((e=>{e&&S({type:"expand",clientIds:[e]})}),[S]),N=(0,a.useCallback)((e=>{e&&S({type:"collapse",clientIds:[e]})}),[S]),R=(0,a.useCallback)((e=>{var t;O(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}),[O]),F=(0,a.useCallback)((e=>{var t;N(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}),[N]),M=(0,a.useCallback)(((e,t,n)=>{var r,o;e.shiftKey&&k(e,null==t||null===(r=t.dataset)||void 0===r?void 0:r.block,null==n||null===(o=n.dataset)||void 0===o?void 0:o.block)}),[k]),D=(0,a.useMemo)((()=>({__experimentalFeatures:r,__experimentalPersistentListViewFeatures:o,__experimentalHideContainerBlockActions:i,isTreeGridMounted:x.current,draggedClientIds:b,expandedState:E,expand:O,collapse:N})),[r,o,i,x.current,b,E,O,N]);return(0,a.createElement)(f.AsyncModeProvider,{value:!0},(0,a.createElement)(kb,{listViewRef:C,blockDropTarget:A}),(0,a.createElement)(d.__experimentalTreeGrid,{id:u,className:"block-editor-list-view-tree","aria-label":(0,m.__)("Block navigation structure"),ref:I,onCollapseRow:F,onExpandRow:R,onFocusRow:M},(0,a.createElement)(yb.Provider,{value:D},(0,a.createElement)(_b,l({blocks:h,selectBlock:P,showNestedBlocks:s,showBlockMovers:c,fixedListWindow:T,selectedClientIds:v,expandNested:y},g)))))}));function xb(e){let{isEnabled:t,onToggle:n,isOpen:r,innerRef:o,...i}=e;return(0,a.createElement)(d.Button,l({},i,{ref:o,icon:ab,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:(0,m.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!t}))}var Bb=(0,a.forwardRef)((function(e,t){let{isDisabled:n,__experimentalFeatures:r,...o}=e;const i=(0,f.useSelect)((e=>!!e(qn).getBlockCount()),[])&&!n;return(0,a.createElement)(d.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:e=>{let{isOpen:n,onToggle:r}=e;return(0,a.createElement)(xb,l({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:i}))},renderContent:()=>(0,a.createElement)("div",{className:"block-editor-block-navigation__container"},(0,a.createElement)("p",{className:"block-editor-block-navigation__label"},(0,m.__)("List view")),(0,a.createElement)(Ib,{showNestedBlocks:!0,__experimentalFeatures:r}))})}));function Pb(e){let{genericPreviewBlock:t,style:n,className:r,activeStyle:o}=e;const i=cf(r,o,n),l=(0,a.useMemo)((()=>({...t,title:n.label||n.name,description:n.description,initialAttributes:{...t.attributes,className:i+" block-editor-block-styles__block-preview-container"}})),[t,i]);return(0,a.createElement)(pp,{item:l,isStylePreview:!0})}function Tb(e){let{children:t,scope:n,...r}=e;return(0,a.createElement)(d.Fill,{name:`BlockStylesPreviewPanel/${n}`},(0,a.createElement)("div",r,t))}function Ob(e){let{clientId:t,onSwitch:n=u.noop,onHoverClassName:r=u.noop,scope:o}=e;const{onSelect:i,stylesToRender:l,activeStyle:s,genericPreviewBlock:f,className:y}=pf({clientId:t,onSwitch:n}),[m,g]=(0,a.useState)(null),[h,b]=(0,a.useState)(0),v=(0,p.useViewportMatch)("medium","<");if((0,a.useLayoutEffect)((()=>{const e=document.querySelector(".interface-interface-skeleton__content"),t=(null==e?void 0:e.scrollTop)||0;b(t+16)}),[m]),!l||0===l.length)return null;const _=(0,u.debounce)(g,250),k=e=>{i(e),r(null),g(null),_.cancel()},E=e=>{var t;m!==e?(_(e),r(null!==(t=null==e?void 0:e.name)&&void 0!==t?t:null)):_.cancel()};return(0,a.createElement)("div",{className:"block-editor-block-styles"},(0,a.createElement)("div",{className:"block-editor-block-styles__variants"},l.map((e=>{const t=e.label||e.name;return(0,a.createElement)(d.Button,{className:c()("block-editor-block-styles__item",{"is-active":s.name===e.name}),key:e.name,variant:"secondary",label:t,onMouseEnter:()=>E(e),onFocus:()=>E(e),onMouseLeave:()=>E(null),onBlur:()=>E(null),onKeyDown:t=>{bc.ENTER!==t.keyCode&&bc.SPACE!==t.keyCode||(t.preventDefault(),k(e))},onClick:()=>k(e),role:"button",tabIndex:"0"},(0,a.createElement)(d.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text"},t))}))),m&&!v&&(0,a.createElement)(Tb,{scope:o,className:"block-editor-block-styles__preview-panel",style:{top:h},onMouseLeave:()=>E(null)},(0,a.createElement)(Pb,{activeStyle:s,className:y,genericPreviewBlock:f,style:m})))}Ob.Slot=function(e){let{scope:t}=e;return(0,a.createElement)(d.Slot,{name:`BlockStylesPreviewPanel/${t}`})};var Nb=Ob;var Rb=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Fb=function(e){let{icon:t=Rb,label:n=(0,m.__)("Choose variation"),instructions:r=(0,m.__)("Select a variation to start with."),variations:o,onSelect:i,allowSkip:l}=e;const s=c()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return(0,a.createElement)(d.Placeholder,{icon:t,label:n,instructions:r,className:s},(0,a.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,m.__)("Block variations")},o.map((e=>(0,a.createElement)("li",{key:e.name},(0,a.createElement)(d.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>i(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,a.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))))),l&&(0,a.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,a.createElement)(d.Button,{variant:"link",onClick:()=>i()},(0,m.__)("Skip"))))};var Mb=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));const Db="carousel",Lb="grid",Ub=e=>{let{onStartBlank:t,onBlockPatternSelect:n}=e;return(0,a.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},t&&(0,a.createElement)(d.Button,{onClick:t},(0,m.__)("Start blank")),(0,a.createElement)(d.Button,{variant:"primary",onClick:n},(0,m.__)("Choose")))},jb=e=>{let{handlePrevious:t,handleNext:n,activeSlide:r,totalSlides:o}=e;return(0,a.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},(0,a.createElement)(d.Button,{icon:jd,label:(0,m.__)("Previous pattern"),onClick:t,disabled:0===r}),(0,a.createElement)(d.Button,{icon:Ud,label:(0,m.__)("Next pattern"),onClick:n,disabled:r===o-1}))};var Vb=e=>{let{viewMode:t,setViewMode:n,handlePrevious:r,handleNext:o,activeSlide:i,totalSlides:l,onBlockPatternSelect:s,onStartBlank:c}=e;const u=t===Db,p=(0,a.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},(0,a.createElement)(d.Button,{icon:ur,label:(0,m.__)("Carousel view"),onClick:()=>n(Db),isPressed:u}),(0,a.createElement)(d.Button,{icon:Mb,label:(0,m.__)("Grid view"),onClick:()=>n(Lb),isPressed:t===Lb}));return(0,a.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},u&&(0,a.createElement)(jb,{handlePrevious:r,handleNext:o,activeSlide:i,totalSlides:l}),p,u&&(0,a.createElement)(Ub,{onBlockPatternSelect:s,onStartBlank:c}))};var zb=function(e,t,n){return(0,f.useSelect)((r=>{const{getBlockRootClientId:o,__experimentalGetPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:l}=r(qn),a=o(e);return n?l(a).filter(n):i(t,a)}),[e,t,n])};const Gb=e=>{let{viewMode:t,activeSlide:n,patterns:r,onBlockPatternSelect:o,height:i}=e;const s=(0,d.__unstableUseCompositeState)(),c="block-editor-block-pattern-setup__container";if(t===Db){const e=new Map([[n,"active-slide"],[n-1,"previous-slide"],[n+1,"next-slide"]]);return(0,a.createElement)("div",{className:"block-editor-block-pattern-setup__carousel",style:{height:i}},(0,a.createElement)("div",{className:c},(0,a.createElement)("ul",{className:"carousel-container"},r.map(((t,n)=>(0,a.createElement)(Wb,{className:e.get(n)||"",key:t.name,pattern:t,minHeight:i}))))))}return(0,a.createElement)("div",{style:{height:i},className:"block-editor-block-pattern-setup__grid"},(0,a.createElement)(d.__unstableComposite,l({},s,{role:"listbox",className:c,"aria-label":(0,m.__)("Patterns list")}),r.map((e=>(0,a.createElement)(Hb,{key:e.name,pattern:e,onSelect:o,composite:s})))))};function Hb(e){let{pattern:t,onSelect:n,composite:r}=e;const o="block-editor-block-pattern-setup-list",{blocks:i,description:s,viewportWidth:c=700}=t,u=(0,p.useInstanceId)(Hb,`${o}__item-description`);return(0,a.createElement)("div",{className:`${o}__list-item`,"aria-label":t.title,"aria-describedby":t.description?u:void 0},(0,a.createElement)(d.__unstableCompositeItem,l({role:"option",as:"div"},r,{className:`${o}__item`,onClick:()=>n(i)}),(0,a.createElement)(cp,{blocks:i,viewportWidth:c})),!!s&&(0,a.createElement)(d.VisuallyHidden,{id:u},s))}function Wb(e){let{className:t,pattern:n,minHeight:r}=e;const{blocks:o,title:i,description:l}=n,s=(0,p.useInstanceId)(Wb,"block-editor-block-pattern-setup-list__item-description");return(0,a.createElement)("li",{className:`pattern-slide ${t}`,"aria-label":i,"aria-describedby":l?s:void 0},(0,a.createElement)(cp,{blocks:o,__experimentalMinHeight:r}),!!l&&(0,a.createElement)(d.VisuallyHidden,{id:s},l))}var $b=e=>{let{clientId:t,blockName:n,filterPatternsFn:r,startBlankComponent:i,onBlockPatternSelect:l}=e;const[s,c]=(0,a.useState)(Db),[u,d]=(0,a.useState)(0),[y,m]=(0,a.useState)(!1),{replaceBlock:g}=(0,f.useDispatch)(qn),h=zb(t,n,r),[b,{height:v}]=(0,p.useResizeObserver)();if(null==h||!h.length||y)return i;const _=l||(e=>{const n=e.map((e=>(0,o.cloneBlock)(e)));g(t,n)}),k=i?()=>{m(!0)}:void 0;return(0,a.createElement)(a.Fragment,null,b,(0,a.createElement)("div",{className:`block-editor-block-pattern-setup view-mode-${s}`},(0,a.createElement)(Gb,{viewMode:s,activeSlide:u,patterns:h,onBlockPatternSelect:_,height:v-120}),(0,a.createElement)(Vb,{viewMode:s,setViewMode:c,activeSlide:u,totalSlides:h.length,handleNext:()=>{d((e=>e+1))},handlePrevious:()=>{d((e=>e-1))},onBlockPatternSelect:()=>{_(h[u].blocks)},onStartBlank:k})))};function Kb(e){let{className:t,onSelectVariation:n,selectedValue:r,variations:o}=e;return(0,a.createElement)("fieldset",{className:t},(0,a.createElement)(d.VisuallyHidden,{as:"legend"},(0,m.__)("Transform to variation")),o.map((e=>(0,a.createElement)(d.Button,{key:e.name,icon:e.icon,isPressed:r===e.name,label:r===e.name?e.title:(0,m.sprintf)((0,m.__)("Transform to %s"),e.title),onClick:()=>n(e.name),"aria-label":e.title,showTooltip:!0}))))}function qb(e){let{className:t,onSelectVariation:n,selectedValue:r,variations:o}=e;const i=o.map((e=>{let{name:t,title:n,description:r}=e;return{value:t,label:n,info:r}}));return(0,a.createElement)(d.DropdownMenu,{className:t,label:(0,m.__)("Transform to variation"),text:(0,m.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${t}__popover`},icon:zd,toggleProps:{iconPosition:"right"}},(()=>(0,a.createElement)("div",{className:`${t}__container`},(0,a.createElement)(d.MenuGroup,null,(0,a.createElement)(d.MenuItemsChoice,{choices:i,value:r,onSelect:n})))))}var Jb=function(e){let{blockClientId:t}=e;const{updateBlockAttributes:n}=(0,f.useDispatch)(qn),{activeBlockVariation:r,variations:i}=(0,f.useSelect)((e=>{const{getActiveBlockVariation:n,getBlockVariations:r}=e(o.store),{getBlockName:i,getBlockAttributes:l}=e(qn),a=t&&i(t);return{activeBlockVariation:n(a,l(t)),variations:a&&r(a,"transform")}}),[t]),l=null==r?void 0:r.name,s=(0,a.useMemo)((()=>{const e=new Set;return!!i&&(i.forEach((t=>{t.icon&&e.add(t.icon)})),e.size===i.length)}),[i]);if(null==i||!i.length)return null;const c=s?Kb:qb;return(0,a.createElement)(c,{className:"block-editor-block-variation-transforms",onSelectVariation:e=>{n(t,{...i.find((t=>{let{name:n}=t;return n===e})).attributes})},selectedValue:l,variations:i})},Yb=(0,p.createHigherOrderComponent)((e=>t=>{const n=Cr("color.palette"),r=!Cr("color.custom"),o=void 0===t.colors?n:t.colors,i=void 0===t.disableCustomColors?r:t.disableCustomColors,s=!(0,u.isEmpty)(o)||!i;return(0,a.createElement)(e,l({},t,{colors:o,disableCustomColors:i,hasColorsToChoose:s}))}),"withColorContext"),Qb=Yb(d.ColorPalette);function Xb(e){let{onChange:t,value:n,...r}=e;return(0,a.createElement)(Uy,l({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var Zb=window.wp.date;const ev=new Date(2022,0,25);function tv(e){let{format:t,defaultFormat:n,onChange:r}=e;return(0,a.createElement)("fieldset",{className:"block-editor-date-format-picker"},(0,a.createElement)(d.VisuallyHidden,{as:"legend"},(0,m.__)("Date format")),(0,a.createElement)(d.ToggleControl,{label:(0,a.createElement)(a.Fragment,null,(0,m.__)("Default format"),(0,a.createElement)("span",{className:"block-editor-date-format-picker__default-format-toggle-control__hint"},(0,Zb.dateI18n)(n,ev))),checked:!t,onChange:e=>r(e?null:n)}),t&&(0,a.createElement)(nv,{format:t,onChange:r}))}function nv(e){var t;let{format:n,onChange:r}=e;const o=(0,u.uniq)(["Y-m-d",(0,m._x)("n/j/Y","short date format"),(0,m._x)("n/j/Y g:i A","short date format with time"),(0,m._x)("M j, Y","medium date format"),(0,m._x)("M j, Y g:i A","medium date format with time"),(0,m._x)("F j, Y","long date format")]),i=o.map(((e,t)=>({key:`suggested-${t}`,name:(0,Zb.dateI18n)(e,ev),format:e}))),l={key:"custom",name:(0,m.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",__experimentalHint:(0,m.__)("Enter your own date format")},[s,c]=(0,a.useState)((()=>!!n&&!o.includes(n)));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.BaseControl,{className:"block-editor-date-format-picker__custom-format-select-control"},(0,a.createElement)(d.CustomSelectControl,{label:(0,m.__)("Choose a format"),options:[...i,l],value:s?l:null!==(t=i.find((e=>e.format===n)))&&void 0!==t?t:l,onChange:e=>{let{selectedItem:t}=e;t===l?c(!0):(c(!1),r(t.format))}})),s&&(0,a.createElement)(d.TextControl,{label:(0,m.__)("Custom format"),hideLabelFromVision:!0,help:(0,a.createInterpolateElement)((0,m.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,a.createElement)(d.ExternalLink,{href:(0,m.__)("https://wordpress.org/support/article/formatting-date-and-time/")})}),value:n,onChange:e=>r(e)}))}const rv=(0,m.__)("(%s: color %s)"),ov=(0,m.__)("(%s: gradient %s)"),iv=["colors","disableCustomColors","gradients","disableCustomGradients"],lv=e=>{let{colors:t,gradients:n,settings:r}=e;return r.map(((e,r)=>{let o,{colorValue:i,gradientValue:l,label:s,colors:c,gradients:u}=e;if(!i&&!l)return null;if(i){const e=Hy(c||t,i);o=(0,m.sprintf)(rv,s.toLowerCase(),e&&e.name||i)}else{const e=Sm(u||n,i);o=(0,m.sprintf)(ov,s.toLowerCase(),e&&e.name||l)}return(0,a.createElement)(d.ColorIndicator,{key:r,colorValue:i||l,"aria-label":o})}))},av=e=>{let{className:t,colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:i,children:s,settings:p,title:f,showTitle:y=!0,__experimentalHasMultipleOrigins:m,__experimentalIsRenderedInSidebar:g,enableAlpha:h,...b}=e;if((0,u.isEmpty)(n)&&(0,u.isEmpty)(r)&&o&&i&&(0,u.every)(p,(e=>(0,u.isEmpty)(e.colors)&&(0,u.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients))))return null;const v=(0,a.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},f,(0,a.createElement)(lv,{colors:n,gradients:r,settings:p}));return(0,a.createElement)(d.PanelBody,l({className:c()("block-editor-panel-color-gradient-settings",t),title:y?v:void 0},b),(0,a.createElement)(jy,{settings:p,colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:i,__experimentalHasMultipleOrigins:m,__experimentalIsRenderedInSidebar:g,enableAlpha:h}),!!s&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.__experimentalSpacer,{marginY:4})," ",s))},sv=e=>{const t=Vy();return t.colors=Cr("color.palette"),t.gradients=Cr("color.gradients"),(0,a.createElement)(av,l({},t,e))},cv=e=>{const t=zy();return(0,a.createElement)(av,l({},t,e))};var uv=e=>(0,u.every)(iv,(t=>e.hasOwnProperty(t)))?(0,a.createElement)(av,e):e.__experimentalHasMultipleOrigins?(0,a.createElement)(cv,e):(0,a.createElement)(sv,e),pv=function(e,t){return pv=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])},pv(e,t)};var dv=function(){return dv=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},dv.apply(this,arguments)};Object.create;Object.create;var fv=n(7970),yv=n.n(fv);function mv(e,t,n,r,o,i){void 0===i&&(i=0);var l=Cv(e,t,i),a=l.width,s=l.height,c=Math.min(a,n),u=Math.min(s,r);return c>u*o?{width:u*o,height:u}:{width:c,height:c/o}}function gv(e,t,n,r,o){void 0===o&&(o=0);var i=Cv(t.width,t.height,o),l=i.width,a=i.height;return{x:hv(e.x,l,n.width,r),y:hv(e.y,a,n.height,r)}}function hv(e,t,n,r){var o=t*r/2-n/2;return Math.min(o,Math.max(e,-o))}function bv(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function vv(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function _v(e,t,n,r,o,i,l){void 0===i&&(i=0),void 0===l&&(l=!0);var a=l&&0===i?kv:Ev,s={x:a(100,((t.width-n.width/o)/2-e.x/o)/t.width*100),y:a(100,((t.height-n.height/o)/2-e.y/o)/t.height*100),width:a(100,n.width/t.width*100/o),height:a(100,n.height/t.height*100/o)},c=Math.round(a(t.naturalWidth,s.width*t.naturalWidth/100)),u=Math.round(a(t.naturalHeight,s.height*t.naturalHeight/100)),p=t.naturalWidth>=t.naturalHeight*r?{width:Math.round(u*r),height:u}:{width:c,height:Math.round(c/r)};return{croppedAreaPercentages:s,croppedAreaPixels:dv(dv({},p),{x:Math.round(a(t.naturalWidth-p.width,s.x*t.naturalWidth/100)),y:Math.round(a(t.naturalHeight-p.height,s.y*t.naturalHeight/100))})}}function kv(e,t){return Math.min(e,Math.max(0,t))}function Ev(e,t){return t}function Sv(e,t,n){var r=t.width/t.naturalWidth,o=function(e,t,n){var r=t.width/t.naturalWidth;if(n)return n.height>n.width?n.height/r/e.height:n.width/r/e.width;var o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,n),i=r*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*i,y:((t.naturalHeight-e.height)/2-e.y)*i},zoom:o}}function wv(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Av(e,t,n,r,o){var i=Math.cos,l=Math.sin,a=o*Math.PI/180;return[(e-n)*i(a)-(t-r)*l(a)+n,(e-n)*l(a)+(t-r)*i(a)+r]}function Cv(e,t,n){var r=e/2,o=t/2,i=[Av(0,0,r,o,n),Av(e,0,r,o,n),Av(e,t,r,o,n),Av(0,t,r,o,n)],l=Math.min.apply(Math,i.map((function(e){return e[0]}))),a=Math.max.apply(Math,i.map((function(e){return e[0]}))),s=Math.min.apply(Math,i.map((function(e){return e[1]}))),c=Math.max.apply(Math,i.map((function(e){return e[1]})));return{width:a-l,height:c-s}}function Iv(){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 xv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=null,n.videoRef=null,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.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){n.computeSizes(),n.emitCropData(),n.setInitialCrop(),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(){var e=n.props,t=e.initialCroppedAreaPixels,r=e.cropSize;if(t){var o=Sv(t,n.mediaSize,r),i=o.crop,l=o.zoom;n.props.onCropChange(i),n.props.onZoomChange&&n.props.onZoomChange(l)}},n.computeSizes=function(){var e,t,r,o,i,l,a=n.imageRef||n.videoRef;if(a&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.mediaSize={width:a.offsetWidth,height:a.offsetHeight,naturalWidth:(null===(e=n.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(r=n.imageRef)||void 0===r?void 0:r.naturalHeight)||(null===(o=n.videoRef)||void 0===o?void 0:o.videoHeight)||0};var s=n.props.cropSize?n.props.cropSize:mv(a.offsetWidth,a.offsetHeight,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===s.height&&(null===(l=n.state.cropSize)||void 0===l?void 0:l.width)===s.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(s),n.setState({cropSize:s},n.recomputeCropPosition)}},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.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.onDragStart=function(e){var t,r,o=e.x,i=e.y;n.dragStartPosition={x:o,y:i},n.dragStartCrop=dv({},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.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.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},l=n.props.restrictPosition?gv(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(l)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){e.preventDefault();var r=t.getMousePoint(e),o=yv()(e).pixelY,i=n.props.zoom-o*n.props.zoomSpeed/200;n.setNewZoom(i,r),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=window.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,l=o.zoom;return{x:(t+i.x)/l,y:(r+i.y)/l}},n.setNewZoom=function(e,t){if(n.state.cropSize&&n.props.onZoomChange){var r=n.getPointOnContainer(t),o=n.getPointOnMedia(r),i=Math.min(n.props.maxZoom,Math.max(e,n.props.minZoom)),l={x:o.x*i-r.x,y:o.y*i-r.y},a=n.props.restrictPosition?gv(l,n.mediaSize,n.state.cropSize,i,n.props.rotation):l;n.props.onCropChange(a),n.props.onZoomChange(i)}},n.getCropData=function(){return n.state.cropSize?_v(n.props.restrictPosition?gv(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?gv(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}pv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),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",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,n,r,o,i,l,a,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===(l=this.props.crop)||void 0===l?void 0:l.x)&&(null===(a=e.crop)||void 0===a?void 0:a.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)||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=bv(n,r),this.lastPinchRotation=vv(n,r),this.onDragStart(wv(n,r))},t.prototype.onPinchMove=function(e){var n=this,r=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),i=wv(r,o);this.onDrag(i),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=bv(r,o),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i),n.lastPinchDistance=e;var l=vv(r,o),a=n.props.rotation+(l-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(a),n.lastPinchRotation=l}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,o=t.mediaProps,i=t.transform,l=t.crop,a=l.x,s=l.y,c=t.rotation,u=t.zoom,p=t.cropShape,d=t.showGrid,f=t.style,y=f.containerStyle,m=f.cropAreaStyle,g=f.mediaStyle,h=t.classes,b=h.containerClassName,v=h.cropAreaClassName,_=h.mediaClassName,k=t.objectFit;return _i().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:y,className:Iv("reactEasyCrop_Container",b)},n?_i().createElement("img",dv({alt:"",className:Iv("reactEasyCrop_Image","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",_)},o,{src:n,ref:function(t){return e.imageRef=t},style:dv(dv({},g),{transform:i||"translate("+a+"px, "+s+"px) rotate("+c+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):r&&_i().createElement("video",dv({autoPlay:!0,loop:!0,muted:!0,className:Iv("reactEasyCrop_Video","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",_)},o,{ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:dv(dv({},g),{transform:i||"translate("+a+"px, "+s+"px) rotate("+c+"deg) scale("+u+")"}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map((function(e){return _i().createElement("source",dv({key:e.src},e))}))),this.state.cropSize&&_i().createElement("div",{style:dv(dv({},m),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:Iv("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}(_i().Component),Bv=xv;const Pv={position:"bottom right",isAlternate:!0};function Tv(e,t){const n=function(e){let{url:t,naturalWidth:n,naturalHeight:r}=e;const[o,l]=(0,a.useState)(),[s,c]=(0,a.useState)(),[u,p]=(0,a.useState)({x:0,y:0}),[d,f]=(0,a.useState)(),[y,m]=(0,a.useState)(),[g,h]=(0,a.useState)(),[b,v]=(0,a.useState)(),_=(0,a.useCallback)((()=>{p({x:0,y:0}),f(100),m(0),h(n/r),v(n/r)}),[n,r,p,f,m,h,v]),k=(0,a.useCallback)((()=>{const e=(y+90)%360;let o=n/r;if(y%180==90&&(o=r/n),0===e)return l(),m(e),h(1/g),void p({x:-u.y*o,y:u.x*o});const a=new window.Image;a.src=t,a.onload=function(t){const n=document.createElement("canvas");let r=0,i=0;e%180?(n.width=t.target.height,n.height=t.target.width):(n.width=t.target.width,n.height=t.target.height),90!==e&&180!==e||(r=n.width),270!==e&&180!==e||(i=n.height);const a=n.getContext("2d");a.translate(r,i),a.rotate(e*Math.PI/180),a.drawImage(t.target,0,0),n.toBlob((t=>{l(URL.createObjectURL(t)),m(e),h(1/g),p({x:-u.y*o,y:u.x*o})}))};const s=(0,i.applyFilters)("media.crossOrigin",void 0,t);"string"==typeof s&&(a.crossOrigin=s)}),[y,n,r,l,m,h,p]);return(0,a.useMemo)((()=>({editedUrl:o,setEditedUrl:l,crop:s,setCrop:c,position:u,setPosition:p,zoom:d,setZoom:f,rotation:y,setRotation:m,rotateClockwise:k,aspect:g,setAspect:h,defaultAspect:b,initializeTransformValues:_})),[o,l,s,c,u,p,d,f,y,m,k,g,h,b,_])}(e),{initializeTransformValues:r}=n;return(0,a.useEffect)((()=>{t&&r()}),[t,r]),n}const Ov=(0,a.createContext)({}),Nv=()=>(0,a.useContext)(Ov);function Rv(e){let{id:t,url:n,naturalWidth:r,naturalHeight:o,isEditing:i,onFinishEditing:l,onSaveImage:s,children:c}=e;const u=Tv({url:n,naturalWidth:r,naturalHeight:o},i),p=function(e){let{crop:t,rotation:n,height:r,width:o,aspect:i,url:l,id:s,onSaveImage:c,onFinishEditing:u}=e;const{createErrorNotice:p}=(0,f.useDispatch)(xp.store),[d,y]=(0,a.useState)(!1),g=(0,a.useCallback)((()=>{y(!1),u()}),[y,u]),h=(0,a.useCallback)((()=>{y(!0);let e={};(t.width<99.9||t.height<99.9)&&(e=t),n>0&&(e.rotation=n),e.src=l,Hh()({path:`/wp/v2/media/${s}/edit`,method:"POST",data:e}).then((e=>{c({id:e.id,url:e.source_url,height:r&&o?o/i:void 0})})).catch((e=>{p((0,m.sprintf)((0,m.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{y(!1),u()}))}),[y,t,n,r,o,i,l,c,p,y,u]);return(0,a.useMemo)((()=>({isInProgress:d,apply:h,cancel:g})),[d,h,g])}({id:t,url:n,onSaveImage:s,onFinishEditing:l,...u}),d=(0,a.useMemo)((()=>({...u,...p})),[u,p]);return(0,a.createElement)(Ov.Provider,{value:d},c)}function Fv(e){let{url:t,width:n,height:r,clientWidth:o,naturalHeight:i,naturalWidth:l}=e;const{isInProgress:s,editedUrl:u,position:p,zoom:f,aspect:y,setPosition:m,setCrop:g,setZoom:h,rotation:b}=Nv();let v=r||o*i/l;return b%180==90&&(v=o*l/i),(0,a.createElement)("div",{className:c()("wp-block-image__crop-area",{"is-applying":s}),style:{width:n||o,height:v}},(0,a.createElement)(Bv,{image:u||t,disabled:s,minZoom:1,maxZoom:3,crop:p,zoom:f/100,aspect:y,onCropChange:m,onCropComplete:e=>{g(e)},onZoomChange:e=>{h(100*e)}}),s&&(0,a.createElement)(d.Spinner,null))}var Mv=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));function Dv(){const{isInProgress:e,zoom:t,setZoom:n}=Nv();return(0,a.createElement)(d.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:Pv,renderToggle:t=>{let{isOpen:n,onToggle:r}=t;return(0,a.createElement)(d.ToolbarButton,{icon:Mv,label:(0,m.__)("Zoom"),onClick:r,"aria-expanded":n,disabled:e})},renderContent:()=>(0,a.createElement)(d.RangeControl,{label:(0,m.__)("Zoom"),min:100,max:300,value:Math.round(t),onChange:n})})}var Lv=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 Uv(e){let{aspectRatios:t,isDisabled:n,label:r,onClick:o,value:i}=e;return(0,a.createElement)(d.MenuGroup,{label:r},t.map((e=>{let{title:t,aspect:r}=e;return(0,a.createElement)(d.MenuItem,{key:r,disabled:n,onClick:()=>{o(r)},role:"menuitemradio",isSelected:r===i,icon:r===i?lf:void 0},t)})))}function jv(e){let{toggleProps:t}=e;const{isInProgress:n,aspect:r,setAspect:o,defaultAspect:i}=Nv();return(0,a.createElement)(d.DropdownMenu,{icon:Lv,label:(0,m.__)("Aspect Ratio"),popoverProps:Pv,toggleProps:t,className:"wp-block-image__aspect-ratio"},(e=>{let{onClose:t}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Uv,{isDisabled:n,onClick:e=>{o(e),t()},value:r,aspectRatios:[{title:(0,m.__)("Original"),aspect:i},{title:(0,m.__)("Square"),aspect:1}]}),(0,a.createElement)(Uv,{label:(0,m.__)("Landscape"),isDisabled:n,onClick:e=>{o(e),t()},value:r,aspectRatios:[{title:(0,m.__)("16:10"),aspect:1.6},{title:(0,m.__)("16:9"),aspect:16/9},{title:(0,m.__)("4:3"),aspect:4/3},{title:(0,m.__)("3:2"),aspect:1.5}]}),(0,a.createElement)(Uv,{label:(0,m.__)("Portrait"),isDisabled:n,onClick:e=>{o(e),t()},value:r,aspectRatios:[{title:(0,m.__)("10:16"),aspect:.625},{title:(0,m.__)("9:16"),aspect:9/16},{title:(0,m.__)("3:4"),aspect:3/4},{title:(0,m.__)("2:3"),aspect:2/3}]}))}))}var Vv=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 zv(){const{isInProgress:e,rotateClockwise:t}=Nv();return(0,a.createElement)(d.ToolbarButton,{icon:Vv,label:(0,m.__)("Rotate"),onClick:t,disabled:e})}function Gv(){const{isInProgress:e,apply:t,cancel:n}=Nv();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.ToolbarButton,{onClick:t,disabled:e},(0,m.__)("Apply")),(0,a.createElement)(d.ToolbarButton,{onClick:n},(0,m.__)("Cancel")))}function Hv(e){let{url:t,width:n,height:r,clientWidth:o,naturalHeight:i,naturalWidth:l}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Fv,{url:t,width:n,height:r,clientWidth:o,naturalHeight:i,naturalWidth:l}),(0,a.createElement)(or,null,(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(Dv,null),(0,a.createElement)(d.ToolbarItem,null,(e=>(0,a.createElement)(jv,{toggleProps:e}))),(0,a.createElement)(zv,null)),(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(Gv,null))))}const Wv=[25,50,75,100];function $v(e){let{imageWidth:t,imageHeight:n,imageSizeOptions:r=[],isResizable:o=!0,slug:i,width:l,height:s,onChange:c,onChangeImage:p=u.noop}=e;const{currentHeight:f,currentWidth:y,updateDimension:g,updateDimensions:h}=function(e,t,n,r,o){var i,l;const[s,c]=(0,a.useState)(null!==(i=null!=t?t:r)&&void 0!==i?i:""),[u,p]=(0,a.useState)(null!==(l=null!=e?e:n)&&void 0!==l?l:"");return(0,a.useEffect)((()=>{void 0===t&&void 0!==r&&c(r),void 0===e&&void 0!==n&&p(n)}),[r,n]),(0,a.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(s)&&c(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&p(e)}),[t,e]),{currentHeight:u,currentWidth:s,updateDimension:(e,t)=>{"width"===e?c(t):p(t),o({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{p(null!=e?e:n),c(null!=t?t:r),o({height:e,width:t})}}}(s,l,n,t,c);return(0,a.createElement)(a.Fragment,null,!(0,u.isEmpty)(r)&&(0,a.createElement)(d.SelectControl,{label:(0,m.__)("Image size"),value:i,options:r,onChange:p}),o&&(0,a.createElement)("div",{className:"block-editor-image-size-control"},(0,a.createElement)("p",{className:"block-editor-image-size-control__row"},(0,m.__)("Image dimensions")),(0,a.createElement)("div",{className:"block-editor-image-size-control__row"},(0,a.createElement)(d.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:(0,m.__)("Width"),value:y,min:1,onChange:e=>g("width",e)}),(0,a.createElement)(d.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:(0,m.__)("Height"),value:f,min:1,onChange:e=>g("height",e)})),(0,a.createElement)("div",{className:"block-editor-image-size-control__row"},(0,a.createElement)(d.ButtonGroup,{"aria-label":(0,m.__)("Image size presets")},Wv.map((e=>{const r=Math.round(t*(e/100)),o=Math.round(n*(e/100)),i=y===r&&f===o;return(0,a.createElement)(d.Button,{key:e,isSmall:!0,variant:i?"primary":void 0,isPressed:i,onClick:()=>h(o,r)},e,"%")}))),(0,a.createElement)(d.Button,{isSmall:!0,onClick:()=>h()},(0,m.__)("Reset")))))}var Kv=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,a.createElement)(D.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"}));var qv=e=>{let{value:t,onChange:n=u.noop,settings:r}=e;if(!r||!r.length)return null;const o=e=>r=>{n({...t,[e.id]:r})},i=r.map((e=>(0,a.createElement)(d.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:o(e),checked:!!t&&!!t[e.id]})));return(0,a.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,a.createElement)(d.VisuallyHidden,{as:"legend"},(0,m.__)("Currently selected link settings")),i)},Jv=n(5425),Yv=n.n(Jv);class Qv extends a.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,a.createRef)(),this.inputRef=(0,a.createRef)(),this.updateSuggestions=(0,u.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,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,Yv()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),e.value===r||this.props.disableSuggestions||this.isUpdatingSuggestions||(null!=r&&r.length?this.updateSuggestions(r):o&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{__experimentalFetchLinkSuggestions:n,__experimentalHandleURLSuggestions:r}=this.props;if(!n)return;const o=!(null!==(e=t)&&void 0!==e&&e.length);if(t=t.trim(),!o&&(t.length<2||!r&&(0,nd.isURL)(t)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const i=n(t,{isInitialSuggestions:o});i.then((e=>{this.suggestionsRequest===i&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak((0,m.sprintf)((0,m._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak((0,m.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)})).catch((()=>{this.suggestionsRequest===i&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:r,loading:o}=this.state;if(!t||!r.length||o){switch(e.keyCode){case bc.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case bc.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case bc.ENTER:this.props.onSubmit&&this.props.onSubmit(null,e)}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case bc.UP:{e.preventDefault();const t=n?n-1:r.length-1;this.setState({selectedSuggestion:t});break}case bc.DOWN:{e.preventDefault();const t=null===n||n===r.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case bc.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak((0,m.__)("Link selected.")));break;case bc.ENTER: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(e,t){let{value:n,instanceId:r,disableSuggestions:o,__experimentalShowInitialSuggestions:i=!1}=e,{showSuggestions:l}=t,a=l;const s=n&&n.length;return i||s||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:`block-editor-url-input-suggestions-${r}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${r}`}}render(){return(0,a.createElement)(a.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:r,placeholder:o=(0,m.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:l=""}=this.props,{loading:s,showSuggestions:u,selectedSuggestion:p,suggestionsListboxId:f,suggestionOptionIdPrefix:y}=this.state,g={id:`url-input-control-${r}`,label:e,className:c()("block-editor-url-input",t,{"is-full-width":n})},h={value:l,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:o,onKeyDown:this.onKeyDown,role:"combobox","aria-label":(0,m.__)("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":f,"aria-activedescendant":null!==p?`${y}-${p}`:void 0,ref:this.inputRef};return i?i(g,h,s):(0,a.createElement)(d.BaseControl,g,(0,a.createElement)("input",h),s&&(0,a.createElement)(d.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:r=!1}=this.props,{showSuggestions:o,suggestions:i,selectedSuggestion:s,suggestionsListboxId:p,suggestionOptionIdPrefix:f,loading:y}=this.state,m={id:p,ref:this.autocompleteRef,role:"listbox"},g=(e,t)=>({role:"option",tabIndex:"-1",id:`${f}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===s});return(0,u.isFunction)(t)&&o&&i.length?t({suggestions:i,selectedSuggestion:s,suggestionsListProps:m,buildSuggestionItemProps:g,isLoading:y,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:r&&!(n&&n.length)}):!(0,u.isFunction)(t)&&o&&i.length?(0,a.createElement)(d.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},(0,a.createElement)("div",l({},m,{className:c()("block-editor-url-input__suggestions",`${e}__suggestions`)}),i.map(((e,t)=>(0,a.createElement)(d.Button,l({},g(0,t),{key:e.id,className:c()("block-editor-url-input__suggestion",{"is-selected":t===s}),onClick:()=>this.handleOnClick(e)}),e.title))))):null}}var Xv=(0,p.compose)(p.withSafeTimeout,d.withSpokenMessages,p.withInstanceId,(0,f.withSelect)(((e,t)=>{if((0,u.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(qn);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(Qv);var Zv=e=>{let t,{searchTerm:n,onClick:r,itemProps:o,isSelected:i,buttonText:s}=e;return n?(t=s?(0,u.isFunction)(s)?s(n):s:(0,a.createInterpolateElement)((0,m.sprintf)((0,m.__)("Create: <mark>%s</mark>"),n),{mark:(0,a.createElement)("mark",null)}),(0,a.createElement)(d.Button,l({},o,{className:c()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":i}),onClick:r}),(0,a.createElement)(wo,{className:"block-editor-link-control__search-item-icon",icon:Bc}),(0,a.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,a.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null};var e_=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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"}));var t_=e=>{let{itemProps:t,suggestion:n,isSelected:r=!1,onClick:o,isURL:i=!1,searchTerm:s="",shouldShowType:u=!1}=e;return(0,a.createElement)(d.Button,l({},t,{onClick:o,className:c()("block-editor-link-control__search-item",{"is-selected":r,"is-url":i,"is-entity":!i})}),i&&(0,a.createElement)(wo,{className:"block-editor-link-control__search-item-icon",icon:e_}),(0,a.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,a.createElement)("span",{className:"block-editor-link-control__search-item-title"},(0,a.createElement)(d.TextHighlight,{text:n.title,highlight:s})),(0,a.createElement)("span",{"aria-hidden":!i,className:"block-editor-link-control__search-item-info"},!i&&((0,nd.filterURLForDisplay)((0,nd.safeDecodeURI)(n.url))||""),i&&(0,m.__)("Press ENTER to add this link"))),u&&n.type&&(0,a.createElement)("span",{className:"block-editor-link-control__search-item-type"},function(e){if(e.isFrontPage)return"front page";return"post_tag"===e.type?"tag":e.type}(n)))};const n_="__CREATE__",r_=[{id:"opensInNewTab",title:(0,m.__)("Open in new tab")}];function o_(e){let{instanceId:t,withCreateSuggestion:n,currentInputValue:r,handleSuggestionClick:o,suggestionsListProps:i,buildSuggestionItemProps:s,suggestions:u,selectedSuggestion:p,isLoading:f,isInitialSuggestions:y,createSuggestionButtonText:g,suggestionsQuery:h}=e;const b=c()("block-editor-link-control__search-results",{"is-loading":f}),v=["url","mailto","tel","internal"],_=1===u.length&&v.includes(u[0].type.toLowerCase()),k=n&&!_&&!y,E=!(null!=h&&h.type),S=`block-editor-link-control-search-results-label-${t}`,w=y?(0,m.__)("Recently updated"):(0,m.sprintf)((0,m.__)('Search results for "%s"'),r),A=(0,a.createElement)(y?a.Fragment:d.VisuallyHidden,{},(0,a.createElement)("span",{className:"block-editor-link-control__search-results-label",id:S},w));return(0,a.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},A,(0,a.createElement)("div",l({},i,{className:b,"aria-labelledby":S}),u.map(((e,t)=>k&&n_===e.type?(0,a.createElement)(Zv,{searchTerm:r,buttonText:g,onClick:()=>o(e),key:e.type,itemProps:s(e,t),isSelected:t===p}):n_===e.type?null:(0,a.createElement)(t_,{key:`${e.id}-${e.type}`,itemProps:s(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===p,isURL:v.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:E,isFrontPage:null==e?void 0:e.isFrontPage})))))}function i_(e){const t=(0,u.startsWith)(e,"#");return(0,nd.isURL)(e)||e&&e.includes("www.")||t}const l_=()=>Promise.resolve([]),a_=e=>{let t="URL";const n=(0,nd.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),(0,u.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,nd.prependHTTP)(e):e,type:t}])};function s_(e,t,n,r){const{fetchSearchSuggestions:o,pageOnFront:i}=(0,f.useSelect)((e=>{const{getSettings:t}=e(qn);return{pageOnFront:t().pageOnFront,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),l=t?a_:l_;return(0,a.useCallback)(((t,a)=>{let{isInitialSuggestions:s}=a;return i_(t)?l(t,{isInitialSuggestions:s}):(async(e,t,n,r,o,i,l)=>{const{isInitialSuggestions:a}=t;let s=!1,c=await Promise.all([n(e,t),r(e)]);c[0]=c[0].map((e=>Number(e.id)===l?(s=!0,e.isFrontPage=!0,e):e));const u=!e.includes(" ");return c=!s&&u&&i&&!a?c[0].concat(c[1]):c[0],a||i_(e)||!o?c:c.concat({title:e,url:e,type:n_})})(t,{...e,isInitialSuggestions:s},o,l,n,r,i)}),[l,o,n])}const c_=()=>Promise.resolve([]),u_=(0,a.forwardRef)(((e,t)=>{let{value:n,children:r,currentLink:o={},className:i=null,placeholder:l=null,withCreateSuggestion:s=!1,onCreateSuggestion:d=u.noop,onChange:f=u.noop,onSelect:y=u.noop,showSuggestions:g=!0,renderSuggestions:h=(e=>(0,a.createElement)(o_,e)),fetchSuggestions:b=null,allowDirectEntry:v=!0,showInitialSuggestions:_=!1,suggestionsQuery:k={},withURLSuggestion:E=!0,createSuggestionButtonText:S,useLabel:w=!1}=e;const A=s_(k,v,s,E),C=g?b||A:c_,I=(0,p.useInstanceId)(u_),[x,B]=(0,a.useState)(),P=async e=>{let t=e;if(n_!==e.type)(v||t&&Object.keys(t).length>=1)&&y({...(0,u.omit)(o,"id","url"),...t},t);else try{var n;t=await d(e.title),null!==(n=t)&&void 0!==n&&n.url&&y(t)}catch(e){}},T=c()(i,{"has-no-label":!w});return(0,a.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,a.createElement)(Xv,{label:w?"URL":void 0,className:T,value:n,onChange:(e,t)=>{f(e),B(t)},placeholder:null!=l?l:(0,m.__)("Search or type url"),__experimentalRenderSuggestions:g?e=>h({...e,instanceId:I,withCreateSuggestion:s,currentInputValue:n,createSuggestionButtonText:S,suggestionsQuery:k,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),P(t)}}):null,__experimentalFetchLinkSuggestions:C,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:_,onSubmit:(e,t)=>{var r;const o=e||x;o||null!=n&&null!==(r=n.trim())&&void 0!==r&&r.length?P(o||{url:n}):t.preventDefault()},ref:t}),r)}));var p_=u_;var d_=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 f_=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));const{Slot:y_,Fill:m_}=(0,d.createSlotFill)("BlockEditorLinkControlViewer");function g_(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 h_=function(e){const[t,n]=(0,a.useReducer)(g_,{richData:null,isFetching:!1}),{fetchRichUrlData:r}=(0,f.useSelect)((e=>{const{getSettings:t}=e(qn);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,a.useEffect)((()=>{if(null!=e&&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 b_(e){var t;let{value:n,onEditClick:r,hasRichPreviews:o=!1,hasUnlinkControl:i=!1,onRemove:l}=e;const s=o?null==n?void 0:n.url:null,{richData:u,isFetching:p}=h_(s),f=u&&Object.keys(u).length,y=n&&(0,nd.filterURLForDisplay)((0,nd.safeDecodeURI)(n.url),16)||"",g=(null==u?void 0:u.title)||(null==n?void 0:n.title)||y,h=!(null!=n&&null!==(t=n.url)&&void 0!==t&&t.length);let b;return b=null!=u&&u.icon?(0,a.createElement)("img",{src:null==u?void 0:u.icon,alt:""}):h?(0,a.createElement)(wo,{icon:d_,size:32}):(0,a.createElement)(wo,{icon:e_}),(0,a.createElement)("div",{"aria-label":(0,m.__)("Currently selected"),"aria-selected":"true",className:c()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":f,"is-fetching":!!p,"is-preview":!0,"is-error":h})},(0,a.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,a.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,a.createElement)("span",{className:c()("block-editor-link-control__search-item-icon",{"is-image":null==u?void 0:u.icon})},b),(0,a.createElement)("span",{className:"block-editor-link-control__search-item-details"},h?(0,a.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},(0,m.__)("Link is empty")):(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},(0,Zo.__unstableStripHTML)(g)),(null==n?void 0:n.url)&&(0,a.createElement)("span",{className:"block-editor-link-control__search-item-info"},y)))),(0,a.createElement)(d.Button,{icon:f_,label:(0,m.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:r,iconSize:24}),i&&(0,a.createElement)(d.Button,{icon:om,label:(0,m.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:l,iconSize:24}),(0,a.createElement)(y_,{fillProps:n})),(f&&((null==u?void 0:u.image)||(null==u?void 0:u.description))||p)&&(0,a.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},((null==u?void 0:u.image)||p)&&(0,a.createElement)("div",{"aria-hidden":!(null!=u&&u.image),className:c()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=u&&u.image)})},(null==u?void 0:u.image)&&(0,a.createElement)("img",{src:null==u?void 0:u.image,alt:""})),((null==u?void 0:u.description)||p)&&(0,a.createElement)("div",{"aria-hidden":!(null!=u&&u.description),className:c()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=u&&u.description)})},(null==u?void 0:u.description)&&(0,a.createElement)(d.__experimentalText,{truncate:!0,numberOfLines:"2"},u.description))))}const v_=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}}};function __(e){var t,n,r;let{searchInputPlaceholder:o,value:i,settings:l=r_,onChange:s=u.noop,onRemove:p,noDirectEntry:f=!1,showSuggestions:y=!0,showInitialSuggestions:g,forceIsEditingLink:h,createSuggestion:b,withCreateSuggestion:v,inputValue:_="",suggestionsQuery:k={},noURLSuggestion:E=!1,createSuggestionButtonText:S,hasRichPreviews:w=!1,hasTextControl:A=!1,renderControlBottom:C=null}=e;void 0===v&&b&&(v=!0);const I=(0,a.useRef)(!0),x=(0,a.useRef)(),B=(0,a.useRef)(),[P,T]=(0,a.useState)((null==i?void 0:i.url)||""),[O,N]=(0,a.useState)((null==i?void 0:i.title)||""),R=_||P,[F,M]=(0,a.useState)(void 0!==h?h:!i||!i.url),D=(0,a.useRef)(!1),L=!(null!=R&&null!==(t=R.trim())&&void 0!==t&&t.length),{createPage:U,isCreatingPage:j,errorMessage:V}=function(e){const t=(0,a.useRef)(),[n,r]=(0,a.useState)(!1),[o,i]=(0,a.useState)(null);return(0,a.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){r(!0),i(null);try{return t.current=v_(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw i(e.message||(0,m.__)("An unknown error occurred during creation. Please try again.")),e}finally{r(!1)}},isCreatingPage:n,errorMessage:o}}(b);function z(){var e;D.current=!(null===(e=x.current)||void 0===e||!e.contains(x.current.ownerDocument.activeElement)),M(!1)}(0,a.useEffect)((()=>{void 0!==h&&h!==F&&M(h)}),[h]),(0,a.useEffect)((()=>{if(I.current)return void(I.current=!1);const e=null!=B&&B.current?1:0;(Zo.focus.focusable.find(x.current)[e]||x.current).focus(),D.current=!1}),[F,j]),(0,a.useEffect)((()=>{null!=i&&i.title&&i.title!==O&&N(i.title),null!=i&&i.url&&T(i.url)}),[i]);const G=()=>{R===(null==i?void 0:i.url)&&O===(null==i?void 0:i.title)||s({url:R,title:O}),z()},H=p&&i&&!F&&!j,W=!(null==l||!l.length),$=(null==i||null===(n=i.url)||void 0===n||null===(r=n.trim())||void 0===r?void 0:r.length)>0&&A;return(0,a.createElement)("div",{tabIndex:-1,ref:x,className:"block-editor-link-control"},j&&(0,a.createElement)("div",{className:"block-editor-link-control__loading"},(0,a.createElement)(d.Spinner,null)," ",(0,m.__)("Creating"),"…"),(F||!i)&&!j&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:c()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":$})},$&&(0,a.createElement)(d.TextControl,{ref:B,className:"block-editor-link-control__field block-editor-link-control__text-content",label:"Text",value:O,onChange:N,onKeyDown:e=>{const{keyCode:t}=e;t!==bc.ENTER||L||(e.preventDefault(),G())}}),(0,a.createElement)(p_,{currentLink:i,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:o,value:R,withCreateSuggestion:v,onCreateSuggestion:U,onChange:T,onSelect:e=>{s({...e,title:O||(null==e?void 0:e.title)}),z()},showInitialSuggestions:g,allowDirectEntry:!f,showSuggestions:y,suggestionsQuery:k,withURLSuggestion:!E,createSuggestionButtonText:S,useLabel:$},(0,a.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,a.createElement)(d.Button,{onClick:G,label:(0,m.__)("Submit"),icon:Kv,className:"block-editor-link-control__search-submit",disabled:L})))),V&&(0,a.createElement)(d.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},V)),i&&!F&&!j&&(0,a.createElement)(b_,{key:null==i?void 0:i.url,value:i,onEditClick:()=>M(!0),hasRichPreviews:w,hasUnlinkControl:H,onRemove:p}),W&&(0,a.createElement)("div",{className:"block-editor-link-control__tools"},(0,a.createElement)(qv,{value:i,settings:l,onChange:s})),C&&C())}__.ViewerFill=m_;var k_=__;var E_=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));var S_=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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 w_=(0,d.withFilters)("editor.MediaUpload")((()=>null));var A_=function(e){let{fallback:t=null,children:n}=e;const r=(0,f.useSelect)((e=>{const{getSettings:t}=e(qn);return!!t().mediaUpload}),[]);return r?n:t};var C_=(0,p.compose)([(0,f.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(xp.store);return{createNotice:t,removeNotice:n}})),(0,d.withFilters)("editor.MediaReplaceFlow")])((e=>{let{mediaURL:t,mediaId:n,mediaIds:r,allowedTypes:o,accept:i,onError:l,onSelect:s,onSelectURL:c,onFilesUpload:p=u.noop,name:y=(0,m.__)("Replace"),createNotice:g,removeNotice:h,children:b,multiple:v=!1,addToGallery:_,handleUpload:k=!0}=e;const[E,S]=(0,a.useState)(t),w=(0,f.useSelect)((e=>e(qn).getSettings().mediaUpload),[]),A=(0,a.useRef)(),C=(0,u.uniqueId)("block-editor/media-replace-flow/error-notice/"),I=e=>{const t=(0,Zo.__unstableStripHTML)(e);l?l(t):setTimeout((()=>{g("error",t,{speak:!0,id:C,isDismissible:!0})}),1e3)},x=(e,t)=>{t(),S(null==e?void 0:e.url),s(e),(0,Lt.speak)((0,m.__)("The media file has been replaced")),h(C)},B=e=>{e.keyCode===bc.DOWN&&(e.preventDefault(),e.target.click())},P=v&&!(!o||0===o.length)&&o.every((e=>"image"===e||e.startsWith("image/")));return(0,a.createElement)(d.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,a.createElement)(d.ToolbarButton,{ref:A,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:B},y)},renderContent:e=>{let{onClose:t}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,a.createElement)(w_,{gallery:P,addToGallery:_,multiple:v,value:v?r:n,onSelect:e=>x(e,t),allowedTypes:o,render:e=>{let{open:t}=e;return(0,a.createElement)(d.MenuItem,{icon:E_,onClick:t},(0,m.__)("Open Media Library"))}}),(0,a.createElement)(A_,null,(0,a.createElement)(d.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!k)return t(),s(n);p(n),w({allowedTypes:o,filesList:n,onFileChange:e=>{let[n]=e;x(n,t)},onError:I})})(e,t)},accept:i,multiple:v,render:e=>{let{openFileDialog:t}=e;return(0,a.createElement)(d.MenuItem,{icon:S_,onClick:()=>{t()}},(0,m.__)("Upload"))}})),b),c&&(0,a.createElement)("form",{className:"block-editor-media-flow__url-input"},(0,a.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},(0,m.__)("Current media URL:")),(0,a.createElement)(k_,{value:{url:E},settings:[],showSuggestions:!1,onChange:e=>{let{url:t}=e;S(t),c(t),A.current.focus()}})))}})}));function I_(e){let{url:t,urlLabel:n,className:r}=e;const o=c()(r,"block-editor-url-popover__link-viewer-url");return t?(0,a.createElement)(d.ExternalLink,{className:o,href:t},n||(0,nd.filterURLForDisplay)((0,nd.safeDecodeURI)(t))):(0,a.createElement)("span",{className:o})}function x_(e){let{additionalControls:t,children:n,renderSettings:r,position:o="bottom center",focusOnMount:i="firstElement",...s}=e;const[c,u]=(0,a.useState)(!1),p=!!r&&c;return(0,a.createElement)(d.Popover,l({className:"block-editor-url-popover",focusOnMount:i,position:o},s),(0,a.createElement)("div",{className:"block-editor-url-popover__input-container"},(0,a.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&(0,a.createElement)(d.Button,{className:"block-editor-url-popover__settings-toggle",icon:zd,label:(0,m.__)("Link settings"),onClick:()=>{u(!c)},"aria-expanded":c})),p&&(0,a.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!p&&(0,a.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}x_.LinkEditor=function(e){let{autocompleteRef:t,className:n,onChangeInputValue:r,value:o,...i}=e;return(0,a.createElement)("form",l({className:c()("block-editor-url-popover__link-editor",n)},i),(0,a.createElement)(Xv,{value:o,onChange:r,autocompleteRef:t}),(0,a.createElement)(d.Button,{icon:Kv,label:(0,m.__)("Apply"),type:"submit"}))},x_.LinkViewer=function(e){let{className:t,linkClassName:n,onEditLinkClick:r,url:o,urlLabel:i,...s}=e;return(0,a.createElement)("div",l({className:c()("block-editor-url-popover__link-viewer",t)},s),(0,a.createElement)(I_,{url:o,urlLabel:i,className:n}),r&&(0,a.createElement)(d.Button,{icon:f_,label:(0,m.__)("Edit"),onClick:r}))};var B_=x_;const P_=e=>{let{src:t,onChange:n,onSubmit:r,onClose:o}=e;return(0,a.createElement)(B_,{onClose:o},(0,a.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},(0,a.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":(0,m.__)("URL"),placeholder:(0,m.__)("Paste or type URL"),onChange:n,value:t}),(0,a.createElement)(d.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Kv,label:(0,m.__)("Apply"),type:"submit"})))};var T_=(0,d.withFilters)("editor.MediaPlaceholder")((function(e){let{value:t={},allowedTypes:n,className:r,icon:o,labels:i={},mediaPreview:l,notices:s,isAppender:p,accept:y,addToGallery:g,multiple:h=!1,handleUpload:b=!0,disableDropZone:v,disableMediaButtons:_,onError:k,onSelect:E,onCancel:S,onSelectURL:w,onDoubleClick:A,onFilesPreUpload:C=u.noop,onHTMLDrop:I=u.noop,children:x,mediaLibraryButton:B,placeholder:P,style:T}=e;const O=(0,f.useSelect)((e=>{const{getSettings:t}=e(qn);return t().mediaUpload}),[]),[N,R]=(0,a.useState)(""),[F,M]=(0,a.useState)(!1);(0,a.useEffect)((()=>{var e;R(null!==(e=null==t?void 0:t.src)&&void 0!==e?e:"")}),[null==t?void 0:t.src]);const D=e=>{R(e.target.value)},L=()=>{M(!0)},U=()=>{M(!1)},j=e=>{e.preventDefault(),N&&w&&(w(N),U())},V=e=>{if(!b)return E(e);let r;if(C(e),h)if(g){let e=[];r=n=>{const r=(null!=t?t:[]).filter((t=>t.id?!e.some((e=>{let{id:n}=e;return Number(n)===Number(t.id)})):!e.some((e=>{let{urlSlug:n}=e;return t.url.includes(n)}))));E(r.concat(n)),e=n.map((e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else r=E;else r=e=>{let[t]=e;return E(t)};O({allowedTypes:n,filesList:e,onFileChange:r,onError:k})},z=e=>{V(e.target.files)},G=null!=P?P:e=>{let{instructions:t,title:u}=i;if(O||w||(t=(0,m.__)("To edit this block, you need permission to upload media.")),void 0===t||void 0===u){const e=null!=n?n:[],[r]=e,o=1===e.length,i=o&&"audio"===r,l=o&&"image"===r,a=o&&"video"===r;void 0===t&&O&&(t=(0,m.__)("Upload a media file or pick one from your media library."),i?t=(0,m.__)("Upload an audio file, pick one from your media library, or add one with a URL."):l?t=(0,m.__)("Upload an image file, pick one from your media library, or add one with a URL."):a&&(t=(0,m.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===u&&(u=(0,m.__)("Media"),i?u=(0,m.__)("Audio"):l?u=(0,m.__)("Image"):a&&(u=(0,m.__)("Video")))}const f=c()("block-editor-media-placeholder",r,{"is-appender":p});return(0,a.createElement)(d.Placeholder,{icon:o,label:u,instructions:t,className:f,notices:s,onDoubleClick:A,preview:l,style:T},e,x)},H=()=>v?null:(0,a.createElement)(d.DropZone,{onFilesDrop:V,onHTMLDrop:I}),W=()=>S&&(0,a.createElement)(d.Button,{className:"block-editor-media-placeholder__cancel-button",title:(0,m.__)("Cancel"),variant:"link",onClick:S},(0,m.__)("Cancel")),$=()=>w&&(0,a.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},(0,a.createElement)(d.Button,{className:"block-editor-media-placeholder__button",onClick:L,isPressed:F,variant:"tertiary"},(0,m.__)("Insert from URL")),F&&(0,a.createElement)(P_,{src:N,onChange:D,onSubmit:j,onClose:U}));return _?(0,a.createElement)(A_,null,H()):(0,a.createElement)(A_,{fallback:G($())},(()=>{const e=null!=B?B:e=>{let{open:t}=e;return(0,a.createElement)(d.Button,{variant:"tertiary",onClick:()=>{t()}},(0,m.__)("Media Library"))},r=(0,a.createElement)(w_,{addToGallery:g,gallery:h&&!(!n||0===n.length)&&n.every((e=>"image"===e||e.startsWith("image/"))),multiple:h,onSelect:E,allowedTypes:n,value:Array.isArray(t)?t.map((e=>{let{id:t}=e;return t})):t.id,render:e});if(O&&p)return(0,a.createElement)(a.Fragment,null,H(),(0,a.createElement)(d.FormFileUpload,{onChange:z,accept:y,multiple:h,render:e=>{let{openFileDialog:t}=e;const n=(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.Button,{variant:"primary",className:c()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:t},(0,m.__)("Upload")),r,$(),W());return G(n)}}));if(O){const e=(0,a.createElement)(a.Fragment,null,H(),(0,a.createElement)(d.FormFileUpload,{variant:"primary",className:c()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:z,accept:y,multiple:h},(0,m.__)("Upload")),r,$(),W());return G(e)}return G(r)})())}));var O_=e=>{let{colorSettings:t,...n}=e;const r=t.map((e=>{if(!e)return e;const{value:t,onChange:n,...r}=e;return{...r,colorValue:t,onColorChange:n}}));return(0,a.createElement)(uv,l({settings:r,gradients:[],disableCustomGradients:!0},n))};const N_={position:"bottom right",isAlternate:!0};var R_=()=>(0,a.createElement)(a.Fragment,null,["bold","italic","link"].map((e=>(0,a.createElement)(d.Slot,{name:`RichText.ToolbarControls.${e}`,key:e}))),(0,a.createElement)(d.Slot,{name:"RichText.ToolbarControls"},(e=>{if(!e.length)return null;const t=e.map((e=>{let[{props:t}]=e;return t})).some((e=>{let{isActive:t}=e;return t}));return(0,a.createElement)(d.ToolbarItem,null,(n=>(0,a.createElement)(d.DropdownMenu,{icon:zd,label:(0,m.__)("More"),toggleProps:{...n,className:c()(n.className,{"is-pressed":t}),describedBy:(0,m.__)("Displays more block tools")},controls:(0,u.orderBy)(e.map((e=>{let[{props:t}]=e;return t})),"title"),popoverProps:N_})))})));var F_=e=>{let{inline:t,anchorRef:n}=e;return t?(0,a.createElement)(d.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},(0,a.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},(0,a.createElement)(d.ToolbarGroup,null,(0,a.createElement)(R_,null)))):(0,a.createElement)(or,{group:"inline"},(0,a.createElement)(R_,null))};function M_(){const{didAutomaticChange:e,getSettings:t}=(0,f.useSelect)(qn);return(0,p.useRefEffect)((n=>{function r(n){const{keyCode:r}=n;n.defaultPrevented||r!==bc.DELETE&&r!==bc.BACKSPACE&&r!==bc.ESCAPE||e()&&(n.preventDefault(),t().__experimentalUndo())}return n.addEventListener("keydown",r),()=>{n.removeEventListener("keydown",r)}}),[])}function D_(e){return e.filter((e=>{let{type:t}=e;return/^image\/(?:jpe?g|png|gif|webp)$/.test(t)})).map((e=>`<img src="${(0,If.createBlobURL)(e)}">`)).join("")}var L_=window.wp.shortcode;function U_(e,t){if(null!=t&&t.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function j_(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function V_(e){let{allowedFormats:t,formattingControls:n,disableFormats:r}=e;return r?V_.EMPTY_ARRAY:t||n?t||(jt()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats",version:"6.2"}),n.map((e=>`core/${e}`))):void 0}V_.EMPTY_ARRAY=[];function z_(e){let{value:t,pastedBlocks:n=[],onReplace:r,onSplit:o,onSplitMiddle:i,multilineTag:l}=e;if(!r||!o)return;const{start:a=0,end:s=0}=t,c={...t,start:a,end:s},u=[],[p,d]=(0,U.split)(c),f=n.length>0;let y=-1;const m=(0,U.isEmpty)(p)&&!(0,U.isEmpty)(d);f&&(0,U.isEmpty)(p)||(u.push(o((0,U.toHTMLString)({value:p,multilineTag:l}),!m)),y+=1),f?(u.push(...n),y+=n.length):i&&u.push(i()),(f||i)&&(0,U.isEmpty)(d)||u.push(o((0,U.toHTMLString)({value:d,multilineTag:l}),m));r(u,f?y:1,f?-1:0)}function G_(e,t){return t?(0,U.replace)(e,/\n+/g,U.__UNSTABLE_LINE_SEPARATOR):(0,U.replace)(e,new RegExp(U.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function H_(e){const t=(0,a.useRef)(e);return t.current=e,(0,p.useRefEffect)((e=>{function n(e){const{isSelected:n,disableFormats:r,onChange:i,value:l,formatTypes:a,tagName:s,onReplace:c,onSplit:u,onSplitMiddle:p,__unstableEmbedURLOnPaste:d,multilineTag:f,preserveWhiteSpace:y,pastePlainText:m}=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 i((0,U.insert)(l,h));const v=a.reduce(((e,t)=>{let{__unstablePasteRule:n}=t;return n&&e===l&&(e=n(l,{html:b,plainText:h})),e}),l);if(v!==l)return void i(v);const _=[...(0,Zo.getFilesFromDataTransfer)(g)];if("true"===g.getData("rich-text")){const e=g.getData("rich-text-multi-line-tag")||void 0;let t=(0,U.create)({html:b,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:y});return t=G_(t,!!f),U_(t,l.activeFormats),void i((0,U.insert)(l,t))}if(m)return void i((0,U.insert)(l,(0,U.create)({text:h})));if(null!=_&&_.length&&!xf(_,b)){const e=(0,o.pasteHandler)({HTML:D_(_),mode:"BLOCKS",tagName:s,preserveWhiteSpace:y});return window.console.log("Received items:\n\n",_),void(c&&(0,U.isEmpty)(l)?c(e):z_({value:l,pastedBlocks:e,onReplace:c,onSplit:u,onSplitMiddle:p,multilineTag:f}))}let k=c&&u?"AUTO":"INLINE";var E;"AUTO"===k&&(0,U.isEmpty)(l)&&(E=h,(0,L_.regexp)(".*").test(E))&&(k="BLOCKS"),d&&(0,U.isEmpty)(l)&&(0,nd.isURL)(h.trim())&&(k="BLOCKS");const S=(0,o.pasteHandler)({HTML:b,plainText:h,mode:k,tagName:s,preserveWhiteSpace:y});if("string"==typeof S){let e=(0,U.create)({html:S});e=G_(e,!!f),U_(e,l.activeFormats),i((0,U.insert)(l,e))}else S.length>0&&(c&&(0,U.isEmpty)(l)?c(S,S.length-1,-1):z_({value:l,pastedBlocks:S,onReplace:c,onSplit:u,onSplitMiddle:p,multilineTag:f}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}}),[])}function W_(e){let t=e.length;for(;t--;){const n=(0,u.findKey)(e[t].attributes,(e=>"string"==typeof e&&-1!==e.indexOf("†")));if(n)return e[t].attributes[n]=e[t].attributes[n].replace("†",""),e[t].clientId;const r=W_(e[t].innerBlocks);if(r)return r}}function $_(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,f.useDispatch)(qn),r=(0,a.useRef)(e);return r.current=e,(0,p.useRefEffect)((e=>{function i(){const{value:e,onReplace:t,selectionChange:i}=r.current;if(!t)return;const{start:l,text:a}=e;if(" "!==a.slice(l-1,l))return;const s=a.slice(0,l).trim(),c=(0,o.getBlockTransforms)("from").filter((e=>{let{type:t}=e;return"prefix"===t})),u=(0,o.findTransform)(c,(e=>{let{prefix:t}=e;return s===t}));if(!u)return;const p=(0,U.toHTMLString)({value:(0,U.insert)(e,"†",0,l)}),d=u.transform(p);i(W_([d])),t([d]),n()}function l(e){const{inputType:o,type:l}=e,{value:a,onChange:s,__unstableAllowPrefixTransformations:c,formatTypes:u}=r.current;if("insertText"!==o&&"compositionend"!==l)return;c&&i&&i();const p=u.reduce(((e,t)=>{let{__unstableInputRule:n}=t;return n&&(e=n(e)),e}),function(e){const t="tales of gutenberg",{start:n,text:r}=e;return n<t.length||r.slice(n-t.length,n).toLowerCase()!==t?e:(0,U.insert)(e," ðŸ¡ðŸ¢ðŸ¦€ðŸ¤ðŸ¦‹ðŸ˜ðŸ§ðŸ¹ðŸ¦ðŸ¦„ðŸ¦ðŸ¼ðŸ¿ðŸŽƒðŸ´ðŸðŸ†ðŸ¦•ðŸ¦”🌱ðŸ‡Ï€ðŸŒðŸ‰ðŸ’§ðŸ¥¨ðŸŒŒðŸ‚ðŸ 🥦🥚ðŸ¥ðŸŽŸðŸ¥¥ðŸ¥’🛵🥖ðŸ’ðŸ¯ðŸŽ¾ðŸŽ²ðŸºðŸšðŸ®âŒ›ï¸")}(a));p!==a&&(t(),s({...p,activeFormats:a.activeFormats}),n())}return e.addEventListener("input",l),e.addEventListener("compositionend",l),()=>{e.removeEventListener("input",l),e.removeEventListener("compositionend",l)}}),[])}function K_(e){const{__unstableMarkAutomaticChange:t}=(0,f.useDispatch)(qn),n=(0,a.useRef)(e);return n.current=e,(0,p.useRefEffect)((e=>{function r(e){if(e.defaultPrevented)return;const{removeEditorOnlyFormats:r,value:i,onReplace:l,onSplit:a,onSplitMiddle:s,multilineTag:c,onChange:u,disableLineBreaks:p,onSplitAtEnd:d}=n.current;if(e.keyCode!==bc.ENTER)return;e.preventDefault();const f={...i};f.formats=r(i);const y=l&&a;if(l){const e=(0,o.getBlockTransforms)("from").filter((e=>{let{type:t}=e;return"enter"===t})),n=(0,o.findTransform)(e,(e=>e.regExp.test(f.text)));n&&(l([n.transform({content:f.text})]),t())}if(c)e.shiftKey?p||u((0,U.insert)(f,"\n")):y&&(0,U.__unstableIsEmptyLine)(f)?z_({value:f,onReplace:l,onSplit:a,onSplitMiddle:s,multilineTag:c}):u((0,U.__unstableInsertLineSeparator)(f));else{const{text:t,start:n,end:r}=f,o=d&&n===r&&r===t.length;e.shiftKey||!y&&!o?p||u((0,U.insert)(f,"\n")):!y&&o?d():y&&z_({value:f,onReplace:l,onSplit:a,onSplitMiddle:s,multilineTag:c})}}return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[])}function q_(e){return e(U.store).getFormatTypes()}const J_=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function Y_(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}),[])}function Q_(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}}),[])}function X_(){const{isMultiSelecting:e}=(0,f.useSelect)(qn);return(0,p.useRefEffect)((t=>{function n(){if(!e())return;const n=t.parentElement.closest('[contenteditable="true"]');n&&n.focus()}return t.addEventListener("focus",n),()=>{t.removeEventListener("focus",n)}}),[])}function Z_(e){let{formatTypes:t,onChange:n,onFocus:r,value:o,forwardedRef:i}=e;return t.map((e=>{const{name:t,edit:l}=e;if(!l)return null;const s=(0,U.getActiveFormat)(o,t);let c=void 0!==s;const p=(0,U.getActiveObject)(o),d=void 0!==p&&p.type===t;if("core/link"===t&&!(0,U.isCollapsed)(o)){const e=o.formats,t=(0,u.find)(e[o.start],{type:"core/link"}),n=(0,u.find)(e[o.end-1],{type:"core/link"});t&&n&&t===n||(c=!1)}return(0,a.createElement)(l,{key:t,isActive:c,activeAttributes:c&&s.attributes||{},isObjectActive:d,activeObjectAttributes:d&&p.attributes||{},value:o,onChange:n,onFocus:r,contentRef:i})}))}const ek=(0,a.createContext)(),tk=(0,a.createContext)();const nk=(0,a.forwardRef)((function e(t,n){let{children:r,tagName:i="div",value:s="",onChange:y,isSelected:m,multiline:g,inlineToolbar:h,wrapperClassName:b,autocompleters:v,onReplace:_,placeholder:k,allowedFormats:E,formattingControls:S,withoutInteractiveFormatting:w,onRemove:A,onMerge:C,onSplit:I,__unstableOnSplitAtEnd:x,__unstableOnSplitMiddle:B,identifier:P,preserveWhiteSpace:T,__unstablePastePlainText:O,__unstableEmbedURLOnPaste:N,__unstableDisableFormats:R,disableLineBreaks:F,unstableOnFocus:M,__unstableAllowPrefixTransformations:D,...L}=t;const j=(0,p.useInstanceId)(e);P=P||j,L=function(e){return(0,u.omit)(e,["__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","setRef"])}(L);const V=(0,a.useRef)(),{clientId:z}=Xn(),{selectionStart:G,selectionEnd:H,isSelected:W}=(0,f.useSelect)((e=>{const{getSelectionStart:t,getSelectionEnd:n}=e(qn),r=t(),o=n();let i;return void 0===m?i=r.clientId===z&&o.clientId===z&&r.attributeKey===P:m&&(i=r.clientId===z),{selectionStart:i?r.offset:void 0,selectionEnd:i?o.offset:void 0,isSelected:i}})),{selectionChange:$}=(0,f.useDispatch)(qn),K=j_(g),q=V_({allowedFormats:E,formattingControls:S,disableFormats:R}),J=!q||q.length>0;let Y=s,Q=y;Array.isArray(s)&&(Y=o.children.toHTML(s),Q=e=>y(o.children.fromDOM((0,U.__unstableCreateElement)(document,e).childNodes)));const X=(0,a.useCallback)(((e,t)=>{const n={},r=void 0===e&&void 0===t;("number"==typeof e||r)&&(n.start={clientId:z,attributeKey:P,offset:e}),("number"==typeof t||r)&&(n.end={clientId:z,attributeKey:P,offset:t}),$(n)}),[z,P]),{formatTypes:Z,prepareHandlers:ee,valueHandlers:te,changeHandlers:ne,dependencies:re}=function(e){let{clientId:t,identifier:n,withoutInteractiveFormatting:r,allowedFormats:o}=e;const i=(0,f.useSelect)(q_,[]),l=(0,a.useMemo)((()=>i.filter((e=>{let{name:t,tagName:n}=e;return!(o&&!o.includes(t)||r&&J_.has(n))}))),[i,o,J_]),s=(0,f.useSelect)((e=>l.reduce(((r,o)=>(o.__experimentalGetPropsForEditableTreePreparation&&(r[o.name]=o.__experimentalGetPropsForEditableTreePreparation(e,{richTextIdentifier:n,blockClientId:t})),r)),{})),[l,t,n]),c=(0,f.useDispatch)(),u=[],p=[],d=[],y=[];return l.forEach((e=>{if(e.__experimentalCreatePrepareEditableTree){const r=s[e.name],o=e.__experimentalCreatePrepareEditableTree(r,{richTextIdentifier:n,blockClientId:t});e.__experimentalCreateOnChangeEditableValue?p.push(o):u.push(o);for(const e in r)y.push(r[e])}if(e.__experimentalCreateOnChangeEditableValue){let r={};e.__experimentalGetPropsForEditableTreeChangeHandler&&(r=e.__experimentalGetPropsForEditableTreeChangeHandler(c,{richTextIdentifier:n,blockClientId:t})),d.push(e.__experimentalCreateOnChangeEditableValue({...s[e.name]||{},...r},{richTextIdentifier:n,blockClientId:t}))}})),{formatTypes:l,prepareHandlers:u,valueHandlers:p,changeHandlers:d,dependencies:y}}({clientId:z,identifier:P,withoutInteractiveFormatting:w,allowedFormats:q});function oe(e){return Z.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,U.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:ie,onChange:le,ref:ae}=(0,U.__unstableUseRichText)({value:Y,onChange(e,t){let{__unstableFormats:n,__unstableText:r}=t;Q(e),Object.values(ne).forEach((e=>{e(n,r)}))},selectionStart:G,selectionEnd:H,onSelectionChange:X,placeholder:k,__unstableIsSelected:W,__unstableMultilineTag:K,__unstableDisableFormats:R,preserveWhiteSpace:T,__unstableDependencies:[...re,i],__unstableAfterParse:function(e){return te.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:oe,__unstableAddInvisibleFormats:function(e){return ee.reduce(((t,n)=>n(t,e.text)),e.formats)}}),se=function(e){return(0,d.__unstableUseAutocompleteProps)({...e,completers:Jh(e)})}({onReplace:_,completers:v,record:ie,onChange:le});!function(e){let{value:t}=e;const n=t.activeFormats&&!!t.activeFormats.length,{isCaretWithinFormattedText:r}=(0,f.useSelect)(qn),{enterFormattedText:o,exitFormattedText:i}=(0,f.useDispatch)(qn);(0,a.useEffect)((()=>{n?r()||o():r()&&i()}),[n])}({value:ie}),function(e){let{html:t,value:n}=e;const r=(0,a.useRef)(),o=n.activeFormats&&!!n.activeFormats.length,{__unstableMarkLastChangeAsPersistent:i}=(0,f.useDispatch)(qn);(0,a.useLayoutEffect)((()=>{if(r.current){if(r.current!==n.text){const e=window.setTimeout((()=>{i()}),1e3);return r.current=n.text,()=>{window.clearTimeout(e)}}i()}else r.current=n.text}),[t,o])}({html:Y,value:ie});const ce=(0,a.useRef)(new Set),ue=(0,a.useRef)(new Set);function pe(){V.current.focus()}const de=i,fe=(0,a.createElement)(a.Fragment,null,W&&(0,a.createElement)(ek.Provider,{value:ce},(0,a.createElement)(tk.Provider,{value:ue},(0,a.createElement)(d.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},r&&r({value:ie,onChange:le,onFocus:pe}),(0,a.createElement)(Z_,{value:ie,onChange:le,onFocus:pe,formatTypes:Z,forwardedRef:V})))),W&&J&&(0,a.createElement)(F_,{inline:h,anchorRef:V.current}),(0,a.createElement)(de,l({role:"textbox","aria-multiline":!F,"aria-label":k},L,se,{ref:(0,p.useMergeRefs)([n,se.ref,L.ref,ae,$_({value:ie,onChange:le,__unstableAllowPrefixTransformations:D,formatTypes:Z,onReplace:_,selectionChange:$}),(0,p.useRefEffect)((e=>{function t(e){(bc.isKeyboardEvent.primary(e,"z")||bc.isKeyboardEvent.primary(e,"y")||bc.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}}),[]),Y_(ce),Q_(ue),M_(),H_({isSelected:W,disableFormats:R,onChange:le,value:ie,formatTypes:Z,tagName:i,onReplace:_,onSplit:I,onSplitMiddle:B,__unstableEmbedURLOnPaste:N,multilineTag:K,preserveWhiteSpace:T,pastePlainText:O}),K_({removeEditorOnlyFormats:oe,value:ie,onReplace:_,onSplit:I,onSplitMiddle:B,multilineTag:K,onChange:le,disableLineBreaks:F,onSplitAtEnd:x}),X_(),V]),contentEditable:!0,suppressContentEditableWarning:!0,className:c()("block-editor-rich-text__editable",L.className,"rich-text"),onFocus:M,onKeyDown:function(e){const{keyCode:t}=e;if(!e.defaultPrevented&&(t===bc.DELETE||t===bc.BACKSPACE)){const{start:n,end:r,text:o}=ie,i=t===bc.BACKSPACE,l=ie.activeFormats&&!!ie.activeFormats.length;if(!(0,U.isCollapsed)(ie)||l||i&&0!==n||!i&&r!==o.length)return;C&&C(!i),A&&(0,U.isEmpty)(ie)&&i&&A(!i),e.preventDefault()}}})));if(!b)return fe;jt()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div",version:"6.2"});const ye=c()("block-editor-rich-text",b);return(0,a.createElement)("div",{className:ye},fe)}));nk.Content=e=>{let{value:t,tagName:n,multiline:r,...i}=e;Array.isArray(t)&&(t=o.children.toHTML(t));const l=j_(r);!t&&l&&(t=`<${l}></${l}>`);const s=(0,a.createElement)(a.RawHTML,null,t);return n?(0,a.createElement)(n,(0,u.omit)(i,["format"]),s):s},nk.isEmpty=e=>!e||0===e.length;var rk=nk;const ok=(0,a.forwardRef)(((e,t)=>(0,a.createElement)(rk,l({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))));ok.Content=e=>{let{value:t="",tagName:n="div",...r}=e;return(0,a.createElement)(n,r,t)};var ik=ok;var lk=(0,a.forwardRef)(((e,t)=>{let{__experimentalVersion:n,...r}=e;if(2===n)return(0,a.createElement)(ik,l({ref:t},r));const{className:o,onChange:i,...s}=r;return(0,a.createElement)(hi.Z,l({ref:t,className:c()("block-editor-plain-text",o),onChange:e=>i(e.target.value)},s))}));function ak(e){let{property:t,viewport:n,desc:r}=e;const o=(0,p.useInstanceId)(ak),i=r||(0,m.sprintf)((0,m._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."),t,n.label);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("span",{"aria-describedby":`rbc-desc-${o}`},n.label),(0,a.createElement)(d.VisuallyHidden,{as:"span",id:`rbc-desc-${o}`},i))}var sk=function(e){const{title:t,property:n,toggleLabel:r,onIsResponsiveChange:o,renderDefaultControl:i,renderResponsiveControls:l,isResponsive:s=!1,defaultLabel:u={id:"all",label:(0,m.__)("All")},viewports:p=[{id:"small",label:(0,m.__)("Small screens")},{id:"medium",label:(0,m.__)("Medium screens")},{id:"large",label:(0,m.__)("Large screens")}]}=e;if(!t||!n||!i)return null;const f=r||(0,m.sprintf)((0,m.__)("Use the same %s on all screensizes."),n),y=(0,m.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=i((0,a.createElement)(ak,{property:n,viewport:u}),u);return(0,a.createElement)("fieldset",{className:"block-editor-responsive-block-control"},(0,a.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),(0,a.createElement)("div",{className:"block-editor-responsive-block-control__inner"},(0,a.createElement)(d.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:f,checked:!s,onChange:o,help:y}),(0,a.createElement)("div",{className:c()("block-editor-responsive-block-control__group",{"is-responsive":s})},!s&&g,s&&(l?l(p):p.map((e=>(0,a.createElement)(a.Fragment,{key:e.id},i((0,a.createElement)(ak,{property:n,viewport:e}),e))))))))};function ck(e){let{character:t,type:n,onUse:r}=e;const o=(0,a.useContext)(ek),i=(0,a.useRef)();return i.current=r,(0,a.useEffect)((()=>{function e(e){bc.isKeyboardEvent[n](e,t)&&(i.current(),e.preventDefault())}return o.current.add(e),()=>{o.current.delete(e)}}),[t,n]),null}function uk(e){let t,{name:n,shortcutType:r,shortcutCharacter:o,...i}=e,s="RichText.ToolbarControls";return n&&(s+=`.${n}`),r&&o&&(t=bc.displayShortcut[r](o)),(0,a.createElement)(d.Fill,{name:s},(0,a.createElement)(d.ToolbarButton,l({},i,{shortcut:t})))}function pk(e){let{inputType:t,onInput:n}=e;const r=(0,a.useContext)(tk),o=(0,a.useRef)();return o.current=n,(0,a.useEffect)((()=>{function e(e){e.inputType===t&&(o.current(),e.preventDefault())}return r.current.add(e),()=>{r.current.delete(e)}}),[t]),null}const dk=(0,a.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,a.createElement)(d.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 fk=(0,a.forwardRef)((function(e,t){const n=(0,f.useSelect)((e=>e(qn).isNavigationMode()),[]),{setNavigationMode:r}=(0,f.useDispatch)(qn),o=e=>{r("edit"!==e)};return(0,a.createElement)(d.Dropdown,{renderToggle:r=>{let{isOpen:o,onToggle:i}=r;return(0,a.createElement)(d.Button,l({},e,{ref:t,icon:n?dk:f_,"aria-expanded":o,"aria-haspopup":"true",onClick:i,label:(0,m.__)("Tools")}))},position:"bottom right",renderContent:()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.NavigableMenu,{role:"menu","aria-label":(0,m.__)("Tools")},(0,a.createElement)(d.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(wo,{icon:f_}),(0,m.__)("Edit"))},{value:"select",label:(0,a.createElement)(a.Fragment,null,dk,(0,m.__)("Select"))}]})),(0,a.createElement)("div",{className:"block-editor-tool-selector__help"},(0,m.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function yk(e){let{units:t,...n}=e;const r=(0,d.__experimentalUseCustomUnits)({availableUnits:Cr("spacing.units")||["%","px","em","rem","vw"],units:t});return(0,a.createElement)(d.__experimentalUnitControl,l({units:r},n))}var mk=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));class gk extends a.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,m.__)("Edit link"):(0,m.__)("Insert link");return(0,a.createElement)("div",{className:"block-editor-url-input__button"},(0,a.createElement)(d.Button,{icon:rm,label:r,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&(0,a.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},(0,a.createElement)("div",{className:"block-editor-url-input__button-modal-line"},(0,a.createElement)(d.Button,{className:"block-editor-url-input__back",icon:mk,label:(0,m.__)("Close"),onClick:this.toggle}),(0,a.createElement)(Xv,{value:e||"",onChange:t}),(0,a.createElement)(d.Button,{icon:Kv,label:(0,m.__)("Submit"),type:"submit"}))))}}var hk=gk;var bk=(0,a.createElement)(D.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(D.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"}));const vk="none",_k="custom",kk="media",Ek="attachment",Sk=["noreferrer","noopener"],wk=(0,a.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(d.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,a.createElement)(d.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,a.createElement)(d.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Ak=e=>{let{linkDestination:t,onChangeUrl:n,url:r,mediaType:o="image",mediaUrl:i,mediaLink:l,linkTarget:s,linkClass:c,rel:p}=e;const[f,y]=(0,a.useState)(!1),g=(0,a.useCallback)((()=>{y(!0)})),[h,b]=(0,a.useState)(!1),[v,_]=(0,a.useState)(null),k=(0,a.useRef)(null),E=(0,a.useCallback)((()=>{t!==kk&&t!==Ek||_(""),b(!0)})),S=(0,a.useCallback)((()=>{b(!1)})),w=(0,a.useCallback)((()=>{_(null),S(),y(!1)})),A=(0,a.useCallback)((()=>e=>{const t=k.current;t&&t.contains(e.target)||(y(!1),_(null),S())})),C=(0,a.useCallback)((()=>e=>{if(v){var t;const e=(null===(t=x().find((e=>e.url===v)))||void 0===t?void 0:t.linkDestination)||_k;n({href:v,linkDestination:e})}S(),_(null),e.preventDefault()})),I=(0,a.useCallback)((()=>{n({linkDestination:vk,href:""})})),x=()=>{const e=[{linkDestination:kk,title:(0,m.__)("Media File"),url:"image"===o?i:void 0,icon:wk}];return"image"===o&&l&&e.push({linkDestination:Ek,title:(0,m.__)("Attachment Page"),url:"image"===o?l:void 0,icon:(0,a.createElement)(d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(d.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,a.createElement)(d.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},B=(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.ToggleControl,{label:(0,m.__)("Open in new tab"),onChange:e=>{const t=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(null!=p?p:"").split(" ");Sk.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(null!=p?p:"").split(" ").filter((e=>!1===Sk.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);n(t)},checked:"_blank"===s}),(0,a.createElement)(d.TextControl,{label:(0,m.__)("Link Rel"),value:null!=p?p:"",onChange:e=>{n({rel:e})}}),(0,a.createElement)(d.TextControl,{label:(0,m.__)("Link CSS Class"),value:c||"",onChange:e=>{n({linkClass:e})}})),P=null!==v?v:r,T=((0,u.find)(x(),["linkDestination",t])||{}).title;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.ToolbarButton,{icon:rm,className:"components-toolbar__control",label:r?(0,m.__)("Edit link"):(0,m.__)("Insert link"),"aria-expanded":f,onClick:g}),f&&(0,a.createElement)(B_,{onFocusOutside:A(),onClose:w,renderSettings:()=>B,additionalControls:!P&&(0,a.createElement)(d.NavigableMenu,null,(0,u.map)(x(),(e=>(0,a.createElement)(d.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{_(null),(e=>{const t=x();let r;r=e?((0,u.find)(t,(t=>t.url===e))||{linkDestination:_k}).linkDestination:vk,n({linkDestination:r,href:e})})(e.url),S()}},e.title))))},(!r||h)&&(0,a.createElement)(B_.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:P,onChangeInputValue:_,onSubmit:C(),autocompleteRef:k}),r&&!h&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(B_.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:r,onEditLinkClick:E,urlLabel:T}),(0,a.createElement)(d.Button,{icon:bk,label:(0,m.__)("Remove link"),onClick:I}))))};function Ck(e){let{children:t,className:n,isEnabled:r=!0,deviceType:o,setDeviceType:i}=e;if((0,p.useViewportMatch)("small","<"))return null;const l={className:c()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},s={variant:"tertiary",className:"block-editor-post-preview__button-toggle",disabled:!r,children:(0,m.__)("Preview")};return(0,a.createElement)(d.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:l,toggleProps:s,icon:null},(()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.MenuGroup,null,(0,a.createElement)(d.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>i("Desktop"),icon:"Desktop"===o&&lf},(0,m.__)("Desktop")),(0,a.createElement)(d.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>i("Tablet"),icon:"Tablet"===o&&lf},(0,m.__)("Tablet")),(0,a.createElement)(d.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>i("Mobile"),icon:"Mobile"===o&&lf},(0,m.__)("Mobile"))),t)))}function Ik(e){const[t,n]=(0,a.useState)(window.innerWidth);(0,a.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";switch(e){case"Tablet":case"Mobile":return{width:r(e),margin:(window.innerHeight<800?36:72)+"px auto",height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var xk=(0,f.withSelect)((e=>({selectedBlockClientId:e(qn).getBlockSelectionStart()})))((e=>{let{selectedBlockClientId:t}=e;const n=kr(t);return t?(0,a.createElement)(d.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{n.current.focus()}},(0,m.__)("Skip to the selected block")):null})),Bk=window.wp.wordcount;var Pk=(0,f.withSelect)((e=>{const{getMultiSelectedBlocks:t}=e(qn);return{blocks:t()}}))((function(e){let{blocks:t}=e;const n=(0,Bk.count)((0,o.serialize)(t),"words");return(0,a.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},(0,a.createElement)(Nc,{icon:nf,showColors:!0}),(0,a.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},(0,a.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},(0,m.sprintf)((0,m._n)("%d block","%d blocks",t.length),t.length)),(0,a.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},(0,m.sprintf)((0,m._n)("%d word","%d words",n),n))))}));function Tk(e){let{blockName:t}=e;const{preferredStyle:n,onUpdatePreferredStyleVariations:r,styles:i}=(0,f.useSelect)((e=>{var n,r;const i=e(qn).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==i||null===(n=i.value)||void 0===n?void 0:n[t],onUpdatePreferredStyleVariations:null!==(r=null==i?void 0:i.onChange)&&void 0!==r?r:null,styles:e(o.store).getBlockStyles(t)}}),[t]),l=(0,a.useMemo)((()=>[{label:(0,m.__)("Not set"),value:""},...i.map((e=>{let{label:t,name:n}=e;return{label:t,value:n}}))]),[i]),s=(0,a.useMemo)((()=>{var e;return null===(e=uf(i))||void 0===e?void 0:e.name}),[i]),c=(0,a.useCallback)((e=>{r(t,e)}),[t,r]);return n&&n!==s?r&&(0,a.createElement)("div",{className:"default-style-picker__default-switcher"},(0,a.createElement)(d.SelectControl,{options:l,value:n||"",label:(0,m.__)("Default Style"),onChange:c})):null}const Ok=e=>{let{clientId:t,blockName:n,hasBlockStyles:r}=e;const i=Td(t);return(0,a.createElement)("div",{className:"block-editor-block-inspector"},(0,a.createElement)(Rc,i),(0,a.createElement)(Jb,{blockClientId:t}),r&&(0,a.createElement)("div",null,(0,a.createElement)(d.PanelBody,{title:(0,m.__)("Styles")},(0,a.createElement)(Nb,{scope:"core/block-inspector",clientId:t}),(0,o.hasBlockSupport)(n,"defaultStylePicker",!0)&&(0,a.createElement)(Tk,{blockName:n}))),(0,a.createElement)(Lr.Slot,null),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"color",label:(0,m.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"typography",label:(0,m.__)("Typography")}),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"dimensions",label:(0,m.__)("Dimensions")}),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"border",label:(0,m.__)("Border")}),(0,a.createElement)("div",null,(0,a.createElement)(Nk,null)),(0,a.createElement)(xk,{key:"back"}))},Nk=()=>{const e=(0,d.__experimentalUseSlot)(Dr.slotName);return Boolean(e.fills&&e.fills.length)?(0,a.createElement)(d.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,m.__)("Advanced"),initialOpen:!1},(0,a.createElement)(Lr.Slot,{__experimentalGroup:"advanced"})):null};var Rk=e=>{let{showNoBlockSelectedMessage:t=!0}=e;const{count:n,hasBlockStyles:r,selectedBlockName:i,selectedBlockClientId:l,blockType:s}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:r}=e(qn),{getBlockStyles:i}=e(o.store),l=t(),a=l&&r(l),s=a&&(0,o.getBlockType)(a),c=a&&i(a);return{count:n(),selectedBlockClientId:l,selectedBlockName:a,blockType:s,hasBlockStyles:c&&c.length>0}}),[]);if(n>1)return(0,a.createElement)("div",{className:"block-editor-block-inspector"},(0,a.createElement)(Pk,null),(0,a.createElement)(Lr.Slot,null),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"color",label:(0,m.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"typography",label:(0,m.__)("Typography")}),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"dimensions",label:(0,m.__)("Dimensions")}),(0,a.createElement)(Lr.Slot,{__experimentalGroup:"border",label:(0,m.__)("Border")}));const c=i===(0,o.getUnregisteredTypeHandlerName)();return s&&l&&!c?(0,a.createElement)(Ok,{clientId:l,blockName:s.name,hasBlockStyles:r}):t?(0,a.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,m.__)("No block selected.")):null};function Fk(e){let{children:t,__unstableContentRef:n,...r}=e;const o=(0,p.useViewportMatch)("medium"),i=(0,f.useSelect)((e=>e(qn).getSettings().hasFixedToolbar),[]),s=(0,Hc.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:c,getBlockRootClientId:y}=(0,f.useSelect)(qn),{duplicateBlocks:m,removeBlocks:g,insertAfterBlock:h,insertBeforeBlock:b,clearSelectedBlock:v,moveBlocksUp:_,moveBlocksDown:k}=(0,f.useDispatch)(qn);return(0,a.createElement)("div",l({},r,{onKeyDown:function(e){if(s("core/block-editor/move-up",e)){const t=c();if(t.length){e.preventDefault();const n=y((0,u.first)(t));_(t,n)}}else if(s("core/block-editor/move-down",e)){const t=c();if(t.length){e.preventDefault();const n=y((0,u.first)(t));k(t,n)}}else if(s("core/block-editor/duplicate",e)){const t=c();t.length&&(e.preventDefault(),m(t))}else if(s("core/block-editor/remove",e)){const t=c();t.length&&(e.preventDefault(),g(t))}else if(s("core/block-editor/insert-after",e)){const t=c();t.length&&(e.preventDefault(),h((0,u.last)(t)))}else if(s("core/block-editor/insert-before",e)){const t=c();t.length&&(e.preventDefault(),b((0,u.first)(t)))}else if(s("core/block-editor/unselect",e)){c().length>1&&(e.preventDefault(),v(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges())}}}),(0,a.createElement)(Id,{__unstableContentRef:n},(i||!o)&&(0,a.createElement)(ay,{isFixed:!0}),(0,a.createElement)(py,{__unstableContentRef:n}),(0,a.createElement)(d.Popover.Slot,{name:"block-toolbar",ref:wd(n)}),t,(0,a.createElement)(d.Popover.Slot,{name:"__unstable-block-tools-after",ref:wd(n)})))}var Mk=(0,a.forwardRef)((function(e,t){let{rootClientId:n,clientId:r,isAppender:o,showInserterHelpPanel:i,showMostUsedBlocks:l=!1,__experimentalInsertionIndex:s,__experimentalFilterValue:c,onSelect:p=u.noop,shouldFocusBlock:d=!1}=e;const y=(0,f.useSelect)((e=>{const{getBlockRootClientId:t}=e(qn);return n||t(r)||void 0}),[r,n]);return(0,a.createElement)(yd,{onSelect:p,rootClientId:y,clientId:r,isAppender:o,showInserterHelpPanel:i,showMostUsedBlocks:l,__experimentalInsertionIndex:s,__experimentalFilterValue:c,shouldFocusBlock:d,ref:t})}));function Dk(){return null}Dk.Register=function(){const{registerShortcut:e}=(0,f.useDispatch)(Hc.store);return(0,a.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:(0,m.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,m.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,m.__)("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,m.__)("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,m.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,m.__)("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,m.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,m.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,m.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,m.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var Lk=Dk;function Uk(){return jt()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const jk=new Set([bc.UP,bc.RIGHT,bc.DOWN,bc.LEFT,bc.ENTER,bc.BACKSPACE]);function Vk(){const e=(0,f.useSelect)((e=>e(qn).isTyping()),[]),{stopTyping:t}=(0,f.useDispatch)(qn);return(0,p.useRefEffect)((n=>{if(!e)return;const{ownerDocument:r}=n;let o,i;function l(e){const{clientX:n,clientY:r}=e;o&&i&&(o!==n||i!==r)&&t(),o=n,i=r}return r.addEventListener("mousemove",l),()=>{r.removeEventListener("mousemove",l)}}),[e,t])}function zk(){const e=(0,f.useSelect)((e=>e(qn).isTyping())),{startTyping:t,stopTyping:n}=(0,f.useDispatch)(qn),r=Vk(),o=(0,p.useRefEffect)((r=>{const{ownerDocument:o}=r,{defaultView:i}=o;if(e){let a;function s(e){const{target:t}=e;a=i.setTimeout((()=>{(0,Zo.isTextField)(t)||n()}))}function c(e){const{keyCode:t}=e;t!==bc.ESCAPE&&t!==bc.TAB||n()}function u(){const e=i.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||n()}return r.addEventListener("focus",s),r.addEventListener("keydown",c),o.addEventListener("selectionchange",u),()=>{i.clearTimeout(a),r.removeEventListener("focus",s),r.removeEventListener("keydown",c),o.removeEventListener("selectionchange",u)}}function l(e){const{type:n,target:o}=e;(0,Zo.isTextField)(o)&&r.contains(o)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&jk.has(t)}(e))&&t()}return r.addEventListener("keypress",l),r.addEventListener("keydown",l),()=>{r.removeEventListener("keypress",l),r.removeEventListener("keydown",l)}}),[e,t,n]);return(0,p.useMergeRefs)([r,o])}var Gk=function(e){let{children:t}=e;return(0,a.createElement)("div",{ref:zk()},t)};const Hk=-1!==window.navigator.userAgent.indexOf("Trident"),Wk=new Set([bc.UP,bc.DOWN,bc.LEFT,bc.RIGHT]);function $k(){const e=(0,f.useSelect)((e=>e(qn).hasSelectedBlock()),[]);return(0,p.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:r}=n;let o,i,l;function a(){o||(o=r.requestAnimationFrame((()=>{d(),o=null})))}function s(e){i&&r.cancelAnimationFrame(i),i=r.requestAnimationFrame((()=>{c(e),i=null}))}function c(e){let{keyCode:o}=e;if(!f())return;const i=(0,Zo.computeCaretRect)(r);if(!i)return;if(!l)return void(l=i);if(Wk.has(o))return void(l=i);const a=i.top-l.top;if(0===a)return;const s=(0,Zo.getScrollContainer)(t);if(!s)return;const c=s===n.body,u=c?r.scrollY:s.scrollTop,p=c?0:s.getBoundingClientRect().top,d=c?l.top/r.innerHeight:(l.top-p)/(r.innerHeight-p);if(0===u&&d<.75&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(l=i);const y=c?r.innerHeight:s.clientHeight;l.top+l.height>p+y||l.top<p?l=i:c?r.scrollBy(0,a):s.scrollTop+=a}function u(){n.addEventListener("selectionchange",p)}function p(){n.removeEventListener("selectionchange",p),d()}function d(){f()&&(l=(0,Zo.computeCaretRect)(r))}function f(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return r.addEventListener("scroll",a,!0),r.addEventListener("resize",a,!0),t.addEventListener("keydown",s),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{r.removeEventListener("scroll",a,!0),r.removeEventListener("resize",a,!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 Kk=Hk?e=>e.children:function(e){let{children:t}=e;return(0,a.createElement)("div",{ref:$k(),className:"block-editor__typewriter"},t)};const qk=(0,a.createContext)({});function Jk(e,t,n){const r={...e,[t]:e[t]?new Set(e[t]):new Set};return r[t].add(n),r}function Yk(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,a.useContext)(qk),{name:o}=Xn();n=n||o;const i=Boolean(null===(t=r[n])||void 0===t?void 0:t.has(e)),l=(0,a.useMemo)((()=>Jk(r,n,e)),[r,n,e]),s=(0,a.useCallback)((e=>{let{children:t}=e;return(0,a.createElement)(qk.Provider,{value:l},t)}),[l]);return[i,s]}const Qk=(e,t)=>{if(!t||!e)return;const n=t.filter((t=>{let{attributes:n}=t;return!(!n||!Object.keys(n).length)&&(0,u.isMatch)(e,n)}));return 1===n.length?n[0]:void 0};function Xk(e){const t=null==e?void 0: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 Zk(e,t){const n=e.split(/[(),]/g).filter(Boolean),r=n.slice(1).map((e=>Xk(oE(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 eE(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=Zk(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return Xk(e)}function tE(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}function nE(e){let t=!1;const n=e.split(/[+-/*/]/g).filter(Boolean);for(const r of n){const n=Xk(oE(r));if(!parseFloat(n.value)){t=!0;break}e=e.replace(r,n.value)}return t?null:(r=e,Function(`'use strict'; return (${r})`)()).toFixed(0)+"px";var r}function rE(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},l={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":l[e.unit]?(l[e.unit]*e.value).toFixed(0)+"px":null}function oE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=Xk(e);return n.unit||(n=eE(e)),tE(e)&&!n.unit?nE(e):rE(n,t)}const iE={};function lE(e){let t="";return 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),t}var aE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e+lE(t);return iE[n]||(iE[n]=oE(e,t)),iE[n]}}(),(window.wp=window.wp||{}).blockEditor=r}();