!function(){var e={960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},679:function(e,t,n){"use strict";var o=n(296),l={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return o.isMemo(e)?i:a[e.$$typeof]||l}a[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[o.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var l=f(n);l&&l!==m&&e(t,l,o)}var i=u(n);d&&(i=i.concat(d(n)));for(var a=s(t),v=s(n),h=0;h/i,s=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""),d.parseFromString(e,"text/html")}}if(document.implementation){var p=n(507).isIE,f=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);c=function(e,t){return t?(f.documentElement.getElementsByTagName(t)[0].innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var m,v=document.createElement("template");v.content&&(m=function(e){return v.innerHTML=e,v.content.childNodes}),e.exports=function(e){var t,n,d,p,f=e.match(i);switch(f&&f[1]&&(t=f[1].toLowerCase()),t){case o:return n=u(e),a.test(e)||(d=n.getElementsByTagName(l)[0])&&d.parentNode.removeChild(d),s.test(e)||(d=n.getElementsByTagName(r)[0])&&d.parentNode.removeChild(d),n.getElementsByTagName(o);case l:case r:return p=c(e).getElementsByTagName(t),s.test(e)&&a.test(e)?p[0].parentNode.childNodes:p;default:return m?m(e):c(e,r).getElementsByTagName(r)[0].childNodes}}},152:function(e,t,n){var o=n(276),l=n(507).formatDOM,r=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(r);return n&&n[1]&&(t=n[1]),l(o(e),null,t)}},507:function(e,t,n){for(var o,l=n(885),r=n(642),i=l.CASE_SENSITIVE_TAG_NAMES,a=r.Comment,s=r.Element,c=r.ProcessingInstruction,u=r.Text,d={},p=0,f=i.length;p0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var m=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return l(t,e),t}(f);t.Document=m;var v=function(e){function t(t,n,o,l){void 0===o&&(o=[]),void 0===l&&(l="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var r=e.call(this,l,o)||this;return r.name=t,r.attribs=n,r}return l(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(f);function h(e){return(0,i.isTag)(e)}function y(e){return e.type===i.ElementType.CDATA}function b(e){return e.type===i.ElementType.Text}function g(e){return e.type===i.ElementType.Comment}function k(e){return e.type===i.ElementType.Directive}function w(e){return e.type===i.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new u(e.data);else if(g(e))n=new d(e.data);else if(h(e)){var o=t?x(e.children):[],l=new v(e.name,r({},e.attribs),o);o.forEach((function(e){return e.parent=l})),null!=e.namespace&&(l.namespace=e.namespace),e["x-attribsNamespace"]&&(l["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(l["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=l}else if(y(e)){o=t?x(e.children):[];var a=new f(i.ElementType.CDATA,o);o.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){o=t?x(e.children):[];var s=new m(o);o.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n1&&(u=m(u,{key:u.key||k})),y.push(u);else if("text"!==r.type){switch(d=r.attribs,s(r)?i(d.style,d):d&&(d=l(d)),p=null,r.type){case"script":case"style":r.children[0]&&(d.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?d.defaultValue=r.children[0].data:r.children&&r.children.length&&(p=e(r.children,n));break;default:continue}w>1&&(d.key=k),y.push(v(r.name,d,p))}else{if((c=!r.data.trim().length)&&r.parent&&!a(r.parent))continue;if(g&&c)continue;y.push(r.data)}return 1===y.length?y[0]:y}},606:function(e,t,n){var o=n(196),l=n(476).default,r={reactCompat:!0},i=o.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,o,l="function"==typeof t,r={},i={};for(n in e)o=e[n],l&&(r=t(n,o))&&2===r.length?i[r[0]]=r[1]:"string"==typeof o&&(i[o]=n);return i},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=l(e,r)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},384:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var l=Object.getOwnPropertyDescriptor(t,n);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,l)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=n(960),i=n(79);l(n(79),t);var a=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===r.ElementType.Text)t?n.data=(n.data+e).replace(a," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var o=new i.Text(e);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren(r.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},79:function(e,t,n){"use strict";var o,l=this&&this.__extends||(o=function(e,t){return o=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])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var m=function(e){function t(t){return e.call(this,i.ElementType.Root,t)||this}return l(t,e),t}(f);t.Document=m;var v=function(e){function t(t,n,o,l){void 0===o&&(o=[]),void 0===l&&(l="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var r=e.call(this,l,o)||this;return r.name=t,r.attribs=n,r}return l(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(f);function h(e){return(0,i.isTag)(e)}function y(e){return e.type===i.ElementType.CDATA}function b(e){return e.type===i.ElementType.Text}function g(e){return e.type===i.ElementType.Comment}function k(e){return e.type===i.ElementType.Directive}function w(e){return e.type===i.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new u(e.data);else if(g(e))n=new d(e.data);else if(h(e)){var o=t?x(e.children):[],l=new v(e.name,r({},e.attribs),o);o.forEach((function(e){return e.parent=l})),null!=e.namespace&&(l.namespace=e.namespace),e["x-attribsNamespace"]&&(l["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(l["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=l}else if(y(e)){o=t?x(e.children):[];var a=new f(i.ElementType.CDATA,o);o.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){o=t?x(e.children):[];var s=new m(o);o.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!k(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n{let{children:n}=t;return(0,e.createElement)("p",{className:"blockify-control-label"},n)};var c=window.wp.primitives;const u=()=>(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 120 120",xmlSpace:"preserve"},(0,e.createElement)(c.Path,{d:"M15 0h35v120H15zm55 0h35v120H70z"}));var d,p,f,m=e=>{var t;return e?null==e||null===(t=e.toLowerCase())||void 0===t?void 0:t.replace(/(?<= )[^\s]|^./g,(e=>null==e?void 0:e.toUpperCase())):""},v=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));const h=[{value:"ease",label:(0,t.__)("Ease","blockify")},{value:"ease-in",label:(0,t.__)("Ease In","blockify")},{value:"ease-out",label:(0,t.__)("Ease Out","blockify"),isDefault:!0},{value:"ease-in-out",label:(0,t.__)("Ease In Out","blockify")},{value:"linear",label:(0,t.__)("Linear","blockify")}],y=[{value:"",label:""}];null===(d=window)||void 0===d||null===(p=d.blockify)||void 0===p||null===(f=p.animations)||void 0===f||f.forEach((e=>{y.push({value:e,label:m(null==e?void 0:e.replace(/-/g," "))})}));const b=[{value:"enter",label:(0,t.__)("Enter","blockify"),isDefault:!0},{value:"exit",label:(0,t.__)("Exit","blockify")},{value:"infinite",label:(0,t.__)("Infinite","blockify")}],g=e=>{var t,n,o,l,r;return null!==(t=null===(n=window)||void 0===n||null===(o=n.blockify)||void 0===o||null===(l=o.blockSupports)||void 0===l||null===(r=l[e])||void 0===r?void 0:r.blockifyAnimation)&&void 0!==t&&t};(0,o.addFilter)("blocks.registerBlockType","blockify/add-animation-attributes",((e,t)=>(g(t)&&(e.attributes={...e.attributes,animation:{type:"object"}}),e)),0);const k=e=>{const t={};var n,o,l,r,i,a,s;return null!=e&&e.event&&(t["--animation-event"]=null!==(n=e.event)&&void 0!==n?n:"enter","infinite"===e.event&&(t.animationIterationCount="infinite")),null!=e&&e.name&&(t.animationName=null!==(o=e.name)&&void 0!==o?o:""),null!=e&&e.duration&&(t.animationDuration=(null!==(l=e.duration)&&void 0!==l?l:"1")+"s"),null!=e&&e.delay&&(t.animationDelay=(null!==(r=e.delay)&&void 0!==r?r:"0")+"s"),null!=e&&e.timingFunction&&(t.animationTimingFunction=null!==(i=null==e?void 0:e.timingFunction)&&void 0!==i?i:"ease-in-out"),null!=t&&t.animationIterationCount||(t.animationIterationCount=null!==(a=null==e?void 0:e.iterationCount)&&void 0!==a?a:"1"),null!=e&&e.playState&&(t.animationPlayState=null!==(s=null==e?void 0:e.playState)&&void 0!==s?s:"running"),t};(0,o.addFilter)("editor.BlockListBlock","blockify/with-animation-props",(0,l.createHigherOrderComponent)((t=>n=>{var o,l,r,i,s,c,u;const{attributes:d}=n,p=null!==(o=null==d?void 0:d.animation)&&void 0!==o?o:{};if(!p||null==Object||null===(l=Object.keys(p))||void 0===l||!l.length)return(0,e.createElement)(t,n);const f=k(p),m={...null==n?void 0:n.wrapperProps,className:null!==(r=null==n||null===(i=n.wrapperProps)||void 0===i?void 0:i.className)&&void 0!==r?r:"",style:{...null==n||null===(s=n.wrapperProps)||void 0===s?void 0:s.style,...f}};return n.className=(null==n||null===(c=n.className)||void 0===c?void 0:c.trim())+" has-animation",m.className=(null==m||null===(u=m.className)||void 0===u?void 0:u.trim())+" has-animation",(0,e.createElement)(t,a({},n,{wrapperProps:m}))}),"withAnimation")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-animation-styles",((e,t,n)=>{var o,l,r;const i=null!==(o=null==n?void 0:n.animation)&&void 0!==o?o:{};if(!i||null==Object||null===(l=Object.keys(i))||void 0===l||!l.length)return e;e.className=(null==e||null===(r=e.className)||void 0===r?void 0:r.trim())+" has-animation";const a=k(i);return{...e,style:{...null==e?void 0:e.style,...a}}}));const w=n=>{var o,l,r,a,c,d,p;let{attributes:f,setAttributes:m}=n;const g=null!==(o=null==f?void 0:f.animation)&&void 0!==o?o:{};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(s,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,t.__)("Animation","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>m({animation:{}}),icon:v,iconSize:16,"aria-label":(0,t.__)("Clear Animation","blockify")}))),(0,e.createElement)(i.Flex,{justify:"flex-end"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.Button,{isSecondary:!0,isSmall:!0,icon:"running"===(null==g?void 0:g.playState)?u:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:"currentColor"},(0,e.createElement)("polygon",{points:"10,5 0,10 0,0"})),iconSize:10,onClick:()=>{m({animation:{...g,playState:"running"===(null==g?void 0:g.playState)?"paused":"running"}})}},"running"===(null==g?void 0:g.playState)?(0,t.__)("Pause","blockify"):(0,t.__)("Run","blockify"))))),(0,e.createElement)(i.PanelRow,{className:"blockify-animate-controls"},(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Effect","blockify"),value:null!==(l=null==g?void 0:g.name)&&void 0!==l?l:"",options:y,onChange:e=>{var t;m({animation:{...g,name:e,duration:null!==(t=null==g?void 0:g.duration)&&void 0!==t?t:1}})}}))),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Easing","blockify"),value:null!==(r=null==g?void 0:g.timingFunction)&&void 0!==r?r:"",options:h,onChange:e=>{m({animation:{...g,timingFunction:e}})}}))),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Event","blockify"),value:null!==(a=null==g?void 0:g.event)&&void 0!==a?a:"enter",options:b,onChange:e=>{m({animation:{...g,event:e,iterationCount:"infinite"===e?"-1":"-1"===(null==g?void 0:g.iterationCount)?"1":null==g?void 0:g.iterationCount}})}})))),(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Duration","blockify"),help:(0,t.__)("The duration of the animation in milliseconds. Leave empty or 0 for infinite.","blockify"),value:null!==(c=null==g?void 0:g.duration)&&void 0!==c?c:1,onChange:e=>{m({animation:{...g,duration:e}})},min:0,max:100,step:.1,shifStep:10,allowReset:!0})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Delay","blockify"),help:(0,t.__)("The delay for the animation when block enters viewport.","blockify"),value:null!==(d=null==g?void 0:g.delay)&&void 0!==d?d:0,onChange:e=>{m({animation:{...g,delay:e}})},min:0,max:100,step:.1,shifStep:10,allowReset:!0})),(0,e.createElement)(i.FlexItem,null,"infinite"!==(null==g?void 0:g.event)&&(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Repeat","blockify"),help:(0,t.__)("The number of times the animation should be performed.","blockify"),value:"infinite"===(null==g?void 0:g.event)?-1:null!==(p=null==g?void 0:g.iterationCount)&&void 0!==p?p:1,onChange:e=>{m({animation:{...g,iterationCount:e}})},min:-1,max:100,step:1,allowReset:!0})))))};var E,x,C,S=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})),_=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));const O=null!==(E=null===(x=window)||void 0===x||null===(C=x.blockify)||void 0===C?void 0:C.blockSupports)&&void 0!==E?E:{},I=e=>{var t,n;return null!==(t=null==O||null===(n=O[e])||void 0===n?void 0:n.blockifyPosition)&&void 0!==t&&t},P=["","none","block","inline-block","inline","flex","inline-flex","grid","inline-grid"],T=(n,o)=>{var l,r,a,s,c,u;const{attributes:d,setAttributes:p}=n,{style:f}=d;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,{className:"blockify-display-controls"},(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Display","blockify"),value:null!==(l=null==f||null===(r=f.display)||void 0===r?void 0:r[o])&&void 0!==l?l:"",options:P.map((e=>({label:m(null==e?void 0:e.replace("-"," ")),value:e}))),onChange:e=>{p({style:{...f,display:{...null==f?void 0:f.display,[o]:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Order","blockify"),value:null!==(a=null==f||null===(s=f.order)||void 0===s?void 0:s[o])&&void 0!==a?a:"",onChange:e=>{p({style:{...f,order:{...null==f?void 0:f.order,[o]:e}}})},min:-10,max:10,step:1,allowReset:!0}))),(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Width","blockify"),value:null==f||null===(c=f.width)||void 0===c?void 0:c[o],onChange:e=>{p({style:{...f,width:{...null==f?void 0:f.width,[o]:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Max Width","blockify"),value:null==f||null===(u=f.maxWidth)||void 0===u?void 0:u[o],onChange:e=>{p({style:{...f,maxWidth:{...null==f?void 0:f.maxWidth,[o]:e}}})}})))))},F=n=>{const{attributes:o,setAttributes:l}=n,[r,a]=(0,e.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(s,null,(0,e.createElement)(e.Fragment,null,(0,t.__)("Display","blockify"),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{l({style:{...null==o?void 0:o.style,display:"",order:"",width:"",maxWidth:""}})},icon:v,iconSize:16,"aria-label":(0,t.__)("Reset Display","blockify")}))),(0,e.createElement)(i.ButtonGroup,null,(0,e.createElement)(i.Button,{isSmall:!0,variant:"all"===r?"primary":"secondary",onClick:()=>a("all")},(0,t.__)("All","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,variant:"mobile"===r?"primary":"secondary",onClick:()=>a("mobile"),icon:S}),(0,e.createElement)(i.Button,{isSmall:!0,variant:"desktop"===r?"primary":"secondary",onClick:()=>a("desktop"),icon:_}))),"all"===r&&T(n,r),"mobile"===r&&T(n,r),"desktop"===r&&T(n,r))},M=e=>{var t,n,o;return e&&null!==(t=null==e||null===(n=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))||void 0===n||null===(o=n.join("-"))||void 0===o?void 0:o.toLowerCase())&&void 0!==t?t:""},N=e=>{var t,n,o,l,r;return null!==(t=null===(n=window)||void 0===n||null===(o=n.blockify)||void 0===o||null===(l=o.blockSupports)||void 0===l||null===(r=l[e])||void 0===r?void 0:r.blockifyFilter)&&void 0!==t&&t},D={blur:{unit:"px",min:0,max:500},brightness:{unit:"%",min:0,max:360},contrast:{unit:"%",min:0,max:200},grayscale:{unit:"%",min:0,max:100},hueRotate:{unit:"deg",min:-360,max:360},invert:{unit:"%",min:0,max:100},opacity:{unit:"%",min:0,max:100},saturate:{unit:"",min:0,max:100,step:.1},sepia:{unit:"%",min:0,max:100}};(0,o.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n,o;return N(t)?(e.attributes={...e.attributes,style:{...null!==(n=null==e||null===(o=e.attributes)||void 0===o?void 0:o.style)&&void 0!==n?n:{},filter:{type:"string"}}},e):e}));const A=e=>{let t="";return Object.keys(D).forEach((n=>{var o;null!=e&&e.hasOwnProperty(n)&&void 0!==e[n]&&(t+=" "+M(n)+"("+e[n]+(null==D||null===(o=D[n])||void 0===o?void 0:o.unit)+")")})),t?{[null!=e&&e.backdrop?"backdrop-filter":"filter"]:t.trim()}:{}};(0,o.addFilter)("editor.BlockListBlock","blockify/with-css-filter",(0,l.createHigherOrderComponent)((t=>n=>{var o,l,r,i,s;const c=null!==(o=null==n||null===(l=n.attributes)||void 0===l||null===(r=l.style)||void 0===r?void 0:r.filter)&&void 0!==o?o:{},u=(0,e.createElement)(t,n);if(!c||c==={})return u;const d=A(c);if(!Object.keys(d).length)return u;n.style={...null!==(i=n.style)&&void 0!==i?i:{},...d};const p={...n.wrapperProps,style:{...null===(s=n.wrapperProps)||void 0===s?void 0:s.style,...d}};return(0,e.createElement)(t,a({},n,{wrapperProps:p}))}),"withCssFilter")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-filter-styles",((e,t,n)=>{var o,l;const r=null!==(o=null==n||null===(l=n.style)||void 0===l?void 0:l.filter)&&void 0!==o?o:{};if(!r||r==={})return e;const i=A(r);return Object.keys(i).length?{...e,style:{...null==e?void 0:e.style,...i}}:e}));const R=n=>{var o;const{attributes:l,setAttributes:r}=n,{style:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(s,null,(0,e.createElement)(e.Fragment,null,(0,t.__)("Filter","blockify"),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...null==l?void 0:l.style,filter:{}}})},icon:v,iconSize:16,"aria-label":(0,t.__)("Clear Filters","blockify")}))),(0,e.createElement)(i.PanelRow,{className:"blockify-filter-settings"},Object.keys(D).map((n=>{var o,l,s,c,u,d;return(0,e.createElement)(i.__experimentalNumberControl,{label:"hueRotate"===n?(0,t.__)("Hue Rotate","blockify"):m(n),value:null==a||null===(o=a.filter)||void 0===o?void 0:o[n],onChange:e=>{var t;r({style:{...a,filter:{...null!==(t=null==a?void 0:a.filter)&&void 0!==t?t:{},[n]:e}}})},min:null!==(l=null==D||null===(s=D[n])||void 0===s?void 0:s.min)&&void 0!==l?l:0,max:null==D||null===(c=D[n])||void 0===c?void 0:c.max,step:null!==(u=null==D||null===(d=D[n])||void 0===d?void 0:d.step)&&void 0!==u?u:1,allowReset:!0})}))),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Use as backdrop filter","blockify"),checked:null==a||null===(o=a.filter)||void 0===o?void 0:o.backdrop,onChange:e=>{r({style:{...a,filter:{...null==a?void 0:a.filter,backdrop:e}}})}})))};var V,B,L,z,j,H;const U=null!==(V=null===(B=window)||void 0===B||null===(L=B.blockify)||void 0===L?void 0:L.blockSupports)&&void 0!==V?V:{},$=e=>{var t,n;return null!==(t=null==U||null===(n=U[e])||void 0===n?void 0:n.blockifyPosition)&&void 0!==t&&t},G=null!==(z=null===(j=window)||void 0===j||null===(H=j.blockify)||void 0===H?void 0:H.positionOptions)&&void 0!==z?z:{};(0,o.addFilter)("blocks.registerBlockType","blockify/add-position-attributes",((e,t)=>{if($(t)){var n,o;let t={};Object.keys(G).forEach((e=>{t[e]={type:"object"}})),e.attributes={...e.attributes,style:{...t,...null!==(n=null==e||null===(o=e.attributes)||void 0===o?void 0:o.style)&&void 0!==n?n:{}}}}return e}),0);const W=e=>{var t;let n=[];const o=null!==(t=null==e?void 0:e.style)&&void 0!==t?t:{};return Object.keys(G).forEach((e=>{var t;const l=M(e);var r,i,a,s,c,u,d,p,f;null!=G&&null!==(t=G[e])&&void 0!==t&&t.options?(null!==(r=null==o||null===(i=o[e])||void 0===i?void 0:i.all)&&void 0!==r&&r&&n.push(`has-${l}-${M(null==o||null===(d=o[e])||void 0===d?void 0:d.all)}`),null!==(a=null==o||null===(s=o[e])||void 0===s?void 0:s.mobile)&&void 0!==a&&a&&n.push(`has-${l}-${M(null==o||null===(p=o[e])||void 0===p?void 0:p.mobile)}-mobile`),null!==(c=null==o||null===(u=o[e])||void 0===u?void 0:u.desktop)&&void 0!==c&&c&&n.push(`has-${l}-${M(null==o||null===(f=o[e])||void 0===f?void 0:f.desktop)}-desktop`)):null!=o&&o[e]&&n.push(`has-${l}`)})),n},q=e=>{var t;let n={};const o=null!==(t=null==e?void 0:e.style)&&void 0!==t?t:{};return Object.keys(G).forEach((e=>{var t,l,r,i,a,s,c;if(null!=G&&null!==(t=G[e])&&void 0!==t&&t.options)return;const u=M(e);var d,p,f;null!==(l=null==o||null===(r=o[e])||void 0===r?void 0:r.all)&&void 0!==l&&l&&(n[`--${u}`]=null==o||null===(d=o[e])||void 0===d?void 0:d.all),null!==(i=null==o||null===(a=o[e])||void 0===a?void 0:a.mobile)&&void 0!==i&&i&&(n[`--${u}-mobile`]=null==o||null===(p=o[e])||void 0===p?void 0:p.mobile),null!==(s=null==o||null===(c=o[e])||void 0===c?void 0:c.desktop)&&void 0!==s&&s&&(n[`--${u}-desktop`]=null==o||null===(f=o[e])||void 0===f?void 0:f.desktop)})),n};(0,o.addFilter)("editor.BlockListBlock","blockify/with-position-style",(0,l.createHigherOrderComponent)((t=>n=>{var o;const{name:l,attributes:r}=n;if(!$(l))return(0,e.createElement)(t,n);const i=W(r),a=q(r);let s=null!==(o=null==n?void 0:n.wrapperProps)&&void 0!==o?o:{};return n.style={...null==n?void 0:n.style,...a},s&&(s.style={...null==s?void 0:s.style,...a}),i.forEach((e=>{var t;null!=n&&null!==(t=n.className)&&void 0!==t&&t.includes(e)||(n.className=(null==n?void 0:n.className)+" "+e)})),n.wrapperProps=s,(0,e.createElement)(t,n)}),"withPositionStyle")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/save-position-style",(e=>{var t;const{name:n,attributes:o}=e;if(null==U||null===(t=U[n])||void 0===t||!t.blockifyPosition)return e;const l=W(o),r=q(o);return l.forEach((t=>{var n;null!=e&&null!==(n=e.className)&&void 0!==n&&n.includes(t)||(e.className=(null==e?void 0:e.className)+" "+t)})),e.style={...null==e?void 0:e.style,...r},e}),11);const Y=(n,o)=>{var l,r,a,s,c,u,d,p,f,m,v,h,y,b,g,k,w,E,x,C;const{attributes:S,setAttributes:_}=n,O=null!==(l=null==S?void 0:S.style)&&void 0!==l?l:{},I=e=>{let t={};Object.keys(e).forEach((n=>{t[n]={...null==O?void 0:O[n],[o]:e[n]}})),_({style:{...O,...t}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Position","blockify"),value:null!==(r=null==O||null===(a=O.position)||void 0===a?void 0:a[o])&&void 0!==r?r:"",options:null==G||null===(s=G.position)||void 0===s?void 0:s.options,onChange:e=>{I({position:e})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:null==G||null===(c=G.zIndex)||void 0===c?void 0:c.label,value:null==O||null===(u=O.zIndex)||void 0===u?void 0:u[o],onChange:e=>{I({zIndex:e})},min:-100,max:100,step:1,allowReset:!0})))),(null==O?void 0:O.position)&&(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Overflow","blockify"),value:null!==(d=null==O||null===(p=O.overflow)||void 0===p?void 0:p[o])&&void 0!==d?d:"",options:null==G||null===(f=G.overflow)||void 0===f?void 0:f.options,onChange:e=>{I({overflow:e})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Pointer Events","blockify"),value:null!==(m=null==O||null===(v=O.pointerEvents)||void 0===v?void 0:v[o])&&void 0!==m?m:"",options:null==G||null===(h=G.pointerEvents)||void 0===h?void 0:h.options,onChange:e=>{I({pointerEvents:e})}})))),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.__experimentalBoxControl,{className:"blockify-box-control",label:(0,t.__)("Inset","blockify"),values:{top:null!==(y=null==O||null===(b=O.top)||void 0===b?void 0:b[o])&&void 0!==y?y:"",right:null!==(g=null==O||null===(k=O.right)||void 0===k?void 0:k[o])&&void 0!==g?g:"",bottom:null!==(w=null==O||null===(E=O.bottom)||void 0===E?void 0:E[o])&&void 0!==w?w:"",left:null!==(x=null==O||null===(C=O.left)||void 0===C?void 0:C[o])&&void 0!==x?x:""},onChange:e=>{var t,n,o,l;I({top:null!==(t=null==e?void 0:e.top)&&void 0!==t?t:"",right:null!==(n=null==e?void 0:e.right)&&void 0!==n?n:"",bottom:null!==(o=null==e?void 0:e.bottom)&&void 0!==o?o:"",left:null!==(l=null==e?void 0:e.left)&&void 0!==l?l:""})},inputProps:{min:-999}})))},X=n=>{const{attributes:o,setAttributes:l}=n,[r,a]=(0,e.useState)("all");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(s,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,t.__)("Position","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{l({style:{...null==o?void 0:o.style,position:"",zIndex:"",top:"",right:"",bottom:"",left:""}})},icon:v,iconSize:16,"aria-label":(0,t.__)("Reset Position","blockify")}))),(0,e.createElement)(i.ButtonGroup,null,(0,e.createElement)(i.Button,{isSmall:!0,variant:"all"===r?"primary":"tertiary",onClick:()=>a("all")},(0,t.__)("All","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,variant:"mobile"===r?"primary":"tertiary",onClick:()=>a("mobile"),icon:S}),(0,e.createElement)(i.Button,{isSmall:!0,variant:"desktop"===r?"primary":"tertiary",onClick:()=>a("desktop"),icon:_}))),"all"===r&&Y(n,r),"mobile"===r&&Y(n,r),"desktop"===r&&Y(n,r))},K=e=>{var t,n,o,l,r;return null!==(t=null===(n=window)||void 0===n||null===(o=n.blockify)||void 0===o||null===(l=o.blockSupports)||void 0===l||null===(r=l[e])||void 0===r?void 0:r.blockifyBoxShadow)&&void 0!==t&&t};(0,o.addFilter)("blocks.registerBlockType","blockify/add-box-shadow-attributes",((e,t)=>{var n,o;return K(t)&&(e.attributes={...e.attributes,style:{...null!==(n=null==e||null===(o=e.attributes)||void 0===o?void 0:o.style)&&void 0!==n?n:{},boxShadow:{type:"object"}}}),e}),0);const Z=e=>{var t,n;const o=null!==(t=null==e||null===(n=e.style)||void 0===n?void 0:n.boxShadow)&&void 0!==t?t:{};let l={};const r={inset:"",x:"px",y:"px",blur:"px",spread:"px",color:""};return Object.keys(r).map((e=>{var t,n,i,a,s;(null!=o&&o[e]||"0"===(null==o||null===(t=o[e])||void 0===t?void 0:t.toString()))&&(l["--wp--custom--box-shadow--"+e]=(null==o?void 0:o[e])+(null==r?void 0:r[e])),(null!=o&&null!==(n=o.hover)&&void 0!==n&&n[e]||"0"===(null==o||null===(i=o.hover)||void 0===i||null===(a=i[e])||void 0===a?void 0:a.toString()))&&(l["--wp--custom--box-shadow--hover--"+e]=(null==o||null===(s=o.hover)||void 0===s?void 0:s[e])+(null==r?void 0:r[e]))})),l},J=(n,o)=>{var l,a,s;const{attributes:c,setAttributes:u}=n,{style:d}=c,p=null!==(l=null==d?void 0:d.boxShadow)&&void 0!==l?l:{},f=e=>{let t;t="default"===o?{...e}:{hover:{...null==p?void 0:p.hover,...e}},u({style:{...d,boxShadow:{...p,...t}}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,null,["x","y","blur","spread"].map((t=>{var n;return(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:m(t),value:"default"===o?p[t]:null==p||null===(n=p.hover)||void 0===n?void 0:n[t],step:1,shiftStep:10,onChange:e=>{f({[t]:e})}}))})))),(0,e.createElement)("br",null),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,{style:{flex:1.5}},(0,e.createElement)(r.__experimentalPanelColorGradientSettings,{title:(0,t.__)("Color","blockify"),showTitle:!1,enableAlpha:!0,settings:[{enableAlpha:!0,colorValue:"default"===o?null==p?void 0:p.color:null==p||null===(a=p[o])||void 0===a?void 0:a.color,label:(0,t.__)("Color ","blockify")+("hover"===o?(0,t.__)(" Hover","blockify"):""),onColorChange:e=>{f({color:e})}}]})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Inset","blockify"),checked:"default"===o?null==p?void 0:p.inset:null==p||null===(s=p[o])||void 0===s?void 0:s.inset,onChange:e=>{f({inset:e?"inset":""})}})))))};(0,o.addFilter)("editor.BlockListBlock","blockify/edit-box-shadow-styles",(0,l.createHigherOrderComponent)((t=>n=>{const{attributes:o,name:l}=n;if(!K(l))return(0,e.createElement)(t,n);const r=Z(o);if(!Object.keys(r).length)return(0,e.createElement)(t,n);let i={...n.wrapperProps};return n.className+=" has-box-shadow",i.className+=" has-box-shadow",n.style={...n.style,...r},i.style={...i.style,...r},(0,e.createElement)(t,a({},n,{wrapperProps:i}))}),"withBoxShadow")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/save-box-shadow-styles",((e,t,n)=>{const{name:o}=t;if(!K(o))return e;const l=Z(n);return Object.keys(l).length?(e.className+=" has-box-shadow",e.style={...e.style,...l},e):e}));const Q=n=>{const{attributes:o,setAttributes:l}=n,[r,a]=(0,e.useState)("default");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(s,null,(0,e.createElement)(e.Fragment,null,(0,t.__)("Shadow","blockify"),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{l({style:{...null==o?void 0:o.style,boxShadow:""}})},icon:v,iconSize:16,"aria-label":(0,t.__)("Clear Shadow","blockify")}))),(0,e.createElement)(i.ButtonGroup,null,(0,e.createElement)(i.Button,{isSmall:!0,variant:"default"===r?"primary":"secondary",onClick:()=>a("default")},(0,t.__)("Default","blockify")),(0,e.createElement)(i.Button,{isSmall:!0,variant:"hover"===r?"primary":"secondary",onClick:()=>a("hover")},(0,t.__)("Hover","blockify")))),"default"===r&&J(n,r),"hover"===r&&J(n,r))},ee=e=>{var t,n,o,l,r;return null!==(t=null===(n=window)||void 0===n||null===(o=n.blockify)||void 0===o||null===(l=o.blockSupports)||void 0===l||null===(r=l[e])||void 0===r?void 0:r.blockifyTransform)&&void 0!==t&&t},te={rotate:"deg",rotateX:"deg",rotateY:"deg",scale:"",scaleX:"",scaleY:"",skew:"deg",skewX:"deg",skewY:"deg",translateX:"",translateY:"",translateZ:""};(0,o.addFilter)("blocks.registerBlockType","blockify/add-css-transform-attributes",((e,t)=>{var n,o;return ee(t)?(e.attributes={...e.attributes,style:{...null!==(n=null==e||null===(o=e.attributes)||void 0===o?void 0:o.style)&&void 0!==n?n:{},transform:{type:"string"}}},e):e}));const ne=e=>{let t="";return Object.keys(te).forEach((n=>{if(null!=e&&e[n]){const o=e[n];t+=` ${n}(${o}${te[n]})`}})),t?{transform:t.trim()}:{}};(0,o.addFilter)("editor.BlockListBlock","blockify/with-css-transform",(0,l.createHigherOrderComponent)((t=>n=>{var o,l;const{attributes:r,name:i}=n,s=(0,e.createElement)(t,n);if(!ee(i))return s;const{style:c}=r,u=null!==(o=null==c?void 0:c.transform)&&void 0!==o?o:{};if(!u)return s;const d=ne(u);if(!Object.keys(d).length)return s;n.style={...null==n?void 0:n.style,...d};const p={...n.wrapperProps,style:{...null===(l=n.wrapperProps)||void 0===l?void 0:l.style,...d}};return(0,e.createElement)(t,a({},n,{wrapperProps:p}))}),"withCssTransform")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-css-transform-styles",((e,t,n)=>{var o;const{name:l}=t;if(!ee(l))return e;const{style:r}=n,i=null!==(o=null==r?void 0:r.transform)&&void 0!==o?o:{};if(!i)return e;const a=ne(i);return Object.keys(a).length?{...e,style:{...null==e?void 0:e.style,...a}}:e}));const oe=n=>{var o;const{attributes:l,setAttributes:r}=n,{style:a}=l,c=null!==(o=null==a?void 0:a.transform)&&void 0!==o?o:{};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(s,null,(0,e.createElement)(e.Fragment,null,(0,t.__)("Transform","blockify"),(0,e.createElement)(i.Button,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>{r({style:{...null==l?void 0:l.style,transform:""}})},icon:v,iconSize:16,"aria-label":(0,t.__)("Clear Transforms","blockify")})))),(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Rotate","blockify"),value:null==c?void 0:c.rotate,onChange:e=>{r({style:{...a,transform:{...c,rotate:e}}})},min:-360,max:360,step:1})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Rotate X","blockify"),value:null==c?void 0:c.rotateX,onChange:e=>{r({style:{...a,transform:{...c,rotateX:e}}})},min:-360,max:360,step:1})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Rotate Y","blockify"),value:null==c?void 0:c.rotateY,onChange:e=>{r({style:{...a,transform:{...c,rotateY:e}}})},min:-360,max:360,step:1}))),(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Scale","blockify"),value:null==c?void 0:c.scale,onChange:e=>{r({style:{...a,transform:{...c,scale:e}}})},min:0,max:10,step:.1})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Scale X","blockify"),value:null==c?void 0:c.scaleX,onChange:e=>{r({style:{...a,transform:{...c,scaleX:e}}})},min:0,max:10,step:.1})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Scale Y","blockify"),value:null==c?void 0:c.scaleY,onChange:e=>{r({style:{...a,transform:{...c,scaleY:e}}})},min:0,max:10,step:.1}))),(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Skew","blockify"),value:null==c?void 0:c.skew,onChange:e=>{r({style:{...a,transform:{...c,skew:e}}})},min:-360,max:360,step:1})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Skew X","blockify"),value:null==c?void 0:c.skewX,onChange:e=>{r({style:{...a,transform:{...c,skewX:e}}})},min:-360,max:360,step:1})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Skew Y","blockify"),value:null==c?void 0:c.skewY,onChange:e=>{r({style:{...a,transform:{...c,skewY:e}}})},min:-360,max:360,step:1}))),(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Translate X","blockify"),value:null==c?void 0:c.translateX,onChange:e=>{r({style:{...a,transform:{...c,translateX:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Translate Y","blockify"),value:null==c?void 0:c.translateY,onChange:e=>{r({style:{...a,transform:{...c,translateY:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Translate Z","blockify"),value:null==c?void 0:c.translateZ,onChange:e=>{r({style:{...a,transform:{...c,translateZ:e}}})}}))),(0,e.createElement)("br",null))};var le,re,ie;(0,o.addFilter)("editor.BlockEdit","blockify/custom-advanced-control",(0,l.createHigherOrderComponent)((n=>o=>{var l,a,s,c,u,d,p,f,m,v,h,y,b,k,E,x,C,S,_,O,P,T,M,D,A,V,B,L;const{attributes:z,setAttributes:j,isSelected:H,name:U}=o,{style:G}=z;if(!(e=>g(e)||I(e)||N(e)||$(e)||K(e)||ee(e))(U))return(0,e.createElement)(n,o);const[W,q]=(0,e.useState)(null!==(l=null==G?void 0:G.boxShadow)&&void 0!==l?l:null),[Y,Z]=(0,e.useState)(null!==(a=null==G?void 0:G.animation)&&void 0!==a?a:null),[J,te]=(0,e.useState)(null!==(s=null!==(c=null!==(u=null==G?void 0:G.display)&&void 0!==u?u:null==G?void 0:G.order)&&void 0!==c?c:null==G?void 0:G.width)&&void 0!==s?s:null==G?void 0:G.maxWidth),[ne,le]=(0,e.useState)(null!==(d=null==G?void 0:G.filter)&&void 0!==d?d:null),[re,ie]=(0,e.useState)(null!==(p=null!==(f=null!==(m=null!==(v=null!==(h=null==G?void 0:G.position)&&void 0!==h?h:null==G?void 0:G.top)&&void 0!==v?v:null==G?void 0:G.right)&&void 0!==m?m:null==G?void 0:G.bottom)&&void 0!==f?f:null==G?void 0:G.left)&&void 0!==p?p:null==G?void 0:G.zIndex),[ae,se]=(0,e.useState)(null!==(y=null==G?void 0:G.transform)&&void 0!==y?y:null);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,o),H&&(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(i.__experimentalToolsPanel,{label:(0,t.__)("Extra","blockify"),className:"blockify-tools-panel",resetAll:()=>{q(void 0),le(void 0),se(void 0),ie(void 0),Z(void 0)}},g(U)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(b=null==z?void 0:z.animation)&&void 0!==b&&b,hasValue:()=>!!Y,label:(0,t.__)("Animation","blockify"),onDeselect:()=>{Z(void 0)}},(0,e.createElement)(w,o)),I(U)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(k=null!==(E=null!==(x=null==z||null===(C=z.style)||void 0===C?void 0:C.display)&&void 0!==x?x:null==z||null===(S=z.style)||void 0===S?void 0:S.order)&&void 0!==E?E:null==z||null===(_=z.style)||void 0===_?void 0:_.width)&&void 0!==k?k:null==z||null===(O=z.style)||void 0===O?void 0:O.maxWidth,hasValue:()=>!!J,label:(0,t.__)("Display","blockify"),onDeselect:()=>{te(void 0)}},(0,e.createElement)(F,o)),N(U)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(P=null==z||null===(T=z.style)||void 0===T?void 0:T.filter)&&void 0!==P&&P,hasValue:()=>!!ne,label:(0,t.__)("Filter","blockify"),onDeselect:()=>{le(void 0)}},(0,e.createElement)(R,o)),$(U)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(M=null==z||null===(D=z.style)||void 0===D?void 0:D.position)&&void 0!==M&&M,hasValue:()=>!!re,label:(0,t.__)("Position","blockify"),onDeselect:()=>{le(void 0)}},(0,e.createElement)(X,o)),K(U)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(A=null==z||null===(V=z.style)||void 0===V?void 0:V.boxShadow)&&void 0!==A&&A,hasValue:()=>!!W,label:(0,t.__)("Shadow","blockify"),onDeselect:()=>{q(void 0)}},(0,e.createElement)(Q,o)),ee(U)&&(0,e.createElement)(i.__experimentalToolsPanelItem,{isShownByDefault:null!==(B=null==z||null===(L=z.style)||void 0===L?void 0:L.transform)&&void 0!==B&&B,hasValue:()=>!!ae,label:(0,t.__)("Transform","blockify"),onDeselect:()=>{se(void 0)}},(0,e.createElement)(oe,o)))))}),"withPositionEdit"));const ae=null!==(le=null===(re=window)||void 0===re||null===(ie=re.blockify)||void 0===ie?void 0:ie.blockSupports)&&void 0!==le?le:{};(0,o.addFilter)("editor.BlockEdit","blockify/with-negative-margin",(0,l.createHigherOrderComponent)((t=>n=>{if((e=>{var t,n;return null!==(t=null==ae||null===(n=ae[e])||void 0===n?void 0:n.blockifyNegativeMargin)&&void 0!==t&&t})(null==n?void 0:n.name)){const e=document.querySelector('.components-input-control__input[min="0"]');e&&e.setAttribute("min","-999")}return(0,e.createElement)(t,n)}),"withMinHeightSettings"));const se=e=>{var t,n,o,l,r;return null!==(t=null===(n=window)||void 0===n||null===(o=n.blockify)||void 0===o||null===(l=o.blockSupports)||void 0===l||null===(r=l[e])||void 0===r?void 0:r.blockifyOnclick)&&void 0!==t&&t};var ce,ue,de;(0,o.addFilter)("blocks.registerBlockType","blockify/add-onclick-attribute",((e,t)=>se(t)?(e.attributes={...e.attributes,onclick:{type:"string"}},e):e),0),(0,o.addFilter)("editor.BlockEdit","blockify/with-onclick-attribute",(0,l.createHigherOrderComponent)((n=>o=>{var l;const{attributes:a,setAttributes:s,name:c}=o;return se(c)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,o),(0,e.createElement)(r.InspectorAdvancedControls,null,(0,e.createElement)(i.TextareaControl,{label:(0,t.__)("On-click event","blockify"),help:(0,t.__)("Enter a JavaScript function to be called when the button is clicked.","blockify"),rows:4,value:null==a||null===(l=a.onclick)||void 0===l?void 0:l.replace('"',"'"),onChange:e=>s({onclick:null==e?void 0:e.replace('"',"'")}),style:{fontFamily:"ui-monospace,Menlo,Monaco,Cascadia Code,Segoe UI Mono,Roboto Mono,Oxygen Mono,Ubuntu Monospace,Source Code Pro,Fira Code,Droid Sans Mono,DejaVu Sans Mono,Courier New,monospace",fontSize:"14px",tabSize:"1em",lineHeight:"1.5"}}))):(0,e.createElement)(n,o)}),"onclickAttribute"),99),(0,o.addFilter)("editor.BlockListBlock","blockify/with-block-gap",(0,l.createHigherOrderComponent)((t=>n=>{var o,l,r,i;if("core/query"!==(null==n?void 0:n.name))return(0,e.createElement)(t,n);if(null==n||null===(o=n.attributes)||void 0===o||null===(l=o.style)||void 0===l||null===(r=l.spacing)||void 0===r||!r.blockGap)return(0,e.createElement)(t,n);const s=null!==(i=n.wrapperProps)&&void 0!==i?i:{};return s.style={...s.style,"--wp--style--block-gap":n.attributes.style.spacing.blockGap},(0,e.createElement)(t,a({},n,{wrapperProps:s}))}),"withBlockGap")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/apply-block-gap",((e,t,n)=>{var o,l;return"core/query"===t&&null!=n&&null!==(o=n.style)&&void 0!==o&&null!==(l=o.spacing)&&void 0!==l&&l.blockGap&&(e.style={...e.style,"--wp--style--block-gap":n.style.spacing.blockGap}),e}));const pe=null!==(ce=null===(ue=window)||void 0===ue||null===(de=ue.blockify)||void 0===de?void 0:de.blockSupports)&&void 0!==ce?ce:{};(0,o.addFilter)("blocks.registerBlockType","blockify/block-supports",((e,t)=>(Object.keys(pe).includes(t)&&(e.supports={...e.supports,...pe[t]}),e)),0),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/alignment-class",((e,t,n)=>(Object.keys(pe).includes(t.name)&&null!=n&&n.align&&!e.className.includes(" align")&&(e.className+=" align"+n.align),e))),(0,o.addFilter)("blocks.registerBlockType","blockify/block-attributes-search",((e,t)=>{var n,o,l;return"core/search"===t&&(e.attributes.style={...null===(n=e.attributes)||void 0===n?void 0:n.style,spacing:{...null===(o=e.attributes)||void 0===o||null===(l=o.style)||void 0===l?void 0:l.spacing,padding:{top:"1em",right:"1em",bottom:"1em",left:"2em"}}}),e}),0);const fe=(0,l.createHigherOrderComponent)((t=>n=>{var o,l,r;if("core/search"!==n.name)return(0,e.createElement)(t,n);const i=document.getElementsByClassName("wp-block-search__input"),a=null==n||null===(o=n.attributes)||void 0===o||null===(l=o.style)||void 0===l||null===(r=l.spacing)||void 0===r?void 0:r.padding;return i[0]&&a&&(a.top&&(i[0].style.paddingTop=null==a?void 0:a.top),a.right&&(i[0].style.paddingRight=null==a?void 0:a.right),a.bottom&&(i[0].style.paddingBottom=null==a?void 0:a.bottom),a.left&&(i[0].style.paddingLeft=null==a?void 0:a.left)),(0,e.createElement)(t,n)}),"withInspectorControl");(0,o.addFilter)("editor.BlockEdit","blockify/with-search-padding-css",fe),(0,o.addFilter)("editor.BlockEdit","blockify/with-client-id",(0,l.createHigherOrderComponent)((t=>n=>("core/navigation-submenu"===(null==n?void 0:n.name)&&n.setAttributes({clientId:null==n?void 0:n.clientId}),(0,e.createElement)(t,n))),"withClientId")),(0,o.addFilter)("editor.BlockListBlock","blockify/with-mega-menu",(0,l.createHigherOrderComponent)((t=>n=>{var o,l;const{attributes:r,name:i,clientId:s}=n;if("core/navigation-submenu"!==i)return(0,e.createElement)(t,n);let c={};var u,d;null!=r&&r.backgroundColor&&(c["--wp--custom--submenu--background"]="var(--wp--preset--color--"+(null==r?void 0:r.backgroundColor)+")"),null!=r&&null!==(o=r.style)&&void 0!==o&&null!==(l=o.color)&&void 0!==l&&l.background&&(c["--wp--custom--submenu--background"]=null==r||null===(u=r.style)||void 0===u||null===(d=u.color)||void 0===d?void 0:d.background);let p={...null==n?void 0:n.wrapperProps};return p["data-id"]=s,c&&(p.style={...null==p?void 0:p.style,...c}),(0,e.createElement)(t,a({},n,{wrapperProps:p}))}),"withMegaMenu"));var me=window.wp.domReady,ve=n.n(me),he=window.wp.blocks;ve()((()=>{var e,t,n;const o=null!==(e=null===(t=window)||void 0===t||null===(n=t.blockify)||void 0===n?void 0:n.blockStyles)&&void 0!==e?e:{unregister:[],register:[]};[...null==o?void 0:o.unregister].forEach((e=>{(0,he.unregisterBlockStyle)(null==e?void 0:e.type,null==e?void 0:e.name)})),[...null==o?void 0:o.register].forEach((e=>{(0,he.registerBlockStyle)(null==e?void 0:e.type,e)}))}));var ye=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));(0,he.registerBlockVariation)("core/list",{name:"accordion",title:(0,t.__)("Accordion","blockify"),description:(0,t.__)("Add a collapsible accordion list.","blockify"),icon:ye,attributes:{className:"is-style-accordion"},isDefault:!1,isActive:(e,t)=>{var n;return e&&(null==e||null===(n=e.className)||void 0===n?void 0:n.includes(t.className))}});var be=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.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"}));const ge={content:(0,t.__)("Add your text here. Add your text here.","blockify"),containerSize:"150",pathSize:"100"},ke={name:"curved-text",title:(0,t.__)("Curved Text","blockify"),icon:be,isDefault:!1,category:"text",scope:["inserter","transform","block"],description:(0,t.__)("Insert curved text around circular SVG path.","blockify"),attributes:{className:"is-style-curved-text"},isActive:e=>{var t;return null==e||null===(t=e.className)||void 0===t?void 0:t.includes("is-style-curved-text")}};ve()((()=>{(0,he.registerBlockVariation)("core/paragraph",ke)})),(0,o.addFilter)("blocks.registerBlockType","blockify/curved-text-attributes",((e,t)=>{var n;return"core/paragraph"===t&&(e={...e,attributes:{...null===(n=e)||void 0===n?void 0:n.attributes,curvedText:{type:"object"}}}),e}));const we=function(){var t,n,o;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{curvedText:r=ge}=l,i=null!==(t=null==r?void 0:r.content)&&void 0!==t?t:ge.content,a=null!==(n=null==r?void 0:r.containerSize)&&void 0!==n?n:ge.containerSize,s=null!==(o=null==r?void 0:r.pathSize)&&void 0!==o?o:ge.pathSize,c=parseInt(a)/2,u=parseInt(s)/2,d={viewBox:`0 0 ${a} ${a}`,xmlns:"http://www.w3.org/2000/svg",enableBackground:`new 0 0 ${a} ${a}`,xmlSpace:"preserve",width:a,height:a,contentEditable:!1,x:0,y:0},p=Date.now()+Math.random(),f={id:"circle-"+p,d:`M ${c}, ${c} m -${u}, 0 a ${u},${u} 0 0,1 ${s},0 a ${u},${u} 0 0,1 -${s},0`,fill:"transparent"};return(0,e.createElement)("svg",d,(0,e.createElement)("path",f," "),(0,e.createElement)("text",{fill:"currentColor"},(0,e.createElement)("textPath",{xlinkHref:"#circle-"+p},i)))};(0,o.addFilter)("editor.BlockEdit","blockify/with-curved-text-css",(0,l.createHigherOrderComponent)((n=>o=>{var l,s,c,u,d;const{attributes:p,setAttributes:f}=o;if(!(e=>{var t;return!(null==e||!e.className||"string"!=typeof(null==e?void 0:e.className))&&(null==e||null===(t=e.className)||void 0===t?void 0:t.includes("is-style-curved-text"))})(p))return(0,e.createElement)(n,o);const m=null===(l=document.getElementsByClassName("edit-site-visual-editor__editor-canvas"))||void 0===l?void 0:l.item(0);let v;v=m?m.contentDocument:document;const h=null===(s=v)||void 0===s?void 0:s.getElementById("block-"+o.clientId);h&&(h.innerHTML=(0,e.renderToString)(we({...p,clientId:o.clientId})));const{curvedText:y=ge}=p,b=t=>{var n;const l={...t,svgString:(0,e.renderToString)((0,e.createElement)(we,a({},p,t,{clientId:null!==(n=o.clientId)&&void 0!==n?n:"1"})))};f({curvedText:{...y,...l}})};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,o),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(i.PanelBody,{className:"blockify-controls",title:(0,t.__)("Curved Text","blockify")},(0,e.createElement)(i.TextareaControl,{label:(0,t.__)("Content","blockify"),value:null!==(c=null==y?void 0:y.content)&&void 0!==c?c:ge.content,onChange:e=>{b({content:e})}}),(0,e.createElement)("p",null,(0,t.__)("Size","blockify")),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)("br",null),(0,e.createElement)(i.Flex,null,(0,e.createElement)(i.FlexItem,{style:{width:"50%"}},(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Container","blockify"),value:null!==(u=null==y?void 0:y.containerSize)&&void 0!==u?u:ge.containerSize,onChange:e=>{b({containerSize:e})}})),(0,e.createElement)(i.FlexBlock,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Path","blockify"),value:null!==(d=null==y?void 0:y.pathSize)&&void 0!==d?d:ge.pathSize,onChange:e=>{b({pathSize:e})}})))))))}),"withCurvedTextSettings"),99);var Ee=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));const xe={start:"0",end:"100",duration:"2",delay:"0",prefix:"",suffix:""},Ce={name:"counter",title:(0,t.__)("Counter","blockify"),keywords:["counter","number","count","stats"],icon:Ee,isDefault:!1,category:"text",scope:["inserter","transform","block"],description:(0,t.__)("Insert counter animation.","blockify"),attributes:{className:"is-style-counter"},isActive:e=>{var t;return e&&(null==e||null===(t=e.className)||void 0===t?void 0:t.includes("is-style-counter"))}};ve()((()=>{(0,he.registerBlockVariation)("core/paragraph",Ce)})),(0,o.addFilter)("editor.BlockEdit","blockify/with-counter-controls",(0,l.createHigherOrderComponent)((n=>o=>{var l,a,s,c,u,d,p,f,m,v;const{attributes:h,setAttributes:y}=o,b=(0,e.createElement)(n,o);if(null==h||null===(l=h.className)||void 0===l||!l.includes("is-style-counter"))return b;const{style:g}=h;let k=xe;if(null!=g&&g.counter?k=g.counter:y({style:{...g,counter:xe}}),null!==(a=k)&&void 0!==a&&a.prefix||null!==(s=k)&&void 0!==s&&s.end||null!==(c=k)&&void 0!==c&&c.suffix){var w,E,x;let e=null===(w=k)||void 0===w?void 0:w.end;var C,S;"string"==typeof(null===(E=k)||void 0===E?void 0:E.prefix)&&(e=(null===(C=k)||void 0===C?void 0:C.prefix)+e),"string"==typeof(null===(x=k)||void 0===x?void 0:x.suffix)&&(e+=null===(S=k)||void 0===S?void 0:S.suffix),y({content:e})}return(0,e.createElement)(e.Fragment,null,b,(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Counter Settings","blockify"),initialOpen:!0,className:"blockify-counter-settings"},(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Start","blockify"),value:null===(u=k)||void 0===u?void 0:u.start,onChange:e=>{y({style:{...g,counter:{...k,start:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("End","blockify"),value:null===(d=k)||void 0===d?void 0:d.end,onChange:e=>{y({style:{...g,counter:{...k,end:e}}})},step:1,shiftStep:10,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Duration (seconds)","blockify"),value:null===(p=k)||void 0===p?void 0:p.duration,onChange:e=>{y({style:{...g,counter:{...k,duration:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalNumberControl,{label:(0,t.__)("Delay (seconds)","blockify"),value:null===(f=k)||void 0===f?void 0:f.delay,onChange:e=>{y({style:{...g,counter:{...k,delay:e}}})},step:.1,shiftStep:1,isDragEnabled:!0,isShiftStepEnabled:!0})))),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,{className:"blockify-flex-controls"},(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.TextControl,{label:(0,t.__)("Prefix","blockify"),value:null===(m=k)||void 0===m?void 0:m.prefix,onChange:e=>{y({style:{...g,counter:{...k,prefix:e}}})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.TextControl,{label:(0,t.__)("Suffix","blockify"),value:null===(v=k)||void 0===v?void 0:v.suffix,onChange:e=>{y({style:{...g,counter:{...k,suffix:e}}})}})))))))}),"withCounterControls"),0);var Se=(0,e.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(c.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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));const _e={name:"image",title:(0,t.__)("Image","blockify"),icon:Se,isDefault:!0,category:"media",scope:["inserter","transform","block"],description:(0,t.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>{var t,n;return null==e||!e.className||!(null!=e&&null!==(t=e.className)&&void 0!==t&&t.includes("is-style-icon")||null!=e&&null!==(n=e.className)&&void 0!==n&&n.includes("is-style-svg"))}};(0,he.registerBlockVariation)("core/image",_e);var Oe=n(488),Ie=(Oe.domToReact,Oe.htmlToDOM,Oe.attributesToProps,Oe.Element,Oe),Pe=window.wp.data,Te=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})),Fe=window.wp.apiFetch,Me=n.n(Fe);const Ne={icons:{social:{},wordpress:{}}},De={setIcons(e){return{type:"SET_ICONS",icons:e}},getIcons(e){return{type:"GET_ICONS",path:e}}},Ae={getIcons(e){const{icons:t}=e;return t}},Re={GET_ICONS(e){return Me()({path:e.path})}},Ve={*getIcons(){const e=yield De.getIcons("/blockify/v1/icons/");return De.setIcons(e)}};(0,Pe.register)((0,Pe.createReduxStore)("blockify/icons",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ne,t=arguments.length>1?arguments[1]:void 0;return"SET_ICONS"===t.type?{...e,icons:t.icons}:e},actions:De,selectors:Ae,controls:Re,resolvers:Ve})),i.SelectControl.Option,i.CustomSelectControl.Option;const Be=e=>"core/image"===e,Le={iconSet:{type:"string",default:"wordpress"},iconName:{type:"string",default:"star-empty"},iconColor:{type:"string"},iconGradient:{type:"string"},iconSize:{type:"string"},iconCustomSVG:{type:"string"},iconSvgString:{type:"string",default:' '}},ze={name:"icon",icon:Te,title:(0,t.__)("Icon","blockify"),isDefault:!1,category:"media",scope:["inserter","transform","block"],description:(0,t.__)("Insert a customizable SVG icon.","blockify"),attributes:{className:"is-style-icon",iconSet:"wordpress",iconName:"star-empty",iconSvgString:' '},isActive:e=>{var t;return e&&(null==e||null===(t=e.className)||void 0===t?void 0:t.includes("is-style-icon"))}};ve()((()=>{(0,he.registerBlockVariation)("core/image",ze)})),(0,o.addFilter)("blocks.registerBlockType","blockify/add-icon-attributes",((e,t)=>{if(Be(t)){for(const[t,n]of Object.entries(Le))e.attributes[t]={type:n.type};e.attributes={...e.attributes,...Le}}return e}),99),(0,o.addFilter)("editor.BlockEdit","blockify/with-icon",(0,l.createHigherOrderComponent)((n=>o=>{var l,a,s,c,u,d,p,f;const{name:m,attributes:v,setAttributes:h,isSelected:y}=o,{className:b}=v;if(!b)return(0,e.createElement)(n,o);if(null==b||!b.includes("is-style-icon"))return(0,e.createElement)(n,o);if(!Be(m))return(0,e.createElement)(n,o);var g,k,w;y&&(()=>{const e=document.getElementsByClassName("block-editor-block-card__description").item(0);e&&(document.getElementsByClassName("blockify-pro-icon-link").item(0)||(e.innerHTML=e.innerHTML+(0,t.__)(" Get more icons with ","blockify")+'Blockify Pro ↗'))})(),null!=v&&v.url||h({url:"#"}),null!=v&&v.iconSet||h({iconSet:null==Le||null===(g=Le.iconSet)||void 0===g?void 0:g.default}),null!=v&&v.iconName||h({iconName:null==Le||null===(k=Le.iconName)||void 0===k?void 0:k.default}),null!=v&&v.iconSvgString||h({iconSvgString:null==Le||null===(w=Le.iconSvgString)||void 0===w?void 0:w.default});const E=[];let{icons:x}=null!==(l=(0,Pe.useSelect)((e=>({icons:e("blockify/icons").getIcons()})),[]))&&void 0!==l?l:Ne;const C={wordpress:[{name:null==Le||null===(a=Le.iconSvgString)||void 0===a?void 0:a.default,key:null==Le||null===(s=Le.iconName)||void 0===s?void 0:s.default}]};return Object.keys(x).forEach((e=>{var t;let n=e.split("-").join(" ");var o;n="wordpress"===n?"WordPress":n,E.push({label:n,value:e}),C[e]=[],Object.keys(x[e]).forEach((t=>{var n;t!==(null==v?void 0:v.iconName)&&C[e].push({name:Ie(null==x||null===(n=x[e])||void 0===n?void 0:n[t]),key:t})})),null!=x&&null!==(t=x[e])&&void 0!==t&&t[null==v?void 0:v.iconName]&&C[e].unshift({name:Ie(null==x||null===(o=x[e])||void 0===o?void 0:o[null==v?void 0:v.iconName]),key:null==v?void 0:v.iconName})})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n,o),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Icon Settings","blockify"),initialOpen:!0,className:"blockify-icon-settings"},!1,(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Select Icon Set","blockify"),value:null!==(c=null==v?void 0:v.iconSet)&&void 0!==c?c:null==Le?void 0:Le.iconSet.default,options:E,onChange:e=>h({iconSet:e})}),(0,e.createElement)((()=>{var t,n,o,l;const r=null===(t=C[null==v?void 0:v.iconSet])||void 0===t||null===(n=t.filter((e=>(null==e?void 0:e.key)===(null==v?void 0:v.iconName))))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name;return(0,e.createElement)("div",{className:"blockify-icon-preview"},r&&(0,e.createElement)(e.Fragment,null,r,(0,e.createElement)("span",null,null==v||null===(l=v.iconName)||void 0===l?void 0:l.replace("-"," "))))}),null),(0,e.createElement)(i.CustomSelectControl,{label:(0,t.__)("Select Icon","blockify"),options:null!==(u=null==C?void 0:C[null==v?void 0:v.iconSet])&&void 0!==u?u:null==C?void 0:C.wordpress,value:null!==(d=null==v?void 0:v.iconSvgString)&&void 0!==d?d:null==Le||null===(p=Le.iconSvgString)||void 0===p?void 0:p.default,className:"blockify-icon-setting",onChange:e=>{var t,n;let{selectedItem:o}=e;const l=null!==(t=null==o?void 0:o.key)&&void 0!==t?t:"";h({iconName:l}),h({iconSvgString:null==x||null===(n=x[null==v?void 0:v.iconSet])||void 0===n?void 0:n[l]})}}),(0,e.createElement)("br",null),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,null,(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Icon Width","blockify"),value:null!==(f=null==v?void 0:v.iconSize)&&void 0!==f?f:"",onChange:e=>h({iconSize:e})})))))))}),"iconEdit"));const je=e=>{var t,n,o,l,r,i,a,s,c,u,d,p,f,m,v,h;let y={},b="";null!=e&&null!==(t=e.style)&&void 0!==t&&null!==(n=t.color)&&void 0!==n&&n.background&&(b=e.style.color.background),null!=e&&e.backgroundColor&&(b="var(--wp--preset--color--"+e.backgroundColor+", currentColor)");let g="";var k,w;null!=e&&null!==(o=e.style)&&void 0!==o&&null!==(l=o.color)&&void 0!==l&&l.gradient&&(g=null==e||null===(k=e.style)||void 0===k||null===(w=k.color)||void 0===w?void 0:w.gradient),null!=e&&e.gradient&&(g="var(--wp--preset--gradient--"+e.gradient+",currentColor)");let E="";var x,C;if(null!=e&&null!==(r=e.style)&&void 0!==r&&null!==(i=r.color)&&void 0!==i&&i.text&&(E=null==e||null===(x=e.style)||void 0===x||null===(C=x.color)||void 0===C?void 0:C.text),null!=e&&e.textColor&&(E="var(--wp--preset--color--"+e.textColor+",currentColor)"),""!==b&&(y["--wp--custom--icon--background"]=b),E?(y["--wp--custom--icon--color"]=E,g&&(y["--wp--custom--icon--background"]=g)):g&&(y["--wp--custom--icon--color"]=g),null!=e&&null!==(a=e.style)&&void 0!==a&&null!==(s=a.spacing)&&void 0!==s&&s.padding){var S,_,O,I;const t=e.style.spacing.padding,n={top:null!==(S=null==t?void 0:t.top)&&void 0!==S?S:"0",right:null!==(_=null==t?void 0:t.right)&&void 0!==_?_:"0",bottom:null!==(O=null==t?void 0:t.bottom)&&void 0!==O?O:"0",left:null!==(I=null==t?void 0:t.left)&&void 0!==I?I:"0"};Object.keys(n).forEach((e=>{var t;const o=null!==(t=null==n?void 0:n[e])&&void 0!==t?t:"";o&&null!=o&&o.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+o.replace("var:preset|spacing|","")+")")})),y["--wp--custom--icon--padding"]=Object.values(n).join(" ")}if(null!=e&&null!==(c=e.style)&&void 0!==c&&null!==(u=c.spacing)&&void 0!==u&&u.margin){var P,T,F,M;const t=e.style.spacing.margin,n={top:null!==(P=null==t?void 0:t.top)&&void 0!==P?P:"",right:null!==(T=null==t?void 0:t.right)&&void 0!==T?T:"",bottom:null!==(F=null==t?void 0:t.bottom)&&void 0!==F?F:"",left:null!==(M=null==t?void 0:t.left)&&void 0!==M?M:""};Object.keys(n).forEach((e=>{var t;const o=null!==(t=null==n?void 0:n[e])&&void 0!==t?t:"";null!=o&&o.includes("var:preset")&&(n[e]="var(--wp--preset--spacing--"+(null==o?void 0:o.replace("var:preset|spacing|",""))+")")})),y["--wp--custom--icon--margin"]=Object.values(n).join(" ")}let N="";var D,A,R,V;null!=e&&e.borderColor&&(N="var(--wp--preset--color--"+(null==e?void 0:e.borderColor)+")"),null!=e&&null!==(d=e.style)&&void 0!==d&&null!==(p=d.border)&&void 0!==p&&p.width&&(y["--wp--custom--icon--border-width"]=e.style.border.width,y["--wp--custom--icon--border-style"]=null!==(D=null===(A=e.style.border)||void 0===A?void 0:A.style)&&void 0!==D?D:"solid",y["--wp--custom--icon--border-color"]=null!==(R=null===(V=e.style.border)||void 0===V?void 0:V.color)&&void 0!==R?R:N);let B=null!==(f=null==e?void 0:e.iconSize)&&void 0!==f?f:"";""!==B&&(y["--wp--custom--icon--size"]=B);const L=null===(m=null!==(v=null==e?void 0:e.iconCustomSVG)&&void 0!==v?v:"")||void 0===m?void 0:m.replace('"',"'"),z=L&&null!=L&&L.includes("n=>{var o,l;let{attributes:r,wrapperProps:i,name:s}=n;return null!=r&&r.className&&null!=r&&null!==(o=r.className)&&void 0!==o&&o.includes("is-style-icon")&&Be(s)?(i||(i={style:{}}),i.style={...null===(l=i)||void 0===l?void 0:l.style,...je(r)},(0,e.createElement)(t,a({},n,{wrapperProps:i}))):(0,e.createElement)(t,n)}),"withIcon")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/save-icon-styles",((e,t,n)=>{var o;if(null==n||!n.className)return e;const{name:l}=t;return null!=n&&null!==(o=n.className)&&void 0!==o&&o.includes("is-style-icon")&&Be(l)?(e.style={...null==e?void 0:e.style,...je(n)},e):e}));var He=(0,e.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(c.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));const Ue={name:"svg",title:(0,t.__)("SVG","blockify"),icon:He,isDefault:!1,category:"media",scope:["inserter","transform","block"],description:(0,t.__)("Insert an inline SVG.","blockify"),attributes:{className:"is-style-svg"},isActive:e=>{var t;return!(null==e||!e.className)&&(null==e?void 0:e.className)&&(null==e||null===(t=e.className)||void 0===t?void 0:t.includes("is-style-svg"))}};ve()((()=>{(0,he.registerBlockVariation)("core/image",Ue)}));const $e=e=>"url('data:image/svg+xml;utf8,"+encodeURIComponent(e)+"')",Ge=e=>"data:image/svg+xml;utf8,"+encodeURIComponent(e);(0,o.addFilter)("editor.BlockEdit","blockify/with-svg-controls",(0,l.createHigherOrderComponent)((n=>o=>{var l,a,s,c;const{attributes:u,setAttributes:d}=o;if(null==u||null===(l=u.className)||void 0===l||!l.includes("is-style-svg"))return(0,e.createElement)(n,o);const{style:p}=u,f=null!==(a=null==p?void 0:p.svgString)&&void 0!==a?a:"",m=null!==(s=null==p?void 0:p.maskSvg)&&void 0!==s&&s;null!=u&&u.url||d({url:m?"#":Ge(f)}),m&&"#"!==(null==u?void 0:u.url)&&d({url:"#"}),m||null!=u&&null!==(c=u.url)&&void 0!==c&&c.includes("data:image/svg+xml;utf8,")||d({url:Ge(f)});let v="var(--width,1em)",h="";var y;null!=u&&u.width&&(v=u.width+"px"),null!=u&&u.height&&(h=(null!==(y=u.height)&&void 0!==y?y:"")+"px"),h=""===h?v:h;const b={width:v,height:h,display:"inline-flex",background:"currentColor",overflow:"hidden","-webkit-mask-repeat":"no-repeat","-mask-repeat":"no-repeat","-webkit-mask-size":"100% 100%","-mask-size":"100% 100%","-webkit-mask-position":"center","-mask-position":"center bottom","-webkit-mask-image":$e(f),"-mask-image":$e(f)};let g="";return f&&(g=Object.entries(b).map((e=>{let[t,n]=e;return`${t}:${n};`})).join("")),(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)("style",null,"#block-"+(null==o?void 0:o.clientId)+">div:first-of-type{"+g+"}"),(0,e.createElement)(n,o),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(i.PanelBody,{title:(0,t.__)("SVG Settings","blockify-pro"),className:(0,t.__)("blockify-svg-controls","blockify-pro")},(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.TextareaControl,{label:(0,t.__)("SVG String","blockify"),help:(0,t.__)("Paste your SVG string in the field above. It is recommended to format your SVG with an optimization tool ","blockify"),value:null!=f?f:"",rows:20,onChange:e=>{const t={style:{...p,svgString:e}};t.url=m?"#":Ge(e),d(t)},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)"}})),(0,e.createElement)(i.ExternalLink,{href:"https://jakearchibald.github.io/svgomg/",target:"_blank"},"https://jakearchibald.github.io/svgomg/"),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Mask with text color","blockify"),help:(0,t.__)("If enabled, the SVG will be masked with the text color. (Renders inline SVG on front end).","blockify"),checked:m,onChange:e=>{const t={style:{...p,maskSvg:e}};t.url=m?"#":Ge(f),d(t)}})))))}),"withSvgControls"));const We={name:"marquee",icon:(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})),title:(0,t.__)("Marquee","blockify"),isDefault:!1,scope:["inserter","transform","block"],description:(0,t.__)("Adds a horizontal infinite scrolling marquee banner.","blockify"),innerBlocks:[["core/group",{layout:{type:"flex",flexWrap:"nowrap",orientation:"horizontal",justifyContent:"center"}},[["core/paragraph"]]]],attributes:{marquee:{},align:"full",speedMobile:20,speedDesktop:30,pauseOnHover:!0,reverse:!1,spacing:{padding:{right:"0",left:"0"}},layout:{type:"flex",flexWrap:"nowrap",orientation:"marquee",justifyContent:"center"}},isActive:(e,t)=>{var n,o;return(null===(n=e.layout)||void 0===n?void 0:n.orientation)===(null===(o=t.layout)||void 0===o?void 0:o.orientation)}};(0,he.registerBlockVariation)("core/group",We);const qe=e=>{var t,n;return{"--marquee-speed-mobile":(null!==(t=null==e?void 0:e.speedMobile)&&void 0!==t?t:20)+"s","--marquee-speed-desktop":(null!==(n=null==e?void 0:e.speedDesktop)&&void 0!==n?n:30)+"s","--marquee-direction":null!=e&&e.reverse?"reverse":"forwards","--marquee-pause":null!=e&&e.pauseOnHover?"paused":"running"}};(0,o.addFilter)("blocks.registerBlockType","blockify/marquee-attributes",((e,t)=>("core/group"===t&&(e={...e,attributes:{...e.attributes,speedMobile:{type:"string"},speedDesktop:{type:"string"},reverse:{type:"boolean"},pauseOnHover:{type:"boolean"},repeatItems:{type:"number"}}}),e)),0),(0,o.addFilter)("editor.BlockEdit","blockify/with-marquee-controls",(0,l.createHigherOrderComponent)((n=>o=>{var l,a;const{attributes:s,setAttributes:c}=o;return"marquee"!==(null==s||null===(l=s.layout)||void 0===l?void 0:l.orientation)?(0,e.createElement)(n,o):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Marquee Settings","blockify-pro"),className:(0,t.__)("blockify-width-control","blockify-pro")},(0,e.createElement)("p",null,(0,t.__)("Scroll Speed (seconds)","blockify")),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)("br",null),(0,e.createElement)(i.Flex,null,(0,e.createElement)(i.FlexItem,{style:{width:"50%"}},(0,e.createElement)(i.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,t.__)("Mobile","blockify"),onChange:e=>{c({speedMobile:e})},value:null==s?void 0:s.speedMobile})),(0,e.createElement)(i.FlexBlock,null,(0,e.createElement)(i.__experimentalNumberControl,{isShiftStepEnabled:!0,label:(0,t.__)("Desktop","blockify-pro"),onChange:e=>{c({speedDesktop:e})},value:null==s?void 0:s.speedDesktop})))),(0,e.createElement)("br",null),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.RangeControl,{label:(0,t.__)("Repeat Items","blockify"),help:(0,t.__)("How many times should the items be duplicated and cloned.","blockify"),value:null!==(a=null==s?void 0:s.repeatItems)&&void 0!==a?a:2,onChange:e=>{c({repeatItems:e})},min:0,max:10,step:1,allowReset:!0})),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Pause on hover","blockify-pro"),checked:null==s?void 0:s.pauseOnHover,onChange:()=>c({pauseOnHover:!(null!=s&&s.pauseOnHover)})})),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.ToggleControl,{label:(0,t.__)("Reverse direction","blockify-pro"),checked:null==s?void 0:s.reverse,onChange:()=>c({reverse:!(null!=s&&s.reverse)})})))),(0,e.createElement)(n,o))}),"withInspectorControl")),(0,o.addFilter)("editor.BlockListBlock","blockify/with-marquee",(0,l.createHigherOrderComponent)((t=>n=>{var o,l,r,i;const{attributes:s}=n;if("marquee"!==(null==s||null===(o=s.layout)||void 0===o?void 0:o.orientation))return(0,e.createElement)(t,n);n.attributes.style={...null!==(l=s.style)&&void 0!==l?l:{},...qe(s)};const c={...n.wrapperProps,style:{...null!==(r=null===(i=n.wrapperProps)||void 0===i?void 0:i.style)&&void 0!==r?r:{},...qe(s)}};return(0,e.createElement)(t,a({},n,{wrapperProps:c}))}),"withMarquee")),(0,o.addFilter)("blocks.getSaveContent.extraProps","blockify/save-marquee-styles",((e,t,n)=>{var o;return"marquee"!==(null==n||null===(o=n.layout)||void 0===o?void 0:o.orientation)||(e.style={...null==e?void 0:e.style,...qe(n)}),e}));var Ye=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"}));const Xe={name:"paragraph",title:(0,t.__)("Paragraph","blockify"),icon:Ye,isDefault:!0,category:"text",scope:["inserter","transform","block"],description:(0,t.__)("Insert an image to make a visual statement.","blockify"),attributes:{className:""},isActive:e=>{var t,n;return!(null!=e&&null!==(t=e.className)&&void 0!==t&&t.includes("is-style-curved-text")||null!=e&&null!==(n=e.className)&&void 0!==n&&n.includes("is-style-counter"))}};(0,he.registerBlockVariation)("core/paragraph",Xe);var Ke=window.wp.richText;(0,Ke.registerFormatType)("blockify/clear-formatting",{title:(0,t.__)("Clear","blockify"),tagName:"span",className:"clear",edit:n=>{const{value:o,isActive:l,onChange:i}=n,{formatTypes:a}=(0,Pe.useSelect)((e=>({formatTypes:e("core/rich-text").getFormatTypes()})));return(0,e.createElement)(r.RichTextToolbarButton,{icon:"editor-removeformatting",title:(0,t.__)("Clear Formatting","blockify"),onClick:()=>{if(a.length>0){let e=o;a.map((t=>{e=(0,Ke.removeFormat)(e,t.name)})),i({...e})}},isActive:l})}});var Ze=(0,e.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(c.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const Je="blockify/gradient";(0,Ke.registerFormatType)(Je,{title:(0,t.__)("Gradient","blockify"),tagName:"span",className:"has-text-gradient",attributes:{style:"style",class:"class"},edit:n=>{let{isActive:o,value:l,onChange:a}=n;const[s,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),{gradients:p}=(0,Pe.useSelect)((e=>{var t;return{gradients:null===(t=e("core/block-editor").getSettings())||void 0===t?void 0:t.gradients}}));let f="",m="";return null!=l&&l.formats&&l.formats.map((e=>{var t,n;(null==e?void 0:e.type)===Je&&(f+=";"+(null==e||null===(t=e.attributes)||void 0===t?void 0:t.style),m+=null==e||null===(n=e.attributes)||void 0===n?void 0:n.class)})),(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(r.RichTextShortcut,{type:"primary",character:"g",onUse:()=>{}}),(0,e.createElement)(r.RichTextToolbarButton,{icon:Ze,title:(0,t.__)("Gradient","blockify"),isActive:o,shortcutType:"primary",shortcutCharacter:"g",onClick:()=>d(!u)}),u&&(0,e.createElement)(i.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(i.Popover,{position:"bottom center",className:"blockify-gradient-text-control",focusOnMount:"container",onFocusOutside:()=>d(!1)},(0,e.createElement)(i.GradientPicker,{value:null!=s?s:"",gradients:p,onChange:e=>{var t;c(e);let n=f,o=m;var r,i;p.forEach((t=>{t.gradient===e&&(o+=(o?" ":"")+"has-"+t.slug+"-gradient-background")})),e&&!o.includes("-gradient-background")&&(n+=(n?n+";":"")+"background:"+e),null!==(t=o)&&void 0!==t&&t.includes("has-text-gradient")&&(o=(null===(r=o)||void 0===r||null===(i=r.replace("has-text-gradient",""))||void 0===i?void 0:i.trim())+" has-text-gradient"),a((0,Ke.applyFormat)(l,{type:Je,attributes:{style:n,class:o}}))}}))))}});var Qe=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));const et=e=>Object.keys(e).map((t=>`${null!=t&&t.includes("-")?t:M(t)}:${e[t]};`)).join(" "),tt=e=>{const t={};return e.split(";").map((e=>{const[n,o]=e.split(":");n&&(t[n]=o)})),t};i.CustomSelectControl.Option;const nt="blockify/typography",ot=[{key:"Default",name:"Default",style:{}},{key:"Thin",name:"Thin",style:{fontStyle:"normal",fontWeight:100}},{key:"Extra Light",name:"Extra Light",style:{fontStyle:"normal",fontWeight:200}},{key:"Light",name:"Light",style:{fontStyle:"normal",fontWeight:300}},{key:"Regular",name:"Regular",style:{fontStyle:"normal",fontWeight:400}},{key:"Medium",name:"Medium",style:{fontStyle:"normal",fontWeight:500}},{key:"Semi Bold",name:"Semi Bold",style:{fontStyle:"normal",fontWeight:600}},{key:"Bold",name:"Bold",style:{fontStyle:"normal",fontWeight:700}},{key:"Extra Bold",name:"Extra Bold",style:{fontStyle:"normal",fontWeight:800}},{key:"Black",name:"Black",style:{fontStyle:"normal",fontWeight:900}},{key:"Thin Italic",name:"Thin Italic",style:{fontStyle:"italic",fontWeight:100}},{key:"Extra Light Italic",name:"Extra Light Italic",style:{fontStyle:"italic",fontWeight:200}},{key:"Light Italic",name:"Light Italic",style:{fontStyle:"italic",fontWeight:300}},{key:"Regular Italic",name:"Regular Italic",style:{fontStyle:"italic",fontWeight:400}},{key:"Medium Italic",name:"Medium Italic",style:{fontStyle:"italic",fontWeight:500}},{key:"Semi Bold Italic",name:"Semi Bold Italic",style:{fontStyle:"italic",fontWeight:600}},{key:"Bold Italic",name:"Bold Italic",style:{fontStyle:"italic",fontWeight:700}},{key:"Extra Bold Italic",name:"Extra Bold Italic",style:{fontStyle:"italic",fontWeight:800}},{key:"Black Italic",name:"Black Italic",style:{fontStyle:"italic",fontWeight:900}}];(0,Ke.registerFormatType)(nt,{title:(0,t.__)("Typography","blockify"),tagName:"span",className:"has-font",edit(n){var o,l,a;const{isActive:s,value:c,onChange:u}=n,{fontSizes:d}=(0,Pe.useSelect)((e=>{var t;return{fontSizes:null===(t=e("core/block-editor").getSettings())||void 0===t?void 0:t.fontSizes}})),p=null!==(o=null===(l=window)||void 0===l||null===(a=l.blockify)||void 0===a?void 0:a.selectedFonts)&&void 0!==o?o:[],f=null==p?void 0:p.map((e=>({label:m(null==e?void 0:e.replace("-"," ")),value:e})));let v="",h="";null!=c&&c.formats&&c.formats.map((e=>{var t,n;(null==e?void 0:e.type)===name&&(v+=";"+(null==e||null===(t=e.attributes)||void 0===t?void 0:t.style),h+=null==e||null===(n=e.attributes)||void 0===n?void 0:n.class)}));const[y,b]=(0,e.useState)({style:tt(v),class:h.split(" "),fontFamily:"",fontSize:"",fontAppearance:ot[0],isOpen:!1});return(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(r.RichTextShortcut,{type:"primary",character:"g",onUse:()=>{}}),(0,e.createElement)(r.RichTextToolbarButton,{icon:Qe,title:(0,t.__)("Typography","blockify"),isActive:s,shortcutType:"primary",shortcutCharacter:"f",onClick:()=>b({...y,isOpen:!y.isOpen})}),(null==y?void 0:y.isOpen)&&(0,e.createElement)(i.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(i.Popover,{position:"bottom center",className:"blockify-font-family-control",focusOnMount:"container",onFocusOutside:()=>b({...y,isOpen:!1})},(0,e.createElement)(i.SelectControl,{label:(0,t.__)("Select Font Family","blockify"),value:null==y?void 0:y.fontFamily,options:f,onChange:e=>{var t,n;b({...y,fontFamily:e});const o="has-"+e+"-font-family";var l;null!=y&&null!==(t=y.class)&&void 0!==t&&t.includes(o)||null==y||null===(l=y.class)||void 0===l||l.push(o),u((0,Ke.applyFormat)(c,{type:nt,attributes:{style:et(null==y?void 0:y.style),class:null==y||null===(n=y.class)||void 0===n?void 0:n.join(" ")}}))}}),(0,e.createElement)(i.FontSizePicker,{fontSizes:d,fallbackFontSize:20,value:parseInt(null==y?void 0:y.fontSize),withSlider:!0,onChange:e=>{var t,n;b({...y,fontSize:e.toString()}),e&&(y.style["--wp--custom--font-size"]=e.toString()),null!=y&&null!==(t=y.class)&&void 0!==t&&t.includes("has-inline-font-size")||y.class.push("has-inline-font-size"),u((0,Ke.applyFormat)(c,{type:nt,attributes:{style:et(null==y?void 0:y.style),class:null==y||null===(n=y.class)||void 0===n?void 0:n.join(" ")}}))}}),(0,e.createElement)(i.CustomSelectControl,{label:(0,t.__)("Appearance","blockify"),value:ot.find((e=>{var t;return e.key===(null==y||null===(t=y.fontAppearance)||void 0===t?void 0:t.key)})),options:null!=ot?ot:[],onChange:e=>{var t,n,o;let{selectedItem:l}=e;var r,i,a;l&&b({...y,fontAppearance:l}),null!=l&&null!==(t=l.style)&&void 0!==t&&t.fontStyle&&(y.style["font-style"]=null==l||null===(r=l.style)||void 0===r?void 0:r.fontStyle),null!=l&&null!==(n=l.style)&&void 0!==n&&n.fontWeight&&(y.style["font-weight"]=null==l||null===(i=l.style)||void 0===i||null===(a=i.fontWeight)||void 0===a?void 0:a.toString()),u((0,Ke.applyFormat)(c,{type:nt,attributes:{style:et(null==y?void 0:y.style),class:null==y||null===(o=y.class)||void 0===o?void 0:o.join(" ")}}))}}))))}});var lt=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.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"}));const rt="blockify/inline-svg";(0,Ke.registerFormatType)(rt,{title:(0,t.__)("Inline SVG","blockify"),object:!0,tagName:"img",className:"has-inline-svg",edit(n){const{isActive:o,onChange:l,value:a}=n,[s,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)({string:"",width:"1em",widthDesktop:"1em",alt:"",src:""});return(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(r.RichTextShortcut,{type:"primary",character:"v",onUse:()=>{}}),(0,e.createElement)(r.RichTextToolbarButton,{icon:lt,title:(0,t.__)("Inline SVG","blockify"),isActive:o,shortcutType:"primary",shortcutCharacter:"v",onClick:()=>c(!s)}),s&&(0,e.createElement)(i.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(i.Popover,{position:"bottom center",className:"blockify-svg-control",focusOnMount:"container",onFocusOutside:()=>c(!1)},(0,e.createElement)(i.TextareaControl,{label:(0,t.__)("SVG String","blockify"),help:(0,t.__)("Paste your SVG string in the field above and then click the button below to insert your image.","blockify"),value:null==u?void 0:u.string,placeholder:(0,t.__)("Paste your SVG string here","blockify"),rows:20,onChange:e=>{d({...u,string:e.replace(/'/g,'"')})},style:{fontFamily:"var(--wp--preset--font-family--monospace, monospace)",width:"300px"}}),(0,e.createElement)("br",null),(0,e.createElement)(i.TextareaControl,{label:(0,t.__)("Alt Text","blockify"),placeholder:(0,t.__)("SVG description","blockify"),value:null==u?void 0:u.alt,rows:2,onChange:e=>{d({...u,alt:e})},style:{width:"300px"}}),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.Flex,null,(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Width Mobile","blockify"),value:null==u?void 0:u.width,onChange:e=>{d({...u,width:e})}})),(0,e.createElement)(i.FlexItem,null,(0,e.createElement)(i.__experimentalUnitControl,{label:(0,t.__)("Width Desktop","blockify"),value:null==u?void 0:u.widthDesktop,onChange:e=>{d({...u,widthDesktop:e})}})))),(0,e.createElement)("br",null),(0,e.createElement)(i.Button,{isPrimary:!0,text:(0,t.__)("Insert SVG","blockify"),onClick:()=>(e=>{let t=`-webkit-mask-image:url(${"data:image/svg+xml;utf8,"+encodeURIComponent(null==e?void 0:e.string)})`;null!=e&&e.width&&(t+=`;--width: ${null==e?void 0:e.width}`),null!=e&&e.widthDesktop&&(t+=`;--width-desktop: ${null==e?void 0:e.widthDesktop}`),l((0,Ke.insertObject)(a,{type:rt,attributes:{style:t,alt:null==e?void 0:e.alt,role:"presentation",src:""}})),c(!1)})(u)}))))}});var it=(0,e.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(c.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"}));const at="blockify/underline",st=["none","solid","wavy","dashed","dotted","double","brush","circle"];(0,Ke.registerFormatType)(at,{title:(0,t.__)("Underline","blockify"),tagName:"u",className:"has-text-underline",attributes:{style:"style",class:"class"},edit:n=>{let{isActive:o,value:l,onChange:a}=n;const[s,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1);let p=[],f=[];return null!=l&&l.formats&&l.formats.map((e=>{if((null==e?void 0:e.type)===at){var t,n;const o=null==e?void 0:e.attributes;p=(null!==(t=null==o?void 0:o.style)&&void 0!==t?t:"").split(";"),f=(null!==(n=null==o?void 0:o.classes)&&void 0!==n?n:"").split(" ")}})),(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(r.RichTextShortcut,{type:"primary",character:"u",onUse:()=>{a((0,Ke.toggleFormat)(l,{type:at}))}}),(0,e.createElement)(r.RichTextToolbarButton,{icon:it,title:(0,t.__)("Underline","blockify"),isActive:o,shortcutType:"primary",shortcutCharacter:"u",onClick:()=>d(!u)}),u&&(0,e.createElement)(i.Toolbar,{className:"blockify-components-toolbar"},(0,e.createElement)(i.Popover,{position:"bottom center",className:"blockify-underline-format",focusOnMount:"container",onFocusOutside:()=>d(!1)},(0,e.createElement)(i.__experimentalText,null,(0,t.__)("Underline style","blockify")),(0,e.createElement)("br",null),(0,e.createElement)(i.SelectControl,{onChange:e=>{var t,n;"none"===e&&a((0,Ke.removeFormat)(l,at)),c(e);let o=null!==(t=f)&&void 0!==t?t:[];o.forEach(((e,t)=>{e.includes("is-underline-")&&delete r.classes[t]}));const r={classes:[...o,"is-underline-"+e],styles:[...null!==(n=p)&&void 0!==n?n:[],"--wp--custom--underline--style:"+e]};a((0,Ke.applyFormat)(l,{type:at,attributes:{class:r.classes.join(" "),style:r.styles.join(";")}}))},value:s,options:st.map((e=>{return{label:(t=e,t.charAt(0).toUpperCase()+t.slice(1)),value:e};var t}))}))))}});var ct=window.wp.editSite,ut=window.wp.editPost,dt=window.wp.plugins;function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function mt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var gt=n(196),kt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wt(e,t){for(var n=0;n0?Dt($t,--Ht):0,zt--,10===Ut&&(zt=1,Lt--),Ut}function Yt(){return Ut=Ht2||Jt(Ut)>3?"":" "}function on(e,t){for(;--t&&Yt()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return Zt(e,Kt()+(t<6&&32==Xt()&&32==Yt()))}function ln(e){for(;Yt();)switch(Ut){case e:return Ht;case 34:case 39:34!==e&&39!==e&&ln(Ut);break;case 40:41===e&&ln(e);break;case 92:Yt()}return Ht}function rn(e,t){for(;Yt()&&e+Ut!==57&&(e+Ut!==84||47!==Xt()););return"/*"+Zt(t,Ht-1)+"*"+Pt(47===e?e:Yt())}function an(e){for(;!Jt(Xt());)Yt();return Zt(e,Ht)}var sn="-ms-",cn="-moz-",un="-webkit-",dn="comm",pn="rule",fn="decl",mn="@keyframes";function vn(e,t){for(var n="",o=Vt(e),l=0;l6)switch(Dt(e,t+1)){case 109:if(45!==Dt(e,t+4))break;case 102:return Mt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+cn+(108==Dt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nt(e,"stretch")?yn(Mt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Dt(e,t+1))break;case 6444:switch(Dt(e,Rt(e)-3-(~Nt(e,"!important")&&10))){case 107:return Mt(e,":",":"+un)+e;case 101:return Mt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+un+(45===Dt(e,14)?"inline-":"")+"box$3$1"+un+"$2$3$1"+sn+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return un+e+sn+Mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+sn+Mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+sn+Mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return un+e+sn+e+e}return e}function bn(e){return en(gn("",null,null,null,[""],e=Qt(e),0,[0],e))}function gn(e,t,n,o,l,r,i,a,s){for(var c=0,u=0,d=i,p=0,f=0,m=0,v=1,h=1,y=1,b=0,g="",k=l,w=r,E=o,x=g;h;)switch(m=b,b=Yt()){case 40:if(108!=m&&58==x.charCodeAt(d-1)){-1!=Nt(x+=Mt(tn(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:x+=tn(b);break;case 9:case 10:case 13:case 32:x+=nn(m);break;case 92:x+=on(Kt()-1,7);continue;case 47:switch(Xt()){case 42:case 47:Bt(wn(rn(Yt(),Kt()),t,n),s);break;default:x+="/"}break;case 123*v:a[c++]=Rt(x)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:f>0&&Rt(x)-d&&Bt(f>32?En(x+";",o,n,d-1):En(Mt(x," ","")+";",o,n,d-2),s);break;case 59:x+=";";default:if(Bt(E=kn(x,t,n,c,u,l,a,g,k=[],w=[],d),r),123===b)if(0===u)gn(x,t,E,E,k,r,d,a,w);else switch(p){case 100:case 109:case 115:gn(e,E,E,o&&Bt(kn(e,E,E,0,0,l,a,g,l,k=[],d),w),l,w,d,a,o?k:w);break;default:gn(x,E,E,E,[""],w,0,a,w)}}c=u=f=0,v=y=1,g=x="",d=i;break;case 58:d=1+Rt(x),f=m;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==qt())continue;switch(x+=Pt(b),b*v){case 38:y=u>0?1:(x+="\f",-1);break;case 44:a[c++]=(Rt(x)-1)*y,y=1;break;case 64:45===Xt()&&(x+=tn(Yt())),p=Xt(),u=d=Rt(g=x+=an(Kt())),b++;break;case 45:45===m&&2==Rt(x)&&(v=0)}}return r}function kn(e,t,n,o,l,r,i,a,s,c,u){for(var d=l-1,p=0===l?r:[""],f=Vt(p),m=0,v=0,h=0;m0?p[y]+" "+b:Mt(b,/&\f/g,p[y])))&&(s[h++]=g);return Gt(e,t,n,0===l?pn:a,s,c,u)}function wn(e,t,n){return Gt(e,t,n,dn,Pt(Ut),At(e,2,-2),0)}function En(e,t,n,o){return Gt(e,t,n,fn,At(e,0,o),At(e,o+1,-1),o)}var xn=function(e,t,n){for(var o=0,l=0;o=l,l=Xt(),38===o&&12===l&&(t[n]=1),!Jt(l);)Yt();return Zt(e,Ht)},Cn=new WeakMap,Sn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Cn.get(n))&&!o){Cn.set(e,!0);for(var l=[],r=function(e,t){return en(function(e,t){var n=-1,o=44;do{switch(Jt(o)){case 0:38===o&&12===Xt()&&(t[n]=1),e[n]+=xn(Ht-1,t,n);break;case 2:e[n]+=tn(o);break;case 4:if(44===o){e[++n]=58===Xt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Pt(o)}}while(o=Yt());return e}(Qt(e),t))}(t,l),i=n.props,a=0,s=0;a-1&&!e.return)switch(e.type){case fn:e.return=yn(e.value,e.length);break;case mn:return vn([Wt(e,{value:Mt(e.value,"@","@"+un)})],o);case pn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return vn([Wt(e,{props:[Mt(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return vn([Wt(e,{props:[Mt(t,/:(plac\w+)/,":-webkit-input-$1")]}),Wt(e,{props:[Mt(t,/:(plac\w+)/,":-moz-$1")]}),Wt(e,{props:[Mt(t,/:(plac\w+)/,sn+"input-$1")]})],o)}return""}))}}],Pn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,l,r=e.stylisPlugins||In,i={},a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++o,l-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(l){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Mn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nn=/[A-Z]|^ms/g,Dn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,An=function(e){return 45===e.charCodeAt(1)},Rn=function(e){return null!=e&&"boolean"!=typeof e},Vn=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=An(n=e)?n:n.replace(Nn,"-$&").toLowerCase()),t[e];var n}}(),Bn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Dn,(function(e,t,n){return zn={name:t,styles:n,next:zn},t}))}return 1===Mn[e]||An(e)||"number"!=typeof t||0===t?t:t+"px"};function Ln(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return zn={name:n.name,styles:n.styles,next:zn},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)zn={name:o.name,styles:o.styles,next:zn},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var l=0;le.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const no=Math.round;function oo(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function lo(e){return ao(e)?(e.nodeName||"").toLowerCase():""}function ro(e){return e instanceof oo(e).HTMLElement}function io(e){return e instanceof oo(e).Element}function ao(e){return e instanceof oo(e).Node}function so(e){return"undefined"!=typeof ShadowRoot&&(e instanceof oo(e).ShadowRoot||e instanceof ShadowRoot)}function co(e){const{overflow:t,overflowX:n,overflowY:o,display:l}=function(e){return oo(e).getComputedStyle(e)}(e);return/auto|scroll|overlay|hidden/.test(t+o+n)&&!["inline","contents"].includes(l)}function uo(){return!/^((?!chrome|android).)*safari/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}())}function po(e,t,n){var o,l,r,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let s=a,c=e,u={x:1,y:1};!io(e)&&e.contextElement&&(s=e.contextElement.getBoundingClientRect(),c=e.contextElement),t&&ro(c)&&(u=function(e,t){const n=t||e.getBoundingClientRect();return{x:e.offsetWidth>0&&no(n.width)/e.offsetWidth||1,y:e.offsetHeight>0&&no(n.height)/e.offsetHeight||1}}(c,s));const d=io(e)?oo(e):window,p=!uo()&&n,f=(a.left+(p&&null!=(o=null==(l=d.visualViewport)?void 0:l.offsetLeft)?o:0))/u.x,m=(a.top+(p&&null!=(r=null==(i=d.visualViewport)?void 0:i.offsetTop)?r:0))/u.y,v=a.width/u.x,h=a.height/u.y;return{width:v,height:h,top:m,right:f+v,bottom:m+h,left:f,x:f,y:m}}function fo(e){if("html"===lo(e))return e;const t=e.assignedSlot||e.parentNode||(so(e)?e.host:null)||function(e){return((ao(e)?e.ownerDocument:e.document)||window.document).documentElement}(e);return so(t)?t.host:t}function mo(e){const t=fo(e);return function(e){return["html","body","#document"].includes(lo(e))}(t)?e.ownerDocument.body:ro(t)&&co(t)?t:mo(t)}function vo(e,t){var n;void 0===t&&(t=[]);const o=mo(e),l=o===(null==(n=e.ownerDocument)?void 0:n.body),r=oo(o);return l?t.concat(r,r.visualViewport||[],co(o)?o:[]):t.concat(o,vo(o))}var ho=gt.useLayoutEffect,yo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bo=function(){};function go(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ko(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),l=2;l-1}function So(e){return Co(e)?window.pageYOffset:e.scrollTop}function _o(e,t){Co(e)?window.scrollTo(0,t):e.scrollTop=t}function Oo(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bo,l=So(e),r=t-l,i=10,a=0;function s(){var t=Oo(a+=i,l,r,n);_o(e,t),an.bottom?_o(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+l,e.scrollHeight)):o.top-l=m)return{placement:"bottom",maxHeight:t};if(C>=m&&!i)return r&&Io(s,S,O),{placement:"bottom",maxHeight:t};if(!i&&C>=o||i&&E>=o)return r&&Io(s,S,O),{placement:"bottom",maxHeight:i?E-g:C-g};if("auto"===l||i){var I=t,P=i?w:x;return P>=o&&(I=Math.min(P-g-a,t)),{placement:"top",maxHeight:I}}if("bottom"===l)return r&&_o(s,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(x>=m&&!i)return r&&Io(s,_,O),{placement:"top",maxHeight:t};if(!i&&x>=o||i&&w>=o){var T=t;return(!i&&x>=o||i&&w>=o)&&(T=i?w-k:x-k),r&&Io(s,_,O),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(l,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:l,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:h});p(a.maxHeight),v(a.placement),null==s||s(a.placement)}}),[o,l,r,i,n,s,h]),t({ref:c,placerProps:mt(mt({},e),{},{placement:m||Vo(l),maxHeight:d})})},zo=function(e,t){var n=e.theme,o=n.spacing.baseUnit,l=n.colors;return mt({textAlign:"center"},t?{}:{color:l.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},jo=zo,Ho=zo,Uo=function(e){var t=e.children,n=e.innerProps;return Qn("div",a({},xo(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};Uo.defaultProps={children:"No options"};var $o=function(e){var t=e.children,n=e.innerProps;return Qn("div",a({},xo(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};$o.defaultProps={children:"Loading..."};var Go,Wo,qo,Yo=["size"],Xo={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ko=function(e){var t=e.size,n=bt(e,Yo);return Qn("svg",a({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Xo},n))},Zo=function(e){return Qn(Ko,a({size:20},e),Qn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Jo=function(e){return Qn(Ko,a({size:20},e),Qn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Qo=function(e,t){var n=e.isFocused,o=e.theme,l=o.spacing.baseUnit,r=o.colors;return mt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*l,":hover":{color:n?r.neutral80:r.neutral40}})},el=Qo,tl=Qo,nl=function(){var e=eo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Go||(Wo=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],qo||(qo=Wo.slice(0)),Go=Object.freeze(Object.defineProperties(Wo,{raw:{value:Object.freeze(qo)}})))),ol=function(e){var t=e.delay,n=e.offset;return Qn("span",{css:eo({animation:"".concat(nl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ll=function(e){var t=e.innerProps,n=e.isRtl;return Qn("div",a({},xo(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Qn(ol,{delay:0,offset:n}),Qn(ol,{delay:160,offset:!0}),Qn(ol,{delay:320,offset:!n}))};ll.defaultProps={size:4};var rl=["data"],il=["innerRef","isDisabled","isHidden","inputClassName"],al={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sl={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":mt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},al)},cl=function(e){return mt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},al)},ul=function(e){var t=e.children,n=e.innerProps;return Qn("div",n,t)},dl={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Qn("div",a({},xo(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Qn(Zo,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,l=e.innerRef,r=e.innerProps,i=e.menuIsOpen;return Qn("div",a({ref:l},xo(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":i}),r),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Qn("div",a({},xo(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Qn(Jo,null))},DownChevron:Jo,CrossIcon:Zo,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,l=e.getClassNames,r=e.Heading,i=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,d=e.selectProps;return Qn("div",a({},xo(e,"group",{group:!0}),s),Qn(r,a({},i,{selectProps:d,theme:u,getStyles:o,getClassNames:l,cx:n}),c),Qn("div",null,t))},GroupHeading:function(e){var t=Eo(e);t.data;var n=bt(t,rl);return Qn("div",a({},xo(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Qn("div",a({},xo(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Qn("span",a({},t,xo(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Eo(e),l=o.innerRef,r=o.isDisabled,i=o.isHidden,s=o.inputClassName,c=bt(o,il);return Qn("div",a({},xo(e,"input",{"input-container":!0}),{"data-value":n||""}),Qn("input",a({className:t({input:!0},s),ref:l,style:cl(i),disabled:r},c)))},LoadingIndicator:ll,Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Qn("div",a({},xo(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,l=e.isMulti;return Qn("div",a({},xo(e,"menuList",{"menu-list":!0,"menu-list--is-multi":l}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,l=e.innerProps,r=e.menuPlacement,i=e.menuPosition,s=(0,gt.useRef)(null),c=(0,gt.useRef)(null),u=yt((0,gt.useState)(Vo(r)),2),d=u[0],p=u[1],f=(0,gt.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=yt((0,gt.useState)(null),2),v=m[0],h=m[1],y=(0,gt.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===i?0:window.pageYOffset,n=e[d]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||h({offset:n,rect:e})}}),[o,i,d,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);ho((function(){y()}),[y]);var b=(0,gt.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),o&&s.current&&(c.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:l=!0,ancestorResize:r=!0,elementResize:i=!0,animationFrame:a=!1}=o,s=l&&!a,c=s||r?[...io(e)?vo(e):e.contextElement?vo(e.contextElement):[],...vo(t)]:[];c.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));let u,d=null;if(i){let o=!0;d=new ResizeObserver((()=>{o||n(),o=!1})),io(e)&&!a&&d.observe(e),io(e)||!e.contextElement||a||d.observe(e.contextElement),d.observe(t)}let p=a?po(e):null;return a&&function t(){const o=po(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{s&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(u)}}(o,s.current,y,{elementResize:"ResizeObserver"in window}))}),[o,y]);ho((function(){b()}),[b]);var g=(0,gt.useCallback)((function(e){s.current=e,b()}),[b]);if(!t&&"fixed"!==i||!v)return null;var k=Qn("div",a({ref:g},xo(mt(mt({},e),{},{offset:v.offset,position:i,rect:v.rect}),"menuPortal",{"menu-portal":!0}),l),n);return Qn(Bo.Provider,{value:f},t?(0,to.createPortal)(k,t):k)},LoadingMessage:$o,NoOptionsMessage:Uo,MultiValue:function(e){var t=e.children,n=e.components,o=e.data,l=e.innerProps,r=e.isDisabled,i=e.removeProps,a=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return Qn(s,{data:o,innerProps:mt(mt({},xo(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),l),selectProps:a},Qn(c,{data:o,innerProps:mt({},xo(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),Qn(u,{data:o,innerProps:mt(mt({},xo(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:a}))},MultiValueContainer:ul,MultiValueLabel:ul,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Qn("div",a({role:"button"},n),t||Qn(Zo,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,l=e.isSelected,r=e.innerRef,i=e.innerProps;return Qn("div",a({},xo(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":l}),{ref:r,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Qn("div",a({},xo(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,l=e.isRtl;return Qn("div",a({},xo(e,"container",{"--is-disabled":o,"--is-rtl":l}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Qn("div",a({},xo(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,l=e.hasValue;return Qn("div",a({},xo(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l}),n),t)}},pl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fl(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(l.join(","),", selected.");case"select-option":return"option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,l=e.label,r=void 0===l?"":l,i=e.selectValue,a=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(r," focused, ").concat(c(i,n),".");if("menu"===t){var u=a?" disabled":"",d="".concat(s?"selected":"focused").concat(u);return"option ".concat(r," ").concat(d,", ").concat(c(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},yl=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,l=e.focusableOptions,r=e.isFocused,i=e.selectValue,a=e.selectProps,s=e.id,c=a.ariaLiveMessages,u=a.getOptionLabel,d=a.inputValue,p=a.isMulti,f=a.isOptionDisabled,m=a.isSearchable,v=a.menuIsOpen,h=a.options,y=a.screenReaderStatus,b=a.tabSelectsValue,g=a["aria-label"],k=a["aria-live"],w=(0,gt.useMemo)((function(){return mt(mt({},hl),c||{})}),[c]),E=(0,gt.useMemo)((function(){var e,n="";if(t&&w.onChange){var o=t.option,l=t.options,r=t.removedValue,a=t.removedValues,s=t.value,c=r||o||(e=s,Array.isArray(e)?null:e),d=c?u(c):"",p=l||a||void 0,m=p?p.map(u):[],v=mt({isDisabled:c&&f(c,i),label:d,labels:m},t);n=w.onChange(v)}return n}),[t,w,f,i,u]),x=(0,gt.useMemo)((function(){var e="",t=n||o,r=!!(n&&i&&i.includes(n));if(t&&w.onFocus){var a={focused:t,label:u(t),isDisabled:f(t,i),isSelected:r,options:l,context:t===n?"menu":"value",selectValue:i};e=w.onFocus(a)}return e}),[n,o,u,f,w,l,i]),C=(0,gt.useMemo)((function(){var e="";if(v&&h.length&&w.onFilter){var t=y({count:l.length});e=w.onFilter({inputValue:d,resultsMessage:t})}return e}),[l,d,v,w,h,y]),S=(0,gt.useMemo)((function(){var e="";if(w.guidance){var t=o?"value":v?"menu":"input";e=w.guidance({"aria-label":g,context:t,isDisabled:n&&f(n,i),isMulti:p,isSearchable:m,tabSelectsValue:b})}return e}),[g,n,o,p,f,m,v,w,i,b]),_="".concat(x," ").concat(C," ").concat(S),O=Qn(gt.Fragment,null,Qn("span",{id:"aria-selection"},E),Qn("span",{id:"aria-context"},_)),I="initial-input-focus"===(null==t?void 0:t.action);return Qn(gt.Fragment,null,Qn(vl,{id:s},I&&O),Qn(vl,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text"},r&&!I&&O))},bl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],gl=new RegExp("["+bl.map((function(e){return e.letters})).join("")+"]","g"),kl={},wl=0;wl1?t-1:0),o=1;o0,v=d-p-u,h=!1;v>t&&i.current&&(o&&o(e),i.current=!1),m&&a.current&&(r&&r(e),a.current=!1),m&&t>v?(n&&!i.current&&n(e),f.scrollTop=d,h=!0,i.current=!0):!m&&-t>u&&(l&&!a.current&&l(e),f.scrollTop=0,h=!0,a.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,l,r]),d=(0,gt.useCallback)((function(e){u(e,e.deltaY)}),[u]),p=(0,gt.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),f=(0,gt.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,gt.useCallback)((function(e){if(e){var t=!!Do&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,d]),v=(0,gt.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,d]);return(0,gt.useEffect)((function(){if(t){var e=c.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,l=(0,gt.useRef)({}),r=(0,gt.useRef)(null),i=(0,gt.useCallback)((function(e){if(Rl){var t=document.body,n=t&&t.style;if(o&&Tl.forEach((function(e){var t=n&&n[e];l.current[e]=t})),o&&Vl<1){var r=parseInt(l.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,a=window.innerWidth-i+r||0;Object.keys(Fl).forEach((function(e){var t=Fl[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&Al()&&(t.addEventListener("touchmove",Ml,Bl),e&&(e.addEventListener("touchstart",Dl,Bl),e.addEventListener("touchmove",Nl,Bl))),Vl+=1}}),[o]),a=(0,gt.useCallback)((function(e){if(Rl){var t=document.body,n=t&&t.style;Vl=Math.max(Vl-1,0),o&&Vl<1&&Tl.forEach((function(e){var t=l.current[e];n&&(n[e]=t)})),t&&Al()&&(t.removeEventListener("touchmove",Ml,Bl),e&&(e.removeEventListener("touchstart",Dl,Bl),e.removeEventListener("touchmove",Nl,Bl)))}}),[o]);return(0,gt.useEffect)((function(){if(t){var e=r.current;return i(e),function(){a(e)}}}),[t,i,a]),function(e){r.current=e}}({isEnabled:n});return Qn(gt.Fragment,null,n&&Qn("div",{onClick:Ll,css:zl}),t((function(e){l(e),r(e)})))}var Hl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ul=function(e){var t=e.name,n=e.onFocus;return Qn("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:Hl,value:"",onChange:function(){}})},$l={clearIndicator:tl,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,l=e.theme,r=l.colors,i=l.borderRadius;return mt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:el,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,l=n.spacing;return mt({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*l.baseUnit,paddingRight:3*l.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,l=o.spacing.baseUnit,r=o.colors;return mt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*l,marginTop:2*l})},input:function(e,t){var n=e.isDisabled,o=e.value,l=e.theme,r=l.spacing,i=l.colors;return mt(mt({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},sl),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,l=e.theme,r=l.colors,i=l.spacing.baseUnit;return mt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i})},loadingMessage:Ho,menu:function(e,t){var n,o=e.placement,l=e.theme,r=l.borderRadius,i=l.spacing,a=l.colors;return mt((pt(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),pt(n,"position","absolute"),pt(n,"width","100%"),pt(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return mt({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,l=n.borderRadius,r=n.colors;return mt({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:l/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,l=n.colors,r=e.cropWithEllipsis;return mt({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:l.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,l=n.borderRadius,r=n.colors,i=e.isFocused;return mt({alignItems:"center",display:"flex"},t?{}:{borderRadius:l/2,backgroundColor:i?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:jo,option:function(e,t){var n=e.isDisabled,o=e.isFocused,l=e.isSelected,r=e.theme,i=r.spacing,a=r.colors;return mt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:l?a.primary:o?a.primary25:"transparent",color:n?a.neutral20:l?a.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:l?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,l=n.colors;return mt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:l.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,l=o.spacing,r=o.colors;return mt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,l=e.hasValue,r=e.selectProps.controlShouldRenderValue;return mt({alignItems:"center",display:o&&l&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Gl={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Wl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:To(),captureMenuScroll:!To(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=mt({ignoreCase:!0,ignoreAccents:!0,stringify:Ol,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,l=n.ignoreAccents,r=n.stringify,i=n.trim,a=n.matchFrom,s=i?_l(t):t,c=i?_l(r(e)):r(e);return o&&(s=s.toLowerCase(),c=c.toLowerCase()),l&&(s=Sl(s),c=Cl(c)),"start"===a?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ql(e,t,n,o){return{type:"option",data:t,isDisabled:Ql(e,t,n),isSelected:er(e,t,n),label:Zl(e,t),value:Jl(e,t),index:o}}function Yl(e,t){return e.options.map((function(n,o){if("options"in n){var l=n.options.map((function(n,o){return ql(e,n,t,o)})).filter((function(t){return Kl(e,t)}));return l.length>0?{type:"group",data:n,options:l,index:o}:void 0}var r=ql(e,n,t,o);return Kl(e,r)?r:void 0})).filter(Ao)}function Xl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,_t(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Kl(e,t){var n=e.inputValue,o=void 0===n?"":n,l=t.data,r=t.isSelected,i=t.label,a=t.value;return(!nr(e)||!r)&&tr(e,{label:i,value:a,data:l},o)}var Zl=function(e,t){return e.getOptionLabel(t)},Jl=function(e,t){return e.getOptionValue(t)};function Ql(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function er(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Jl(e,t);return n.some((function(t){return Jl(e,t)===o}))}function tr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var nr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},or=1,lr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}(s,e);var t,n,o,l,r,i=(l=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=xt(l);if(r){var n=xt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return St(this,e)});function s(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,l=o.onChange,r=o.name;n.name=r,t.ariaOnChange(e,n),l(e,n)},t.setValue=function(e,n,o){var l=t.props,r=l.closeMenuOnSelect,i=l.isMulti,a=l.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),r&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,l=n.isMulti,r=n.name,i=t.state.selectValue,a=l&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(a){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:r});l?t.setValue([].concat(_t(i),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,l=t.getOptionValue(e),r=o.filter((function(e){return t.getOptionValue(e)!==l})),i=Ro(n,r,r[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ro(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],l=n.slice(0,n.length-1),r=Ro(e,l,l[0]||null);t.onChange(r,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o5||r>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return nr(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,l=n.backspaceRemovesValue,r=n.escapeClearsValue,i=n.inputValue,a=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,v=f.focusedValue,h=f.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||i)return;t.focusValue("previous");break;case"ArrowRight":if(!o||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(v)t.removeValue(v);else{if(!l)return;o?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&t.isOptionSelected(m,h))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):a&&r&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++or),t.state.selectValue=wo(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),o=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[o]}return t}return t=s,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Po(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,l=this.state.isFocused;(l&&!n&&e.isDisabled||l&&o&&!e.menuIsOpen)&&this.focusInput(),l&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):l||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Po(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,l=n.isFocused,r=this.buildFocusableOptions(),i="first"===e?0:r.length-1;if(!this.props.isMulti){var a=r.indexOf(o[0]);a>-1&&(i=a)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=n.indexOf(o);o||(l=-1);var r=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===l?0:-1===l?r:l-1;break;case"next":l>-1&&l0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var l=0,r=o.indexOf(n);n||(r=-1),"up"===e?l=r>0?r-1:o.length-1:"down"===e?l=(r+1)%o.length:"pageup"===e?(l=r-t)<0&&(l=0):"pagedown"===e?(l=r+t)>o.length-1&&(l=o.length-1):"last"===e&&(l=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Gl):mt(mt({},Gl),this.props.theme):Gl}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,l=this.getValue,r=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,c=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:l,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:r,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Ql(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return er(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,l=e.inputValue,r=e.tabIndex,i=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,v=o||this.getElementId("input"),h=mt(mt(mt({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?gt.createElement(u,a({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:r,form:i,type:"text",value:l},h)):gt.createElement(Pl,a({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bo,onFocus:this.onInputFocus,disabled:t,tabIndex:r,inputMode:"none",form:i,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,l=t.MultiValueLabel,r=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,v=u.placeholder,h=this.state,y=h.selectValue,b=h.focusedValue,g=h.isFocused;if(!this.hasValue()||!d)return m?null:gt.createElement(s,a({},c,{key:"placeholder",isDisabled:p,isFocused:g,innerProps:{id:this.getElementId("placeholder")}}),v);if(f)return y.map((function(t,i){var s=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return gt.createElement(n,a({},c,{components:{Container:o,Label:l,Remove:r},isFocused:s,isDisabled:p,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var k=y[0];return gt.createElement(i,a({},c,{data:k,isDisabled:p}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,l=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||l)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return gt.createElement(e,a({},t,{innerProps:i,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,l=n.isLoading,r=this.state.isFocused;return e&&l?gt.createElement(e,a({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:r})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,l=this.props.isDisabled,r=this.state.isFocused;return gt.createElement(n,a({},o,{isDisabled:l,isFocused:r}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return gt.createElement(e,a({},t,{innerProps:l,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,l=t.Menu,r=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,v=f.inputValue,h=f.isLoading,y=f.loadingMessage,b=f.minMenuHeight,g=f.maxMenuHeight,k=f.menuIsOpen,w=f.menuPlacement,E=f.menuPosition,x=f.menuPortalTarget,C=f.menuShouldBlockScroll,S=f.menuShouldScrollIntoView,_=f.noOptionsMessage,O=f.onMenuScrollToTop,I=f.onMenuScrollToBottom;if(!k)return null;var P,T=function(t,n){var o=t.type,l=t.data,r=t.isDisabled,i=t.isSelected,s=t.label,c=t.value,f=p===l,m=r?void 0:function(){return e.onOptionHover(l)},v=r?void 0:function(){return e.selectOption(l)},h="".concat(e.getElementId("option"),"-").concat(n),y={id:h,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1};return gt.createElement(u,a({},d,{innerProps:y,data:l,isDisabled:r,isSelected:i,key:h,label:s,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var l=t.data,r=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),c="".concat(s,"-heading");return gt.createElement(n,a({},d,{key:s,data:l,options:r,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(h){var F=y({inputValue:v});if(null===F)return null;P=gt.createElement(s,d,F)}else{var M=_({inputValue:v});if(null===M)return null;P=gt.createElement(c,d,M)}var N={minMenuHeight:b,maxMenuHeight:g,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:S},D=gt.createElement(Lo,a({},d,N),(function(t){var n=t.ref,o=t.placerProps,i=o.placement,s=o.maxHeight;return gt.createElement(l,a({},d,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:i}),gt.createElement(jl,{captureEnabled:m,onTopArrive:O,onBottomArrive:I,lockEnabled:C},(function(t){return gt.createElement(r,a({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:h,maxHeight:s,focusedOption:p}),P)})))}));return x||"fixed"===E?gt.createElement(i,a({},d,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,l=t.isMulti,r=t.name,i=t.required,a=this.state.selectValue;if(r&&!o){if(i&&!this.hasValue())return gt.createElement(Ul,{name:r,onFocus:this.onValueInputFocus});if(l){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return gt.createElement("input",{name:r,type:"hidden",value:s})}var c=a.length>0?a.map((function(t,n){return gt.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})})):gt.createElement("input",{name:r,type:"hidden",value:""});return gt.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return gt.createElement("input",{name:r,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,l=t.focusedValue,r=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return gt.createElement(yl,a({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:l,isFocused:r,selectValue:i,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,l=e.ValueContainer,r=this.props,i=r.className,s=r.id,c=r.isDisabled,u=r.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return gt.createElement(o,a({},p,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),gt.createElement(t,a({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),gt.createElement(l,a({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),gt.createElement(n,a({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,l=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,i=t.isFocused,a=t.prevWasFocused,s=e.options,c=e.value,u=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=wo(c),m={};if(n&&(c!==n.value||s!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var v=u?function(e,t){return Xl(Yl(e,t))}(e,f):[],h=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o-1?n:t[0]}(t,v);m={selectValue:f,focusedOption:y,focusedValue:h,clearFocusValueOnUpdate:!1}}var b=null!=l&&e!==n?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},g=r,k=i&&a;return i&&!k&&(g={value:Ro(p,f,f[0]||null),options:f,action:"initial-input-focus"},k=!a),"initial-input-focus"===(null==r?void 0:r.action)&&(g=null),mt(mt(mt({},m),b),{},{prevProps:e,ariaSelection:g,prevWasFocused:k})}}],n&&wt(t.prototype,n),o&&wt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(gt.Component);lr.defaultProps=Wl;var rr=(0,gt.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,l=void 0!==o&&o,r=e.defaultValue,i=void 0===r?null:r,a=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,m=bt(e,kt),v=yt((0,gt.useState)(void 0!==a?a:n),2),h=v[0],y=v[1],b=yt((0,gt.useState)(void 0!==s?s:l),2),g=b[0],k=b[1],w=yt((0,gt.useState)(void 0!==f?f:i),2),E=w[0],x=w[1],C=(0,gt.useCallback)((function(e,t){"function"==typeof c&&c(e,t),x(e)}),[c]),S=(0,gt.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),y(void 0!==n?n:e)}),[u]),_=(0,gt.useCallback)((function(){"function"==typeof p&&p(),k(!0)}),[p]),O=(0,gt.useCallback)((function(){"function"==typeof d&&d(),k(!1)}),[d]),I=void 0!==a?a:h,P=void 0!==s?s:g,T=void 0!==f?f:E;return mt(mt({},m),{},{inputValue:I,menuIsOpen:P,onChange:C,onInputChange:S,onMenuClose:O,onMenuOpen:_,value:T})}(e);return gt.createElement(lr,a({ref:t},n))})),ir=rr;const ar={name:"blockify",title:"Blockify",icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25"},(0,e.createElement)("path",{d:"M11.258 2.017 C 10.746 2.162,10.691 2.192,6.220 4.750 C 5.010 5.443,3.858 6.105,3.660 6.221 C 3.269 6.451,2.763 6.875,2.499 7.193 C 2.282 7.454,2.088 8.025,2.034 8.562 C 2.011 8.795,2.001 10.643,2.010 13.204 C 2.026 17.969,2.005 17.632,2.321 18.236 C 2.521 18.617,2.835 19.006,3.120 19.225 C 3.370 19.418,4.051 19.817,7.360 21.710 C 10.270 23.375,10.848 23.687,11.296 23.839 C 11.817 24.015,11.971 24.026,12.408 23.918 C 12.933 23.789,13.750 23.363,16.600 21.733 C 19.850 19.873,20.625 19.420,20.871 19.234 C 21.138 19.034,21.522 18.553,21.703 18.193 C 21.997 17.610,21.980 17.935,21.980 12.900 L 21.980 8.380 21.867 8.000 C 21.711 7.476,21.594 7.280,21.200 6.878 C 20.817 6.487,20.891 6.531,16.360 3.940 C 12.761 1.881,13.010 1.995,12.060 1.974 C 11.628 1.964,11.404 1.976,11.258 2.017 M12.460 3.994 C 12.708 4.112,16.127 6.060,17.913 7.100 C 18.738 7.580,18.917 7.700,18.873 7.740 C 18.783 7.824,14.712 10.171,12.771 11.257 L 12.001 11.688 11.371 11.337 C 9.925 10.534,5.440 7.949,5.157 7.756 C 5.065 7.693,5.068 7.690,5.522 7.422 C 6.715 6.717,11.008 4.284,11.620 3.967 C 11.859 3.842,12.162 3.852,12.460 3.994 M19.995 13.784 C 19.998 14.996,19.989 16.292,19.975 16.664 L 19.949 17.340 19.745 17.541 C 19.499 17.782,18.879 18.158,16.400 19.568 C 13.439 21.253,13.085 21.448,13.041 21.421 C 13.013 21.403,13.000 20.129,13.000 17.448 L 13.001 13.500 16.470 11.469 L 19.940 9.439 19.965 10.509 C 19.978 11.098,19.992 12.572,19.995 13.784 ",fill:"currentColor",stroke:"none","fill-rule":"evenodd"}))},sr=(0,l.compose)((0,Pe.withSelect)((e=>{var t,n;return{options:null!==(t=null===(n=e("core"))||void 0===n?void 0:n.getEditedEntityRecord("root","site"))&&void 0!==t?t:{}}})),(0,Pe.withDispatch)((e=>({setOptions:t=>{var n;null===(n=e("core"))||void 0===n||n.editEntityRecord("root","site",void 0,t)}}))))((n=>{var o,l,a,s,c,u,d,p,f,v,h,y,b,g,k,w,E,x,C,S,_,O,I,P,T,F,M;let{options:N,setOptions:D}=n;const A=e=>{var t;D({blockify:{...null!==(t=null==N?void 0:N.blockify)&&void 0!==t?t:{},...e}})},R=null!==(o=null===(l=window)||void 0===l||null===(a=l.blockify)||void 0===a?void 0:a.siteEditor)&&void 0!==o&&o,V=e=>R?(0,ct.PluginSidebar)(e):(0,ut.PluginSidebar)(e),B=null!==(s=null==N||null===(c=N.blockify)||void 0===c?void 0:c.apiKey)&&void 0!==s?s:"",L=null!==(u=null==N||null===(d=N.blockify)||void 0===d?void 0:d.apiKeyStatus)&&void 0!==u?u:"inactive",z=e=>{var t,n,o,l;if(!e)return;const r=null===(t=document.getElementsByClassName("edit-site-visual-editor__editor-canvas"))||void 0===t?void 0:t.item(0);let i;i=r?r.contentDocument:document;const a=null===(n=i)||void 0===n||null===(o=n.getElementsByClassName("editor-styles-wrapper"))||void 0===o?void 0:o.item(0);if(!a)return;const s="blockify-additional-css";let c;if(e=(e=(e=e.replace("body{",".editor-styles-wrapper{")).replace("body {",".editor-styles-wrapper{")).replace("body {",".editor-styles-wrapper{"),null!==(l=i)&&void 0!==l&&l.getElementById(s))c=i.getElementById(s),c.textContent=e;else{c=i.createElement("style"),c.id=s,c.textContent=e;const t=null==a?void 0:a.parentElement;t&&t.insertBefore(c,a)}};null!=N&&null!==(p=N.blockify)&&void 0!==p&&p.additionalCss&&z(N.blockify.additionalCss);const j=null!==(f=null===(v=window)||void 0===v||null===(h=v.blockify)||void 0===h?void 0:h.fontFamilies)&&void 0!==f?f:[],H=null==j?void 0:j.map((e=>({label:m(null==e?void 0:e.replace("-"," ")),value:e})));var U,$;return H.push({label:"Satoshi",value:"satoshi"}),null!==(y=window)&&void 0!==y&&null!==(b=y.blockify)&&void 0!==b&&b.isPlugin?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ut.PluginSidebarMoreMenuItem,{target:"blockify"},(0,t.__)("Blockify","blockify")),(0,e.createElement)(V,ar,(0,e.createElement)(i.Panel,{className:"blockify-settings"},(0,e.createElement)(i.PanelBody,{title:(0,t.__)("General","blockify"),initialOpen:!1},(0,e.createElement)(i.Flex,{direction:"column"},(0,e.createElement)(i.FlexBlock,null,(0,e.createElement)(i.TextControl,{type:"text",label:(0,e.createElement)((()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,t.__)("Blockify API Key","blockify")),(0,e.createElement)("span",{className:"blockify-api-key-status is-"+L,style:{marginLeft:"10px",padding:"2px 5px",background:"valid"===L?"#20c17a":"#e0e0e0",color:"valid"===L?"#fff":"inherit",borderRadius:"5px"}},"valid"===L?(0,t.__)("Active","blockify"):(0,t.__)("Inactive","blockify")))),null),value:null!==(g=null==N||null===(k=N.blockify)||void 0===k?void 0:k.apiKey)&&void 0!==g?g:"",onChange:e=>{A({apiKey:e,apiKeyStatus:"inactive"})}})),(0,e.createElement)(i.FlexBlock,null,(0,e.createElement)(i.Button,{isPrimary:!0,isBusy:"loading"===L,disabled:"loading"===L,"aria-label":(0,t.__)("Check API Key","blockify"),onClick:()=>{A({apiKeyStatus:"loading"}),Me()({path:"/blockify/v1/api-keys?apiKey="+B}).then((e=>{var n;D({blockify:{...null==N?void 0:N.blockify,apiKeyStatus:null!==(n=null==e?void 0:e.license)&&void 0!==n?n:"inactive"}}),"valid"===(null==e?void 0:e.license)&&console.log((0,t.__)("Blockify API key successfully activated.","blockify"))}))}},(0,t.__)("Check API Key","blockify"))),(0,e.createElement)(i.FlexBlock,null),(0,e.createElement)(i.FlexBlock,null,(0,e.createElement)(i.TextControl,{type:"text",label:(0,t.__)("Google Analytics","blockify"),help:(0,t.__)('Enter your Google Analytics ID to enable tracking. Accepts "G-" or "UA-" prefix.',"blockify"),value:null!==(w=null==N||null===(E=N.blockify)||void 0===E?void 0:E.googleAnalytics)&&void 0!==w?w:"",onChange:e=>{A({googleAnalytics:e})}})))),(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Site Identity","blockify")},(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.TextControl,{type:"text",label:(0,t.__)("Site Title","blockify"),value:null!==(x=null==N?void 0:N.title)&&void 0!==x?x:"",onChange:e=>{D({title:e})},style:{marginBottom:"8px"}})),(0,e.createElement)(i.PanelRow,null,(0,e.createElement)(i.TextControl,{type:"text",label:(0,t.__)("Site Description","blockify"),value:null!==(C=null==N?void 0:N.description)&&void 0!==C?C:"",onChange:e=>{D({description:e})}})),(0,e.createElement)(i.Flex,{wrap:!0,style:{paddingTop:"16px"}},(0,e.createElement)(i.BaseControl,{label:(0,t.__)("Site Icon","blockify"),help:(0,t.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. Upload one here! Site Icons should be square and at least 512 × 512 pixels.","blockify"),children:(0,e.createElement)(e.Fragment,null),id:"site-icon"}),(0,e.createElement)(r.MediaUploadCheck,null,(0,e.createElement)(r.MediaUpload,{onSelect:e=>{D({site_icon:e.id,blockify:{...null==N?void 0:N.blockify,siteIconUrl:e.url}})},value:null==N?void 0:N.site_icon,allowedTypes:["image"],render:n=>{var o,l,r;let{open:a}=n;return(0,e.createElement)(i.Button,{className:0===(null==N?void 0:N.site_icon)?"editor-post-featured-image__toggle":"editor-post-featured-image__preview",onClick:()=>{a()}},0===(null==N?void 0:N.site_icon)&&(0,t.__)("Choose an image","blockify"),""!==(null==N||null===(o=N.blockify)||void 0===o?void 0:o.siteIconUrl)&&(0,e.createElement)("img",{src:null!==(l=null==N||null===(r=N.blockify)||void 0===r?void 0:r.siteIconUrl)&&void 0!==l?l:"",alt:(0,t.__)("Site icon","blockify"),width:100,height:100}))}})),0!==(null==N?void 0:N.site_icon)&&(0,e.createElement)(r.MediaUploadCheck,null,(0,e.createElement)(r.MediaUpload,{title:(0,t.__)("Replace image","blockify"),value:null==N?void 0:N.site_icon,onSelect:e=>{D({site_icon:e.id,blockify:{...null==N?void 0:N.blockify,siteIconUrl:e.url}})},allowedTypes:["image"],render:n=>{let{open:o}=n;return(0,e.createElement)(i.Button,{onClick:o,isSecondary:!0},(0,t.__)("Replace image","blockify"))}})),0!==(null==N?void 0:N.site_icon)&&(0,e.createElement)(r.MediaUploadCheck,null,(0,e.createElement)(i.Button,{onClick:()=>{D({site_icon:0,blockify:{...null==N?void 0:N.blockify,siteIconUrl:""}})},isLink:!0,isDestructive:!0},(0,t.__)("Remove image","blockify"))))),(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Google Fonts","blockify"),initialOpen:!1},(0,e.createElement)("p",null,(0,t.__)("Please note that for font family changes to take effect, a page reload is required.","blockify")),(0,e.createElement)(ir,{isMulti:!0,isSearchable:!0,placeholder:(0,t.__)("Select fonts","blockify"),value:null==N||null===(S=N.blockify)||void 0===S?void 0:S.googleFonts,options:H,onChange:e=>{A({googleFonts:e})},isOptionDisabled:e=>"satoshi"===(null==e?void 0:e.value)}),(0,e.createElement)("br",null),(0,e.createElement)("p",null,(0,t.__)("More fonts available with ","blockify"),(0,e.createElement)("a",{href:"https://blockifywp.com/pro",target:"_blank",rel:"noreferrer"},"Blockify Pro ↗"))),(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Icons","blockify"),initialOpen:!1},(0,e.createElement)("p",null,(0,t.__)("Please note that for icon changes to take effect, a page reload is required.","blockify")),(0,e.createElement)(ir,{isMulti:!0,isSearchable:!0,placeholder:(0,t.__)("Select icon sets","blockify"),value:null!==(_=null==N||null===(O=N.blockify)||void 0===O?void 0:O.iconSets)&&void 0!==_?_:[{label:"WordPress",value:"wordpress"},{label:"Social",value:"social"}],options:[{label:"WordPress",value:"wordpress"},{label:"Social",value:"social"},{label:"Feather",value:"feather"},{label:"Heroicons",value:"heroicons"}],onChange:e=>{A({iconSets:e})},isOptionDisabled:e=>"heroicons"===(null==e?void 0:e.value)||"feather"===(null==e?void 0:e.value)}),(0,e.createElement)("br",null),(0,e.createElement)("p",null,(0,t.__)("More icons available with ","blockify"),(0,e.createElement)("a",{href:"https://blockifywp.com/pro",target:"_blank",rel:"noreferrer"},"Blockify Pro ↗"))),(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Dark Mode","blockify"),initialOpen:!1},(0,e.createElement)("p",null,(0,t.__)("More dark mode options available with ","blockify"),(0,e.createElement)("a",{href:"https://blockifywp.com/pro",target:"_blank",rel:"noreferrer"},"Blockify Pro ↗")),(0,e.createElement)(i.ToggleControl,{disabled:"valid"!==(null==N||null===(I=N.blockify)||void 0===I?void 0:I.apiKeyStatus),label:(0,t.__)("Use system preferences?","blockify"),help:(0,t.__)("Automatically switch to dark mode when the user's system display preferences are set to dark.","blockify"),checked:null!==(P=null==N||null===(T=N.blockify)||void 0===T?void 0:T.autoDarkMode)&&void 0!==P&&P,onChange:e=>{A({autoDarkMode:e})}})),(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Additional CSS","blockify"),initialOpen:!1},(0,e.createElement)(i.TextareaControl,{help:(0,t.__)("Add your own CSS code here to customize the appearance and layout of your site.","blockify"),rows:12,value:null!==(F=null==N||null===(M=N.blockify)||void 0===M?void 0:M.additionalCss)&&void 0!==F?F:"",onChange:e=>{A({additionalCss:e}),z(e)},onKeyDown:e=>{if("Tab"===(null==e?void 0:e.key)){e.preventDefault();const t=null==e?void 0:e.target;if(!t)return;const n=t.selectionStart,o=t.selectionEnd;t.value=t.value.substring(0,n)+"\t"+t.value.substring(o),t.selectionStart=t.selectionEnd=n+1}},style:{fontFamily:"ui-monospace,Menlo,Monaco,Cascadia Code,Segoe UI Mono,Roboto Mono,Oxygen Mono,Ubuntu Monospace,Source Code Pro,Fira Code,Droid Sans Mono,DejaVu Sans Mono,Courier New,monospace",fontSize:"14px",tabSize:"1em",lineHeight:"1.5"}}))))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ut.PluginSidebarMoreMenuItem,{target:"blockify"},(0,t.__)("Blockify","blockify")),(0,e.createElement)(V,ar,(0,e.createElement)(i.Panel,{className:"blockify-settings"},(0,e.createElement)(i.PanelBody,{title:(0,t.__)("Install plugin","blockify"),initialOpen:!0},(0,e.createElement)("p",null,(0,t.__)("Please install the free Blockify plugin to access all full site editing features. ","blockify"),(0,e.createElement)("a",{href:(null===(U=window)||void 0===U||null===($=U.blockify)||void 0===$?void 0:$.adminUrl)+"plugins.php"},(0,t.__)("Go to Plugins page ↗","blockify")))))))}));(0,dt.registerPlugin)("blockify",{icon:ar.icon,render:sr})}()}();